Coder Social home page Coder Social logo

mvneerven / xo Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 2.0 9.51 MB

XO-JS - Declarative Forms, Wizards, Surveys. Developer Friendly, Extensible, Inheritance. Pure, Vanilla ES6 JavaScript - no dependencies.

Home Page: https://www.xo-js.dev

HTML 0.85% JavaScript 47.58% SCSS 14.18% CSS 37.38%
es6 cssgrid no-dependencies pwa-apps spa javascript-library form-schema vanilla-javascript inline-validation json-schema

xo's People

Contributors

mvneerven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xo's Issues

testing OpenApi schema and form

When using the from studio, and choosing "Build a form". Then using "Start with an OpenApi ...". Then adding the url https://petstore3.swagger.io/api/v3/openapi.json (from https://petstore3.swagger.io/), we get a form which does not resemble the schema. Only part of the schema seems to get parsed, and the parsing does not seem complete.

Expected outcome: A form representing the petstore3 schema from OpenApi.

Real outcome: a partial rendering of the "pet" schema.

Anything I can do to help?

Add 'display: grid' to multiinput control and grid-area values to child controls

Add display: grid to parent multiinput control

Within a multiinput control a (custom) grid class can be added. To make sure that when this value is added to the schema the multiinput parent still contails the CSS value display: grid, this should always be present on the parent.

Add grid-area values to child controls of multiinput control

Once a multiinput control is created with a value for the grid-template, the containing fields can only be ordered after adding a grid-area value to the child input. This cannot be done currently inside the schema.

To be able to order the inputs within a multiinput control solely by creating the schema, it would be a good addition to add a grid-area value to all the child controls equal to the name-value of this control.

So for instance, the schema below would show the three text field with equal width next to eachother:

{
  "pages": [
    {
      "legend": "My Form",
      "intro": "My form description",
      "fields": [
        {
          "type": "multiinput",
          "name": "multiinput1",
          "grid-template": "'firstName addition lastName' 40px / 1fr 1fr 1fr",
          "fields": [
            {
              "type": "text",
              "name": "firstName",
              "caption": "Voornaam",
              "grid": "firstName",
              "required": true
            },
            {
              "type": "text",
              "caption": "Toevoeging",
              "name": "addition"
            },
            {
              "type": "text",
              "caption": "Achternaam",
              "name": "lastName",
              "required": true
            }
          ]
        }
      ]
    }
  ]
}

If the name-value is not given in one of the child inputs isn't set, the grid-area should not be set.

Loading file animation even though no file is selected in filedrop control

  • click on the drop zone and browse for an unsupported file type (e.g. text) or drag and drop one =>"Invalid file type" notification display, but no processing animation
  • click on the drop zone again => browse for file explorer opened
  • click on cancel to close the file explorer window => NOK, the processing animation is displayed, also there is no page refresh so the "Invalid file type" notification is still displayed

Text controls - icon overlaps with text when prefix - icon is used (Firefox only)

When a Shop is created as part of the Onboarding flow the user has the option of providing a mail address to which the URL of the new shop instance will be sent.
In that page the mail envelope icon overlaps with the "Your email address" text if the used browser is Firefox.
NOTE: in Chrome and Edge there is no overlap

45ec3d4e-d01e-4d4c-a68f-bd4cc01a7964

ng

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.