phanterpwa 13.14.7__py3-none-any.whl → 13.14.9__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 +30 -15
- phanterpwa/usual_sass/components/card.sass +37 -1
- {phanterpwa-13.14.7.dist-info → phanterpwa-13.14.9.dist-info}/METADATA +1 -1
- {phanterpwa-13.14.7.dist-info → phanterpwa-13.14.9.dist-info}/RECORD +10 -10
- {phanterpwa-13.14.7.dist-info → phanterpwa-13.14.9.dist-info}/LICENSE +0 -0
- {phanterpwa-13.14.7.dist-info → phanterpwa-13.14.9.dist-info}/WHEEL +0 -0
- {phanterpwa-13.14.7.dist-info → phanterpwa-13.14.9.dist-info}/dependency_links.txt +0 -0
- {phanterpwa-13.14.7.dist-info → phanterpwa-13.14.9.dist-info}/entry_points.txt +0 -0
- {phanterpwa-13.14.7.dist-info → phanterpwa-13.14.9.dist-info}/top_level.txt +0 -0
phanterpwa/__init__.py
CHANGED
|
@@ -111,6 +111,10 @@ class Widget(helpers.XmlConstructor):
|
|
|
111
111
|
if window.PhanterPWA.DEBUG:
|
|
112
112
|
console.info("the start not used")
|
|
113
113
|
|
|
114
|
+
def set_value(self, value):
|
|
115
|
+
self._value = value
|
|
116
|
+
self.reload()
|
|
117
|
+
|
|
114
118
|
def validate(self):
|
|
115
119
|
if callable(self._validator):
|
|
116
120
|
error = self._validator(self)
|
|
@@ -144,6 +148,7 @@ class Input(Widget):
|
|
|
144
148
|
self._icon_on_click = parameters.get("icon_on_click", None)
|
|
145
149
|
self._onload = parameters.get("onLoad", None)
|
|
146
150
|
self._checker = parameters.get("checker", True)
|
|
151
|
+
self._tabindex = parameters.get("_tabindex", True)
|
|
147
152
|
self._disabled = parameters.get("disabled", None)
|
|
148
153
|
self._on_date_datetime_choice = parameters.get("onDateorDatetimeChoice", None)
|
|
149
154
|
wrapper_attr = {
|
|
@@ -173,10 +178,9 @@ class Input(Widget):
|
|
|
173
178
|
parameters["_class"] = "{0}{1}".format(parameters["_class"], " e-display_hidden")
|
|
174
179
|
else:
|
|
175
180
|
self._type = "text"
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
# self._maks = masks.phanterCurrency()
|
|
181
|
+
if "_tabindex" in parameters:
|
|
182
|
+
del parameters["_tabindex"]
|
|
183
|
+
|
|
180
184
|
label = ""
|
|
181
185
|
if self._label is not None:
|
|
182
186
|
wrapper_attr["_class"] = "{0}{1}".format(wrapper_attr["_class"], " has_label")
|
|
@@ -221,6 +225,7 @@ class Input(Widget):
|
|
|
221
225
|
"_type": self._type,
|
|
222
226
|
"_data-validators": data_validators,
|
|
223
227
|
"_data-form": self._form,
|
|
228
|
+
"_tabindex": self._tabindex
|
|
224
229
|
}),
|
|
225
230
|
label,
|
|
226
231
|
checker,
|
|
@@ -593,12 +598,15 @@ class Select(Widget):
|
|
|
593
598
|
"_class": "phanterpwa-widget-select-li-option empty"
|
|
594
599
|
})))
|
|
595
600
|
for vdata in self._data:
|
|
601
|
+
val1 = vdata[1]
|
|
602
|
+
if isinstance(val1, helpers.XmlConstructor):
|
|
603
|
+
val1 = val1.xml()
|
|
596
604
|
if self._value is not "":
|
|
597
605
|
if vdata[0] == self._value:
|
|
598
606
|
table.append(TR(TD(SPAN(vdata[1]),
|
|
599
607
|
DIV(self._icon_option_selected, _class="phanterpwa-widget-select-li-icon"), **{
|
|
600
608
|
"_data-value": vdata[0],
|
|
601
|
-
"_data-text":
|
|
609
|
+
"_data-text": val1,
|
|
602
610
|
"_data-target": "phanterpwa-widget-select-input-{0}".format(self.identifier),
|
|
603
611
|
"_class": "phanterpwa-widget-select-li-option selected"
|
|
604
612
|
})))
|
|
@@ -607,7 +615,7 @@ class Select(Widget):
|
|
|
607
615
|
table.append(TR(TD(SPAN(vdata[1]),
|
|
608
616
|
DIV(self._icon_option, _class="phanterpwa-widget-select-li-icon"), **{
|
|
609
617
|
"_data-value": vdata[0],
|
|
610
|
-
"_data-text":
|
|
618
|
+
"_data-text": val1,
|
|
611
619
|
"_data-target": "phanterpwa-widget-select-input-{0}".format(self.identifier),
|
|
612
620
|
"_class": "phanterpwa-widget-select-li-option"
|
|
613
621
|
})))
|
|
@@ -615,7 +623,7 @@ class Select(Widget):
|
|
|
615
623
|
table.append(TR(TD(SPAN(vdata[1]),
|
|
616
624
|
DIV(self._icon_option, _class="phanterpwa-widget-select-li-icon"), **{
|
|
617
625
|
"_data-value": vdata[0],
|
|
618
|
-
"_data-text":
|
|
626
|
+
"_data-text": val1,
|
|
619
627
|
"_data-target": "phanterpwa-widget-select-input-{0}".format(self.identifier),
|
|
620
628
|
"_class": "phanterpwa-widget-select-li-option"
|
|
621
629
|
})))
|
|
@@ -2944,7 +2952,7 @@ class Textarea(Widget):
|
|
|
2944
2952
|
text = jQuery(el).val()
|
|
2945
2953
|
split_ = text.split("\n")
|
|
2946
2954
|
if text == "":
|
|
2947
|
-
jQuery(el).css("height",
|
|
2955
|
+
jQuery(el).css("height", 31)
|
|
2948
2956
|
elif len(split_) == 2:
|
|
2949
2957
|
s = 50
|
|
2950
2958
|
if jQuery(el).prop("scrollHeight") > s:
|
|
@@ -2954,7 +2962,7 @@ class Textarea(Widget):
|
|
|
2954
2962
|
elif len(split_) > 2:
|
|
2955
2963
|
jQuery(el).css("height", "auto").css("height", jQuery(el).prop("scrollHeight"))
|
|
2956
2964
|
else:
|
|
2957
|
-
jQuery(el).css("height",
|
|
2965
|
+
jQuery(el).css("height", 31)
|
|
2958
2966
|
# this.style.height = (this.scrollHeight) + 'px';
|
|
2959
2967
|
|
|
2960
2968
|
def _binds(self):
|
|
@@ -2982,13 +2990,13 @@ class Textarea(Widget):
|
|
|
2982
2990
|
"input.textarea_autoresize",
|
|
2983
2991
|
lambda: self._autoresize(this)
|
|
2984
2992
|
)
|
|
2985
|
-
size = target.find("textarea").css("height", 31)
|
|
2993
|
+
size = target.find("textarea").css("height", 31)
|
|
2994
|
+
target.find("textarea").prop('scrollHeight')
|
|
2986
2995
|
target.find("textarea").css("height", size)
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
# });
|
|
2996
|
+
self._autoresize(target.find("textarea"))
|
|
2997
|
+
|
|
2998
|
+
def reload(self):
|
|
2999
|
+
self.start()
|
|
2992
3000
|
|
|
2993
3001
|
def start(self):
|
|
2994
3002
|
self._binds()
|
|
@@ -3000,6 +3008,13 @@ class Textarea(Widget):
|
|
|
3000
3008
|
self._value = jQuery("#phanterpwa-widget-textarea-textarea-{0}".format(self.identifier)).val()
|
|
3001
3009
|
return self._value
|
|
3002
3010
|
|
|
3011
|
+
def set_value(self, value):
|
|
3012
|
+
el = jQuery("#phanterpwa-widget-textarea-textarea-{0}".format(self.identifier))
|
|
3013
|
+
el.val(value)
|
|
3014
|
+
self._value = value
|
|
3015
|
+
el.css("height", 31).height(31)
|
|
3016
|
+
setTimeout(lambda: (self._check_value(el), self.reload()), 100)
|
|
3017
|
+
|
|
3003
3018
|
|
|
3004
3019
|
class Inert(Widget):
|
|
3005
3020
|
def __init__(self, identifier, **parameters):
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
font-size: 1.5rem
|
|
14
14
|
|
|
15
15
|
&>label
|
|
16
|
-
border
|
|
16
|
+
border: 1px solid #4e6eaa
|
|
17
|
+
border-bottom: 2px solid #3f5886
|
|
18
|
+
border-top: 2px solid #3f5886
|
|
17
19
|
padding: 10px 30px
|
|
18
20
|
font-weight: bold
|
|
19
21
|
font-size: 1.5rem
|
|
@@ -21,6 +23,40 @@
|
|
|
21
23
|
background-color: #4e6eaa
|
|
22
24
|
color: white
|
|
23
25
|
line-height: 1.5rem
|
|
26
|
+
.phanterpwa-card-panel-control-content
|
|
27
|
+
padding: 10px
|
|
28
|
+
background-color: #F7F7F7
|
|
29
|
+
margin: 0px 5px 20px 5px
|
|
30
|
+
overflow: auto
|
|
31
|
+
border: 1px solid #e8e8e8
|
|
32
|
+
&.has_right_panel_button
|
|
33
|
+
.phanterpwa-card-panel-control-content
|
|
34
|
+
margin: 5px 0px 20px 5px
|
|
35
|
+
padding: 10px
|
|
36
|
+
background-color: #F0F0F0
|
|
37
|
+
float: left
|
|
38
|
+
width: calc(100% - 60px)
|
|
39
|
+
.phanterpwa-card-panel-control-buttons
|
|
40
|
+
float: right
|
|
41
|
+
width: 55px
|
|
42
|
+
overflow: hidden
|
|
43
|
+
padding: 5px
|
|
44
|
+
a
|
|
45
|
+
.icon_button
|
|
46
|
+
display: block
|
|
47
|
+
text-decoration: none
|
|
48
|
+
color: unset
|
|
49
|
+
.icon_button
|
|
50
|
+
margin-left: auto
|
|
51
|
+
margin-right: auto
|
|
52
|
+
height: 40px
|
|
53
|
+
width: 40px
|
|
54
|
+
border-radius: 5px
|
|
55
|
+
line-height: 40px
|
|
56
|
+
text-align: center
|
|
57
|
+
border-radius: 40px
|
|
58
|
+
cursor: pointer
|
|
59
|
+
transition: color 0.3s ease, box-shadow 0.3s ease
|
|
24
60
|
|
|
25
61
|
|
|
26
62
|
.p-input-materialize
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
phanterpwa/__init__.py,sha256=
|
|
1
|
+
phanterpwa/__init__.py,sha256=43eNc82Fj3W325zEpYfSwkVksgX-KTJwAWhrT3oAWTM,397
|
|
2
2
|
phanterpwa/__main__.py,sha256=1vSHtv6-sgAgpZiklf9bwarXX1b-fmKx1rjwJw4h78o,4017
|
|
3
3
|
phanterpwa/compiler.py,sha256=Je3qtVO_cZ69_PPWcXKyBgnRfQ-Ev-zkZ3UTN-ddOTQ,47478
|
|
4
4
|
phanterpwa/configer.py,sha256=O0IO5rf-hwFNdBjcz94OF-fqXKTWbqPElTsfS5V2beY,26327
|
|
@@ -109,7 +109,7 @@ phanterpwa/frontend/components/modal.py,sha256=q4v2z3HUS58lJ49E6ZWCEkSRVXy7kMiy5
|
|
|
109
109
|
phanterpwa/frontend/components/pagination.py,sha256=IJIyReYbKRj4OTVsZbNiCMfSOIq7qSLpFTF9qQdPbFM,791
|
|
110
110
|
phanterpwa/frontend/components/snippets.py,sha256=fm-QPIJ_Mv8fSHsS3UK8Bq8Iw_ziaECwEr-VjcaiPQw,4060
|
|
111
111
|
phanterpwa/frontend/components/top_slide.py,sha256=ReB0z63I9HjT8iq6ZfNB56KoZLzBxdfcFCIw7QjRQvU,3175
|
|
112
|
-
phanterpwa/frontend/components/widgets.py,sha256=
|
|
112
|
+
phanterpwa/frontend/components/widgets.py,sha256=TQ2-sXoCKYEMOsejcl85hIeLMfKepKUvrEQfQQXR2MI,263164
|
|
113
113
|
phanterpwa/frontend/plugins/client.py,sha256=0x1HmGq6-WAap9RGl2szQj1GXClyGVtnznuYMwpUdb8,27481
|
|
114
114
|
phanterpwa/gallery/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
115
115
|
phanterpwa/gallery/cutter.py,sha256=0-VnFa3aQ5XgNmA4P3BsL-_04IwkjrgHImKIrL3qViM,7789
|
|
@@ -399,7 +399,7 @@ phanterpwa/usual_sass/components/buttons.sass,sha256=odWtKI5qoWD89ITUl-eCggBBk0M
|
|
|
399
399
|
phanterpwa/usual_sass/components/capcha_preload.sass,sha256=yX1mZx7a3lkV3WCaFi1bxIaH2USdOFrDOIGByIH7BV8,8191
|
|
400
400
|
phanterpwa/usual_sass/components/captcha.sass,sha256=Do3goTI1R5dycmYAcGxqHBS8ou4i8wtjUDZmc9fn-l4,7323
|
|
401
401
|
phanterpwa/usual_sass/components/captcha_preload_image_3x4.sass,sha256=VpgPsyM9XKMD17JYD4I0svF9lPfG5_rk3E2kpH-e6JI,5213
|
|
402
|
-
phanterpwa/usual_sass/components/card.sass,sha256=
|
|
402
|
+
phanterpwa/usual_sass/components/card.sass,sha256=eYPzVEmQWn5KBsqZVUjUhdWTnnUdmOoAT0YiSNT2klU,1870
|
|
403
403
|
phanterpwa/usual_sass/components/cmp_auth_user.sass,sha256=WALcdxkfgtFl3OCnBq9KdGD8chRWuAAF5akqPk9skYo,13548
|
|
404
404
|
phanterpwa/usual_sass/components/datetimepicker.sass,sha256=GbG_EGjXZKQ27QyRGJVga06KrXrm3d4rDL4M_z_CR9A,6615
|
|
405
405
|
phanterpwa/usual_sass/components/developer.sass,sha256=02RblEe7GDz3whTmvvBu42mr0SlJOmowkZBeAKzXblA,1741
|
|
@@ -435,10 +435,10 @@ phanterpwa/usual_sass/preloaders/indefined_text.sass,sha256=z4JuUtBrzoqH3HuNFXvN
|
|
|
435
435
|
phanterpwa/usual_sass/preloaders/run_points.sass,sha256=EYl93ljfgAc-ZLJ0VScrCoIlHP7Nr6NLdxj1zk2wm_E,3367
|
|
436
436
|
phanterpwa/usual_sass/preloaders/square.sass,sha256=TOsh9muP4zkYLUJcw4i1LeRs60NrtgRWBk_1oMt2_58,1348
|
|
437
437
|
phanterpwa/usual_sass/preloaders/squares.sass,sha256=kH1I89qEfmbvYxCtKFVNcxP5bWIjnqbheXVnyGF0VNo,3862
|
|
438
|
-
phanterpwa-13.14.
|
|
439
|
-
phanterpwa-13.14.
|
|
440
|
-
phanterpwa-13.14.
|
|
441
|
-
phanterpwa-13.14.
|
|
442
|
-
phanterpwa-13.14.
|
|
443
|
-
phanterpwa-13.14.
|
|
444
|
-
phanterpwa-13.14.
|
|
438
|
+
phanterpwa-13.14.9.dist-info/LICENSE,sha256=lGEW1PRSZOkug2-d0IJgryCjqt6zhxN5x9pFgy3lx2E,1087
|
|
439
|
+
phanterpwa-13.14.9.dist-info/METADATA,sha256=7TOESdNQAwyREJ3izzmHAOtw7Nd94AGell8iJ7VdVHM,1939
|
|
440
|
+
phanterpwa-13.14.9.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
441
|
+
phanterpwa-13.14.9.dist-info/dependency_links.txt,sha256=Pslekmz-4l1SpBO0x2aYkYZPCScmbrB9HUq1YvXYUzM,40
|
|
442
|
+
phanterpwa-13.14.9.dist-info/entry_points.txt,sha256=siJH2lFXIdsUBDRgcXV4blOb2_iku1vcbqxJ-trIQrw,56
|
|
443
|
+
phanterpwa-13.14.9.dist-info/top_level.txt,sha256=nF1WJ8AByxBv3bLKp3xySR2l2Twrj5n5n7C404lULSk,5319
|
|
444
|
+
phanterpwa-13.14.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|