Skip to content

Commit

Permalink
Merge branch 'prod'
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Jan 30, 2024
2 parents 2032fd5 + b11f12c commit b42c9eb
Show file tree
Hide file tree
Showing 217 changed files with 294 additions and 307 deletions.
17 changes: 2 additions & 15 deletions components/doc/DocSectionCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@
</button>
</template>

<template v-if="!hideCodeSandbox">
<button v-tooltip.bottom="{ value: 'Edit in CodeSandbox', class: 'doc-section-code-tooltip' }" type="button" class="h-2rem w-2rem p-0 inline-flex align-items-center justify-content-center" @click="showCodesandbox">
<svg role="img" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" style="display: 'block'">
<path
d="M2 6l10.455-6L22.91 6 23 17.95 12.455 24 2 18V6zm2.088 2.481v4.757l3.345 1.86v3.516l3.972 2.296v-8.272L4.088 8.481zm16.739 0l-7.317 4.157v8.272l3.972-2.296V15.1l3.345-1.861V8.48zM5.134 6.601l7.303 4.144 7.32-4.18-3.871-2.197-3.41 1.945-3.43-1.968L5.133 6.6z"
/>
</svg>
</button>
</template>

<template v-if="!hideStackBlitz">
<button v-tooltip.bottom="{ value: 'Edit in StackBlitz', class: 'doc-section-code-tooltip' }" type="button" class="h-2rem w-2rem p-0 inline-flex align-items-center justify-content-center" @click="showStackblitz">
<svg role="img" width="13" height="18" viewBox="0 0 13 19" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="display: 'block'">
Expand Down Expand Up @@ -72,7 +62,7 @@
</template>

