viewkitjs 0.0.0-stage → 0.19.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 (1404) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/LICENSE.md +7 -0
  3. package/README.md +36 -2
  4. package/fields/CHANGELOG.md +1299 -0
  5. package/fields/NOTICE.md +12 -0
  6. package/fields/README.md +134 -0
  7. package/fields/dist/accept.d.ts +39 -0
  8. package/fields/dist/accept.js +309 -0
  9. package/fields/dist/actor.d.ts +16 -0
  10. package/fields/dist/actor.js +44 -0
  11. package/fields/dist/bands.d.ts +5 -0
  12. package/fields/dist/bands.js +12 -0
  13. package/fields/dist/close.d.ts +19 -0
  14. package/fields/dist/close.js +1 -0
  15. package/fields/dist/codecs.d.ts +32 -0
  16. package/fields/dist/codecs.js +119 -0
  17. package/fields/dist/conventions.d.ts +61 -0
  18. package/fields/dist/conventions.js +97 -0
  19. package/fields/dist/countries.d.ts +11 -0
  20. package/fields/dist/countries.js +98 -0
  21. package/fields/dist/creatable.d.ts +85 -0
  22. package/fields/dist/creatable.js +188 -0
  23. package/fields/dist/date-codec.d.ts +17 -0
  24. package/fields/dist/date-codec.js +41 -0
  25. package/fields/dist/definitions.d.ts +2 -0
  26. package/fields/dist/definitions.js +2 -0
  27. package/fields/dist/derived.d.ts +84 -0
  28. package/fields/dist/derived.js +126 -0
  29. package/fields/dist/design/category-colors.d.ts +17 -0
  30. package/fields/dist/design/category-colors.js +41 -0
  31. package/fields/dist/design/stage-marks.d.ts +26 -0
  32. package/fields/dist/design/stage-marks.js +1 -0
  33. package/fields/dist/design/status-slots.d.ts +34 -0
  34. package/fields/dist/design/status-slots.js +72 -0
  35. package/fields/dist/domain.d.ts +6 -0
  36. package/fields/dist/domain.js +34 -0
  37. package/fields/dist/entities.d.ts +67 -0
  38. package/fields/dist/entities.js +528 -0
  39. package/fields/dist/equality.d.ts +41 -0
  40. package/fields/dist/equality.js +114 -0
  41. package/fields/dist/errors.d.ts +3 -0
  42. package/fields/dist/errors.js +6 -0
  43. package/fields/dist/format/time.d.ts +25 -0
  44. package/fields/dist/format/time.js +77 -0
  45. package/fields/dist/formula.d.ts +54 -0
  46. package/fields/dist/formula.js +510 -0
  47. package/fields/dist/index.d.ts +35 -0
  48. package/fields/dist/index.js +32 -0
  49. package/fields/dist/kit.d.ts +23 -0
  50. package/fields/dist/kit.js +25 -0
  51. package/fields/dist/labels.d.ts +3 -0
  52. package/fields/dist/labels.js +5 -0
  53. package/fields/dist/link.d.ts +33 -0
  54. package/fields/dist/link.js +58 -0
  55. package/fields/dist/location.d.ts +26 -0
  56. package/fields/dist/location.js +92 -0
  57. package/fields/dist/markdown.d.ts +7 -0
  58. package/fields/dist/markdown.js +64 -0
  59. package/fields/dist/messages.d.ts +374 -0
  60. package/fields/dist/messages.js +332 -0
  61. package/fields/dist/name.d.ts +23 -0
  62. package/fields/dist/name.js +53 -0
  63. package/fields/dist/normalize.d.ts +6 -0
  64. package/fields/dist/normalize.js +17 -0
  65. package/fields/dist/optimistic.d.ts +37 -0
  66. package/fields/dist/optimistic.js +56 -0
  67. package/fields/dist/options.d.ts +26 -0
  68. package/fields/dist/options.js +31 -0
  69. package/fields/dist/parse-number.d.ts +55 -0
  70. package/fields/dist/parse-number.js +142 -0
  71. package/fields/dist/phone.d.ts +47 -0
  72. package/fields/dist/phone.js +121 -0
  73. package/fields/dist/places/format.d.ts +29 -0
  74. package/fields/dist/places/format.js +97 -0
  75. package/fields/dist/places/formats.d.ts +25 -0
  76. package/fields/dist/places/formats.js +260 -0
  77. package/fields/dist/places/index.d.ts +13 -0
  78. package/fields/dist/places/index.js +21 -0
  79. package/fields/dist/places/load-regions.d.ts +7 -0
  80. package/fields/dist/places/load-regions.js +65 -0
  81. package/fields/dist/places/regions/AD.d.ts +4 -0
  82. package/fields/dist/places/regions/AD.js +11 -0
  83. package/fields/dist/places/regions/AE.d.ts +4 -0
  84. package/fields/dist/places/regions/AE.js +11 -0
  85. package/fields/dist/places/regions/AM.d.ts +4 -0
  86. package/fields/dist/places/regions/AM.js +15 -0
  87. package/fields/dist/places/regions/AR.d.ts +4 -0
  88. package/fields/dist/places/regions/AR.js +28 -0
  89. package/fields/dist/places/regions/AU.d.ts +4 -0
  90. package/fields/dist/places/regions/AU.js +13 -0
  91. package/fields/dist/places/regions/BB.d.ts +4 -0
  92. package/fields/dist/places/regions/BB.js +15 -0
  93. package/fields/dist/places/regions/BR.d.ts +4 -0
  94. package/fields/dist/places/regions/BR.js +31 -0
  95. package/fields/dist/places/regions/BS.d.ts +4 -0
  96. package/fields/dist/places/regions/BS.js +23 -0
  97. package/fields/dist/places/regions/BY.d.ts +4 -0
  98. package/fields/dist/places/regions/BY.js +11 -0
  99. package/fields/dist/places/regions/CA.d.ts +4 -0
  100. package/fields/dist/places/regions/CA.js +17 -0
  101. package/fields/dist/places/regions/CL.d.ts +4 -0
  102. package/fields/dist/places/regions/CL.js +20 -0
  103. package/fields/dist/places/regions/CN.d.ts +4 -0
  104. package/fields/dist/places/regions/CN.js +38 -0
  105. package/fields/dist/places/regions/CO.d.ts +4 -0
  106. package/fields/dist/places/regions/CO.js +37 -0
  107. package/fields/dist/places/regions/CR.d.ts +4 -0
  108. package/fields/dist/places/regions/CR.js +11 -0
  109. package/fields/dist/places/regions/CU.d.ts +4 -0
  110. package/fields/dist/places/regions/CU.js +20 -0
  111. package/fields/dist/places/regions/CV.d.ts +4 -0
  112. package/fields/dist/places/regions/CV.js +13 -0
  113. package/fields/dist/places/regions/EE.d.ts +4 -0
  114. package/fields/dist/places/regions/EE.js +19 -0
  115. package/fields/dist/places/regions/EG.d.ts +4 -0
  116. package/fields/dist/places/regions/EG.js +31 -0
  117. package/fields/dist/places/regions/ES.d.ts +4 -0
  118. package/fields/dist/places/regions/ES.js +56 -0
  119. package/fields/dist/places/regions/FM.d.ts +4 -0
  120. package/fields/dist/places/regions/FM.js +8 -0
  121. package/fields/dist/places/regions/HK.d.ts +4 -0
  122. package/fields/dist/places/regions/HK.js +7 -0
  123. package/fields/dist/places/regions/HN.d.ts +4 -0
  124. package/fields/dist/places/regions/HN.js +22 -0
  125. package/fields/dist/places/regions/ID.d.ts +4 -0
  126. package/fields/dist/places/regions/ID.js +38 -0
  127. package/fields/dist/places/regions/IE.d.ts +4 -0
  128. package/fields/dist/places/regions/IE.js +30 -0
  129. package/fields/dist/places/regions/IN.d.ts +4 -0
  130. package/fields/dist/places/regions/IN.js +40 -0
  131. package/fields/dist/places/regions/IQ.d.ts +4 -0
  132. package/fields/dist/places/regions/IQ.js +23 -0
  133. package/fields/dist/places/regions/IR.d.ts +4 -0
  134. package/fields/dist/places/regions/IR.js +35 -0
  135. package/fields/dist/places/regions/IT.d.ts +4 -0
  136. package/fields/dist/places/regions/IT.js +115 -0
  137. package/fields/dist/places/regions/JM.d.ts +4 -0
  138. package/fields/dist/places/regions/JM.js +18 -0
  139. package/fields/dist/places/regions/JP.d.ts +4 -0
  140. package/fields/dist/places/regions/JP.js +51 -0
  141. package/fields/dist/places/regions/KN.d.ts +4 -0
  142. package/fields/dist/places/regions/KN.js +6 -0
  143. package/fields/dist/places/regions/KP.d.ts +4 -0
  144. package/fields/dist/places/regions/KP.js +17 -0
  145. package/fields/dist/places/regions/KR.d.ts +4 -0
  146. package/fields/dist/places/regions/KR.js +21 -0
  147. package/fields/dist/places/regions/KY.d.ts +4 -0
  148. package/fields/dist/places/regions/KY.js +7 -0
  149. package/fields/dist/places/regions/KZ.d.ts +4 -0
  150. package/fields/dist/places/regions/KZ.js +24 -0
  151. package/fields/dist/places/regions/MN.d.ts +4 -0
  152. package/fields/dist/places/regions/MN.js +26 -0
  153. package/fields/dist/places/regions/MX.d.ts +4 -0
  154. package/fields/dist/places/regions/MX.js +36 -0
  155. package/fields/dist/places/regions/MY.d.ts +4 -0
  156. package/fields/dist/places/regions/MY.js +20 -0
  157. package/fields/dist/places/regions/MZ.d.ts +4 -0
  158. package/fields/dist/places/regions/MZ.js +15 -0
  159. package/fields/dist/places/regions/NG.d.ts +4 -0
  160. package/fields/dist/places/regions/NG.js +41 -0
  161. package/fields/dist/places/regions/NI.d.ts +4 -0
  162. package/fields/dist/places/regions/NI.js +21 -0
  163. package/fields/dist/places/regions/NR.d.ts +4 -0
  164. package/fields/dist/places/regions/NR.js +18 -0
  165. package/fields/dist/places/regions/PA.d.ts +4 -0
  166. package/fields/dist/places/regions/PA.js +18 -0
  167. package/fields/dist/places/regions/PE.d.ts +4 -0
  168. package/fields/dist/places/regions/PE.js +30 -0
  169. package/fields/dist/places/regions/PG.d.ts +4 -0
  170. package/fields/dist/places/regions/PG.js +26 -0
  171. package/fields/dist/places/regions/PH.d.ts +4 -0
  172. package/fields/dist/places/regions/PH.js +86 -0
  173. package/fields/dist/places/regions/PW.d.ts +4 -0
  174. package/fields/dist/places/regions/PW.js +20 -0
  175. package/fields/dist/places/regions/RO.d.ts +4 -0
  176. package/fields/dist/places/regions/RO.js +46 -0
  177. package/fields/dist/places/regions/RU.d.ts +4 -0
  178. package/fields/dist/places/regions/RU.js +89 -0
  179. package/fields/dist/places/regions/SO.d.ts +4 -0
  180. package/fields/dist/places/regions/SO.js +22 -0
  181. package/fields/dist/places/regions/SR.d.ts +4 -0
  182. package/fields/dist/places/regions/SR.js +14 -0
  183. package/fields/dist/places/regions/SV.d.ts +4 -0
  184. package/fields/dist/places/regions/SV.js +18 -0
  185. package/fields/dist/places/regions/TH.d.ts +4 -0
  186. package/fields/dist/places/regions/TH.js +81 -0
  187. package/fields/dist/places/regions/TR.d.ts +4 -0
  188. package/fields/dist/places/regions/TR.js +85 -0
  189. package/fields/dist/places/regions/TV.d.ts +4 -0
  190. package/fields/dist/places/regions/TV.js +13 -0
  191. package/fields/dist/places/regions/TW.d.ts +4 -0
  192. package/fields/dist/places/regions/TW.js +26 -0
  193. package/fields/dist/places/regions/UA.d.ts +4 -0
  194. package/fields/dist/places/regions/UA.js +31 -0
  195. package/fields/dist/places/regions/US.d.ts +4 -0
  196. package/fields/dist/places/regions/US.js +66 -0
  197. package/fields/dist/places/regions/UY.d.ts +4 -0
  198. package/fields/dist/places/regions/UY.js +23 -0
  199. package/fields/dist/places/regions/UZ.d.ts +4 -0
  200. package/fields/dist/places/regions/UZ.js +18 -0
  201. package/fields/dist/places/regions/VE.d.ts +4 -0
  202. package/fields/dist/places/regions/VE.js +29 -0
  203. package/fields/dist/places/regions/VN.d.ts +4 -0
  204. package/fields/dist/places/regions/VN.js +67 -0
  205. package/fields/dist/query/board.d.ts +28 -0
  206. package/fields/dist/query/board.js +44 -0
  207. package/fields/dist/query/buckets.d.ts +95 -0
  208. package/fields/dist/query/buckets.js +453 -0
  209. package/fields/dist/query/change.d.ts +8 -0
  210. package/fields/dist/query/change.js +43 -0
  211. package/fields/dist/query/collate.d.ts +10 -0
  212. package/fields/dist/query/collate.js +22 -0
  213. package/fields/dist/query/column-state.d.ts +25 -0
  214. package/fields/dist/query/column-state.js +10 -0
  215. package/fields/dist/query/date.d.ts +82 -0
  216. package/fields/dist/query/date.js +254 -0
  217. package/fields/dist/query/evaluate.d.ts +69 -0
  218. package/fields/dist/query/evaluate.js +84 -0
  219. package/fields/dist/query/figure-kinds.d.ts +26 -0
  220. package/fields/dist/query/figure-kinds.js +27 -0
  221. package/fields/dist/query/figures.d.ts +69 -0
  222. package/fields/dist/query/figures.js +169 -0
  223. package/fields/dist/query/filter.d.ts +138 -0
  224. package/fields/dist/query/filter.js +475 -0
  225. package/fields/dist/query/fold.d.ts +1 -0
  226. package/fields/dist/query/fold.js +4 -0
  227. package/fields/dist/query/group.d.ts +15 -0
  228. package/fields/dist/query/group.js +7 -0
  229. package/fields/dist/query/hold.d.ts +35 -0
  230. package/fields/dist/query/hold.js +70 -0
  231. package/fields/dist/query/index.d.ts +25 -0
  232. package/fields/dist/query/index.js +25 -0
  233. package/fields/dist/query/kit.d.ts +57 -0
  234. package/fields/dist/query/kit.js +29 -0
  235. package/fields/dist/query/layer.d.ts +35 -0
  236. package/fields/dist/query/layer.js +51 -0
  237. package/fields/dist/query/link.d.ts +8 -0
  238. package/fields/dist/query/link.js +18 -0
  239. package/fields/dist/query/list-link.d.ts +65 -0
  240. package/fields/dist/query/list-link.js +174 -0
  241. package/fields/dist/query/location.d.ts +20 -0
  242. package/fields/dist/query/location.js +36 -0
  243. package/fields/dist/query/name.d.ts +6 -0
  244. package/fields/dist/query/name.js +23 -0
  245. package/fields/dist/query/number.d.ts +94 -0
  246. package/fields/dist/query/number.js +180 -0
  247. package/fields/dist/query/option-counts.d.ts +38 -0
  248. package/fields/dist/query/option-counts.js +89 -0
  249. package/fields/dist/query/range.d.ts +22 -0
  250. package/fields/dist/query/range.js +79 -0
  251. package/fields/dist/query/read-rule.d.ts +3 -0
  252. package/fields/dist/query/read-rule.js +13 -0
  253. package/fields/dist/query/search.d.ts +20 -0
  254. package/fields/dist/query/search.js +77 -0
  255. package/fields/dist/query/set-aside.d.ts +82 -0
  256. package/fields/dist/query/set-aside.js +172 -0
  257. package/fields/dist/query/settings.d.ts +94 -0
  258. package/fields/dist/query/settings.js +195 -0
  259. package/fields/dist/query/sort.d.ts +32 -0
  260. package/fields/dist/query/sort.js +270 -0
  261. package/fields/dist/query/text.d.ts +55 -0
  262. package/fields/dist/query/text.js +80 -0
  263. package/fields/dist/range.d.ts +25 -0
  264. package/fields/dist/range.js +63 -0
  265. package/fields/dist/registry.d.ts +114 -0
  266. package/fields/dist/registry.js +864 -0
  267. package/fields/dist/relation.d.ts +84 -0
  268. package/fields/dist/relation.js +106 -0
  269. package/fields/dist/root-domain.d.ts +4 -0
  270. package/fields/dist/root-domain.js +12 -0
  271. package/fields/dist/settlement.d.ts +4 -0
  272. package/fields/dist/settlement.js +11 -0
  273. package/fields/dist/spec-changes.d.ts +20 -0
  274. package/fields/dist/spec-changes.js +170 -0
  275. package/fields/dist/testing/backend.d.ts +75 -0
  276. package/fields/dist/testing/backend.js +1 -0
  277. package/fields/dist/testing/cases.d.ts +14 -0
  278. package/fields/dist/testing/cases.js +327 -0
  279. package/fields/dist/testing/compare.d.ts +39 -0
  280. package/fields/dist/testing/compare.js +123 -0
  281. package/fields/dist/testing/index.d.ts +7 -0
  282. package/fields/dist/testing/index.js +5 -0
  283. package/fields/dist/testing/memory.d.ts +4 -0
  284. package/fields/dist/testing/memory.js +90 -0
  285. package/fields/dist/testing/now.d.ts +4 -0
  286. package/fields/dist/testing/now.js +2 -0
  287. package/fields/dist/testing/query-of.d.ts +8 -0
  288. package/fields/dist/testing/query-of.js +16 -0
  289. package/fields/dist/testing/question.d.ts +3 -0
  290. package/fields/dist/testing/question.js +10 -0
  291. package/fields/dist/testing/reader.d.ts +11 -0
  292. package/fields/dist/testing/reader.js +12 -0
  293. package/fields/dist/testing/reference.d.ts +20 -0
  294. package/fields/dist/testing/reference.js +58 -0
  295. package/fields/dist/testing/runner.d.ts +32 -0
  296. package/fields/dist/testing/runner.js +145 -0
  297. package/fields/dist/testing/samples.d.ts +5 -0
  298. package/fields/dist/testing/samples.js +338 -0
  299. package/fields/dist/testing/speed.d.ts +35 -0
  300. package/fields/dist/testing/speed.js +134 -0
  301. package/fields/dist/testing/sweep.d.ts +11 -0
  302. package/fields/dist/testing/sweep.js +154 -0
  303. package/fields/dist/testing/text-order.d.ts +8 -0
  304. package/fields/dist/testing/text-order.js +73 -0
  305. package/fields/dist/testing/worked-out.d.ts +16 -0
  306. package/fields/dist/testing/worked-out.js +234 -0
  307. package/fields/dist/types.d.ts +722 -0
  308. package/fields/dist/types.js +1 -0
  309. package/fields/dist/value-list.d.ts +56 -0
  310. package/fields/dist/value-list.js +75 -0
  311. package/fields/dist/write-result.d.ts +49 -0
  312. package/fields/dist/write-result.js +34 -0
  313. package/fields/dist/zod.d.ts +29 -0
  314. package/fields/dist/zod.js +419 -0
  315. package/fields/docs/getting-started.md +147 -0
  316. package/fields/docs/guides/checking-definitions.md +517 -0
  317. package/fields/docs/guides/contact-values.md +466 -0
  318. package/fields/docs/guides/conventions.md +312 -0
  319. package/fields/docs/guides/derived-fields.md +701 -0
  320. package/fields/docs/guides/field-types.md +665 -0
  321. package/fields/docs/guides/names-and-places.md +356 -0
  322. package/fields/docs/guides/narrowing-names.md +146 -0
  323. package/fields/docs/guides/options.md +348 -0
  324. package/fields/docs/guides/queries.md +1055 -0
  325. package/fields/docs/guides/the-index.md +415 -0
  326. package/fields/docs/guides/validation-and-acceptance.md +314 -0
  327. package/fields/docs/guides/who-may-change.md +299 -0
  328. package/fields/docs/index.md +47 -0
  329. package/fields/docs/reference/definitions.md +22 -0
  330. package/fields/docs/reference/design-category-colors.md +8 -0
  331. package/fields/docs/reference/design-stage-marks.md +4 -0
  332. package/fields/docs/reference/design-status-slots.md +6 -0
  333. package/fields/docs/reference/fields.md +275 -0
  334. package/fields/docs/reference/format-time.md +9 -0
  335. package/fields/docs/reference/phone.md +17 -0
  336. package/fields/docs/reference/places.md +9 -0
  337. package/fields/docs/reference/query.md +295 -0
  338. package/fields/docs/reference/root-domain.md +5 -0
  339. package/fields/docs/reference/testing.md +87 -0
  340. package/fields/docs/reference/types.md +95 -0
  341. package/fields/skills/viewkit/SKILL.md +377 -0
  342. package/package.json +261 -3
  343. package/postgres/CHANGELOG.md +676 -0
  344. package/postgres/README.md +35 -0
  345. package/postgres/dist/access.d.ts +131 -0
  346. package/postgres/dist/access.js +168 -0
  347. package/postgres/dist/actor.d.ts +3 -0
  348. package/postgres/dist/actor.js +6 -0
  349. package/postgres/dist/bounds.d.ts +16 -0
  350. package/postgres/dist/bounds.js +69 -0
  351. package/postgres/dist/calendar.d.ts +31 -0
  352. package/postgres/dist/calendar.js +64 -0
  353. package/postgres/dist/check.d.ts +53 -0
  354. package/postgres/dist/check.js +326 -0
  355. package/postgres/dist/counts.d.ts +44 -0
  356. package/postgres/dist/counts.js +96 -0
  357. package/postgres/dist/cursor.d.ts +26 -0
  358. package/postgres/dist/cursor.js +210 -0
  359. package/postgres/dist/date-groups.d.ts +45 -0
  360. package/postgres/dist/date-groups.js +176 -0
  361. package/postgres/dist/definitions/build.d.ts +28 -0
  362. package/postgres/dist/definitions/build.js +174 -0
  363. package/postgres/dist/definitions/float.d.ts +55 -0
  364. package/postgres/dist/definitions/float.js +108 -0
  365. package/postgres/dist/definitions/formula-forms.d.ts +29 -0
  366. package/postgres/dist/definitions/formula-forms.js +209 -0
  367. package/postgres/dist/definitions/formula.d.ts +14 -0
  368. package/postgres/dist/definitions/formula.js +209 -0
  369. package/postgres/dist/definitions/index.d.ts +3 -0
  370. package/postgres/dist/definitions/index.js +2 -0
  371. package/postgres/dist/definitions/json.d.ts +14 -0
  372. package/postgres/dist/definitions/json.js +68 -0
  373. package/postgres/dist/definitions/label.d.ts +8 -0
  374. package/postgres/dist/definitions/label.js +35 -0
  375. package/postgres/dist/definitions/lookup.d.ts +8 -0
  376. package/postgres/dist/definitions/lookup.js +88 -0
  377. package/postgres/dist/definitions/money.d.ts +29 -0
  378. package/postgres/dist/definitions/money.js +80 -0
  379. package/postgres/dist/definitions/place.d.ts +50 -0
  380. package/postgres/dist/definitions/place.js +38 -0
  381. package/postgres/dist/definitions/relations.d.ts +9 -0
  382. package/postgres/dist/definitions/relations.js +48 -0
  383. package/postgres/dist/definitions/rollup.d.ts +17 -0
  384. package/postgres/dist/definitions/rollup.js +343 -0
  385. package/postgres/dist/definitions/storage.d.ts +120 -0
  386. package/postgres/dist/definitions/storage.js +334 -0
  387. package/postgres/dist/definitions/stored.d.ts +3 -0
  388. package/postgres/dist/definitions/stored.js +72 -0
  389. package/postgres/dist/definitions/user.d.ts +7 -0
  390. package/postgres/dist/definitions/user.js +42 -0
  391. package/postgres/dist/double.d.ts +6 -0
  392. package/postgres/dist/double.js +10 -0
  393. package/postgres/dist/field-values.d.ts +16 -0
  394. package/postgres/dist/field-values.js +75 -0
  395. package/postgres/dist/figures.d.ts +37 -0
  396. package/postgres/dist/figures.js +88 -0
  397. package/postgres/dist/filled.d.ts +7 -0
  398. package/postgres/dist/filled.js +47 -0
  399. package/postgres/dist/fold.d.ts +15 -0
  400. package/postgres/dist/fold.js +21 -0
  401. package/postgres/dist/groups.d.ts +85 -0
  402. package/postgres/dist/groups.js +189 -0
  403. package/postgres/dist/ids.d.ts +8 -0
  404. package/postgres/dist/ids.js +16 -0
  405. package/postgres/dist/index.d.ts +21 -0
  406. package/postgres/dist/index.js +20 -0
  407. package/postgres/dist/kept.d.ts +36 -0
  408. package/postgres/dist/kept.js +43 -0
  409. package/postgres/dist/keyed.d.ts +48 -0
  410. package/postgres/dist/keyed.js +269 -0
  411. package/postgres/dist/lanes.d.ts +26 -0
  412. package/postgres/dist/lanes.js +69 -0
  413. package/postgres/dist/limits.d.ts +12 -0
  414. package/postgres/dist/limits.js +1 -0
  415. package/postgres/dist/map.d.ts +198 -0
  416. package/postgres/dist/map.js +475 -0
  417. package/postgres/dist/page.d.ts +116 -0
  418. package/postgres/dist/page.js +577 -0
  419. package/postgres/dist/parts.d.ts +10 -0
  420. package/postgres/dist/parts.js +82 -0
  421. package/postgres/dist/phone.d.ts +28 -0
  422. package/postgres/dist/phone.js +54 -0
  423. package/postgres/dist/predicates.d.ts +8 -0
  424. package/postgres/dist/predicates.js +35 -0
  425. package/postgres/dist/range-groups.d.ts +22 -0
  426. package/postgres/dist/range-groups.js +97 -0
  427. package/postgres/dist/records.d.ts +24 -0
  428. package/postgres/dist/records.js +183 -0
  429. package/postgres/dist/refusals.d.ts +38 -0
  430. package/postgres/dist/refusals.js +46 -0
  431. package/postgres/dist/relations.d.ts +23 -0
  432. package/postgres/dist/relations.js +71 -0
  433. package/postgres/dist/rules.d.ts +60 -0
  434. package/postgres/dist/rules.js +218 -0
  435. package/postgres/dist/search-indexes.d.ts +62 -0
  436. package/postgres/dist/search-indexes.js +189 -0
  437. package/postgres/dist/search.d.ts +56 -0
  438. package/postgres/dist/search.js +152 -0
  439. package/postgres/dist/several.d.ts +49 -0
  440. package/postgres/dist/several.js +174 -0
  441. package/postgres/dist/sort.d.ts +104 -0
  442. package/postgres/dist/sort.js +368 -0
  443. package/postgres/dist/sql.d.ts +60 -0
  444. package/postgres/dist/sql.js +247 -0
  445. package/postgres/dist/statement.d.ts +4 -0
  446. package/postgres/dist/statement.js +7 -0
  447. package/postgres/dist/steps.d.ts +18 -0
  448. package/postgres/dist/steps.js +18 -0
  449. package/postgres/dist/users.d.ts +35 -0
  450. package/postgres/dist/users.js +33 -0
  451. package/postgres/dist/value-rows.d.ts +23 -0
  452. package/postgres/dist/value-rows.js +64 -0
  453. package/postgres/dist/values.d.ts +56 -0
  454. package/postgres/dist/values.js +160 -0
  455. package/postgres/dist/view-counts.d.ts +14 -0
  456. package/postgres/dist/view-counts.js +50 -0
  457. package/postgres/dist/walker.d.ts +12 -0
  458. package/postgres/dist/walker.js +18 -0
  459. package/postgres/docs/guides/definitions.md +221 -0
  460. package/postgres/docs/guides/field-map.md +705 -0
  461. package/postgres/docs/guides/test-kit.md +110 -0
  462. package/postgres/docs/index.md +11 -0
  463. package/postgres/docs/reference/definitions.md +41 -0
  464. package/postgres/docs/reference/postgres.md +108 -0
  465. package/views/CHANGELOG.md +3582 -0
  466. package/views/README.md +104 -0
  467. package/views/dist/atoms/Avatar.d.ts +2 -0
  468. package/views/dist/atoms/Avatar.js +13 -0
  469. package/views/dist/atoms/CellMore.d.ts +2 -0
  470. package/views/dist/atoms/CellMore.js +4 -0
  471. package/views/dist/atoms/CommandMenu.d.ts +2 -0
  472. package/views/dist/atoms/CommandMenu.js +24 -0
  473. package/views/dist/atoms/DisabledReason.d.ts +13 -0
  474. package/views/dist/atoms/DisabledReason.js +27 -0
  475. package/views/dist/atoms/DrillRows.d.ts +3 -0
  476. package/views/dist/atoms/DrillRows.js +27 -0
  477. package/views/dist/atoms/List.d.ts +2 -0
  478. package/views/dist/atoms/List.js +6 -0
  479. package/views/dist/atoms/LoadMore.d.ts +2 -0
  480. package/views/dist/atoms/LoadMore.js +35 -0
  481. package/views/dist/atoms/Loading.d.ts +8 -0
  482. package/views/dist/atoms/Loading.js +10 -0
  483. package/views/dist/atoms/PanelRows.d.ts +5 -0
  484. package/views/dist/atoms/PanelRows.js +38 -0
  485. package/views/dist/atoms/PanelSearch.d.ts +2 -0
  486. package/views/dist/atoms/PanelSearch.js +23 -0
  487. package/views/dist/atoms/Pill.d.ts +2 -0
  488. package/views/dist/atoms/Pill.js +25 -0
  489. package/views/dist/atoms/PlatformMark.d.ts +2 -0
  490. package/views/dist/atoms/PlatformMark.js +4 -0
  491. package/views/dist/atoms/RangeCalendar.d.ts +8 -0
  492. package/views/dist/atoms/RangeCalendar.js +30 -0
  493. package/views/dist/atoms/RelationLink.d.ts +2 -0
  494. package/views/dist/atoms/RelationLink.js +6 -0
  495. package/views/dist/atoms/RelationRoles.d.ts +2 -0
  496. package/views/dist/atoms/RelationRoles.js +6 -0
  497. package/views/dist/atoms/Row.d.ts +3 -0
  498. package/views/dist/atoms/Row.js +31 -0
  499. package/views/dist/atoms/RowMenu.d.ts +2 -0
  500. package/views/dist/atoms/RowMenu.js +116 -0
  501. package/views/dist/atoms/SelectionSheet.d.ts +3 -0
  502. package/views/dist/atoms/SelectionSheet.js +31 -0
  503. package/views/dist/atoms/StatusBadge.d.ts +2 -0
  504. package/views/dist/atoms/StatusBadge.js +7 -0
  505. package/views/dist/atoms/StatusMarker.d.ts +2 -0
  506. package/views/dist/atoms/StatusMarker.js +21 -0
  507. package/views/dist/atoms/Tag.d.ts +2 -0
  508. package/views/dist/atoms/Tag.js +14 -0
  509. package/views/dist/atoms/TickBox.d.ts +2 -0
  510. package/views/dist/atoms/TickBox.js +8 -0
  511. package/views/dist/atoms/ToolbarButton.d.ts +2 -0
  512. package/views/dist/atoms/ToolbarButton.js +50 -0
  513. package/views/dist/atoms/defaults.d.ts +2 -0
  514. package/views/dist/atoms/defaults.js +51 -0
  515. package/views/dist/atoms/tones.d.ts +5 -0
  516. package/views/dist/atoms/tones.js +28 -0
  517. package/views/dist/atoms/types.d.ts +496 -0
  518. package/views/dist/atoms/types.js +3 -0
  519. package/views/dist/cells/cell-format.d.ts +147 -0
  520. package/views/dist/cells/cell-format.js +16 -0
  521. package/views/dist/cells/cell-title.d.ts +20 -0
  522. package/views/dist/cells/cell-title.js +8 -0
  523. package/views/dist/cells/cell-values.d.ts +28 -0
  524. package/views/dist/cells/cell-values.js +107 -0
  525. package/views/dist/cells/index.d.ts +4 -0
  526. package/views/dist/cells/index.js +4 -0
  527. package/views/dist/cells/legacy-field.d.ts +52 -0
  528. package/views/dist/cells/legacy-field.js +164 -0
  529. package/views/dist/cells/relation-wrap.d.ts +3 -0
  530. package/views/dist/cells/relation-wrap.js +26 -0
  531. package/views/dist/cells/use-cell-format.d.ts +5 -0
  532. package/views/dist/cells/use-cell-format.js +10 -0
  533. package/views/dist/contract.d.ts +1337 -0
  534. package/views/dist/contract.js +1824 -0
  535. package/views/dist/display/actor.d.ts +4 -0
  536. package/views/dist/display/actor.js +26 -0
  537. package/views/dist/display/boolean.d.ts +18 -0
  538. package/views/dist/display/boolean.js +50 -0
  539. package/views/dist/display/breakdown.d.ts +15 -0
  540. package/views/dist/display/breakdown.js +32 -0
  541. package/views/dist/display/converted.d.ts +19 -0
  542. package/views/dist/display/converted.js +12 -0
  543. package/views/dist/display/currency.d.ts +9 -0
  544. package/views/dist/display/currency.js +29 -0
  545. package/views/dist/display/date.d.ts +12 -0
  546. package/views/dist/display/date.js +28 -0
  547. package/views/dist/display/display-cores.d.ts +31 -0
  548. package/views/dist/display/display-cores.js +57 -0
  549. package/views/dist/display/entity-chip.d.ts +29 -0
  550. package/views/dist/display/entity-chip.js +8 -0
  551. package/views/dist/display/fit-values.d.ts +34 -0
  552. package/views/dist/display/fit-values.js +45 -0
  553. package/views/dist/display/format.d.ts +66 -0
  554. package/views/dist/display/format.js +206 -0
  555. package/views/dist/display/index.d.ts +9 -0
  556. package/views/dist/display/index.js +8 -0
  557. package/views/dist/display/link-click.d.ts +11 -0
  558. package/views/dist/display/link-click.js +3 -0
  559. package/views/dist/display/link.d.ts +29 -0
  560. package/views/dist/display/link.js +56 -0
  561. package/views/dist/display/location.d.ts +8 -0
  562. package/views/dist/display/location.js +22 -0
  563. package/views/dist/display/multi-value.d.ts +18 -0
  564. package/views/dist/display/multi-value.js +93 -0
  565. package/views/dist/display/name.d.ts +6 -0
  566. package/views/dist/display/name.js +14 -0
  567. package/views/dist/display/number.d.ts +11 -0
  568. package/views/dist/display/number.js +27 -0
  569. package/views/dist/display/options.d.ts +167 -0
  570. package/views/dist/display/options.js +1 -0
  571. package/views/dist/display/percent.d.ts +4 -0
  572. package/views/dist/display/percent.js +41 -0
  573. package/views/dist/display/phone.d.ts +11 -0
  574. package/views/dist/display/phone.js +49 -0
  575. package/views/dist/display/range.d.ts +6 -0
  576. package/views/dist/display/range.js +19 -0
  577. package/views/dist/display/relation.d.ts +4 -0
  578. package/views/dist/display/relation.js +44 -0
  579. package/views/dist/display/rich-text.d.ts +10 -0
  580. package/views/dist/display/rich-text.js +46 -0
  581. package/views/dist/display/select.d.ts +6 -0
  582. package/views/dist/display/select.js +40 -0
  583. package/views/dist/display/status-steps.d.ts +8 -0
  584. package/views/dist/display/status-steps.js +18 -0
  585. package/views/dist/display/text-class.d.ts +23 -0
  586. package/views/dist/display/text-class.js +5 -0
  587. package/views/dist/display/text.d.ts +19 -0
  588. package/views/dist/display/text.js +8 -0
  589. package/views/dist/display/use-display-options.d.ts +2 -0
  590. package/views/dist/display/use-display-options.js +14 -0
  591. package/views/dist/display/user.d.ts +11 -0
  592. package/views/dist/display/user.js +10 -0
  593. package/views/dist/display/value-list.d.ts +10 -0
  594. package/views/dist/display/value-list.js +12 -0
  595. package/views/dist/display/viewer.d.ts +4 -0
  596. package/views/dist/display/viewer.js +12 -0
  597. package/views/dist/display/web-href.d.ts +16 -0
  598. package/views/dist/display/web-href.js +19 -0
  599. package/views/dist/editors/BodyFrame.d.ts +30 -0
  600. package/views/dist/editors/BodyFrame.js +86 -0
  601. package/views/dist/editors/ChipsEditor.d.ts +76 -0
  602. package/views/dist/editors/ChipsEditor.js +118 -0
  603. package/views/dist/editors/DateEditor.d.ts +42 -0
  604. package/views/dist/editors/DateEditor.js +298 -0
  605. package/views/dist/editors/EditorPanel.d.ts +71 -0
  606. package/views/dist/editors/EditorPanel.js +158 -0
  607. package/views/dist/editors/LocationEditor.d.ts +33 -0
  608. package/views/dist/editors/LocationEditor.js +320 -0
  609. package/views/dist/editors/NameEditor.d.ts +29 -0
  610. package/views/dist/editors/NameEditor.js +119 -0
  611. package/views/dist/editors/NumberEditor.d.ts +90 -0
  612. package/views/dist/editors/NumberEditor.js +126 -0
  613. package/views/dist/editors/RangeEditor.d.ts +51 -0
  614. package/views/dist/editors/RangeEditor.js +125 -0
  615. package/views/dist/editors/RelationEditor.d.ts +52 -0
  616. package/views/dist/editors/RelationEditor.js +55 -0
  617. package/views/dist/editors/RelationSetEditor.d.ts +63 -0
  618. package/views/dist/editors/RelationSetEditor.js +222 -0
  619. package/views/dist/editors/SelectEditor.d.ts +104 -0
  620. package/views/dist/editors/SelectEditor.js +154 -0
  621. package/views/dist/editors/TextEditor.d.ts +61 -0
  622. package/views/dist/editors/TextEditor.js +102 -0
  623. package/views/dist/editors/ValueListEditor.d.ts +51 -0
  624. package/views/dist/editors/ValueListEditor.js +239 -0
  625. package/views/dist/editors/body-panel.d.ts +11 -0
  626. package/views/dist/editors/body-panel.js +11 -0
  627. package/views/dist/editors/body-step.d.ts +12 -0
  628. package/views/dist/editors/body-step.js +6 -0
  629. package/views/dist/editors/edit-cores.d.ts +86 -0
  630. package/views/dist/editors/edit-cores.js +39 -0
  631. package/views/dist/editors/edit-session.d.ts +113 -0
  632. package/views/dist/editors/edit-session.js +97 -0
  633. package/views/dist/editors/escape-rule.d.ts +34 -0
  634. package/views/dist/editors/escape-rule.js +15 -0
  635. package/views/dist/editors/inner-escape.d.ts +12 -0
  636. package/views/dist/editors/inner-escape.js +10 -0
  637. package/views/dist/editors/keep-inside.d.ts +12 -0
  638. package/views/dist/editors/keep-inside.js +20 -0
  639. package/views/dist/editors/leave-scope.d.ts +31 -0
  640. package/views/dist/editors/leave-scope.js +29 -0
  641. package/views/dist/editors/link-roles.d.ts +9 -0
  642. package/views/dist/editors/link-roles.js +19 -0
  643. package/views/dist/editors/number-body.d.ts +30 -0
  644. package/views/dist/editors/number-body.js +38 -0
  645. package/views/dist/editors/number-step.d.ts +39 -0
  646. package/views/dist/editors/number-step.js +47 -0
  647. package/views/dist/editors/open-value.d.ts +22 -0
  648. package/views/dist/editors/open-value.js +37 -0
  649. package/views/dist/editors/open-values.d.ts +32 -0
  650. package/views/dist/editors/open-values.js +33 -0
  651. package/views/dist/editors/option-add-flow.d.ts +66 -0
  652. package/views/dist/editors/option-add-flow.js +155 -0
  653. package/views/dist/editors/parts-body.d.ts +68 -0
  654. package/views/dist/editors/parts-body.js +117 -0
  655. package/views/dist/editors/picker-slot.d.ts +25 -0
  656. package/views/dist/editors/picker-slot.js +37 -0
  657. package/views/dist/editors/relation-kinds.d.ts +7 -0
  658. package/views/dist/editors/relation-kinds.js +21 -0
  659. package/views/dist/editors/relation-links-body.d.ts +36 -0
  660. package/views/dist/editors/relation-links-body.js +22 -0
  661. package/views/dist/editors/relation-panel.d.ts +69 -0
  662. package/views/dist/editors/relation-panel.js +40 -0
  663. package/views/dist/editors/relation-picker.d.ts +63 -0
  664. package/views/dist/editors/relation-picker.js +58 -0
  665. package/views/dist/editors/relation-source.d.ts +67 -0
  666. package/views/dist/editors/relation-source.js +108 -0
  667. package/views/dist/editors/tab-ends.d.ts +7 -0
  668. package/views/dist/editors/tab-ends.js +10 -0
  669. package/views/dist/editors/text-body.d.ts +16 -0
  670. package/views/dist/editors/text-body.js +30 -0
  671. package/views/dist/editors/values-body.d.ts +47 -0
  672. package/views/dist/editors/values-body.js +140 -0
  673. package/views/dist/field-row/FieldNoteLine.d.ts +14 -0
  674. package/views/dist/field-row/FieldNoteLine.js +15 -0
  675. package/views/dist/field-row/FieldRow.d.ts +81 -0
  676. package/views/dist/field-row/FieldRow.js +232 -0
  677. package/views/dist/field-row/FieldRowLane.d.ts +19 -0
  678. package/views/dist/field-row/FieldRowLane.js +21 -0
  679. package/views/dist/field-row/drawn-text.d.ts +7 -0
  680. package/views/dist/field-row/drawn-text.js +27 -0
  681. package/views/dist/field-row/editors/RowChipsEditor.d.ts +11 -0
  682. package/views/dist/field-row/editors/RowChipsEditor.js +27 -0
  683. package/views/dist/field-row/editors/RowDateEditor.d.ts +16 -0
  684. package/views/dist/field-row/editors/RowDateEditor.js +18 -0
  685. package/views/dist/field-row/editors/RowEditor.d.ts +39 -0
  686. package/views/dist/field-row/editors/RowEditor.js +66 -0
  687. package/views/dist/field-row/editors/RowNameEditor.d.ts +7 -0
  688. package/views/dist/field-row/editors/RowNameEditor.js +23 -0
  689. package/views/dist/field-row/editors/RowNumberEditor.d.ts +12 -0
  690. package/views/dist/field-row/editors/RowNumberEditor.js +34 -0
  691. package/views/dist/field-row/editors/RowPlaceEditor.d.ts +9 -0
  692. package/views/dist/field-row/editors/RowPlaceEditor.js +20 -0
  693. package/views/dist/field-row/editors/RowRangeEditor.d.ts +7 -0
  694. package/views/dist/field-row/editors/RowRangeEditor.js +25 -0
  695. package/views/dist/field-row/editors/RowRelationEditor.d.ts +20 -0
  696. package/views/dist/field-row/editors/RowRelationEditor.js +80 -0
  697. package/views/dist/field-row/editors/RowSelectEditor.d.ts +13 -0
  698. package/views/dist/field-row/editors/RowSelectEditor.js +26 -0
  699. package/views/dist/field-row/editors/RowTextEditor.d.ts +15 -0
  700. package/views/dist/field-row/editors/RowTextEditor.js +25 -0
  701. package/views/dist/field-row/editors/RowValueListEditor.d.ts +6 -0
  702. package/views/dist/field-row/editors/RowValueListEditor.js +34 -0
  703. package/views/dist/field-row/editors/host.d.ts +65 -0
  704. package/views/dist/field-row/editors/host.js +1 -0
  705. package/views/dist/field-row/editors/row-frame.d.ts +2 -0
  706. package/views/dist/field-row/editors/row-frame.js +1 -0
  707. package/views/dist/field-row/editors/row-session.d.ts +63 -0
  708. package/views/dist/field-row/editors/row-session.js +102 -0
  709. package/views/dist/field-row/field-row-button.d.ts +40 -0
  710. package/views/dist/field-row/field-row-button.js +18 -0
  711. package/views/dist/field-row/field-row-checkbox.d.ts +9 -0
  712. package/views/dist/field-row/field-row-checkbox.js +7 -0
  713. package/views/dist/field-row/index.d.ts +5 -0
  714. package/views/dist/field-row/index.js +5 -0
  715. package/views/dist/field-row/row-target.d.ts +20 -0
  716. package/views/dist/field-row/row-target.js +3 -0
  717. package/views/dist/field-row/useFieldWrite.d.ts +45 -0
  718. package/views/dist/field-row/useFieldWrite.js +233 -0
  719. package/views/dist/field-row/useRowSettlement.d.ts +33 -0
  720. package/views/dist/field-row/useRowSettlement.js +23 -0
  721. package/views/dist/fields/binding.d.ts +96 -0
  722. package/views/dist/fields/binding.js +128 -0
  723. package/views/dist/fields/currency.d.ts +82 -0
  724. package/views/dist/fields/currency.js +41 -0
  725. package/views/dist/fields/denomination.d.ts +42 -0
  726. package/views/dist/fields/denomination.js +11 -0
  727. package/views/dist/fields/edit-core-types.d.ts +40 -0
  728. package/views/dist/fields/edit-core-types.js +29 -0
  729. package/views/dist/fields/format-knobs.d.ts +34 -0
  730. package/views/dist/fields/format-knobs.js +36 -0
  731. package/views/dist/fields/menus.d.ts +30 -0
  732. package/views/dist/fields/menus.js +1 -0
  733. package/views/dist/fields/money.d.ts +65 -0
  734. package/views/dist/fields/money.js +88 -0
  735. package/views/dist/fields/number-edit.d.ts +17 -0
  736. package/views/dist/fields/number-edit.js +21 -0
  737. package/views/dist/fields/option-add.d.ts +25 -0
  738. package/views/dist/fields/option-add.js +9 -0
  739. package/views/dist/fields/prepare-write.d.ts +55 -0
  740. package/views/dist/fields/prepare-write.js +72 -0
  741. package/views/dist/fields/range-unit.d.ts +7 -0
  742. package/views/dist/fields/range-unit.js +13 -0
  743. package/views/dist/fields/relation-source-types.d.ts +66 -0
  744. package/views/dist/fields/relation-source-types.js +1 -0
  745. package/views/dist/fields/write-target.d.ts +56 -0
  746. package/views/dist/fields/write-target.js +10 -0
  747. package/views/dist/figures.d.ts +9 -0
  748. package/views/dist/figures.js +1 -0
  749. package/views/dist/filters/date-filter.d.ts +2 -0
  750. package/views/dist/filters/date-filter.js +1 -0
  751. package/views/dist/filters/filter-model.d.ts +181 -0
  752. package/views/dist/filters/filter-model.js +41 -0
  753. package/views/dist/filters/filter-tree.d.ts +146 -0
  754. package/views/dist/filters/filter-tree.js +256 -0
  755. package/views/dist/filters/number-filter.d.ts +2 -0
  756. package/views/dist/filters/number-filter.js +1 -0
  757. package/views/dist/filters/range-filter.d.ts +2 -0
  758. package/views/dist/filters/range-filter.js +1 -0
  759. package/views/dist/filters/registry.d.ts +103 -0
  760. package/views/dist/filters/registry.js +8 -0
  761. package/views/dist/filters/relation-filter.d.ts +16 -0
  762. package/views/dist/filters/relation-filter.js +63 -0
  763. package/views/dist/filters/text-filter.d.ts +2 -0
  764. package/views/dist/filters/text-filter.js +1 -0
  765. package/views/dist/grid/chrome/GridAddColumn.d.ts +23 -0
  766. package/views/dist/grid/chrome/GridAddColumn.js +106 -0
  767. package/views/dist/grid/chrome/GridAggregateMenu.d.ts +36 -0
  768. package/views/dist/grid/chrome/GridAggregateMenu.js +60 -0
  769. package/views/dist/grid/chrome/GridCellEditors.d.ts +81 -0
  770. package/views/dist/grid/chrome/GridCellEditors.js +156 -0
  771. package/views/dist/grid/chrome/GridCellOutline.d.ts +53 -0
  772. package/views/dist/grid/chrome/GridCellOutline.js +36 -0
  773. package/views/dist/grid/chrome/GridChipsEditor.d.ts +40 -0
  774. package/views/dist/grid/chrome/GridChipsEditor.js +39 -0
  775. package/views/dist/grid/chrome/GridColumnColorSection.d.ts +13 -0
  776. package/views/dist/grid/chrome/GridColumnColorSection.js +40 -0
  777. package/views/dist/grid/chrome/GridColumnDateSection.d.ts +27 -0
  778. package/views/dist/grid/chrome/GridColumnDateSection.js +23 -0
  779. package/views/dist/grid/chrome/GridColumnDurationSection.d.ts +23 -0
  780. package/views/dist/grid/chrome/GridColumnDurationSection.js +24 -0
  781. package/views/dist/grid/chrome/GridColumnMenu.d.ts +113 -0
  782. package/views/dist/grid/chrome/GridColumnMenu.js +149 -0
  783. package/views/dist/grid/chrome/GridColumnNumberSection.d.ts +29 -0
  784. package/views/dist/grid/chrome/GridColumnNumberSection.js +27 -0
  785. package/views/dist/grid/chrome/GridColumnPercentSection.d.ts +16 -0
  786. package/views/dist/grid/chrome/GridColumnPercentSection.js +16 -0
  787. package/views/dist/grid/chrome/GridColumnSortSection.d.ts +38 -0
  788. package/views/dist/grid/chrome/GridColumnSortSection.js +33 -0
  789. package/views/dist/grid/chrome/GridDateEditor.d.ts +41 -0
  790. package/views/dist/grid/chrome/GridDateEditor.js +26 -0
  791. package/views/dist/grid/chrome/GridFlyout.d.ts +44 -0
  792. package/views/dist/grid/chrome/GridFlyout.js +80 -0
  793. package/views/dist/grid/chrome/GridFooter.d.ts +40 -0
  794. package/views/dist/grid/chrome/GridFooter.js +55 -0
  795. package/views/dist/grid/chrome/GridGroupMenu.d.ts +47 -0
  796. package/views/dist/grid/chrome/GridGroupMenu.js +101 -0
  797. package/views/dist/grid/chrome/GridHeader.d.ts +83 -0
  798. package/views/dist/grid/chrome/GridHeader.js +58 -0
  799. package/views/dist/grid/chrome/GridLongTextEditor.d.ts +55 -0
  800. package/views/dist/grid/chrome/GridLongTextEditor.js +73 -0
  801. package/views/dist/grid/chrome/GridMenuRow.d.ts +15 -0
  802. package/views/dist/grid/chrome/GridMenuRow.js +15 -0
  803. package/views/dist/grid/chrome/GridNameEditor.d.ts +24 -0
  804. package/views/dist/grid/chrome/GridNameEditor.js +25 -0
  805. package/views/dist/grid/chrome/GridNumberEditor.d.ts +56 -0
  806. package/views/dist/grid/chrome/GridNumberEditor.js +42 -0
  807. package/views/dist/grid/chrome/GridPager.d.ts +7 -0
  808. package/views/dist/grid/chrome/GridPager.js +34 -0
  809. package/views/dist/grid/chrome/GridPlaceEditor.d.ts +29 -0
  810. package/views/dist/grid/chrome/GridPlaceEditor.js +26 -0
  811. package/views/dist/grid/chrome/GridRangeEditor.d.ts +35 -0
  812. package/views/dist/grid/chrome/GridRangeEditor.js +32 -0
  813. package/views/dist/grid/chrome/GridRelationEditor.d.ts +47 -0
  814. package/views/dist/grid/chrome/GridRelationEditor.js +99 -0
  815. package/views/dist/grid/chrome/GridResizeHandle.d.ts +19 -0
  816. package/views/dist/grid/chrome/GridResizeHandle.js +19 -0
  817. package/views/dist/grid/chrome/GridRow.d.ts +32 -0
  818. package/views/dist/grid/chrome/GridRow.js +171 -0
  819. package/views/dist/grid/chrome/GridRowActions.d.ts +37 -0
  820. package/views/dist/grid/chrome/GridRowActions.js +36 -0
  821. package/views/dist/grid/chrome/GridRowCells.d.ts +4 -0
  822. package/views/dist/grid/chrome/GridRowCells.js +157 -0
  823. package/views/dist/grid/chrome/GridRowGlyph.d.ts +14 -0
  824. package/views/dist/grid/chrome/GridRowGlyph.js +18 -0
  825. package/views/dist/grid/chrome/GridSelectEditor.d.ts +35 -0
  826. package/views/dist/grid/chrome/GridSelectEditor.js +58 -0
  827. package/views/dist/grid/chrome/GridStructure.d.ts +64 -0
  828. package/views/dist/grid/chrome/GridStructure.js +87 -0
  829. package/views/dist/grid/chrome/GridTable.d.ts +4 -0
  830. package/views/dist/grid/chrome/GridTable.js +394 -0
  831. package/views/dist/grid/chrome/GridTableSurface.d.ts +80 -0
  832. package/views/dist/grid/chrome/GridTableSurface.js +39 -0
  833. package/views/dist/grid/chrome/GridTextEditor.d.ts +49 -0
  834. package/views/dist/grid/chrome/GridTextEditor.js +51 -0
  835. package/views/dist/grid/chrome/GridValueListEditor.d.ts +38 -0
  836. package/views/dist/grid/chrome/GridValueListEditor.js +29 -0
  837. package/views/dist/grid/chrome/StuckMarker.d.ts +26 -0
  838. package/views/dist/grid/chrome/StuckMarker.js +44 -0
  839. package/views/dist/grid/chrome/cell-clipboard.d.ts +10 -0
  840. package/views/dist/grid/chrome/cell-clipboard.js +28 -0
  841. package/views/dist/grid/chrome/cell-cut-off.d.ts +11 -0
  842. package/views/dist/grid/chrome/cell-cut-off.js +20 -0
  843. package/views/dist/grid/chrome/cells.d.ts +23 -0
  844. package/views/dist/grid/chrome/cells.js +19 -0
  845. package/views/dist/grid/chrome/checks.d.ts +56 -0
  846. package/views/dist/grid/chrome/checks.js +48 -0
  847. package/views/dist/grid/chrome/column-glyph.d.ts +16 -0
  848. package/views/dist/grid/chrome/column-glyph.js +52 -0
  849. package/views/dist/grid/chrome/editors.d.ts +9 -0
  850. package/views/dist/grid/chrome/editors.js +10 -0
  851. package/views/dist/grid/chrome/grid-add-column-items.d.ts +13 -0
  852. package/views/dist/grid/chrome/grid-add-column-items.js +47 -0
  853. package/views/dist/grid/chrome/grid-body-place.d.ts +4 -0
  854. package/views/dist/grid/chrome/grid-body-place.js +15 -0
  855. package/views/dist/grid/chrome/grid-button.d.ts +32 -0
  856. package/views/dist/grid/chrome/grid-button.js +12 -0
  857. package/views/dist/grid/chrome/grid-cell-classes.d.ts +96 -0
  858. package/views/dist/grid/chrome/grid-cell-classes.js +70 -0
  859. package/views/dist/grid/chrome/grid-cell-link.d.ts +13 -0
  860. package/views/dist/grid/chrome/grid-cell-link.js +9 -0
  861. package/views/dist/grid/chrome/grid-column-menu-items.d.ts +78 -0
  862. package/views/dist/grid/chrome/grid-column-menu-items.js +292 -0
  863. package/views/dist/grid/chrome/grid-columns-template.d.ts +45 -0
  864. package/views/dist/grid/chrome/grid-columns-template.js +18 -0
  865. package/views/dist/grid/chrome/grid-edit-escape.d.ts +4 -0
  866. package/views/dist/grid/chrome/grid-edit-escape.js +12 -0
  867. package/views/dist/grid/chrome/grid-edit-session.d.ts +67 -0
  868. package/views/dist/grid/chrome/grid-edit-session.js +141 -0
  869. package/views/dist/grid/chrome/grid-editor-layer.d.ts +7 -0
  870. package/views/dist/grid/chrome/grid-editor-layer.js +1 -0
  871. package/views/dist/grid/chrome/grid-figure-value.d.ts +25 -0
  872. package/views/dist/grid/chrome/grid-figure-value.js +40 -0
  873. package/views/dist/grid/chrome/grid-fitted-box.d.ts +15 -0
  874. package/views/dist/grid/chrome/grid-fitted-box.js +26 -0
  875. package/views/dist/grid/chrome/grid-group-menu-items.d.ts +38 -0
  876. package/views/dist/grid/chrome/grid-group-menu-items.js +92 -0
  877. package/views/dist/grid/chrome/grid-group-menu-parts.d.ts +31 -0
  878. package/views/dist/grid/chrome/grid-group-menu-parts.js +21 -0
  879. package/views/dist/grid/chrome/grid-hover.d.ts +74 -0
  880. package/views/dist/grid/chrome/grid-hover.js +150 -0
  881. package/views/dist/grid/chrome/grid-lab.d.ts +7 -0
  882. package/views/dist/grid/chrome/grid-lab.js +7 -0
  883. package/views/dist/grid/chrome/grid-menu-focus.d.ts +65 -0
  884. package/views/dist/grid/chrome/grid-menu-focus.js +160 -0
  885. package/views/dist/grid/chrome/grid-menu-search.d.ts +7 -0
  886. package/views/dist/grid/chrome/grid-menu-search.js +7 -0
  887. package/views/dist/grid/chrome/grid-pages.d.ts +15 -0
  888. package/views/dist/grid/chrome/grid-pages.js +9 -0
  889. package/views/dist/grid/chrome/grid-row-menu-items.d.ts +49 -0
  890. package/views/dist/grid/chrome/grid-row-menu-items.js +159 -0
  891. package/views/dist/grid/chrome/grid-row-menu-key.d.ts +15 -0
  892. package/views/dist/grid/chrome/grid-row-menu-key.js +36 -0
  893. package/views/dist/grid/chrome/grid-row-props.d.ts +155 -0
  894. package/views/dist/grid/chrome/grid-row-props.js +1 -0
  895. package/views/dist/grid/chrome/grid-row-window.d.ts +78 -0
  896. package/views/dist/grid/chrome/grid-row-window.js +280 -0
  897. package/views/dist/grid/chrome/grid-rows-menu.d.ts +42 -0
  898. package/views/dist/grid/chrome/grid-rows-menu.js +85 -0
  899. package/views/dist/grid/chrome/grid-scroll-owner.d.ts +38 -0
  900. package/views/dist/grid/chrome/grid-scroll-owner.js +75 -0
  901. package/views/dist/grid/chrome/grid-styles.d.ts +50 -0
  902. package/views/dist/grid/chrome/grid-styles.js +11 -0
  903. package/views/dist/grid/chrome/grid-table-props.d.ts +310 -0
  904. package/views/dist/grid/chrome/grid-table-props.js +1 -0
  905. package/views/dist/grid/chrome/grid-wait.d.ts +22 -0
  906. package/views/dist/grid/chrome/grid-wait.js +4 -0
  907. package/views/dist/grid/chrome/useBarRoom.d.ts +19 -0
  908. package/views/dist/grid/chrome/useBarRoom.js +96 -0
  909. package/views/dist/grid/chrome/useGridBandFigures.d.ts +26 -0
  910. package/views/dist/grid/chrome/useGridBandFigures.js +50 -0
  911. package/views/dist/grid/chrome/useGridBatchApi.d.ts +34 -0
  912. package/views/dist/grid/chrome/useGridBatchApi.js +36 -0
  913. package/views/dist/grid/chrome/useGridBoxes.d.ts +22 -0
  914. package/views/dist/grid/chrome/useGridBoxes.js +22 -0
  915. package/views/dist/grid/chrome/useGridCellPick.d.ts +30 -0
  916. package/views/dist/grid/chrome/useGridCellPick.js +77 -0
  917. package/views/dist/grid/chrome/useGridColumnLayout.d.ts +32 -0
  918. package/views/dist/grid/chrome/useGridColumnLayout.js +251 -0
  919. package/views/dist/grid/chrome/useGridFocus.d.ts +48 -0
  920. package/views/dist/grid/chrome/useGridFocus.js +129 -0
  921. package/views/dist/grid/chrome/useGridHeaderDrag.d.ts +20 -0
  922. package/views/dist/grid/chrome/useGridHeaderDrag.js +37 -0
  923. package/views/dist/grid/chrome/useGridKeyboard.d.ts +65 -0
  924. package/views/dist/grid/chrome/useGridKeyboard.js +463 -0
  925. package/views/dist/grid/chrome/useGridLongPress.d.ts +30 -0
  926. package/views/dist/grid/chrome/useGridLongPress.js +98 -0
  927. package/views/dist/grid/chrome/useGridPartColumns.d.ts +5 -0
  928. package/views/dist/grid/chrome/useGridPartColumns.js +9 -0
  929. package/views/dist/grid/chrome/useGridPendingReconciliation.d.ts +12 -0
  930. package/views/dist/grid/chrome/useGridPendingReconciliation.js +32 -0
  931. package/views/dist/grid/chrome/useGridRailReveal.d.ts +57 -0
  932. package/views/dist/grid/chrome/useGridRailReveal.js +67 -0
  933. package/views/dist/grid/chrome/useGridRangeActions.d.ts +51 -0
  934. package/views/dist/grid/chrome/useGridRangeActions.js +199 -0
  935. package/views/dist/grid/chrome/useGridRangeGestures.d.ts +33 -0
  936. package/views/dist/grid/chrome/useGridRangeGestures.js +241 -0
  937. package/views/dist/grid/chrome/useGridRecorder.d.ts +16 -0
  938. package/views/dist/grid/chrome/useGridRecorder.js +144 -0
  939. package/views/dist/grid/chrome/useGridRowOpener.d.ts +41 -0
  940. package/views/dist/grid/chrome/useGridRowOpener.js +83 -0
  941. package/views/dist/grid/chrome/useGridScaleStyles.d.ts +3 -0
  942. package/views/dist/grid/chrome/useGridScaleStyles.js +28 -0
  943. package/views/dist/grid/chrome/useGridScrollArea.d.ts +47 -0
  944. package/views/dist/grid/chrome/useGridScrollArea.js +120 -0
  945. package/views/dist/grid/chrome/useGridTableInteractionModel.d.ts +81 -0
  946. package/views/dist/grid/chrome/useGridTableInteractionModel.js +336 -0
  947. package/views/dist/grid/chrome/useGridTableSelection.d.ts +31 -0
  948. package/views/dist/grid/chrome/useGridTableSelection.js +55 -0
  949. package/views/dist/grid/chrome/useHeaderDragReorder.d.ts +21 -0
  950. package/views/dist/grid/chrome/useHeaderDragReorder.js +218 -0
  951. package/views/dist/grid/core/clipboard-model.d.ts +123 -0
  952. package/views/dist/grid/core/clipboard-model.js +388 -0
  953. package/views/dist/grid/core/column-values.d.ts +27 -0
  954. package/views/dist/grid/core/column-values.js +76 -0
  955. package/views/dist/grid/core/commit-model.d.ts +48 -0
  956. package/views/dist/grid/core/commit-model.js +3 -0
  957. package/views/dist/grid/core/coordinates.d.ts +48 -0
  958. package/views/dist/grid/core/coordinates.js +27 -0
  959. package/views/dist/grid/core/edge-scroll.d.ts +21 -0
  960. package/views/dist/grid/core/edge-scroll.js +23 -0
  961. package/views/dist/grid/core/edit-values.d.ts +9 -0
  962. package/views/dist/grid/core/edit-values.js +1 -0
  963. package/views/dist/grid/core/editing-controller.d.ts +146 -0
  964. package/views/dist/grid/core/editing-controller.js +563 -0
  965. package/views/dist/grid/core/editing-model.d.ts +113 -0
  966. package/views/dist/grid/core/editing-model.js +168 -0
  967. package/views/dist/grid/core/flat-rows.d.ts +35 -0
  968. package/views/dist/grid/core/flat-rows.js +20 -0
  969. package/views/dist/grid/core/grid-aria.d.ts +31 -0
  970. package/views/dist/grid/core/grid-aria.js +41 -0
  971. package/views/dist/grid/core/grid-focus.d.ts +60 -0
  972. package/views/dist/grid/core/grid-focus.js +171 -0
  973. package/views/dist/grid/core/grid-recorder.d.ts +111 -0
  974. package/views/dist/grid/core/grid-recorder.js +223 -0
  975. package/views/dist/grid/core/grid-scale.d.ts +14 -0
  976. package/views/dist/grid/core/grid-scale.js +8 -0
  977. package/views/dist/grid/core/nav.d.ts +94 -0
  978. package/views/dist/grid/core/nav.js +92 -0
  979. package/views/dist/grid/core/part-edits.d.ts +18 -0
  980. package/views/dist/grid/core/part-edits.js +48 -0
  981. package/views/dist/grid/core/pending-reconciliation.d.ts +53 -0
  982. package/views/dist/grid/core/pending-reconciliation.js +60 -0
  983. package/views/dist/grid/core/range-model.d.ts +25 -0
  984. package/views/dist/grid/core/range-model.js +59 -0
  985. package/views/dist/grid/core/refusal-sentence.d.ts +3 -0
  986. package/views/dist/grid/core/refusal-sentence.js +15 -0
  987. package/views/dist/grid/core/row-opened-from.d.ts +21 -0
  988. package/views/dist/grid/core/row-opened-from.js +11 -0
  989. package/views/dist/grid/core/row-window.d.ts +40 -0
  990. package/views/dist/grid/core/row-window.js +43 -0
  991. package/views/dist/grid/core/spreadsheet-operations.d.ts +101 -0
  992. package/views/dist/grid/core/spreadsheet-operations.js +282 -0
  993. package/views/dist/grid/core/useGridEditing.d.ts +72 -0
  994. package/views/dist/grid/core/useGridEditing.js +105 -0
  995. package/views/dist/grid/core/useGridRange.d.ts +22 -0
  996. package/views/dist/grid/core/useGridRange.js +27 -0
  997. package/views/dist/grid/core/value-equality.d.ts +72 -0
  998. package/views/dist/grid/core/value-equality.js +104 -0
  999. package/views/dist/grid/core/write-states.d.ts +20 -0
  1000. package/views/dist/grid/core/write-states.js +21 -0
  1001. package/views/dist/grid/grid-format-props.d.ts +26 -0
  1002. package/views/dist/grid/grid-format-props.js +65 -0
  1003. package/views/dist/grid/index.d.ts +23 -0
  1004. package/views/dist/grid/index.js +7 -0
  1005. package/views/dist/grid/useGridTablePrefs.d.ts +48 -0
  1006. package/views/dist/grid/useGridTablePrefs.js +47 -0
  1007. package/views/dist/grid/useGridTableSettings.d.ts +60 -0
  1008. package/views/dist/grid/useGridTableSettings.js +61 -0
  1009. package/views/dist/grid-lab.d.ts +18 -0
  1010. package/views/dist/grid-lab.js +16 -0
  1011. package/views/dist/grouping/sort-groups.d.ts +17 -0
  1012. package/views/dist/grouping/sort-groups.js +33 -0
  1013. package/views/dist/grouping/types.d.ts +10 -0
  1014. package/views/dist/grouping/types.js +1 -0
  1015. package/views/dist/index.d.ts +31 -0
  1016. package/views/dist/index.js +30 -0
  1017. package/views/dist/internal/chip.d.ts +4 -0
  1018. package/views/dist/internal/chip.js +3 -0
  1019. package/views/dist/internal/count.d.ts +3 -0
  1020. package/views/dist/internal/count.js +3 -0
  1021. package/views/dist/internal/cx.d.ts +3 -0
  1022. package/views/dist/internal/cx.js +3 -0
  1023. package/views/dist/internal/reset.d.ts +9 -0
  1024. package/views/dist/internal/reset.js +1 -0
  1025. package/views/dist/internal/use-idle-write.d.ts +1 -0
  1026. package/views/dist/internal/use-idle-write.js +13 -0
  1027. package/views/dist/internal/viewport.d.ts +3 -0
  1028. package/views/dist/internal/viewport.js +15 -0
  1029. package/views/dist/internal/zone-clock.d.ts +20 -0
  1030. package/views/dist/internal/zone-clock.js +77 -0
  1031. package/views/dist/model/aggregates.d.ts +61 -0
  1032. package/views/dist/model/aggregates.js +134 -0
  1033. package/views/dist/model/body-frame.d.ts +34 -0
  1034. package/views/dist/model/body-frame.js +15 -0
  1035. package/views/dist/model/card-density.d.ts +8 -0
  1036. package/views/dist/model/card-density.js +10 -0
  1037. package/views/dist/model/card-layout.d.ts +85 -0
  1038. package/views/dist/model/card-layout.js +90 -0
  1039. package/views/dist/model/column-capabilities.d.ts +193 -0
  1040. package/views/dist/model/column-capabilities.js +280 -0
  1041. package/views/dist/model/column-filters.d.ts +109 -0
  1042. package/views/dist/model/column-filters.js +348 -0
  1043. package/views/dist/model/column-format.d.ts +103 -0
  1044. package/views/dist/model/column-format.js +1 -0
  1045. package/views/dist/model/column-from.d.ts +28 -0
  1046. package/views/dist/model/column-from.js +165 -0
  1047. package/views/dist/model/column-inspect.d.ts +28 -0
  1048. package/views/dist/model/column-inspect.js +17 -0
  1049. package/views/dist/model/column-knobs.d.ts +20 -0
  1050. package/views/dist/model/column-knobs.js +16 -0
  1051. package/views/dist/model/column-mark.d.ts +13 -0
  1052. package/views/dist/model/column-mark.js +10 -0
  1053. package/views/dist/model/column-money.d.ts +13 -0
  1054. package/views/dist/model/column-money.js +27 -0
  1055. package/views/dist/model/column-order.d.ts +36 -0
  1056. package/views/dist/model/column-order.js +68 -0
  1057. package/views/dist/model/column-schema.d.ts +355 -0
  1058. package/views/dist/model/column-schema.js +1 -0
  1059. package/views/dist/model/column-sort.d.ts +28 -0
  1060. package/views/dist/model/column-sort.js +25 -0
  1061. package/views/dist/model/column-state.d.ts +72 -0
  1062. package/views/dist/model/column-state.js +92 -0
  1063. package/views/dist/model/column-types.d.ts +97 -0
  1064. package/views/dist/model/column-types.js +50 -0
  1065. package/views/dist/model/column-warnings.d.ts +44 -0
  1066. package/views/dist/model/column-warnings.js +24 -0
  1067. package/views/dist/model/density.d.ts +3 -0
  1068. package/views/dist/model/density.js +13 -0
  1069. package/views/dist/model/field-type-of.d.ts +21 -0
  1070. package/views/dist/model/field-type-of.js +11 -0
  1071. package/views/dist/model/filter-capabilities.d.ts +1 -0
  1072. package/views/dist/model/filter-capabilities.js +1 -0
  1073. package/views/dist/model/index.d.ts +38 -0
  1074. package/views/dist/model/index.js +20 -0
  1075. package/views/dist/model/one-value.d.ts +6 -0
  1076. package/views/dist/model/one-value.js +5 -0
  1077. package/views/dist/model/part-columns.d.ts +17 -0
  1078. package/views/dist/model/part-columns.js +69 -0
  1079. package/views/dist/model/part-rows.d.ts +21 -0
  1080. package/views/dist/model/part-rows.js +35 -0
  1081. package/views/dist/model/part-write.d.ts +11 -0
  1082. package/views/dist/model/part-write.js +52 -0
  1083. package/views/dist/model/place-parts.d.ts +6 -0
  1084. package/views/dist/model/place-parts.js +14 -0
  1085. package/views/dist/model/preferences.d.ts +131 -0
  1086. package/views/dist/model/preferences.js +67 -0
  1087. package/views/dist/model/prefs-buckets.d.ts +145 -0
  1088. package/views/dist/model/prefs-buckets.js +68 -0
  1089. package/views/dist/model/relation-filters.d.ts +64 -0
  1090. package/views/dist/model/relation-filters.js +93 -0
  1091. package/views/dist/model/render-count.d.ts +8 -0
  1092. package/views/dist/model/render-count.js +35 -0
  1093. package/views/dist/model/row-icon.d.ts +29 -0
  1094. package/views/dist/model/row-icon.js +5 -0
  1095. package/views/dist/model/settings-columns.d.ts +34 -0
  1096. package/views/dist/model/settings-columns.js +146 -0
  1097. package/views/dist/model/settings-look.d.ts +17 -0
  1098. package/views/dist/model/settings-look.js +23 -0
  1099. package/views/dist/model/view-rules.d.ts +92 -0
  1100. package/views/dist/model/view-rules.js +300 -0
  1101. package/views/dist/panels/availability.d.ts +26 -0
  1102. package/views/dist/panels/availability.js +28 -0
  1103. package/views/dist/panels/customize-body.d.ts +45 -0
  1104. package/views/dist/panels/customize-body.js +292 -0
  1105. package/views/dist/panels/filter/DateFilterBody.d.ts +44 -0
  1106. package/views/dist/panels/filter/DateFilterBody.js +84 -0
  1107. package/views/dist/panels/filter/DateFilterCalendar.d.ts +19 -0
  1108. package/views/dist/panels/filter/DateFilterCalendar.js +37 -0
  1109. package/views/dist/panels/filter/DateFilterInput.d.ts +16 -0
  1110. package/views/dist/panels/filter/DateFilterInput.js +36 -0
  1111. package/views/dist/panels/filter/FilterIcon.d.ts +7 -0
  1112. package/views/dist/panels/filter/FilterIcon.js +15 -0
  1113. package/views/dist/panels/filter/MenuSelect.d.ts +12 -0
  1114. package/views/dist/panels/filter/MenuSelect.js +50 -0
  1115. package/views/dist/panels/filter/NumberFilterBody.d.ts +21 -0
  1116. package/views/dist/panels/filter/NumberFilterBody.js +75 -0
  1117. package/views/dist/panels/filter/RangeFilterBody.d.ts +19 -0
  1118. package/views/dist/panels/filter/RangeFilterBody.js +78 -0
  1119. package/views/dist/panels/filter/RelationFilterBody.d.ts +17 -0
  1120. package/views/dist/panels/filter/RelationFilterBody.js +20 -0
  1121. package/views/dist/panels/filter/TextFilterBody.d.ts +31 -0
  1122. package/views/dist/panels/filter/TextFilterBody.js +43 -0
  1123. package/views/dist/panels/filter/TimeScopeDetail.d.ts +6 -0
  1124. package/views/dist/panels/filter/TimeScopeDetail.js +47 -0
  1125. package/views/dist/panels/filter/details.d.ts +21 -0
  1126. package/views/dist/panels/filter/details.js +100 -0
  1127. package/views/dist/panels/filter/filter-list.d.ts +23 -0
  1128. package/views/dist/panels/filter/filter-list.js +38 -0
  1129. package/views/dist/panels/group-sort.d.ts +24 -0
  1130. package/views/dist/panels/group-sort.js +58 -0
  1131. package/views/dist/panels/index.d.ts +31 -0
  1132. package/views/dist/panels/index.js +22 -0
  1133. package/views/dist/panels/labels.d.ts +37 -0
  1134. package/views/dist/panels/labels.js +166 -0
  1135. package/views/dist/panels/model.d.ts +429 -0
  1136. package/views/dist/panels/model.js +95 -0
  1137. package/views/dist/panels/panel-button.d.ts +50 -0
  1138. package/views/dist/panels/panel-button.js +21 -0
  1139. package/views/dist/panels/quick/model.d.ts +102 -0
  1140. package/views/dist/panels/quick/model.js +102 -0
  1141. package/views/dist/panels/react/GroupBucketsList.d.ts +16 -0
  1142. package/views/dist/panels/react/GroupBucketsList.js +44 -0
  1143. package/views/dist/panels/react/LayoutColumnsList.d.ts +24 -0
  1144. package/views/dist/panels/react/LayoutColumnsList.js +101 -0
  1145. package/views/dist/panels/react/PopoverColumnDetail.d.ts +11 -0
  1146. package/views/dist/panels/react/PopoverColumnDetail.js +24 -0
  1147. package/views/dist/panels/react/chrome.d.ts +20 -0
  1148. package/views/dist/panels/react/chrome.js +9 -0
  1149. package/views/dist/panels/react/column-refusals.d.ts +7 -0
  1150. package/views/dist/panels/react/column-refusals.js +14 -0
  1151. package/views/dist/panels/react/customize-body.d.ts +15 -0
  1152. package/views/dist/panels/react/customize-body.js +63 -0
  1153. package/views/dist/panels/react/customize.d.ts +33 -0
  1154. package/views/dist/panels/react/customize.js +113 -0
  1155. package/views/dist/panels/react/drag-kit.d.ts +55 -0
  1156. package/views/dist/panels/react/drag-kit.js +89 -0
  1157. package/views/dist/panels/react/drag-load.d.ts +8 -0
  1158. package/views/dist/panels/react/drag-load.js +24 -0
  1159. package/views/dist/panels/react/drag.d.ts +2 -0
  1160. package/views/dist/panels/react/drag.js +5 -0
  1161. package/views/dist/panels/react/field-editor.d.ts +10 -0
  1162. package/views/dist/panels/react/field-editor.js +1 -0
  1163. package/views/dist/panels/react/filter/FilterEditor.d.ts +24 -0
  1164. package/views/dist/panels/react/filter/FilterEditor.js +344 -0
  1165. package/views/dist/panels/react/filter/FilterFieldList.d.ts +15 -0
  1166. package/views/dist/panels/react/filter/FilterFieldList.js +57 -0
  1167. package/views/dist/panels/react/filter/FilterValueBody.d.ts +5 -0
  1168. package/views/dist/panels/react/filter/FilterValueBody.js +22 -0
  1169. package/views/dist/panels/react/filter/PhoneFilterEditor.d.ts +22 -0
  1170. package/views/dist/panels/react/filter/PhoneFilterEditor.js +186 -0
  1171. package/views/dist/panels/react/filter/editor-ctx.d.ts +98 -0
  1172. package/views/dist/panels/react/filter/editor-ctx.js +131 -0
  1173. package/views/dist/panels/react/filter/filter-body.d.ts +19 -0
  1174. package/views/dist/panels/react/filter/filter-body.js +72 -0
  1175. package/views/dist/panels/react/filter/filter-part-body.d.ts +20 -0
  1176. package/views/dist/panels/react/filter/filter-part-body.js +23 -0
  1177. package/views/dist/panels/react/filter/rule-writes.d.ts +56 -0
  1178. package/views/dist/panels/react/filter/rule-writes.js +152 -0
  1179. package/views/dist/panels/react/filter-panel.d.ts +18 -0
  1180. package/views/dist/panels/react/filter-panel.js +48 -0
  1181. package/views/dist/panels/react/layout-detail.d.ts +4 -0
  1182. package/views/dist/panels/react/layout-detail.js +29 -0
  1183. package/views/dist/panels/react/order-details.d.ts +32 -0
  1184. package/views/dist/panels/react/order-details.js +89 -0
  1185. package/views/dist/panels/react/panel-header.d.ts +10 -0
  1186. package/views/dist/panels/react/panel-header.js +20 -0
  1187. package/views/dist/panels/react/panel-sheet.d.ts +23 -0
  1188. package/views/dist/panels/react/panel-sheet.js +24 -0
  1189. package/views/dist/panels/react/popover.d.ts +71 -0
  1190. package/views/dist/panels/react/popover.js +47 -0
  1191. package/views/dist/panels/react/quick/QuickFiltersPanel.d.ts +12 -0
  1192. package/views/dist/panels/react/quick/QuickFiltersPanel.js +148 -0
  1193. package/views/dist/panels/react/quick/QuickFiltersReminder.d.ts +13 -0
  1194. package/views/dist/panels/react/quick/QuickFiltersReminder.js +46 -0
  1195. package/views/dist/panels/react/root-list.d.ts +6 -0
  1196. package/views/dist/panels/react/root-list.js +31 -0
  1197. package/views/dist/panels/react/sort/SortEditor.d.ts +24 -0
  1198. package/views/dist/panels/react/sort/SortEditor.js +290 -0
  1199. package/views/dist/panels/react/sort/SortFieldList.d.ts +12 -0
  1200. package/views/dist/panels/react/sort/SortFieldList.js +34 -0
  1201. package/views/dist/panels/react/sort/use-sort-drag.d.ts +17 -0
  1202. package/views/dist/panels/react/sort/use-sort-drag.js +39 -0
  1203. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +62 -0
  1204. package/views/dist/panels/react/toolbar/ReadyToolbar.js +240 -0
  1205. package/views/dist/panels/react/toolbar/Toolbar.d.ts +30 -0
  1206. package/views/dist/panels/react/toolbar/Toolbar.js +113 -0
  1207. package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.d.ts +25 -0
  1208. package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.js +85 -0
  1209. package/views/dist/panels/react/toolbar/ToolbarAsideFilter.d.ts +20 -0
  1210. package/views/dist/panels/react/toolbar/ToolbarAsideFilter.js +78 -0
  1211. package/views/dist/panels/react/toolbar/ToolbarBarFilter.d.ts +21 -0
  1212. package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +126 -0
  1213. package/views/dist/panels/react/toolbar/ToolbarButton.d.ts +5 -0
  1214. package/views/dist/panels/react/toolbar/ToolbarButton.js +9 -0
  1215. package/views/dist/panels/react/toolbar/ToolbarFilter.d.ts +28 -0
  1216. package/views/dist/panels/react/toolbar/ToolbarFilter.js +42 -0
  1217. package/views/dist/panels/react/toolbar/ToolbarFilterSheet.d.ts +12 -0
  1218. package/views/dist/panels/react/toolbar/ToolbarFilterSheet.js +30 -0
  1219. package/views/dist/panels/react/toolbar/ToolbarFilters.d.ts +19 -0
  1220. package/views/dist/panels/react/toolbar/ToolbarFilters.js +281 -0
  1221. package/views/dist/panels/react/toolbar/ToolbarNew.d.ts +12 -0
  1222. package/views/dist/panels/react/toolbar/ToolbarNew.js +31 -0
  1223. package/views/dist/panels/react/toolbar/ToolbarOptions.d.ts +29 -0
  1224. package/views/dist/panels/react/toolbar/ToolbarOptions.js +33 -0
  1225. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.d.ts +14 -0
  1226. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +16 -0
  1227. package/views/dist/panels/react/toolbar/ToolbarSave.d.ts +8 -0
  1228. package/views/dist/panels/react/toolbar/ToolbarSave.js +42 -0
  1229. package/views/dist/panels/react/toolbar/ToolbarSearch.d.ts +9 -0
  1230. package/views/dist/panels/react/toolbar/ToolbarSearch.js +84 -0
  1231. package/views/dist/panels/react/toolbar/ToolbarSort.d.ts +14 -0
  1232. package/views/dist/panels/react/toolbar/ToolbarSort.js +29 -0
  1233. package/views/dist/panels/react/toolbar/ToolbarSortPill.d.ts +18 -0
  1234. package/views/dist/panels/react/toolbar/ToolbarSortPill.js +81 -0
  1235. package/views/dist/panels/react/toolbar/ToolbarViews.d.ts +13 -0
  1236. package/views/dist/panels/react/toolbar/ToolbarViews.js +29 -0
  1237. package/views/dist/panels/react/toolbar/bar-writes.d.ts +31 -0
  1238. package/views/dist/panels/react/toolbar/bar-writes.js +82 -0
  1239. package/views/dist/panels/react/toolbar/context.d.ts +83 -0
  1240. package/views/dist/panels/react/toolbar/context.js +74 -0
  1241. package/views/dist/panels/react/toolbar/panel-part.d.ts +54 -0
  1242. package/views/dist/panels/react/toolbar/panel-part.js +49 -0
  1243. package/views/dist/panels/react/toolbar/panel-state.d.ts +9 -0
  1244. package/views/dist/panels/react/toolbar/panel-state.js +12 -0
  1245. package/views/dist/panels/react/toolbar/use-box-narrow.d.ts +2 -0
  1246. package/views/dist/panels/react/toolbar/use-box-narrow.js +18 -0
  1247. package/views/dist/panels/react/toolbar/use-give-way.d.ts +4 -0
  1248. package/views/dist/panels/react/toolbar/use-give-way.js +110 -0
  1249. package/views/dist/panels/react/toolbar/use-list-settings-state.d.ts +10 -0
  1250. package/views/dist/panels/react/toolbar/use-list-settings-state.js +10 -0
  1251. package/views/dist/panels/react/view-actions.d.ts +4 -0
  1252. package/views/dist/panels/react/view-actions.js +47 -0
  1253. package/views/dist/panels/react/view-footer.d.ts +20 -0
  1254. package/views/dist/panels/react/view-footer.js +41 -0
  1255. package/views/dist/panels/react/views-row/FoldingViewRow.d.ts +5 -0
  1256. package/views/dist/panels/react/views-row/FoldingViewRow.js +137 -0
  1257. package/views/dist/panels/react/views-row/HScrollRow.d.ts +7 -0
  1258. package/views/dist/panels/react/views-row/HScrollRow.js +42 -0
  1259. package/views/dist/panels/react/views-row/PillGroup.d.ts +30 -0
  1260. package/views/dist/panels/react/views-row/PillGroup.js +85 -0
  1261. package/views/dist/panels/react/views-row/ViewAxes.d.ts +9 -0
  1262. package/views/dist/panels/react/views-row/ViewAxes.js +16 -0
  1263. package/views/dist/panels/react/views-row/ViewCreatePill.d.ts +7 -0
  1264. package/views/dist/panels/react/views-row/ViewCreatePill.js +28 -0
  1265. package/views/dist/panels/react/views-row/ViewPicker.d.ts +5 -0
  1266. package/views/dist/panels/react/views-row/ViewPicker.js +112 -0
  1267. package/views/dist/panels/react/views-row/ViewPickerRow.d.ts +7 -0
  1268. package/views/dist/panels/react/views-row/ViewPickerRow.js +47 -0
  1269. package/views/dist/panels/react/views-row/ViewTabs.d.ts +31 -0
  1270. package/views/dist/panels/react/views-row/ViewTabs.js +29 -0
  1271. package/views/dist/panels/react/views-row/in-frame.d.ts +8 -0
  1272. package/views/dist/panels/react/views-row/in-frame.js +9 -0
  1273. package/views/dist/panels/react/views-row/menu-classes.d.ts +6 -0
  1274. package/views/dist/panels/react/views-row/menu-classes.js +3 -0
  1275. package/views/dist/panels/react/views-row/use-anchored-toggle.d.ts +19 -0
  1276. package/views/dist/panels/react/views-row/use-anchored-toggle.js +31 -0
  1277. package/views/dist/panels/react.d.ts +67 -0
  1278. package/views/dist/panels/react.js +58 -0
  1279. package/views/dist/panels/settings/axes.d.ts +28 -0
  1280. package/views/dist/panels/settings/axes.js +71 -0
  1281. package/views/dist/panels/settings/filter-groups.d.ts +58 -0
  1282. package/views/dist/panels/settings/filter-groups.js +305 -0
  1283. package/views/dist/panels/settings/filters.d.ts +20 -0
  1284. package/views/dist/panels/settings/filters.js +128 -0
  1285. package/views/dist/panels/settings/group-buckets.d.ts +24 -0
  1286. package/views/dist/panels/settings/group-buckets.js +69 -0
  1287. package/views/dist/panels/settings/input.d.ts +84 -0
  1288. package/views/dist/panels/settings/input.js +1 -0
  1289. package/views/dist/panels/settings/layout.d.ts +5 -0
  1290. package/views/dist/panels/settings/layout.js +259 -0
  1291. package/views/dist/panels/settings/order.d.ts +21 -0
  1292. package/views/dist/panels/settings/order.js +227 -0
  1293. package/views/dist/panels/settings/settings-panels.d.ts +21 -0
  1294. package/views/dist/panels/settings/settings-panels.js +33 -0
  1295. package/views/dist/panels/settings/sort-keys.d.ts +25 -0
  1296. package/views/dist/panels/settings/sort-keys.js +74 -0
  1297. package/views/dist/panels/settings/sorts.d.ts +33 -0
  1298. package/views/dist/panels/settings/sorts.js +135 -0
  1299. package/views/dist/panels/sort-body-options.d.ts +4 -0
  1300. package/views/dist/panels/sort-body-options.js +10 -0
  1301. package/views/dist/panels/toolbar/clear.d.ts +9 -0
  1302. package/views/dist/panels/toolbar/clear.js +33 -0
  1303. package/views/dist/panels/toolbar/counts.d.ts +21 -0
  1304. package/views/dist/panels/toolbar/counts.js +29 -0
  1305. package/views/dist/panels/toolbar/edit-view.d.ts +5 -0
  1306. package/views/dist/panels/toolbar/edit-view.js +18 -0
  1307. package/views/dist/panels/toolbar/filter-words.d.ts +42 -0
  1308. package/views/dist/panels/toolbar/filter-words.js +145 -0
  1309. package/views/dist/panels/toolbar/model.d.ts +74 -0
  1310. package/views/dist/panels/toolbar/model.js +110 -0
  1311. package/views/dist/panels/use-filter-opened.d.ts +8 -0
  1312. package/views/dist/panels/use-filter-opened.js +11 -0
  1313. package/views/dist/panels/view-state.d.ts +38 -0
  1314. package/views/dist/panels/view-state.js +1 -0
  1315. package/views/dist/panels/views-row/model.d.ts +141 -0
  1316. package/views/dist/panels/views-row/model.js +24 -0
  1317. package/views/dist/provider/ViewsProvider.d.ts +103 -0
  1318. package/views/dist/provider/ViewsProvider.js +75 -0
  1319. package/views/dist/provider/components.d.ts +1375 -0
  1320. package/views/dist/provider/components.js +5 -0
  1321. package/views/dist/provider/context.d.ts +58 -0
  1322. package/views/dist/provider/context.js +10 -0
  1323. package/views/dist/provider/desktop.d.ts +12 -0
  1324. package/views/dist/provider/desktop.js +25 -0
  1325. package/views/dist/provider/icons.d.ts +6 -0
  1326. package/views/dist/provider/icons.js +1 -0
  1327. package/views/dist/provider/menu-groups.d.ts +9 -0
  1328. package/views/dist/provider/menu-groups.js +44 -0
  1329. package/views/dist/provider/missing-slot.d.ts +10 -0
  1330. package/views/dist/provider/missing-slot.js +15 -0
  1331. package/views/dist/provider/plain-input.d.ts +9 -0
  1332. package/views/dist/provider/plain-input.js +7 -0
  1333. package/views/dist/provider/ports.d.ts +57 -0
  1334. package/views/dist/provider/ports.js +9 -0
  1335. package/views/dist/react.d.ts +14 -0
  1336. package/views/dist/react.js +5 -0
  1337. package/views/dist/selection/SelectCheckbox.d.ts +19 -0
  1338. package/views/dist/selection/SelectCheckbox.js +11 -0
  1339. package/views/dist/selection/SelectionBar.d.ts +18 -0
  1340. package/views/dist/selection/SelectionBar.js +100 -0
  1341. package/views/dist/selection/SelectionBarPhone.d.ts +3 -0
  1342. package/views/dist/selection/SelectionBarPhone.js +14 -0
  1343. package/views/dist/selection/bar-overflow.d.ts +12 -0
  1344. package/views/dist/selection/bar-overflow.js +55 -0
  1345. package/views/dist/selection/bar-parts.d.ts +17 -0
  1346. package/views/dist/selection/bar-parts.js +19 -0
  1347. package/views/dist/selection/bar-room.d.ts +7 -0
  1348. package/views/dist/selection/bar-room.js +3 -0
  1349. package/views/dist/selection/index.d.ts +9 -0
  1350. package/views/dist/selection/index.js +7 -0
  1351. package/views/dist/selection/model.d.ts +55 -0
  1352. package/views/dist/selection/model.js +86 -0
  1353. package/views/dist/selection/row-click.d.ts +35 -0
  1354. package/views/dist/selection/row-click.js +20 -0
  1355. package/views/dist/selection/types.d.ts +21 -0
  1356. package/views/dist/selection/types.js +1 -0
  1357. package/views/dist/selection/useCheckDragSelect.d.ts +61 -0
  1358. package/views/dist/selection/useCheckDragSelect.js +166 -0
  1359. package/views/dist/selection/useListSelection.d.ts +39 -0
  1360. package/views/dist/selection/useListSelection.js +48 -0
  1361. package/views/dist/selection/useListSelectionShortcuts.d.ts +7 -0
  1362. package/views/dist/selection/useListSelectionShortcuts.js +14 -0
  1363. package/views/dist/selection/useRestIntent.d.ts +18 -0
  1364. package/views/dist/selection/useRestIntent.js +35 -0
  1365. package/views/dist/selection/verbs.d.ts +41 -0
  1366. package/views/dist/selection/verbs.js +1 -0
  1367. package/views/docs/contract.md +1181 -0
  1368. package/views/docs/getting-started.md +250 -0
  1369. package/views/docs/guides/atoms.md +305 -0
  1370. package/views/docs/guides/cells.md +302 -0
  1371. package/views/docs/guides/columns.md +413 -0
  1372. package/views/docs/guides/display.md +205 -0
  1373. package/views/docs/guides/editors.md +496 -0
  1374. package/views/docs/guides/ports.md +246 -0
  1375. package/views/docs/guides/selection.md +284 -0
  1376. package/views/docs/guides/the-grid.md +736 -0
  1377. package/views/docs/guides/the-provider.md +478 -0
  1378. package/views/docs/index.md +54 -0
  1379. package/views/docs/install.md +74 -0
  1380. package/views/docs/reference/cells.md +28 -0
  1381. package/views/docs/reference/display.md +46 -0
  1382. package/views/docs/reference/editors-chips.md +6 -0
  1383. package/views/docs/reference/editors-date.md +8 -0
  1384. package/views/docs/reference/editors-location.md +12 -0
  1385. package/views/docs/reference/editors-name.md +8 -0
  1386. package/views/docs/reference/editors-number.md +13 -0
  1387. package/views/docs/reference/editors-open-values.md +10 -0
  1388. package/views/docs/reference/editors-panel.md +12 -0
  1389. package/views/docs/reference/editors-range.md +8 -0
  1390. package/views/docs/reference/editors-relation.md +12 -0
  1391. package/views/docs/reference/editors-select.md +9 -0
  1392. package/views/docs/reference/editors-session.md +13 -0
  1393. package/views/docs/reference/editors-text.md +9 -0
  1394. package/views/docs/reference/editors-value-list.md +6 -0
  1395. package/views/docs/reference/editors.md +5 -0
  1396. package/views/docs/reference/field-row.md +16 -0
  1397. package/views/docs/reference/grid.md +64 -0
  1398. package/views/docs/reference/panels-react.md +172 -0
  1399. package/views/docs/reference/panels.md +220 -0
  1400. package/views/docs/reference/react.md +164 -0
  1401. package/views/docs/reference/selection.md +41 -0
  1402. package/views/docs/reference/views.md +638 -0
  1403. package/views/docs/reshaping.md +19 -0
  1404. package/views/skills/views/SKILL.md +103 -0
