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 +1 -1
- phanterpwa/frontend/components/widgets.py +9 -2
- phanterpwa/frontend/fmasks.py +1113 -851
- {phanterpwa-13.13.17.dist-info → phanterpwa-13.13.18.dist-info}/METADATA +1 -1
- {phanterpwa-13.13.17.dist-info → phanterpwa-13.13.18.dist-info}/RECORD +10 -10
- {phanterpwa-13.13.17.dist-info → phanterpwa-13.13.18.dist-info}/LICENSE +0 -0
- {phanterpwa-13.13.17.dist-info → phanterpwa-13.13.18.dist-info}/WHEEL +0 -0
- {phanterpwa-13.13.17.dist-info → phanterpwa-13.13.18.dist-info}/dependency_links.txt +0 -0
- {phanterpwa-13.13.17.dist-info → phanterpwa-13.13.18.dist-info}/entry_points.txt +0 -0
- {phanterpwa-13.13.17.dist-info → phanterpwa-13.13.18.dist-info}/top_level.txt +0 -0
phanterpwa/__init__.py
CHANGED
|
@@ -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
|
-
|
|
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
|
|