Giter VIP home page Giter VIP logo

buntpapier's People

Contributors

b-times-b avatar michael-k avatar rashfael avatar rixx avatar wolfgangfellger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

buntpapier's Issues

on icon-button add support for more events other than @click

At pretix we are using your wonderful bunt-icon-button. A feature we are working on requires us to bind to @pointerdown/pointerup-events. Currently bunt-icon-button seems to only support @click.

This works:

bunt-icon-button(@click ="decPointerDown") minus

This does not work/does not bind to the pointerdown-event on the HTML-Element:

bunt-icon-button(@pointerdown="decPointerDown") minus

Would it be possible to transparently bind events, that bunt-icon-button itself does not know about?

Our workaround is to bind the pointer-events to the containing HTML-Element. It works, but looks unnecessarily ugly to me.

[vue3] bunt-tab breaks with top-level v-if elements

In this constellation:

bunt-tabs
	bunt-tab(header="A")
		p(v-if="true") foo
	bunt-tab(header="B")
		p(v-if="true") bar
	bunt-tab(header="C")
		p static text

switching between A<->C and B<->C works, but A<->B does not. This might be a Vue bug, but I'm not sure what to report there.

Support inputmode on bunt-input

Allow setting inputmode as a less intrusive alternative to type="number".

Use case: <input type="number"> comes with some (unspecified) browser validation. In both Chrome and Firefox the value is reported as empty if it does not validate. This is basically impossible to integrate with vuelidate as, well, it thinks the input is empty. Even a custom validator is nontrivial because transitions of empty <-> invalid do not trigger a revalidate (both have value="") -.-

[bunt-select] Search mode is lost when blurring and refocusing

If you type into bunt-select to search, then click away and refocus, the dropdown displays the unfiltered list.

Steps to reproduce:

I initially noticed this behavior when switching tabs while a dropdown was open.

Happens in both Firefox and Chrome, and 1.9.0 as well as 2.0.0-alpha.20.

input labels should not line wrap

When not careful, users can create inputs where their labels do not fit into the input field, like this:
2021-06-11-23-38-13
Buntpapier should, instead of wrapping the line, cut off the label.

[vue3][bunt-tabs] Updating tab props switches page

Using buntpapier2.0.0-alpha.20 and vue 3.2.20.

Updating either header or disabled on any bunt-tab causes the bunt-tabs to switch; it does not matter whether the tab in question is currently active. If v-model is set, the value goes to null and nothing is shown at all; otherwise it jumps to the first tab.

Reproduction case:

<template lang="pug">
div
	p Current tab={{ tab }}
	input(type="checkbox", v-model="disableB")
	| Disable Tab B

	h2 tabs with v-model:

	bunt-tabs(v-model="tab")
		bunt-tab(id="a", header="A") Content A
		bunt-tab(id="b", header="B", :disabled="disableB") Content B
		bunt-tab(id="c", header="C") Content C

	h2 Without v-model:

	bunt-tabs
		bunt-tab(id="a", header="A") Content A
		bunt-tab(id="b", header="B", :disabled="disableB") Content B
		bunt-tab(id="c", header="C") Content C

</template>

<script>
export default {
	data: () => ({
		disableB: false,
		tab: "c",
	})
};
</script>

<style lang="stylus">
.bunt-tabs
	tabs-style()
</style>

Steps:

  • Click C for the lower tab set
  • Toggle "Disable Tab"
  • Uppper tab set shows nothing, lower one "Content A"

Expected behavior:

  • if a non-active tab is disabled, current tab should not be affected
  • if the current tab is disabled, either stay as well or switch to the first non-disabled one.

Disabled buttons not showing tooltips

Since disabled buttons don't fire events, the tooltip is never shown, or is stuck when a button is being disabled after a click and mouseleave never fires.

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.