pywebexec 2.4.26__py3-none-any.whl → 2.4.27__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.
@@ -190,7 +190,9 @@
190
190
  height: 24px;
191
191
  min-height: 24px;
192
192
  max-height: 300px;
193
- overflow-y: auto;
193
+ min-width: 130px;
194
+ overflow: auto;
195
+ white-space: nowrap;
194
196
  resize: both;
195
197
  max-width: 700px;
196
198
  border-radius: 15px;
@@ -445,10 +445,11 @@ function createSchemaForm($form, schema, onSubmit, schemaName) {
445
445
  orderCheckboxes();
446
446
  validateSchemaForm(schemaForm, formDesc, schema, jsform.root.getFormValues(), schemaName);
447
447
  schemaForm.querySelectorAll('textarea').forEach(txt => {
448
- txt.style.height = "0";
449
- setTimeout(() => adjustTxtHeight(txt), 1);
448
+ txt.style.height = "0";
449
+ txt.style.width = "0";
450
+ setTimeout(() => adjustTxtSize(txt), 1);
450
451
  txt.setAttribute("spellcheck", "false");
451
- txt.addEventListener("input", () => adjustTxtHeight(txt));
452
+ txt.addEventListener("input", () => adjustTxtSize(txt));
452
453
  });
453
454
  schemaForm.addEventListener('input', (e) => {
454
455
  validateSchemaForm(schemaForm, formDesc, schema, jsform.root.getFormValues(), schemaName);
@@ -467,7 +468,7 @@ function createSchemaForm($form, schema, onSubmit, schemaName) {
467
468
  return jsform;
468
469
  }
469
470
 
470
- function adjustTxtHeight(txt) {
471
+ function adjustTxtSize(txt) {
471
472
  if (txt.value.includes('\n')) {
472
473
  delta = 2;
473
474
  } else {
@@ -475,6 +476,8 @@ function adjustTxtHeight(txt) {
475
476
  }
476
477
  txt.style.height = "0";
477
478
  txt.style.height = `${txt.scrollHeight+delta}px`;
479
+ txt.style.width = "0";
480
+ txt.style.width = `${txt.scrollWidth+10}px`;
478
481
  }
479
482
 
480
483
  async function getSwaggerSpec() {
@@ -443,7 +443,7 @@ jsonform.elementTypes = {
443
443
  editor.renderer.setShowPrintMargin(false);
444
444
  editor.setTheme("ace/theme/"+(formElement.aceTheme||"twilight"));
445
445
  editor.setOptions({
446
- placeholder: formElement.placeholder || '',
446
+ placeholder: formElement.placeholder || (node.schemaElement && node.schemaElement.example) || '',
447
447
  maxLines: 30,
448
448
  })
449
449
  if (formElement.aceMode) {
pywebexec/version.py CHANGED
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '2.4.26'
21
- __version_tuple__ = version_tuple = (2, 4, 26)
20
+ __version__ = version = '2.4.27'
21
+ __version_tuple__ = version_tuple = (2, 4, 27)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pywebexec
3
- Version: 2.4.26
3
+ Version: 2.4.27
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -2,8 +2,8 @@ pywebexec/__init__.py,sha256=197fHJy0UDBwTTpGCGortZRr-w2kTaD7MxqdbVmTEi0,61
2
2
  pywebexec/host_ip.py,sha256=oiCMlo2o3AkkgXDarUSx8T3FWXKI0vk1-EPnx5FGBd8,1332
3
3
  pywebexec/pywebexec.py,sha256=avBfvbhLbjvrJ168bBmQVrm-DjbjGJoAapHHIEAD6V4,48515
4
4
  pywebexec/swagger.yaml,sha256=I_oLpp7Hqel8SDEEykvpmCT-Gv3ytGlziq9bvQOrtZY,7598
5
- pywebexec/version.py,sha256=DEW-zqTuw6CpAcJrPVgerckV49xZ9fYuk1UMTA7hHKc,513
6
- pywebexec/static/css/form.css,sha256=J-rczuvU3S11GscC5NTkrqhAbdLbGkWkK8GcisBrxOs,9017
5
+ pywebexec/version.py,sha256=YTgsYHJpLN60mTTPBB0zqf3bzBzBJ_hQ0Qv9OjTFm80,513
6
+ pywebexec/static/css/form.css,sha256=7N8-xP58JF6EM9ekDzkYBisTDWbZqe8Fyhhk5vt0jc0,9062
7
7
  pywebexec/static/css/markdown.css,sha256=br4-iK9wigTs54N2KHtjgZ4KLH0THVSvJo-XZAdMHiE,1970
8
8
  pywebexec/static/css/style.css,sha256=TX60M-mzIPTGVDmaypRCOcyxc8A7dOjx-p1_bpJ6t9M,11772
9
9
  pywebexec/static/css/swagger-ui.css,sha256=xhXN8fnUaIACGHuPIEIr9-qmyYr6Zx0k2wv4Qy7Bg1Y,154985
@@ -36,7 +36,7 @@ pywebexec/static/images/swagger-ui.svg,sha256=FR0yeOVwe4zCYKZAjCGcT_m0Mf25NexIVa
36
36
  pywebexec/static/js/exceljs.min.js,sha256=fknaaFiOJQ27i7oZDSyqirN4fMAoS9odiy-AXE33Qsk,947702
37
37
  pywebexec/static/js/executables.js,sha256=xD4rauofJUymUWyu3oUzUAm9djy4gp6G-Gh9tFBtlBI,11996
38
38
  pywebexec/static/js/popup.js,sha256=X-Q__R0jeZFO_I8EWucP1KkUJa9-Atz8bdnyWp6ibzY,11376
39
- pywebexec/static/js/schemaform.js,sha256=Da35GSO2D305UQOFftKvr_K53mR1vxQ93lF0g75FjTE,16514
39
+ pywebexec/static/js/schemaform.js,sha256=hCCfn21tjjBoF0wRsq84_ToHA_RJbaWdcakvOUEuNPk,16605
40
40
  pywebexec/static/js/script.js,sha256=2Jys1IpB94ygkjnpFkUvcZdchM-gZrfPOFuS74SxgZI,21508
41
41
  pywebexec/static/js/swagger-form.js,sha256=CLcSHMhk5P4-_2MIRBoJLgEnIj_9keDDSzUugXHZjio,4565
42
42
  pywebexec/static/js/tablefilter.js,sha256=YuFc4Q7OOld6tX3v4HhG5lSToEJczQM9RlU2-pITSms,11099
@@ -71,14 +71,14 @@ pywebexec/static/jsonform/deps/ace/theme-github_light_default.js,sha256=4-_JXMA3
71
71
  pywebexec/static/jsonform/deps/ace/theme-twilight.js,sha256=3FCPUePtyW8RjnVAC51dgwKyNVpB7liV9AjEy4uEP8c,3474
72
72
  pywebexec/static/jsonform/deps/ace/worker-json.js,sha256=FalZfSbOglLQIOUYUprFqETrljooqsGwM5Tey7vhbxs,24390
73
73
  pywebexec/static/jsonform/deps/img/glyphicons-halflings.png,sha256=hpJM0AbbMLnU8UGOBs172D7vK-dooQ8n0s_ybml3zO0,13826
74
- pywebexec/static/jsonform/lib/jsonform.js,sha256=nHBZ1DqjRAKhPQRdplifXfQhr_SPmKrFoM2cU0NmJf0,140356
74
+ pywebexec/static/jsonform/lib/jsonform.js,sha256=KldlYqOU4WhklAyjzL0uShT3-khcZi4ggozH8F8K0go,140410
75
75
  pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
76
  pywebexec/templates/index.html,sha256=sTytur1jHuEAMTvuNqMEB3i3NNFoJRbYQgfmvDrAuJQ,4286
77
77
  pywebexec/templates/popup.html,sha256=3kpMccKD_OLLhJ4Y9KRw6Ny8wQWjVaRrUfV9y5-bDiQ,1580
78
78
  pywebexec/templates/swagger_ui.html,sha256=O7p8rsXUNo3PN5LttXfQudwUKUvBPSbXoVVU9ANJ9vM,1321
79
- pywebexec-2.4.26.dist-info/licenses/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
80
- pywebexec-2.4.26.dist-info/METADATA,sha256=0fi4mhkJ8iHOntymbv-myomQVW5Ly6zE6k78rwyUoFk,13016
81
- pywebexec-2.4.26.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
82
- pywebexec-2.4.26.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
83
- pywebexec-2.4.26.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
84
- pywebexec-2.4.26.dist-info/RECORD,,
79
+ pywebexec-2.4.27.dist-info/licenses/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
80
+ pywebexec-2.4.27.dist-info/METADATA,sha256=pWrSBEzYMdSHF5rlb4_Zq-ZhOVA-gi6pf4v1yvPo7M4,13016
81
+ pywebexec-2.4.27.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
82
+ pywebexec-2.4.27.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
83
+ pywebexec-2.4.27.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
84
+ pywebexec-2.4.27.dist-info/RECORD,,