viewkitjs 0.0.0-stage → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -0
- package/LICENSE.md +7 -0
- package/README.md +36 -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 +84 -0
- package/fields/dist/derived.js +126 -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 +138 -0
- package/fields/dist/query/filter.js +475 -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 +94 -0
- package/fields/dist/query/settings.js +195 -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 +114 -0
- package/fields/dist/registry.js +864 -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 +517 -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 +295 -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 +261 -3
- package/postgres/CHANGELOG.md +676 -0
- package/postgres/README.md +35 -0
- package/postgres/dist/access.d.ts +131 -0
- package/postgres/dist/access.js +168 -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 +64 -0
- package/postgres/dist/check.d.ts +53 -0
- package/postgres/dist/check.js +326 -0
- package/postgres/dist/counts.d.ts +44 -0
- package/postgres/dist/counts.js +96 -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 +174 -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 +209 -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 +88 -0
- package/postgres/dist/definitions/money.d.ts +29 -0
- package/postgres/dist/definitions/money.js +80 -0
- package/postgres/dist/definitions/place.d.ts +50 -0
- package/postgres/dist/definitions/place.js +38 -0
- package/postgres/dist/definitions/relations.d.ts +9 -0
- package/postgres/dist/definitions/relations.js +48 -0
- package/postgres/dist/definitions/rollup.d.ts +17 -0
- package/postgres/dist/definitions/rollup.js +343 -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 +75 -0
- package/postgres/dist/figures.d.ts +37 -0
- package/postgres/dist/figures.js +88 -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 +85 -0
- package/postgres/dist/groups.js +189 -0
- package/postgres/dist/ids.d.ts +8 -0
- package/postgres/dist/ids.js +16 -0
- package/postgres/dist/index.d.ts +21 -0
- package/postgres/dist/index.js +20 -0
- package/postgres/dist/kept.d.ts +36 -0
- package/postgres/dist/kept.js +43 -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 +69 -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/records.d.ts +24 -0
- package/postgres/dist/records.js +183 -0
- package/postgres/dist/refusals.d.ts +38 -0
- package/postgres/dist/refusals.js +46 -0
- package/postgres/dist/relations.d.ts +23 -0
- package/postgres/dist/relations.js +71 -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 +189 -0
- package/postgres/dist/search.d.ts +56 -0
- package/postgres/dist/search.js +152 -0
- package/postgres/dist/several.d.ts +49 -0
- package/postgres/dist/several.js +174 -0
- package/postgres/dist/sort.d.ts +104 -0
- package/postgres/dist/sort.js +368 -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 +160 -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 +705 -0
- package/postgres/docs/guides/test-kit.md +110 -0
- package/postgres/docs/index.md +11 -0
- package/postgres/docs/reference/definitions.md +41 -0
- package/postgres/docs/reference/postgres.md +108 -0
- package/views/CHANGELOG.md +3582 -0
- package/views/README.md +104 -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/docs/contract.md +1181 -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 +74 -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,295 @@
|
|
|
1
|
+
# `viewkitjs/fields/query`
|
|
2
|
+
|
|
3
|
+
This entry evaluates a view (its filter, its sorts, its grouping and its board) over rows held in memory, and holds, as data, the rules a host's own query must agree with: which operators each type offers, what a rule's value looks like, when a rule is still being typed, and how values sort and group. It is a separate entry so a bundle that only validates never loads the evaluator. A rule compares what the cell draws, and every function that reads the host's conventions takes them last. The test kit, [`viewkitjs/fields/testing`](testing.md), holds a host's own query to this entry's answers.
|
|
4
|
+
|
|
5
|
+
## Filter rules and trees
|
|
6
|
+
|
|
7
|
+
Guide: [queries](../guides/queries.md), for every section on this page.
|
|
8
|
+
|
|
9
|
+
- `FilterTree` — the root of a filter: how its items combine (`and` or `or`) and the rules and groups it holds.
|
|
10
|
+
- `FilterGroup` — a group inside a tree: `and`, `or` or `not` over its own items.
|
|
11
|
+
- `FilterNode` — one item of a tree or a group: a rule, a group, or a rule across a relation.
|
|
12
|
+
- `FilterRule` — one rule as data: the field's key, the operator, the value, optionally the part of a grouped value it reads, such as a name's given name, and its mark when it is set aside.
|
|
13
|
+
- `FilterRelationRule` — a rule across a relation: any, none or every of the far records matching their own tree, "every" being true for a record with none. A database adapter answers it; in memory it is answered from the related records the reader hands in, and without them it has no opinion and the row stays. A set-aside one has no opinion either.
|
|
14
|
+
- `FilterValue` — the value a rule holds, shaped by its operator: text, a number, a boolean, a list of keys, a pair of numbers or days (a day's end still unpicked is `""` or null), a relative window, or null.
|
|
15
|
+
- `FilterOperator` — every operator a rule may hold, across the text, number, date, range, option and boolean rules.
|
|
16
|
+
- `OptionsOperator` — the operators of an option-like value: is any of, is none of, is empty and is not empty.
|
|
17
|
+
- `BooleanOperator` — the one operator of a boolean: is.
|
|
18
|
+
- `RelativeWindow` — a relative date rule's value: a direction and a unit, such as past and week.
|
|
19
|
+
- `FILTER_OPERATORS` — the operators each field type offers, in the order a panel shows them, the first being the one it opens on. A place offers none as a whole and a derived type none of its own.
|
|
20
|
+
- `FILTER_PARTS` — the parts of each type's value a rule may name: a link's platform, a place's parts, a name's parts and a range's two ends (each read as a number); none for every other type.
|
|
21
|
+
- `filterPartsFor` — the parts of a type's value a rule may name.
|
|
22
|
+
- `operatorsFor` — the operators a type offers, for a part when one is named: text-like types open on contains, a place offers operators only on one of its parts, and a range's end takes number's operators.
|
|
23
|
+
- `operatorsForField` — the operators a field offers, read off its result for a derived field; none for a result that is one amount per currency code.
|
|
24
|
+
- `defaultOperator` — the operator a new rule on a type, or on one of its parts, opens on.
|
|
25
|
+
- `filterValueSchema` — the Zod schema of the value a type and operator store: what a route validates and an editor emits. A value still being typed is accepted, a wrong one is not: a number between, or a range's end between, with an end still empty holds `null` there.
|
|
26
|
+
- `ruleIsActive` — says whether a rule filters at all: a half-typed rule, a set-aside one, or one naming a part the type does not have, filters nothing.
|
|
27
|
+
- `whereWaits` — says whether a relation rule's where holds rules, none of which could narrow yet (each still being typed, set aside, or a group of those), read without types. Such a relation rule is still being typed and filters nothing; a where with no rules doesn't wait ("any" keeps the rows with at least one related record, "none" those with none).
|
|
28
|
+
- `matchesRule` — judges one value against one rule by the value's type. An inactive rule matches everything; for several values a rule holds when some value matches, and a refusing rule when every value does.
|
|
29
|
+
- `matchesTree` — judges one row against a tree through a reader of its fields, or a record reader that also hands in the records its relations hold. A node with no opinion (an unknown field, a rule still being typed, a rule across a relation whose records were not handed in) is dropped before its group combines, and a tree with no opinion matches.
|
|
30
|
+
- `RuleReader` — what `matchesTree` reads a row through: for a rule, the field's value type, its value and its displayed decimals, or undefined when the field is unknown and the rule is skipped.
|
|
31
|
+
- `RecordReader` — one record as a tree reads it: a reader of its fields, and optionally the records its relations hold.
|
|
32
|
+
- `RelatedReader` — the records a relation holds, each a record reader of its own, for a rule across it; undefined when they are not handed in.
|
|
33
|
+
- `MatchOptions` — the options a match takes: the column's displayed decimals, the moment that counts as now, and the conventions whose time zone places an instant on a day (UTC when unstated).
|
|
34
|
+
- `emptyTree` — a new filter tree with no items, combined with `and`.
|
|
35
|
+
- `isFilterGroup` — says whether a node is a group.
|
|
36
|
+
- `isRelationRule` — says whether a node is a rule across a relation.
|
|
37
|
+
- `treeDepth` — how deeply a tree nests, counting groups and the trees inside relation rules.
|
|
38
|
+
- `FILTER_TREE_MAX_UI_DEPTH` — the deepest a panel lets a tree nest, 3; the evaluator never truncates a deeper one.
|
|
39
|
+
|
|
40
|
+
## Text, number, date, range, name, location and link rules
|
|
41
|
+
|
|
42
|
+
### Text
|
|
43
|
+
|
|
44
|
+
- `TextFilterOperator` — the text operators: is, is not, contains, does not contain, starts with, ends with, is empty and is not empty.
|
|
45
|
+
- `TextFilterRule` — a text rule as data: an operator and the query typed.
|
|
46
|
+
- `TEXT_FILTER_OPERATORS` — the text operators in the order a picker shows them, each with its English label and whether it takes a query.
|
|
47
|
+
- `DEFAULT_TEXT_FILTER_RULE` — the text rule a panel opens on: contains, with an empty query.
|
|
48
|
+
- `textFilterNeedsQuery` — says whether a text operator takes a query; is empty and is not empty do not.
|
|
49
|
+
- `textFilterOperatorLabel` — a text operator's name in the host's words.
|
|
50
|
+
- `isTextRuleActive` — says whether a text rule narrows anything: an operator that takes a query needs one that is not blank.
|
|
51
|
+
- `nextTextRule` — the rule to store when someone picks an operator while the box holds a query: always a rule, keeping the query only when the operator takes one.
|
|
52
|
+
- `textRuleLabel` — a text rule's summary, such as `contains "acme"`, an operator's name, or the word for any.
|
|
53
|
+
- `matchesTextRule` — judges a value against a text rule, ignoring case and diacritics; emptiness is judged on the value as it stands, and an inactive rule matches everything. A list of values compares as its joined text.
|
|
54
|
+
|
|
55
|
+
### Number
|
|
56
|
+
|
|
57
|
+
- `NumberFilterOperator` — the number operators: equal, not equal, greater and less than (or equal), between, is empty and is not empty.
|
|
58
|
+
- `NumberFilterRule` — a number rule as data: an operator, its value (null while the box is empty) and, for between, the upper bound.
|
|
59
|
+
- `NUMBER_FILTER_OPERATORS` — the number operators in the order a picker shows them, each with its English label and how many boxes it needs.
|
|
60
|
+
- `DEFAULT_NUMBER_FILTER_RULE` — the number rule a panel opens on: equal, with no value.
|
|
61
|
+
- `numberFilterInputs` — how many boxes a number operator needs: none, one or two.
|
|
62
|
+
- `numberFilterOperatorLabel` — a number operator's name in the host's words.
|
|
63
|
+
- `isNumberRuleActive` — says whether a number rule is complete enough to filter; a half-typed between is not.
|
|
64
|
+
- `numberRuleLabel` — a number rule's summary, such as `> 100` or `100 – 500`, at the column's decimals and with its unit.
|
|
65
|
+
- `matchesNumberRule` — judges a value against a number rule: equality rounds both sides to the column's displayed decimals, and zero is a value, never empty. Decimal text is read as the number it is.
|
|
66
|
+
- `ruleDecimalsOf` — the decimals a number rule's `eq` and `neq` round to on a field, as the grid works them out for its column: none for a whole number, percent, currency or range, else the decimals the field states (a rollup, formula or lookup read as the field it shows), else 0 for a percent and 2 for any other; on a range, either end's, as its cell draws it: none when whole, else the decimals it states, else 0 for a percent range and 2 for any other. Hand it as `matchesRule`'s `decimals` (or a reader's `decimalsOf`), and round at it in a query that translates rules, so a list filtered there keeps the rows the grid keeps.
|
|
67
|
+
- `parseDurationInput` — reads a typed duration (`500ms`, `90s`, `2m 30s`, `1h30m`) into milliseconds; a bare number is seconds, and anything it cannot read whole is null.
|
|
68
|
+
- `formatDurationInput` — writes milliseconds as `parseDurationInput` reads them back exactly, keeping every millisecond and dropping only the zero units, in the host's decimal separator.
|
|
69
|
+
- `msToDurationUnit` — turns milliseconds into the unit a duration column stores.
|
|
70
|
+
- `durationUnitToMs` — turns a duration column's stored unit into milliseconds.
|
|
71
|
+
|
|
72
|
+
### Date
|
|
73
|
+
|
|
74
|
+
- `DateFilterOperator` — the date operators: is, is not, is before, is after, is on or before, is on or after, is between, is relative to today, is empty and is not empty.
|
|
75
|
+
- `DateFilterRule` — a date rule as data: an operator, a day and, for between, a second day, or a relative direction and unit. Days are `YYYY-MM-DD` text.
|
|
76
|
+
- `DATE_FILTER_OPERATORS` — the date operators in the order a picker shows them, each with its English label and how many days it takes.
|
|
77
|
+
- `DEFAULT_DATE_FILTER_RULE` — the date rule a panel opens on: relative, this week.
|
|
78
|
+
- `RelativeDirection` — the direction of a relative rule: past, next or this.
|
|
79
|
+
- `RelativeUnit` — the unit of a relative rule: day, week, month or year.
|
|
80
|
+
- `RELATIVE_DIRECTIONS` — the relative directions, each with its English label.
|
|
81
|
+
- `RELATIVE_UNITS` — the relative units, each with its English label.
|
|
82
|
+
- `TemporalKind` — whether a temporal value is a `date`, a calendar day, or a `datetime`, an instant.
|
|
83
|
+
- `dateFilterDates` — how many days a date operator takes: none, one or two.
|
|
84
|
+
- `dateFilterOperatorLabel` — a date operator's name in the host's words.
|
|
85
|
+
- `dateFilterRuleOf` — reads a date rule as it sits in a filter tree into the flat `DateFilterRule` the date functions take, the same conversion the evaluator judges by. A day that is not text, such as a null end of a between, reads as no day.
|
|
86
|
+
- `isDateRuleActive` — says whether a date rule filters: a relative rule needs its direction and unit, the others their days, so a between with either end empty filters nothing.
|
|
87
|
+
- `dateRuleLabel` — a date rule's summary, its days written in the host's locale, or the word for any.
|
|
88
|
+
- `matchesDateRule` — judges a value against a date rule by its calendar day in the host's time zone; a relative rule is resolved against now each time, so it moves with the clock.
|
|
89
|
+
- `resolveRelativeWindow` — the inclusive window of days a relative rule means now: this is the calendar period holding today, with weeks running Monday to Sunday; past and next run back or forward one unit from today.
|
|
90
|
+
- `valueDayKey` — the calendar day a stored date or instant means, in the host's time zone; a bare day is already a day and is never read as a UTC instant.
|
|
91
|
+
- `toDayKey` — a `Date`'s local calendar day as `YYYY-MM-DD`.
|
|
92
|
+
- `fromDayKey` — reads `YYYY-MM-DD` as a local-midnight `Date`, never as UTC; null for text that is no real day.
|
|
93
|
+
- `parseDateInput` — reads a typed date, day first for the separated forms, and accepts an ISO day and a two-digit year; a date with no year is refused. Null for anything it cannot read.
|
|
94
|
+
- `formatDayInput` — writes a stored day the way a date box shows it, `27/07/2026`.
|
|
95
|
+
|
|
96
|
+
### Range
|
|
97
|
+
|
|
98
|
+
- `RangeFilterOperator` — the range operators: any part between, entirely within, includes, at least, at most, is empty and is not empty.
|
|
99
|
+
- `RangeFilterRule` — a range rule as data: an operator, its bound or low bound, and the high bound of a two-box operator, where null is open.
|
|
100
|
+
- `RANGE_FILTER_OPERATORS` — the range operators in the order a picker shows them, each with its English label and how many boxes it needs.
|
|
101
|
+
- `DEFAULT_RANGE_FILTER_RULE` — the range rule a panel opens on: any part between, with both bounds open.
|
|
102
|
+
- `rangeFilterInputs` — how many boxes a range operator needs: none, one or two.
|
|
103
|
+
- `rangeFilterOperatorLabel` — a range operator's name in the host's words.
|
|
104
|
+
- `isRangeRuleActive` — says whether a range rule filters: a two-box operator does once either end is typed.
|
|
105
|
+
- `rangeRuleLabel` — a range rule's summary, such as `20 – 100`, `≥ 50` or `Includes 30`.
|
|
106
|
+
- `matchesRangeRule` — judges a range value against a range rule; an open end of the value reaches forever, and an empty range matches only the emptiness operators.
|
|
107
|
+
|
|
108
|
+
### Name
|
|
109
|
+
|
|
110
|
+
- `matchesNameRule` — judges a name against a text rule: on one part when a part is named, otherwise across the parts and the name as drawn, where a finding rule holds when some part has it and a refusing rule when none does. For a list of names a rule holds when some name matches, a refusing one when every name does.
|
|
111
|
+
|
|
112
|
+
### Location and link
|
|
113
|
+
|
|
114
|
+
- `LOCATION_FILTER_PARTS` — the parts of a place a rule may read, in the order a panel offers them: country, region, city and postal code.
|
|
115
|
+
- `LocationFilterPart` — one of `LOCATION_FILTER_PARTS`.
|
|
116
|
+
- `isLocationFilterPart` — says whether a value is one of the parts of a place a rule may read.
|
|
117
|
+
- `matchesLocationRule` — judges a place against a rule on one part: the country by its code, as options are read, and the other parts as text. For a list of places a rule holds when some place matches, a refusing one when every place does.
|
|
118
|
+
|
|
119
|
+
A link's platform is read through `matchesRule` with the part `platform`, from the link's address.
|
|
120
|
+
|
|
121
|
+
## Sorts
|
|
122
|
+
|
|
123
|
+
- `SortSpec` — one sort as data: the field's key, the direction, optionally the order of a grouped value it reads, such as a name's family name, and its mark when it is set aside.
|
|
124
|
+
- `SortDirection` — ascending or descending.
|
|
125
|
+
- `Comparator` — a function that orders two values.
|
|
126
|
+
- `SORT_ORDERS` — the orders each type's value may sort by, the default first: a place by city, region, country or postal code, a name by full, family or given name, a range by its low or its high end; none for every other type.
|
|
127
|
+
- `sortOrdersFor` — the orders a type's value may sort by.
|
|
128
|
+
- `SORT_COMPARATORS` — the comparator builder of each field type: text in the host's alphabet, options in declared order, several values by their main one, a relation or a user by its records' names (A to Z within each value, then compared name by name, so "Ops, Sales" comes before "Sales"), a range by its ends, a derived field by its result, and rich text not at all. Empties sort last.
|
|
129
|
+
- `comparatorFor` — the comparator for one field and, where it has several, one of its orders; a type with none, or an order it lacks, sorts its one way.
|
|
130
|
+
- `compareBy` — one comparator for a whole sort list: the first sort decides and ties fall to the next, a set-aside sort and an unknown field are skipped, empties stay last in either direction, and a money column sorts clustered by currency code.
|
|
131
|
+
- `LOCATION_ORDERS` — the orders a place groups by, and sorts by beside its postal code: city first, the default, then region and country.
|
|
132
|
+
- `LocationOrder` — one of `LOCATION_ORDERS`.
|
|
133
|
+
- `isLocationOrder` — says whether a value is one of the orders of a place.
|
|
134
|
+
- `locationSortText` — what a place sorts by in one order: the text of its city, region or postal code, or its country's name in the locale given; empty text when it has none.
|
|
135
|
+
|
|
136
|
+
## Groups and buckets
|
|
137
|
+
|
|
138
|
+
- `GroupSpec` — a view's grouping: the axis its table or list is split into sections by, and its mark when it is set aside.
|
|
139
|
+
- `GroupGranularity` — how a date grouping folds its days.
|
|
140
|
+
- `canGroupBy` — says whether a field of a type can split a table into sections, as a whole or by one of the orders its value groups by.
|
|
141
|
+
- `groupOrdersFor` — the orders a type's value groups by; none for a type that groups whole or not at all.
|
|
142
|
+
- `GROUP_ORDERS` — the orders each type's value groups by: a place by city, region or country; none for every other type.
|
|
143
|
+
- `BucketAxis` — how rows are split by one field: the field, the order of a grouped value it reads, how the buckets are ordered and in which direction, a date's granularity, the reader's placed and hidden buckets, and whether empty buckets are flagged hidden.
|
|
144
|
+
- `BucketSpec` — one bucket as the reader left it: its value, whether it shows and its position.
|
|
145
|
+
- `BucketOrderMode` — how buckets are ordered: by count, by name, in the field's own order, or by hand.
|
|
146
|
+
- `BucketGranularity` — how a date folds into buckets: by how long ago it was, by how soon it is due, or by day, week, month or year.
|
|
147
|
+
- `BucketRule` — how a type turns a value into a bucket key and a key into its label, with optionally every key a value falls under when it may fall under several (a tag list under each tag), the label a bound value carries and every key the field can produce.
|
|
148
|
+
- `BUCKET_RULES` — the bucket rule of each field type, or null for a type that cannot group; a derived type asks `bucketRuleFor`.
|
|
149
|
+
- `bucketRuleFor` — the bucket rule a field offers, read off its result for a derived field, and a place's rule for the order named: its city's or region's text, or its country's code labelled by the country's name.
|
|
150
|
+
- `ViewBucket` — one bucket of rows: its key, its label, its rows, whether it is hidden, and its figures when they were asked for.
|
|
151
|
+
- `bucketRows` — splits rows into buckets by one field, a row under every key its value falls under (a tag list under each of its tags, once each; a many relation under its first link). Placed buckets take their positions and visibility, the rest follow the axis's order and direction, unknown values trail and the empty bucket is always last; hidden buckets are returned flagged, never dropped.
|
|
152
|
+
- `dateBucketKey` — the bucket key a calendar day lands in at a granularity, the same key `bucketRows` gives a row on that day, so per-day totals from a server fold onto the buckets drawn.
|
|
153
|
+
- `dateBucketRange` — the days a date bucket holds, half-open from its first day to the day after its last; null for the empty bucket and for a key the granularity does not make.
|
|
154
|
+
- `UNCATEGORIZED_KEY` — the empty bucket's key, which always sinks to the end.
|
|
155
|
+
- `UNGROUPED_KEY` — the key of the one bucket `bucketRows` returns when the field's type cannot group.
|
|
156
|
+
|
|
157
|
+
## The board
|
|
158
|
+
|
|
159
|
+
- `canBoardByType` — says whether a board can be laid out by a type alone: a status, a select, a boolean, a relation or a user.
|
|
160
|
+
- `canBoardBy` — says whether a board can be laid out by a field: its type, or its result's type, qualifies and it holds one value, so a many relation does not.
|
|
161
|
+
- `defaultBoardField` — the field a board opens on: the preferred one when it can lay a board out, else the first field of the first type in the order status, select, boolean, relation, user. A board whose field is set aside hands it no preferred one.
|
|
162
|
+
- `BoardLaneSpec` — one column of a board as the reader left it, hidden or placed, kept per field.
|
|
163
|
+
- `boardAxis` — the axis a board hands `bucketRows`: the field, its columns in the field's own order (or by name), and the reader's hidden and placed columns for that field.
|
|
164
|
+
|
|
165
|
+
## A list's settings
|
|
166
|
+
|
|
167
|
+
- `ListSettings` — a list's whole settings as one value: the search, the layout, the filter tree, up to 3 sorts, the row order's mode and its hand-placed records, the group and its figures, the columns, the look, Show counts (`showCounts`, whether the views and the quick filters draw their counts; absent is on), and the board's and the calendar's fields, kept while the layout is another; the board's field carries its mark when it is set aside. All but the search hands straight to `evaluateView`.
|
|
168
|
+
- `ListSettingsColumn` — one column as the view places it: its key, optionally the part of its value it shows alone, whether it shows, its default width, its figure and, on a board's card, whether it starts a new line.
|
|
169
|
+
- `ListLayout` — the layout a list draws: a table, a list, a board or a calendar.
|
|
170
|
+
- `ListLook` — the view's look: density, vertical borders, the row icon, frozen identity columns and checkboxes always shown, each absent meaning the layout's own default.
|
|
171
|
+
- `LIST_SETTINGS_LIMITS` — the bounds the schema holds a value to: 3 sorts, 3 levels and 50 items per group in the filter, 200 columns, 500 group buckets, 500 board lanes, 50 group figures, 5,000 hand-placed records, a search of 200 characters, and the lengths of keys and parts.
|
|
172
|
+
- `listSettingsSchema` — the one Zod schema of a list's settings, the same in the browser, on a server and from an agent. It checks shape, not fields, and refuses, each with its reason: an unknown key at any level, a fourth sort, a field sorted twice (whole or by a part), a filter deeper than 3 levels (judged before the tree is read, so a hostile input never recurses), a group of more than 50 items, an operator ViewKit has no word for, a column or a group figure listed twice and more than 5,000 hand-placed records. It keeps a set-aside mark, refusing a reason it has no word for, and reads a date pair whose end is still empty, `""` or null, as it is stored.
|
|
173
|
+
- `LIST_SETTINGS_DEFAULTS` — a list with nothing set: a table, unfiltered, unsorted, ungrouped, its columns and look the app's own.
|
|
174
|
+
- `settingsForSaving` — the settings a saved view keeps: all of them but the search. The value handed in is left as it is.
|
|
175
|
+
- `listLookSchema` — the look's schema, shared by the settings and a person's own layer.
|
|
176
|
+
|
|
177
|
+
## A quick-filter hold
|
|
178
|
+
|
|
179
|
+
- `HeldField` — one field a hold narrows: its key and the values held on it, any of which keeps a row.
|
|
180
|
+
- `ListHold` — a list's quick-filter hold, a value of its own beside the settings and never inside them: the held fields, each once. A held value is an option key as the option counts name it (an option's value, a related record's or person's id, an actor's key, `"true"` or `"false"` for yes or no, `""` for no value). A row stays when it holds any of a field's held values and passes every held field. It is never saved with a view and never carried in a link; each app keeps it where it likes.
|
|
181
|
+
- `LIST_HOLD_LIMITS` — the bounds the schema holds a hold to: 50 held fields, 100 values a field, a key of 120 characters and a value of 200.
|
|
182
|
+
- `listHoldSchema` — the one Zod schema of a hold, the same in the browser, on a server and from an agent. It checks shape, not fields, and refuses, each with its reason: anything but a list, an unknown key on a held field, an empty key, a field held twice, a value that isn't text, and what passes the limits.
|
|
183
|
+
- `HOLD_TYPES` — the kinds of value a hold narrows, those whose values are options to pick: select, status, multiselect, relation, user, actor and yes/no.
|
|
184
|
+
- `heldInForce` — the held fields that narrow, in the hold's order: a field the list knows whose values are options and that holds a value; a yes/no only when it holds one of `"true"` and `"false"`, not both. What it leaves out stays in the hold.
|
|
185
|
+
- `withHold` — a view's filter with a hold on top: each held field in force written as an ordinary rule (any of its values, no value among them when `""` is held), after an `and` view's own items, or beside any other view kept whole as one group. The same filter when nothing held narrows. A database translator compiles the tree it returns.
|
|
186
|
+
|
|
187
|
+
## What changed over a view, and a person's own layer
|
|
188
|
+
|
|
189
|
+
- `ListSettingsChange` — what changed over a saved view: any of the settings' parts, each replacing the view's part whole; `null` removes a part the settings may leave out (the search, the row order's mode and its hand-placed records, the group's figures, Show counts, the board, the calendar), and `group: null` is "no group". A part left out is the view's. A list with no saved views changes its defaults.
|
|
190
|
+
- `listSettingsChangeSchema` — the change's schema, built part by part from the settings' own, so each part is checked as the settings check it. Refuses an unknown part and `null` on a part every list holds (the layout, the filter, the sorts, the columns, the look).
|
|
191
|
+
- `settingsChange` — what an edited value changes over a view: only the parts that differ, an optional part it drops as `null`. Equal values in another key order are no change, and a part set to `undefined` reads as absent.
|
|
192
|
+
- `applySettingsChange` — the view with a change applied. The values handed in are left as they are.
|
|
193
|
+
- `ListPersonalLayer` — a person's own layer over a shared view: their column widths by column id (a key, or `partKey(key, part)`), the groups they folded by bucket key, the layout they read the list in on a phone and their look. Nothing in it changes what the view shows, and Show counts is the view's alone.
|
|
194
|
+
- `listPersonalLayerSchema` — the layer's schema. Refuses any other key, a filter, a sort or a group among them, a width that isn't a whole number from 24 to 2,000, more than 200 widths, more than 500 folded groups and a group folded twice.
|
|
195
|
+
- `ListSettingsSeen` — the settings a person sees (`settings`), every width they see by column id (`widths`, columns the settings don't list included) and the groups they folded (`folded`).
|
|
196
|
+
- `applyPersonalLayer` — the settings with a person's layer over them: their look over the view's key by key, their width on each listed column, and with `{ phone: true }` their phone layout when they chose one. The values handed in are left as they are.
|
|
197
|
+
- `seenListSettings` — a saved view, then what changed, then a person's layer: the settings that person sees, the same in every app.
|
|
198
|
+
|
|
199
|
+
## A list's link
|
|
200
|
+
|
|
201
|
+
- `LIST_LINK_PARAMS` — the address parameters a list's link uses: `view` (the saved view it starts from), `q` (the search) and `change` (what changed over the view, where the app carries changes).
|
|
202
|
+
- `ListLinkParams` — an address's query parameters as a link reads and writes them: the standard `URLSearchParams`, typed by the part a link uses (`get`, `has`, `set`, `delete`, `toString`), so the package needs no DOM or Node types. A real `URLSearchParams` is one.
|
|
203
|
+
- `ListLinkOptions` — `carryChanges`: carry what changed over the view. Off by default: the link holds the view and the search only.
|
|
204
|
+
- `ListLinkState` — a list's state as a link writes it: the view's id (none for a list with no saved views), the settings that view holds or the list's defaults (`base`), and the settings shown now.
|
|
205
|
+
- `ListLinkReading` — what a link says: its view, what changed with the search included, and `problem` when its changes were ignored, and why.
|
|
206
|
+
- `ListLinkOpened` — a link opened: its view, the settings it shows, every set-aside rule, sort, group and board field in them, as `readListSettings` lists them, and its `problem`, if any.
|
|
207
|
+
- `ListLinkWritten` — a link written: `params`, a new `URLSearchParams` (the address handed in is left as it is), and `problem` when its changes were left out.
|
|
208
|
+
- `LIST_LINK_LIMITS` — the longest `change` a link carries: 8,000 characters, left out when written and ignored when read.
|
|
209
|
+
- `writeListLink` — the address with a list's state written into it. Only the parts that differ travel, as canonical JSON in base64url (every object's keys sorted, so one change is always one link); the search goes in `q`, trimmed. The address's other parameters are kept, and a part of the list's that is empty is removed. Changes longer than `LIST_LINK_LIMITS.change` are left out whole (`the changes are too long for a link`): the link then opens the view and its search.
|
|
210
|
+
- `readListLink` — what a link says, from a whole address (its path and fragment set apart), a query string or its parameters. A `change` longer than 8,000 characters (`the link's changes are too long`), one that doesn't decode (`the link's changes can't be read`) or one the change's schema refuses (`the link's changes don't fit a list's settings`) is ignored whole, the view and the search still read. The search is trimmed, and one longer than 200 characters is cut, never between the two halves of a character. A rule, a sort, a group or a board field that no longer fits the list is read as it is: `openListLink` sets it aside.
|
|
211
|
+
- `openListLink` — a link opened over the base the app holds for its view (`baseFor(undefined)` for a link with no view: the list's defaults), read through `readListSettings` against the list's fields (`openListLink(address, baseFor, fields)`): a rule, a sort, the group or the board's field naming a field the list no longer has is set aside, never dropped, and a set-aside mark the link carries travels untouched. The link wins: its search is the search, none when it carries none.
|
|
212
|
+
|
|
213
|
+
## What no longer fits
|
|
214
|
+
|
|
215
|
+
- `readListSettings` — a list's settings read against its fields, the one door a link's decoder, a saved view and an agent's request each read through after the schema: every rule whose field is gone, whose operator its field no longer offers, or which names a part its field no longer has is set aside, and so is every sort and the group whose field is gone or whose `by` names an order its field no longer has, and the board's field when the list no longer has it (a column on a missing field drops; the calendar's field is the app's). Each is marked with its reason in a new value (the very same value when nothing new is set aside), and every set-aside one is listed: each rule with its path, each sort with its index, the group and the board's field. The value handed in is left as it is, so a rule set aside only in memory filters again once its field is back; saving the value read saves the mark. A rule merely inactive is never set aside.
|
|
216
|
+
- `putBackRule` — the settings with the set-aside rule at a path put back, filtering again; a rule that still doesn't fit is set aside again by the next read. The very same value when the path names no set-aside rule.
|
|
217
|
+
- `removeSetAsideRule` — the settings without the set-aside rule at a path, a group or a relation's where it leaves empty going with it. The very same value when the path names no set-aside rule.
|
|
218
|
+
- `putBackSort` — the settings with the set-aside sort at an index put back, ordering again; one that still doesn't fit is set aside again by the next read. The very same value when the index names no set-aside sort.
|
|
219
|
+
- `removeSetAsideSort` — the settings without the set-aside sort at an index. The very same value when the index names no set-aside sort.
|
|
220
|
+
- `putBackGroup` — the settings with their set-aside group put back, splitting the list again; one that still doesn't fit is set aside again by the next read. The very same value when the group isn't set aside.
|
|
221
|
+
- `removeSetAsideGroup` — the settings ungrouped, when their group is set aside. The very same value when it isn't.
|
|
222
|
+
- `putBackBoardField` — the settings with the board's set-aside field put back, laying the board out again; one still missing is set aside again by the next read. The very same value when the board's field isn't set aside.
|
|
223
|
+
- `removeSetAsideBoardField` — the settings without the board's set-aside field, its lanes kept: the board opens on `defaultBoardField`'s pick. The very same value when the board's field isn't set aside.
|
|
224
|
+
- `unfitReason` — why a rule doesn't fit a list's fields, or null when it does; a rule across a relation is judged on its own field, which must be a relation naming one kind.
|
|
225
|
+
- `ListFields` — the fields a list holds, as a reading judges its rules by: a lookup of its own fields and, optionally, of a relation's far fields, without which the rules across that relation are not judged. `listFieldsOf` builds one from an index.
|
|
226
|
+
- `ListSettingsRead` — what `readListSettings` answers: the settings read (`settings`), every set-aside rule (`setAside`), every set-aside sort (`setAsideSorts`), the set-aside group (`setAsideGroup`) and the board's set-aside field (`setAsideBoardField`), the last two null when there is none.
|
|
227
|
+
- `SetAsideRule` — one set-aside rule as a reading found it: its path, the rule, its reason and whether it fits the list's fields again, so a person may put it back.
|
|
228
|
+
- `SetAsideSort` — one set-aside sort as a reading found it: its index in the sorts, the sort, its reason and whether it fits again.
|
|
229
|
+
- `SetAsideGroup` — the set-aside group as a reading found it: the group, its reason and whether it fits again.
|
|
230
|
+
- `SetAsideBoardField` — the board's set-aside field as a reading found it: its key, its reason and whether the list has it again.
|
|
231
|
+
- `RulePath` — where a rule sits in a filter: its index at the root, then inside each group, or inside each relation rule's where, on the way down.
|
|
232
|
+
- `SetAside` — the mark of what is set aside, the optional `setAside` key of a rule, a rule across a relation, a sort, the group and the board: its reason. A set-aside rule never filters, a set-aside sort never orders and a set-aside group never splits, in memory or in a database, and a set-aside board field lays no board out, until a person puts it back.
|
|
233
|
+
- `SetAsideReason` — why it was set aside: `missing-field`, `unfit-operator` (a rule's only; a rule across a relation whose field is no relation of one kind included) or `unfit-part` (a rule's part, or a sort's or the group's `by`).
|
|
234
|
+
- `SET_ASIDE_REASONS` — every reason something is set aside for, in that order.
|
|
235
|
+
|
|
236
|
+
## A list's columns and figures
|
|
237
|
+
|
|
238
|
+
- `ListColumnState` — a person's columns for one view: `widths` by column id, `hidden` ids, `visible` ids (columns hidden by default that they turned on), `order`, and `breaks` (the board only: ids that start a new line on a card; present, even empty, is their own layout). An id is a column's key, or `partKey(key, part)` for a column showing one part of its value.
|
|
239
|
+
- `ListDensity` — the density every view shares: `compact`, `default` or `spacious`. Each view spends it its own way.
|
|
240
|
+
- `partKey` — an id and one part joined: a column id (a column state, a Filter row) or a field key (Sort, Group), `::`, then the part.
|
|
241
|
+
- `parsePartKey` — splits a key at its last separator: `{ id }` for a whole value, `{ id, part }` for a part.
|
|
242
|
+
- `FigureKind` — the footer picks: `none`, `sum`, `avg`, `min`, `max`, `count`, `filled`, `unique` or `ratio`.
|
|
243
|
+
- `FIGURE_KINDS` — the figures a column may ask for: every kind but none.
|
|
244
|
+
- `ListGroupFigurePart` — a figure after the list's first in a group header: `total:` and a column id.
|
|
245
|
+
- `ListGroupSummaryPart` — one figure a group header can carry: `count`, `total` (the list's first figure) or a `ListGroupFigurePart` for each figure after it.
|
|
246
|
+
- `groupFigurePart` — the part that shows one figure: `total` for the list's first, `total:<columnId>` for every other.
|
|
247
|
+
- `isGroupSummaryPart` — says whether a stored value is a part a group header knows: `count`, `total`, or `total:` and a column id of 1 to 120 characters.
|
|
248
|
+
- `normalizeGroupSummary` — reads a stored group summary back as a set: a bare string as one part, unknown parts dropped, an unreadable value as none.
|
|
249
|
+
|
|
250
|
+
## Search
|
|
251
|
+
|
|
252
|
+
- `ViewSearch` — a search as data: the text a person typed and the fields of the list it reads.
|
|
253
|
+
- `searchWords` — a search's words: the text split on whitespace, each word folded and stripped of what is not a letter or a digit at its ends, a token left empty dropped, each word kept once; "Acme - London" is two words.
|
|
254
|
+
- `hasSearch` — says whether a search narrows anything, that is whether it has a word.
|
|
255
|
+
- `matchesSearch` — says whether a row is found by a search: every word appears in some field the search names, case and accents ignored, or, when the host names each row's id, the whole text is that id. A text-like field is searched by its own `contains` rule, a place by its text, an option by its label, a link or an actor by its name; numbers, dates, yes/no and ranges are never searched. A search with no words finds every row.
|
|
256
|
+
|
|
257
|
+
## Option counts
|
|
258
|
+
|
|
259
|
+
- `withoutOwnRules` — a filter tree with one field's own rules left out: every plain rule on that field the whole tree requires, an item of an `and` root or of an `and` group that is itself one; rules under `or` or `not`, and rules across a relation, stay. The same tree when nothing was left out.
|
|
260
|
+
- `countOptions` — each option of a filter field counted over the rows the list keeps with that field's own rules left out, under the search: a row counts once under every distinct option it holds (a tag list under each tag, a many relation under each link) and under the empty key when it holds none, a yes/no as true or false; every declared active option is listed, at 0 when no row holds it. Null for a field with no options to count.
|
|
261
|
+
- `countHoldValues` — each value a quick filter offers on a field, counted under the whole view (the field's own rules included), the search, and the hold's other fields, never the field's own hold, so a value's count is the rows a press on it shows; in `countOptions`' shape. Null for a field with no values to hold.
|
|
262
|
+
|
|
263
|
+
## Figures
|
|
264
|
+
|
|
265
|
+
- `NumberFigureKind` — the four figures that add numbers: sum, average, smallest and largest.
|
|
266
|
+
- `FigureReading` — what a column's values are, for its figure: their type, whether each holds several values, and the field they belong to, so a breakdown totals by its headline.
|
|
267
|
+
- `figureOfValues` — one column's figure over one set of rows' values, as a grid shows it: the count of values, the filled and the different ones read as a person reads them (several values by their keys, a place, a name or a phone by its text, a range by its two ends and one with neither end set as blank, a person, a related record or an actor by its key), and the sum, average, smallest and largest of the numbers, a blank not a zero. Null for none, for a ratio, and for numbers over no values.
|
|
268
|
+
- `figureOfNumbers` — the sum, average, smallest or largest of some numbers; null over none.
|
|
269
|
+
- `figureNumber` — a value read as a number for a figure: a finite number, or text that reads as one, a breakdown by its headline; null for anything else (a list, a yes/no, blank text), never a zero.
|
|
270
|
+
- `ratioOf` — sum over sum as a whole percent, from each row's numerator and denominator, a blank counted as nothing; null when the denominators add up to nothing.
|
|
271
|
+
- `ColumnFigure` — one key's figure in the shape a database answers: the sum and the count of the numbers present, the smallest and the largest, and `filled`, the values present by Filled's rules, for a column of any type. An answer without `filled` reads Filled from the count.
|
|
272
|
+
- `GroupFigures` — a list's or a group's figures in the shape a database answers: its rows, and each totalled key's `ColumnFigure`.
|
|
273
|
+
- `EMPTY_FIGURE` — the figure of no values: no sum, a count of 0, no smallest and no largest.
|
|
274
|
+
- `combineFigure` — two parts' figures as the figure of both, exactly, a missing value never a zero; `filled` adds each side's own, or its count where it carries none.
|
|
275
|
+
- `figureOf` — the figure of some numbers, a blank not counted.
|
|
276
|
+
- `figuresOf` — each key's figure over some rows, read through the reader, in the shape a database answers, its `filled` counted as `figureOfValues` counts Filled; a key the reader does not know answers the empty figure.
|
|
277
|
+
- `figureFor` — the number a figure shows, read from a group's figures, agreeing with `figureOfValues` over the same rows (Filled reading `filled`, else the count); null where there is nothing to show, and for unique and ratio, which a database does not answer this way.
|
|
278
|
+
- `ratioFigure` — a ratio from its two parts' figures: sum over sum as a whole percent, divided once; null when either part was not totalled or the denominator is empty.
|
|
279
|
+
- `isGroupFigures` — says whether a value has the shape of `GroupFigures`.
|
|
280
|
+
|
|
281
|
+
## `evaluateView` and the query kit
|
|
282
|
+
|
|
283
|
+
- `ViewQuery` — a view's query as data: its filter tree, its search, a quick-filter hold on top of the filter, its sorts, its grouping, and whether rows are ordered by the sorts or by hand, with the hand-placed positions.
|
|
284
|
+
- `ViewFieldReader` — how the evaluator reads rows: the field for a key, the display value of a field on a row, optionally the displayed decimals, optionally the currency a read amount is in, and optionally the records a row's relation holds, so a rule across it is answered in memory.
|
|
285
|
+
- `recordReaderFor` — one row as a filter tree reads it, through a view's reader: what a reader's `related` hands back for each far row.
|
|
286
|
+
- `evaluateView` — runs a view over the rows in memory: filters them under the filter and the hold (`withHold`) when they have active rules and narrows them by the search when it has words (a pasted id finding its record when the host names each row's id), sorts them by the sorts or by hand, and splits them into buckets when the view is grouped by a group not set aside. It returns the rows and the buckets, or no buckets. Asked for the figures of some keys, it also answers them for the kept rows and for each bucket.
|
|
287
|
+
- `countMatching` — counts the rows a filter tree keeps.
|
|
288
|
+
- `hasActiveRules` — says whether a filter tree has any rule that would filter in memory; a rule on an unknown field or still being typed does not count, nor does a rule across a relation unless the reader hands in related records.
|
|
289
|
+
- `applyManualOrder` — puts hand-placed rows first by their positions, the rest in the order they came in.
|
|
290
|
+
- `createQueryKit` — binds a host's conventions once: every method of the kit (the evaluator, the counts, the option counts and a quick filter's value counts, the search, the buckets, the sort and the labels) is the query function of the same name with those conventions filled in, and `with` makes a kit over changed conventions.
|
|
291
|
+
- `QueryKit` — the type of the kit `createQueryKit` returns: its conventions and the bound functions.
|
|
292
|
+
|
|
293
|
+
## Folding and collation
|
|
294
|
+
|
|
295
|
+
- `foldText` — folds text for comparison: decomposes it, drops the Latin combining marks and lowercases it, so every text rule ignores case and diacritics. Sorts and bucket names collate in the host's locale instead.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# `viewkitjs/fields/root-domain`
|
|
2
|
+
|
|
3
|
+
Import from `viewkitjs/fields/root-domain` where a domain's root is read, as a store does when it keeps a root domain beside a company's domain for "maybe the same company" hints. A root domain is read with the Public Suffix List, through the `tldts` package (MIT), a dependency of this one, which publishes the current list every week or two. Only this entry carries it: nothing else in the package imports it, so an app that never reads a root carries none of it. The [contact values guide](../guides/contact-values.md) shows it beside the domain it reads.
|
|
4
|
+
|
|
5
|
+
- `rootDomain` — the registrable domain of a clean domain (`cleanDomain`'s output): its public suffix and the one label before it, so `shop.acme.ro` gives `acme.ro` and `a.b.acme.co.uk` gives `acme.co.uk`. The list's private section counts, so `acme.github.io` is its own root. A domain under a suffix the list doesn't name is rooted at its last two labels. It gives null for a suffix alone (`co.uk`) and for a text that isn't a clean domain.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# `viewkitjs/fields/testing`
|
|
2
|
+
|
|
3
|
+
Import from `viewkitjs/fields/testing` in an app's tests, to prove that its own backend answers a list's settings as ViewKit's in-memory answer does. The kit hands the backend sample records with a field of every type and the cases where answers drift (empty values under "not", days across time zones, accents and case, several values, parts, relations, and worked-out fields), asks it questions, each question a list's settings, and compares every answer with ViewKit's own over the same records: the rows and their pages, the search, the total, each option's count, the figures and the groups. A backend is a plain object of answers, on a database or none: one that writes SQL runs it inside its answers, and the kit never sees it. The kit imports no test framework. Text is compared in the backend's own order (`orderTexts`), and the kit adds no collation of its own. The [queries guide](../guides/queries.md) says what each answer means.
|
|
4
|
+
|
|
5
|
+
## The backend
|
|
6
|
+
|
|
7
|
+
- `KitBackend` — what a backend answers: `setup` with the samples, an optional `teardown`, the rows a question keeps in pages, and optionally its order of a list of texts, the total, each option's count, each quick-filter value's count (`holdCounts`, held to `countHoldValues`), the figures and the groups. A question it leaves unanswered is reported as not checked, never as passed.
|
|
8
|
+
- `KitSamples` — what a backend loads before it is asked anything: the list's own records, the records its relations point to (companies, and the calls a company holds), the fields its search reads, and the locale its text is written in.
|
|
9
|
+
- `KitTable` — one table of sample records: its name, its fields and its records.
|
|
10
|
+
- `KitRecord` — one record: its id and each field's value as ViewKit's reader reads it, a relation as `{ id, label }` and a many relation as a list of them. A lookup's, a rollup's and a formula's value is there too, worked out by the kit at `KIT_NOW` in the first of `KIT_TIME_ZONES`, for a backend that keeps it as a plain column.
|
|
11
|
+
- `KitQuestion` — one question: a list's settings (its search included), a quick-filter hold on top of them (`hold`, only in the `hold` area's questions), the fields the search reads, the moment that counts as now and the time zone that places an instant on a day.
|
|
12
|
+
- `KitPageRequest` — where a page starts: its size, and null for the first page or the `next` the page before it answered.
|
|
13
|
+
- `KitPage` — one page of rows: their ids in order, and where the next page starts, or null after the last.
|
|
14
|
+
- `KitGroup` — one group of a grouped question: its key, its rows' ids in order and their figures. A backend may list empty groups or leave them out.
|
|
15
|
+
|
|
16
|
+
## Worked-out fields
|
|
17
|
+
|
|
18
|
+
The samples hold what the first lists work out: lookups (one of them a lookup of a lookup), every rollup function (count, distinct count, sum, average, smallest, largest, earliest, latest, exists, none and first by an order) over one relation and over two (several then several, one then several), a rollup through its own filter and one whose filter holds a date rule, and formulas (one over a lookup, one over a relation's name). The kit never types their values in: it works each out from its definition, at each question's moment and in its zone, and holds the backend to that.
|
|
19
|
+
|
|
20
|
+
- It reads only the far records the backend was handed: a far record in the trash, or one the reader may not see, reads as empty through a lookup and counts for nothing in a rollup.
|
|
21
|
+
- Over no far record a count and a distinct count are 0, exists is false and none is true; every other function is empty. A distinct count leaves empty values out. First orders by its field with empty values last in either direction, then by id in the same direction. Across two relations each far record counts once.
|
|
22
|
+
- A date rule in a rollup's filter is read at the question's moment, in its zone: one case asks it in another zone, where two calls fall on another month, so a backend that keeps the values as columns, worked out once, answers it wrongly: such a backend skips that case (`filter · calls this month, in UTC`) by name in its own test run, as `viewkitjs/postgres` does. The kit itself has no way to decline one case.
|
|
23
|
+
- A rollup's range (`within`), a breakdown, a converted amount, a formula with no rule or a named SQL function, and a field that reads itself are refused by name.
|
|
24
|
+
|
|
25
|
+
## Running the kit
|
|
26
|
+
|
|
27
|
+
- `testKitFor` — the kit for one backend: `setup` loads the samples into it and asks its text order, `teardown` lets it go, `cases` are the cases it answers, each run on its own, and `notChecked` names the rest.
|
|
28
|
+
- `runTestKit` — runs every case against a backend and reports what passed, what failed and what was not checked. When setup fails no case runs: one failure named `setup`, and every case not checked. Teardown runs either way, and when it throws that is one more failure, named `teardown`.
|
|
29
|
+
- `TestKit` — what `testKitFor` gives: setup, teardown, the cases and the names of those not checked.
|
|
30
|
+
- `KitCase` — one case: its name, its area and `run`, which resolves or throws a `KitMismatch`.
|
|
31
|
+
- `KitArea` — what a case asks about: filter, search, sort, pages, total, option counts, hold (the rows, the total, the figures, the groups and each quick-filter value's count under a quick-filter hold), figures, groups or manual order. A backend that doesn't take a hold yet leaves the `hold` area out by `kitCase.area`.
|
|
32
|
+
- `KitReport` — what `runTestKit` found: the backend's name, whose text order the answers were compared in, and the cases passed, failed (each with its message) and not checked.
|
|
33
|
+
- `KitMismatch` — the error a case throws when an answer differs from ViewKit's, its message opening with the case's name: a row missing, a row out of order, a page longer than asked or never ending, the total, an option's count, a figure, a group, the backend's own error ("the backend threw: …"), or a case run before setup. A text order the kit refuses opens with `text order:` and is reported under the failure named `setup`.
|
|
34
|
+
- `memoryBackend` — ViewKit's in-memory answer as a backend, the one every other backend is held to, and an example of a backend with no database.
|
|
35
|
+
- `kitSamples` — the samples the kit hands a backend, the same on every call.
|
|
36
|
+
- `KIT_NOW` — the moment every case counts as now.
|
|
37
|
+
- `KIT_TIME_ZONES` — the time zones the cases run in: one where an evening instant falls on the next day, and UTC.
|
|
38
|
+
|
|
39
|
+
## Using it in a test framework
|
|
40
|
+
|
|
41
|
+
Each case runs on its own, so an app wraps it in its own framework's test. In Vitest, for an app's `backend`: `const kit = testKitFor(backend); beforeAll(() => kit.setup()); afterAll(() => kit.teardown()); for (const c of kit.cases) it(c.name, () => c.run()); for (const name of kit.notChecked) it.skip(name, () => {});`. With no framework, `runTestKit` runs them all:
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
import assert from "node:assert/strict";
|
|
45
|
+
import { memoryBackend, runTestKit } from "viewkitjs/fields/testing";
|
|
46
|
+
|
|
47
|
+
const report = await runTestKit(memoryBackend());
|
|
48
|
+
assert.deepEqual(report.failed, []);
|
|
49
|
+
assert.deepEqual(report.notChecked, []);
|
|
50
|
+
assert.equal(report.textOrder, "the backend's");
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
How the answers are compared:
|
|
54
|
+
|
|
55
|
+
- Rows the sorts count equal may come in any order, the backend's own tie-break, the same on every page; every page must join up to the whole answer, each row once.
|
|
56
|
+
- A page longer than the size asked fails, and so does a short page that still names a next one; the last page names its next as null, never undefined.
|
|
57
|
+
- Groups come in exactly ViewKit's order: under a count order, groups of the same count by name in the backend's text order, then by key (see the [queries guide](../guides/queries.md)). Rows inside a group are held as rows are.
|
|
58
|
+
- An option's count left out reads as 0, and empty groups are ignored.
|
|
59
|
+
- Figures compare their counts and their values present (`filled`, read as the count where an answer carries none) exactly, and their sums, smallest and largest within 1e-9 of the larger value, or of 1 near 0. The figures cases ask Filled of columns that hold no number too: a text, a pick, a person, a relation, several values, a place, a name, a phone, a range, an actor, a yes/no and a date.
|
|
60
|
+
- A case that proves an order needs at least 3 runs of equal rows under the backend's own text order, so a text order that counts every text equal can't make every order pass.
|
|
61
|
+
|
|
62
|
+
## What it doesn't hold
|
|
63
|
+
|
|
64
|
+
- A rollup's range (`within`), a breakdown and a converted amount: the kit refuses to work them out.
|
|
65
|
+
- A record in the trash, and two relations reaching one far record twice: the samples hold neither (each call has one company), so a backend's soft delete and its distinct far records are proven by its own tests; the kit's in-memory answer reads only the far records handed in and counts each once.
|
|
66
|
+
- A relation rule whose `where` names a field the far records' reader doesn't know: the in-memory answer drops that rule while a database may stand the whole relation rule down, so the samples keep every far field known.
|
|
67
|
+
- A capped total: the kit asks the exact one.
|
|
68
|
+
- A board's lanes and a calendar's month.
|
|
69
|
+
- An open field's values.
|
|
70
|
+
- Paging inside one group: a group's rows are asked whole.
|
|
71
|
+
- Set-aside rules: a rule kept in the settings and not applied.
|
|
72
|
+
- A backend's tie-break, beyond being the same on every page.
|
|
73
|
+
|
|
74
|
+
## Speed
|
|
75
|
+
|
|
76
|
+
The speed checks time the questions a list asks most over a generated set of records, each the median of 5 calls after one warm-up, against a plan's limits. They measure the machine as much as the code, so they run as their own command, never inside a test run or a merge gate.
|
|
77
|
+
|
|
78
|
+
- `checkSpeed` — times a page of 50 under 3 sorts, the total, each option count, the figures and the groups over a plan's number of records, and reports each against its limit. A question the backend doesn't answer is named as not checked and leaves the run within its limits. Teardown runs even when setup or a question throws.
|
|
79
|
+
- `DATABASE_SPEED` — a database's plan: 100,000 records, a page within 100 ms, every other question within 500 ms.
|
|
80
|
+
- `MEMORY_SPEED` — the in-memory plan: 10,000 records, every question within 250 ms.
|
|
81
|
+
- `speedSamples` — the generated records of a given size, the same on every call.
|
|
82
|
+
- `speedReportText` — a speed report as lines a person reads: the backend and the size, each question's time against its limit, and whether all were within.
|
|
83
|
+
- `SpeedPlan` — a plan: how many records, and each question's limit in milliseconds. An app may change either.
|
|
84
|
+
- `SpeedLimits` — each question's limit, in milliseconds.
|
|
85
|
+
- `SpeedQuestion` — the questions a limit is set for: the page, the total, option counts, the figures and the groups.
|
|
86
|
+
- `SpeedReport` — a speed run: the backend, the size and limits it ran under, each question's time, the questions not checked, and whether every time was within its limit.
|
|
87
|
+
- `SpeedTiming` — one question's median time and its limit.
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# `viewkitjs/fields/types`
|
|
2
|
+
|
|
3
|
+
Import from `viewkitjs/fields/types` only for module augmentation: narrowing the entity, relation and provider names to your app's own. Do it in a module of its own, so the augmentation is read once and the rest of your code imports nothing from here. Every name here is also exported by the root entry, `viewkitjs/fields`, so an app imports types from the root otherwise.
|
|
4
|
+
|
|
5
|
+
## Field types and definitions
|
|
6
|
+
|
|
7
|
+
- `FieldType` — the twenty-four type names a field can have: `text`, `number`, `percent`, `currency`, `date`, `datetime`, `boolean`, `select`, `status`, `multiselect`, `relation`, `user`, `url`, `domain`, `email`, `phone`, `location`, `name`, `actor`, `rich_text`, `range`, `lookup`, `rollup` and `formula`. A `date` is a calendar day (`YYYY-MM-DD`, no zone); a `datetime` is an instant. A `percent` is stored from 0 to 100, so the value is the percent itself.
|
|
8
|
+
- `FieldDef` — a field as a registry holds it: a union over the field types, each member carrying the shared base (`key`, `label`, `description`, `required`, `nullable`, `emptiable`, `unique`, `edit` and `provenance`) beside the members of its own type.
|
|
9
|
+
- `FieldDefOf` — the member of `FieldDef` for one field type, picked by that type's name.
|
|
10
|
+
- `FieldSpec` — a `FieldDef` without the keys the library stamps itself (`key`, `identity`, `subtitle`, `subtitleThrough`, `subtitleTargets`, `rename` and `entity`). It is what you write for a field.
|
|
11
|
+
- `StoredOf` — the type of the value a row holds for a field definition when it holds one: what `zodFor` accepts, never `null`. A derived field stores whatever its result stores; a rollup that groups stores a `Breakdown`.
|
|
12
|
+
- `RowValueOf` — what a row holds for a field: `StoredOf`, or `null` beside it where the field is `nullable` (or may be, when its `nullable` is a plain `boolean`).
|
|
13
|
+
- `NumberCommit` — what a number editor commits: a `value` that is a number or null, and an optional `unit`.
|
|
14
|
+
|
|
15
|
+
## Specs of the simple types
|
|
16
|
+
|
|
17
|
+
- `TextualValidation` — what a text-like value may be held to: a `maxLength`, and a `pattern` that is a regular expression source. `checkFieldSpec` refuses a pattern that does not compile.
|
|
18
|
+
- `TextSpec` — the spec of a `text` field: optional validation (`minLength` as well) and a `long` format flag.
|
|
19
|
+
- `NumberSpec` — the spec of a `number` field: its storage, its validation and its number format.
|
|
20
|
+
- `PercentSpec` — the spec of a `percent` field: its storage, its validation (with `reason`, why its bounds leave 0–100, required then) and its percent format.
|
|
21
|
+
- `CurrencySpec` — the spec of a `currency` field: the currency code, an optional conversion, its storage, its validation and its currency format. A conversion is legal only beside a code that comes from a sibling field, because a code per row is what converts.
|
|
22
|
+
- `DateSpec` — the spec of a `date` field: a date style, and `ahead` for a date people look forward to, which sorts soonest first and groups by when it is due.
|
|
23
|
+
- `DatetimeSpec` — the spec of a `datetime` field: the same as a date, with a `withTime` format flag as well.
|
|
24
|
+
- `BooleanSpec` — the spec of a `boolean` field: its style, and optionally a pair of options that name the two states.
|
|
25
|
+
- `SelectSpec` — the spec of a `select` field: its options, and a vocabulary that is `closed` (the default) or `custom-values`, where the values are whatever the records hold.
|
|
26
|
+
- `StatusSpec` — the spec of a `status` field: its options, and optional groups that gather options under a label.
|
|
27
|
+
- `UrlSpec` — the spec of a `url` field: an optional `maxLength`.
|
|
28
|
+
- `ResultSpec` — the specs a rollup or a formula may produce as its `result`: text, number, percent, currency, date, datetime, boolean, select, status or url.
|
|
29
|
+
|
|
30
|
+
## Numbers, percents, money and booleans
|
|
31
|
+
|
|
32
|
+
- `NumberStorage` — how a number, percent or currency is carried in the row: `"number"` (the default) stores a JS number, and `"decimal"` stores canonical decimal text such as `"120.50"`, so no digit is lost to a binary float. `StoredOf` answers a string for a decimal field. The library does no arithmetic on either; it holds the shape and compares.
|
|
33
|
+
- `NumberValidation` — the limits on a number: `min`, `max`, `gt`, `lt`, `integer`, and `decimals`, the most fraction digits a stored value may carry. The format's `decimals` only draws; this one refuses.
|
|
34
|
+
- `NumberFormat` — what a number means: a plain number (decimals, suffix, sign, signed tone, bands) or a duration with its stored unit and a duration style. Currency and percent are types of their own, not styles of a number.
|
|
35
|
+
- `NumberBand` — one step of a figure's tone: the figure wears the band's `tone` from its `min` (inclusive) up to the next band's `min`. Bands climb, and a value below the first band's `min` draws untinted.
|
|
36
|
+
- `DurationUnit` — the unit a duration is stored in: `ms` (the default) or `s`.
|
|
37
|
+
- `PercentDisplay` — how a percent is drawn: `text`, `bar` or `ring`. It is a presentation, never a type.
|
|
38
|
+
- `PercentFormat` — the format of a percent: `decimals`, a display and bands.
|
|
39
|
+
- `CurrencyCode` — where a currency field gets its code: one code for the whole column (`{ fixed }`), the key of a sibling select that holds a code per row (`{ field }`), or, legal only inside the `result` of a rollup or formula, one amount per code (`{ perCode: true }`). A sum over amounts that each carry their own currency is not one number, so the host computes and converts them.
|
|
40
|
+
- `CurrencyConversion` — a money field read in one currency, every row converted at a day's rate: the ask's (`{ at: "today" }`), or the day of one of the row's own dates (`{ at: { field } }`), a sibling that reads as a date or an instant. An instant counts at its UTC day.
|
|
41
|
+
- `CurrencyFormat` — the format of a currency amount: `decimals`, `suffix`, `signed` and a signed tone.
|
|
42
|
+
- `BooleanStyle` — the four looks a boolean has: `checkbox`, `icon`, `marker` and `text`. A value read as a state on screen is a `status`, never a boolean drawn as a pill.
|
|
43
|
+
- `DateStyle` — how a date reads: `short` drops the year when it is the viewer's current one (`27 Sep`), `long` always carries it, `numeric` is day, month and year digits, and `relative` reads as time from now.
|
|
44
|
+
- `StringListValidation` — the limits on a list of strings: `maxItems`, and a minimum and maximum length for each item.
|
|
45
|
+
|
|
46
|
+
## Options and statuses
|
|
47
|
+
|
|
48
|
+
- `FieldOption` — the one option shape used app-wide: a `value`, a `label`, and optionally a `color`, a `mark`, an `icon` and `archived`. The `slot` is required on a status option and forbidden on a select option (`checkFieldSpec` enforces it), and the `mark` is derived for ladders.
|
|
49
|
+
- `StatusGroup` — a group of status options: a `key`, a `label`, an optional `slot`, and the values of the options it holds.
|
|
50
|
+
|
|
51
|
+
## Values of the structured types
|
|
52
|
+
|
|
53
|
+
- `LocationValue` — a place: `line1`, `line2`, `city`, `region`, `regionCode` (an ISO 3166-2 code such as `RO-CJ`), `postalCode` and `countryCode` (an ISO 3166-1 alpha-2 code such as `RO`). Each part is optional text or null.
|
|
54
|
+
- `PhoneValue` — a phone: its `number` in the international form (E.164, `+40722123456`) and its `extension`'s digits apart, or null.
|
|
55
|
+
- `NameValue` — a person's name: the full name as they write it, and its `given` and `family` parts, each text or null. The library never builds the full name from the parts.
|
|
56
|
+
- `ActorType` — who did something: `user`, `automation`, `api_key`, `engine` or `system`. An engine run is a run of the automations engine.
|
|
57
|
+
- `ActorValue` — the value of an `actor` field: a type, an `id` that is null for the system, and an optional `label`. The label is the name as it was written when the thing happened, a snapshot that is never resolved again.
|
|
58
|
+
- `RangeValue` — a low end and a high end, both inclusive; null is open (`10,001+`, `up to 50`).
|
|
59
|
+
- `RangePeriod` — the period an amount range is per: `hour`, `day`, `week`, `month` or `year`. A salary is per year, a rate per hour.
|
|
60
|
+
- `RangePreset` — a named bucket of a range, with a `key`, a `label`, and a low and a high end. It is a quick pick in the filter panel and a group by.
|
|
61
|
+
|
|
62
|
+
## Relations
|
|
63
|
+
|
|
64
|
+
- `RelationValue` — a related record as a surface shows it: its `id` and `label`, and optionally its entity, an avatar URL, a `primary` flag, a `role` and `roles`.
|
|
65
|
+
- `RelationRef` — a pointer that names its kind (`{ kind, id }`). It is what a relation that names `kinds` (even with one kind), or that carries links, stores.
|
|
66
|
+
- `RelationLink` — one link of a `many` relation that declares `links`: a `RelationRef` with its `role`, its `roles` (where both are given, `role` is the first of them) and whether it leads.
|
|
67
|
+
- `RelationLinks` — the `links` declaration of a `many` relation: the roles a link may carry, and which link leads, either the one flagged `primary` or the first by an order of kinds.
|
|
68
|
+
|
|
69
|
+
## Edit, mutability and provenance
|
|
70
|
+
|
|
71
|
+
- `FieldMutability` — who may change a value. `always` is the default; `create` sets it once, where the row is made; `never` means nobody edits it; `command` means it changes only through the entity's verbs, so every surface opens the verb menu and the host supplies the verbs.
|
|
72
|
+
- `FieldProvenance` — who is authoritative for a value when it is not the person editing it: the system, or a provider (with an optional freshness note).
|
|
73
|
+
- `FieldPatch` — one field's commit mapped onto a request body, or refused. A body comes with an optional stored value and a `settlement`; a refusal is `{ skip: true }` with an optional reason.
|
|
74
|
+
|
|
75
|
+
## Derived fields
|
|
76
|
+
|
|
77
|
+
- `RollupFn` — the function a rollup applies to the far records: `count`, `countDistinct`, `sum`, `avg`, `min`, `max`, `earliest`, `latest`, `exists`, `none` or `first`.
|
|
78
|
+
- `RollupOrder` — the order that decides which far record is first for `first`: a field and a direction, `asc` or `desc`. "The newest payment's amount" is the first payment, newest first.
|
|
79
|
+
- `RollupGroupBy` — a breakdown: one figure per option of a far select or status (`{ option }`), or per time bucket of a far date (`{ time, bucket }`, the bucket being `hour`, `day`, `week` or `month`).
|
|
80
|
+
- `RollupHeadline` — what a breakdown sorts, filters and totals by: the total, or one part.
|
|
81
|
+
- `BreakdownPart` — one part of a breakdown: a `key`, an optional `label`, a `value` that is a number or null, an optional `slot`, and a `partial` flag.
|
|
82
|
+
- `Breakdown` — a grouped rollup's value: the headline, and the parts in order. Every option is there, zeros included.
|
|
83
|
+
- `Freshness` — how current a derived value must be: `live`, `minute` or `sync`.
|
|
84
|
+
|
|
85
|
+
## Registries and entities
|
|
86
|
+
|
|
87
|
+
- `FieldEntities` — the entities a registry describes, an empty interface a host augments with its own entity names. The entity is the first half of a field's address (`entity` plus `key`), which is what a workspace's field settings and a tenant's custom fields are keyed by. Until it is augmented, an entity is any string.
|
|
88
|
+
- `FieldEntity` — the entity name type: the keys of `FieldEntities` once you have augmented it, any string otherwise.
|
|
89
|
+
|
|
90
|
+
## Names an app narrows
|
|
91
|
+
|
|
92
|
+
- `RelationKinds` — the kinds of record a relation can point at, an empty interface a host augments with its own kind names.
|
|
93
|
+
- `RelationKind` — the relation kind type: the keys of `RelationKinds` once you have augmented it, any string otherwise.
|
|
94
|
+
- `ProviderKinds` — the providers a host's values may be owned by, an empty interface a host narrows the way it narrows `RelationKinds`. Their display names are the host's too, in the message `provider.name`.
|
|
95
|
+
- `ProviderKind` — the provider name type: the keys of `ProviderKinds` once you have augmented it, any string otherwise.
|