Skip to content

Commit

Permalink
Merge branch 'primefaces:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
mergehez authored Sep 17, 2024
2 parents 284b503 + 4795c23 commit c1d2b67
Show file tree
Hide file tree
Showing 196 changed files with 4,711 additions and 1,660 deletions.
34 changes: 33 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
# Changelog

## [4.0.5](https://github.com/primefaces/primevue/tree/4.0.4) (2024-08-23)
## [4.0.7](https://github.com/primefaces/primevue/tree/4.0.7) (2024-09-11)

[Full Changelog](https://github.com/primefaces/primevue/compare/4.0.6...4.0.7)

**Fixed bugs:**

- SelectButton pt name correction [\#6382](https://github.com/primefaces/primevue/issues/6382)
- ToggleButton: aria-label and aria-labelledby not observed [\#6377](https://github.com/primefaces/primevue/issues/6377)
- FileUpload: Fix type of FileUploadState.messages [\#6370](https://github.com/primefaces/primevue/issues/6370)
- TreeTable: click and arrow key defect [\#6368](https://github.com/primefaces/primevue/issues/6368)
- Dialog: no dragstart event to accompany dragend [\#6357](https://github.com/primefaces/primevue/issues/6357)
- Dialog: dragging state is not reset when closed while dragging [\#6356](https://github.com/primefaces/primevue/issues/6356)
- InputOtp: IntegerOnly mode accepts "space" [\#6353](https://github.com/primefaces/primevue/issues/6353)
- InputOtp: Pasting adds an extra character [\#6351](https://github.com/primefaces/primevue/issues/6351)
- DatePicker: Pick month does not work [\#6342](https://github.com/primefaces/primevue/issues/6342)
- DataTable: Cannot set properties of null (setting 'tabIndex') [\#6323](https://github.com/primefaces/primevue/issues/6323)
- DatePicker showOtherMonths wrong behaviour [\#6307](https://github.com/primefaces/primevue/issues/6307)
- Click outside only when not modal [\#6284](https://github.com/primefaces/primevue/pull/6284)
- Select: Chinese IME input will be stopped in filter input element [\#6279](https://github.com/primefaces/primevue/issues/6279)

## [4.0.6](https://github.com/primefaces/primevue/tree/4.0.6) (2024-09-10)

[Full Changelog](https://github.com/primefaces/primevue/compare/4.0.5...4.0.6)

**Fixed bugs:**

- animate-slidedown fails when a Tailwind prefix is used [\#6365](https://github.com/primefaces/primevue/issues/6365)
- Tree: wrong pt and classname for InputText [\#6301](https://github.com/primefaces/primevue/issues/6301)
- pt pcFilterIconContainer defects on form components [\#6286](https://github.com/primefaces/primevue/issues/6286)
- File Upload: Basic Mode does not apply buttonProps [\#6255](https://github.com/primefaces/primevue/issues/6255)
- Multiple Components: Augment vue using declare module 'vue' instead of declare module '@vue/runtime-core' (and declare module 'vue/types/vue') to avoid compilebreaks [\#6199](https://github.com/primefaces/primevue/issues/6199)

## [4.0.5](https://github.com/primefaces/primevue/tree/4.0.5) (2024-08-23)

[Full Changelog](https://github.com/primefaces/primevue/compare/4.0.4...4.0.5)

Expand Down
8 changes: 4 additions & 4 deletions apps/showcase/assets/data/news.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": 65,
"content": "Summer Sale: Up to 50% Off 🛍️",
"linkText": "Visit Store",
"linkHref": "https://primefaces.org/store"
"id": 67,
"content": "480 Vue Components with Tailwind 🚀",
"linkText": "Visit PrimeBlocks",
"linkHref": "https://primeblocks.org"
}
22 changes: 14 additions & 8 deletions apps/showcase/assets/menu/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,15 @@
"name": "Editor",
"to": "/editor"
},
{
"name": "IftaLabel",
"to": "/iftalabel",
"badge": "NEW"
},
{
"name": "FloatLabel",
"to": "/floatlabel"
"to": "/floatlabel",
"badge": "NEW"
},
{
"name": "IconField",
Expand Down Expand Up @@ -433,14 +439,14 @@
"name": "FocusTrap",
"to": "/focustrap"
},
{
"name": "Inplace",
"to": "/inplace"
},
{
"name": "Fluid",
"to": "/fluid"
},
{
"name": "Inplace",
"to": "/inplace"
},
{
"name": "MeterGroup",
"to": "/metergroup"
Expand Down Expand Up @@ -527,7 +533,8 @@
{
"name": "PrimeBlocks",
"icon": "pi pi-server",
"href": "https://blocks.primevue.org"
"href": "https://primeblocks.org",
"badge": "NEW"
},
{
"name": "Guides",
Expand Down Expand Up @@ -572,8 +579,7 @@
{
"name": "Contribution",
"to": "/contribution",
"icon": "pi pi-users",
"badge": "NEW"
"icon": "pi pi-users"
},
{
"name": "Discover",
Expand Down
40 changes: 40 additions & 0 deletions apps/showcase/assets/styles/layout/_doc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -432,3 +432,43 @@
}
}
}

.doc-ptviewerwrapper {
display: flex;
flex-direction: row;
padding: 0 !important;

.doc-ptviewer {
display: flex;
align-items: center;
justify-content: center;
border-color: var(--border-color);
border-width: 0 1px 0 0;
padding: 1rem;
width: 75%;
}

.doc-ptoptions {
display: flex;
flex-direction: column;
gap: .5rem;
padding: .5rem;
width: 25%;
max-height: 720px;
overflow-y: auto;

.doc-ptoption {
display: flex;
flex-direction: column;
padding: .5rem;

&:hover {
background-color: var(--hover-background);
}

.doc-ptoption-text:hover {
cursor: default;
}
}
}
}
18 changes: 16 additions & 2 deletions apps/showcase/assets/styles/layout/_responsive.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}

@media screen and (max-width: 1199px) {
.layout-topbar-inner {
.layout-topbar-inner {
padding-left: 2rem;
padding-right: 2rem;

Expand Down Expand Up @@ -128,6 +128,20 @@
.DocSearch-Container {
position: fixed !important;
}

.doc-ptviewerwrapper {
flex-direction: column;

.doc-ptviewer {
width: 100%;
border-width: 0 0 1px 0;
}

.doc-ptoptions {
width: 100%;
padding: 1rem;
}
}
}

@media screen and (max-width: 575px) {
Expand Down Expand Up @@ -174,4 +188,4 @@
display: none;
}
}
}
}
63 changes: 63 additions & 0 deletions apps/showcase/components/doc/DocPTViewer.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<template>
<div ref="container" class="doc-ptviewerwrapper card">
<div id="doc-ptviewer" class="doc-ptviewer">
<slot />
</div>
<div class="doc-ptoptions">
<template v-if="docs[0].data">
<template v-for="doc of docs" :key="doc.key">
<div v-for="item of handleData(doc.data)" :key="item.value" class="doc-ptoption" @mouseenter="enterSection(item, doc.key)" @mouseleave="leaveSection">
<span class="doc-ptoption-text">
{{ item.label }}
<template v-if="docs.length > 1">| {{ doc.key }}</template>
</span>
</div>
</template>
</template>
</div>
</div>
</template>

<script>
import { addClass, find, removeClass } from '@primeuix/utils/dom';
export default {
props: ['docs'],
data() {
return {
hoveredElements: []
};
},
methods: {
enterSection(item, componentName) {
let selector,
cmpName = componentName;
if (componentName === 'ConfirmDialog') cmpName = 'Dialog';
else if (componentName === 'ScrollTop') cmpName = 'Button';
if (item.label === 'root') selector = `[data-pc-name="${cmpName.toLowerCase()}"]`;
else if (item.label.startsWith('pc')) selector = `[data-pc-name="${item.label.toLowerCase()}"]`;
else selector = `[data-pc-section="${item.label.toLowerCase()}"]`;
this.hoveredElements = find(this.$refs.container, selector);
if (this.hoveredElements.length === 0) this.hoveredElements = find(document.querySelector('body'), selector); //TODO:
this.hoveredElements?.forEach((el) => {
addClass(el, '!ring !ring-blue-500 !z-10');
});
},
leaveSection() {
this.hoveredElements.forEach((el) => {
removeClass(el, '!ring !ring-blue-500 !z-10');
});
this.hoveredElements = [];
},
handleData(doc) {
return doc.filter((item) => item.label !== 'hooks' && item.label !== 'transition');
}
}
};
</script>
14 changes: 8 additions & 6 deletions apps/showcase/components/doc/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ export const getPTOptions = (name) => {
objToReplace.type = prop.type;
}

data.push({
value: i + 1,
label: prop.name,
options: hasSubComp ? subOptions?.props : options?.props,
description: prop.description
});
if (!prop.deprecated) {
data.push({
value: i + 1,
label: prop.name,
options: hasSubComp ? subOptions?.props : options?.props,
description: prop.description
});
}
} else {
data.push({
value: i + 1,
Expand Down
4 changes: 2 additions & 2 deletions apps/showcase/components/landing/BlockSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="section-header relative z-30">Blocks</div>
<p class="section-detail relative z-30">400+ ready to copy-paste UI blocks to build spectacular applications in no time.</p>
<div class="flex justify-center mt-6 relative z-30">
<a href="https://blocks.primevue.org" class="linkbox linkbox-primary">
<a href="https://primeblocks.org" class="linkbox linkbox-primary">
<span>Explore All</span>
<i class="pi pi-arrow-right ml-2"></i>
</a>
Expand Down Expand Up @@ -355,7 +355,7 @@
<div class="block-content flex-1 p-6 flex flex-col">
<div class="block-main h-full flex justify-center items-center flex-col">
<div class="block-item block-item-active animation-2 mx-4 w-32 text-center flex flex-col items-center overflow-visible">
<div class="-mt-6">
<div>
<img src="https://primefaces.org/cdn/primevue/images/landing/blocks/question.svg" alt="question mark" />
</div>
<div class="bar w-8 mt-2"></div>
Expand Down
2 changes: 1 addition & 1 deletion apps/showcase/components/landing/UsersSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<section class="landing-users py-20 px-4 lg:px-20">
<div class="section-header">Who Uses</div>
<p class="section-detail">
PrimeTek libraries have reached over <span class="font-semibold animated-text relative whitespace-nowrap"> <span>150 Million Downloads </span> </span> on npm! Join the PrimeLand community and experience the difference yourself.
PrimeTek libraries have reached over <span class="font-semibold animated-text relative whitespace-nowrap"> <span>200 Million Downloads </span> </span> on npm! Join the PrimeLand community and experience the difference yourself.
</p>
<div class="flex justify-center items-center mt-6">
<span class="ml-2"> </span>
Expand Down
4 changes: 2 additions & 2 deletions apps/showcase/components/landing/samples/OverviewApp.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="flex-1 h-full overflow-y-auto pb-0.5">
<div class="flex flex-wrap gap-4 items-start justify-between">
<div class="flex flex-wrap gap-4 items-start justify-between p-1">
<div class="flex-1">
<div class="text-muted-color font-medium leading-normal">Overview</div>
<div class="text-color text-3xl font-semibold leading-normal">Welcome to PrimeVue</div>
Expand All @@ -26,7 +26,7 @@
</Button>
</div>
</div>
<div class="mt-4 flex flex-wrap gap-6 items-center justify-between">
<div class="mt-4 flex flex-wrap gap-6 items-center justify-between p-1">
<SelectButton v-model="selectedTime" :options="timeOptions" aria-labelledby="basic" :allowEmpty="false" @change="changeSelect" />
<div class="flex items-center gap-2">
<Button label="Download" icon="pi pi-download" iconPos="right" />
Expand Down
8 changes: 0 additions & 8 deletions apps/showcase/doc/accordion/pt/PTImage.vue

This file was deleted.

63 changes: 63 additions & 0 deletions apps/showcase/doc/accordion/pt/PTViewer.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocPTViewer :docs="docs">
<Accordion value="0">
<AccordionPanel value="0">
<AccordionHeader>Header I</AccordionHeader>
<AccordionContent>
<p class="m-0">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</AccordionContent>
</AccordionPanel>
<AccordionPanel value="1">
<AccordionHeader>Header II</AccordionHeader>
<AccordionContent>
<p class="m-0">
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim
ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.
</p>
</AccordionContent>
</AccordionPanel>
<AccordionPanel value="2">
<AccordionHeader>Header III</AccordionHeader>
<AccordionContent>
<p class="m-0">
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa
qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.
</p>
</AccordionContent>
</AccordionPanel>
</Accordion>
</DocPTViewer>
</template>

<script>
import { getPTOptions } from '@/components/doc/helpers';
export default {
data() {
return {
docs: [
{
data: getPTOptions('Accordion'),
key: 'Accordion'
},
{
data: getPTOptions('AccordionPanel'),
key: 'AccordionPanel'
},
{
data: getPTOptions('AccordionHeader'),
key: 'AccordionHeader'
},
{
data: getPTOptions('AccordionContent'),
key: 'AccordionContent'
}
]
};
}
};
</script>
Loading

0 comments on commit c1d2b67

Please sign in to comment.