ng-tailwind 4.1.2 → 4.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ngt-helper/ngt-helper.component.d.ts +2 -1
- package/components/ngt-input/ngt-input.component.d.ts +0 -13
- package/components/ngt-multi-select/ngt-multi-select.component.d.ts +4 -2
- package/esm2020/components/ngt-checkbox/ngt-checkbox.component.mjs +2 -2
- package/esm2020/components/ngt-date/ngt-date.component.mjs +5 -5
- package/esm2020/components/ngt-dropzone/ngt-dropzone.component.mjs +2 -2
- package/esm2020/components/ngt-helper/ngt-helper.component.mjs +6 -3
- package/esm2020/components/ngt-input/ngt-input.component.mjs +24 -37
- package/esm2020/components/ngt-multi-select/ngt-multi-select.component.mjs +36 -14
- package/esm2020/components/ngt-portlet/ngt-portlet-header/ngt-portlet-header.component.mjs +1 -1
- package/esm2020/components/ngt-radio-button/ngt-radio-button.component.mjs +2 -2
- package/esm2020/components/ngt-section/ngt-section.component.mjs +2 -2
- package/esm2020/components/ngt-select/ngt-select.component.mjs +2 -2
- package/esm2020/components/ngt-textarea/ngt-textarea.component.mjs +2 -2
- package/esm2020/helpers/input-mask/input-mask.helper.mjs +23 -0
- package/fesm2015/ng-tailwind.mjs +99 -63
- package/fesm2015/ng-tailwind.mjs.map +1 -1
- package/fesm2020/ng-tailwind.mjs +96 -63
- package/fesm2020/ng-tailwind.mjs.map +1 -1
- package/helpers/input-mask/input-mask.helper.d.ts +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import Inputmask from 'inputmask/dist/inputmask.es6.js';
|
|
2
|
+
export var InputMaskEnum;
|
|
3
|
+
(function (InputMaskEnum) {
|
|
4
|
+
InputMaskEnum["CPF"] = "cpf";
|
|
5
|
+
InputMaskEnum["CNPJ"] = "cnpj";
|
|
6
|
+
InputMaskEnum["CPF_CNPJ"] = "cnpj-cpf";
|
|
7
|
+
InputMaskEnum["CPF_CNPJ_RUT"] = "cnpj-cpf-rut";
|
|
8
|
+
InputMaskEnum["DECIMAL"] = "decimal";
|
|
9
|
+
InputMaskEnum["CELLPHONE"] = "cellphone";
|
|
10
|
+
InputMaskEnum["PLATE"] = "plate";
|
|
11
|
+
InputMaskEnum["CEP"] = "cep";
|
|
12
|
+
InputMaskEnum["INTEGER"] = "integer";
|
|
13
|
+
InputMaskEnum["TIME"] = "time";
|
|
14
|
+
InputMaskEnum["INTERNATIONAL_PHONE"] = "international-phone";
|
|
15
|
+
InputMaskEnum["DATE"] = "date";
|
|
16
|
+
})(InputMaskEnum || (InputMaskEnum = {}));
|
|
17
|
+
export function applyInputMask(element, mask, parameters) {
|
|
18
|
+
Inputmask(mask, parameters).mask(element);
|
|
19
|
+
}
|
|
20
|
+
export function removeInputMask(element) {
|
|
21
|
+
Inputmask.remove(element);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtbWFzay5oZWxwZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZy10YWlsd2luZC9zcmMvaGVscGVycy9pbnB1dC1tYXNrL2lucHV0LW1hc2suaGVscGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sU0FBUyxNQUFNLGlDQUFpQyxDQUFDO0FBRXhELE1BQU0sQ0FBTixJQUFZLGFBYVg7QUFiRCxXQUFZLGFBQWE7SUFDckIsNEJBQVcsQ0FBQTtJQUNYLDhCQUFhLENBQUE7SUFDYixzQ0FBcUIsQ0FBQTtJQUNyQiw4Q0FBNkIsQ0FBQTtJQUM3QixvQ0FBbUIsQ0FBQTtJQUNuQix3Q0FBdUIsQ0FBQTtJQUN2QixnQ0FBZSxDQUFBO0lBQ2YsNEJBQVcsQ0FBQTtJQUNYLG9DQUFtQixDQUFBO0lBQ25CLDhCQUFhLENBQUE7SUF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