How to use the @department-of-veterans-affairs/react-jsonschema-form/lib/utils.orderProperties function in @department-of-veterans-affairs/react-jsonschema-form

To help you get started, we’ve selected a few @department-of-veterans-affairs/react-jsonschema-form examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github department-of-veterans-affairs / vets-website / src / platform / forms-system / src / js / fields / ObjectField.jsx View on Github external
orderAndFilterProperties(schema, uiSchema) {
    const properties = Object.keys(schema.properties);
    const orderedProperties = orderProperties(
      properties,
      _.get('ui:order', uiSchema),
    );
    const filteredProperties = orderedProperties.filter(
      prop => !schema.properties[prop]['ui:hidden'],
    );
    const groupedProperties = _.groupBy(item => {
      const expandUnderField = _.get(
        [item, 'ui:options', 'expandUnder'],
        uiSchema,
      );
      return expandUnderField || item;
    }, filteredProperties);

    return _.values(groupedProperties);
  }
github department-of-veterans-affairs / vets-website / src / applications / common / schemaform / review / ObjectField.jsx View on Github external
      properties => orderProperties(properties, _.get('ui:order', this.props.uiSchema)),
      _.groupBy((item) => {
github department-of-veterans-affairs / vets-website / src / platform / forms-system / src / js / review / ObjectField.jsx View on Github external
properties =>
        orderProperties(properties, _.get('ui:order', this.props.uiSchema)),
      _.groupBy(item => {