Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add form-related types (#469) Co-authored-by: Hein Jeong <[email protected]> * chore: add form definition mapper (#470) Co-authored-by: Hein Jeong <[email protected]> * test: update cypress setup (#472) * chore: update cli setup flow and update react peerDep (#473) * feat: adding string format types in lib * feat: add base form to component mapper with updated datastore types * chore: audit fix and peerDep of datastore * chore: update deps in lock files * feat: add base form renderer and amplify form renderer classes * chore: update form definition mapper (#489) Co-authored-by: Hein Jeong <[email protected]> * feat: string formatter util functions * feat: view types and string formatting on view config * fix: optional enum type and nullish handling * chore: map input and sectional form elements (#493) Co-authored-by: Hein Jeong <[email protected]> * feat: adding types for Slot * fix: rename Slot to Amplify.Slot * chore: add util to map datastore schema to generic (#498) Co-authored-by: Hein Jeong <[email protected]> * feat: support slot binding (#499) Co-authored-by: Hein Jeong <[email protected]> * chore: skip field generation for read-only fields (#501) * chore: skip field generation for read-only fields * chore: skip field generation for read-only fields * chore: skip field generation for read-only fields * chore: skip field generation for read-only fields * chore: skip field generation for read-only fields Co-authored-by: Scott Young <[email protected]> * chore: add validation field types for forms (#502) Co-authored-by: Justin Shih <[email protected]> * feat: expand return type of overrideItems (#504) * chore: clean up form definition mapper (#508) Co-authored-by: Hein Jeong <[email protected]> * chore: add form field validation function and additional validation types (#507) Co-authored-by: Justin Shih <[email protected]> * chore: rev recommended version of ui-react (#513) Co-authored-by: Hein Jeong <[email protected]> * feat: add nested query if data schema is passed down * chore/main merge (#516) * chore(release): update package with security issue * fix: handle auth prop in concat * chore(release): security issues in dependencies Co-authored-by: Kevin Pranoto <[email protected]> * chore: update mocked to use jest.mocked * feat: add react-studio-form-renderer and update test ci (#505) * chore: update primitive test for SliderField * feat: add datastore onSubmitBefore and onSubmitComplete callbacks (#526) * feat: add datastore onSubmitBefore and onSubmitComplete callbacks * feat: add datastore onSubmitBefore and onSubmitComplete callbacks * feat: add datastore onSubmitBefore and onSubmitComplete callbacks * feat: add datastore onSubmitBefore and onSubmitComplete callbacks * feat: add datastore onSubmitBefore and onSubmitComplete callbacks Co-authored-by: Scott Young <[email protected]> Co-authored-by: Justin Shih <[email protected]> * chore: take GenericDataSchema into form renderer and definition mapper (#528) Co-authored-by: Hein Jeong <[email protected]> * Render form utils and add forms to index file (#536) * fix: remove locale dependency on date formatting * feat: add utils file renderer Co-authored-by: Kevin Pranoto <[email protected]> Co-authored-by: Justin Shih <[email protected]> * chore: add valueMappings to forms (#537) Co-authored-by: Hein Jeong <[email protected]> * feat: add onchange handling for form renderer (#542) Co-authored-by: Justin Shih <[email protected]> * chore: change default value mappings (#543) Co-authored-by: Hein Jeong <[email protected]> * chore: add id to StudioForm (#544) Co-authored-by: Justin Shih <[email protected]> * chore: update pagination label in test (#547) Co-authored-by: Justin Shih <[email protected]> * fix: change props of SwitchField form element (#546) Co-authored-by: Hein Jeong <[email protected]> * chore: update view types to use string primitives (#535) * chore: update validation type to match model (#545) Co-authored-by: Justin Shih <[email protected]> * chore: update pagination label in test (#547) Co-authored-by: Justin Shih <[email protected]> * chore: tidying forms renderer (#549) Co-authored-by: Justin Shih <[email protected]> * chore: update react import & updated factory methods for import collection (#551) * fix: onSubmit for custom forms (#552) * feat: make form labels use sentence case * chore: update render component only (#558) Updates - this will update the import for 'validateField' to come from codegen-ui-react - update view type to StudioView - update validation to be rendered during component rendering * feat: table definition for renderer * chore: adds update datastore action for forms (#559) Co-authored-by: Justin Shih <[email protected]> * feat: support input types (#557) Co-authored-by: Hein Jeong <[email protected]> * chore: update pkg lock (#562) updating the dependency changes noted in the package-lock diff * chore: separate out and export logic to map model field to field config (#566) Co-authored-by: Hein Jeong <[email protected]> * feat: add default, unremovable validations for certain form inputs (#564) Co-authored-by: Hein Jeong <[email protected]> * fix: update label to children for cta buttons on forms update form-to-component ctaConfig to use children as opposed to labels to render the button text * chore: only generate breakpoint mapping on breakpoint variants (#569) * fix: fix to narrow view config type * chore: move form-to-component util (#573) Co-authored-by: Hein Jeong <[email protected]> * feat: initial commit for view (table) renderer * chore: pkg lock pointing to new released ver in main * feat: add override types to form elements (#576) Co-authored-by: Justin Shih <[email protected]> * feat: table renderer * feat: render options for SelectField and RadioGroupField (#577) Co-authored-by: Hein Jeong <[email protected]> * chore: update override props snapshot * feat: view renderer with variable statements and base types * chore: make appId and environmentName optional for StudioView (#582) Co-authored-by: Hein Jeong <[email protected]> * fix: codegenning formatter in table jsx * chore: fix form types (#583) Co-authored-by: Justin Shih <[email protected]> * feat: handle custom json model for tables * fix: conditionally codegenning formatter call * fix: add type casting when doing on change * feat: formatter init * fix: expose amplfyViewRenderer and update settings for passing (#591) predicates * fix: type mismatch fix with model * chore: refine rendering of form sectional elements (#594) Co-authored-by: Hein Jeong <[email protected]> * chore: update form sectional element type (#596) Co-authored-by: Hein Jeong <[email protected]> * chore: change form validation (#597) Co-authored-by: Hein Jeong <[email protected]> * feat: support for cta labels (#548) * feat: support for cta labels * feat: support for cta labels * feat: support for cta labels * feat: support for cta labels * feat: support for cta labels * Tagged release/forms and views (#555) * chore: update view types to use string primitives (#535) * chore: update validation type to match model (#545) Co-authored-by: Justin Shih <[email protected]> * chore: tidying forms renderer (#549) Co-authored-by: Justin Shih <[email protected]> * chore: update react import & updated factory methods for import collection (#551) Co-authored-by: awinberg-aws <[email protected]> Co-authored-by: Justin Shih <[email protected]> Co-authored-by: Justin Shih <[email protected]> Co-authored-by: Josue Ruiz <[email protected]> * feat: support for cta labels * feat: support for cta labels * feat: support for cta labels * Tagged release/forms and views (#561) * chore: adds update datastore action for forms (#559) Co-authored-by: Justin Shih <[email protected]> * feat: support input types (#557) Co-authored-by: Hein Jeong <[email protected]> Co-authored-by: Justin Shih <[email protected]> Co-authored-by: Justin Shih <[email protected]> Co-authored-by: Hein Jeong <[email protected]> Co-authored-by: Hein Jeong <[email protected]> * feat: support for cta labels * feat: support for cta labels * feat: support for cta labels * feat: support for cta labels * Tagged release/forms and views (#580) * feat: add override types to form elements (#576) Co-authored-by: Justin Shih <[email protected]> * feat: table renderer * feat: render options for SelectField and RadioGroupField (#577) Co-authored-by: Hein Jeong <[email protected]> Co-authored-by: Justin Shih <[email protected]> Co-authored-by: Justin Shih <[email protected]> Co-authored-by: Kevin Pranoto <[email protected]> Co-authored-by: Hein Jeong <[email protected]> Co-authored-by: Hein Jeong <[email protected]> * feat: support for cta labels * feat: support for cta labels * feat: support for cta labels * feat: support for cta labels * feat: support for cta labels * feat: support for cta labels * feat: support for cta labels Co-authored-by: Scott Young <[email protected]> Co-authored-by: awinberg-aws <[email protected]> Co-authored-by: Justin Shih <[email protected]> Co-authored-by: Justin Shih <[email protected]> Co-authored-by: Josue Ruiz <[email protected]> Co-authored-by: Hein Jeong <[email protected]> Co-authored-by: Hein Jeong <[email protected]> Co-authored-by: Kevin Pranoto <[email protected]> * chore: change form validation, validate on submit, and init form integ test (#600) Co-authored-by: Hein Jeong <[email protected]> * fix: render cta without overrides & add cta to form integ test model (#603) Co-authored-by: Hein Jeong <[email protected]> * chore: change form cta visible property to excluded (#604) Co-authored-by: Hein Jeong <[email protected]> * fix: entity name validation * chore: add model prop to update form (#601) Co-authored-by: Justin Shih <[email protected]> * fix: remove @aws-amplify/codegen-ui-react as import source By removing this import generated forms can now use the utils file for validateField use. This shouldn't be an issue for UI as that does not render the import source for the files and we can decide the import value in the UI code. * fix: remove pascal case from themes as the default theme name is "studioTheme" * fix: add optional chaining for cta config and nullish coalese * fix: date format and form onSubmitBefore * fix: fix release yml (#571) Co-authored-by: Justin Shih <[email protected]> * feat: allow conditional formatting of outputs * feat: add array field component type (#613) Co-authored-by: Justin Shih <[email protected]> * chore: handle RadioGroupField of Boolean type (#610) Co-authored-by: Hein Jeong <[email protected]> * chore: add phone validation, change required validation, and fix regex (#615) Co-authored-by: Hein Jeong <[email protected]> * fix: do not assume related model or field is in datastore schema (#621) Co-authored-by: Hein Jeong <[email protected]> * chore: clean up form auto gen (#618) Co-authored-by: Hein Jeong <[email protected]> * fix: make override keys optional (#622) Co-authored-by: Justin Shih <[email protected]> * fix: add cta to yup validation * feat: add support for nested json (#623) * fix: fetch table config with nullish operator * chore: use ts versions below 4.5 (#626) * feat: add custom ArrayField component to form renderer (#624) * feat: add custom ArrayField component to form renderer * feat: add support for nested json (#623) * fix: merge conflicts for Array field component render Co-authored-by: Justin Shih <[email protected]> * fix: handle modelFields for onSubmitBefore (#629) * feat: add event types to form override props (#627) Co-authored-by: Justin Shih <[email protected]> * chore: handle bad form element positions (#619) Co-authored-by: Hein Jeong <[email protected]> * fix: change util file rendering (#630) Co-authored-by: Hein Jeong <[email protected]> * fix: add default values for update form (#631) Co-authored-by: Justin Shih <[email protected]> * fix: test all configured validations for field (#632) * chore: remove unnecessary grids (#633) * chore: validate onBlur and only conditionally onChange (#635) Co-authored-by: Hein Jeong <[email protected]> * fix: add padding properly to forms (#637) Co-authored-by: Hein Jeong <[email protected]> * fix: change form hook names (#636) * fix: add array fields for autogenerated forms (#634) Co-authored-by: Justin Shih <[email protected]> * fix: update fix onSubmit types for ds and custom (#638) * chore: remove top margin from CTA row (#639) Co-authored-by: Hein Jeong <[email protected]> * feat: add onChange override function (#640) * fix: update form useEffect to conditionally change state if record is defined (#641) * fix: add inputType for form hook functions (#642) * chore: refine types and onChange handlers (#643) Co-authored-by: Hein Jeong <[email protected]> * fix: add arrayfield component to componentOnly form renderer (#644) Co-authored-by: Justin Shih <[email protected]> * fix: include minimum breakpoints required (#645) * Chore/merge main (#646) * fix: fix release yml (#571) Co-authored-by: Justin Shih <[email protected]> * feat: allow conditional formatting of outputs Co-authored-by: Justin Shih <[email protected]> Co-authored-by: Justin Shih <[email protected]> Co-authored-by: Christopher Woolum <[email protected]> * fix: add state to controlled components (#649) * fix: onChange overrides to use onchange value and add useEffect initial data for update custom forms (#650) * fix: increase commit max length * fix: forms row layout (#653) * fix: remove ArrayField items state and change onBlur to validate input field value (#654) Co-authored-by: Justin Shih <[email protected]> * fix: onClear to reset state values and errors (#655) * fix: remove async from onblur (#656) * feat: take design tokens into consideration when rendering * feat: take design tokens into consideration when rendering Co-authored-by: Hein Jeong <[email protected]> Co-authored-by: Hein Jeong <[email protected]> Co-authored-by: Kevin Pranoto <[email protected]> Co-authored-by: Scott Young <[email protected]> Co-authored-by: Scott Young <[email protected]> Co-authored-by: Justin Shih <[email protected]> Co-authored-by: Justin Shih <[email protected]> Co-authored-by: awinberg-aws <[email protected]> Co-authored-by: Christopher Woolum <[email protected]> Co-authored-by: Chris Woolum <[email protected]> Co-authored-by: felipechiave <[email protected]> Co-authored-by: David Lopez <[email protected]> Co-authored-by: David Lopez <[email protected]>
- Loading branch information