aotrautils 0.0.1683 → 0.0.1685

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- /*utils COMMONS library associated with aotra version : «1_29072022-2359 (02/06/2025-00:31:37)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (02/06/2025-00:43:41)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4991,7 +4991,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4991
4991
 
4992
4992
 
4993
4993
 
4994
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (02/06/2025-00:31:37)»*/
4994
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (02/06/2025-00:43:41)»*/
4995
4995
  /*-----------------------------------------------------------------------------*/
4996
4996
  /* ## Utility global methods in a browser (htmljs) client environment.
4997
4997
  *
@@ -10825,7 +10825,7 @@ function normalizeDisplayQuotesForJSONParsing(str){
10825
10825
  //CAUTION : Non-blocking of execution ! (uses callbacks)
10826
10826
  function promptWindow(label,type=null,defaultValue=null,
10827
10827
  doOnOK=null,doOnCancel=null,
10828
- config={displayMode:"popup",backgroundColor1:"#B3DCED",font:"helvetica",width:"80%",height:"80%"}){
10828
+ config={displayMode:"popup",backgroundColor1:"#B3DCED",font:"helvetica",width:"80%",height:"80%", offsetYPercent:"20%"}){
10829
10829
 
10830
10830
  // NO TYPE = simple alert
10831
10831
 
@@ -10833,11 +10833,9 @@ function promptWindow(label,type=null,defaultValue=null,
10833
10833
  const MAX_Z_INDEX_OVERLAY_LOCAL=9999;// (Repeated because must be stand-alone constant...)
10834
10834
  const promptWindowWidth=(config && config.width?config.width:"80%");
10835
10835
  const promptWindowHeight=(config && config.height?config.height:"80%");
10836
+ const offsetYPercent=(config && config.offsetYPercent?config.offsetYPercent:"20%")
10836
10837
  // DOES NOT WORK : const promptWindowWidth="auto", promptWindowHeight="auto";
10837
10838
 
10838
-
10839
- // const POSITION_X="7.5%";
10840
- // const POSITION_Y="5%";
10841
10839
  const SPECIAL_SEPARATOR="@@@";
10842
10840
 
10843
10841
 
@@ -11086,7 +11084,7 @@ function promptWindow(label,type=null,defaultValue=null,
11086
11084
 
11087
11085
  let style="";
11088
11086
  style+="position:absolute;";
11089
- style+="left:50%;top:20%;";
11087
+ style+="left:50%;top:"+offsetYPercent+";";
11090
11088
  style+="z-index:" + (MAX_Z_INDEX_OVERLAY_LOCAL) + ";";
11091
11089
  style+="z-index:" + (MAX_Z_INDEX_OVERLAY_LOCAL) + ";";
11092
11090
  style+="width:"+promptWindowWidth+";height:"+promptWindowHeight+"; ";
@@ -11173,7 +11171,7 @@ function promptWindow(label,type=null,defaultValue=null,
11173
11171
  }
11174
11172
 
11175
11173
  if(j<defaultValues.length) defaultValue=defaultValues[j];
11176
- else defaultValue=null;
11174
+ else defaultValue=null;
11177
11175
 
11178
11176
  let renderedInputItem=getRenderedInputElement(typeInputItem, defaultValue, label);
11179
11177
  inputElements.push(renderedInputItem);
@@ -13594,7 +13592,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
13594
13592
 
13595
13593
 
13596
13594
 
13597
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (02/06/2025-00:31:37)»*/
13595
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (02/06/2025-00:43:41)»*/
13598
13596
  /*-----------------------------------------------------------------------------*/
13599
13597
 
13600
13598
 
@@ -14833,7 +14831,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14833
14831
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14834
14832
 
14835
14833
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14836
- /*utils AI library associated with aotra version : «1_29072022-2359 (02/06/2025-00:31:37)»*/
14834
+ /*utils AI library associated with aotra version : «1_29072022-2359 (02/06/2025-00:43:41)»*/
14837
14835
  /*-----------------------------------------------------------------------------*/
14838
14836
 
14839
14837
 
@@ -14979,7 +14977,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
14979
14977
 
14980
14978
 
14981
14979
 
14982
- /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (02/06/2025-00:31:37)»*/
14980
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (02/06/2025-00:43:41)»*/
14983
14981
  /*-----------------------------------------------------------------------------*/
14984
14982
 
14985
14983
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1683",
3
+ "version": "0.0.1685",
4
4
  "main": "aotrautils.build.js",
5
5
  "description": "A library for vanilla javascript utils (client-side) used in aotra javascript CMS",
6
6
  "author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",