diff --git a/api-generator/components/inputmask.js b/api-generator/components/inputmask.js
index 9111e6ae7..f1269744c 100644
--- a/api-generator/components/inputmask.js
+++ b/api-generator/components/inputmask.js
@@ -28,6 +28,12 @@ const InputMaskProps = [
type: 'boolean',
default: 'false',
description: 'Defines if model sets the raw unmasked value to bound value or the formatted mask value.'
+ },
+ {
+ name: 'pt',
+ type: 'any',
+ default: 'null',
+ description: 'Uses to pass attributes to DOM elements inside the component.'
}
];
diff --git a/components/lib/config/PrimeVue.d.ts b/components/lib/config/PrimeVue.d.ts
index 96ec2502d..7696bd8f2 100644
--- a/components/lib/config/PrimeVue.d.ts
+++ b/components/lib/config/PrimeVue.d.ts
@@ -30,6 +30,7 @@ import { GalleriaPassThroughOptions } from '../galleria';
import { ImagePassThroughOptions } from '../image';
import { InlineMessagePassThroughOptions } from '../inlinemessage';
import { InplacePassThroughOptions } from '../inplace';
+import { InputMaskPassThroughOptions } from '../inputmask';
import { MegaMenuPassThroughOptions } from '../megamenu';
import { MenuPassThroughOptions } from '../menu';
import { MenubarPassThroughOptions } from '../menubar';
@@ -105,6 +106,7 @@ interface PrimeVuePTOptions {
image?: ImagePassThroughOptions;
inlinemessage?: InlineMessagePassThroughOptions;
inplace?: InplacePassThroughOptions;
+ inputmask?: InputMaskPassThroughOptions;
megamenu?: MegaMenuPassThroughOptions;
menu?: MenuPassThroughOptions;
menubar?: MenubarPassThroughOptions;
diff --git a/components/lib/inputmask/InputMask.d.ts b/components/lib/inputmask/InputMask.d.ts
index b6ceadf06..fdb65de4e 100755
--- a/components/lib/inputmask/InputMask.d.ts
+++ b/components/lib/inputmask/InputMask.d.ts
@@ -9,6 +9,26 @@
*/
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
+export declare type InputMaskPassThroughOptionType = InputMaskPassThroughAttributes | null | undefined;
+
+/**
+ * Custom passthrough(pt) options.
+ * @see {@link InputMaskProps.pt}
+ */
+export interface InputMaskPassThroughOptions {
+ /**
+ * Uses to pass attributes to the root's DOM element.
+ */
+ root?: InputMaskPassThroughOptionType;
+}
+
+/**
+ * Custom passthrough attributes for each DOM elements
+ */
+export interface InputMaskPassThroughAttributes {
+ [key: string]: any;
+}
+
/**
* Defines valid properties in InputMask component.
*/
@@ -41,6 +61,11 @@ export interface InputMaskProps {
* @defaultValue false
*/
readonly?: boolean | undefined;
+ /**
+ * Uses to pass attributes to DOM elements inside the component.
+ * @type {InputMaskPassThroughOptions}
+ */
+ pt?: InputMaskPassThroughOptions;
}
export interface InputMaskSlots {}
diff --git a/components/lib/inputmask/InputMask.vue b/components/lib/inputmask/InputMask.vue
index f03955e97..930b887a5 100755
--- a/components/lib/inputmask/InputMask.vue
+++ b/components/lib/inputmask/InputMask.vue
@@ -1,12 +1,14 @@
-
+