ngwr 16.5.0 → 16.6.0

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 (287) hide show
  1. package/back-top/styles/_index.scss +6 -0
  2. package/breadcrumbs/styles/_rules.scss +34 -0
  3. package/cascader/styles/_rules.scss +7 -0
  4. package/charts/chart-legend/styles/_index.scss +1 -9
  5. package/counter/styles/_index.scss +1 -8
  6. package/date-picker/styles/_index.scss +15 -9
  7. package/dialog/styles/_index.scss +37 -0
  8. package/editor/styles/_index.scss +1 -8
  9. package/event-calendar/styles/_index.scss +2 -6
  10. package/fesm2022/ngwr-affix.mjs +1 -1
  11. package/fesm2022/ngwr-affix.mjs.map +1 -1
  12. package/fesm2022/ngwr-anchor.mjs +9 -2
  13. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  14. package/fesm2022/ngwr-animations-aurora.mjs.map +1 -1
  15. package/fesm2022/ngwr-animations-blur-reveal.mjs.map +1 -1
  16. package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
  17. package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
  18. package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
  19. package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
  20. package/fesm2022/ngwr-animations-dot-grid.mjs.map +1 -1
  21. package/fesm2022/ngwr-animations-falling-letters.mjs.map +1 -1
  22. package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
  23. package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
  24. package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
  25. package/fesm2022/ngwr-animations-glow-border.mjs.map +1 -1
  26. package/fesm2022/ngwr-animations-gradient-flow.mjs.map +1 -1
  27. package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
  28. package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
  29. package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
  30. package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
  31. package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
  32. package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
  33. package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
  34. package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
  35. package/fesm2022/ngwr-animations-tilt.mjs +20 -13
  36. package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
  37. package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
  38. package/fesm2022/ngwr-breadcrumbs.mjs +40 -7
  39. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  40. package/fesm2022/ngwr-button.mjs +12 -3
  41. package/fesm2022/ngwr-button.mjs.map +1 -1
  42. package/fesm2022/ngwr-carousel.mjs +8 -2
  43. package/fesm2022/ngwr-carousel.mjs.map +1 -1
  44. package/fesm2022/ngwr-cascader.mjs +24 -4
  45. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  46. package/fesm2022/ngwr-charts-core.mjs +12 -5
  47. package/fesm2022/ngwr-charts-core.mjs.map +1 -1
  48. package/fesm2022/ngwr-charts-meter-group.mjs +4 -2
  49. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  50. package/fesm2022/ngwr-checkbox.mjs +3 -2
  51. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  52. package/fesm2022/ngwr-color-picker.mjs +21 -1
  53. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  54. package/fesm2022/ngwr-context-menu.mjs +4 -5
  55. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  56. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  57. package/fesm2022/ngwr-date-picker.mjs +49 -1
  58. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  59. package/fesm2022/ngwr-dialog.mjs +16 -6
  60. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  61. package/fesm2022/ngwr-directives.mjs +9 -6
  62. package/fesm2022/ngwr-directives.mjs.map +1 -1
  63. package/fesm2022/ngwr-event-calendar.mjs +20 -9
  64. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  65. package/fesm2022/ngwr-form.mjs +170 -3
  66. package/fesm2022/ngwr-form.mjs.map +1 -1
  67. package/fesm2022/ngwr-i18n-ar.mjs +15 -0
  68. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  69. package/fesm2022/ngwr-i18n-cs.mjs +15 -0
  70. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  71. package/fesm2022/ngwr-i18n-de.mjs +15 -0
  72. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  73. package/fesm2022/ngwr-i18n-en.mjs +15 -0
  74. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  75. package/fesm2022/ngwr-i18n-es.mjs +15 -0
  76. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  77. package/fesm2022/ngwr-i18n-fr.mjs +15 -0
  78. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  79. package/fesm2022/ngwr-i18n-he.mjs +15 -0
  80. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  81. package/fesm2022/ngwr-i18n-hi.mjs +15 -0
  82. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  83. package/fesm2022/ngwr-i18n-id.mjs +15 -0
  84. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  85. package/fesm2022/ngwr-i18n-it.mjs +15 -0
  86. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  87. package/fesm2022/ngwr-i18n-ja.mjs +15 -0
  88. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  89. package/fesm2022/ngwr-i18n-ko.mjs +15 -0
  90. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  91. package/fesm2022/ngwr-i18n-nl.mjs +15 -0
  92. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  93. package/fesm2022/ngwr-i18n-pl.mjs +15 -0
  94. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  95. package/fesm2022/ngwr-i18n-pt.mjs +15 -0
  96. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  97. package/fesm2022/ngwr-i18n-ru.mjs +15 -0
  98. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  99. package/fesm2022/ngwr-i18n-sv.mjs +15 -0
  100. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  101. package/fesm2022/ngwr-i18n-tr.mjs +15 -0
  102. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  103. package/fesm2022/ngwr-i18n-uk.mjs +15 -0
  104. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  105. package/fesm2022/ngwr-i18n-vi.mjs +15 -0
  106. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  107. package/fesm2022/ngwr-i18n-zh-tw.mjs +15 -0
  108. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  109. package/fesm2022/ngwr-i18n-zh.mjs +15 -0
  110. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  111. package/fesm2022/ngwr-i18n.mjs +82 -11
  112. package/fesm2022/ngwr-i18n.mjs.map +1 -1
  113. package/fesm2022/ngwr-input-number.mjs +24 -1
  114. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  115. package/fesm2022/ngwr-input-otp.mjs +2 -2
  116. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  117. package/fesm2022/ngwr-input.mjs +10 -2
  118. package/fesm2022/ngwr-input.mjs.map +1 -1
  119. package/fesm2022/ngwr-layout.mjs.map +1 -1
  120. package/fesm2022/ngwr-list.mjs +1 -1
  121. package/fesm2022/ngwr-list.mjs.map +1 -1
  122. package/fesm2022/ngwr-loading-bar-router.mjs.map +1 -1
  123. package/fesm2022/ngwr-loading-bar.mjs +2 -2
  124. package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
  125. package/fesm2022/ngwr-mention.mjs +8 -0
  126. package/fesm2022/ngwr-mention.mjs.map +1 -1
  127. package/fesm2022/ngwr-meta.mjs +9 -6
  128. package/fesm2022/ngwr-meta.mjs.map +1 -1
  129. package/fesm2022/ngwr-page-header.mjs +21 -0
  130. package/fesm2022/ngwr-page-header.mjs.map +1 -1
  131. package/fesm2022/ngwr-pagination.mjs +2 -0
  132. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  133. package/fesm2022/ngwr-pipes.mjs +8 -1
  134. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  135. package/fesm2022/ngwr-popconfirm.mjs +2 -1
  136. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  137. package/fesm2022/ngwr-popover.mjs +47 -3
  138. package/fesm2022/ngwr-popover.mjs.map +1 -1
  139. package/fesm2022/ngwr-qr.mjs +6 -2
  140. package/fesm2022/ngwr-qr.mjs.map +1 -1
  141. package/fesm2022/ngwr-radio.mjs +71 -5
  142. package/fesm2022/ngwr-radio.mjs.map +1 -1
  143. package/fesm2022/ngwr-schema-form.mjs +10 -1
  144. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  145. package/fesm2022/ngwr-scroll.mjs +1 -3
  146. package/fesm2022/ngwr-scroll.mjs.map +1 -1
  147. package/fesm2022/ngwr-segmented.mjs +20 -0
  148. package/fesm2022/ngwr-segmented.mjs.map +1 -1
  149. package/fesm2022/ngwr-select.mjs +80 -9
  150. package/fesm2022/ngwr-select.mjs.map +1 -1
  151. package/fesm2022/ngwr-sortable-list.mjs +16 -4
  152. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  153. package/fesm2022/ngwr-storage.mjs +1 -1
  154. package/fesm2022/ngwr-storage.mjs.map +1 -1
  155. package/fesm2022/ngwr-switch.mjs +2 -2
  156. package/fesm2022/ngwr-switch.mjs.map +1 -1
  157. package/fesm2022/ngwr-table.mjs +41 -7
  158. package/fesm2022/ngwr-table.mjs.map +1 -1
  159. package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
  160. package/fesm2022/ngwr-textarea.mjs +2 -2
  161. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  162. package/fesm2022/ngwr-toast.mjs +28 -0
  163. package/fesm2022/ngwr-toast.mjs.map +1 -1
  164. package/fesm2022/ngwr-tour.mjs +2 -2
  165. package/fesm2022/ngwr-tour.mjs.map +1 -1
  166. package/fesm2022/ngwr-typography.mjs +20 -0
  167. package/fesm2022/ngwr-typography.mjs.map +1 -1
  168. package/fesm2022/ngwr-utils-router.mjs.map +1 -1
  169. package/fesm2022/ngwr-utils.mjs +46 -4
  170. package/fesm2022/ngwr-utils.mjs.map +1 -1
  171. package/fesm2022/ngwr-validators.mjs +33 -1
  172. package/fesm2022/ngwr-validators.mjs.map +1 -1
  173. package/fesm2022/ngwr-version.mjs +1 -1
  174. package/fesm2022/ngwr-version.mjs.map +1 -1
  175. package/form/styles/_index.scss +37 -0
  176. package/graph/styles/_index.scss +1 -9
  177. package/i18n/ar.json +15 -0
  178. package/i18n/cs.json +15 -0
  179. package/i18n/de.json +15 -0
  180. package/i18n/en.json +15 -0
  181. package/i18n/es.json +15 -0
  182. package/i18n/fr.json +15 -0
  183. package/i18n/he.json +15 -0
  184. package/i18n/hi.json +15 -0
  185. package/i18n/id.json +15 -0
  186. package/i18n/it.json +15 -0
  187. package/i18n/ja.json +15 -0
  188. package/i18n/ko.json +15 -0
  189. package/i18n/nl.json +15 -0
  190. package/i18n/pl.json +15 -0
  191. package/i18n/pt.json +15 -0
  192. package/i18n/ru.json +15 -0
  193. package/i18n/sv.json +15 -0
  194. package/i18n/tr.json +15 -0
  195. package/i18n/uk.json +15 -0
  196. package/i18n/vi.json +15 -0
  197. package/i18n/zh-TW.json +15 -0
  198. package/i18n/zh.json +15 -0
  199. package/image-cropper/styles/_index.scss +1 -9
  200. package/input-number/styles/_index.scss +7 -0
  201. package/layout/styles/_index.scss +13 -1
  202. package/llms-full.txt +10 -10
  203. package/loading-bar/styles/_rules.scss +6 -0
  204. package/package.json +2 -2
  205. package/page-header/styles/_index.scss +18 -0
  206. package/popover/styles/_index.scss +7 -0
  207. package/schematics/use/symbol-map.json +2 -0
  208. package/segmented/styles/_index.scss +7 -0
  209. package/select/styles/_index.scss +7 -0
  210. package/sidebar/styles/_index.scss +6 -0
  211. package/skills/ngwr/references/catalog.md +1 -1
  212. package/sortable-list/styles/_rules.scss +1 -9
  213. package/speed-dial/styles/_index.scss +6 -0
  214. package/stepper/styles/_index.scss +1 -9
  215. package/table/styles/_index.scss +49 -0
  216. package/theme/_index.scss +12 -1
  217. package/theme/styles/_colors.scss +11 -0
  218. package/theme/styles/_contrast.scss +6 -0
  219. package/theme/styles/_index.scss +1 -0
  220. package/theme/styles/_mixins.scss +45 -0
  221. package/theme/styles/_print.scss +17 -0
  222. package/toast/styles/_index.scss +7 -0
  223. package/tour/styles/_index.scss +8 -0
  224. package/tree/styles/_index.scss +1 -9
  225. package/types/ngwr-anchor.d.ts +3 -0
  226. package/types/ngwr-animations-aurora.d.ts +6 -0
  227. package/types/ngwr-animations-blur-reveal.d.ts +6 -0
  228. package/types/ngwr-animations-click-sparks.d.ts +6 -0
  229. package/types/ngwr-animations-confetti.d.ts +6 -0
  230. package/types/ngwr-animations-decode.d.ts +6 -0
  231. package/types/ngwr-animations-destruct.d.ts +6 -0
  232. package/types/ngwr-animations-dot-grid.d.ts +6 -0
  233. package/types/ngwr-animations-falling-letters.d.ts +6 -0
  234. package/types/ngwr-animations-flow-lines.d.ts +6 -0
  235. package/types/ngwr-animations-fluid-cursor.d.ts +6 -0
  236. package/types/ngwr-animations-glitch.d.ts +6 -0
  237. package/types/ngwr-animations-glow-border.d.ts +6 -0
  238. package/types/ngwr-animations-gradient-flow.d.ts +6 -0
  239. package/types/ngwr-animations-marquee.d.ts +6 -0
  240. package/types/ngwr-animations-orbit.d.ts +6 -0
  241. package/types/ngwr-animations-reveal.d.ts +6 -0
  242. package/types/ngwr-animations-ripple-grid.d.ts +6 -0
  243. package/types/ngwr-animations-rotate-reveal.d.ts +6 -0
  244. package/types/ngwr-animations-shimmer.d.ts +6 -0
  245. package/types/ngwr-animations-spotlight.d.ts +6 -0
  246. package/types/ngwr-animations-thread-lines.d.ts +6 -0
  247. package/types/ngwr-animations-tilt.d.ts +10 -0
  248. package/types/ngwr-animations-typewriter.d.ts +6 -0
  249. package/types/ngwr-breadcrumbs.d.ts +25 -0
  250. package/types/ngwr-button.d.ts +23 -3
  251. package/types/ngwr-carousel.d.ts +2 -0
  252. package/types/ngwr-cascader.d.ts +7 -0
  253. package/types/ngwr-charts-core.d.ts +16 -0
  254. package/types/ngwr-charts-meter-group.d.ts +2 -0
  255. package/types/ngwr-checkbox.d.ts +1 -0
  256. package/types/ngwr-color-picker.d.ts +1 -0
  257. package/types/ngwr-context-menu.d.ts +1 -1
  258. package/types/ngwr-date-picker.d.ts +19 -0
  259. package/types/ngwr-dialog.d.ts +39 -8
  260. package/types/ngwr-directives.d.ts +12 -4
  261. package/types/ngwr-drawer.d.ts +1 -1
  262. package/types/ngwr-dropdown.d.ts +1 -1
  263. package/types/ngwr-event-calendar.d.ts +4 -0
  264. package/types/ngwr-form.d.ts +85 -1
  265. package/types/ngwr-i18n.d.ts +65 -5
  266. package/types/ngwr-input-number.d.ts +8 -0
  267. package/types/ngwr-input.d.ts +7 -0
  268. package/types/ngwr-layout.d.ts +1 -1
  269. package/types/ngwr-loading-bar-router.d.ts +6 -0
  270. package/types/ngwr-page-header.d.ts +23 -1
  271. package/types/ngwr-popconfirm.d.ts +1 -1
  272. package/types/ngwr-popover.d.ts +28 -4
  273. package/types/ngwr-radio.d.ts +47 -5
  274. package/types/ngwr-segmented.d.ts +7 -0
  275. package/types/ngwr-select.d.ts +57 -13
  276. package/types/ngwr-sortable-list.d.ts +20 -7
  277. package/types/ngwr-table.d.ts +58 -5
  278. package/types/ngwr-tabs-router.d.ts +6 -0
  279. package/types/ngwr-toast.d.ts +11 -0
  280. package/types/ngwr-tour.d.ts +0 -1
  281. package/types/ngwr-typography.d.ts +7 -0
  282. package/types/ngwr-utils-router.d.ts +6 -0
  283. package/types/ngwr-utils.d.ts +56 -2
  284. package/types/ngwr-validators.d.ts +49 -1
  285. package/types/ngwr-version.d.ts +1 -1
  286. package/typography/styles/_index.scss +4 -0
  287. package/window/styles/_index.scss +1 -9
