zooplus / zoo-web-components Goto Github PK
View Code? Open in Web Editor NEWWeb-components library.
Home Page: https://zooplus.github.io/zoo-web-components/
License: MIT License
Web-components library.
Home Page: https://zooplus.github.io/zoo-web-components/
License: MIT License
row_cell_style: {
width: '100%',
textAlign:"left",
'& zoo-input, zoo-select':{
'& input, select' : {padding:'2px 12px'},
width: '70%',
}
}
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>
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.
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
Desktop (please complete the following information):
Maybe you want to register the namespace "zoo" here with a pull request?
https://github.com/nuxodin/web-namespace-registry
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
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();
}
});
Describe the bug
Multiple instances of zoo-input-tag positioned in same column are overlapping their contents making them unreadable.
To Reproduce
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.
Additional context
Now there is an ugly workaround by setting style attribute inside shadow DOM by JavaScript.
In searchable select when one wants to select first item on the prompted list:
This is easy to reproduce in docs: https://zooplus.github.io/zoo-web-components-docs/index.html#searchable-select
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.
Describe the solution you'd like
Expose CSS variables for positioning tooltip top/bottom and the tick (for completeness)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.