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,1181 @@
|
|
|
1
|
+
# The rendering contract
|
|
2
|
+
|
|
3
|
+
The names the rendering speaks to the engine through, and the names an app hands in. Every name here
|
|
4
|
+
is public; nothing outside this list is. `src/contract.ts` holds the slots, states, tokens, component
|
|
5
|
+
names, port names, icon names and message namespaces as typed constants, and `src/contract.test.ts`
|
|
6
|
+
pins them to this file: a constant this file does not name, and a slot, state or `--vk-*` token this
|
|
7
|
+
file names that no constant holds, fail the package's tests. The getters and the ports' methods are
|
|
8
|
+
named here only, until the engine that implements them lands. Renaming a name
|
|
9
|
+
after a second app holds a copy is a codemod across every app, so a rename is a changelog line and a
|
|
10
|
+
codemod, never a quiet edit.
|
|
11
|
+
|
|
12
|
+
The prefix is `vk`, and it goes on what shares a global namespace: the CSS variables (`--vk-*`) and
|
|
13
|
+
the `data-slot` values (`vk-grid-row`), because `data-slot` is one attribute shared by every
|
|
14
|
+
component copy in an app. States are bare `data-*` attributes on the package's own elements, read
|
|
15
|
+
beside the slot. Message keys live under `views.*`, which is their namespace.
|
|
16
|
+
|
|
17
|
+
## What ViewKit draws, and what an app dresses
|
|
18
|
+
|
|
19
|
+
The structure and the behaviour are ViewKit's: the keys, the focus, what a screen reader says, the geometry and a
|
|
20
|
+
layout that can't break. Everything a person sees is the app's to dress, through one of these ways in:
|
|
21
|
+
|
|
22
|
+
- **a control** through a component (the components map), an atom or a body. ViewKit draws a plain control of its
|
|
23
|
+
own only where an app hands nothing, and each such place names the option, component, atom or body that replaces
|
|
24
|
+
it;
|
|
25
|
+
- **a colour, size, gap, line, radius, shadow or timing** through a `--vk-*` variable with a default (Tokens), or
|
|
26
|
+
through the app's own Tailwind scale where ViewKit's class reads it (`text-sm`, `rounded-md`);
|
|
27
|
+
- **a part** through its `data-slot` (Slots), and **a state** through its data attribute (States);
|
|
28
|
+
- **a choice a list makes** through an option with a default, today's look being the default.
|
|
29
|
+
|
|
30
|
+
`src/rendering-contract.test.ts` holds the package's rendering to this, the atoms and `src/testing` left out (an atom
|
|
31
|
+
is itself a default an app swaps). It refuses a bare `<button>`, `<input>`, `<textarea>` or `<select>`, or an element
|
|
32
|
+
with a checkbox, switch or radio role, unless it is on the check's list of ViewKit's own defaults. It refuses a look
|
|
33
|
+
fixed in a class: a raw colour (`#…`, `rgb(…)`, `hsl(…)`, `oklch(…)`) anywhere but the fallback of a `--vk-*` read,
|
|
34
|
+
a colour on Tailwind's palette (`from-black/15`, `bg-white`, `text-red-500`), or a text size, line height, letter spacing, radius, shadow, line width, underline offset or timing written as a
|
|
35
|
+
number (`text-[11px]`, `border-2`, `duration-150`). A class on Tailwind's scale passes where it reads the app's
|
|
36
|
+
theme; widths, heights, padding, gaps and positions pass, since geometry is the package's; and a mask's ramp from
|
|
37
|
+
transparent to black passes where it is a mask's value, being an alpha and not a colour. The check's lists of
|
|
38
|
+
known cases are empty: one bare control or fixed look more is refused, and a new find joins a list only with the
|
|
39
|
+
issue that removes it. It also holds every file of the display to the parts and states listed here, however a file
|
|
40
|
+
writes a mark (a JSX attribute, an object's entry or a type's member, set always or only on a condition), so each mark
|
|
41
|
+
it draws (`vk-phone`, `data-as-typed`, `data-converted`) is one an app can dress, or one of ViewKit's own named below.
|
|
42
|
+
An attribute that carries a value, such as `data-part="<part>"`, is an identifier, not a mark it reads.
|
|
43
|
+
|
|
44
|
+
## Slots
|
|
45
|
+
|
|
46
|
+
The parts of the grid, as `data-slot` values on the element that draws each. A skin styles a part
|
|
47
|
+
through its slot (`[data-slot="vk-grid-row"]`), never through a class name the package happens to
|
|
48
|
+
use; the prefix keeps that selector from reaching an element of the app's own.
|
|
49
|
+
|
|
50
|
+
| slot | the element |
|
|
51
|
+
| ------------------------------------ | --------------------------------------------------------- |
|
|
52
|
+
| `data-slot="vk-grid"` | the grid's frame: fills the box the app gives it |
|
|
53
|
+
| `data-slot="vk-grid-pan"` | the grid's sideways box, drawn only while the lab's lock is on and the screen is a touch screen: it scrolls the table sideways |
|
|
54
|
+
| `data-slot="vk-grid-scroll"` | the rows' box: the grid's one scroll area, both ways; up and down only inside `vk-grid-pan` while that is drawn |
|
|
55
|
+
| `data-slot="vk-grid-head"` | an ungrouped grid's pinned head, or a grouped grid's with `oneHeader`: its header row |
|
|
56
|
+
| `data-slot="vk-grid-header"` | the header row |
|
|
57
|
+
| `data-slot="vk-grid-header-cell"` | one column's header |
|
|
58
|
+
| `data-slot="vk-grid-row"` | one record's row |
|
|
59
|
+
| `data-slot="vk-grid-rows"` | a group's rows: only those on screen are drawn |
|
|
60
|
+
| `data-slot="vk-grid-gap"` | the rows not drawn, as tall as they are |
|
|
61
|
+
| `data-slot="vk-grid-cell"` | one value |
|
|
62
|
+
| `data-slot="vk-grid-title"` | the name's link in a title cell: the words that open the row |
|
|
63
|
+
| `data-slot="vk-grid-group"` | one group's band and its rows |
|
|
64
|
+
| `data-slot="vk-grid-group-head"` | a group's pinned head: its name bar, and its header row unless `oneHeader` is on |
|
|
65
|
+
| `data-slot="vk-grid-group-header"` | a group's name and figures |
|
|
66
|
+
| `data-slot="vk-grid-group-count"` | a group's count, in its head |
|
|
67
|
+
| `data-slot="vk-grid-group-figure"` | one of a group's figures, in its head |
|
|
68
|
+
| `data-slot="vk-grid-group-dot"` | the · before a group's count or figure |
|
|
69
|
+
| `data-slot="vk-grid-footer"` | the footer row |
|
|
70
|
+
| `data-slot="vk-grid-footer-cell"` | one column's figure |
|
|
71
|
+
| `data-slot="vk-grid-figure-label"` | a footer figure's kind ("Sum"), drawn before its value; none on a figure the app draws |
|
|
72
|
+
| `data-slot="vk-grid-figure-value"` | a footer figure's value, its suffix inside it |
|
|
73
|
+
| `data-slot="vk-grid-figure-pick"` | an empty footer cell's offer of a figure, shown under the pointer |
|
|
74
|
+
| `data-slot="vk-grid-rail"` | the left rail: the checkbox lane |
|
|
75
|
+
| `data-slot="vk-grid-frozen-shadow"` | the shadow at the pinned columns' edge, shown while they are parked: one down each group's rows, one on the column names' rail and one on the footer's |
|
|
76
|
+
| `data-slot="vk-grid-name-check"` | a row's or a titles row's box inside the name column, before the picture, on a phone with `phonePicking` |
|
|
77
|
+
| `data-slot="vk-grid-tail"` | the right tail: a row's ⋯, the header's + Add column (unless `addColumnAt` stands it in the title column's header) |
|
|
78
|
+
| `data-slot="vk-grid-row-more"` | the row's ⋯ itself: it opens the row's menu |
|
|
79
|
+
| `data-slot="vk-grid-editor"` | the open editor over a cell; a handed `TextBody` or `NumberBody` stands in a layer over the whole cell on a computer, 1px past each edge so it covers the cell's lines, the cell keeping its padding |
|
|
80
|
+
| `data-slot="vk-grid-outline"` | the outline around the focused cell or the selected range |
|
|
81
|
+
| `data-slot="vk-grid-resize-handle"` | a column's resize handle |
|
|
82
|
+
| `data-slot="vk-grid-column-menu"` | the header menu, on the `popover` route |
|
|
83
|
+
| `data-slot="vk-grid-flyout"` | a flyout a menu row opens beside its menu |
|
|
84
|
+
| `data-slot="vk-grid-group-menu"` | a group band's menu, on the `popover` route |
|
|
85
|
+
| `data-slot="vk-grid-aggregate-menu"` | the footer's figure picker, on the `popover` route |
|
|
86
|
+
| `data-slot="vk-grid-pager"` | the pager under a grid in pages (`pages`), a `<nav>` |
|
|
87
|
+
| `data-slot="vk-grid-pager-range"` | where you are among the rows ("26–50 of 213") |
|
|
88
|
+
| `data-slot="vk-grid-pager-size"` | the page-size pick, your `Button` opening your `Menu`; `data-open` while open |
|
|
89
|
+
| `data-slot="vk-grid-pager-previous"` | the previous page, your `Button` |
|
|
90
|
+
| `data-slot="vk-grid-pager-next"` | the next page, your `Button` |
|
|
91
|
+
|
|
92
|
+
ViewKit draws the name plain at rest and in the brand colour, underlined, under the pointer, on its own
|
|
93
|
+
classes. An app restyles it with a rule on `vk-grid-title` written outside any CSS layer or in a layer
|
|
94
|
+
after `utilities`, so it wins over those classes. Such a rule wins under the pointer too: an app that
|
|
95
|
+
colours the name at rest also writes its own `:hover` rule, or the name keeps the rest colour there.
|
|
96
|
+
Only the grid's titles carry the part; a title drawn on another surface names none.
|
|
97
|
+
|
|
98
|
+
Each of a group head's three parts carries `data-part="<part>"`, an identifier like `data-group-key="<key>"` rather than a state: the summary part it shows or stands before (`count`,
|
|
99
|
+
`total`, `total:<columnId>`), so an app hides one dot by it: a count in a chip with no dot is
|
|
100
|
+
`[data-slot="vk-grid-group-dot"][data-part="count"] { display: none; }` and a rule on `vk-grid-group-count`.
|
|
101
|
+
|
|
102
|
+
Board's slots (`vk-board`, `vk-board-lane`, `vk-board-lane-header`, `vk-board-card`,
|
|
103
|
+
`vk-board-add-card`) join this table when the board arrives.
|
|
104
|
+
|
|
105
|
+
The selection bar's parts (`SelectionBar`, `viewkitjs/views/selection`):
|
|
106
|
+
|
|
107
|
+
| Slot | Part |
|
|
108
|
+
| ------------------------------------ | ---------------------------------------------------------- |
|
|
109
|
+
| `data-slot="vk-selection-bar"` | the fixed box the app places (the provider's `selectionBar`) |
|
|
110
|
+
| `data-slot="vk-selection-pill"` | the pill inside it: the count, the verbs, the trash, More |
|
|
111
|
+
| `data-slot="vk-selection-chip"` | the count that clears the selection, on the desktop |
|
|
112
|
+
|
|
113
|
+
## States
|
|
114
|
+
|
|
115
|
+
Flags the rendering styles, present as an attribute when true and absent when false, so a skin
|
|
116
|
+
writes `[data-selected]` and `data-[selected]:bg-…`. A flag is present with an empty value
|
|
117
|
+
(`data-focused=""`), with two exceptions: `data-range-edge` carries one or more of `top`, `right`,
|
|
118
|
+
`bottom`, `left`, space-separated, in that order; and `data-stuck` reads `"true"` while present, so a
|
|
119
|
+
skin written for 0.5.0's `[data-stuck="true"]` still matches (at rest it is absent). The states only
|
|
120
|
+
name what holds: ViewKit draws its own look for them on its own classes, and a skin dresses them by the
|
|
121
|
+
attribute.
|
|
122
|
+
|
|
123
|
+
| state | on | means |
|
|
124
|
+
| ----------------- | ----------------- | ------------------------------------------------------ |
|
|
125
|
+
| `data-focused` | cell | the keyboard focus is here |
|
|
126
|
+
| `data-selected` | row | the row is checked |
|
|
127
|
+
| `data-hovered` | row | the app holds the row under the pointer (`GridTable`'s `hoveredRow`), drawn as a real hover draws it; a real pointer's row wears none, its look being `:hover`, so a skin dresses both |
|
|
128
|
+
| `data-editing` | cell | an editor is open here |
|
|
129
|
+
| `data-in-range` | cell | inside the selected range |
|
|
130
|
+
| `data-range-edge` | cell | which edges of the range this cell draws |
|
|
131
|
+
| `data-pending` | cell | a write is in flight |
|
|
132
|
+
| `data-invalid` | cell | the last commit was refused |
|
|
133
|
+
| `data-dragging` | header cell; a row where rows drag (the grid's don't) | being dragged |
|
|
134
|
+
| `data-empty` | cell, footer cell, grid | no value; no figure, and one can be picked; no rows |
|
|
135
|
+
| `data-frozen` | header cell, cell, footer cell | pinned to the left edge |
|
|
136
|
+
| `data-frozen-edge` | header cell, cell, footer cell | the last pinned column, where the pinned band ends, wherever the title stands |
|
|
137
|
+
| `data-scrolled` | grid | the table has scrolled sideways (`--vk-scrolled`) |
|
|
138
|
+
| `data-parked` | grid | the identity columns are parked behind the frozen band |
|
|
139
|
+
| `data-collapsed` | group | folded: its rows are hidden |
|
|
140
|
+
| `data-stuck` | head, group head, pinned footer | pinned, with content passing under it |
|
|
141
|
+
| `data-open` | header cell, footer cell, "+ Add column", a cell's "+N" (`vk-cell-more`) | its menu, or the cell's whole list, is open (ViewKit draws no look for it) |
|
|
142
|
+
| `data-desktop` | grid | the provider's `desktopQuery` matches: the grid's chrome takes its computer form (a row's and a group's ⋯ shown on hover, the row actions on hover); absent, its phone form. Where the screen can't be asked, present |
|
|
143
|
+
|
|
144
|
+
These are the grid's states. A value's own marks inside a cell stand with the atoms' states (The atoms): a phone kept
|
|
145
|
+
as typed is `data-as-typed` on its part, `vk-phone`.
|
|
146
|
+
|
|
147
|
+
`data-frozen` stands on every pinned column, so a line drawn on it rules each of them; `data-frozen-edge` stands on
|
|
148
|
+
the last alone, so `[data-frozen-edge]` rules the pinned band's edge once, also when a column was moved before the
|
|
149
|
+
name and two are pinned.
|
|
150
|
+
|
|
151
|
+
`data-pending` holds while any write to the cell is in flight, from its send to the app's answer.
|
|
152
|
+
`data-invalid` holds from the refusal of the latest write sent for the cell until the cell's next
|
|
153
|
+
write is sent; an undo or a redo is a write. `data-empty` on a cell reads the value it shows (a
|
|
154
|
+
pending value, else the row's): nothing, a blank text or an empty list; a value made of parts whose
|
|
155
|
+
parts are all empty (a money, a range) does not count as empty, and a column with no value of its
|
|
156
|
+
own (an action column) never is.
|
|
157
|
+
|
|
158
|
+
## Getters
|
|
159
|
+
|
|
160
|
+
The engine's functions the rendering calls. They return only stable structure — role, ARIA indices,
|
|
161
|
+
`data-*` identifiers, geometry — and carry no per-cell handlers; they are pure functions of their
|
|
162
|
+
arguments, created once per engine.
|
|
163
|
+
|
|
164
|
+
- `getGridProps()`
|
|
165
|
+
- `getHeaderProps(colId)`
|
|
166
|
+
- `getRowProps(rowKey, index)`
|
|
167
|
+
- `getCellProps(rowKey, colId, colIndex)`
|
|
168
|
+
|
|
169
|
+
## Row state
|
|
170
|
+
|
|
171
|
+
A row is the grid's own component, handed flat props; no hook hands a row its state, and an app reads none of them.
|
|
172
|
+
Among what changes while the person works: `selected`, `focusedColId`, `editingColId`, `rowRange` (the row's part of
|
|
173
|
+
a picked range), `pendingByCol` (the values shown before the app answers), `settlementByCol` (the cells whose write
|
|
174
|
+
waits for its answer) and `writeStateByCol` (each cell's write in flight or refused). A row is memoised on its props. An app dresses what they produce through the states above.
|
|
175
|
+
|
|
176
|
+
## Tokens
|
|
177
|
+
|
|
178
|
+
**The package owns geometry and density.** Each is a CSS variable the grid sets on its
|
|
179
|
+
frame from its scale and its state; a skin reads them and an app overrides them on the frame.
|
|
180
|
+
|
|
181
|
+
| token | what it is |
|
|
182
|
+
| ----------------- | ----------------------------------------- |
|
|
183
|
+
| `--vk-scale` | the density multiplier |
|
|
184
|
+
| `--vk-row-h` | row height |
|
|
185
|
+
| `--vk-head-h` | header height |
|
|
186
|
+
| `--vk-footer-h` | footer height |
|
|
187
|
+
| `--vk-label-h` | group band height |
|
|
188
|
+
| `--vk-line-h` | a cell's line height |
|
|
189
|
+
| `--vk-px` | horizontal cell padding |
|
|
190
|
+
| `--vk-tail-pl` | the tail button's left padding |
|
|
191
|
+
| `--vk-rail-w` | the left rail's width |
|
|
192
|
+
| `--vk-rail-gap` | the gap between rail and first cell |
|
|
193
|
+
| `--vk-tail-w` | the right tail's width |
|
|
194
|
+
| `--vk-indent` | the group indent |
|
|
195
|
+
| `--vk-frozen-w` | the frozen band's width |
|
|
196
|
+
| `--vk-scroll-mt` | scroll-margin-top for a focused row |
|
|
197
|
+
| `--vk-glyph` | glyph size in cells |
|
|
198
|
+
| `--vk-head-glyph` | glyph size in the header |
|
|
199
|
+
| `--vk-text` | cell text size |
|
|
200
|
+
| `--vk-text-xs` | small text size |
|
|
201
|
+
| `--vk-text-10` | the smallest text size |
|
|
202
|
+
| `--vk-head-text` | header text size |
|
|
203
|
+
| `--vk-scrolled` | 0 or 1: the table has scrolled sideways |
|
|
204
|
+
| `--vk-pin` | a row's frozen cells and rail: `relative` at rest, `sticky` once the rows' box is scrolled sideways |
|
|
205
|
+
| `--vk-stick` | 0 or 1: 1 while `--vk-pin` is `sticky`; it scales their sticky offsets |
|
|
206
|
+
| `--vk-parked` | 0 or 1: identity columns parked |
|
|
207
|
+
| `--vk-frozen-on` | 0 or 1: the frozen band is on |
|
|
208
|
+
| `--vk-row-py` | a rows view's vertical row padding |
|
|
209
|
+
| `--vk-head-mb` | the space under a rows view's header |
|
|
210
|
+
| `--vk-row-gap` | the gap inside a rows view's row |
|
|
211
|
+
|
|
212
|
+
`densityStyle(density)` writes the last three on the root of a rows view an app draws itself; its
|
|
213
|
+
rows read them.
|
|
214
|
+
|
|
215
|
+
**Colour is the app's, by the package's names.** The rendering paints every colour through a CSS
|
|
216
|
+
variable the app declares, spelled in a class as `text-(color:--vk-fg)` and in a value as
|
|
217
|
+
`var(--vk-ground)`, and names no variable of the app's own. An app maps each name onto its tokens
|
|
218
|
+
once; `docs/install.md` holds the block for stock shadcn.
|
|
219
|
+
|
|
220
|
+
| colour | what it paints |
|
|
221
|
+
| ---------------------- | ----------------------------------------------------- |
|
|
222
|
+
| `--vk-fg` | text |
|
|
223
|
+
| `--vk-fg-subtle` | secondary text: labels, meta, glyphs |
|
|
224
|
+
| `--vk-fg-subtlest` | hints: placeholders, units, a suffix |
|
|
225
|
+
| `--vk-fg-brand` | brand text: a link, a hovered chip |
|
|
226
|
+
| `--vk-fg-selected` | the chosen mark in a picker |
|
|
227
|
+
| `--vk-fg-on-brand` | text on a brand fill |
|
|
228
|
+
| `--vk-ground` | the ground a part paints, where it paints one |
|
|
229
|
+
| `--vk-overlay` | a floating panel's ground |
|
|
230
|
+
| `--vk-hovered` | the hover of the ground a part sits on |
|
|
231
|
+
| `--vk-pressed` | the pressed or open state of that ground |
|
|
232
|
+
| `--vk-neutral` | a neutral fill: a well, a chip, a track |
|
|
233
|
+
| `--vk-neutral-hovered` | a neutral fill under the pointer or focus |
|
|
234
|
+
| `--vk-brand` | a brand fill: a bar, a checked box, a selection edge |
|
|
235
|
+
| `--vk-brand-subtlest` | a brand wash |
|
|
236
|
+
| `--vk-danger` | a destructive colour |
|
|
237
|
+
| `--vk-danger-subtlest` | a destructive wash |
|
|
238
|
+
| `--vk-border` | the default line |
|
|
239
|
+
| `--vk-border-subtle` | a table's line |
|
|
240
|
+
| `--vk-border-bold` | a strong line |
|
|
241
|
+
| `--vk-border-brand` | a focused or editing ring |
|
|
242
|
+
|
|
243
|
+
`--vk-hovered` and `--vk-pressed` are the ground's own: an app whose grounds each tune their states
|
|
244
|
+
declares both wherever a ground declares its own, so a part takes the states of the ground nearest it.
|
|
245
|
+
The default atoms and the display also read `--vk-success`, `--vk-warning`, `--vk-info`,
|
|
246
|
+
`--vk-label-blue`, `--vk-label-green`, `--vk-label-amber`, `--vk-label-red`, `--vk-label-purple`,
|
|
247
|
+
`--vk-label-pink` and `--vk-label-teal` when the app declares them, each with a built-in fallback. The
|
|
248
|
+
selection bar reads `--vk-float-shadow`, a whole `box-shadow` value for what floats over a list, with a
|
|
249
|
+
built-in fallback. The grid's chrome (its header and footer cells, a group's name and its own buttons) draws keyboard focus as
|
|
250
|
+
`--vk-focus-ring`, a whole `box-shadow` value;
|
|
251
|
+
undeclared, `inset 0 0 0 2px var(--vk-brand)`. The views row (`/panels/react`) reads `--vk-selected`, the ground's selected state (the
|
|
252
|
+
active view's pill and the picker's chip), falling back to `--vk-neutral`; an app whose grounds tune
|
|
253
|
+
their states declares it beside `--vk-hovered` and `--vk-pressed`. The header's column glyphs ViewKit
|
|
254
|
+
draws (a field's or a type's, a binding's `AppIcon`) read `--vk-head-glyph-fg`, falling back to the
|
|
255
|
+
header's words' colour; they are drawn at 70% opacity either way, so a set colour shows at 70% of itself,
|
|
256
|
+
and an app that wants an exact colour sets it stronger. A column's own `icon` node is drawn as given. The corners come from the app's
|
|
257
|
+
Tailwind radius scale.
|
|
258
|
+
|
|
259
|
+
**The cell outlines are the app's to dress by five variables.** The line of the cell under the pointer and the
|
|
260
|
+
picked cell's ring share one geometry: `--vk-outline-radius` is the corners of both (undeclared, the app's
|
|
261
|
+
Tailwind small radius, exactly what `rounded-sm` drew), so an app that draws a picked cell straight declares `0` and the
|
|
262
|
+
hovered cell follows. Each line takes its own colour: `--vk-outline-hover` the hovered cell's (undeclared,
|
|
263
|
+
`--vk-border-bold`), `--vk-outline` the picked ring at rest (undeclared, `--vk-fg-subtle`) and
|
|
264
|
+
`--vk-outline-active` the picked ring under the pointer or while editing (undeclared, `--vk-border-brand`).
|
|
265
|
+
The hovered cell's lift is `--vk-outline-hover-shadow`, a whole `box-shadow` value; undeclared,
|
|
266
|
+
`0 1px 2px rgb(0 0 0 / 0.05)`, and `0 1px 2px rgb(0 0 0 / 0.22)` in the dark. The open editor's lift, under the
|
|
267
|
+
picked cell's ring while it is edited and under the box a value wider than its cell grows into, is
|
|
268
|
+
`--vk-editing-shadow`, a whole `box-shadow` value; undeclared, Tailwind's `shadow-lg` in black,
|
|
269
|
+
`0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.2)`, at `0.5` in the dark; `none` turns it off. The hover is CSS: the hovered cell draws its line as its own `::after`, and nothing renders as the pointer moves.
|
|
270
|
+
A picked row's lines, over the first picked row of a run and under every picked row, are `--vk-selection-edge`
|
|
271
|
+
(undeclared, `--vk-brand`); an app that declares it `transparent` shows the cells' own line there, so a picked row
|
|
272
|
+
reads by its tint alone. Nothing else in the row reads it, so the brand stays on its focus ring and its checkbox.
|
|
273
|
+
|
|
274
|
+
**The pinned edge's shadow is the app's to dress by two variables.** While the pinned columns are parked, ViewKit
|
|
275
|
+
draws a shadow at their edge (`vk-grid-frozen-shadow`), fading from `--vk-frozen-shadow` to nothing over
|
|
276
|
+
`--vk-frozen-shadow-width`. Undeclared, the colour is `rgb(0 0 0 / 0.15)`, and `rgb(0 0 0 / 0.6)` in the dark, and the
|
|
277
|
+
width `calc(var(--spacing)*1.5)`, what `w-1.5` drew (6px on Tailwind's default spacing). An app that draws its own edge
|
|
278
|
+
in its place turns it off with either variable alone (`--vk-frozen-shadow: transparent`, or
|
|
279
|
+
`--vk-frozen-shadow-width: 0px`), or with a rule on the part (`[data-slot="vk-grid-frozen-shadow"] { display: none; }`),
|
|
280
|
+
and rules the edge on `[data-frozen-edge]`.
|
|
281
|
+
|
|
282
|
+
**The page gutter is the app's, if it has one.** `--vk-gutter` is the side padding a page gives its
|
|
283
|
+
content: the grid's rows run edge to edge and line their content up with it. An app that pads its
|
|
284
|
+
pages declares it once, onto its own padding; undeclared, the grid reads `0px` and sits flush with its
|
|
285
|
+
container. `--vk-scroll-inset-bottom` is how much of the grid's foot the app covers with something it
|
|
286
|
+
floats there (a phone's bottom bar): the grid's scroll area runs underneath it, its last row scrolls
|
|
287
|
+
clear of it and a revealed cell stops above it. An app declares it on the grid's box or an ancestor;
|
|
288
|
+
undeclared, the grid reads `0px`. `--vk-panel-padding` is the inset a panel's list keeps from the
|
|
289
|
+
panel's edge, so a row's hover pill floats inside it; an app whose menus pad by a setting of their own
|
|
290
|
+
declares it onto that, and undeclared, a panel reads `0.375rem`. A row of pills on a scroll rail
|
|
291
|
+
(`HScrollRow`, `/panels/react`) is at most the viewport's width less `--vk-scroll-row-inset` (what of the
|
|
292
|
+
width is not the page's: a sidebar, undeclared `0px`), and leaves `--vk-scroll-row-end` after its last pill
|
|
293
|
+
(undeclared `1rem`).
|
|
294
|
+
|
|
295
|
+
**The gap between groups is the app's to declare.** Each group after the first stands `--vk-group-gap`
|
|
296
|
+
below the one before; undeclared, `calc(var(--spacing)*5)`, what `mt-5` drew. An app declares it on the grid
|
|
297
|
+
or an ancestor, or on one group: to stand the group after a folded one right under it,
|
|
298
|
+
`[data-slot="vk-grid-group"][data-collapsed] + [data-slot="vk-grid-group"] { --vk-group-gap: 0px; }`, which needs
|
|
299
|
+
no layer. A `margin-top` rule on the slot still works where it wins over the class (outside any layer, or in one
|
|
300
|
+
after `utilities`).
|
|
301
|
+
|
|
302
|
+
**Type, lines and timing are the app's to dress, one variable per kind.** Each is optional. Undeclared, every
|
|
303
|
+
place keeps its own value, the one shown here; declared once, on the grid, a panel or an ancestor, every place of
|
|
304
|
+
that kind takes it.
|
|
305
|
+
|
|
306
|
+
| variable | what it sets | undeclared |
|
|
307
|
+
| ----------------------- | ---------------------------------------------------------------------------- | -------------------------------------------- |
|
|
308
|
+
| `--vk-duration` | how long ViewKit's transitions and a panel's slide take | `150ms`; a cell button's caret `100ms` |
|
|
309
|
+
| `--vk-caption-text` | text under the app's smallest step: the small capitals over a panel's sections and in the group menu, the `+N` count, a candidate's badge, the selection bar's Esc, the layout's choice labels, a relation's lead mark, the date filter's note | `10px`; the group menu, the lead mark and the date note `11px` |
|
|
310
|
+
| `--vk-caption-leading` | the `+N` count's line height | `0.9rem` |
|
|
311
|
+
| `--vk-caps-tracking` | the letter spacing of a panel's section label | `0.15em` |
|
|
312
|
+
| `--vk-input-text` | the text in an editor's search and add boxes, set on the app's Input | `13px` |
|
|
313
|
+
| `--vk-panel-title-text` | a panel's title | `15px` |
|
|
314
|
+
| `--vk-sheet-text` | a phone sheet's row text | `15px` |
|
|
315
|
+
| `--vk-underline-offset` | how far a link's or a chip's underline sits below its text | `3px`; a field note and a title's open link `2px` |
|
|
316
|
+
| `--vk-underline-width` | a value link's dotted underline | `1px` |
|
|
317
|
+
| `--vk-thick-line` | the fill handle's rim and a field note's quote bar | `2px` |
|
|
318
|
+
| `--vk-selected-stroke` | how much the active view's name is thickened in the view picker | `0.4px` |
|
|
319
|
+
|
|
320
|
+
**The grid scrolls inside itself.** Its frame fills the box its app gives it: a definite height, or
|
|
321
|
+
a flex column (the frame is `height: 100%`, `flex: 1 1 0` and `min-height: 0`). Inside the frame the
|
|
322
|
+
rows' box holds the table, both ways, and each group's name bar and header row pin at its top (with
|
|
323
|
+
`oneHeader`, the one row of column names pins there and each bar under it), and with `pinFooter` the footer pins at its foot, so nothing the app pins above the grid concerns it. While the page's lab asks for the lock
|
|
324
|
+
(`setGridLab({ boxes: 2 })`) on a touch screen, it scrolls up and down only, inside an outer box that
|
|
325
|
+
scrolls sideways only, so a flick moves the table one way, as the phone's own apps do. A box with no height gets a grid that grows
|
|
326
|
+
to its rows: the page scrolls it, and its heads don't pin. The grid's rows and frozen columns sit
|
|
327
|
+
inside your `Collapse`'s clip, so the clip must crop without scrolling (`overflow: clip`, never
|
|
328
|
+
`hidden`): a clip that scrolls takes the frozen columns' sticky edge with it.
|
|
329
|
+
|
|
330
|
+
**The grid's own variables are not public.** The grid sets `--vk-drag-shift` (a header cell's
|
|
331
|
+
offset while its column is dragged to a new place), `--vk-col-w-<id>` (one column's resolved
|
|
332
|
+
width, one per column), `--vk-cols` (the columns' template on its rows' box, which every row
|
|
333
|
+
reads, and through which `GridTable`'s `fillWidth` has the columns share the grid's width), with `pinFooter`
|
|
334
|
+
`--vk-foot-at` (how far above the rows' box's edge the footer pins: the app's inset, and the selection bar
|
|
335
|
+
while rows are selected), and
|
|
336
|
+
while the lab's lock is on `--vk-hold-x` and `--vk-sx` (the offsets that hold the frozen columns, the rail, a group's name and the empty message at the left while the table is scrolled
|
|
337
|
+
sideways) for itself. They carry the prefix because they share the global namespace;
|
|
338
|
+
an app neither sets nor reads them, and they may change in any release.
|
|
339
|
+
|
|
340
|
+
## The components map
|
|
341
|
+
|
|
342
|
+
The primitives an app hands in through `ViewsProvider`, typed in `src/provider/components.ts`.
|
|
343
|
+
Modelled on Base UI's shapes, so an app on Base UI wraps its own copies thinly and an app on Radix
|
|
344
|
+
absorbs the difference in its adapter. What the types promise is a controlled `open` with
|
|
345
|
+
`onOpenChange(open, details)`, an `anchor` rather than a trigger child on the popover and the menu,
|
|
346
|
+
and no `asChild`; the tooltip takes the element it wraps as `children`. That element may be a plain
|
|
347
|
+
wrapper around the control (a disabled control is deaf to the pointer, so its reason listens on a span
|
|
348
|
+
around it): open the tooltip on a keyboard focus that lands inside it, as Radix's and Base UI's triggers do
|
|
349
|
+
on a focus that bubbles up from within, and where yours checks `:focus-visible`, check the focused element
|
|
350
|
+
(`event.target`). The slots are the ones the
|
|
351
|
+
grid's editors and menus use, each in Base UI's shape, and an adapter on Radix and one on Base UI
|
|
352
|
+
both fill every one.
|
|
353
|
+
|
|
354
|
+
`Button` · `Popover` · `Tooltip` · `Checkbox` · `Menu` · `Collapse` · `Sheet` · `AppIcon` · `Markdown`
|
|
355
|
+
|
|
356
|
+
`Button`: `ViewsButtonProps`, its children, `onClick`, `disabled`, `variant`, `size`, `type`, a class, `aria-label` and `title`, and, for the grid's own buttons when the provider's `gridButtons` is `button`, a `ref`, `tabIndex`, `aria-haspopup`, `aria-expanded`, `data-slot` and `data-open`, each forwarded to your element. A command cell's ▾ and trigger, under `gridButtons` too, and the selection chip, when the provider's `selectionBar`'s `chip` is `button`, are handed only the props named first, the chip also `data-slot`. A field row's own buttons, when the provider's `fieldRowButtons` is `button`, are handed `type`, `variant`, `size`, `className`, `aria-label`, `disabled` and `onClick` (the ▾ and the verb trigger no `onClick`: the menu opens on them), Show more also `data-slot`, and the edit target also a ref and `aria-disabled` while its write is pending, each forwarded to your element. The panels' own buttons, when the provider's `panelButtons` is `button`, are handed `type`, `variant` (`ghost`, `outline` or `secondary`), `size`, `className` and their children, each with what it needs of `onClick`, `disabled`, `aria-label`, `title`, a ref, `aria-haspopup`, `aria-expanded`, `aria-pressed`, `role`, `aria-selected`, `aria-disabled` and `aria-describedby` (a button that can't be used, described by why), `data-slot`, `data-state="open"` or `data-state="closed"` and `data-vs-row="true"`, each forwarded to your element.
|
|
357
|
+
|
|
358
|
+
`Checkbox`: `ViewsCheckboxProps`. When the provider's `gridCheckboxes` is `checkbox`, a yes/no cell in the grid draws it, handed `checked`, the column's name as `aria-label`, `tabIndex` -1 and `onCheckedChange`; a cell the grid can't write is handed `readOnly` and a press that writes nothing. When `fieldRowCheckboxes` is `checkbox`, a field row's yes/no draws it, handed `checked`, the field's name as `aria-label` and `onCheckedChange`, and no `tabIndex`, so it stays a Tab stop as the row's own switch is; a row it can't write is handed `readOnly`, and a value inside the row's own button keeps the tick box. Forward `readOnly` to your control.
|
|
359
|
+
|
|
360
|
+
`Input`, optional: a single-line text box, `ViewsInputProps`. Every editor's text box draws through it; without it the editors draw a plain `<input>`. Forward every prop to your element, `ref` included. `chrome` is `bare` (the default: a grid cell, a panel that frames the box) or `field` (your field's frame). `OPTIONAL_COMPONENT_NAMES` lists the twenty optional slots apart from `COMPONENT_NAMES`, which lists the slots you must fill.
|
|
361
|
+
|
|
362
|
+
`Command`, optional: the command list's parts (`ViewsCommandParts`), through which the editors' lists and the grid's menus on the `popover` route draw. A list reached without one throws an error naming it. An app that hands `Picker` and sets `menus: "menu"` needs none.
|
|
363
|
+
|
|
364
|
+
`Picker`, optional: a whole pick list your app draws, `ViewsPickerProps`. Handed one, the select, several-values, place and relation editors open it, handed their rows as `ViewsPickerItem` data (a value, its words, a status slot or a colour, a glyph, a line, a group), what is held, the empty row's words, the search's words, create (`onCreate`, handed what was typed, returning the value it makes), and where your app adds options from a cell, the add (`onAdd`, handed what was typed, with `adding` while your app answers and `addRefused` for its refusal, and no `onCreate`), and `form`. The body hands back `onValueChange` (the pick, or the whole new list) and `onDone` (a pick of one is made). The editor keeps the draft, what each close means, Tab, Escape, the save and, on a phone, the panel's ✕ and ✓: at `form: "phone"` your body draws none of its own and hands every change as it is made. Tab is taken before your body hears it. Left out, these editors draw from `Command`. A relation's list is filtered (a static source, by label) or fetched (a remote one, a page at a time) by the editor, never by your body: it hands every typed query to `onSearch` and draws `items` as handed, with `doing` (`searching` or `failed`), `onRetry` and `onMore` for a remote one. A relation's rows may carry a `badge` (a word telling kinds apart), a `glyph` (the record's own, unsized), an `avatarUrl` and the record's `kind`; its create rows come as `actions` (`ViewsPickerAction`), after the rows, and picking one closes the editor before it runs; a set whose field leads hands `lead` (which value leads, `onLead`, and its words). Held records come first while nothing is typed, and by the same search once something is. Its popover takes ViewKit's width and padding unless the provider's `bodyFrame` is `popover`, when it stands at your `Popover`'s own width, marked `data-vk-body="picker"`.
|
|
365
|
+
|
|
366
|
+
`LinksBody`, optional: a whole links body your app draws, `ViewsLinksBodyProps`, for a relation holding several records whose field declares `links` (each link may carry roles, and one may lead). Handed one, the set editor opens it in the grid and in a field row, in a popover on a computer and the sheet on a phone, in place of your `Picker` or ViewKit's own list; a relation with no `links` still opens those. It hands the field's name (`label`), the records as `ViewsPickerItem` data (`items`: the linked ones first, in the links' order, then the ones to add, filtered or fetched by the editor as for `Picker`, with `search`, `onSearch`, `doing`, `onRetry`, `onMore` and the create rows as `actions`), the links (`links`: `ViewsLink`s, `{ value, roles }`, in the order they stand), the field's roles in its order (`roles`: `ViewsLinkRole`s, `{ value, label, archived? }`; an archived one is handed so a link holding it shows its words and can let it go, and you offer it on that link alone), where the field leads `lead` (which value leads, `onLead`, and its words: making another lead never moves a line), what was typed on what opened it (`typed`), `autoFocus` and `form`, and in the phone's sheet `onStepChange`. The body hands back `onLinksChange` (the whole list, every change as it is made: a record linked, last and holding no role, or unlinked, a link's roles set) and `onDone` (it closes and saves the set). The editor drops from what comes back a value it never handed, a repeated link, a role the field doesn't declare, an archived role on a link that didn't hold it as the editor opened, and a role repeated; `onLead` with a value no link holds changes nothing. Unlinking the lead passes it to the first link left. The set saves with the lead first and, on each link, its roles in the key it was stored with: a link stored with `role` keeps `role` (its first role, or null), one stored with `roles` keeps `roles`, one stored with `role` alone gains `roles` beside it once it holds two or more, and a new link writes `roles` alone; a link whose roles didn't change is written as it was stored. Escape and Tab from inside your body's element are taken before your body hears them (Escape throws the set away; Tab walks your controls and closes from either end, which saves); a key in a popup your body draws outside its element, or in a level you mark `EDITOR_INNER_ESCAPE` inside it, is your body's. Its popover takes ViewKit's width and padding unless the provider's `bodyFrame` is `popover`, when it stands at your `Popover`'s own width, marked `data-vk-body="links"`.
|
|
367
|
+
|
|
368
|
+
`Calendar`, optional: a calendar over ISO days, `ViewsCalendarProps`, which the date editor draws its month through, with its own typed line, quick days and time around it. Reached without one, it throws an error naming it. Handed `DateBody`, it is never reached.
|
|
369
|
+
|
|
370
|
+
`DateBody`, optional: a whole date body your app draws, `ViewsDateBodyProps`. Handed one, the date editor opens it in every host, handed the value on the conventions' calendar (a day, or a day and a time; a date-only field's stored instant on the browser's calendar, as its cell shows it), whether it holds a time, whether it may be emptied, the quick picks (`ViewsDatePick`: the provider's `datePicks`, by default today, tomorrow and next Monday, then `none` where it may be emptied; an app asks for a week from today by naming `in-a-week` there), today, what was typed on what opened it, `autoFocus` and `form`. The body hands back `onValueChange` (every change as it is made, a typed day once it reads as one) and `onDone` (a pick that finishes the edit). The editor keeps the draft, what each close means (Escape's keep or throw-away by field type), the save and, on a phone, the panel's ✕ and ✓: at `form: "phone"` your body draws none of its own. Escape is taken before your body hears it, so a popover of your own inside the body never hears Escape either; Tab walks your body's controls and closes from either end.
|
|
371
|
+
|
|
372
|
+
`PartsBody`, optional: a whole body for a field made of parts your app draws, `ViewsPartsBodyProps`, by `kind`: `name`, `place` or `range`. Handed one, the name, place and range editors open it in the grid and in a field row, in a popover under the value (or over the cell at `gridBodyPlace` `over`, in the grid) on a computer and the sheet on a phone, handed the field's name, the draft as its parts, whether it may be emptied, what was typed on what opened it (already the first part's value where it reads as one), `autoFocus` and `form`. A name is handed `{ given, family, full }`, `full` as the editor's rule shows it: hand it back as handed unless the person typed one, and the editor keeps the full name following the parts until a name of its own is typed; a full name handed back as the parts joined follows them again. A place is handed its parts (`ViewsPlaceParts`), the boxes the field takes (`parts`, `ViewsPlacePart`s), those boxes in the country's own order (`rows`), each box's words for that country (`words`), the boxes it asks for (`required`), every country by name where the field takes the country (`countries`), the country's regions once loaded (`regions`), and `opens: "countries"` where the field takes a country and the place has none as the editor opens (read once, it stays as handed); the next render hands a new country's rows, words and regions. Its `regionCode` is the editor's, read from the region: a region named in the list (by its code, its name, its Latin name or its label, in any case) takes that region's label and code, any other has none, and a new country clears both. A range is handed its ends, the `decimals` the editor rounds to as it closes, its `unit` and its `bands`, which your body draws as picks. The body hands back `onValueChange` (the whole value, every change as it is made) and `onDone` (with no argument it closes as Enter does; `onDone("pick")` closes as a pick, a band picked). The editor keeps the draft, Escape's keep or throw-away by field type, the write check and the save and, on a phone, the panel's ✕ and ✓: at `form: "phone"` your body draws none of its own. Escape and Tab from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end); a key that starts in a popup your body draws outside its element (a list in a portal) is left to your body, and that popup carries `EDITOR_INNER_ESCAPE` on its root (from `viewkitjs/views/editors/panel`), so a popover that hears Escape on the document first leaves it to your popup. A level you draw inside your element (a list in your boxes' place) may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). Enter is your body's. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`) while you stand on one, and `null` once you are back (*The sheet's head*). Its popover takes ViewKit's width and padding unless the provider's `bodyFrame` is `popover`, when it stands at your `Popover`'s own width, marked `data-vk-body="parts"`.
|
|
373
|
+
|
|
374
|
+
`ValuesBody`, optional: a whole body for a field holding several emails, phones, links or domains, which your app draws, `ViewsValuesBodyProps`. Handed one, the value list editor opens it in the grid and in a field row, in a popover under the values (or over the cell at `gridBodyPlace` `over`, in the grid) on a computer and the sheet on a phone, handed the field's name (`label`), its type (`kind`: `email`, `phone`, `url` or `domain`), the draft as lines (`ViewsValueLine`: `{ value, label?, main }`, the main one first; `[]` when there are none, so your body draws its own line for adding one), whether a value carries a label (`labels`; false, draw none and none is saved), `holds` (`one` where the field holds one value: one line, no label, no main mark, no line to add another while it holds one), a phone's country (`region`, where a number typed without its code is read), whether it may be emptied, what was typed on what opened it (already the one line's value), `autoFocus` and `form`, and `check`, the field's own reading of a value: its reason in your app's words, or null when it reads, for your body to say as a value is added or changed. The body hands back `onValueChange` (the whole list, every change as it is made) and `onDone` (it closes as Enter does: the grid moves one row down). A line handed back as it was drawn keeps what is stored, so a phone or a link is not rewritten by opening the editor. The editor keeps the draft, Escape's keep or throw-away by field type, the write check and the save and, on a phone, the panel's ✕ and ✓: at `form: "phone"` your body draws none of its own. Escape and Tab from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end); a key that starts in a popup your body draws outside its element (a label list in a portal) is left to your body, and that popup carries `EDITOR_INNER_ESCAPE` on its root. A level you draw inside your element (a list in your rows' place) may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). Enter is your body's. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`) while you stand on one, and `null` once you are back (*The sheet's head*). Three things differ from the editor's own rows: a list the write check refuses is said once, under your body in the panel, rather than under each row; where Escape keeps, an Escape over a refused list shows the reason and a second Escape throws the edit away, where the editor's own rows hold Escape until every row reads; and focus leaving your body other than by Tab doesn't close the editor (a press outside does). Its popover takes ViewKit's width and padding unless the provider's `bodyFrame` is `popover`, when it stands at your `Popover`'s own width, marked `data-vk-body="values"`.
|
|
375
|
+
|
|
376
|
+
`TextBody`, optional: a whole body for a field typed as one string (a line of text, an email, a phone, a link, a domain, long text or rich text), which your app draws, `ViewsTextBodyProps`. Handed one, the grid's and a field row's text editors open it: in a grid cell on a computer, every text the person may write, long text and a line the cell cut off included (lifted over the rows below and the frozen columns as ViewKit's own grown editor is; a body growing past the scroll box at the last row is your body's to handle: open upward, or scroll inside), in the sheet on a phone, and in place in a field row at every width. A text opened only to be read keeps the editor's own panel. It is handed the field's name (`label`), its text type (`kind`: `text`, `url`, `domain`, `email`, `phone` or `rich_text`), whether it is a paragraph (`paragraph`: long text and rich text), the draft (`value`, a string), a phone's country (`region`, where a number typed without its code is read; the phone opens written out), what was typed on what opened it (`typed`, already the draft), `autoFocus`, `form` (`phone` in the sheet, `computer` anywhere in place), and `check`, the host's own reading of a value: its reason in your app's words, or null when it reads, for your body to say as it is typed. The body hands back `onValueChange` (the whole text, every change as it is made) and `onDone` (it closes as Enter does: the grid moves one row down). The editor keeps the draft, Escape's keep or throw-away by field type, Tab, the close's tidy (a line's line breaks become a space; a phone handed back that reads as the stored number writes nothing), the write check and the save, and it draws the reason a value is refused (under the cell, in the sheet, under a field row's box): draw none of your own at the close. Escape, Tab and ⌘ or Ctrl Enter from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end; ⌘ or Ctrl Enter closes as Enter; in place, a Tab between your controls moves the focus but your own key handlers don't hear it). Enter and Shift Enter are your body's and do what the editor's own do: on a line they call `onDone()`, in a paragraph they make a new line; a step of your own that lists choices (a phone's countries) may take Enter for its pick. A key that starts in a popup your body draws outside its element (a country list in a portal) is left to your body; that popup carries `EDITOR_INNER_ESCAPE` on its root, takes the focus while it is open, and hands it back to your body when it closes. A level you draw inside your element (a list in your box's place) may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). In place, the focus leaving your body for anywhere else closes the editor as a press outside does; a press on your body's own surface doesn't. At `form: "phone"` your body draws no ✕, ✓ or Cancel of its own: the sheet holds them. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`, as for a phone's countries) while you stand on one, and `null` once you are back (*The sheet's head*).
|
|
377
|
+
`NumberBody`, optional: a whole body for a number, money or a percent, which your app draws, `ViewsNumberBodyProps`. Handed one, the grid's and a field row's number editors open it: in the grid cell on a computer (lifted over the rows below and the frozen columns as ViewKit's own grown editor is; a body growing past the scroll box at the last row is your body's to handle), in the sheet on a phone, and in place in a field row at every width. A number formatted as a duration keeps the editor's own box. It is handed the field's name (`label`), its kind (`kind`: `number`, `money` or `percent`; a percent is stored 0 to 100, the value is the percent), the draft (`value`: a number, `null` when empty, `NaN` when what is in the box reads as no number), its unit (`unit`: money's currency code or a number's unit) and the units it may be put in (`units`; absent, the unit is shown with nothing to press), the digits the field keeps (`decimals`), its limits (`min`, `max`; a percent 0 and 100 unless the field widens them), how your people write a number (`locale`, and `decimal`, the separator where your app states one), whether it may be emptied (`empty`), where the figure stands (`align`: `end` in the grid, `start` in a field row), what was typed on what opened it (`typed`; `value` is its reading, or `NaN`), `autoFocus`, `form` (`phone` in the sheet, `computer` anywhere in place), and `check`, the host's own reading of a value and its unit, asked with the value rounded to `decimals`: its reason in your app's words, or null. The body hands back `onValueChange` (a number, never text: `null` when its box is emptied, `NaN` for text that reads as no number, and the unit when it is one of `units`; every change as it is made) and `onDone` (it closes as Enter does: the grid moves one row down). Read what is typed in your box with `locale` and `decimal`; the editor rounds to `decimals`, so hand what was typed. The editor keeps the draft, the rounding, Escape's keep or throw-away by field type, Tab, the close (`NaN` writes nothing; empty clears only where it may be emptied; a value that rounds to the stored one writes nothing), the write check and the save, and it draws the reason a value is refused: draw none of your own at the close. A unit handed back that isn't one of `units` is ignored. Escape, Tab and ⌘ or Ctrl Enter from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end; ⌘ or Ctrl Enter closes as Enter). Enter, Shift Enter and Alt Enter are your body's and call `onDone()`, as the editor's own box closes on Enter with any modifier; your own unit list may take Enter for its pick. A key that starts in a popup your body draws outside its element (a unit list in a portal) is left to your body; that popup carries `EDITOR_INNER_ESCAPE` on its root, takes the focus while it is open, and hands it back to your body when it closes. A level you draw inside your element may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). In place, the focus leaving your body for anywhere else closes the editor as a press outside does; a press on your body's own surface doesn't. At `form: "phone"` your body draws no ✕, ✓ or Cancel of its own: the sheet holds them.
|
|
378
|
+
|
|
379
|
+
`SortBody`, optional: the sort editor's whole body, which your app draws, `ViewsSortBodyProps`. Handed one, the sort pill opens it in place of ViewKit's own sort editor: in its popover on a computer (or your `host`, where the toolbar is handed one) and in the Sheet on a phone, and so does anything else that opens `SortEditor` or `useSortEditor`'s body. It is handed the sort's name (`label`), the fields the list sorts by (`options`, each its sort key, its words and the direction a new rule takes, and, marked as the grid's header marks its column, its field's `type`, the `part` it sorts by and the header's `glyph`, drawn with your icons; the three absent for an option your app built with no column behind it), the rules in order, the first sorting first (`rules`, each a sort key and `asc` or `desc`), the sorts set aside after them (`setAside`, each holding one of the places until it is put back or deleted; `[]` when there are none), how many rules at most (`max`, a set-aside sort holding one of the places), `form`, and `addSort`, true on a computer where what holds it has no + of its own (the dashed Sort, while only set-aside sorts stand, and a pill handed `addAfter={false}`), so Add sort stands at your body's foot; a phone's body always has one. The body hands back `onRulesChange` (the whole rules in order and, when handed, the set-aside sorts kept, any left out deleted, absent keeping every one; every change as it is made: a move, a direction, a removal, an added rule, a set-aside sort put back or deleted) and `onDone` (the job is done and what holds it closes). On a phone where the sheet's head doesn't draw them (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which takes the rules and the set-aside sorts back to what they were as the sheet opened) and ✓ (`done`, which keeps them) for its own head; on a computer, and under `head`, where the sheet holds them, it is handed none. ViewKit keeps the rest: it checks each list against the rules (each rule one of `options`, each field sorted once, each set-aside sort one the list holds, `max` at most, a set-aside sort counted) and writes nothing when one breaks them; it keeps the latest rules between renders, so two changes before the next render both land; on a computer it closes the popover when the last rule goes with no set-aside sort left; and it keeps what ✕ takes back to. The + after the pill, the empty Sort and Sort on the row's right open your `FieldsBody` where you hand one, else ViewKit's own list of fields. A body that ignores `setAside` shows an empty panel at the dashed Sort, where only set-aside sorts stand.
|
|
380
|
+
|
|
381
|
+
`FilterBody`, optional: the filter editor's whole body, which your app draws, `ViewsFilterBodyProps`. Handed one, an advanced filter's pill opens it in place of ViewKit's own filter editor on a computer (in its popover, or your `host`), and Filter opens it in the Sheet on a phone, and so does anything else that opens `FilterEditor`, `PhoneFilterEditor` or `usePhoneFilterEditor`'s body. It is handed the filter's name (`label`), the fields a rule may name (`fields`, each its key, words, `fieldKey`, `part` and `type`, a relation with its `far` fields one level in), the level it is open on (`filter`, `viewkitjs/fields/query`'s `FilterGroup`: on a computer the advanced filter's own group, a top joined by Or as one group of its own; on a phone the whole filter; its items rules, groups and relation rules, a rule or relation rule set aside kept where it sits), how many levels deep its rules may stand (`levels`, its own the first: 2 for an advanced filter's group, 3 on a phone, so the view never stands more than 3 deep), whether it may exclude its matches (`excludable`, `op: "not"`: an advanced filter's own group, never a top or a where), `relation` where the level is a relation rule's where edited in place (its field key, words and quantifier; its rules name its far fields; and `gone`, present only where the list no longer lists the relation: why, in words, "Its relation is no longer in this list", for your Add filter's disabled reason), `form`, and `ruleValue`, a rule's value in ViewKit's own body for its type, for your body to place where a rule's value opens, each change handed back as the rule with its new value (null for a rule set aside or a way taking no value). The body hands back `onFilterChange` (the whole level and, at a relation edited in place, its quantifier; every change as it is made: a rule added, changed or removed, a join turned, a group made, matches excluded) and `onDone` (the job is done and what holds it closes). A rule held until whole is your body's to hold: hand it back once whole. On a phone where the sheet's head doesn't draw them (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which takes the filter back to what it was as the sheet opened) and ✓ (`done`, which keeps it); on a computer, and under `head`, it is handed none. ViewKit keeps the rest: it checks each level against the rules (its join `and` or `or`, `not` only where `excludable`; `levels` deep at most; 50 items at most in each container; each rule a field it may name and a way that field offers, with a value that way stores; each relation rule one of the relations, never inside another, `any`, `none` or `every`; each rule still set aside one the level held, unchanged; under a relation the list no longer lists, each rule one the level held, unchanged, so its rules may be deleted and never added or changed) and writes nothing when one breaks them; it writes through its own editor's state, so the first edit in a top joined by Or wraps it into one advanced filter and the pills' keys follow; a level handed back empty on a computer takes its advanced filter away and closes the popover, and on a phone the sheet stays on it; and it keeps what ✕ takes back to.
|
|
382
|
+
|
|
383
|
+
`FieldsBody`, optional: the field list's whole body, which your app draws, `ViewsFieldsBodyProps`. Handed one, ViewKit opens it wherever it opens its own sort or filter field list, in place of its own rows: for a sort, the empty Sort, Sort on the row's right and the + after the sort pill, and, inside ViewKit's own sort editor, Add sort, a rule's field and a set-aside sort's field; for a filter, Filter and the + on the bar, a filter's field on the bar, a set-aside filter's field, and, inside ViewKit's own filter editor on a computer and on a phone, Add filter and a rule's field. It stands where ViewKit's list would: in the popover under what opened it on a computer, and on a page of the editor's sheet on a phone, under the sheet's own head, so it takes no `actions`. It is handed what the pick is for (`purpose`: `sort` or `filter`), the list's name (`label`), its search's words (`search`), the fields in order as `ViewsFieldsBodyField` data (each its `key`, its words, its field's `type`, the `part` it reads and its column's `glyph`, all three as the grid's header marks its column, and, where it can't be picked, why, in `disabled`: a field another rule sorts says "Sorted"; for a filter, each relation with its `far` fields one level in, where a rule can name one), the field being changed (`own`, absent where a pick adds) and `form`. It hands back one pick through `onPick` (the field's key, and for a far field the far field's key too), and `onDone` closes what holds it with no pick. ViewKit writes the pick as its own list's would, and writes nothing for a key it didn't hand or handed `disabled`.
|
|
384
|
+
|
|
385
|
+
`FilterPartBody`, optional: a filter rule's way and value, which your app draws, `ViewsFilterPartBodyProps`. Handed one, a rule's way and its value open it wherever ViewKit draws them itself, in place of its ways menu and its value body: a filter on the bar, and a rule in ViewKit's own filter editor, in a popover on a computer and on a page of the sheet on a phone (no `actions`, as `FieldsBody`). It never opens inside `FilterBody`'s `ruleValue`, which stays ViewKit's own value body. It is handed which part opened it (`part`: `way` or `value`), the part's name (`label`), the rule as data (`rule`: its field key, part, way and value; one waiting for its value holds its way's empty value), the field it names (`field`, a far field for a far rule, its `type` saying the ways and the value each stores), the ways its field offers (`ways`, each its operator and its words), ViewKit's own value body (`own`, for a type your body doesn't draw; null at `way`) and `form`. It hands back the rule changed through `onRuleChange`: a new way is written as ViewKit's own writes one, its value kept where it still fits and emptied where not, whatever value comes with it; a value is written once its way can hold it, or emptied (the rule then waits for its value). ViewKit writes nothing for a rule naming another field or part, a way its field doesn't offer or a value its way can't hold, and keeps a rule held until whole, the Or top's wrap and the bar's keys. `onDone` closes what holds it.
|
|
386
|
+
|
|
387
|
+
`SearchField`, optional: the toolbar's search box, which your app draws, `ViewsSearchFieldProps`. Handed one, the search opens it wherever it opens its own field, in place of its frame's glass, field and ✕, on a computer and on a phone: from its button on the row and beside the phone's views, and filling its line in the narrow panel and on a phone with no views. It is handed the value, `onChange` (every keystroke), the placeholder, its name (`label`), `searching` and its words (`searchingLabel`), the clear (`onClear`, its name in `clearLabel`, and `closes`: opened from its button, your clear stands while it is open, empty or not, and closes it; filling its line, show it only while it holds a value), `form` (`computer` or `phone`) and `fill`. ViewKit keeps its button while shut, whether it is open, the caret on a press (in the first `input` inside your box), Escape and a blur with nothing typed, caught on its frame around your box: an Escape your box keeps for itself, `preventDefault` it, and a button of your own inside the box `preventDefault`s its `mousedown`, as ViewKit's ✕ does, so the box keeps its focus (a browser that doesn't focus a button on a click gives the blur no target). Fill the frame's width; on a phone, a text of 16px keeps iOS from zooming the page.
|
|
388
|
+
|
|
389
|
+
`ViewsListBody`, optional: the views list's whole body, which your app draws, `ViewsViewsListBodyProps`. Handed one, the view picker's chip opens it in place of ViewKit's own list of views: in its popover on a computer and in the Sheet on a phone. The row's pills and its "+N" list stay ViewKit's. It is handed the list's name (`label`), the axis's views in its order (`views`, each its `value`, its words, its `icon`, its `count` (absent while the list's counts are hidden), `private` for one of the reader's own, and `menu`, the view's own verbs as your app gave them), the view in use (`value`), `form`, and, where the axis has them, `onCreate` with its word (`createLabel`; what holds the list closes first, then the axis's own create runs) and `onReorder` with `canDrag`. The body hands back `onViewChange` (a view picked; it closes nothing, so call `onDone` after it, as ViewKit's own list closes on a pick), `onReorder` (one whole block, the shared views or the reader's own, in its new order, each once) and `onDone` (what holds it closes). On a phone where the sheet's head doesn't draw it (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ alone (`close`, which closes the list); on a computer, and under `head`, it is handed none. ViewKit checks each value before it is written: a pick that isn't one of `views`, and an order that isn't one whole block, write nothing. What creating, reordering and a view's verbs mean stays your app's, as the axis says.
|
|
390
|
+
|
|
391
|
+
`GroupBody`, optional: the group editor's whole body, which your app draws, `ViewsGroupBodyProps`. Handed one, Customize's Group opens it in place of ViewKit's own group pages (Group by, its order, its date step, the groups): on a computer and in the phone's Sheet. It is for an app that keeps ViewKit's Customize: an app that hands its own `CustomizeBody` holds its group editor inside it, handed the same props. It is handed the group's name (`label`), the fields the list can be grouped by (`dimensions`, each its `value`, its words, its `orderOptions` with the direction each opens in, its `defaultOrder`, and a date's `granularities` with its `defaultGranularity`), the group as one value (`group`, a `ViewsGroupValue`: the dimension grouped by or `none`, the active dimension's `order` (`mode` and `dir`), its date step (`granularity`), `hideEmpty` while grouped where the list offers it, and `groups` while grouped where the list hands them, in the order the list shows them, each its `key`, its words, `empty` and `hidden`; no group carries a count), `manualOrder` (your own order, `manual`, may be picked) and `form`. The body hands back `onGroupChange` (the whole group, every change as it is made) and `onDone` (inside Customize, back to its list). ViewKit makes one write for each change, in this order: a new Group by, order or date step is written alone, the rest of the value (about the old field's groups) set aside; else Hide empty groups; else the groups: the same groups in a new order (your own order), one group shown or hidden, every group hidden, or every group shown. A new Group by keeps the order and step handed with it only where the new field offers them, else takes the field's own. A value that changes two of those at once, names a field the list doesn't offer, names an order or step the field grouped by doesn't offer, or adds or loses a group writes nothing. Inside Customize, whose own head holds the ✕, it is handed no `actions`.
|
|
392
|
+
|
|
393
|
+
`CustomizeBody`, optional: Customize's whole body, which your app draws, `ViewsCustomizeBodyProps`. Handed one, Options opens it in place of ViewKit's own Customize, in your `host`, the map's `Popover` or, on a phone, the `Sheet`, and so does everything else that draws ViewKit's Customize (`ViewOptionsPanelContent`, the ready toolbar's Options, `ViewOptionsPopoverPanel`). One body holds the whole of Customize: its sections stand where your body puts them. It is handed Customize's name (`label`), the page it stands on (`page`: `list`, `layout`, `columns`, `filter`, `sort` or `group`, held by your app where it holds Options' page, so it survives the toolbar changing form) with `onPageChange`, and the view's settings as data: `layout` (the layouts, the one in use, those refused with their reasons, `onLayoutChange`, and the layout in use's own toggles, choices, density and the reader's own settings, offered where ViewKit's own Layout page offers them), `columns` (every column in the view's order, hidden or not, `hideable`, `fixed`, a card's `startsLine` and each column's own settings; `onColumnsChange` with every column in its order, written one change at a time, a reorder or columns shown or hidden, several at once in one write (your Hide all and Show all), a column that can't hide (fixed, not hideable) staying shown and a Hide all of every column leaving the first one shown, a reorder with a column shown or hidden writing nothing; with the panels' builder's `parts`, the table's columns include each part column the view places, so a Hide all reaches it; `onStartsLineChange`, `reset` while the columns differ from the view's, and your field editor's rows as `columnMenu` and `footer`), the sort as `SortBody` is handed it (`sort`; a list with one sort as one rule, `max` 1), the filter as `FilterBody` is handed it on a phone (`filter`: the whole filter, 3 levels deep), the group as `GroupBody` is handed it (`group`), `toggles` (Show counts among them, read from the view, each written through its own `onChange`), and, on a shared view, `view` (`changes`, `stale`, `canPublish`, `pending`, `onReset`, `onPublish`). With no shared view it is handed the foot's Clear (`onClear`) where the holder offers one and Clear all (`clearAll`) while anything is set; `foot` says the foot's words (`kit` for Clear and Save, `none` where they stand elsewhere). It hands back `onDone` (what holds it closes); on a phone where the sheet's head doesn't draw it, it is handed `actions`, the ✕ alone. The sort, filter and group are written as their own slots' are, through ViewKit's checks. A list whose Customize lists the per-field filters (a field's values, a time scope, a date range, as ViewKit's own Filter page draws them) has nothing to hand a body for them: where a list's filter is only those, with no filter tree, ViewKit draws its own Customize even with a body in your map, so they stay editable. The view's name, Copy link and Export are your app's to hand your body.
|
|
394
|
+
|
|
395
|
+
`RowsWait`, optional: wraps a grid's rows, `ViewsRowsWaitProps`: `pending` and `children`. Handed one, a grid that has settled always draws its rows as its children, so they stay mounted as a wait starts and ends. It stands inside the grid's scroll area, where the rows are: an ungrouped grid's column names stand above it and its footer below it, and a grouped grid's one row of column names (`oneHeader`) above it, every group inside it with its bar, column names and footer. The column names and the footer stay as they are, and take no press while the rows wait. While new rows load (`transitionPending`, or the one commit after `transitionKey` changes) and the grid already shows rows, it keeps the old ones on screen as they were drawn, inert, and hands `pending: true`: draw how they wait (a bar along the top, the rows dimmed). When the wait ends the new rows mount fresh and `pending` is false: draw `children` as they are. A grid with no rows yet, a first load or an empty grid, draws Loading in place of its body either way, and without `RowsWait` every wait does. Draw it as a block in flow that neither scrolls nor clips (no `overflow` of its own) and is no size container (no `container-type`), so the heads inside it still pin, the group labels and the empty message keep to the scroll area's width, and the rows scroll with the grid. Its top scrolls with the rows: a bar along it lies along the first row's top and leaves sight once the grid is scrolled, so a bar meant to stay in sight pins itself, sticky at `top: var(--vk-head-h)` under the column names. The slot mounts afresh when the grid changes shape (empty to rows, grouped to ungrouped, `oneHeader`), never during a wait. An editor open as the wait starts writes its draft then, as the grid going would; a draft your app refuses there keeps its refusal under the inert cell and is said in a toast when the rows mount fresh. A popup the grid opened outside its box (a column's or a row's menu, a phone's sheet) is not inert and stays as it was; what is typed in a sheet during the wait is thrown away when the rows mount fresh. The grid's paste, undo and redo wait with the rows.
|
|
396
|
+
|
|
397
|
+
The popover takes `alignOffset`, `initialFocus` (false keeps focus where it was when the popup
|
|
398
|
+
opens; the editor that then takes focus does so with `preventScroll`, so the package's own focus
|
|
399
|
+
never moves the page while your popup is placed; what your `Command` does as it mounts is yours, in
|
|
400
|
+
"Writing an adapter"), and two vetoes, `onOutsidePress`
|
|
401
|
+
and `onEscape`, each returning `false` to keep it open. `onOutsidePress` is handed the pointer press, its `target` where the press landed, also when the
|
|
402
|
+
focus that press moves is what would close the popup: a vetoed press holds against its focus too,
|
|
403
|
+
and focus leaving by keyboard (a Tab out) closes without asking. Its
|
|
404
|
+
`chrome` is `panel` (the app's card popover) or `menu` (the app's menu panel, for a list); a panel
|
|
405
|
+
click reaches `onPanelClick`, and `panelData` sets `data-*` attributes on the popup; its `style` carries what a class cannot say, a width that follows a cell. The command
|
|
406
|
+
list's root takes `shouldFilter`, `filter`, `loop` (the arrows wrap) and `defaultValue` (the value of the item highlighted as the list opens, and none while no item has it; the relation editor opens on the linked record through it, and a list that ignores it opens on its first row); an item takes `chosen`: the app colours the item as
|
|
407
|
+
its chosen row, and the package's row inside draws the check, so the item draws no tick of its own; its input takes a `ref` (the place editor focuses its search through it), `onKeyDown`, and `chrome`
|
|
408
|
+
`search` or `bare` (the input without the search row); its empty state and groups take a class. The
|
|
409
|
+
calendar takes a controlled `month` (`YYYY-MM`) with `onMonthChange`, a `dropdown` caption, and the
|
|
410
|
+
`startMonth` and `endMonth` its pickers offer, and `locale`, the conventions' locale, in which it
|
|
411
|
+
draws its month and weekday names and starts its week; an adapter may ignore it and keep its
|
|
412
|
+
calendar's own. The tooltip takes `align` and a class; the checkbox takes `checked` and, for a box
|
|
413
|
+
ticked partly (some, not all), `indeterminate`, a press on which hands `true` while `checked` is false; its `onCheckedChange` hands, as its second argument, `{ event }`, the press that changed it, as Base UI reports it; its `partialTone` (`muted` or `brand`) colours the partial mark; the collapse takes `clipClassName`, a class on the box that crops; the app mounts
|
|
414
|
+
one tooltip provider above the views, and a tooltip never mounts its own. The menu takes `label`,
|
|
415
|
+
its name (its `aria-label`), which every menu the package opens hands. A menu item's `label` is its
|
|
416
|
+
words, always text; it may carry a `shortcut` hint and an `href`, and a `disabled` row may carry
|
|
417
|
+
`disabledReason`, why it can't be used, for you to show (a tooltip, a second line); a `checked` row is checkable and closes the menu like any row, unless it
|
|
418
|
+
carries `keepOpen`, a hint to leave the menu open so several can be ticked in turn; an
|
|
419
|
+
item's `children` are a group, its rows drawn in place under the item's label unless it carries `beside`, a hint to open them one level in, its row showing its label and `detail`, and
|
|
420
|
+
the group's own `onSelect`, `href` and `checked` are ignored, and a group marked `disabled` disables every row under it, at every depth: the provider hands your `Menu` those rows already `disabled`, each one that gives no reason carrying the group's `disabledReason`, so you draw each row by its own flag. Any row may carry `detail`, its current value in words, for its end. An adapter that draws none of the three keeps every row closing and every group in place, and loses nothing it needs. So an adapter needn't guess: a ticked row's `onSelect` fires on every pick, also when it is already ticked (a second pick of the ticked sort flips its direction), so an adapter that draws ticked rows as a radio value still calls it; ticked rows that close, inside a group, are one choice among several (a pick list), and ticked rows with `keepOpen` are separate ticks (checkboxes); a label is always text, so a swatch or a column's mark rides as the row's `icon` beside it. The sheet takes `label`, its title in words whenever the title is words (its accessible name, and the title of a head that takes only text), and, when the provider's `sheetActions` is `head`, `actions`: the editor panel's ✕ (`close`) and ✓ (`done`, absent where the body saves on its pick), or a toolbar panel's ✕ alone (`close`, which closes it), or the sort editor's ✕ (`close`, which takes its rules back to what they were as the sheet opened) and ✓ (`done`), each a `label` and an `onPress`, for your sheet's own head; with `bar`, the default, the panel draws them itself. `AppIcon` is the app's own icon component by the app's own names, for
|
|
421
|
+
the glyphs a host declares (a row's icon, a binding's icon, an option's icon), drawn on the first paint (rows are measured as they mount); the semantic glyphs the rendering itself
|
|
422
|
+
needs are a port, by meaning (below). `Markdown` is the app's markdown renderer, handed the stored text whole; the
|
|
423
|
+
package draws rich text through it and parses none.
|
|
424
|
+
|
|
425
|
+
A popup reports why it closed through `onOpenChange`'s `details.reason`: `trigger-press`,
|
|
426
|
+
`outside-press`, `escape-key`, `focus-out`, `item-press`, `close-press` (a close button inside it) or
|
|
427
|
+
`swipe` (a sheet dragged away), by Base UI's names; any other reason is `none`. The package sets no
|
|
428
|
+
stacking order on a popup it opens: the app's popups sit above its own modals and drawers, and a
|
|
429
|
+
popup opened later sits above the one it opened from.
|
|
430
|
+
|
|
431
|
+
The package ships none of them and depends on neither library.
|
|
432
|
+
|
|
433
|
+
### A panel's body
|
|
434
|
+
|
|
435
|
+
A toolbar panel's body slot (`SortBody` the first, then `FilterBody`, `ViewsListBody`, `GroupBody` and `CustomizeBody`) follows one pattern, which every panel's body copies. It is optional and named `<Panel>Body`: left out, ViewKit draws its own panel; handed one, ViewKit opens it wherever it opens its own, on a computer and in the phone's Sheet. It is typed `Views<Panel>BodyProps` (`ViewsSortBodyProps`, `ViewsFilterBodyProps`, `ViewsViewsListBodyProps`, `ViewsGroupBodyProps`, `ViewsCustomizeBodyProps`) and handed the panel's state as plain data, `form` (`computer` or `phone`), `onDone` (the job is done and what holds it closes), and, on a phone, `actions` (the ✕ and ✓, `ViewsSheetActions`) only where the sheet's head doesn't draw them. It hands back the whole new value on every change, as it is made, through one `on<Value>Change` (`onRulesChange`, `onFilterChange`, `onViewChange`, `onGroupChange`), never a step to apply. A body that holds several values, as Customize's does, is handed each section as data with its own change (a layout's `onLayoutChange`, the columns' `onColumnsChange`, each toggle's `onChange`), and a section that has a slot of its own (the sort, the filter, the group) as that slot's props without the chrome, so each type is written once. One contract serves the computer and the phone: `form` tells them apart. ViewKit checks each value against the panel's own rules and writes nothing when one breaks them, and it keeps the save, the latest value between renders and what ✕ takes back to. The group's and the columns' changes are the exception: their writes rebuild from the settings ViewKit last drew, so each change is checked against the last render, and a second one handed before ViewKit draws again writes nothing; hand one change for each press. ViewKit's own panel stays the plain fallback, dressed only through the atoms and `panelButtons`.
|
|
436
|
+
|
|
437
|
+
`QuickFiltersBody` (`ViewsQuickFiltersBodyProps`) is the quick filters' body: handed the fields as the strip shows them (`quickFieldsShown`: those the app offers, then each other field the hold holds a value on, named by the app's `heldLabels` else its key, listing only its held values), each with its values in the order to show them (their counts, and the held values drawn from the hold and worded by the app's `heldLabels` else their key, so a value no row holds any more, a deleted record say, can still be named and let go), the hold, `several` and `showCounts`, it hands back the whole hold through `onHoldChange`. ViewKit writes nothing for a hold that holds a field twice, holds more than one value where `several` is false, or adds a value on a field the strip doesn't offer (one already held there may stay or go). On a phone its `actions` is the ✕ alone, which closes it. ViewKit's own panel closes its phone Sheet after a press when one value is held at a time (`quickPressCloses`); your body does the same by calling `onDone`.
|
|
438
|
+
|
|
439
|
+
`FieldsBody` (`ViewsFieldsBodyProps`) is the field list's body: ViewKit opens it wherever it opens its own sort or filter field list (the empty Sort, Sort on the row's right, the + after the sort pill, Filter, the bar's +, a filter's field, a set-aside rule's field, and the field lists inside ViewKit's own sort and filter editors). It is handed `purpose` (`sort` or `filter`), the fields as data, each with its mark (`type`, `part`, `glyph`, as the grid's header marks its column) and, where it can't be picked, why (`disabled`: "Sorted" for a field another rule sorts), for a filter a relation's `far` fields one level in, `own` (the field being changed) and `form`. A pick is one value, so it hands back `onPick` (the key, and a far field's key for a far field) rather than an `on<Value>Change`; ViewKit writes it as its own list's pick and writes nothing for a key it didn't hand or handed `disabled`. Its search, its rows and Related records are your body's; ViewKit's own stay the fallback.
|
|
440
|
+
|
|
441
|
+
`FilterPartBody` (`ViewsFilterPartBodyProps`) is a filter rule's part: a rule's way and its value open it on the bar and in ViewKit's own filter editors, in place of ViewKit's ways menu and value body, never inside `FilterBody`'s `ruleValue`. It is handed `part` (`way` or `value`), the rule as data, its field, its ways and ViewKit's own value body (`own`) for a type your body doesn't draw, and hands back the rule through `onRuleChange`: a new way is written as ViewKit's own writes one, its value kept where it still fits and emptied where not; a value is written once its way holds it, or emptied. ViewKit writes nothing for another field or part, a way its field doesn't offer or a value its way can't hold. Neither body takes `actions`: on a phone each stands on a page of the editor's sheet, under the sheet's own head.
|
|
442
|
+
|
|
443
|
+
### Writing an adapter
|
|
444
|
+
|
|
445
|
+
What a Base UI adapter over shadcn copies does where its copies stop short of a slot.
|
|
446
|
+
|
|
447
|
+
**The menu.** The map's `Menu` has an anchor and no trigger. Build it from the menu
|
|
448
|
+
library's root, positioner and popup, handing the anchor to the positioner, where your copy's content
|
|
449
|
+
doesn't forward one; the root needs no trigger of its own, because the package opens it. A group that asks for
|
|
450
|
+
`beside` may be a submenu whose trigger is the group's own row, inside the open menu; with none, draw it in place.
|
|
451
|
+
Opened, it puts focus on its
|
|
452
|
+
first row, as your `Popover` does by default: a row's menu opened by a key starts there.
|
|
453
|
+
|
|
454
|
+
**A disabled group.** Nothing to do: its rows reach you already `disabled`, with the group's reason where they give none.
|
|
455
|
+
|
|
456
|
+
**The sheet's head.** A sheet that draws a head of its own (a title with buttons beside it) sets the
|
|
457
|
+
provider's `sheetActions` to `head` and draws `actions.close` and, when handed, `actions.done` there,
|
|
458
|
+
with your own ✕ and ✓ glyphs; a close of your sheet's own (its ✕, a swipe) still reaches
|
|
459
|
+
`onOpenChange` and, for an editor, discards like `actions.close`. A toolbar panel's sheet (Options, Sort, Filter on a
|
|
460
|
+
phone) is handed only `actions.close`, which closes it, and its body draws no ✕ of its own; it is handed `label` and no
|
|
461
|
+
`title`, its own header titling it. The sort editor's sheet (the sort pill's, on a phone) is handed both: `actions.done`
|
|
462
|
+
keeps the rules as they are, and `actions.close` takes them back to what they were when the sheet opened; a close of
|
|
463
|
+
your sheet's own (a swipe, the dim, Escape) keeps them, as ✓ does. Draw both, or the one button left throws a
|
|
464
|
+
person's changes away.
|
|
465
|
+
|
|
466
|
+
**A body's step.** While an editor's body stands on a step of its own (a `TextBody`, `PartsBody`, `ValuesBody` or `LinksBody` hands
|
|
467
|
+
one through `onStepChange`), the editor's sheet is handed the step's title as `title` and `label`, in place of the
|
|
468
|
+
field's name, and, under `head`, `actions.back` too: draw Back in `actions.close`'s place, on the left, with your own back
|
|
469
|
+
arrow, and keep ✓. The panel's own bar does the same under `bar`. Back and an Escape your sheet reports as `escape-key`
|
|
470
|
+
go back one step; a swipe, the dim and ✕ still close the whole editor, discarding, and ✓ saves it. Once the body hands
|
|
471
|
+
`null`, the head is the field's name, ✕ and ✓ again. A sheet that reports Escape with no reason, or as `none`, closes
|
|
472
|
+
the editor on it, as before.
|
|
473
|
+
|
|
474
|
+
**`chrome: "menu"`.** It is your menu panel's surface: no inset, because the list inside carries its
|
|
475
|
+
own, and no card width: it is as wide as its list. Where your copy has only the card popover, lay your
|
|
476
|
+
menu classes over it.
|
|
477
|
+
|
|
478
|
+
**The command item's chosen mark.** Colour the item as your chosen row; the row inside draws the
|
|
479
|
+
check. Where your copy's item draws a tick of its own, hide it.
|
|
480
|
+
|
|
481
|
+
**A command list that scrolls as it mounts.** The chips, select and relation editors, and the grid's
|
|
482
|
+
Add column (on the `popover` route) and group menu (on the `popover` route: past eight sort choices, or at any count when the app names its parts with `groupMenu`), mount a `Command.Root` with its rows in the frame the popover opens, before
|
|
483
|
+
your popover has placed its popup. A command library that scrolls its selected item into view on mount
|
|
484
|
+
(cmdk does, with `scrollIntoView`) scrolls the page towards the popup's unplaced spot, which at a
|
|
485
|
+
library's default positioning can be the page's top, and `preventScroll` on the focus doesn't reach
|
|
486
|
+
that scroll. Keep such a popover `fixed`, where the unplaced popup already sits inside the viewport, or
|
|
487
|
+
stop your `Command` scrolling on mount. Your library's default positioning is safe only for a
|
|
488
|
+
`Command` that doesn't.
|
|
489
|
+
|
|
490
|
+
**`chrome: "bare"`.** The input alone, without the search row's glyph and divider. Where your copy
|
|
491
|
+
has only the search row, reach the command library's own input.
|
|
492
|
+
|
|
493
|
+
**The sheet's `snap`.** Map `full`, `half`, `peek` and `auto` onto your drawer's snap points if it
|
|
494
|
+
has them, or ignore `snap`.
|
|
495
|
+
|
|
496
|
+
**`AppIcon`.** It draws on the first paint, because rows are measured. Use a static record of your
|
|
497
|
+
icons, not one loaded on demand.
|
|
498
|
+
|
|
499
|
+
**Stacking.** Your popup's layer sits above your modal tier, and a later popup above an earlier one,
|
|
500
|
+
in your adapter: a positioner your copy isolates at a lower layer holds the popup under a modal.
|
|
501
|
+
|
|
502
|
+
**The press veto.** Where your popover closes on the focus an outside press moves before the press's
|
|
503
|
+
own event reaches it, keep the last pointer press and ask `onOutsidePress` with it; when the veto
|
|
504
|
+
refuses, refuse that focus-out too.
|
|
505
|
+
|
|
506
|
+
**Close reasons.** Pass your library's `close-press` and `swipe` through; any other reason the
|
|
507
|
+
contract doesn't name is `none`.
|
|
508
|
+
|
|
509
|
+
## The atoms
|
|
510
|
+
|
|
511
|
+
The pieces the rendering is built from, and the app's own pieces it cannot draw itself, typed in `src/atoms/types.ts`: `List` (the rows'
|
|
512
|
+
container: the inset a run of rows sits in, inside a panel or a command list's group), `Row` (a whole row,
|
|
513
|
+
a button or, with `interactive={false}`, a static line), `RowContent` (a row's inside, for inside a
|
|
514
|
+
command list's item, which owns the element and the highlight), `TickBox` (a paint-only tick box), `Avatar` (a person's or a record's picture, `ViewsAvatarProps`: a user's, a relation's and an actor's chip draw it at `size="chip"`, and the name draws it at `size="glyph"`, sized by `--vk-glyph`, when the list's `rowIcon` hands the row's `avatar`; it is handed `label`, whose picture it is, `avatarUrl`, `kind`, the record's kind as the app names it (a relation's `entity`, `user` for a member, an actor's type), and `fallback`, the glyph the chip or the name draws without a picture; the default draws the picture, marked `data-slot="vk-avatar"`, and the fallback when there is none or it fails to load, so an app that hands none sees its chips and names as before; yours draws initials on a tone, a record in its own shape, or the fallback for a kind it doesn't dress),
|
|
515
|
+
`StatusBadge` (a pill by status slot), `StatusMarker` (an attention badge that opens its reason) and
|
|
516
|
+
`Tag` (a category chip, removable, with an optional leading glyph), `CommandMenu` (a `command` cell's verb menu, opened from the trigger the cell drew; the default is the components map's `Menu`), `RowMenu` (the rows' right-click menu, once around each section's rows' container and aimed at the row a press or a right-click came from, its props that row's: Open page, the rows the rendering builds, Delete; the default is the components map's `Menu` at the pointer, opened by a right-click or the row's ⋯ (`data-slot="vk-grid-row-more"`), wrapped in `data-slot="vk-row-menu"`; the grid's row-menu keys send a cell the same right-click, with no press before it, so a `RowMenu` of your own opens on any `contextmenu` and doesn't wait for a press; its Delete asks the `confirm` port with `views.menus.row-delete-confirm` (the browser's own confirm when you hand none), and a delete that rejects says so through the toast port's `error` with `views.menus.row-delete-failed`; a long-press on a phone opens nothing, and with `GridTable`'s `phonePicking` on the grid's own long press picks the row, an `onToggleSelect` that answers the same held press ticking it with the grid's, once) and `RelationLink` (where a relation chip goes, around the chip the display drew; the default goes nowhere), `RelationRoles` (a link's roles, inside its chip after the record's name, on a `many` relation that declares `links`; the default draws their labels in the subtle colour after a middle dot, wrapped in `data-slot="vk-relation-roles"`, and in a narrow cell cuts them, down to nothing, before the name loses a letter), `Loading` (a wait: the list reloading, or more rows arriving; the default is a plain ring) `LoadMore` (how a list asks for its next page; the default watches a sentinel past the last row) and `PlatformMark` (a link's platform, drawn before it, read from its address with the conventions' platforms; the default draws nothing, so a link looks plain, and the package ships no brand art, so an app that wants marks draws its own by the platform's key into `data-slot="vk-platform"`), and the rows the panels (`/panels`) draw with: `ChoiceRow` (picks a value: its label, a second line, a right-hand meta, the check when chosen), `CheckRow` (toggles one of many, a tick box on the left), `RadioRow` (picks one of a set, its mark a check or, with `mark="box"`, a tick box; a disabled row's reason in your `Tooltip`), `DirectionButton` (a sort's direction arrow, named `views.panels.direction`), `MenuRow` (a drill-in row: a glyph, the section, where it stands, a chevron; a disabled row's reason in your `Tooltip`), `ToggleRow` (a boolean flipped in place, with a way back named `views.panels.toggle-reset`; a disabled row's reason in your `Tooltip`) and `PanelSearch` (a panel's text box, a filled well with a magnifier), and `Pill` (one option of a row of pills, the views row's and any tab row's: `active`, a `solid` or `plain` variant, a `default` or `sm` size, a leading glyph, the app's own active and hover classes for a status colour; with `menuOpen` it says it opens a menu, `aria-haspopup="menu"` and `aria-expanded`), and `ToolbarButton` (a toolbar's button, the one every toolbar part draws with: its glyph, its name, its word for a dress that shows words, a count in its corner, which becomes a ✕ badge that clears what it counts when handed `onClear`, a dot that says something is applied with no number, `open`, `changed`, `edge` for the row's outermost button, `disabled`, a `md` or `sm` size, and `popup` when it opens one; and, for the sort (VK-188), its own words shown whatever the dress, with their weight, in `data-slot="vk-toolbar-words"` (`children`: "Sorted by **Amount**"), a count in words after them in `data-slot="vk-toolbar-more"` (`more`: "+1"), an empty place with its edge dashed and `data-empty` (`empty`), and a reason it can't be used, `disabledReason` with `disabled`, in your `Tooltip`, the button then `aria-disabled` and still a Tab stop, a press doing nothing; its own words are then its name, with `more` after them, in place of `label`; and, in a folding toolbar line with no room, `iconAlone`, its words given up for its icon, `data-icon-alone`, which you draw as the icon alone whatever your dress says of words; `aside`, what it names left the list, its edge dashed in the warning's colour, `data-aside`; `foot`, New's + standing alone at a phone list's foot, round, a finger's size, on the brand's ground, `data-foot`; `joined` (`start`, `middle` or `end`), one of buttons joined as one (a filter's field, how it compares, its value, its menu), its corners on the outer side alone, no gap, the shared edge drawn once, `data-joined` with the value; and `waits`, its words saying what it waits for (a filter's value not yet picked), drawn in `--vk-fg-subtlest`, the placeholder's colour, `data-waits`; its own words keep to one line and give way to a holder that caps its width, cut with "…", where an icon button keeps its size; and, told what it is where your own toolbar frame draws it (VK-629), `current` (a view tab, `data-tab`; `true` the open one, `data-current` and `aria-current="true"`), `part` (which of the toolbar's own buttons it stands for, drawn as its `data-slot`: `views-chip` `vk-views-chip`, `views-tab` `vk-views-tab`, `views-more` `vk-views-more`, `views-add` `vk-views-add`, `clear` `vk-toolbar-clear`, `save` `vk-toolbar-save-button`; the default draws the chip and "+N" with a chevron after their words, `data-slot="vk-toolbar-chevron"`, and Save on an edge) and `onContextMenu` (a right-click: a tab's verbs open on it)). Each ships as a default, exported as `DEFAULT_VIEWS_ATOMS`, drawn
|
|
517
|
+
from the app's colours; an app swaps any of them through the provider's `atoms`, and the rest
|
|
518
|
+
stay the defaults. `SelectionSheet` is the phone's sheet of a selection's verbs, opened by the
|
|
519
|
+
selection bar's Actions: the default is the components map's `Sheet` holding the atoms' rows, a group's
|
|
520
|
+
or an options verb's rows opening in place under it and the delete last in words, a disabled verb's
|
|
521
|
+
`disabledReason` as its row's second line (none while `busy`); picking a row closes the sheet, then runs it. An app swaps in its own action sheet.
|
|
522
|
+
`RangeCalendar` is the filter panel's month: a date filter's day or its two ends, a date range and a custom
|
|
523
|
+
time scope, in ISO days, with the end being picked (`armed`), the days a press can't reach (`limit`), a
|
|
524
|
+
relative rule's window painted in place of the selection (`window`) and a footer. The default is the
|
|
525
|
+
components map's one-day `Calendar` on the end being picked, wrapped in `data-slot="vk-range-calendar"`, with
|
|
526
|
+
each press turned into the selection the editor reads; it paints no range. An app hands its own to paint one.
|
|
527
|
+
|
|
528
|
+
`StatusBadge` is handed `place` (`ViewsStatusPlace`) wherever a field's option is drawn: a cell, the select editor's
|
|
529
|
+
rows and the selection bar's options verb. It is where the status stands among the field's steps: `options`, the
|
|
530
|
+
field's active options in their order (archived ones out, the same array for every cell of a field; on the bar,
|
|
531
|
+
the verb's own options), and `index`, this one's place in them. A value that is no step (a stray value, an
|
|
532
|
+
archived one, the None row) and a badge that is no option (a boolean's marker, `StatusMarker`) are handed none.
|
|
533
|
+
The default draws no differently; yours reads it to show how far along a step is.
|
|
534
|
+
|
|
535
|
+
A row's `size` is `compact` (13px: a command list's rows, a list of values) or `regular` (the app's
|
|
536
|
+
menu size, the default). Its label truncates when it is text and is laid out in a row when it is a
|
|
537
|
+
node — a badge, a link — so a chip sits on the row's centre; `wrap` lets a long label break instead.
|
|
538
|
+
A row in the default tone takes its colour from what it sits in, so a command item's chosen mark and
|
|
539
|
+
highlight read through it; a `muted` row brightens on hover when it is itself the button.
|
|
540
|
+
A row's `detail` is what it says at its right edge, in the subtle colour: a setting's current choice,
|
|
541
|
+
or a live sample; a chosen row draws its detail in the brand colour and no check, so a column of
|
|
542
|
+
samples stays in line. A row that opens a flyout beside its menu takes `opens` (`aria-haspopup="dialog"`,
|
|
543
|
+
since the flyout is the components map's `Popover`, a dialog of plain rows; and `aria-expanded` from `open`),
|
|
544
|
+
and `open` while that flyout is up (`data-open`, the pressed ground).
|
|
545
|
+
|
|
546
|
+
The defaults mark themselves with `data-slot="vk-list"`, `data-slot="vk-row"`, `data-slot="vk-row-content"`,
|
|
547
|
+
`data-slot="vk-tick"`, `data-slot="vk-avatar"`, `data-slot="vk-status"`, `data-slot="vk-marker"`, `data-slot="vk-tag"`, `data-slot="vk-command-menu"`, `data-slot="vk-relation-link"`, `data-slot="vk-relation-roles"`, `data-slot="vk-loading"`, `data-slot="vk-load-more"`, `data-slot="vk-platform"`, `data-slot="vk-row-menu"` and `data-slot="vk-selection-sheet"`, the panels' rows with `data-slot="vk-choice-row"`, `data-slot="vk-check-row"`, `data-slot="vk-radio-row"`, `data-slot="vk-direction"`, `data-slot="vk-menu-row"`, `data-slot="vk-toggle-row"` and `data-slot="vk-panel-search"`, the pill with `data-slot="vk-pill"` (and `data-active="true"` on the current one), the filter panel's month with `data-slot="vk-range-calendar"`, the toolbar's button with `data-slot="vk-toolbar-button"` (its hidden word `data-slot="vk-toolbar-word"`, its count `data-slot="vk-toolbar-count"`, its dot `data-slot="vk-toolbar-dot"`), and
|
|
548
|
+
with the states `data-chosen`, `data-disabled`, `data-muted`, `data-checked`, `data-open`, `data-changed`, `data-edge` (flags),
|
|
549
|
+
`data-status` (the slot's name) and `data-platform` (a link's platform key). A swapped atom marks itself as its app does.
|
|
550
|
+
The display's own marks are with them: `data-as-typed` on a phone (`vk-phone`, below), `data-converted` on a money
|
|
551
|
+
figure shown in another currency and `data-slot="vk-conversion"` for its line under an editor, `data-partial` on a
|
|
552
|
+
breakdown's bar, `data-cell-link` and `data-no-nav` (below).
|
|
553
|
+
|
|
554
|
+
A cell of several values marks its count, the "+N" after its shown values, `data-slot="vk-cell-more"`: a button that
|
|
555
|
+
opens the whole list, with `data-open` while it is open, or plain text where the host owns the click. What it draws
|
|
556
|
+
inside is the `CellMore` atom (`ViewsCellMoreProps`: the `count`, and `inert` when the host owns the click). Only
|
|
557
|
+
ViewKit's own `CellMore` keeps its frame on that element, as on 0.5.0; with any other, wrapping `DefaultCellMore`
|
|
558
|
+
included, the element is bare, so the app's chip stands there alone.
|
|
559
|
+
|
|
560
|
+
A phone's value is `data-slot="vk-phone"`, on whatever draws it: its `tel:` link, or its text where the slot owns the
|
|
561
|
+
click (a calendar card's button) or there is nothing to dial (a phone kept as typed with no digit in it), alone and as
|
|
562
|
+
each value shown in a list. A phone kept as typed, not read as international, also carries `data-as-typed` and the
|
|
563
|
+
title `views.display.phone-as-typed`. Neither changes how ViewKit draws it: an app gives a phone a look of its own at
|
|
564
|
+
rest by the part, and a phone kept as typed a look of its own by the mark.
|
|
565
|
+
|
|
566
|
+
A money figure a surface shows in another currency than its record's carries `data-converted`, the ≈ before it, and
|
|
567
|
+
the title `views.display.converted-from`. Under a money editor opened from such a figure, the figure as the surface
|
|
568
|
+
showed it stands in `data-slot="vk-conversion"`, with `views.display.as-shown` after it. A breakdown over time, drawn as a
|
|
569
|
+
sparkline of bars, marks the bar of the period not yet complete `data-partial`, drawn fainter. None of the three changes how ViewKit draws it: an
|
|
570
|
+
app dresses each by its mark.
|
|
571
|
+
|
|
572
|
+
Two marks are for a host rather than a skin. A url, email, phone or domain drawn where the host owns the plain click
|
|
573
|
+
(`hostOwnsPlainClick`, as the grid does) carries `data-cell-link`, so the host tells a link from a control. A value
|
|
574
|
+
whose press is its own, not the row's (a link, the "+N" that opens the list, a field row's own buttons), carries
|
|
575
|
+
`data-no-nav`, present as `"true"`, which `ROW_INTERACTIVE_SELECTOR` matches, so a row's click stands aside for it.
|
|
576
|
+
|
|
577
|
+
**The display's own marks are not public.** A cell fitting its values (`severalValues: "fit"`) marks its box
|
|
578
|
+
`data-vk-fit` and each value's box `data-vk-fit-value`, which its measure reads. They carry the prefix because they are
|
|
579
|
+
ViewKit's own; an app neither sets, reads nor styles them, and they may change in any release.
|
|
580
|
+
|
|
581
|
+
Rich text folded in a field row marks its Show more and Show less `data-slot="vk-show-more"`; drawn only there, it is
|
|
582
|
+
your `Button` when the provider's `fieldRowButtons` is `button`. The relation chip a host's `onOpenRelation` makes
|
|
583
|
+
pressable carries `data-slot="vk-relation-link"`, as the default `RelationLink` does, and stays ViewKit's own, an app
|
|
584
|
+
dressing it by its slot: it reads as text, the same part whichever verb it has, so one rule reaches it in every list.
|
|
585
|
+
Two of a field row's controls stay ViewKit's own for the same reason, each being the sentence it says: a note with a
|
|
586
|
+
quote, the disclosure marked by its `[data-field-note]` attribute, and the retry line under a write that failed, `data-slot="vk-field-retry"`;
|
|
587
|
+
an app dresses them by those names. The panels' check and radio rows (`CheckRow`, and `RadioRow` with `mark="box"`)
|
|
588
|
+
draw the `TickBox` atom, a picture inside a row that is itself the control, so an app hands the picture of its box
|
|
589
|
+
there, never its `Checkbox`, which can't stand inside the row's button. The status
|
|
590
|
+
marker, a tag's ✕ and the "+N" are drawn inside the `StatusMarker`, `Tag` and `CellMore` atoms, which an app swaps.
|
|
591
|
+
|
|
592
|
+
The views row marks the pieces an app may dress with its pills, whichever `Pill` it hands in:
|
|
593
|
+
`data-slot="vk-views-row"` (the row of plain pills at their own size, whose gap an app may open),
|
|
594
|
+
`data-slot="vk-views-more"` (the "+N" chip that folds the views that don't fit),
|
|
595
|
+
`data-slot="vk-views-chip"` (the picker's chip, the active view with a chevron) and
|
|
596
|
+
`data-slot="vk-views-add"` (the + that creates a view). The chips carry `data-state="open"` while their
|
|
597
|
+
list is open; every glyph in them is drawn at `h-3.5 w-3.5`. With the provider's `panelButtons` at `button`, the "+N"
|
|
598
|
+
chip, the picker's chip and the + are your `Button`: the two chips carry their slots and `data-state="open"`, and the +
|
|
599
|
+
keeps `vk-views-add`. As the Views part (`ToolbarViews`) of your own toolbar frame (`ToolbarSlotProvider`, `appFrame`),
|
|
600
|
+
the picker's chip, each view tab, the "+N" chip and the + are your `ToolbarButton` instead, handed `part` (`views-chip`,
|
|
601
|
+
`views-tab`, `views-more`, `views-add`), the open tab `current` and its verbs `onContextMenu` and `popup="menu"`, every
|
|
602
|
+
other tab with verbs its own `onContextMenu` (a click on it opens its view, so it carries no `popup`), its drag
|
|
603
|
+
grip in its `icon`; a tab's status colours don't reach it, ViewKit's own row folds the tabs into its "+N" whatever your
|
|
604
|
+
frame folds, and the row's hidden measuring copy stays `inert`. A `PillGroup`, `ViewTabs`, `ViewPicker` or
|
|
605
|
+
`ViewCreatePill` you place yourself stays as it is.
|
|
606
|
+
|
|
607
|
+
The toolbar (`/panels/react`'s `Toolbar`) marks its frame and its parts, whichever `ToolbarButton` it draws with:
|
|
608
|
+
`data-slot="vk-toolbar"` (the frame, its form in `data-form`: `row`, `narrow` or `phone`),
|
|
609
|
+
`data-slot="vk-toolbar-line"` (one line, its kind in `data-line`: `main`, `search`, `views` or `below`),
|
|
610
|
+
`data-slot="vk-toolbar-cluster"` (the row's end controls, floating over the views on a fade of `--vk-ground`),
|
|
611
|
+
`data-slot="vk-toolbar-search"` (Search, with `data-expanded` while its field shows), `data-slot="vk-toolbar-search-field"`
|
|
612
|
+
(the field, your `Input`), `data-slot="vk-toolbar-search-clear"` (its ✕, your `Button` with the provider's `panelButtons` at `button`), `data-slot="vk-toolbar-search-spinner"` (the ring that stands in for its glass while `searching`), `data-slot="vk-toolbar-new"` (New's place),
|
|
613
|
+
`data-slot="vk-toolbar-options"`, `data-slot="vk-toolbar-sort"` and `data-slot="vk-toolbar-filter"` (the panel parts'
|
|
614
|
+
places), each one's popover handed `data-slot="vk-toolbar-options-panel"`, `data-slot="vk-toolbar-sort-panel"` or
|
|
615
|
+
`data-slot="vk-toolbar-filter-panel"` through your `Popover`'s `panelData`; on a phone, where the panel opens in your
|
|
616
|
+
`Sheet`, the same slot marks the panel's box inside it.
|
|
617
|
+
|
|
618
|
+
In the fold arrangement (`Toolbar`'s `fold`, the ready toolbar's default) the frame carries `data-fold`, a line's
|
|
619
|
+
kind is `main` or `bar` (the filter bar under the row), each part stands in an item of its own, and as a line
|
|
620
|
+
narrows its parts give way: a toolbar button standing as its icon alone carries `data-icon-alone`, the views fold
|
|
621
|
+
tabs into "+N", the bar's last filters fold into "+N filters" (`data-slot="vk-toolbar-more-filters"`) one at a time,
|
|
622
|
+
and what may fold goes behind `data-slot="vk-toolbar-overflow"` (⋯, its folded parts' rows in your `Menu`). A line
|
|
623
|
+
holds still while something on it stands open: ⋯'s menu, the views' "+N" list, a filter with a part open, an open
|
|
624
|
+
advanced filter or "+N filters"' menu. On a computer with and/or groups the bar holds each filter in its place
|
|
625
|
+
(`data-slot="vk-toolbar-filters"`, the filters on the bar, below), Filter there while there is none; without them, and
|
|
626
|
+
on a phone, Filter (`data-slot="vk-toolbar-filter"`). `data-slot="vk-toolbar-separator"` is the line between the sort
|
|
627
|
+
and the filters on the bar, drawn only between two drawn parts. On a phone, New's place (`data-slot="vk-toolbar-new"`) carries `data-at` (`foot`): New stands off the line,
|
|
628
|
+
a round + fixed at the screen's bottom-end corner over the list, its button marked `data-foot`, lifted by
|
|
629
|
+
`--vk-toolbar-foot` (undeclared, `1rem`) above the safe area, so an app with a bar at its foot declares the bar's
|
|
630
|
+
height there. `data-slot="vk-toolbar-save"` holds Clear and Save at the bar's end while what the list shows differs:
|
|
631
|
+
`data-slot="vk-toolbar-clear"` (Clear, no ground) and `data-slot="vk-toolbar-save-button"` (Save, in the field's look,
|
|
632
|
+
only where the person may publish), ViewKit's own buttons or your `Button` with `panelButtons` at `button`; inside your
|
|
633
|
+
own frame, your `ToolbarButton`, `part` `clear` and `save`, while the search's ✕ stays the field's.
|
|
634
|
+
|
|
635
|
+
The sort's parts, with several sorts (VK-188): `data-slot="vk-toolbar-sort-pill"` (the sort pill's place: "Sorted by" its
|
|
636
|
+
first rule and +N, or the empty Sort, which carries `data-aside` and opens the sort editor while only set-aside sorts
|
|
637
|
+
stand), `data-slot="vk-toolbar-sort-add"` (the + after it, which opens the fields),
|
|
638
|
+
`data-slot="vk-sort-editor"` (the sort editor, on a computer in your `Popover`, on a phone in your `Sheet`),
|
|
639
|
+
`data-slot="vk-sort-rule"` (one rule in it: its grip, its field, its direction, ×; on a phone its row),
|
|
640
|
+
`data-slot="vk-sort-aside"` (a set-aside sort's row after the rules, `data-aside`: its field dashed in the warning colour,
|
|
641
|
+
its direction disabled with why, its ⋯ holding why, Put back once it fits, and Delete) and
|
|
642
|
+
`data-slot="vk-sort-fields"` (the fields a rule is picked from, a field already sorted greyed "Sorted").
|
|
643
|
+
|
|
644
|
+
The quick filters' parts (VK-563): `data-slot="vk-toolbar-quick"` (the quick filters' button, lit while a value is
|
|
645
|
+
held), its popover handed `data-slot="vk-toolbar-quick-panel"`, `data-slot="vk-quick-filters"` (ViewKit's own panel),
|
|
646
|
+
`data-slot="vk-quick-filters-field"` (one field in its strip, `aria-pressed` while open),
|
|
647
|
+
`data-slot="vk-quick-filters-value"` (one of the open field's values, `data-chosen` while held) and
|
|
648
|
+
`data-slot="vk-quick-filters-none"` (what a search that finds nothing says). On a phone, ViewKit's own panel carries
|
|
649
|
+
`data-form="phone"`. The reminder (`QuickFiltersReminder`, VK-566): `data-slot="vk-quick-filters-reminder"` (its box,
|
|
650
|
+
portalled to the body where the selection bar's phone pill stands), `data-slot="vk-quick-filters-reminder-open"` (its
|
|
651
|
+
names, which open the quick filters) and `data-slot="vk-quick-filters-reminder-clear"` (its ✕, letting every hold go).
|
|
652
|
+
|
|
653
|
+
The filter's parts, with and/or groups (VK-531): `data-slot="vk-toolbar-advanced-filter"` (an advanced filter's pill:
|
|
654
|
+
"Advanced filter" with its rules counted), its popover handed `data-slot="vk-toolbar-advanced-filter-panel"`,
|
|
655
|
+
`data-slot="vk-filter-editor"` (the filter editor), `data-slot="vk-filter-rule"` (one rule in it: its field, how it
|
|
656
|
+
compares, its value, ⋮), `data-slot="vk-filter-group"` (a group, on its own ground), `data-slot="vk-filter-relation"`
|
|
657
|
+
(a relation rule, "any where", its own rules inside), `data-slot="vk-filter-fields"` (the fields a rule names, a
|
|
658
|
+
relation's far fields one level in) and `data-slot="vk-filter-convert"` (Convert to advanced filter, at the foot of a
|
|
659
|
+
filter's page in the Filter panel). In a folding line an advanced filter's pill carries `data-open` while it is open.
|
|
660
|
+
|
|
661
|
+
The filters on the bar, where the toolbar stands each filter on its filter bar: `data-slot="vk-toolbar-filters"` (the
|
|
662
|
+
part's place), `data-slot="vk-toolbar-filter-rule"` (one filter, a group named by its words, holding its four joined
|
|
663
|
+
buttons: its field, how it compares, its value where its way takes one, inside `data-part="value"`, and its ⋯; it
|
|
664
|
+
carries `data-open` while one of them has its list open, and `hidden` while it is folded),
|
|
665
|
+
`data-slot="vk-toolbar-filter-aside"` (a set-aside filter in its place, `data-aside`, as `vk-toolbar-filter-rule` holds
|
|
666
|
+
its parts: its field the toolbar button's `aside`, opening the fields to point it at another; its way and value disabled
|
|
667
|
+
with why; its ⋯ holding why, Put back once it fits, and Delete filter), `data-slot="vk-toolbar-filter-add"`
|
|
668
|
+
(the + after the last filter, which opens the fields; while there is none Filter stands in its place,
|
|
669
|
+
`data-slot="vk-toolbar-filter"`), `data-slot="vk-toolbar-more-filters"` ("+N filters", where the bar's last filters
|
|
670
|
+
folded, standing where the last of them stood, its menu naming each) and `data-slot="vk-toolbar-filters-panel"` (the fields' popover, handed through your
|
|
671
|
+
`Popover`'s `panelData`).
|
|
672
|
+
|
|
673
|
+
Lists that scroll wear the class `scrollbar-overlay`, which an app may define (to show the OS
|
|
674
|
+
overlay scrollbar, say); without it the class does nothing.
|
|
675
|
+
|
|
676
|
+
## The editor panel
|
|
677
|
+
|
|
678
|
+
`EditorPanel` (`viewkitjs/views/editors/panel`) opens an editor in the components map's `Popover` on
|
|
679
|
+
a desktop and its `Sheet` on a phone, and marks its parts with these slots:
|
|
680
|
+
|
|
681
|
+
| slot | the element |
|
|
682
|
+
| ---------------------------------- | ------------------------------------------------------------- |
|
|
683
|
+
| `data-slot="vk-editor-panel"` | the popover's panel, or the sheet's body, an editor sits in |
|
|
684
|
+
| `data-slot="vk-editor-bar"` | the sheet's bar: its ✕ and its ✓ (none with `sheetActions: "head"`) |
|
|
685
|
+
| `data-slot="vk-editor-refusal"` | the reason a refused value gave, under the editor; in a popover that scrolls, pinned to its bottom edge |
|
|
686
|
+
| `data-slot="vk-text-editor"` | the text editor's box (`viewkitjs/views/editors/text`), unless its host names its own |
|
|
687
|
+
|
|
688
|
+
## Ports
|
|
689
|
+
|
|
690
|
+
Runtime services the app hands in through the provider, typed in `src/provider/ports.ts`:
|
|
691
|
+
|
|
692
|
+
- `toast` — `success(message)`, `error(message)`, `info(message)`, `warning(message, { description })` (a change the person did not make).
|
|
693
|
+
- `haptics` — `selection()`, `impact(style)`, `notification(type)`; an app without a device hands in no-ops.
|
|
694
|
+
- `clipboard` — `writeText(text)` resolving to whether it succeeded; `readText()` resolving to the text or `null`.
|
|
695
|
+
- `viewPrefs` — `get(key)`, `set(key, value)`, `subscribe(key, listener)`: a per-device store for state a view keeps between visits. No view in this release reads it; the grid's preferences come in through `useGridTablePrefs`, from wherever the host keeps them.
|
|
696
|
+
- `confirm` — `confirm({ message, confirmLabel, subject, destructive })` resolving to whether the person said yes; asked before a row's Delete, `subject` being the host's `deleteLabel`. Optional: an app that hands none gets the browser's own confirm with `message`, and a rejection or a throw counts as no. `useViews().ports.confirm` is always a function.
|
|
697
|
+
|
|
698
|
+
## Icons
|
|
699
|
+
|
|
700
|
+
The glyphs the rendering asks for, by meaning. The app maps each name to a component taking
|
|
701
|
+
`className`. Field types: `text` `longText` `number` `percent` `currency` `date` `datetime` `duration`
|
|
702
|
+
`boolean` `select` `status` `multiselect` `relation` `user` `url` `domain` `email` `phone` `location` `name` `actor`
|
|
703
|
+
`rich_text` `range` `lookup` `rollup` `formula` `computed`. Who did it: `automation` `apiKey` `system` (a member wears `user`). Actions: `add` `edit` `delete` `copy` `cut` `paste` `clear` `hide` `show` `lock`
|
|
704
|
+
`pin` `wrap` `more` `close` `check` `warning` `drag` `resize` `open` `selectRow`. Navigation and order: `chevronDown`
|
|
705
|
+
`chevronRight` `caretDown` `caretRight` `sortAsc` `sortDesc` `enter`. Figures: `calendar` `time` `progress`.
|
|
706
|
+
The grid's menus: `moveLeft` `moveRight` `group` `clearSort` `sortRowsUp` `sortRowsDown`. `sortRowsUp` and
|
|
707
|
+
`sortRowsDown` are a menu's verbs, sorting the rows by a column; `sortAsc` and `sortDesc` are the mark a
|
|
708
|
+
sorted header wears.
|
|
709
|
+
|
|
710
|
+
The panels: `search` (a panel's text box, a magnifier) and `reset` (a setting's way back to the reader's default).
|
|
711
|
+
`options` (a layout setting's default glyph) and `person` (a For you setting's default glyph).
|
|
712
|
+
|
|
713
|
+
The views row: `moreVertical` (a picker row's `⋮`, the active view's verbs; `more` is the horizontal one).
|
|
714
|
+
|
|
715
|
+
The Customize panel: its root rows' `layout`, `columns` and `sort` (Filter and Group wear `filter` and `group`),
|
|
716
|
+
its header's `back` arrow, its actions' `copyLink`, `export` and `share`, and `loading`, the export's spinner,
|
|
717
|
+
a glyph that turns by itself (your app's spinner); the panel names it a status.
|
|
718
|
+
|
|
719
|
+
The filter panel: `filter` (a filter row with no glyph of its own), and a filter kind's glyph, `filterStatus`,
|
|
720
|
+
`filterCategory` and `filterMetric`.
|
|
721
|
+
|
|
722
|
+
An app maps its own icon names onto these in its adapter; a glyph the rendering needs that is not
|
|
723
|
+
here is added here first, with a changelog line.
|
|
724
|
+
|
|
725
|
+
## Message keys
|
|
726
|
+
|
|
727
|
+
The package words only its own strings; a string `viewkitjs/fields` already keys stays a fields
|
|
728
|
+
message, read from the conventions the provider carries. The package's are a closed list of
|
|
729
|
+
`{ key, values }` messages under `views.grid.*`,
|
|
730
|
+
`views.editors.*`, `views.menus.*`, `views.display.*`, `views.selection.*`, `views.panels.*` and `views.field-row.*`: `views.editors.tag-remove` (`{ label }`),
|
|
731
|
+
`views.editors.marker-resolve`, `views.editors.marker-no-reason`, `views.editors.range-low` and
|
|
732
|
+
`views.editors.range-high` (a range editor's two boxes, "From" and "To"), and `views.editors.name-given`,
|
|
733
|
+
`views.editors.name-family` and `views.editors.name-full` (a name editor's three boxes); `views.editors.values-add` ("Add"), `views.editors.values-label` ("Label"), `views.editors.values-main` ("Main", the main value's mark), `views.editors.values-make-main` (`{ value }`, "Make {value} the main one") and `views.editors.values-remove` (`{ value }`, "Remove {value}") (a value list editor's rows); `views.editors.discard` ("Discard", the editor sheet's ✕), `views.editors.save` ("Save", its ✓) and `views.editors.back` ("Back", in ✕'s place while a body stands on a step of its own); `views.editors.open-email`, `views.editors.open-phone` and `views.editors.open-link` (`{ value }`, "Email {value}", "Call {value}", "Open {value}", the open action beside a stored value in a phone's sheet); `views.editors.add-option` (`{ value }`, "Add “{value}”", the row that asks the app to add a typed word as an option), `views.editors.adding-option` (`{ value }`, "Adding “{value}”…", that row while the app answers), `views.editors.add-failed` (`{ value }`, "Couldn't add “{value}”", an add that failed with no words of its own) and `views.editors.add-not-listed` (`{ value }`, "Added “{value}”, but the list hasn't shown it yet", an added option the field's options still don't carry after five seconds); the place editor's: `views.editors.place-country` ("Country"), `views.editors.place-country-search` ("Search countries"), `views.editors.place-change-country` ("Change country"), `views.editors.place-region-search` ("Search"), `views.editors.place-line1` ("Address line 1"), `views.editors.place-line2` ("Address line 2"), `views.editors.place-required` (`{ label }`, "{label} *", a part its country asks for), the region's words `views.editors.place-region-area`, `views.editors.place-region-county`, `views.editors.place-region-department`, `views.editors.place-region-district`, `views.editors.place-region-do-si`, `views.editors.place-region-emirate`, `views.editors.place-region-island`, `views.editors.place-region-oblast`, `views.editors.place-region-parish`, `views.editors.place-region-prefecture`, `views.editors.place-region-province` and `views.editors.place-region-state`, the city's `views.editors.place-city-city`, `views.editors.place-city-district`, `views.editors.place-city-post-town` and `views.editors.place-city-suburb`, and the postal code's `views.editors.place-postal-eircode`, `views.editors.place-postal-pin`, `views.editors.place-postal-postal` and `views.editors.place-postal-zip` (each its word in English: "County", "Do/Si", "Post town", "PIN code", "ZIP code"); `placeWordKey(kind, word)` gives the key for a word `placeFormat` names; `views.editors.place-region` ("Region") beside the place editor's `views.editors.place-country`,
|
|
734
|
+
`views.editors.place-city-city` and `views.editors.place-postal-postal`, a place's parts in a panel;
|
|
735
|
+
`views.menus.part-row` (`{ field, part }`, one part's row in a panel: "Location · Country");
|
|
736
|
+
the grid's column menu: `views.menus.sort-asc` ("Sort ascending"), `views.menus.sort-desc`, `views.menus.sort-clear`
|
|
737
|
+
("Clear sort"), `views.menus.group-by` (`{ field }`, "Group by {field}"), `views.menus.ungroup`, `views.menus.move-left`,
|
|
738
|
+
`views.menus.move-right`, `views.menus.hide-column` ("Hide from view"), `views.menus.format` (a date's or a duration's
|
|
739
|
+
row), `views.menus.date-style` (`{ style }`: `"short"`, `"long"`, `"numeric"` or `"relative"`), `views.menus.show-time`,
|
|
740
|
+
`views.menus.duration-style` (`{ style }`: `"adaptive"`, `"clock"` or `"units"`), `views.menus.decimals`,
|
|
741
|
+
`views.menus.automatic` (the field's own decimals, an option's own colour), `views.menus.currency`,
|
|
742
|
+
`views.menus.percent-display` ("Display"), `views.menus.percent-display-option` (`{ display }`: `"text"` is "Number",
|
|
743
|
+
`"bar"`, `"ring"`), `views.menus.colour` (`{ colour }`, one of the eight option colours: "Gray" … "Teal") and
|
|
744
|
+
`views.menus.colours-reset` ("Reset colors"); a group's menu: `views.menus.group-options` (its button's label, and its menu's name on the `menu` route),
|
|
745
|
+
`views.menus.group-sort` ("Sort rows"), `views.menus.search`, `views.menus.group-show` ("Show"), `views.menus.group-count`
|
|
746
|
+
("Count"), `views.menus.group-hide` ("Hide group") and `views.menus.group-select` (`{ selected }`: "Select all in group", and
|
|
747
|
+
"Deselect all in group" when `"true"`, every row of the group picked); "+ Add column": `views.grid.add-column` (its header
|
|
748
|
+
cell, and its menu's name on the `menu` route), `views.menus.add-column-search` ("Search columns…"), `views.menus.add-column-no-match` (`{ query }`) and `views.menus.add-column-all-shown`; a row's menu:
|
|
749
|
+
`views.menus.copy`, `views.menus.cut`, `views.menus.paste`, `views.menus.clear` and `views.menus.edit` (a cell's lane),
|
|
750
|
+
and the plain row menu's `views.menus.row-open` ("Open page"), `views.menus.row-select` (`{ selected }`, `"true"` is
|
|
751
|
+
"Deselect", as text for a catalog's `select`), `views.menus.row-delete`, `views.menus.row-delete-confirm` (the
|
|
752
|
+
browser's confirm before a delete: "Delete this row?") and `views.menus.row-delete-failed` (the error toast when the
|
|
753
|
+
delete the host ran rejects: "Failed to delete the row"), and `views.menus.row-menu` (its name, handed to your `Menu` as
|
|
754
|
+
`label`: "Row actions"); a `command` field's verb menu's name: `views.menus.commands` (`{ field }`: "Actions for Stage")
|
|
755
|
+
and `views.menus.commands-unnamed` ("Actions", when its opener hands no field); `views.menus.figure-menu`
|
|
756
|
+
(`{ field }`: "Calculate Amount", the figure picker's name on the `menu` route) and `views.menus.column-menu`
|
|
757
|
+
(`{ field }`: "Options for Amount", a column menu's name on the `menu` route);
|
|
758
|
+
the reasons a disabled row the grid builds hands your `Menu` as its `disabledReason`, where no refusal below already says it:
|
|
759
|
+
`views.menus.range-not-clearable` (a selection's Cut and Clear: "Nothing in this selection can be emptied"),
|
|
760
|
+
`views.menus.add-column-all-shown-reason` ("+ Add column"'s all-shown row: "No hidden column to add") and
|
|
761
|
+
`views.menus.loading` (a field row's verbs while its record loads: "Wait for current data before editing");
|
|
762
|
+
the grid's own: `views.grid.figure` (`{ kind }`, a footer figure's name, `"none"` included: "None", "Sum", "Avg", "Min",
|
|
763
|
+
"Max", "Count", "Filled", "Unique", "Ratio"), `views.grid.figure-pick` ("Calculate", the offer `vk-grid-figure-pick` in an empty footer cell),
|
|
764
|
+
the pager's `views.grid.pager` ("Pages", its name), `views.grid.pager-range` (`{ from, to, total, exact }`, `exact` `"true"` or `"false"`: "26–50 of 213",
|
|
765
|
+
"1–25 of 1,000+" under a capped count, "No rows"), `views.grid.pager-size` (`{ size }`: "25 per page"),
|
|
766
|
+
`views.grid.pager-sizes` ("Rows per page", the size menu's name), `views.grid.pager-previous` ("Previous") and
|
|
767
|
+
`views.grid.pager-next` ("Next"),
|
|
768
|
+
`views.grid.loading` ("Loading rows"), the labels `views.grid.select-row`, `views.grid.select-group`,
|
|
769
|
+
`views.grid.select-all`, `views.grid.row-menu`, `views.grid.group-expand`, `views.grid.group-collapse`,
|
|
770
|
+
`views.grid.change-value`, `views.grid.value` and `views.grid.edit-value` (a long text's box, read-only or not),
|
|
771
|
+
`views.grid.read-only` and `views.grid.read-only-why` (a locked list's badge and its title); its refusals
|
|
772
|
+
`views.grid.locked` (`{ field }`), `views.grid.not-clearable`, `views.grid.computed` (`{ from }`),
|
|
773
|
+
`views.grid.cell-read-only`, `views.grid.clear-none` and `views.grid.clear-required` (`{ fields }`, the fields a clear
|
|
774
|
+
over several cells left because they can't be empty, already joined in the viewer's locale); its write gate's `views.grid.write-not-list`,
|
|
775
|
+
`views.grid.write-not-boolean`, `views.grid.write-marker`, `views.grid.write-not-email`, `views.grid.write-not-url`, `views.grid.write-not-link` and
|
|
776
|
+
`views.grid.write-not-linkable`; a paste's `views.grid.paste-refused`, `views.grid.paste-empty`,
|
|
777
|
+
`views.grid.paste-not-number`, `views.grid.paste-not-duration`, `views.grid.paste-not-date`,
|
|
778
|
+
`views.grid.paste-not-option`, `views.grid.paste-ambiguous-option` (a label two options share),
|
|
779
|
+
`views.grid.paste-pick` and `views.grid.paste-not-linkable` (each `{ value }`, the pasted text), `views.grid.paste-other-currency` (`{ currency }`, the record's own: an amount pasted or filled into a
|
|
780
|
+
record in another currency) and `views.grid.paste-not-range`; a paste or a fill that refused cells,
|
|
781
|
+
`views.grid.paste-skipped` and `views.grid.fill-skipped` (each `{ count, reason }`: one toast per reason, its
|
|
782
|
+
`reason` one of the refusals above in the app's words; an operation of one cell says the reason alone); a write the app
|
|
783
|
+
refused, said when the provider's `sayRefusals` is on, `views.grid.commit-refused` (`{ field }`, the field's name, for a
|
|
784
|
+
refusal whose error carries no words: "Couldn't save Amount.") and `views.grid.commit-refused-many` (`{ count, reason? }`,
|
|
785
|
+
a batch, once, with the first refusal's words when it has any); and the warnings
|
|
786
|
+
`views.grid.changed-elsewhere` (`{ field }`), `views.grid.changed-elsewhere-cells` (`{ count }`),
|
|
787
|
+
`views.grid.saved-value`, `views.grid.saved-values` and `views.grid.row-left`. The functions that word a refusal
|
|
788
|
+
(`gridClearRefusal`, `columnClearRefusal`, `columnEditRefusal`, `gridEditRefusal`) take the resolver last, and
|
|
789
|
+
`gridNormalizeWrite` in its options; each defaults to `resolveViewsMessage`. And the display's words —
|
|
790
|
+
`views.display.just-now`, `views.display.in` (`{ count, unit }`, a span ahead: "in 5m"),
|
|
791
|
+
`views.display.today`, `views.display.yesterday`, `views.display.tomorrow`, `views.display.month`
|
|
792
|
+
(`{ month, length }`), `views.display.not-an-option` (a stored value its field does not name),
|
|
793
|
+
`views.display.needs-attention` (a marker's default heading), `views.display.boolean`
|
|
794
|
+
(`{ value }`, `"true"` or `"false"` as text so a catalog's `select` reads it: a text boolean with no words of its own), `views.display.show-all` (`{ count }`), and
|
|
795
|
+
`views.display.show-more` and `views.display.show-less` (rich text folded in a drawer), and
|
|
796
|
+
`views.display.phone-extension` (`{ extension }`, "ext. 12" after a phone) and `views.display.phone-as-typed`
|
|
797
|
+
(the title on a phone stored as typed), and `views.display.converted-from` (`{ code }`, "Converted from USD", the
|
|
798
|
+
title on a money figure shown in another currency than its record's) and `views.display.as-shown` ("as shown",
|
|
799
|
+
after that figure under a money editor).
|
|
800
|
+
A field row's own word is under `views.field-row.*`: `views.field-row.empty` ("Empty", what a row the viewer may
|
|
801
|
+
edit draws when it holds nothing, muted; a row they can't edit draws "—").
|
|
802
|
+
And the panels' words: the "For you" heading, `views.panels.for-you`; the Group
|
|
803
|
+
panel's orders, `views.panels.group-order-most` ("Most first"), `views.panels.group-order-fewest`,
|
|
804
|
+
`views.panels.group-order-newest`, `views.panels.group-order-oldest`, `views.panels.group-order-alphabetical`,
|
|
805
|
+
`views.panels.group-order-reverse-alphabetical`, `views.panels.group-order-reversed` (`{ label }`, "Stage, reversed"),
|
|
806
|
+
`views.panels.group-order-default`, `views.panels.group-order-count`, `views.panels.group-order-name` and
|
|
807
|
+
`views.panels.group-order-manual`; a list's joins, `views.panels.join-or` (" or ") and `views.panels.join-and`
|
|
808
|
+
(" and "), which hand the keys below a list already joined, since a value is text or a number; a relation filter's:
|
|
809
|
+
`views.panels.quantifier` (`{ quantifier }`: `"any"`,
|
|
810
|
+
`"none"` or `"every"`), `views.panels.relation-condition-options` (`{ field, options }`: "status is Active or
|
|
811
|
+
Paused"), `views.panels.relation-condition` (`{ field, value }`), `views.panels.relation-sentence`
|
|
812
|
+
(`{ rule, subject, one, many, conditions }`, the whole sentence: "Clients with at least one campaign where status is Active.", its
|
|
813
|
+
`rule` `"all"`, `"any"`, `"none"`, `"every"` or `"every-unmatched"`), `views.panels.relation-value-one`
|
|
814
|
+
(`{ quantifier, field, value }`, "Any · Status: Active") and `views.panels.relation-value-many`
|
|
815
|
+
(`{ quantifier, count }`); a row's value: `views.panels.filter-unavailable` ("Saved filter unavailable"), `views.panels.filter-not-offered` (a filter row that can't be opened, its reason: "This column can't be filtered"), `views.panels.filter-all`
|
|
816
|
+
("All"), `views.panels.filter-all-of` (`{ field }`, "All owners"), `views.panels.filter-selected` (`{ count }`),
|
|
817
|
+
`views.panels.hidden-columns` ("Hidden columns", the heading a hidden column's Filter row sits under), `views.panels.related-records` ("Related records", the relation rows' heading), a yes/no column's choices
|
|
818
|
+
`views.panels.boolean-checked` ("Checked"), `views.panels.boolean-unchecked` ("Unchecked") and `views.panels.boolean-not`
|
|
819
|
+
(`{ label }`, "Not won"), and a relation's Where field page title `views.panels.where-field-title` (`{ relation, field }`,
|
|
820
|
+
"Campaigns · Status"),
|
|
821
|
+
`views.panels.date-range-all` ("All time"), `views.panels.date-range-between` (`{ from, to }`, "Jan 1 — Jan 9"),
|
|
822
|
+
`views.panels.date-range-from`, `views.panels.date-range-until`, `views.panels.time-scope-custom` ("Custom"),
|
|
823
|
+
`views.panels.sort-value` (`{ label, dir }`, "Name, descending"), `views.panels.sort-none` ("None", a list with no
|
|
824
|
+
sort), `views.panels.group-none` ("None") and
|
|
825
|
+
`views.panels.filter-count` (`{ count }`: "None", "1 filter", "2 filters"); and the rows':
|
|
826
|
+
`views.panels.direction` (`{ dir }`, "Direction: ascending"), `views.panels.toggle-reset` (`{ label }`, "Reset
|
|
827
|
+
Wrap"), `views.panels.toggle-reset-hint` ("Back to your default") and `views.panels.search-clear` ("Clear"). The
|
|
828
|
+
panels' label functions take the resolver last; each defaults to `resolveViewsMessage`.
|
|
829
|
+
The views row's words: `views.panels.view-private` ("Only you", a private view's lock),
|
|
830
|
+
`views.panels.view-reorder` (`{ label }`, "Reorder Board", a pill's grip), `views.panels.view-count`
|
|
831
|
+
(`{ label, count }`, "Board · 12"), `views.panels.views-more` (`{ count }`, "3 more views", the "+N" chip),
|
|
832
|
+
`views.panels.views-more-list` ("More views", its list), `views.panels.view-change` ("Change view", the
|
|
833
|
+
picker's chip), `views.panels.view-fallback` ("View", the chip with no active view),
|
|
834
|
+
`views.panels.views-search` ("Search views…"), `views.panels.views-list` ("Views", the picker's list),
|
|
835
|
+
`views.panels.views-shared` ("Shared") and `views.panels.views-personal` ("Personal"), its two headings,
|
|
836
|
+
`views.panels.views-none` ("No view matches."), `views.panels.view-create` ("New view", the +),
|
|
837
|
+
`views.panels.view-create-row` (`{ label }`, "New view…", the picker's last row) and
|
|
838
|
+
`views.panels.view-menu` ("View menu", a picker row's `⋮`).
|
|
839
|
+
The toolbar's words: `views.panels.show-counts` ("Show counts", the toolbar's toggle over the views' and the quick filters' counts,
|
|
840
|
+
writing the view's `showCounts`),
|
|
841
|
+
`views.panels.toolbar-more` ("More", ⋯'s name in a folding toolbar line), `views.panels.view-clear` ("Clear") and
|
|
842
|
+
`views.panels.view-save` ("Save") (the bar's Clear and Save, and the ready toolbar's Customize foot),
|
|
843
|
+
`views.panels.toolbar-new` ("New", the New button's name and word), `views.panels.toolbar-options` ("Customize",
|
|
844
|
+
the Options button's name and word), `views.panels.edit-view` ("Edit view…", the row the ready toolbar puts at the
|
|
845
|
+
head of the active view's menu) and `views.panels.toolbar-clear` ("Clear all",
|
|
846
|
+
a `ToolbarButton`'s ✕ badge, which clears what it counts); its Search button and field take `views.panels.search`,
|
|
847
|
+
its ✕ `views.panels.search-close` ("Close search", while a search its button opened stands open, empty or not) or,
|
|
848
|
+
in a field filling its line, `views.panels.search-clear` once something is typed, and its spinner `views.panels.searching` ("Searching").
|
|
849
|
+
The Sort and Group panels' words: `views.panels.search` ("Search", a long list's search box),
|
|
850
|
+
`views.panels.group-by` ("Group by"), `views.panels.sort` ("Sort"), `views.panels.date-by` ("Date by"),
|
|
851
|
+
`views.panels.hide-empty-groups` ("Hide empty groups"), `views.panels.groups` ("Groups", the heading over the
|
|
852
|
+
group order), `views.panels.groups-hide-all` ("Hide all"), `views.panels.groups-show-all` ("Show all"),
|
|
853
|
+
`views.panels.group-remove` ("Remove grouping") and `views.panels.group-empty` ("—", the empty group's name);
|
|
854
|
+
a dragging list's rows: `views.panels.move`, `views.panels.show` and `views.panels.hide` (`{ label }`, "Move
|
|
855
|
+
Status", "Show Status", "Hide Status"); the Columns list and one column's settings:
|
|
856
|
+
`views.panels.columns-reset` ("Reset columns"), `views.panels.column-visible` ("Visible"), the reasons a disabled Visible switch or eye gives, `views.panels.column-always-shown` ("This column always shows") and `views.panels.column-last-shown` ("One column must stay shown"),
|
|
857
|
+
`views.panels.new-line-first` ("The first field already starts the card"), `views.panels.new-line-on`
|
|
858
|
+
(`{ label }`, "Owner starts a new line"), `views.panels.new-line-start` (`{ label }`, "Start a new line at
|
|
859
|
+
Owner") and `views.panels.new-line-hidden` (a hidden field's new-line reason: "A hidden field isn't on the card"); the Layout panel's: `views.panels.layout-options` ("Options"), `views.panels.layout-density`
|
|
860
|
+
("Density") and `views.panels.personal-reset` ("Use what the view says").
|
|
861
|
+
The filter panel's own words (VK-392): `views.panels.filter-placeholder` (`{ field }`, "Filter by name…"), the
|
|
862
|
+
bounds' `views.panels.bound-value` ("Value"), `views.panels.bound-from` ("From") and `views.panels.bound-to`
|
|
863
|
+
("To"); a relation's `views.panels.relation-choice` (`{ quantifier, one }`: "Any campaign", "No campaign",
|
|
864
|
+
"Every campaign"), `views.panels.relation-every-needs-where` (`{ one }`, "Pick a campaign field under Where
|
|
865
|
+
first") and `views.panels.where` ("Where"); `views.panels.filter-clear-saved` ("Clear saved filter"); `views.panels.filter-no-options` ("Nothing to pick.", a filter with no options); a toggle's
|
|
866
|
+
`views.panels.toggle-on` ("On") and `views.panels.toggle-off` ("Off"); `views.panels.date-range-clear` ("Clear"),
|
|
867
|
+
`views.panels.date-range-label` ("Date Range") and `views.panels.time-scope-label` ("Time Range"); and the date's
|
|
868
|
+
`views.panels.date-start` ("Start date"), `views.panels.date-end` ("End date"), `views.panels.date-placeholder`
|
|
869
|
+
("dd/mm/yyyy"), `views.panels.date-relative-note` ("Filter will update with the current date"), and its menus'
|
|
870
|
+
names, `views.panels.date-operator` ("Date condition"), `views.panels.date-direction` ("Direction") and
|
|
871
|
+
`views.panels.date-unit` ("Unit"). The operators' own words are `viewkitjs/fields`' English.
|
|
872
|
+
The Customize panel's words (VK-395): its title, `views.panels.customize-title` ("Customize view"); its header's
|
|
873
|
+
`views.panels.back` ("Back"), `views.panels.close` ("Close") and `views.panels.clear-all` ("Clear all"); its root
|
|
874
|
+
rows' and pages' names where the list names none, `views.panels.filter` ("Filter"), `views.panels.layout`
|
|
875
|
+
("Layout"), `views.panels.columns` ("Columns"), `views.panels.column` ("Column") and `views.panels.group`
|
|
876
|
+
("Group"), with `views.panels.sort`, `views.panels.group-by`, `views.panels.date-by`,
|
|
877
|
+
`views.panels.time-scope-label` and `views.panels.date-range-label` above, and the Columns row's value,
|
|
878
|
+
`views.panels.columns-shown` (`{ count }`, "3 shown"); its footer on a shared view, `views.panels.view-publish`
|
|
879
|
+
("Set default for everyone"), `views.panels.view-reset` ("Reset") and `views.panels.view-stale` ("Everyone's view
|
|
880
|
+
changed since you started."); and its actions, `views.panels.copy-link` ("Copy link to view"),
|
|
881
|
+
`views.panels.export-csv` ("Export CSV"), `views.panels.share` ("Share"), `views.panels.coming-soon` ("Coming
|
|
882
|
+
soon", a parked action's hint) and `views.panels.loading` ("Loading", the export's spinner).
|
|
883
|
+
The words the panels' builder writes into its configs (`settingsPanels`, `/panels`): the layouts, `views.panels.layout-table` ("Table"), `views.panels.layout-list` ("List"), `views.panels.layout-board` ("Board"), `views.panels.layout-calendar` ("Calendar"), with `views.panels.layout-rows` ("Rows", the list as the phone choice names it), and the reasons one is refused, `views.panels.layout-refused-calendar` ("No date field") and `views.panels.layout-refused-board` ("No field to lay a board out by"); the look, `views.panels.look-vertical-borders` ("Vertical borders"), `views.panels.look-row-icon` ("Row icon"), `views.panels.look-freeze-identity` ("Freeze identity columns"), `views.panels.look-always-checkboxes` ("Show checkboxes always"); the densities, `views.panels.density-compact` ("Compact"), `views.panels.density-default` ("Default"), `views.panels.density-spacious` ("Spacious"); the Layout panel's choices, `views.panels.board-field` ("Board by"), `views.panels.calendar-field` ("Date field"), `views.panels.card-fields` ("Fields") (a card's Columns row) and `views.panels.phone-layout` ("On your phone"); Sort's `views.panels.sort-manual` ("Manual"); the sort pill and the sort editor's (VK-188), `views.panels.sorted-by` ("Sorted by", before the first rule's field), `views.panels.sort-more` (`{ count }`, "+{count}"), `views.panels.sort-add-one` ("Add a sort", the +'s name), `views.panels.sort-add` ("Add sort"), `views.panels.sort-clear-all` ("Clear all"), `views.panels.sort-sorted` ("Sorted", a field already sorted), `views.panels.sort-max` (`{ max }`, "Three at most"), `views.panels.sort-empty` ("No sorting set up yet") and `views.panels.sort-empty-line` ("Choose a field to sort by"), `views.panels.sort-ascending` ("Ascending") and `views.panels.sort-descending` ("Descending"), `views.panels.sort-direction` ("Direction", its menu's name), with `views.panels.sort-field-named` and `views.panels.sort-direction-named` (`{ label }`, "Field: {label}", "Direction: {label}", a rule's two boxes named with what they hold), `views.panels.sort-delete` ("Delete"), `views.panels.sort-move` (`{ label }`, "Move {label}", a rule's grip), `views.panels.sort-remove` (`{ label }`, "Remove the sort by {label}"), `views.panels.sort-actions` (`{ label }`, "Actions for the sort by {label}", a phone's ⋯), `views.panels.sort-search` ("Search fields") and `views.panels.sort-done` ("Done", the phone sheet's ✓); the quick filters' (VK-563), `views.panels.quick-filters` ("Quick filters", the button and its panel), `views.panels.quick-fields` ("Fields", the strip's name), `views.panels.quick-search` (`{ field }`, "Search {field}"), `views.panels.quick-none` ("Nothing matches."), `views.panels.quick-value` (`{ label, count }`, "{label}, {count}", a value with its count to a screen reader, the count already in the reader's digits), `views.panels.quick-empty` ("No value", a held empty value no value lists), and the reminder's on a phone (VK-566), `views.panels.quick-reminder` (`{ names }`, "Quick filters: {names}", its names to a screen reader, every held value named once), `views.panels.quick-more` (`{ count }`, "+{count}", the names it doesn't show) and `views.panels.quick-clear` ("Clear quick filters", its ✕); the advanced filter and the filter editor's (VK-531), `views.panels.advanced-filter` ("Advanced filter", its pill), `views.panels.advanced-filter-set-aside` ("Its rules are set aside", why a pill whose rules are all set aside is drawn set aside), `views.panels.filter-join` (`{ join }`, "And" or "Or"), `views.panels.filter-add` ("Add filter"), `views.panels.filter-clear-all-filters` ("Clear all filters"), `views.panels.filter-to-group` ("Convert to group"), `views.panels.filter-delete-rule` ("Delete condition"), `views.panels.filter-delete-group` ("Delete group"), `views.panels.filter-exclude` ("Exclude matches"), `views.panels.filter-exclude-needs-and` ("Join by And to exclude matches"), `views.panels.filter-excluded` ("Not all of these", heading a group that excludes its matches), `views.panels.filter-to-advanced` ("Convert to advanced filter", a filter's page in the Filter panel, and a row of a filter's ⋯ on the bar), `views.panels.filter-field` ("Field"), `views.panels.filter-way` ("How it compares") and `views.panels.filter-value` ("Value"), a rule's three boxes and a bar filter's three parts, `views.panels.filter-choose` ("Choose", drawn nowhere: a value waiting says `views.panels.filter-waits`), `views.panels.filter-search` ("Filter by…"), `views.panels.filter-relation-way` (`{ quantifier }`, "any where", "none where", "every where"), `views.panels.filter-rule-actions` (`{ label }`, "Actions for the filter on {label}", a rule's ⋮), `views.panels.filter-group-actions` ("Actions for this group"), `views.panels.filter-set-aside-why` (`{ reason }`, a set-aside filter's why: "Set aside: its field is no longer in this list", "Set aside: its field no longer compares this way", "Set aside: its field no longer has this part"), `views.panels.sort-set-aside-why` (`{ reason }`, a set-aside sort's: "Set aside: its field is no longer in this list", else "Set aside: its field no longer sorts this way"), `views.panels.filter-set-aside-back` and `views.panels.sort-set-aside-back` (a set-aside filter's or sort's why once its field is listed again: "Set aside: its field is back in this list, and Put back filters by it again", "… and Put back sorts by it again"), `views.panels.put-back` ("Put back"), `views.panels.filter-or-full` ("This view's filter joins by Or and is three levels deep: change it in its advanced filter", the rows' reason), `views.panels.filter-too-deep` ("Three levels at most"), `views.panels.filter-too-many` ("Fifty filters at most in one group") and `views.panels.filter-relation-gone` ("Its relation is no longer in this list", Add filter's reason under a relation the list no longer lists); the filter editor on a phone's (VK-532), `views.panels.filter-empty` ("No filtering set up yet") and `views.panels.filter-empty-line` ("Choose a field to filter by"), `views.panels.filter-clear-all` ("Clear all") and `views.panels.filter-done` ("Done", the phone sheet's ✓); the filters on the toolbar's bar, `views.panels.filter-waits` (`{ type }`, what a filter's value waits for, on the bar and in the filter editor's value box: "Choose" for a choice, "Type a number", "Choose a date", "Type a value"), `views.panels.filter-way-words` (`{ label }`, how it compares as the bar says it, the way's label with its first letter in lower case, "is any of"), `views.panels.filter-far-field` (`{ relation, field }`, "Company › Industry", a related record's field), `views.panels.filter-rule-words` (`{ field, way, value }`, "Stage is any of Talking", the sentence that names a filter), `views.panels.filter-add-one` ("Add a filter", the +'s name), `views.panels.filter-delete` ("Delete filter"), `views.panels.filter-more` (`{ count }`, "+1 filter", "+{count} filters") and `views.panels.filter-more-named` (`{ count }`, "1 more filter", "{count} more filters", its name); what a screen reader hears of a drag in the parts that drag (VK-401), each row by its label, `views.panels.drag-instructions` ("To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel."), `views.panels.drag-picked-up` (`{ label }`, "Picked up draggable item {label}."), `views.panels.drag-over` (`{ label, over }`, "Draggable item {label} was moved over droppable area {over}."), `views.panels.drag-not-over` (`{ label }`, "Draggable item {label} is no longer over a droppable area."), `views.panels.drag-dropped-over` (`{ label, over }`, "Draggable item {label} was dropped over droppable area {over}"), `views.panels.drag-dropped` (`{ label }`, "Draggable item {label} was dropped.") and `views.panels.drag-cancelled` (`{ label }`, "Dragging was cancelled. Draggable item {label} was dropped."); the Group panel's orders `views.panels.group-order-date` ("Date") and `views.panels.group-order-lifecycle` ("Lifecycle"); and a date's granularities, `views.panels.granularity-relative` ("Relative"), `views.panels.granularity-due` ("Due"), `views.panels.granularity-day` ("Day"), `views.panels.granularity-week` ("Week"), `views.panels.granularity-month` ("Month"), `views.panels.granularity-year` ("Year").
|
|
884
|
+
The selection bar's words are under `views.selection.*`: `views.selection.count` (`{ count }`, "3 selected",
|
|
885
|
+
the phone sheet's title), `views.selection.selected` (the word after the count the bar draws),
|
|
886
|
+
`views.selection.deselect-all` (the count chip), `views.selection.clear` (the phone's ✕),
|
|
887
|
+
`views.selection.delete` (the trash's default name), `views.selection.more` and
|
|
888
|
+
`views.selection.more-label` (More, and its accessible name), `views.selection.more-none` ("No more
|
|
889
|
+
actions for these", why More opens nothing while no verb spills into it), `views.selection.actions` (the phone's
|
|
890
|
+
Actions), `views.selection.sheet-label` (the sheet's accessible name) and `views.selection.escape`
|
|
891
|
+
(the key cap in the chip's tooltip).
|
|
892
|
+
A span behind now is fields' own `time.ago`. The provider's `messages` resolves them; it defaults to the
|
|
893
|
+
package's English, `resolveViewsMessage`; an app's resolver that words only some keys calls
|
|
894
|
+
`resolveViewsMessage` for the rest, since the provider does not fall back for it. A new key is a
|
|
895
|
+
change to the list and a compile error in every exhaustive resolver (a `switch` with no default)
|
|
896
|
+
that has not worded it.
|
|
897
|
+
|
|
898
|
+
## Four shapes of a value
|
|
899
|
+
|
|
900
|
+
A value takes up to four shapes on its way through a view: **stored** (what the row holds), **draft** (what an editor holds while it is open), **commit** (what the editor hands its host when it closes) and **display** (what a surface draws). Stored and commit differ on purpose, and the binding's `write` is where a host maps one onto the other.
|
|
901
|
+
|
|
902
|
+
| type | stored | draft | commit | display |
|
|
903
|
+
| -------------------------------------------- | --------------------------------------------------------- | ---------------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------- |
|
|
904
|
+
| `text` | a string | the text editor's box | a string | the text; a long text folds |
|
|
905
|
+
| `url`, `domain`, `email`, `phone` | a string (a phone `{ number, extension }`) | the text editor's box | the typed text, which fields' `acceptFieldCommit` reads | a link (`tel:` for a phone) |
|
|
906
|
+
| the same, `multiple` | `{ value, label, main }[]`, the main one first | a row each | the whole list (`editors/value-list`) | the main value, and the rest on demand |
|
|
907
|
+
| `number`, `percent`, `currency` | a number (a currency's code fixed, or in a sibling field) | the typed text | `NumberCommit`: `{ value, unit? }` | the figure in the conventions' locale; a percent appended, never multiplied |
|
|
908
|
+
| `date` | `"2026-09-15"` | the picked day | `"2026-09-15"` | the day in the column's style |
|
|
909
|
+
| `datetime` | an ISO instant | the local day and time | `"2026-09-15T14:30"`, local: the host merges it onto the stored instant | the day and time |
|
|
910
|
+
| `boolean` | a boolean | none | a boolean, from the display control itself | a checkbox, an icon, a marker or text |
|
|
911
|
+
| `select`, `status` | the option's code | none: a pick commits | the option's code, or `""` for None on a field that may be emptied | a badge, a status by its semantic slot |
|
|
912
|
+
| `multiselect` | the codes | the chosen codes | the whole set | badges |
|
|
913
|
+
| `relation`, `user` | an id or null (ids for a many relation) | the picked id; a many relation's set | an id, a ref `{ kind, id }`, or `null` for unlinked; a many relation's whole set as stored | a chip `{ id, label, entity, avatarUrl }` the host resolves |
|
|
914
|
+
| `range` | `{ low, high }` | two boxes | `{ low, high }`, an empty box an open end | "11–50" with its unit and period |
|
|
915
|
+
| `name` | `{ full, given, family }` | three boxes | `{ full, given, family }`, or `null` | the full name, else the parts, else the host's fallback |
|
|
916
|
+
| `location` | the place's parts in its country's order | the country, then its parts | the place, or `null` | the place written whole |
|
|
917
|
+
| `rich_text` | a markdown string | the host's own input; in the grid, the long-text panel | the markdown string | folded text |
|
|
918
|
+
| `actor`, `lookup`, `rollup`, `formula` | set by the system, or derived | none | none: no editor opens | a chip, the far field, the result |
|
|
919
|
+
|
|
920
|
+
A clear is the one exception to the commit column. Delete, Cut, the grid row menu's Clear and a clear over a range commit `""` for every type above but three, on a field that may be emptied: a relation (and a member) commits `null` and a multiselect `[]`, and a boolean commits `false`, whether or not it may be emptied. So a cleared number, date, name, range, select or text reaches the binding's `write` as `""`, and the `write` maps it to what the row stores for nothing.
|
|
921
|
+
|
|
922
|
+
A derived field (a lookup, a rollup, a formula) has no commit at all: no edit core, and fields' `zodFor` refuses it. `EDIT_CORES` (`viewkitjs/views/editors`) answers which types open an edit core; `null` is the answer for a type with none, such as `boolean`, which its display control flips. The text-like types (`text`, `rich_text`, `url`, `domain`, `email`, `phone`) share one, `TextEditor`.
|
|
923
|
+
|
|
924
|
+
## What an edit core never does
|
|
925
|
+
|
|
926
|
+
An editor owns its panel and what a close means. Everything else is its host's, so the same core runs in a grid cell, a drawer row, a card or a form. An edit core never:
|
|
927
|
+
|
|
928
|
+
- calls a mutation or fetches on its own (its host writes, and its host hands it candidates; the relation editor's remote search calls the host's own `search`);
|
|
929
|
+
- closes itself or owns the exit timer (the host's popover closes it, and the edit session holds the gap);
|
|
930
|
+
- reads a form library, the grid's focus or selection, or a host's list.
|
|
931
|
+
|
|
932
|
+
## A command field
|
|
933
|
+
|
|
934
|
+
A field whose changes are transitions with rules of their own (a lost deal needs a reason, a reassigned record moves what is filed against it) declares `edit.mutability: "command"` in `viewkitjs/fields`. It is edited by verbs, never by an editor: its binding takes no `write` (`checkBinding` refuses one), `bindingWritable` answers false, and `columnFrom` marks the column `command` and never `editable`. The grid cell, the drawer row and the card each open the same menu, shaped by `FieldMenus` (field key → menu items), and the host supplies the verbs; what a verb writes goes through the host's own route for that transition. The cell opens the app's `CommandMenu` atom with the host's items, where an editable cell would open an editor, so the field does not read as frozen; handed no verbs, it is a read-only value.
|
|
935
|
+
|
|
936
|
+
## The doors
|
|
937
|
+
|
|
938
|
+
Twenty-three doors in this version, and nothing else is importable but `./package.json`; the panels' two (`/panels` and `/panels/react`) are described last. What each holds is summarised here; each door's reference page names every export, one line each, starting at [`reference/views.md`](reference/views.md).
|
|
939
|
+
|
|
940
|
+
`viewkitjs/views`, no React at runtime, holds two things. The rendering contract, every name listed:
|
|
941
|
+
the constants `VK_PREFIX`, `GRID_SLOTS`, `GRID_STATES`, `VK_TOKENS`, `VK_COLOURS`,
|
|
942
|
+
`VK_OPTIONAL_COLOURS`, `VK_OPTIONAL_LAYOUT`, `COMPONENT_NAMES`, `OPTIONAL_COMPONENT_NAMES`, `ATOM_NAMES`, `ATOM_SLOTS`, `ATOM_STATES`, `EDITOR_SLOTS`, `PORT_NAMES`,
|
|
943
|
+
`ICON_NAMES`, `MESSAGE_NAMESPACES` and `VIEWS_MESSAGE_KEYS`; the functions `resolveViewsMessage` and `placeWordKey`; and
|
|
944
|
+
the types `GridSlot`, `GridState`, `VkToken`, `VkColour`, `VkOptionalColour`, `VkOptionalLayout`, `ComponentName`, `OptionalComponentName`,
|
|
945
|
+
`AtomName`, `AtomSlot`, `AtomState`, `EditorSlot`, `PortName`, `ViewsIconName`, `ViewsMessageNamespace`,
|
|
946
|
+
`ViewsMessageKey`, `ViewsMessage`, `ViewsMessageResolver` and `PlaceWordKey`.
|
|
947
|
+
|
|
948
|
+
And the model, by module: every export of `model/index.ts` (the column vocabulary — what a column is,
|
|
949
|
+
what may be done to it, its state, its filters, its preferences, the view rules, the aggregates) and
|
|
950
|
+
of the five model modules that barrel does not carry (`card-density`, `card-layout`, `column-format`,
|
|
951
|
+
`column-inspect`, `column-money`: the card's density and layout, a column's format, inspection and
|
|
952
|
+
money reading),
|
|
953
|
+
`filters/` (the filter registry and its types, the text, number and date rules, the filter config
|
|
954
|
+
types and their guards), `figures.ts`, `grouping/` (`ListGroup` and the group sort) and `fields/`
|
|
955
|
+
(the binding, money and currency, denomination, the write preparation, the write target (`EntityWriteTarget`,
|
|
956
|
+
`EntityWriteReceipt`, `FieldWriteAdmission`, `FieldWriteAdmissionGuard`, `LockedResolver`, `FieldNote`,
|
|
957
|
+
`FieldWriteReconciliationRequired`), the edit-core types, number
|
|
958
|
+
edit, the format knobs and the relation source types, the host's verb-menu types (`FieldMenus`, `FieldRowMenuItem`)). A name exported by one of those modules is
|
|
959
|
+
public; nothing else at the root door is.
|
|
960
|
+
|
|
961
|
+
`viewkitjs/views/react`, which opens with the client directive: `ViewsProvider`, `useViews()` and
|
|
962
|
+
`NOOP_PORTS`; the provider's types `ViewsProviderProps` and `ViewsContextValue`; the adapter's types
|
|
963
|
+
`ViewsComponents`, `ViewsResolvedComponents` (the map as `useViews()` hands it on, `Input`, `Command` and `Calendar` always there), `ViewsPorts`, `ViewsIcons` and `ViewsIconProps`; the components' props
|
|
964
|
+
`ViewsButtonProps`, `ViewsPopoverProps`, `ViewsTooltipProps`, `ViewsCheckboxProps`, `ViewsMenuProps`,
|
|
965
|
+
`ViewsMenuItem`, `ViewsCommandParts`, `ViewsPickerProps`, `ViewsPickerItem`, `ViewsPickerAction`, `ViewsLinksBodyProps`, `ViewsLink`, `ViewsLinkRole`, `ViewsCalendarProps`, `ViewsDateBodyProps`, `ViewsDatePick`, `ViewsDatePicks`, `ViewsPartsBodyProps`, `ViewsPlacePart`, `ViewsPlaceParts`, `ViewsValuesBodyProps`, `ViewsValueLine`, `ViewsTextBodyProps`, `ViewsNumberBodyProps`, `ViewsRowsWaitProps`, `ViewsCollapseProps`,
|
|
966
|
+
`ViewsSheetProps` and `ViewsInputProps`, with their shared shapes `ViewsAnchor`, `ViewsSide`, `ViewsAlign`,
|
|
967
|
+
`ViewsCloseReason` and `ViewsOpenChange`; the ports' types `ViewsToastPort`, `ViewsHapticsPort`,
|
|
968
|
+
`ViewsClipboardPort`, `ViewsPrefsPort`, `ViewsConfirmPort`, `ViewsConfirmRequest` and `ViewsResolvedPorts` (the
|
|
969
|
+
ports `useViews()` hands on, `confirm` always there); the atoms' `DEFAULT_VIEWS_ATOMS` and types `ViewsAtoms`,
|
|
970
|
+
`ViewsListProps`, `ViewsRowProps`, `ViewsRowContentProps`, `ViewsTickBoxProps`, `ViewsAvatarProps`, `ViewsStatusBadgeProps`,
|
|
971
|
+
`ViewsStatusMarkerProps`, `ViewsTagProps`, `ViewsCommandMenuProps`, `ViewsRowMenuProps`, `ViewsRowMenuItem`, `ViewsRelationLinkProps`, `ViewsRelationRolesProps`, `ViewsLoadingProps`, `ViewsLoadMoreProps` and `ViewsPlatformMarkProps`; and, re-exported from the root door, `ComponentName`,
|
|
972
|
+
`PortName`, `ViewsIconName`, `ViewsMessage` and `ViewsMessageResolver`. The provider takes an
|
|
973
|
+
optional `presentation`, `(defaults: FieldPresentation) => FieldPresentation`: how the app's numbers,
|
|
974
|
+
dates and durations read — given the package's defaults (in the conventions' locale), return the
|
|
975
|
+
app's. It is called where a value is drawn, so the app's provider imports none of the display.
|
|
976
|
+
It takes an optional `escape` (`ViewsEscapeRules`, `{ [type]: EditEscape }`, `EditEscape` being `"cancel"` or `"keep"`,
|
|
977
|
+
both types from `./react`): what Escape does in an editor of each field type, on a desktop. An email, a phone, a link
|
|
978
|
+
or a domain takes either one `EditEscape`, for both of its editors, or `{ box?, list? }` (`EditEscapeByEditor`): `box`
|
|
979
|
+
its text box (a single value), `list` the value list (several values, or a single one `oneValue` opens as a list of
|
|
980
|
+
one), each left out throwing the edit away. `escape={{ phone: { list: "keep" }, email: { list: "keep" } }}` keeps what
|
|
981
|
+
was typed in several phones and emails and throws it away in a single one. `keep` keeps what was
|
|
982
|
+
typed and closes, as a press outside does, and a value the editor or the app refuses on the spot stays open with its reason, until a second Escape throws the edit away; a refusal the server sends after the save arrives once the editor has closed, as after Enter (on the cell in the grid, under the row in a field row, whose editor reopens on the refused value with that reason until the value changes); a type left
|
|
983
|
+
out throws the edit away, the default. On a phone every way out of the sheet throws the edit away. An editor that
|
|
984
|
+
commits only on a pick (a select, a status, a single relation, a user) throws it away on Escape whatever the rule.
|
|
985
|
+
And an optional `sayRefusals` (default false): the grid says why the app refused an edit it sent, through the toast
|
|
986
|
+
port's `error`; off, the app says it. And an optional `menus` (`ViewsMenuRoute`, default `popover`): how the grid
|
|
987
|
+
opens its own menus. `popover` draws ViewKit's rows in your `Popover`; `menu` hands them to your `Menu` as rows, the
|
|
988
|
+
footer's figure picker one ticked row per figure, and a column's header menu its rows, each format setting and each
|
|
989
|
+
option's colour a group beside it with its current choice as `detail`, and a group's ⋯ its sort choices a group
|
|
990
|
+
beside it with no search field, its figure toggles ticks that keep the menu open, and Hide, and the grid's own "+ Add
|
|
991
|
+
column" each hidden column a row and each field with parts a group beside it with its count as `detail`, with no
|
|
992
|
+
search field, on a phone too. The row menu and a command cell's menu always go through your `Menu`.
|
|
993
|
+
And an optional `gridButtons` (`ViewsGridButtons`, default `own`): who draws the buttons the grid draws itself, a
|
|
994
|
+
group's fold and ⋯, "+ Add column", a row's ⋯, the name's actions (the pencil and the app's `rowActions`), an action
|
|
995
|
+
column's buttons, a pick-list cell's ▾, and a command cell's ▾ and its trigger around a value (`ghost`, `icon` beside a
|
|
996
|
+
relation, user, link, email, phone or domain, `sm` around any other value, which keeps its line and the cell's own type
|
|
997
|
+
through `[font:inherit]`; these two are handed only `type`, `variant`, `size`, `className` and the column's name as
|
|
998
|
+
`aria-label`, and stay Tab stops as on 0.5.0). `own` draws ViewKit's own, as on 0.5.0; `button` draws your `Button`,
|
|
999
|
+
`variant` `ghost` (`outline` for the name's actions), `size` `icon` (`sm` for "+ Add column" at the header's end; `icon`,
|
|
1000
|
+
with its name as `aria-label` and `title`, where `addColumnAt` stands it in the title column's header), the grid's box (its
|
|
1001
|
+
size, its place, its reveal on hover) in `className`, and the look yours. Each of the others is handed `tabIndex` -1 and its
|
|
1002
|
+
`aria-label`; the ⋯ and "+ Add column" a ref they anchor their menus on, `aria-haspopup` and `aria-expanded`; the
|
|
1003
|
+
fold `aria-expanded`; the row's ⋯ `data-slot="vk-grid-row-more"` and a `title`; "+ Add column" `data-open` while its
|
|
1004
|
+
menu is open, with either value. Before you set `button`, your `Button` forwards the ref, `tabIndex`,
|
|
1005
|
+
`aria-haspopup`, `aria-expanded`, `data-slot` and `data-open` to its element, hands `onClick` the click on that
|
|
1006
|
+
element, and lets the `className` handed win over its own size.
|
|
1007
|
+
And `selectionBar`'s `chip` (`ViewsSelectionChip`, default `own`): who draws the count chip that clears the selection
|
|
1008
|
+
on the desktop. `own` draws ViewKit's own, as on 0.5.0; `button` draws your `Button`, `variant` `outline`, `size` `sm`,
|
|
1009
|
+
its box in `className`, `data-slot="vk-selection-chip"`, `aria-label`, and `disabled` while a batch runs, inside the
|
|
1010
|
+
same `Tooltip`.
|
|
1011
|
+
And an optional `severalValues` (`ViewsSeveralValues`, from `./react`, default `first`): how a cell of several values
|
|
1012
|
+
draws on one line, wherever it draws (a grid cell, a board or calendar card, a field row that doesn't wrap). `first`
|
|
1013
|
+
draws its first value and a count at any width, as on 0.5.0. `fit` draws as many whole values as fit its width, then
|
|
1014
|
+
the count, and follows a column resize; the first shows cut when even it doesn't fit, and a wrapped row shows three
|
|
1015
|
+
either way. A cell measures its values once when it mounts or they change, and on a resize works from what it kept.
|
|
1016
|
+
And an optional `gridCheckboxes` (`ViewsGridCheckboxes`, default `own`): who draws a yes/no cell's box in the grid, the checkbox style. `own` draws ViewKit's tick box in its own switch button, as on 0.5.0; `checkbox` draws your `Checkbox`, the box your rail draws, alone in the cell: `checked`, the column's name, `tabIndex` -1 and `onCheckedChange`, the press the toggle; a cell the grid can't write is handed `readOnly` and a press that writes nothing. Enter on the cell still flips it, through the grid. Your Checkbox's element, or one around it, is a `button`, an `input`, a `label` or carries `role="checkbox"`, so the row's own click stands aside for it.
|
|
1017
|
+
And an optional `fieldRowButtons` (`ViewsFieldRowButtons`, default `own`): who draws a field row's own buttons, its edit target in its three shapes (around the value, beside a link's open action, under a rich text), the verb trigger around a value, the lane's ▾ and rich text's Show more. `own` draws ViewKit's own, as on 0.5.0; `button` draws your `Button`, `variant` `ghost`, `size` `sm` (`icon` for the ▾), ViewKit's box in `className` (the target's with `[font:inherit]`, so a value keeps the row's type, and a height that grows with a wrapped value), the look yours. Neither grid option reaches a field row.
|
|
1018
|
+
And an optional `fieldRowCheckboxes` (`ViewsFieldRowCheckboxes`, default `own`): who draws a field row's yes/no box, the checkbox style. `own` draws ViewKit's tick box in its own switch button, as on 0.5.0; `checkbox` draws your `Checkbox`, a Tab stop, one press writing once; a row it can't write is handed `readOnly`.
|
|
1019
|
+
And an optional `panelButtons` (`ViewsPanelButtons`, default `own`): who draws the buttons ViewKit draws itself in the toolbar's panels, the search's ✕ and the views row: a filter's select, a range's presets, a stale filter's and a date range's Clear, the Columns list's eyes, new-line marks and a column's opener, the group list's eyes, Clear all, the layout's Reset, show or hide every group, a panel header's back and ✕, Export, Publish and Reset, the "+N" chip, the + and the views picker's chip (outside your own toolbar frame; inside one they are your `ToolbarButton`), a view's row and its ⋯, and the quick filters' fields. `own` draws ViewKit's own, as on 0.6.0; `button` draws your `Button`, `variant` `ghost` (`outline` for a range's presets and the date filter's framed select, `secondary` for the views picker's chip, a filled chip with no border), `size` `icon` or `sm`, ViewKit's box in `className` (a row's with `[font:inherit]` or its own type, so it reads as the rows beside it), the look yours. A trigger is handed a ref it anchors its menu or popover on, `aria-haspopup` and `aria-expanded`; the views row's chips and a view's ⋯ `data-state="open"` or `data-state="closed"`; the new-line mark and a quick filters' field `aria-pressed`; a view's row `role="option"` and `aria-selected`; Export `data-vs-row="true"`, so a host's `[data-vs-row]` insets it as it does Copy link and Share; the search's ✕ and the chips their `data-slot`. A press note and the search's caret ride a `display: contents` span around your `Button`, and a view's ⋯ waits for the pointer on a computer through a span around it carrying `data-desktop`. Before you set `button`, your `Button` draws `secondary` and forwards each of those to its element. The `ToolbarButton` atom's parts stay the atom's either way, and `gridButtons` and `fieldRowButtons` don't reach the panels.
|
|
1020
|
+
And an optional `bodyFrame` (`ViewsBodyFrame`, from `./react`, default `views`): who sets the width and padding of the popover around a whole body the app hands (`Picker`, `PartsBody`, `ValuesBody`, `LinksBody`), in the grid and a field row alike. `views` keeps ViewKit's own, whether or not a body is handed. `popover` hands that popover only its layer (and, in a field row, a cap at the screen's width less 2rem), so the app's `Popover` stands at its own width, and sets `data-vk-body` on it through `panelData`: `picker`, `parts`, `values` or `links`. An editor that draws ViewKit's own body keeps ViewKit's width at either; the phone's sheet takes no class and is unchanged.
|
|
1021
|
+
And an optional `gridBodyPlace` (`ViewsGridBodyPlace`, from `./react`, default `under`): where a grid editor opens the popover around a whole body your app hands (`Picker`, `DateBody`, `PartsBody`, `ValuesBody`, `LinksBody`) on a computer. `under` hands your `Popover` a `sideOffset` of 4, as on 0.7.0. `over` hands it minus the cell's height, measured as the editor opens, so a popover placed under its anchor stands with its top on the cell's top, as long text opens. Give that popover at least the cell's width, so a press where the cell was lands inside it, and don't let it flip above its anchor: a flipped one takes the same offset, its bottom on the cell's bottom. An editor drawing ViewKit's own body stays under the cell either way; a field row and the phone's sheet don't read it.
|
|
1022
|
+
And an optional `datePicks` (`ViewsDatePicks`, from `./react`): the quick days the date editors offer, in order, any of
|
|
1023
|
+
`today`, `tomorrow`, `next-monday` (the Monday after today, a week on when today is one) and `in-a-week` (today + 7 on
|
|
1024
|
+
the conventions' calendar). ViewKit works out each day; the date editor hands exactly these to an app's `DateBody`, `none`
|
|
1025
|
+
after them where the field may be emptied, and its own panel draws the same. Absent, `today`, `tomorrow` and
|
|
1026
|
+
`next-monday`, as on 0.5.0.
|
|
1027
|
+
|
|
1028
|
+
`viewkitjs/views/display`, no client directive on the door (a server module may reach its string
|
|
1029
|
+
formatters), every rendering file behind it carrying its own: `renderFieldValue` and `DISPLAY_CORES`
|
|
1030
|
+
(one renderer per storage type, a plain function that answers `null` for an empty value), the string
|
|
1031
|
+
formatters `formatDateValue`, `formatNumberValue` and `formatMoney`, `DEFAULT_FIELD_PRESENTATION`, `viewerFrom`,
|
|
1032
|
+
`CellSuffix`, `cellTextClass`, `MultiValueCell`, `CHIP_BASE`, `CHIP_INTERACTIVE`, and the types
|
|
1033
|
+
`DisplayCore`, `DisplayOptions`, `FieldPresentation`, `FieldViewerContext`, `NumberLikeFormat` and
|
|
1034
|
+
`RelationWrap`. A rendered value reads the provider's conventions, wording and presentation; a string
|
|
1035
|
+
formatter handed no viewer reads the neutral conventions, never the runtime's.
|
|
1036
|
+
|
|
1037
|
+
`viewkitjs/views/editors`, no client directive on the door: `EDIT_CORES` (one editor per storage
|
|
1038
|
+
type, `null` where a type has none of its own) and `hasEditCore`. One door per editor, each opening with the
|
|
1039
|
+
client directive: `viewkitjs/views/editors/select` (`SelectEditor`, `SelectEditorHandle`,
|
|
1040
|
+
`pickerOptionsFromField`, `PickerOption`, `SELECT_SEARCH_PAST`), `viewkitjs/views/editors/text` (`TextEditor`,
|
|
1041
|
+
`TextEditorHandle`, `TextEditorProps`, `TextEditorType`, `TEXT_INPUT_TYPE`: one box for text, a link, an email,
|
|
1042
|
+
a phone, a domain, long text and rich text), `viewkitjs/views/editors/relation` (`RelationEditor`,
|
|
1043
|
+
`RelationEditorHandle`, `RelationCreate`, `RELATION_PAGE_SIZE`, `RELATION_SEARCH_DEBOUNCE_MS`, and
|
|
1044
|
+
the relation source types), `viewkitjs/views/editors/number` (`NumberEditor`, `NumberEditorHandle`,
|
|
1045
|
+
`NumberEditValue`), `viewkitjs/views/editors/range` (`RangeEditor`, `RangeEditorHandle`: two boxes,
|
|
1046
|
+
low and high, an empty box an open end), `viewkitjs/views/editors/location` (`LocationEditor`,
|
|
1047
|
+
`LocationEditorHandle`: the country first, then its parts in its order, a region from its list),
|
|
1048
|
+
`viewkitjs/views/editors/value-list` (`ValueListEditor`, `ValueListEditorHandle`: several emails, phones, links or
|
|
1049
|
+
domains, a row each with its label and a main mark, committed as one list of `{ value, label, main }`, the main one
|
|
1050
|
+
first; `labels: false` for a host that keeps only the values; `escapeKeeps` for a host whose session keeps on
|
|
1051
|
+
Escape, `EditSession.keeps`: its rows are checked first, as on Enter),
|
|
1052
|
+
`viewkitjs/views/editors/date` (`DateEditor`, `DateEditorHandle`) and
|
|
1053
|
+
`viewkitjs/views/editors/chips` (`ChipsEditor`, `ChipsEditorHandle`). An editor owns its panel and
|
|
1054
|
+
what a close means; its host owns the popover, the anchor and the write. Its words are fields'
|
|
1055
|
+
messages, read from the provider's conventions unless the host hands `message`.
|
|
1056
|
+
|
|
1057
|
+
`viewkitjs/views/editors/session`, opening with the client directive: `useAnchoredEditSession` and
|
|
1058
|
+
`EDITOR_EXIT_MS` — the one-answer guard and the exit gap every host that opens an editor over a value
|
|
1059
|
+
shares; Escape discards through it unless its optional `escape` is `"keep"` (on a desktop, read once at open: the
|
|
1060
|
+
editor is asked as for a press outside, and `EditSession.keeps` says so), and a refused attempt's reason comes back as
|
|
1061
|
+
`refusal` (`EditSession`, `EditSessionAttempt`). A session still open when its page goes (`pagehide`), or when the grid or
|
|
1062
|
+
field row around it goes, is left by its optional `leave`: `"outside"` asks the editor as for a press outside, `"discard"`
|
|
1063
|
+
(the default) asks nothing; an answer waiting out its exit is finished at once, and the admitted mode's optional `onLeave`
|
|
1064
|
+
is called first. The grid and the field row pass `"outside"` on a desktop and `"discard"` in a phone's sheet. A commit made
|
|
1065
|
+
then reaches the host inside `pagehide`; a write that must outlive the page is the app's to send. `useEscapeRule(type, list?)` and `EditEscape` come from it too: the
|
|
1066
|
+
provider's `escape` for a field type (`list` true where the host opens the value list), for a host to hand its session. Its own door, so a host that needs the session
|
|
1067
|
+
does not load the six editors.
|
|
1068
|
+
|
|
1069
|
+
`viewkitjs/views/editors/panel`, opening with the client directive: `EditorPanel`, `EditorPanelProps`
|
|
1070
|
+
and `EditorSurface` — an editor opened as the components map's `Popover` on a desktop and its `Sheet`
|
|
1071
|
+
on a phone, by the provider's `desktopQuery`, chosen once when the session opens.
|
|
1072
|
+
|
|
1073
|
+
`viewkitjs/views/editors/open-values`, opening with the client directive: `OpenValuesProvider`,
|
|
1074
|
+
`useOpenValues(field)`, `offeredValues(field, known, seen)` and `takesNewValues(field)`. An open field's values (what its records
|
|
1075
|
+
hold, which the app's list answers) reach every editor of it: the app provides them above a surface, and
|
|
1076
|
+
a host reads them, asking once for a field's values when its editor mounts. A closed field, or no
|
|
1077
|
+
provider, reads none and asks nothing. `offeredValues` is what a host offers: the declared options, then
|
|
1078
|
+
the known values, then those seen, each once. `useOpenValuesContext()` reads the nearest provider whole: what a host
|
|
1079
|
+
hands `buildRelationFilters` as `farValues`.
|
|
1080
|
+
|
|
1081
|
+
`viewkitjs/views/field-row`, opening with the client directive: `FieldRow` (`FieldRowProps`), one field of a
|
|
1082
|
+
record drawn as its label, its value and, on a click, its type's editor in place, with `RowEditor` and `ROW_HOSTS`
|
|
1083
|
+
(`RowEditorProps`, `RowEditorAttempt`, `RowClosed`, `RowHostProps`), the host each type mounts; and
|
|
1084
|
+
`useFieldWrite` (`FieldWriteOptions`, `EditTiming`), the write path that admits a commit at once, queues one
|
|
1085
|
+
record's writes, settles each on the save's receipt and rolls a failure back, with `FieldWriteRefusal`,
|
|
1086
|
+
and, re-exported from the root door that holds them as the model, `FieldWriteReconciliationRequired` and the shapes it
|
|
1087
|
+
writes through (`EntityWriteTarget`, `EntityWriteReceipt`, `FieldWriteAdmission`, `FieldWriteAdmissionGuard`,
|
|
1088
|
+
`LockedResolver`, `FieldNote`). The panel around the rows
|
|
1089
|
+
(its sections, its related records) is the app's.
|
|
1090
|
+
|
|
1091
|
+
A relation's Related records row (`buildRelationFilters`) offers a far relation, user or actor by name
|
|
1092
|
+
only when its target names it (`RelationFilterTarget.named`, from the host's builder) and the host hands
|
|
1093
|
+
`farValues`, the values its list answers keyed by path: `farPathOf(relationKey, farKey)`, the two joined by
|
|
1094
|
+
`FAR_PATH_SEPARATOR` (`.`). The row asks for a far field's values by that path when it opens; anything
|
|
1095
|
+
else stays greyed.
|
|
1096
|
+
|
|
1097
|
+
`viewkitjs/views/cells`, no client directive on the door: `renderTypedCellValue` (a column, its row and
|
|
1098
|
+
the user's overrides, handed to the field display — a `command` column's cell opens the app's
|
|
1099
|
+
`CommandMenu`, a relation goes where the app's `RelationLink` says, and a title whose identity is a
|
|
1100
|
+
figure or a moment draws through its field), `renderIdentityValue` (an identity's value without the
|
|
1101
|
+
title cell, for a host that draws the name in its own chrome), the column-shaped string
|
|
1102
|
+
formatters `formatDate` and `formatNumber` (the viewer is the caller's) with `useCellFormat`, which
|
|
1103
|
+
reads it from the provider, `resolveRowCurrency`, `legacyFieldFromColumn` and `legacyNumberLikeFormat`
|
|
1104
|
+
(a column no registry field backs, read as a field), and the type `GridCellOptions`. A column's glyph
|
|
1105
|
+
is the app's.
|
|
1106
|
+
|
|
1107
|
+
`viewkitjs/views/selection`, no client directive on the door: `useListSelection` (a list's selection
|
|
1108
|
+
over its visual order, with a range anchor and the app's haptics), `useEscapeToClear`,
|
|
1109
|
+
`useCheckDragSelect` and `ROW_CHECK_ATTR` (drag down the checkbox lane to set a run), `SelectCheckbox`
|
|
1110
|
+
(the app's checkbox, revealed in its gutter zone, reading the shift key off the press), the row-click
|
|
1111
|
+
rules `selectFromClick`, `preventShiftTextSelect`, `ROW_INTERACTIVE_SELECTOR`, `ROW_OPEN_STOP_SELECTOR`
|
|
1112
|
+
and `ROW_NO_TEXT_SELECT`, and the types `ListSelectionConfig`, `ListBatchApi`, `SelectionRetention` and
|
|
1113
|
+
`UseListSelectionResult`. The bar the selection opens is the app's.
|
|
1114
|
+
|
|
1115
|
+
`viewkitjs/views/grid`, no client directive on the door, every rendering file behind it carrying its
|
|
1116
|
+
own: `GridTable` and its props `GridTableProps` (flat, as a host's binding hands them),
|
|
1117
|
+
`useGridTablePrefs` (a grid's personal preferences: the host's prefs and their setter in, the props to spread onto `GridTable` out), `useGridTableSettings` (the same props from a list's `ListSettings` and a person's `ListPersonalLayer`: a column hidden, moved or given a figure comes back as a `ListSettingsChange`, a resize as the person's width) with `GridFormatPrefs` (how the fields read, the app's), the types
|
|
1118
|
+
an app writes its props against, `GridSortState`, `GridGroupSortOption`, `GridCellCommitFn` and
|
|
1119
|
+
`GridCellsCommitFn`, and `GridGroupByState`, `GridGroupFigure` (a `GridDeclaredFigure` or a `GridDrawnFigure`), `GridGroupMenuPart`, `GridRowOpenedFrom` (what `onOpenRow` hands with the row) and `GroupCountNoun`; and the helpers a
|
|
1120
|
+
host's binding shares with the grid: `GridCommitContext` and `GridCommitOutcome` (what a commit was and how it ended),
|
|
1121
|
+
`deriveGridSelectValues` and `deriveGridRelationValues` (the values a column's filter offers),
|
|
1122
|
+
`cellCopyText` and `cellEditBaseline` (a cell's copy text and the value an edit starts from, which a
|
|
1123
|
+
CSV export reuses), and `GRID_TITLE_LINK_CLASS`. The house menu rows, the group collapse and the type
|
|
1124
|
+
icons are the app's; the selection bar is `SelectionBar`, on the selection door, drawn with the app's verbs.
|
|
1125
|
+
|
|
1126
|
+
`viewkitjs/views/panels`, no client
|
|
1127
|
+
directive on the door, the one hook behind it (`useFilterOpened`) carrying
|
|
1128
|
+
its own: what a list's panels read and say. The settings they edit (`SortConfig`, `GroupConfig`, `ToggleConfig`,
|
|
1129
|
+
`LayoutConfig` and its parts, `TimeScopeConfig`, `DateRangeConfig`, `ActivePanel`, `ViewOptionInputs`,
|
|
1130
|
+
`CollectionViewState`, `CollectionExportCsv`) with their predicates and `clearViewOptions`; which sections exist on a viewport
|
|
1131
|
+
(`getViewOptionAvailability`, `resolvePersonalSection`); the Group panel's orders (`groupSortChoices`); and every
|
|
1132
|
+
row's value (`filterValueLabel`, `relationSentence`, `sortValueLabel` and their siblings), each worded through a
|
|
1133
|
+
`views.panels.*` key, the resolver taken last; and the views row's axes (`ViewTabOption`, `CollectionViewsConfig`,
|
|
1134
|
+
`CollectionViewsInput`, `CollectionChildAxis`, `ViewsLayout`, `PillOption`, `toViewAxes`, `splitViewAxes`); and
|
|
1135
|
+
every panel built from a list's settings (`settingsPanels`, with `settingsFilters`, `settingsSort`, `settingsSorts`
|
|
1136
|
+
and the sort's rule helpers (`addSortRule`, `canAddSortRule`, `sortedValues`, `sortedField`, `sortFieldOf`,
|
|
1137
|
+
`sortRulesLabel`, `withFirstRule`, `isSortRulesActive`), the filter as a tree of and/or groups (`settingsFilterTree`,
|
|
1138
|
+
`FilterTreeConfig`, `FilterEditorField`, `filterWriter` and `FilterWriter`, the tree's operations by path from `nodeAt`
|
|
1139
|
+
to `followAdvancedKeys`, and a rule's helpers from `newRuleFor` to `takesValue`), `settingsGroup`, `settingsGroupBy`, `settingsLayout` and the
|
|
1140
|
+
columns' and look's translations), and the toolbar's arrangement (`toolbarForm`, `arrangeToolbar`, `ToolbarForm`, `ToolbarPlacement`, `ToolbarLine`, `ToolbarSlot`, `TOOLBAR_NARROW_BELOW`, and the fold arrangement's `foldSteps`, `foldState` and `FoldStep`) with what the toolbar owns over a list's settings (`withCounts`, `countsToggle`, `SHOW_COUNTS_KEY`, `groupShown`,
|
|
1141
|
+
`withEditView`, `settingsCleared`): a `ListSettings`, a person's
|
|
1142
|
+
`ListPersonalLayer` and the list's columns in (`SettingsPanelsInput`), each panel's config out, and every change
|
|
1143
|
+
handed back as a `ListSettingsChange` or a layer patch, so an app keeps both where it likes and never speaks
|
|
1144
|
+
`ListViewPrefs` for a list on settings. It is
|
|
1145
|
+
pure: a server or an agent reads it without React. The panels themselves draw from `/panels/react`. The panels'
|
|
1146
|
+
rows are atoms.
|
|
1147
|
+
|
|
1148
|
+
`viewkitjs/views/panels/react`, with the client directive: the panels as they draw, each under the app's
|
|
1149
|
+
`ViewsProvider`. The filter panel: a body per filter type (`TextFilterBody`, `NumberFilterBody`,
|
|
1150
|
+
`RangeFilterBody`, `RelationFilterBody`, `DateFilterBody` and its parts), the filter list (`CompactFilterList`,
|
|
1151
|
+
`dimensionRows`) and the details (`CompactFilterDetail`, `CompactToggleDetail`, `CompactDateRangeDetail`,
|
|
1152
|
+
`CompactTimeScopeDetail`), the date's month drawn through the `RangeCalendar` atom and its operator through the
|
|
1153
|
+
map's `Menu`. The views row (`PillGroup`, `HScrollRow`, `ViewTabs`, `toPillOptions`, `FoldingViewRow`,
|
|
1154
|
+
`ViewPicker`, `ViewPickerRow`, `ViewCreatePill`, `ViewAxes`), its pills drawn by the `Pill` atom and their verbs
|
|
1155
|
+
through the map's `Menu`. The Sort and Group panels (`CompactSortDetail`, `CompactGroupDetail` and its Group by, Sort and
|
|
1156
|
+
Date by pages), the Layout panel (`CompactLayoutDetail`), the Columns list (`LayoutColumnsList`), one column's
|
|
1157
|
+
settings (`PopoverColumnDetail`) and the group order (`GroupBucketsList`); an app's field editor comes in as
|
|
1158
|
+
`fieldEditor` (`PanelFieldEditor`). Customize, put together from them (`ViewOptionsPanelContent`, its root list
|
|
1159
|
+
`PopoverRootList`, its `ViewFooter` and `ViewOptionsActions`), with its popover form (`ViewOptionsPopoverPanel`,
|
|
1160
|
+
`useViewOptionsPopover`, `useViewActivePanel`, `viewOptionsPopoverClassName`, `keepPanelOpenForPortals`); the app
|
|
1161
|
+
hosts it in a popover or a drawer of its own. The toolbar: its frame (`Toolbar`, `ToolbarPart`, `ToolbarSeparator`), which places the parts
|
|
1162
|
+
in the row, the narrow panel or the phone's row, or with `fold` in the kit's row and filter bar, folding as they narrow, and keeps one panel open at a time (`useToolbarPanel`), where a part
|
|
1163
|
+
stands (`useToolbarSlot`, `ToolbarSlotState`), what an app's own frame hands them in its stead (`ToolbarSlotProvider`, `ToolbarRadioProvider`), the parts that need no list settings (`ToolbarViews`, `ToolbarSearch`,
|
|
1164
|
+
`ToolbarNew`, `ToolbarSave`) and the button they draw with (`ToolbarButton`, the atom at its line's size); the panel parts, each
|
|
1165
|
+
opening its panel from its own button over the builder's panels (`ToolbarOptions`, `ToolbarSort`, `ToolbarFilter`,
|
|
1166
|
+
`ToolbarPanelHost`, handed the part's button as `opener` to give the focus back to as it closes from inside, ViewKit
|
|
1167
|
+
giving it back on the panel's own ✕, `useToolbarPanelState`, `ToolbarPanelState`, `FilterPanelContent`); the sort as up to three rules
|
|
1168
|
+
(`ToolbarSortPill`, the sort editor `SortEditor` with `useSortEditor` and `SortEditorOptions`, and `SortFieldList`); the
|
|
1169
|
+
and/or groups (`ToolbarAdvancedFilters`, the filter editor `FilterEditor`, on a phone `PhoneFilterEditor` with `usePhoneFilterEditor`, `FilterFieldList` and `FilterValueBody`); and the ready toolbar over a
|
|
1170
|
+
list's settings (`ReadyToolbar`, `ReadyToolbarProps`) with a list held in memory (`useListSettingsState`). It is the one door that may reach dnd-kit (`@dnd-kit/core`,
|
|
1171
|
+
`@dnd-kit/sortable`, `@dnd-kit/utilities`), the package's optional peers, which the Columns list, the group
|
|
1172
|
+
order, the view pills and the sort editor's rules drag with. It reaches them only through `import()`, started
|
|
1173
|
+
as it loads (`loadPanelsDrag`), so the door itself loads in plain Node without them: an app that renders a part that drags installs
|
|
1174
|
+
them, and an app that takes only the grid, or only the panels' pure door, never does. It stays
|
|
1175
|
+
apart from `/panels` so a server file can read the panels' settings and words without shipping a panel.
|
|
1176
|
+
|
|
1177
|
+
## Registry items
|
|
1178
|
+
|
|
1179
|
+
When the copy mode ships, each view's default rendering is one registry item, tagged by the package
|
|
1180
|
+
version it was cut from (`views-v0.3.0`), and an app's manifest records item, tag and content hash.
|
|
1181
|
+
Named here so the copy mode inherits the vocabulary; nothing uses it yet.
|