package/i18n/tr.json CHANGED
@@ -546,5 +546,20 @@
546
546
  "marquee": {
547
547
  "pause": "Duraklat",
548
548
  "play": "Oynat"
549
+ },
550
+ "httpError": {
551
+ "400": "Sunucu verileri kabul etmedi. Alanları kontrol edin.",
552
+ "401": "Oturumunuz sona erdi. Tekrar giriş yapın.",
553
+ "403": "Bu işlem için yetkiniz yok.",
554
+ "404": "Bulunamadı. Silinmiş olabilir.",
555
+ "409": "Mevcut verilerle çakışıyor. Sayfayı yenileyip tekrar deneyin.",
556
+ "413": "Veriler gönderilemeyecek kadar büyük.",
557
+ "422": "Bazı veriler geçersiz. Alanları kontrol edin.",
558
+ "429": "Çok fazla istek gönderildi. Biraz sonra tekrar deneyin.",
559
+ "503": "Sunucu kullanılamıyor. Bir dakika sonra tekrar deneyin.",
560
+ "network": "Sunucuya bağlanılamadı. Ağınızı kontrol edip tekrar deneyin.",
561
+ "4xx": "İstek reddedildi. Hata kodu: {{status}}.",
562
+ "5xx": "Sunucu hatası. Daha sonra tekrar deneyin. Hata kodu: {{status}}.",
563
+ "unknown": "Bir şeyler ters gitti. Daha sonra tekrar deneyin."
549
564
  }
