phanterpwa 13.13.16__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 +14 -4
- phanterpwa/frontend/fmasks.py +1113 -851
- {phanterpwa-13.13.16.dist-info → phanterpwa-13.13.18.dist-info}/METADATA +1 -1
- {phanterpwa-13.13.16.dist-info → phanterpwa-13.13.18.dist-info}/RECORD +10 -10
- {phanterpwa-13.13.16.dist-info → phanterpwa-13.13.18.dist-info}/LICENSE +0 -0
- {phanterpwa-13.13.16.dist-info → phanterpwa-13.13.18.dist-info}/WHEEL +0 -0
- {phanterpwa-13.13.16.dist-info → phanterpwa-13.13.18.dist-info}/dependency_links.txt +0 -0
- {phanterpwa-13.13.16.dist-info → phanterpwa-13.13.18.dist-info}/entry_points.txt +0 -0
- {phanterpwa-13.13.16.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
|
|
|
@@ -3300,7 +3307,10 @@ class MenuRadioBoxes(Widget):
|
|
|
3300
3307
|
def __init__(self, identifier, name, *radioboxes, default=None, **parameters):
|
|
3301
3308
|
self._values = []
|
|
3302
3309
|
self._name = name
|
|
3310
|
+
cont = 0
|
|
3311
|
+
tem = __new__(Date().getTime())
|
|
3303
3312
|
for x in radioboxes:
|
|
3313
|
+
cont += 1
|
|
3304
3314
|
v = None
|
|
3305
3315
|
if isinstance(x, RadioBox):
|
|
3306
3316
|
x._name = name
|
|
@@ -3314,14 +3324,14 @@ class MenuRadioBoxes(Widget):
|
|
|
3314
3324
|
_checked = True
|
|
3315
3325
|
else:
|
|
3316
3326
|
_checked = False
|
|
3317
|
-
v = RadioBox("rb{0}".format(
|
|
3327
|
+
v = RadioBox("rb{0}-{1}".format(tem, cont), name=name, label=x[1], value=x[0], is_checked=_checked)
|
|
3318
3328
|
elif isinstance(x, str):
|
|
3319
3329
|
if x == default:
|
|
3320
3330
|
_checked = True
|
|
3321
3331
|
else:
|
|
3322
3332
|
_checked = False
|
|
3323
3333
|
v = RadioBox(
|
|
3324
|
-
"rb{0}".format(
|
|
3334
|
+
"rb{0}-{1}".format(tem, cont),
|
|
3325
3335
|
name=name,
|
|
3326
3336
|
label=x,
|
|
3327
3337
|
value=x,
|