phanterpwa 13.13.17__py3-none-any.whl → 13.13.18__py3-none-any.whl

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.
phanterpwa/__init__.py CHANGED
@@ -3,7 +3,7 @@
3
3
  # license: MIT
4
4
 
5
5
  __author__ = "PhanterJR<junior.conex@gmail.com>"
6
- __version__ = "13.13.17"
6
+ __version__ = "13.13.18"
7
7
  __install_requeriments__ = [
8
8
  "psutil",
9
9
  "tornado",
@@ -149,8 +149,10 @@ class Input(Widget):
149
149
  parameters["_class"] = "{0}{1}".format(parameters["_class"], " e-display_hidden")
150
150
  else:
151
151
  self._type = "text"
152
- if self._mask == "fone":
153
- self._maks = masks.maskFone(self._value)
152
+ # if self._mask == "fone":
153
+ # self._maks = masks.maskFone(self._value)
154
+ # elif self._mask == "real":
155
+ # self._maks = masks.phanterCurrency()
154
156
  label = ""
155
157
  if self._label is not None:
156
158
  wrapper_attr["_class"] = "{0}{1}".format(wrapper_attr["_class"], " has_label")
@@ -326,6 +328,11 @@ class Input(Widget):
326
328
  if self._mask is not "" and self._mask is not None:
327
329
  if self._mask == "fone":
328
330
  masks.Mask(target.find("input").select(), lambda val: masks.maskFone(val))
331
+ elif self._mask == "real":
332
+ v = masks.Currency(target.find("input").select(), icurrency="R$")
333
+ console.log(v)
334
+ elif self._mask == "dolar":
335
+ masks.Currency(target.find("input").select(), separador_decimal=".", separador_milhar=",", icurrency="$")
329
336
  else:
330
337
  masks.Mask(target.find("input").select(), lambda val: masks.baseCustom(val, self._mask))
331
338