encommon 0.22.0__py3-none-any.whl → 0.22.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- encommon/times/unitime.py +8 -5
- encommon/version.txt +1 -1
- encommon/webkit/images/failure.svg +2 -1
- encommon/webkit/images/information.svg +2 -1
- encommon/webkit/images/success.svg +2 -1
- encommon/webkit/images/warning.svg +2 -1
- encommon/webkit/scripts/color.js +15 -0
- {encommon-0.22.0.dist-info → encommon-0.22.1.dist-info}/METADATA +1 -1
- {encommon-0.22.0.dist-info → encommon-0.22.1.dist-info}/RECORD +12 -12
- {encommon-0.22.0.dist-info → encommon-0.22.1.dist-info}/LICENSE +0 -0
- {encommon-0.22.0.dist-info → encommon-0.22.1.dist-info}/WHEEL +0 -0
- {encommon-0.22.0.dist-info → encommon-0.22.1.dist-info}/top_level.txt +0 -0
encommon/times/unitime.py
CHANGED
@@ -47,17 +47,20 @@ def unitime(
|
|
47
47
|
|
48
48
|
if isinstance(input, str):
|
49
49
|
|
50
|
-
if re_match(
|
51
|
-
input = since_time(
|
52
|
-
'now', f'+{input}')
|
53
|
-
|
54
|
-
elif re_match(STRINT, input):
|
50
|
+
if re_match(STRINT, input):
|
55
51
|
input = int(input)
|
56
52
|
|
57
53
|
elif re_match(STRFLT, input):
|
58
54
|
input = int(
|
59
55
|
input.split('.')[0])
|
60
56
|
|
57
|
+
elif re_match(NOTATE, input):
|
58
|
+
input = since_time(
|
59
|
+
'now', f'+{input}')
|
60
|
+
|
61
|
+
else: # NOCVR
|
62
|
+
raise ValueError('input')
|
63
|
+
|
61
64
|
if isinstance(input, float):
|
62
65
|
input = int(input)
|
63
66
|
|
encommon/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.22.
|
1
|
+
0.22.1
|
encommon/webkit/scripts/color.js
CHANGED
@@ -21,6 +21,21 @@ function colordiv(
|
|
21
21
|
'encommon_colordiv');
|
22
22
|
|
23
23
|
|
24
|
+
let known = [
|
25
|
+
'gray',
|
26
|
+
'red',
|
27
|
+
'blue',
|
28
|
+
'green',
|
29
|
+
'yellow',
|
30
|
+
'pink',
|
31
|
+
'teal'];
|
32
|
+
|
33
|
+
if (known.includes(input))
|
34
|
+
input =
|
35
|
+
'rgb(var(--color-'
|
36
|
+
+ `${input}-dark))`;
|
37
|
+
|
38
|
+
|
24
39
|
let value =
|
25
40
|
$('<div/>')
|
26
41
|
.addClass('_value');
|
@@ -1,7 +1,7 @@
|
|
1
1
|
encommon/__init__.py,sha256=YDGzuhpk5Gd1hq54LI0hw1NrrDvrJDrvH20TEy_0l5E,443
|
2
2
|
encommon/conftest.py,sha256=I7Zl2cMytnA-mwSPh0rRjsU0YSlES94jQq6mocRhVUE,1884
|
3
3
|
encommon/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
-
encommon/version.txt,sha256=
|
4
|
+
encommon/version.txt,sha256=zAAcew9-PdrNwUX7bkEB5moR4byCOZ9Z2e0CDAzDAnM,7
|
5
5
|
encommon/colors/__init__.py,sha256=XRiGimMj8oo040NO5a5ZsbsIUxaGVW4tf4xWTPWgnZY,269
|
6
6
|
encommon/colors/color.py,sha256=rDWWL5oMx2SVSBEuRYX43u71nzMhMTZipXAHmEXwAjQ,10919
|
7
7
|
encommon/colors/test/__init__.py,sha256=PjrnBYT0efyvbaGeNx94dm3tP3EVHUHSVs-VGeLEv5g,218
|
@@ -40,7 +40,7 @@ encommon/times/parse.py,sha256=_PF12z-UOa75SyeUpBXVn7Jjt-c-Pfnzt6pAs_PjXmQ,6496
|
|
40
40
|
encommon/times/time.py,sha256=mdYl8vDJ0ZbaiH96A1cFHhOn7fExiRnudQJP1M4Xe2E,11746
|
41
41
|
encommon/times/timer.py,sha256=xxS6KVXFuRLq-RkXWMR7MMX5x0HGrEhLlOhRCecuCZY,3225
|
42
42
|
encommon/times/timers.py,sha256=JwvBIfWbXjwoIDQ08k2MAOoMif0Q1jsIJjmFWMxSRGA,9807
|
43
|
-
encommon/times/unitime.py,sha256=
|
43
|
+
encommon/times/unitime.py,sha256=MwYUJBdX_Rj7pW8QoMtZMUyHa4lsdZKryTdBCpVjnpY,1316
|
44
44
|
encommon/times/utils.py,sha256=PJ5QsKb3_pYEnD3Sz81d8QDhYQtTIj4HJfMoC9gNwmo,3100
|
45
45
|
encommon/times/window.py,sha256=tnOPz57cwIXVnOEGh7WPvBPhdjenvw1bYxV4mz721n0,8490
|
46
46
|
encommon/times/windows.py,sha256=oxEsCsM8qPQ5AbB8IRK_ONEWzLgXPpft8yR6xUKrb_4,10853
|
@@ -87,11 +87,11 @@ encommon/webkit/__init__.py,sha256=zHXF-bGdl6hs2WeBp_xYdc8bQ59vtsTsnB77ek7Cpzw,2
|
|
87
87
|
encommon/webkit/content.py,sha256=q5nYcmMV0LYOxWfGeiS42izZvD6g05CIaiiMEfWjN7k,1874
|
88
88
|
encommon/webkit/index.html,sha256=cYmXEViesLXq5uMx9W6Ujty1wgffQdVzNxv0g_gUpaA,5410
|
89
89
|
encommon/webkit/images/enasis.svg,sha256=8g7GaE0Gb94SpnF_NbMzoyTI7Mc8Zu-cRI6dc-bfrAY,9417
|
90
|
-
encommon/webkit/images/failure.svg,sha256=
|
91
|
-
encommon/webkit/images/information.svg,sha256=
|
92
|
-
encommon/webkit/images/success.svg,sha256=
|
93
|
-
encommon/webkit/images/warning.svg,sha256=
|
94
|
-
encommon/webkit/scripts/color.js,sha256=
|
90
|
+
encommon/webkit/images/failure.svg,sha256=IqWLiORB_xdMKc1pPC9mRlp32htDwobysk5N2FT71qA,453
|
91
|
+
encommon/webkit/images/information.svg,sha256=vbjvFBBspEfI6QBBQZ1hZoK5pJfIJeGNQhJqvytnHx0,483
|
92
|
+
encommon/webkit/images/success.svg,sha256=TfjwM6Ajg10OSmNze70KFFzei3SryKI_TMVz8msGPk4,524
|
93
|
+
encommon/webkit/images/warning.svg,sha256=IMpCPABJkm1jbR8zOc00Rl3WnHWsdreUCcAI7E7nZuY,372
|
94
|
+
encommon/webkit/scripts/color.js,sha256=ExLYQbuC505O643gVXls0tfLTvMRo6n5MVyAok0Irp8,916
|
95
95
|
encommon/webkit/scripts/datagrid.js,sha256=kYXQuY1039qwauwtTzeG9T7Mh-iRayq4_23w08gA4XI,1615
|
96
96
|
encommon/webkit/scripts/datetime.js,sha256=vtNznVMupvAdP4FWCDtHuXQVnRCA3TkPENO4hQdp5tM,2671
|
97
97
|
encommon/webkit/scripts/default.js,sha256=Noo-yon568Takgrz2wC5-UTS-XxkozqPgrVINiIfaZk,5007
|
@@ -129,8 +129,8 @@ encommon/webkit/test/test_moderate.py,sha256=KitKGBtwHOQm0pXXZA5nl9MwAi2pbHOsKhM
|
|
129
129
|
encommon/webkit/test/test_numeric.py,sha256=9Jqiyo-Bh572QJSyd3gqRwYTifnqqzE7_cNCmLn0CG0,3531
|
130
130
|
encommon/webkit/test/test_statate.py,sha256=4VvmyJhsK3TSK-hq3TzkzwPkXY-GPTU_7uJf-zG_y_s,1760
|
131
131
|
encommon/webkit/test/test_tagues.py,sha256=LQWk6rSBoBxAu-YmUOU8uWNki5RBzk5lp0dbFpySg68,1431
|
132
|
-
encommon-0.22.
|
133
|
-
encommon-0.22.
|
134
|
-
encommon-0.22.
|
135
|
-
encommon-0.22.
|
136
|
-
encommon-0.22.
|
132
|
+
encommon-0.22.1.dist-info/LICENSE,sha256=otnXKCtMjPlbHs0wgZ_BWULrp3g_2dWQJ6icRk9nkgg,1071
|
133
|
+
encommon-0.22.1.dist-info/METADATA,sha256=lzCWu75xREB-fVJHCqZYFGXDrdIbxejGSAtJN8FScyo,4282
|
134
|
+
encommon-0.22.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
135
|
+
encommon-0.22.1.dist-info/top_level.txt,sha256=bP8q7-5tLDNm-3XPlqn_bDENfYNug5801H_xfz3BEAM,9
|
136
|
+
encommon-0.22.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|