viewkitjs 0.0.0-stage → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +102 -0
- package/LICENSE.md +7 -0
- package/MIGRATION.md +116 -0
- package/README.md +40 -2
- package/fields/CHANGELOG.md +1299 -0
- package/fields/NOTICE.md +12 -0
- package/fields/README.md +134 -0
- package/fields/dist/accept.d.ts +39 -0
- package/fields/dist/accept.js +309 -0
- package/fields/dist/actor.d.ts +16 -0
- package/fields/dist/actor.js +44 -0
- package/fields/dist/bands.d.ts +5 -0
- package/fields/dist/bands.js +12 -0
- package/fields/dist/close.d.ts +19 -0
- package/fields/dist/close.js +1 -0
- package/fields/dist/codecs.d.ts +32 -0
- package/fields/dist/codecs.js +119 -0
- package/fields/dist/conventions.d.ts +61 -0
- package/fields/dist/conventions.js +97 -0
- package/fields/dist/countries.d.ts +11 -0
- package/fields/dist/countries.js +98 -0
- package/fields/dist/creatable.d.ts +85 -0
- package/fields/dist/creatable.js +188 -0
- package/fields/dist/date-codec.d.ts +17 -0
- package/fields/dist/date-codec.js +41 -0
- package/fields/dist/definitions.d.ts +2 -0
- package/fields/dist/definitions.js +2 -0
- package/fields/dist/derived.d.ts +88 -0
- package/fields/dist/derived.js +165 -0
- package/fields/dist/design/category-colors.d.ts +17 -0
- package/fields/dist/design/category-colors.js +41 -0
- package/fields/dist/design/stage-marks.d.ts +26 -0
- package/fields/dist/design/stage-marks.js +1 -0
- package/fields/dist/design/status-slots.d.ts +34 -0
- package/fields/dist/design/status-slots.js +72 -0
- package/fields/dist/domain.d.ts +6 -0
- package/fields/dist/domain.js +34 -0
- package/fields/dist/entities.d.ts +67 -0
- package/fields/dist/entities.js +528 -0
- package/fields/dist/equality.d.ts +41 -0
- package/fields/dist/equality.js +114 -0
- package/fields/dist/errors.d.ts +3 -0
- package/fields/dist/errors.js +6 -0
- package/fields/dist/format/time.d.ts +25 -0
- package/fields/dist/format/time.js +77 -0
- package/fields/dist/formula.d.ts +54 -0
- package/fields/dist/formula.js +510 -0
- package/fields/dist/index.d.ts +35 -0
- package/fields/dist/index.js +32 -0
- package/fields/dist/kit.d.ts +23 -0
- package/fields/dist/kit.js +25 -0
- package/fields/dist/labels.d.ts +3 -0
- package/fields/dist/labels.js +5 -0
- package/fields/dist/link.d.ts +33 -0
- package/fields/dist/link.js +58 -0
- package/fields/dist/location.d.ts +26 -0
- package/fields/dist/location.js +92 -0
- package/fields/dist/markdown.d.ts +7 -0
- package/fields/dist/markdown.js +64 -0
- package/fields/dist/messages.d.ts +374 -0
- package/fields/dist/messages.js +332 -0
- package/fields/dist/name.d.ts +23 -0
- package/fields/dist/name.js +53 -0
- package/fields/dist/normalize.d.ts +6 -0
- package/fields/dist/normalize.js +17 -0
- package/fields/dist/optimistic.d.ts +37 -0
- package/fields/dist/optimistic.js +56 -0
- package/fields/dist/options.d.ts +26 -0
- package/fields/dist/options.js +31 -0
- package/fields/dist/parse-number.d.ts +55 -0
- package/fields/dist/parse-number.js +142 -0
- package/fields/dist/phone.d.ts +47 -0
- package/fields/dist/phone.js +121 -0
- package/fields/dist/places/format.d.ts +29 -0
- package/fields/dist/places/format.js +97 -0
- package/fields/dist/places/formats.d.ts +25 -0
- package/fields/dist/places/formats.js +260 -0
- package/fields/dist/places/index.d.ts +13 -0
- package/fields/dist/places/index.js +21 -0
- package/fields/dist/places/load-regions.d.ts +7 -0
- package/fields/dist/places/load-regions.js +65 -0
- package/fields/dist/places/regions/AD.d.ts +4 -0
- package/fields/dist/places/regions/AD.js +11 -0
- package/fields/dist/places/regions/AE.d.ts +4 -0
- package/fields/dist/places/regions/AE.js +11 -0
- package/fields/dist/places/regions/AM.d.ts +4 -0
- package/fields/dist/places/regions/AM.js +15 -0
- package/fields/dist/places/regions/AR.d.ts +4 -0
- package/fields/dist/places/regions/AR.js +28 -0
- package/fields/dist/places/regions/AU.d.ts +4 -0
- package/fields/dist/places/regions/AU.js +13 -0
- package/fields/dist/places/regions/BB.d.ts +4 -0
- package/fields/dist/places/regions/BB.js +15 -0
- package/fields/dist/places/regions/BR.d.ts +4 -0
- package/fields/dist/places/regions/BR.js +31 -0
- package/fields/dist/places/regions/BS.d.ts +4 -0
- package/fields/dist/places/regions/BS.js +23 -0
- package/fields/dist/places/regions/BY.d.ts +4 -0
- package/fields/dist/places/regions/BY.js +11 -0
- package/fields/dist/places/regions/CA.d.ts +4 -0
- package/fields/dist/places/regions/CA.js +17 -0
- package/fields/dist/places/regions/CL.d.ts +4 -0
- package/fields/dist/places/regions/CL.js +20 -0
- package/fields/dist/places/regions/CN.d.ts +4 -0
- package/fields/dist/places/regions/CN.js +38 -0
- package/fields/dist/places/regions/CO.d.ts +4 -0
- package/fields/dist/places/regions/CO.js +37 -0
- package/fields/dist/places/regions/CR.d.ts +4 -0
- package/fields/dist/places/regions/CR.js +11 -0
- package/fields/dist/places/regions/CU.d.ts +4 -0
- package/fields/dist/places/regions/CU.js +20 -0
- package/fields/dist/places/regions/CV.d.ts +4 -0
- package/fields/dist/places/regions/CV.js +13 -0
- package/fields/dist/places/regions/EE.d.ts +4 -0
- package/fields/dist/places/regions/EE.js +19 -0
- package/fields/dist/places/regions/EG.d.ts +4 -0
- package/fields/dist/places/regions/EG.js +31 -0
- package/fields/dist/places/regions/ES.d.ts +4 -0
- package/fields/dist/places/regions/ES.js +56 -0
- package/fields/dist/places/regions/FM.d.ts +4 -0
- package/fields/dist/places/regions/FM.js +8 -0
- package/fields/dist/places/regions/HK.d.ts +4 -0
- package/fields/dist/places/regions/HK.js +7 -0
- package/fields/dist/places/regions/HN.d.ts +4 -0
- package/fields/dist/places/regions/HN.js +22 -0
- package/fields/dist/places/regions/ID.d.ts +4 -0
- package/fields/dist/places/regions/ID.js +38 -0
- package/fields/dist/places/regions/IE.d.ts +4 -0
- package/fields/dist/places/regions/IE.js +30 -0
- package/fields/dist/places/regions/IN.d.ts +4 -0
- package/fields/dist/places/regions/IN.js +40 -0
- package/fields/dist/places/regions/IQ.d.ts +4 -0
- package/fields/dist/places/regions/IQ.js +23 -0
- package/fields/dist/places/regions/IR.d.ts +4 -0
- package/fields/dist/places/regions/IR.js +35 -0
- package/fields/dist/places/regions/IT.d.ts +4 -0
- package/fields/dist/places/regions/IT.js +115 -0
- package/fields/dist/places/regions/JM.d.ts +4 -0
- package/fields/dist/places/regions/JM.js +18 -0
- package/fields/dist/places/regions/JP.d.ts +4 -0
- package/fields/dist/places/regions/JP.js +51 -0
- package/fields/dist/places/regions/KN.d.ts +4 -0
- package/fields/dist/places/regions/KN.js +6 -0
- package/fields/dist/places/regions/KP.d.ts +4 -0
- package/fields/dist/places/regions/KP.js +17 -0
- package/fields/dist/places/regions/KR.d.ts +4 -0
- package/fields/dist/places/regions/KR.js +21 -0
- package/fields/dist/places/regions/KY.d.ts +4 -0
- package/fields/dist/places/regions/KY.js +7 -0
- package/fields/dist/places/regions/KZ.d.ts +4 -0
- package/fields/dist/places/regions/KZ.js +24 -0
- package/fields/dist/places/regions/MN.d.ts +4 -0
- package/fields/dist/places/regions/MN.js +26 -0
- package/fields/dist/places/regions/MX.d.ts +4 -0
- package/fields/dist/places/regions/MX.js +36 -0
- package/fields/dist/places/regions/MY.d.ts +4 -0
- package/fields/dist/places/regions/MY.js +20 -0
- package/fields/dist/places/regions/MZ.d.ts +4 -0
- package/fields/dist/places/regions/MZ.js +15 -0
- package/fields/dist/places/regions/NG.d.ts +4 -0
- package/fields/dist/places/regions/NG.js +41 -0
- package/fields/dist/places/regions/NI.d.ts +4 -0
- package/fields/dist/places/regions/NI.js +21 -0
- package/fields/dist/places/regions/NR.d.ts +4 -0
- package/fields/dist/places/regions/NR.js +18 -0
- package/fields/dist/places/regions/PA.d.ts +4 -0
- package/fields/dist/places/regions/PA.js +18 -0
- package/fields/dist/places/regions/PE.d.ts +4 -0
- package/fields/dist/places/regions/PE.js +30 -0
- package/fields/dist/places/regions/PG.d.ts +4 -0
- package/fields/dist/places/regions/PG.js +26 -0
- package/fields/dist/places/regions/PH.d.ts +4 -0
- package/fields/dist/places/regions/PH.js +86 -0
- package/fields/dist/places/regions/PW.d.ts +4 -0
- package/fields/dist/places/regions/PW.js +20 -0
- package/fields/dist/places/regions/RO.d.ts +4 -0
- package/fields/dist/places/regions/RO.js +46 -0
- package/fields/dist/places/regions/RU.d.ts +4 -0
- package/fields/dist/places/regions/RU.js +89 -0
- package/fields/dist/places/regions/SO.d.ts +4 -0
- package/fields/dist/places/regions/SO.js +22 -0
- package/fields/dist/places/regions/SR.d.ts +4 -0
- package/fields/dist/places/regions/SR.js +14 -0
- package/fields/dist/places/regions/SV.d.ts +4 -0
- package/fields/dist/places/regions/SV.js +18 -0
- package/fields/dist/places/regions/TH.d.ts +4 -0
- package/fields/dist/places/regions/TH.js +81 -0
- package/fields/dist/places/regions/TR.d.ts +4 -0
- package/fields/dist/places/regions/TR.js +85 -0
- package/fields/dist/places/regions/TV.d.ts +4 -0
- package/fields/dist/places/regions/TV.js +13 -0
- package/fields/dist/places/regions/TW.d.ts +4 -0
- package/fields/dist/places/regions/TW.js +26 -0
- package/fields/dist/places/regions/UA.d.ts +4 -0
- package/fields/dist/places/regions/UA.js +31 -0
- package/fields/dist/places/regions/US.d.ts +4 -0
- package/fields/dist/places/regions/US.js +66 -0
- package/fields/dist/places/regions/UY.d.ts +4 -0
- package/fields/dist/places/regions/UY.js +23 -0
- package/fields/dist/places/regions/UZ.d.ts +4 -0
- package/fields/dist/places/regions/UZ.js +18 -0
- package/fields/dist/places/regions/VE.d.ts +4 -0
- package/fields/dist/places/regions/VE.js +29 -0
- package/fields/dist/places/regions/VN.d.ts +4 -0
- package/fields/dist/places/regions/VN.js +67 -0
- package/fields/dist/query/board.d.ts +28 -0
- package/fields/dist/query/board.js +44 -0
- package/fields/dist/query/buckets.d.ts +95 -0
- package/fields/dist/query/buckets.js +453 -0
- package/fields/dist/query/change.d.ts +8 -0
- package/fields/dist/query/change.js +43 -0
- package/fields/dist/query/collate.d.ts +10 -0
- package/fields/dist/query/collate.js +22 -0
- package/fields/dist/query/column-state.d.ts +25 -0
- package/fields/dist/query/column-state.js +10 -0
- package/fields/dist/query/date.d.ts +82 -0
- package/fields/dist/query/date.js +254 -0
- package/fields/dist/query/evaluate.d.ts +69 -0
- package/fields/dist/query/evaluate.js +84 -0
- package/fields/dist/query/figure-kinds.d.ts +26 -0
- package/fields/dist/query/figure-kinds.js +27 -0
- package/fields/dist/query/figures.d.ts +69 -0
- package/fields/dist/query/figures.js +169 -0
- package/fields/dist/query/filter.d.ts +153 -0
- package/fields/dist/query/filter.js +560 -0
- package/fields/dist/query/fold.d.ts +1 -0
- package/fields/dist/query/fold.js +4 -0
- package/fields/dist/query/group.d.ts +15 -0
- package/fields/dist/query/group.js +7 -0
- package/fields/dist/query/hold.d.ts +35 -0
- package/fields/dist/query/hold.js +70 -0
- package/fields/dist/query/index.d.ts +25 -0
- package/fields/dist/query/index.js +25 -0
- package/fields/dist/query/kit.d.ts +57 -0
- package/fields/dist/query/kit.js +29 -0
- package/fields/dist/query/layer.d.ts +35 -0
- package/fields/dist/query/layer.js +51 -0
- package/fields/dist/query/link.d.ts +8 -0
- package/fields/dist/query/link.js +18 -0
- package/fields/dist/query/list-link.d.ts +65 -0
- package/fields/dist/query/list-link.js +174 -0
- package/fields/dist/query/location.d.ts +20 -0
- package/fields/dist/query/location.js +36 -0
- package/fields/dist/query/name.d.ts +6 -0
- package/fields/dist/query/name.js +23 -0
- package/fields/dist/query/number.d.ts +94 -0
- package/fields/dist/query/number.js +180 -0
- package/fields/dist/query/option-counts.d.ts +38 -0
- package/fields/dist/query/option-counts.js +89 -0
- package/fields/dist/query/range.d.ts +22 -0
- package/fields/dist/query/range.js +79 -0
- package/fields/dist/query/read-rule.d.ts +3 -0
- package/fields/dist/query/read-rule.js +13 -0
- package/fields/dist/query/search.d.ts +20 -0
- package/fields/dist/query/search.js +77 -0
- package/fields/dist/query/set-aside.d.ts +82 -0
- package/fields/dist/query/set-aside.js +172 -0
- package/fields/dist/query/settings.d.ts +81 -0
- package/fields/dist/query/settings.js +117 -0
- package/fields/dist/query/sort.d.ts +32 -0
- package/fields/dist/query/sort.js +270 -0
- package/fields/dist/query/text.d.ts +55 -0
- package/fields/dist/query/text.js +80 -0
- package/fields/dist/range.d.ts +25 -0
- package/fields/dist/range.js +63 -0
- package/fields/dist/registry.d.ts +128 -0
- package/fields/dist/registry.js +1185 -0
- package/fields/dist/relation.d.ts +84 -0
- package/fields/dist/relation.js +106 -0
- package/fields/dist/root-domain.d.ts +4 -0
- package/fields/dist/root-domain.js +12 -0
- package/fields/dist/settlement.d.ts +4 -0
- package/fields/dist/settlement.js +11 -0
- package/fields/dist/spec-changes.d.ts +20 -0
- package/fields/dist/spec-changes.js +170 -0
- package/fields/dist/testing/backend.d.ts +75 -0
- package/fields/dist/testing/backend.js +1 -0
- package/fields/dist/testing/cases.d.ts +14 -0
- package/fields/dist/testing/cases.js +327 -0
- package/fields/dist/testing/compare.d.ts +39 -0
- package/fields/dist/testing/compare.js +123 -0
- package/fields/dist/testing/index.d.ts +7 -0
- package/fields/dist/testing/index.js +5 -0
- package/fields/dist/testing/memory.d.ts +4 -0
- package/fields/dist/testing/memory.js +90 -0
- package/fields/dist/testing/now.d.ts +4 -0
- package/fields/dist/testing/now.js +2 -0
- package/fields/dist/testing/query-of.d.ts +8 -0
- package/fields/dist/testing/query-of.js +16 -0
- package/fields/dist/testing/question.d.ts +3 -0
- package/fields/dist/testing/question.js +10 -0
- package/fields/dist/testing/reader.d.ts +11 -0
- package/fields/dist/testing/reader.js +12 -0
- package/fields/dist/testing/reference.d.ts +20 -0
- package/fields/dist/testing/reference.js +58 -0
- package/fields/dist/testing/runner.d.ts +32 -0
- package/fields/dist/testing/runner.js +145 -0
- package/fields/dist/testing/samples.d.ts +5 -0
- package/fields/dist/testing/samples.js +338 -0
- package/fields/dist/testing/speed.d.ts +35 -0
- package/fields/dist/testing/speed.js +134 -0
- package/fields/dist/testing/sweep.d.ts +11 -0
- package/fields/dist/testing/sweep.js +154 -0
- package/fields/dist/testing/text-order.d.ts +8 -0
- package/fields/dist/testing/text-order.js +73 -0
- package/fields/dist/testing/worked-out.d.ts +16 -0
- package/fields/dist/testing/worked-out.js +234 -0
- package/fields/dist/types.d.ts +722 -0
- package/fields/dist/types.js +1 -0
- package/fields/dist/value-list.d.ts +56 -0
- package/fields/dist/value-list.js +75 -0
- package/fields/dist/write-result.d.ts +49 -0
- package/fields/dist/write-result.js +34 -0
- package/fields/dist/zod.d.ts +29 -0
- package/fields/dist/zod.js +419 -0
- package/fields/docs/getting-started.md +147 -0
- package/fields/docs/guides/checking-definitions.md +530 -0
- package/fields/docs/guides/contact-values.md +466 -0
- package/fields/docs/guides/conventions.md +312 -0
- package/fields/docs/guides/derived-fields.md +701 -0
- package/fields/docs/guides/field-types.md +665 -0
- package/fields/docs/guides/names-and-places.md +356 -0
- package/fields/docs/guides/narrowing-names.md +146 -0
- package/fields/docs/guides/options.md +348 -0
- package/fields/docs/guides/queries.md +1055 -0
- package/fields/docs/guides/the-index.md +415 -0
- package/fields/docs/guides/validation-and-acceptance.md +314 -0
- package/fields/docs/guides/who-may-change.md +299 -0
- package/fields/docs/index.md +47 -0
- package/fields/docs/reference/definitions.md +22 -0
- package/fields/docs/reference/design-category-colors.md +8 -0
- package/fields/docs/reference/design-stage-marks.md +4 -0
- package/fields/docs/reference/design-status-slots.md +6 -0
- package/fields/docs/reference/fields.md +275 -0
- package/fields/docs/reference/format-time.md +9 -0
- package/fields/docs/reference/phone.md +17 -0
- package/fields/docs/reference/places.md +9 -0
- package/fields/docs/reference/query.md +296 -0
- package/fields/docs/reference/root-domain.md +5 -0
- package/fields/docs/reference/testing.md +87 -0
- package/fields/docs/reference/types.md +95 -0
- package/fields/skills/viewkit/SKILL.md +377 -0
- package/package.json +268 -3
- package/postgres/CHANGELOG.md +676 -0
- package/postgres/README.md +35 -0
- package/postgres/dist/access.d.ts +139 -0
- package/postgres/dist/access.js +171 -0
- package/postgres/dist/actor.d.ts +3 -0
- package/postgres/dist/actor.js +6 -0
- package/postgres/dist/bounds.d.ts +16 -0
- package/postgres/dist/bounds.js +69 -0
- package/postgres/dist/calendar.d.ts +31 -0
- package/postgres/dist/calendar.js +65 -0
- package/postgres/dist/check.d.ts +55 -0
- package/postgres/dist/check.js +337 -0
- package/postgres/dist/counts.d.ts +44 -0
- package/postgres/dist/counts.js +97 -0
- package/postgres/dist/cursor.d.ts +26 -0
- package/postgres/dist/cursor.js +210 -0
- package/postgres/dist/date-groups.d.ts +45 -0
- package/postgres/dist/date-groups.js +176 -0
- package/postgres/dist/definitions/build.d.ts +28 -0
- package/postgres/dist/definitions/build.js +181 -0
- package/postgres/dist/definitions/float.d.ts +55 -0
- package/postgres/dist/definitions/float.js +108 -0
- package/postgres/dist/definitions/formula-forms.d.ts +29 -0
- package/postgres/dist/definitions/formula-forms.js +209 -0
- package/postgres/dist/definitions/formula.d.ts +14 -0
- package/postgres/dist/definitions/formula.js +211 -0
- package/postgres/dist/definitions/index.d.ts +3 -0
- package/postgres/dist/definitions/index.js +2 -0
- package/postgres/dist/definitions/json.d.ts +14 -0
- package/postgres/dist/definitions/json.js +68 -0
- package/postgres/dist/definitions/label.d.ts +8 -0
- package/postgres/dist/definitions/label.js +35 -0
- package/postgres/dist/definitions/lookup.d.ts +8 -0
- package/postgres/dist/definitions/lookup.js +92 -0
- package/postgres/dist/definitions/money.d.ts +29 -0
- package/postgres/dist/definitions/money.js +85 -0
- package/postgres/dist/definitions/place.d.ts +57 -0
- package/postgres/dist/definitions/place.js +46 -0
- package/postgres/dist/definitions/relations.d.ts +9 -0
- package/postgres/dist/definitions/relations.js +81 -0
- package/postgres/dist/definitions/rollup.d.ts +17 -0
- package/postgres/dist/definitions/rollup.js +348 -0
- package/postgres/dist/definitions/storage.d.ts +120 -0
- package/postgres/dist/definitions/storage.js +334 -0
- package/postgres/dist/definitions/stored.d.ts +3 -0
- package/postgres/dist/definitions/stored.js +72 -0
- package/postgres/dist/definitions/user.d.ts +7 -0
- package/postgres/dist/definitions/user.js +42 -0
- package/postgres/dist/double.d.ts +6 -0
- package/postgres/dist/double.js +10 -0
- package/postgres/dist/field-values.d.ts +16 -0
- package/postgres/dist/field-values.js +78 -0
- package/postgres/dist/figures.d.ts +37 -0
- package/postgres/dist/figures.js +90 -0
- package/postgres/dist/filled.d.ts +7 -0
- package/postgres/dist/filled.js +47 -0
- package/postgres/dist/fold.d.ts +15 -0
- package/postgres/dist/fold.js +21 -0
- package/postgres/dist/groups.d.ts +86 -0
- package/postgres/dist/groups.js +191 -0
- package/postgres/dist/ids.d.ts +8 -0
- package/postgres/dist/ids.js +16 -0
- package/postgres/dist/index.d.ts +22 -0
- package/postgres/dist/index.js +21 -0
- package/postgres/dist/kept.d.ts +36 -0
- package/postgres/dist/kept.js +47 -0
- package/postgres/dist/keyed.d.ts +48 -0
- package/postgres/dist/keyed.js +269 -0
- package/postgres/dist/lanes.d.ts +26 -0
- package/postgres/dist/lanes.js +71 -0
- package/postgres/dist/limits.d.ts +12 -0
- package/postgres/dist/limits.js +1 -0
- package/postgres/dist/map.d.ts +198 -0
- package/postgres/dist/map.js +475 -0
- package/postgres/dist/page.d.ts +116 -0
- package/postgres/dist/page.js +577 -0
- package/postgres/dist/parts.d.ts +10 -0
- package/postgres/dist/parts.js +82 -0
- package/postgres/dist/phone.d.ts +28 -0
- package/postgres/dist/phone.js +54 -0
- package/postgres/dist/predicates.d.ts +8 -0
- package/postgres/dist/predicates.js +35 -0
- package/postgres/dist/range-groups.d.ts +22 -0
- package/postgres/dist/range-groups.js +97 -0
- package/postgres/dist/readable.d.ts +40 -0
- package/postgres/dist/readable.js +84 -0
- package/postgres/dist/records.d.ts +24 -0
- package/postgres/dist/records.js +186 -0
- package/postgres/dist/refusals.d.ts +45 -0
- package/postgres/dist/refusals.js +53 -0
- package/postgres/dist/relations.d.ts +23 -0
- package/postgres/dist/relations.js +72 -0
- package/postgres/dist/rules.d.ts +60 -0
- package/postgres/dist/rules.js +218 -0
- package/postgres/dist/search-indexes.d.ts +62 -0
- package/postgres/dist/search-indexes.js +190 -0
- package/postgres/dist/search.d.ts +56 -0
- package/postgres/dist/search.js +154 -0
- package/postgres/dist/several.d.ts +49 -0
- package/postgres/dist/several.js +174 -0
- package/postgres/dist/sort.d.ts +106 -0
- package/postgres/dist/sort.js +373 -0
- package/postgres/dist/sql.d.ts +60 -0
- package/postgres/dist/sql.js +247 -0
- package/postgres/dist/statement.d.ts +4 -0
- package/postgres/dist/statement.js +7 -0
- package/postgres/dist/steps.d.ts +18 -0
- package/postgres/dist/steps.js +18 -0
- package/postgres/dist/users.d.ts +35 -0
- package/postgres/dist/users.js +33 -0
- package/postgres/dist/value-rows.d.ts +23 -0
- package/postgres/dist/value-rows.js +64 -0
- package/postgres/dist/values.d.ts +56 -0
- package/postgres/dist/values.js +162 -0
- package/postgres/dist/view-counts.d.ts +14 -0
- package/postgres/dist/view-counts.js +50 -0
- package/postgres/dist/walker.d.ts +12 -0
- package/postgres/dist/walker.js +18 -0
- package/postgres/docs/guides/definitions.md +221 -0
- package/postgres/docs/guides/field-map.md +730 -0
- package/postgres/docs/guides/test-kit.md +112 -0
- package/postgres/docs/index.md +11 -0
- package/postgres/docs/reference/definitions.md +41 -0
- package/postgres/docs/reference/postgres.md +114 -0
- package/views/CHANGELOG.md +3582 -0
- package/views/README.md +105 -0
- package/views/dist/atoms/Avatar.d.ts +2 -0
- package/views/dist/atoms/Avatar.js +13 -0
- package/views/dist/atoms/CellMore.d.ts +2 -0
- package/views/dist/atoms/CellMore.js +4 -0
- package/views/dist/atoms/CommandMenu.d.ts +2 -0
- package/views/dist/atoms/CommandMenu.js +24 -0
- package/views/dist/atoms/DisabledReason.d.ts +13 -0
- package/views/dist/atoms/DisabledReason.js +27 -0
- package/views/dist/atoms/DrillRows.d.ts +3 -0
- package/views/dist/atoms/DrillRows.js +27 -0
- package/views/dist/atoms/List.d.ts +2 -0
- package/views/dist/atoms/List.js +6 -0
- package/views/dist/atoms/LoadMore.d.ts +2 -0
- package/views/dist/atoms/LoadMore.js +35 -0
- package/views/dist/atoms/Loading.d.ts +8 -0
- package/views/dist/atoms/Loading.js +10 -0
- package/views/dist/atoms/PanelRows.d.ts +5 -0
- package/views/dist/atoms/PanelRows.js +38 -0
- package/views/dist/atoms/PanelSearch.d.ts +2 -0
- package/views/dist/atoms/PanelSearch.js +23 -0
- package/views/dist/atoms/Pill.d.ts +2 -0
- package/views/dist/atoms/Pill.js +25 -0
- package/views/dist/atoms/PlatformMark.d.ts +2 -0
- package/views/dist/atoms/PlatformMark.js +4 -0
- package/views/dist/atoms/RangeCalendar.d.ts +8 -0
- package/views/dist/atoms/RangeCalendar.js +30 -0
- package/views/dist/atoms/RelationLink.d.ts +2 -0
- package/views/dist/atoms/RelationLink.js +6 -0
- package/views/dist/atoms/RelationRoles.d.ts +2 -0
- package/views/dist/atoms/RelationRoles.js +6 -0
- package/views/dist/atoms/Row.d.ts +3 -0
- package/views/dist/atoms/Row.js +31 -0
- package/views/dist/atoms/RowMenu.d.ts +2 -0
- package/views/dist/atoms/RowMenu.js +116 -0
- package/views/dist/atoms/SelectionSheet.d.ts +3 -0
- package/views/dist/atoms/SelectionSheet.js +31 -0
- package/views/dist/atoms/StatusBadge.d.ts +2 -0
- package/views/dist/atoms/StatusBadge.js +7 -0
- package/views/dist/atoms/StatusMarker.d.ts +2 -0
- package/views/dist/atoms/StatusMarker.js +21 -0
- package/views/dist/atoms/Tag.d.ts +2 -0
- package/views/dist/atoms/Tag.js +14 -0
- package/views/dist/atoms/TickBox.d.ts +2 -0
- package/views/dist/atoms/TickBox.js +8 -0
- package/views/dist/atoms/ToolbarButton.d.ts +2 -0
- package/views/dist/atoms/ToolbarButton.js +50 -0
- package/views/dist/atoms/defaults.d.ts +2 -0
- package/views/dist/atoms/defaults.js +51 -0
- package/views/dist/atoms/tones.d.ts +5 -0
- package/views/dist/atoms/tones.js +28 -0
- package/views/dist/atoms/types.d.ts +496 -0
- package/views/dist/atoms/types.js +3 -0
- package/views/dist/cells/cell-format.d.ts +147 -0
- package/views/dist/cells/cell-format.js +16 -0
- package/views/dist/cells/cell-title.d.ts +20 -0
- package/views/dist/cells/cell-title.js +8 -0
- package/views/dist/cells/cell-values.d.ts +28 -0
- package/views/dist/cells/cell-values.js +107 -0
- package/views/dist/cells/index.d.ts +4 -0
- package/views/dist/cells/index.js +4 -0
- package/views/dist/cells/legacy-field.d.ts +52 -0
- package/views/dist/cells/legacy-field.js +164 -0
- package/views/dist/cells/relation-wrap.d.ts +3 -0
- package/views/dist/cells/relation-wrap.js +26 -0
- package/views/dist/cells/use-cell-format.d.ts +5 -0
- package/views/dist/cells/use-cell-format.js +10 -0
- package/views/dist/contract.d.ts +1337 -0
- package/views/dist/contract.js +1824 -0
- package/views/dist/display/actor.d.ts +4 -0
- package/views/dist/display/actor.js +26 -0
- package/views/dist/display/boolean.d.ts +18 -0
- package/views/dist/display/boolean.js +50 -0
- package/views/dist/display/breakdown.d.ts +15 -0
- package/views/dist/display/breakdown.js +32 -0
- package/views/dist/display/converted.d.ts +19 -0
- package/views/dist/display/converted.js +12 -0
- package/views/dist/display/currency.d.ts +9 -0
- package/views/dist/display/currency.js +29 -0
- package/views/dist/display/date.d.ts +12 -0
- package/views/dist/display/date.js +28 -0
- package/views/dist/display/display-cores.d.ts +31 -0
- package/views/dist/display/display-cores.js +57 -0
- package/views/dist/display/entity-chip.d.ts +29 -0
- package/views/dist/display/entity-chip.js +8 -0
- package/views/dist/display/fit-values.d.ts +34 -0
- package/views/dist/display/fit-values.js +45 -0
- package/views/dist/display/format.d.ts +66 -0
- package/views/dist/display/format.js +206 -0
- package/views/dist/display/index.d.ts +9 -0
- package/views/dist/display/index.js +8 -0
- package/views/dist/display/link-click.d.ts +11 -0
- package/views/dist/display/link-click.js +3 -0
- package/views/dist/display/link.d.ts +29 -0
- package/views/dist/display/link.js +56 -0
- package/views/dist/display/location.d.ts +8 -0
- package/views/dist/display/location.js +22 -0
- package/views/dist/display/multi-value.d.ts +18 -0
- package/views/dist/display/multi-value.js +93 -0
- package/views/dist/display/name.d.ts +6 -0
- package/views/dist/display/name.js +14 -0
- package/views/dist/display/number.d.ts +11 -0
- package/views/dist/display/number.js +27 -0
- package/views/dist/display/options.d.ts +167 -0
- package/views/dist/display/options.js +1 -0
- package/views/dist/display/percent.d.ts +4 -0
- package/views/dist/display/percent.js +41 -0
- package/views/dist/display/phone.d.ts +11 -0
- package/views/dist/display/phone.js +49 -0
- package/views/dist/display/range.d.ts +6 -0
- package/views/dist/display/range.js +19 -0
- package/views/dist/display/relation.d.ts +4 -0
- package/views/dist/display/relation.js +44 -0
- package/views/dist/display/rich-text.d.ts +10 -0
- package/views/dist/display/rich-text.js +46 -0
- package/views/dist/display/select.d.ts +6 -0
- package/views/dist/display/select.js +40 -0
- package/views/dist/display/status-steps.d.ts +8 -0
- package/views/dist/display/status-steps.js +18 -0
- package/views/dist/display/text-class.d.ts +23 -0
- package/views/dist/display/text-class.js +5 -0
- package/views/dist/display/text.d.ts +19 -0
- package/views/dist/display/text.js +8 -0
- package/views/dist/display/use-display-options.d.ts +2 -0
- package/views/dist/display/use-display-options.js +14 -0
- package/views/dist/display/user.d.ts +11 -0
- package/views/dist/display/user.js +10 -0
- package/views/dist/display/value-list.d.ts +10 -0
- package/views/dist/display/value-list.js +12 -0
- package/views/dist/display/viewer.d.ts +4 -0
- package/views/dist/display/viewer.js +12 -0
- package/views/dist/display/web-href.d.ts +16 -0
- package/views/dist/display/web-href.js +19 -0
- package/views/dist/editors/BodyFrame.d.ts +30 -0
- package/views/dist/editors/BodyFrame.js +86 -0
- package/views/dist/editors/ChipsEditor.d.ts +76 -0
- package/views/dist/editors/ChipsEditor.js +118 -0
- package/views/dist/editors/DateEditor.d.ts +42 -0
- package/views/dist/editors/DateEditor.js +298 -0
- package/views/dist/editors/EditorPanel.d.ts +71 -0
- package/views/dist/editors/EditorPanel.js +158 -0
- package/views/dist/editors/LocationEditor.d.ts +33 -0
- package/views/dist/editors/LocationEditor.js +320 -0
- package/views/dist/editors/NameEditor.d.ts +29 -0
- package/views/dist/editors/NameEditor.js +119 -0
- package/views/dist/editors/NumberEditor.d.ts +90 -0
- package/views/dist/editors/NumberEditor.js +126 -0
- package/views/dist/editors/RangeEditor.d.ts +51 -0
- package/views/dist/editors/RangeEditor.js +125 -0
- package/views/dist/editors/RelationEditor.d.ts +52 -0
- package/views/dist/editors/RelationEditor.js +55 -0
- package/views/dist/editors/RelationSetEditor.d.ts +63 -0
- package/views/dist/editors/RelationSetEditor.js +222 -0
- package/views/dist/editors/SelectEditor.d.ts +104 -0
- package/views/dist/editors/SelectEditor.js +154 -0
- package/views/dist/editors/TextEditor.d.ts +61 -0
- package/views/dist/editors/TextEditor.js +102 -0
- package/views/dist/editors/ValueListEditor.d.ts +51 -0
- package/views/dist/editors/ValueListEditor.js +239 -0
- package/views/dist/editors/body-panel.d.ts +11 -0
- package/views/dist/editors/body-panel.js +11 -0
- package/views/dist/editors/body-step.d.ts +12 -0
- package/views/dist/editors/body-step.js +6 -0
- package/views/dist/editors/edit-cores.d.ts +86 -0
- package/views/dist/editors/edit-cores.js +39 -0
- package/views/dist/editors/edit-session.d.ts +113 -0
- package/views/dist/editors/edit-session.js +97 -0
- package/views/dist/editors/escape-rule.d.ts +34 -0
- package/views/dist/editors/escape-rule.js +15 -0
- package/views/dist/editors/inner-escape.d.ts +12 -0
- package/views/dist/editors/inner-escape.js +10 -0
- package/views/dist/editors/keep-inside.d.ts +12 -0
- package/views/dist/editors/keep-inside.js +20 -0
- package/views/dist/editors/leave-scope.d.ts +31 -0
- package/views/dist/editors/leave-scope.js +29 -0
- package/views/dist/editors/link-roles.d.ts +9 -0
- package/views/dist/editors/link-roles.js +19 -0
- package/views/dist/editors/number-body.d.ts +30 -0
- package/views/dist/editors/number-body.js +38 -0
- package/views/dist/editors/number-step.d.ts +39 -0
- package/views/dist/editors/number-step.js +47 -0
- package/views/dist/editors/open-value.d.ts +22 -0
- package/views/dist/editors/open-value.js +37 -0
- package/views/dist/editors/open-values.d.ts +32 -0
- package/views/dist/editors/open-values.js +33 -0
- package/views/dist/editors/option-add-flow.d.ts +66 -0
- package/views/dist/editors/option-add-flow.js +155 -0
- package/views/dist/editors/parts-body.d.ts +68 -0
- package/views/dist/editors/parts-body.js +117 -0
- package/views/dist/editors/picker-slot.d.ts +25 -0
- package/views/dist/editors/picker-slot.js +37 -0
- package/views/dist/editors/relation-kinds.d.ts +7 -0
- package/views/dist/editors/relation-kinds.js +21 -0
- package/views/dist/editors/relation-links-body.d.ts +36 -0
- package/views/dist/editors/relation-links-body.js +22 -0
- package/views/dist/editors/relation-panel.d.ts +69 -0
- package/views/dist/editors/relation-panel.js +40 -0
- package/views/dist/editors/relation-picker.d.ts +63 -0
- package/views/dist/editors/relation-picker.js +58 -0
- package/views/dist/editors/relation-source.d.ts +67 -0
- package/views/dist/editors/relation-source.js +108 -0
- package/views/dist/editors/tab-ends.d.ts +7 -0
- package/views/dist/editors/tab-ends.js +10 -0
- package/views/dist/editors/text-body.d.ts +16 -0
- package/views/dist/editors/text-body.js +30 -0
- package/views/dist/editors/values-body.d.ts +47 -0
- package/views/dist/editors/values-body.js +140 -0
- package/views/dist/field-row/FieldNoteLine.d.ts +14 -0
- package/views/dist/field-row/FieldNoteLine.js +15 -0
- package/views/dist/field-row/FieldRow.d.ts +81 -0
- package/views/dist/field-row/FieldRow.js +232 -0
- package/views/dist/field-row/FieldRowLane.d.ts +19 -0
- package/views/dist/field-row/FieldRowLane.js +21 -0
- package/views/dist/field-row/drawn-text.d.ts +7 -0
- package/views/dist/field-row/drawn-text.js +27 -0
- package/views/dist/field-row/editors/RowChipsEditor.d.ts +11 -0
- package/views/dist/field-row/editors/RowChipsEditor.js +27 -0
- package/views/dist/field-row/editors/RowDateEditor.d.ts +16 -0
- package/views/dist/field-row/editors/RowDateEditor.js +18 -0
- package/views/dist/field-row/editors/RowEditor.d.ts +39 -0
- package/views/dist/field-row/editors/RowEditor.js +66 -0
- package/views/dist/field-row/editors/RowNameEditor.d.ts +7 -0
- package/views/dist/field-row/editors/RowNameEditor.js +23 -0
- package/views/dist/field-row/editors/RowNumberEditor.d.ts +12 -0
- package/views/dist/field-row/editors/RowNumberEditor.js +34 -0
- package/views/dist/field-row/editors/RowPlaceEditor.d.ts +9 -0
- package/views/dist/field-row/editors/RowPlaceEditor.js +20 -0
- package/views/dist/field-row/editors/RowRangeEditor.d.ts +7 -0
- package/views/dist/field-row/editors/RowRangeEditor.js +25 -0
- package/views/dist/field-row/editors/RowRelationEditor.d.ts +20 -0
- package/views/dist/field-row/editors/RowRelationEditor.js +80 -0
- package/views/dist/field-row/editors/RowSelectEditor.d.ts +13 -0
- package/views/dist/field-row/editors/RowSelectEditor.js +26 -0
- package/views/dist/field-row/editors/RowTextEditor.d.ts +15 -0
- package/views/dist/field-row/editors/RowTextEditor.js +25 -0
- package/views/dist/field-row/editors/RowValueListEditor.d.ts +6 -0
- package/views/dist/field-row/editors/RowValueListEditor.js +34 -0
- package/views/dist/field-row/editors/host.d.ts +65 -0
- package/views/dist/field-row/editors/host.js +1 -0
- package/views/dist/field-row/editors/row-frame.d.ts +2 -0
- package/views/dist/field-row/editors/row-frame.js +1 -0
- package/views/dist/field-row/editors/row-session.d.ts +63 -0
- package/views/dist/field-row/editors/row-session.js +102 -0
- package/views/dist/field-row/field-row-button.d.ts +40 -0
- package/views/dist/field-row/field-row-button.js +18 -0
- package/views/dist/field-row/field-row-checkbox.d.ts +9 -0
- package/views/dist/field-row/field-row-checkbox.js +7 -0
- package/views/dist/field-row/index.d.ts +5 -0
- package/views/dist/field-row/index.js +5 -0
- package/views/dist/field-row/row-target.d.ts +20 -0
- package/views/dist/field-row/row-target.js +3 -0
- package/views/dist/field-row/useFieldWrite.d.ts +45 -0
- package/views/dist/field-row/useFieldWrite.js +233 -0
- package/views/dist/field-row/useRowSettlement.d.ts +33 -0
- package/views/dist/field-row/useRowSettlement.js +23 -0
- package/views/dist/fields/binding.d.ts +96 -0
- package/views/dist/fields/binding.js +128 -0
- package/views/dist/fields/currency.d.ts +82 -0
- package/views/dist/fields/currency.js +41 -0
- package/views/dist/fields/denomination.d.ts +42 -0
- package/views/dist/fields/denomination.js +11 -0
- package/views/dist/fields/edit-core-types.d.ts +40 -0
- package/views/dist/fields/edit-core-types.js +29 -0
- package/views/dist/fields/format-knobs.d.ts +34 -0
- package/views/dist/fields/format-knobs.js +36 -0
- package/views/dist/fields/menus.d.ts +30 -0
- package/views/dist/fields/menus.js +1 -0
- package/views/dist/fields/money.d.ts +65 -0
- package/views/dist/fields/money.js +88 -0
- package/views/dist/fields/number-edit.d.ts +17 -0
- package/views/dist/fields/number-edit.js +21 -0
- package/views/dist/fields/option-add.d.ts +25 -0
- package/views/dist/fields/option-add.js +9 -0
- package/views/dist/fields/prepare-write.d.ts +55 -0
- package/views/dist/fields/prepare-write.js +72 -0
- package/views/dist/fields/range-unit.d.ts +7 -0
- package/views/dist/fields/range-unit.js +13 -0
- package/views/dist/fields/relation-source-types.d.ts +66 -0
- package/views/dist/fields/relation-source-types.js +1 -0
- package/views/dist/fields/write-target.d.ts +56 -0
- package/views/dist/fields/write-target.js +10 -0
- package/views/dist/figures.d.ts +9 -0
- package/views/dist/figures.js +1 -0
- package/views/dist/filters/date-filter.d.ts +2 -0
- package/views/dist/filters/date-filter.js +1 -0
- package/views/dist/filters/filter-model.d.ts +181 -0
- package/views/dist/filters/filter-model.js +41 -0
- package/views/dist/filters/filter-tree.d.ts +146 -0
- package/views/dist/filters/filter-tree.js +256 -0
- package/views/dist/filters/number-filter.d.ts +2 -0
- package/views/dist/filters/number-filter.js +1 -0
- package/views/dist/filters/range-filter.d.ts +2 -0
- package/views/dist/filters/range-filter.js +1 -0
- package/views/dist/filters/registry.d.ts +103 -0
- package/views/dist/filters/registry.js +8 -0
- package/views/dist/filters/relation-filter.d.ts +16 -0
- package/views/dist/filters/relation-filter.js +63 -0
- package/views/dist/filters/text-filter.d.ts +2 -0
- package/views/dist/filters/text-filter.js +1 -0
- package/views/dist/grid/chrome/GridAddColumn.d.ts +23 -0
- package/views/dist/grid/chrome/GridAddColumn.js +106 -0
- package/views/dist/grid/chrome/GridAggregateMenu.d.ts +36 -0
- package/views/dist/grid/chrome/GridAggregateMenu.js +60 -0
- package/views/dist/grid/chrome/GridCellEditors.d.ts +81 -0
- package/views/dist/grid/chrome/GridCellEditors.js +156 -0
- package/views/dist/grid/chrome/GridCellOutline.d.ts +53 -0
- package/views/dist/grid/chrome/GridCellOutline.js +36 -0
- package/views/dist/grid/chrome/GridChipsEditor.d.ts +40 -0
- package/views/dist/grid/chrome/GridChipsEditor.js +39 -0
- package/views/dist/grid/chrome/GridColumnColorSection.d.ts +13 -0
- package/views/dist/grid/chrome/GridColumnColorSection.js +40 -0
- package/views/dist/grid/chrome/GridColumnDateSection.d.ts +27 -0
- package/views/dist/grid/chrome/GridColumnDateSection.js +23 -0
- package/views/dist/grid/chrome/GridColumnDurationSection.d.ts +23 -0
- package/views/dist/grid/chrome/GridColumnDurationSection.js +24 -0
- package/views/dist/grid/chrome/GridColumnMenu.d.ts +113 -0
- package/views/dist/grid/chrome/GridColumnMenu.js +149 -0
- package/views/dist/grid/chrome/GridColumnNumberSection.d.ts +29 -0
- package/views/dist/grid/chrome/GridColumnNumberSection.js +27 -0
- package/views/dist/grid/chrome/GridColumnPercentSection.d.ts +16 -0
- package/views/dist/grid/chrome/GridColumnPercentSection.js +16 -0
- package/views/dist/grid/chrome/GridColumnSortSection.d.ts +38 -0
- package/views/dist/grid/chrome/GridColumnSortSection.js +33 -0
- package/views/dist/grid/chrome/GridDateEditor.d.ts +41 -0
- package/views/dist/grid/chrome/GridDateEditor.js +26 -0
- package/views/dist/grid/chrome/GridFlyout.d.ts +44 -0
- package/views/dist/grid/chrome/GridFlyout.js +80 -0
- package/views/dist/grid/chrome/GridFooter.d.ts +40 -0
- package/views/dist/grid/chrome/GridFooter.js +55 -0
- package/views/dist/grid/chrome/GridGroupMenu.d.ts +47 -0
- package/views/dist/grid/chrome/GridGroupMenu.js +101 -0
- package/views/dist/grid/chrome/GridHeader.d.ts +83 -0
- package/views/dist/grid/chrome/GridHeader.js +58 -0
- package/views/dist/grid/chrome/GridLongTextEditor.d.ts +55 -0
- package/views/dist/grid/chrome/GridLongTextEditor.js +73 -0
- package/views/dist/grid/chrome/GridMenuRow.d.ts +15 -0
- package/views/dist/grid/chrome/GridMenuRow.js +15 -0
- package/views/dist/grid/chrome/GridNameEditor.d.ts +24 -0
- package/views/dist/grid/chrome/GridNameEditor.js +25 -0
- package/views/dist/grid/chrome/GridNumberEditor.d.ts +56 -0
- package/views/dist/grid/chrome/GridNumberEditor.js +42 -0
- package/views/dist/grid/chrome/GridPager.d.ts +7 -0
- package/views/dist/grid/chrome/GridPager.js +34 -0
- package/views/dist/grid/chrome/GridPlaceEditor.d.ts +29 -0
- package/views/dist/grid/chrome/GridPlaceEditor.js +26 -0
- package/views/dist/grid/chrome/GridRangeEditor.d.ts +35 -0
- package/views/dist/grid/chrome/GridRangeEditor.js +32 -0
- package/views/dist/grid/chrome/GridRelationEditor.d.ts +47 -0
- package/views/dist/grid/chrome/GridRelationEditor.js +99 -0
- package/views/dist/grid/chrome/GridResizeHandle.d.ts +19 -0
- package/views/dist/grid/chrome/GridResizeHandle.js +19 -0
- package/views/dist/grid/chrome/GridRow.d.ts +32 -0
- package/views/dist/grid/chrome/GridRow.js +171 -0
- package/views/dist/grid/chrome/GridRowActions.d.ts +37 -0
- package/views/dist/grid/chrome/GridRowActions.js +36 -0
- package/views/dist/grid/chrome/GridRowCells.d.ts +4 -0
- package/views/dist/grid/chrome/GridRowCells.js +157 -0
- package/views/dist/grid/chrome/GridRowGlyph.d.ts +14 -0
- package/views/dist/grid/chrome/GridRowGlyph.js +18 -0
- package/views/dist/grid/chrome/GridSelectEditor.d.ts +35 -0
- package/views/dist/grid/chrome/GridSelectEditor.js +58 -0
- package/views/dist/grid/chrome/GridStructure.d.ts +64 -0
- package/views/dist/grid/chrome/GridStructure.js +87 -0
- package/views/dist/grid/chrome/GridTable.d.ts +4 -0
- package/views/dist/grid/chrome/GridTable.js +394 -0
- package/views/dist/grid/chrome/GridTableSurface.d.ts +80 -0
- package/views/dist/grid/chrome/GridTableSurface.js +39 -0
- package/views/dist/grid/chrome/GridTextEditor.d.ts +49 -0
- package/views/dist/grid/chrome/GridTextEditor.js +51 -0
- package/views/dist/grid/chrome/GridValueListEditor.d.ts +38 -0
- package/views/dist/grid/chrome/GridValueListEditor.js +29 -0
- package/views/dist/grid/chrome/StuckMarker.d.ts +26 -0
- package/views/dist/grid/chrome/StuckMarker.js +44 -0
- package/views/dist/grid/chrome/cell-clipboard.d.ts +10 -0
- package/views/dist/grid/chrome/cell-clipboard.js +28 -0
- package/views/dist/grid/chrome/cell-cut-off.d.ts +11 -0
- package/views/dist/grid/chrome/cell-cut-off.js +20 -0
- package/views/dist/grid/chrome/cells.d.ts +23 -0
- package/views/dist/grid/chrome/cells.js +19 -0
- package/views/dist/grid/chrome/checks.d.ts +56 -0
- package/views/dist/grid/chrome/checks.js +48 -0
- package/views/dist/grid/chrome/column-glyph.d.ts +16 -0
- package/views/dist/grid/chrome/column-glyph.js +52 -0
- package/views/dist/grid/chrome/editors.d.ts +9 -0
- package/views/dist/grid/chrome/editors.js +10 -0
- package/views/dist/grid/chrome/grid-add-column-items.d.ts +13 -0
- package/views/dist/grid/chrome/grid-add-column-items.js +47 -0
- package/views/dist/grid/chrome/grid-body-place.d.ts +4 -0
- package/views/dist/grid/chrome/grid-body-place.js +15 -0
- package/views/dist/grid/chrome/grid-button.d.ts +32 -0
- package/views/dist/grid/chrome/grid-button.js +12 -0
- package/views/dist/grid/chrome/grid-cell-classes.d.ts +96 -0
- package/views/dist/grid/chrome/grid-cell-classes.js +70 -0
- package/views/dist/grid/chrome/grid-cell-link.d.ts +13 -0
- package/views/dist/grid/chrome/grid-cell-link.js +9 -0
- package/views/dist/grid/chrome/grid-column-menu-items.d.ts +78 -0
- package/views/dist/grid/chrome/grid-column-menu-items.js +292 -0
- package/views/dist/grid/chrome/grid-columns-template.d.ts +45 -0
- package/views/dist/grid/chrome/grid-columns-template.js +18 -0
- package/views/dist/grid/chrome/grid-edit-escape.d.ts +4 -0
- package/views/dist/grid/chrome/grid-edit-escape.js +12 -0
- package/views/dist/grid/chrome/grid-edit-session.d.ts +67 -0
- package/views/dist/grid/chrome/grid-edit-session.js +141 -0
- package/views/dist/grid/chrome/grid-editor-layer.d.ts +7 -0
- package/views/dist/grid/chrome/grid-editor-layer.js +1 -0
- package/views/dist/grid/chrome/grid-figure-value.d.ts +25 -0
- package/views/dist/grid/chrome/grid-figure-value.js +40 -0
- package/views/dist/grid/chrome/grid-fitted-box.d.ts +15 -0
- package/views/dist/grid/chrome/grid-fitted-box.js +26 -0
- package/views/dist/grid/chrome/grid-group-menu-items.d.ts +38 -0
- package/views/dist/grid/chrome/grid-group-menu-items.js +92 -0
- package/views/dist/grid/chrome/grid-group-menu-parts.d.ts +31 -0
- package/views/dist/grid/chrome/grid-group-menu-parts.js +21 -0
- package/views/dist/grid/chrome/grid-hover.d.ts +74 -0
- package/views/dist/grid/chrome/grid-hover.js +150 -0
- package/views/dist/grid/chrome/grid-lab.d.ts +7 -0
- package/views/dist/grid/chrome/grid-lab.js +7 -0
- package/views/dist/grid/chrome/grid-menu-focus.d.ts +65 -0
- package/views/dist/grid/chrome/grid-menu-focus.js +160 -0
- package/views/dist/grid/chrome/grid-menu-search.d.ts +7 -0
- package/views/dist/grid/chrome/grid-menu-search.js +7 -0
- package/views/dist/grid/chrome/grid-pages.d.ts +15 -0
- package/views/dist/grid/chrome/grid-pages.js +9 -0
- package/views/dist/grid/chrome/grid-row-menu-items.d.ts +49 -0
- package/views/dist/grid/chrome/grid-row-menu-items.js +159 -0
- package/views/dist/grid/chrome/grid-row-menu-key.d.ts +15 -0
- package/views/dist/grid/chrome/grid-row-menu-key.js +36 -0
- package/views/dist/grid/chrome/grid-row-props.d.ts +155 -0
- package/views/dist/grid/chrome/grid-row-props.js +1 -0
- package/views/dist/grid/chrome/grid-row-window.d.ts +78 -0
- package/views/dist/grid/chrome/grid-row-window.js +280 -0
- package/views/dist/grid/chrome/grid-rows-menu.d.ts +42 -0
- package/views/dist/grid/chrome/grid-rows-menu.js +85 -0
- package/views/dist/grid/chrome/grid-scroll-owner.d.ts +38 -0
- package/views/dist/grid/chrome/grid-scroll-owner.js +75 -0
- package/views/dist/grid/chrome/grid-styles.d.ts +50 -0
- package/views/dist/grid/chrome/grid-styles.js +11 -0
- package/views/dist/grid/chrome/grid-table-props.d.ts +310 -0
- package/views/dist/grid/chrome/grid-table-props.js +1 -0
- package/views/dist/grid/chrome/grid-wait.d.ts +22 -0
- package/views/dist/grid/chrome/grid-wait.js +4 -0
- package/views/dist/grid/chrome/useBarRoom.d.ts +19 -0
- package/views/dist/grid/chrome/useBarRoom.js +96 -0
- package/views/dist/grid/chrome/useGridBandFigures.d.ts +26 -0
- package/views/dist/grid/chrome/useGridBandFigures.js +50 -0
- package/views/dist/grid/chrome/useGridBatchApi.d.ts +34 -0
- package/views/dist/grid/chrome/useGridBatchApi.js +36 -0
- package/views/dist/grid/chrome/useGridBoxes.d.ts +22 -0
- package/views/dist/grid/chrome/useGridBoxes.js +22 -0
- package/views/dist/grid/chrome/useGridCellPick.d.ts +30 -0
- package/views/dist/grid/chrome/useGridCellPick.js +77 -0
- package/views/dist/grid/chrome/useGridColumnLayout.d.ts +32 -0
- package/views/dist/grid/chrome/useGridColumnLayout.js +251 -0
- package/views/dist/grid/chrome/useGridFocus.d.ts +48 -0
- package/views/dist/grid/chrome/useGridFocus.js +129 -0
- package/views/dist/grid/chrome/useGridHeaderDrag.d.ts +20 -0
- package/views/dist/grid/chrome/useGridHeaderDrag.js +37 -0
- package/views/dist/grid/chrome/useGridKeyboard.d.ts +65 -0
- package/views/dist/grid/chrome/useGridKeyboard.js +463 -0
- package/views/dist/grid/chrome/useGridLongPress.d.ts +30 -0
- package/views/dist/grid/chrome/useGridLongPress.js +98 -0
- package/views/dist/grid/chrome/useGridPartColumns.d.ts +5 -0
- package/views/dist/grid/chrome/useGridPartColumns.js +9 -0
- package/views/dist/grid/chrome/useGridPendingReconciliation.d.ts +12 -0
- package/views/dist/grid/chrome/useGridPendingReconciliation.js +32 -0
- package/views/dist/grid/chrome/useGridRailReveal.d.ts +57 -0
- package/views/dist/grid/chrome/useGridRailReveal.js +67 -0
- package/views/dist/grid/chrome/useGridRangeActions.d.ts +51 -0
- package/views/dist/grid/chrome/useGridRangeActions.js +199 -0
- package/views/dist/grid/chrome/useGridRangeGestures.d.ts +33 -0
- package/views/dist/grid/chrome/useGridRangeGestures.js +241 -0
- package/views/dist/grid/chrome/useGridRecorder.d.ts +16 -0
- package/views/dist/grid/chrome/useGridRecorder.js +144 -0
- package/views/dist/grid/chrome/useGridRowOpener.d.ts +41 -0
- package/views/dist/grid/chrome/useGridRowOpener.js +83 -0
- package/views/dist/grid/chrome/useGridScaleStyles.d.ts +3 -0
- package/views/dist/grid/chrome/useGridScaleStyles.js +28 -0
- package/views/dist/grid/chrome/useGridScrollArea.d.ts +47 -0
- package/views/dist/grid/chrome/useGridScrollArea.js +120 -0
- package/views/dist/grid/chrome/useGridTableInteractionModel.d.ts +81 -0
- package/views/dist/grid/chrome/useGridTableInteractionModel.js +336 -0
- package/views/dist/grid/chrome/useGridTableSelection.d.ts +31 -0
- package/views/dist/grid/chrome/useGridTableSelection.js +55 -0
- package/views/dist/grid/chrome/useHeaderDragReorder.d.ts +21 -0
- package/views/dist/grid/chrome/useHeaderDragReorder.js +218 -0
- package/views/dist/grid/core/clipboard-model.d.ts +123 -0
- package/views/dist/grid/core/clipboard-model.js +388 -0
- package/views/dist/grid/core/column-values.d.ts +27 -0
- package/views/dist/grid/core/column-values.js +76 -0
- package/views/dist/grid/core/commit-model.d.ts +48 -0
- package/views/dist/grid/core/commit-model.js +3 -0
- package/views/dist/grid/core/coordinates.d.ts +48 -0
- package/views/dist/grid/core/coordinates.js +27 -0
- package/views/dist/grid/core/edge-scroll.d.ts +21 -0
- package/views/dist/grid/core/edge-scroll.js +23 -0
- package/views/dist/grid/core/edit-values.d.ts +9 -0
- package/views/dist/grid/core/edit-values.js +1 -0
- package/views/dist/grid/core/editing-controller.d.ts +146 -0
- package/views/dist/grid/core/editing-controller.js +563 -0
- package/views/dist/grid/core/editing-model.d.ts +113 -0
- package/views/dist/grid/core/editing-model.js +168 -0
- package/views/dist/grid/core/flat-rows.d.ts +35 -0
- package/views/dist/grid/core/flat-rows.js +20 -0
- package/views/dist/grid/core/grid-aria.d.ts +31 -0
- package/views/dist/grid/core/grid-aria.js +41 -0
- package/views/dist/grid/core/grid-focus.d.ts +60 -0
- package/views/dist/grid/core/grid-focus.js +171 -0
- package/views/dist/grid/core/grid-recorder.d.ts +111 -0
- package/views/dist/grid/core/grid-recorder.js +223 -0
- package/views/dist/grid/core/grid-scale.d.ts +14 -0
- package/views/dist/grid/core/grid-scale.js +8 -0
- package/views/dist/grid/core/nav.d.ts +94 -0
- package/views/dist/grid/core/nav.js +92 -0
- package/views/dist/grid/core/part-edits.d.ts +18 -0
- package/views/dist/grid/core/part-edits.js +48 -0
- package/views/dist/grid/core/pending-reconciliation.d.ts +53 -0
- package/views/dist/grid/core/pending-reconciliation.js +60 -0
- package/views/dist/grid/core/range-model.d.ts +25 -0
- package/views/dist/grid/core/range-model.js +59 -0
- package/views/dist/grid/core/refusal-sentence.d.ts +3 -0
- package/views/dist/grid/core/refusal-sentence.js +15 -0
- package/views/dist/grid/core/row-opened-from.d.ts +21 -0
- package/views/dist/grid/core/row-opened-from.js +11 -0
- package/views/dist/grid/core/row-window.d.ts +40 -0
- package/views/dist/grid/core/row-window.js +43 -0
- package/views/dist/grid/core/spreadsheet-operations.d.ts +101 -0
- package/views/dist/grid/core/spreadsheet-operations.js +282 -0
- package/views/dist/grid/core/useGridEditing.d.ts +72 -0
- package/views/dist/grid/core/useGridEditing.js +105 -0
- package/views/dist/grid/core/useGridRange.d.ts +22 -0
- package/views/dist/grid/core/useGridRange.js +27 -0
- package/views/dist/grid/core/value-equality.d.ts +72 -0
- package/views/dist/grid/core/value-equality.js +104 -0
- package/views/dist/grid/core/write-states.d.ts +20 -0
- package/views/dist/grid/core/write-states.js +21 -0
- package/views/dist/grid/grid-format-props.d.ts +26 -0
- package/views/dist/grid/grid-format-props.js +65 -0
- package/views/dist/grid/index.d.ts +23 -0
- package/views/dist/grid/index.js +7 -0
- package/views/dist/grid/useGridTablePrefs.d.ts +48 -0
- package/views/dist/grid/useGridTablePrefs.js +47 -0
- package/views/dist/grid/useGridTableSettings.d.ts +60 -0
- package/views/dist/grid/useGridTableSettings.js +61 -0
- package/views/dist/grid-lab.d.ts +18 -0
- package/views/dist/grid-lab.js +16 -0
- package/views/dist/grouping/sort-groups.d.ts +17 -0
- package/views/dist/grouping/sort-groups.js +33 -0
- package/views/dist/grouping/types.d.ts +10 -0
- package/views/dist/grouping/types.js +1 -0
- package/views/dist/index.d.ts +31 -0
- package/views/dist/index.js +30 -0
- package/views/dist/internal/chip.d.ts +4 -0
- package/views/dist/internal/chip.js +3 -0
- package/views/dist/internal/count.d.ts +3 -0
- package/views/dist/internal/count.js +3 -0
- package/views/dist/internal/cx.d.ts +3 -0
- package/views/dist/internal/cx.js +3 -0
- package/views/dist/internal/reset.d.ts +9 -0
- package/views/dist/internal/reset.js +1 -0
- package/views/dist/internal/use-idle-write.d.ts +1 -0
- package/views/dist/internal/use-idle-write.js +13 -0
- package/views/dist/internal/viewport.d.ts +3 -0
- package/views/dist/internal/viewport.js +15 -0
- package/views/dist/internal/zone-clock.d.ts +20 -0
- package/views/dist/internal/zone-clock.js +77 -0
- package/views/dist/model/aggregates.d.ts +61 -0
- package/views/dist/model/aggregates.js +134 -0
- package/views/dist/model/body-frame.d.ts +34 -0
- package/views/dist/model/body-frame.js +15 -0
- package/views/dist/model/card-density.d.ts +8 -0
- package/views/dist/model/card-density.js +10 -0
- package/views/dist/model/card-layout.d.ts +85 -0
- package/views/dist/model/card-layout.js +90 -0
- package/views/dist/model/column-capabilities.d.ts +193 -0
- package/views/dist/model/column-capabilities.js +280 -0
- package/views/dist/model/column-filters.d.ts +109 -0
- package/views/dist/model/column-filters.js +348 -0
- package/views/dist/model/column-format.d.ts +103 -0
- package/views/dist/model/column-format.js +1 -0
- package/views/dist/model/column-from.d.ts +28 -0
- package/views/dist/model/column-from.js +165 -0
- package/views/dist/model/column-inspect.d.ts +28 -0
- package/views/dist/model/column-inspect.js +17 -0
- package/views/dist/model/column-knobs.d.ts +20 -0
- package/views/dist/model/column-knobs.js +16 -0
- package/views/dist/model/column-mark.d.ts +13 -0
- package/views/dist/model/column-mark.js +10 -0
- package/views/dist/model/column-money.d.ts +13 -0
- package/views/dist/model/column-money.js +27 -0
- package/views/dist/model/column-order.d.ts +36 -0
- package/views/dist/model/column-order.js +68 -0
- package/views/dist/model/column-schema.d.ts +355 -0
- package/views/dist/model/column-schema.js +1 -0
- package/views/dist/model/column-sort.d.ts +28 -0
- package/views/dist/model/column-sort.js +25 -0
- package/views/dist/model/column-state.d.ts +72 -0
- package/views/dist/model/column-state.js +92 -0
- package/views/dist/model/column-types.d.ts +97 -0
- package/views/dist/model/column-types.js +50 -0
- package/views/dist/model/column-warnings.d.ts +44 -0
- package/views/dist/model/column-warnings.js +24 -0
- package/views/dist/model/density.d.ts +3 -0
- package/views/dist/model/density.js +13 -0
- package/views/dist/model/field-type-of.d.ts +21 -0
- package/views/dist/model/field-type-of.js +11 -0
- package/views/dist/model/filter-capabilities.d.ts +1 -0
- package/views/dist/model/filter-capabilities.js +1 -0
- package/views/dist/model/index.d.ts +38 -0
- package/views/dist/model/index.js +20 -0
- package/views/dist/model/one-value.d.ts +6 -0
- package/views/dist/model/one-value.js +5 -0
- package/views/dist/model/part-columns.d.ts +17 -0
- package/views/dist/model/part-columns.js +69 -0
- package/views/dist/model/part-rows.d.ts +21 -0
- package/views/dist/model/part-rows.js +35 -0
- package/views/dist/model/part-write.d.ts +11 -0
- package/views/dist/model/part-write.js +52 -0
- package/views/dist/model/place-parts.d.ts +6 -0
- package/views/dist/model/place-parts.js +14 -0
- package/views/dist/model/preferences.d.ts +131 -0
- package/views/dist/model/preferences.js +67 -0
- package/views/dist/model/prefs-buckets.d.ts +145 -0
- package/views/dist/model/prefs-buckets.js +68 -0
- package/views/dist/model/relation-filters.d.ts +64 -0
- package/views/dist/model/relation-filters.js +93 -0
- package/views/dist/model/render-count.d.ts +8 -0
- package/views/dist/model/render-count.js +35 -0
- package/views/dist/model/row-icon.d.ts +29 -0
- package/views/dist/model/row-icon.js +5 -0
- package/views/dist/model/settings-columns.d.ts +34 -0
- package/views/dist/model/settings-columns.js +146 -0
- package/views/dist/model/settings-look.d.ts +17 -0
- package/views/dist/model/settings-look.js +23 -0
- package/views/dist/model/view-rules.d.ts +92 -0
- package/views/dist/model/view-rules.js +300 -0
- package/views/dist/panels/availability.d.ts +26 -0
- package/views/dist/panels/availability.js +28 -0
- package/views/dist/panels/customize-body.d.ts +45 -0
- package/views/dist/panels/customize-body.js +292 -0
- package/views/dist/panels/filter/DateFilterBody.d.ts +44 -0
- package/views/dist/panels/filter/DateFilterBody.js +84 -0
- package/views/dist/panels/filter/DateFilterCalendar.d.ts +19 -0
- package/views/dist/panels/filter/DateFilterCalendar.js +37 -0
- package/views/dist/panels/filter/DateFilterInput.d.ts +16 -0
- package/views/dist/panels/filter/DateFilterInput.js +36 -0
- package/views/dist/panels/filter/FilterIcon.d.ts +7 -0
- package/views/dist/panels/filter/FilterIcon.js +15 -0
- package/views/dist/panels/filter/MenuSelect.d.ts +12 -0
- package/views/dist/panels/filter/MenuSelect.js +50 -0
- package/views/dist/panels/filter/NumberFilterBody.d.ts +21 -0
- package/views/dist/panels/filter/NumberFilterBody.js +75 -0
- package/views/dist/panels/filter/RangeFilterBody.d.ts +19 -0
- package/views/dist/panels/filter/RangeFilterBody.js +78 -0
- package/views/dist/panels/filter/RelationFilterBody.d.ts +17 -0
- package/views/dist/panels/filter/RelationFilterBody.js +20 -0
- package/views/dist/panels/filter/TextFilterBody.d.ts +31 -0
- package/views/dist/panels/filter/TextFilterBody.js +43 -0
- package/views/dist/panels/filter/TimeScopeDetail.d.ts +6 -0
- package/views/dist/panels/filter/TimeScopeDetail.js +47 -0
- package/views/dist/panels/filter/details.d.ts +21 -0
- package/views/dist/panels/filter/details.js +100 -0
- package/views/dist/panels/filter/filter-list.d.ts +23 -0
- package/views/dist/panels/filter/filter-list.js +38 -0
- package/views/dist/panels/group-sort.d.ts +24 -0
- package/views/dist/panels/group-sort.js +58 -0
- package/views/dist/panels/index.d.ts +31 -0
- package/views/dist/panels/index.js +22 -0
- package/views/dist/panels/labels.d.ts +37 -0
- package/views/dist/panels/labels.js +166 -0
- package/views/dist/panels/model.d.ts +429 -0
- package/views/dist/panels/model.js +95 -0
- package/views/dist/panels/panel-button.d.ts +50 -0
- package/views/dist/panels/panel-button.js +21 -0
- package/views/dist/panels/quick/model.d.ts +102 -0
- package/views/dist/panels/quick/model.js +102 -0
- package/views/dist/panels/react/GroupBucketsList.d.ts +16 -0
- package/views/dist/panels/react/GroupBucketsList.js +44 -0
- package/views/dist/panels/react/LayoutColumnsList.d.ts +24 -0
- package/views/dist/panels/react/LayoutColumnsList.js +101 -0
- package/views/dist/panels/react/PopoverColumnDetail.d.ts +11 -0
- package/views/dist/panels/react/PopoverColumnDetail.js +24 -0
- package/views/dist/panels/react/chrome.d.ts +20 -0
- package/views/dist/panels/react/chrome.js +9 -0
- package/views/dist/panels/react/column-refusals.d.ts +7 -0
- package/views/dist/panels/react/column-refusals.js +14 -0
- package/views/dist/panels/react/customize-body.d.ts +15 -0
- package/views/dist/panels/react/customize-body.js +63 -0
- package/views/dist/panels/react/customize.d.ts +33 -0
- package/views/dist/panels/react/customize.js +113 -0
- package/views/dist/panels/react/drag-kit.d.ts +55 -0
- package/views/dist/panels/react/drag-kit.js +89 -0
- package/views/dist/panels/react/drag-load.d.ts +8 -0
- package/views/dist/panels/react/drag-load.js +24 -0
- package/views/dist/panels/react/drag.d.ts +2 -0
- package/views/dist/panels/react/drag.js +5 -0
- package/views/dist/panels/react/field-editor.d.ts +10 -0
- package/views/dist/panels/react/field-editor.js +1 -0
- package/views/dist/panels/react/filter/FilterEditor.d.ts +24 -0
- package/views/dist/panels/react/filter/FilterEditor.js +344 -0
- package/views/dist/panels/react/filter/FilterFieldList.d.ts +15 -0
- package/views/dist/panels/react/filter/FilterFieldList.js +57 -0
- package/views/dist/panels/react/filter/FilterValueBody.d.ts +5 -0
- package/views/dist/panels/react/filter/FilterValueBody.js +22 -0
- package/views/dist/panels/react/filter/PhoneFilterEditor.d.ts +22 -0
- package/views/dist/panels/react/filter/PhoneFilterEditor.js +186 -0
- package/views/dist/panels/react/filter/editor-ctx.d.ts +98 -0
- package/views/dist/panels/react/filter/editor-ctx.js +131 -0
- package/views/dist/panels/react/filter/filter-body.d.ts +19 -0
- package/views/dist/panels/react/filter/filter-body.js +72 -0
- package/views/dist/panels/react/filter/filter-part-body.d.ts +20 -0
- package/views/dist/panels/react/filter/filter-part-body.js +23 -0
- package/views/dist/panels/react/filter/rule-writes.d.ts +56 -0
- package/views/dist/panels/react/filter/rule-writes.js +152 -0
- package/views/dist/panels/react/filter-panel.d.ts +18 -0
- package/views/dist/panels/react/filter-panel.js +48 -0
- package/views/dist/panels/react/layout-detail.d.ts +4 -0
- package/views/dist/panels/react/layout-detail.js +29 -0
- package/views/dist/panels/react/order-details.d.ts +32 -0
- package/views/dist/panels/react/order-details.js +89 -0
- package/views/dist/panels/react/panel-header.d.ts +10 -0
- package/views/dist/panels/react/panel-header.js +20 -0
- package/views/dist/panels/react/panel-sheet.d.ts +23 -0
- package/views/dist/panels/react/panel-sheet.js +24 -0
- package/views/dist/panels/react/popover.d.ts +71 -0
- package/views/dist/panels/react/popover.js +47 -0
- package/views/dist/panels/react/quick/QuickFiltersPanel.d.ts +12 -0
- package/views/dist/panels/react/quick/QuickFiltersPanel.js +148 -0
- package/views/dist/panels/react/quick/QuickFiltersReminder.d.ts +13 -0
- package/views/dist/panels/react/quick/QuickFiltersReminder.js +46 -0
- package/views/dist/panels/react/root-list.d.ts +6 -0
- package/views/dist/panels/react/root-list.js +31 -0
- package/views/dist/panels/react/sort/SortEditor.d.ts +24 -0
- package/views/dist/panels/react/sort/SortEditor.js +290 -0
- package/views/dist/panels/react/sort/SortFieldList.d.ts +12 -0
- package/views/dist/panels/react/sort/SortFieldList.js +34 -0
- package/views/dist/panels/react/sort/use-sort-drag.d.ts +17 -0
- package/views/dist/panels/react/sort/use-sort-drag.js +39 -0
- package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +62 -0
- package/views/dist/panels/react/toolbar/ReadyToolbar.js +240 -0
- package/views/dist/panels/react/toolbar/Toolbar.d.ts +30 -0
- package/views/dist/panels/react/toolbar/Toolbar.js +113 -0
- package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.d.ts +25 -0
- package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.js +85 -0
- package/views/dist/panels/react/toolbar/ToolbarAsideFilter.d.ts +20 -0
- package/views/dist/panels/react/toolbar/ToolbarAsideFilter.js +78 -0
- package/views/dist/panels/react/toolbar/ToolbarBarFilter.d.ts +21 -0
- package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +126 -0
- package/views/dist/panels/react/toolbar/ToolbarButton.d.ts +5 -0
- package/views/dist/panels/react/toolbar/ToolbarButton.js +9 -0
- package/views/dist/panels/react/toolbar/ToolbarFilter.d.ts +28 -0
- package/views/dist/panels/react/toolbar/ToolbarFilter.js +42 -0
- package/views/dist/panels/react/toolbar/ToolbarFilterSheet.d.ts +12 -0
- package/views/dist/panels/react/toolbar/ToolbarFilterSheet.js +30 -0
- package/views/dist/panels/react/toolbar/ToolbarFilters.d.ts +19 -0
- package/views/dist/panels/react/toolbar/ToolbarFilters.js +281 -0
- package/views/dist/panels/react/toolbar/ToolbarNew.d.ts +12 -0
- package/views/dist/panels/react/toolbar/ToolbarNew.js +31 -0
- package/views/dist/panels/react/toolbar/ToolbarOptions.d.ts +29 -0
- package/views/dist/panels/react/toolbar/ToolbarOptions.js +33 -0
- package/views/dist/panels/react/toolbar/ToolbarQuickFilters.d.ts +14 -0
- package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +16 -0
- package/views/dist/panels/react/toolbar/ToolbarSave.d.ts +8 -0
- package/views/dist/panels/react/toolbar/ToolbarSave.js +42 -0
- package/views/dist/panels/react/toolbar/ToolbarSearch.d.ts +9 -0
- package/views/dist/panels/react/toolbar/ToolbarSearch.js +84 -0
- package/views/dist/panels/react/toolbar/ToolbarSort.d.ts +14 -0
- package/views/dist/panels/react/toolbar/ToolbarSort.js +29 -0
- package/views/dist/panels/react/toolbar/ToolbarSortPill.d.ts +18 -0
- package/views/dist/panels/react/toolbar/ToolbarSortPill.js +81 -0
- package/views/dist/panels/react/toolbar/ToolbarViews.d.ts +13 -0
- package/views/dist/panels/react/toolbar/ToolbarViews.js +29 -0
- package/views/dist/panels/react/toolbar/bar-writes.d.ts +31 -0
- package/views/dist/panels/react/toolbar/bar-writes.js +82 -0
- package/views/dist/panels/react/toolbar/context.d.ts +83 -0
- package/views/dist/panels/react/toolbar/context.js +74 -0
- package/views/dist/panels/react/toolbar/panel-part.d.ts +54 -0
- package/views/dist/panels/react/toolbar/panel-part.js +49 -0
- package/views/dist/panels/react/toolbar/panel-state.d.ts +9 -0
- package/views/dist/panels/react/toolbar/panel-state.js +12 -0
- package/views/dist/panels/react/toolbar/use-box-narrow.d.ts +2 -0
- package/views/dist/panels/react/toolbar/use-box-narrow.js +18 -0
- package/views/dist/panels/react/toolbar/use-give-way.d.ts +4 -0
- package/views/dist/panels/react/toolbar/use-give-way.js +110 -0
- package/views/dist/panels/react/toolbar/use-list-settings-state.d.ts +10 -0
- package/views/dist/panels/react/toolbar/use-list-settings-state.js +10 -0
- package/views/dist/panels/react/view-actions.d.ts +4 -0
- package/views/dist/panels/react/view-actions.js +47 -0
- package/views/dist/panels/react/view-footer.d.ts +20 -0
- package/views/dist/panels/react/view-footer.js +41 -0
- package/views/dist/panels/react/views-row/FoldingViewRow.d.ts +5 -0
- package/views/dist/panels/react/views-row/FoldingViewRow.js +137 -0
- package/views/dist/panels/react/views-row/HScrollRow.d.ts +7 -0
- package/views/dist/panels/react/views-row/HScrollRow.js +42 -0
- package/views/dist/panels/react/views-row/PillGroup.d.ts +30 -0
- package/views/dist/panels/react/views-row/PillGroup.js +85 -0
- package/views/dist/panels/react/views-row/ViewAxes.d.ts +9 -0
- package/views/dist/panels/react/views-row/ViewAxes.js +16 -0
- package/views/dist/panels/react/views-row/ViewCreatePill.d.ts +7 -0
- package/views/dist/panels/react/views-row/ViewCreatePill.js +28 -0
- package/views/dist/panels/react/views-row/ViewPicker.d.ts +5 -0
- package/views/dist/panels/react/views-row/ViewPicker.js +112 -0
- package/views/dist/panels/react/views-row/ViewPickerRow.d.ts +7 -0
- package/views/dist/panels/react/views-row/ViewPickerRow.js +47 -0
- package/views/dist/panels/react/views-row/ViewTabs.d.ts +31 -0
- package/views/dist/panels/react/views-row/ViewTabs.js +29 -0
- package/views/dist/panels/react/views-row/in-frame.d.ts +8 -0
- package/views/dist/panels/react/views-row/in-frame.js +9 -0
- package/views/dist/panels/react/views-row/menu-classes.d.ts +6 -0
- package/views/dist/panels/react/views-row/menu-classes.js +3 -0
- package/views/dist/panels/react/views-row/use-anchored-toggle.d.ts +19 -0
- package/views/dist/panels/react/views-row/use-anchored-toggle.js +31 -0
- package/views/dist/panels/react.d.ts +67 -0
- package/views/dist/panels/react.js +58 -0
- package/views/dist/panels/settings/axes.d.ts +28 -0
- package/views/dist/panels/settings/axes.js +71 -0
- package/views/dist/panels/settings/filter-groups.d.ts +58 -0
- package/views/dist/panels/settings/filter-groups.js +305 -0
- package/views/dist/panels/settings/filters.d.ts +20 -0
- package/views/dist/panels/settings/filters.js +128 -0
- package/views/dist/panels/settings/group-buckets.d.ts +24 -0
- package/views/dist/panels/settings/group-buckets.js +69 -0
- package/views/dist/panels/settings/input.d.ts +84 -0
- package/views/dist/panels/settings/input.js +1 -0
- package/views/dist/panels/settings/layout.d.ts +5 -0
- package/views/dist/panels/settings/layout.js +259 -0
- package/views/dist/panels/settings/order.d.ts +21 -0
- package/views/dist/panels/settings/order.js +227 -0
- package/views/dist/panels/settings/settings-panels.d.ts +21 -0
- package/views/dist/panels/settings/settings-panels.js +33 -0
- package/views/dist/panels/settings/sort-keys.d.ts +25 -0
- package/views/dist/panels/settings/sort-keys.js +74 -0
- package/views/dist/panels/settings/sorts.d.ts +33 -0
- package/views/dist/panels/settings/sorts.js +135 -0
- package/views/dist/panels/sort-body-options.d.ts +4 -0
- package/views/dist/panels/sort-body-options.js +10 -0
- package/views/dist/panels/toolbar/clear.d.ts +9 -0
- package/views/dist/panels/toolbar/clear.js +33 -0
- package/views/dist/panels/toolbar/counts.d.ts +21 -0
- package/views/dist/panels/toolbar/counts.js +29 -0
- package/views/dist/panels/toolbar/edit-view.d.ts +5 -0
- package/views/dist/panels/toolbar/edit-view.js +18 -0
- package/views/dist/panels/toolbar/filter-words.d.ts +42 -0
- package/views/dist/panels/toolbar/filter-words.js +145 -0
- package/views/dist/panels/toolbar/model.d.ts +74 -0
- package/views/dist/panels/toolbar/model.js +110 -0
- package/views/dist/panels/use-filter-opened.d.ts +8 -0
- package/views/dist/panels/use-filter-opened.js +11 -0
- package/views/dist/panels/view-state.d.ts +38 -0
- package/views/dist/panels/view-state.js +1 -0
- package/views/dist/panels/views-row/model.d.ts +141 -0
- package/views/dist/panels/views-row/model.js +24 -0
- package/views/dist/provider/ViewsProvider.d.ts +103 -0
- package/views/dist/provider/ViewsProvider.js +75 -0
- package/views/dist/provider/components.d.ts +1375 -0
- package/views/dist/provider/components.js +5 -0
- package/views/dist/provider/context.d.ts +58 -0
- package/views/dist/provider/context.js +10 -0
- package/views/dist/provider/desktop.d.ts +12 -0
- package/views/dist/provider/desktop.js +25 -0
- package/views/dist/provider/icons.d.ts +6 -0
- package/views/dist/provider/icons.js +1 -0
- package/views/dist/provider/menu-groups.d.ts +9 -0
- package/views/dist/provider/menu-groups.js +44 -0
- package/views/dist/provider/missing-slot.d.ts +10 -0
- package/views/dist/provider/missing-slot.js +15 -0
- package/views/dist/provider/plain-input.d.ts +9 -0
- package/views/dist/provider/plain-input.js +7 -0
- package/views/dist/provider/ports.d.ts +57 -0
- package/views/dist/provider/ports.js +9 -0
- package/views/dist/react.d.ts +14 -0
- package/views/dist/react.js +5 -0
- package/views/dist/selection/SelectCheckbox.d.ts +19 -0
- package/views/dist/selection/SelectCheckbox.js +11 -0
- package/views/dist/selection/SelectionBar.d.ts +18 -0
- package/views/dist/selection/SelectionBar.js +100 -0
- package/views/dist/selection/SelectionBarPhone.d.ts +3 -0
- package/views/dist/selection/SelectionBarPhone.js +14 -0
- package/views/dist/selection/bar-overflow.d.ts +12 -0
- package/views/dist/selection/bar-overflow.js +55 -0
- package/views/dist/selection/bar-parts.d.ts +17 -0
- package/views/dist/selection/bar-parts.js +19 -0
- package/views/dist/selection/bar-room.d.ts +7 -0
- package/views/dist/selection/bar-room.js +3 -0
- package/views/dist/selection/index.d.ts +9 -0
- package/views/dist/selection/index.js +7 -0
- package/views/dist/selection/model.d.ts +55 -0
- package/views/dist/selection/model.js +86 -0
- package/views/dist/selection/row-click.d.ts +35 -0
- package/views/dist/selection/row-click.js +20 -0
- package/views/dist/selection/types.d.ts +21 -0
- package/views/dist/selection/types.js +1 -0
- package/views/dist/selection/useCheckDragSelect.d.ts +61 -0
- package/views/dist/selection/useCheckDragSelect.js +166 -0
- package/views/dist/selection/useListSelection.d.ts +39 -0
- package/views/dist/selection/useListSelection.js +48 -0
- package/views/dist/selection/useListSelectionShortcuts.d.ts +7 -0
- package/views/dist/selection/useListSelectionShortcuts.js +14 -0
- package/views/dist/selection/useRestIntent.d.ts +18 -0
- package/views/dist/selection/useRestIntent.js +35 -0
- package/views/dist/selection/verbs.d.ts +41 -0
- package/views/dist/selection/verbs.js +1 -0
- package/views/dist/styles.css +3165 -0
- package/views/dist/styles.unlayered.css +3164 -0
- package/views/docs/contract.md +1187 -0
- package/views/docs/getting-started.md +250 -0
- package/views/docs/guides/atoms.md +305 -0
- package/views/docs/guides/cells.md +302 -0
- package/views/docs/guides/columns.md +413 -0
- package/views/docs/guides/display.md +205 -0
- package/views/docs/guides/editors.md +496 -0
- package/views/docs/guides/ports.md +246 -0
- package/views/docs/guides/selection.md +284 -0
- package/views/docs/guides/the-grid.md +736 -0
- package/views/docs/guides/the-provider.md +478 -0
- package/views/docs/index.md +54 -0
- package/views/docs/install.md +101 -0
- package/views/docs/reference/cells.md +28 -0
- package/views/docs/reference/display.md +46 -0
- package/views/docs/reference/editors-chips.md +6 -0
- package/views/docs/reference/editors-date.md +8 -0
- package/views/docs/reference/editors-location.md +12 -0
- package/views/docs/reference/editors-name.md +8 -0
- package/views/docs/reference/editors-number.md +13 -0
- package/views/docs/reference/editors-open-values.md +10 -0
- package/views/docs/reference/editors-panel.md +12 -0
- package/views/docs/reference/editors-range.md +8 -0
- package/views/docs/reference/editors-relation.md +12 -0
- package/views/docs/reference/editors-select.md +9 -0
- package/views/docs/reference/editors-session.md +13 -0
- package/views/docs/reference/editors-text.md +9 -0
- package/views/docs/reference/editors-value-list.md +6 -0
- package/views/docs/reference/editors.md +5 -0
- package/views/docs/reference/field-row.md +16 -0
- package/views/docs/reference/grid.md +64 -0
- package/views/docs/reference/panels-react.md +172 -0
- package/views/docs/reference/panels.md +220 -0
- package/views/docs/reference/react.md +164 -0
- package/views/docs/reference/selection.md +41 -0
- package/views/docs/reference/views.md +638 -0
- package/views/docs/reshaping.md +19 -0
- package/views/skills/views/SKILL.md +103 -0
|
@@ -0,0 +1,1375 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef, ComponentType, CSSProperties, KeyboardEvent as ReactKeyboardEvent, MouseEvent as ReactMouseEvent, ReactElement, ReactNode, Ref, RefObject } from "react";
|
|
2
|
+
import type { FieldType } from "viewkitjs/fields";
|
|
3
|
+
import type { CategoryColor } from "viewkitjs/fields/design/category-colors";
|
|
4
|
+
import type { StatusSlot } from "viewkitjs/fields/design/status-slots";
|
|
5
|
+
import type { BucketOrderMode, FILTER_OPERATORS, FilterGroup, FilterRelationRule, FilterRule, SetAsideReason, SortDirection } from "viewkitjs/fields/query";
|
|
6
|
+
/** Where a floating part attaches: an element, a ref to one, or a point (a context menu). */
|
|
7
|
+
export type ViewsAnchor = HTMLElement | RefObject<HTMLElement | null> | {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
} | null;
|
|
11
|
+
export type ViewsSide = "top" | "right" | "bottom" | "left";
|
|
12
|
+
export type ViewsAlign = "start" | "center" | "end";
|
|
13
|
+
/** Why a floating part closed, by Base UI's names; an adapter maps its own reasons onto these,
|
|
14
|
+
* and any other reason is `none`. */
|
|
15
|
+
export type ViewsCloseReason = "trigger-press" | "outside-press" | "escape-key" | "focus-out" | "item-press" | "close-press" | "swipe" | "none";
|
|
16
|
+
export type ViewsOpenChange = (open: boolean, details?: {
|
|
17
|
+
reason?: ViewsCloseReason;
|
|
18
|
+
}) => void;
|
|
19
|
+
export type ViewsButtonProps = {
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/** `secondary` is handed only to the views picker's chip when the provider's `panelButtons` is `button`: a filled
|
|
24
|
+
* chip with no border. */
|
|
25
|
+
variant?: "default" | "secondary" | "ghost" | "outline" | "destructive";
|
|
26
|
+
size?: "default" | "sm" | "icon";
|
|
27
|
+
type?: "button" | "submit";
|
|
28
|
+
className?: string;
|
|
29
|
+
"aria-label"?: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
/** The element, for a menu that anchors on the button: forward it to your `<button>`. */
|
|
32
|
+
ref?: Ref<HTMLButtonElement>;
|
|
33
|
+
/** -1 for a button the grid reaches by its arrows, never a Tab stop. */
|
|
34
|
+
tabIndex?: number;
|
|
35
|
+
"aria-haspopup"?: "menu" | "dialog";
|
|
36
|
+
"aria-expanded"?: boolean;
|
|
37
|
+
/** The part's name, `vk-grid-row-more` on a row's ⋯. */
|
|
38
|
+
"data-slot"?: string;
|
|
39
|
+
/** A state flag: `""` (present, no value) while the menu this button opens is open; absent when closed. */
|
|
40
|
+
"data-open"?: "";
|
|
41
|
+
/** True while a field row's write is pending: the button keeps its focus and takes no press. Forward it to your
|
|
42
|
+
* element. */
|
|
43
|
+
"aria-disabled"?: boolean;
|
|
44
|
+
/** The ids of what describes it: why it can't be used, on a button with a reason. Forward it to your element. */
|
|
45
|
+
"aria-describedby"?: string;
|
|
46
|
+
/** A toggle's state: the Columns list's new-line mark, and the quick filters' open field, when the provider's
|
|
47
|
+
* `panelButtons` is `button`. */
|
|
48
|
+
"aria-pressed"?: boolean;
|
|
49
|
+
/** `option` on a view's row in the picker when `panelButtons` is `button`. */
|
|
50
|
+
role?: "option";
|
|
51
|
+
/** Whether that row is the current view, with `role` `option`. */
|
|
52
|
+
"aria-selected"?: boolean;
|
|
53
|
+
/** `open` while the list a views-row chip or a view's ⋯ opens is open, `closed` otherwise, when `panelButtons` is
|
|
54
|
+
* `button`. */
|
|
55
|
+
"data-state"?: "open" | "closed";
|
|
56
|
+
/** An actions row a host insets through `[data-vs-row]`: the Options panel's Export when `panelButtons` is
|
|
57
|
+
* `button`. Forward it to your element. */
|
|
58
|
+
"data-vs-row"?: boolean;
|
|
59
|
+
};
|
|
60
|
+
export type ViewsPopoverProps = {
|
|
61
|
+
open: boolean;
|
|
62
|
+
onOpenChange: ViewsOpenChange;
|
|
63
|
+
anchor: ViewsAnchor;
|
|
64
|
+
side?: ViewsSide;
|
|
65
|
+
align?: ViewsAlign;
|
|
66
|
+
sideOffset?: number;
|
|
67
|
+
alignOffset?: number;
|
|
68
|
+
/** False keeps focus where it was when the popup opens (an editor that owns
|
|
69
|
+
* its own input); that editor focuses its input with `preventScroll`, so the
|
|
70
|
+
* page stays where it is however the popup places itself. Default true. */
|
|
71
|
+
initialFocus?: boolean;
|
|
72
|
+
/** Called on a press outside the popup before it closes; return false to keep it open.
|
|
73
|
+
* `event` is the pointer press, with its `target` where the press landed, also when the
|
|
74
|
+
* focus that press moves is what would close the popup: a vetoed press holds against its
|
|
75
|
+
* focus too. Focus leaving by keyboard (a Tab out) closes without asking. */
|
|
76
|
+
onOutsidePress?: (event: Event) => void | false;
|
|
77
|
+
/** Called on Escape before the popup closes; return false to keep it open. */
|
|
78
|
+
onEscape?: (event: KeyboardEvent) => void | false;
|
|
79
|
+
/** The popup's look. `panel` is the app's card popover; `menu` is its menu
|
|
80
|
+
* panel's surface, for a popover that holds a list: no inset (the list
|
|
81
|
+
* carries its own) and no card width (it is as wide as its list). Default
|
|
82
|
+
* `panel`. */
|
|
83
|
+
chrome?: "panel" | "menu";
|
|
84
|
+
/** A click inside the popup. A popup is a portal, so its clicks still bubble
|
|
85
|
+
* through the React tree to the anchor's row; the rendering stops them here. */
|
|
86
|
+
onPanelClick?: (event: ReactMouseEvent<HTMLDivElement>) => void;
|
|
87
|
+
/** `data-*` attributes set on the popup element, for the rendering's own selectors. */
|
|
88
|
+
panelData?: Readonly<Record<`data-${string}`, string>>;
|
|
89
|
+
/** The popup's own style, where a class cannot say it: a width that follows the cell it opens on. */
|
|
90
|
+
style?: CSSProperties;
|
|
91
|
+
className?: string;
|
|
92
|
+
children: ReactNode;
|
|
93
|
+
};
|
|
94
|
+
/** The app mounts one tooltip provider above the views; a tooltip never mounts its own. Its child may be a plain
|
|
95
|
+
* wrapper around the control it explains (a disabled control is deaf to the pointer): it opens on a keyboard focus
|
|
96
|
+
* that lands inside the child, judged by the focused element. */
|
|
97
|
+
export type ViewsTooltipProps = {
|
|
98
|
+
content: ReactNode;
|
|
99
|
+
children: ReactElement;
|
|
100
|
+
side?: ViewsSide;
|
|
101
|
+
align?: ViewsAlign;
|
|
102
|
+
delayMs?: number;
|
|
103
|
+
className?: string;
|
|
104
|
+
};
|
|
105
|
+
export type ViewsCheckboxProps = {
|
|
106
|
+
checked: boolean;
|
|
107
|
+
/** Partly ticked: some, not all. The box draws its partial mark instead of the tick while this
|
|
108
|
+
* is true; a press on it while `checked` is false hands `true`. Default false. */
|
|
109
|
+
indeterminate?: boolean;
|
|
110
|
+
/** `details.event` is the press that changed it, as Base UI reports it — a list reads its
|
|
111
|
+
* `shiftKey` for a range. An adapter that cannot tell hands nothing. */
|
|
112
|
+
onCheckedChange: (checked: boolean, details?: {
|
|
113
|
+
event: Event;
|
|
114
|
+
}) => void;
|
|
115
|
+
/** The partial (indeterminate) mark's colour: `muted` (default), or `brand` for a select-all
|
|
116
|
+
* whose partial state is a live selection. */
|
|
117
|
+
partialTone?: "muted" | "brand";
|
|
118
|
+
disabled?: boolean;
|
|
119
|
+
/** Shown as it is and not pressable, unlike `disabled`, which greys it: a yes/no cell the grid can't write while
|
|
120
|
+
* the provider's `gridCheckboxes` is `checkbox`, or a field row's yes/no it can't write while `fieldRowCheckboxes` is
|
|
121
|
+
* `checkbox`. Forward it to your control; absent means false. */
|
|
122
|
+
readOnly?: boolean;
|
|
123
|
+
className?: string;
|
|
124
|
+
tabIndex?: number;
|
|
125
|
+
"aria-label"?: string;
|
|
126
|
+
};
|
|
127
|
+
/** A menu is data: the app draws it with its own primitive. */
|
|
128
|
+
export type ViewsMenuItem = {
|
|
129
|
+
key: string;
|
|
130
|
+
/** The row's words: always text, so a menu that writes its rows' names takes it as it is. */
|
|
131
|
+
label: string;
|
|
132
|
+
icon?: ReactNode;
|
|
133
|
+
onSelect?: () => void;
|
|
134
|
+
disabled?: boolean;
|
|
135
|
+
/** Why a disabled row can't be used, in words: the app shows it (a tooltip, a second line). A row
|
|
136
|
+
* under a disabled group that gives none carries the group's. */
|
|
137
|
+
disabledReason?: string;
|
|
138
|
+
destructive?: boolean;
|
|
139
|
+
/** A checkable row: the app draws its tick. A checkable row closes the menu like any row, unless it
|
|
140
|
+
* asks to `keepOpen`. */
|
|
141
|
+
checked?: boolean;
|
|
142
|
+
/** A group: its rows drawn in place under this row's label, unless it asks to open `beside`. A group
|
|
143
|
+
* row is a label, not a target: its own `onSelect`, `href` and `checked` are ignored. A disabled group
|
|
144
|
+
* disables every row under it: the provider hands the app's `Menu` those rows already `disabled`. */
|
|
145
|
+
children?: ViewsMenuItem[];
|
|
146
|
+
/** A group (`children`) that opens its rows beside the menu, one level in, rather than in place: its row
|
|
147
|
+
* shows its label and `detail` and opens on a hover, a press or →. A hint: an adapter with no flyouts
|
|
148
|
+
* draws the group in place under its label, as every group is drawn. Ignored on a row with no `children`. */
|
|
149
|
+
beside?: boolean;
|
|
150
|
+
/** A checkable row (`checked` set) that leaves the menu open when picked, so several can be ticked in
|
|
151
|
+
* turn. A hint: an adapter that ignores it closes the menu, as any row does. Ignored on a row that isn't
|
|
152
|
+
* checkable. */
|
|
153
|
+
keepOpen?: boolean;
|
|
154
|
+
/** The row's current value in words, drawn at its end ("2", "Short"): on a group that opens beside, the
|
|
155
|
+
* choice made in it. Optional for an adapter to draw: one that ignores it draws the label alone, and a
|
|
156
|
+
* group's choice still shows by its ticked row. */
|
|
157
|
+
detail?: string;
|
|
158
|
+
separatorBefore?: boolean;
|
|
159
|
+
/** A keyboard hint drawn at the row's end, never bound by the menu. */
|
|
160
|
+
shortcut?: string;
|
|
161
|
+
/** A link item: the row is an anchor and `onSelect` still fires. */
|
|
162
|
+
href?: string;
|
|
163
|
+
};
|
|
164
|
+
/** Opens at `anchor`, with no trigger child; a group opens beside it only where it asks to and the
|
|
165
|
+
* adapter can. On Base UI, the menu's root, positioner and popup, the anchor handed to the positioner. */
|
|
166
|
+
export type ViewsMenuProps = {
|
|
167
|
+
open: boolean;
|
|
168
|
+
onOpenChange: ViewsOpenChange;
|
|
169
|
+
anchor: ViewsAnchor;
|
|
170
|
+
items: ViewsMenuItem[];
|
|
171
|
+
side?: ViewsSide;
|
|
172
|
+
align?: ViewsAlign;
|
|
173
|
+
/** The menu's name, which a screen reader announces as it opens: the menu's `aria-label`. Every
|
|
174
|
+
* menu the package opens hands one. */
|
|
175
|
+
label?: string;
|
|
176
|
+
className?: string;
|
|
177
|
+
};
|
|
178
|
+
/** The command list's parts, the shape both cmdk-based shadcn copies already have. */
|
|
179
|
+
export type ViewsCommandParts = {
|
|
180
|
+
Root: ComponentType<{
|
|
181
|
+
children: ReactNode;
|
|
182
|
+
className?: string;
|
|
183
|
+
label?: string;
|
|
184
|
+
/** False hands filtering to the host (a remote search already filtered). Default true. */
|
|
185
|
+
shouldFilter?: boolean;
|
|
186
|
+
/** Scores an item against the search: 0 hides it, higher ranks it first. */
|
|
187
|
+
filter?: (value: string, search: string) => number;
|
|
188
|
+
/** The arrows wrap from the last item to the first and back. Default false. */
|
|
189
|
+
loop?: boolean;
|
|
190
|
+
/** The item highlighted as the list opens, by its value. Without it, the first item; while no item has it (a
|
|
191
|
+
* remote page that doesn't hold it), none, until a key or typed text moves the highlight: never the first, which
|
|
192
|
+
* in a relation picker is None. A list that ignores it opens on its first item. */
|
|
193
|
+
defaultValue?: string;
|
|
194
|
+
}>;
|
|
195
|
+
Input: ComponentType<{
|
|
196
|
+
value: string;
|
|
197
|
+
onValueChange: (value: string) => void;
|
|
198
|
+
placeholder?: string;
|
|
199
|
+
autoFocus?: boolean;
|
|
200
|
+
className?: string;
|
|
201
|
+
ref?: Ref<HTMLInputElement>;
|
|
202
|
+
onKeyDown?: (event: ReactKeyboardEvent<HTMLInputElement>) => void;
|
|
203
|
+
/** `search` draws the app's search row (its glyph and divider); `bare` draws
|
|
204
|
+
* the input alone, for a field that frames it itself. Default `search`. */
|
|
205
|
+
chrome?: "search" | "bare";
|
|
206
|
+
}>;
|
|
207
|
+
List: ComponentType<{
|
|
208
|
+
children: ReactNode;
|
|
209
|
+
className?: string;
|
|
210
|
+
}>;
|
|
211
|
+
Empty: ComponentType<{
|
|
212
|
+
children: ReactNode;
|
|
213
|
+
className?: string;
|
|
214
|
+
}>;
|
|
215
|
+
Group: ComponentType<{
|
|
216
|
+
children: ReactNode;
|
|
217
|
+
heading?: ReactNode;
|
|
218
|
+
className?: string;
|
|
219
|
+
}>;
|
|
220
|
+
Item: ComponentType<{
|
|
221
|
+
value: string;
|
|
222
|
+
onSelect: (value: string) => void;
|
|
223
|
+
disabled?: boolean;
|
|
224
|
+
/** The value this item stands for is the current one. The app colours the item as its
|
|
225
|
+
* chosen row; the check is the package's, drawn by the row inside, so the item draws no
|
|
226
|
+
* tick of its own. */
|
|
227
|
+
chosen?: boolean;
|
|
228
|
+
children: ReactNode;
|
|
229
|
+
className?: string;
|
|
230
|
+
}>;
|
|
231
|
+
};
|
|
232
|
+
/** One row of an app's picker body, as data: the value it stands for, its words, and how they are dressed. */
|
|
233
|
+
export type ViewsPickerItem = {
|
|
234
|
+
value: string;
|
|
235
|
+
label: string;
|
|
236
|
+
/** A status's step: draw your status badge in this slot. */
|
|
237
|
+
slot?: StatusSlot;
|
|
238
|
+
/** A category's colour: draw your option chip or tag in it. */
|
|
239
|
+
color?: CategoryColor;
|
|
240
|
+
/** Your own glyph's name, as `AppIcon` draws it, before the words. */
|
|
241
|
+
icon?: string;
|
|
242
|
+
/** A quieter second line. */
|
|
243
|
+
line?: string;
|
|
244
|
+
/** The heading it stands under. */
|
|
245
|
+
group?: string;
|
|
246
|
+
disabled?: boolean;
|
|
247
|
+
/** A word at the row's end telling kinds apart in a list of several ("Person"). */
|
|
248
|
+
badge?: string;
|
|
249
|
+
/** The record's own glyph, drawn before its words, unsized; wins over `icon`. */
|
|
250
|
+
glyph?: ReactNode;
|
|
251
|
+
/** The record's picture, for an avatar. */
|
|
252
|
+
avatarUrl?: string | null;
|
|
253
|
+
/** The record's kind, as the app names it (for the avatar's shape): not the `badge` word. */
|
|
254
|
+
kind?: string;
|
|
255
|
+
};
|
|
256
|
+
/** A row that does something rather than pick (create a record with what was typed): picking it closes the
|
|
257
|
+
* editor, then runs it. */
|
|
258
|
+
export type ViewsPickerAction = {
|
|
259
|
+
key: string;
|
|
260
|
+
label: string;
|
|
261
|
+
icon?: ReactNode;
|
|
262
|
+
onSelect: () => void;
|
|
263
|
+
};
|
|
264
|
+
/** A whole pick list your app draws: its search, its rows, its empty row and its create row. The editor
|
|
265
|
+
* around it keeps the draft, Tab, Escape, the save and the phone's ✕ and ✓. */
|
|
266
|
+
export type ViewsPickerProps = {
|
|
267
|
+
/** The field's name: the list's accessible name. */
|
|
268
|
+
label: string;
|
|
269
|
+
items: ViewsPickerItem[];
|
|
270
|
+
/** Several values may be held. Default false. */
|
|
271
|
+
multiple?: boolean;
|
|
272
|
+
/** What is held: one value, or null when none; several, a list. */
|
|
273
|
+
value: string | string[] | null;
|
|
274
|
+
/** One: the pick, null for the empty row. Several: the whole new list, on every change. Nothing is
|
|
275
|
+
* saved until the editor closes. */
|
|
276
|
+
onValueChange: (value: string | string[] | null) => void;
|
|
277
|
+
/** A pick of one is made: the editor closes and saves it. */
|
|
278
|
+
onDone: () => void;
|
|
279
|
+
/** The empty row's words; absent, a value of one can't be emptied. */
|
|
280
|
+
empty?: string;
|
|
281
|
+
/** The search's words before anything is typed. */
|
|
282
|
+
search?: string;
|
|
283
|
+
/** Takes new values: handed what was typed, it returns the value made, which you then pick (one) or
|
|
284
|
+
* add (several). Absent, nothing typed is added. */
|
|
285
|
+
onCreate?: (typed: string) => string;
|
|
286
|
+
/** What was typed on what opened it: the list opens filtered by it, the search holding it. */
|
|
287
|
+
typed?: string;
|
|
288
|
+
/** Put the focus inside as it opens, without scrolling the page. */
|
|
289
|
+
autoFocus?: boolean;
|
|
290
|
+
/** `phone`: draw no ✕, ✓ or Cancel of your own (the editor's panel holds them), and hand every change
|
|
291
|
+
* through `onValueChange` as it is made. */
|
|
292
|
+
form: "computer" | "phone";
|
|
293
|
+
/** The editor filters or fetches: hand it every typed query, and draw `items` as they come, in order, never
|
|
294
|
+
* filtered again. */
|
|
295
|
+
onSearch?: (query: string) => void;
|
|
296
|
+
/** What the list is doing besides showing its rows: a first page in flight, or the last ask failed. */
|
|
297
|
+
doing?: "searching" | "failed";
|
|
298
|
+
/** Ask again after `doing: "failed"`. */
|
|
299
|
+
onRetry?: () => void;
|
|
300
|
+
/** More rows are to come: call it each time the list's end comes into view. */
|
|
301
|
+
onMore?: () => void;
|
|
302
|
+
/** Rows that do something rather than pick, drawn after the rows. */
|
|
303
|
+
actions?: ViewsPickerAction[];
|
|
304
|
+
/** Several held, one of them leading: which, a way to make another lead, and the words for both. A body
|
|
305
|
+
* that draws none of it leaves the first held value leading. */
|
|
306
|
+
lead?: {
|
|
307
|
+
value: string | null;
|
|
308
|
+
onLead: (value: string) => void;
|
|
309
|
+
label: string;
|
|
310
|
+
makeLabel: string;
|
|
311
|
+
};
|
|
312
|
+
/** Adds what was typed to the field's list through your app. Draw an add row after the matches and call it with
|
|
313
|
+
* the typed text; the editor asks the app, waits, and picks (one) or adds (several) the option it returns, which
|
|
314
|
+
* then arrives in `items`. Handed instead of `onCreate`: the typed text is never saved as itself. A body that draws
|
|
315
|
+
* none of it offers no add. */
|
|
316
|
+
onAdd?: (typed: string) => void;
|
|
317
|
+
/** The add in flight: the typed text being added. Draw its row as waiting, not pressable. */
|
|
318
|
+
adding?: string;
|
|
319
|
+
/** The app refused the last add, or it failed: the words to show where the add row was. */
|
|
320
|
+
addRefused?: string;
|
|
321
|
+
};
|
|
322
|
+
/** A role a link may hold, as a links body offers it: its stored value and its words. An archived one is handed only so a
|
|
323
|
+
* link that holds it shows its words and can let it go: offer it on that link alone. */
|
|
324
|
+
export type ViewsLinkRole = {
|
|
325
|
+
value: string;
|
|
326
|
+
label: string;
|
|
327
|
+
archived?: boolean;
|
|
328
|
+
};
|
|
329
|
+
/** One link as a links body draws it: its record's value (one of the body's `items`), and the roles it holds, in order. */
|
|
330
|
+
export type ViewsLink = {
|
|
331
|
+
value: string;
|
|
332
|
+
roles: readonly string[];
|
|
333
|
+
};
|
|
334
|
+
/** A whole links body your app draws, for a relation holding several records whose links carry roles or a lead: its
|
|
335
|
+
* search, its rows, each link's roles and its lead. The editor around it keeps the set, Escape, Tab, the save and the
|
|
336
|
+
* phone's ✕ and ✓. */
|
|
337
|
+
export type ViewsLinksBodyProps = {
|
|
338
|
+
/** The field's name: the body's accessible name. */
|
|
339
|
+
label: string;
|
|
340
|
+
/** The records: the linked ones first, in the links' order, then the ones to add. The editor filters or fetches:
|
|
341
|
+
* hand it every typed query (`onSearch`) and draw them as they come, in order, never filtered again. */
|
|
342
|
+
items: ViewsPickerItem[];
|
|
343
|
+
/** The links, in the order they stand. */
|
|
344
|
+
links: ViewsLink[];
|
|
345
|
+
/** The whole new list, on every change: a record linked (last, holding no role) or unlinked, a link's roles set.
|
|
346
|
+
* Nothing is saved until the editor closes. */
|
|
347
|
+
onLinksChange: (links: ViewsLink[]) => void;
|
|
348
|
+
/** The field's roles, in its order; an archived one is offered only on a link that holds it. `[]` when it declares
|
|
349
|
+
* none. */
|
|
350
|
+
roles: ViewsLinkRole[];
|
|
351
|
+
/** One link leads: which, a way to make another lead, and the words for it. Absent when the field leads by none. */
|
|
352
|
+
lead?: {
|
|
353
|
+
value: string | null;
|
|
354
|
+
onLead: (value: string) => void;
|
|
355
|
+
label: string;
|
|
356
|
+
makeLabel: string;
|
|
357
|
+
};
|
|
358
|
+
/** The job is done: the editor closes and saves the set. */
|
|
359
|
+
onDone: () => void;
|
|
360
|
+
/** The search's words before anything is typed. */
|
|
361
|
+
search?: string;
|
|
362
|
+
/** The editor filters or fetches: hand it every typed query. */
|
|
363
|
+
onSearch?: (query: string) => void;
|
|
364
|
+
/** What the list is doing besides showing its rows: a first page in flight, or the last ask failed. */
|
|
365
|
+
doing?: "searching" | "failed";
|
|
366
|
+
/** Ask again after `doing: "failed"`. */
|
|
367
|
+
onRetry?: () => void;
|
|
368
|
+
/** More rows are to come: call it each time the list's end comes into view. */
|
|
369
|
+
onMore?: () => void;
|
|
370
|
+
/** Rows that do something rather than link (create a record with what was typed), drawn after the rows. */
|
|
371
|
+
actions?: ViewsPickerAction[];
|
|
372
|
+
/** What was typed on what opened it: the search holds it. */
|
|
373
|
+
typed?: string;
|
|
374
|
+
/** Put the focus inside as it opens, without scrolling the page. */
|
|
375
|
+
autoFocus?: boolean;
|
|
376
|
+
/** `phone`: draw no ✕, ✓ or Cancel of your own (the editor's panel holds them). */
|
|
377
|
+
form: "computer" | "phone";
|
|
378
|
+
/** In the phone's sheet: the step of your own you stand on (a link's roles), or `null` once you are back. */
|
|
379
|
+
onStepChange?: (step: ViewsBodyStep | null) => void;
|
|
380
|
+
};
|
|
381
|
+
/** A calendar over ISO days (`YYYY-MM-DD`) and months (`YYYY-MM`); the app's date library stays its own. */
|
|
382
|
+
export type ViewsCalendarProps = {
|
|
383
|
+
value: string | null;
|
|
384
|
+
onChange: (day: string | null) => void;
|
|
385
|
+
min?: string;
|
|
386
|
+
max?: string;
|
|
387
|
+
/** The month shown. Controlled with `onMonthChange`; without it the calendar keeps its own. */
|
|
388
|
+
month?: string;
|
|
389
|
+
onMonthChange?: (month: string) => void;
|
|
390
|
+
/** `dropdown` draws month and year pickers in the caption. Default `label`. */
|
|
391
|
+
captionLayout?: "label" | "dropdown";
|
|
392
|
+
/** The first and last months the caption's pickers offer. */
|
|
393
|
+
startMonth?: string;
|
|
394
|
+
endMonth?: string;
|
|
395
|
+
/** The conventions' locale (BCP 47). The calendar draws its month and weekday names and starts
|
|
396
|
+
* its week as this locale does; an adapter may ignore it and keep its calendar's own. */
|
|
397
|
+
locale: string;
|
|
398
|
+
className?: string;
|
|
399
|
+
};
|
|
400
|
+
/** A quick pick a date body offers: a day the editor names, or `none`, which empties the field. `next-monday` is the
|
|
401
|
+
* Monday after today (a week on when today is one); `in-a-week` is a week from today (today + 7 on the
|
|
402
|
+
* conventions' calendar). */
|
|
403
|
+
export type ViewsDatePick = "today" | "tomorrow" | "next-monday" | "in-a-week" | "none";
|
|
404
|
+
/** The quick days an app's date editors offer, in order (the provider's `datePicks`): any of `today`, `tomorrow`,
|
|
405
|
+
* `next-monday` and `in-a-week`. ViewKit works out each day; `none` follows where a field may be emptied. */
|
|
406
|
+
export type ViewsDatePicks = readonly Exclude<ViewsDatePick, "none">[];
|
|
407
|
+
/** A whole date body your app draws: its typed line, its days, its quick picks and its time. The editor
|
|
408
|
+
* around it keeps the draft, Tab, Escape, the save and the phone's ✕ and ✓. */
|
|
409
|
+
export type ViewsDateBodyProps = {
|
|
410
|
+
/** The field's name: the days' accessible name. */
|
|
411
|
+
label: string;
|
|
412
|
+
/** What is held, on the conventions' calendar and clock (a date-only field's stored instant on the browser's
|
|
413
|
+
* calendar, as its cell shows it): a day ("2026-11-12"), a day and time ("2026-11-12T14:30"), or null. */
|
|
414
|
+
value: string | null;
|
|
415
|
+
/** Every change as it is made, in `value`'s shape: a day picked, a day typed once it reads as one, a time
|
|
416
|
+
* set, or null for the empty pick. Nothing is saved until the editor closes. */
|
|
417
|
+
onValueChange: (value: string | null) => void;
|
|
418
|
+
/** A pick that finishes the edit is made (a day on a field with no time, the empty pick): the editor
|
|
419
|
+
* closes and saves it. */
|
|
420
|
+
onDone: () => void;
|
|
421
|
+
/** It holds a time too. */
|
|
422
|
+
time: boolean;
|
|
423
|
+
/** It may be emptied: offer the `none` pick. */
|
|
424
|
+
empty: boolean;
|
|
425
|
+
/** The quick picks, in order: the provider's `datePicks` (absent, `today`, `tomorrow` and `next-monday`), then
|
|
426
|
+
* `none` where it may be emptied. `next-monday` is the Monday after today (a week on when today is one);
|
|
427
|
+
* `in-a-week` is today + 7. */
|
|
428
|
+
picks: ViewsDatePick[];
|
|
429
|
+
/** Today, in the conventions' zone ("YYYY-MM-DD"). */
|
|
430
|
+
today: string;
|
|
431
|
+
/** What was typed on what opened it: the line starts with it. */
|
|
432
|
+
typed?: string;
|
|
433
|
+
/** Put the focus inside as it opens, without scrolling the page. */
|
|
434
|
+
autoFocus: boolean;
|
|
435
|
+
/** `phone`: draw no ✕, ✓ or Cancel of your own (the editor's panel holds them), and hand every change
|
|
436
|
+
* through `onValueChange` as it is made. */
|
|
437
|
+
form: "computer" | "phone";
|
|
438
|
+
};
|
|
439
|
+
/** A box of a place, besides its country and its region's code. */
|
|
440
|
+
export type ViewsPlacePart = "line1" | "line2" | "postalCode" | "city" | "region";
|
|
441
|
+
/** A place's parts as a parts body holds them: a part's text where it has one. */
|
|
442
|
+
export type ViewsPlaceParts = Partial<Record<ViewsPlacePart | "regionCode" | "countryCode", string>>;
|
|
443
|
+
type ViewsPartsBodyCommon = {
|
|
444
|
+
/** The field's name: the body's accessible name, a sheet's title. */
|
|
445
|
+
label: string;
|
|
446
|
+
/** The edit is finished: the editor closes and saves what was handed. With no argument it closes as Enter does
|
|
447
|
+
* (the grid moves one row down); `"pick"` closes as a pick (a band picked), which moves nowhere. */
|
|
448
|
+
onDone: (how?: "pick") => void;
|
|
449
|
+
/** It may be emptied: every box cleared is a clear. */
|
|
450
|
+
empty: boolean;
|
|
451
|
+
/** What was typed on what opened it, already the first part's value where it reads as one. */
|
|
452
|
+
typed?: string;
|
|
453
|
+
/** Put the focus on the first box (or the country list it opens on) as it opens, without scrolling the page. */
|
|
454
|
+
autoFocus: boolean;
|
|
455
|
+
/** `phone`: draw no ✕, ✓ or Cancel of your own (the editor's panel holds them). */
|
|
456
|
+
form: "computer" | "phone";
|
|
457
|
+
/** In the phone's sheet: tell it you stand on a step of your own (a list of countries, a label's list), and hand
|
|
458
|
+
* `null` once you are back. The sheet's head shows the step's title, Back in ✕'s place and ✓; Escape calls `onBack`;
|
|
459
|
+
* a swipe still closes the whole editor, as ✕ does. Absent on a computer. */
|
|
460
|
+
onStepChange?: (step: ViewsBodyStep | null) => void;
|
|
461
|
+
};
|
|
462
|
+
/** A whole body for a field made of parts that your app draws: a name, a place or a range. The editor
|
|
463
|
+
* around it keeps the draft, the full name's rebuild, a place's region code, Tab, Escape, the save and
|
|
464
|
+
* the phone's ✕ and ✓. Hand every change through `onValueChange` as it is made. */
|
|
465
|
+
export type ViewsPartsBodyProps = ViewsPartsBodyCommon & ({
|
|
466
|
+
kind: "name";
|
|
467
|
+
/** The draft: `full` as the editor's rule shows it (it follows the parts until a name of its own is typed, and again once handed back as the parts joined). */
|
|
468
|
+
value: {
|
|
469
|
+
given: string;
|
|
470
|
+
family: string;
|
|
471
|
+
full: string;
|
|
472
|
+
};
|
|
473
|
+
/** Hand `full` back as handed unless the person typed one. */
|
|
474
|
+
onValueChange: (value: {
|
|
475
|
+
given: string;
|
|
476
|
+
family: string;
|
|
477
|
+
full: string;
|
|
478
|
+
}) => void;
|
|
479
|
+
} | {
|
|
480
|
+
kind: "place";
|
|
481
|
+
value: ViewsPlaceParts;
|
|
482
|
+
/** `regionCode` is the editor's: it is read from the region, never taken as handed. */
|
|
483
|
+
onValueChange: (value: ViewsPlaceParts) => void;
|
|
484
|
+
/** The boxes the field takes, in the generic order. */
|
|
485
|
+
parts: readonly ViewsPlacePart[];
|
|
486
|
+
/** Those boxes in the country's own order, a row per line. */
|
|
487
|
+
rows: readonly (readonly ViewsPlacePart[])[];
|
|
488
|
+
/** Each box's words for the country. */
|
|
489
|
+
words: Readonly<Record<ViewsPlacePart, string>>;
|
|
490
|
+
/** The boxes the country asks for: mark them, never refuse. */
|
|
491
|
+
required: readonly ViewsPlacePart[];
|
|
492
|
+
/** Every country, by name, when the field takes the country. */
|
|
493
|
+
countries?: readonly {
|
|
494
|
+
code: string;
|
|
495
|
+
name: string;
|
|
496
|
+
}[];
|
|
497
|
+
/** The country's regions, once loaded, when it has a list: the region is picked from it. */
|
|
498
|
+
regions?: readonly {
|
|
499
|
+
code: string | null;
|
|
500
|
+
name: string;
|
|
501
|
+
}[];
|
|
502
|
+
/** It opens on the country list: the field takes a country and the place had none as the editor opened. Read once, it
|
|
503
|
+
* stays as handed while the editor is open. */
|
|
504
|
+
opens?: "countries";
|
|
505
|
+
} | {
|
|
506
|
+
kind: "range";
|
|
507
|
+
value: {
|
|
508
|
+
low: number | null;
|
|
509
|
+
high: number | null;
|
|
510
|
+
};
|
|
511
|
+
onValueChange: (value: {
|
|
512
|
+
low: number | null;
|
|
513
|
+
high: number | null;
|
|
514
|
+
}) => void;
|
|
515
|
+
/** The decimals the editor keeps: it rounds to them as it closes. */
|
|
516
|
+
decimals: number;
|
|
517
|
+
/** A unit drawn after the ends: "%", a currency code. */
|
|
518
|
+
unit?: string;
|
|
519
|
+
/** The field's bands: draw them as picks, each handing its two ends, then `onDone("pick")`. */
|
|
520
|
+
bands?: readonly {
|
|
521
|
+
key: string;
|
|
522
|
+
label: string;
|
|
523
|
+
low: number | null;
|
|
524
|
+
high: number | null;
|
|
525
|
+
}[];
|
|
526
|
+
});
|
|
527
|
+
/** One value of a list a values body holds: its text, its label where it has one, and whether it is the main one. */
|
|
528
|
+
export type ViewsValueLine = {
|
|
529
|
+
value: string;
|
|
530
|
+
label?: string;
|
|
531
|
+
main: boolean;
|
|
532
|
+
};
|
|
533
|
+
/** A whole body for a field holding several emails, phones, links or domains that your app draws. The editor around it
|
|
534
|
+
* keeps the draft, which value is kept as stored, Tab, Escape, the check before the save, the save and the phone's ✕ and ✓.
|
|
535
|
+
* Hand every change through `onValueChange` as it is made. */
|
|
536
|
+
export type ViewsValuesBodyProps = {
|
|
537
|
+
/** The field's name: the body's accessible name, a sheet's title. */
|
|
538
|
+
label: string;
|
|
539
|
+
/** The field's type: each value is read by its rule. */
|
|
540
|
+
kind: "email" | "phone" | "url" | "domain";
|
|
541
|
+
/** The draft, in its order: the main one first as it opens, and where a change put it after. An empty list is `[]`:
|
|
542
|
+
* draw your own line for adding one. */
|
|
543
|
+
value: readonly ViewsValueLine[];
|
|
544
|
+
/** Every change as it is made, the whole list each time. A line handed as it was drawn keeps what is stored. */
|
|
545
|
+
onValueChange: (value: readonly ViewsValueLine[]) => void;
|
|
546
|
+
/** The edit is finished: the editor closes as Enter does (the grid moves one row down) and saves what was handed. */
|
|
547
|
+
onDone: () => void;
|
|
548
|
+
/** Why a value would be refused, in the app's words, or null when it reads: check each value as it is added or changed. */
|
|
549
|
+
check: (value: string) => string | null;
|
|
550
|
+
/** A value carries a label: offer your own. False: draw no label, and none is saved. */
|
|
551
|
+
labels: boolean;
|
|
552
|
+
/** `one`: the field holds one value: one line, no label, no main mark, no line to add another while it holds one. */
|
|
553
|
+
holds: "one" | "several";
|
|
554
|
+
/** A phone's country, where a number typed without its country code is read (RO). */
|
|
555
|
+
region?: string;
|
|
556
|
+
/** It may be emptied: every value removed is a clear. */
|
|
557
|
+
empty: boolean;
|
|
558
|
+
/** What was typed on what opened it, already the one line's value. */
|
|
559
|
+
typed?: string;
|
|
560
|
+
/** Put the focus inside as it opens, without scrolling the page. */
|
|
561
|
+
autoFocus: boolean;
|
|
562
|
+
/** `phone`: draw no ✕, ✓ or Cancel of your own (the editor's panel holds them). */
|
|
563
|
+
form: "computer" | "phone";
|
|
564
|
+
/** In the phone's sheet: tell it you stand on a step of your own (a list of countries, a label's list), and hand
|
|
565
|
+
* `null` once you are back. The sheet's head shows the step's title, Back in ✕'s place and ✓; Escape calls `onBack`;
|
|
566
|
+
* a swipe still closes the whole editor, as ✕ does. Absent on a computer. */
|
|
567
|
+
onStepChange?: (step: ViewsBodyStep | null) => void;
|
|
568
|
+
};
|
|
569
|
+
/** A whole body for a field typed as one string (a line of text, an email, a phone, a link, a domain, long or rich
|
|
570
|
+
* text) that your app draws. The editor around it keeps the draft, Tab, Escape, ⌘ or Ctrl Enter, the check before the
|
|
571
|
+
* save, the save and the phone's ✕ and ✓. Hand every change through `onValueChange` as it is made. */
|
|
572
|
+
export type ViewsTextBodyProps = {
|
|
573
|
+
/** The field's name: the box's accessible name. */
|
|
574
|
+
label: string;
|
|
575
|
+
/** The field's text type: its keyboard and its reading. */
|
|
576
|
+
kind: "text" | "url" | "domain" | "email" | "phone" | "rich_text";
|
|
577
|
+
/** A paragraph (long text, rich text): Enter and Shift Enter make a newline. False: a line, where they call `onDone()`. */
|
|
578
|
+
paragraph: boolean;
|
|
579
|
+
/** The draft. */
|
|
580
|
+
value: string;
|
|
581
|
+
/** Every change as it is made, the whole text each time. */
|
|
582
|
+
onValueChange: (value: string) => void;
|
|
583
|
+
/** The edit is finished: the editor closes as Enter does (the grid moves one row down) and saves what was handed. */
|
|
584
|
+
onDone: () => void;
|
|
585
|
+
/** Why a value would be refused, in the app's words, or null when it reads. The editor checks again at the close. */
|
|
586
|
+
check: (value: string) => string | null;
|
|
587
|
+
/** A phone's country, where a number typed without its country code is read (RO). */
|
|
588
|
+
region?: string;
|
|
589
|
+
/** What was typed on what opened it, already the value. */
|
|
590
|
+
typed?: string;
|
|
591
|
+
/** Put the focus inside as it opens, without scrolling the page. */
|
|
592
|
+
autoFocus: boolean;
|
|
593
|
+
/** `phone`: it stands in a sheet; draw no ✕, ✓ or Cancel of your own (the sheet holds them). */
|
|
594
|
+
form: "computer" | "phone";
|
|
595
|
+
/** In the phone's sheet: tell it you stand on a step of your own (a list of countries, a label's list), and hand
|
|
596
|
+
* `null` once you are back. The sheet's head shows the step's title, Back in ✕'s place and ✓; Escape calls `onBack`;
|
|
597
|
+
* a swipe still closes the whole editor, as ✕ does. Absent on a computer. */
|
|
598
|
+
onStepChange?: (step: ViewsBodyStep | null) => void;
|
|
599
|
+
};
|
|
600
|
+
/** A whole body for a number, money or a percent that your app draws. The editor around it keeps the draft, the rounding
|
|
601
|
+
* to the field's decimals, Tab, Escape, ⌘ or Ctrl Enter, the check before the save, the save and the phone's ✕ and ✓.
|
|
602
|
+
* Hand every change through `onValueChange` as it is made. */
|
|
603
|
+
export type ViewsNumberBodyProps = {
|
|
604
|
+
/** The field's name: the box's accessible name. */
|
|
605
|
+
label: string;
|
|
606
|
+
/** A number, money (its unit is its currency) or a percent (0 to 100: the value is the percent). */
|
|
607
|
+
kind: "number" | "money" | "percent";
|
|
608
|
+
/** The draft: a number, null when empty, `NaN` when what is in the box reads as no number (a typed letter). */
|
|
609
|
+
value: number | null;
|
|
610
|
+
/** The unit the draft is in: money's currency code, or a number's unit, the one just picked once a pick is handed.
|
|
611
|
+
* Shown; changed only to one of `units`. */
|
|
612
|
+
unit?: string;
|
|
613
|
+
/** The units it may be put in. Absent: the unit is shown with nothing to press. */
|
|
614
|
+
units?: readonly string[];
|
|
615
|
+
/** Every change as it is made: the number, null when emptied, `NaN` for text that reads as no number (a close on it
|
|
616
|
+
* changes nothing); and the unit when it is one of `units`. */
|
|
617
|
+
onValueChange: (value: number | null, unit?: string) => void;
|
|
618
|
+
/** The edit is finished: the editor closes as Enter does (the grid moves one row down) and saves what was handed. */
|
|
619
|
+
onDone: () => void;
|
|
620
|
+
/** Why a value would be refused, in the app's words, or null when it reads. The editor checks again at the close. */
|
|
621
|
+
check: (value: number | null, unit?: string) => string | null;
|
|
622
|
+
/** The digits after the point the field keeps: the editor rounds to them. */
|
|
623
|
+
decimals: number;
|
|
624
|
+
/** The lowest it may hold, where the field says (a percent 0 unless widened). */
|
|
625
|
+
min?: number;
|
|
626
|
+
/** The highest it may hold, where the field says (a percent 100 unless widened). */
|
|
627
|
+
max?: number;
|
|
628
|
+
/** How your people write a number: the locale (BCP 47). */
|
|
629
|
+
locale: string;
|
|
630
|
+
/** The decimal separator, where your app states one; absent, either reads. */
|
|
631
|
+
decimal?: "." | ",";
|
|
632
|
+
/** It may be emptied: `null` is a value. False: an empty close changes nothing. */
|
|
633
|
+
empty: boolean;
|
|
634
|
+
/** Where the figure stands: `end` in a column, `start` in a row read left to right. */
|
|
635
|
+
align: "start" | "end";
|
|
636
|
+
/** What was typed on what opened it; `value` is its reading, or `NaN` where it reads as no number. */
|
|
637
|
+
typed?: string;
|
|
638
|
+
/** Put the focus inside as it opens, without scrolling the page. */
|
|
639
|
+
autoFocus: boolean;
|
|
640
|
+
/** `phone`: it stands in a sheet; draw no ✕, ✓ or Cancel of your own (the sheet holds them). */
|
|
641
|
+
form: "computer" | "phone";
|
|
642
|
+
};
|
|
643
|
+
export type ViewsCollapseProps = {
|
|
644
|
+
open: boolean;
|
|
645
|
+
children: ReactNode;
|
|
646
|
+
className?: string;
|
|
647
|
+
/** A class on the box that crops the content (a bleed, a padding the crop must not shave). */
|
|
648
|
+
clipClassName?: string;
|
|
649
|
+
durationMs?: number;
|
|
650
|
+
};
|
|
651
|
+
/** One of the editor panel's buttons (or a toolbar panel's ✕), handed to a Sheet that draws them in its own head:
|
|
652
|
+
* its accessible name and what a press does. The glyph is the app's (✕, ✓). */
|
|
653
|
+
export type ViewsSheetAction = {
|
|
654
|
+
label: string;
|
|
655
|
+
onPress: () => void;
|
|
656
|
+
};
|
|
657
|
+
/** The editor panel's ✕ and ✓. `close` throws the edit away, as a swipe does; `done` closes it as
|
|
658
|
+
* done, and is absent where the body saves on its pick (a pick of one), which needs no ✓. A toolbar panel's sheet
|
|
659
|
+
* is handed `close` alone, which closes it; the sort editor's is handed both, its `close` taking the rules back to
|
|
660
|
+
* what they were as the sheet opened and its `done` keeping them. */
|
|
661
|
+
export type ViewsSheetActions = {
|
|
662
|
+
close: ViewsSheetAction;
|
|
663
|
+
done?: ViewsSheetAction;
|
|
664
|
+
/** While an editor's body stands on a step of its own (`ViewsBodyStep`): Back, drawn in `close`'s place with your own
|
|
665
|
+
* back arrow, returning the body to where it was. `close` stays handed, for a head that draws no Back. Absent off a
|
|
666
|
+
* step, and on every toolbar panel. */
|
|
667
|
+
back?: ViewsSheetAction;
|
|
668
|
+
};
|
|
669
|
+
/** A step of an editor body's own on a phone (a list of countries, a label's list): its title, which the sheet's head
|
|
670
|
+
* shows in place of the field's name, and what Back does, which returns the body to where it was. */
|
|
671
|
+
export type ViewsBodyStep = {
|
|
672
|
+
title: string;
|
|
673
|
+
onBack: () => void;
|
|
674
|
+
};
|
|
675
|
+
/** The sort editor's body, which your app draws (`SortBody`): what the sort pill opens on a computer and in the phone's
|
|
676
|
+
* Sheet, in place of ViewKit's own. A panel's body, as every panel's: handed the panel's state as data, it hands back
|
|
677
|
+
* the whole new value, every change as it is made; ViewKit keeps the rules, the save and what ✕ takes back to. Its
|
|
678
|
+
* shapes are the panels' `SortOption`, `SortRule` and `SetAsideSortRule` (`viewkitjs/views/panels`), written out
|
|
679
|
+
* here, since the provider reaches nothing inside the panels. */
|
|
680
|
+
export type ViewsSortBodyProps = {
|
|
681
|
+
/** The sort's name ("Sort"): a phone's title, and the rules' name to a screen reader. */
|
|
682
|
+
label: string;
|
|
683
|
+
/** The fields the list sorts by, in order: what Add sort and a rule's field open. Each its sort key (`value`), its
|
|
684
|
+
* words and the direction a new rule on it takes, and each marked as the grid's header marks its column: its field's
|
|
685
|
+
* `type` (a place's part: the place's), the `part` it sorts by, and the header's `glyph`, drawn with your icons;
|
|
686
|
+
* absent for an option your app built with no column behind it. */
|
|
687
|
+
options: readonly {
|
|
688
|
+
value: string;
|
|
689
|
+
label: string;
|
|
690
|
+
defaultDir: SortDirection;
|
|
691
|
+
type?: FieldType;
|
|
692
|
+
part?: string;
|
|
693
|
+
glyph?: ReactNode;
|
|
694
|
+
}[];
|
|
695
|
+
/** The rules, the first sorting first, `max` at most, one per field: a sort key and its direction. */
|
|
696
|
+
rules: readonly {
|
|
697
|
+
value: string;
|
|
698
|
+
dir: SortDirection;
|
|
699
|
+
}[];
|
|
700
|
+
/** The sorts set aside, after the rules: each holds one of the `max` places until it is put back or deleted. Each
|
|
701
|
+
* its stored field key (how a write names it), the order it sorts its field by (`by`, a place's part), its words,
|
|
702
|
+
* its direction, why it was set aside, and `value`, the sort key it sorts by once put back, null while it doesn't
|
|
703
|
+
* fit. */
|
|
704
|
+
setAside: readonly {
|
|
705
|
+
fieldKey: string;
|
|
706
|
+
by?: string;
|
|
707
|
+
label: string;
|
|
708
|
+
dir: SortDirection;
|
|
709
|
+
reason: SetAsideReason;
|
|
710
|
+
value: string | null;
|
|
711
|
+
}[];
|
|
712
|
+
/** How many rules at most, a set-aside sort holding one of the places: 3. */
|
|
713
|
+
max: number;
|
|
714
|
+
form: "computer" | "phone";
|
|
715
|
+
/** On a computer, Add sort at the body's foot: what holds it has no + of its own. A phone's body always has one. */
|
|
716
|
+
addSort: boolean;
|
|
717
|
+
/** Every change, as it is made: the whole rules in order and, when handed, the set-aside sorts kept (any left out
|
|
718
|
+
* are deleted; absent, every one is kept). A list that breaks the rules writes nothing. */
|
|
719
|
+
onRulesChange: (rules: ViewsSortBodyProps["rules"][number][], setAside?: ViewsSortBodyProps["setAside"]) => void;
|
|
720
|
+
/** The job is done and what holds it closes. */
|
|
721
|
+
onDone: () => void;
|
|
722
|
+
/** On a phone where the sheet's head doesn't draw them (`sheetActions: "bar"`): its ✕ (taking the rules and the
|
|
723
|
+
* set-aside sorts back to what they were as it opened) and ✓, for your body's own head. Absent on a computer, and
|
|
724
|
+
* under `head`, where the sheet holds them. */
|
|
725
|
+
actions?: ViewsSheetActions;
|
|
726
|
+
};
|
|
727
|
+
/** The quick filters' body, which your app draws (`QuickFiltersBody`): what the quick filters' button opens on a
|
|
728
|
+
* computer and in the phone's Sheet, in place of ViewKit's own panel. A panel's body, as every panel's: handed the
|
|
729
|
+
* fields, their values and the hold as data, it hands back the whole new hold, every change as it is made; ViewKit
|
|
730
|
+
* checks it and writes it. The hold's shape is fields' `ListHold` (`viewkitjs/fields/query`), written out here, since
|
|
731
|
+
* the provider reaches nothing inside the panels. */
|
|
732
|
+
export type ViewsQuickFiltersBodyProps = {
|
|
733
|
+
/** The quick filters' name ("Quick filters"): a phone's title, and the panel's name to a screen reader. */
|
|
734
|
+
label: string;
|
|
735
|
+
/** The fields the strip shows: those the app offers, in its order, then each other field the hold holds a value on,
|
|
736
|
+
* named by the words the app hands for it (its `heldLabels`) else its key, listing only its held values, so they
|
|
737
|
+
* can be let go. Each its field key, its words, what its search says, and its values in the order to show them:
|
|
738
|
+
* with `showCounts` the most first, else the field's own order. A value held that no count lists any more (a
|
|
739
|
+
* retired option, a deleted record) is among them, drawn from the hold and worded by the app's `heldLabels` else
|
|
740
|
+
* its key, so it can be let go. */
|
|
741
|
+
fields: readonly {
|
|
742
|
+
key: string;
|
|
743
|
+
label: string;
|
|
744
|
+
searchPlaceholder?: string;
|
|
745
|
+
/** Each value: its key as the hold keeps it (an option, an id, "true" or "false", "" for none), its words, how
|
|
746
|
+
* many rows a press on it shows (absent when the app counts none or counts are hidden), and whether it is held. */
|
|
747
|
+
values: readonly {
|
|
748
|
+
value: string;
|
|
749
|
+
label: string;
|
|
750
|
+
count?: number;
|
|
751
|
+
held: boolean;
|
|
752
|
+
}[];
|
|
753
|
+
}[];
|
|
754
|
+
/** The hold as it stands: each held field once, the values held on it. */
|
|
755
|
+
hold: readonly {
|
|
756
|
+
fieldKey: string;
|
|
757
|
+
values: readonly string[];
|
|
758
|
+
}[];
|
|
759
|
+
/** Several held at once, each press adding a value or letting it go; false, one in all, a press moving it. */
|
|
760
|
+
several: boolean;
|
|
761
|
+
/** The toolbar's Show counts: off, the values come in the field's own order with no count. */
|
|
762
|
+
showCounts: boolean;
|
|
763
|
+
form: "computer" | "phone";
|
|
764
|
+
/** Every change, as it is made: the whole hold. One that breaks the rules (a field held twice, more than one value
|
|
765
|
+
* held where `several` is false, a value added on a field the strip doesn't offer) writes nothing; a value already
|
|
766
|
+
* held on such a field may stay or go. */
|
|
767
|
+
onHoldChange: (hold: ViewsQuickFiltersBodyProps["hold"]) => void;
|
|
768
|
+
/** The job is done and what holds it closes. */
|
|
769
|
+
onDone: () => void;
|
|
770
|
+
/** On a phone where the sheet's head doesn't draw it (`sheetActions: "bar"`): its ✕, closing it, for your body's
|
|
771
|
+
* own head. Absent on a computer, and under `head`, where the sheet holds it. */
|
|
772
|
+
actions?: ViewsSheetActions;
|
|
773
|
+
};
|
|
774
|
+
/** A field a filter rule may name, as the filter body is handed it: the panels' `FilterEditorField`
|
|
775
|
+
* (`viewkitjs/views/panels`), written out here, since the provider reaches nothing inside the panels. */
|
|
776
|
+
export type ViewsFilterBodyField = {
|
|
777
|
+
/** The row key the Filter panel uses: a column's id, a part's key, a relation's key. */
|
|
778
|
+
key: string;
|
|
779
|
+
label: string;
|
|
780
|
+
/** The rule's `fieldKey`. */
|
|
781
|
+
fieldKey: string;
|
|
782
|
+
/** The part of a grouped value a rule on it reads (a place's city); absent, the whole value. */
|
|
783
|
+
part?: string;
|
|
784
|
+
/** The type its value is read as, which says the ways it compares (`operatorsFor`) and the value each stores. */
|
|
785
|
+
type: keyof typeof FILTER_OPERATORS;
|
|
786
|
+
/** A relation's far fields, one level in: a rule on one is a relation rule (any, none or every where …). */
|
|
787
|
+
far?: readonly ViewsFilterBodyField[];
|
|
788
|
+
};
|
|
789
|
+
/** The filter editor's body, which your app draws (`FilterBody`): what an advanced filter's pill opens on a computer and
|
|
790
|
+
* Filter opens in the phone's Sheet, in place of ViewKit's own. A panel's body, as every panel's: handed the level it is
|
|
791
|
+
* open on as data, it hands back the whole level, every change as it is made; ViewKit keeps the check, the save, the
|
|
792
|
+
* pills' keys and what ✕ takes back to. Its shapes are `viewkitjs/fields/query`'s filter tree. */
|
|
793
|
+
export type ViewsFilterBodyProps = {
|
|
794
|
+
/** The filter's name ("Advanced filter" on a computer, "Filter" on a phone): a phone's title, and the rules' name to a
|
|
795
|
+
* screen reader. */
|
|
796
|
+
label: string;
|
|
797
|
+
/** The fields a rule may name, in the person's order, then each relation with its far fields one level in. */
|
|
798
|
+
fields: readonly ViewsFilterBodyField[];
|
|
799
|
+
/** The level it is open on, its items joined by its `op`: on a computer the advanced filter's own group (`and`, `or`,
|
|
800
|
+
* or `not` for one that excludes its matches; a top joined by Or as one group of its own), on a phone the whole
|
|
801
|
+
* filter. Its items are rules, groups and relation rules (`fieldKey`, `quantifier`, a `where` of far rules), a rule
|
|
802
|
+
* or relation rule set aside (`setAside`, its reason) kept where it sits. Inside `relation`, its rules name that
|
|
803
|
+
* relation's far fields. */
|
|
804
|
+
filter: FilterGroup;
|
|
805
|
+
/** How many levels deep its rules may stand, its own the first: 3 on a phone, 2 for an advanced filter's group, so the
|
|
806
|
+
* view never stands more than 3 deep. A relation rule's where is a level. */
|
|
807
|
+
levels: number;
|
|
808
|
+
/** Whether the level may exclude its matches (`op: "not"`): an advanced filter's own group, not a top or a where. */
|
|
809
|
+
excludable: boolean;
|
|
810
|
+
/** Where the level is a relation rule's where, edited in place (wrapping it in a group would pass 3 levels): the
|
|
811
|
+
* relation's field key, its words and its quantifier. Its rules name its far fields, and a quantifier handed back with
|
|
812
|
+
* the level is written to it. `gone`, present only where the list no longer lists the relation, is why, in words
|
|
813
|
+
* ("Its relation is no longer in this list"), for your Add filter's disabled reason: its far fields are unknown, so
|
|
814
|
+
* a level handed back there may keep or delete its rules, and one that adds or changes a rule writes nothing. */
|
|
815
|
+
relation?: {
|
|
816
|
+
fieldKey: string;
|
|
817
|
+
label: string;
|
|
818
|
+
quantifier: FilterRelationRule["quantifier"];
|
|
819
|
+
gone?: string;
|
|
820
|
+
};
|
|
821
|
+
form: "computer" | "phone";
|
|
822
|
+
/** Every change, as it is made: the whole level and, at a relation edited in place, its quantifier. A rule held until
|
|
823
|
+
* whole is your body's to hold: hand it back once whole. A level left with no items takes an advanced filter away, and
|
|
824
|
+
* closes what holds it on a computer. A level that breaks the rules writes nothing. */
|
|
825
|
+
onFilterChange: (filter: FilterGroup, quantifier?: FilterRelationRule["quantifier"]) => void;
|
|
826
|
+
/** A rule's value in its type's own body, ViewKit's, for your body to place where a rule's value opens: each change
|
|
827
|
+
* handed to `onRuleChange` as the rule with its new value, for your body to put in its level. `relation`: the
|
|
828
|
+
* relation's field key, for a far rule. Null for a rule no body edits (set aside, or a way taking no value). */
|
|
829
|
+
ruleValue: (rule: FilterRule, onRuleChange: (next: FilterRule) => void, relation?: string) => ReactNode;
|
|
830
|
+
/** The job is done and what holds it closes. */
|
|
831
|
+
onDone: () => void;
|
|
832
|
+
/** On a phone where the sheet's head doesn't draw them (`sheetActions: "bar"`): its ✕ (taking the filter back to what
|
|
833
|
+
* it was as the sheet opened) and ✓, for your body's own head. Absent on a computer, and under `head`, where the
|
|
834
|
+
* sheet holds them. */
|
|
835
|
+
actions?: ViewsSheetActions;
|
|
836
|
+
};
|
|
837
|
+
/** A field as the field list's body is handed it (`ViewsFieldsBodyProps.fields`). */
|
|
838
|
+
export type ViewsFieldsBodyField = {
|
|
839
|
+
/** What `onPick` names it by: a sort key, or a filter field's key. */
|
|
840
|
+
key: string;
|
|
841
|
+
label: string;
|
|
842
|
+
/** Its field's type as the grid's header reads it for its column's glyph (a part's: its whole field's). Absent for a
|
|
843
|
+
* field your app built with no column behind it, and for a relation. */
|
|
844
|
+
type?: FieldType;
|
|
845
|
+
/** The part of a grouped value it reads (a place's city); absent, the whole value. */
|
|
846
|
+
part?: string;
|
|
847
|
+
/** Its column's glyph, drawn as the grid's header draws it, with your icons. */
|
|
848
|
+
glyph?: ReactNode;
|
|
849
|
+
/** Why it can't be picked, in words ("Sorted"); absent, it can. */
|
|
850
|
+
disabled?: string;
|
|
851
|
+
/** A relation's far fields, one level in (a filter's Related records): a pick names the relation and one of them. */
|
|
852
|
+
far?: readonly ViewsFieldsBodyField[];
|
|
853
|
+
};
|
|
854
|
+
/** The field list's body, which your app draws (`FieldsBody`): what ViewKit opens wherever it opens its own sort or
|
|
855
|
+
* filter field list (the empty Sort, Sort on the row's right, the + after the sort, Filter, the bar's +, a filter's
|
|
856
|
+
* field, and the field lists inside ViewKit's own sort and filter editors), in place of its own. Handed the fields as
|
|
857
|
+
* data, it hands back the one picked; ViewKit writes it and closes what holds the list. */
|
|
858
|
+
export type ViewsFieldsBodyProps = {
|
|
859
|
+
/** What a pick is for: a sort's rule, or a filter's. */
|
|
860
|
+
purpose: "sort" | "filter";
|
|
861
|
+
/** The list's name to a screen reader ("Sort", "Filter"). */
|
|
862
|
+
label: string;
|
|
863
|
+
/** What its search says before anything is typed. */
|
|
864
|
+
search: string;
|
|
865
|
+
/** The fields, in order; for a filter, the list's own, then each relation with its far fields. */
|
|
866
|
+
fields: readonly ViewsFieldsBodyField[];
|
|
867
|
+
/** The field being changed (a rule's field): ticked, and pickable. Absent where a pick adds. */
|
|
868
|
+
own?: string;
|
|
869
|
+
form: "computer" | "phone";
|
|
870
|
+
/** A field picked: its key, and, for a relation's far field, the far field's key. A key not handed, or one handed
|
|
871
|
+
* `disabled`, writes nothing. */
|
|
872
|
+
onPick: (key: string, far?: string) => void;
|
|
873
|
+
/** Done with no pick: what holds the list closes (on a phone, the sheet's body turns back). */
|
|
874
|
+
onDone: () => void;
|
|
875
|
+
};
|
|
876
|
+
/** A filter rule's part, which your app draws (`FilterPartBody`): what a rule's way and its value open wherever ViewKit
|
|
877
|
+
* draws them itself (a filter on the bar, a rule in ViewKit's own filter editor on a computer and on a phone), in place
|
|
878
|
+
* of ViewKit's ways menu and value body. Handed the rule as data, it hands back the rule changed; ViewKit checks it,
|
|
879
|
+
* keeps a rule held until whole, and writes it. Never opened inside `FilterBody`'s `ruleValue`. */
|
|
880
|
+
export type ViewsFilterPartBodyProps = {
|
|
881
|
+
/** Which part opened it: `way`, how the rule compares; `value`, what it compares with. */
|
|
882
|
+
part: "way" | "value";
|
|
883
|
+
/** The part's name, as ViewKit's own words it: a phone's title, and its name to a screen reader. */
|
|
884
|
+
label: string;
|
|
885
|
+
/** The rule as it stands: its field key, part, way (`operator`) and value; one waiting for its value holds its way's
|
|
886
|
+
* empty value. */
|
|
887
|
+
rule: FilterRule;
|
|
888
|
+
/** The field it names (for a far rule, the relation's far field): its `type` says the ways and the value each
|
|
889
|
+
* stores. */
|
|
890
|
+
field: Omit<ViewsFilterBodyField, "far">;
|
|
891
|
+
/** The ways its field offers, in order: each its operator and its words. */
|
|
892
|
+
ways: readonly {
|
|
893
|
+
value: FilterRule["operator"];
|
|
894
|
+
label: string;
|
|
895
|
+
}[];
|
|
896
|
+
/** ViewKit's own body for the rule's value, for a type your body doesn't draw; null at `way`. */
|
|
897
|
+
own: ReactNode;
|
|
898
|
+
form: "computer" | "phone";
|
|
899
|
+
/** Every change, as it is made: the rule with its new way or its new value. A new way is written as ViewKit's own
|
|
900
|
+
* writes one (its value kept where it still fits, else emptied), whatever value comes with it; a rule naming another
|
|
901
|
+
* field or part, a way its field doesn't offer, or a value its way can't hold writes nothing. */
|
|
902
|
+
onRuleChange: (rule: FilterRule) => void;
|
|
903
|
+
/** The job is done: what holds it closes (on a phone, the sheet's body turns back). */
|
|
904
|
+
onDone: () => void;
|
|
905
|
+
};
|
|
906
|
+
/** The toolbar's search box, which your app draws (`SearchField`): what the search opens wherever it opens its own field
|
|
907
|
+
* (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
|
|
908
|
+
* no views), in place of ViewKit's frame, glass, field and ✕. ViewKit keeps its button while shut, whether it is open,
|
|
909
|
+
* the caret on a press, Escape and a blur with nothing typed, caught on its frame around your box. */
|
|
910
|
+
export type ViewsSearchFieldProps = {
|
|
911
|
+
value: string;
|
|
912
|
+
/** Every keystroke, as typed. */
|
|
913
|
+
onChange: (value: string) => void;
|
|
914
|
+
placeholder: string;
|
|
915
|
+
/** Its name to a screen reader ("Search"). */
|
|
916
|
+
label: string;
|
|
917
|
+
/** The app's search is under way: draw a spinner where your glass is, worded `searchingLabel`; keep the box usable. */
|
|
918
|
+
searching: boolean;
|
|
919
|
+
searchingLabel: string;
|
|
920
|
+
/** The clear: empties the search, and closes it where `closes`. Wire your clear to it. */
|
|
921
|
+
onClear: () => void;
|
|
922
|
+
/** Your clear's name to a screen reader: "Close search" where it closes, "Clear" where it only clears. */
|
|
923
|
+
clearLabel: string;
|
|
924
|
+
/** Opened from its button: your clear stands while it is open, empty or not, and closes it. False where it fills its
|
|
925
|
+
* line, with no button to go back to: show your clear only while it holds a value. */
|
|
926
|
+
closes: boolean;
|
|
927
|
+
form: "computer" | "phone";
|
|
928
|
+
/** It fills its line (the narrow panel, a phone with no views); else it stands in the row at its own width. */
|
|
929
|
+
fill: boolean;
|
|
930
|
+
};
|
|
931
|
+
/** One view as the views list's body is handed it (`ViewsViewsListBodyProps.views`). The panels' `ViewTabOption`
|
|
932
|
+
* (`viewkitjs/views/panels`), written out here, since the provider reaches nothing inside the panels. */
|
|
933
|
+
export type ViewsViewsListItem = {
|
|
934
|
+
/** The view's own value: what `onViewChange` and `onReorder` name it by. */
|
|
935
|
+
value: string;
|
|
936
|
+
/** Its words. */
|
|
937
|
+
label: string;
|
|
938
|
+
/** Its glyph, by your own icon's name, as `AppIcon` draws it. */
|
|
939
|
+
icon?: string;
|
|
940
|
+
/** Its count, absent while the list's counts are hidden. */
|
|
941
|
+
count?: number;
|
|
942
|
+
/** Only this reader sees it: one of the reader's own views, after the shared ones. */
|
|
943
|
+
private?: boolean;
|
|
944
|
+
/** The view's own verbs (Rename, Duplicate, Delete…), as your app gave them: ViewKit's own list offers them on the
|
|
945
|
+
* view in use. */
|
|
946
|
+
menu?: ViewsMenuItem[];
|
|
947
|
+
};
|
|
948
|
+
/** The views list's body, which your app draws (`ViewsListBody`): what the view picker's chip opens on a computer and in
|
|
949
|
+
* the phone's Sheet, in place of ViewKit's own list. A panel's body, as every panel's: handed the axis's views as data,
|
|
950
|
+
* it hands back the view picked; what creating, reordering and a view's verbs mean stays your app's, as the axis says. */
|
|
951
|
+
export type ViewsViewsListBodyProps = {
|
|
952
|
+
/** The list's name ("Views"): a phone's title, and the list's name to a screen reader. */
|
|
953
|
+
label: string;
|
|
954
|
+
/** The views, in the axis's order: the shared ones and the reader's own (`private`), as the axis hands them. */
|
|
955
|
+
views: readonly ViewsViewsListItem[];
|
|
956
|
+
/** The view in use. */
|
|
957
|
+
value: string;
|
|
958
|
+
form: "computer" | "phone";
|
|
959
|
+
/** A view picked: written when it is one of `views`, else nothing. It closes nothing: call `onDone` after it, as
|
|
960
|
+
* ViewKit's own list closes on a pick. */
|
|
961
|
+
onViewChange: (value: string) => void;
|
|
962
|
+
/** Where the axis can grow: a new view. What holds the list closes first, as at ViewKit's own "New view…". */
|
|
963
|
+
onCreate?: () => void;
|
|
964
|
+
/** The word for a new view ("New view", or the axis's own), handed with `onCreate`. */
|
|
965
|
+
createLabel?: string;
|
|
966
|
+
/** Where the axis can be reordered: one whole kind-block, the shared views or the reader's own, in its new order,
|
|
967
|
+
* each once. An order that isn't one writes nothing. */
|
|
968
|
+
onReorder?: (orderedIds: string[]) => void;
|
|
969
|
+
/** Handed with `onReorder`: which views may be picked up (a member can't move the views everyone sees). */
|
|
970
|
+
canDrag?: (value: string) => boolean;
|
|
971
|
+
/** The job is done and what holds it closes. */
|
|
972
|
+
onDone: () => void;
|
|
973
|
+
/** On a phone where the sheet's head doesn't draw it (`sheetActions: "bar"`): its ✕, closing the list, for your
|
|
974
|
+
* body's own head. Absent on a computer, and under `head`, where the sheet holds it. */
|
|
975
|
+
actions?: ViewsSheetActions;
|
|
976
|
+
};
|
|
977
|
+
/** A field a list can be grouped by, as the group body is handed it (`ViewsGroupBodyProps.dimensions`): the panels'
|
|
978
|
+
* `GroupDimension` (`viewkitjs/views/panels`), written out here, since the provider reaches nothing inside the panels. */
|
|
979
|
+
export type ViewsGroupDimension = {
|
|
980
|
+
/** What Group by names it by: `ViewsGroupValue.value`. */
|
|
981
|
+
value: string;
|
|
982
|
+
label: string;
|
|
983
|
+
/** The orders its groups can take, each with its words and the direction it opens in (absent, the order's own:
|
|
984
|
+
* Count descending, the rest ascending). `manual` among them is your own order. */
|
|
985
|
+
orderOptions: readonly {
|
|
986
|
+
value: BucketOrderMode;
|
|
987
|
+
label: string;
|
|
988
|
+
defaultDir?: SortDirection;
|
|
989
|
+
}[];
|
|
990
|
+
/** The order it opens in. */
|
|
991
|
+
defaultOrder: BucketOrderMode;
|
|
992
|
+
/** A date's steps (Relative, Day, Month…); absent for a field that isn't a date. */
|
|
993
|
+
granularities?: readonly {
|
|
994
|
+
value: string;
|
|
995
|
+
label: string;
|
|
996
|
+
}[];
|
|
997
|
+
defaultGranularity?: string;
|
|
998
|
+
};
|
|
999
|
+
/** One group of the field grouped by, as the group body is handed it: its key, its words ("" for the empty group),
|
|
1000
|
+
* whether it is empty (Hide empty groups hides it) and whether the reader hid it. It carries no count. */
|
|
1001
|
+
export type ViewsGroupEntry = {
|
|
1002
|
+
key: string;
|
|
1003
|
+
label: string;
|
|
1004
|
+
empty: boolean;
|
|
1005
|
+
hidden: boolean;
|
|
1006
|
+
};
|
|
1007
|
+
/** A list's group as one value, what a group body is handed and hands back whole. */
|
|
1008
|
+
export type ViewsGroupValue = {
|
|
1009
|
+
/** The dimension grouped by (one of `dimensions`), or `none`. */
|
|
1010
|
+
value: string;
|
|
1011
|
+
/** The active dimension's order and direction; absent at `none`. */
|
|
1012
|
+
order?: {
|
|
1013
|
+
mode: BucketOrderMode;
|
|
1014
|
+
dir: SortDirection;
|
|
1015
|
+
};
|
|
1016
|
+
/** The active dimension's date step, where it has steps. */
|
|
1017
|
+
granularity?: string;
|
|
1018
|
+
/** Hide empty groups, while grouped and where the list offers it. */
|
|
1019
|
+
hideEmpty?: boolean;
|
|
1020
|
+
/** The groups, in the order the list shows them, while grouped and where the list hands them: your body shows or
|
|
1021
|
+
* hides each and drags them into an order of its own. */
|
|
1022
|
+
groups?: readonly ViewsGroupEntry[];
|
|
1023
|
+
};
|
|
1024
|
+
/** The group editor's body, which your app draws (`GroupBody`): what Customize's Group opens on a computer and in the
|
|
1025
|
+
* phone's Sheet, in place of ViewKit's own group pages. A panel's body, as every panel's: handed the group as data, it
|
|
1026
|
+
* hands back the whole group, every change as it is made; ViewKit checks it and makes one write for it. */
|
|
1027
|
+
export type ViewsGroupBodyProps = {
|
|
1028
|
+
/** The group's name ("Group"): the settings' name to a screen reader. */
|
|
1029
|
+
label: string;
|
|
1030
|
+
/** The fields the list can be grouped by, in order. */
|
|
1031
|
+
dimensions: readonly ViewsGroupDimension[];
|
|
1032
|
+
/** The group as it stands. */
|
|
1033
|
+
group: ViewsGroupValue;
|
|
1034
|
+
/** Your own order (`manual`) may be picked: the list hands its groups, or the order is already your own. */
|
|
1035
|
+
manualOrder: boolean;
|
|
1036
|
+
form: "computer" | "phone";
|
|
1037
|
+
/** Every change, as it is made: the whole group. ViewKit writes one change at a time: a new Group by, order or date
|
|
1038
|
+
* step (the rest of the value, about the old field's groups, set aside); else Hide empty groups; else the groups (a
|
|
1039
|
+
* new order of the same groups, one shown or hidden, every one hidden, every one shown). A new Group by keeps the
|
|
1040
|
+
* order and step handed with it only where the new field offers them. A value that changes two of those at once,
|
|
1041
|
+
* names a field the list doesn't offer, names an order or step the field grouped by doesn't offer, or adds or loses
|
|
1042
|
+
* a group, writes nothing. */
|
|
1043
|
+
onGroupChange: (group: ViewsGroupValue) => void;
|
|
1044
|
+
/** The job is done and what holds it closes: inside Customize, back to its list. */
|
|
1045
|
+
onDone: () => void;
|
|
1046
|
+
/** On a phone where the sheet's head doesn't draw it: its ✕. Inside Customize, whose own head holds the ✕, absent. */
|
|
1047
|
+
actions?: ViewsSheetActions;
|
|
1048
|
+
};
|
|
1049
|
+
/** Where a Customize body stands: its list, or a section's page. */
|
|
1050
|
+
export type ViewsCustomizePage = "list" | "layout" | "columns" | "filter" | "sort" | "group";
|
|
1051
|
+
/** A setting turned on or off in Customize (Show counts, a layout's Freeze first column, a column's Show time): the
|
|
1052
|
+
* panels' `ToggleConfig`, written out here. `onChange` writes it; `reset`, where present, takes it back to the
|
|
1053
|
+
* reader's default; `section`, the heading it stands under, where it has one. */
|
|
1054
|
+
export type ViewsCustomizeToggle = {
|
|
1055
|
+
key: string;
|
|
1056
|
+
label: string;
|
|
1057
|
+
value: boolean;
|
|
1058
|
+
onChange: (next: boolean) => void;
|
|
1059
|
+
icon?: ReactNode;
|
|
1060
|
+
reset?: () => void;
|
|
1061
|
+
section?: string;
|
|
1062
|
+
};
|
|
1063
|
+
/** A setting picked from a few in Customize (a layout's Density, the board's field, a column's decimals): its words,
|
|
1064
|
+
* its value, its choices, and `onChange` writing one. */
|
|
1065
|
+
export type ViewsCustomizeChoice = {
|
|
1066
|
+
key: string;
|
|
1067
|
+
label: string;
|
|
1068
|
+
value: string;
|
|
1069
|
+
options: readonly {
|
|
1070
|
+
value: string;
|
|
1071
|
+
label: string;
|
|
1072
|
+
}[];
|
|
1073
|
+
onChange: (value: string) => void;
|
|
1074
|
+
};
|
|
1075
|
+
/** Customize's Layout, as a Customize body is handed it: the layouts and the one in use, and that layout's own
|
|
1076
|
+
* settings, offered where ViewKit's own Layout page offers them. */
|
|
1077
|
+
export type ViewsCustomizeLayout = {
|
|
1078
|
+
label: string;
|
|
1079
|
+
value: string;
|
|
1080
|
+
/** The layouts the reader may pick. */
|
|
1081
|
+
options: readonly {
|
|
1082
|
+
value: string;
|
|
1083
|
+
label: string;
|
|
1084
|
+
}[];
|
|
1085
|
+
/** The layouts the list could draw and can't, each with the reason a reader is shown. */
|
|
1086
|
+
refused: readonly {
|
|
1087
|
+
value: string;
|
|
1088
|
+
label: string;
|
|
1089
|
+
reason: string;
|
|
1090
|
+
}[];
|
|
1091
|
+
/** A layout picked: written when it is one of `options`. */
|
|
1092
|
+
onLayoutChange: (value: string) => void;
|
|
1093
|
+
/** The layout in use's own toggles (a table's Freeze first column, Wrap text). */
|
|
1094
|
+
toggles: readonly ViewsCustomizeToggle[];
|
|
1095
|
+
/** Its pick-one settings (the board's field, the calendar's date). */
|
|
1096
|
+
choices: readonly ViewsCustomizeChoice[];
|
|
1097
|
+
/** Its row spacing, where the layout has one. */
|
|
1098
|
+
density?: ViewsCustomizeChoice;
|
|
1099
|
+
/** The reader's own settings over a shared view ("For you"), with Reset where any is set. */
|
|
1100
|
+
personal?: {
|
|
1101
|
+
label: string;
|
|
1102
|
+
toggles: readonly ViewsCustomizeToggle[];
|
|
1103
|
+
choices: readonly ViewsCustomizeChoice[];
|
|
1104
|
+
onReset?: () => void;
|
|
1105
|
+
};
|
|
1106
|
+
};
|
|
1107
|
+
/** One column (a card's field on a board) as a Customize body is handed it. */
|
|
1108
|
+
export type ViewsCustomizeColumn = {
|
|
1109
|
+
id: string;
|
|
1110
|
+
label: string;
|
|
1111
|
+
icon?: ReactNode;
|
|
1112
|
+
hidden: boolean;
|
|
1113
|
+
/** Whether it may be hidden: the title column may not. */
|
|
1114
|
+
hideable: boolean;
|
|
1115
|
+
/** Declared by the list, never hidden or moved by a view. */
|
|
1116
|
+
fixed?: boolean;
|
|
1117
|
+
/** On a layout that lays fields out on a card (a board, a calendar): it starts a new line on the card. */
|
|
1118
|
+
startsLine?: boolean;
|
|
1119
|
+
/** Its own settings (a date's style, a number's decimals, Show time). */
|
|
1120
|
+
settings?: {
|
|
1121
|
+
choices: readonly ViewsCustomizeChoice[];
|
|
1122
|
+
toggles: readonly ViewsCustomizeToggle[];
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
/** Customize's Columns (a board's Fields), as a Customize body is handed it. */
|
|
1126
|
+
export type ViewsCustomizeColumns = {
|
|
1127
|
+
/** "Columns", or the layout's own word ("Fields"). */
|
|
1128
|
+
label: string;
|
|
1129
|
+
/** The columns in the view's order. */
|
|
1130
|
+
items: readonly ViewsCustomizeColumn[];
|
|
1131
|
+
/** Every change, as it is made: every column in its order, each hidden or not. ViewKit writes one change at a time:
|
|
1132
|
+
* the same columns in a new order, or columns shown or hidden, several at once in one write (a Hide all, a Show
|
|
1133
|
+
* all). A column that can't hide (fixed, not hideable) stays shown, and hiding every column leaves the first one
|
|
1134
|
+
* shown; a new order with a column shown or hidden, or a column added or lost, writes nothing. */
|
|
1135
|
+
onColumnsChange: (columns: readonly {
|
|
1136
|
+
id: string;
|
|
1137
|
+
hidden: boolean;
|
|
1138
|
+
}[]) => void;
|
|
1139
|
+
/** With `startsLine`: a field's new line turned on or off; a hidden field, and the card's first, start none. */
|
|
1140
|
+
onStartsLineChange?: (id: string) => void;
|
|
1141
|
+
/** The field that opens the card, which starts no line of its own. */
|
|
1142
|
+
firstFieldId?: string;
|
|
1143
|
+
/** Back to the view's own columns, while they differ from it. */
|
|
1144
|
+
reset?: () => void;
|
|
1145
|
+
/** Your field editor's rows for a column's field (Edit field, Archive field): `close` steps Customize out of the way
|
|
1146
|
+
* of the window a row opens. Absent with no field editor. */
|
|
1147
|
+
columnMenu?: (id: string, close: () => void) => ReactNode;
|
|
1148
|
+
/** Your field editor's rows under the columns (Add field, the archived fields). */
|
|
1149
|
+
footer?: ReactNode;
|
|
1150
|
+
};
|
|
1151
|
+
/** Customize's body, which your app draws (`CustomizeBody`): what Options opens on a computer and in the phone's Sheet,
|
|
1152
|
+
* in place of ViewKit's own Customize, wherever ViewKit draws Customize. A panel's body, as every panel's, holding
|
|
1153
|
+
* several values: each section is handed as data and written through its own change, and the sort, filter and group
|
|
1154
|
+
* are handed as their own slots' bodies are. The view's name, Copy link and Export are your app's to hand it. */
|
|
1155
|
+
export type ViewsCustomizeBodyProps = {
|
|
1156
|
+
/** Customize's name ("Customize view"): a phone's title, and the panel's name to a screen reader. */
|
|
1157
|
+
label: string;
|
|
1158
|
+
/** Where it stands; the app may hold it, so it survives the toolbar changing form. */
|
|
1159
|
+
page: ViewsCustomizePage;
|
|
1160
|
+
onPageChange: (page: ViewsCustomizePage) => void;
|
|
1161
|
+
/** The layouts and the layout in use's settings, where the list has layouts. */
|
|
1162
|
+
layout?: ViewsCustomizeLayout;
|
|
1163
|
+
/** The columns, where ViewKit's own Customize shows them. */
|
|
1164
|
+
columns?: ViewsCustomizeColumns;
|
|
1165
|
+
/** The filter as and/or groups, as `FilterBody` is handed it on a phone: the whole filter, 3 levels deep. Where a list's
|
|
1166
|
+
* filter is only per-field values (no filter tree), ViewKit draws its own Customize instead of the body. */
|
|
1167
|
+
filter?: Omit<ViewsFilterBodyProps, "form" | "onDone" | "actions">;
|
|
1168
|
+
/** The sort, as `SortBody` is handed it: a list with one sort as one rule, `max` 1. */
|
|
1169
|
+
sort?: Omit<ViewsSortBodyProps, "form" | "onDone" | "actions">;
|
|
1170
|
+
/** The group, as `GroupBody` is handed it. */
|
|
1171
|
+
group?: Omit<ViewsGroupBodyProps, "form" | "onDone" | "actions">;
|
|
1172
|
+
/** The list's own toggles, Show counts among them (read from the view). */
|
|
1173
|
+
toggles: readonly ViewsCustomizeToggle[];
|
|
1174
|
+
/** On a shared view: how far the reader has drifted from it, and Reset and Set default for everyone. */
|
|
1175
|
+
view?: {
|
|
1176
|
+
changes: number;
|
|
1177
|
+
/** Everyone's view moved after the reader's changes began. */
|
|
1178
|
+
stale: boolean;
|
|
1179
|
+
/** The reader may set what they see as everyone's. */
|
|
1180
|
+
canPublish: boolean;
|
|
1181
|
+
/** A write is in flight; the two verbs wait. */
|
|
1182
|
+
pending: boolean;
|
|
1183
|
+
onReset: () => void;
|
|
1184
|
+
onPublish: () => void;
|
|
1185
|
+
};
|
|
1186
|
+
/** The foot's words: `kit` for Clear and Save, `none` for none (they stand elsewhere); absent, Reset and Set default
|
|
1187
|
+
* for everyone. */
|
|
1188
|
+
foot?: "kit" | "none";
|
|
1189
|
+
/** With no shared view: the foot's Clear, taking the list back to its default. */
|
|
1190
|
+
onClear?: () => void;
|
|
1191
|
+
/** With no shared view, while anything is set: Clear all. */
|
|
1192
|
+
clearAll?: () => void;
|
|
1193
|
+
form: "computer" | "phone";
|
|
1194
|
+
/** The job is done and what holds it closes. */
|
|
1195
|
+
onDone: () => void;
|
|
1196
|
+
/** On a phone where the sheet's head doesn't draw it (`sheetActions: "bar"`): its ✕, closing it, for your body's own
|
|
1197
|
+
* head. Absent on a computer, and under `head`, where the sheet holds it. */
|
|
1198
|
+
actions?: ViewsSheetActions;
|
|
1199
|
+
};
|
|
1200
|
+
/** Where the editor panel's ✕ and ✓, and a toolbar panel's ✕, stand on a phone: `bar`, the panel's own inside the
|
|
1201
|
+
* Sheet; `head`, handed to the Sheet as `actions` for its own head, with none drawn inside. */
|
|
1202
|
+
export type ViewsSheetActionsPlace = "bar" | "head";
|
|
1203
|
+
/** How the grid opens its own menus (a column's, a footer's figure picker, a group's ⋯, Add column):
|
|
1204
|
+
* `popover`, ViewKit's rows in your `Popover`; `menu`, your `Menu`, handed rows as data. The row menu and
|
|
1205
|
+
* a command cell's menu always go through your `Menu`. */
|
|
1206
|
+
export type ViewsMenuRoute = "popover" | "menu";
|
|
1207
|
+
/** Who draws the buttons the grid draws itself (a group's fold and ⋯, "+ Add column", a row's ⋯, the name's actions,
|
|
1208
|
+
* an action column's buttons, a pick-list cell's ▾): `own`, ViewKit's, as on 0.5.0; `button`, your `Button`. */
|
|
1209
|
+
export type ViewsGridButtons = "own" | "button";
|
|
1210
|
+
/** Who draws a yes/no cell's box in the grid (the checkbox style): `own`, ViewKit's tick box in its own button, as
|
|
1211
|
+
* on 0.5.0; `checkbox`, your `Checkbox`, the box your rail draws. */
|
|
1212
|
+
export type ViewsGridCheckboxes = "own" | "checkbox";
|
|
1213
|
+
/** Who draws a field row's own buttons (its edit target, the verb trigger around a value, the lane's ▾, rich text's
|
|
1214
|
+
* Show more): `own`, ViewKit's, as on 0.5.0; `button`, your `Button`. */
|
|
1215
|
+
export type ViewsFieldRowButtons = "own" | "button";
|
|
1216
|
+
/** Who draws the buttons the toolbar's panels, the search's ✕ and the views row draw themselves: `own`, ViewKit's,
|
|
1217
|
+
* as on 0.6.0; `button`, your `Button`. */
|
|
1218
|
+
export type ViewsPanelButtons = "own" | "button";
|
|
1219
|
+
/** Who draws a field row's yes/no box (the checkbox style): `own`, ViewKit's tick box in its own button, as on 0.5.0;
|
|
1220
|
+
* `checkbox`, your `Checkbox`, a Tab stop as the row's own switch is. */
|
|
1221
|
+
export type ViewsFieldRowCheckboxes = "own" | "checkbox";
|
|
1222
|
+
/** Where the selection bar's fixed box sits on one form. `bottom` is a CSS length (default
|
|
1223
|
+
* `calc(1rem + env(safe-area-inset-bottom))`), `zIndex` its layer (default 50), and `className` the app's
|
|
1224
|
+
* own classes on the box (a hook its CSS reads, a rule that hides the bar). */
|
|
1225
|
+
export type ViewsBarPlacement = {
|
|
1226
|
+
bottom?: string;
|
|
1227
|
+
zIndex?: number;
|
|
1228
|
+
className?: string;
|
|
1229
|
+
};
|
|
1230
|
+
/** The selection bar, as the app places it: on the desktop an island, on the phone a pill whose Actions
|
|
1231
|
+
* open a sheet. `phoneQuery`, when handed, is the media query under which the bar is the phone's pill;
|
|
1232
|
+
* without it the bar is the pill wherever the provider's `desktopQuery` does not match. */
|
|
1233
|
+
export type ViewsSelectionBarSettings = {
|
|
1234
|
+
phoneQuery?: string;
|
|
1235
|
+
desktop?: ViewsBarPlacement;
|
|
1236
|
+
phone?: ViewsBarPlacement;
|
|
1237
|
+
/** Who draws the count chip that clears the selection on the desktop: `own` (the default), ViewKit's, as on 0.5.0;
|
|
1238
|
+
* `button`, your `Button`. */
|
|
1239
|
+
chip?: ViewsSelectionChip;
|
|
1240
|
+
};
|
|
1241
|
+
/** Who draws the selection bar's count chip (`selectionBar`'s `chip`): `own`, ViewKit's, as on 0.5.0; `button`, your
|
|
1242
|
+
* `Button`, handed `outline`, `sm`, its box in `className`, `data-slot`, `aria-label` and `disabled` while busy. */
|
|
1243
|
+
export type ViewsSelectionChip = "own" | "button";
|
|
1244
|
+
/** A phone sheet. `snap` is a hint: an app whose sheet has no snap points ignores it. */
|
|
1245
|
+
export type ViewsSheetProps = {
|
|
1246
|
+
open: boolean;
|
|
1247
|
+
onOpenChange: ViewsOpenChange;
|
|
1248
|
+
title?: ReactNode;
|
|
1249
|
+
/** The title in words, whenever the title is words: the sheet's accessible name, and the title of
|
|
1250
|
+
* a head that takes only text. Absent for a title that is something else (a header with a glyph). */
|
|
1251
|
+
label?: string;
|
|
1252
|
+
description?: string;
|
|
1253
|
+
/** The editor panel's ✕ and ✓ (a toolbar panel's ✕ alone; the sort editor's ✕, which takes its rules back, and
|
|
1254
|
+
* ✓), handed only when the provider's `sheetActions` is `head`: draw them in the sheet's head (no ✓ where no
|
|
1255
|
+
* `done` is handed), and `back` in ✕'s place while an editor's body stands on a step of its own.
|
|
1256
|
+
* With `bar`, the default, the panel draws them itself. */
|
|
1257
|
+
actions?: ViewsSheetActions;
|
|
1258
|
+
snap?: "full" | "half" | "peek" | "auto";
|
|
1259
|
+
className?: string;
|
|
1260
|
+
children: ReactNode;
|
|
1261
|
+
};
|
|
1262
|
+
/** A single-line text box. Forward every prop to the element, `ref` included: the editors focus the
|
|
1263
|
+
* box, place its caret and read its value through it. */
|
|
1264
|
+
export type ViewsInputProps = Omit<ComponentPropsWithRef<"input">, "children"> & {
|
|
1265
|
+
/** `bare`: the box draws no frame of its own (a grid cell, a panel that frames it). `field`: it
|
|
1266
|
+
* wears the app's field frame, as a form's input does. Default `bare`. */
|
|
1267
|
+
chrome?: "bare" | "field";
|
|
1268
|
+
};
|
|
1269
|
+
/** What the components map's `RowsWait` is handed: a grid's rows, and whether new ones are loading. */
|
|
1270
|
+
export type ViewsRowsWaitProps = {
|
|
1271
|
+
/** New rows are loading: `children` are the old ones, inert. Draw how they wait (a bar along the top, the rows
|
|
1272
|
+
* dimmed). False while nothing loads: draw `children` as they are. */
|
|
1273
|
+
pending: boolean;
|
|
1274
|
+
children: ReactNode;
|
|
1275
|
+
};
|
|
1276
|
+
export type ViewsComponents = {
|
|
1277
|
+
Button: ComponentType<ViewsButtonProps>;
|
|
1278
|
+
Popover: ComponentType<ViewsPopoverProps>;
|
|
1279
|
+
Tooltip: ComponentType<ViewsTooltipProps>;
|
|
1280
|
+
Checkbox: ComponentType<ViewsCheckboxProps>;
|
|
1281
|
+
Menu: ComponentType<ViewsMenuProps>;
|
|
1282
|
+
/** Optional: the editors' lists and the popover route's menus draw through it. An app that hands `Picker`
|
|
1283
|
+
* and sets `menus: "menu"` needs none. Reached without one, it throws an error naming it. */
|
|
1284
|
+
Command?: ViewsCommandParts;
|
|
1285
|
+
/** Optional: the date editor draws its month through it. Handed `DateBody`, it is never reached.
|
|
1286
|
+
* Reached without one, it throws an error naming it. */
|
|
1287
|
+
Calendar?: ComponentType<ViewsCalendarProps>;
|
|
1288
|
+
Collapse: ComponentType<ViewsCollapseProps>;
|
|
1289
|
+
Sheet: ComponentType<ViewsSheetProps>;
|
|
1290
|
+
/** The app's own icon component by the app's own names, for glyphs a host
|
|
1291
|
+
* declares (`rowIcon`, a binding's `icon`). It draws on the first paint,
|
|
1292
|
+
* because rows are measured as they mount: map the names from a static
|
|
1293
|
+
* record, never icons loaded on demand. Semantic glyphs use `icons`. */
|
|
1294
|
+
AppIcon: ComponentType<{
|
|
1295
|
+
name: string;
|
|
1296
|
+
className?: string;
|
|
1297
|
+
}>;
|
|
1298
|
+
/** The app's own markdown renderer, for rich text: the package draws no
|
|
1299
|
+
* markdown itself (it may import only React and zod). `source` is the stored
|
|
1300
|
+
* markdown, whole. */
|
|
1301
|
+
Markdown: ComponentType<{
|
|
1302
|
+
source: string;
|
|
1303
|
+
className?: string;
|
|
1304
|
+
}>;
|
|
1305
|
+
/** Optional: every editor's single-line box draws through it. Left out, the provider draws a
|
|
1306
|
+
* plain `<input>`. */
|
|
1307
|
+
Input?: ComponentType<ViewsInputProps>;
|
|
1308
|
+
/** Optional: a whole pick list your app draws. Handed one, the select, several-values, place and relation
|
|
1309
|
+
* editors open it, handed their rows as data; left out, they draw from `Command`. */
|
|
1310
|
+
Picker?: ComponentType<ViewsPickerProps>;
|
|
1311
|
+
/** Optional: a whole links body your app draws. Handed one, the set editor of a relation holding several records
|
|
1312
|
+
* whose field declares `links` opens it, handed each link's roles, the lead and the field's roles; left out, it
|
|
1313
|
+
* opens `Picker`, else its own list. */
|
|
1314
|
+
LinksBody?: ComponentType<ViewsLinksBodyProps>;
|
|
1315
|
+
/** Optional: a whole date body your app draws. Handed one, the date editor opens it; left out, it draws
|
|
1316
|
+
* its own line, quick days and time around `Calendar`. */
|
|
1317
|
+
DateBody?: ComponentType<ViewsDateBodyProps>;
|
|
1318
|
+
/** Optional: a whole body for a field made of parts your app draws. Handed one, the name, place and range
|
|
1319
|
+
* editors open it; left out, they draw their own boxes. */
|
|
1320
|
+
PartsBody?: ComponentType<ViewsPartsBodyProps>;
|
|
1321
|
+
/** Optional: a whole body for a field holding several emails, phones, links or domains, which your app draws. Handed
|
|
1322
|
+
* one, the value list editor opens it; left out, it draws its own rows. */
|
|
1323
|
+
ValuesBody?: ComponentType<ViewsValuesBodyProps>;
|
|
1324
|
+
/** Optional: a whole body for a field typed as one string, which your app draws. Handed one, the text editors open
|
|
1325
|
+
* it; left out, they draw their own box. */
|
|
1326
|
+
TextBody?: ComponentType<ViewsTextBodyProps>;
|
|
1327
|
+
/** Optional: a whole body for a number, money or a percent, which your app draws. Handed one, the number editors open
|
|
1328
|
+
* it; left out, they draw their own box. */
|
|
1329
|
+
NumberBody?: ComponentType<ViewsNumberBodyProps>;
|
|
1330
|
+
/** Optional: the sort editor's whole body, which your app draws. Handed one, the sort pill opens it on a computer and
|
|
1331
|
+
* in the phone's Sheet, handed the rules as data; left out, it opens ViewKit's own sort editor. */
|
|
1332
|
+
SortBody?: ComponentType<ViewsSortBodyProps>;
|
|
1333
|
+
/** Optional: the filter editor's whole body, which your app draws. Handed one, an advanced filter's pill opens it on a
|
|
1334
|
+
* computer and Filter opens it in the phone's Sheet, handed the level as data; left out, they open ViewKit's own
|
|
1335
|
+
* filter editor. */
|
|
1336
|
+
FilterBody?: ComponentType<ViewsFilterBodyProps>;
|
|
1337
|
+
/** Optional: the field list's whole body, which your app draws. Handed one, every sort and filter field list ViewKit
|
|
1338
|
+
* opens opens it, handed the fields as data; left out, ViewKit draws its own list. */
|
|
1339
|
+
FieldsBody?: ComponentType<ViewsFieldsBodyProps>;
|
|
1340
|
+
/** Optional: a filter rule's way and value, which your app draws. Handed one, a rule's way and value open it on the
|
|
1341
|
+
* bar and in ViewKit's own filter editor, handed the rule as data; left out, they open ViewKit's ways menu and value
|
|
1342
|
+
* body. */
|
|
1343
|
+
FilterPartBody?: ComponentType<ViewsFilterPartBodyProps>;
|
|
1344
|
+
/** Optional: wraps a grid's rows. Handed one, a grid that already shows rows keeps them on screen, inert, as its
|
|
1345
|
+
* children while new ones load, and hands it `pending`; left out, the grid draws Loading in place of its body. A
|
|
1346
|
+
* grid with no rows yet draws Loading either way. Draw it as a block in flow that neither scrolls nor clips. */
|
|
1347
|
+
RowsWait?: ComponentType<ViewsRowsWaitProps>;
|
|
1348
|
+
/** Optional: the quick filters' whole body, which your app draws. Handed one, the quick filters' button opens it on
|
|
1349
|
+
* a computer and in the phone's Sheet, handed the fields, their values and the hold as data; left out, it opens
|
|
1350
|
+
* ViewKit's own quick-filters panel. */
|
|
1351
|
+
QuickFiltersBody?: ComponentType<ViewsQuickFiltersBodyProps>;
|
|
1352
|
+
/** Optional: the views list's whole body, which your app draws. Handed one, the view picker's chip opens it on a
|
|
1353
|
+
* computer and in the phone's Sheet, handed the views as data; left out, it opens ViewKit's own list. */
|
|
1354
|
+
ViewsListBody?: ComponentType<ViewsViewsListBodyProps>;
|
|
1355
|
+
/** Optional: the group editor's whole body, which your app draws. Handed one, Customize's Group opens it on a
|
|
1356
|
+
* computer and in the phone's Sheet, handed the group as data; left out, it opens ViewKit's own group pages. */
|
|
1357
|
+
GroupBody?: ComponentType<ViewsGroupBodyProps>;
|
|
1358
|
+
/** Optional: Customize's whole body, which your app draws. Handed one, Options opens it on a computer and in the
|
|
1359
|
+
* phone's Sheet, and so does anything else that draws ViewKit's Customize, handed the view's settings as data; left
|
|
1360
|
+
* out, it opens ViewKit's own Customize. */
|
|
1361
|
+
CustomizeBody?: ComponentType<ViewsCustomizeBodyProps>;
|
|
1362
|
+
/** Optional: the toolbar's search box, which your app draws. Handed one, the search opens it in place of its own
|
|
1363
|
+
* field, on a computer and on a phone; left out, ViewKit draws its own. */
|
|
1364
|
+
SearchField?: ComponentType<ViewsSearchFieldProps>;
|
|
1365
|
+
};
|
|
1366
|
+
/** The map as the views read it: `Input`, `Command` and `Calendar` always filled, the app's or the
|
|
1367
|
+
* package's own; `Picker`, `LinksBody`, `DateBody`, `PartsBody`, `ValuesBody`, `TextBody`, `NumberBody`, `SortBody`, `FilterBody`,
|
|
1368
|
+
* `FieldsBody`, `FilterPartBody`, `RowsWait`, `QuickFiltersBody`, `ViewsListBody`, `GroupBody`, `CustomizeBody` and
|
|
1369
|
+
* `SearchField` as the app handed them. */
|
|
1370
|
+
export type ViewsResolvedComponents = ViewsComponents & {
|
|
1371
|
+
Input: ComponentType<ViewsInputProps>;
|
|
1372
|
+
Command: ViewsCommandParts;
|
|
1373
|
+
Calendar: ComponentType<ViewsCalendarProps>;
|
|
1374
|
+
};
|
|
1375
|
+
export {};
|