<script>
import { useCodeSandbox, useStackBlitz } from './codeeditor';
import { useStackBlitz } from './codeeditor';
export default {
inheritAttrs: false,
Expand All @@ -91,7 +81,7 @@ export default {
},
hideCodeSandbox: {
type: Boolean,
default: false
default: true
},
hideStackBlitz: {
type: Boolean,
Expand Down Expand Up @@ -142,9 +132,6 @@ export default {
async copyCode() {
await navigator.clipboard.writeText(this.code[this.codeLang]);
},
showCodesandbox() {
useCodeSandbox(this.codeLang, this.code[this.codeLang === 'data' ? 'options' : this.codeLang], this.service, this.code.pages, this.dependencies, this.component, this.extFiles);
},
showStackblitz() {
useStackBlitz(this.codeLang, this.code[this.codeLang === 'data' ? 'options' : this.codeLang], this.service, this.code.pages, this.dependencies, this.component, this.extFiles);
}
Expand Down
2 changes: 1 addition & 1 deletion doc/accordion/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
4 changes: 2 additions & 2 deletions doc/animateonscroll/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand All @@ -10,7 +10,7 @@ export default {
code: {
basic: `
import AnimateOnScroll from 'primevue/animateonscroll';
app.directive('animateonscroll', AnimateOnScroll);
`
}
Expand Down
2 changes: 1 addition & 1 deletion doc/autocomplete/AccessibilityDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
element.
</p>

<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode hideStackBlitz v-bind="$attrs" />

<h3>Closed State Keyboard Support</h3>
<div class="doc-tablewrapper">
Expand Down
2 changes: 1 addition & 1 deletion doc/autocomplete/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs"></DocSectionText>
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/autoimport/OverviewDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<DocSectionText v-bind="$attrs">
<p>PrimeVue components need to be imported and configured individually. In the next section, we'll cleanup the code using auto imports.</p>
</DocSectionText>
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
6 changes: 3 additions & 3 deletions doc/autoimport/UnpluginDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
The <a href="https://github.com/unplugin/unplugin-vue-components" target="_blank" rel="noopener noreferrer">unplugin-vue-components</a> library can automatically import and register PrimeVue components with the built-in resolver. Let's
begin with installing the library.
</p>
<DocSectionCode :code="code1" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code1" hideToggleCode importCode hideStackBlitz />
<p>Next step would be adding the <i>PrimeVueResolver</i> at vite.config using the <i>Components</i> plugin.</p>
<DocSectionCode :code="code2" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code2" hideToggleCode importCode hideStackBlitz />
<p>
That's it, now the initialization code can be refactored as the following. For configuration like namespacing, visit the
<a href="https://github.com/unplugin/unplugin-vue-components?tab=readme-ov-file#configuration" target="_blank" rel="noopener noreferrer">official documentation</a>.
</p>
<DocSectionCode :code="code3" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code3" hideToggleCode importCode hideStackBlitz />
</DocSectionText>
</template>

Expand Down
2 changes: 1 addition & 1 deletion doc/avatar/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs"></DocSectionText>
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/badge/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs"></DocSectionText>
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/blockui/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/breadcrumb/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
10 changes: 5 additions & 5 deletions doc/breadcrumb/RouterDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</template>
</Breadcrumb>
</div>
<DocSectionCode :code="code" hideStackBlitz hideCodeSandbox />
<DocSectionCode :code="code" hideStackBlitz />
</template>

<script>
Expand Down Expand Up @@ -73,8 +73,8 @@ export default {
route: '/introduction'
},
items: [
{ label: 'Components' },
{ label: 'Form' },
{ label: 'Components' },
{ label: 'Form' },
{ label: 'InputText', route: '/inputtext' }
]
}
Expand Down Expand Up @@ -109,8 +109,8 @@ const home = ref({
route: '/introduction'
});
const items = ref([
{ label: 'Components' },
{ label: 'Form' },
{ label: 'Components' },
{ label: 'Form' },
{ label: 'InputText', route: '/inputtext' }
]);
<\/script>
Expand Down
2 changes: 1 addition & 1 deletion doc/button/AccessibilityDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
icon only or custom templating is used, it is recommended to use <i>aria-label</i> so that screen readers would be able to read the element properly.
</p>

<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode hideStackBlitz v-bind="$attrs" />
<h3>Keyboard Support</h3>
<div class="doc-tablewrapper">
<table class="doc-table">
Expand Down
2 changes: 1 addition & 1 deletion doc/button/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/calendar/AccessibilityDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<p>Calendar also includes a hidden section that is only available to screen readers with <i>aria-live</i> as "polite". This element is updated when the selected date changes to instruct the user about the current date selected.</p>

<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode hideStackBlitz v-bind="$attrs" />

<h3>Choose Date Button Keyboard Support</h3>
<div class="doc-tablewrapper">
Expand Down
2 changes: 1 addition & 1 deletion doc/calendar/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/card/AccessibilityDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
to use one of the <a href="https://www.w3.org/TR/wai-aria/#landmark" alt="Landmark Roles">landmark</a> roles like <i>region</i>, you may use the <i>role</i> property.
</p>

<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode hideStackBlitz v-bind="$attrs" />

<h3>Keyboard Support</h3>
<p>Component does not include any interactive elements.</p>
Expand Down
2 changes: 1 addition & 1 deletion doc/card/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/carousel/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/cascadeselect/AccessibilityDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<i>aria-expanded</i> attributes. The container element of a treenode has the <i>group</i> role. The <i>aria-setsize</i>, <i>aria-posinset</i> and <i>aria-level</i> attributes are calculated implicitly and added to each treeitem.
</p>

<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode hideStackBlitz v-bind="$attrs" />

<h3>Closed State Keyboard Support</h3>
<div class="doc-tablewrapper">
Expand Down
2 changes: 1 addition & 1 deletion doc/cascadeselect/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/cdn/ComponentDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<DocSectionText v-bind="$attrs">
<p>Include the component to use with a script tag.</p>
</DocSectionText>
<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/cdn/CreateAppDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<DocSectionText v-bind="$attrs">
<p>Create an app container element and setup the application using <i>createApp</i>.</p>
</DocSectionText>
<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/cdn/ExampleDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<DocSectionText v-bind="$attrs">
<p>A complete example using a PrimeVue DatePicker. You can also view this sample live at <a href="https://stackblitz.com/edit/web-platform-xceybs?file=index.html" target="_blank" rel="noopener noreferrer">Stackblitz</a>.</p>
</DocSectionText>
<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/cdn/PluginDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
application.
</p>
</DocSectionText>
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/cdn/ScriptDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<a href="https://cdnjs.com" target="_blank" rel="noopener noreferrer">cdnjs</a> can also be used.
</p>
</DocSectionText>
<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/cdn/ThemingDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<DocSectionText v-bind="$attrs">
<p>Include the theme file with a link element, see <NuxtLink to="/theming/#themes">themes</NuxtLink> section for the complete list of available themes to choose from.</p>
</DocSectionText>
<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/chart/AccessibilityDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<i>canvasProps</i> property to define aria roles and properties, in addition any content inside the component is directly passed as a child of the canvas to be able to provide fallback content like a table.
</p>

<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode hideStackBlitz v-bind="$attrs" />
</DocSectionText>
</template>

Expand Down
2 changes: 1 addition & 1 deletion doc/chart/ChartJSDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<DocSectionText v-bind="$attrs">
<p>Chart component uses <a href="https://chartjs.org/">Chart.JS</a> underneath so it needs to be installed as a dependency.</p>
</DocSectionText>
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/chart/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/checkbox/AccessibilityDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<i>aria-labelledby</i>, <i>aria-label</i> props.
</p>

<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode hideStackBlitz v-bind="$attrs" />

<h3>Keyboard Support</h3>
<div class="doc-tablewrapper">
Expand Down
2 changes: 1 addition & 1 deletion doc/checkbox/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/chip/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/chips/AccessibilityDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
horizontal whereas each chip has the <i>option</i> role with <i>aria-label</i> set to the label of the chip.
</p>

<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode hideStackBlitz v-bind="$attrs" />

<h3>Input Field Keyboard Support</h3>
<div class="doc-tablewrapper">
Expand Down
2 changes: 1 addition & 1 deletion doc/chips/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/colorpicker/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion doc/colors/OverviewDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<div :style="{ backgroundColor: 'var(--highlight-bg)', color: 'var(--highlight-text-color)', borderRadius: 'var(--border-radius)', padding: '3rem' }">Highlighted Item</div>
<div :style="{ backgroundColor: 'var(--primary-color)', color: 'var(--primary-color-text)', borderRadius: 'var(--border-radius)', padding: '3rem' }">Primary Color</div>
</div>
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>

<script>
Expand Down
Loading

0 comments on commit b42c9eb

Please sign in to comment.