550
565
  }
package/i18n/uk.json CHANGED
@@ -546,5 +546,20 @@
546
546
  "marquee": {
547
547
  "pause": "Пауза",
548
548
  "play": "Відтворити"
549
+ },
550
+ "httpError": {
551
+ "400": "Сервер не прийняв дані. Перевірте поля.",
552
+ "401": "Сесія завершилася. Увійдіть знову.",
553
+ "403": "Недостатньо прав для цієї дії.",
554
+ "404": "Не знайдено. Можливо, запис видалили.",
555
+ "409": "Це суперечить уже збереженим даним. Оновіть сторінку і повторіть.",
556
+ "413": "Дані завеликі для надсилання.",
557
+ "422": "Частину даних заповнено неправильно. Перевірте поля.",
558
+ "429": "Забагато запитів. Повторіть трохи пізніше.",
559
+ "503": "Сервер недоступний. Повторіть за хвилину.",
560
+ "network": "Немає зв’язку із сервером. Перевірте підключення і повторіть.",
561
+ "4xx": "Запит відхилено. Код помилки: {{status}}.",
562
+ "5xx": "Помилка на сервері. Повторіть пізніше. Код помилки: {{status}}.",
563
+ "unknown": "Щось пішло не так. Повторіть пізніше."
549
564
  }
550
565
  }
package/i18n/vi.json CHANGED
@@ -546,5 +546,20 @@
546
546
  "marquee": {
547
547
  "pause": "Tạm dừng",
548
548
  "play": "Phát"
549
+ },
550
+ "httpError": {
551
+ "400": "Máy chủ không chấp nhận dữ liệu. Hãy kiểm tra các trường.",
552
+ "401": "Phiên đăng nhập đã kết thúc. Hãy đăng nhập lại.",
553
+ "403": "Bạn không có quyền thực hiện thao tác này.",
554
+ "404": "Không tìm thấy. Có thể mục này đã bị xóa.",
555
+ "409": "Xung đột với dữ liệu hiện có. Hãy tải lại trang và thử lại.",
556
+ "413": "Dữ liệu quá lớn để gửi.",
557
+ "422": "Một số dữ liệu không hợp lệ. Hãy kiểm tra các trường.",
558
+ "429": "Quá nhiều yêu cầu. Hãy thử lại sau giây lát.",
559
+ "503": "Máy chủ không khả dụng. Hãy thử lại sau một phút.",
560
+ "network": "Không có kết nối tới máy chủ. Hãy kiểm tra mạng và thử lại.",
561
+ "4xx": "Yêu cầu bị từ chối. Mã lỗi: {{status}}.",
562
+ "5xx": "Máy chủ gặp lỗi. Hãy thử lại sau. Mã lỗi: {{status}}.",
563
+ "unknown": "Đã xảy ra lỗi. Hãy thử lại sau."
549
564
  }