@@ -0,0 +1,1299 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@viewkitjs/fields`. `0.x`: the API may change between minor versions.
4
+ Numbers in brackets are findings of the first outside trial.
5
+
6
+ This is `@viewkitjs/fields`' history up to 0.18.0. From 0.19.0 the package is `viewkitjs`, and its changes are in [../CHANGELOG.md](../CHANGELOG.md).
7
+
8
+ ## [0.18.0] — 2026-11-24
9
+
10
+ A percent range's end that states no decimals is filtered at none, as its cell and editor draw it: `ruleDecimalsOf`
11
+ gives it 0 where it gave 2. No export is added; a minor, because what `ruleDecimalsOf` answers changes.
12
+ `@viewkitjs/views` 0.15.0 and `@viewkitjs/postgres` 0.11.0 go out with this version, each needing it.
13
+
14
+ What an app changes when it takes this version:
15
+
16
+ - **Install `@viewkitjs/views` 0.15 and `@viewkitjs/postgres` 0.11 with it**: their peer is now `^0.18.0`, and views
17
+ 0.14 and postgres 0.10 accept only fields 0.17. Take the three together.
18
+ - **A rule on a percent range's end that states no decimals may keep other rows**: "low end is 12.4" now keeps a row
19
+ whose low end reads 12%, in the grid, in a reader that hands `ruleDecimalsOf` and in a server that rounds at it. To
20
+ keep the old rounding on such a field, state `format.decimals` on it (Fixed).
21
+ - **No message key is new, and no export is added or removed**: every name 0.17.0 exported is still exported.
22
+
23
+ ### Fixed
24
+
25
+ - A percent range's end that states no decimals is now filtered at none, as its cell and editor draw it: `ruleDecimalsOf` gives it 0 instead of 2, so a rule "low end is 12.4" keeps a row whose low end reads 12%. A range that states its decimals, or is whole, reads as before. A server that rounds a translated rule at `ruleDecimalsOf` follows with nothing to change.
26
+
27
+ ## [0.17.0] — 2026-11-23
28
+
29
+ A number rule's "is" and "is not" round on the server where the grid rounds them: `ruleDecimalsOf`, from
30
+ `@viewkitjs/fields/query`, says how many decimals, and a translator that rounds at it keeps the rows the grid keeps.
31
+ `@viewkitjs/views` 0.14.0 and `@viewkitjs/postgres` 0.10.0 go out with this version, each needing it.
32
+
33
+ What an app changes when it takes this version:
34
+
35
+ - **Install `@viewkitjs/views` 0.14 and `@viewkitjs/postgres` 0.10 with it**: their peer is now `^0.17.0`, and views
36
+ 0.13 and postgres 0.9 accept only fields 0.16. Take the three together.
37
+ - **A reader of your own that filters numbers** hands `ruleDecimalsOf` as its `decimalsOf`, so it rounds as the grid
38
+ does (Added).
39
+ - **A backend run under the test kit** rounds a number rule at `ruleDecimalsOf(field)`: three new cases fail one
40
+ that rounds a whole range's end or a percent with no stated decimals at two (For an adapter).
41
+ - **No message key is new, and no export is removed**: every name 0.16.0 exported is still exported.
42
+
43
+ ### Added
44
+
45
+ - `ruleDecimalsOf(field)` from `@viewkitjs/fields/query`: the decimals a number rule's `eq` and `neq` round both sides to on a field, as the grid works them out for its column. None for a whole number, percent, currency or range; else the decimals the field states (a rollup, a formula or a lookup read as the field it shows); else 0 for a percent and 2 for any other. On a range it answers for either end. A server that translates rules rounds at it, and a reader of your own hands it as `decimalsOf`, so a list filtered there keeps the rows the grid keeps.
46
+
47
+ ### For an adapter
48
+
49
+ - The test kit's Size range holds whole numbers (`validation: { integer: true }`), its reference reads every number rule at `ruleDecimalsOf`, and three new filter cases hold it: an `eq` at a fraction on a whole range's low end, a `neq` at a fraction on its high end, and an `eq` at a fraction on a percent that states no decimals. A backend that rounds those at two decimals fails them; round at `ruleDecimalsOf(field)`.
50
+
51
+ ## [0.16.0] — 2026-11-23
52
+
53
+ For an app that lets a person make and change fields: a new entry, `@viewkitjs/fields/definitions`, lists the twenty
54
+ types a person may create, each with its words, its icon, its settings as data and a starting definition, and compares
55
+ two definitions of one field, saying which changes may reach values already saved. `checkFieldSpec` refuses every
56
+ closed word it does not know, and `defineFields` and `contributeFields` can refuse a SQL formula. Four types take New
57
+ field's words. `@viewkitjs/views` 0.13.0 and `@viewkitjs/postgres` 0.9.0 go out with this version, each needing it.
58
+
59
+ What an app changes when it takes this version:
60
+
61
+ - **Install `@viewkitjs/views` 0.13 and `@viewkitjs/postgres` 0.9 with it**: their peer is now `^0.16.0`, and views
62
+ 0.12 and postgres 0.8 accept only fields 0.15. Take the three together.
63
+ - **A definition that arrives as data may now be refused**: `checkFieldSpec` refuses a closed word it does not know,
64
+ in any case or with a stray space, naming it and where it stands. A definition that type-checks is unaffected
65
+ (Fixed).
66
+ - **Four types read in other words**: Long text (rich text), Percent, Member (a user) and Place (a location),
67
+ wherever you show `fieldTypeLabel`. A test or a screen that expects Rich text, Percentage, User or Location
68
+ changes, unless your own resolver for `type.label` words them (Changed).
69
+ - **An app that builds definitions from rows passes `allowSql: false`** to `defineFields` and `contributeFields`, or
70
+ a row could name a SQL formula (Added).
71
+ - **A New field dialog builds from `creatableFieldTypes`**, and a change to a field is read through
72
+ `fieldSpecChanges`, both from `@viewkitjs/fields/definitions` (Added).
73
+ - **New at the root**: `FIELD_TYPES`, `STATUS_SLOTS` and `CATEGORY_COLORS` (Added).
74
+ - **No message key is new, and no export is removed**: every name 0.15.0 exported is still exported.
75
+
76
+ ### Added
77
+
78
+ - A new entry, `@viewkitjs/fields/definitions`, for an app that lets a person make and change fields; the root entry does not load it. `creatableFieldTypes(conventions?)`, from it, lists the twenty types a person may create, in a New field dialog's order: never the actor, which the system sets, nor a lookup, rollup or formula, which are worked out from other fields. Each entry (`FieldTypeEntry`) carries the type's `label` in your words, its `icon` (the type's own key, which the views' icon names hold), whether it may hold several values (`several`), its `settings` as data (`FieldTypeSetting`: a dotted `path`, a `kind`, the allowed `words` or bounds, `when` it applies, whether it is `required` and what it `start`s as) and a starting `spec` that `checkFieldSpec` accepts as it stands. Build the dialog from it, and leave a type or a setting out by filtering the list rather than writing your own. A switch that is off is written by removing its key, never as `false`; a setting whose `when` stops holding is removed, and so is a block it leaves empty. A relation starts with no kind: set one before you save.
79
+ - `CREATABLE_FIELD_TYPES` and the `CreatableFieldType` type, from the same entry, name those twenty.
80
+ - `fieldSpecChanges(before, after)`, from `@viewkitjs/fields/definitions`, compares two definitions of one field and returns every change between them (`FieldSpecChange`): its `kind` (`FieldSpecChangeKind`: the type, several values, the cardinality, an option added, removed, relabelled, recoloured, archived, restored or changed, the options reordered, the label, the description, the default, required, unique, a validation rule or another setting), its dotted `path`, the `option` it names, `before`, `after`, and `reachesValues`, whether values already saved may no longer be what the new definition keeps or means. `reachesValues` is deliberately cautious: any validation change says true, a loosening included. Stamps such as `key` and `entity` are not changes, an absent key reads as its default, and two equal definitions give none. Allow or refuse each change in your own words.
81
+ - `defineFields` and `contributeFields` take `allowSql`, default `true`. An app that builds definitions from rows passes `allowSql: false` to both, or a row could name a SQL formula.
82
+ - `FIELD_TYPES`, every field type at run time; `STATUS_SLOTS` and `CATEGORY_COLORS`, the colour roles and label colours an option may carry.
83
+ - `FieldSettingWhen`, from `@viewkitjs/fields/definitions`: the `when` a setting carries, the dotted `path` of another word or switch setting and the value it `is` while this one applies.
84
+
85
+ ### Changed
86
+
87
+ - Four type labels now read Long text (rich text), Percent, Member (a user) and Place (a location), wherever an app shows `fieldTypeLabel`; the other types keep their words. Your own message resolver for `type.label` still words every type your own way.
88
+
89
+ ### Fixed
90
+
91
+ - `checkFieldSpec` refuses every closed word it does not know, the type first: an unknown type, a relation's cardinality, `edit.mutability`, an option's slot, colour or mark, a status group's slot, `storage`, `vocabulary`, a format's words, a band's tone, a rollup's or formula's `freshness`, a rollup's `orderBy.direction` and `provenance.owner`. The refusal names the word as given and where it stands, so a word in the wrong case or with a stray space is refused too. A definition that type-checks is unaffected.
92
+
93
+ ## [0.15.0] — 2026-11-21
94
+
95
+ Show counts is part of a list's settings: a view keeps it, a change and a link carry it. A figure counts the values
96
+ present for a column of any type (`ColumnFigure.filled`), and Unique tells different ranges, people, related records
97
+ and actors apart. A date filters by "is not" a day. `whereWaits` says when a relation rule's where can't narrow yet, so
98
+ a translator answers it as the evaluator does. A phone kept as typed with no digit no longer links to `tel:`. The
99
+ usage skill names the schemas of a list's settings and of its hold.
100
+
101
+ What an app changes when it takes this version:
102
+
103
+ - **`filter.date-summary` and `DateFilterOperator` gain `is_not`**: a host whose own resolver or `switch` covers every
104
+ operator adds the case (`case "is_not": return \`Not ${from}\`` in English), or its build fails (Changed).
105
+ - **A range with neither end set is blank in Filled and Unique** (Changed).
106
+ - **Unique tells different ranges, people, related records and actors apart**: a footer that read 1 under such a
107
+ column now reads how many different values it holds (Fixed).
108
+ - **A backend that answers figures answers `filled`** for every key it is asked about, and a translator answers
109
+ `is_not` keeping the rows with no date; the test kit asks both (For an adapter).
110
+ - **Nothing exported is removed**, and a value with no `showCounts` reads as it did, with counts shown.
111
+
112
+ ### Added
113
+
114
+ - **`ListSettings.showCounts`**: whether the views and the quick filters draw their counts, kept by the view beside
115
+ its look. Optional: absent is on, so every stored value and every link reads as before. `listSettingsSchema` takes a
116
+ yes or no, `listSettingsChangeSchema` takes `null` to take it back to on, and a link carries it like any other part.
117
+ A person's layer refuses it: it is the view's alone.
118
+ - A date and a date-and-time field filter by "is not" a day: `is_not` joins `DateFilterOperator`, second in `DATE_FILTER_OPERATORS` ("Is not", one day) and in what `operatorsFor("date")` and `operatorsFor("datetime")` offer, right after `is`. It keeps every record but those on that day, the records with no date included, as every "not" rule keeps an empty value. `matchesDateRule`, `matchesRule`, `evaluateView` and `countMatching` answer it; `dateRuleLabel` writes it as "Not 3 Mar 2026".
119
+ - The test kit sweeps `is_not` on every date and date-and-time field of its samples, and holds two named cases over a date and a date-and-time with records that have none, so a backend that drops the undated records, or reads the day in another zone, fails.
120
+ - `ColumnFigure.filled` (`/query`): how many of a column's values are present, by the same rules as Filled in `figureOfValues` (several values filled by having one; a place, a name and a phone by their text; anything else as it is, a blank not filled), for a column of any type. `figuresOf`, and the figures `evaluateView` answers for a list and each group, carry it for every key asked.
121
+ - `whereWaits(where)` (`/query`): whether a relation rule's where holds rules, none of which could narrow yet (each still being typed, set aside, or a group of those). It reads the stored values without types: a blank text, no number, an empty choice, a between with an end empty or a relative window missing a part waits; a whole range with one open end ("and up") doesn't. A translator that decides by it answers as the evaluator does.
122
+
123
+ ### Changed
124
+
125
+ - The usage skill names `listSettingsSchema` and `listHoldSchema`: what each checks, and that the hold sits beside the
126
+ settings and reaches `evaluateView` as `ViewQuery.hold`.
127
+ - The `filter.date-summary` message takes `is_not` as its operator. A host whose own resolver switches over every operator that message names adds the case, or its build fails: `case "is_not": return \`Not ${from}\`` in English.
128
+ - A host that switches over every `DateFilterOperator` adds `is_not` the same way.
129
+ - `figureFor("filled", …)` reads `filled`, so a list shown in pages, handed the whole list's figures, reads the same Filled under a text, a pick, a person or a relation column as it does when its rows are all loaded, instead of 0. An answer without `filled` still reads Filled from `count`, as before.
130
+ - A range with neither end set (`{ low: null, high: null }`) is now blank in Filled and Unique. A range column's Filled no longer counts such a range, and its Unique no longer counts it as a value.
131
+ - `combineFigure` adds `filled` (a side without one counted by its `count`), and leaves it out when neither side carries one. `isGroupFigures` accepts a figure whose `filled` is a number.
132
+
133
+ ### Fixed
134
+
135
+ - A relation rule whose where holds rules, none of them whole (a far rule switched to a way that takes a value, with none yet), narrowed the list to the rows with at least one related record ("any") or with none ("none"). It now narrows nothing until a rule in its where is whole, in `matchesTree`, `evaluateView` and `countMatching`, and `hasActiveRules` no longer counts it. A where with no rules at all keeps its meaning: "any" keeps the rows with at least one related record, "none" those with none.
136
+ - The test kit holds three such cases (any, none and every whose where still waits), and two whose where holds no rule (any company at all, no partner at all), so a backend that answers them another way fails.
137
+ - `phoneHref` gives `null` for a phone kept as typed whose text holds no digit ("Ask reception for Jo"), where it gave `tel:` alone, a link that dials nothing. Text kept as typed with digits still links to them (`"0803 555 0142"` → `tel:08035550142`), and an international phone is unchanged.
138
+ - `figureOfValues("unique", …)` counted any set of different objects as one: two different ranges, people, related records or actors all read alike, so a footer's Unique showed 1 under a range, a person, a relation or an actor column however many different values it held. It now tells them apart as the option counts do: a range by its two ends, a person or a related record by its id (a `{ id, label }` the cell draws, or the bare id), an actor by its key, and several values as the set of their keys, in any order. A range with neither end set stays blank, counted in neither Filled nor Unique.
139
+
140
+ ### For an adapter
141
+
142
+ - A translator that answers date rules answers `is_not` as "no date, or a day other than this one": the empty value is kept, and under a `not` group it is dropped.
143
+ - A backend that answers figures should answer `filled` for every key it is asked about, a key that holds no number included. The test kit's figures compare checks `filled` (read as `count` where an answer carries none), a new figures case asks Filled of a text, a pick, a person, a relation, several values, a place, a name, a phone, a range, an actor, a yes/no and a date, and every group case now asks a person column's figures beside the amount.
144
+
145
+ ## [0.14.0] — 2026-11-20
146
+
147
+ A quick-filter hold: what a quick filter holds on top of a view, as a value of its own with its own schema, answered
148
+ in memory with the view, and each value a quick filter offers counted; the test kit asks a backend the same.
149
+
150
+ What an app changes when it takes this version:
151
+
152
+ - **A backend the test kit proves meets a new area, `hold`**: its rows cases ask the rows under `question.hold`, so a
153
+ backend that doesn't hand the hold on fails them until it does, or leaves the area out by `kitCase.area` (Added).
154
+ - **`filter.operator` words `is_any_of` and `is_none_of`** as "Is any of" and "Is none of", where it read their raw
155
+ keys (Changed).
156
+
157
+ ### Added
158
+
159
+ - **`ListHold`** (`HeldField`, `LIST_HOLD_LIMITS`, `HOLD_TYPES`): a list's quick-filter hold, beside its settings and
160
+ never inside them, as a list of held fields: `[{ fieldKey, values }]`. A row stays when it holds any of a field's
161
+ held values and passes every held field.
162
+ - **`listHoldSchema`**: the hold's one schema, refusing an unknown key and a field held twice.
163
+ - **`ViewQuery.hold`**: `evaluateView` answers a list's rows under its filter, its search and its hold.
164
+ - **`withHold`** and **`heldInForce`**: the filter a list answers under its hold, written as ordinary rules a database
165
+ translator compiles, and the held fields that narrow.
166
+ - **`countHoldValues`**, and the query kit's method of the same name: each value a quick filter offers, counted under
167
+ the whole view, the search and the other fields' holds, never its own.
168
+ - **The test kit's `hold` area** (`@viewkitjs/fields/testing`): a question may hold a quick filter on top of its
169
+ settings (`KitQuestion.hold`), and the kit asks a backend the rows, the total, the figures and the groups under it,
170
+ and each quick-filter value's count through a new optional answer, `KitBackend.holdCounts`, held to
171
+ `countHoldValues`. A backend that doesn't hand the hold on fails the area's rows cases: leave the area out by
172
+ `kitCase.area` until it answers holds.
173
+
174
+ ### Changed
175
+
176
+ - `filter.operator` words `is_any_of` and `is_none_of` as "Is any of" and "Is none of"; they read their raw keys before.
177
+
178
+ ## [0.13.0] — 2026-11-18
179
+
180
+ A formula reads a relation of one record as its record's name, conventions take a names language beside the
181
+ locale, the date editors' quick day a week from today, and a test kit that works lookups, rollups and formulas out
182
+ from their definitions.
183
+
184
+ What an app changes when it takes this version:
185
+
186
+ - **`isEmpty` reads a relation of one record by its name**: a record named `""` is now empty (Changed).
187
+ - **Country names follow `conventions.language`**, which is `locale` until you state one, so conventions that state
188
+ none read exactly as before (Added, Changed).
189
+ - **Three new message keys**, `date.in-a-week`, `filter.relative-direction` and `filter.relative-unit`: a resolver
190
+ that words every message with a `switch` and no default must word them (Added).
191
+ - **A number or range rule's summary writes its numbers with your decimal**: `> 1,5` where the conventions state a
192
+ comma (Fixed).
193
+
194
+ ### Added
195
+
196
+ - **`filter.relative-direction`** (`{ direction }`: "Past", "Next", "This") and **`filter.relative-unit`**
197
+ (`{ unit }`: "day", "week", "month", "year"): a relative date rule's direction and unit each on its own, as a
198
+ menu lists them, beside `filter.relative`, which words the two together.
199
+ - **`date.in-a-week`** ("In a week"): the date editor's quick day a week from today, offered where an app names it in
200
+ the views provider's `datePicks`. A resolver that words every message with a `switch` and no default must word it.
201
+
202
+ - The test kit works its lookups, rollups and formulas out from their definitions, at each question's moment and zone, over only the far records the backend was handed, and holds a backend to those answers. Its samples hold a lookup of a lookup, every rollup function over one relation and over two, a rollup through its own filter and one with a date rule, and a formula over a lookup.
203
+ - **A formula's rule reads a relation of one record as its record's name.** `{ field: "company" }`, where `company` is a relation of one record, is text in a rule: `checkFormula` types it `"text"`, so any text function takes it (`concat`, `join`, `coalesce`, `upper`…), and `evaluateFormula` reads the relation's `{ id, label }` as its `label` (`""` for a record named nothing, no value when it points at none, or when `read` gives anything but `{ id, label }`, a bare id included). So a record can be named after the record it points at, `name: { type: "formula", rule: { field: "company" }, result: { type: "text" } }`, which `defineFields` refused with "the rule produces list, but the result is a text". A relation of several records is still a value with parts, which only `isEmpty` reads.
204
+ - The test kit works such a formula out from the far record's own name as it is now, none when the far record isn't handed in, and its samples hold one (a deal's company name joined with its stage). A formula reading a relation whose records have no name (a kind named by a number, say), or one naming several kinds, is refused by name.
205
+ - Conventions take a names language, `language` (BCP 47): the language your interface reads in. A place's country and region names are written in it, while dates, numbers and the order text sorts in keep `locale`. Unstated, it is `locale`, so conventions that state none read exactly as before, and `.with({ locale })` moves it along until you state one. `defineConventions` refuses a `language` `Intl` doesn't know, as it refuses a locale.
206
+
207
+ ```ts
208
+ const conventions = defineConventions({ locale: "ro", language: "en" });
209
+ conventions.language; // "en": "Hungary", where the locale alone wrote "Ungaria"
210
+ ```
211
+
212
+ ### Changed
213
+
214
+ - The test kit's samples gain a calls table and company fields (staff, founding day, parent, calls), and the formula `weighted` gains its rule. `partner_count` is 0 over no partner. Each record still holds its worked-out values, now worked out by the kit at `KIT_NOW` in the first zone. A backend that runs the kit adds the 17 new deal fields (a column and a mapping each, or the builder works them out); one that keeps worked-out values as columns skips `filter · calls this month, in UTC` by name, since that case asks a date rule in another zone.
215
+ - **`isEmpty` reads a relation of one record by its name.** A relation pointing at a record named `""` was read as present and is now an empty text, so `isEmpty` is `true` for it. A relation pointing at no record is empty as before.
216
+
217
+ ```ts
218
+ // before: a record named "" counted as present
219
+ evaluateFormula({ fn: "isEmpty", args: [{ field: "company" }] }, () => ({ id: "c1", label: "" }), ctx, fields); // false
220
+ // now: its name is empty
221
+ evaluateFormula({ fn: "isEmpty", args: [{ field: "company" }] }, () => ({ id: "c1", label: "" }), ctx, fields); // true
222
+ ```
223
+ - A sort by a place's country, a country group's name and a search over a place read the names language (`conventions.language`) instead of `conventions.locale`. The text order the names are compared in is still your locale's.
224
+
225
+ ### Fixed
226
+
227
+ - `numberRuleLabel` and `rangeRuleLabel` write their numbers with the conventions' decimal: a comma where the
228
+ conventions state one (`> 1,5`, `≥ 2,5`). They wrote a dot whatever the conventions said.
229
+
230
+ ## [0.12.0] — 2026-11-14
231
+
232
+ A list's settings are one value with one schema, read the same way in the browser, on a server and from an agent:
233
+ with a link form, a person's own layer over a shared view, and rules, sorts and groups that no longer fit set aside
234
+ rather than dropped. The in-memory answer gains a search rule, option counts and figures, and a test kit proves your
235
+ own backend answers as it does. What an app changes: two names are removed (`GroupOrderMode`,
236
+ `LOCATION_BUCKET_RULES`; Removed, below). What it sees change with no code change: a tag list groups under every tag
237
+ it carries, a between with an end still empty filters nothing, a relation holding several records sorts by their
238
+ names, and a sort whose order its field no longer has is set aside instead of read as the field's first order.
239
+ `@viewkitjs/views` 0.5.0 and `@viewkitjs/postgres` 0.1.0 need this version.
240
+
241
+ ### Added
242
+
243
+ - `ListSettings`, a list's whole settings as one value (its search, filter, sorts, row order, group and the group's figures, columns, look, layout and the board's and calendar's fields), and `listSettingsSchema`, the one schema that checks it in the browser, on a server and from an agent. It refuses an unknown key, a fourth sort, a field sorted twice, a filter deeper than 3 levels and a group of more than 50 items, each with its reason. `settingsForSaving` gives the copy a saved view keeps: everything but the search.
244
+ - `ListColumnState`, `ListDensity`, the part-key grammar a column-state id follows for a column showing one part of a value (`partKey`, `parsePartKey`), the figure kinds (`FIGURE_KINDS`, `FigureKind`) and a group header's figures (`ListGroupSummaryPart`, `isGroupSummaryPart`, `normalizeGroupSummary`, `groupFigurePart`), from `@viewkitjs/fields/query`, so a server reads them without React.
245
+ - What a person changed over a saved view has one shape, `ListSettingsChange`: any of the settings' parts, each
246
+ replacing the view's part whole, with `null` removing a part the settings may leave out. `listSettingsChangeSchema`
247
+ checks it part by part as `listSettingsSchema` checks the settings, and refuses an unknown part. `settingsChange(view,
248
+ edited)` works out what changed and `applySettingsChange(view, change)` puts it back. A list with no saved views
249
+ changes its defaults.
250
+ - A person's own layer over a shared view, `ListPersonalLayer`: their column widths by column id, the groups they
251
+ folded, the layout they read the list in on a phone and their own look. `listPersonalLayerSchema` refuses a filter,
252
+ a sort, a group or any other key. `applyPersonalLayer(settings, layer, { phone })` gives the settings they see, and
253
+ `seenListSettings(view, change, layer, { phone })` applies a change and then a layer over a view.
254
+ - `listLookSchema`, the look's schema on its own.
255
+ - One link form for a list's state: `writeListLink(address, { view, base, settings }, { carryChanges })` writes the
256
+ saved view a list starts from (`view`), the search (`q`) and, with `carryChanges`, only what changed over that view
257
+ (`change`), keeping the address's other parameters. It returns `{ params, problem }`: changes longer than
258
+ `LIST_LINK_LIMITS.change` are left out whole and `problem` says so. A list with no saved views passes its defaults
259
+ as the base and carries what differs from them. Without `carryChanges` a link holds the view and the search only.
260
+ - `readListLink(address)` reads a whole address, a query string or its parameters back to the view and what changed,
261
+ the search included, checked with `listSettingsChangeSchema`; a change that is too long, doesn't decode or doesn't
262
+ fit is ignored whole and named in `problem`, and the view and the search still read. `openListLink(address,
263
+ baseFor, fields)` gives the settings a link shows over the base the app holds for its view, read through
264
+ `readListSettings`: a rule naming a field the list no longer has is set aside, never dropped, and listed in
265
+ `setAside`. `LIST_LINK_PARAMS` names the three parameters.
266
+ - The changes travel as canonical JSON in base64url, so one change is always one link and a link needs no escaping.
267
+ - A rule that no longer fits its list is set aside, never dropped quietly and never refused: its field is gone
268
+ (`missing-field`), its operator is one its field no longer offers (`unfit-operator`, which also covers a rule across
269
+ a field that is no longer a relation of one kind), or it names a part its field no longer has (`unfit-part`). It
270
+ stays where it sits in the filter with an optional `setAside: { reason }` key, which `listSettingsSchema` accepts on
271
+ a rule and on a rule across a relation, and it filters nothing: `ruleIsActive` is false for it, `matchesTree`,
272
+ `hasActiveRules` and `evaluateView` leave it out, and `checkFilterTree` passes it. A database adapter skips it too.
273
+ - `readListSettings(settings, fields)` is the one door every reading of a list's settings goes through, a link's, a
274
+ saved view's and an agent's alike, after the schema: it returns a new value with every newly unfit rule marked (the
275
+ very same value when there is none) and the list of set-aside rules, each with its `path`, its `reason` and whether
276
+ it `fits` the list's fields again. The value handed in is left as it is, so a rule set aside only in memory filters
277
+ again once its field is back; saving the value read saves the mark. A rule merely inactive is never set aside.
278
+ - A saved set-aside rule never filters again by itself, even once its field is back. `putBackRule(settings, path)`
279
+ puts it back; `removeSetAsideRule(settings, path)` removes it, and a group or a relation's `where` it leaves empty
280
+ goes with it. `unfitReason(rule, fields)` says why a rule doesn't fit.
281
+ - `listFieldsOf(entity, index)`, from the package's root, gives a list's fields as `readListSettings` judges them: the
282
+ entity's own, and through a relation the far entity's. Without a relation's far fields, the rules across it are not
283
+ judged. New types: `ListFields`, `SetAsideRule`, `RulePath`, `SetAside`, `SetAsideReason`, and the list
284
+ `SET_ASIDE_REASONS`.
285
+ - A sort, the group and the board's field that no longer fit the list are set aside as a rule is, never dropped
286
+ quietly: their field is gone (`missing-field`), or a sort's or the group's `by` names an order its field no longer
287
+ has (`unfit-part`), where a sort used to read the type's first order instead and a group the whole value. Each
288
+ carries an optional `setAside: { reason }` key, which `listSettingsSchema` accepts on a sort, the group and
289
+ `board`, and is never applied: `compareBy` and `evaluateView` skip a set-aside sort, `evaluateView` answers a
290
+ set-aside group with no buckets, and a board whose field is set aside opens as if nobody had picked
291
+ (`defaultBoardField(fields)`), its lanes kept. A database adapter leaves them out too. A column on a missing field
292
+ still drops, and the calendar's field stays the app's.
293
+ - `readListSettings` marks them in the value it returns and lists them beside the rules: `setAsideSorts` (each with
294
+ its `index`, `sort`, `reason` and whether it `fits` again), `setAsideGroup` and `setAsideBoardField` (null when
295
+ there is none). Its answer is named `ListSettingsRead`; `ListLinkOpened` carries the same keys.
296
+ - A saved one never comes back by itself, even once its field is back: `putBackSort(settings, index)`,
297
+ `putBackGroup(settings)` and `putBackBoardField(settings)` put it back; `removeSetAsideSort(settings, index)`,
298
+ `removeSetAsideGroup(settings)` (the list ungrouped) and `removeSetAsideBoardField(settings)` (its lanes kept)
299
+ remove it. New types: `SetAsideSort`, `SetAsideGroup`, `SetAsideBoardField`, `ListSettingsRead`.
300
+ - A rule across a relation ("any / none / every of its records where …") is answered in memory when the reader hands
301
+ in the related records: `ViewFieldReader.related(row, fieldKey)` returns each far record as a `RecordReader`,
302
+ built with `recordReaderFor(farRow, farReader)`. "Every" is true for a record with no related records, as a
303
+ database answers it. A reader without `related` answers as before: such a rule has no opinion and the row stays.
304
+ - `matchesTree` takes a `RecordReader` (`{ read, related }`) as well as a bare `RuleReader`, and
305
+ `hasActiveRules(filter, fieldOf, answersRelations)` counts a rule across a known relation when its third argument
306
+ is true.
307
+ - **A search rule.** `ViewQuery` takes an optional `search`, `{ text, fields }`, and `evaluateView` narrows the rows
308
+ by it within the filter: every word of the text must appear in some field it names, case and accents ignored, so
309
+ "acme london" finds Acme whose city is London and "stefan" finds Ștefan. A word loses what is not a letter or a
310
+ digit at its ends and a token with none is no word, so "Acme - London" searches as "Acme London". A text-like field is searched by its own
311
+ `contains` rule, a place by its text, an option by its label, a link or an actor by its name; numbers, dates,
312
+ yes/no and ranges are never searched. With `rowId` among `evaluateView`'s options, the whole text pasted as an id
313
+ finds that row too. `matchesSearch`, `searchWords` and `hasSearch` ask it directly, and the query kit binds
314
+ `matchesSearch`.
315
+ - **Option counts.** `countOptions(rows, { filter, search }, fieldKey, reader)` gives the number beside each option
316
+ of a select, status, tag list, relation, person, actor or yes/no field: the rows the list keeps with that field's
317
+ own rules left out (`withoutOwnRules`), under the search. A row counts once under every option it holds and under
318
+ `""` when it holds none; every declared active option is listed, and the empty one, at 0 when no row holds it.
319
+ The query kit binds it.
320
+ - **Figures.** `@viewkitjs/fields/query` works out every figure a list shows: `figureOfValues` (count, filled,
321
+ unique, sum, average, smallest, largest over one column's values), `ratioOf`, `figureOfNumbers`, `figureNumber`,
322
+ and `figuresOf`, which answers the shape a database answers (`GroupFigures`: the rows, and each key's sum, count,
323
+ smallest and largest). `evaluateView` answers them for the kept rows and for each bucket when asked:
324
+
325
+ ```ts
326
+ const { figures, buckets } = evaluateView(rows, query, reader, { figures: ["value"] });
327
+ figureFor("avg", figures!, "value");
328
+ ```
329
+
330
+ `GroupFigures`, `ColumnFigure`, `FigureKind`, `EMPTY_FIGURE`, `combineFigure`, `figureOf`, `figureFor`,
331
+ `ratioFigure` and `isGroupFigures` now live here too.
332
+ - `BucketRule.keysOf`: every key a value falls under, when it may fall under several. `bucketRows` reads it before
333
+ `keyOf`.
334
+ - **A test kit.** `@viewkitjs/fields/testing` proves that your own backend answers a list's settings as ViewKit's
335
+ in-memory answer does. It hands your backend sample records with a field of every type and the cases where
336
+ answers drift (empty values under "not", days across time zones, accents and case, several values, parts,
337
+ relations), asks it questions, each a list's settings, and compares the rows and their pages, the search, the
338
+ total, each option's count, the figures and the groups with ViewKit's own answer over the same records. A backend
339
+ is a plain object of answers (`KitBackend`), on a database or none: one that writes SQL runs it inside its
340
+ answers. Of its answers only `rows` is required (beside `setup`); a question your backend leaves unanswered is reported as not checked, never as
341
+ passed. Text is compared in your backend's own order (`orderTexts`). The kit imports no test framework:
342
+ `testKitFor(backend)` gives each case to wrap in your own `it`, and `runTestKit(backend)` runs them all and
343
+ reports.
344
+ - **ViewKit's own answer as a backend.** `memoryBackend()` answers every question through this package's own
345
+ functions; it is what every other backend is held to, and an example of a backend with no database.
346
+ - **Speed checks.** `checkSpeed(backend, plan)` times a page of 50 under 3 sorts, the total, each option count, the
347
+ figures and the groups, each the median of 5 calls after a warm-up, against a plan's limits: `DATABASE_SPEED`
348
+ (100,000 records, a page within 100 ms, every other question within 500 ms) or `MEMORY_SPEED` (10,000 records,
349
+ every question within 250 ms). Change the size or the limits to suit; `speedReportText` prints both. Run them on
350
+ their own, never inside a test run: they measure the machine as much as the code.
351
+
352
+ ### Changed
353
+
354
+ - **A tag list groups under every tag it carries.** `bucketRows` and `evaluateView` put a row whose multiselect
355
+ holds several values in the bucket of each, once; before, only in its first value's. An empty list still falls
356
+ under None, and a many relation still groups by its first link.
357
+
358
+ ```ts
359
+ // a row tagged ["b", "a"], grouped by its tags
360
+ // before: in "b" only
361
+ // after: in "a" and in "b"
362
+ ```
363
+
364
+ - `filterValueSchema` accepts a number between (and a range's end between) with an end still empty, as `null`:
365
+ `[5, null]`, `[null, 5]`, `[null, null]`. Such a rule is inactive (`ruleIsActive` is false) and keeps every row.
366
+
367
+ ### Removed
368
+
369
+ - `GroupOrderMode`, another name for `BucketOrderMode`: name `BucketOrderMode`.
370
+
371
+ ```ts
372
+ // before
373
+ import type { GroupOrderMode } from "@viewkitjs/fields/query";
374
+ // after
375
+ import type { BucketOrderMode } from "@viewkitjs/fields/query";
376
+ ```
377
+
378
+ - `LOCATION_BUCKET_RULES`: `bucketRuleFor(field, by)` gives a place's rule for the order named.
379
+
380
+ ```ts
381
+ // before
382
+ LOCATION_BUCKET_RULES.city;
383
+ // after
384
+ bucketRuleFor(placeField, "city");
385
+ ```
386
+
387
+ ### Fixed
388
+
389
+ - A date "is between" with an end left null filters nothing until both days are picked, as an end left `""` already
390
+ did. `[day, null]` and `[null, day]` used to match "on or after" that day, and `[null, null]` filtered every row out;
391
+ now each is inactive and keeps every row, in `ruleIsActive`, `matchesRule`, `matchesTree` and the evaluator alike.
392
+ `dateFilterRuleOf` reads a null end as `null` rather than the text `"null"`. `filterValueSchema` still accepts a pair
393
+ with an empty end, as a value still being picked.
394
+ - A relation or a user holding several records sorts by its records' names: each value's names are put in A-to-Z
395
+ order, then two values compare name by name, the one whose names run out first coming first ("Ops" before
396
+ "Ops, Sales" before "Sales"). One record sorts as a list of one, as before. It used to sort by the text
397
+ "[object Object]", so in practice by how many records it held. An empty value still sorts last in both directions,
398
+ and descending reverses the values, never the names inside one. The names compare in the host's alphabet; a
399
+ database adapter answers in its own text order.
400
+ - A range with neither end sorts with the empty values in both directions, as no range does. Sorted descending it used
401
+ to come first. A database that keeps a range as two columns can't tell the two apart, so it now orders them as
402
+ ViewKit does.
403
+ - `FilterValue` names a date pair with an end left null, `readonly [string | null, string | null]`, a value
404
+ `filterValueSchema` accepts and a stored rule may hold. Such a rule typechecks as a `FilterRule` with no cast.
405
+ - `listSettingsSchema` reads a date "is between" pair whose end is still empty as `null`, such as
406
+ `["2026-03-10", null]`, as `filterValueSchema` accepts it and a stored rule may hold it. A saved view holding one used
407
+ to fail the settings schema. The value reads as it is stored, and its rule filters nothing until both days are
408
+ picked. `listSettingsChangeSchema` accepts it too.
409
+
410
+ ### For an adapter
411
+
412
+ - A between's value can now hold `null` at either end. Skip any rule `ruleIsActive` says is inactive before reading its
413
+ value, and a half-typed between never reaches your query.
414
+
415
+ ## [0.11.0] — 2026-11-13
416
+
417
+ A relation's link may hold several roles: a link that carries only `role` reads, passes and is written back exactly
418
+ as before. A range's and a phone's parts are listed, and a range's ends filter and sort on their own; the lists of
419
+ sort orders and filter parts answer more for a range and a place (Changed, below).
420
+
421
+ ### Added
422
+
423
+ - `RelationLink`, `RelationValue` and `RelationDraftLink` carry `roles`, a link's roles in order, beside `role`. A
424
+ link may carry `role`, `roles` or both; where both are given, `role` must be the first of `roles` (null when it is
425
+ empty), so code that reads `role` alone still sees the right one. Each role is one the field declares, none twice;
426
+ with no roles declared, a link takes only an empty `roles`. ViewKit never converts one key into the other.
427
+ - `relationRolesOf(link)`: a link's roles, in order: its `roles`, else its one `role`, else none.
428
+ - `RANGE_PARTS` and `PHONE_PARTS`, with `RangePart` and `PhonePart`: a range's parts (`low`, `high`) and a phone's
429
+ (`number`, `extension`), beside `NAME_PARTS`, `LOCATION_PARTS` and `LINK_PARTS`.
430
+ - A filter rule may name a range's `low` or `high` part: it reads that end as a number, with number's operators.
431
+ - A sort may ask a range for `by: "high"` (the high end, then the low) and a place for `by: "postalCode"`.
432
+ - `withNamePart(value, part, text)`, `withLocationPart(value, part, text)` and `withRangeEnd(value, end, n)`: a name,
433
+ a place or a range with one part replaced. A name's full name follows its given and family names only when it was
434
+ empty or exactly them joined by a space. A place's region and its code are cleared by another country, its code by
435
+ another region.
436
+
437
+ ### Changed
438
+
439
+ - `sortOrdersFor("range")` is now `["low", "high"]` (before, `[]`), `sortOrdersFor("location")` ends in `"postalCode"`,
440
+ and `filterPartsFor("range")` is now `["low", "high"]`. Code that accepts a `by` or a `part` because these lists hold
441
+ it must also sort or filter by it.
442
+ - `relationLinksOf` and `relationStoredOf` keep a link's `roles` as stored, as they keep its `role`.
443
+ - `acceptFieldCommit` and `acceptStoredFieldValue` with `stored` keep each role a link already held, in `role` or
444
+ in `roles`, though the field has archived it since; a role put on a link now must still be live.
445
+ - `sameStoredValue` compares a link's roles by `relationRolesOf`, in order, so `{ role: "a" }` and
446
+ `{ roles: ["a"] }` are the same value.
447
+
448
+ ## [0.10.0] — 2026-11-11
449
+
450
+ What `@viewkitjs/views` 0.3.0 needs: a relation's links read and written in one shape, the words of the date and
451
+ relation editors, and a stored value's rules for a closed multiselect and an archived role. Six message keys are new:
452
+ `date.today`, `date.tomorrow`, `date.next-monday`, `date.clear`, `relation.lead` and `relation.make-lead`. A resolver
453
+ that answers every key fails to compile until it answers them; one that falls back to `resolveFieldMessage` reads them
454
+ in English. Nothing else an app calls changes.
455
+
456
+ ### Added
457
+
458
+ - `relationLinksOf(field, value)` reads any relation value (a bare id, an id list, a ref, a list of links, a shown
459
+ value or a list of them) into `RelationDraftLink[]`, the links an editor holds.
460
+ - `relationStoredOf(field, links)` writes those links in the field's stored shape: a one relation's id or ref (or
461
+ null), a many relation's ids, or links with their kind, the role they were stored with and, where the field leads
462
+ by a flag, exactly one lead.
463
+ - Two messages: `relation.lead` ("Lead") and `relation.make-lead` ("Make lead").
464
+ - Four message keys for the date editor's words: `date.today`, `date.tomorrow`, `date.next-monday` and `date.clear`.
465
+ A resolver that answers every key fails to compile until it answers them; one that falls back to
466
+ `resolveFieldMessage` reads "Today", "Tomorrow", "Next Monday" and "Clear".
467
+
468
+ ### Changed
469
+
470
+ - `acceptFieldCommit` and `acceptStoredFieldValue` with `stored` keep, for a closed multiselect, each value the
471
+ field already held: it passes as it is though no option names it, and only values added now must be options.
472
+ `zodFor` is unchanged: without `stored`, a closed multiselect still takes its options alone.
473
+
474
+ ### Fixed
475
+
476
+ - `acceptFieldCommit` and `acceptStoredFieldValue`, given `stored`, let a relation link keep the role it was stored
477
+ with though the field has archived that role since, so a set holding such a link saves again. The kept role passes
478
+ on that link alone: a role put on a link now must still be live. Without `stored`, and in `zodFor`, a link's role
479
+ must be live, as before.
480
+
481
+ ## [0.9.0] — 2026-10-31
482
+
483
+ ### Changed
484
+
485
+ - `COUNTRY_CODES` holds `XK`, Kosovo, beside ISO 3166-1's 249 codes: the code the EU, CLDR and the phone library use,
486
+ which ISO has not assigned. `isCountryCode("XK")` is true, a place's `countryCode` takes it, `countryName("XK")` is
487
+ "Kosovo", `countryCodeOf("Kosovo")` reads it, and `placeFormat("XK")` writes the postal code before the city.
488
+ Before: 249 codes, and `XK` refused ("Not a country code"). Now: 250.
489
+ - A relation that names `kinds` is named so in the last two definition errors that called it polymorphic. Before: "a
490
+ polymorphic relation needs at least one kind", "duplicate kind in a polymorphic relation". Now: "a relation that
491
+ names kinds names at least one kind", "a kind named twice in kinds".
492
+
493
+ ### Fixed
494
+
495
+ - `stored` keeps a url too: a url that comes back as it is stored is kept exactly as stored when a url cell links it
496
+ (an absolute web address once `https://` is put before a text naming no scheme, with no space or control character
497
+ inside), so a url kept from before urls named their scheme (`acme.ro`) no longer refuses an edit of the links beside
498
+ it. A url typed in is held to the rule as always, a kept one still counts against `maxItems`, and `zodFor`'s rule
499
+ is unchanged.
500
+ - A day in the years 1 to 99 keeps its year when grouped by week, month or a relative bucket, and in a relative date
501
+ filter's window. Before: it was grouped as 1901 to 1999. A datetime in the years 1 to 999 reads its day as
502
+ `0042-06-01`, not `42-06-01`.
503
+
504
+ ## [0.8.0] — 2026-10-30
505
+
506
+ ### Added
507
+
508
+ - `stored` on `acceptFieldCommit(field, commit, { stored })` and `acceptStoredFieldValue(field, value, cv, { stored })`:
509
+ the field's value from before the edit. A phone that comes back as it is stored (the same `valueKey`) is kept
510
+ exactly as stored and held to its shape alone, never read again, so an untouched phone kept as typed, or one the
511
+ phone data no longer accepts, no longer refuses an edit of the phones beside it. A phone typed in is read as
512
+ always. Only a phone is kept, and a kept one still counts against `maxItems`. Without `stored`, nothing changes.
513
+ - `.with()` states none with `null`: `with({ decimal: null })` reads both styles again, `with({ region: null })` reads a
514
+ phone with no country code in no region. `undefined` still changes nothing. Its parameter is the new
515
+ `ConventionsOverrides`, the kit's `with` too.
516
+ - The kit's `acceptFieldCommit` takes `region` and `stored`, and its `acceptStoredFieldValue` takes `{ stored }`, as the
517
+ bare functions do.
518
+ - `RowValueOf<D>`: what a row holds for a field, `StoredOf<D> | null` where the field is `nullable: true` (or its
519
+ `nullable` is a plain `boolean`), `StoredOf<D>` otherwise.
520
+
521
+ ### Changed
522
+
523
+ - `regionOf` is no longer exported from `@viewkitjs/fields/phone`; nothing in the library's public API names a
524
+ `libphonenumber-js` type any more.
525
+ Before: `import { regionOf } from "@viewkitjs/fields/phone"`. Now: no such export. `parsePhone(typed, region)`
526
+ already reads an unknown region as none.
527
+ - A lookup, a rollup or a formula refuses every commit with `field.derived`, and an actor with `field.cannot-edit`, a
528
+ clear included; `zodFor` already refuses every value of a lookup, a rollup or a formula.
529
+ Before: a nullable one took an empty commit (`null`, `""`, `[]`) as `{ ok: true, value: null }`, and a non-nullable
530
+ one refused it with `field.cannot-empty`. Now: `field.derived` (an actor: `field.cannot-edit`) either way.
531
+ `acceptStoredFieldValue` still takes a nullable one's `null`.
532
+ - `DefinedFields` types `edit.mutability` as `"never"` on a rollup, a formula, an actor and a lookup, as
533
+ `defineFields` has always stamped it.
534
+ Before: `fields.total.edit?.mutability` typed as the spec declared it (`FieldMutability | undefined`). Now:
535
+ `fields.total.edit.mutability` is `"never"`.
536
+ - A formula's definition errors read as sentences.
537
+ Before: "add takes 2–2 arguments, not 3", "if's branches mixes number and text", "eq mixes number and text".
538
+ Now: "add takes 2 arguments, not 3" ("round takes 1 to 2 arguments, not 3"), "if's branches mix number and text",
539
+ "eq's arguments mix number and text".
540
+ - A relation that names `kinds`, even with one kind, is named so in the definition errors that refuse it.
541
+ Before: "a relation to several kinds has no one far field to sort by", `via "x" can point at several kinds — …`,
542
+ and "points at several kinds" for a second hop, a filter across it and a rollup over it. Now: "a relation that
543
+ names kinds has no one far field to sort by", `via "x" names kinds — a lookup goes through a relation that names
544
+ one kind`, and "names kinds" for the others.
545
+ - A percent states why its bounds leave 0–100 in `validation.reason`, never in `edit.reasons.editable`, which stays
546
+ the lock's sentence. Before: `{ type: "percent", validation: { max: 150 }, edit: { reasons: { editable: "Work can
547
+ run past the estimate" } } }`. Now: `{ type: "percent", validation: { max: 150, reason: "Work can run past the
548
+ estimate" } }`. A derived field's percent result does the same. A percent past 100 no longer shows its range
549
+ reason as its lock text [51].
550
+ - `edit.mutability: "command"` fits every stored type, a field of several emails, phones, links or domains included.
551
+ Before: only a status, a boolean, a relation, a select or a url. A lookup, rollup, formula or actor still takes
552
+ none.
553
+ - `StoredOf` of a select with `vocabulary: "custom-values"` is `string`. Before: the union of its listed options, or
554
+ `never` with none. A closed select keeps its option values.
555
+ - A closed select, status or multiselect may declare `options: []`, as a list built from the app's own rows is before
556
+ they exist. Before: `checkFieldSpec` refused it ("a select is its options — declare at least one", "a status is its
557
+ options — declare at least one", "a closed multiselect needs options"). Now: it is a valid definition that takes no
558
+ value until its options are there. A field with no `options` list at all is still refused, in one sentence per type
559
+ ("a select declares its options — `options: []` when it has none yet").
560
+ - `StoredOf` is what `zodFor` accepts: a member or a single relation is its id with no `null`, and a closed
561
+ multiselect that declares its options is a list of their values. Before: `StoredOf` of a `user` or a single relation
562
+ naming `kind` was `string | null`, of one naming `kinds` `RelationRef | null`, and of every multiselect `string[]`.
563
+ Now: `string`, `RelationRef`, and `("a" | "b")[]` for options `a` and `b`; an open multiselect, or one built from a
564
+ stored row, is still `string[]`. A nullable field's `null` is `RowValueOf`'s.
565
+
566
+ ### Fixed
567
+
568
+ - `numberRuleLabel` reads the defaults when handed something that isn't conventions, as the other rule labels do.
569
+ Before: it threw.
570
+ - The doc comments a reader's editor shows speak in the library's own terms and say what the code does: a status
571
+ option's mark on its ladder is the host's, `Freshness` is kept and never read, and `FILTER_OPERATORS`' first entry
572
+ is what the panel opens on except for the text types, which open on `contains`.
573
+ - A nullable `create` field no longer needs `edit.reasons.clearable`. That sentence means one thing: why a clear is
574
+ refused.
575
+
576
+ ### For an adapter
577
+
578
+ - An import of `regionOf` from `@viewkitjs/fields/phone` goes.
579
+ - A host that accepts a commit of several phones itself, not through `@viewkitjs/views`' write paths, passes the
580
+ field's stored value as `stored` to `acceptFieldCommit` and to `acceptStoredFieldValue`. `zodFor` takes no `stored`:
581
+ a server that re-checks a phone list with `zodFor` still refuses an untouched phone kept as typed, so it holds the
582
+ list with `acceptStoredFieldValue(field, value, cv, { stored })` instead.
583
+ - Code that compared a worked-out field's `edit.mutability` from `defineFields` to anything but `"never"` no longer
584
+ compiles; drop the comparison.
585
+ - A host that matched a definition error's text ("several kinds", "mixes", "2–2") matches the new wording.
586
+ - A percent above 100 or below 0: move its reason from `edit.reasons.editable` to `validation.reason`. A registry
587
+ that doesn't is refused when it loads, and the refusal names the key.
588
+ - An open select: its options no longer need widening to a plain `FieldOption[]` for its stored value to type as
589
+ text.
590
+ - A field that is optional at creation may say `create` rather than `never`, with no clearing sentence.
591
+ - A text, number, date, member or several-values field that only your app's actions change may say `command` rather
592
+ than `never`; its surfaces then open your app's verbs.
593
+ - A row type that took a member's or a relation's `null` from `StoredOf` types it with `RowValueOf`, and a helper of
594
+ your own that added `null` by `nullable` is `RowValueOf`. A cast that narrowed `zodFor`'s output for a member, a
595
+ relation or a closed multiselect can go. A value that assigns `string[]` to a closed multiselect's `StoredOf` now
596
+ names its option values.
597
+
598
+ ### Earlier releases
599
+
600
+ - 0.7.0's Fixed line says `locationShort`, `locationText` and `nameText` write "a list of places or names (a lookup
601
+ through a many relation)". A lookup across a many relation is refused by `defineFields`; such a list is, in 0.6.0's
602
+ Fixed line's words, "a place or a name reached through a many relation".
603
+ - 0.7.0's Changed line says `tldts` is "pinned at 7.4.18, which brings `tldts-core`". Only `tldts` is pinned:
604
+ `tldts-core` follows `tldts`'s own range (`^7.4.18`), so an install takes the newest within it. Only a consumer's own
605
+ override pins it.
606
+ - 0.4.0's Known gaps promised four things for 0.5.0. A place's address line and postal code came in 0.6.0
607
+ (`LocationValue`'s `line1`, `line2` and `postalCode`) [46]. A percent's reason for leaving 0–100, apart from its
608
+ lock text, comes in this release (`validation.reason`) [51]. An exact sum of decimal texts [42] and a unit that is
609
+ a word [49] are still open, and no release is named for them.
610
+
611
+ ## [0.7.0] — 2026-10-29
612
+
613
+ ### Added
614
+
615
+ - Documentation in `docs/`: a getting-started page, a guide per concept and a reference per entry point. Every
616
+ example is compiled and run against the packed package before each release, and every export is held to its
617
+ reference.
618
+ - `mainValueText(type, value, region)` writes out the main value of an email, phone, url or domain, the one marked
619
+ main of several or a single value as itself: a phone as `phoneText` writes it for someone in `region`, the rest
620
+ as their trimmed text; null for none. It is what a line under a record's name draws for a field with `multiple`,
621
+ so every app shows the same main value there as its cell does.
622
+ - A domain's root domain: `rootDomain(domain)` from a new entry, `@viewkitjs/fields/root-domain`, gives the
623
+ registrable domain of a clean domain, read with the Public Suffix List through `tldts` (below), its private
624
+ section counted: `shop.acme.ro` → `acme.ro`, `a.b.acme.co.uk` → `acme.co.uk`, `acme.github.io` → itself, and
625
+ null for a suffix alone (`co.uk`) or a text that isn't a clean domain. Only that entry carries the list, so an app
626
+ that never reads a root carries none of it.
627
+ - A new message key a host that translates its messages adds: `validation.phone-whole`, "Write the phone number
628
+ alone, such as +40 722 123 456".
629
+
630
+ ### Changed
631
+
632
+ - A new runtime dependency: `tldts` (MIT), pinned at 7.4.18, which brings `tldts-core`. An install now carries both
633
+ beside `libphonenumber-js`; only `@viewkitjs/fields/root-domain` imports them. Keeping the Public Suffix List
634
+ current is a bump of that pin.
635
+ - A phone is read only from text that is the number alone. `parsePhone`, and so `acceptFieldCommit` and an
636
+ equality filter's operand, trim the text, read a country code written in brackets (`(+40) 722 123 456`) and an
637
+ extension as before, and refuse anything around the number with `validation.phone-whole`.
638
+ Before: `parsePhone("call +40 722 123 456")` and `parsePhone("tel:+40722123456;ext=12")` read the number out of
639
+ the text (`{ number: "+40722123456", extension: null }`, and `"12"`), dropping the rest.
640
+ Now: both give `{ ok: false, message: { key: "validation.phone-whole" } }`, as does a second number after the
641
+ first, which gave `validation.phone`. A stored phone is untouched: readers hold its shape alone.
642
+
643
+ ### Fixed
644
+
645
+ - `locationShort`, `locationText` and `nameText` write a list of places or names (a lookup through a many
646
+ relation) as its values, each written as a single one is, the empty ones left out, joined by ", ", so a copy and
647
+ an export written through them carry every value. Before: they wrote a list as "".
648
+
649
+ ### Earlier releases
650
+
651
+ Two things earlier entries left a host to find out the hard way.
652
+
653
+ - 0.6.0's "A phone takes no `validation`" breaks a host when its registry loads, not at its type check. The type
654
+ takes `validation: { maxItems? }` on any phone, so a type check misses some definitions the library refuses:
655
+ `maxItems` without `multiple`, an empty `validation`, or a definition cast or widened on its way in. `defineFields`
656
+ refuses those at module load ("a phone takes no validation: the phone library checks it"). Remove the phone's
657
+ `validation`, or keep only `maxItems` beside `multiple: true`.
658
+ - A relation that names `kinds`, even with one kind (`relation: { kinds: ["person"] }`), stores `{ kind, id }` and
659
+ refuses a bare id; one that names `kind` keeps its bare id. It is the key, not the count, that decides [52]. The
660
+ docs' relation pages and the `RelationRef` and `storesRelationRef` comments now say it so; 0.4.0's entries
661
+ already did.
662
+
663
+ ## [0.6.0] — 2026-10-28
664
+
665
+ ### Added
666
+
667
+ - A person's name: the `name` type, `{ full, given, family }` (`NameValue`), each part text or null; the host keeps
668
+ each in a column of its own. The library never builds the full name from the parts: `nameText` reads the full
669
+ name, else the given and family names, else nothing. `zodFor` takes a non-blank string or null per part, each
670
+ held to `maxLength`, and refuses any other value (`validation.name`); a commit trims each part, takes a plain
671
+ string as the full name, and an all-empty name is a clear. A name may be a record's identity; it is no bucket.
672
+ `NAME_PARTS`, `NamePart`, `isNameValue`, `isEmptyName`, `namePart`, `tidyName`, `sameName`.
673
+ - A filter rule may read one part of a grouped value: `FilterRule.part`, from the parts its type offers
674
+ (`FILTER_PARTS`, `filterPartsFor`). A name's parts are `full`, `given` and `family`; with no part its text
675
+ operators read across them (`matchesNameRule`). A rule naming a part its type lacks has no opinion.
676
+ - A link knows its platform, read from its address whenever it is asked for and never stored, so a url keeps its
677
+ text: `linkPlatform(address, conventions)` gives `{ key, name }` (`LinkPlatform`). The library's platforms are
678
+ LinkedIn, Facebook, Instagram, X, TikTok, YouTube, SoundCloud, Spotify, Bandcamp and GitHub (`LINK_PLATFORMS`).
679
+ A platform matches its hosts and every subdomain of them. A link no platform claims is a website (`WEBSITE`,
680
+ named by the new `platform.website` message), and an address that is no web link has none. A host states its own
681
+ in its conventions, `defineConventions({ platforms: [{ key, name, hosts }] })` (`LinkPlatformSpec`), tried before
682
+ the library's; one with a library key restates that one, and `linkPlatforms(conventions)` lists them all. A
683
+ platform added later reaches links already stored. `linkHost` and `linkAddresses` read an address's host and a
684
+ value's addresses.
685
+ - A url rule may read its platform: `part: "platform"` (`FILTER_PARTS.url`, `LINK_PARTS`), the text operators
686
+ read on each address's platform key (`{ part: "platform", operator: "is", value: "linkedin" }`) with the host's
687
+ platforms from `MatchOptions.conventions`. Over several addresses a find holds when some address has it and a
688
+ refusal when none has it.
689
+ - A sort may name its order: `SortSpec.by`, from the orders its type offers (`SORT_ORDERS`, `sortOrdersFor`), the
690
+ first by default; `comparatorFor(field, cv, by)`. A name sorts by `full`, by `family` then given, or by `given`
691
+ then family, a name missing that part after every name that has it, either way.
692
+ - A place is filtered by one part: `countryCode` (is any of, is none of, empty, on codes), `region`, `city` and
693
+ `postalCode` (text's operators, opening on is, contains and starts with). A place rule naming no part has no
694
+ opinion, as before. `operatorsFor`, `operatorsForField`, `defaultOperator` and `filterValueSchema` take the part
695
+ as an optional last argument; `LOCATION_FILTER_PARTS`, `LocationFilterPart`, `isLocationFilterPart`,
696
+ `matchesLocationRule`, and `locationPart`, a place's part read trimmed.
697
+ - A place sorts by `city` (the default), `region` or `countryCode` (the country's name in the host's language), one
698
+ part with no second key, a place without that part last either way; `LOCATION_ORDERS`, `LocationOrder`,
699
+ `isLocationOrder`, `locationSortText`.
700
+ - A group axis names its order with `by`, as a sort does (`BucketAxis.by`, `GROUP_ORDERS`, `groupOrdersFor`,
701
+ `canGroupBy(type, by)`, `bucketRuleFor(field, by)`, `LOCATION_BUCKET_RULES`). A place groups by its city's or
702
+ region's trimmed text or its country's code, headed by the country's name; with no `by`, or one it lacks, it is no
703
+ group.
704
+ - A worked-out field names the stored field an edit of it writes: `editThrough: "paid_at"` on any formula but
705
+ the name, over a stored, editable field of its result's type that it reads; anything else is refused at
706
+ definition, and a contributed field takes none. `editedThroughField(fields, key)` gives it as an edit writes it:
707
+ the stored field under its own key and label. The name's `rename` is this rule for the identity.
708
+ - A formula tells the seconds between two instants: `secondsBetween(from, to)`, `to` minus `from` (negative when
709
+ `to` is the earlier), to the microsecond a timestamp keeps; it takes instants only, never days.
710
+ - A rollup may count over the range its host's ask carries: `within` names the far instant field the range is read
711
+ on, and `checkIndex` holds it to a far datetime that is no rollup.
712
+ - A many relation that names its inverse may name `within`, the far instant its ask's range is read on, and a standing
713
+ `where` over the far records' own fields: a rule across it reads only the far records it keeps in the range.
714
+ `checkFieldSpec` holds both to such a relation, and `checkIndex` to a far datetime and far own fields
715
+ that are no rollup.
716
+ - An engine run is a kind of actor (`engine`, its word "Engine run"), and `actorOfKey(key, label)` reads an actor
717
+ back from its key and its name, the inverse of `actorKey`.
718
+ - A formula tests a text: `startsWith`, `endsWith` and `contains` (case counts, and every character is itself), and
719
+ `before(text, marker)` gives the text up to the marker's first place, all of it when the marker is empty or absent.
720
+ - A money field may convert at one of its row's own dates: `convert: { at: { field: "paid_at" } }` names a sibling
721
+ that reads as a date or an instant (stored, or a formula's or rollup's result), and each row is read at that
722
+ day's rate. `checkFieldSpec` refuses a field that is no sibling date, and two amounts of one code that convert on
723
+ different days.
724
+ - A date or an instant may look ahead (`ahead: true`, read by `looksAhead`): a host sorts it soonest first and groups it by when it is due.
725
+ - The line under a record's name may read a far field through a one relation:
726
+ `defineFields({ subtitle: ["company.website", "person.email"] })`. One hop, a relation to one kind, a far field the
727
+ line can draw; the index fills it in. `subtitleField(fields, key)` gives the field drawn for an entry,
728
+ `subtitleThrough(key)` splits a path. The identity carries the paths and their places
729
+ (`FieldDef["subtitleThrough"]`, stamped by `defineFields`) and their far fields (`FieldDef["subtitleTargets"]`,
730
+ filled by `defineIndex`).
731
+ - The picture beside a record's name: `defineFields({ avatar: "photo" })` names the field drawn there. It is
732
+ stamped on that field (`FieldDef["avatar"]`) and `avatarKey(fields)` names it. It is never the identity or a many
733
+ relation, and its value is a link (`url`), or a lookup or a formula that gives one (`checkIndex` refuses any
734
+ other).
735
+ - A place is a full address: `LocationValue` is `{ line1?, line2?, city?, region?, regionCode?, postalCode?, countryCode? }`,
736
+ each part text or null and each optional. `countryCode` is an ISO 3166-1 alpha-2 code and `regionCode` an ISO 3166-2
737
+ code of that country; `zodFor` refuses any other (`validation.country-code`, `validation.region-code`, two new
738
+ message keys a host that translates its messages adds). `LOCATION_PARTS` lists the parts in reading order
739
+ (`LocationPart`).
740
+ - A place field may be limited to some parts: `{ type: "location", parts: ["city", "region", "countryCode"] }` takes
741
+ only those; `checkFieldSpec` refuses an unknown part, a part named twice, and `regionCode` without `countryCode`.
742
+ - A place written out: `locationText(value, locale?)` the whole place on one line, `locationShort(value, locale?)` its
743
+ city (or region) and country, the country drawn by its name in the viewer's language.
744
+ - Countries: `COUNTRY_CODES` (the 249 assigned codes), `isCountryCode(value)`, `countryName(code, locale?)` (from
745
+ `Intl.DisplayNames`, no data shipped), and `countryCodeOf(text, locales?)`, which reads a country written as a name,
746
+ an English alias or a code into its code, or `null`.
747
+ - A place is written in its own country's order, from Google's address data (CC BY 4.0, see NOTICE.md):
748
+ `locationLines(value, locale?)` gives the whole place as lines (Romania's postal code, county and city on one line,
749
+ Hungary's city first), and `locationText` joins them on one line; a place with no country reads as before.
750
+ `placeFormat(countryCode, locale?)` gives a country's lines, its words for the region, the city and the postal code,
751
+ the parts it asks for, whether it has a region list (`hasRegions`) and whether this viewer reads it in its Latin
752
+ form (`latin`, as `writesLatin` says). Its types: `PlaceFormat`, `PlaceLineItem`, `CityWord`, `PostalWord`,
753
+ `RegionWord`. `@viewkitjs/fields/places`, a new entry: `loadRegions(countryCode)` loads a country's first-level
754
+ regions (`PlaceRegion`) with their ISO 3166-2 codes, one country at a time, and `regionLabel` names one for a
755
+ viewer; an app that never asks for one carries no region list.
756
+ - A host may lay a line under a record's name onto a built index: `withLine(index, entity, keys)` replaces one
757
+ entity's line with `keys`, its own fields and paths through a one relation, in order, refused as a declared line
758
+ is; `[]` leaves it none. Every other entity is the same object. A declared line is never a contribution; a line laid
759
+ on with `withLine` may be, so a host can put a field another owner adds under the name. `drawsUnderName(field)`
760
+ says whether a field can be on the line.
761
+ - A phone is read with Google's phone library (`libphonenumber-js`, the min metadata, the package's first
762
+ dependency beyond its peers): `parsePhone(text, region)` gives its international form and extension, or the reason
763
+ it is refused (`validation.phone-country`, `validation.phone-short`, `validation.phone-long`, `validation.phone`).
764
+ `readPhone`, `phoneText`, `phoneHref`, `phoneMatchText`, `phoneFilterOperand`, `isPhoneShape` and `isPhoneValue`
765
+ read it, also from `@viewkitjs/fields/phone` (types `PhoneValue`, `PhoneParse`, `PhoneReading`). `defineConventions({ region })` names the person's country;
766
+ `acceptFieldCommit(…, { region })` the record's, which wins. A stored phone is read by its shape alone, so a
767
+ number kept once never stops reading when a later metadata update disagrees; only a write asks the library.
768
+ - Several values of one kind: `multiple: true` on `email`, `phone`, `url` and `domain`, the value a list of
769
+ `{ value, label, main }` (`ValueItem`), each value the type's own (a phone's is `{ number, extension }`), its label
770
+ open words or null, at most one main and `validation.maxItems` the most it holds. `zodFor` refuses two mains
771
+ (`validation.one-main`) and a value listed twice (`validation.duplicate-value`): an email ignoring case, a phone by
772
+ its number and extension, a url and a domain by their trimmed text; two new message keys a host that translates its
773
+ messages adds. `acceptFieldCommit` takes items or bare values, trims each, reads a phone typed as text in the
774
+ region, cleans a domain (`cleanDomain`), drops an
775
+ empty value and makes the first main when none is. The host keeps the list in its own child table, one row per
776
+ value, named in its storage map or binding; the library reads and writes it as one value. Readers: `valueItems`,
777
+ `mainItem`, `listValues` (main first), `valueListOf`, `valueKey`, `isValueItem`, `isMultipleType`,
778
+ `MULTIPLE_TYPES` (`MultipleType`). `valueListChanges(before, after)` (`ValueListChanges`) says what a commit
779
+ added, removed, relabelled and made main,
780
+ for a host that changes its rows one at a time. An item is exactly its three keys: a binding that reads a child
781
+ row hands `{ value, label, main }`, never the row's own id beside them. `@viewkitjs/views` draws a list of emails
782
+ now; a list of phones, links or domains, labels, and an editor for any list come with its list editor.
783
+ - A company's domain: the `domain` type, kept as text in one clean form so every app finds a company by its domain
784
+ the same way. A commit is cleaned by `cleanDomain(text)`: the scheme, path, login part and port dropped;
785
+ lower-case; a leading `www.` and trailing dots dropped; punycoded; subdomains kept. `https://www.Acme.ro/about`,
786
+ `acme.ro:443` and `user@www.acme.ro` store `acme.ro`, `shop.acme.ro` keeps its subdomain and `münchen.de` stores
787
+ `xn--mnchen-3ya.de`. A text that names no domain (one label, an IP address, a character no host name takes) is
788
+ refused (`validation.domain`). `zodFor` takes only a domain already clean (`isCleanDomain`). A domain filters,
789
+ sorts and groups as text, has no parts and no platform, takes no validation, reads as text in a formula and may
790
+ sit under a record's name. A public email domain (gmail.com) is cleaned like any other: refusing one for a
791
+ company is the app's rule. It runs on the runtime's URL parser and adds no dependency. A company's several domains
792
+ are a domain with `multiple` (above), each stored clean, `validation.maxItems` the one validation it states.
793
+
794
+ ### Changed
795
+
796
+ - New message keys a host that translates its messages adds: `validation.name`, `validation.domain`,
797
+ `validation.phone-country`, `validation.phone-short`, `validation.phone-long`, `validation.country-code`,
798
+ `validation.region-code`, `validation.one-main`, `validation.duplicate-value` and `platform.website`; `type.label`
799
+ takes the types `name` ("Name") and `domain` ("Domain"), and `actor.type` the type `engine` ("Engine run").
800
+ `validation.location`'s words changed (below).
801
+ - `FieldType` has two more members, `"name"` and `"domain"`, and `ActorType` (`ACTOR_TYPES`) one more, `"engine"`.
802
+ A host's exhaustive `switch` or `Record<FieldType, …>` / `Record<ActorType, …>` adds them; `FILTER_OPERATORS`,
803
+ `BUCKET_RULES` and `SORT_COMPARATORS` carry the new types' entries.
804
+ - `CurrencyConversion` takes a row's own date. Before: `{ at: "today" }`. Now: `{ at: "today" } | { at: { field:
805
+ string } }`; code that reads `conversionOf(field).at` as the literal `"today"` narrows it first.
806
+ - `countryName` names Hong Kong and Macao by their short names ("Hong Kong", not "Hong Kong SAR China").
807
+ - A place sorted with no `by` sorts by its city. Before: it kept the rows' order.
808
+ - A phone's value is `{ number, extension }`, the number in its international form.
809
+ Before: `"+40 722 123 456"`, kept as typed. After: `{ number: "+40722123456", extension: null }`.
810
+ `zodFor` takes only the new value; `acceptFieldCommit` reads typed text into it. A phone stored as text still
811
+ reads: `readPhone` gives `{ kind: "as-typed", text }`, and filters and sort read it as before. A phone filters,
812
+ sorts and compares on its international form, and a formula reads it as that form (`+40722123456`, not as typed);
813
+ a filter's operand is read by `phoneFilterOperand`, which a host's own query uses too. `optimisticDisplay` lays a
814
+ phone over the row only once it is a stored phone: a phone payload still typed as text shows nothing until the
815
+ write returns (before: the text as typed).
816
+ - A phone takes no `validation`. Before: `{ type: "phone", validation: { maxLength: 20, pattern: "…" } }`. After:
817
+ `{ type: "phone" }`; the library is the check, and `checkFieldSpec` refuses a phone that states one.
818
+ - `subtitleKeys(fields)` lists a path entry in its place. Before: `fields[key]` for each key. Now:
819
+ `subtitleField(fields, key)`.
820
+ - A place's parts are renamed, and its country is a code. Before (0.5.0): `{ city, state, country }`, the country as
821
+ typed text. Now: `{ line1?, line2?, city?, region?, regionCode?, postalCode?, countryCode? }`. `state` → `region`;
822
+ `country` (text) → `countryCode` (ISO 3166-1 alpha-2); the street on `main` since 0.5.0, `street` → `line1`. A stored
823
+ place moves with its renames, and its country through `countryCodeOf`: a host that keeps a place in columns renames
824
+ what its binding reads (`region: row.state`, `countryCode: countryCodeOf(row.country, [locale])`), one that keeps
825
+ the object rewrites it once. A name `countryCodeOf` can't read stays the host's to correct; it is `null` until then.
826
+ - `CloseReason`'s blur is `"blur"`. Before: `"blur-sm"`. A host that asks a core what a blur means passes `"blur"`.
827
+ - `validation.location` reads "Not a place — address lines, postal code, city, region and country" (it read "Not a
828
+ place — city, state and country" in 0.5.0).
829
+ - `lockReason` names a rollup's, a formula's or a lookup's own `description` when it states one, before the
830
+ sentence it derives (it read only the derived sentence).
831
+ - An email with `multiple` holds items. Before (0.5.0): `["ana@acme.ro", "ana@gmail.com"]`. Now:
832
+ `[{ value: "ana@acme.ro", label: "work", main: true }, { value: "ana@gmail.com", label: null, main: false }]`, and
833
+ `zodFor` takes only the new value. A host that stores a plain list maps it at its binding: `valueListOf(stored)` to
834
+ read, `listValues(commit)` to write; every list reader (the filter, the sort, a copy, the comparison) also takes a
835
+ plain list, the first value main.
836
+ - `checkFieldSpec` holds `multiple` to an email, a phone, a url or a domain, and to `true` or absent (`multiple:
837
+ false` is refused), and `validation.maxItems` on those only beside `multiple` and only as a whole number of at
838
+ least 1. Before: none of it was checked (an email stating `maxItems` alone was accepted and meant nothing).
839
+ - A text rule over several values holds when some value matches, and `is_not` and `not_contains` when none does;
840
+ emptiness is the list's (before: the values' joined text). Several values sort by their main one (before: an
841
+ email list by its first). `linkAddresses` reads a list of items, the main one first.
842
+
843
+ ### Fixed
844
+
845
+ - A place or a name reached through a many relation (a list of them) is read value by value. A rule on one of its
846
+ parts, and a rule on a whole name, holds when some value matches; a refusing rule (`is_not`, `not_contains`,
847
+ `is_none_of`) when no value does, and `is_empty` when every value is empty. A sort and a group read its first value. Before: the list
848
+ read as no place and no name, so every row passed `is_empty` and `is_none_of`, sorted last and grouped under None.
849
+ - An entity definition's `where` takes a rule on one part of a value (`part`), checked against that part's
850
+ operators; a part its field's type lacks is refused.
851
+
852
+ ## [0.5.0] — 2026-10-20
853
+
854
+ ### Added
855
+
856
+ - The line under a record's name: `defineFields({ subtitle: ["title", "company_name"] })` names the fields
857
+ drawn under the identity, in order. Each is stamped with its place (`FieldDef["subtitle"]`), and
858
+ `subtitleKeys(fields)` lists them. A field on the line holds text, a link, an email, a phone, an option, a
859
+ place, a date, an instant or a number (`checkIndex` refuses any other value). It is never the identity, a many
860
+ relation or a contribution, and a lookup never carries its far field's place.
861
+ - A `select` may be open (`vocabulary: "custom-values"`, `options: []`): any trimmed, non-empty text, each value
862
+ its own label. `isOpenVocabulary` answers it for a select and a multiselect. A message, `editor.use-value`
863
+ (`Use “{value}”`), words the select editor's row that takes a typed value.
864
+ - The line under a record's name may hold a place (`location`), which a surface draws as its parts.
865
+ - The line under a record's name may hold a date or an instant, which a surface draws in its date style
866
+ (`format.dateStyle`, `withTime`), and a number, drawn in its format (a duration as a duration).
867
+ - A worked-out name names the stored field its rename writes: `defineFields({ identity: "name", rename:
868
+ "custom_title" })`. Only a formula takes one, over a stored, editable field of its own type that it reads;
869
+ anything else is refused at definition. The name carries it (`FieldDef["rename"]`), and `renamedName(fields)`
870
+ gives the name as a rename edits it: the stored field under the name's key and label.
871
+ - A money field may declare a conversion: `convert: { at: "today" }` on a `currency` whose code is a sibling
872
+ field (`code: { field }`) says its amounts can be read in one currency at the day's rate. The host converts;
873
+ the library holds the declaration, never a rate (`conversionOf(field)`). `checkFieldSpec` refuses it on a fixed
874
+ code and on one amount per code, and refuses any day but `"today"`.
875
+ - A one relation to one kind may name `sortBy`, a field of its far record holding a number, a percent, a date or an
876
+ instant: a host that sorts in its database sorts the relation by that field, and a group or a board by the
877
+ relation opens in its order (`boardAxis` opens it in `lifecycle`). `relationSortBy(field)` reads it.
878
+ `checkFieldSpec` refuses it on a many relation or a relation to several kinds, and `checkIndex` a far field that
879
+ is missing or of another type. A list sorted in the browser still sorts and groups a relation by its far
880
+ record's name.
881
+
882
+ ### Changed
883
+
884
+ - `checkFormula` no longer limits how deep a rule nests. A chain such as `add(add(add(a, b), c), d)` nests one
885
+ level per value, so a sum of fourteen values was refused as nested 12 deep. A rule's size is still limited, to
886
+ 200 values, fields and functions, now exported as `FORMULA_MAX_NODES`, and the refusal says so in those words.
887
+
888
+ ### Fixed
889
+
890
+ - `bucketRows` orders two buckets whose names differ only in case or accent ("Automotive", "automotive") by their
891
+ keys, the same whatever order their rows arrive in. The alphabet ties them, so the order followed the rows'.
892
+ - `addDays` gives no value when the day it reaches is outside the years 1 to 9999, instead of throwing
893
+ (`toISOString` on an invalid date) or printing a day no `yyyy-mm-dd` text can hold.
894
+ - A day in the years 1 to 99 is that year, not 1901 to 1999 [53]. `Date.UTC` and `new Date(y, …)` read a year
895
+ from 0 to 99 as 1900 plus it, so `addDays("0001-01-05", -10)` gave `1900-12-26` instead of no value,
896
+ `daysBetween` counted `0026-10-20` as 1926, `dateOfDay` handed back a 1926 `Date`, `fromDayKey` refused the key,
897
+ and `toDayKey` and `dayOf` wrote the year with fewer than four digits. Every one now keeps the year, and a key
898
+ is written with four.
899
+
900
+ ## [0.4.0] — 2026-10-13
901
+
902
+ ### Added
903
+
904
+ - An `actor` type: who did it — `{ type: "user" | "automation" | "api_key" | "system", id, label? }`,
905
+ the system with no id and the label a snapshot. Set by the system: `defineFields()` stamps it
906
+ never-editable, and no editor commits one. Filtered and grouped by who (`actorKey`), sorted and
907
+ headed by name (`actorLabel`: the snapshot, else the kind of actor).
908
+ A new `FieldType` member: a `Record` or `switch` over every type needs it.
909
+ - A `rich_text` type: one markdown string (CommonMark + GFM). A commit is normalised at its edges
910
+ only (`normalizeMarkdown`); `markdownFirstLine` and `markdownPlainText` read it as plain text.
911
+ Filtered by contains, not contains and empty; never sorted or grouped.
912
+ - A `range` type: `{ low, high }`, both inclusive, an empty end open ("10,001+", "up to 50"), of a
913
+ number, an amount (with a fixed code and an optional period) or a percent, with presets. Stored by
914
+ the host in its own two columns. `rangeText`, `rangeDecimals`, `presetOf`, `rangeOverlaps`. Filters (`/query`
915
+ `range.ts`): any part between (the default), entirely within, includes, at least, at most, empty.
916
+ Sorted by low, then high; grouped by preset.
917
+ - A `lookup` type: one field of the record a single relation points at (`via`, `field`), shown, filtered,
918
+ sorted and grouped as that field. Its far definition is filled in by `defineIndex()` as `target` —
919
+ never written in a registry, which `checkFieldSpec` refuses. Read-only, never stored. `StoredOf` of a
920
+ lookup is its `target`'s once it carries one, and `unknown` as written in a registry.
921
+ - The index: `entityDef(registry)`, `defineIndex(entities)` (checked, lookups resolved, chains followed,
922
+ cycles refused, frozen) and `checkIndex(index)`.
923
+ - `contributeFields({ entity, from, fields })` and `defineIndex(entities, contributions)`: fields one
924
+ owner adds to an entity another owns, checked like a registry, laid onto the entity before the index
925
+ checks it. A key both sides declare, and an entity the index does not hold, are refused.
926
+ - A relation that names `kinds` (`relation: { kinds: [...] }`, even with one kind) stores `{ kind, id }`
927
+ (`RelationRef`); one that names `kind` (`relation: { kind }`) keeps its bare id [52]. A `many` relation may declare `links` — a role per link and a
928
+ lead (`primary: "flag"` or an order of kinds) — and then stores `RelationLink[]`. `storesRelationRef`,
929
+ `relationIdOf`, `relationRefOf`, `orderLinks`. A relation with a lead groups under its lead, as it is
930
+ drawn, and a stored ref filters, sorts and groups by its id. Closes finding [33].
931
+ - A rollup may filter its far records (`where`, a filter tree), count distinct values (`countDistinct`),
932
+ answer whether any or none exist (`exists`, `none` → boolean), show the first far record's field by an
933
+ order (`first` + `orderBy`), go two hops (`over: [a, b]`, each far record counted once), and break down
934
+ by an option or a time bucket (`groupBy` + `headline`), whose value is `{ headline, parts }`
935
+ (`Breakdown`). Only the headline sorts, filters and totals (`scalarOf`). `checkIndex` holds each to its
936
+ far entity (`checkFilterTree`). A rollup's `where` may not filter across another relation.
937
+ - A formula may carry a `rule`: a tree of plain data over a closed list of functions (arithmetic and
938
+ rounding, comparisons, and / or / not, if and switch, first non-empty and is-empty, text joining and
939
+ trimming, today, now, days between, add days, percent of), checked against the fields it reads
940
+ (`checkFormula`) and evaluated in TypeScript with SQL's null rules (`evaluateFormula`); a blank text is
941
+ no value to `coalesce`, `join` and `isEmpty`. Today and now are one value per evaluation. A named SQL
942
+ function (`{ sql: "schema.name" }`) is the builder-only escape hatch, evaluated only by a database
943
+ adapter, and named only by a registry written in code (`defineFields`): `checkFieldSpec` refuses one
944
+ in a definition that arrives as data (its fourth argument's `allowSql`, which `defineFields` sets, lets
945
+ one through). Both sides of a comparison, the branches of `if` and `switch`
946
+ and the values of `coalesce` share one type; a value with parts (a list, a link, a range) is read
947
+ only by `isEmpty`; `evaluateFormula(rule, read, ctx, fields?)` reads decimal text as its number;
948
+ `round` rounds half away from zero on the decimal digits, including a value JavaScript writes with an
949
+ exponent (`1e-7`); a formula reads a grouped rollup as its headline; formulas may not read each other
950
+ round.
951
+ `FieldDefinitionError` moved to its own module; the registry re-exports it.
952
+ - Filtering across a relation: a `FilterRelationRule` (`{ fieldKey, quantifier: "any" | "none" | "every",
953
+ where }`) in any filter tree, held to the far entity by `checkFilterTree`, which refuses an unknown
954
+ quantifier, a missing `where` and a far kind the index lacks. In memory it has no opinion (the row
955
+ stays); a database adapter answers it. `FilterRelationRule` and `isRelationRule` come from `/query`;
956
+ `treeDepth` counts a relation rule's `where` as one level deeper.
957
+ - `sameStoredValue(field, a, b)` — whether a stored value changed, judged by the field's type:
958
+ emptiness in any shape is one value, numbers by value (decimal text included), instants by the
959
+ moment, a location part by part, lists item by item. For a write comparing a row before and after;
960
+ `sameListValue` stays the editors' identity check.
961
+ - `format.bands` on a plain number and a percent (and a derived field's result): `NumberBand`,
962
+ `bandTone(bands, value, decimals?)`; refused: empty bands, bands that do not climb, a non-finite
963
+ min, bands beside a positive-good sign.
964
+ - `FieldOption.icon` — the app's glyph name; refused empty and on a boolean's options.
965
+ - Exported beside the new types: `ACTOR_TYPES`, `isActorValue`, `ActorValue`, `ActorType`;
966
+ `isRangeValue`, `isEmptyRange`, `sameRange`, `RangeValue`, `RangePreset`, `RangePeriod`; `isLookup`,
967
+ `isGroupedRollup`, `isBreakdown`, `Breakdown`, `BreakdownPart`; `RollupOrder`, `RollupGroupBy`,
968
+ `RollupHeadline`; `RelationLinks`; `EntityDef`, `EntityIndex`, `EntityContribution`,
969
+ `DefinedContribution`; `NormalizeStep`, `NORMALIZE_STEPS`; `FORMULA_FUNCTIONS` and the `Formula*` types; on `/query`, the range
970
+ filter's `RANGE_FILTER_OPERATORS`, `DEFAULT_RANGE_FILTER_RULE`, `matchesRangeRule`,
971
+ `isRangeRuleActive`, `rangeRuleLabel`, `rangeFilterInputs`, `rangeFilterOperatorLabel`,
972
+ `RangeFilterRule` and `RangeFilterOperator`.
973
+ - A lookup may not show a breakdown, and a breakdown is not a ratio's part: each presents as a number
974
+ but holds parts and a headline. A ratio's part may be any field of the registry that presents as a
975
+ number — a formula with a number result now among them.
976
+
977
+ ### Changed
978
+
979
+ - `FieldType` has four new members — `actor`, `rich_text`, `range`, `lookup`. Every exhaustive `Record` or `switch` over field types needs them; `ValueType` gains the first three.
980
+ - `isDerived`, `DerivedDef` and `presentedDef` include lookups; `ValueType` excludes them. A consumer
981
+ that lifts derived fields by hand (`type === "rollup" || type === "formula"`) still compiles and
982
+ misses lookups, and one that reads a derived field's result (`isDerived(f) ? f.result.type : f.type`)
983
+ no longer compiles, since a lookup has no `result`. Old: either; new: `presentedDef(f)` /
984
+ `valueTypeOf(f)`.
985
+ - A multiselect's `normalize` is steps (`["trim", "lowercase", "hyphenate"]`), not a function:
986
+ `applyNormalize`, `normalizerFor`. `checkFieldSpec` refuses any function in a definition — a
987
+ definition is plain data. Old: `normalize: (raw) => raw.trim()`; new: `normalize: ["trim"]`.
988
+ - `FilterNode` gains `FilterRelationRule`: a walker over a filter tree names it (`isRelationRule`)
989
+ beside `isFilterGroup`. Old: a node that is not a group is a rule, and its `operator` can be read.
990
+ New: `isFilterGroup(node)`, then `isRelationRule(node)` — `{ fieldKey, quantifier, where }` has no
991
+ `operator` — then the rule.
992
+ - `FilterOperator` gains the range operators `overlaps`, `within`, `includes`, `at_least` and
993
+ `at_most`, and `FilterValue` a pair of bounds, `[number | null, number | null]`. An exhaustive
994
+ `switch` over operators needs them, and so does a resolver that words `filter.operator` from a table
995
+ of its own.
996
+ - `FieldMessage` gains `derived.lookup` (`{ via, field }`), `derived.exists` and `derived.none`
997
+ (`{ over }`), `validation.actor`, `actor.type` (`{ type }`, the kind of actor's name),
998
+ `validation.range-order`, and `range.up-to` and `range.and-up` (`{ value }`, the open range's one end
999
+ already written). `derived.rollup`'s `fn` was any function but `count`; it is now any but `count`,
1000
+ `countDistinct`, `exists` and `none`, so it may be `first`. A host whose resolver switches over every
1001
+ key exhaustively needs each; a resolver that falls back to `resolveFieldMessage` needs nothing.
1002
+ - A relation that names `kinds` stores `{ kind, id }`, not a bare id, even when the list holds one
1003
+ kind, and a `many` one — or any `many` relation with `links` — stores `RelationLink[]`; `StoredOf`
1004
+ follows. Old: `"p1"` / `["p1"]`; new: `{ kind: "person", id: "p1" }` /
1005
+ `[{ kind: "person", id: "p1" }]`, a link adding `role` and `primary`. A host with stored bare ids
1006
+ migrates them, changes the field to `relation: { kind }` (not `kinds` with one entry), or binds it
1007
+ read-only; `zodFor` and `acceptFieldCommit` refuse a bare id [52].
1008
+ - `rollup.over` is a relation key or a path of two (`string | readonly [string, string]`): read it
1009
+ through `typeof over === "string"` before indexing a registry with it. `RollupFn` gains `countDistinct`,
1010
+ `exists`, `none` and `first`, which an exhaustive `switch` needs. `StoredOf` of a grouped rollup is
1011
+ `Breakdown`.
1012
+ - `checkFieldSpec` holds the vocabulary's closed values for a definition that arrives as data: a
1013
+ normalize step, a lead rule, a range's `of` and period, a rollup's function, its `groupBy` shape and
1014
+ bucket, and its headline. A definition written outside TypeScript with an unknown word is refused.
1015
+
1016
+ ### Known gaps
1017
+
1018
+ - A number FILTER over a currency column that mixes codes compares bare numbers: `amount > 500` keeps
1019
+ a 1000 RON row beside a 1000 EUR one. Sorting clusters by denomination; filtering does not [20].
1020
+ - `min` / `max` / `gt` / `lt` are stated as JavaScript numbers, so a bound is the nearest double: a
1021
+ stored value is compared digit by digit, but a bound past 2^53 (or with more than ~15 significant
1022
+ digits) cannot be STATED exactly.
1023
+ - A money range has one currency for the field (`code: { fixed }` only), and its filter and its sort
1024
+ compare the bare numbers.
1025
+ - In memory a relation rule has no opinion: the row stays, and only a database adapter answers it.
1026
+ - Planned for 0.5.0, not in this release: an exact sum of decimal texts [42], a location's address line
1027
+ and postcode [46], a unit that is a word rather than a raw suffix [49], and a percent above 100 whose
1028
+ reason is not also its on-screen lock text [51].
1029
+
1030
+ ## [0.3.0] — 2026-10-02
1031
+
1032
+ ### Added
1033
+
1034
+ - `/query` `board.ts`: `canBoardBy(field)`, `canBoardByType(type)`, `boardAxis(field, lanes)`,
1035
+ `defaultBoardField(fields, preferred?)` and the `BoardLaneSpec` type — a board laid out by one
1036
+ field of each record (status, select, boolean, single relation, single user), its column order
1037
+ and the reader's hidden columns per field.
1038
+ - `/query` a date granularity `"due"` — how soon a date comes: Overdue, Today, Tomorrow, Next 7
1039
+ days, Next 30 days, then its month for a year ahead, then its year — the forward twin of
1040
+ `"relative"`, folded in the host's zone (`dateBucketKey`), labelled by the `group.due` message.
1041
+ - `/query` `dateBucketRange(key, granularity, now?, cv?)` — the half-open day range a date group
1042
+ holds, so a host that pages a group's rows asks for exactly the days the group counted.
1043
+ - `/query` `BucketAxis.hideEmpty` — a bucket with no rows (an option of the field nobody holds)
1044
+ comes back flagged `hidden`, never dropped, so a host can list it for its reader to show again.
1045
+ - `/query` a `"manual"` `BucketOrderMode` — buckets order by their spec positions alone; one with
1046
+ no position (added after the order was set) trails, a date bucket by its dates and any other by
1047
+ name. The direction does not apply. Positions still win under every mode. `GroupOrderMode`, the
1048
+ alias, widens with it: an exhaustive `Record` or `switch` over the mode needs the new member.
1049
+ - A `location` takes `validation: { maxLength }`, the ceiling on each of its parts — city, state and
1050
+ country, each judged alone with the `validation.max-length` message [48].
1051
+
1052
+ ### Changed
1053
+
1054
+ - Splitting rows by a field's value is its own module, `buckets.ts`, shared by Group by and the
1055
+ board. Renamed, old → new: `GROUP_RULES` → `BUCKET_RULES`, `GroupRule` → `BucketRule`,
1056
+ `groupRuleFor(field)` → `bucketRuleFor(field)`, `dateGroupKey(day, g)` → `dateBucketKey(day, g)`.
1057
+ `GroupSpec`, `GroupGranularity`, `GroupOrderMode` and `canGroupBy` keep their names; the first
1058
+ three are now `BucketAxis`, `BucketGranularity` and `BucketOrderMode`.
1059
+ - `"relative"` groups are rolling windows: Today, Yesterday, Last 7 days, Last 30 days, then a
1060
+ group per month for a year back, then per year (was Today, Yesterday, This week, Last week, This
1061
+ month, Older); a day after today is Upcoming. `"due"` mirrors it forward. The keys changed with
1062
+ them — gone: `rel:this_week`, `rel:last_week`, `rel:this_month`, `rel:older`, `due:this_week`,
1063
+ `due:this_month`, `due:later`; new: `rel:future`, `rel:last_7_days`, `rel:last_30_days`,
1064
+ `rel:m:YYYY-MM`, `rel:y:YYYY`, `due:tomorrow`, `due:next_7_days`, `due:next_30_days`,
1065
+ `due:m:YYYY-MM`, `due:y:YYYY` — so a host that stores a group's position or visibility by key
1066
+ holds nothing for the new groups. The `group.relative` and `group.due` messages' `bucket` values
1067
+ changed with them.
1068
+ - A date group's order is its dates': `name` (and `lifecycle`) order date groups by the first day
1069
+ each holds, `count` by size, and the direction applies to both — for `relative` and `due` too,
1070
+ which no longer ignore the order. Date groups used to compare their labels' letters.
1071
+ - `DateStyle` gains `"numeric"`: day, month and year as digits. A `Record` or a `switch` over every
1072
+ `DateStyle` needs the new member.
1073
+ - `validation.decimals` takes 0–100, the ceiling `format.decimals` already had, so a decimal field over
1074
+ a wide column (`numeric(30,18)`) states its scale. 0.2.0's known gap closes [43].
1075
+ - A function that takes conventions second — the operator labels, `textRuleLabel`, `dateRuleLabel`,
1076
+ `formatRelativeTime`, `formatAbsoluteTime`, `fieldTypeLabel`, `parseNumber`, `zodFor` and the rest —
1077
+ reads the defaults when handed something that is not conventions. A label function passed bare to
1078
+ `.map()` gets the index there, and used to throw; 0.2.0's advice to wrap it still holds for a host
1079
+ that states conventions, and for `numberRuleLabel`, which takes them fourth [41].
1080
+ - `FieldMessage` gains `group.due`, and `group.relative`'s `bucket` is now `future`, `today`,
1081
+ `yesterday`, `last_7_days` or `last_30_days` (was `today`, `yesterday`, `this_week`, `last_week`,
1082
+ `this_month` or `older`). A host whose resolver switches over every key exhaustively needs both; a
1083
+ resolver that falls back to `resolveFieldMessage` needs nothing.
1084
+ - `checkRegistries` refuses a rollup whose `result` stores decimal text over a far field that stores a
1085
+ number: a sum, average, smallest or largest of floats is a float, whatever text it is written as. A
1086
+ number result over decimal digits stays legal [44].
1087
+ - The skill states that a `percent` stores 0–100 [50], and that a relation's or user's value reads as
1088
+ `{ id, label }` — a bare id groups under None [45].
1089
+
1090
+ ### Known gaps
1091
+
1092
+ - A number FILTER over a currency column that mixes codes compares bare numbers: `amount > 500` keeps
1093
+ a 1000 RON row beside a 1000 EUR one. Sorting clusters by denomination; filtering does not [20].
1094
+ - `min` / `max` / `gt` / `lt` are stated as JavaScript numbers, so a bound is the nearest double: a
1095
+ stored value is compared digit by digit, but a bound past 2^53 (or with more than ~15 significant
1096
+ digits) cannot be STATED exactly.
1097
+
1098
+ ## [0.2.0] — 2026-09-22
1099
+
1100
+ ### Added
1101
+
1102
+ - `CHANGELOG.md` ships in the package, so a consumer reads what changed from `node_modules` [40].
1103
+ - A codec for hosts whose rows carry `Date` objects: `dayOf(date, "calendar" | "instant", cv?)`,
1104
+ `dateOfDay(day)`, `instantOf(date)`, `dateOfInstant(iso)`. The host says what a `Date` IS — a
1105
+ calendar day (a DATE column through an ORM: UTC midnight, the same day in every zone) or an instant
1106
+ (the day is the host's, by `conventions.timeZone`). Invalid input is `null`, never rolled forward.
1107
+ The gates still take text only; the skill shows the codec at the boundary and for
1108
+ `optimisticDisplay` [7, 35].
1109
+ - `dateFilterRuleOf(rule)` from `/query`: a date rule as it sits in a `FilterTree`
1110
+ (`value: { direction, unit }`, `value: [from, to]`) as the flat `DateFilterRule` that `dateRuleLabel`,
1111
+ `matchesDateRule` and `isDateRuleActive` take. It is the conversion the evaluator itself judges by,
1112
+ so a host labelling a saved rule no longer restates it [38].
1113
+
1114
+ - `ViewFieldReader.codeOf?(row, key)` — the currency the number `read(row, key)` is denominated in.
1115
+ A host that converts inside `read` declares it and answers one constant; a host that states nothing
1116
+ gets the field's own `code` [20].
1117
+ - `CurrencyCode` gained `{ perCode: true }`, legal only inside a rollup's or formula's `result`: the
1118
+ value is one amount PER currency code, because a sum over amounts that each carry their own currency
1119
+ is not one number. `StoredOf` of such a result is `readonly { code: string; amount: number }[]`; it
1120
+ offers no filter operators and a stable comparator (the `location` rule — no single number to
1121
+ compare). It is a `CurrencyCode` member and not a nineteenth `FieldType`, so every exhaustive map in
1122
+ the package and in every consumer still compiles. **The library computes nothing of it: it does no
1123
+ conversion, holds no rates, and ships no helper that sums or multiplies money — the host computes
1124
+ the amounts inside its own reader** [19].
1125
+ - `isPerCodeCurrency(field)` beside `isIntegerField`, reading through a derived field's `result`. It is
1126
+ the one predicate every other file asks; `isIntegerField` answers `false` for such a result.
1127
+ - `storage: "decimal"` on a number, percent or currency field: the STORED value is canonical decimal
1128
+ TEXT — `"120.50"`, what an ORM hands back for a `numeric` column — so no digit is lost to a binary
1129
+ float. `StoredOf` of such a field is `string`, and of a per-code currency result under it
1130
+ `readonly { code: string; amount: string }[]`. `zodFor` returns `ZodType<string, string>` and judges
1131
+ the text: canonical form only (`-?digits(.digits)?` — `"1e3"`, `"+1"`, `"1,5"`, `".5"`, `"1."`,
1132
+ `" 1"`, `""` and a JS number are all `validation.number`), `decimals` and `integer` counted after the
1133
+ trailing zeros a column pads with (`"120.500"` passes `decimals: 2`, `"120.555"` does not), and
1134
+ `min` / `max` / `gt` / `lt` compared as TEXT against the bound written out, digit by digit, so
1135
+ `"1000000000000000000000.01"` is held to its bounds as written. Every refusal reuses the message key
1136
+ its numeric twin uses — no new `FieldMessage` key. `acceptFieldCommit` still takes the editor's
1137
+ NUMBER and returns the same commit shape; it judges that number's own shortest round-trip text, so a
1138
+ field's `decimals` refuses `82.355` instead of rounding it into passing. A COMPUTED figure carries the
1139
+ same float noise as digits: `0.1 + 0.2`'s shortest text is `0.30000000000000004`, which a `decimals: 2`
1140
+ decimal-storage field refuses exactly as it refuses `82.355`, where a number-storage field tolerates
1141
+ that noise on purpose. Round a computed figure to the field's scale before committing it
1142
+ (`Number(n.toFixed(2))`), or write the stored text directly with `decimalTextOf(n, 2)` on the binding
1143
+ side. `acceptStoredFieldValue`
1144
+ judges the text and refuses a number. `optimisticDisplay` answers the text, so the overlay is the
1145
+ shape the refetch brings. Two helpers do the conversion a binding needs.
1146
+ `decimalTextOf(value, decimals?)` writes the shortest round-trip text, or exactly that many fraction
1147
+ digits — never exponent notation, never a signed zero, `null` for a non-finite number — and
1148
+ `numberOfDecimalText(text)` reads it back, for drawing and comparing.
1149
+ `storesDecimalText(field)` is the predicate to ask, beside
1150
+ `isPerCodeCurrency`. **Stated limit:** the query layer compares what the cell draws, as a number, so
1151
+ a filter, a sort and a group are lossy past 2^53 — two texts differing that far out read as the same
1152
+ double. Documented, not solved; the two acceptance gates compare the text itself [6, 17].
1153
+ - `checkFieldSpec(key, f, all?, context?)` — a fourth, optional `{ inResult?: boolean }`, so the
1154
+ recursive result check can allow `{ perCode: true }` where a top-level field is refused. Every
1155
+ existing call still compiles.
1156
+ - The query entry's words reach the host's resolver [39]. New message keys: `filter.any`,
1157
+ `filter.operator`, `filter.text-summary`, `filter.date-summary`, `filter.relative`, `group.none`,
1158
+ `group.relative`, `group.week-of`, `time.never`, `time.future`, `time.ago`. The resolver is handed
1159
+ the parts — an operator, a direction and a unit, a count and a unit, dates already written in the
1160
+ host's locale — never a finished sentence, so it keeps its own word order. With no resolver stated
1161
+ every string is exactly what it was. `createQueryKit` binds `textRuleLabel` and `numberRuleLabel`.
1162
+
1163
+ ### Changed
1164
+
1165
+ - **Breaking:** `compareBy` takes the evaluator's reader object in place of the two functions —
1166
+ `compareBy(sorts, { fieldOf, read, codeOf? }, cv?)`, and `QueryKit.compareBy(sorts, reader)` with it.
1167
+ A sort now needs to read a second column (the sibling holding a row's currency code), which two bare
1168
+ functions could not express. Old: `compareBy(sorts, fieldOf, read, cv)`. New:
1169
+ `compareBy(sorts, { fieldOf, read }, cv)` — the object a host already passes to `evaluateView`, whose
1170
+ other members are optional [20].
1171
+ - **Behaviour:** a currency column whose rows carry DIFFERENT codes sorts clustered by code — the
1172
+ sibling select's option order when `code` is `{ field }`, else the code text in `conventions.locale`,
1173
+ with an undeclared code after the declared ones — and by amount inside a code. A row whose
1174
+ denomination nothing states (a blank in the sibling, or a `codeOf` answering `null`) is its own
1175
+ cluster and sorts after every known code; comparing it as a bare number instead would make the
1176
+ comparator contradict itself, and `Array.prototype.sort` unspecified. The cluster order does not flip
1177
+ with the direction; only the amounts inside a cluster do. Empties still sort last in both directions,
1178
+ ahead of any clustering, and a column where every row carries one code sorts exactly as it did. The
1179
+ denomination is derived from the field's own `code`: a host that reads a CONVERTED number declares
1180
+ `codeOf` answering one constant, or its column clusters by the rows' original codes; a reader that
1181
+ cannot read the sibling named by `code.field` — or a `{ fixed }` code — never clusters at all and
1182
+ keeps the plain numeric order. A rollup or formula whose `result` is a currency clusters the same
1183
+ way. In-memory evaluator only — a host that orders at its source orders there [20].
1184
+ - `textFilterOperatorLabel`, `numberFilterOperatorLabel`, `dateFilterOperatorLabel`, `textRuleLabel`
1185
+ and `formatRelativeTime` take `cv` last; `numberRuleLabel(rule, decimals?, unit?, cv?)`. All optional,
1186
+ so a call that compiles today still does — except a label function passed BARE to `.map()`, which
1187
+ would now receive the index as its conventions: wrap it, `(op) => textFilterOperatorLabel(op)`.
1188
+ - The exported tables (`TEXT_FILTER_OPERATORS`, `NUMBER_FILTER_OPERATORS`, `DATE_FILTER_OPERATORS`,
1189
+ `RELATIVE_DIRECTIONS`, `RELATIVE_UNITS`) are unchanged and keep their English `label`: render
1190
+ through the label functions to get the host's words.
1191
+ - `FieldMessage` gained the keys above. A host whose resolver switches over every key exhaustively
1192
+ gets a compile error for each new one, on purpose; a resolver that falls back to
1193
+ `resolveFieldMessage` needs nothing.
1194
+ - **types:** `default` on a number, percent or currency field is `number | string`. A decimal field's
1195
+ default must be canonical decimal text that passes the field's own bounds, a plain field's must be a
1196
+ number, and `defineFields` refuses the mismatch either way round. `storage: "decimal"` beside
1197
+ `format.style: "duration"` is refused too: a duration is a count of milliseconds or seconds, not a
1198
+ decimal quantity.
1199
+ - `filterValueSchema` accepts a rule whose value is still being typed: `null` for a number, percent
1200
+ or currency rule, `null` or `""` for a date rule, and `""` for an unpicked end of `is_between`. An
1201
+ editor emits exactly that between the operator pick and the first keystroke, and `ruleIsActive`
1202
+ already answered `false` for it — but a host validating a view on write refused it. Text always
1203
+ passed (its empty value is `""`). A value of the wrong KIND is still refused: `"100"` is no number,
1204
+ `"soon"` is no day, and `between` and `is_relative` keep their full shapes.
1205
+ - `acceptFieldCommit` holds a number, percent or currency committed with NO unit — `82.3` or
1206
+ `{ value: 82.3 }` — to the field's own `min`, `max`, `gt`, `lt`, `integer` and `decimals`, with the
1207
+ same typed refusal `acceptStoredFieldValue` gives. It answered `ok: true` before and left the refusal
1208
+ to the stored gate. A commit that names a unit is unchanged: a binding maps it first [36].
1209
+
1210
+ ### Fixed
1211
+
1212
+ - `formatDurationInput(ms, cv?)` writes the host's decimal separator. It is the documented exact
1213
+ inverse of `parseDurationInput`, which reads the text back under `conventions.decimal`, so the dot it
1214
+ always wrote was read as grouping by a comma host: an editor that opened on 1234 ms committed
1215
+ 1,234,000 on a blur that changed nothing. Stated nothing, the text is exactly what it was.
1216
+ - `checkFieldSpec` refuses a `format.decimals` that is not a whole number from 0 to 100, on a field and
1217
+ inside a rollup's or formula's `result`. It only draws, but every number rule label and rounded
1218
+ equality hands it to `toFixed`, which threw `RangeError` at read time for a count past 100.
1219
+ - A `relation` with `cardinality: "many"` groups by its first link, as a `multiselect` groups by its
1220
+ first value. It grouped every row under "None".
1221
+ - A rule over a rollup or formula whose result is one amount per code keeps the row, whatever the
1222
+ operator — the `location` rule, and what `operatorsForField` already promised by offering none. The
1223
+ evaluator handed the list of amounts to the numeric matcher as a `currency`, which refused every row;
1224
+ `hasActiveRules` no longer counts such a rule as active.
1225
+
1226
+ ### Known gaps
1227
+
1228
+ - A number FILTER over a currency column that mixes codes compares bare numbers: `amount > 500` keeps
1229
+ a 1000 RON row beside a 1000 EUR one. Sorting clusters by denomination; filtering does not [20].
1230
+ - `validation.decimals` is still capped at 0–10, so a decimal field over a wider column
1231
+ (`numeric(30,18)`) cannot state its own scale and leaves `decimals` unstated.
1232
+ - `min` / `max` / `gt` / `lt` are stated as JavaScript numbers, so a bound is the nearest double: a
1233
+ stored value is compared digit by digit, but a bound past 2^53 (or with more than ~15 significant
1234
+ digits) cannot be STATED exactly.
1235
+
1236
+ ## [0.1.0] — 2026-09-19
1237
+
1238
+ First published version. Renamed from the unpublished `@viewkit/fields` 0.0.0: public on npmjs,
1239
+ `UNLICENSED`, ESM only, Node `>=20` [12], peer `zod ^4.1.12`. Ships `dist/`, `README.md`,
1240
+ `LICENSE.md`, `skills/viewkit/SKILL.md`.
1241
+
1242
+ ### Added
1243
+
1244
+ - **Conventions.** `defineConventions({ locale, timeZone, decimal, ids, messages })`, `.with()`,
1245
+ `DEFAULT_CONVENTIONS`, `FieldConventionsError`, `createFieldKit(cv)`, and `createQueryKit(cv)` from
1246
+ `/query`. A host states them once; every read-time function takes them last, or inside its options
1247
+ bag. Stated nothing: `en-GB`, `UTC`, both decimal styles read, any non-empty id, English — never the
1248
+ runtime's locale or zone [10, 29, 30].
1249
+ - `parseNumber(raw, cv?)` and its inverse `formatNumberText(value, decimals, cv?)`. A stated `decimal`
1250
+ is strict: under `","`, `82,3` is 82.3, `1.234` is 1234, and malformed grouping is `null`, never
1251
+ reinterpreted. U+2212, dashes and `(…)` read as negative; only a currency sign, `%` and `‰` are
1252
+ decoration [26].
1253
+ - `ids.user`: the host's id schema for `user` fields; unstated = any non-empty string [15].
1254
+ - Validation: `text` `minLength` [1]; `phone` `maxLength` + `pattern`, `url` `maxLength` [2];
1255
+ `validation.decimals` (0–10) on `number` / `percent` / `currency`, refused beside `integer`, tolerant
1256
+ of float noise [16].
1257
+ - `checkRegistries(registries)`: `checkInverse` plus every rollup's `of` checked against the far
1258
+ registry, and that its function can aggregate that field's type [18].
1259
+ - Definition-time refusals: `required` with `emptiable`, `emptiable` with `minLength`,
1260
+ `minLength > maxLength`, a `pattern` that does not compile, a `count` rollup naming an `of`.
1261
+ - `fieldTypeLabel(type, cv?)`; messages `lock.never`, `provider.name`, `type.label`,
1262
+ `settlement.requested`, `validation.min-length`, `validation.decimals`.
1263
+ - `interface ProviderKinds {}` — augmentable like `RelationKinds` and `FieldEntities`; no vendor is
1264
+ named by the package [8].
1265
+ - The skill documents per-owner augmentation, leaving `RelationKinds` open until adoption is complete,
1266
+ and type-only ORM enum options [14].
1267
+
1268
+ ### Changed (breaking, from 0.0.0)
1269
+
1270
+ - `parseNumberText` and `parseNumberInput` are gone → `parseNumber`.
1271
+ - `zodFor(field, message?)` → `zodFor(field, cv?)`; messages resolve only when an issue fires — zero
1272
+ resolver calls at build, one per fired issue [3].
1273
+ - `acceptFieldCommit(field, commit, unitOptions?, message?)` →
1274
+ `acceptFieldCommit(field, commit, { unitOptions?, conventions? })`.
1275
+ - `acceptStoredFieldValue(field, value, message?)` → `(field, value, cv?)`; `fieldClearRefusal(field, cv?)`.
1276
+ - A refusal is `{ ok: false, reason, message }` — `message` is the typed `{ key, values }`. Assertions
1277
+ of the form `toEqual({ ok: false, reason })` break.
1278
+ - `evaluateView` / `countMatching` / `bucketRows` / `matchesRule` / `matchesTree`: option `timeZone` →
1279
+ `conventions`. `valueDayKey`, `resolveRelativeWindow`, `matchesDateRule`, `dateRuleLabel`, `compareBy`,
1280
+ `comparatorFor`, `formatAbsoluteTime`, `GroupRule.keyOf` take `cv` last.
1281
+ - `lockReason`, `derivedReason`, `requestedSettlementTitle` take `cv` and go through the resolver
1282
+ [9, 21]; a `never` field with no provenance now has a reason [22].
1283
+ - `FIELD_TYPE_LABELS` and `PROVIDER_LABELS` are gone → `fieldTypeLabel`, and the message `provider.name`
1284
+ (the default prints the key as written: "Owned by stripe").
1285
+ - `presentedDef(field)` writes no sentence: ask `lockReason` about the ORIGINAL field.
1286
+ - `acceptStoredFieldValue` holds `required`: a blank string or an empty list is refused [4].
1287
+ - Text filters fold case and diacritics, including the cedilla spellings of ș/ț [27, 28] — for every
1288
+ text operator, `is` included.
1289
+ - Text sorts by the host's collator; day buckets and date labels follow the host's locale and zone.
1290
+ - Module augmentation targets `@viewkitjs/fields/types`.
1291
+
1292
+ ### Known gaps (not in this release)
1293
+
1294
+ Decimal storage mode [6, 17] · Date ↔ day codecs [7, 35] · collection hints [5] · the design-token
1295
+ contract [11] · mixed currencies [19, 20] · options from data [23] · per-option command guards [24] ·
1296
+ derived identity [25] · list-of-records fields and `multiple` on scalars [31, 32] · polymorphic
1297
+ `{ kind, id }` [33] · a confirmed save without a row [34] · the query entry's remaining English [39] ·
1298
+ a number commit is not held to the field's validation [36] · no exact text match [37] · two shapes
1299
+ for a relative date rule [38].