ng-tailwind 4.2.28 → 4.2.29

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.
@@ -1986,15 +1986,23 @@ class NgtInputComponent extends NgtBaseNgModel {
1986
1986
  return this.clearInput();
1987
1987
  }
1988
1988
  let masks = {
1989
- [InputMaskEnum.CPF]: '999.999.999-99',
1990
- [InputMaskEnum.CNPJ]: '99.999.999/9999-99',
1989
+ [InputMaskEnum.CPF]: {
1990
+ mask: ['999.999.999-99'],
1991
+ clearMaskOnLostFocus: false
1992
+ },
1993
+ [InputMaskEnum.CNPJ]: {
1994
+ mask: ['99.999.999/9999-99'],
1995
+ clearMaskOnLostFocus: false
1996
+ },
1991
1997
  [InputMaskEnum.CPF_CNPJ_RUT]: {
1992
1998
  mask: ['999.999.999-99', '999999999999', '99.999.999/9999-99'],
1993
- keepStatic: true
1999
+ keepStatic: true,
2000
+ clearMaskOnLostFocus: false
1994
2001
  },
1995
2002
  [InputMaskEnum.CPF_CNPJ]: {
1996
2003
  mask: ['999.999.999-99', '99.999.999/9999-99'],
1997
- keepStatic: true
2004
+ keepStatic: true,
2005
+ clearMaskOnLostFocus: false
1998
2006
  },
1999
2007
  [InputMaskEnum.DECIMAL]: {
2000
2008
  digits: this.decimalMaskPrecision,
@@ -2004,27 +2012,36 @@ class NgtInputComponent extends NgtBaseNgModel {
2004
2012
  repeat: 16,
2005
2013
  rightAlign: false,
2006
2014
  max: this.maxValue,
2015
+ clearMaskOnLostFocus: false
2007
2016
  },
2008
2017
  [InputMaskEnum.CELLPHONE]: {
2009
2018
  mask: ['(99) 999-999', '(99) 9999-9999', '(99) 99999-9999'],
2010
- keepStatic: true
2019
+ keepStatic: true,
2020
+ clearMaskOnLostFocus: false
2011
2021
  },
2012
2022
  [InputMaskEnum.INTERNATIONAL_PHONE]: {
2013
2023
  mask: ['+999 99 999-999', '+99 (99) 9999-9999', '+99 (99) 99999-9999', '+999 (99) 9999-9999', '+999 (99) 99999-9999'],
2014
- keepStatic: true
2024
+ keepStatic: true,
2025
+ clearMaskOnLostFocus: false
2015
2026
  },
2016
2027
  [InputMaskEnum.PLATE]: {
2017
2028
  mask: ['AAA-9&99'],
2018
- keepStatic: true
2029
+ keepStatic: true,
2030
+ clearMaskOnLostFocus: false
2031
+ },
2032
+ [InputMaskEnum.CEP]: {
2033
+ mask: ['99999-999'],
2034
+ clearMaskOnLostFocus: false
2019
2035
  },
2020
- [InputMaskEnum.CEP]: '99999-999',
2021
2036
  [InputMaskEnum.INTEGER]: {
2022
2037
  max: this.maxValue,
2023
2038
  min: this.validateMinValueOnMask ? this.minValue : undefined,
2024
- rightAlign: false
2039
+ rightAlign: false,
2040
+ clearMaskOnLostFocus: false
2025
2041
  },
2026
2042
  [InputMaskEnum.NUMERIC_STRING]: {
2027
2043
  regex: "[0-9]*",
2044
+ clearMaskOnLostFocus: false
2028
2045
  },
2029
2046
  [InputMaskEnum.TIME]: '99:99',
2030
2047
  };