550
565
  }
package/i18n/zh-TW.json CHANGED
@@ -546,5 +546,20 @@
546
546
  "marquee": {
547
547
  "pause": "暫停",
548
548
  "play": "播放"
549
+ },
550
+ "httpError": {
551
+ "400": "伺服器未接受資料。請檢查各欄位。",
552
+ "401": "工作階段已結束。請重新登入。",
553
+ "403": "您沒有執行此操作的權限。",
554
+ "404": "找不到。該內容可能已被刪除。",
555
+ "409": "與現有資料衝突。請重新整理頁面後再試一次。",
556
+ "413": "資料過大,無法傳送。",
557
+ "422": "部分資料無效。請檢查各欄位。",
558
+ "429": "要求過多。請稍後再試。",
559
+ "503": "伺服器無法使用。請一分鐘後再試。",
560
+ "network": "無法連線到伺服器。請檢查網路後再試一次。",
561
+ "4xx": "要求遭到拒絕。錯誤代碼:{{status}}。",
562
+ "5xx": "伺服器發生錯誤。請稍後再試。錯誤代碼:{{status}}。",
563
+ "unknown": "發生問題。請稍後再試。"
549
564
  }
550
565
  }
package/i18n/zh.json CHANGED
@@ -546,5 +546,20 @@
546
546
  "marquee": {
547
547
  "pause": "暂停",
548
548
  "play": "播放"
549
+ },
550
+ "httpError": {
551
+ "400": "服务器未接受数据。请检查各字段。",
552
+ "401": "会话已结束。请重新登录。",
553
+ "403": "您没有执行此操作的权限。",
554
+ "404": "未找到。该内容可能已被删除。",
555
+ "409": "与现有数据冲突。请刷新页面后重试。",
556
+ "413": "数据过大,无法发送。",
557
+ "422": "部分数据无效。请检查各字段。",
558
+ "429": "请求过多。请稍后重试。",
559
+ "503": "服务器不可用。请一分钟后重试。",
560
+ "network": "无法连接服务器。请检查网络后重试。",
561
+ "4xx": "请求被拒绝。错误代码:{{status}}。",
562
+ "5xx": "服务器出错。请稍后重试。错误代码:{{status}}。",
563
+ "unknown": "出了点问题。请稍后重试。"
549
564
  }
550
565
  }
@@ -56,15 +56,7 @@
56
56
  // crop rectangle and its handles are the sighted affordance for the same two
57
57
  // things.
58
58
  &__sr-only {
59
- position: absolute;
60
- width: 1px;
61
- height: 1px;
62
- padding: 0;
63
- margin: -1px;
64
- overflow: hidden;
65
- clip: rect(0, 0, 0, 0);
66
- white-space: nowrap;
67
- border: 0;
59
+ @include theme.visually-hidden;
68
60
  }
69
61
 
70
62
  &__handle {
@@ -41,6 +41,13 @@
41
41
  width: 100%;
42
42
  }
43
43
 
44
+ // Layout
45
+ &--block,
46
+ &:where([block]:not([block='false'])) {
47
+ display: block;
48
+ width: 100%;
49
+ }
50
+
44
51
  &--sm,
45
52
  &:where([size='sm']) {
46
53
  --wr-input-number-step-icon-size: var(--wr-control-font-size-sm); // 12px
@@ -28,11 +28,14 @@
28
28
  }
29
29
 
30
30
  .wr-layout-content {
31
+ // One length: `wr-page-header[bleed]` negates it to reach the edges.
32
+ --wr-layout-content-padding: var(--wr-space-xl);
33
+
31
34
  display: block;
32
35
  flex: 1 1 auto;
33
36
  min-height: 0;
34
37
  min-width: 0;
35
- padding: var(--wr-space-xl);
38
+ padding: var(--wr-layout-content-padding);
36
39
  background: var(--wr-color-surface);
37
40
  font-family: var(--wr-font-family-base);
38
41
  color: var(--wr-color-on-surface);
@@ -64,3 +67,12 @@
64
67
  border-inline-start: 1px solid var(--wr-border-base);
65
68
  }
66
69
  }
70
+
71
+ // The header and the sider are app chrome. The content is a flex item that
72
+ // grows, so it takes the sider's width with nothing left to reset.
73
+ @media print {
74
+ .wr-layout-header,
75
+ .wr-layout-sider {
76
+ display: none;
77
+ }
78
+ }
package/llms-full.txt CHANGED
@@ -243,7 +243,7 @@
243
243
  ## ngwr/button
244
244
  - import: `import { WrButton } from 'ngwr/button'`
245
245
  - selector: `wr-btn-group`, `wr-btn`, `button[wr-btn]`, `a[wr-btn]`
246
- - exports: WrButton, WrButtonGroup, WrButtonSize, WrButtonShape, WrButtonIconPosition
246
+ - exports: WrButton, WrButtonGroup, WR_BUTTON_SIZE, WrButtonSize, WrButtonShape, WrButtonIconPosition
247
247
  - A button for an action or a link.
248
248
 
249
249
  ## ngwr/button/testing
@@ -626,7 +626,7 @@
626
626
  ## ngwr/dialog
627
627
  - import: `import { WrDialog } from 'ngwr/dialog'`
628
628
  - selector: `[wrDialogClose]`, `[wrDialogContent]`, `[wrDialogFooter]`, `[wrDialogTitle]`
629
- - exports: WrDialog, WrDialogRef, WR_DIALOG_DATA, WR_DIALOG_REF, withDialog, WrDialogAlertOptions, WrDialogAutoFocus, WrDialogConfirmOptions, WrDialogDefaults, WrDialogIntent, WrDialogMessageOptions, WrDialogOptions, WrDialogRole, WrDialogTitle, WrDialogContent, WrDialogFooter, WrDialogClose
629
+ - exports: WrDialog, WrDialogRef, WR_DIALOG_DATA, WR_DIALOG_REF, withDialog, WrDialogAlertOptions, WrDialogAutoFocus, WrDialogConfirmOptions, WrDialogDefaults, WrDialogIntent, WrDialogMessageOptions, WrDialogOptions, WrDialogRole, WrDialogSize, WrDialogTitle, WrDialogContent, WrDialogFooter, WrDialogClose
630
630
  - keywords: modal, wr-dialog, overlay, portal
631
631
  - Open any component as a modal dialog and await its result.
632
632
 
@@ -711,9 +711,9 @@
711
711
 
712
712
  ## ngwr/form
713
713
  - import: `import { WrFormField } from 'ngwr/form'`
