foundry-vtt-types icon indicating copy to clipboard operation
foundry-vtt-types copied to clipboard

Update `fields.mjs`

Open JPMeehan opened this issue 1 year ago • 1 comments

resources/app/common/data/fields.mjs

  • [ ] Add new typedefs
  • [ ] Add Form Field integration methods
  • [ ] Add Active Effect application methods
  • [ ] Add DocumentUUIDField
  • [ ] Add AnyField
  • [ ] Add DocumentTypeField
  • [ ] Add TypedSchemaField
  • [ ] Remove deprecated fields

JPMeehan avatar Oct 21 '24 21:10 JPMeehan

@LukeAbby DocumentTypeField is the biggest blocker of all of these because it's a StringField extension that's used by the big document types like Actor and Item.

JPMeehan avatar Oct 22 '24 17:10 JPMeehan

After toInput is implemented, update the formInput and formGroup handlebars helpers in src/foundry/client/apps/templates.d.mts

JPMeehan avatar Oct 31 '24 16:10 JPMeehan

TODO after 0f58b4f3f1a15b12dd431a2385d6f0faede1514a

  • [x] Consider extracting the callback on DataFieldOptions["validate"] to a DataFieldValidator callback as defined by Foundry (possibly DataField.Validator?)
  • [x] Implementation of Form Field helpers needs improvement

JPMeehan avatar Nov 06 '24 17:11 JPMeehan