viewkitjs 0.0.0-stage → 0.20.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.
- package/CHANGELOG.md +102 -0
- package/LICENSE.md +7 -0
- package/MIGRATION.md +116 -0
- package/README.md +40 -2
- package/fields/CHANGELOG.md +1299 -0
- package/fields/NOTICE.md +12 -0
- package/fields/README.md +134 -0
- package/fields/dist/accept.d.ts +39 -0
- package/fields/dist/accept.js +309 -0
- package/fields/dist/actor.d.ts +16 -0
- package/fields/dist/actor.js +44 -0
- package/fields/dist/bands.d.ts +5 -0
- package/fields/dist/bands.js +12 -0
- package/fields/dist/close.d.ts +19 -0
- package/fields/dist/close.js +1 -0
- package/fields/dist/codecs.d.ts +32 -0
- package/fields/dist/codecs.js +119 -0
- package/fields/dist/conventions.d.ts +61 -0
- package/fields/dist/conventions.js +97 -0
- package/fields/dist/countries.d.ts +11 -0
- package/fields/dist/countries.js +98 -0
- package/fields/dist/creatable.d.ts +85 -0
- package/fields/dist/creatable.js +188 -0
- package/fields/dist/date-codec.d.ts +17 -0
- package/fields/dist/date-codec.js +41 -0
- package/fields/dist/definitions.d.ts +2 -0
- package/fields/dist/definitions.js +2 -0
- package/fields/dist/derived.d.ts +88 -0
- package/fields/dist/derived.js +165 -0
- package/fields/dist/design/category-colors.d.ts +17 -0
- package/fields/dist/design/category-colors.js +41 -0
- package/fields/dist/design/stage-marks.d.ts +26 -0
- package/fields/dist/design/stage-marks.js +1 -0
- package/fields/dist/design/status-slots.d.ts +34 -0
- package/fields/dist/design/status-slots.js +72 -0
- package/fields/dist/domain.d.ts +6 -0
- package/fields/dist/domain.js +34 -0
- package/fields/dist/entities.d.ts +67 -0
- package/fields/dist/entities.js +528 -0
- package/fields/dist/equality.d.ts +41 -0
- package/fields/dist/equality.js +114 -0
- package/fields/dist/errors.d.ts +3 -0
- package/fields/dist/errors.js +6 -0
- package/fields/dist/format/time.d.ts +25 -0
- package/fields/dist/format/time.js +77 -0
- package/fields/dist/formula.d.ts +54 -0
- package/fields/dist/formula.js +510 -0
- package/fields/dist/index.d.ts +35 -0
- package/fields/dist/index.js +32 -0
- package/fields/dist/kit.d.ts +23 -0
- package/fields/dist/kit.js +25 -0
- package/fields/dist/labels.d.ts +3 -0
- package/fields/dist/labels.js +5 -0
- package/fields/dist/link.d.ts +33 -0
- package/fields/dist/link.js +58 -0
- package/fields/dist/location.d.ts +26 -0
- package/fields/dist/location.js +92 -0
- package/fields/dist/markdown.d.ts +7 -0
- package/fields/dist/markdown.js +64 -0
- package/fields/dist/messages.d.ts +374 -0
- package/fields/dist/messages.js +332 -0
- package/fields/dist/name.d.ts +23 -0
- package/fields/dist/name.js +53 -0
- package/fields/dist/normalize.d.ts +6 -0
- package/fields/dist/normalize.js +17 -0
- package/fields/dist/optimistic.d.ts +37 -0
- package/fields/dist/optimistic.js +56 -0
- package/fields/dist/options.d.ts +26 -0
- package/fields/dist/options.js +31 -0
- package/fields/dist/parse-number.d.ts +55 -0
- package/fields/dist/parse-number.js +142 -0
- package/fields/dist/phone.d.ts +47 -0
- package/fields/dist/phone.js +121 -0
- package/fields/dist/places/format.d.ts +29 -0
- package/fields/dist/places/format.js +97 -0
- package/fields/dist/places/formats.d.ts +25 -0
- package/fields/dist/places/formats.js +260 -0
- package/fields/dist/places/index.d.ts +13 -0
- package/fields/dist/places/index.js +21 -0
- package/fields/dist/places/load-regions.d.ts +7 -0
- package/fields/dist/places/load-regions.js +65 -0
- package/fields/dist/places/regions/AD.d.ts +4 -0
- package/fields/dist/places/regions/AD.js +11 -0
- package/fields/dist/places/regions/AE.d.ts +4 -0
- package/fields/dist/places/regions/AE.js +11 -0
- package/fields/dist/places/regions/AM.d.ts +4 -0
- package/fields/dist/places/regions/AM.js +15 -0
- package/fields/dist/places/regions/AR.d.ts +4 -0
- package/fields/dist/places/regions/AR.js +28 -0
- package/fields/dist/places/regions/AU.d.ts +4 -0
- package/fields/dist/places/regions/AU.js +13 -0
- package/fields/dist/places/regions/BB.d.ts +4 -0
- package/fields/dist/places/regions/BB.js +15 -0
- package/fields/dist/places/regions/BR.d.ts +4 -0
- package/fields/dist/places/regions/BR.js +31 -0
- package/fields/dist/places/regions/BS.d.ts +4 -0
- package/fields/dist/places/regions/BS.js +23 -0
- package/fields/dist/places/regions/BY.d.ts +4 -0
- package/fields/dist/places/regions/BY.js +11 -0
- package/fields/dist/places/regions/CA.d.ts +4 -0
- package/fields/dist/places/regions/CA.js +17 -0
- package/fields/dist/places/regions/CL.d.ts +4 -0
- package/fields/dist/places/regions/CL.js +20 -0
- package/fields/dist/places/regions/CN.d.ts +4 -0
- package/fields/dist/places/regions/CN.js +38 -0
- package/fields/dist/places/regions/CO.d.ts +4 -0
- package/fields/dist/places/regions/CO.js +37 -0
- package/fields/dist/places/regions/CR.d.ts +4 -0
- package/fields/dist/places/regions/CR.js +11 -0
- package/fields/dist/places/regions/CU.d.ts +4 -0
- package/fields/dist/places/regions/CU.js +20 -0
- package/fields/dist/places/regions/CV.d.ts +4 -0
- package/fields/dist/places/regions/CV.js +13 -0
- package/fields/dist/places/regions/EE.d.ts +4 -0
- package/fields/dist/places/regions/EE.js +19 -0
- package/fields/dist/places/regions/EG.d.ts +4 -0
- package/fields/dist/places/regions/EG.js +31 -0
- package/fields/dist/places/regions/ES.d.ts +4 -0
- package/fields/dist/places/regions/ES.js +56 -0
- package/fields/dist/places/regions/FM.d.ts +4 -0
- package/fields/dist/places/regions/FM.js +8 -0
- package/fields/dist/places/regions/HK.d.ts +4 -0
- package/fields/dist/places/regions/HK.js +7 -0
- package/fields/dist/places/regions/HN.d.ts +4 -0
- package/fields/dist/places/regions/HN.js +22 -0
- package/fields/dist/places/regions/ID.d.ts +4 -0
- package/fields/dist/places/regions/ID.js +38 -0
- package/fields/dist/places/regions/IE.d.ts +4 -0
- package/fields/dist/places/regions/IE.js +30 -0
- package/fields/dist/places/regions/IN.d.ts +4 -0
- package/fields/dist/places/regions/IN.js +40 -0
- package/fields/dist/places/regions/IQ.d.ts +4 -0
- package/fields/dist/places/regions/IQ.js +23 -0
- package/fields/dist/places/regions/IR.d.ts +4 -0
- package/fields/dist/places/regions/IR.js +35 -0
- package/fields/dist/places/regions/IT.d.ts +4 -0
- package/fields/dist/places/regions/IT.js +115 -0
- package/fields/dist/places/regions/JM.d.ts +4 -0
- package/fields/dist/places/regions/JM.js +18 -0
- package/fields/dist/places/regions/JP.d.ts +4 -0
- package/fields/dist/places/regions/JP.js +51 -0
- package/fields/dist/places/regions/KN.d.ts +4 -0
- package/fields/dist/places/regions/KN.js +6 -0
- package/fields/dist/places/regions/KP.d.ts +4 -0
- package/fields/dist/places/regions/KP.js +17 -0
- package/fields/dist/places/regions/KR.d.ts +4 -0
- package/fields/dist/places/regions/KR.js +21 -0
- package/fields/dist/places/regions/KY.d.ts +4 -0
- package/fields/dist/places/regions/KY.js +7 -0
- package/fields/dist/places/regions/KZ.d.ts +4 -0
- package/fields/dist/places/regions/KZ.js +24 -0
- package/fields/dist/places/regions/MN.d.ts +4 -0
- package/fields/dist/places/regions/MN.js +26 -0
- package/fields/dist/places/regions/MX.d.ts +4 -0
- package/fields/dist/places/regions/MX.js +36 -0
- package/fields/dist/places/regions/MY.d.ts +4 -0
- package/fields/dist/places/regions/MY.js +20 -0
- package/fields/dist/places/regions/MZ.d.ts +4 -0
- package/fields/dist/places/regions/MZ.js +15 -0
- package/fields/dist/places/regions/NG.d.ts +4 -0
- package/fields/dist/places/regions/NG.js +41 -0
- package/fields/dist/places/regions/NI.d.ts +4 -0
- package/fields/dist/places/regions/NI.js +21 -0
- package/fields/dist/places/regions/NR.d.ts +4 -0
- package/fields/dist/places/regions/NR.js +18 -0
- package/fields/dist/places/regions/PA.d.ts +4 -0
- package/fields/dist/places/regions/PA.js +18 -0
- package/fields/dist/places/regions/PE.d.ts +4 -0
- package/fields/dist/places/regions/PE.js +30 -0
- package/fields/dist/places/regions/PG.d.ts +4 -0
- package/fields/dist/places/regions/PG.js +26 -0
- package/fields/dist/places/regions/PH.d.ts +4 -0
- package/fields/dist/places/regions/PH.js +86 -0
- package/fields/dist/places/regions/PW.d.ts +4 -0
- package/fields/dist/places/regions/PW.js +20 -0
- package/fields/dist/places/regions/RO.d.ts +4 -0
- package/fields/dist/places/regions/RO.js +46 -0
- package/fields/dist/places/regions/RU.d.ts +4 -0
- package/fields/dist/places/regions/RU.js +89 -0
- package/fields/dist/places/regions/SO.d.ts +4 -0
- package/fields/dist/places/regions/SO.js +22 -0
- package/fields/dist/places/regions/SR.d.ts +4 -0
- package/fields/dist/places/regions/SR.js +14 -0
- package/fields/dist/places/regions/SV.d.ts +4 -0
- package/fields/dist/places/regions/SV.js +18 -0
- package/fields/dist/places/regions/TH.d.ts +4 -0
- package/fields/dist/places/regions/TH.js +81 -0
- package/fields/dist/places/regions/TR.d.ts +4 -0
- package/fields/dist/places/regions/TR.js +85 -0
- package/fields/dist/places/regions/TV.d.ts +4 -0
- package/fields/dist/places/regions/TV.js +13 -0
- package/fields/dist/places/regions/TW.d.ts +4 -0
- package/fields/dist/places/regions/TW.js +26 -0
- package/fields/dist/places/regions/UA.d.ts +4 -0
- package/fields/dist/places/regions/UA.js +31 -0
- package/fields/dist/places/regions/US.d.ts +4 -0
- package/fields/dist/places/regions/US.js +66 -0
- package/fields/dist/places/regions/UY.d.ts +4 -0
- package/fields/dist/places/regions/UY.js +23 -0
- package/fields/dist/places/regions/UZ.d.ts +4 -0
- package/fields/dist/places/regions/UZ.js +18 -0
- package/fields/dist/places/regions/VE.d.ts +4 -0
- package/fields/dist/places/regions/VE.js +29 -0
- package/fields/dist/places/regions/VN.d.ts +4 -0
- package/fields/dist/places/regions/VN.js +67 -0
- package/fields/dist/query/board.d.ts +28 -0
- package/fields/dist/query/board.js +44 -0
- package/fields/dist/query/buckets.d.ts +95 -0
- package/fields/dist/query/buckets.js +453 -0
- package/fields/dist/query/change.d.ts +8 -0
- package/fields/dist/query/change.js +43 -0
- package/fields/dist/query/collate.d.ts +10 -0
- package/fields/dist/query/collate.js +22 -0
- package/fields/dist/query/column-state.d.ts +25 -0
- package/fields/dist/query/column-state.js +10 -0
- package/fields/dist/query/date.d.ts +82 -0
- package/fields/dist/query/date.js +254 -0
- package/fields/dist/query/evaluate.d.ts +69 -0
- package/fields/dist/query/evaluate.js +84 -0
- package/fields/dist/query/figure-kinds.d.ts +26 -0
- package/fields/dist/query/figure-kinds.js +27 -0
- package/fields/dist/query/figures.d.ts +69 -0
- package/fields/dist/query/figures.js +169 -0
- package/fields/dist/query/filter.d.ts +153 -0
- package/fields/dist/query/filter.js +560 -0
- package/fields/dist/query/fold.d.ts +1 -0
- package/fields/dist/query/fold.js +4 -0
- package/fields/dist/query/group.d.ts +15 -0
- package/fields/dist/query/group.js +7 -0
- package/fields/dist/query/hold.d.ts +35 -0
- package/fields/dist/query/hold.js +70 -0
- package/fields/dist/query/index.d.ts +25 -0
- package/fields/dist/query/index.js +25 -0
- package/fields/dist/query/kit.d.ts +57 -0
- package/fields/dist/query/kit.js +29 -0
- package/fields/dist/query/layer.d.ts +35 -0
- package/fields/dist/query/layer.js +51 -0
- package/fields/dist/query/link.d.ts +8 -0
- package/fields/dist/query/link.js +18 -0
- package/fields/dist/query/list-link.d.ts +65 -0
- package/fields/dist/query/list-link.js +174 -0
- package/fields/dist/query/location.d.ts +20 -0
- package/fields/dist/query/location.js +36 -0
- package/fields/dist/query/name.d.ts +6 -0
- package/fields/dist/query/name.js +23 -0
- package/fields/dist/query/number.d.ts +94 -0
- package/fields/dist/query/number.js +180 -0
- package/fields/dist/query/option-counts.d.ts +38 -0
- package/fields/dist/query/option-counts.js +89 -0
- package/fields/dist/query/range.d.ts +22 -0
- package/fields/dist/query/range.js +79 -0
- package/fields/dist/query/read-rule.d.ts +3 -0
- package/fields/dist/query/read-rule.js +13 -0
- package/fields/dist/query/search.d.ts +20 -0
- package/fields/dist/query/search.js +77 -0
- package/fields/dist/query/set-aside.d.ts +82 -0
- package/fields/dist/query/set-aside.js +172 -0
- package/fields/dist/query/settings.d.ts +81 -0
- package/fields/dist/query/settings.js +117 -0
- package/fields/dist/query/sort.d.ts +32 -0
- package/fields/dist/query/sort.js +270 -0
- package/fields/dist/query/text.d.ts +55 -0
- package/fields/dist/query/text.js +80 -0
- package/fields/dist/range.d.ts +25 -0
- package/fields/dist/range.js +63 -0
- package/fields/dist/registry.d.ts +128 -0
- package/fields/dist/registry.js +1185 -0
- package/fields/dist/relation.d.ts +84 -0
- package/fields/dist/relation.js +106 -0
- package/fields/dist/root-domain.d.ts +4 -0
- package/fields/dist/root-domain.js +12 -0
- package/fields/dist/settlement.d.ts +4 -0
- package/fields/dist/settlement.js +11 -0
- package/fields/dist/spec-changes.d.ts +20 -0
- package/fields/dist/spec-changes.js +170 -0
- package/fields/dist/testing/backend.d.ts +75 -0
- package/fields/dist/testing/backend.js +1 -0
- package/fields/dist/testing/cases.d.ts +14 -0
- package/fields/dist/testing/cases.js +327 -0
- package/fields/dist/testing/compare.d.ts +39 -0
- package/fields/dist/testing/compare.js +123 -0
- package/fields/dist/testing/index.d.ts +7 -0
- package/fields/dist/testing/index.js +5 -0
- package/fields/dist/testing/memory.d.ts +4 -0
- package/fields/dist/testing/memory.js +90 -0
- package/fields/dist/testing/now.d.ts +4 -0
- package/fields/dist/testing/now.js +2 -0
- package/fields/dist/testing/query-of.d.ts +8 -0
- package/fields/dist/testing/query-of.js +16 -0
- package/fields/dist/testing/question.d.ts +3 -0
- package/fields/dist/testing/question.js +10 -0
- package/fields/dist/testing/reader.d.ts +11 -0
- package/fields/dist/testing/reader.js +12 -0
- package/fields/dist/testing/reference.d.ts +20 -0
- package/fields/dist/testing/reference.js +58 -0
- package/fields/dist/testing/runner.d.ts +32 -0
- package/fields/dist/testing/runner.js +145 -0
- package/fields/dist/testing/samples.d.ts +5 -0
- package/fields/dist/testing/samples.js +338 -0
- package/fields/dist/testing/speed.d.ts +35 -0
- package/fields/dist/testing/speed.js +134 -0
- package/fields/dist/testing/sweep.d.ts +11 -0
- package/fields/dist/testing/sweep.js +154 -0
- package/fields/dist/testing/text-order.d.ts +8 -0
- package/fields/dist/testing/text-order.js +73 -0
- package/fields/dist/testing/worked-out.d.ts +16 -0
- package/fields/dist/testing/worked-out.js +234 -0
- package/fields/dist/types.d.ts +722 -0
- package/fields/dist/types.js +1 -0
- package/fields/dist/value-list.d.ts +56 -0
- package/fields/dist/value-list.js +75 -0
- package/fields/dist/write-result.d.ts +49 -0
- package/fields/dist/write-result.js +34 -0
- package/fields/dist/zod.d.ts +29 -0
- package/fields/dist/zod.js +419 -0
- package/fields/docs/getting-started.md +147 -0
- package/fields/docs/guides/checking-definitions.md +530 -0
- package/fields/docs/guides/contact-values.md +466 -0
- package/fields/docs/guides/conventions.md +312 -0
- package/fields/docs/guides/derived-fields.md +701 -0
- package/fields/docs/guides/field-types.md +665 -0
- package/fields/docs/guides/names-and-places.md +356 -0
- package/fields/docs/guides/narrowing-names.md +146 -0
- package/fields/docs/guides/options.md +348 -0
- package/fields/docs/guides/queries.md +1055 -0
- package/fields/docs/guides/the-index.md +415 -0
- package/fields/docs/guides/validation-and-acceptance.md +314 -0
- package/fields/docs/guides/who-may-change.md +299 -0
- package/fields/docs/index.md +47 -0
- package/fields/docs/reference/definitions.md +22 -0
- package/fields/docs/reference/design-category-colors.md +8 -0
- package/fields/docs/reference/design-stage-marks.md +4 -0
- package/fields/docs/reference/design-status-slots.md +6 -0
- package/fields/docs/reference/fields.md +275 -0
- package/fields/docs/reference/format-time.md +9 -0
- package/fields/docs/reference/phone.md +17 -0
- package/fields/docs/reference/places.md +9 -0
- package/fields/docs/reference/query.md +296 -0
- package/fields/docs/reference/root-domain.md +5 -0
- package/fields/docs/reference/testing.md +87 -0
- package/fields/docs/reference/types.md +95 -0
- package/fields/skills/viewkit/SKILL.md +377 -0
- package/package.json +268 -3
- package/postgres/CHANGELOG.md +676 -0
- package/postgres/README.md +35 -0
- package/postgres/dist/access.d.ts +139 -0
- package/postgres/dist/access.js +171 -0
- package/postgres/dist/actor.d.ts +3 -0
- package/postgres/dist/actor.js +6 -0
- package/postgres/dist/bounds.d.ts +16 -0
- package/postgres/dist/bounds.js +69 -0
- package/postgres/dist/calendar.d.ts +31 -0
- package/postgres/dist/calendar.js +65 -0
- package/postgres/dist/check.d.ts +55 -0
- package/postgres/dist/check.js +337 -0
- package/postgres/dist/counts.d.ts +44 -0
- package/postgres/dist/counts.js +97 -0
- package/postgres/dist/cursor.d.ts +26 -0
- package/postgres/dist/cursor.js +210 -0
- package/postgres/dist/date-groups.d.ts +45 -0
- package/postgres/dist/date-groups.js +176 -0
- package/postgres/dist/definitions/build.d.ts +28 -0
- package/postgres/dist/definitions/build.js +181 -0
- package/postgres/dist/definitions/float.d.ts +55 -0
- package/postgres/dist/definitions/float.js +108 -0
- package/postgres/dist/definitions/formula-forms.d.ts +29 -0
- package/postgres/dist/definitions/formula-forms.js +209 -0
- package/postgres/dist/definitions/formula.d.ts +14 -0
- package/postgres/dist/definitions/formula.js +211 -0
- package/postgres/dist/definitions/index.d.ts +3 -0
- package/postgres/dist/definitions/index.js +2 -0
- package/postgres/dist/definitions/json.d.ts +14 -0
- package/postgres/dist/definitions/json.js +68 -0
- package/postgres/dist/definitions/label.d.ts +8 -0
- package/postgres/dist/definitions/label.js +35 -0
- package/postgres/dist/definitions/lookup.d.ts +8 -0
- package/postgres/dist/definitions/lookup.js +92 -0
- package/postgres/dist/definitions/money.d.ts +29 -0
- package/postgres/dist/definitions/money.js +85 -0
- package/postgres/dist/definitions/place.d.ts +57 -0
- package/postgres/dist/definitions/place.js +46 -0
- package/postgres/dist/definitions/relations.d.ts +9 -0
- package/postgres/dist/definitions/relations.js +81 -0
- package/postgres/dist/definitions/rollup.d.ts +17 -0
- package/postgres/dist/definitions/rollup.js +348 -0
- package/postgres/dist/definitions/storage.d.ts +120 -0
- package/postgres/dist/definitions/storage.js +334 -0
- package/postgres/dist/definitions/stored.d.ts +3 -0
- package/postgres/dist/definitions/stored.js +72 -0
- package/postgres/dist/definitions/user.d.ts +7 -0
- package/postgres/dist/definitions/user.js +42 -0
- package/postgres/dist/double.d.ts +6 -0
- package/postgres/dist/double.js +10 -0
- package/postgres/dist/field-values.d.ts +16 -0
- package/postgres/dist/field-values.js +78 -0
- package/postgres/dist/figures.d.ts +37 -0
- package/postgres/dist/figures.js +90 -0
- package/postgres/dist/filled.d.ts +7 -0
- package/postgres/dist/filled.js +47 -0
- package/postgres/dist/fold.d.ts +15 -0
- package/postgres/dist/fold.js +21 -0
- package/postgres/dist/groups.d.ts +86 -0
- package/postgres/dist/groups.js +191 -0
- package/postgres/dist/ids.d.ts +8 -0
- package/postgres/dist/ids.js +16 -0
- package/postgres/dist/index.d.ts +22 -0
- package/postgres/dist/index.js +21 -0
- package/postgres/dist/kept.d.ts +36 -0
- package/postgres/dist/kept.js +47 -0
- package/postgres/dist/keyed.d.ts +48 -0
- package/postgres/dist/keyed.js +269 -0
- package/postgres/dist/lanes.d.ts +26 -0
- package/postgres/dist/lanes.js +71 -0
- package/postgres/dist/limits.d.ts +12 -0
- package/postgres/dist/limits.js +1 -0
- package/postgres/dist/map.d.ts +198 -0
- package/postgres/dist/map.js +475 -0
- package/postgres/dist/page.d.ts +116 -0
- package/postgres/dist/page.js +577 -0
- package/postgres/dist/parts.d.ts +10 -0
- package/postgres/dist/parts.js +82 -0
- package/postgres/dist/phone.d.ts +28 -0
- package/postgres/dist/phone.js +54 -0
- package/postgres/dist/predicates.d.ts +8 -0
- package/postgres/dist/predicates.js +35 -0
- package/postgres/dist/range-groups.d.ts +22 -0
- package/postgres/dist/range-groups.js +97 -0
- package/postgres/dist/readable.d.ts +40 -0
- package/postgres/dist/readable.js +84 -0
- package/postgres/dist/records.d.ts +24 -0
- package/postgres/dist/records.js +186 -0
- package/postgres/dist/refusals.d.ts +45 -0
- package/postgres/dist/refusals.js +53 -0
- package/postgres/dist/relations.d.ts +23 -0
- package/postgres/dist/relations.js +72 -0
- package/postgres/dist/rules.d.ts +60 -0
- package/postgres/dist/rules.js +218 -0
- package/postgres/dist/search-indexes.d.ts +62 -0
- package/postgres/dist/search-indexes.js +190 -0
- package/postgres/dist/search.d.ts +56 -0
- package/postgres/dist/search.js +154 -0
- package/postgres/dist/several.d.ts +49 -0
- package/postgres/dist/several.js +174 -0
- package/postgres/dist/sort.d.ts +106 -0
- package/postgres/dist/sort.js +373 -0
- package/postgres/dist/sql.d.ts +60 -0
- package/postgres/dist/sql.js +247 -0
- package/postgres/dist/statement.d.ts +4 -0
- package/postgres/dist/statement.js +7 -0
- package/postgres/dist/steps.d.ts +18 -0
- package/postgres/dist/steps.js +18 -0
- package/postgres/dist/users.d.ts +35 -0
- package/postgres/dist/users.js +33 -0
- package/postgres/dist/value-rows.d.ts +23 -0
- package/postgres/dist/value-rows.js +64 -0
- package/postgres/dist/values.d.ts +56 -0
- package/postgres/dist/values.js +162 -0
- package/postgres/dist/view-counts.d.ts +14 -0
- package/postgres/dist/view-counts.js +50 -0
- package/postgres/dist/walker.d.ts +12 -0
- package/postgres/dist/walker.js +18 -0
- package/postgres/docs/guides/definitions.md +221 -0
- package/postgres/docs/guides/field-map.md +730 -0
- package/postgres/docs/guides/test-kit.md +112 -0
- package/postgres/docs/index.md +11 -0
- package/postgres/docs/reference/definitions.md +41 -0
- package/postgres/docs/reference/postgres.md +114 -0
- package/views/CHANGELOG.md +3582 -0
- package/views/README.md +105 -0
- package/views/dist/atoms/Avatar.d.ts +2 -0
- package/views/dist/atoms/Avatar.js +13 -0
- package/views/dist/atoms/CellMore.d.ts +2 -0
- package/views/dist/atoms/CellMore.js +4 -0
- package/views/dist/atoms/CommandMenu.d.ts +2 -0
- package/views/dist/atoms/CommandMenu.js +24 -0
- package/views/dist/atoms/DisabledReason.d.ts +13 -0
- package/views/dist/atoms/DisabledReason.js +27 -0
- package/views/dist/atoms/DrillRows.d.ts +3 -0
- package/views/dist/atoms/DrillRows.js +27 -0
- package/views/dist/atoms/List.d.ts +2 -0
- package/views/dist/atoms/List.js +6 -0
- package/views/dist/atoms/LoadMore.d.ts +2 -0
- package/views/dist/atoms/LoadMore.js +35 -0
- package/views/dist/atoms/Loading.d.ts +8 -0
- package/views/dist/atoms/Loading.js +10 -0
- package/views/dist/atoms/PanelRows.d.ts +5 -0
- package/views/dist/atoms/PanelRows.js +38 -0
- package/views/dist/atoms/PanelSearch.d.ts +2 -0
- package/views/dist/atoms/PanelSearch.js +23 -0
- package/views/dist/atoms/Pill.d.ts +2 -0
- package/views/dist/atoms/Pill.js +25 -0
- package/views/dist/atoms/PlatformMark.d.ts +2 -0
- package/views/dist/atoms/PlatformMark.js +4 -0
- package/views/dist/atoms/RangeCalendar.d.ts +8 -0
- package/views/dist/atoms/RangeCalendar.js +30 -0
- package/views/dist/atoms/RelationLink.d.ts +2 -0
- package/views/dist/atoms/RelationLink.js +6 -0
- package/views/dist/atoms/RelationRoles.d.ts +2 -0
- package/views/dist/atoms/RelationRoles.js +6 -0
- package/views/dist/atoms/Row.d.ts +3 -0
- package/views/dist/atoms/Row.js +31 -0
- package/views/dist/atoms/RowMenu.d.ts +2 -0
- package/views/dist/atoms/RowMenu.js +116 -0
- package/views/dist/atoms/SelectionSheet.d.ts +3 -0
- package/views/dist/atoms/SelectionSheet.js +31 -0
- package/views/dist/atoms/StatusBadge.d.ts +2 -0
- package/views/dist/atoms/StatusBadge.js +7 -0
- package/views/dist/atoms/StatusMarker.d.ts +2 -0
- package/views/dist/atoms/StatusMarker.js +21 -0
- package/views/dist/atoms/Tag.d.ts +2 -0
- package/views/dist/atoms/Tag.js +14 -0
- package/views/dist/atoms/TickBox.d.ts +2 -0
- package/views/dist/atoms/TickBox.js +8 -0
- package/views/dist/atoms/ToolbarButton.d.ts +2 -0
- package/views/dist/atoms/ToolbarButton.js +50 -0
- package/views/dist/atoms/defaults.d.ts +2 -0
- package/views/dist/atoms/defaults.js +51 -0
- package/views/dist/atoms/tones.d.ts +5 -0
- package/views/dist/atoms/tones.js +28 -0
- package/views/dist/atoms/types.d.ts +496 -0
- package/views/dist/atoms/types.js +3 -0
- package/views/dist/cells/cell-format.d.ts +147 -0
- package/views/dist/cells/cell-format.js +16 -0
- package/views/dist/cells/cell-title.d.ts +20 -0
- package/views/dist/cells/cell-title.js +8 -0
- package/views/dist/cells/cell-values.d.ts +28 -0
- package/views/dist/cells/cell-values.js +107 -0
- package/views/dist/cells/index.d.ts +4 -0
- package/views/dist/cells/index.js +4 -0
- package/views/dist/cells/legacy-field.d.ts +52 -0
- package/views/dist/cells/legacy-field.js +164 -0
- package/views/dist/cells/relation-wrap.d.ts +3 -0
- package/views/dist/cells/relation-wrap.js +26 -0
- package/views/dist/cells/use-cell-format.d.ts +5 -0
- package/views/dist/cells/use-cell-format.js +10 -0
- package/views/dist/contract.d.ts +1337 -0
- package/views/dist/contract.js +1824 -0
- package/views/dist/display/actor.d.ts +4 -0
- package/views/dist/display/actor.js +26 -0
- package/views/dist/display/boolean.d.ts +18 -0
- package/views/dist/display/boolean.js +50 -0
- package/views/dist/display/breakdown.d.ts +15 -0
- package/views/dist/display/breakdown.js +32 -0
- package/views/dist/display/converted.d.ts +19 -0
- package/views/dist/display/converted.js +12 -0
- package/views/dist/display/currency.d.ts +9 -0
- package/views/dist/display/currency.js +29 -0
- package/views/dist/display/date.d.ts +12 -0
- package/views/dist/display/date.js +28 -0
- package/views/dist/display/display-cores.d.ts +31 -0
- package/views/dist/display/display-cores.js +57 -0
- package/views/dist/display/entity-chip.d.ts +29 -0
- package/views/dist/display/entity-chip.js +8 -0
- package/views/dist/display/fit-values.d.ts +34 -0
- package/views/dist/display/fit-values.js +45 -0
- package/views/dist/display/format.d.ts +66 -0
- package/views/dist/display/format.js +206 -0
- package/views/dist/display/index.d.ts +9 -0
- package/views/dist/display/index.js +8 -0
- package/views/dist/display/link-click.d.ts +11 -0
- package/views/dist/display/link-click.js +3 -0
- package/views/dist/display/link.d.ts +29 -0
- package/views/dist/display/link.js +56 -0
- package/views/dist/display/location.d.ts +8 -0
- package/views/dist/display/location.js +22 -0
- package/views/dist/display/multi-value.d.ts +18 -0
- package/views/dist/display/multi-value.js +93 -0
- package/views/dist/display/name.d.ts +6 -0
- package/views/dist/display/name.js +14 -0
- package/views/dist/display/number.d.ts +11 -0
- package/views/dist/display/number.js +27 -0
- package/views/dist/display/options.d.ts +167 -0
- package/views/dist/display/options.js +1 -0
- package/views/dist/display/percent.d.ts +4 -0
- package/views/dist/display/percent.js +41 -0
- package/views/dist/display/phone.d.ts +11 -0
- package/views/dist/display/phone.js +49 -0
- package/views/dist/display/range.d.ts +6 -0
- package/views/dist/display/range.js +19 -0
- package/views/dist/display/relation.d.ts +4 -0
- package/views/dist/display/relation.js +44 -0
- package/views/dist/display/rich-text.d.ts +10 -0
- package/views/dist/display/rich-text.js +46 -0
- package/views/dist/display/select.d.ts +6 -0
- package/views/dist/display/select.js +40 -0
- package/views/dist/display/status-steps.d.ts +8 -0
- package/views/dist/display/status-steps.js +18 -0
- package/views/dist/display/text-class.d.ts +23 -0
- package/views/dist/display/text-class.js +5 -0
- package/views/dist/display/text.d.ts +19 -0
- package/views/dist/display/text.js +8 -0
- package/views/dist/display/use-display-options.d.ts +2 -0
- package/views/dist/display/use-display-options.js +14 -0
- package/views/dist/display/user.d.ts +11 -0
- package/views/dist/display/user.js +10 -0
- package/views/dist/display/value-list.d.ts +10 -0
- package/views/dist/display/value-list.js +12 -0
- package/views/dist/display/viewer.d.ts +4 -0
- package/views/dist/display/viewer.js +12 -0
- package/views/dist/display/web-href.d.ts +16 -0
- package/views/dist/display/web-href.js +19 -0
- package/views/dist/editors/BodyFrame.d.ts +30 -0
- package/views/dist/editors/BodyFrame.js +86 -0
- package/views/dist/editors/ChipsEditor.d.ts +76 -0
- package/views/dist/editors/ChipsEditor.js +118 -0
- package/views/dist/editors/DateEditor.d.ts +42 -0
- package/views/dist/editors/DateEditor.js +298 -0
- package/views/dist/editors/EditorPanel.d.ts +71 -0
- package/views/dist/editors/EditorPanel.js +158 -0
- package/views/dist/editors/LocationEditor.d.ts +33 -0
- package/views/dist/editors/LocationEditor.js +320 -0
- package/views/dist/editors/NameEditor.d.ts +29 -0
- package/views/dist/editors/NameEditor.js +119 -0
- package/views/dist/editors/NumberEditor.d.ts +90 -0
- package/views/dist/editors/NumberEditor.js +126 -0
- package/views/dist/editors/RangeEditor.d.ts +51 -0
- package/views/dist/editors/RangeEditor.js +125 -0
- package/views/dist/editors/RelationEditor.d.ts +52 -0
- package/views/dist/editors/RelationEditor.js +55 -0
- package/views/dist/editors/RelationSetEditor.d.ts +63 -0
- package/views/dist/editors/RelationSetEditor.js +222 -0
- package/views/dist/editors/SelectEditor.d.ts +104 -0
- package/views/dist/editors/SelectEditor.js +154 -0
- package/views/dist/editors/TextEditor.d.ts +61 -0
- package/views/dist/editors/TextEditor.js +102 -0
- package/views/dist/editors/ValueListEditor.d.ts +51 -0
- package/views/dist/editors/ValueListEditor.js +239 -0
- package/views/dist/editors/body-panel.d.ts +11 -0
- package/views/dist/editors/body-panel.js +11 -0
- package/views/dist/editors/body-step.d.ts +12 -0
- package/views/dist/editors/body-step.js +6 -0
- package/views/dist/editors/edit-cores.d.ts +86 -0
- package/views/dist/editors/edit-cores.js +39 -0
- package/views/dist/editors/edit-session.d.ts +113 -0
- package/views/dist/editors/edit-session.js +97 -0
- package/views/dist/editors/escape-rule.d.ts +34 -0
- package/views/dist/editors/escape-rule.js +15 -0
- package/views/dist/editors/inner-escape.d.ts +12 -0
- package/views/dist/editors/inner-escape.js +10 -0
- package/views/dist/editors/keep-inside.d.ts +12 -0
- package/views/dist/editors/keep-inside.js +20 -0
- package/views/dist/editors/leave-scope.d.ts +31 -0
- package/views/dist/editors/leave-scope.js +29 -0
- package/views/dist/editors/link-roles.d.ts +9 -0
- package/views/dist/editors/link-roles.js +19 -0
- package/views/dist/editors/number-body.d.ts +30 -0
- package/views/dist/editors/number-body.js +38 -0
- package/views/dist/editors/number-step.d.ts +39 -0
- package/views/dist/editors/number-step.js +47 -0
- package/views/dist/editors/open-value.d.ts +22 -0
- package/views/dist/editors/open-value.js +37 -0
- package/views/dist/editors/open-values.d.ts +32 -0
- package/views/dist/editors/open-values.js +33 -0
- package/views/dist/editors/option-add-flow.d.ts +66 -0
- package/views/dist/editors/option-add-flow.js +155 -0
- package/views/dist/editors/parts-body.d.ts +68 -0
- package/views/dist/editors/parts-body.js +117 -0
- package/views/dist/editors/picker-slot.d.ts +25 -0
- package/views/dist/editors/picker-slot.js +37 -0
- package/views/dist/editors/relation-kinds.d.ts +7 -0
- package/views/dist/editors/relation-kinds.js +21 -0
- package/views/dist/editors/relation-links-body.d.ts +36 -0
- package/views/dist/editors/relation-links-body.js +22 -0
- package/views/dist/editors/relation-panel.d.ts +69 -0
- package/views/dist/editors/relation-panel.js +40 -0
- package/views/dist/editors/relation-picker.d.ts +63 -0
- package/views/dist/editors/relation-picker.js +58 -0
- package/views/dist/editors/relation-source.d.ts +67 -0
- package/views/dist/editors/relation-source.js +108 -0
- package/views/dist/editors/tab-ends.d.ts +7 -0
- package/views/dist/editors/tab-ends.js +10 -0
- package/views/dist/editors/text-body.d.ts +16 -0
- package/views/dist/editors/text-body.js +30 -0
- package/views/dist/editors/values-body.d.ts +47 -0
- package/views/dist/editors/values-body.js +140 -0
- package/views/dist/field-row/FieldNoteLine.d.ts +14 -0
- package/views/dist/field-row/FieldNoteLine.js +15 -0
- package/views/dist/field-row/FieldRow.d.ts +81 -0
- package/views/dist/field-row/FieldRow.js +232 -0
- package/views/dist/field-row/FieldRowLane.d.ts +19 -0
- package/views/dist/field-row/FieldRowLane.js +21 -0
- package/views/dist/field-row/drawn-text.d.ts +7 -0
- package/views/dist/field-row/drawn-text.js +27 -0
- package/views/dist/field-row/editors/RowChipsEditor.d.ts +11 -0
- package/views/dist/field-row/editors/RowChipsEditor.js +27 -0
- package/views/dist/field-row/editors/RowDateEditor.d.ts +16 -0
- package/views/dist/field-row/editors/RowDateEditor.js +18 -0
- package/views/dist/field-row/editors/RowEditor.d.ts +39 -0
- package/views/dist/field-row/editors/RowEditor.js +66 -0
- package/views/dist/field-row/editors/RowNameEditor.d.ts +7 -0
- package/views/dist/field-row/editors/RowNameEditor.js +23 -0
- package/views/dist/field-row/editors/RowNumberEditor.d.ts +12 -0
- package/views/dist/field-row/editors/RowNumberEditor.js +34 -0
- package/views/dist/field-row/editors/RowPlaceEditor.d.ts +9 -0
- package/views/dist/field-row/editors/RowPlaceEditor.js +20 -0
- package/views/dist/field-row/editors/RowRangeEditor.d.ts +7 -0
- package/views/dist/field-row/editors/RowRangeEditor.js +25 -0
- package/views/dist/field-row/editors/RowRelationEditor.d.ts +20 -0
- package/views/dist/field-row/editors/RowRelationEditor.js +80 -0
- package/views/dist/field-row/editors/RowSelectEditor.d.ts +13 -0
- package/views/dist/field-row/editors/RowSelectEditor.js +26 -0
- package/views/dist/field-row/editors/RowTextEditor.d.ts +15 -0
- package/views/dist/field-row/editors/RowTextEditor.js +25 -0
- package/views/dist/field-row/editors/RowValueListEditor.d.ts +6 -0
- package/views/dist/field-row/editors/RowValueListEditor.js +34 -0
- package/views/dist/field-row/editors/host.d.ts +65 -0
- package/views/dist/field-row/editors/host.js +1 -0
- package/views/dist/field-row/editors/row-frame.d.ts +2 -0
- package/views/dist/field-row/editors/row-frame.js +1 -0
- package/views/dist/field-row/editors/row-session.d.ts +63 -0
- package/views/dist/field-row/editors/row-session.js +102 -0
- package/views/dist/field-row/field-row-button.d.ts +40 -0
- package/views/dist/field-row/field-row-button.js +18 -0
- package/views/dist/field-row/field-row-checkbox.d.ts +9 -0
- package/views/dist/field-row/field-row-checkbox.js +7 -0
- package/views/dist/field-row/index.d.ts +5 -0
- package/views/dist/field-row/index.js +5 -0
- package/views/dist/field-row/row-target.d.ts +20 -0
- package/views/dist/field-row/row-target.js +3 -0
- package/views/dist/field-row/useFieldWrite.d.ts +45 -0
- package/views/dist/field-row/useFieldWrite.js +233 -0
- package/views/dist/field-row/useRowSettlement.d.ts +33 -0
- package/views/dist/field-row/useRowSettlement.js +23 -0
- package/views/dist/fields/binding.d.ts +96 -0
- package/views/dist/fields/binding.js +128 -0
- package/views/dist/fields/currency.d.ts +82 -0
- package/views/dist/fields/currency.js +41 -0
- package/views/dist/fields/denomination.d.ts +42 -0
- package/views/dist/fields/denomination.js +11 -0
- package/views/dist/fields/edit-core-types.d.ts +40 -0
- package/views/dist/fields/edit-core-types.js +29 -0
- package/views/dist/fields/format-knobs.d.ts +34 -0
- package/views/dist/fields/format-knobs.js +36 -0
- package/views/dist/fields/menus.d.ts +30 -0
- package/views/dist/fields/menus.js +1 -0
- package/views/dist/fields/money.d.ts +65 -0
- package/views/dist/fields/money.js +88 -0
- package/views/dist/fields/number-edit.d.ts +17 -0
- package/views/dist/fields/number-edit.js +21 -0
- package/views/dist/fields/option-add.d.ts +25 -0
- package/views/dist/fields/option-add.js +9 -0
- package/views/dist/fields/prepare-write.d.ts +55 -0
- package/views/dist/fields/prepare-write.js +72 -0
- package/views/dist/fields/range-unit.d.ts +7 -0
- package/views/dist/fields/range-unit.js +13 -0
- package/views/dist/fields/relation-source-types.d.ts +66 -0
- package/views/dist/fields/relation-source-types.js +1 -0
- package/views/dist/fields/write-target.d.ts +56 -0
- package/views/dist/fields/write-target.js +10 -0
- package/views/dist/figures.d.ts +9 -0
- package/views/dist/figures.js +1 -0
- package/views/dist/filters/date-filter.d.ts +2 -0
- package/views/dist/filters/date-filter.js +1 -0
- package/views/dist/filters/filter-model.d.ts +181 -0
- package/views/dist/filters/filter-model.js +41 -0
- package/views/dist/filters/filter-tree.d.ts +146 -0
- package/views/dist/filters/filter-tree.js +256 -0
- package/views/dist/filters/number-filter.d.ts +2 -0
- package/views/dist/filters/number-filter.js +1 -0
- package/views/dist/filters/range-filter.d.ts +2 -0
- package/views/dist/filters/range-filter.js +1 -0
- package/views/dist/filters/registry.d.ts +103 -0
- package/views/dist/filters/registry.js +8 -0
- package/views/dist/filters/relation-filter.d.ts +16 -0
- package/views/dist/filters/relation-filter.js +63 -0
- package/views/dist/filters/text-filter.d.ts +2 -0
- package/views/dist/filters/text-filter.js +1 -0
- package/views/dist/grid/chrome/GridAddColumn.d.ts +23 -0
- package/views/dist/grid/chrome/GridAddColumn.js +106 -0
- package/views/dist/grid/chrome/GridAggregateMenu.d.ts +36 -0
- package/views/dist/grid/chrome/GridAggregateMenu.js +60 -0
- package/views/dist/grid/chrome/GridCellEditors.d.ts +81 -0
- package/views/dist/grid/chrome/GridCellEditors.js +156 -0
- package/views/dist/grid/chrome/GridCellOutline.d.ts +53 -0
- package/views/dist/grid/chrome/GridCellOutline.js +36 -0
- package/views/dist/grid/chrome/GridChipsEditor.d.ts +40 -0
- package/views/dist/grid/chrome/GridChipsEditor.js +39 -0
- package/views/dist/grid/chrome/GridColumnColorSection.d.ts +13 -0
- package/views/dist/grid/chrome/GridColumnColorSection.js +40 -0
- package/views/dist/grid/chrome/GridColumnDateSection.d.ts +27 -0
- package/views/dist/grid/chrome/GridColumnDateSection.js +23 -0
- package/views/dist/grid/chrome/GridColumnDurationSection.d.ts +23 -0
- package/views/dist/grid/chrome/GridColumnDurationSection.js +24 -0
- package/views/dist/grid/chrome/GridColumnMenu.d.ts +113 -0
- package/views/dist/grid/chrome/GridColumnMenu.js +149 -0
- package/views/dist/grid/chrome/GridColumnNumberSection.d.ts +29 -0
- package/views/dist/grid/chrome/GridColumnNumberSection.js +27 -0
- package/views/dist/grid/chrome/GridColumnPercentSection.d.ts +16 -0
- package/views/dist/grid/chrome/GridColumnPercentSection.js +16 -0
- package/views/dist/grid/chrome/GridColumnSortSection.d.ts +38 -0
- package/views/dist/grid/chrome/GridColumnSortSection.js +33 -0
- package/views/dist/grid/chrome/GridDateEditor.d.ts +41 -0
- package/views/dist/grid/chrome/GridDateEditor.js +26 -0
- package/views/dist/grid/chrome/GridFlyout.d.ts +44 -0
- package/views/dist/grid/chrome/GridFlyout.js +80 -0
- package/views/dist/grid/chrome/GridFooter.d.ts +40 -0
- package/views/dist/grid/chrome/GridFooter.js +55 -0
- package/views/dist/grid/chrome/GridGroupMenu.d.ts +47 -0
- package/views/dist/grid/chrome/GridGroupMenu.js +101 -0
- package/views/dist/grid/chrome/GridHeader.d.ts +83 -0
- package/views/dist/grid/chrome/GridHeader.js +58 -0
- package/views/dist/grid/chrome/GridLongTextEditor.d.ts +55 -0
- package/views/dist/grid/chrome/GridLongTextEditor.js +73 -0
- package/views/dist/grid/chrome/GridMenuRow.d.ts +15 -0
- package/views/dist/grid/chrome/GridMenuRow.js +15 -0
- package/views/dist/grid/chrome/GridNameEditor.d.ts +24 -0
- package/views/dist/grid/chrome/GridNameEditor.js +25 -0
- package/views/dist/grid/chrome/GridNumberEditor.d.ts +56 -0
- package/views/dist/grid/chrome/GridNumberEditor.js +42 -0
- package/views/dist/grid/chrome/GridPager.d.ts +7 -0
- package/views/dist/grid/chrome/GridPager.js +34 -0
- package/views/dist/grid/chrome/GridPlaceEditor.d.ts +29 -0
- package/views/dist/grid/chrome/GridPlaceEditor.js +26 -0
- package/views/dist/grid/chrome/GridRangeEditor.d.ts +35 -0
- package/views/dist/grid/chrome/GridRangeEditor.js +32 -0
- package/views/dist/grid/chrome/GridRelationEditor.d.ts +47 -0
- package/views/dist/grid/chrome/GridRelationEditor.js +99 -0
- package/views/dist/grid/chrome/GridResizeHandle.d.ts +19 -0
- package/views/dist/grid/chrome/GridResizeHandle.js +19 -0
- package/views/dist/grid/chrome/GridRow.d.ts +32 -0
- package/views/dist/grid/chrome/GridRow.js +171 -0
- package/views/dist/grid/chrome/GridRowActions.d.ts +37 -0
- package/views/dist/grid/chrome/GridRowActions.js +36 -0
- package/views/dist/grid/chrome/GridRowCells.d.ts +4 -0
- package/views/dist/grid/chrome/GridRowCells.js +157 -0
- package/views/dist/grid/chrome/GridRowGlyph.d.ts +14 -0
- package/views/dist/grid/chrome/GridRowGlyph.js +18 -0
- package/views/dist/grid/chrome/GridSelectEditor.d.ts +35 -0
- package/views/dist/grid/chrome/GridSelectEditor.js +58 -0
- package/views/dist/grid/chrome/GridStructure.d.ts +64 -0
- package/views/dist/grid/chrome/GridStructure.js +87 -0
- package/views/dist/grid/chrome/GridTable.d.ts +4 -0
- package/views/dist/grid/chrome/GridTable.js +394 -0
- package/views/dist/grid/chrome/GridTableSurface.d.ts +80 -0
- package/views/dist/grid/chrome/GridTableSurface.js +39 -0
- package/views/dist/grid/chrome/GridTextEditor.d.ts +49 -0
- package/views/dist/grid/chrome/GridTextEditor.js +51 -0
- package/views/dist/grid/chrome/GridValueListEditor.d.ts +38 -0
- package/views/dist/grid/chrome/GridValueListEditor.js +29 -0
- package/views/dist/grid/chrome/StuckMarker.d.ts +26 -0
- package/views/dist/grid/chrome/StuckMarker.js +44 -0
- package/views/dist/grid/chrome/cell-clipboard.d.ts +10 -0
- package/views/dist/grid/chrome/cell-clipboard.js +28 -0
- package/views/dist/grid/chrome/cell-cut-off.d.ts +11 -0
- package/views/dist/grid/chrome/cell-cut-off.js +20 -0
- package/views/dist/grid/chrome/cells.d.ts +23 -0
- package/views/dist/grid/chrome/cells.js +19 -0
- package/views/dist/grid/chrome/checks.d.ts +56 -0
- package/views/dist/grid/chrome/checks.js +48 -0
- package/views/dist/grid/chrome/column-glyph.d.ts +16 -0
- package/views/dist/grid/chrome/column-glyph.js +52 -0
- package/views/dist/grid/chrome/editors.d.ts +9 -0
- package/views/dist/grid/chrome/editors.js +10 -0
- package/views/dist/grid/chrome/grid-add-column-items.d.ts +13 -0
- package/views/dist/grid/chrome/grid-add-column-items.js +47 -0
- package/views/dist/grid/chrome/grid-body-place.d.ts +4 -0
- package/views/dist/grid/chrome/grid-body-place.js +15 -0
- package/views/dist/grid/chrome/grid-button.d.ts +32 -0
- package/views/dist/grid/chrome/grid-button.js +12 -0
- package/views/dist/grid/chrome/grid-cell-classes.d.ts +96 -0
- package/views/dist/grid/chrome/grid-cell-classes.js +70 -0
- package/views/dist/grid/chrome/grid-cell-link.d.ts +13 -0
- package/views/dist/grid/chrome/grid-cell-link.js +9 -0
- package/views/dist/grid/chrome/grid-column-menu-items.d.ts +78 -0
- package/views/dist/grid/chrome/grid-column-menu-items.js +292 -0
- package/views/dist/grid/chrome/grid-columns-template.d.ts +45 -0
- package/views/dist/grid/chrome/grid-columns-template.js +18 -0
- package/views/dist/grid/chrome/grid-edit-escape.d.ts +4 -0
- package/views/dist/grid/chrome/grid-edit-escape.js +12 -0
- package/views/dist/grid/chrome/grid-edit-session.d.ts +67 -0
- package/views/dist/grid/chrome/grid-edit-session.js +141 -0
- package/views/dist/grid/chrome/grid-editor-layer.d.ts +7 -0
- package/views/dist/grid/chrome/grid-editor-layer.js +1 -0
- package/views/dist/grid/chrome/grid-figure-value.d.ts +25 -0
- package/views/dist/grid/chrome/grid-figure-value.js +40 -0
- package/views/dist/grid/chrome/grid-fitted-box.d.ts +15 -0
- package/views/dist/grid/chrome/grid-fitted-box.js +26 -0
- package/views/dist/grid/chrome/grid-group-menu-items.d.ts +38 -0
- package/views/dist/grid/chrome/grid-group-menu-items.js +92 -0
- package/views/dist/grid/chrome/grid-group-menu-parts.d.ts +31 -0
- package/views/dist/grid/chrome/grid-group-menu-parts.js +21 -0
- package/views/dist/grid/chrome/grid-hover.d.ts +74 -0
- package/views/dist/grid/chrome/grid-hover.js +150 -0
- package/views/dist/grid/chrome/grid-lab.d.ts +7 -0
- package/views/dist/grid/chrome/grid-lab.js +7 -0
- package/views/dist/grid/chrome/grid-menu-focus.d.ts +65 -0
- package/views/dist/grid/chrome/grid-menu-focus.js +160 -0
- package/views/dist/grid/chrome/grid-menu-search.d.ts +7 -0
- package/views/dist/grid/chrome/grid-menu-search.js +7 -0
- package/views/dist/grid/chrome/grid-pages.d.ts +15 -0
- package/views/dist/grid/chrome/grid-pages.js +9 -0
- package/views/dist/grid/chrome/grid-row-menu-items.d.ts +49 -0
- package/views/dist/grid/chrome/grid-row-menu-items.js +159 -0
- package/views/dist/grid/chrome/grid-row-menu-key.d.ts +15 -0
- package/views/dist/grid/chrome/grid-row-menu-key.js +36 -0
- package/views/dist/grid/chrome/grid-row-props.d.ts +155 -0
- package/views/dist/grid/chrome/grid-row-props.js +1 -0
- package/views/dist/grid/chrome/grid-row-window.d.ts +78 -0
- package/views/dist/grid/chrome/grid-row-window.js +280 -0
- package/views/dist/grid/chrome/grid-rows-menu.d.ts +42 -0
- package/views/dist/grid/chrome/grid-rows-menu.js +85 -0
- package/views/dist/grid/chrome/grid-scroll-owner.d.ts +38 -0
- package/views/dist/grid/chrome/grid-scroll-owner.js +75 -0
- package/views/dist/grid/chrome/grid-styles.d.ts +50 -0
- package/views/dist/grid/chrome/grid-styles.js +11 -0
- package/views/dist/grid/chrome/grid-table-props.d.ts +310 -0
- package/views/dist/grid/chrome/grid-table-props.js +1 -0
- package/views/dist/grid/chrome/grid-wait.d.ts +22 -0
- package/views/dist/grid/chrome/grid-wait.js +4 -0
- package/views/dist/grid/chrome/useBarRoom.d.ts +19 -0
- package/views/dist/grid/chrome/useBarRoom.js +96 -0
- package/views/dist/grid/chrome/useGridBandFigures.d.ts +26 -0
- package/views/dist/grid/chrome/useGridBandFigures.js +50 -0
- package/views/dist/grid/chrome/useGridBatchApi.d.ts +34 -0
- package/views/dist/grid/chrome/useGridBatchApi.js +36 -0
- package/views/dist/grid/chrome/useGridBoxes.d.ts +22 -0
- package/views/dist/grid/chrome/useGridBoxes.js +22 -0
- package/views/dist/grid/chrome/useGridCellPick.d.ts +30 -0
- package/views/dist/grid/chrome/useGridCellPick.js +77 -0
- package/views/dist/grid/chrome/useGridColumnLayout.d.ts +32 -0
- package/views/dist/grid/chrome/useGridColumnLayout.js +251 -0
- package/views/dist/grid/chrome/useGridFocus.d.ts +48 -0
- package/views/dist/grid/chrome/useGridFocus.js +129 -0
- package/views/dist/grid/chrome/useGridHeaderDrag.d.ts +20 -0
- package/views/dist/grid/chrome/useGridHeaderDrag.js +37 -0
- package/views/dist/grid/chrome/useGridKeyboard.d.ts +65 -0
- package/views/dist/grid/chrome/useGridKeyboard.js +463 -0
- package/views/dist/grid/chrome/useGridLongPress.d.ts +30 -0
- package/views/dist/grid/chrome/useGridLongPress.js +98 -0
- package/views/dist/grid/chrome/useGridPartColumns.d.ts +5 -0
- package/views/dist/grid/chrome/useGridPartColumns.js +9 -0
- package/views/dist/grid/chrome/useGridPendingReconciliation.d.ts +12 -0
- package/views/dist/grid/chrome/useGridPendingReconciliation.js +32 -0
- package/views/dist/grid/chrome/useGridRailReveal.d.ts +57 -0
- package/views/dist/grid/chrome/useGridRailReveal.js +67 -0
- package/views/dist/grid/chrome/useGridRangeActions.d.ts +51 -0
- package/views/dist/grid/chrome/useGridRangeActions.js +199 -0
- package/views/dist/grid/chrome/useGridRangeGestures.d.ts +33 -0
- package/views/dist/grid/chrome/useGridRangeGestures.js +241 -0
- package/views/dist/grid/chrome/useGridRecorder.d.ts +16 -0
- package/views/dist/grid/chrome/useGridRecorder.js +144 -0
- package/views/dist/grid/chrome/useGridRowOpener.d.ts +41 -0
- package/views/dist/grid/chrome/useGridRowOpener.js +83 -0
- package/views/dist/grid/chrome/useGridScaleStyles.d.ts +3 -0
- package/views/dist/grid/chrome/useGridScaleStyles.js +28 -0
- package/views/dist/grid/chrome/useGridScrollArea.d.ts +47 -0
- package/views/dist/grid/chrome/useGridScrollArea.js +120 -0
- package/views/dist/grid/chrome/useGridTableInteractionModel.d.ts +81 -0
- package/views/dist/grid/chrome/useGridTableInteractionModel.js +336 -0
- package/views/dist/grid/chrome/useGridTableSelection.d.ts +31 -0
- package/views/dist/grid/chrome/useGridTableSelection.js +55 -0
- package/views/dist/grid/chrome/useHeaderDragReorder.d.ts +21 -0
- package/views/dist/grid/chrome/useHeaderDragReorder.js +218 -0
- package/views/dist/grid/core/clipboard-model.d.ts +123 -0
- package/views/dist/grid/core/clipboard-model.js +388 -0
- package/views/dist/grid/core/column-values.d.ts +27 -0
- package/views/dist/grid/core/column-values.js +76 -0
- package/views/dist/grid/core/commit-model.d.ts +48 -0
- package/views/dist/grid/core/commit-model.js +3 -0
- package/views/dist/grid/core/coordinates.d.ts +48 -0
- package/views/dist/grid/core/coordinates.js +27 -0
- package/views/dist/grid/core/edge-scroll.d.ts +21 -0
- package/views/dist/grid/core/edge-scroll.js +23 -0
- package/views/dist/grid/core/edit-values.d.ts +9 -0
- package/views/dist/grid/core/edit-values.js +1 -0
- package/views/dist/grid/core/editing-controller.d.ts +146 -0
- package/views/dist/grid/core/editing-controller.js +563 -0
- package/views/dist/grid/core/editing-model.d.ts +113 -0
- package/views/dist/grid/core/editing-model.js +168 -0
- package/views/dist/grid/core/flat-rows.d.ts +35 -0
- package/views/dist/grid/core/flat-rows.js +20 -0
- package/views/dist/grid/core/grid-aria.d.ts +31 -0
- package/views/dist/grid/core/grid-aria.js +41 -0
- package/views/dist/grid/core/grid-focus.d.ts +60 -0
- package/views/dist/grid/core/grid-focus.js +171 -0
- package/views/dist/grid/core/grid-recorder.d.ts +111 -0
- package/views/dist/grid/core/grid-recorder.js +223 -0
- package/views/dist/grid/core/grid-scale.d.ts +14 -0
- package/views/dist/grid/core/grid-scale.js +8 -0
- package/views/dist/grid/core/nav.d.ts +94 -0
- package/views/dist/grid/core/nav.js +92 -0
- package/views/dist/grid/core/part-edits.d.ts +18 -0
- package/views/dist/grid/core/part-edits.js +48 -0
- package/views/dist/grid/core/pending-reconciliation.d.ts +53 -0
- package/views/dist/grid/core/pending-reconciliation.js +60 -0
- package/views/dist/grid/core/range-model.d.ts +25 -0
- package/views/dist/grid/core/range-model.js +59 -0
- package/views/dist/grid/core/refusal-sentence.d.ts +3 -0
- package/views/dist/grid/core/refusal-sentence.js +15 -0
- package/views/dist/grid/core/row-opened-from.d.ts +21 -0
- package/views/dist/grid/core/row-opened-from.js +11 -0
- package/views/dist/grid/core/row-window.d.ts +40 -0
- package/views/dist/grid/core/row-window.js +43 -0
- package/views/dist/grid/core/spreadsheet-operations.d.ts +101 -0
- package/views/dist/grid/core/spreadsheet-operations.js +282 -0
- package/views/dist/grid/core/useGridEditing.d.ts +72 -0
- package/views/dist/grid/core/useGridEditing.js +105 -0
- package/views/dist/grid/core/useGridRange.d.ts +22 -0
- package/views/dist/grid/core/useGridRange.js +27 -0
- package/views/dist/grid/core/value-equality.d.ts +72 -0
- package/views/dist/grid/core/value-equality.js +104 -0
- package/views/dist/grid/core/write-states.d.ts +20 -0
- package/views/dist/grid/core/write-states.js +21 -0
- package/views/dist/grid/grid-format-props.d.ts +26 -0
- package/views/dist/grid/grid-format-props.js +65 -0
- package/views/dist/grid/index.d.ts +23 -0
- package/views/dist/grid/index.js +7 -0
- package/views/dist/grid/useGridTablePrefs.d.ts +48 -0
- package/views/dist/grid/useGridTablePrefs.js +47 -0
- package/views/dist/grid/useGridTableSettings.d.ts +60 -0
- package/views/dist/grid/useGridTableSettings.js +61 -0
- package/views/dist/grid-lab.d.ts +18 -0
- package/views/dist/grid-lab.js +16 -0
- package/views/dist/grouping/sort-groups.d.ts +17 -0
- package/views/dist/grouping/sort-groups.js +33 -0
- package/views/dist/grouping/types.d.ts +10 -0
- package/views/dist/grouping/types.js +1 -0
- package/views/dist/index.d.ts +31 -0
- package/views/dist/index.js +30 -0
- package/views/dist/internal/chip.d.ts +4 -0
- package/views/dist/internal/chip.js +3 -0
- package/views/dist/internal/count.d.ts +3 -0
- package/views/dist/internal/count.js +3 -0
- package/views/dist/internal/cx.d.ts +3 -0
- package/views/dist/internal/cx.js +3 -0
- package/views/dist/internal/reset.d.ts +9 -0
- package/views/dist/internal/reset.js +1 -0
- package/views/dist/internal/use-idle-write.d.ts +1 -0
- package/views/dist/internal/use-idle-write.js +13 -0
- package/views/dist/internal/viewport.d.ts +3 -0
- package/views/dist/internal/viewport.js +15 -0
- package/views/dist/internal/zone-clock.d.ts +20 -0
- package/views/dist/internal/zone-clock.js +77 -0
- package/views/dist/model/aggregates.d.ts +61 -0
- package/views/dist/model/aggregates.js +134 -0
- package/views/dist/model/body-frame.d.ts +34 -0
- package/views/dist/model/body-frame.js +15 -0
- package/views/dist/model/card-density.d.ts +8 -0
- package/views/dist/model/card-density.js +10 -0
- package/views/dist/model/card-layout.d.ts +85 -0
- package/views/dist/model/card-layout.js +90 -0
- package/views/dist/model/column-capabilities.d.ts +193 -0
- package/views/dist/model/column-capabilities.js +280 -0
- package/views/dist/model/column-filters.d.ts +109 -0
- package/views/dist/model/column-filters.js +348 -0
- package/views/dist/model/column-format.d.ts +103 -0
- package/views/dist/model/column-format.js +1 -0
- package/views/dist/model/column-from.d.ts +28 -0
- package/views/dist/model/column-from.js +165 -0
- package/views/dist/model/column-inspect.d.ts +28 -0
- package/views/dist/model/column-inspect.js +17 -0
- package/views/dist/model/column-knobs.d.ts +20 -0
- package/views/dist/model/column-knobs.js +16 -0
- package/views/dist/model/column-mark.d.ts +13 -0
- package/views/dist/model/column-mark.js +10 -0
- package/views/dist/model/column-money.d.ts +13 -0
- package/views/dist/model/column-money.js +27 -0
- package/views/dist/model/column-order.d.ts +36 -0
- package/views/dist/model/column-order.js +68 -0
- package/views/dist/model/column-schema.d.ts +355 -0
- package/views/dist/model/column-schema.js +1 -0
- package/views/dist/model/column-sort.d.ts +28 -0
- package/views/dist/model/column-sort.js +25 -0
- package/views/dist/model/column-state.d.ts +72 -0
- package/views/dist/model/column-state.js +92 -0
- package/views/dist/model/column-types.d.ts +97 -0
- package/views/dist/model/column-types.js +50 -0
- package/views/dist/model/column-warnings.d.ts +44 -0
- package/views/dist/model/column-warnings.js +24 -0
- package/views/dist/model/density.d.ts +3 -0
- package/views/dist/model/density.js +13 -0
- package/views/dist/model/field-type-of.d.ts +21 -0
- package/views/dist/model/field-type-of.js +11 -0
- package/views/dist/model/filter-capabilities.d.ts +1 -0
- package/views/dist/model/filter-capabilities.js +1 -0
- package/views/dist/model/index.d.ts +38 -0
- package/views/dist/model/index.js +20 -0
- package/views/dist/model/one-value.d.ts +6 -0
- package/views/dist/model/one-value.js +5 -0
- package/views/dist/model/part-columns.d.ts +17 -0
- package/views/dist/model/part-columns.js +69 -0
- package/views/dist/model/part-rows.d.ts +21 -0
- package/views/dist/model/part-rows.js +35 -0
- package/views/dist/model/part-write.d.ts +11 -0
- package/views/dist/model/part-write.js +52 -0
- package/views/dist/model/place-parts.d.ts +6 -0
- package/views/dist/model/place-parts.js +14 -0
- package/views/dist/model/preferences.d.ts +131 -0
- package/views/dist/model/preferences.js +67 -0
- package/views/dist/model/prefs-buckets.d.ts +145 -0
- package/views/dist/model/prefs-buckets.js +68 -0
- package/views/dist/model/relation-filters.d.ts +64 -0
- package/views/dist/model/relation-filters.js +93 -0
- package/views/dist/model/render-count.d.ts +8 -0
- package/views/dist/model/render-count.js +35 -0
- package/views/dist/model/row-icon.d.ts +29 -0
- package/views/dist/model/row-icon.js +5 -0
- package/views/dist/model/settings-columns.d.ts +34 -0
- package/views/dist/model/settings-columns.js +146 -0
- package/views/dist/model/settings-look.d.ts +17 -0
- package/views/dist/model/settings-look.js +23 -0
- package/views/dist/model/view-rules.d.ts +92 -0
- package/views/dist/model/view-rules.js +300 -0
- package/views/dist/panels/availability.d.ts +26 -0
- package/views/dist/panels/availability.js +28 -0
- package/views/dist/panels/customize-body.d.ts +45 -0
- package/views/dist/panels/customize-body.js +292 -0
- package/views/dist/panels/filter/DateFilterBody.d.ts +44 -0
- package/views/dist/panels/filter/DateFilterBody.js +84 -0
- package/views/dist/panels/filter/DateFilterCalendar.d.ts +19 -0
- package/views/dist/panels/filter/DateFilterCalendar.js +37 -0
- package/views/dist/panels/filter/DateFilterInput.d.ts +16 -0
- package/views/dist/panels/filter/DateFilterInput.js +36 -0
- package/views/dist/panels/filter/FilterIcon.d.ts +7 -0
- package/views/dist/panels/filter/FilterIcon.js +15 -0
- package/views/dist/panels/filter/MenuSelect.d.ts +12 -0
- package/views/dist/panels/filter/MenuSelect.js +50 -0
- package/views/dist/panels/filter/NumberFilterBody.d.ts +21 -0
- package/views/dist/panels/filter/NumberFilterBody.js +75 -0
- package/views/dist/panels/filter/RangeFilterBody.d.ts +19 -0
- package/views/dist/panels/filter/RangeFilterBody.js +78 -0
- package/views/dist/panels/filter/RelationFilterBody.d.ts +17 -0
- package/views/dist/panels/filter/RelationFilterBody.js +20 -0
- package/views/dist/panels/filter/TextFilterBody.d.ts +31 -0
- package/views/dist/panels/filter/TextFilterBody.js +43 -0
- package/views/dist/panels/filter/TimeScopeDetail.d.ts +6 -0
- package/views/dist/panels/filter/TimeScopeDetail.js +47 -0
- package/views/dist/panels/filter/details.d.ts +21 -0
- package/views/dist/panels/filter/details.js +100 -0
- package/views/dist/panels/filter/filter-list.d.ts +23 -0
- package/views/dist/panels/filter/filter-list.js +38 -0
- package/views/dist/panels/group-sort.d.ts +24 -0
- package/views/dist/panels/group-sort.js +58 -0
- package/views/dist/panels/index.d.ts +31 -0
- package/views/dist/panels/index.js +22 -0
- package/views/dist/panels/labels.d.ts +37 -0
- package/views/dist/panels/labels.js +166 -0
- package/views/dist/panels/model.d.ts +429 -0
- package/views/dist/panels/model.js +95 -0
- package/views/dist/panels/panel-button.d.ts +50 -0
- package/views/dist/panels/panel-button.js +21 -0
- package/views/dist/panels/quick/model.d.ts +102 -0
- package/views/dist/panels/quick/model.js +102 -0
- package/views/dist/panels/react/GroupBucketsList.d.ts +16 -0
- package/views/dist/panels/react/GroupBucketsList.js +44 -0
- package/views/dist/panels/react/LayoutColumnsList.d.ts +24 -0
- package/views/dist/panels/react/LayoutColumnsList.js +101 -0
- package/views/dist/panels/react/PopoverColumnDetail.d.ts +11 -0
- package/views/dist/panels/react/PopoverColumnDetail.js +24 -0
- package/views/dist/panels/react/chrome.d.ts +20 -0
- package/views/dist/panels/react/chrome.js +9 -0
- package/views/dist/panels/react/column-refusals.d.ts +7 -0
- package/views/dist/panels/react/column-refusals.js +14 -0
- package/views/dist/panels/react/customize-body.d.ts +15 -0
- package/views/dist/panels/react/customize-body.js +63 -0
- package/views/dist/panels/react/customize.d.ts +33 -0
- package/views/dist/panels/react/customize.js +113 -0
- package/views/dist/panels/react/drag-kit.d.ts +55 -0
- package/views/dist/panels/react/drag-kit.js +89 -0
- package/views/dist/panels/react/drag-load.d.ts +8 -0
- package/views/dist/panels/react/drag-load.js +24 -0
- package/views/dist/panels/react/drag.d.ts +2 -0
- package/views/dist/panels/react/drag.js +5 -0
- package/views/dist/panels/react/field-editor.d.ts +10 -0
- package/views/dist/panels/react/field-editor.js +1 -0
- package/views/dist/panels/react/filter/FilterEditor.d.ts +24 -0
- package/views/dist/panels/react/filter/FilterEditor.js +344 -0
- package/views/dist/panels/react/filter/FilterFieldList.d.ts +15 -0
- package/views/dist/panels/react/filter/FilterFieldList.js +57 -0
- package/views/dist/panels/react/filter/FilterValueBody.d.ts +5 -0
- package/views/dist/panels/react/filter/FilterValueBody.js +22 -0
- package/views/dist/panels/react/filter/PhoneFilterEditor.d.ts +22 -0
- package/views/dist/panels/react/filter/PhoneFilterEditor.js +186 -0
- package/views/dist/panels/react/filter/editor-ctx.d.ts +98 -0
- package/views/dist/panels/react/filter/editor-ctx.js +131 -0
- package/views/dist/panels/react/filter/filter-body.d.ts +19 -0
- package/views/dist/panels/react/filter/filter-body.js +72 -0
- package/views/dist/panels/react/filter/filter-part-body.d.ts +20 -0
- package/views/dist/panels/react/filter/filter-part-body.js +23 -0
- package/views/dist/panels/react/filter/rule-writes.d.ts +56 -0
- package/views/dist/panels/react/filter/rule-writes.js +152 -0
- package/views/dist/panels/react/filter-panel.d.ts +18 -0
- package/views/dist/panels/react/filter-panel.js +48 -0
- package/views/dist/panels/react/layout-detail.d.ts +4 -0
- package/views/dist/panels/react/layout-detail.js +29 -0
- package/views/dist/panels/react/order-details.d.ts +32 -0
- package/views/dist/panels/react/order-details.js +89 -0
- package/views/dist/panels/react/panel-header.d.ts +10 -0
- package/views/dist/panels/react/panel-header.js +20 -0
- package/views/dist/panels/react/panel-sheet.d.ts +23 -0
- package/views/dist/panels/react/panel-sheet.js +24 -0
- package/views/dist/panels/react/popover.d.ts +71 -0
- package/views/dist/panels/react/popover.js +47 -0
- package/views/dist/panels/react/quick/QuickFiltersPanel.d.ts +12 -0
- package/views/dist/panels/react/quick/QuickFiltersPanel.js +148 -0
- package/views/dist/panels/react/quick/QuickFiltersReminder.d.ts +13 -0
- package/views/dist/panels/react/quick/QuickFiltersReminder.js +46 -0
- package/views/dist/panels/react/root-list.d.ts +6 -0
- package/views/dist/panels/react/root-list.js +31 -0
- package/views/dist/panels/react/sort/SortEditor.d.ts +24 -0
- package/views/dist/panels/react/sort/SortEditor.js +290 -0
- package/views/dist/panels/react/sort/SortFieldList.d.ts +12 -0
- package/views/dist/panels/react/sort/SortFieldList.js +34 -0
- package/views/dist/panels/react/sort/use-sort-drag.d.ts +17 -0
- package/views/dist/panels/react/sort/use-sort-drag.js +39 -0
- package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +62 -0
- package/views/dist/panels/react/toolbar/ReadyToolbar.js +240 -0
- package/views/dist/panels/react/toolbar/Toolbar.d.ts +30 -0
- package/views/dist/panels/react/toolbar/Toolbar.js +113 -0
- package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.d.ts +25 -0
- package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.js +85 -0
- package/views/dist/panels/react/toolbar/ToolbarAsideFilter.d.ts +20 -0
- package/views/dist/panels/react/toolbar/ToolbarAsideFilter.js +78 -0
- package/views/dist/panels/react/toolbar/ToolbarBarFilter.d.ts +21 -0
- package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +126 -0
- package/views/dist/panels/react/toolbar/ToolbarButton.d.ts +5 -0
- package/views/dist/panels/react/toolbar/ToolbarButton.js +9 -0
- package/views/dist/panels/react/toolbar/ToolbarFilter.d.ts +28 -0
- package/views/dist/panels/react/toolbar/ToolbarFilter.js +42 -0
- package/views/dist/panels/react/toolbar/ToolbarFilterSheet.d.ts +12 -0
- package/views/dist/panels/react/toolbar/ToolbarFilterSheet.js +30 -0
- package/views/dist/panels/react/toolbar/ToolbarFilters.d.ts +19 -0
- package/views/dist/panels/react/toolbar/ToolbarFilters.js +281 -0
- package/views/dist/panels/react/toolbar/ToolbarNew.d.ts +12 -0
- package/views/dist/panels/react/toolbar/ToolbarNew.js +31 -0
- package/views/dist/panels/react/toolbar/ToolbarOptions.d.ts +29 -0
- package/views/dist/panels/react/toolbar/ToolbarOptions.js +33 -0
- package/views/dist/panels/react/toolbar/ToolbarQuickFilters.d.ts +14 -0
- package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +16 -0
- package/views/dist/panels/react/toolbar/ToolbarSave.d.ts +8 -0
- package/views/dist/panels/react/toolbar/ToolbarSave.js +42 -0
- package/views/dist/panels/react/toolbar/ToolbarSearch.d.ts +9 -0
- package/views/dist/panels/react/toolbar/ToolbarSearch.js +84 -0
- package/views/dist/panels/react/toolbar/ToolbarSort.d.ts +14 -0
- package/views/dist/panels/react/toolbar/ToolbarSort.js +29 -0
- package/views/dist/panels/react/toolbar/ToolbarSortPill.d.ts +18 -0
- package/views/dist/panels/react/toolbar/ToolbarSortPill.js +81 -0
- package/views/dist/panels/react/toolbar/ToolbarViews.d.ts +13 -0
- package/views/dist/panels/react/toolbar/ToolbarViews.js +29 -0
- package/views/dist/panels/react/toolbar/bar-writes.d.ts +31 -0
- package/views/dist/panels/react/toolbar/bar-writes.js +82 -0
- package/views/dist/panels/react/toolbar/context.d.ts +83 -0
- package/views/dist/panels/react/toolbar/context.js +74 -0
- package/views/dist/panels/react/toolbar/panel-part.d.ts +54 -0
- package/views/dist/panels/react/toolbar/panel-part.js +49 -0
- package/views/dist/panels/react/toolbar/panel-state.d.ts +9 -0
- package/views/dist/panels/react/toolbar/panel-state.js +12 -0
- package/views/dist/panels/react/toolbar/use-box-narrow.d.ts +2 -0
- package/views/dist/panels/react/toolbar/use-box-narrow.js +18 -0
- package/views/dist/panels/react/toolbar/use-give-way.d.ts +4 -0
- package/views/dist/panels/react/toolbar/use-give-way.js +110 -0
- package/views/dist/panels/react/toolbar/use-list-settings-state.d.ts +10 -0
- package/views/dist/panels/react/toolbar/use-list-settings-state.js +10 -0
- package/views/dist/panels/react/view-actions.d.ts +4 -0
- package/views/dist/panels/react/view-actions.js +47 -0
- package/views/dist/panels/react/view-footer.d.ts +20 -0
- package/views/dist/panels/react/view-footer.js +41 -0
- package/views/dist/panels/react/views-row/FoldingViewRow.d.ts +5 -0
- package/views/dist/panels/react/views-row/FoldingViewRow.js +137 -0
- package/views/dist/panels/react/views-row/HScrollRow.d.ts +7 -0
- package/views/dist/panels/react/views-row/HScrollRow.js +42 -0
- package/views/dist/panels/react/views-row/PillGroup.d.ts +30 -0
- package/views/dist/panels/react/views-row/PillGroup.js +85 -0
- package/views/dist/panels/react/views-row/ViewAxes.d.ts +9 -0
- package/views/dist/panels/react/views-row/ViewAxes.js +16 -0
- package/views/dist/panels/react/views-row/ViewCreatePill.d.ts +7 -0
- package/views/dist/panels/react/views-row/ViewCreatePill.js +28 -0
- package/views/dist/panels/react/views-row/ViewPicker.d.ts +5 -0
- package/views/dist/panels/react/views-row/ViewPicker.js +112 -0
- package/views/dist/panels/react/views-row/ViewPickerRow.d.ts +7 -0
- package/views/dist/panels/react/views-row/ViewPickerRow.js +47 -0
- package/views/dist/panels/react/views-row/ViewTabs.d.ts +31 -0
- package/views/dist/panels/react/views-row/ViewTabs.js +29 -0
- package/views/dist/panels/react/views-row/in-frame.d.ts +8 -0
- package/views/dist/panels/react/views-row/in-frame.js +9 -0
- package/views/dist/panels/react/views-row/menu-classes.d.ts +6 -0
- package/views/dist/panels/react/views-row/menu-classes.js +3 -0
- package/views/dist/panels/react/views-row/use-anchored-toggle.d.ts +19 -0
- package/views/dist/panels/react/views-row/use-anchored-toggle.js +31 -0
- package/views/dist/panels/react.d.ts +67 -0
- package/views/dist/panels/react.js +58 -0
- package/views/dist/panels/settings/axes.d.ts +28 -0
- package/views/dist/panels/settings/axes.js +71 -0
- package/views/dist/panels/settings/filter-groups.d.ts +58 -0
- package/views/dist/panels/settings/filter-groups.js +305 -0
- package/views/dist/panels/settings/filters.d.ts +20 -0
- package/views/dist/panels/settings/filters.js +128 -0
- package/views/dist/panels/settings/group-buckets.d.ts +24 -0
- package/views/dist/panels/settings/group-buckets.js +69 -0
- package/views/dist/panels/settings/input.d.ts +84 -0
- package/views/dist/panels/settings/input.js +1 -0
- package/views/dist/panels/settings/layout.d.ts +5 -0
- package/views/dist/panels/settings/layout.js +259 -0
- package/views/dist/panels/settings/order.d.ts +21 -0
- package/views/dist/panels/settings/order.js +227 -0
- package/views/dist/panels/settings/settings-panels.d.ts +21 -0
- package/views/dist/panels/settings/settings-panels.js +33 -0
- package/views/dist/panels/settings/sort-keys.d.ts +25 -0
- package/views/dist/panels/settings/sort-keys.js +74 -0
- package/views/dist/panels/settings/sorts.d.ts +33 -0
- package/views/dist/panels/settings/sorts.js +135 -0
- package/views/dist/panels/sort-body-options.d.ts +4 -0
- package/views/dist/panels/sort-body-options.js +10 -0
- package/views/dist/panels/toolbar/clear.d.ts +9 -0
- package/views/dist/panels/toolbar/clear.js +33 -0
- package/views/dist/panels/toolbar/counts.d.ts +21 -0
- package/views/dist/panels/toolbar/counts.js +29 -0
- package/views/dist/panels/toolbar/edit-view.d.ts +5 -0
- package/views/dist/panels/toolbar/edit-view.js +18 -0
- package/views/dist/panels/toolbar/filter-words.d.ts +42 -0
- package/views/dist/panels/toolbar/filter-words.js +145 -0
- package/views/dist/panels/toolbar/model.d.ts +74 -0
- package/views/dist/panels/toolbar/model.js +110 -0
- package/views/dist/panels/use-filter-opened.d.ts +8 -0
- package/views/dist/panels/use-filter-opened.js +11 -0
- package/views/dist/panels/view-state.d.ts +38 -0
- package/views/dist/panels/view-state.js +1 -0
- package/views/dist/panels/views-row/model.d.ts +141 -0
- package/views/dist/panels/views-row/model.js +24 -0
- package/views/dist/provider/ViewsProvider.d.ts +103 -0
- package/views/dist/provider/ViewsProvider.js +75 -0
- package/views/dist/provider/components.d.ts +1375 -0
- package/views/dist/provider/components.js +5 -0
- package/views/dist/provider/context.d.ts +58 -0
- package/views/dist/provider/context.js +10 -0
- package/views/dist/provider/desktop.d.ts +12 -0
- package/views/dist/provider/desktop.js +25 -0
- package/views/dist/provider/icons.d.ts +6 -0
- package/views/dist/provider/icons.js +1 -0
- package/views/dist/provider/menu-groups.d.ts +9 -0
- package/views/dist/provider/menu-groups.js +44 -0
- package/views/dist/provider/missing-slot.d.ts +10 -0
- package/views/dist/provider/missing-slot.js +15 -0
- package/views/dist/provider/plain-input.d.ts +9 -0
- package/views/dist/provider/plain-input.js +7 -0
- package/views/dist/provider/ports.d.ts +57 -0
- package/views/dist/provider/ports.js +9 -0
- package/views/dist/react.d.ts +14 -0
- package/views/dist/react.js +5 -0
- package/views/dist/selection/SelectCheckbox.d.ts +19 -0
- package/views/dist/selection/SelectCheckbox.js +11 -0
- package/views/dist/selection/SelectionBar.d.ts +18 -0
- package/views/dist/selection/SelectionBar.js +100 -0
- package/views/dist/selection/SelectionBarPhone.d.ts +3 -0
- package/views/dist/selection/SelectionBarPhone.js +14 -0
- package/views/dist/selection/bar-overflow.d.ts +12 -0
- package/views/dist/selection/bar-overflow.js +55 -0
- package/views/dist/selection/bar-parts.d.ts +17 -0
- package/views/dist/selection/bar-parts.js +19 -0
- package/views/dist/selection/bar-room.d.ts +7 -0
- package/views/dist/selection/bar-room.js +3 -0
- package/views/dist/selection/index.d.ts +9 -0
- package/views/dist/selection/index.js +7 -0
- package/views/dist/selection/model.d.ts +55 -0
- package/views/dist/selection/model.js +86 -0
- package/views/dist/selection/row-click.d.ts +35 -0
- package/views/dist/selection/row-click.js +20 -0
- package/views/dist/selection/types.d.ts +21 -0
- package/views/dist/selection/types.js +1 -0
- package/views/dist/selection/useCheckDragSelect.d.ts +61 -0
- package/views/dist/selection/useCheckDragSelect.js +166 -0
- package/views/dist/selection/useListSelection.d.ts +39 -0
- package/views/dist/selection/useListSelection.js +48 -0
- package/views/dist/selection/useListSelectionShortcuts.d.ts +7 -0
- package/views/dist/selection/useListSelectionShortcuts.js +14 -0
- package/views/dist/selection/useRestIntent.d.ts +18 -0
- package/views/dist/selection/useRestIntent.js +35 -0
- package/views/dist/selection/verbs.d.ts +41 -0
- package/views/dist/selection/verbs.js +1 -0
- package/views/dist/styles.css +3165 -0
- package/views/dist/styles.unlayered.css +3164 -0
- package/views/docs/contract.md +1187 -0
- package/views/docs/getting-started.md +250 -0
- package/views/docs/guides/atoms.md +305 -0
- package/views/docs/guides/cells.md +302 -0
- package/views/docs/guides/columns.md +413 -0
- package/views/docs/guides/display.md +205 -0
- package/views/docs/guides/editors.md +496 -0
- package/views/docs/guides/ports.md +246 -0
- package/views/docs/guides/selection.md +284 -0
- package/views/docs/guides/the-grid.md +736 -0
- package/views/docs/guides/the-provider.md +478 -0
- package/views/docs/index.md +54 -0
- package/views/docs/install.md +101 -0
- package/views/docs/reference/cells.md +28 -0
- package/views/docs/reference/display.md +46 -0
- package/views/docs/reference/editors-chips.md +6 -0
- package/views/docs/reference/editors-date.md +8 -0
- package/views/docs/reference/editors-location.md +12 -0
- package/views/docs/reference/editors-name.md +8 -0
- package/views/docs/reference/editors-number.md +13 -0
- package/views/docs/reference/editors-open-values.md +10 -0
- package/views/docs/reference/editors-panel.md +12 -0
- package/views/docs/reference/editors-range.md +8 -0
- package/views/docs/reference/editors-relation.md +12 -0
- package/views/docs/reference/editors-select.md +9 -0
- package/views/docs/reference/editors-session.md +13 -0
- package/views/docs/reference/editors-text.md +9 -0
- package/views/docs/reference/editors-value-list.md +6 -0
- package/views/docs/reference/editors.md +5 -0
- package/views/docs/reference/field-row.md +16 -0
- package/views/docs/reference/grid.md +64 -0
- package/views/docs/reference/panels-react.md +172 -0
- package/views/docs/reference/panels.md +220 -0
- package/views/docs/reference/react.md +164 -0
- package/views/docs/reference/selection.md +41 -0
- package/views/docs/reference/views.md +638 -0
- package/views/docs/reshaping.md +19 -0
- package/views/skills/views/SKILL.md +103 -0
|
@@ -0,0 +1,676 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@viewkitjs/postgres`. `0.x`: the API may change between minor versions.
|
|
4
|
+
|
|
5
|
+
This is `@viewkitjs/postgres`' history up to 0.12.0. From 0.19.0 the package is `viewkitjs`, and its changes are in [../CHANGELOG.md](../CHANGELOG.md).
|
|
6
|
+
|
|
7
|
+
## [0.12.0] — 2026-11-24
|
|
8
|
+
|
|
9
|
+
A page's values read a value kept in a row of its own, and a relation's lead link row, for the page's records alone,
|
|
10
|
+
the keys first, however many such fields the map holds. On a page, a rule or a search word on a value kept in a table
|
|
11
|
+
of values, or on a lead link, under an `or` is probed by record, as a rule on several values kept as rows already is.
|
|
12
|
+
No export changes, and the peer stays `@viewkitjs/fields` `^0.18.0`.
|
|
13
|
+
|
|
14
|
+
What an app changes when it takes this version:
|
|
15
|
+
|
|
16
|
+
- **The values of a page (`valuesQuery`) are read for its records alone**, at any number of fields kept in rows of
|
|
17
|
+
their own and for a lead link's row: 100,000 companies with 19 such fields, a page of 51, take 6.7 ms where they
|
|
18
|
+
took about a second. The same values in the same order. Give each table of values an index on its record and field
|
|
19
|
+
(the workspace first when its condition names it) (Changed).
|
|
20
|
+
- **A rule or a search word on a value kept in a table of values, or on a lead link, under an `or` is probed by record
|
|
21
|
+
on a page**: the same rows and cursors. A common word ("ana") takes 2.4–4.4 ms a page where it took 78–363 ms. A
|
|
22
|
+
word no row holds, for a reader who reaches a million records, now takes 2.4–5.0 s a page where it took
|
|
23
|
+
0.37–0.68 s. Give the table of values an index on its record and field, and the link table one on its record
|
|
24
|
+
(Changed).
|
|
25
|
+
- **Totals and counts are unchanged**, capped or exact: they write the same SQL as before (Changed).
|
|
26
|
+
- **A statement with no value kept in a row of its own and no lead link writes the same SQL as before.**
|
|
27
|
+
- **No export is removed**: every name 0.11.0 exported is still exported.
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
|
|
31
|
+
- A rule or a search word on a value kept in a row of a table of values, and a search word on a relation's lead link, under an `or` (a search over a name and that field, or a filter `or` holding it), is probed by record in a page, so the page stops when it is full instead of reading every matching row first. Same rows, same cursors. The probe was `EXISTS (SELECT 1 FROM <rows> WHERE <record> = <key> AND …)` and is now `EXISTS (SELECT 1 FROM <rows> WHERE <record> = <key> AND … OFFSET 0)`; a lead link's far keys, `= ANY(ARRAY(SELECT …))`, are read `IN (SELECT …)` there, each lead row's far record by its key. Postgres planned the first as a hashed set of every matching row, chosen on the whole table's rows and never the page's, and `OFFSET 0` takes that plan away. A total, capped or exact, a rule at the top of the filter, a search over one field with no pasted-id arm, and a map with no value kept in a row and no lead link write the same SQL as before.
|
|
32
|
+
- What it costs, measured on a million people, newest first, for a reader who sees them all: a common word ("ana") over a name and a text kept in a table of values takes 2.4–3.7 ms a page instead of 78–120 ms, and over a name and a lead link 4.4 ms instead of 363 ms. A word no row holds now probes each reachable record's row in turn: 2.4–3.3 s a page instead of 0.37–0.39 s, and 3.4–5.0 s instead of 0.68 s over a lead link. A total keeps its read (a capped count of "ana": 98–503 ms, as before). Give the table of values an index on its record and field (the workspace first when its condition names it) and the link table one on its record, so each probe is one lookup.
|
|
33
|
+
- The values of given records (`valuesQuery`) read a value kept in a row of its own, and a relation's lead link row, by record, the keys first: `FROM <keys> JOIN <main> ON … LEFT JOIN LATERAL (SELECT * FROM <row> WHERE <record> = <key> OFFSET 0) AS … ON TRUE`, where they were LEFT JOINed onto the main table and the keys joined last. Past eight joins Postgres keeps the order a statement writes, so it read every row of every such field before narrowing to the page: 100,000 companies with 19 fields kept in rows, a page of 51, took about a second at 19 fields and 0.4 s at seven, and now takes 6.7 ms and 3.0 ms warm. The same values in the same order; a record holding two rows for a field of one value is still read once per row. Each probe is a lookup on the table's index on its record and field (the workspace first when its condition names it). A far record a lead points at is joined after its link row as before, and a map whose values read keeps no row of its own and no lead link writes the same SQL as before.
|
|
34
|
+
|
|
35
|
+
## [0.11.0] — 2026-11-24
|
|
36
|
+
|
|
37
|
+
`searchIndexes` prints a table many kinds share with its indexes partial on its pick, gives a text kept in a table of
|
|
38
|
+
values one trigram index, and answers the statistics each trigram index needs. A page sorted alone by an amount and
|
|
39
|
+
its code, by a select or a status kept in a row, or by a part of a name, a place or a range kept in its type's own
|
|
40
|
+
table walks an index instead of sorting every row of the field, and a rule on several values kept as rows under an
|
|
41
|
+
`or` is probed by record. The peer moves to `@viewkitjs/fields` `^0.18.0`.
|
|
42
|
+
|
|
43
|
+
What an app changes when it takes this version:
|
|
44
|
+
|
|
45
|
+
- **Install `@viewkitjs/fields` 0.18 beside it**: the peer is `^0.18.0` (it was `^0.17.0`), for its
|
|
46
|
+
`ruleDecimalsOf` (Changed).
|
|
47
|
+
- **A rule on a percent range's end that states no decimals rounds at none**, through fields 0.18's
|
|
48
|
+
`ruleDecimalsOf`: "low end is 12.4" keeps a row whose low end reads 12%. To keep the old rounding, state
|
|
49
|
+
`format.decimals` on the field.
|
|
50
|
+
- **`searchIndexes` answers more, with nothing new handed**: on a table with a `pick`, each index carries the pick as
|
|
51
|
+
its `where`, so create it as printed with the statistics beside it; a text, a link, a domain, an email or rich text
|
|
52
|
+
kept in a row of a table of values is served by one trigram index on that table's folded value, where it was
|
|
53
|
+
`unserved`; and a `statistics` list sits beside `indexes` and `unserved`, each statement ready for a migration, then
|
|
54
|
+
`ANALYZE` (Added, Changed).
|
|
55
|
+
- **A page sorted alone by an amount and its code, a select or a status kept in a row, or a part of a name, a place or
|
|
56
|
+
a range kept in its type's own table walks an index**: the same rows. Give each the index its line below names. A
|
|
57
|
+
part is read as it is kept, so keep a part trimmed and a blank part NULL. A cursor on an amount's page written
|
|
58
|
+
before its code's options were reordered, added or removed is refused as `bad-cursor` (Changed).
|
|
59
|
+
- **A search over several values kept as rows, under an `or`, is probed by record** in a page and in a capped total:
|
|
60
|
+
a common word ("ana") takes 5.3 ms a page where it took 472 ms. A word no row holds now takes as long as a
|
|
61
|
+
hand-written correlated `EXISTS`: for a reader who reaches a million records, 6.9 s a page instead of 5.0 s and
|
|
62
|
+
19.4 s a capped count instead of 7.8 s; a capped count over a word only the record's own fields hold, 5.2 s instead
|
|
63
|
+
of 1.9 s. Give the rows table an index on `(workspace, record)` (Changed).
|
|
64
|
+
- **No export is removed**: every name 0.10.0 exported is still exported.
|
|
65
|
+
|
|
66
|
+
### Added
|
|
67
|
+
|
|
68
|
+
- `searchIndexes` answers `statistics`: for each trigram index it prints, the statistics a "contains" on that expression is estimated by, with or without the index, as a `CREATE STATISTICS IF NOT EXISTS` statement ready for a migration (`statement`, and `statisticsName`, which carries eight hex digits of the table and the expression so two never share a name), from the same expression. Run it as printed, then `ANALYZE` the table; Postgres 14 or later. The type is `SearchStatistics`. `indexes` and `unserved` are unchanged.
|
|
69
|
+
|
|
70
|
+
### Changed
|
|
71
|
+
|
|
72
|
+
- `searchIndexes` prints each index on a table many kinds share (a table with a `pick`) with that pick as its `where`, so the index holds one kind's rows: `CREATE INDEX … ON <name> <using> WHERE <where>`. Create it with the statistics printed beside it, since Postgres reads none from a partial index. A table with no pick prints its indexes as before, with no `where`.
|
|
73
|
+
- A text, a link, a domain, an email or rich text kept in a row of a table of values is no longer `unserved`: `searchIndexes` prints one trigram index on that table's folded value column, shared by every field the table holds, under the table's own pick. A select or a status kept that way is named unserved with the option reason, and a phone with the phone reason.
|
|
74
|
+
- A page sorted alone by an amount whose code is a select of up to 32 options, kept on the amount's own row (the code field's `row` names the amount's table, record column and pick), reads one range per code instead of ranking every row of the field: each code's rows by amount then record, the codes in the option order both ways, then the codes no option names, then the amounts with no code, then the records with none. Same rows; give the amounts table an index on `(workspace_id, field_id, code, amount, record_id)`. Its cursor holds the code order, so a cursor written before the code's options were reordered, added or removed is refused (`bad-cursor`). A sort by such an amount reads its code through the amount's one join.
|
|
75
|
+
- A page sorted alone by a select or a status kept in a row reads the values no option names by the gaps between the options, each a range the value's index seeks, instead of reading every option's rows to skip them. Same rows, under a deterministic collation.
|
|
76
|
+
- A page sorted alone by a part of a name, a place or a range kept in its type's own table (a place by any part but its country, a name by its family or given name, a range by either end) walks the part's index instead of sorting every row of the field: the records holding the part, by part then record, then those holding the value but not the part (first for an open low end ascending or an open high end descending), then those with none. Give each walked part an index on `(workspace_id, field_id, <part>, record_id)`, a text part under the same `left(…, length) COLLATE …` your `textSort` names; a name's and a range's with the other part after the walked one. The part is read as it is kept: keep a part trimmed and a blank part NULL, or a page orders `' Paris'` and `''` as they are kept.
|
|
77
|
+
- A rule on several values kept as rows of their own, under an `or` (a search over a name and the emails, written as a filter), is probed by record in a page and in a total with a cap, so a page stops when it is full instead of reading every matching row first. Same rows, same cursors. The arm was `EXISTS (SELECT 1 FROM <rows> WHERE <record> = <key> AND …)` and is now `EXISTS (SELECT 1 FROM <rows> WHERE <record> = <key> AND … OFFSET 0)`: Postgres planned the first as a hashed set of every matching row, chosen on the whole table's rows and never the page's, and `OFFSET 0` takes that plan away. A rule at the top of the filter, an exact total, counts by option, groups and lists kept in an array or a `jsonb` column write the same SQL as before.
|
|
78
|
+
- What it costs, measured on a million people, newest first: a common word ("ana") takes 5.3 ms a page instead of 472 ms, and its count capped at 10,000 665 ms instead of 776 ms. A word no row holds now probes each reachable record's rows in turn, as a hand-written correlated `EXISTS` does: for a reader who sees the whole million, 6.9 s a page instead of 5.0 s and 19.4 s a capped count instead of 7.8 s (the hand-written statement takes 6.9 s and 18.8 s); for a reader who sees a tenth, 0.95 s a page instead of 1.18 s. A capped count over a word only the record's own fields hold reads the same way (a million companies, "nordic" in their names and in no domain: 5.2 s instead of 1.9 s). Give the rows table an index on `(workspace, record)`, or on the record alone when its condition names no workspace, so each probe is one lookup.
|
|
79
|
+
- The peer `@viewkitjs/fields` is `^0.18.0` (it was `^0.17.0`).
|
|
80
|
+
|
|
81
|
+
## [0.10.0] — 2026-11-23
|
|
82
|
+
|
|
83
|
+
A value made of parts (a name, a place, a range, a phone) and an amount with its code read from their type's own
|
|
84
|
+
table; a sort on several options is answered; a hand map reads a user's name through its users' table and a
|
|
85
|
+
relation's lead row through one join. A number rule's "is" rounds where the grid rounds it, "contains" under three
|
|
86
|
+
characters is a `strpos`, a select kept in a row of its own pages one range per option, and load more by a sort read
|
|
87
|
+
through a join is one pass. Rows of their own may promise one main row per record, so a sort by the main value
|
|
88
|
+
reads them through one join, and a select or a status may be kept as `uuid`. The guide names the indexes a table of
|
|
89
|
+
values per type needs, and what makes a "contains" no index serves estimated well. The peer moves to
|
|
90
|
+
`@viewkitjs/fields` `^0.17.0`.
|
|
91
|
+
|
|
92
|
+
What an app changes when it takes this version:
|
|
93
|
+
|
|
94
|
+
- **Install `@viewkitjs/fields` 0.17 beside it**: the peer is `^0.17.0` (it was `^0.16.0`), for its
|
|
95
|
+
`ruleDecimalsOf` (Changed).
|
|
96
|
+
- **A number rule's "is" and "is not" may keep other rows** on a whole range's end, a percent that states no
|
|
97
|
+
decimals, and a rollup, a formula or a lookup: they now round as the grid does. To keep the old rounding on such a
|
|
98
|
+
field, state `format.decimals` on it (on a rollup or formula, on its `result`) (Changed).
|
|
99
|
+
- **"Contains" and a search word of one or two characters write `strpos`** where they wrote `LIKE`: the same rows
|
|
100
|
+
(Changed).
|
|
101
|
+
- **Load more by a sort read through a join is one read** where it was two: the same rows in the same order, and a
|
|
102
|
+
cursor written before reads back (Changed).
|
|
103
|
+
- **A select or a status kept in a row of its own (`row`), sorted alone, pages one range per option**: its cursor
|
|
104
|
+
holds the option order, so a cursor 0.9.0 wrote on such a page, or one written before the options were reordered,
|
|
105
|
+
added or archived, is refused as `bad-cursor` and the list starts from its first page. A map with no `row` select
|
|
106
|
+
is untouched (Changed).
|
|
107
|
+
- **A sort on a multiselect is answered**: a list that hid it, or caught its `not-yet`, can offer it (Added).
|
|
108
|
+
- **A name, a place, a range or a phone in a shared table is read through `row.parts`**, where 0.9.0 refused it by
|
|
109
|
+
name; `ValueRow`'s `value` is optional and it gains `parts` (Added).
|
|
110
|
+
- **To read a user through its users' table, or a relation's lead row**, name `value: { relation }` on the user
|
|
111
|
+
field or `through.lead` on the relation (Added).
|
|
112
|
+
- **To sort by a list's main value through one join**, name `oneMain: true` beside `several.main` when at most one
|
|
113
|
+
row per record is marked main, as a unique index keeps it (Added).
|
|
114
|
+
- **A select or a status whose options' keys are uuids may be kept as `uuid`** (`stored: "uuid"`), so its rules
|
|
115
|
+
compare the column itself (Added).
|
|
116
|
+
- **The refusal for a select or a status kept as another type reads differently**: `a select is kept as text or
|
|
117
|
+
uuid, not integer`. A test that matches its words changes (Changed).
|
|
118
|
+
- **No export is removed**: every name 0.9.0 exported is still exported.
|
|
119
|
+
|
|
120
|
+
### Added
|
|
121
|
+
|
|
122
|
+
- **A value made of parts kept in its type's own table.** A field's `row` takes `parts`, the column of the row's table holding each part, named as a field's own `parts` are: a name's, a place's and a range's parts (with no `value`), a phone's number and extension (beside or in place of its `value`). Every part is read through the row's one join for sorts, groups, figures and a page's values; a rule and a search word probe the row by record, a range's ends compared `+ 0`. Several phones kept as rows take a `pick` too. An amount and its code kept on one row are two fields naming that row, the code field's `value` the code's column. `ValueRow`'s `value` is optional, and it gains `parts`.
|
|
123
|
+
- Nothing in this change alters a map that names no `row.parts`: its fields read as before.
|
|
124
|
+
- A sort on several options (a multiselect) is answered, where it was refused as `not-yet`. It orders as ViewKit's `compareBy` does: the list's values joined with `","` as one text, as JavaScript's `join` writes them (a missing value as nothing, a `jsonb` object as `[object Object]`), in the order they are kept (an array's and a `jsonb` list's own, rows of their own by their key), never put in order first and never by the order the field declares its options. The text compares as any text a sort reads, under the map's `textSort` when it names one, and a list with no value that isn't blank is empty, last in both directions. Every statement that pages takes it and its cursor carries it. Kept as an array, a `jsonb` list or rows of their own; rows of their own need no `several.main`. With a `sort` in the map, the field sorts by that read as text instead.
|
|
125
|
+
|
|
126
|
+
Your map changes nothing: a list that hid the sort on a multiselect, or caught its `not-yet`, can offer it.
|
|
127
|
+
- A relation through a link table may name its lead row, `through: { table, from, to, lead: "is_main" }` (a boolean column of the link row, or your condition over it). It reaches one record, the far record the lead row points at, such as a person's main company among all its companies. Its value, its sort and a read by id join the lead row once, then its far record; a rule and a search word probe the lead row by record. A second relation over the same link table, with no lead, still reaches every link.
|
|
128
|
+
- A user field may read its users' table through a relation of one record kept in a column of its row, `value: { relation: "owner" }`, to a table that names a `label`. It is read as a user the builder builds is: its id only while the reader may see that user, sorted and searched by the label through one join, and read by id as `{ id, label }`.
|
|
129
|
+
- The guide names what several values kept as rows need under an `or`, such as a search over a name and the emails: a trigram index on the fold of the rows' value column, so Postgres reads them through it rather than every matching row, and the workspace bound as a value in the rows table's condition. The SQL written for several values kept as rows is unchanged.
|
|
130
|
+
- The guide names what an app makes for one table of values per type, each shared by every workspace: the probe, value, text-order, trigram and parts indexes, the extended statistics on the workspace, the field and the value, no partial value index, and the workspace bound as a value in every table's condition, so under an `or` Postgres keeps it in each value table's index condition.
|
|
131
|
+
- Rows of their own may say `oneMain: true` beside their main mark (`several: { kept: "rows", …, main: "is_main", oneMain: true }`): at most one row per record is marked main, as a unique index on the record where main keeps it. A sort by the field then reads the main rows through one join, which Postgres can hash, instead of once per record: a million records sorted by main email in about the time of the join written by hand. When the promise breaks, a page shows the record once per main row, while a count, a filter and a search count it once. A map that doesn't name it writes what it wrote.
|
|
132
|
+
- The guide says what to make so a "contains" rule on a text no index serves is estimated well, and a page in an index's order walks that index: statistics on the field's folded text (`CREATE STATISTICS … ON (<expression>)`, Postgres 14 or later), or its trigram index, from the expression `searchIndexes` prints. The SQL the translator writes doesn't change.
|
|
133
|
+
- A select or a status may be kept as `uuid` (`{ value: "industry", stored: "uuid" }`) when its options' keys are uuids. Its rules compare the column itself, so the column's statistics and indexes serve them: "is any of" and "is none of" bind only the picked keys that are uuids in canonical form (lowercase, hyphenated), since no other key equals the column's text, and "is empty" is `IS NULL`. Its sort by option order and every other answer are as with text keys. It is not read from a row of its own yet.
|
|
134
|
+
|
|
135
|
+
### Changed
|
|
136
|
+
|
|
137
|
+
- Load more by a sort the translator reads through a join it writes (a relation of one record's name or far field, a user read through its users' table, a lookup, a rollup worked out for the whole list, a list's main value, a value kept in a row of its own when its walk is off) reads the rows after the cursor and the rows with no value in one pass instead of two, in the same order: same rows, and a cursor written before reads back. A column, your own expression (a lookup's own `sort` among them), a relation of several records, a `first` or converted rollup, a formula, a converted amount and manual positions keep their two ranges. A map that names neither new shape writes the same SQL as before everywhere else.
|
|
138
|
+
- **"Contains" and a search word under three characters is a `strpos`.** A word of three characters or more is still a `LIKE` over the folded text, which a trigram index serves; one or two characters, which no trigram serves, read the folded text with `strpos`, so a two-letter word no longer reads a whole trigram index. The same rows either way. A one- or two-letter word wrote `(<folded text> LIKE '%ab%'::text)` and now writes `(strpos(<folded text>, 'ab'::text) > 0)`.
|
|
139
|
+
- **A select or a status kept in a row of its own, sorted alone, walks one range per option.** Up to 32 options: each option's rows in the value index's order by record, then the values no option names, then the records with none, under one `UNION ALL … LIMIT`, so a page never ranks every row. Its cursor holds the option order: one written before the options were reordered, added or archived is refused as `bad-cursor`. A board's lanes page as their next page does, so a lane's cursor reads back on a board by the sorted select.
|
|
140
|
+
- A number rule's `eq` and `neq` round where the grid rounds them (`ruleDecimalsOf` from `@viewkitjs/fields/query`), so the server keeps other rows than before in three cases:
|
|
141
|
+
- on a whole range's low or high end (`validation: { integer: true }`), at no decimals, where it read two: `low end = 4.6` now keeps a low end of 5;
|
|
142
|
+
- on a percent that states no decimals, at none, where it read two: `= 12.6` now keeps 12.5;
|
|
143
|
+
- on a rollup, a formula or a lookup, at the decimals of the field it shows, where it read two unless the derived field stated its own.
|
|
144
|
+
|
|
145
|
+
To keep the old rounding on such a field, state `format.decimals` on it (on a rollup or formula, on its `result`): the grid and the server then both read that.
|
|
146
|
+
- The refusal for a select or a status kept as another type names both kinds it is kept as: `a select is kept as text or uuid, not integer`.
|
|
147
|
+
- The peer `@viewkitjs/fields` is `^0.17.0` (it was `^0.16.0`).
|
|
148
|
+
|
|
149
|
+
## [0.9.0] — 2026-11-23
|
|
150
|
+
|
|
151
|
+
Tables many kinds, fields or relations share: a table's `pick` picks one kind's records out of a shared table, a
|
|
152
|
+
field's `row` reads a field of one value from a shared table of values, one row per value, and several values kept as
|
|
153
|
+
rows and a relation's link table take a `pick` too. Each pick is written into the table's opening wherever it is read,
|
|
154
|
+
so a partial index on it can match, and a page's cursor is bound to it. The storage test's query forms for a field
|
|
155
|
+
kept in a row of its own are the ones it writes. The peer moves to `@viewkitjs/fields` `^0.16.0`.
|
|
156
|
+
|
|
157
|
+
What an app changes when it takes this version:
|
|
158
|
+
|
|
159
|
+
- **Install `@viewkitjs/fields` 0.16 beside it**: the peer is `^0.16.0` (it was `^0.15.0`) (Changed).
|
|
160
|
+
- **Nothing, to keep what it has**: a map that names no `pick` and no `row` writes exactly the SQL and the cursors it
|
|
161
|
+
wrote before (Added).
|
|
162
|
+
- **To read one kind's records, one field's values or one relation's links out of a shared table**, name `pick` on
|
|
163
|
+
the table, `row` on the field or `pick` on the rows or link table, and make the indexes and the extended statistics
|
|
164
|
+
the guide names (Added).
|
|
165
|
+
- **A name, a place, a range or a phone in a shared table, and an amount that converts in a row of its own, are
|
|
166
|
+
refused by name**: keep them on the record's table for now (Added).
|
|
167
|
+
- **New types at the root**: `RowPick` and `ValueRow` (Added).
|
|
168
|
+
- **No export is removed**: every name 0.8.0 exported is still exported.
|
|
169
|
+
|
|
170
|
+
### Added
|
|
171
|
+
|
|
172
|
+
- **Tables many kinds, fields or relations share.** A table's `pick` names the columns that pick one kind's records out of a table many kinds share; a field's `row` (`{ table, record, value, pick }`) reads a field of one value from a row of a table many fields share, one row per value and none for an empty one; several values kept as rows and a relation's link table take a `pick` too, so one field's rows and one relation's links are read out of shared tables. Each pick is written inside the table's opening, beside its soft delete and your condition, wherever the table is read, and written into the SQL as it is (text of 1 to 200 characters with no quote, backslash or control character), so the planner reads its statistics and a partial index on it can match. New types: `RowPick`, `ValueRow`.
|
|
173
|
+
- **The storage test's query forms for a field kept in a row of its own.** A rule and a search word probe the row by record, a number compared `+ 0` so a range never reads the value's own index; a rule that holds on an empty value keeps a record with no row. A page whose first sort is such a field is two ranges from its first page on, the values walked in their index's order and then the records with none by key, and a later page seeks with a row comparison of the value and the row's record. The guide names the indexes and the extended statistics (`CREATE STATISTICS … ON field_id, value_text`) an app makes for its table of values.
|
|
174
|
+
- A page's cursor is bound to its table's pick: a cursor of one kind's list is refused under another kind's map sharing the table.
|
|
175
|
+
- A map that names no `pick` and no `row` writes exactly the SQL and the cursors it wrote before.
|
|
176
|
+
- Not yet: a name, a place, a range or a phone in a shared table, and an amount that converts in a row of its own, are refused by name.
|
|
177
|
+
|
|
178
|
+
### Changed
|
|
179
|
+
|
|
180
|
+
- The peer `@viewkitjs/fields` is `^0.16.0` (it was `^0.15.0`).
|
|
181
|
+
|
|
182
|
+
## [0.8.0] — 2026-11-23
|
|
183
|
+
|
|
184
|
+
A field the map marks `notNull` sorts by its direction alone, with no `NULLS` clause, so one index on it and the key
|
|
185
|
+
serves a list newest first and oldest first. A list's groups order by name under the map's `textSort`, as its rows do.
|
|
186
|
+
A map built from your definitions carries a rows storage's main mark (`main`), so it sorts several emails, links,
|
|
187
|
+
domains or phones kept as rows. `textOrderQuery` ranks texts as the map's sorts compare them, for a test-kit backend.
|
|
188
|
+
The peer stays `@viewkitjs/fields` `^0.15.0`.
|
|
189
|
+
|
|
190
|
+
What an app changes when it takes this version:
|
|
191
|
+
|
|
192
|
+
- **Nothing, to keep what it has**: a map with no `notNull` sorts, pages and writes its cursors exactly as before, a
|
|
193
|
+
rows storage with no `main` builds the map it built, and a map with no `textSort` orders its groups as before
|
|
194
|
+
(Added, Changed).
|
|
195
|
+
- **To serve both directions from one index, mark a field that is never NULL `notNull`**, on the map or in its
|
|
196
|
+
kind's storage, and index it with the key in one direction, such as `(created_at DESC, id DESC)`. Only a number, a
|
|
197
|
+
percent, a date, an instant or a yes-or-no on the list's own table takes it. A cursor written before reads back
|
|
198
|
+
after (Added).
|
|
199
|
+
- **A map naming `textSort` orders its groups by name under its collation and length**, in every group order, so a
|
|
200
|
+
list's group headers may come in another order than before (Changed).
|
|
201
|
+
- **To sort several values kept as rows from a built map, name `main` in the storage's rows form**: without it such
|
|
202
|
+
a sort is still refused as `bad-sort` (Added).
|
|
203
|
+
- **A test-kit backend over a map naming `textSort`**: run `textOrderQuery` in its `orderTexts`, as the test-kit
|
|
204
|
+
guide's example backend does (Added).
|
|
205
|
+
- **One new export at the root**: `textOrderQuery` (Added).
|
|
206
|
+
- **No export is removed**: every name 0.7.0 exported is still exported.
|
|
207
|
+
|
|
208
|
+
### Added
|
|
209
|
+
|
|
210
|
+
- `notNull` on a field of the map: a number, a percent, a date, an instant or a yes-or-no on the list's own table whose value (and its `sort` read) is never NULL. A sort on it orders by its direction alone, with no `NULLS` clause, and a later page reads one range, so one index on it and the key, such as `(created_at DESC, id DESC)`, serves newest first forward and oldest first backward. A cursor holding no value for it is refused as `bad-cursor`. A cursor written before you mark a field reads back after. A lookup and a far table's field are refused it.
|
|
211
|
+
- `notNull` in a kind's storage, a list of its fields, as `notKept` is: a map built from your definitions marks each one `notNull` on the list's own kind; a far record's field never carries it, as that record may be missing.
|
|
212
|
+
- Without `notNull`, every sort, page and cursor is exactly as before.
|
|
213
|
+
- `main` in the storage's rows form, `{ rows: { kind, record, value, main } }`: the boolean column marking a record's main one. A built map carries it as `several.main`, so a sort on several emails, links, domains or phones kept as rows orders by the main row, read under the rows kind's own condition and soft delete, as a hand-written map does. Without `main`, the built map is as before and such a sort is still refused (`bad-sort`).
|
|
214
|
+
- `textOrderQuery(map, texts)`: the statement ranking texts as the map's sorts and groups compare them, its `textSort` (collated and cut to its length) or, without one, your database's own order. Its rows are `{ t, r }`, texts compared equal sharing one `r`. Run it in your test-kit backend's `orderTexts`, so a map naming `textSort` passes the kit on any database; the test-kit guide's example backend does.
|
|
215
|
+
|
|
216
|
+
### Changed
|
|
217
|
+
|
|
218
|
+
- With `textSort` named on the map, a list's groups order by name under its collation and cut to its length, in every order (by name, by count, by hand, by lifecycle), as its rows' text sorts do. Without `textSort`, groups order as before.
|
|
219
|
+
|
|
220
|
+
## [0.7.0] — 2026-11-23
|
|
221
|
+
|
|
222
|
+
A sort on several emails, links, domains or phones, by the main value, as ViewKit's own sort orders them. Text sorts
|
|
223
|
+
under the one collation and length the map names (`textSort`), so a list pages in ViewKit's own order on any
|
|
224
|
+
database. A row names the alias the translator opened it under (`Row.alias`), for a permission condition of your own.
|
|
225
|
+
The peer stays `@viewkitjs/fields` `^0.15.0`.
|
|
226
|
+
|
|
227
|
+
What an app changes when it takes this version:
|
|
228
|
+
|
|
229
|
+
- **Nothing, to keep what it has**: a map without `textSort` sorts, pages and writes its cursors exactly as before,
|
|
230
|
+
and `Row.alias` is optional, so a `Row` your own code builds keeps compiling (Added).
|
|
231
|
+
- **A sort on several emails, links, domains or phones is answered** where it was refused as `not-yet`. Kept as an
|
|
232
|
+
array or a `jsonb` list, it needs nothing new; kept as rows of their own, add `main` to their `several` in your map,
|
|
233
|
+
or the sort is refused as `bad-sort`, naming `several.main` (Added, Changed).
|
|
234
|
+
- **Naming `textSort` makes every cursor written before it stale**: a list handed one starts again from its first
|
|
235
|
+
page (`bad-cursor`). To page in ViewKit's own order, name your locale's ICU collation, and index the same
|
|
236
|
+
expression (Added, Changed).
|
|
237
|
+
- **A permission condition, a `Read` or a label of your own can name its row by `row.alias`** with
|
|
238
|
+
`identifier(row.alias, …)`, instead of reading what the translator rendered (Added).
|
|
239
|
+
- **One new type at the root**: `TextSort`, the shape of `textSort` (Added).
|
|
240
|
+
- **No export is removed**: every name 0.6.0 exported is still exported.
|
|
241
|
+
|
|
242
|
+
### Added
|
|
243
|
+
|
|
244
|
+
- A sort on several emails, links, domains or phones, by the main value, as ViewKit's own sort orders them; a list with no main value is empty, last whichever the direction. Every statement that pages answers it, and a page's cursor carries it.
|
|
245
|
+
- An array: its first value that isn't blank.
|
|
246
|
+
- A `jsonb` list: its first item `{ value, label, main }` marked `main` that isn't blank, else its first value that isn't; a single value, not a list, as itself.
|
|
247
|
+
- Rows of their own: the row their new `several.main` marks, read under their table's own condition and soft delete. `main` is a boolean column's name or your condition over the row (`main: "is_main"`, or `main: (row) => sql\`${row.column("rank")} = 1\``). Several marked: the one with the lowest key that isn't blank. None marked, or every marked one blank: empty.
|
|
248
|
+
- A phone: by its number when it is in international form, else by its text as typed.
|
|
249
|
+
- To sort several values kept as rows, add `main` to their `several` in your map. Arrays and `jsonb` lists need nothing new. A field of several values that has a `sort` sorts by that read instead, as a field of one value does.
|
|
250
|
+
- `textSort` on the field map, both keys optional: `collation`, the one collation every text part a sort reads compares under (a text, a link, a domain, an email, an open select, a closed select's or a status's tie-break, a money field's code, a name's and a place's parts, a relation's or a user's name, a `sort` read of text), quoted whole as Postgres names it; and `length`, how many characters of each text a sort reads, so a page's cursor stays small. The order, the keyset and the cursor all read the same expression, so load more neither repeats nor skips a row. A map without `textSort` sorts, pages and writes its cursors exactly as before.
|
|
251
|
+
- To page in ViewKit's own order on any database, `C` and libc included, name your locale's ICU collation. For a locale with no ordering of its own, English among them, that is ICU root (`textSort: { collation: "und-x-icu" }`): the order is ViewKit's but for texts it counts equal ("ana" and "Ana"), which ICU orders before a later part decides. A nondeterministic ICU collation at base strength (`CREATE COLLATION vk_base (provider = icu, locale = 'und-u-ks-level1', deterministic = false)`, then `collation: "vk_base"`) gives ViewKit's order exactly. A locale with an ordering of its own names its own (`ro-x-icu`, or `ro-u-ks-level1` at base strength). One map names one collation, while ViewKit follows each request's locale.
|
|
252
|
+
- The length and the collation are written into the SQL text, so an index on the same expression seeks a later page: `((left(NULLIF(title, ''), 512) COLLATE "und-x-icu"), id)`.
|
|
253
|
+
- `TextSort` at the root: the type of the field map's `textSort`, `{ collation?, length? }`.
|
|
254
|
+
- `Row.alias`: the alias a row was opened under, a plain name such as `vk_r0` that reads the same quoted or bare. A permission condition, a `Read` or a label your app already writes for a row alias, with subqueries of its own, can name it with `identifier(row.alias, …)` instead of reading anything the translator rendered. A subquery of your own may alias its table by the row's alias and a suffix (`${row.alias}_teams`), which never meets the translator's own names (`vk_`, a letter and a number). Every row the translator opens names it; the type leaves it optional, so a `Row` your own code builds keeps compiling as it is.
|
|
255
|
+
|
|
256
|
+
### Changed
|
|
257
|
+
|
|
258
|
+
- A sort on several emails, links, domains or phones kept as an array or a `jsonb` list is answered instead of refused as `not-yet`. Kept as rows of their own with no `main` (and no `sort`), it is refused as `bad-sort`, the refusal naming `several.main`. Several options (a multiselect) are still refused as `not-yet`.
|
|
259
|
+
- Once a map names `textSort`, a cursor written before is refused as stale (`bad-cursor`), and the list starts from its first page.
|
|
260
|
+
|
|
261
|
+
## [0.6.0] — 2026-11-21
|
|
262
|
+
|
|
263
|
+
Figures for a field of any type, each carrying `filled`, the values present as fields' Filled counts them, so a list
|
|
264
|
+
shown in pages reads the same Filled as one whose rows are all loaded. A date rule "is not" a day. A relation rule
|
|
265
|
+
whose where can't narrow yet narrows nothing, read by fields' own `whereWaits`. It needs `@viewkitjs/fields` 0.15.
|
|
266
|
+
|
|
267
|
+
What an app changes when it takes this version:
|
|
268
|
+
|
|
269
|
+
- **Install `@viewkitjs/fields` 0.15** beside it: the peer is `^0.15.0` (Changed).
|
|
270
|
+
- **`no-figure` is removed from `RefusalCode`**: a figure of any field is answered, so code that compares a refusal
|
|
271
|
+
with it no longer compiles. Drop the branch (Removed, with the code before and after).
|
|
272
|
+
- **`figuresQuery` answers a fifth array, `vk_filled`**: a reader that hands the translator's rows back as they came
|
|
273
|
+
needs no change (Changed).
|
|
274
|
+
|
|
275
|
+
### Added
|
|
276
|
+
|
|
277
|
+
- A date or a date-and-time rule "is not" a day (`is_not`, from the fields release that offers it) is answered as fields' evaluator answers it: every row but those on that day, the rows with no date included, the day bounded in the reader's zone as `is` bounds it. Under a `not` group the rows with no date are dropped. With an earlier fields, which offers no such operator, nothing changes.
|
|
278
|
+
- Each figure carries `filled`, the field's values present as fields' Filled counts them: several values filled by having one, a place, a name and a phone by their text, a range with neither end set blank, anything else as it is, null and an empty text blank. `figuresQuery`, `groupsQuery`'s figures and `lanesQuery`'s figures answer it for every field asked, so a list shown in pages reads the same Filled under a text, a pick, a person or a relation column as one whose rows are all loaded.
|
|
279
|
+
|
|
280
|
+
### Changed
|
|
281
|
+
|
|
282
|
+
- The peer `@viewkitjs/fields` is `^0.15.0`, the release that holds `whereWaits` and `ColumnFigure.filled`: the
|
|
283
|
+
translator reads a relation rule still being typed by fields' own `whereWaits`.
|
|
284
|
+
- `figuresQuery`, and the figures `groupsQuery` and `lanesQuery` carry, answer a field of any type. A field that holds no number answers its sum, smallest and largest as null and its count as 0, beside its `filled`. The query holds a fifth array, `vk_filled`, which a reader that hands the translator's rows back as they came needs no change for.
|
|
285
|
+
|
|
286
|
+
### Fixed
|
|
287
|
+
|
|
288
|
+
- A relation rule whose where holds rules, none of which could narrow yet (each still being typed, or set aside), now narrows nothing, as fields' evaluator answers it: the translator drops it instead of asking for any related record (`EXISTS`) or none (`NOT EXISTS`). It reads the where as fields' `whereWaits` does, so the two agree, a whole range with one open end counting as whole. A where with no rules at all still asks for any related record, or none.
|
|
289
|
+
|
|
290
|
+
### Removed
|
|
291
|
+
|
|
292
|
+
- The `no-figure` refusal: a figure is no longer refused for its field's type, and `"no-figure"` is gone from `RefusalCode`. This breaks code that names it: a comparison with it no longer compiles. Drop the branch.
|
|
293
|
+
|
|
294
|
+
```ts
|
|
295
|
+
// Before
|
|
296
|
+
if (error instanceof RefusedRequest && error.code === "no-figure") return null;
|
|
297
|
+
// After: a figure of any field is answered; nothing to catch.
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
## [0.5.0] — 2026-11-20
|
|
301
|
+
|
|
302
|
+
A list's quick-filter hold, answered beside its settings: every statement keeps only the rows that pass the filter,
|
|
303
|
+
the search and the hold, and each quick-filter value is counted as fields' `countHoldValues` counts it. It needs
|
|
304
|
+
`@viewkitjs/fields` 0.14, which brings the hold (`ListHold`, `withHold`).
|
|
305
|
+
|
|
306
|
+
What an app changes when it takes this version:
|
|
307
|
+
|
|
308
|
+
- **Install `@viewkitjs/fields` 0.14** beside it: the peer is `^0.14.0` (Changed).
|
|
309
|
+
- **A hold is new and optional** (`KeysRequest.hold`): with no hold, the SQL and a page's cursor are as before (Added).
|
|
310
|
+
|
|
311
|
+
### Added
|
|
312
|
+
|
|
313
|
+
- **`KeysRequest.hold`**: a quick-filter hold (fields' `ListHold`) on top of the filter, written as ordinary rules
|
|
314
|
+
with fields' `withHold` and compiled as that tree. The keys, a page, the ids, the values, the total, the groups, a
|
|
315
|
+
board's lanes, a calendar's month, the figures, an open field's values and each view's count take it. A page's
|
|
316
|
+
cursor is bound to it; with no hold, the SQL and the cursor are as before.
|
|
317
|
+
- **`holdCountsQuery`**: each value a quick filter offers on a field, counted under the whole filter, the search and
|
|
318
|
+
the hold's other fields, never the field's own: `optionCountsQuery`'s answer and refusals.
|
|
319
|
+
- **`bad-hold`** (`RefusalCode`): a hold fields' `listHoldSchema` refuses, at its place.
|
|
320
|
+
|
|
321
|
+
### Changed
|
|
322
|
+
|
|
323
|
+
- The peer `@viewkitjs/fields` is `^0.14.0` (it was `^0.13.0`): this version reads the hold fields 0.14 brings.
|
|
324
|
+
- `optionCountsQuery` takes no hold: a filter picker's counts are never narrowed by a quick filter, as fields'
|
|
325
|
+
`countOptions` takes none.
|
|
326
|
+
|
|
327
|
+
## [0.4.0] — 2026-11-18
|
|
328
|
+
|
|
329
|
+
A built formula reads a relation of one record as its record's name, a page or a group request takes the reader's
|
|
330
|
+
names language, and a page can be asked for by its number (`page`). It needs `@viewkitjs/fields` 0.13.
|
|
331
|
+
|
|
332
|
+
What an app changes when it takes this version:
|
|
333
|
+
|
|
334
|
+
- **Install `@viewkitjs/fields` 0.13** beside it: the peer is `^0.13.0` (Changed).
|
|
335
|
+
- **A rule asking whether a relation of one record is empty reads its record's name**: a far record named `""` is
|
|
336
|
+
empty, and a rule reading a relation to a kind whose records have no name is left out, named in `leftOut`
|
|
337
|
+
(Changed).
|
|
338
|
+
- **A sort by a place's country with neither `language` nor `locale`** is refused with a new message (Changed).
|
|
339
|
+
- **A page by its number is new and optional** (`PageRequest.page`): with no `page`, the SQL is as before (Added).
|
|
340
|
+
|
|
341
|
+
### Added
|
|
342
|
+
|
|
343
|
+
- **A built formula reads a relation of one record as its record's name.** A rule naming a relation of one record (`{ field: "person" }`, alone or inside a text function) reads the far table's label through the relation's one join, opened under the condition you hand for that table and its soft delete, as a sort by the relation reads it: `""` for a record named nothing, no value for none, one the reader may not see or one in the trash. So a kind can be named after the record it points at, `name: { type: "formula", rule: { field: "person" }, result: { type: "text" } }`: its name sorts, filters and searches as text, and labels the relations that point at it, read through both joins. It gives the answer `@viewkitjs/fields`' `evaluateFormula` gives for the relation's live `{ id, label }`. A formula reading a relation whose records have no name (a kind whose identity is no text and no name) is left out, named in `leftOut`.
|
|
344
|
+
- **A page and a group request take the reader's names language.** `PageRequest` and `GroupsRequest` take an optional `language` (BCP 47, the conventions' `language` from `@viewkitjs/fields`): a sort by a place's country orders by the country's name in it, and a country group is headed by its name in it, while a range group's figures keep `locale`. Without one, the names are `locale`'s, as before. A cursor read under one language is refused under another, as one read under another locale is.
|
|
345
|
+
- `page` on `PageRequest`: `pageQuery` and `groupPageQuery` answer a page by its number, from 1, as well as after a cursor. A page by its number holds the rows the cursor walk holds at that place, in the same order, and its `next` opens the page after it. `page` with `after` is refused. With no `page`, the SQL is as before. A board's lanes and `idsQuery` take no `page`: they read from the first row.
|
|
346
|
+
|
|
347
|
+
### Changed
|
|
348
|
+
|
|
349
|
+
- The peer `@viewkitjs/fields` is `^0.13.0` (it was `^0.12.0`): this version reads the conventions' names
|
|
350
|
+
language and the name rule fields 0.13 brings.
|
|
351
|
+
- **A rule reads a relation of one record by its record's name, not by whether it holds one.** A rule that asked whether a relation of one record holds a record (`isEmpty`, the only function that took one) read whether the far record is there; it now reads its name, so a far record named `""` is empty. And because the name is what it reads, a rule reading a relation to a kind whose records have no name (one whose identity is no text and no name) is left out, named, where it was built.
|
|
352
|
+
|
|
353
|
+
```ts
|
|
354
|
+
// before: built, and true for a far record named ""
|
|
355
|
+
{ fn: "not", args: [{ fn: "isEmpty", args: [{ field: "company" }] }] }
|
|
356
|
+
// now: false for a far record named "", and left out when the company kind has no name
|
|
357
|
+
{ fn: "not", args: [{ fn: "isEmpty", args: [{ field: "company" }] }] }
|
|
358
|
+
```
|
|
359
|
+
- A sort by a place's country with neither `language` nor `locale` is refused as `bad-sort` with "a sort by country needs the request's language or locale" (it said "…the request's locale").
|
|
360
|
+
|
|
361
|
+
## [0.3.0] — 2026-11-17
|
|
362
|
+
|
|
363
|
+
Sorts a built list refused now answer: a phone, and a lookup of a phone or of a place. A rollup, a user's name and a
|
|
364
|
+
relation's name are read through one join, within the test kit's limits at 100,000 rows, and a search can be served by
|
|
365
|
+
indexes that `searchIndexes` prints. It still depends on `@viewkitjs/fields` `^0.12.0` alone and runs nothing.
|
|
366
|
+
|
|
367
|
+
### Added
|
|
368
|
+
|
|
369
|
+
- **A built phone sorts.** `buildFieldMap` gives a phone a `sort`: its text as typed, trimmed, as ViewKit sorts a phone. A phone kept in one column, in a column of another type or in a `jsonb` member sorts by that text; a phone kept in `parts` by its number part. A blank phone sorts with the empties, last whichever the direction. A sort by a built phone was refused as `not-yet`; it is answered now, and so is a sort by a lookup of one, read through its far record under that table's condition. Several phones still don't sort. Over 100,000 rows, a page sorted by a phone took 31 ms, and one sorted by a lookup of a phone 58 ms, within the test kit's 100 ms.
|
|
370
|
+
- **A lookup of a place sorts by its parts.** A lookup of a place whose entry gives its `parts` and no `sort` sorts as a place does: by its city (the default), its region, its postal code, or its country by name in the request's `locale` (`by` names which). Each part is read through the far record, under the condition you hand for that table, so a far record the reader may not see, or one in the trash, sorts as an empty place, last whichever the direction. A built lookup of a place gets this with nothing to write. Such a sort was refused as `not-yet`. A lookup of a place given its own `sort` still sorts by that read alone, and a lookup of a range or of an amount whose currency each record carries is still refused. Over 100,000 rows, a page sorted by a lookup of a place, by its city, took 80 ms, within the test kit's 100 ms.
|
|
371
|
+
- `searchIndexes({ map, fields })` prints the indexes a list's search reads through, each with its table, its method and its exact expression, ready for a migration: a trigram index on each searched field's folded text, a relation's far label and its column, and a text key's lowercased text. It names each field no index serves, and why.
|
|
372
|
+
|
|
373
|
+
### Changed
|
|
374
|
+
|
|
375
|
+
- **A sort and a filter read a rollup for every row at once.** A rollup was worked out by a subquery per row, so a list sorted or filtered by one worked it out once for each row it kept. A sort and a filter now read every row's figure in one pass, from the same tables, each opened under the condition you hand for it and its soft delete, grouped by the record it belongs to and joined onto the list's rows; a far record still counts once for each record however many paths reach it. A read by id still works out only the rows it reads. A first, and an amount converted into its record's own currency, are still read per row. Over 100,000 rows, within the test kit's limits:
|
|
376
|
+
- a page sorted by a count over one relation: 372–454 ms before, 97–102 ms now;
|
|
377
|
+
- a page sorted by a count over two relations: 714–1,056 ms before, 97–107 ms now, and a total filtered by it: 974–1,376 ms before, 80–92 ms now;
|
|
378
|
+
- a page sorted by whether a rollup over two relations finds any record: 556–598 ms before, 87–92 ms now.
|
|
379
|
+
- **A page writes its cursor only for its own rows.** A sorted page wrote the text of its cursor for every row its sort read; it now writes it for the rows it returns. A page sorted by a stored field over 100,000 rows went from 42 ms to 20–21 ms, and one sorted by a lookup from 87–101 ms to 65 ms. The rows a page returns carry each sort part as a column of its own beside `key` and `vk_keys`; `readPage` reads them as before.
|
|
380
|
+
- **A user and a relation's name are read through one join.** A user field's id and name, and a page sorted by a relation of one record (by its record's name, or by the far field its definition sorts by), read the far record through one join of its table onto the list's rows, opened under the condition you hand for it and its soft delete, as a lookup is. A user or a record the reader may not see, one in the trash or one no row holds still reads as none. Over 100,000 rows, a page sorted by a user's name went from 2.4 s to 26–28 ms, and one sorted by a relation's name from 490 ms to 60–68 ms; a total filtered by either was already within the test kit's limit (22–25 ms and 166–189 ms).
|
|
381
|
+
- **A formula's round is cheaper.** A round spells its value's shortest decimal, as JavaScript does, twice a row. A value whose nearest 15 significant digits already read back as it, a whole number among them, now takes those digits without spelling them, and gives the same answer. A page sorted by a number divided by 3 and rounded to 2 places over 100,000 rows went from 8.5–10.8 s to 5.0–5.4 s.
|
|
382
|
+
- A search's SQL can be served by indexes, with the same matches as before. A word is matched by a `LIKE` over each field's folded text instead of `strpos`. A relation's far keys are read once per word, under the far table's own condition and soft delete. A pasted id is compared as the key's own value when the table names a `uuid`, `integer` or `bigint` key, and left out when the text can't be one.
|
|
383
|
+
- A search word of one or two characters, which no trigram index serves, reads a relation's far keys as `IN (SELECT …)`, a set Postgres hashes, instead of an array it scans for every row. A common short word that matches thousands of far records answers about twice as fast, with the same matches. Words of three characters or more are written as before, so their indexes still serve them.
|
|
384
|
+
- A text rule's `contains` and `not contains` are a `LIKE` over the folded text, so the same trigram index serves them. The bound value is the escaped pattern (`%acme%`), not the bare word.
|
|
385
|
+
- A formula's `join` is written without `concat_ws`, giving the same value, so an index can hold a formula that joins.
|
|
386
|
+
|
|
387
|
+
### Fixed
|
|
388
|
+
|
|
389
|
+
- **A page's cursor is bound to the reader's time zone whenever a built field it reads by reads the zone.** A field the
|
|
390
|
+
builder places that reads the request's time zone in its own SQL (a formula reading today, now or the day an instant
|
|
391
|
+
falls on, a rollup whose own where reads a day, and a formula, a lookup or a rollup that reads one of those) now binds
|
|
392
|
+
a page's cursor to the zone when the page sorts, filters, groups or searches by it, as a date rule already did. A
|
|
393
|
+
cursor written in one zone is refused in another (`bad-cursor`, start from the first page) instead of paging on over
|
|
394
|
+
values the other zone reads differently, where a row could repeat or be skipped. A page that reads no such field keeps
|
|
395
|
+
its cursor as before, across zones.
|
|
396
|
+
|
|
397
|
+
### Known gaps
|
|
398
|
+
|
|
399
|
+
- **A sort by a formula's number is still slow.** Spelling a number as JavaScript spells it costs microseconds a row, and a sort works it out for every row it keeps: over 100,000 rows a page sorted by a rounded number takes 5.0–5.4 s, and one sorted by a number written as text 4.3–4.6 s, against the test kit's 100 ms. A list that sorts that many rows by a formula within the limit keeps its value in a column of its own.
|
|
400
|
+
- **A sort by a converted amount is still slow.** Over 100,000 rows, through the guide's example money function over a rate table of one row a day per currency, a page sorted by an amount converted at today's rate takes 515–577 ms, and one converted on each row's own day 30.5–30.8 s, against the test kit's 100 ms.
|
|
401
|
+
|
|
402
|
+
## [0.2.0] — 2026-11-16
|
|
403
|
+
|
|
404
|
+
The builder: `@viewkitjs/postgres/definitions` builds a list's field map from your field definitions and a plain-data
|
|
405
|
+
storage declaration, with no SQL of yours, and opens every other table it reads under that table's own permission
|
|
406
|
+
condition: lookups, rollups, formulas, converted money and a user's name. `valuesQuery` reads the records a page draws,
|
|
407
|
+
in the shapes ViewKit draws them. It still depends on `@viewkitjs/fields` `^0.12.0` alone and runs nothing.
|
|
408
|
+
|
|
409
|
+
### Added
|
|
410
|
+
|
|
411
|
+
- `@viewkitjs/postgres/definitions`, a second entry: `buildFieldMap` builds the field map for a list from your field
|
|
412
|
+
definitions and a storage declaration (`AppStorage`), plain data saying per kind of record its table, its key, how the
|
|
413
|
+
key is kept and its soft-delete column, and per field where it is kept: a column, a text kept in a `uuid`, `integer`
|
|
414
|
+
or `bigint` column, a value's parts, a member of a `jsonb` column, several values in an array, a `jsonb` list or rows
|
|
415
|
+
of a kind of their own. It places relations by a column, pointing back through the inverse's column, or through a
|
|
416
|
+
link kind, and describes each far table's fields so a relation rule reads them. What comes back is a `FieldMap`
|
|
417
|
+
checked by `defineFieldMap`.
|
|
418
|
+
- Every table a relation reaches is a far read keyed `far:<kind>`, so the condition you hand for your list's own table
|
|
419
|
+
never narrows it. `reads` gives each table key its kind, its table and every column the map reads on it, so you write
|
|
420
|
+
your conditions from it and a guard can check each list.
|
|
421
|
+
- `leftOut` names each field the map can't answer in this version, by table and field, with its reason (every reason is
|
|
422
|
+
in the reference). A request naming one is refused with `unknown-field`, never answered wrongly.
|
|
423
|
+
- `handWritten`: your own entry for a field the declaration can't say; it replaces the built one wherever its kind is
|
|
424
|
+
read. `StorageError`: a storage refused at its path in your input.
|
|
425
|
+
- Lookups: a field of the record a relation of one record points at (a stored value, a value with parts or another
|
|
426
|
+
lookup), read through one join per relation onto the far table, opened under the condition you hand for it and its
|
|
427
|
+
soft delete and shared by every lookup through that relation; a list that reads no lookup writes no join. A far
|
|
428
|
+
record the reader may not see, or one in the trash, reads as no value and keeps its row. A lookup sorts by its far
|
|
429
|
+
field's value or own sort, or for a name the name as written; a lookup of a place, a range, a phone with no `sort` of
|
|
430
|
+
its own, or an amount whose currency each record carries is refused as a sort.
|
|
431
|
+
- Rollups: a count, a count of distinct values, a sum, an average, the smallest, the largest, the earliest, the latest,
|
|
432
|
+
whether any exists, whether none does, and the first by an order, over one relation or two, each hop a relation of
|
|
433
|
+
one record, several pointing back or several through a link kind. Each table it reads (the far one, the middle one
|
|
434
|
+
across two relations, a link table) is opened under the condition you hand for it and its soft delete, so a hidden or
|
|
435
|
+
trashed record counts for nothing and reaches nothing behind it, and each far record counts once. A rollup's own
|
|
436
|
+
filter narrows what it counts, a date rule included, read in the request's zone at its moment; the standing filter of
|
|
437
|
+
the relation it goes over never applies. A distinct count never counts a blank text; first puts empties last and
|
|
438
|
+
breaks a tie by the id as text; a sum and an average read as `numeric`, so no sum raises; a count is a `bigint`. A
|
|
439
|
+
list sorts by a rollup's figure, and a formula reads one.
|
|
440
|
+
- Formulas: every function of `@viewkitjs/fields`' list is worked out in SQL and gives the answer `evaluateFormula`
|
|
441
|
+
gives. Nothing a formula writes reads a session setting (a number into text as `String()` spells it, an instant as
|
|
442
|
+
`toISOString`, a day as `YYYY-MM-DD`, case mapped under the ICU root collation), so a transaction pooler needs none,
|
|
443
|
+
and nothing it writes can fail on a row: a figure past a double's range, a division by zero, a day or an instant
|
|
444
|
+
outside the years 1 to 9999 and `infinity` read as no value. A rule reading `today`, `now` or an instant's day reads
|
|
445
|
+
the request's `context`; a request without one, or with an offset for a zone, is refused when the SQL is written. A
|
|
446
|
+
kind whose name is a formula labels the relations that point at it.
|
|
447
|
+
- Converted money: `buildFieldMap` takes `money`, your one money function, `({ amount, currency, day, into }) => Sql`,
|
|
448
|
+
typed `ConvertMoney`, `MoneyAsk`, `MoneyDay` and `MoneyInto`. It is called wherever a definition converts: a stored
|
|
449
|
+
amount, a formula's or a rollup's result, and each far amount a rollup's sum, average, smallest, largest or first adds
|
|
450
|
+
up, on its far row's own day, into the currency the rollup's result names. A request names a currency per converted
|
|
451
|
+
field in `context.currencies` (`{ value: "USD" }`): that field reads, filters, sorts, adds up and pages in it, and a
|
|
452
|
+
page's cursor is bound to it; a field it names none for reads as kept beside its code. Only the list's own rows
|
|
453
|
+
convert, and nothing converts twice. A definition that converts, built with no `money`, is refused as a
|
|
454
|
+
`StorageError` at `money`; so is a `handWritten` entry for one.
|
|
455
|
+
- Users: `AppStorage.users` names the kind a user field points at. A user kept in one column, its id, is read through
|
|
456
|
+
that kind under the condition you hand for it and its soft delete, so a user the reader may not see, one in the trash
|
|
457
|
+
or an id no record holds reads as no user in a filter, a group, an option count, a filter row's values and a read by
|
|
458
|
+
id. Its name, that kind's label, is what a sort, a search and a group head read. A user kept any other way is refused
|
|
459
|
+
at its path.
|
|
460
|
+
- A field that reads itself in a loop (through a rollup, a lookup, a formula or the day an amount converts on) is left
|
|
461
|
+
out with every field on the loop, its reason naming the loop (`it reads itself: deal.amount → deal.day → … →
|
|
462
|
+
deal.amount`), and the rest of the list builds.
|
|
463
|
+
- A kind's key must be unique on its table, as the storage declaration says: a far key two records share repeats the
|
|
464
|
+
row that points at it.
|
|
465
|
+
- `valuesQuery`: the values of the records you name by key, under the same permission condition, filter and search as
|
|
466
|
+
every other statement, so you never open a table yourself to draw a page. Each record comes back once, in the order
|
|
467
|
+
you named it; a key your condition or the soft delete hides, or one that can't be a key of the table, is left out. It
|
|
468
|
+
reads 1,000 keys a statement, as a `Step`, with no cap (`VALUES_PAGE`), and needs the table's `keyStored`. Each field
|
|
469
|
+
comes as ViewKit draws it:
|
|
470
|
+
- a column or your expression as kept;
|
|
471
|
+
- a value's parts as an object, `null` when ViewKit reads it as empty (a name or a place whose parts are all null or
|
|
472
|
+
blank, a range with neither end); a name with all three of `full`, `given` and `family`, a part your map doesn't
|
|
473
|
+
place `null`;
|
|
474
|
+
- a phone as a filter reads it: `{ number, extension }` in international form (an E.164 number, an extension of
|
|
475
|
+
digits or none, `extension: null` when your map places none), otherwise its text as typed, its number, or its plain
|
|
476
|
+
value, and `null` when it has neither;
|
|
477
|
+
- an instant, kept as `timestamp` or `timestamptz`, as Postgres writes a `timestamptz` under UTC
|
|
478
|
+
(`"2026-03-07T09:00:00+00:00"`, microseconds kept, trailing zeros trimmed), whatever the connection's `TimeZone`: a
|
|
479
|
+
timestamp without a zone holds UTC. `infinity`, `-infinity` or an instant outside the years 1 to 9999 reads `null`;
|
|
480
|
+
- several values as a list (a `jsonb` column holding one value as a list of one);
|
|
481
|
+
- a relation of one record, a user field `buildFieldMap` built, and a lookup of a user as `{ id, label }` (`""` for
|
|
482
|
+
no name), `null` when its record or user is hidden or deleted; a relation of several records as a list of them.
|
|
483
|
+
- A table's `label` may be your own expression over its row, read under that table's condition wherever a label is
|
|
484
|
+
read: a search, a sort or a group by a relation to it, the names of option counts and open values, and
|
|
485
|
+
`valuesQuery`'s relations.
|
|
486
|
+
- A relation of one record may read its key with your own expression over the row it starts from (an id kept in a
|
|
487
|
+
`jsonb` member), its far record still read under its own condition.
|
|
488
|
+
- A relation of several records whose definition carries `where` reaches only the records it keeps, in every answer
|
|
489
|
+
that reads them: a rule across it, its options rule, counts, groups, open values, sort and `valuesQuery`. Its `where`
|
|
490
|
+
holds no rule across another relation, and no date or phone rule yet.
|
|
491
|
+
- `context.since`: the instant a relation's `within` reads a rule's records from. A cursor is not bound to it, so a
|
|
492
|
+
`since` worked out afresh on each request pages on.
|
|
493
|
+
- A lookup, a phone and an actor sort by the `sort` read the map gives them. A lookup sorts its read as the type it
|
|
494
|
+
shows sorts a value (options in their order); a lookup of a name, a place, a range or money sorts by its read alone.
|
|
495
|
+
Without a `sort` they are still refused as `not-yet`.
|
|
496
|
+
- A relation of one record whose definition names `sortBy` sorts by that far field, read on its far record under the
|
|
497
|
+
far table's own condition: a record the reader may not see, a deleted one or no value sorts as empty.
|
|
498
|
+
- A group or a board by such a relation opens a group, or a lane, for every far record the far table's condition lets
|
|
499
|
+
the reader see, one no row points at included, at a count of 0. A far record the reader may not see, or a deleted
|
|
500
|
+
one, opens none; a row pointing at one falls in the empty group.
|
|
501
|
+
- `fieldValuesQuery` answers a far field's values through a path of one or two relations (`company.tier`,
|
|
502
|
+
`company.contacts.role`), for a Where row inside a relation rule: every table read under its own condition, each
|
|
503
|
+
relation's own `where` applied, each value named as the list's own are.
|
|
504
|
+
|
|
505
|
+
### Changed
|
|
506
|
+
|
|
507
|
+
- A relation of one record whose definition carries `where` or `within` is refused when the map is defined, as
|
|
508
|
+
`@viewkitjs/fields` refuses it.
|
|
509
|
+
- `TableMap.label` and a one relation's `column` are typed `Read` (a column's name or a function of the row), so code
|
|
510
|
+
that reads them from a map sees a function where you gave one: `label?: string` is now `label?: Read`, and
|
|
511
|
+
`column: string` is now `column: Read`.
|
|
512
|
+
- A search or a sort by a relation whose far table names no label is still refused as `no-label`, its words now
|
|
513
|
+
"name its label in the map", since a label may be an expression.
|
|
514
|
+
- A sort by a relation that names `sortBy` no longer needs the far table's `label`. It is refused as `bad-sort` when the
|
|
515
|
+
relation holds several records or its far field isn't a number, a percent, a date or an instant, and as
|
|
516
|
+
`unknown-field` when your map doesn't place that far field (`no-fields` when it describes none of that table's).
|
|
517
|
+
- A `by` other than the type's first, on a field sorted by its `sort` alone, is refused as `bad-sort`.
|
|
518
|
+
- Groups and lanes by a relation that names `sortBy`, in the field's own order (`lifecycle`), are ordered by that far
|
|
519
|
+
field, read on the far record under its table's condition: the direction applied, a record with no value after the
|
|
520
|
+
rest, a tie by name, then by key. They were ordered by name. A relation with no `sortBy` is ordered by name, as
|
|
521
|
+
before.
|
|
522
|
+
- A group or a board by such a relation is refused as a sort by it is (`bad-sort`, `unknown-field`, `no-fields`), and
|
|
523
|
+
as `too-many` when the far table holds more than 1,000 records the reader may see, so such a relation can no longer
|
|
524
|
+
be grouped.
|
|
525
|
+
- The test kit's questions, over a hand-written map and a built one, and every formula function's SQL are now proven
|
|
526
|
+
through Prisma's raw query as well as a `pg` pool: Prisma 6 with prepared statements off (as behind a transaction
|
|
527
|
+
pooler) and Prisma 7 over `@prisma/adapter-pg`. A count from Prisma comes back as a `bigint` and a `numeric` as a
|
|
528
|
+
decimal; every reader takes them as it takes a pool's text. Nothing changes in your code.
|
|
529
|
+
|
|
530
|
+
### Fixed
|
|
531
|
+
|
|
532
|
+
- Every double the translator hands back reads as itself on any connection, whatever `extra_float_digits` the
|
|
533
|
+
connection, its role or its database sets: a record's values, a list's figures (the sum, the smallest and the
|
|
534
|
+
largest), a page's cursor when it sorts by a double, and a range's group keys and names. Before, at
|
|
535
|
+
`extra_float_digits` 0 or below, `123456.789` came back as `100000` and the greatest double as `Infinity`, a cursor
|
|
536
|
+
could be refused or repeat rows, and a range's groups were keyed `1e+05–2e+05`.
|
|
537
|
+
- A select or status rule is written `value::text = ANY(…) AND value IS NOT NULL`, so an index on its column serves it;
|
|
538
|
+
on a native enum it answers as before. It still reads an empty text as no option and is never NULL.
|
|
539
|
+
- A relation's open values are counted by the record's key, and each far record is checked and named once per value
|
|
540
|
+
kept, not once per row: over 100,000 rows they took 91–94 ms, against a limit of 500.
|
|
541
|
+
|
|
542
|
+
### For an adapter
|
|
543
|
+
|
|
544
|
+
- The figures' arrays come back as text that reads back as each double, not as `float8`. The package's own reader reads
|
|
545
|
+
both; read them yourself only if you bypass it:
|
|
546
|
+
|
|
547
|
+
| Column | Before | Now |
|
|
548
|
+
|---|---|---|
|
|
549
|
+
| `vk_sums` | `float8[]` | `text[]` |
|
|
550
|
+
| `vk_mins` | `float8[]` | `text[]` |
|
|
551
|
+
| `vk_maxes` | `float8[]` | `text[]` |
|
|
552
|
+
| `vk_counts` | `bigint[]` | `bigint[]` (unchanged) |
|
|
553
|
+
|
|
554
|
+
### Known gaps
|
|
555
|
+
|
|
556
|
+
- **Speed.** A worked-out field other than a lookup is read by a subquery per row, so a list sorted or filtered by one
|
|
557
|
+
works it out for every row it keeps. Measured over lists of 100,000 rows answered through a built map, every table
|
|
558
|
+
under a permission condition, the median of 5 calls after one warm-up, against the test kit's limits (a page of 50
|
|
559
|
+
within 100 ms, a total within 500 ms):
|
|
560
|
+
- within: a page sorted by a stored field, 44–53 ms; by a lookup, 80–82 ms, and a total filtered by one, 70–84 ms; a
|
|
561
|
+
total filtered by whether a rollup finds any record, over one relation 136–165 ms, over two 431–441 ms;
|
|
562
|
+
- not within: a page sorted by a rollup's count over one relation, 372–454 ms; over two relations, 714–1,056 ms, and
|
|
563
|
+
a total filtered by it, 974–1,376 ms; a page sorted by whether a rollup over two relations finds any record,
|
|
564
|
+
556–598 ms;
|
|
565
|
+
- not within: a page sorted by a formula's rounded number, 8.5–10.8 s, or by a formula that writes a number as text,
|
|
566
|
+
4.6–4.9 s;
|
|
567
|
+
- not within: a page sorted by an amount converted at today's rate, 570–597 ms, or on each row's own day,
|
|
568
|
+
30.7–34.2 s, through the guide's example money function over a rate table of one row a day per currency.
|
|
569
|
+
- **Not built yet**, each left out by name (`leftOut`) and never answered wrongly:
|
|
570
|
+
- an actor's name: an actor is not read from a storage;
|
|
571
|
+
- a rollup that follows a page's range, or that breaks down by an option or a time;
|
|
572
|
+
- a relation whose key sits in a `jsonb` member (the field map takes one written by hand; the storage can't say it);
|
|
573
|
+
- the main mark, the labels and a sort of several emails, phones or links kept as rows of their own;
|
|
574
|
+
- in the storage declaration, a field kept on a one-to-one sibling table, a relation of one record whose key sits on
|
|
575
|
+
the far table, whether a column can be empty, and fields read only on their own list or only when shown. Each
|
|
576
|
+
comes as an optional key, so adding one breaks no declaration.
|
|
577
|
+
|
|
578
|
+
## [0.1.0] — 2026-11-14
|
|
579
|
+
|
|
580
|
+
The first version: a list's settings as SQL text and its values, for an app on Postgres. It answers what a list asks,
|
|
581
|
+
the rows a page shows, their total, each option's count, the groups, the figures, a board's lanes, a calendar's month,
|
|
582
|
+
each view's count, an open field's values and every key a list keeps, as `@viewkitjs/fields` answers it in memory,
|
|
583
|
+
and runs nothing: you send `text` and `values` to your own database client. It depends on `@viewkitjs/fields`
|
|
584
|
+
`^0.12.0` and on no database library.
|
|
585
|
+
|
|
586
|
+
### Added
|
|
587
|
+
|
|
588
|
+
- `defineFieldMap`: where your fields live. Your tables (each with its key column and its soft-delete column, or
|
|
589
|
+
`null`), the relations between them, and per field a column, your own SQL expression over the row, or a relation;
|
|
590
|
+
the SQL type it is kept as; its parts or how its several values are kept; what a sort and a search read. The map is
|
|
591
|
+
checked once, and a `FieldMapError` names the place of anything it can't hold. A map that gives `parts` beside
|
|
592
|
+
several values kept as an array or a `jsonb` list is refused when it is defined.
|
|
593
|
+
- `keyStored` on a table of the map: how its key is kept (`uuid`, `text`, `integer` or `bigint`); a page needs it.
|
|
594
|
+
`label`: the column a person reads one of its records by, which a search by a relation and a relation's sort read.
|
|
595
|
+
A table other than the main one may carry its own `definitions` and `fields` (`TableInput`), which a relation rule
|
|
596
|
+
reads; the map holds each table's in `tableFields` (`TableFields`).
|
|
597
|
+
- The permission condition: with every request, for each table the query reaches, a function of the row returning
|
|
598
|
+
your condition, or `EVERY_ROW`. With no condition for a table it reaches, the package writes no SQL and throws a
|
|
599
|
+
`RefusedRequest`. A relation field's record reads as empty when its table's condition hides it, and every related
|
|
600
|
+
table and link table is read under its own condition.
|
|
601
|
+
- `sql`, `join`, `identifier` and `render`: SQL text built from your own code, every value a numbered parameter and
|
|
602
|
+
every name quoted.
|
|
603
|
+
- `keysQuery`: the keys of the main table's rows the reader may see, under a list's filter tree (`filter`, the same
|
|
604
|
+
one `matchesTree` reads) and its search. It keeps exactly the rows ViewKit keeps: text, numbers, dates, options and
|
|
605
|
+
yes-or-no, under and, or and not; a field of several values (kept as an array column, a `jsonb` list or rows of
|
|
606
|
+
their own in one of the map's tables), where some value matches, or every value for `is not` and `does not
|
|
607
|
+
contain`; a relation holding several records, over the related records the reader may see; a rule on a part (a
|
|
608
|
+
name's full, given or family name, a place's country, region, city or postal code, a range's low or high end); a
|
|
609
|
+
phone compared by its number, a query read in the reader's region; an actor read from its key; and relation rules,
|
|
610
|
+
any, none and every of a relation's records matching a filter of their own. Every predicate is true or false, never
|
|
611
|
+
NULL. A rule still being typed, one set aside, and a group of only those filter nothing.
|
|
612
|
+
- The search, the same one `matchesSearch` reads: every word in some field the search names, accents and case
|
|
613
|
+
folded, or the whole text a row's key. A field is searched by its `search` read when the map gives one; otherwise
|
|
614
|
+
text by its `contains`, a phone by its own `contains` rule (a word's separators stripped), an option by its label,
|
|
615
|
+
and a relation of one record by its far record's label, under that table's own condition. Numbers, dates,
|
|
616
|
+
yes-or-no and ranges are never searched.
|
|
617
|
+
- `context` on the request: the reader's time zone and the moment relative days count from, which a date rule reads,
|
|
618
|
+
and `context.region`, the reader's two-letter region, which a phone typed without its country code is read in.
|
|
619
|
+
- `pageQuery`: one page of the keys `keysQuery` keeps, in a list's sorts or by hand. Up to 3 sorts, a field once, each
|
|
620
|
+
by a whole value or by the order of a value's parts its `by` names (a name by family or given name first, a place by
|
|
621
|
+
its city, region, postal code or country, a range by either end); a relation by its records' names, read from its
|
|
622
|
+
far table's `label`. An empty value is last whichever the direction; text sorts in your database's own order.
|
|
623
|
+
`rowOrderMode: "manual"` puts the records the settings' `itemPositions` place first, bound once in a `WITH` the
|
|
624
|
+
page joins. A set-aside sort (one carrying fields' `setAside` mark) is left out of the order, unchecked; each other
|
|
625
|
+
sort keeps its place.
|
|
626
|
+
- Keyset paging: `readPage` turns the rows your driver returned into the page's keys and `next`, an opaque cursor the
|
|
627
|
+
next request hands back as `after`. A page never repeats or skips a row when others are added or removed. The
|
|
628
|
+
cursor is bound to the table, the filter, the search and the order, to the reader's zone only when a rule reads a
|
|
629
|
+
day, and to `context.region` when a rule reads a phone.
|
|
630
|
+
- Counts, each written as a `Step` (SQL text and its values, and a reader of the rows your database hands back) that
|
|
631
|
+
`answer(step, run)` runs through your own `run`. Each counts the rows `keysQuery` keeps.
|
|
632
|
+
- `totalQuery`: how many rows the list keeps, exact, or with `cap` exact up to the cap (`{ count, exact }`).
|
|
633
|
+
- `optionCountsQuery`: each option of a field counted with that field's own rules left out, every declared option and
|
|
634
|
+
the empty key listed, answered as `{ counts, labels }` (`OptionCounts`): each option's count, and the name of each
|
|
635
|
+
counted record of a relation, a user or an actor. A tag list counts each row under every distinct value it holds; a
|
|
636
|
+
relation of several records counts each row under every record it reaches; an actor counts by its key.
|
|
637
|
+
- `groupsQuery` and `groupKeysQuery`: a list split by one field as ViewKit splits it, each group's key, count, label
|
|
638
|
+
and whether it is hidden, in the group's own order (by count, name, the field's order or by hand, names in the
|
|
639
|
+
database's own text order, the empty group last), and the keys of one group's rows. A date groups by day, week,
|
|
640
|
+
month, year or the reader's rolling windows in the request's time zone, in two steps, the database reading no zone.
|
|
641
|
+
A tag list groups each row under every distinct value it holds; a relation of several records groups it by its
|
|
642
|
+
first (the record its lowest link, or pointing back its lowest far key, reaches); an actor by its key, headed by its
|
|
643
|
+
field's `sort` or `search` read, else by its kind. A place groups by its city, region or country (`group.by`), a
|
|
644
|
+
country named in the request's `locale` (`GroupsRequest.locale`), and a range by the first preset whose ends hold
|
|
645
|
+
it, else by its own ends, keyed and named by ViewKit in two steps. A set-aside group answers one group of every row,
|
|
646
|
+
as a field that makes no groups does, its field unchecked.
|
|
647
|
+
- `figuresQuery`: a list's figures over the rows its filter and search keep, as fields' `figuresOf` works them out:
|
|
648
|
+
its rows, and per number field asked the sum, the count of values present, the smallest and the largest. An average
|
|
649
|
+
and a filled count follow from them with fields' `figureFor`; unique and ratio are not the database's to answer. A
|
|
650
|
+
value reads as ViewKit reads a number: NaN, the infinities and a `numeric` beyond a double's range are no value, and
|
|
651
|
+
a blank is never a zero. A sum adds those doubles as JavaScript does, scaled inside the database so it never
|
|
652
|
+
overflows there, so a figure never raises, on a row your condition hides or on one it keeps, and a sum past a
|
|
653
|
+
double's range reads as an infinity. Money is one number per column, read as your map reads it: convert currencies
|
|
654
|
+
in your field map's expression.
|
|
655
|
+
- `figures` on a groups request: each group carries its figures beside its count, worked out in the same query, over
|
|
656
|
+
exactly the rows it counts, for a value, a date and a field that makes no groups.
|
|
657
|
+
- `fieldValuesQuery`: an open field's values (an open select's or tag list's, a relation's, a user's or an actor's),
|
|
658
|
+
the most held first, cut at 1,000 (`FIELD_VALUES_LIMIT`), each record named.
|
|
659
|
+
- `viewCountsQuery`: each view's count in one statement, at most 100 views (`VIEW_COUNTS_LIMIT`).
|
|
660
|
+
- `idsQuery`: every key a list keeps, in its page order, a page of 1,000 (`IDS_PAGE`) a step, uncapped.
|
|
661
|
+
- `groupPageQuery`: one group's rows by keyset, exactly the rows the group counts, its cursor bound to the group.
|
|
662
|
+
- `lanesQuery`: a board's lanes, every lane's count and the first 25 cards (`LANE_ROWS`) of the first 10 lanes
|
|
663
|
+
(`LANES_FILLED`), each lane's next page read by `groupPageQuery`.
|
|
664
|
+
- `calendarQuery`: a calendar's month in the request's zone in one statement, each day's count, the first 500 rows in
|
|
665
|
+
date order and every other day's first 2, at most 42 days.
|
|
666
|
+
- Refusals, each a `RefusedRequest` with its code (`RefusalCode` lists them all: a request with no map, an unknown
|
|
667
|
+
table or field, a missing or malformed condition, an unsafe mapping and these): `bad-rule` (a filter rule ViewKit
|
|
668
|
+
wouldn't accept, or one naming a part its field's type doesn't have), `bad-sort`, `bad-cursor`, `no-fields` (a
|
|
669
|
+
relation rule reaching a table whose fields the map doesn't describe), `no-label` (a search by a relation whose far
|
|
670
|
+
table names no `label`), `no-options` (a field with no options to count), `no-figure` (a figure asked of a field
|
|
671
|
+
that holds no number), `no-layout` (a board or a calendar laid out by a field that can't lay one out), `too-many`
|
|
672
|
+
(counting or grouping more than 1,000 distinct keys, `DISTINCT_LIMIT`, or a date group spanning more than 10,000
|
|
673
|
+
buckets, `DATE_BUCKET_LIMIT`: refused, never cut off) and `not-yet`, for what this version doesn't answer: a rule
|
|
674
|
+
on a link's platform; a name, a place, a phone, an actor, a user, a field of several values or a relation of several
|
|
675
|
+
records searched with no `search` read in the map; grouping a relation whose definition names its lead link
|
|
676
|
+
(`links.primary`); grouping several values of any type but a tag list.
|