714
- - selector: `wr-form-error`, `wr-form-field`, `wr-form-item`
715
- - exports: WrFormItem, WrFormField, WrFormError, WR_FORM_FIELD, WrFormFieldContext, useFormFieldAria, WrFormFieldAria, WR_FIELD, wrFieldLabel, WrFieldKind, WrFieldOption, WrFieldSection, WrFieldSpec
716
- - A plain layout wrapper for a label, a control and its error.
714
+ - selector: `wr-form-error`, `wr-form-field`, `wr-form-item`, `[wrForm]`, `[wrFormSpan]`
715
+ - exports: WrForm, WrFormSpan, WrFormItem, WrFormField, WrFormError, WR_FORM_FIELD, WrFormFieldContext, useFormFieldAria, WrFormFieldAria, WR_FIELD, wrFieldLabel, WrFieldKind, WrFieldOption, WrFieldSection, WrFieldSpec
716
+ - The layout of a form's fields, and a plain wrapper for a label, a control and its error.
717
717
 
718
718
  ## ngwr/form/testing
719
719
  - import: `import { WrFormFieldHarness } from 'ngwr/form/testing'`
@@ -740,7 +740,7 @@
740
740
  ## ngwr/i18n
741
741
  - import: `import { WrI18n } from 'ngwr/i18n'`
742
742
  - selector: `[wrT]`
743
- - exports: WrI18n, WrTPipe, WrTDirective, WR_I18N_CONFIG, DEFAULT_WR_I18N_CONFIG, WrI18nCatalog, WrI18nConfig, WrI18nConfigResolved, WrI18nParams, WrI18nTranslateOptions, WrI18nMissingHandler, WR_I18N_LOADER, WrI18nLoader, WR_I18N_BASE_CATALOGS, WrI18nBaseCatalogs, WrI18nStaticLoader, WrI18nStaticCatalogs, WrI18nStaticScopedCatalogs, WrI18nHttpLoader, WrI18nHttpLoaderConfig, provideWrI18n, provideWrI18nBaseCatalogs, provideWrI18nStaticLoader, provideWrI18nHttpLoader, ProvideWrI18nOptions, useI18nText, wrReadI18nText, useI18nFormatter
743
+ - exports: WrI18n, WrTPipe, WrTDirective, WR_I18N_CONFIG, DEFAULT_WR_I18N_CONFIG, WrI18nCatalog, WrI18nConfig, WrI18nConfigResolved, WrI18nParams, WrI18nTranslateOptions, WrI18nMissingHandler, WR_I18N_LOADER, WrI18nLoader, WR_I18N_BASE_CATALOGS, WrI18nBaseCatalogs, WrI18nStaticLoader, WrI18nStaticCatalogs, WrI18nStaticScopedCatalogs, WrI18nHttpLoader, WrI18nHttpLoaderConfig, provideWrI18n, provideWrI18nBaseCatalogs, provideWrI18nStaticLoader, provideWrI18nHttpLoader, ProvideWrI18nOptions, useI18nText, wrReadI18nText, useI18nFormatter, wrHttpStatus, wrHttpErrorText, WrHttpErrorOverride, WrHttpErrorTextOptions
744
744
  - keywords: translation, locale, transloco, wr-i18n, service
745
745
  - Translate strings at runtime and switch the locale without a reload.
746
746
 
@@ -1230,7 +1230,7 @@
1230
1230
  ## ngwr/table
1231
1231
  - import: `import { WrTable } from 'ngwr/table'`
1232
1232
  - selector: `[wrTableCell]`, `wr-table-column-chooser`, `[wrTableEditCell]`, `ng-template[wrTableExpand]`, `wr-table-filter`, `ng-template[wrTableGroupHeader]`, `ng-template[wrTableSelectionBar]`, `wr-table-sort`, `wr-table`
1233
- - exports: WrTable, WrTableCell, WrTableColumnChooser, WrTableEditCell, WrTableExpand, WrTableGroupHeader, WrTableSelectionBar, WrTableSort, WrTableFilter, wrReadField, wrSortRows, WrTableCellContext, WrTableCellEdit, WrTableChooserColumn, WrTableColumn, WrTableColumnAlign, WrTableColumns, WrTableCsvOptions, WrTableEditCellContext, WrTableEditable, WrTableExpandContext, WrTableFilterChange, WrTableFilterItem, WrTableGroupContext, WrTableLoadingMode, WrTableRow, WrTableRowClass, WrTableRowClick, WrTableSelectionContext, WrTableSortAccessor, WrTableSortState, WrTableSortDirection, WrTableState, WrTableSummary, WrTableSummaryContext, WrTableTruncate
1233
+ - exports: WrTable, WrTableCell, WrTableColumnChooser, WrTableEditCell, WrTableExpand, WrTableGroupHeader, WrTableSelectionBar, WrTableSort, WrTableFilter, wrReadField, wrSortRows, WrTableCellContext, WrTableCellEdit, WrTableChooserColumn, WrTableColumn, WrTableColumnAlign, WrTableColumns, WrTableCsvOptions, WrTableEditCellContext, WrTableEditable, WrTableExpandContext, WrTableFilterChange, WrTableFilterItem, WrTableGroupContext, WrTableLayout, WrTableLoadingMode, WrTableRow, WrTableRowClass, WrTableRowClick, WrTableSelectionContext, WrTableSortAccessor, WrTableSortState, WrTableSortDirection, WrTableState, WrTableSummary, WrTableSummaryContext, WrTableTruncate
1234
1234
  - keywords: wrsortrows, wrreadfield, sort
1235
1235
  - Rows of data with sorting, filtering, paging and custom cells.
1236
1236
 
@@ -1330,12 +1330,12 @@
1330
1330
  - import: `import { WrTypography } from 'ngwr/typography'`
1331
1331
  - selector: `[wrTypography]`
1332
1332
  - exports: WrTypography, WrTypographyVariant, WrTypographyAlign, WrTypographyTone
1333
- - keywords: wr-typography, variant, tone, align, truncate, mono, directive
1333
+ - keywords: wr-typography, variant, tone, align, truncate, mono, numeric, tabular, directive
1334
1334
  - Style any text element with a shared text role.
1335
1335
 
1336
1336
  ## ngwr/utils
1337
1337
  - import: `import { wrIsDefined } from 'ngwr/utils'`
