Code Monkey home page Code Monkey logo

primevue's Introduction

primevue's People

Contributors

amal-qb avatar andrewguy avatar antlionguard avatar atakantepe avatar bahadirsofuoglu avatar benjaminmink avatar betavs avatar cagataycivici avatar dcyaner avatar flipwarthog avatar habubey avatar hugeletters avatar ig-onoffice-de avatar james-laidlaw avatar kadirboylu avatar kumjungmin avatar lochstar avatar m-meier avatar magiczne avatar melloware avatar mertsincan avatar merve7 avatar navedqb avatar onursenture avatar sezisfurkan avatar tamas-hi avatar thielpa avatar titou10titou10 avatar tugcekucukoglu avatar yigitfindikli 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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  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

primevue's Issues

Column component registration fails with Typescript

Following the basic example of your documentation, DataTable does not work.

I report the console log error:

vue.runtime.esm.js?2b0e:619 [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option...

Dependencies

  • Vue 2.6.10
  • core-js 2.6.5
  • primevue-1.0.0-beta6

Use Typescript to develop PrimeVue?

Hi,
This is a great initiative and will help Vue community a lot. As we understand Vue 3 will itself be written in Typescript.
As this is a new project, is their any specific reason for not using Typescript for building components?

New Component: DataTable

Implement a DataTable with the initial features;

Static and Dynamic Columns
Templating
Single Column and Multiple Columns Sorting
Pagination
Lazy Loading for Large Datasets
Filtering
Selection
Column Toggler
Responsive
CSV Export

Cannot find module './components/column/Column'

Hi Guys,

I am trying to start a new project with primevue but I encountered an issue with Column component.
When I compile typescript it says Cannot find module './components/column/Column' in node_modules/primevue/column.d.ts:1:15
Is that something wrong with my dependency setup or it is an issue with primevue itself?
Any other primevue components are fine. I am using target: es5 and module esNext. PrimeVue version is 1.0.0-beta.7.

Very appreciate.

input Editor acts weird

input Editor elements in the provided sample acts quite weird. In chrome when you type it's got written backwards. In firefox it's got written vertically.

Reimplement TabView with Templating

I get an error when trying to import the TabView component:

You may need an additional loader to handle the result of these loaders.

This is because of the use of JSX for this component, commit is here: b3036ec

Is it a requirement we must include https://github.com/vuejs/jsx in order to build this project? Can we refactor the JSX back to Vue template format? It's not clear to me why it had to be changed.

MultiSelect not showing selected items

Got an array of LookupVm class which has an id and a name properties. Binding everything together seems not working. Selected items not shown on the MultiSelect. Please see the code bellow:

<template>
...
<div class="p-col-12 p-md-4">
    <label for="roles">Role</label>
</div>
<div class="p-col-12 p-md-8">
    <MultiSelect id="roles" v-model="selectedRoles" optionLabel="name" :options="roleList" />
</div>
...
</template>
<script lang="ts">
	import Vue from "vue";
	import { UserService, LookupVm } from "@/services/index";

	export default Vue.extend({
		data() {
			return {
				selectedRoles: new Array<LookupVm>(),
				roleList: new Array<LookupVm>(),
			}
		},
		mounted() {
			this.loadRoleList();
		},
		methods: {
			loadRoleList() {
				UserService.getRolesLookup().then((result) => { this.roleList = result; })
			}
		},
	});
</script>

Screens:
image

image

image

InputMask pressing enter

InputMask gives error when pressing enter. Keydown event doesn't work, I can use only keyup to check if user pressed enter.

Vue warn]: Error in v-on handler: "TypeError: $vm.onBlur is not a function"
found in

---> at node_modules/primevue/components/inputmask/InputMask.vue
at src/components/TesztComp/SearchPanel.vue
at src/components/TesztComp/TesztComp.vue

at src/App.vue

Listbox demo error

npm run serve is produces the following error

 ERROR  Failed to compile with 3 errors                                                                                                                                                                         9:56:15 AM

