Giter Club home page Giter Club logo

zoo-web-components's People

Contributors

al-zooplus avatar bartlech avatar dependabot[bot] avatar dmitry-kurmanov avatar dwolanind avatar georgetailor avatar georgetailorzooplus avatar mpad0x55 avatar ziaber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zoo-web-components's Issues

Zoo-Input is not showing error message even after setting valid=false attribute and inputerrormsg="error"

Hi Team,

I am not able to invalidate a Zoo-Input element.

Here is the code :

<!DOCTYPE html>
<html lang="en" dir="ltr">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Zoo Test</title>
</head>

<body>
  <div style="width: 250px;">
    <zoo-input labeltext="Input label"
      linktext="Forgotten your password?"
      linkhref="https://google.com"
      linktarget="about:blank"
      infotext="Additional helpful information for our users"
      valid="false" inputerrormsg="error is big">
      <input slot="inputelement" placeholder="input"/>
    </zoo-input>
  </div>
  <zoo-button type="hot" size="medium">
    <span slot="buttoncontent">Shopping Cart</span>
  </zoo-button>

  <script src="https://cdn.jsdelivr.net/npm/@zooplus/[email protected]/dist/zoo-components-iife.min.js"></script>

</body>

</html>

here is how it display's with no error message:
image

Empty paginator in Grid

When <zoo-grid> is defined without pagesizeselector slot and without both currentpage and maxpage attributes the paginator is displayed with just arrow icons. After clicking right one both disappear.

As all 3 aforementioned configs are optional I would expect that paginator component won't be displayed.

image

Error message in <input type="date"> component

In case of putting not valid date the field for error appeared even if error is not provided.

To Reproduce
Steps to reproduce the behavior:
1 put 02/28/2021
2. select day part (28)
3. increase it to 29
4. the field for empty error appeared

Expected behavior
Do not see error message part if error message is not provided
Screenshots
image

image

Desktop (please complete the following information):

  • Browser [chrome]
  • Version [e.g. 8.3.2]

Input type date is 2px higher than other inputs

Comparison with others inputs (for instance, with input type="number") inputs for type date is 2 px higher.
Ii is good to have all inputs in the same high.

  <div>
                <zoo-input>
                    <input id="ap-id-input" slot="input" type="number" inputMode="decimal"
                           placeholder={PLACEHOLDER}
                           onChange={e => {
                               e.preventDefault();
                               setFilters({...filters, apId: parseInt(e.target.value)})
                           }}/>
                </zoo-input>
            </div>
            <div>
                <zoo-input>
                    <input id="expiry-date-input" slot="input" type="date" date-format="mm/dd/yyyy"
                           onChange={e => setFilters({
                               ...filters,
                               expiryDate: e.target.value
                           })}
                    />
                </zoo-input>
            </div>

during resizing only height changed but length stay the same

**Desktop

  • Browser chrome.
  • Version 8.2.11

Initially selected options in zoo-input-tag

Is your feature request related to a problem? Please describe.
I would like to render zoo-input-tag with already selected options, for example in edit form (current behavior is more like for initial configuration).

Describe the solution you'd like
There should be a slot or attribute that would allow me to specify which options are initially selected and they should be rendered as tags.

Additional context
I have managed to workaround this by triggering click on desired data, so better solution is needed:

inputTag.current?.querySelectorAll('zoo-input-tag-option').forEach((elem) => {
      if (isValueSelected(elem.getAttribute('id')) {
        (elem as HTMLElement).click();
      }
});

Overlapping of zoo-input-tag

Describe the bug
Multiple instances of zoo-input-tag positioned in same column are overlapping their contents making them unreadable.

To Reproduce

  1. Create two zoo-input-tag components one under another
  2. Start typing in the upper one to see possible options
  3. Options content is colliding with another zoo-input-tag

Expected behavior
Upper input overlays the lower one. Currently, there is a fixed styling of z-index, but customization maybe by CSS var is needed.

Screenshots
image

Additional context
Now there is an ugly workaround by setting style attribute inside shadow DOM by JavaScript.

CSS vars for customizing zoo-tooltip

Is your feature request related to a problem? Please describe.
Current styling for zoo-tooltip is not always versatile enough and it would be good to have some control over it by CSS vars.

image
image

Describe the solution you'd like
Expose CSS variables for positioning tooltip top/bottom and the tick (for completeness)

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.