1338
- - exports: WrMaybe, WrSafeAny, WrClassInput, wrIsDefined, wrIsNonEmptyArray, wrIsObservable, wrClamp, wrRound, wrDecimal, wrDecimalAdd, wrDecimalCompare, wrDecimalDivide, wrDecimalMultiply, wrDecimalRound, wrDecimalSubtract, WrDecimalLike, wrNumAttr, wrToClassList, wrIsSafeCssValue, wrResolveCssSize, WrResolveCssSizeOptions, WrResolvedCssSize, wrGetRootFontSize, wrGetFocusableElements, wrResolveCssColor, wrResolveCssColorChannels, wrTrapFocus, wrWatchColorScheme, wrCheckStyles, wrContentDispositionFileName, wrDownloadBlob, wrRestoreFocus, wrWatchDragCancel, WrWatchColorSchemeOptions, WrColorScheme, wrRandomId, wrNoop, wrDebounce, wrThrottle, WrDebouncedFn, WrThrottledFn, WR_KEYS, WR_KEY_LABELS, wrHasModifier, wrIsComposing, wrIsPrintableKey, wrTypeahead, WrKey, WrTypeahead, WrTypeaheadItem, WrTypeaheadOptions, wrBadgeError, wrBadgeLog, wrBadgeWarn, wrInitials, WrInitialsOptions, WrInitialsOrder, WrInitialsStyle, WR_LIVE_LOCALE, wrFeature, WrFeature, wrAction, wrKeyedAction, wrResourceValue, WrAction, WrActionStatus, WrKeyedAction
1338
+ - exports: WrMaybe, WrSafeAny, WrClassInput, wrIsDefined, wrIsNonEmptyArray, wrIsObservable, wrClamp, wrRound, wrDecimal, wrDecimalAdd, wrDecimalCompare, wrDecimalDivide, wrDecimalMultiply, wrDecimalRound, wrDecimalSubtract, WrDecimalLike, wrNumAttr, wrToClassList, wrIsSafeCssValue, wrResolveCssSize, WrResolveCssSizeOptions, WrResolvedCssSize, wrGetRootFontSize, wrGetFocusableElements, wrResolveCssColor, wrResolveCssColorChannels, wrTrapFocus, wrWatchColorScheme, wrCheckStyles, wrContentDispositionFileName, wrDownloadBlob, wrRestoreFocus, wrNoteFocusReturn, wrFocusFirstInvalid, wrWatchDragCancel, WrWatchColorSchemeOptions, WrColorScheme, WrFocusFirstInvalidOptions, wrRandomId, wrNoop, wrDebounce, wrThrottle, WrDebouncedFn, WrThrottledFn, WR_KEYS, WR_KEY_LABELS, wrHasModifier, wrIsComposing, wrIsPrintableKey, wrTypeahead, WrKey, WrTypeahead, WrTypeaheadItem, WrTypeaheadOptions, wrBadgeError, wrBadgeLog, wrBadgeWarn, wrInitials, WrInitialsOptions, WrInitialsOrder, WrInitialsStyle, WR_LIVE_LOCALE, wrFeature, WrFeature, wrAction, wrKeyedAction, wrResourceValue, WrAction, WrActionStatus, WrKeyedAction
1339
1339
  - Small helpers: coercion (`wrNumAttr`), DOM and keyboard guards, maths, ids, `wrDebounce` / `wrThrottle`, `wrResolveCssColor`, and the shared types `WrMaybe` and `WrSafeAny`.
1340
1340
 
1341
1341
  ## ngwr/utils/router
@@ -1345,7 +1345,7 @@
1345
1345
 
1346
1346
  ## ngwr/validators
1347
1347
  - import: `import { WrValidators } from 'ngwr/validators'`
1348
- - exports: WrValidators
1348
+ - exports: wrMatches, wrNotBlank, WrRuleOptions, WrValidators
1349
1349
  - `WrValidators`, form validators in the shape of Angular's `Validators`: card number, CVC, IBAN, hex colour, URL, matching fields, min / max date, one-of and no whitespace.
1350
1350
 
1351
1351
  ## ngwr/version
@@ -34,3 +34,9 @@
34
34
  opacity 0.2s ease;
35
35
  }
36
36
  }
37
+
38
+ @media print {
39
+ .wr-loading-bar {
40
+ display: none;
41
+ }
42
+ }
package/package.json CHANGED
@@ -48,7 +48,7 @@
48
48
  "rxjs": "^7.8.2",
49
49
  "prosemirror-commands": "^1.7.2",
50
50
  "prosemirror-history": "^1.5.1",
51
- "prosemirror-inputrules": "^1.5.1",
51
+ "prosemirror-inputrules": "^1.6.0",
52
52
  "prosemirror-keymap": "^1.2.3",
53
53
  "prosemirror-model": "^1.25.13",
54
54
  "prosemirror-schema-list": "^1.6.0",
@@ -1218,5 +1218,5 @@
1218
1218
  "sass": "./styles/_typography.scss"
1219
1219
  }
1220
1220
  },
1221
- "version": "16.5.0"
1221
+ "version": "16.6.0"
1222
1222
  }
@@ -27,6 +27,8 @@
27
27
  // it, and level with `wr-affix`. Raise or lower it to sit under an app bar.
28
28
  --wr-page-header-sticky-z: 10;
29
29
  --wr-page-header-sticky-bg: var(--wr-color-surface);
30
+ // Read only under `bleed`. Inherited from `wr-layout-content`, zero outside one.
31
+ --wr-page-header-bleed: var(--wr-layout-content-padding, 0px);
30
32
 
31
33
  display: flex;
32
34
  flex-direction: column;
@@ -96,6 +98,15 @@
96
98
  background: var(--wr-page-header-sticky-bg);
97
99
  }
98
100
 
101
+ // Opt-in (`bleed`): over the padding of the box it tops, on three sides, and
102
+ // padded by as much, so its text stays in line with the content under it.
103
+ &--bleed {
104
+ width: auto;
105
+ margin-block-start: calc(-1 * var(--wr-page-header-bleed));
106
+ margin-inline: calc(-1 * var(--wr-page-header-bleed));
107
+ padding-inline: var(--wr-page-header-bleed);
108
+ }
109
+
99
110
  &__breadcrumbs {
100
111
  font-size: var(--wr-page-header-breadcrumbs-font-size);
101
112
  color: var(--wr-color-on-surface-muted);
@@ -227,3 +238,10 @@
227
238
  align-items: flex-start;
228
239
  }
229
240
  }
241
+
242
+ // Nothing scrolls on paper, and a pinned bar would sit over the first lines.
243
+ @media print {
244
+ .wr-page-header--sticky {
245
+ position: static;
246
+ }
247
+ }
@@ -272,3 +272,10 @@
272
272
  animation: none;
273
273
  }
274
274
  }
275
+
276
+ // A hint that was open under the pointer. A popover is content and prints.
277
+ @media print {
278
+ .wr-tooltip-overlay {
279
+ display: none;
280
+ }
281
+ }
@@ -116,6 +116,8 @@
116
116
  "WrEventCalendar": "ngwr/event-calendar",
117
117
  "WrCalendarEventTemplate": "ngwr/event-calendar",
118
118
  "WrFileUpload": "ngwr/file-upload",
