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,310 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { DisplayCurrency } from "../../fields/currency.js";
|
|
3
|
+
import type { ViewsRowMenuItem } from "../../atoms/types.js";
|
|
4
|
+
import type { ViewsMenuItem } from "../../provider/components.js";
|
|
5
|
+
import type { FieldMenus } from "../../fields/menus.js";
|
|
6
|
+
import type { ListGroup } from "../../grouping/types.js";
|
|
7
|
+
import type { ListSelectionConfig } from "../../selection/types.js";
|
|
8
|
+
import type { ListSettingsConfig } from "../../model/column-capabilities.js";
|
|
9
|
+
import type { ListAggregateKind, ListCellAction, ListColumn, ListOptionColorOverrides, ListRelationValue, ListSelectColor } from "../../model/column-schema.js";
|
|
10
|
+
import type { ListDateStyle, ListDateStyleOverrides, ListDurationStyle, ListDurationStyleOverrides, ListNumberFormatOverrides, ListPercentDisplayOverrides, ListShowTimeOverrides } from "../../model/column-format.js";
|
|
11
|
+
import type { ListColumnState, ListColumnsConfig } from "../../model/column-state.js";
|
|
12
|
+
import type { PercentDisplay } from "viewkitjs/fields";
|
|
13
|
+
import type { ListGroupSummaryPart } from "../../model/preferences.js";
|
|
14
|
+
import type { ListRowIconAccessor } from "../../model/row-icon.js";
|
|
15
|
+
import type { GridRowOpenedFrom } from "../core/row-opened-from.js";
|
|
16
|
+
import type { GridCellCommitFn, GridCellsCommitFn } from "../core/commit-model.js";
|
|
17
|
+
import type { GridGroupByState, GridSortState } from "./GridColumnMenu.js";
|
|
18
|
+
import type { GridGroupSortOption } from "./GridGroupMenu.js";
|
|
19
|
+
import type { GridGroupMenuPart } from "./grid-group-menu-parts.js";
|
|
20
|
+
/** A group count's noun, singular and plural ("company", "companies"): "2 companies". None: a bare
|
|
21
|
+
* count. */
|
|
22
|
+
export type GroupCountNoun = {
|
|
23
|
+
one: string;
|
|
24
|
+
other: string;
|
|
25
|
+
};
|
|
26
|
+
/** A figure a group's band shows that the grid works out: a column and a kind ("value", "sum"), computed and
|
|
27
|
+
* written as that column's footer writes them (its format, its currency, a paged group's figure from the
|
|
28
|
+
* source), or the footer cell you draw yourself for that column (`renderAggregate`). */
|
|
29
|
+
export type GridDeclaredFigure = {
|
|
30
|
+
/** The part that turns it on. */
|
|
31
|
+
part: ListGroupSummaryPart;
|
|
32
|
+
/** What the band and the menu call it; the column's header when left out. */
|
|
33
|
+
label?: ReactNode;
|
|
34
|
+
/** The column's id. */
|
|
35
|
+
column: string;
|
|
36
|
+
kind: ListAggregateKind;
|
|
37
|
+
};
|
|
38
|
+
/** A figure a group's band shows that you draw yourself: the part that turns it on, its column's header (what
|
|
39
|
+
* the menu and the band call it), and how it draws for a group. */
|
|
40
|
+
export type GridDrawnFigure<Row> = {
|
|
41
|
+
part: ListGroupSummaryPart;
|
|
42
|
+
label: ReactNode;
|
|
43
|
+
render: (group: ListGroup<Row>) => ReactNode;
|
|
44
|
+
};
|
|
45
|
+
/** One figure a group's band can show: declared by its column and kind, or drawn by you. */
|
|
46
|
+
export type GridGroupFigure<Row> = GridDeclaredFigure | GridDrawnFigure<Row>;
|
|
47
|
+
/** A view's identity: when it changes, the whole body is replaced, and the grid shows its wait for
|
|
48
|
+
* one commit first. */
|
|
49
|
+
type GridTransitionKey = string | number | boolean | null | undefined;
|
|
50
|
+
/** A grid in pages: the page on screen, its size, the view's count, and what moving does. */
|
|
51
|
+
export type GridPages = {
|
|
52
|
+
/** The page on screen, from 1. */
|
|
53
|
+
page: number;
|
|
54
|
+
/** How many rows a page holds. */
|
|
55
|
+
size: number;
|
|
56
|
+
/** How many rows the view keeps (the translator's `totalQuery`). */
|
|
57
|
+
total: number;
|
|
58
|
+
/** False when `total` is a capped count: the pager reads "of 1,000+". Default true. */
|
|
59
|
+
exact?: boolean;
|
|
60
|
+
/** The page-size pick's choices. Default 25, 50 and 100. */
|
|
61
|
+
sizes?: readonly number[];
|
|
62
|
+
onPage: (page: number) => void;
|
|
63
|
+
onSize: (size: number) => void;
|
|
64
|
+
};
|
|
65
|
+
export type GridTableProps<Row> = {
|
|
66
|
+
/** View/filter identity that replaces the whole collection body. */
|
|
67
|
+
transitionKey?: GridTransitionKey;
|
|
68
|
+
transitionPending?: boolean;
|
|
69
|
+
transitionLabel?: string;
|
|
70
|
+
groups: ListGroup<Row>[];
|
|
71
|
+
grouped: boolean;
|
|
72
|
+
getRowId: (row: Row) => string;
|
|
73
|
+
columns: ListColumn<Row>[];
|
|
74
|
+
isCollapsed?: (key: string) => boolean;
|
|
75
|
+
onToggleGroup?: (key: string) => void;
|
|
76
|
+
renderGroupLabel?: (group: ListGroup<Row>) => ReactNode;
|
|
77
|
+
/** Hide a group in the view, from its band's menu. Absent where a
|
|
78
|
+
* list cannot hide one. */
|
|
79
|
+
onHideGroup?: (key: string) => void;
|
|
80
|
+
/** Which parts a group band's ⋯ menu holds: `"select"` (Select all in group, leading the menu), `"sort"`,
|
|
81
|
+
* `"figures"` (the count and each figure, turned on and off) and `"hide"`. Each shows only when you also pass
|
|
82
|
+
* what it needs: `selection` for Select; `sort` with `sortOptions`; `groupFigures` with `onGroupSummaryChange`;
|
|
83
|
+
* `onHideGroup`. Select is never in the menu unless you name it here. On the `popover` route the sort list then always
|
|
84
|
+
* searches through your `Command`, at any count. Left out, the ⋯ opens for sort or Hide, carries the figure toggles
|
|
85
|
+
* with them, and searches past eight sort choices. On the `menu` route (the provider's `menus`) the sort choices
|
|
86
|
+
* open beside the menu with no search, either way. */
|
|
87
|
+
groupMenu?: readonly GridGroupMenuPart[];
|
|
88
|
+
/** Source-paged group continuation, rendered after this group's loaded rows. */
|
|
89
|
+
renderGroupFooter?: (group: ListGroup<Row>) => ReactNode;
|
|
90
|
+
renderAggregate?: (columnId: string, group: ListGroup<Row>) => ReactNode;
|
|
91
|
+
countOf?: (group: ListGroup<Row>) => number;
|
|
92
|
+
/** What opening a row does (a click on the title's text; a tap on the title's cell on a phone). `from` brings the
|
|
93
|
+
* focus back to the cell it was opened from once what it opened closes: call `from.focus()`, or hand
|
|
94
|
+
* `from.element` to a dialog's final-focus option. An app that has no use for it declares one parameter. */
|
|
95
|
+
onOpenRow: (row: Row, from: GridRowOpenedFrom) => void;
|
|
96
|
+
/** Warm the row detail only from an actual primary pointer intent. */
|
|
97
|
+
onPrefetchRow?: (row: Row) => void;
|
|
98
|
+
/**
|
|
99
|
+
* Open the entity a `relation` cell points at.
|
|
100
|
+
*
|
|
101
|
+
* ONE handler for the whole grid, mirroring `onOpenRow`, rather than a
|
|
102
|
+
* callback per column: column definitions stay declarative (a builder that
|
|
103
|
+
* needs a bag of callbacks is telling you those cells want to be real typed
|
|
104
|
+
* columns), and a stable array memoizes properly.
|
|
105
|
+
*
|
|
106
|
+
* The host gets the resolved value back, so `value.entity` is what tells it
|
|
107
|
+
* WHICH drawer to open — the grid deliberately knows nothing about routes or
|
|
108
|
+
* drawers. Omit it and relation cells render inert.
|
|
109
|
+
*/
|
|
110
|
+
onOpenRelation?: (value: ListRelationValue, columnId: string, row: Row) => void;
|
|
111
|
+
/**
|
|
112
|
+
* This app's glyph for an entity KIND, used by every `relation` cell that
|
|
113
|
+
* doesn't carry its own. Kept as a resolver so the grid never learns one
|
|
114
|
+
* application's vocabulary — see `GridCellOptions.entityIcon`.
|
|
115
|
+
*/
|
|
116
|
+
entityIcon?: (kind: string | undefined) => ReactNode;
|
|
117
|
+
/**
|
|
118
|
+
* The verbs a `command` column's cell opens, by field key (spec §5: "every
|
|
119
|
+
* surface opens the verb menu, the host supplies the verbs"). The SAME map a
|
|
120
|
+
* host hands the drawer's `FieldPanel`, so Mark won / Mark lost / Reopen are
|
|
121
|
+
* declared once and reached from the panel, the grid and the card alike.
|
|
122
|
+
* Omit it and a command column is a read-only badge.
|
|
123
|
+
*/
|
|
124
|
+
commands?: FieldMenus<Row>;
|
|
125
|
+
rowHref?: (row: Row) => string | undefined;
|
|
126
|
+
/** The row's action items. Named to match `ListViewProps.rowMenu` so a
|
|
127
|
+
* dual-renderer page passes ONE builder to both mounts. The grid has no
|
|
128
|
+
* kebab — these surface on right-click and in the row's ⋯ tail button — but
|
|
129
|
+
* the source of the items is the same, and a page that filled ListView's
|
|
130
|
+
* `rowMenu` and forgot the grid's used to silently lose every row action in
|
|
131
|
+
* the grid look. */
|
|
132
|
+
rowMenu?: (row: Row) => ViewsRowMenuItem[];
|
|
133
|
+
/** Override when the context menu must differ from `rowMenu`. Defaults to it. */
|
|
134
|
+
contextMenu?: (row: Row) => ViewsRowMenuItem[];
|
|
135
|
+
rowClassName?: (row: Row) => string | undefined;
|
|
136
|
+
onRowDelete?: (id: string) => Promise<void>;
|
|
137
|
+
deleteLabel?: string;
|
|
138
|
+
/** The name's actions: buttons on the title cell of the row under the pointer, and rows of each row's menu (after
|
|
139
|
+
* Select) for those that apply to it, so a key reaches them. */
|
|
140
|
+
rowActions?: ListCellAction<Row>[];
|
|
141
|
+
/** The leading glyph in the title cell, as a DESCRIPTOR — the grid decides
|
|
142
|
+
* size and color from it; one carrying an `avatar` draws the app's Avatar atom. See `ListRowIconAccessor`. */
|
|
143
|
+
rowIcon?: ListRowIconAccessor<Row>;
|
|
144
|
+
showRowIcon?: boolean;
|
|
145
|
+
selection?: ListSelectionConfig;
|
|
146
|
+
loadMore?: {
|
|
147
|
+
hasMore: boolean;
|
|
148
|
+
onReveal: () => void;
|
|
149
|
+
label?: string;
|
|
150
|
+
};
|
|
151
|
+
/** Rows in pages: you hand one page's rows, and a pager under the grid shows where you are and moves between pages.
|
|
152
|
+
* `loadMore` is then not drawn, picks clear when the page or its size changes, and the footer shows only the figures
|
|
153
|
+
* you hand in a group's `figures` (a page's own sum is not the view's). A grouped grid draws no pager and keeps each
|
|
154
|
+
* group's own `loadMore` and `renderGroupFooter`. Absent (the default): rows arrive as you scroll. */
|
|
155
|
+
pages?: GridPages;
|
|
156
|
+
emptyState?: ReactNode;
|
|
157
|
+
/** The reader's default currency: a money column read in Original totals in it. The host's
|
|
158
|
+
* answer (the portal: the reader's preference); default `DEFAULT_DISPLAY_CURRENCY`. */
|
|
159
|
+
defaultCurrency?: DisplayCurrency;
|
|
160
|
+
/** Rules between the columns: the rows' always, the header's too with `headerVerticalBorders`. Default true. */
|
|
161
|
+
verticalBorders?: boolean;
|
|
162
|
+
/** The header's columns follow `verticalBorders` as the rows' do, the last bare. Default false: the header draws no
|
|
163
|
+
* line between its columns unless the app asks. */
|
|
164
|
+
headerVerticalBorders?: boolean;
|
|
165
|
+
/** The columns share the grid's whole width, each growing in proportion to its own width and never below it; a
|
|
166
|
+
* column the person resized keeps its width, and one that declares `grid.maxWidth` too. A table already wider than
|
|
167
|
+
* the grid is unchanged and scrolls sideways. Default false: every column stands at its own width. */
|
|
168
|
+
fillWidth?: boolean;
|
|
169
|
+
sort?: GridSortState;
|
|
170
|
+
/** A sorted column's header wears `icons.sortAsc` or `icons.sortDesc` after its name. Default false. */
|
|
171
|
+
sortMark?: boolean;
|
|
172
|
+
/** The view's group, for the header menu's Group by / Ungroup — present on
|
|
173
|
+
* view-backed lists only, the way `sort` is. */
|
|
174
|
+
groupBy?: GridGroupByState;
|
|
175
|
+
sortOptions?: GridGroupSortOption[];
|
|
176
|
+
/** Which figures ride beside a group name — a set, not a choice. */
|
|
177
|
+
groupSummary?: ListGroupSummaryPart[];
|
|
178
|
+
aggregates?: Record<string, ListAggregateKind>;
|
|
179
|
+
onAggregateChange?: (columnId: string, kind: ListAggregateKind) => void;
|
|
180
|
+
/** A saved view can change aggregate choices only for field-backed columns. */
|
|
181
|
+
viewBacked?: boolean;
|
|
182
|
+
onGroupSummaryChange?: (part: ListGroupSummaryPart, next: boolean) => void;
|
|
183
|
+
/** The figures a group header can show, in the list's order: each declared by its column and kind, or drawn
|
|
184
|
+
* by you. */
|
|
185
|
+
groupFigures?: GridGroupFigure<Row>[];
|
|
186
|
+
/** The group count's noun: "2 companies". None: a bare count. */
|
|
187
|
+
countNoun?: GroupCountNoun;
|
|
188
|
+
optionColors?: ListOptionColorOverrides;
|
|
189
|
+
onOptionColorChange?: (key: string, value: string, color: ListSelectColor | null) => void;
|
|
190
|
+
dateStyles?: ListDateStyleOverrides;
|
|
191
|
+
onDateStyleChange?: (key: string, style: ListDateStyle) => void;
|
|
192
|
+
durationStyles?: ListDurationStyleOverrides;
|
|
193
|
+
onDurationStyleChange?: (key: string, style: ListDurationStyle) => void;
|
|
194
|
+
numberFormats?: ListNumberFormatOverrides;
|
|
195
|
+
/** `decimals: null` = the field's own (Automatic). */
|
|
196
|
+
onNumberFormatChange?: (key: string, patch: {
|
|
197
|
+
decimals?: number | null;
|
|
198
|
+
currency?: string;
|
|
199
|
+
}) => void;
|
|
200
|
+
showTimeOverrides?: ListShowTimeOverrides;
|
|
201
|
+
onShowTimeChange?: (key: string, show: boolean) => void;
|
|
202
|
+
percentDisplays?: ListPercentDisplayOverrides;
|
|
203
|
+
onPercentDisplayChange?: (key: string, display: PercentDisplay) => void;
|
|
204
|
+
/** Whether a format knob can be stored (decimals, a date's style, a percent's display, an option's colour):
|
|
205
|
+
* false hides them from the column menu, where there is nothing to store them against. A reader's own
|
|
206
|
+
* currency reading stays. Default true. */
|
|
207
|
+
formatsWritable?: boolean;
|
|
208
|
+
/** The host's own "+ Add column", the header row's last cell (a field editor's, for an admin). `null` draws none,
|
|
209
|
+
* and the tail keeps no room for one; nothing, `undefined`, `false` or `""` draw the grid's own: the columns the
|
|
210
|
+
* view hides. The table asks it whether to size the tail and the header asks it for the cell, so its answer is a
|
|
211
|
+
* plain function of `columns`, never a hook's. */
|
|
212
|
+
renderAddColumn?: (columns: ListColumnsConfig) => ReactNode;
|
|
213
|
+
/** Draw "+ Add column" on a phone too, its list in the Sheet: where a person brings back a column they hid there.
|
|
214
|
+
* Off by default: a phone's header ends with nothing, an app's own column list being the way in. */
|
|
215
|
+
addColumnOnPhone?: boolean;
|
|
216
|
+
/** Where "+ Add column" stands: the header row's last cell (`"end"`, the default), or a lone + at the right edge of
|
|
217
|
+
* the title column's header (`"title"`), where it stays in reach while the columns scroll; the tail then keeps no
|
|
218
|
+
* room for it. With no title column shown it stands at the end. A phone still shows it only with
|
|
219
|
+
* `addColumnOnPhone`, and an app's own `renderAddColumn` is drawn there as it renders. */
|
|
220
|
+
addColumnAt?: "end" | "title";
|
|
221
|
+
/** On a phone (below the provider's `desktopQuery`), rows are picked as a phone's apps pick them: a long press on a row
|
|
222
|
+
* (touch or pen) ticks it and starts picking; while picking, every row shows its box inside the name column, before
|
|
223
|
+
* its picture, and a tap toggles a row; a grouped grid shows those boxes at all times, its titles row's box picking
|
|
224
|
+
* its rows. An ungrouped grid's header then holds no box. Needs `selection`. Off by default: on a phone the boxes
|
|
225
|
+
* stay in the rail, and nothing answers a long press. A desktop is unchanged either way. */
|
|
226
|
+
phonePicking?: boolean;
|
|
227
|
+
/** A column per part of a name, a place or a range (a place's country, a name's family name, a range's low end),
|
|
228
|
+
* offered under its field in "+ Add column" and hidden until picked. Its id is `partKey(columnId, part)`, the key
|
|
229
|
+
* its Filter row has; it reads, sorts (its sort value is `partKey(fieldKey, part)`, which `parsePartKey` turns into
|
|
230
|
+
* a sort's `fieldKey` and `by`), copies, edits and pastes as its part; an edit commits the whole column's id and
|
|
231
|
+
* the whole value with that part replaced, locked, refused and limited as its whole. Off by default. */
|
|
232
|
+
parts?: boolean;
|
|
233
|
+
/** The host's rows in a column's menu for the column's field, above Hide (a field editor's Edit field and
|
|
234
|
+
* Archive field); `close` shuts the menu. Null for a field the host adds nothing to. On the `menu` route (the
|
|
235
|
+
* provider's `menus`) it isn't drawn: hand `columnMenuItems`. */
|
|
236
|
+
renderColumnMenuRows?: (fieldKey: string, close: () => void) => ReactNode;
|
|
237
|
+
/** The host's rows for a column's field on the `menu` route, as data, drawn just above Hide; null or an empty
|
|
238
|
+
* list for a field the host adds nothing to. Their keys must not reuse the package's own (`sort-asc`,
|
|
239
|
+
* `hide-column` and the rest). It is called while the grid renders, for every column: keep it pure and cheap.
|
|
240
|
+
* On the `popover` route `renderColumnMenuRows` draws them instead. */
|
|
241
|
+
columnMenuItems?: (fieldKey: string) => ViewsMenuItem[] | null;
|
|
242
|
+
columnState?: ListColumnState;
|
|
243
|
+
onColumnStateChange?: (next: ListColumnState) => void;
|
|
244
|
+
scale?: number;
|
|
245
|
+
onCellCommit?: GridCellCommitFn<Row>;
|
|
246
|
+
onCellsCommit?: GridCellsCommitFn<Row>;
|
|
247
|
+
/** Per-user "Freeze identity columns" toggle: pins every column through the
|
|
248
|
+
* title to the left edge while the rest scrolls under them. */
|
|
249
|
+
freezeIdentity?: boolean;
|
|
250
|
+
/** Per-user "Show checkboxes always" toggle: holds the checkbox rail open
|
|
251
|
+
* instead of revealing it on hover. Same state a live selection forces. */
|
|
252
|
+
alwaysCheckboxes?: boolean;
|
|
253
|
+
/** A grouped grid draws one row of column names, pinned at the top of its scroll area over every group, in place
|
|
254
|
+
* of each group's own; each group's bar pins under it, and the row's checkbox picks every row. Off by default:
|
|
255
|
+
* each group draws its own column names, with the box that picks its rows. An ungrouped grid draws one row
|
|
256
|
+
* either way. */
|
|
257
|
+
oneHeader?: boolean;
|
|
258
|
+
/** The footer pins at the foot of the grid's scroll area, `--vk-scroll-inset-bottom` above its edge (and, while rows are
|
|
259
|
+
* selected, a step above the bar `renderBar` draws, measured where it stands; on the foot when it draws none), painted
|
|
260
|
+
* the ground, and the rows pass under it. An ungrouped grid's footer
|
|
261
|
+
* stands at the foot even when its rows don't fill the area (in pages too, just above the pager); a grouped grid's
|
|
262
|
+
* footers each pin while their group's rows run past the foot and close their group otherwise. Off by default: the
|
|
263
|
+
* footer stands after the last row and scrolls with the rows. */
|
|
264
|
+
pinFooter?: boolean;
|
|
265
|
+
/** Workspace-settings capability config for THIS list (table read-only / per-column
|
|
266
|
+
* locks), inherited by every user. The CONFIG layer of
|
|
267
|
+
* `declaration → config → prefs` — it may only SUBTRACT from what the
|
|
268
|
+
* columns declare. UI constraint only; the host's API guards its own writes. */
|
|
269
|
+
listConfig?: ListSettingsConfig;
|
|
270
|
+
/** A row drawn as under the pointer, by its id: its tint, its rail's box, its ⋯ and the name's actions, as a real
|
|
271
|
+
* hover draws them, and `data-hovered` on the row. A real pointer still hovers any row beside it. Every copy of a
|
|
272
|
+
* record a grouping draws twice. Drawn, as a hover is, only on a screen whose pointer hovers (`any-hover`). Absent
|
|
273
|
+
* or null: none. */
|
|
274
|
+
hoveredRow?: string | null;
|
|
275
|
+
/** Told the row a person's pointer moves onto (its id) and off (null), on a screen whose pointer hovers. */
|
|
276
|
+
onHoveredRowChange?: (id: string | null) => void;
|
|
277
|
+
/** A cell drawn as picked, and its ranges, as a person's click and drag pick them; applied each time its value
|
|
278
|
+
* changes, on the first copy of a record a grouping draws twice, without taking the page's focus. A person's
|
|
279
|
+
* gestures then move it as always. While it is given (null included), a press outside the grid lets go of nothing:
|
|
280
|
+
* the app holds the pick; a press on the grid's own ground (below the rows, past the last column) lets it go and is
|
|
281
|
+
* told null, as Escape is. A pick whose row the grid stops drawing (a filter, a folded group) is no person's change:
|
|
282
|
+
* it is not told, the app's value stays the pick, and it is placed again when its row is drawn. Absent: a press
|
|
283
|
+
* outside clears it, and a pick whose row is gone is told null, as always. */
|
|
284
|
+
cellPick?: GridCellPick | null;
|
|
285
|
+
/** Told each change of the pick a person makes (a click, a drag, a key, Escape): the new pick, or null. */
|
|
286
|
+
onCellPickChange?: (pick: GridCellPick | null) => void;
|
|
287
|
+
/** The column whose menu is open, by its id, on the first row of column names; null: none. While it is given, the
|
|
288
|
+
* menus open and close only as it says: a person's press on a header, a row that closes the menu or a press outside
|
|
289
|
+
* is told through `onOpenColumnMenuChange`, and the app decides. Absent: a press opens and closes them, as always. */
|
|
290
|
+
openColumnMenu?: string | null;
|
|
291
|
+
/** Told the column whose menu a person opens (its id), or null when they close it. While `openColumnMenu` is given,
|
|
292
|
+
* each change is told once, when the press that made it ends: a press on the open menu's own header tells one null,
|
|
293
|
+
* and a press on another column's header tells that column alone. */
|
|
294
|
+
onOpenColumnMenuChange?: (columnId: string | null) => void;
|
|
295
|
+
};
|
|
296
|
+
/** One cell, by its row's id and its column's id. */
|
|
297
|
+
export type GridCellAt = {
|
|
298
|
+
row: string;
|
|
299
|
+
column: string;
|
|
300
|
+
};
|
|
301
|
+
/** A grid's picked cell and its ranges, each from one corner to the other; the last range is the active one, which
|
|
302
|
+
* carries the fill dot and the verbs. A plain picked cell is its own one-cell range, or none. */
|
|
303
|
+
export type GridCellPick = {
|
|
304
|
+
cell: GridCellAt;
|
|
305
|
+
ranges?: readonly {
|
|
306
|
+
from: GridCellAt;
|
|
307
|
+
to: GridCellAt;
|
|
308
|
+
}[];
|
|
309
|
+
};
|
|
310
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ComponentType, type RefObject } from "react";
|
|
2
|
+
import type { ViewsRowsWaitProps } from "../../provider/components.js";
|
|
3
|
+
/**
|
|
4
|
+
* A grid whose rows wait under the app's `RowsWait` (`GridTable.tsx`): the held grid stays mounted, inert, until the
|
|
5
|
+
* new rows mount fresh. `waiting` is true while it holds, so the grid's window listeners (paste, undo and redo) leave
|
|
6
|
+
* the held rows alone; the held grid hands its leave scope's `leave` to `setLeave`, asked as the wait starts (it
|
|
7
|
+
* returns the undo). Neither redraws the held rows. Absent outside a `RowsWait`. Internal: no package door exports it.
|
|
8
|
+
*/
|
|
9
|
+
export type GridWait = {
|
|
10
|
+
waiting: RefObject<boolean>;
|
|
11
|
+
setLeave: (leave: () => void) => () => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const GridWaitContext: import("react").Context<GridWait | null>;
|
|
14
|
+
/**
|
|
15
|
+
* The app's `RowsWait` and whether the held rows wait: read by the grid's body alone (`GridBody`), which wraps its rows
|
|
16
|
+
* in the slot, so a wait's start redraws the slot and none of the rows. Absent without a `RowsWait`. Internal.
|
|
17
|
+
*/
|
|
18
|
+
export type GridRowsSlot = {
|
|
19
|
+
RowsWait: ComponentType<ViewsRowsWaitProps>;
|
|
20
|
+
pending: boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare const GridRowsSlotContext: import("react").Context<GridRowsSlot | null>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type RefCallback, type RefObject } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The room the selection bar takes at the foot of the grid's scroll area, in px, while rows are picked: from the
|
|
4
|
+
* area's foot up to the bar's top, 0 when no bar stands there.
|
|
5
|
+
*
|
|
6
|
+
* The bar is whatever `renderBar` draws, found where ViewKit places it: the frame's children after its end guard (an
|
|
7
|
+
* app's bar drawn in the frame; the rail probe and an empty box fall out at zero height), and the box ViewKit's own
|
|
8
|
+
* bar hands through `BarRoomContext` (portalled to the body). A bar portalled elsewhere isn't seen.
|
|
9
|
+
*
|
|
10
|
+
* A bar counts where it stands over the area's lower half and overlaps it sideways. Its top is read without its own
|
|
11
|
+
* transform (its offset parent's top and `offsetTop`), so a bar rising into place counts where it lands. The foot is
|
|
12
|
+
* the area's box less a sideways scrollbar, and no lower than the window's, so a grid the page scrolls isn't lifted
|
|
13
|
+
* by the page's length. Read before paint, and again when the area or a bar changes size, a bar comes or goes, the
|
|
14
|
+
* page scrolls (ViewKit's bar is fixed to the window) or the window resizes.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useBarRoom(selecting: boolean, rootRef: RefObject<HTMLDivElement | null>, endGuardRef: RefObject<HTMLSpanElement | null>): {
|
|
17
|
+
room: number;
|
|
18
|
+
ownBarRef: RefCallback<HTMLElement>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useCallback, useLayoutEffect, useRef, useState } from "react";
|
|
3
|
+
export function useBarRoom(selecting, rootRef, endGuardRef) {
|
|
4
|
+
const [room, setRoom] = useState(0);
|
|
5
|
+
const own = useRef(new Set());
|
|
6
|
+
const watch = useRef(null);
|
|
7
|
+
const ownBarRef = useCallback((el) => {
|
|
8
|
+
if (!el)
|
|
9
|
+
return;
|
|
10
|
+
own.current.add(el);
|
|
11
|
+
watch.current?.(el);
|
|
12
|
+
return () => {
|
|
13
|
+
own.current.delete(el);
|
|
14
|
+
};
|
|
15
|
+
}, []);
|
|
16
|
+
useLayoutEffect(() => {
|
|
17
|
+
if (!selecting)
|
|
18
|
+
return;
|
|
19
|
+
const root = rootRef.current;
|
|
20
|
+
if (!root)
|
|
21
|
+
return;
|
|
22
|
+
const bars = () => {
|
|
23
|
+
const found = [...own.current].filter((el) => el.isConnected);
|
|
24
|
+
for (let el = endGuardRef.current?.nextElementSibling; el; el = el.nextElementSibling) {
|
|
25
|
+
if (el instanceof HTMLElement)
|
|
26
|
+
found.push(el);
|
|
27
|
+
}
|
|
28
|
+
return found;
|
|
29
|
+
};
|
|
30
|
+
const read = () => {
|
|
31
|
+
const area = root.querySelector('[data-slot="vk-grid-scroll"]');
|
|
32
|
+
setRoom(area ? roomOf(area, bars()) : 0);
|
|
33
|
+
};
|
|
34
|
+
let raf = 0;
|
|
35
|
+
const schedule = () => {
|
|
36
|
+
if (!raf) {
|
|
37
|
+
raf = requestAnimationFrame(() => {
|
|
38
|
+
raf = 0;
|
|
39
|
+
read();
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const sized = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(schedule);
|
|
44
|
+
const observe = () => {
|
|
45
|
+
const area = root.querySelector('[data-slot="vk-grid-scroll"]');
|
|
46
|
+
if (area)
|
|
47
|
+
sized?.observe(area);
|
|
48
|
+
for (const bar of bars())
|
|
49
|
+
sized?.observe(bar);
|
|
50
|
+
};
|
|
51
|
+
const changed = new MutationObserver(() => {
|
|
52
|
+
observe();
|
|
53
|
+
schedule();
|
|
54
|
+
});
|
|
55
|
+
changed.observe(root, { childList: true });
|
|
56
|
+
watch.current = (el) => {
|
|
57
|
+
sized?.observe(el);
|
|
58
|
+
schedule();
|
|
59
|
+
};
|
|
60
|
+
observe();
|
|
61
|
+
read();
|
|
62
|
+
window.addEventListener("scroll", schedule, true);
|
|
63
|
+
window.addEventListener("resize", schedule);
|
|
64
|
+
return () => {
|
|
65
|
+
watch.current = null;
|
|
66
|
+
changed.disconnect();
|
|
67
|
+
sized?.disconnect();
|
|
68
|
+
window.removeEventListener("scroll", schedule, true);
|
|
69
|
+
window.removeEventListener("resize", schedule);
|
|
70
|
+
if (raf)
|
|
71
|
+
cancelAnimationFrame(raf);
|
|
72
|
+
};
|
|
73
|
+
}, [selecting, rootRef, endGuardRef]);
|
|
74
|
+
return { room: selecting ? room : 0, ownBarRef };
|
|
75
|
+
}
|
|
76
|
+
function roomOf(area, bars) {
|
|
77
|
+
const box = area.getBoundingClientRect();
|
|
78
|
+
const foot = Math.min(box.top + area.clientTop + area.clientHeight, window.innerHeight);
|
|
79
|
+
const middle = (box.top + foot) / 2;
|
|
80
|
+
let top = foot;
|
|
81
|
+
for (const bar of bars) {
|
|
82
|
+
const r = bar.getBoundingClientRect();
|
|
83
|
+
if (r.height === 0 || r.right <= box.left || r.left >= box.right)
|
|
84
|
+
continue;
|
|
85
|
+
const parent = bar.offsetParent;
|
|
86
|
+
const barTop = !parent
|
|
87
|
+
? r.top
|
|
88
|
+
: parent === document.body
|
|
89
|
+
? bar.offsetTop - window.scrollY
|
|
90
|
+
: parent.getBoundingClientRect().top + parent.clientTop + bar.offsetTop;
|
|
91
|
+
if (barTop + r.height <= middle)
|
|
92
|
+
continue;
|
|
93
|
+
top = Math.min(top, barTop);
|
|
94
|
+
}
|
|
95
|
+
return Math.max(0, Math.round(foot - top));
|
|
96
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ListGroup } from "../../grouping/types.js";
|
|
3
|
+
import type { ListColumn } from "../../model/column-schema.js";
|
|
4
|
+
import type { ListNumberFormatOverrides } from "../../model/column-format.js";
|
|
5
|
+
import type { ListGroupSummaryPart } from "../../model/preferences.js";
|
|
6
|
+
import { type DisplayCurrency } from "../../fields/currency.js";
|
|
7
|
+
import type { GridGroupFigure } from "./grid-table-props.js";
|
|
8
|
+
/** A figure as the band draws it. A `declared` one is left out of a group it has nothing for; one the app draws
|
|
9
|
+
* shows its label whatever it draws. */
|
|
10
|
+
export type GridBandFigure<Row> = {
|
|
11
|
+
part: ListGroupSummaryPart;
|
|
12
|
+
label: ReactNode;
|
|
13
|
+
/** The label in words, for a menu row: the label when it is text, else a declared figure's column label, else
|
|
14
|
+
* its part. */
|
|
15
|
+
text: string;
|
|
16
|
+
render: (group: ListGroup<Row>) => ReactNode;
|
|
17
|
+
declared: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare function useGridBandFigures<Row>(figures: readonly GridGroupFigure<Row>[] | undefined, { columns, numberFormats, defaultCurrency, renderAggregate, }: {
|
|
20
|
+
/** Every column, shown or hidden: a band's figure doesn't need its column on screen. */
|
|
21
|
+
columns: readonly ListColumn<Row>[];
|
|
22
|
+
numberFormats?: ListNumberFormatOverrides;
|
|
23
|
+
defaultCurrency?: DisplayCurrency;
|
|
24
|
+
/** The app's own footer cell, which a declared figure on that column shows in its place. */
|
|
25
|
+
renderAggregate?: (columnId: string, group: ListGroup<Row>) => ReactNode;
|
|
26
|
+
}): GridBandFigure<Row>[];
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { columnLabel } from "../../model/column-capabilities.js";
|
|
4
|
+
import { DEFAULT_DISPLAY_CURRENCY } from "../../fields/currency.js";
|
|
5
|
+
import { CellSuffix } from "../../display/format.js";
|
|
6
|
+
import { useCellFormat } from "../../cells/use-cell-format.js";
|
|
7
|
+
import { gridFigureValue } from "./grid-figure-value.js";
|
|
8
|
+
const words = (label) => typeof label === "string" || typeof label === "number" ? String(label) : undefined;
|
|
9
|
+
export function useGridBandFigures(figures, { columns, numberFormats, defaultCurrency = DEFAULT_DISPLAY_CURRENCY, renderAggregate, }) {
|
|
10
|
+
const cellFormat = useCellFormat();
|
|
11
|
+
const drawn = [];
|
|
12
|
+
for (const figure of figures ?? []) {
|
|
13
|
+
if ("render" in figure) {
|
|
14
|
+
drawn.push({
|
|
15
|
+
part: figure.part,
|
|
16
|
+
label: figure.label,
|
|
17
|
+
text: words(figure.label) ?? figure.part,
|
|
18
|
+
render: figure.render,
|
|
19
|
+
declared: false,
|
|
20
|
+
});
|
|
21
|
+
continue;
|
|
22
|
+
}
|
|
23
|
+
const column = columns.find((candidate) => candidate.id === figure.column);
|
|
24
|
+
if (!column)
|
|
25
|
+
continue;
|
|
26
|
+
drawn.push({
|
|
27
|
+
part: figure.part,
|
|
28
|
+
label: figure.label ?? column.header,
|
|
29
|
+
text: words(figure.label) ?? columnLabel(column),
|
|
30
|
+
declared: true,
|
|
31
|
+
render: (group) => {
|
|
32
|
+
const own = renderAggregate?.(column.id, group);
|
|
33
|
+
if (own != null)
|
|
34
|
+
return own;
|
|
35
|
+
const value = gridFigureValue({
|
|
36
|
+
column,
|
|
37
|
+
group,
|
|
38
|
+
kind: figure.kind,
|
|
39
|
+
numberFormats,
|
|
40
|
+
defaultCurrency,
|
|
41
|
+
cellFormat,
|
|
42
|
+
});
|
|
43
|
+
if (!value)
|
|
44
|
+
return null;
|
|
45
|
+
return (_jsxs(_Fragment, { children: [value.text, value.suffix && _jsx(CellSuffix, { children: value.suffix })] }));
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
return drawn;
|
|
50
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ListBatchApi } from "../../selection/types.js";
|
|
2
|
+
import type { GridEditCell } from "../core/useGridEditing.js";
|
|
3
|
+
import type { ListSettingsConfig } from "../../model/column-capabilities.js";
|
|
4
|
+
import type { ListColumn } from "../../model/column-schema.js";
|
|
5
|
+
/**
|
|
6
|
+
* The batch bar's route into the grid's own write machinery.
|
|
7
|
+
*
|
|
8
|
+
* A verb like "set status on 12 rows" is not a different kind of write from
|
|
9
|
+
* editing one status cell — it is the same write, twelve times. Sending it
|
|
10
|
+
* through `commitBatchChecked` therefore buys everything the cell editors
|
|
11
|
+
* already have: the optimistic overlay (rows repaint on the click rather than
|
|
12
|
+
* when the server round-trip returns), ONE history entry so ⌘Z reverts the
|
|
13
|
+
* whole batch in a single step, and rollback if the write fails.
|
|
14
|
+
*
|
|
15
|
+
* Its own module rather than more lines in GridTable: that file sits under an
|
|
16
|
+
* oversized-debt ceiling whose policy says split the responsibility rather than
|
|
17
|
+
* raise the number.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useGridBatchApi<Row>({ enabled, columns, listConfig, rows, getRowId, pendingByRow, commitBatch, }: {
|
|
20
|
+
/** The grid can write at all (the host passed a commit handler). */
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
/** Visible columns — the id resolves against what the user can actually see. */
|
|
23
|
+
columns: ListColumn<Row>[];
|
|
24
|
+
listConfig: ListSettingsConfig | undefined;
|
|
25
|
+
/** Every loaded row, for resolving selected ids to row objects. */
|
|
26
|
+
rows: Row[];
|
|
27
|
+
getRowId: (row: Row) => string;
|
|
28
|
+
/** Optimistic values already in flight — the undo baseline reads through them
|
|
29
|
+
* so a second batch over the same cells doesn't record a stale `prev`. */
|
|
30
|
+
pendingByRow: ReadonlyMap<string, Record<string, unknown>>;
|
|
31
|
+
commitBatch: (edits: (GridEditCell<Row> & {
|
|
32
|
+
row: Row;
|
|
33
|
+
})[]) => Promise<boolean>;
|
|
34
|
+
}): ListBatchApi | undefined;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { cellEditBaseline, cellPrevPayload, gridFigureOverlay, gridPasteOverlay } from "./cell-clipboard.js";
|
|
4
|
+
import { columnEffectiveWritable } from "../../model/column-capabilities.js";
|
|
5
|
+
export function useGridBatchApi({ enabled, columns, listConfig, rows, getRowId, pendingByRow, commitBatch, }) {
|
|
6
|
+
return useMemo(() => {
|
|
7
|
+
if (!enabled)
|
|
8
|
+
return undefined;
|
|
9
|
+
return {
|
|
10
|
+
setColumnValue: (rowIds, columnId, value) => {
|
|
11
|
+
const col = columns.find((c) => c.id === columnId);
|
|
12
|
+
if (!col || !columnEffectiveWritable(col, listConfig))
|
|
13
|
+
return Promise.resolve(false);
|
|
14
|
+
const byId = new Map(rows.map((r) => [getRowId(r), r]));
|
|
15
|
+
const overlay = gridPasteOverlay(col);
|
|
16
|
+
const edits = [];
|
|
17
|
+
for (const rowId of rowIds) {
|
|
18
|
+
const row = byId.get(rowId);
|
|
19
|
+
if (row == null)
|
|
20
|
+
continue;
|
|
21
|
+
const prev = cellPrevPayload(col, cellEditBaseline(col, row, pendingByRow.get(rowId)), col.editUnit?.value(row));
|
|
22
|
+
edits.push({
|
|
23
|
+
row,
|
|
24
|
+
rowId,
|
|
25
|
+
columnId,
|
|
26
|
+
prev,
|
|
27
|
+
next: value,
|
|
28
|
+
...(gridFigureOverlay(col, row, value, prev) ?? { overlay }),
|
|
29
|
+
rowSnapshot: row,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return commitBatch(edits);
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}, [enabled, columns, listConfig, rows, getRowId, pendingByRow, commitBatch]);
|
|
36
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The fill dot's test, `(hover: hover) and (pointer: fine)`, spelled in its own order. A browser answers it
|
|
3
|
+
* exactly as the hover query (`internal/viewport.ts`); being its own string, a test can answer it apart from that
|
|
4
|
+
* one, so a grid test keeps one box while it reads a pointer that can't hover.
|
|
5
|
+
*/
|
|
6
|
+
export declare const GRID_BOXES_QUERY = "(pointer: fine) and (hover: hover)";
|
|
7
|
+
/** How many boxes the grid scrolls in: 1, one box both ways; 2, the rows up and down inside a box that scrolls
|
|
8
|
+
* sideways. */
|
|
9
|
+
export type GridBoxes = 1 | 2;
|
|
10
|
+
/**
|
|
11
|
+
* Two boxes only where the page's lab asks for them (`lab.boxes`, a switch an app gives its owner to try the lock on
|
|
12
|
+
* a phone) and the device doesn't hover with a fine pointer; one box everywhere else, the grid as everyone has it.
|
|
13
|
+
*
|
|
14
|
+
* WHY TWO ON A TOUCH SCREEN: iOS locks a flick to its first direction only for the page's own scroll, never for a
|
|
15
|
+
* scroll box inside the page. A box that scrolls both ways slides sideways under a vertical flick with any drift of
|
|
16
|
+
* the thumb. In two boxes, each scrolling one way, iOS hands each flick to the box of its direction itself, with no
|
|
17
|
+
* script deciding and no touch held. Behind the lab while its cost is weighed on a phone: the rows' box is as wide
|
|
18
|
+
* as the table, and a fast flick through a wide table draws more slowly in it.
|
|
19
|
+
*
|
|
20
|
+
* One box on a server render and where there is no `matchMedia`; it follows the query's and the lab's changes.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useGridBoxes(): GridBoxes;
|