puvox-library 1.1.26 → 1.1.28

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.
@@ -232,6 +232,9 @@ declare class PuvoxLibrary {
232
232
  insertRedErrorLine(array_: any): void;
233
233
  stripTags(input: any, allowed: any): any;
234
234
  br2nl(content: any): any;
235
+ popup(content: any): void;
236
+ loaderImage(circleColor: any): string;
237
+ Loader(ShowOrHide: any, style: any, content_To_show: any): void;
235
238
  jquery_popup(element: any, isModal: any, params: any): any;
236
239
  jquery_popup_once(cookiename: any, key: any, text: any, duration: any, onComplete: any): void;
237
240
  jquery_popup_one_time_checkbox(cookiename: any, key: any, text: any, callable_func: any, defaultCheckboxTxt: any): void;
@@ -271,12 +274,6 @@ declare class PuvoxLibrary {
271
274
  b64DecodeUnicode(str: any): string;
272
275
  round(num: any, decimals: any): number;
273
276
  basename(path: any): any;
274
- show_my_popup(TEXTorID: any, AdditionalStyles: any): void;
275
- my_popup_closee(RandomIDD: any): void;
276
- loaderImage(circleColor: any): string;
277
- Loader(ShowOrHide: any, style: any, content_To_show: any): void;
278
- myyAjaxRequest(parameters: any, url: any, method: any, func: any, ShowBlackground: any): void;
279
- hide_popuping_divs(classnameee: any): void;
280
277
  get(url: any, parameters: any): Promise<any>;
281
278
  getJSON(url: any, parameters: any): Promise<any>;
282
279
  post(url: any, params: any, callback_1: any, callback_2: any): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"library_standard.d.ts","sourceRoot":"","sources":["library_standard.js"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;EAeE;AAEF;IAGC,0BAEC;IAJD,eAAgB;IAQhB,uDAEC;IACD,4DAGC;IACD,4DAGC;IACD,6CAIC;IACD,8CAIC;IAykDE,uCAGC;IA3kDJ,iDAMC;IACD,oCAEC;IACD,6DAYC;IACD,kCAA8D;IAC9D,+BAAkD;IAClD,6BAAuD;IACvD,uCAOC;IACD,6CAOC;IACD,6CAEC;IACD,kDA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;IAC7C,qBAAuB;IACvB,sBAAgD;IAChD,iCAA0C;IAI1C,0BAEC;IACD,8BAKC;IACD,8BAKC;IACD,sCASC;IACD,sCAUC;IACD,gEAQC;IACD,4EAUF;IACE,yFAgBF;IACE,oCASC;IACD,2BAA+E;IAC/E,kCAeC;IACD,uBAGC;IACD,8BAeC;IAEJ,uCAA0B;IAGvB,0BAA0D;IAG1D,0BAA4C;IAC5C,8BAA4I;IAC5I,+BAAuF;IAC1F,0BAA6F;IAC7F,sDAA8G;IAC9G,wBAA4G;IAC5G,0BAAqH;IAUrH,uCAaC;IACD,wEAKC;IACD,4CAAgE;IAChE,0CAMC;IAEE,wCAIC;IAEJ,sCAGC;IACD,4BAEC;IAED,mBAAwC;IACxC,oBAA0I;IAC1I,qBAA6F;IAC7F,mBAA0E;IAE1E,gBAA4H;IAC5H,2BAAmB;IAEnB,kBAAgI;IAChI,wBAAmF;IAChF,mBAAgD;IAEnD,kBAAe;IACf,2BAAsB;IACtB,kBAAoD;CAEpD"}
1
+ {"version":3,"file":"library_standard.d.ts","sourceRoot":"","sources":["library_standard.js"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;EAeE;AAEF;IAGC,0BAEC;IAJD,eAAgB;IAQhB,uDAEC;IACD,4DAGC;IACD,4DAGC;IACD,6CAIC;IACD,8CAIC;IA8nDE,uCAGC;IAhoDJ,iDAMC;IACD,oCAEC;IACD,6DAYC;IACD,kCAA8D;IAC9D,+BAAkD;IAClD,6BAAuD;IACvD,uCAOC;IACD,6CAOC;IACD,6CAEC;IACD,kDAEC;IACD,uCAsDC;IACD,+BAKI;IACJ,0DAEC;IACD,yCAMC;IACD,2CAEC;IAED,0BAEC;IAEE,uCAEC;IAED,yCAIC;IACD,2DASC;IACJ,0EAWI;IAKJ,uEAiBC;IAKD,kCAMC;IAED,yCAKC;IAQD,qDAkBC;IACD,oDAmCC;IAED,6DAOC;IACD,8BAKC;IAED,qBAIC;IAED,qCAGC;IAGD,0DAYC;IAGD,wBAA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C7F,sDAA8G;IAC9G,wBAA4G;IAC5G,0BAAqH;IAUrH,uCAaC;IACD,wEAKC;IACD,4CAAgE;IAChE,0CAMC;IAEE,wCAIC;IAEJ,sCAGC;IACD,4BAEC;IAED,mBAAwC;IACxC,oBAA0I;IAC1I,qBAA6F;IAC7F,mBAA0E;IAE1E,gBAA4H;IAC5H,2BAAmB;IAEnB,kBAAgI;IAChI,wBAAmF;IAChF,mBAAgD;IAEnD,kBAAe;IACf,2BAAsB;IACtB,kBAAoD;CAEpD"}
@@ -1419,6 +1419,60 @@ class PuvoxLibrary {
1419
1419
 
1420
1420
  br2nl(content) { return content.replace('/\<br(\s*)?\/?\>/i', "\n"); }
1421
1421
 
1422
+
1423
+
1424
+
1425
+
1426
+ // ======== simple POPUP ======== https://github.com/ttodua/useful-javascript/ ==============
1427
+ popup(content) {
1428
+ const popupId = 'myPopup_' + Math.floor((Math.random() * 10000));
1429
+ let popupDiv = document.createElement('div');
1430
+ popupDiv.id = popupId;
1431
+ popupDiv.style = "display: block; position: fixed; width: 400px; height: 200px; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: white; border: 1px solid gray; box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); z-index: 1000; padding:5px;";
1432
+ document.body.appendChild(popupDiv);
1433
+ popupDiv.innerHTML = content;
1434
+ // 2) close button
1435
+ let closeButton = document.createElement('button');
1436
+ closeButton.textContent = 'X';
1437
+ closeButton.style = "position: absolute; top: -10px; right: -10px;";
1438
+ popupDiv.appendChild(closeButton);
1439
+ // 3. Add background shade
1440
+ let backgroundDiv = document.createElement('div');
1441
+ backgroundDiv.id = 'popupBackground'; // Optional ID for targeting
1442
+ backgroundDiv.style = "position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: black; opacity: 0.5; z-index: 999;";
1443
+ popupDiv.insertAdjacentElement('beforebegin', backgroundDiv);
1444
+ document.body.appendChild(backgroundDiv);
1445
+ closeButton.onclick = () =>{
1446
+ backgroundDiv.parentNode.removeChild(backgroundDiv);
1447
+ popupDiv.parentNode.removeChild(popupDiv);
1448
+ };
1449
+ }
1450
+ // ========== "PLEASE WAIT" popup =
1451
+ loaderImage(circleColor){
1452
+ var circlecolor=circleColor || '#ffffff';
1453
+ return '<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" width="90px" height="90px" viewBox="0 0 128 128" xml:space="preserve"><g><circle cx="16" cy="64" r="16" fill="'+circlecolor+'" fill-opacity="1"/><circle cx="16" cy="64" r="16" fill="'+circlecolor+'" fill-opacity="0.67" transform="rotate(45,64,64)"/><circle cx="16" cy="64" r="16" fill="#ffffff" fill-opacity="0.42" transform="rotate(90,64,64)"/><circle cx="16" cy="64" r="16" fill="'+circlecolor+'" fill-opacity="0.2" transform="rotate(135,64,64)"/><circle cx="16" cy="64" r="16" fill="'+circlecolor+'" fill-opacity="0.12" transform="rotate(180,64,64)"/><circle cx="16" cy="64" r="16" fill="'+circlecolor+'" fill-opacity="0.12" transform="rotate(225,64,64)"/><circle cx="16" cy="64" r="16" fill="'+circlecolor+'" fill-opacity="0.12" transform="rotate(270,64,64)"/><circle cx="16" cy="64" r="16" fill="'+circlecolor+'" fill-opacity="0.12" transform="rotate(315,64,64)"/><animateTransform attributeName="transform" type="rotate" values="0 64 64;315 64 64;270 64 64;225 64 64;180 64 64;135 64 64;90 64 64;45 64 64" calcMode="discrete" dur="720ms" repeatCount="indefinite"></animateTransform></g></svg>';
1454
+ }
1455
+ Loader(ShowOrHide, style, content_To_show)
1456
+ {
1457
+ var elementID = 'waiter_box_p';
1458
+ if (ShowOrHide)
1459
+ {
1460
+ var b=document.body;
1461
+ var content_To_show= (content_To_show || "") + '<br/>' +this.loaderImage();
1462
+ var x = document.createElement('div'); x.id = elementID; x.setAttribute("style","height:120%; width:120%; position:fixed; top:-10%; left:-10%; z-index:9900; overflow:hidden;");
1463
+
1464
+ x.innerHTML =
1465
+ '<div id="'+elementID+'_background" style="background-color: black; height: 100%; position: absolute; opacity: 0.9; width: 100%;' + (style || '') + '">'+
1466
+ '<div id="'+elementID+'_content" style="height: 100%;">'+
1467
+ '<div align="center" style="text-align:center;position:relative;top:50%;transform:translateY(-50%);color:#adb109;font-size:1.2em;"> '+ content_To_show + '</div>' +
1468
+ '</div>'+
1469
+ '</div>';
1470
+ b.insertBefore(x, b.childNodes[0]);
1471
+ }
1472
+ else{
1473
+ var x =document.getElementById(elementID); if (x) x.parentNode.removeChild(x);
1474
+ }
1475
+ }
1422
1476
  jquery_popup(element, isModal, params){
1423
1477
  var isModal = isModal || true;
1424
1478
  var params = params || {};
@@ -1480,7 +1534,6 @@ class PuvoxLibrary {
1480
1534
  {
1481
1535
  this.Cookies.setOption(cookiename, "popup_checkbox_"+key, (event.target.checked ? "false" : "true") );
1482
1536
  }
1483
-
1484
1537
  dialogClose(){
1485
1538
  window.parent.$('.ui-dialog-content:visible').dialog('close');
1486
1539
  }
@@ -1815,72 +1868,6 @@ class PuvoxLibrary {
1815
1868
  basename(path) { return path.split('/').reverse()[0]; }
1816
1869
 
1817
1870
 
1818
- // ======== simple POPUP ======== https://github.com/ttodua/useful-javascript/ ==============
1819
- show_my_popup(TEXTorID, AdditionalStyles ){
1820
- TEXTorID=TEXTorID.trim(); var FirstChar= TEXTorID.charAt(0); var eName = TEXTorID.substr(1); if ('#'==FirstChar || '.'==FirstChar){ if('#'==FirstChar){var x=document.getElementById(eName);} else{var x=document.getElementsByClassName(eName)[0];}} else { var x=document.createElement('div');x.innerHTML=TEXTorID;} var randm_id=Math.floor((Math.random()*100000000));
1821
- var DivAA = document.createElement('div'); DivAA.id = "blkBackgr_"+randm_id; DivAA.className = "MyJsBackg"; DivAA.setAttribute("style", 'background:black; height:5000px; left:0px; opacity:0.9; position:fixed; top:0px; width:100%; z-index:99995;'); document.body.appendChild(DivAA); AdditionalStyles= AdditionalStyles || '';
1822
- var DivBB = document.createElement('div'); DivBB.id = 'popupp_'+randm_id; DivBB.className = "MyJsPopup"; DivBB.setAttribute("style",'background-color:white; border:6px solid white; border-radius:10px; display:block; min-height:1%; min-width:350px; width:auto; overflow:auto; max-height:80%; max-width:800px; padding:15px; position:fixed; text-align:left; top:10%; z-index:99995; left:0px; right:0px; margin-left:auto; margin-right:auto; width:80%;'+ AdditionalStyles); DivBB.innerHTML = '<div style="background-color:#C0BCBF; border-radius:55px; padding:5px; font-family:arial; float:right; font-weight:700; margin:-15px -10px 0px 0px; z-index: 88; " class="CloseButtn" ><a href="javascript:my_popup_closee('+randm_id+');" style="display:block;margin:-5px 0 0 0;font-size:1.6em;">x</a></div>'; document.body.appendChild(DivBB);const z=x.cloneNode(true);DivBB.appendChild(z); if(z.style.display=="none"){z.style.display="block";}
1823
- }
1824
- my_popup_closee(RandomIDD) { var x=document.getElementById("blkBackgr_"+RandomIDD); x.parentNode.removeChild(x); var x=document.getElementById('popupp_'+RandomIDD); x.parentNode.removeChild(x);
1825
- }
1826
- // ========================================================== //
1827
-
1828
-
1829
-
1830
-
1831
- // ===================== "PLEASE WAIT" popup =============== https://github.com/ttodua/useful-javascript/ ===============
1832
- loaderImage(circleColor){
1833
- var circlecolor=circleColor || '#ffffff';
1834
- return '<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" width="90px" height="90px" viewBox="0 0 128 128" xml:space="preserve"><g><circle cx="16" cy="64" r="16" fill="'+circlecolor+'" fill-opacity="1"/><circle cx="16" cy="64" r="16" fill="'+circlecolor+'" fill-opacity="0.67" transform="rotate(45,64,64)"/><circle cx="16" cy="64" r="16" fill="#ffffff" fill-opacity="0.42" transform="rotate(90,64,64)"/><circle cx="16" cy="64" r="16" fill="'+circlecolor+'" fill-opacity="0.2" transform="rotate(135,64,64)"/><circle cx="16" cy="64" r="16" fill="'+circlecolor+'" fill-opacity="0.12" transform="rotate(180,64,64)"/><circle cx="16" cy="64" r="16" fill="'+circlecolor+'" fill-opacity="0.12" transform="rotate(225,64,64)"/><circle cx="16" cy="64" r="16" fill="'+circlecolor+'" fill-opacity="0.12" transform="rotate(270,64,64)"/><circle cx="16" cy="64" r="16" fill="'+circlecolor+'" fill-opacity="0.12" transform="rotate(315,64,64)"/><animateTransform attributeName="transform" type="rotate" values="0 64 64;315 64 64;270 64 64;225 64 64;180 64 64;135 64 64;90 64 64;45 64 64" calcMode="discrete" dur="720ms" repeatCount="indefinite"></animateTransform></g></svg>';
1835
- }
1836
- Loader(ShowOrHide, style, content_To_show)
1837
- {
1838
- var elementID = 'waiter_box_p';
1839
- if (ShowOrHide)
1840
- {
1841
- var b=document.body;
1842
- var content_To_show= (content_To_show || "") + '<br/>' +this.loaderImage();
1843
- var x = document.createElement('div'); x.id = elementID; x.setAttribute("style","height:120%; width:120%; position:fixed; top:-10%; left:-10%; z-index:9900; overflow:hidden;");
1844
-
1845
- x.innerHTML =
1846
- '<div id="'+elementID+'_background" style="background-color: black; height: 100%; position: absolute; opacity: 0.9; width: 100%;' + (style || '') + '">'+
1847
- '<div id="'+elementID+'_content" style="height: 100%;">'+
1848
- '<div align="center" style="text-align:center;position:relative;top:50%;transform:translateY(-50%);color:#adb109;font-size:1.2em;"> '+ content_To_show + '</div>' +
1849
- '</div>'+
1850
- '</div>';
1851
- b.insertBefore(x, b.childNodes[0]);
1852
- }
1853
- else{
1854
- var x =document.getElementById(elementID); if (x) x.parentNode.removeChild(x);
1855
- }
1856
- }
1857
- // ========================================================== //
1858
-
1859
-
1860
-
1861
- // ============================= AJAX EXAMPLES =============== https://github.com/ttodua/useful-javascript/ ===============
1862
- myyAjaxRequest(parameters, url, method, func, ShowBlackground){ ShowBlackground= ShowBlackground || false;
1863
- method = method.toLowerCase() || "post"; if (method == "get") {url=url+'?'+parameters+'&MakeRandomValuedLinkToAvoidCache=' + Math.random();}
1864
- if(ShowBlackground) {Loader(true);} try{try{var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");} catch( e ){var xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}}catch(e){var xmlhttp = new XMLHttpRequest();}
1865
- xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4){ if(ShowBlackground) {Loader(false);} responseee = xmlhttp.responseText; //xmlhttp.readyState + xmlhttp.status//
1866
- func(); //execute any codes
1867
- }};
1868
- xmlhttp.open(method,url, true);
1869
- if (method == "post"){xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlhttp.send(parameters);}
1870
- else if (method == "get"){xmlhttp.send(null);}
1871
- }
1872
- // ========================================================== //
1873
-
1874
-
1875
- //all divs, which has a classname "My_TARGET_Hiddens", will be automatically hidden on page load...
1876
- hide_popuping_divs(classnameee){
1877
- var elmnts = document.getElementsByClassName(classnameee); var index;
1878
- for (index = 0; index < elmnts.length; ++index) {
1879
- elmnts[index].style.display= "none"; //elmnts[index].className = elmnts[index].className + " my_css_hide_class";
1880
- }
1881
- }
1882
- //window.onload = function(){ if(typeof MyTargetHideClass ==='String') hide_popuping_divs(MyTargetHideClass); };
1883
-
1884
1871
  get(url, parameters) {
1885
1872
  // Return a new promise.
1886
1873
  return new Promise(function(resolve, reject) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "puvox-library",
3
- "version": "1.1.26",
3
+ "version": "1.1.28",
4
4
  "description": "library-class-javascript",
5
5
  "main": "library_standard.js",
6
6
  "scripts": {