119
+ "WrForm": "ngwr/form",
120
+ "WrFormSpan": "ngwr/form",
119
121
  "WrFormItem": "ngwr/form",
120
122
  "WrFormField": "ngwr/form",
121
123
  "WrFormError": "ngwr/form",
@@ -63,6 +63,13 @@
63
63
  --wr-segmented-option-py: 0.1875rem; // 3px
64
64
  }
65
65
 
66
+ // Layout
67
+ &--block,
68
+ &:where([block]:not([block='false'])) {
69
+ display: grid;
70
+ width: 100%;
71
+ }
72
+
66
73
  &__thumb {
67
74
  position: absolute;
68
75
  top: var(--wr-segmented-padding);
@@ -70,6 +70,13 @@
70
70
  height: 0;
71
71
  }
72
72
 
73
+ // Layout
74
+ &--block,
75
+ &:where([block]:not([block='false'])) {
76
+ display: grid;
77
+ width: 100%;
78
+ }
79
+
73
80
  // Sizes — share the `--wr-control-*` contract (22 / 30 / 36 px). Multi/tag
74
81
  // min-height and the search/tag inputs all read these vars, so every mode
75
82
  // tracks the size. Declared before `--rounded` so the pill modifier wins.
@@ -396,3 +396,9 @@
396
396
  border: 0;
397
397
  }
398
398
  }
399
+
400
+ @media print {
401
+ .wr-sidebar {
402
+ display: none;
403
+ }
404
+ }
@@ -124,7 +124,7 @@ root barrel for components: the root `ngwr` exports only `provideWr()`.
124
124
  | `ngwr/event-calendar/testing` | `import { WrEventCalendarChipHarness } from 'ngwr/event-calendar/testing'` | — |
125
125
  | `ngwr/file-upload` | `import { WrFileUpload } from 'ngwr/file-upload'` | `wr-file-upload` |
126
126
  | `ngwr/file-upload/testing` | `import { WrFileUploadHarness } from 'ngwr/file-upload/testing'` | — |
127
- | `ngwr/form` | `import { WrFormField } from 'ngwr/form'` | `wr-form-error` `wr-form-field` `wr-form-item` |
127
+ | `ngwr/form` | `import { WrFormField } from 'ngwr/form'` | `wr-form-error` `wr-form-field` `wr-form-item` `[wrForm]` `[wrFormSpan]` |
128
128
  | `ngwr/form/testing` | `import { WrFormFieldHarness } from 'ngwr/form/testing'` | — |
129
129
  | `ngwr/graph` | `import { WrGraph } from 'ngwr/graph'` | `ng-template[wrGraphNode]` `wr-graph` |
130
130
  | `ngwr/graph/testing` | `import { WrGraphHarness } from 'ngwr/graph/testing'` | — |
@@ -109,15 +109,7 @@
109
109
 
110
110
  // The key model and the position announcements: read out, never drawn.
111
111
  &__sr-only {
112
- position: absolute;
113
- width: 1px;
114
- height: 1px;
115
- padding: 0;
116
- margin: -1px;
117
- overflow: hidden;
118
- clip: rect(0, 0, 0, 0);
119
- white-space: nowrap;
120
- border: 0;
112
+ @include theme.visually-hidden;
121
113
  }
122
114
  }
123
115
 
@@ -232,3 +232,9 @@
232
232
  }
233
233
  }
234
234
  }
235
+
236
+ @media print {
237
+ .wr-speed-dial {
238
+ display: none;
239
+ }
240
+ }
@@ -227,15 +227,7 @@ $header-padding-block: 0.25rem;
227
227
  // Read, not shown: the "completed" state the check mark draws, in the header
228
228
  // button's name. Out of flow, so the label's column gap does not count it.
229
229
  &__sr-only {
230
- position: absolute;
231
- width: 1px;
232
- height: 1px;
233
- padding: 0;
234
- margin: -1px;
235
- overflow: hidden;
236
- clip: rect(0, 0, 0, 0);
237
- white-space: nowrap;
238
- border: 0;
230
+ @include theme.visually-hidden;
239
231
  }
240
232
 
241
233
  // `__description` is listed FIRST on purpose: `gen:css-vars` attributes a
@@ -54,6 +54,7 @@
54
54
  // A column's place in a multi-column sort, drawn after its indicator.
55
55
  --wr-table-sort-order-font-size: var(--wr-table-head-font-size);
56
56
  --wr-table-sort-order-font-weight: var(--wr-font-weight-semibold);
57
+ --wr-table-actions-gap: var(--wr-space-xs);
57
58
  --wr-table-tree-lead-margin-end: var(--wr-space-xs);
58
59
  --wr-table-tree-toggle-radius: var(--wr-border-radius-sm);
59
60
  --wr-table-expand-btn-padding: var(--wr-space-xs);
@@ -170,6 +171,21 @@
170
171
  overflow: hidden;
171
172
  }
172
173
 
174
+ // `layout="fixed"`: the widths hold and the text wraps. `anywhere`, because a
175
+ // fixed column cannot grow around a long word.
176
+ &__table--layout-fixed {
177
+ table-layout: fixed;
178
+ }
179
+
180
+ &__table--layout-fixed &__th,
181
+ &__table--layout-fixed &__td {
182
+ overflow-wrap: anywhere;
183
+ }
184
+
185
+ &__table--layout-fixed &__th {
186
+ white-space: normal;
187
+ }
188
+
173
189
  // `truncate: 'tooltip'`. The cut happens where the column cannot grow: under
174
190
  // a fixed layout, or at the `max-width` the component writes from `width`.