This dependency was not found:

* -!../../../node_modules/css-loader/index.js??ref--6-oneOf-3-1!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-3-2!../../components/listbox/Listbox.css in ./node_modules/css-loader??ref--6-oneOf-3-1!./
node_modules/postcss-loader/src??ref--6-oneOf-3-2!./src/assets/styles/primevue.css

To install it, you can run: npm install --save -!../../../node_modules/css-loader/index.js??ref--6-oneOf-3-1!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-3-2!../../components/listbox/Listbox.css


These relative modules were not found:

* ./components/listbox/Listbox in ./src/main.js
* ./views/listbox/ListboxDemo.vue in ./src/router.js

main.js import Listbox from './components/listbox/Listbox'; name is wrong Listbox b letter must be capital

Transpile ObjectUtils.js when installing from npm

Hi, this is not really an issue but a proposal to avoid an error:

ERROR  Failed to compile with 1 errors

error  in ./node_modules/primevue/components/utils/ObjectUtils.js

Module parse failed: Unexpected token (134:29)
You may need an appropriate loader to handle this file type.
|     }
| 
>     static filterConstraints = {
| 
|         startsWith(value, filter) {
....

This is caused by babel-loader that by default ignores node_modules folder, so this file is not transpiled. This error doesn't affect every component but those that are dependent of this file.

I think in the README file there could be an advice about adding to the vue.config.js file of the project:

module.exports = {
    [...,]
    transpileDependencies: [
        "primevue"
    ]
}

to get this file transpiled by the vue cli. Source: https://cli.vuejs.org/config/#transpiledependencies

Thank you and regards.

Wrong date with "yy.mm.dd" date format

Typing date with dateFormat="yy.mm.dd" gives wrong date, in day section automatically inserts leading zero and cannot be typed e.q. "23" to day, it forces "02" when "2" is pressed. And without specifying dateFormat in the component it gives date in default format, however it's set in "hu" locale.

Component:
Calendar v-model="myDate" :showIcon="true" :locale="hu" :showOnFocus="false" dateFormat="yy.mm.dd"

function returns "hu" data:
return {
firstDayOfWeek: 1,
dayNames: ["Vasárnap", "Hétfő", "Kedd", "Szerda", "Csütörtök", "Péntek", "Szombat"],
dayNamesShort: ["Vas", "Hét", "Ke", "Sze", "Csü", "Pén", "Szo"],
dayNamesMin: ["Vas", "Hét", "Ke", "Sze", "Csü", "Pén", "Szo"],
monthNames: [ "Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December" ],
monthNamesShort: [ "Jan", "Feb", "Már", "Ápr", "Máj", "Jún","Júl", "Aug", "Szep", "Okt", "Nov", "Dec" ],
today: 'Ma',
clear: 'Törlés',
dateFormat: 'yy.mm.dd',
weekHeader: 'Wk'
}

Time does not stop spinning in Calendar

Hi!

When I click in the up/down arrow, keep holding the button and release it out of the calendar, then:

  • The spinner doesn't stop incrementing
  • The calendar popover is closed

Dependency was not found

This dependency was not found:

  • -!../../../node_modules/@vue/cli-service/node_modules/css-loader/index.js??ref--6-oneOf-3-1!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-3-2!../../components/listbox/Listbox.css in ./node_modules/@vue/cli-service/node_modules/css-loader??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??ref--6-oneOf-3-2!./src/assets/styles/primevue.css

To install it, you can run: npm install --save -!../../../node_modules/@vue/cli-service/node_modules/css-loader/index.js??ref--6-oneOf-3-1!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-3-2!../../components/listbox/Listbox.css

These relative modules were not found:

  • ./components/listbox/Listbox in ./src/main.js
  • ./views/listbox/ListboxDemo.vue in ./src/router.js

image

Maybe a general issue

Methods that run after the component is destroyed fail due to non-safe access to refs ($refs?.x) (they become undefined when destroying), maybe it's worth taking a look. I had this problem with the Dropdown.vue

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.