Skip to content

Commit 25cefb5

Browse files
committed
feat(PassThrough): Add Options and unstyled attribute
1 parent d735e89 commit 25cefb5

23 files changed

+44
-2
lines changed

src/components/demo/PrimeInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const documentationLink = `https://primevue.org/${props.header.replace('Prime',
4444
<TabPanel v-if="primeAttributes || customAttributes" header="Supported Attributes">
4545
<h4>Base Attributes</h4>
4646
<div>
47-
<span>_disabled, _readonly, style, class, tabindex, ariaLabel, ariaLabelledby</span>
47+
<span>_disabled, _readonly, style, class, tabindex, ariaLabel, ariaLabelledby, pt, ptOptions, unstyled</span>
4848
</div>
4949
<h4>PrimeVue Attributes</h4>
5050
<div>

src/formkit/PrimeCalendar.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ const styleClass = computed(() => (context?.state.validationVisible && !context?
7070
:panel-style="attrs.panelStyle"
7171
:panel-class="attrs.panelClass"
7272
:pt="attrs.pt"
73+
:pt-options="attrs.ptOptions"
74+
:unstyled="attrs.unstyled ?? false"
7375
@date-select="handleSelect"
7476
@input="handleInput"
7577
/>

src/formkit/PrimeCheckbox.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ const styleClass = computed(() => (context?.state.validationVisible && !context?
3030
:true-value="attrs.trueValue ?? undefined"
3131
:false-value="attrs.falseValue ?? undefined"
3232
:pt="attrs.pt"
33+
:pt-options="attrs.ptOptions"
34+
:unstyled="attrs.unstyled ?? false"
3335
@input="handleInput"
3436
/>
3537
<span v-if="context.attrs.labelRight" class="formkit-prime-right">{{ context.attrs.labelRight }}</span>

src/formkit/PrimeChips.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ const styleClass = computed(() => (context?.state.validationVisible && !context?
3030
:placeholder="attrs.placeholder"
3131
:separator="attrs.separator"
3232
:pt="attrs.pt"
33+
:pt-options="attrs.ptOptions"
34+
:unstyled="attrs.unstyled ?? false"
3335
@add="handleInput"
3436
@remove="handleInput"
3537
/>

src/formkit/PrimeColorPicker.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ function handleChange(e: any) {
2626
:inline="attrs.inline ?? false"
2727
:format="attrs.format"
2828
:pt="attrs.pt"
29+
:pt-options="attrs.ptOptions"
30+
:unstyled="attrs.unstyled ?? false"
2931
@change="handleChange"
3032
/>
3133
</div>

src/formkit/PrimeDropdown.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ const styleClass = computed(() => (context?.state.validationVisible && !context?
3434
:filter="attrs.filter ?? false"
3535
:show-clear="attrs.showClear ?? false"
3636
:pt="attrs.pt"
37+
:pt-options="attrs.ptOptions"
38+
:unstyled="attrs.unstyled ?? false"
3739
@change="handleInput"
3840
@blur="handleBlur"
3941
/>

src/formkit/PrimeEditor.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ const styleClass = computed(() => (context?.state.validationVisible && !context?
3636
:formats="attrs.formats"
3737
:modules="attrs.modules"
3838
:pt="attrs.pt"
39+
:pt-options="attrs.ptOptions"
40+
:unstyled="attrs.unstyled ?? false"
3941
@text-change="handleInput"
4042
@selection-change="handleSelection"
4143
/>

src/formkit/PrimeInputMask.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ const styleClass = computed(() => (context?.state.validationVisible && !context?
3131
:auto-clear="attrs.autoClear ?? true"
3232
:unmask="attrs.unmask ?? false"
3333
:pt="attrs.pt"
34+
:pt-options="attrs.ptOptions"
35+
:unstyled="attrs.unstyled ?? false"
3436
@blur="handleInput"
3537
/>
3638
</div>

src/formkit/PrimeInputNumber.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ const styleClass = computed(() => (context?.state.validationVisible && !context?
4141
:button-layout="attrs.buttonLayout ?? 'stacked'"
4242
:step="attrs.step ?? undefined"
4343
:pt="attrs.pt"
44+
:pt-options="attrs.ptOptions"
45+
:unstyled="attrs.unstyled ?? false"
4446
@input="handleInput"
4547
@blur="handleBlur"
4648
/>

src/formkit/PrimeInputSwitch.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ const styleClass = computed(() => (context?.state.validationVisible && !context?
2828
:true-value="attrs.trueValue ?? undefined"
2929
:false-value="attrs.falseValue ?? undefined"
3030
:pt="attrs.pt"
31+
:pt-options="attrs.ptOptions"
32+
:unstyled="attrs.unstyled ?? false"
3133
@input="handleInput"
3234
/>
3335
<span v-if="context.attrs.labelRight" class="formkit-prime-right">{{ context.attrs.labelRight }}</span>

0 commit comments

Comments
 (0)