175
191
  &__td--truncate {
@@ -312,6 +328,31 @@
312
328
 
313
329
  // --- Row selection --------------------------------------------------------
314
330
  &__th--select,
331
+ // --- Row actions ----------------------------------------------------------
332
+ // `column.actions`. `width: 1%` shrinks the column to its buttons under auto
333
+ // layout; a fixed layout would read it literally, so there the column takes
334
+ // its `width`.
335
+ &__th--actions,
336
+ &__td--actions {
337
+ width: 1%;
338
+ text-align: end;
339
+ white-space: nowrap;
340
+ }
341
+
342
+ &__table--layout-fixed &__th--actions,
343
+ &__table--layout-fixed &__td--actions {
344
+ width: auto;
345
+ }
346
+
347
+ &__actions {
348
+ display: inline-flex;
349
+ flex-wrap: nowrap;
350
+ align-items: center;
351
+ justify-content: flex-end;
352
+ gap: var(--wr-table-actions-gap);
353
+ vertical-align: middle;
354
+ }
355
+
315
356
  &__td--select {
316
357
  width: 1%;
317
358
  white-space: nowrap;
@@ -748,6 +789,10 @@
748
789
  min-width: 0;
749
790
  }
750
791
 
792
+ &__sr-only {
793
+ @include theme.visually-hidden;
794
+ }
795
+
751
796
  &__loading {
752
797
  position: absolute;
753
798
  inset: 0;
@@ -1119,6 +1164,10 @@
1119
1164
  content: none;
1120
1165
  }
1121
1166
 
1167
+ .wr-table--responsive .wr-table__td--actions {
1168
+ width: auto;
1169
+ }
1170
+
1122
1171
  // Fixed-layout truncation is meaningless in cards — let values wrap again.
1123
1172
  .wr-table--responsive .wr-table__table--fixed .wr-table__td {
1124
1173
  overflow: visible;
package/theme/_index.scss CHANGED
@@ -43,7 +43,7 @@
43
43
  // gap: a dark value is the second argument of a `light-dark()` in any
44
44
  // declaration, in a global stylesheet and a component stylesheet alike, with
45
45
  // no selector for encapsulation to rewrite.
46
- @forward 'styles' hide smooth-br, touch-target, focus-ring, scrollbar, rebrand, contrast;
46
+ @forward 'styles' hide smooth-br, touch-target, focus-ring, scrollbar, visually-hidden, canvas, rebrand, contrast;
47
47
  @use 'styles' as base;
48
48
 
49
49
  /// iOS-style smooth corners, degrading to a plain radius where `corner-shape`
@@ -69,6 +69,17 @@
69
69
  @include base.scrollbar;
70
70
  }
71
71
 
72
+ /// Out of sight and out of flow, still read by a screen reader.
73
+ @mixin visually-hidden {
74
+ @include base.visually-hidden;
75
+ }
76
+
77
+ /// The page background, `--wr-color-canvas`: `body` at the stylesheet root, one
78
+ /// element inside a rule. Loading the theme paints nothing with it.
79
+ @mixin canvas {
80
+ @include base.canvas;
81
+ }
82
+
72
83
  /// Re-emit an intent's whole token set on the current selector, from one seed —
73
84
  /// or from two, the second for the dark scheme.
74
85
  @mixin rebrand($colors, $dark: ()) {
@@ -618,6 +618,17 @@ $ink-mix-more: (
618
618
  // into the background. Paint with `--wr-color-surface`, the role over it; a
619
619
  // colour that has to stay white in both schemes is a literal, never this.
620
620
  --wr-color-white: light-dark(#ffffff, #0b1120);
621
+
622
+ // The page background, one step behind `--wr-color-surface`, so a card or a
623
+ // table on it reads as raised. Nothing paints with it until an app opts in
624
+ // through the `canvas` mixin. Both sides are steps of the fixed scale: 1.10:1
625
+ // against the surface in light and 1.07:1 in dark. Body text reads 16.12:1 on
626
+ // it in light and muted text 6.87:1; an `-ink` on its own `-soft` tint drops
627
+ // to 4.64:1 at worst (`warning`), above AA and under the 5.0 target, and dark
628
+ // only gains. Declared here and not in `derived()`: a `:root` rebrand would
629
+ // re-declare it after the `prefers-contrast: more` override and switch that
630
+ // off.
631
+ --wr-color-canvas: light-dark(var(--wr-color-gray-100), var(--wr-color-gray-950));
621
632
  // The flat primitive, the same in both schemes. A scrim built on it is a mix
622
633
  // toward `transparent`: `color-mix(in srgb, var(--wr-color-black) 45%,
623
634
  // transparent)`.
@@ -59,6 +59,12 @@
59
59
  // contrast that trade flips — the reader has said which side they want.
60
60
  --wr-color-gray-4: light-dark(#718cad, #566b9b);
61
61
 
62
+ // The step behind the surface closes. On the light canvas an `-ink` at its
63
+ // high-contrast share reads 6.41:1 to 6.97:1 on a `-soft` tint for three
64
+ // intents, under the 7:1 this block promises, and the deepened hairline
65
+ // above already separates a card from the page.
66
+ --wr-color-canvas: var(--wr-color-surface);
67
+
62
68
  @each $name, $share in colors.$ink-mix-more {
63
69
  --wr-color-#{$name}-ink: color-mix(in srgb, var(--wr-color-#{$name}) #{$share}, var(--wr-color-gray-6));
64
70
  }
@@ -5,6 +5,7 @@
5
5
  @forward 'focus';
6
6
  @forward 'mixins';
7
7
  @forward 'motion';
8
+ @forward 'print';
8
9
  @forward 'scrollbar';
9
10
  @forward 'loaded';
10
11
  @use 'loaded';
@@ -122,3 +122,48 @@
122
122
  }
123
123
  }
124
124
  }
125
+
126
+ /// Visually hidden, still read by a screen reader: out of flow and clipped to
127
+ /// nothing, never `display: none` or `visibility: hidden`, which take the text
128
+ /// out of the accessible tree too.
129
+ ///
130
+ /// @example scss
131
+ /// .wr-tree__sr-only {
132
+ /// @include visually-hidden;
133
+ /// }
134
+ @mixin visually-hidden {
135
+ position: absolute;
136
+ width: 1px;
137
+ height: 1px;
138
+ padding: 0;
139
+ margin: -1px;
140
+ overflow: hidden;
141
+ clip: rect(0, 0, 0, 0);
142
+ white-space: nowrap;
143
+ border: 0;
144
+ }
145
+
146
+ /// Paints with `--wr-color-canvas`, the page background one step behind
147
+ /// `--wr-color-surface`: `body` when included at the stylesheet root, that
148
+ /// element when included inside a rule. Opt-in: loading the theme paints
149
+ /// nothing with the token.
150
+ ///
151
+ /// At the root the selector is `:where(body)`, zero specificity, so any rule of
152
+ /// a consumer wins.
153
+ ///
154
+ /// @example scss
155
+ /// @include theme.canvas;
156
+ ///
157
+ /// // `wr-layout` paints its own background over `body`.
158
+ /// .wr-layout-content {
159
+ /// @include theme.canvas;
160
+ /// }
161
+ @mixin canvas {
162
+ @if & {
163
+ background-color: var(--wr-color-canvas);
164
+ } @else {
165
+ :where(body) {
166
+ background-color: var(--wr-color-canvas);
167
+ }
168
+ }
169
+ }
@@ -0,0 +1,17 @@
1
+ // Print utilities, emitted with the token layer so every app has them.
2
+ //
3
+ // `!important` for the reason `_motion.scss` gives: the theme loads first, so a
4
+ // component's own `display` at the same specificity would win on source order,
5
+ // and a class put on a `wr-btn` or a flex row would hide nothing.
6
+
7
+ @media print {
8
+ .wr-no-print {
9
+ display: none !important;
10
+ }
11
+ }
12
+
13
+ @media not print {
14
+ .wr-print-only {
15
+ display: none !important;
16
+ }
17
+ }