diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/404.html b/404.html new file mode 100644 index 00000000..9c9613d8 --- /dev/null +++ b/404.html @@ -0,0 +1,1400 @@ + + + + + + + + + + + + + + + + + + + + HCL Volt MX Go Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + +
+
+
+ + + +
+
+
+ + + + + +
+
+
+ + + +
+
+ +

404 - Not found

+ +
+
+ + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/assets/css/voltmxgo.css b/assets/css/voltmxgo.css new file mode 100644 index 00000000..664e6418 --- /dev/null +++ b/assets/css/voltmxgo.css @@ -0,0 +1,85 @@ +pre { + word-break: break-all; + overflow-wrap: break-word; + white-space: pre-wrap; + } + + header { + background-color: #4051b5; + } + + /*header { + background-image: linear-gradient(to right, #5f1ebe, #3c91ff); + }*/ + + /*footer { + background-image: linear-gradient(to right, #00005A 0.41%, #000032 85.07%); + }*/ + + /*footer { + background-image: linear-gradient(to right, #5f1ebe, #3c91ff); + }*/ + + footer { + background-color: #000000; + } + /*nav.md-tabs { + background-image: linear-gradient(to right, #5f1ebe, #3c91ff); + } + + .md-search__inner { + background-color: #1d2123; + } + + nav.md-tabs { + background-color: #000000; + } + .md-header__title { + background-color: #000000; + } + .md-header { + background-color: #000000; + }*/ + + @font-face { + font-family: 'HCLTech Roobert'; + src: url(../fonts/HCLTechRoobert-Regular.otf); + } + + :root { + --md-text-font: "HCLTech Roobert"; + } + + :root { + --md-code-font: "Courier"; + } + + :root > * { + --md-code-hl-string-color: #475156; + } + + .md-typeset h1{ + font-family:"HCLTech Roobert"; + } + + .md-typeset h2{ + font-family:"HCLTech Roobert"; + } + .md-typeset h3{ + font-family:"HCLTech Roobert"; + } + .md-typeset h4{ + font-family:"HCLTech Roobert"; + } + .md-typeset h5{ + font-family:"HCLTech Roobert"; + text-transform: capitalize; + font-size: medium; + color: #5b666d; + } + .md-typeset h6{ + font-family:"HCLTech Roobert"; + } + tr.lostLinkItem:nth-child(even) { + background-color: #eeeeee; + } \ No newline at end of file diff --git a/assets/fonts/HCLTechRoobert-Regular.otf b/assets/fonts/HCLTechRoobert-Regular.otf new file mode 100644 index 00000000..c5d1f4f9 Binary files /dev/null and b/assets/fonts/HCLTechRoobert-Regular.otf differ diff --git a/assets/images/Foundryaccountsetup.png b/assets/images/Foundryaccountsetup.png new file mode 100644 index 00000000..fed8d533 Binary files /dev/null and b/assets/images/Foundryaccountsetup.png differ diff --git a/assets/images/VoltMXGoDiagram.png b/assets/images/VoltMXGoDiagram.png new file mode 100644 index 00000000..3bc34737 Binary files /dev/null and b/assets/images/VoltMXGoDiagram.png differ diff --git a/assets/images/VoltMXGoLogo.png b/assets/images/VoltMXGoLogo.png new file mode 100644 index 00000000..709a59cc Binary files /dev/null and b/assets/images/VoltMXGoLogo.png differ diff --git a/assets/images/addenvironment.png b/assets/images/addenvironment.png new file mode 100644 index 00000000..f6f0e27c Binary files /dev/null and b/assets/images/addenvironment.png differ diff --git a/assets/images/addrecipe.png b/assets/images/addrecipe.png new file mode 100644 index 00000000..d756bbbb Binary files /dev/null and b/assets/images/addrecipe.png differ diff --git a/assets/images/buildnpublish.png b/assets/images/buildnpublish.png new file mode 100644 index 00000000..c13266d0 Binary files /dev/null and b/assets/images/buildnpublish.png differ diff --git a/assets/images/deleterecipe.png b/assets/images/deleterecipe.png new file mode 100644 index 00000000..550f62c5 Binary files /dev/null and b/assets/images/deleterecipe.png differ diff --git a/assets/images/deleterequest.png b/assets/images/deleterequest.png new file mode 100644 index 00000000..329bc8fd Binary files /dev/null and b/assets/images/deleterequest.png differ diff --git a/assets/images/deleteresponse.png b/assets/images/deleteresponse.png new file mode 100644 index 00000000..fe86aeab Binary files /dev/null and b/assets/images/deleteresponse.png differ diff --git a/assets/images/diappname.png b/assets/images/diappname.png new file mode 100644 index 00000000..9c46d4a1 Binary files /dev/null and b/assets/images/diappname.png differ diff --git a/assets/images/diassociate.png b/assets/images/diassociate.png new file mode 100644 index 00000000..5e1fac0f Binary files /dev/null and b/assets/images/diassociate.png differ diff --git a/assets/images/diconfirmdel.png b/assets/images/diconfirmdel.png new file mode 100644 index 00000000..c8d48e28 Binary files /dev/null and b/assets/images/diconfirmdel.png differ diff --git a/assets/images/dicreatenew.png b/assets/images/dicreatenew.png new file mode 100644 index 00000000..20532e73 Binary files /dev/null and b/assets/images/dicreatenew.png differ diff --git a/assets/images/dicredential.png b/assets/images/dicredential.png new file mode 100644 index 00000000..b6fbdf15 Binary files /dev/null and b/assets/images/dicredential.png differ diff --git a/assets/images/didesigner.png b/assets/images/didesigner.png new file mode 100644 index 00000000..9155f097 Binary files /dev/null and b/assets/images/didesigner.png differ diff --git a/assets/images/didevice.png b/assets/images/didevice.png new file mode 100644 index 00000000..8378ef48 Binary files /dev/null and b/assets/images/didevice.png differ diff --git a/assets/images/didrapi.png b/assets/images/didrapi.png new file mode 100644 index 00000000..3bf04937 Binary files /dev/null and b/assets/images/didrapi.png differ diff --git a/assets/images/didrapilogin.png b/assets/images/didrapilogin.png new file mode 100644 index 00000000..3d857e12 Binary files /dev/null and b/assets/images/didrapilogin.png differ diff --git a/assets/images/dieditdata.png b/assets/images/dieditdata.png new file mode 100644 index 00000000..ade9d126 Binary files /dev/null and b/assets/images/dieditdata.png differ diff --git a/assets/images/dieditsave.png b/assets/images/dieditsave.png new file mode 100644 index 00000000..d0a7b04c Binary files /dev/null and b/assets/images/dieditsave.png differ diff --git a/assets/images/diexfoundry.png b/assets/images/diexfoundry.png new file mode 100644 index 00000000..03091c16 Binary files /dev/null and b/assets/images/diexfoundry.png differ diff --git a/assets/images/diexistingid.png b/assets/images/diexistingid.png new file mode 100644 index 00000000..a4db481f Binary files /dev/null and b/assets/images/diexistingid.png differ diff --git a/assets/images/difoundry.png b/assets/images/difoundry.png new file mode 100644 index 00000000..6609b26f Binary files /dev/null and b/assets/images/difoundry.png differ diff --git a/assets/images/dikeep.png b/assets/images/dikeep.png new file mode 100644 index 00000000..0295e614 Binary files /dev/null and b/assets/images/dikeep.png differ diff --git a/assets/images/dilist.png b/assets/images/dilist.png new file mode 100644 index 00000000..4d12b617 Binary files /dev/null and b/assets/images/dilist.png differ diff --git a/assets/images/dilogging.png b/assets/images/dilogging.png new file mode 100644 index 00000000..d37ab567 Binary files /dev/null and b/assets/images/dilogging.png differ diff --git a/assets/images/diloggingwin.png b/assets/images/diloggingwin.png new file mode 100644 index 00000000..b13b2430 Binary files /dev/null and b/assets/images/diloggingwin.png differ diff --git a/assets/images/dilogin.png b/assets/images/dilogin.png new file mode 100644 index 00000000..4c3cf659 Binary files /dev/null and b/assets/images/dilogin.png differ diff --git a/assets/images/dilogincrud.png b/assets/images/dilogincrud.png new file mode 100644 index 00000000..c4bdb03a Binary files /dev/null and b/assets/images/dilogincrud.png differ diff --git a/assets/images/dimsgdelete.png b/assets/images/dimsgdelete.png new file mode 100644 index 00000000..ca4c29c8 Binary files /dev/null and b/assets/images/dimsgdelete.png differ diff --git a/assets/images/dimxgoid.png b/assets/images/dimxgoid.png new file mode 100644 index 00000000..60baf93c Binary files /dev/null and b/assets/images/dimxgoid.png differ diff --git a/assets/images/dinewview.png b/assets/images/dinewview.png new file mode 100644 index 00000000..0e4cf8a8 Binary files /dev/null and b/assets/images/dinewview.png differ diff --git a/assets/images/dinewview1.png b/assets/images/dinewview1.png new file mode 100644 index 00000000..41c06f8d Binary files /dev/null and b/assets/images/dinewview1.png differ diff --git a/assets/images/dioutput.png b/assets/images/dioutput.png new file mode 100644 index 00000000..8d489823 Binary files /dev/null and b/assets/images/dioutput.png differ diff --git a/assets/images/dipreference.png b/assets/images/dipreference.png new file mode 100644 index 00000000..13e4b69d Binary files /dev/null and b/assets/images/dipreference.png differ diff --git a/assets/images/dipressdel.png b/assets/images/dipressdel.png new file mode 100644 index 00000000..be8d2b01 Binary files /dev/null and b/assets/images/dipressdel.png differ diff --git a/assets/images/dipressedit.png b/assets/images/dipressedit.png new file mode 100644 index 00000000..6b42cf0a Binary files /dev/null and b/assets/images/dipressedit.png differ diff --git a/assets/images/diprojectname.png b/assets/images/diprojectname.png new file mode 100644 index 00000000..f46ea108 Binary files /dev/null and b/assets/images/diprojectname.png differ diff --git a/assets/images/diresult.png b/assets/images/diresult.png new file mode 100644 index 00000000..1bff1637 Binary files /dev/null and b/assets/images/diresult.png differ diff --git a/assets/images/discope.png b/assets/images/discope.png new file mode 100644 index 00000000..9bb2e6dc Binary files /dev/null and b/assets/images/discope.png differ diff --git a/assets/images/discopeform.png b/assets/images/discopeform.png new file mode 100644 index 00000000..55e8b7a0 Binary files /dev/null and b/assets/images/discopeform.png differ diff --git a/assets/images/disearchdel.png b/assets/images/disearchdel.png new file mode 100644 index 00000000..e9a7a6f9 Binary files /dev/null and b/assets/images/disearchdel.png differ diff --git a/assets/images/distart.png b/assets/images/distart.png new file mode 100644 index 00000000..143b06ba Binary files /dev/null and b/assets/images/distart.png differ diff --git a/assets/images/disummary.png b/assets/images/disummary.png new file mode 100644 index 00000000..f578d40a Binary files /dev/null and b/assets/images/disummary.png differ diff --git a/assets/images/diupdated.png b/assets/images/diupdated.png new file mode 100644 index 00000000..0eff8f3a Binary files /dev/null and b/assets/images/diupdated.png differ diff --git a/assets/images/diviews.png b/assets/images/diviews.png new file mode 100644 index 00000000..c0d88bf8 Binary files /dev/null and b/assets/images/diviews.png differ diff --git a/assets/images/diwizard.png b/assets/images/diwizard.png new file mode 100644 index 00000000..19208b63 Binary files /dev/null and b/assets/images/diwizard.png differ diff --git a/assets/images/downloadearelease.png b/assets/images/downloadearelease.png new file mode 100644 index 00000000..991a10be Binary files /dev/null and b/assets/images/downloadearelease.png differ diff --git a/assets/images/editrecipe.png b/assets/images/editrecipe.png new file mode 100644 index 00000000..296e7574 Binary files /dev/null and b/assets/images/editrecipe.png differ diff --git a/assets/images/favicon.png b/assets/images/favicon.png new file mode 100644 index 00000000..0c0959e9 Binary files /dev/null and b/assets/images/favicon.png differ diff --git a/assets/images/firsttouch.png b/assets/images/firsttouch.png new file mode 100644 index 00000000..f93346ae Binary files /dev/null and b/assets/images/firsttouch.png differ diff --git a/assets/images/firsttouchcongrats.png b/assets/images/firsttouchcongrats.png new file mode 100644 index 00000000..900449fd Binary files /dev/null and b/assets/images/firsttouchcongrats.png differ diff --git a/assets/images/firsttouchinstalldialog.png b/assets/images/firsttouchinstalldialog.png new file mode 100644 index 00000000..a1d28a87 Binary files /dev/null and b/assets/images/firsttouchinstalldialog.png differ diff --git a/assets/images/firsttouchsidepanel.png b/assets/images/firsttouchsidepanel.png new file mode 100644 index 00000000..c7529d11 Binary files /dev/null and b/assets/images/firsttouchsidepanel.png differ diff --git a/assets/images/formaliasproperties.png b/assets/images/formaliasproperties.png new file mode 100644 index 00000000..2f4adee8 Binary files /dev/null and b/assets/images/formaliasproperties.png differ diff --git a/assets/images/fthcllogin.png b/assets/images/fthcllogin.png new file mode 100644 index 00000000..692b703d Binary files /dev/null and b/assets/images/fthcllogin.png differ diff --git a/assets/images/ftpermissionreq.png b/assets/images/ftpermissionreq.png new file mode 100644 index 00000000..897ed7e4 Binary files /dev/null and b/assets/images/ftpermissionreq.png differ diff --git a/assets/images/ftprojsettings.png b/assets/images/ftprojsettings.png new file mode 100644 index 00000000..fd8cbbcd Binary files /dev/null and b/assets/images/ftprojsettings.png differ diff --git a/assets/images/ftrecipeapp.png b/assets/images/ftrecipeapp.png new file mode 100644 index 00000000..f26c4052 Binary files /dev/null and b/assets/images/ftrecipeapp.png differ diff --git a/assets/images/ftuninstall.png b/assets/images/ftuninstall.png new file mode 100644 index 00000000..5f66902e Binary files /dev/null and b/assets/images/ftuninstall.png differ diff --git a/assets/images/getoneunid.png b/assets/images/getoneunid.png new file mode 100644 index 00000000..0cc2c6c0 Binary files /dev/null and b/assets/images/getoneunid.png differ diff --git a/assets/images/getstarteddialog.png b/assets/images/getstarteddialog.png new file mode 100644 index 00000000..c4450c9d Binary files /dev/null and b/assets/images/getstarteddialog.png differ diff --git a/assets/images/identityproviderdetails.png b/assets/images/identityproviderdetails.png new file mode 100644 index 00000000..6bc6f28d Binary files /dev/null and b/assets/images/identityproviderdetails.png differ diff --git a/assets/images/importobject.png b/assets/images/importobject.png new file mode 100644 index 00000000..520c4189 Binary files /dev/null and b/assets/images/importobject.png differ diff --git a/assets/images/importobject2.png b/assets/images/importobject2.png new file mode 100644 index 00000000..7f973292 Binary files /dev/null and b/assets/images/importobject2.png differ diff --git a/assets/images/mobilerecipe1.png b/assets/images/mobilerecipe1.png new file mode 100644 index 00000000..c54fa3c1 Binary files /dev/null and b/assets/images/mobilerecipe1.png differ diff --git a/assets/images/objectauthentication.png b/assets/images/objectauthentication.png new file mode 100644 index 00000000..12b6346d Binary files /dev/null and b/assets/images/objectauthentication.png differ diff --git a/assets/images/objectconparam.png b/assets/images/objectconparam.png new file mode 100644 index 00000000..6157d620 Binary files /dev/null and b/assets/images/objectconparam.png differ diff --git a/assets/images/objectconparam1.png b/assets/images/objectconparam1.png new file mode 100644 index 00000000..35bb450a Binary files /dev/null and b/assets/images/objectconparam1.png differ diff --git a/assets/images/objectendpointtype.png b/assets/images/objectendpointtype.png new file mode 100644 index 00000000..b41f18fe Binary files /dev/null and b/assets/images/objectendpointtype.png differ diff --git a/assets/images/output1.png b/assets/images/output1.png new file mode 100644 index 00000000..fb99e12c Binary files /dev/null and b/assets/images/output1.png differ diff --git a/assets/images/patchrequest.png b/assets/images/patchrequest.png new file mode 100644 index 00000000..8b91cce3 Binary files /dev/null and b/assets/images/patchrequest.png differ diff --git a/assets/images/patchresponse.png b/assets/images/patchresponse.png new file mode 100644 index 00000000..1537583d Binary files /dev/null and b/assets/images/patchresponse.png differ diff --git a/assets/images/podnamesample.png b/assets/images/podnamesample.png new file mode 100644 index 00000000..2fa02371 Binary files /dev/null and b/assets/images/podnamesample.png differ diff --git a/assets/images/portforwarding.png b/assets/images/portforwarding.png new file mode 100644 index 00000000..82a63653 Binary files /dev/null and b/assets/images/portforwarding.png differ diff --git a/assets/images/projectservices.png b/assets/images/projectservices.png new file mode 100644 index 00000000..e91d2426 Binary files /dev/null and b/assets/images/projectservices.png differ diff --git a/assets/images/publishcomplete.png b/assets/images/publishcomplete.png new file mode 100644 index 00000000..3c44637b Binary files /dev/null and b/assets/images/publishcomplete.png differ diff --git a/assets/images/putrequest.png b/assets/images/putrequest.png new file mode 100644 index 00000000..d3049207 Binary files /dev/null and b/assets/images/putrequest.png differ diff --git a/assets/images/putresponse.png b/assets/images/putresponse.png new file mode 100644 index 00000000..c3310aed Binary files /dev/null and b/assets/images/putresponse.png differ diff --git a/assets/images/rancherpreference.png b/assets/images/rancherpreference.png new file mode 100644 index 00000000..55f4cdfe Binary files /dev/null and b/assets/images/rancherpreference.png differ diff --git a/assets/images/rancherpreference1.png b/assets/images/rancherpreference1.png new file mode 100644 index 00000000..f162d966 Binary files /dev/null and b/assets/images/rancherpreference1.png differ diff --git a/assets/images/recipe-richtext.png b/assets/images/recipe-richtext.png new file mode 100644 index 00000000..6d3f9e2f Binary files /dev/null and b/assets/images/recipe-richtext.png differ diff --git a/assets/images/recipe-servings-foundrymodel.png b/assets/images/recipe-servings-foundrymodel.png new file mode 100644 index 00000000..1b3790fb Binary files /dev/null and b/assets/images/recipe-servings-foundrymodel.png differ diff --git a/assets/images/recipe-servings-keepschema.png b/assets/images/recipe-servings-keepschema.png new file mode 100644 index 00000000..623ddeba Binary files /dev/null and b/assets/images/recipe-servings-keepschema.png differ diff --git a/assets/images/recipecardexpanded.png b/assets/images/recipecardexpanded.png new file mode 100644 index 00000000..b68fec04 Binary files /dev/null and b/assets/images/recipecardexpanded.png differ diff --git a/assets/images/recipedatamodel.png b/assets/images/recipedatamodel.png new file mode 100644 index 00000000..8bdccedb Binary files /dev/null and b/assets/images/recipedatamodel.png differ diff --git a/assets/images/recipemapping.png b/assets/images/recipemapping.png new file mode 100644 index 00000000..a8e9b938 Binary files /dev/null and b/assets/images/recipemapping.png differ diff --git a/assets/images/recipensf.png b/assets/images/recipensf.png new file mode 100644 index 00000000..23a56f33 Binary files /dev/null and b/assets/images/recipensf.png differ diff --git a/assets/images/recipesearch.png b/assets/images/recipesearch.png new file mode 100644 index 00000000..156c537b Binary files /dev/null and b/assets/images/recipesearch.png differ diff --git a/assets/images/searchproj.png b/assets/images/searchproj.png new file mode 100644 index 00000000..ea10a101 Binary files /dev/null and b/assets/images/searchproj.png differ diff --git a/assets/images/sncreateform.png b/assets/images/sncreateform.png new file mode 100644 index 00000000..9482ef8d Binary files /dev/null and b/assets/images/sncreateform.png differ diff --git a/assets/images/sngenforms.png b/assets/images/sngenforms.png new file mode 100644 index 00000000..1ea9a956 Binary files /dev/null and b/assets/images/sngenforms.png differ diff --git a/assets/images/snimportcomp.png b/assets/images/snimportcomp.png new file mode 100644 index 00000000..79e0b881 Binary files /dev/null and b/assets/images/snimportcomp.png differ diff --git a/assets/images/snimportsuccess.png b/assets/images/snimportsuccess.png new file mode 100644 index 00000000..ad116a40 Binary files /dev/null and b/assets/images/snimportsuccess.png differ diff --git a/assets/images/snprojservices.png b/assets/images/snprojservices.png new file mode 100644 index 00000000..d3fdc17c Binary files /dev/null and b/assets/images/snprojservices.png differ diff --git a/assets/images/snrichtextfield.png b/assets/images/snrichtextfield.png new file mode 100644 index 00000000..e3f1d239 Binary files /dev/null and b/assets/images/snrichtextfield.png differ diff --git a/assets/images/summernoteselect.png b/assets/images/summernoteselect.png new file mode 100644 index 00000000..f0956189 Binary files /dev/null and b/assets/images/summernoteselect.png differ diff --git a/assets/images/systemctl-status-k3s.jpeg b/assets/images/systemctl-status-k3s.jpeg new file mode 100644 index 00000000..a17a879f Binary files /dev/null and b/assets/images/systemctl-status-k3s.jpeg differ diff --git a/assets/images/ubuntuconfig.png b/assets/images/ubuntuconfig.png new file mode 100644 index 00000000..e7dc725e Binary files /dev/null and b/assets/images/ubuntuconfig.png differ diff --git a/assets/images/updaterecipe.png b/assets/images/updaterecipe.png new file mode 100644 index 00000000..d7e7f9a9 Binary files /dev/null and b/assets/images/updaterecipe.png differ diff --git a/assets/images/userprofile.png b/assets/images/userprofile.png new file mode 100644 index 00000000..9859e6eb Binary files /dev/null and b/assets/images/userprofile.png differ diff --git a/assets/images/userprofile1.png b/assets/images/userprofile1.png new file mode 100644 index 00000000..7ae9c41c Binary files /dev/null and b/assets/images/userprofile1.png differ diff --git a/assets/images/vfaction.png b/assets/images/vfaction.png new file mode 100644 index 00000000..8225b425 Binary files /dev/null and b/assets/images/vfaction.png differ diff --git a/assets/images/vfactionadd.png b/assets/images/vfactionadd.png new file mode 100644 index 00000000..55ad691c Binary files /dev/null and b/assets/images/vfactionadd.png differ diff --git a/assets/images/vfactioneditor.png b/assets/images/vfactioneditor.png new file mode 100644 index 00000000..fa6edda8 Binary files /dev/null and b/assets/images/vfactioneditor.png differ diff --git a/assets/images/vfactionformula.png b/assets/images/vfactionformula.png new file mode 100644 index 00000000..684b6f16 Binary files /dev/null and b/assets/images/vfactionformula.png differ diff --git a/assets/images/vfaddcode.png b/assets/images/vfaddcode.png new file mode 100644 index 00000000..98da8e4c Binary files /dev/null and b/assets/images/vfaddcode.png differ diff --git a/assets/images/vfclickedit.png b/assets/images/vfclickedit.png new file mode 100644 index 00000000..df428782 Binary files /dev/null and b/assets/images/vfclickedit.png differ diff --git a/assets/images/vfeditform.png b/assets/images/vfeditform.png new file mode 100644 index 00000000..c391cea5 Binary files /dev/null and b/assets/images/vfeditform.png differ diff --git a/assets/images/vfjavaedit.png b/assets/images/vfjavaedit.png new file mode 100644 index 00000000..3cf5e1b1 Binary files /dev/null and b/assets/images/vfjavaedit.png differ diff --git a/assets/images/vfresedit.png b/assets/images/vfresedit.png new file mode 100644 index 00000000..d426d189 Binary files /dev/null and b/assets/images/vfresedit.png differ diff --git a/assets/images/vfrosettasetting.png b/assets/images/vfrosettasetting.png new file mode 100644 index 00000000..950cf88d Binary files /dev/null and b/assets/images/vfrosettasetting.png differ diff --git a/assets/images/vfrosoutput.png b/assets/images/vfrosoutput.png new file mode 100644 index 00000000..604b30e4 Binary files /dev/null and b/assets/images/vfrosoutput.png differ diff --git a/assets/images/vfsetting.png b/assets/images/vfsetting.png new file mode 100644 index 00000000..4497f53a Binary files /dev/null and b/assets/images/vfsetting.png differ diff --git a/assets/images/vfsyntax.png b/assets/images/vfsyntax.png new file mode 100644 index 00000000..51a2d2af Binary files /dev/null and b/assets/images/vfsyntax.png differ diff --git a/assets/images/vfsyntax1.png b/assets/images/vfsyntax1.png new file mode 100644 index 00000000..e74fb43c Binary files /dev/null and b/assets/images/vfsyntax1.png differ diff --git a/assets/images/voltmxappdialog.png b/assets/images/voltmxappdialog.png new file mode 100644 index 00000000..4b870cc2 Binary files /dev/null and b/assets/images/voltmxappdialog.png differ diff --git a/assets/javascripts/bundle.220ee61c.min.js b/assets/javascripts/bundle.220ee61c.min.js new file mode 100644 index 00000000..116072a1 --- /dev/null +++ b/assets/javascripts/bundle.220ee61c.min.js @@ -0,0 +1,29 @@ +"use strict";(()=>{var Ci=Object.create;var gr=Object.defineProperty;var Ri=Object.getOwnPropertyDescriptor;var ki=Object.getOwnPropertyNames,Ht=Object.getOwnPropertySymbols,Hi=Object.getPrototypeOf,yr=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable;var rn=(e,t,r)=>t in e?gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))yr.call(t,r)&&rn(e,r,t[r]);if(Ht)for(var r of Ht(t))nn.call(t,r)&&rn(e,r,t[r]);return e};var on=(e,t)=>{var r={};for(var n in e)yr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ht)for(var n of Ht(e))t.indexOf(n)<0&&nn.call(e,n)&&(r[n]=e[n]);return r};var Pt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Pi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ki(t))!yr.call(e,o)&&o!==r&&gr(e,o,{get:()=>t[o],enumerable:!(n=Ri(t,o))||n.enumerable});return e};var yt=(e,t,r)=>(r=e!=null?Ci(Hi(e)):{},Pi(t||!e||!e.__esModule?gr(r,"default",{value:e,enumerable:!0}):r,e));var sn=Pt((xr,an)=>{(function(e,t){typeof xr=="object"&&typeof an!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(xr,function(){"use strict";function e(r){var n=!0,o=!1,i=null,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function a(O){return!!(O&&O!==document&&O.nodeName!=="HTML"&&O.nodeName!=="BODY"&&"classList"in O&&"contains"in O.classList)}function f(O){var Qe=O.type,De=O.tagName;return!!(De==="INPUT"&&s[Qe]&&!O.readOnly||De==="TEXTAREA"&&!O.readOnly||O.isContentEditable)}function c(O){O.classList.contains("focus-visible")||(O.classList.add("focus-visible"),O.setAttribute("data-focus-visible-added",""))}function u(O){O.hasAttribute("data-focus-visible-added")&&(O.classList.remove("focus-visible"),O.removeAttribute("data-focus-visible-added"))}function p(O){O.metaKey||O.altKey||O.ctrlKey||(a(r.activeElement)&&c(r.activeElement),n=!0)}function m(O){n=!1}function d(O){a(O.target)&&(n||f(O.target))&&c(O.target)}function h(O){a(O.target)&&(O.target.classList.contains("focus-visible")||O.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(O.target))}function v(O){document.visibilityState==="hidden"&&(o&&(n=!0),Y())}function Y(){document.addEventListener("mousemove",N),document.addEventListener("mousedown",N),document.addEventListener("mouseup",N),document.addEventListener("pointermove",N),document.addEventListener("pointerdown",N),document.addEventListener("pointerup",N),document.addEventListener("touchmove",N),document.addEventListener("touchstart",N),document.addEventListener("touchend",N)}function B(){document.removeEventListener("mousemove",N),document.removeEventListener("mousedown",N),document.removeEventListener("mouseup",N),document.removeEventListener("pointermove",N),document.removeEventListener("pointerdown",N),document.removeEventListener("pointerup",N),document.removeEventListener("touchmove",N),document.removeEventListener("touchstart",N),document.removeEventListener("touchend",N)}function N(O){O.target.nodeName&&O.target.nodeName.toLowerCase()==="html"||(n=!1,B())}document.addEventListener("keydown",p,!0),document.addEventListener("mousedown",m,!0),document.addEventListener("pointerdown",m,!0),document.addEventListener("touchstart",m,!0),document.addEventListener("visibilitychange",v,!0),Y(),r.addEventListener("focus",d,!0),r.addEventListener("blur",h,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var cn=Pt(Er=>{(function(e){var t=function(){try{return!!Symbol.iterator}catch(c){return!1}},r=t(),n=function(c){var u={next:function(){var p=c.shift();return{done:p===void 0,value:p}}};return r&&(u[Symbol.iterator]=function(){return u}),u},o=function(c){return encodeURIComponent(c).replace(/%20/g,"+")},i=function(c){return decodeURIComponent(String(c).replace(/\+/g," "))},s=function(){var c=function(p){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var m=typeof p;if(m!=="undefined")if(m==="string")p!==""&&this._fromString(p);else if(p instanceof c){var d=this;p.forEach(function(B,N){d.append(N,B)})}else if(p!==null&&m==="object")if(Object.prototype.toString.call(p)==="[object Array]")for(var h=0;hd[0]?1:0}),c._entries&&(c._entries={});for(var p=0;p1?i(d[1]):"")}})})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Er);(function(e){var t=function(){try{var o=new e.URL("b","http://a");return o.pathname="c d",o.href==="http://a/c%20d"&&o.searchParams}catch(i){return!1}},r=function(){var o=e.URL,i=function(f,c){typeof f!="string"&&(f=String(f)),c&&typeof c!="string"&&(c=String(c));var u=document,p;if(c&&(e.location===void 0||c!==e.location.href)){c=c.toLowerCase(),u=document.implementation.createHTMLDocument(""),p=u.createElement("base"),p.href=c,u.head.appendChild(p);try{if(p.href.indexOf(c)!==0)throw new Error(p.href)}catch(O){throw new Error("URL unable to set base "+c+" due to "+O)}}var m=u.createElement("a");m.href=f,p&&(u.body.appendChild(m),m.href=m.href);var d=u.createElement("input");if(d.type="url",d.value=f,m.protocol===":"||!/:/.test(m.href)||!d.checkValidity()&&!c)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:m});var h=new e.URLSearchParams(this.search),v=!0,Y=!0,B=this;["append","delete","set"].forEach(function(O){var Qe=h[O];h[O]=function(){Qe.apply(h,arguments),v&&(Y=!1,B.search=h.toString(),Y=!0)}}),Object.defineProperty(this,"searchParams",{value:h,enumerable:!0});var N=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==N&&(N=this.search,Y&&(v=!1,this.searchParams._fromString(this.search),v=!0))}})},s=i.prototype,a=function(f){Object.defineProperty(s,f,{get:function(){return this._anchorElement[f]},set:function(c){this._anchorElement[f]=c},enumerable:!0})};["hash","host","hostname","port","protocol"].forEach(function(f){a(f)}),Object.defineProperty(s,"search",{get:function(){return this._anchorElement.search},set:function(f){this._anchorElement.search=f,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(s,{toString:{get:function(){var f=this;return function(){return f.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(f){this._anchorElement.href=f,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(f){this._anchorElement.pathname=f},enumerable:!0},origin:{get:function(){var f={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],c=this._anchorElement.port!=f&&this._anchorElement.port!=="";return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(c?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(f){},enumerable:!0},username:{get:function(){return""},set:function(f){},enumerable:!0}}),i.createObjectURL=function(f){return o.createObjectURL.apply(o,arguments)},i.revokeObjectURL=function(f){return o.revokeObjectURL.apply(o,arguments)},e.URL=i};if(t()||r(),e.location!==void 0&&!("origin"in e.location)){var n=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:n,enumerable:!0})}catch(o){setInterval(function(){e.location.origin=n()},100)}}})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Er)});var qr=Pt((Mt,Nr)=>{/*! + * clipboard.js v2.0.11 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */(function(t,r){typeof Mt=="object"&&typeof Nr=="object"?Nr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Mt=="object"?Mt.ClipboardJS=r():t.ClipboardJS=r()})(Mt,function(){return function(){var e={686:function(n,o,i){"use strict";i.d(o,{default:function(){return Ai}});var s=i(279),a=i.n(s),f=i(370),c=i.n(f),u=i(817),p=i.n(u);function m(j){try{return document.execCommand(j)}catch(T){return!1}}var d=function(T){var E=p()(T);return m("cut"),E},h=d;function v(j){var T=document.documentElement.getAttribute("dir")==="rtl",E=document.createElement("textarea");E.style.fontSize="12pt",E.style.border="0",E.style.padding="0",E.style.margin="0",E.style.position="absolute",E.style[T?"right":"left"]="-9999px";var H=window.pageYOffset||document.documentElement.scrollTop;return E.style.top="".concat(H,"px"),E.setAttribute("readonly",""),E.value=j,E}var Y=function(T,E){var H=v(T);E.container.appendChild(H);var I=p()(H);return m("copy"),H.remove(),I},B=function(T){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},H="";return typeof T=="string"?H=Y(T,E):T instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(T==null?void 0:T.type)?H=Y(T.value,E):(H=p()(T),m("copy")),H},N=B;function O(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(E){return typeof E}:O=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},O(j)}var Qe=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=T.action,H=E===void 0?"copy":E,I=T.container,q=T.target,Me=T.text;if(H!=="copy"&&H!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(q!==void 0)if(q&&O(q)==="object"&&q.nodeType===1){if(H==="copy"&&q.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(H==="cut"&&(q.hasAttribute("readonly")||q.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Me)return N(Me,{container:I});if(q)return H==="cut"?h(q):N(q,{container:I})},De=Qe;function $e(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$e=function(E){return typeof E}:$e=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},$e(j)}function Ei(j,T){if(!(j instanceof T))throw new TypeError("Cannot call a class as a function")}function tn(j,T){for(var E=0;E0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof I.action=="function"?I.action:this.defaultAction,this.target=typeof I.target=="function"?I.target:this.defaultTarget,this.text=typeof I.text=="function"?I.text:this.defaultText,this.container=$e(I.container)==="object"?I.container:document.body}},{key:"listenClick",value:function(I){var q=this;this.listener=c()(I,"click",function(Me){return q.onClick(Me)})}},{key:"onClick",value:function(I){var q=I.delegateTarget||I.currentTarget,Me=this.action(q)||"copy",kt=De({action:Me,container:this.container,target:this.target(q),text:this.text(q)});this.emit(kt?"success":"error",{action:Me,text:kt,trigger:q,clearSelection:function(){q&&q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(I){return vr("action",I)}},{key:"defaultTarget",value:function(I){var q=vr("target",I);if(q)return document.querySelector(q)}},{key:"defaultText",value:function(I){return vr("text",I)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(I){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return N(I,q)}},{key:"cut",value:function(I){return h(I)}},{key:"isSupported",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],q=typeof I=="string"?[I]:I,Me=!!document.queryCommandSupported;return q.forEach(function(kt){Me=Me&&!!document.queryCommandSupported(kt)}),Me}}]),E}(a()),Ai=Li},828:function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function s(a,f){for(;a&&a.nodeType!==o;){if(typeof a.matches=="function"&&a.matches(f))return a;a=a.parentNode}}n.exports=s},438:function(n,o,i){var s=i(828);function a(u,p,m,d,h){var v=c.apply(this,arguments);return u.addEventListener(m,v,h),{destroy:function(){u.removeEventListener(m,v,h)}}}function f(u,p,m,d,h){return typeof u.addEventListener=="function"?a.apply(null,arguments):typeof m=="function"?a.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(v){return a(v,p,m,d,h)}))}function c(u,p,m,d){return function(h){h.delegateTarget=s(h.target,p),h.delegateTarget&&d.call(u,h)}}n.exports=f},879:function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var s=Object.prototype.toString.call(i);return i!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var s=Object.prototype.toString.call(i);return s==="[object Function]"}},370:function(n,o,i){var s=i(879),a=i(438);function f(m,d,h){if(!m&&!d&&!h)throw new Error("Missing required arguments");if(!s.string(d))throw new TypeError("Second argument must be a String");if(!s.fn(h))throw new TypeError("Third argument must be a Function");if(s.node(m))return c(m,d,h);if(s.nodeList(m))return u(m,d,h);if(s.string(m))return p(m,d,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(m,d,h){return m.addEventListener(d,h),{destroy:function(){m.removeEventListener(d,h)}}}function u(m,d,h){return Array.prototype.forEach.call(m,function(v){v.addEventListener(d,h)}),{destroy:function(){Array.prototype.forEach.call(m,function(v){v.removeEventListener(d,h)})}}}function p(m,d,h){return a(document.body,m,d,h)}n.exports=f},817:function(n){function o(i){var s;if(i.nodeName==="SELECT")i.focus(),s=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var a=i.hasAttribute("readonly");a||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),a||i.removeAttribute("readonly"),s=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var f=window.getSelection(),c=document.createRange();c.selectNodeContents(i),f.removeAllRanges(),f.addRange(c),s=f.toString()}return s}n.exports=o},279:function(n){function o(){}o.prototype={on:function(i,s,a){var f=this.e||(this.e={});return(f[i]||(f[i]=[])).push({fn:s,ctx:a}),this},once:function(i,s,a){var f=this;function c(){f.off(i,c),s.apply(a,arguments)}return c._=s,this.on(i,c,a)},emit:function(i){var s=[].slice.call(arguments,1),a=((this.e||(this.e={}))[i]||[]).slice(),f=0,c=a.length;for(f;f{"use strict";/*! + * escape-html + * Copyright(c) 2012-2013 TJ Holowaychuk + * Copyright(c) 2015 Andreas Lubbe + * Copyright(c) 2015 Tiancheng "Timothy" Gu + * MIT Licensed + */var rs=/["'&<>]/;Yo.exports=ns;function ns(e){var t=""+e,r=rs.exec(t);if(!r)return t;var n,o="",i=0,s=0;for(i=r.index;i0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function W(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function D(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n1||a(m,d)})})}function a(m,d){try{f(n[m](d))}catch(h){p(i[0][3],h)}}function f(m){m.value instanceof et?Promise.resolve(m.value.v).then(c,u):p(i[0][2],m)}function c(m){a("next",m)}function u(m){a("throw",m)}function p(m,d){m(d),i.shift(),i.length&&a(i[0][0],i[0][1])}}function pn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Ee=="function"?Ee(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,f){s=e[i](s),o(a,f,s.done,s.value)})}}function o(i,s,a,f){Promise.resolve(f).then(function(c){i({value:c,done:a})},s)}}function C(e){return typeof e=="function"}function at(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var It=at(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: +`+r.map(function(n,o){return o+1+") "+n.toString()}).join(` + `):"",this.name="UnsubscriptionError",this.errors=r}});function Ve(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ie=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Ee(s),f=a.next();!f.done;f=a.next()){var c=f.value;c.remove(this)}}catch(v){t={error:v}}finally{try{f&&!f.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(C(u))try{u()}catch(v){i=v instanceof It?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var m=Ee(p),d=m.next();!d.done;d=m.next()){var h=d.value;try{ln(h)}catch(v){i=i!=null?i:[],v instanceof It?i=D(D([],W(i)),W(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{d&&!d.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}}if(i)throw new It(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ln(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Ve(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ve(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Sr=Ie.EMPTY;function jt(e){return e instanceof Ie||e&&"closed"in e&&C(e.remove)&&C(e.add)&&C(e.unsubscribe)}function ln(e){C(e)?e():e.unsubscribe()}var Le={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var st={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Sr:(this.currentObservers=null,a.push(r),new Ie(function(){n.currentObservers=null,Ve(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new F;return r.source=this,r},t.create=function(r,n){return new xn(r,n)},t}(F);var xn=function(e){ie(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Sr},t}(x);var Et={now:function(){return(Et.delegate||Date).now()},delegate:void 0};var wt=function(e){ie(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Et);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,f=n._windowTime;o||(i.push(r),!s&&i.push(a.now()+f)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),f=0;f0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=ut.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var s=r.actions;n!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==n&&(ut.cancelAnimationFrame(n),r._scheduled=void 0)},t}(Wt);var Sn=function(e){ie(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t}(Dt);var Oe=new Sn(wn);var M=new F(function(e){return e.complete()});function Vt(e){return e&&C(e.schedule)}function Cr(e){return e[e.length-1]}function Ye(e){return C(Cr(e))?e.pop():void 0}function Te(e){return Vt(Cr(e))?e.pop():void 0}function zt(e,t){return typeof Cr(e)=="number"?e.pop():t}var pt=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Nt(e){return C(e==null?void 0:e.then)}function qt(e){return C(e[ft])}function Kt(e){return Symbol.asyncIterator&&C(e==null?void 0:e[Symbol.asyncIterator])}function Qt(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function zi(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Yt=zi();function Gt(e){return C(e==null?void 0:e[Yt])}function Bt(e){return un(this,arguments,function(){var r,n,o,i;return $t(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,et(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,et(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,et(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Jt(e){return C(e==null?void 0:e.getReader)}function U(e){if(e instanceof F)return e;if(e!=null){if(qt(e))return Ni(e);if(pt(e))return qi(e);if(Nt(e))return Ki(e);if(Kt(e))return On(e);if(Gt(e))return Qi(e);if(Jt(e))return Yi(e)}throw Qt(e)}function Ni(e){return new F(function(t){var r=e[ft]();if(C(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function qi(e){return new F(function(t){for(var r=0;r=2;return function(n){return n.pipe(e?A(function(o,i){return e(o,i,n)}):de,ge(1),r?He(t):Dn(function(){return new Zt}))}}function Vn(){for(var e=[],t=0;t=2,!0))}function pe(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new x}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,s=i===void 0?!0:i,a=e.resetOnRefCountZero,f=a===void 0?!0:a;return function(c){var u,p,m,d=0,h=!1,v=!1,Y=function(){p==null||p.unsubscribe(),p=void 0},B=function(){Y(),u=m=void 0,h=v=!1},N=function(){var O=u;B(),O==null||O.unsubscribe()};return y(function(O,Qe){d++,!v&&!h&&Y();var De=m=m!=null?m:r();Qe.add(function(){d--,d===0&&!v&&!h&&(p=$r(N,f))}),De.subscribe(Qe),!u&&d>0&&(u=new rt({next:function($e){return De.next($e)},error:function($e){v=!0,Y(),p=$r(B,o,$e),De.error($e)},complete:function(){h=!0,Y(),p=$r(B,s),De.complete()}}),U(O).subscribe(u))})(c)}}function $r(e,t){for(var r=[],n=2;ne.next(document)),e}function K(e,t=document){return Array.from(t.querySelectorAll(e))}function z(e,t=document){let r=ce(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function ce(e,t=document){return t.querySelector(e)||void 0}function _e(){return document.activeElement instanceof HTMLElement&&document.activeElement||void 0}function tr(e){return L(b(document.body,"focusin"),b(document.body,"focusout")).pipe(ke(1),l(()=>{let t=_e();return typeof t!="undefined"?e.contains(t):!1}),V(e===_e()),J())}function Xe(e){return{x:e.offsetLeft,y:e.offsetTop}}function Kn(e){return L(b(window,"load"),b(window,"resize")).pipe(Ce(0,Oe),l(()=>Xe(e)),V(Xe(e)))}function rr(e){return{x:e.scrollLeft,y:e.scrollTop}}function dt(e){return L(b(e,"scroll"),b(window,"resize")).pipe(Ce(0,Oe),l(()=>rr(e)),V(rr(e)))}var Yn=function(){if(typeof Map!="undefined")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o0},e.prototype.connect_=function(){!Wr||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),va?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Wr||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=ba.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Gn=function(e,t){for(var r=0,n=Object.keys(t);r0},e}(),Jn=typeof WeakMap!="undefined"?new WeakMap:new Yn,Xn=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=ga.getInstance(),n=new La(t,r,this);Jn.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Xn.prototype[e]=function(){var t;return(t=Jn.get(this))[e].apply(t,arguments)}});var Aa=function(){return typeof nr.ResizeObserver!="undefined"?nr.ResizeObserver:Xn}(),Zn=Aa;var eo=new x,Ca=$(()=>k(new Zn(e=>{for(let t of e)eo.next(t)}))).pipe(g(e=>L(ze,k(e)).pipe(R(()=>e.disconnect()))),X(1));function he(e){return{width:e.offsetWidth,height:e.offsetHeight}}function ye(e){return Ca.pipe(S(t=>t.observe(e)),g(t=>eo.pipe(A(({target:r})=>r===e),R(()=>t.unobserve(e)),l(()=>he(e)))),V(he(e)))}function bt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function ar(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}var to=new x,Ra=$(()=>k(new IntersectionObserver(e=>{for(let t of e)to.next(t)},{threshold:0}))).pipe(g(e=>L(ze,k(e)).pipe(R(()=>e.disconnect()))),X(1));function sr(e){return Ra.pipe(S(t=>t.observe(e)),g(t=>to.pipe(A(({target:r})=>r===e),R(()=>t.unobserve(e)),l(({isIntersecting:r})=>r))))}function ro(e,t=16){return dt(e).pipe(l(({y:r})=>{let n=he(e),o=bt(e);return r>=o.height-n.height-t}),J())}var cr={drawer:z("[data-md-toggle=drawer]"),search:z("[data-md-toggle=search]")};function no(e){return cr[e].checked}function Ke(e,t){cr[e].checked!==t&&cr[e].click()}function Ue(e){let t=cr[e];return b(t,"change").pipe(l(()=>t.checked),V(t.checked))}function ka(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function Ha(){return L(b(window,"compositionstart").pipe(l(()=>!0)),b(window,"compositionend").pipe(l(()=>!1))).pipe(V(!1))}function oo(){let e=b(window,"keydown").pipe(A(t=>!(t.metaKey||t.ctrlKey)),l(t=>({mode:no("search")?"search":"global",type:t.key,claim(){t.preventDefault(),t.stopPropagation()}})),A(({mode:t,type:r})=>{if(t==="global"){let n=_e();if(typeof n!="undefined")return!ka(n,r)}return!0}),pe());return Ha().pipe(g(t=>t?M:e))}function le(){return new URL(location.href)}function ot(e){location.href=e.href}function io(){return new x}function ao(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)ao(e,r)}function _(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)ao(n,o);return n}function fr(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function so(){return location.hash.substring(1)}function Dr(e){let t=_("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Pa(e){return L(b(window,"hashchange"),e).pipe(l(so),V(so()),A(t=>t.length>0),X(1))}function co(e){return Pa(e).pipe(l(t=>ce(`[id="${t}"]`)),A(t=>typeof t!="undefined"))}function Vr(e){let t=matchMedia(e);return er(r=>t.addListener(()=>r(t.matches))).pipe(V(t.matches))}function fo(){let e=matchMedia("print");return L(b(window,"beforeprint").pipe(l(()=>!0)),b(window,"afterprint").pipe(l(()=>!1))).pipe(V(e.matches))}function zr(e,t){return e.pipe(g(r=>r?t():M))}function ur(e,t={credentials:"same-origin"}){return ue(fetch(`${e}`,t)).pipe(fe(()=>M),g(r=>r.status!==200?Ot(()=>new Error(r.statusText)):k(r)))}function We(e,t){return ur(e,t).pipe(g(r=>r.json()),X(1))}function uo(e,t){let r=new DOMParser;return ur(e,t).pipe(g(n=>n.text()),l(n=>r.parseFromString(n,"text/xml")),X(1))}function pr(e){let t=_("script",{src:e});return $(()=>(document.head.appendChild(t),L(b(t,"load"),b(t,"error").pipe(g(()=>Ot(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(l(()=>{}),R(()=>document.head.removeChild(t)),ge(1))))}function po(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function lo(){return L(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(l(po),V(po()))}function mo(){return{width:innerWidth,height:innerHeight}}function ho(){return b(window,"resize",{passive:!0}).pipe(l(mo),V(mo()))}function bo(){return G([lo(),ho()]).pipe(l(([e,t])=>({offset:e,size:t})),X(1))}function lr(e,{viewport$:t,header$:r}){let n=t.pipe(ee("size")),o=G([n,r]).pipe(l(()=>Xe(e)));return G([r,t,o]).pipe(l(([{height:i},{offset:s,size:a},{x:f,y:c}])=>({offset:{x:s.x-f,y:s.y-c+i},size:a})))}(()=>{function e(n,o){parent.postMessage(n,o||"*")}function t(...n){return n.reduce((o,i)=>o.then(()=>new Promise(s=>{let a=document.createElement("script");a.src=i,a.onload=s,document.body.appendChild(a)})),Promise.resolve())}var r=class extends EventTarget{constructor(n){super(),this.url=n,this.m=i=>{i.source===this.w&&(this.dispatchEvent(new MessageEvent("message",{data:i.data})),this.onmessage&&this.onmessage(i))},this.e=(i,s,a,f,c)=>{if(s===`${this.url}`){let u=new ErrorEvent("error",{message:i,filename:s,lineno:a,colno:f,error:c});this.dispatchEvent(u),this.onerror&&this.onerror(u)}};let o=document.createElement("iframe");o.hidden=!0,document.body.appendChild(this.iframe=o),this.w.document.open(),this.w.document.write(` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + +
+
+
+ + + + + + + +
+
+ + + + + + + + + + +

Access Domino REST API

+

About this procedure

+

The procedure guides you in accessing Domino REST API Admin UI to add and configure a schema, add a scope, and add an application.

+

Before you start

+

You must complete the Volt MX Go installation.

+

Procedure

+

For Domino REST API installed via an installer

+
    +
  • Check how to login to Domino REST API Admin UI.
  • +
  • Use your Domino server administrator username and password to log in.
  • +
+

For Domino REST API installed as part of the installation on a development or test only environment

+
    +
  1. Open http://drapi.mymxgo.com/admin/ui or your provided Domino REST API hostname concatenated with /admin/ui in your browser. 
  2. +
  3. +

    Enter the following credentials in the login page:

    +
      +
    • username: mxgo admin
    • +
    • password: password
    • +
    +
    +

    Note

    +

    If you updated the administrator's first name, last name, and password in the values.yaml file in the Download the Domino REST API Helm chart procedure, use the updated values for the username and password.

    +
    +
  4. +
  5. +

    Click Log in.

    +
  6. +
+

Expected result

+

A successful login leads you to the Domino REST API landing page. For details on adding and configuring a schema, adding a scope and an application, see Using Admin UI in the Domino REST API documentation.

+ +
+
+ + + Last update: + July 21, 2023 + + + +
+ + + + + + + + +
+
+ + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/howto/configrosetta.html b/howto/configrosetta.html new file mode 100644 index 00000000..68ce7aec --- /dev/null +++ b/howto/configrosetta.html @@ -0,0 +1,1594 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Configure VoltFormula's Rosetta API Options - HCL Volt MX Go Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + +
+
+
+ + + +
+
+
+ + + + + +
+
+
+ + + +
+
+ + + + + + + + + + +

Configure VoltFormula's Rosetta API Options

+

About this procedure

+

This procedure describes how to configure the Rosetta API based on what you need when using the Rosetta formula.

+
    +
  • Register Custom API
  • +
  • Preferred API implementation
  • +
  • Typeahead Intellisense
  • +
  • Converter Configuration
  • +
  • Use Native vs API Conversion
  • +
+

To configure settings in Rosetta API

+
    +
  1. +

    Click the Project Settings icon.

    +

    settings

    +
  2. +
  3. +

    In the Project Setting window, click the Rosetta tab

    +
    +

    Tips

    +

    When you hover over the info tooltip icon beside each of the label or textbox, you can see the description of each function.

    +
    +

    settings

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Rosetta areaRosetta area sectionsDescription
    API ConfigurationAllows you to configure options specific to the APIs' implementation and execution.
    Register Custom APIAllows you to upload a file with custom APIs. Refer to the API reference documentation under the rosetta-api module for method registerAPI for more details on expected file format and parameters.
    Preferred API implementationAllows you to specify whether to execute the Notes Formula or the OpenFormula implementation when calling an API method, which has an existing implementation in either formula language. Example, @Abs() and =ABS() are encapsulated by Rosettas abs() method. Selecting Notes option makes Rosetta call the Notes implementation. Usually, either implementation behaves the same. But in other cases, there may be differences in parameters, execution, or returned results. For example, most Notes formula functions allow lists to be passed in as arguments while OpenFormula allows lists as ranges for only a number of methods. Refer to the API reference documentation for details on each API.
    Typeahead IntellisenseAllows you to include names of formulas that won't be implemented and not yet implemented in the formula list IntelliSense. When no plans to implement items is selected, the names of the formulas that won't be implemented are shown as strikethrough text. If not yet implemented items is selected, the shown names of the formulas not yet implemented are greyed-out.
    Converter ConfigurationAllows you to configure options related to how formulas are converted into their corresponding Rosetta-enabled JavaScript.
    Passthrough unrecognized formula language into JavasSript conversion resultsAllows you to specify whether the converter allows unrecognized formula code to be part of the javascript conversion results without any massaging, or if it should throw an error when encountering unrecognizable formula code. This allows greater flexibility but also exposes the API to injection of code. Use with care.
    Use Native vs API ConversionAllows you to specify whether the converter uses native JavaScript or API calls for methods where a native JavaScript function exists. For example, convert @If( ) into JavaScript native if( ) or call the API rosettajs.Logical.if( ). Sometimes, it makes sense and produces cleaner code to select "convert into native JavaScript" than using the API. Other times, you may want to go through the API call itself to allow for additional checks and/or handle the parameters differently.
    VersionIndicates the SDK plugin,API,Converter, and Prettifier versions.
    +
  4. +
  5. +

    Click Done.

    +
  6. +
+ +
+
+ + + Last update: + July 21, 2023 + + + +
+ + + + + + + + +
+
+ + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/howto/connectdominofromnotes.html b/howto/connectdominofromnotes.html new file mode 100644 index 00000000..a0faa59e --- /dev/null +++ b/howto/connectdominofromnotes.html @@ -0,0 +1,1626 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Connect to Domino server from your Notes client - HCL Volt MX Go Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + +
+
+
+ + + +
+
+
+ + + + + +
+
+
+ + + +
+
+ + + + + + + + + + +

Connect to Domino server from your Notes client

+

About this procedure

+

The procedure guides you in connecting to the Domino server from your Notes client. If you installed Domino using the MXGO Domino Helm chart you should configure a Server Connection document to enable connecting to Domino from your Notes client. Follow the steps below.

+

Before you start

+

Make sure that your /etc/hosts file has the preview hostnames. You will need these same entries on any machine you want to connect from, such as your dev laptop. For more information, check the details on adding preview hostnames.

+

Procedure

+
+

Note

+

The procedure is based on using HCL Notes v12.

+
+
    +
  1. +

    Run the following command to copy the admin.id from the domino-drapi pod:

    +
    kubectl cp -n mxgo -c restapi-log $POD_NAME:/local/notesdata/admin.id ./k8s-notes-admin.id
    +
    +
    +

    Tip

    +

    The $POD_NAME in the command represents the name of the Domino pod. To get the name of the Domino pod, run the command kubectl get pods -n mxgo. In the following example result, the highlighted text corresponds to the Domino pod name.

    +

    Domino pod name

    +

    So using the example result, the command above should look like:

    +

    kubectl cp -n mxgo -c restapi-log domino-drapi-6989796bdc-nnmdg:/local/notesdata/admin.id ./k8s-notes-admin.id

    +
    +

    If necessary, copy the k8s-notes-admin.id file to your laptop.

    +
  2. +
  3. +

    Switch your ID within the Notes client.

    +
      +
    1. On your Notes client, select FileSecuritySwitch ID.
    2. +
    3. +

      On the Choose User ID to Switch To dialog, search and select the k8s-notes-admin.id file, and then click Open.

      +
      +

      Note

      +

      The default password is password.

      +
      +
    4. +
    +
  4. +
  5. +

    Specify your names.nsf file within the Notes client.

    +
      +
    1. On the Notes client, select FileOpenHCL Notes Application.
    2. +
    3. On the Open Application dialog, search and select the names.nsf file, and then click Open.
    4. +
    +
  6. +
  7. +

    Create a new server connection.

    +
      +
    1. On the Notes client, select AdvancedNewServer Connection. The Server Connection page opens.
    2. +
    3. On the Basics tab, enter drapi in the Server name text box and then select the TCPIP checkbox for Use LAN port.
    4. +
    5. +

      Click the Advanced tab, and then enter drapi.mymxgo.com for your server in the Destination server address text box.

      +
    6. +
    7. +

      (Optional) If you configured the value of the exposeNRPC parameter to be hostPort during the DRAPI Helm installation, no further configuration is required and you can proceed to Save & Close. If instead you specified nodePort:

      +
        +
      1. +

        Run the following kubectl command to get the port number of the port picked by Kubernetes for the nodePort:

        +
        kubectl get services domino-drapi-nrpc-external -n mxgo
        +
        +

        The output should be similar to the following:

        +
        kubectl get services domino-drapi-nrpc-external -n mxgo
        +NAME                         TYPE       CLUSTER-IP     EXTERNAL-IP   PORT(S)
        +domino-drapi-nrpc-external   NodePort   10.43.84.236   <none>        1352:31657/TCP
        +
        +
      2. +
      3. +

        Get the port number from the output and append it to the host name in the Destination server address text box.

        +

        Using the output example, the PORT(S) column show that port 1352 is being exposed on port 31657. Append :31657 to the host name in the Destination server address text box making a final value of drapi.mymxgo.com:31657.

        +
      4. +
      +
    8. +
    9. +

      Click Save & Close.

      +
    10. +
    +
    +

    Note

    +

    drapi is the abbreviation for Domino REST API.

    +
    +
  8. +
+

Expected result

+

In your Notes client, you should now be able to select FileOpenHCL Notes Application, specify drapi as the server name, and connect to your new Domino server.

+ +
+
+ + + Last update: + July 21, 2023 + + + +
+ + + + + + + + +
+
+ + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/howto/drapiingress.html b/howto/drapiingress.html new file mode 100644 index 00000000..fac287d4 --- /dev/null +++ b/howto/drapiingress.html @@ -0,0 +1,1840 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Configure Kubernetes Ingress for Domino REST API - HCL Volt MX Go Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + +
+
+
+ + + + + + + +
+
+ + + + + + + + + + +

Configure Kubernetes Ingress for Domino REST API

+ + +

About this procedure

+

The procedure guides you in configuring Kubernetes Ingress for Domino REST API. Ingress provides and manages external access to the services in your Kubernetes cluster. It's required to enable browsers to access the applications and back-end services to communicate with each other.

+

Before you start

+

Familiarize yourself with the various properties and parameters related to Kubernetes Ingress. Expand the following to learn more:

+
+Kubernetes Ingress details +
    +
  • +

    ingress.enabled: Set to true to enable Ingress. Ingress must be enabled for Domino REST API to function properly. Kindly note that there are certain conditions where you may want to temporarily disable Ingress.

    +
  • +
  • +

    ingress.className: This property sets the class name on the Ingress object. The default is empty string, which enables the processing of Ingress objects by your cluster default Ingress controller. If your cluster does not have a default Ingress controller or if you want to override that, set the class name. Common values you might use include "nginx", "traefik", and "openshift-default". When utilizing Azure Application Gateway in AKS, specify "azure/application-gateway".

    +
  • +
  • +

    ingress.drapiDnsName: The DNS host name that users will use to access the Domino REST API. The default setting is drapi.mymxgo.com.

    +
  • +
  • +

    ingress.drapiManagementDnsName: The DNS host name that administrators will use to access the Domino REST API. The default setting is drapi-management.mymxgo.com.

    +
  • +
  • +

    ingress.protocol: The communication protocol for accessing Volt MX Foundry. Its value can be either http or https. This should reflect the type of traffic you want the Ingress or Load Balancer to accept. If ingress.tls is enabled, this setting must be https.

    +
  • +
  • +

    ingress.tls: Use this property to configure Ingress with either a Cluster or a Custom SSL certificate.

    +
  • +
  • +

    ingress.tls.enabled: Set to true to configure Ingress to use the Cluster SSL Certificate or the specified Custom SSL certificate.

    +
  • +
  • +

    ingress.tls.drapiCustomCert: Use to specify a Custom SSL certificate for Domino REST API. If ingress.tls.drapiCustomCert.cert and ingress.tls.drapiCustomCert.key are not set, the Cluster SSL certificate will be used for TLS.

    +
  • +
  • +

    ingress.tls.drapiCustomCert.cert: The file name for the custom certificate. Place your SSL certificate file in the top level direct drapi directory (where values.yaml is located). The value of this property should be a file path of the form my-drapi-custom-cert.cert where my-drapi-custom-cert.cert is the name of your certificate file. This certificate must be in DER format as per Section 5.1 of RFC 7468.

    +
  • +
  • +

    ingress.tls.drapiCustomCert.key: The file name for the custom key. Place your SSL certificate key file in the top level direct 'drapi' directory (where values.yaml is located). The value of this property should be of the form my-drapi-custom-cert.key where my-drapi-custom-cert.key is the name of your private key file. The key file must be PKCS #8 in DER format Section 11 of RFC 7468.

    +
  • +
  • +

    ingress.tls.drapiManagementCustomCert: Use to specify a Custom SSL certificate for Domino REST API. If ingress.tls.drapiCustomCert.cert and ingress.tls.drapiCustomCert.key are not set, then the Cluster SSL certificate will be used for TLS.

    +
  • +
  • +

    ingress.tls.drapiManagementCustomCert.cert: The file name for the custom certificate. Place your SSL certificate file in the top level direct drapi directory (where values.yaml is located). The value of this property should be a file path of the form my-drapi-mgmt-custom-cert.cert where my-drapi-mgmtcustom-cert.cert is the name of your certificate file. This certificate must be in DER format as per Section 5.1 of RFC 7468.

    +
  • +
  • +

    ingress.tls.drapiManagementCustomCert.key: The file name for the custom key. Place your SSL certificate key file in the top level direct 'drapi' directory (where values.yaml is located). The value of this property should be of the form my-drapi-mgmt-custom-cert.key where my-drapi-mgmt-custom-cert.key is the name of your private key file. The key file must be PKCS #8 in DER format Section 11 of RFC 7468.

    +
  • +
  • +

    ingress.annotations: Allows you to specify additional annotations that will be added to every ingress object. Add one annotation per line. Each annotation should be indented 2 spaces and of the format annotationName: value. When rendered, your annotation value will automatically be quoted.

    +
  • +
+
+

Additional information

+

You can configure Kubernetes Ingress to accept connections over HTTP or HTTPS. HTTP isn't secure but works without any extra configuration. It's recommended to use HTTPS for most deployments.

+
+

Note

+

You can't easily change the deployment domain name once installed, this includes changing from HTTP to HTTPS. For more information, see How to change Hostname/IP address and port details of Volt MX Foundry Server?.

+
+

One approach to enable HTTPS is to use a self-signed SSL certificate, which avoids purchasing your own certificate from a Certificate Authority (CA). However, since Foundry makes back-end server to server requests between applications, there are more steps to enable Foundry to trust the secured communication channel when utilizing a self-signed certificate.

+

If you configure your Kubernetes Ingress to use a self-signed SSL certificate or an SSL certificate from your enterprise's own Certificate Authority that's not within a trusted root certification path, or if you use the cluster default cert created from a self-signed CA, you need to add the SSL certificate or CA certificate to the trust store used by Tomcat. Failure to do so results in runtime errors when Foundry components need to communicate with each other. For more information, see Certification Authority Trust Model.

+

Procedure

+
+

Note

+

In general, perform the following procedure before installing Foundry to enable secure HTTPS communication.

+
+

1. Obtain SSL Certificates

+

You can use any of the following options:

+ +

Create a self-signed certificate

+

The following procedure could be used to generate a self-signed certificate:

+
    +
  1. +

    Generate new self-signed certificates:

    +
    keytool -v -genkey -keyalg RSA -keystore drapi.keystore -alias drapi -ext SAN=dns:drapi.example.com -dname "cn=drapi.example.com" -storepass changeit -validity 365
    +
    +keytool -v -genkey -keyalg RSA -keystore drapi-management.keystore -alias drapi-management -ext SAN=dns:drapi-management.example.com -dname "cn=drapi-management.example.com" -storepass changeit -validity 365
    +
    +
    +

    Note

    +

    Make sure to replace drapi.example.com with your domain name. You can specify a wild card cert like *.example.com that would enable using a DNS name like drapi.example.com or mydrapi.example.com without changing the certificate. Likewise, do the same for drapi-management.example.com. These commands create new keystores called drapi.keystore and drapi-management.com with a single entry, each containing a new self-signed certificate.

    +
    +
  2. +
  3. +

    Get the private keys from the respective keystores:

    +
    openssl pkcs12 -in drapi.keystore -nodes -nocerts -out drapi-server.key
    +openssl pkcs12 -in drapi-management.keystore -nodes -nocerts -out drapi-management-server.key
    +
    +
  4. +
  5. +

    Get the certificates from the respective keystores:

    +
    openssl pkcs12 -in drapi.keystore -nokeys -out drapi-server.crt
    +openssl pkcs12 -in drapi-management.keystore -nokeys -out drapi-management-server.crt
    +
    +
  6. +
  7. +

    Get the PEM portion from the certificate for Domino REST API only:

    +
    cat drapi-server.crt | sed -ne '/-BEGIN CERTIFICATE/,/END CERTIFICATE/p' > ./drapi-server.pem
    +
    +
  8. +
  9. +

    Proceed to import drapi-server.pem into the trust store.

    +
  10. +
+

Obtain default Cluster Certificate

+
    +
  1. +

    Obtain the cluster's SSL certificate by running the openssl command:

    +
    openssl s_client -connect my-openshift-ingress:443 -servername drapi.example.com 2>/dev/null </dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ~/drapi-server.pem
    +
    +
    +

    Note

    +

    The parameter following -connect must be a DNS name or IP address that resolves to your OpenShift ingress. The -servername parameter specifies the DNS name you use to access your foundry deployment. This should match the value you specified for serverDomainName in values.yaml. The DNS names could be the same as long as they resolve to the IP address of your Kubernetes load balancer in front of Ingress or Ingress itself.

    +
    +
  2. +
  3. +

    Proceed to Import the Certificate into the truststore with keytool.

    +
  4. +
+

2. Copy your SSL certificates and keys into the Domino REST API top level directory

+
+

Tip

+

Helm creates a Kubernetes secret with your SSL certificate details in it for use by Ingress.

+
+
    +
  1. +

    Copy the SSL certificate and key files into the top level direct drapi directory where values.yaml is located by running the following commands. It's assumed that you will run the commands in the directory where you unzipped the Helm charts.

    +
    cp ~/drapi-server.crt   .
    +cp ~/drapi-management-server.crt   .
    +cp ~/drapi-server.key   .
    +cp ~/drapi-management-server.key   .
    +
    +
  2. +
  3. +

    Update parameters in values.yaml with these file names.

    +
  4. +
+

3. Import certificate into the truststore with keytool

+
+

Important

+

If your SSL certificate is issued by a trusted root CA, you can skip this step.

+
+
    +
  • Use the Java utility keytool to import the certificate by running the following command. It's assumed that you will run the command from the root of the directory where you unzipped the Helm charts.
  • +
+
# Make foundry aware of the drapi cert:
+keytool -import -alias drapi2 -file ./drapi-server.pem -keypass changeit -storepass changeit -keystore ../foundry/voltmx-foundry/certs/cacerts
+
+
+

Note

+
    +
  • -alias drapi2 is the alias for the new certificate. You can use any alias but we recommend foundry.
  • +
  • -file ./drapi-server.pem is the file path to your certificate. Use the proper path for your circumstances.
  • +
  • -keystore ../foundry/voltmx-foundry/certs/cacerts is the location of the truststore your certificate will be imported to and later use by Tomcat. This file path shouldn't be changed.
  • +
  • changeit is the default password and shouldn't be changed.
  • +
+
+

For more information about keytool, see Java Keytool documentation.

+

4. Update the Helm values.yaml

+
    +
  • +

    Update your values.yaml with the following configuration details to properly configure SSL.

    +

    Check the notes for specific use cases and refer to Kubernetes Ingress details in Before you start for more details on each parameter.

    +
  • +
+
ingress.enabled: true
+ingress.drapiDnsName: drapi.example.com
+ingress.drapiManagementDnsName: drapi-management.example.com
+ingress.protocol: "https"
+ingress.tls.enabled: true
+ingress.tls.drapiCustomCert.cert: “drapi-server.crt”
+ingress.tls.drapiCustomCert.key: “drapi-server.key”
+ingress.tls.drapiManagementCustomCert.cert: “drapi-management-server.crt”
+ingress.tls.drapiManagementCustomCert.key: “drapi-management-server.key”
+
+
+

Note

+
    +
  • The path for the customCert properties is relative to the apps directory. It should always be certs/ followed by your certificate or key file name.
  • +
  • The drapiCustomCert.cert, drapiCustomCert.key, drapiManagementCustomCert.cert, and drapiManagementCustomCert.key details can be omitted when using the default cluster certificate. If you go with this approach, make sure that the DNS hostname which you will access the deployment with matches the host name details in the certificate. Otherwise, the backend communication will fail because the host name doesn't match.
  • +
+
+

Return to Deploy Domino REST API

+ +
+
+ + + Last update: + July 21, 2023 + + + +
+ + + + + + + + +
+
+ + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/howto/foundryadminaccount.html b/howto/foundryadminaccount.html new file mode 100644 index 00000000..22f2d7f4 --- /dev/null +++ b/howto/foundryadminaccount.html @@ -0,0 +1,1618 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Create a Foundry administrator account - HCL Volt MX Go Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + +
+
+
+ + + + + + + +
+
+ + + + + + + + + + +

Create a Foundry administrator account

+

About this procedure

+

The procedure guides you in creating an administrator account to log in to Foundry.

+

Before you start

+

You must complete the Volt MX Go installation.

+

Procedure

+

For Volt MX Go Foundry installed via installers

+ +

For Volt MX Go Foundry installed as part of the installation on a development or test only environment

+
    +
  1. +

    Open http://foundry.mymxgo.com/mfconsole/ or your provided Foundry hostname concatenated with /mfconsole/ in your browser. The Welcome to Volt MX Foundry setup page opens.

    +
    +

    Note

    +

    The Identity Service URL text box is already populated with the Identity Service URL. In case it's empty, enter http://foundry.mymxgo.com/authService or your provided Foundry hostname concatenated with /authService.

    +
    +
  2. +
  3. +

    Under Admin Details:

    +
      +
    1. Enter your first name in the First Name text box.
    2. +
    3. Enter your last name in the Last Name text box.
    4. +
    5. Enter your email address in the Email text box.
    6. +
    7. Enter your password in the Enter password and Re-enter password text boxes.
    8. +
    +
  4. +
  5. +

    Click Setup.

    +
  6. +
+

Welcome to Volt MX Foundry setup

+

Expected result

+

Once the details are validated for one-time configuration, the system associates your credentials with Volt MX Foundry identity services and authorization services, and then opens the Sign in to your account page.

+ +
+
+ + + Last update: + July 21, 2023 + + + +
+ + + + + + + + +
+
+ + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/howto/index.html b/howto/index.html new file mode 100644 index 00000000..eebcc38f --- /dev/null +++ b/howto/index.html @@ -0,0 +1,1457 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + How-to guides - HCL Volt MX Go Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + +
+
+
+ + + +
+
+
+ + + + + +
+
+
+ + + +
+ +
+ + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/howto/k3suninstall.html b/howto/k3suninstall.html new file mode 100644 index 00000000..9091a9e8 --- /dev/null +++ b/howto/k3suninstall.html @@ -0,0 +1,1525 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Uninstall K3s - HCL Volt MX Go Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + +
+
+
+ + + +
+
+
+ + + + + +
+
+
+ + + +
+
+ + + + + + + + + + +

Uninstall K3s

+

About this procedure

+

The procedure guides you in uninstalling K3s in case you want to start over with the K3s installation or you want to completely remove K3s.

+

Procedure

+
    +
  • Run the following command:
  • +
+
sudo k3s-uninstall.sh
+
+

For more information, see Uninstalling K3s.

+ +
+
+ + + Last update: + July 21, 2023 + + + +
+ + + + + + + + +
+
+ + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/howto/logginglevel.html b/howto/logginglevel.html new file mode 100644 index 00000000..5477b8f6 --- /dev/null +++ b/howto/logginglevel.html @@ -0,0 +1,1614 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Set logging level - HCL Volt MX Go Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + +
+
+
+ + + +
+
+
+ + + + + +
+
+
+ + + +
+
+ + + + + + + + + + +

Set logging level

+

About this procedure

+

This procedure guides you on how to check and set the logging level, and access the log files. For more information, see Logging levels.

+
+

Note

+

The logging level in Volt MX Go Iris only affects the logs for importing a Domino application at the moment.

+
+

Procedure

+

To check the logging level

+
    +
  • +

    Go to HelpLogging Level. The current logging level is indicated.

    +
    +

    Note

    +

    The default level is Trace.

    +
    +
  • +
+

To set the logging level

+
    +
  • +

    Go to HelpLogging Level, and then choose a logging level based on the level of details you want to find in the logs. To learn the description of each logging level, see Logging levels.

    +
    +

    Note

    +

    You must restart Volt MX GO Iris after setting a new logging level.

    +
    +
  • +
+

To view the logs

+
    +
  1. +

    From your user directory, go to Irisirisdatalogs.

    +
      +
    • For Windows:
    • +
    +

    +
      +
    • For Mac:
    • +
    +

    +
  2. +
  3. +

    Open the iris_development.log file to view the logs.

    +
  4. +
+ +
+
+ + + Last update: + July 21, 2023 + + + +
+ + + + + + + + +
+
+ + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/howto/rancheruninstall.html b/howto/rancheruninstall.html new file mode 100644 index 00000000..fec7d836 --- /dev/null +++ b/howto/rancheruninstall.html @@ -0,0 +1,1527 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Uninstall Rancher Desktop on Windows - HCL Volt MX Go Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + +
+
+
+ + + +
+
+
+ + + + + +
+
+
+ + + +
+
+ + + + + + + + + + +

Uninstall Rancher Desktop on Windows

+

About this procedure

+

The procedure guides you in uninstalling Rancher Desktop in case you want to start over with the installation or you want to completely remove Rancher Desktop.

+

Procedure

+
    +
  1. From the taskbar, click the Start menu.
  2. +
  3. Go to SettingsAppsApps & features.
  4. +
  5. Find and select the Rancher Desktop entry.
  6. +
  7. Click Uninstall and click it again when the confirmation appears.
  8. +
  9. Follow the prompts on the Rancher Desktop uninstaller to proceed.
  10. +
  11. Click Finish when complete.
  12. +
+ +
+
+ + + Last update: + July 21, 2023 + + + +
+ + + + + + + + +
+
+ + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/howto/uninstallfirsttouch.html b/howto/uninstallfirsttouch.html new file mode 100644 index 00000000..26b98eab --- /dev/null +++ b/howto/uninstallfirsttouch.html @@ -0,0 +1,1575 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Uninstall First Touch - HCL Volt MX Go Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + +
+
+
+ + + +
+
+
+ + + + + +
+
+
+ + + +
+
+ + + + + + + + + + +

Uninstall First Touch

+

About this procedure

+

The procedure guides you in uninstalling First Touch in case you want to start over with the First Touch installation or you want to completely remove First Touch.

+

Procedure

+
    +
  1. +

    On the Apps page of the Volt MX Foundry Console, click GET STARTED.

    +

    OR

    +

    Select VOLT MX GO First Touch from the side panel.

    +
  2. +
  3. +

    On the Welcome to Volt MX Go dialog, select Uninstall First Touch Recipes.

    +

    Welcome to Volt MX Go

    +
  4. +
  5. +

    Click Next. An uninstall progress dialog shows the status of the uninstallation subprocesses.

    +
    +

    Note

    +
      +
    • If the Domino REST API configuration can't be pulled from the object service or the object service has been unlinked or deleted, enter your Domino REST API details in the Uninstall First Touch dialog and click Next.
    • +
    • If another app is published to the environment created when First Touch was installed, the Progress dialog indicates that the environment isn't deleted as it's used by another app. However, the First Touch app is removed from the environment.
    • +
    +
    +
  6. +
  7. +

    After the completion of each uninstallation subprocess as indicated by a check icon, click OK to close the dialog.

    +

    First Touch uninstall dialog

    +
  8. +
+

Expected result

+
    +
  • +

    The First Touch app and the environment created when installing First Touch are deleted in Volt MX Foundry.

    +
    +

    Note

    +

    The environment isn't deleted during the uninstallation if another app is published to the environment.

    +
    +
  • +
  • +

    The schema, scope, and app related to the First Touch app are deleted from the Domino REST API.

    +
  • +
+
+

Important

+

If you uninstall First Touch and reinstall it again, ensure you clear your browser cache before launching the app.

+
+ +
+
+ + + Last update: + July 21, 2023 + + + +
+ + + + + + + + +
+
+ + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 00000000..21529208 --- /dev/null +++ b/index.html @@ -0,0 +1,1559 @@ + + + + + + + + + + + + + + + + + + + + + + + + Welcome - HCL Volt MX Go Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + + + + + + + + + +
+
+
+ + + + + +
+
+
+ + + +
+
+ + + + + + + + + + + + +

Welcome to Volt MX Go documentation

+

Volt MX Go modernizes and extends the value of your Domino applications with the market-leading, multi-experience platform Volt MX by:

+
    +
  • connecting Volt Foundry to your Domino applications
  • +
  • modernizing or creating new multi-experience applications in Volt Iris on your Domino back-end data and applications
  • +
  • expanding who can code applications built in Domino, allowing for app modernization or migration without requiring a complete rewrite of the code
  • +
  • importing existing Domino views, forms, and fields into Volt Foundry to get a head start on your Volt MX Go applications
  • +
+

To learn more, see Introducing Volt MX Go.

+
+

Get started

+ +
+

What's new

+

For the latest release information about Volt MX Go, see What's new.

+
+

How the documentation is organized

+

The Volt MX Go documentation is based on the Diátaxis framework, which organizes documentation into the following modes to address users' documentation needs at different times and in different circumstances. Below shows an overview that guides you on where to look for needed information:

+

Tutorials - Hands-on introduction to Volt MX Go

+

How-to guides - Practical step-by-step guides for performing tasks and operation

+

Topic guides - High-level discussion and explanation of key topics and concepts to give background information

+

References - Technical references and descriptions on using Volt MX Go

+ +
+
+ + + Last update: + July 21, 2023 + + + +
+ + + + + + + + + + +
+
+ + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/javadoc/API.js.html b/javadoc/API.js.html new file mode 100644 index 00000000..851df719 --- /dev/null +++ b/javadoc/API.js.html @@ -0,0 +1,421 @@ +Source: API.js
On this page

API.js

"use strict";
+/* eslint-disable complexity */
+/**
+ * @file Rosetta API
+ * @module rosetta-api
+ * @category API
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.getTernFileNames = exports.registerAPIs = exports.registerAPI = exports.isDefaultContextDb = exports.isDefaultContextLocal = exports.setDefaultContextAsDb = exports.setDefaultContextAsLocal = exports.getDefaultContext = exports.isDefaultFrameworkJS = exports.isDefaultFrameworkVoltMX = exports.setDefaultFrameworkAsJS = exports.setDefaultFrameworkAsVoltMX = exports.getDefaultFramework = exports.isDefaultOpenFormula = exports.isDefaultNotes = exports.setDefaultAPIAsOpenFormula = exports.setDefaultAPIAsNotes = exports.getDefaultAPI = exports._config = exports.build = exports.version = void 0;
+const tslib_1 = require("tslib");
+// set the API version as a rosettajs prop
+exports.version = require('../../package.json').version;
+exports.build = require('../../buildNumber.json').buildNumber;
+const converter = tslib_1.__importStar(require("@janus/rosetta-converters"));
+const extenderEvals = tslib_1.__importStar(require("./_extenderEvals"));
+exports._config = {
+    _notes: "notes",
+    _openFormula: "openformula",
+    _defaultAPI: "notes",
+    storage: {
+        _integration: "integration",
+        _object: "object",
+        _offline: "offline",
+        _defaultServiceType: "object"
+    },
+    framework: {
+        _voltmx: "vmx",
+        _javascript: "js",
+        default: "js"
+    },
+    context: {
+        local: "local",
+        db: "db",
+        default: "db"
+    }
+};
+/*------------------------------------------[  API implementation selection  ] */
+/**
+ * Set getDefaultAPI
+ * @returns {string} the default API currently set
+*/
+const getDefaultAPI = () => { return exports._config._defaultAPI; };
+exports.getDefaultAPI = getDefaultAPI;
+/**
+ * Set default API to Notes when an underlaying Open Formula API function with the same name exists.
+ * @returns {string} The default API
+ */
+function setDefaultAPIAsNotes() {
+    exports._config._defaultAPI = exports._config._notes;
+    return (0, exports.getDefaultAPI)();
+}
+exports.setDefaultAPIAsNotes = setDefaultAPIAsNotes;
+/**
+ * Set default API to Open Formula when an underlaying Notes API function with the same name exists.
+ * @returns {string} The default API
+ */
+function setDefaultAPIAsOpenFormula() {
+    exports._config._defaultAPI = exports._config._openFormula;
+    return (0, exports.getDefaultAPI)();
+}
+exports.setDefaultAPIAsOpenFormula = setDefaultAPIAsOpenFormula;
+/**
+ * Is default API Notes.
+ * @returns {boolean} True if the default API is set to Notes;
+ *     false otherwise
+ */
+function isDefaultNotes() { return (0, exports.getDefaultAPI)() === exports._config._notes; }
+exports.isDefaultNotes = isDefaultNotes;
+/**
+ * Is default API Open Formula.
+ * @returns {boolean} True if the default API is set to Open Formula
+ *     false otherwise
+ */
+function isDefaultOpenFormula() { return (0, exports.getDefaultAPI)() === exports._config._openFormula; }
+exports.isDefaultOpenFormula = isDefaultOpenFormula;
+/*------------------------------------------[  FRAMEWORK  ] */
+/**
+ * Get default framework
+ * @returns {string} default framework (JS or VMX)
+ */
+function getDefaultFramework() {
+    return exports._config.framework.default;
+}
+exports.getDefaultFramework = getDefaultFramework;
+/**
+ * Set default framework to voltmx
+ * @returns {string} The default framework
+ */
+function setDefaultFrameworkAsVoltMX() {
+    exports._config.framework.default = exports._config.framework._voltmx;
+    return getDefaultFramework();
+}
+exports.setDefaultFrameworkAsVoltMX = setDefaultFrameworkAsVoltMX;
+/**
+ * Set default framework to javascript
+ * @returns {string} The default framework
+ */
+function setDefaultFrameworkAsJS() {
+    exports._config.framework.default = exports._config.framework._javascript;
+    return getDefaultFramework();
+}
+exports.setDefaultFrameworkAsJS = setDefaultFrameworkAsJS;
+/**
+ * Is default framework Volt MX.
+ * @returns {boolean} True if the default framework is set to vmx;
+ *     false otherwise
+ */
+function isDefaultFrameworkVoltMX() { return getDefaultFramework() === exports._config.framework._voltmx; }
+exports.isDefaultFrameworkVoltMX = isDefaultFrameworkVoltMX;
+/**
+ * Is default framework Javascript.
+ * @returns {boolean} True if the default framework is set to js;
+ *     false otherwise
+ */
+function isDefaultFrameworkJS() { return getDefaultFramework() === exports._config.framework._javascript; }
+exports.isDefaultFrameworkJS = isDefaultFrameworkJS;
+/*------------------------------------------[  CONTEXT  ] */
+/**
+ * Get default context
+ * @returns {string} default context (Local or DB)
+ */
+function getDefaultContext() {
+    return exports._config.context.default;
+}
+exports.getDefaultContext = getDefaultContext;
+/**
+ * Set default context to local
+ * @returns {string} The default context
+ */
+function setDefaultContextAsLocal() {
+    exports._config.context.default = exports._config.context.local;
+    return getDefaultContext();
+}
+exports.setDefaultContextAsLocal = setDefaultContextAsLocal;
+/**
+ * Set default context to db
+ * @returns {string} The default context
+ */
+function setDefaultContextAsDb() {
+    exports._config.context.default = exports._config.context.db;
+    return getDefaultContext();
+}
+exports.setDefaultContextAsDb = setDefaultContextAsDb;
+/**
+ * Is default context local?
+ * @returns {boolean} true if the default context is set to local; false otherwise
+ */
+function isDefaultContextLocal() { return getDefaultContext() === exports._config.context.local; }
+exports.isDefaultContextLocal = isDefaultContextLocal;
+/**
+ * Is default context database?
+ * @returns {boolean} true if the default context is set to db; false otherwise
+ */
+function isDefaultContextDb() { return getDefaultContext() === exports._config.context.db; }
+exports.isDefaultContextDb = isDefaultContextDb;
+/*------------------------------------------[  EXTENSIONS  ] */
+/**
+ * Register an API by adding it as an object to the referential array of APIs
+ * Defines/redefines the Rosetta API library by creating/updating a node in the API object
+ * The API object may be redefined if when using the existing category, name, language combination
+ * If language param is supplied, the API node will also define the method at the formula language level and
+ * the main method will point to call the method inside the language object
+ *
+ * @param {Object} apiRef required. reference to the rosetta API object tree where to register the method.
+ * @param {Object} data required. object defining the extended API. object props as follows:
+ *   "name" : <String>  required. the API method name to register under rosetta
+ *   "cat"  : <String>  optional. the category name where the API name will be defined under. default: "Custom"
+ *   "lang" : <String>  optional. the formula language implementation layer to register the method under. default: undefined
+ *   "namef": <String>  optional. the method name to use in the formula lang implementations layer. default: name arg
+ *   "code" : <String|Function>  optional. a string with the formula to convert or a callback function. default: noop: () => {}
+ *
+ * @example
+ * // code as actual js arrow function object, default params for the rest
+ * // defines <rosettaObj>.Custom.hello = s => alert(`hello $(s)}`)
+ * registerAPI(
+ *   apiRef:rosettajs,
+ *   {
+ *     "name":"hello(s)",
+ *     "code": s => alert(`hello $(s)}`)
+ *   }
+ * );
+ *
+ * // code as actual js function object,
+ * // defines <rosettaObj>.Text.hello(args...) -> .Text._notes.Hello_Test(args...) = function(name) { return "hello " + name; }
+ * registerAPI(
+ *   apiRef:rosettajs,
+ *   {
+ *     "name": "hello(name)",
+ *     "cat": "Text",
+ *     "lang": "notes",
+ *     "namef": "Hello_Test",
+ *     "code": function(name) { return "hello " + name; }
+ *   }
+ * );
+ *
+ * // code as stringified js function body,
+ * // defines <rosettaObj>.Text.hellop(args...) -> .Text._notes.HelloPhone_Test(args...) = function(name,phone) { return `hello ${name}. phone is ${phone}` }
+ * registerAPI(
+ *   apiRef:rosettajs,
+ *   {
+ *     "name": "hellop(name,phone)",
+ *     "cat": "Text",
+ *     "lang": "notes",
+ *     "namef": "HelloPhone_Test",
+ *     "code": "{ return `hello ${name}. phone is ${phone}` }"
+ *   }
+ *
+ * // code as stringified notes formula code (gets auto-converted to rosettajs),
+ * // defines <rosettaObj>.Custom.myAbs -> .Custom._notes.myAbs(args...) = n => { return rosettajs.Math.abs(n)+10 }`)
+ * registerAPI(
+ *   apiRef:rosettajs,
+ *   {
+ *     "name":"myAbs(n)",
+ *     "code": "@Abs(n)+10;"
+ *   }
+ * );
+ *
+ * // code as stringified open formula code (gets auto-converted to rosettajs),
+ * // defines <rosettaObj>.Custom.myAbs -> .Custom._openFormula.MYABS(args...) = n => { return rosettajs.Math.abs(n)+10 }`)
+ * registerAPI(
+ *   apiRef:rosettajs,
+ *   {
+ *     "name":"myAbs(n)",
+ *     "namef": "MYABS"
+ *     "code": "=ABS(n)+10;"
+ *   }
+ * );
+ *
+ * @returns {Object} the return value from registerCustomAPI
+ * @throws {String}  Error string reprensenting registration failure
+ */
+function registerAPI(apiRef, data) {
+    let { name, cat, lang, namef, code } = data;
+    // helper funcs
+    // eslint-disable-next-line @typescript-eslint/no-empty-function
+    const noop = () => { };
+    const isNotes = (s) => converter.isNotes(s);
+    const isExcel = (s) => converter.isOpenFormula(s);
+    const isFormula = (s) => isNotes(s) || isExcel(s);
+    const capFirstLetter = (str) => str.charAt(0).toUpperCase() + str.slice(1);
+    // check and normalize params to expected rosettajs API object schema
+    if (!apiRef) {
+        throw new Error(`API reference was not supplied!`);
+    }
+    // NAME/ARGS: extract arguments from the name, if any
+    if (typeof name === 'undefined' || !name) {
+        throw new Error(`API name was not supplied!`);
+    }
+    const argsInName = name.match(/\b[^()]+\((.*)\)$/) || ['', '']; // nameArgs[0] will contain the function name+args, args[1] the arguments
+    const funcArgs = argsInName[1].replace(/;/g, ',');
+    if (argsInName && argsInName[0])
+        name = argsInName[0].split('(')[0]; // strip args from name arguments since name will be used as the prop in the API object
+    if (!name) {
+        throw new Error(`API name null after stripping arguments!`);
+    }
+    namef = namef || name; // name in formula, default to name if none suppied; note, after stripping args
+    // CATEGORY:
+    // set the category of API (eg. Text, Math, or custom supplied)
+    cat = cat || 'Custom';
+    let Cat = capFirstLetter(cat); // categories always start with capital letter
+    apiRef[Cat] = typeof (apiRef[Cat]) === "undefined" ? {} : apiRef[Cat]; // if category of API is new, create empty object for it first
+    // FORMULA LANGUAGE REPRESENTATION:
+    // set the formula language object reference prop based on what formula language is being extended, if any
+    // normalize open formula or notes, as these we know
+    lang = lang || '';
+    let _lang;
+    switch (lang.toLowerCase()) {
+        case 'open formula':
+            _lang = '_openFormula';
+            break;
+        case 'notes':
+            _lang = '_notes';
+            break;
+        case '':
+            _lang = '';
+            break; // no formula language representing the API
+        default: _lang = lang.charAt(0) === '_' ? lang : `_${lang}`; // langs start with _ to follow pattern as _notes and _openFormula
+    }
+    // langRef is the underlying formula language implementations object; example: _notes, _openFormula
+    let langRef;
+    if (_lang) {
+        apiRef[Cat][_lang] = typeof (apiRef[Cat][_lang]) === "undefined" ? {} : apiRef[Cat][_lang];
+        langRef = apiRef[Cat][_lang];
+    }
+    // CREATE A CALLBACK FUNCTION FROM THE CODE SUPPLIED:
+    code = code || noop;
+    let callback;
+    try {
+        if (typeof (code) === 'string') { // code supplied is in the form of a string
+            if (isFormula(code)) { // code string is a formula; convert it to  string supplied
+                const rosettaJsSrc = converter.getRosettaJSFromFormula(apiRef, code.trim()).converted || '';
+                callback = extenderEvals.createFunction(rosettaJsSrc, funcArgs);
+            }
+            else { // assume code is stringified javascript
+                callback = extenderEvals.createFunction(code, funcArgs);
+            }
+        }
+        else if (typeof (code) === 'function') { // code supplied is an actual Function Object
+            callback = code;
+        }
+        else {
+            // default to empty function throwing unimplemented err; same as APIs not yet implemented
+            callback = () => { throw new Error(`API ${Cat}:${name} is not implemented!`); };
+        }
+    }
+    catch (err) {
+        throw new Error(`Error converting code supplied into a callable method: ${err}`);
+    }
+    // CREATE INTERFACE TO CALLBACK FUNCTION IN FORMULA OR DIRECT
+    let ifc;
+    if (langRef) {
+        ifc = langRef[namef] = callback; // register callback under the language reference object
+    }
+    else {
+        ifc = callback;
+    }
+    console.debug(`RosettaJS API: Registered new method: <api>.${Cat}.${name}${langRef ? '->' + _lang + '.' + namef : ''}`);
+    // REGISTER API:
+    // create a rosetta API method to process args and call the registered method under the language reference obj or the callback directly
+    apiRef[Cat][name] = (...args) => {
+        return ifc(...args);
+    };
+    return apiRef[Cat][name];
+}
+exports.registerAPI = registerAPI;
+/**
+ * Register APIs from an array of JSON API extension definition objects.
+ * Each object in the array must adhere to schema required in registerAPI method
+ *
+ * @param {String} apiRef required. reference to the rosetta api object tree
+ * @param {Array} data an array of JSON objects, each representing a custom API to register. see registerAPI for schema
+ *
+ * @example
+ * registerAPI(
+ *   apiRef:rosettajs,
+ *   [
+ *     { // defines: <rosettajs>.Custom.simplest = () => { }
+ *       "name": "simplest"
+ *     },
+ *     { // defines: <rosettajs>.Text.simpler = () => { }
+ *       "name": "simpler",
+ *       "cat": "Text",
+ *     },
+ *     { // defines: <rosettajs>.Text.simple = function(x) { return x+1; }
+ *       "name": "simple(x)",
+ *       "cat": "Text",
+ *       "code": function(x) { return x+1; }
+ *     },
+ *     { // defines: <rosettajs>.Text.simple = function(x) { this._notes.simple(): function(x) { return x+1; } }
+ *       "name": "simpleNotes(x)",
+ *       "cat": "Text",
+ *       "lang": "notes",
+ *       "code": function(x) { return x+1; }
+ *     },
+ *     { // defines: <rosettajs>.Text.simple = function(x) { this._notes.ADVanceNOTES123(): function(x) { return x+1; } }
+ *       "name": "advancedNotes(x)",
+ *       "cat": "Text",
+ *       "lang": "notes",
+ *       "namef": "ADVanceNOTES123",
+ *       "code": function(x) { return x+1; }
+ *     },
+ *     {
+ *       "cat": "Text",
+ *       "name": "hello(name)",
+ *       "lang": "notes",
+ *       "namef": "Hello",
+ *       "code": function(name) { return "hello " + name; }
+ *     },
+ *     {
+ *       "name": "goodbye(name)",
+ *       "lang": "notes",
+ *       "cat": "Text",
+ *       "code": function(name) { return "bye bye " + name; }
+ *     },
+ *     { // defines: <rosettajs>.Custom.weather = function(x) { this._openFormula.WEATHER(): function(zip) { return "Sunny in " + zip; } }
+ *       "name": "WEATHER(zip)",
+ *       "lang": "open formula",
+ *       "cat": "Custom",
+ *       "code": function (zip) { return "Sunny in " + zip; }
+ *     },
+ *     { // defines: <rosettajs>.Custom.absPlusX = function(n,x) { this._notes.absPlusX(): javascript conversion result from "@Abs(n)+x" }
+ *       "name": "AbsPlusX(n; x)",
+ *       "lang": "notes",
+ *       "cat": "Custom",
+ *       "code": "@Abs(n)+x;"
+ *     }
+ *   ]
+ * );
+ *
+ * @returns {Array} Array of callbacks for the API methods registered
+ * @throws {String} Error string reprensenting registration failure
+ */
+function registerAPIs(apiRef, dataArray = []) {
+    if (!apiRef) {
+        throw new Error(`API reference was not supplied!`);
+    }
+    var registeredAPIs = [];
+    dataArray.forEach(data => {
+        try {
+            registeredAPIs.push(registerAPI(apiRef, data));
+        }
+        catch (err) {
+            console.error('Error registering APIs: ', data);
+            throw err;
+        }
+    });
+    return registeredAPIs;
+}
+exports.registerAPIs = registerAPIs;
+/**
+ Get the names for the Tern files generated for the Rosetta API.
+ * @returns {Object} The names of the tern file definitions generated for the Rossetta API.
+ * Keys are "API" for the Rosetta javascript API, "Notes" for the Notes formula, and "OpenFormula" for OpenFormula.
+ */
+const getTernFileNames = function () {
+    return { API: "rosetta_api_tern.json", Notes: "notes_formula_tern.json", OpenFormula: "open_formula_tern.json" };
+};
+exports.getTernFileNames = getTernFileNames;
+//# sourceMappingURL=API.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/API_context.js.html b/javadoc/API_context.js.html new file mode 100644 index 00000000..e79c49db --- /dev/null +++ b/javadoc/API_context.js.html @@ -0,0 +1,54 @@ +Source: API_context.js
On this page

API_context.js

"use strict";
+/**
+ * @file Rosetta API
+ * @module rosetta-api-context
+ * @category API
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.isDefaultDb = exports.isDefaultLocal = exports.setDefaultAsDb = exports.setDefaultAsLocal = exports.getDefault = exports._config = void 0;
+exports._config = {
+    local: "local",
+    db: "db",
+    default: "db"
+};
+/**
+ * Get default context
+ * @returns {string} default context (Local or DB)
+ */
+function getDefault() {
+    return exports._config.default;
+}
+exports.getDefault = getDefault;
+/**
+ * Set default context to local
+ * @returns {string} The default context
+ */
+function setDefaultAsLocal() {
+    exports._config.default = exports._config.local;
+    return getDefault();
+}
+exports.setDefaultAsLocal = setDefaultAsLocal;
+/**
+ * Set default context to db
+ * @returns {string} The default context
+ */
+function setDefaultAsDb() {
+    exports._config.default = exports._config.db;
+    return getDefault();
+}
+exports.setDefaultAsDb = setDefaultAsDb;
+/**
+ * Is default context local?
+ * @returns {boolean} true if the default context is set to local; false otherwise
+ */
+function isDefaultLocal() { return getDefault() === exports._config.local; }
+exports.isDefaultLocal = isDefaultLocal;
+/**
+ * Is default context database?
+ * @returns {boolean} true if the default context is set to db; false otherwise
+ */
+function isDefaultDb() { return getDefault() === exports._config.db; }
+exports.isDefaultDb = isDefaultDb;
+//# sourceMappingURL=API_context.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/DDE%20.html b/javadoc/DDE%20.html new file mode 100644 index 00000000..5e6bf292 --- /dev/null +++ b/javadoc/DDE%20.html @@ -0,0 +1,3 @@ +Module: DDE (Dynamic Data Exchange)
On this page

dde

Source

Methods

(inner) ddeExecute()

Passes the specified command string to the DDE application, which is identified by the conversation ID. @DDEExecute is always used in conjunction with @DDEInitiate and @DDETerminate.

See
Throws:

no plans to implement

Type
Error

(inner) ddeInitiate()

Initiates a conversation with a DDE server, and returns the conversation ID.

See
Throws:

no plans to implement

Type
Error

(inner) ddePoke()

Deposits unsolicited data into the specified location within the DDE server application. If the data was successfully inserted into the target location, @DDEPoke returns an ACK (acknowledgement) with the value @True(1); if the attempt was not successful, the call returns a NACK (negative acknowledgment) with the value @False(0). If the conversation ID is invalid, an error is returned (see @IsError).

See
Throws:

no plans to implement

Type
Error

(inner) ddeTerminate()

Terminates the conversation with a DDE application.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/ECL%20.html b/javadoc/ECL%20.html new file mode 100644 index 00000000..d1a0811c --- /dev/null +++ b/javadoc/ECL%20.html @@ -0,0 +1,3 @@ +Module: ECL (Execution Control List)
On this page

ecl

Source

Methods

(inner) editECL()

Displays the administration "Workstation Security: Execution Control List" dialog box for a specified address book and name, which lets you change that administration ECL. Administrators can name Administration ECLs. The name is not usually a user name, but whatever name the administrator chooses; for example, Manager, Developer, or LimitedAccess.

See
Throws:

no plans to implement

Type
Error

(inner) editUserECL()

Displays the "Workstation Security: Execution Control List" dialog box, which allows you to change your personal ECL for the current workstation.

See
Throws:

no plans to implement

Type
Error

(inner) refreshECL()

Copies the administration execution control list from a specified Address Book and name to your personal workstation ECL.

See
To Do
  • this needs to be implemented
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/admin.js.html b/javadoc/admin.js.html new file mode 100644 index 00000000..f8541f7c --- /dev/null +++ b/javadoc/admin.js.html @@ -0,0 +1,303 @@ +Source: admin.js
On this page

admin.js

"use strict";
+/**
+ * @file Administrative
+ * @module admin
+ * @category Administrative
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.adminTraceConnection = exports.adminStatisticsConfig = exports.adminSendMailTrace = exports.adminRemoteConsole = exports.adminRegisterUser = exports.adminRegisterServer = exports.adminRegisterFromFile = exports.adminOutgoingMail = exports.adminOpenUsersView = exports.adminOpenStatistics = exports.adminOpenServersView = exports.adminOpenServerLog = exports.adminOpenGroupsView = exports.adminOpenCertLog = exports.adminOpenCatalog = exports.adminOpenAddressBook = exports.adminNewOrgUnit = exports.adminNewOrganization = exports.administration = exports.adminIDFileSetPassword = exports.adminIDFileExamine = exports.adminIDFileClearPassword = exports.adminDatabaseQuotas = exports.adminDatabaseAnalysis = exports.adminCrossCertifyKey = exports.adminCrossCertifyIDFile = exports.adminCreateGroup = exports.adminCertify = exports.adminECLIsLocked = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesc = tslib_1.__importStar(require("../notes/admin"));
+exports._notes = notesc;
+/**
+ * Checks the current status of the Administration ECL in the name and address book
+ * and returns 1 (True) if the Administration ECL is locked and editing is
+ * prevented; otherwise returns 0 (False).
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link adminECLIsLocked https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINECLISLOCKED.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function adminECLIsLocked() {
+    return notesc.AdminECLIsLocked();
+}
+exports.adminECLIsLocked = adminECLIsLocked;
+/**
+ * Displays the Choose Certifier ID dialog box, where you can select a Certifier ID
+ * file. After selecting a Certifier ID and entering its password, you select the
+ * user or server ID to be certified.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINCERTIFY.html|www.hcltechsw.com }
+ */
+function adminCertify() {
+    return notesc.AdminCertify();
+}
+exports.adminCertify = adminCertify;
+/**
+ * Opens a Domino® Directory and displays a blank Group form.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINCREATEGROUP.html|www.hcltechsw.com }
+ */
+function adminCreateGroup() {
+    return notesc.AdminCreateGroup();
+}
+exports.adminCreateGroup = adminCreateGroup;
+/**
+ * Displays the Choose Certifier ID dialog box, where you can select a Certifier ID
+ * file. After you select a Certifier ID and enter its password, Notes® displays
+ * the Choose ID to be Cross-Certified dialog box, which allows you to create a
+ * hierarchical cross certificate for an ID in another organization.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINCROSSCERTIFYIDFILE.html|www.hcltechsw.com }
+ */
+function adminCrossCertifyIDFile() {
+    return notesc.AdminCrossCertifyIDFile();
+}
+exports.adminCrossCertifyIDFile = adminCrossCertifyIDFile;
+/**
+ * Displays the Choose Certifier ID dialog box, where you can select a Certifier ID
+ * file. After you select a Certifier ID and enter its password, Notes® displays
+ * the Cross Certify Key dialog box, which allows you to create a cross certificate
+ * for an ID in another organization using the numeric key associated with that ID.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINCROSSCERTIFYKEY.html|www.hcltechsw.com }
+ */
+function adminCrossCertifyKey() {
+    return notesc.AdminCrossCertifyKey();
+}
+exports.adminCrossCertifyKey = adminCrossCertifyKey;
+/**
+ * Displays the Database Analysis dialog box, which provides information about the
+ * selected database on the selected server.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINDATABASEANALYSIS.html|www.hcltechsw.com }
+ */
+function adminDatabaseAnalysis() {
+    return notesc.AdminDatabaseAnalysis();
+}
+exports.adminDatabaseAnalysis = adminDatabaseAnalysis;
+/**
+ * For the selected server, displays a list of the databases in which you can
+ * change the size limits.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINDATABASEQUOTAS.html|www.hcltechsw.com }
+ */
+function adminDatabaseQuotas() {
+    return notesc.AdminDatabaseQuotas();
+}
+exports.adminDatabaseQuotas = adminDatabaseQuotas;
+/**
+ * Allows the administrator to delete the password associated with any user ID
+ * file, without having to first switch to that ID and make it active.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINIDFILECLEARPASSWORD.html|www.hcltechsw.com }
+ */
+function adminIDFileClearPassword() {
+    return notesc.AdminIDFileClearPassword();
+}
+exports.adminIDFileClearPassword = adminIDFileClearPassword;
+/**
+ * Displays the Choose ID File to Examine dialog box. After the administrator
+ * selects an ID, Notes/Domino displays the ID Properties box, which contains
+ * information about security basics and your identity.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINIDFILEEXAMINE.html|www.hcltechsw.com }
+ */
+function adminIDFileExamine() {
+    return notesc.AdminIDFileExamine();
+}
+exports.adminIDFileExamine = adminIDFileExamine;
+/**
+ * Allows the administrator to assign a password to any user ID file, without
+ * having to first switch to that ID and make it active.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINIDFILESETPASSWORD.html|www.hcltechsw.com }
+ */
+function adminIDFileSetPassword() {
+    return notesc.AdminIDFileSetPassword();
+}
+exports.adminIDFileSetPassword = adminIDFileSetPassword;
+/**
+ * Opens the Domino® Administrator if the Domino® Administrator package is
+ * installed on the local machine of the user executing the command.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINISTRATION.html|www.hcltechsw.com }
+ */
+function administration() {
+    return notesc.Administration();
+}
+exports.administration = administration;
+/**
+ * Displays the Register Organization Certifier dialog box, where an administrator
+ * can create a hierarchical Certifier ID for an organization. After the
+ * administrator enters a name and password for the new Certifier ID, Notes® asks
+ * the user where to save the ID file and then creates the ID.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINNEWORGANIZATION.html|www.hcltechsw.com }
+ */
+function adminNewOrganization() {
+    return notesc.AdminNewOrganization();
+}
+exports.adminNewOrganization = adminNewOrganization;
+/**
+ * Prompts for the Certifier ID password and then displays the Register
+ * Organizational Unit Certifier dialog box, where the administrator can create a
+ * hierarchical Certifier ID for an organizational unit.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINNEWORGUNIT.html|www.hcltechsw.com }
+ */
+function adminNewOrgUnit() {
+    return notesc.AdminNewOrgUnit();
+}
+exports.adminNewOrgUnit = adminNewOrgUnit;
+/**
+ * Opens a Domino® Directory on the selected server.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINOPENADDRESSBOOK.html|www.hcltechsw.com }
+ */
+function adminOpenAddressBook() {
+    return notesc.AdminOpenAddressBook();
+}
+exports.adminOpenAddressBook = adminOpenAddressBook;
+/**
+ * Opens the database catalog (CATALOG.NSF) on the selected server.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINOPENCATALOG.html|www.hcltechsw.com }
+ */
+function adminOpenCatalog() {
+    return notesc.AdminOpenCatalog();
+}
+exports.adminOpenCatalog = adminOpenCatalog;
+/**
+ * Opens the certification log (CERTLOG.NSF) on the selected server.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINOPENCERTLOG.html|www.hcltechsw.com }
+ */
+function adminOpenCertLog() {
+    return notesc.AdminOpenCertLog();
+}
+exports.adminOpenCertLog = adminOpenCertLog;
+/**
+ * Opens a Domino® Directory on the selected server and displays its Groups view.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINOPENGROUPSVIEW.html|www.hcltechsw.com }
+ */
+function adminOpenGroupsView() {
+    return notesc.AdminOpenGroupsView();
+}
+exports.adminOpenGroupsView = adminOpenGroupsView;
+/**
+ * Opens the server log (LOG.NSF) on the selected server.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINOPENSERVERLOG.html|www.hcltechsw.com }
+ */
+function adminOpenServerLog() {
+    return notesc.AdminOpenServerLog();
+}
+exports.adminOpenServerLog = adminOpenServerLog;
+/**
+ * Opens a Domino® Directory on the selected server and displays its Servers view.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINOPENSERVERSVIEW.html|www.hcltechsw.com }
+ */
+function adminOpenServersView() {
+    return notesc.AdminOpenServersView();
+}
+exports.adminOpenServersView = adminOpenServersView;
+/**
+ * Opens the statistics reporting database (STATREP5.NSF) on the selected server.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINOPENSTATISTICS.html|www.hcltechsw.com }
+ */
+function adminOpenStatistics() {
+    return notesc.AdminOpenStatistics();
+}
+exports.adminOpenStatistics = adminOpenStatistics;
+/**
+ * Opens a Domino® Directory on the selected server and displays its People view.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINOPENUSERSVIEW.html|www.hcltechsw.com }
+ */
+function adminOpenUsersView() {
+    return notesc.AdminOpenUsersView();
+}
+exports.adminOpenUsersView = adminOpenUsersView;
+/**
+ * Displays the contents of the selected server's MAIL.BOX file.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINOUTGOINGMAIL.html|www.hcltechsw.com }
+ */
+function adminOutgoingMail() {
+    return notesc.AdminOutgoingMail();
+}
+exports.adminOutgoingMail = adminOutgoingMail;
+/**
+ * Displays a series of dialog boxes for certifying multiple new users from a text
+ * file.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINREGISTERFROMFILE.html|www.hcltechsw.com }
+ */
+function adminRegisterFromFile() {
+    return notesc.AdminRegisterFromFile();
+}
+exports.adminRegisterFromFile = adminRegisterFromFile;
+/**
+ * Displays a series of dialog boxes for creating a new server ID.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINREGISTERSERVER.html|www.hcltechsw.com }
+ */
+function adminRegisterServer() {
+    return notesc.AdminRegisterServer();
+}
+exports.adminRegisterServer = adminRegisterServer;
+/**
+ * Displays a series of dialog boxes for certifying new users.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINREGISTERUSER.html|www.hcltechsw.com }
+ */
+function adminRegisterUser() {
+    return notesc.AdminRegisterUser();
+}
+exports.adminRegisterUser = adminRegisterUser;
+/**
+ * Displays the Remote Server Console dialog box, where an administrator can enter
+ * server console commands from a workstation.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINREMOTECONSOLE.html|www.hcltechsw.com }
+ */
+function adminRemoteConsole() {
+    return notesc.AdminRemoteConsole();
+}
+exports.adminRemoteConsole = adminRemoteConsole;
+/**
+ * Displays the Mail Path Tracing dialog box, which allows you to send a message to
+ * a location on the mail router and receive a trace message in return.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINSENDMAILTRACE.html|www.hcltechsw.com }
+ */
+function adminSendMailTrace() {
+    return notesc.AdminSendMailTrace();
+}
+exports.adminSendMailTrace = adminSendMailTrace;
+/**
+ * Opens the server events database (EVENTS4.NSF) on the selected server and
+ * displays its Servers to Monitor view.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINSTATISTICSCONFIG.html|www.hcltechsw.com }
+ */
+function adminStatisticsConfig() {
+    return notesc.AdminStatisticsConfig();
+}
+exports.adminStatisticsConfig = adminStatisticsConfig;
+/**
+ * Displays the Trace Connections dialog box, which allows you to test network
+ * connections through a passthru server.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADMINTRACECONNECTION.html|www.hcltechsw.com }
+ */
+function adminTraceConnection() {
+    return notesc.AdminTraceConnection();
+}
+exports.adminTraceConnection = adminTraceConnection;
+//# sourceMappingURL=admin.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/agent.js.html b/javadoc/agent.js.html new file mode 100644 index 00000000..587e8a63 --- /dev/null +++ b/javadoc/agent.js.html @@ -0,0 +1,111 @@ +Source: agent.js
On this page

agent.js

"use strict";
+/**
+ * @file Agents (Domino)
+ * @module agent
+ * @category Agents
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.agentTestRun = exports.agentSetServerName = exports.agentLog = exports.agentEdit = exports.runScheduledAgents = exports.runAgent = exports.isAgentEnabled = exports.agentEnableDisable = exports.agentRun = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesc = tslib_1.__importStar(require("../notes/agent"));
+exports._notes = notesc;
+/**
+ * Runs the currently selected agent and then displays its log.
+ * @param {Array} ...args any arguments
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_AGENTRUN.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function agentRun() {
+    return notesc.AgentRun();
+}
+exports.agentRun = agentRun;
+/**
+ * Enables or disables the specified agent.
+ * @param {Array} ...args any arguments
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_AGENTENABLEDISABLE.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function agentEnableDisable() {
+    return notesc.AgentEnableDisable();
+}
+exports.agentEnableDisable = agentEnableDisable;
+/**
+ * Indicates whether or not a scheduled agent is enabled.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISAGENTENABLED.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function isAgentEnabled() {
+    return notesc.IsAgentEnabled();
+}
+exports.isAgentEnabled = isAgentEnabled;
+/**
+ * Executes a specified agent.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_RUNAGENT_COMMAND.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function runAgent() {
+    return notesc.RunAgent();
+}
+exports.runAgent = runAgent;
+/**
+ * Runs all of the database's scheduled agents, regardless of when they are
+ * scheduled to run. The agents will then run as usual at their regularly scheduled
+ * times.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_RUNSCHEDULEDAGENTS_COMMAND.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function runScheduledAgents() {
+    return notesc.RunScheduledAgents();
+}
+exports.runScheduledAgents = runScheduledAgents;
+/**
+ * Opens the Agent Properties box for the currently selected agent.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_AGENTEDIT.html|www.hcltechsw.com }
+ */
+function agentEdit() {
+    return notesc.AgentEdit();
+}
+exports.agentEdit = agentEdit;
+/**
+ * Displays the log for the currently selected agent. The log contains information
+ * about when the agent last ran, what actions it performed, and when it finished
+ * running.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_AGENTLOG.html|www.hcltechsw.com }
+ */
+function agentLog() {
+    return notesc.AgentLog();
+}
+exports.agentLog = agentLog;
+/**
+ * Specifies a scheduled agent to run on a particular server.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_AGENTSETSERVERNAME.html|www.hcltechsw.com }
+ */
+function agentSetServerName() {
+    return notesc.AgentSetServerName();
+}
+exports.agentSetServerName = agentSetServerName;
+/**
+ * Displays a log for the currently selected agent, describing what actions the
+ * agent will perform when run.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_AGENTTESTRUN.html|www.hcltechsw.com }
+ */
+function agentTestRun() {
+    return notesc.AgentTestRun();
+}
+exports.agentTestRun = agentTestRun;
+//# sourceMappingURL=agent.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/attachment.js.html b/javadoc/attachment.js.html new file mode 100644 index 00000000..59c26f9f --- /dev/null +++ b/javadoc/attachment.js.html @@ -0,0 +1,61 @@ +Source: attachment.js
On this page

attachment.js

"use strict";
+/**
+ * @file Attachments
+ * @module attachment
+ * @category Attachments
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.attachmentView = exports.attachmentProperties = exports.attachmentLaunch = exports.attachmentDetachAll = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesc = tslib_1.__importStar(require("../notes/attachment"));
+exports._notes = notesc;
+//-----------------------------
+// Notes @Commands attachments
+/**
+ * Displays the Save Attachments To dialog box, where you select a location for the
+ * current document's attachments.
+ * @param {Array} ...args any arguments
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ATTACHMENTDETACHALL.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function attachmentDetachAll() {
+    return notesc.AttachmentDetachAll();
+}
+exports.attachmentDetachAll = attachmentDetachAll;
+/**
+ * Launches the selected attachment by opening the application in which it was
+ * created, if possible.
+ * @param {Array} ...args any arguments
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ATTACHMENTLAUNCH.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function attachmentLaunch() {
+    return notesc.AttachmentLaunch();
+}
+exports.attachmentLaunch = attachmentLaunch;
+/**
+ * Displays the Properties box for the current attachment.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ATTACHMENTPROPERTIES.html|www.hcltechsw.com }
+ */
+function attachmentProperties() {
+    return notesc.AttachmentProperties();
+}
+exports.attachmentProperties = attachmentProperties;
+/**
+ * Launches the Attachment Viewer, which lets you view the contents of the selected
+ * attachment without opening the application in which it was created.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ATTACHMENTVIEW.html|www.hcltechsw.com }
+ */
+function attachmentView() {
+    return notesc.AttachmentView();
+}
+exports.attachmentView = attachmentView;
+//# sourceMappingURL=attachment.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/compatibility.js.html b/javadoc/compatibility.js.html new file mode 100644 index 00000000..ada6c4c9 --- /dev/null +++ b/javadoc/compatibility.js.html @@ -0,0 +1,90 @@ +Source: compatibility.js
On this page

compatibility.js

"use strict";
+/**
+ * @file Compatibility
+ * @module compatibility
+ * @category Compatibility
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports._openFormula = void 0;
+const tslib_1 = require("tslib");
+const openf = tslib_1.__importStar(require("../openformula/compatibility"));
+exports._openFormula = openf;
+//-----------------------------
+// Open Formula compatibility
+exports.betaDist = openf.BETADIST;
+exports.betaInv = openf.BETAINV;
+exports.binomDist = openf.BINOMDIST;
+exports.ceiling = openf.CEILING;
+exports.ceilingMath = openf.CEILINGMATH;
+exports.ceilingPrecise = openf.CEILINGPRECISE;
+exports.chiDist = openf.CHIDIST;
+exports.chiDistRt = openf.CHIDISTRT;
+exports.chiInv = openf.CHIINV;
+exports.chiInvRt = openf.CHIINVRT;
+exports.chiTest = openf.CHITEST;
+exports.confidence = openf.CONFIDENCE;
+exports.coVar = openf.COVAR;
+exports.coVarianceP = openf.COVARIANCEP;
+exports.coVarianceS = openf.COVARIANCES;
+exports.critBinom = openf.CRITBINOM;
+exports.exponDist = openf.EXPONDIST;
+exports.erfcPrecise = openf.ERFCPRECISE;
+exports.erfPrecise = openf.ERFPRECISE;
+exports.fDist = openf.FDIST;
+exports.fDistRt = openf.FDISTRT;
+exports.fInvRt = openf.FINVRT;
+exports.fInv = openf.FINV;
+exports.floor = openf.FLOOR;
+exports.floorMath = openf.FLOORMATH;
+exports.floorPrecise = openf.FLOORPRECISE;
+exports.fTest = openf.FTEST;
+exports.gammaDist = openf.GAMMADIST;
+exports.gammaInv = openf.GAMMAINV;
+exports.gammaLnPrecise = openf.GAMMALNPRECISE;
+exports.hypGeomDist = openf.HYPGEOMDIST;
+exports.logInv = openf.LOGINV;
+exports.logNormInv = openf.LOGNORMINV;
+exports.logNormDist = openf.LOGNORMDIST;
+exports.mode = openf.MODE;
+exports.modeMult = openf.MODEMULT;
+exports.modeSngl = openf.MODESNGL;
+exports.negBinomDist = openf.NEGBINOMDIST;
+exports.netWorkDaysIntl = openf.NETWORKDAYSINTL;
+exports.normDist = openf.NORMDIST;
+exports.normInv = openf.NORMINV;
+exports.normSDist = openf.NORMSDIST;
+exports.normSInv = openf.NORMSINV;
+exports.percentile = openf.PERCENTILE;
+exports.percentileExc = openf.PERCENTILEEXC;
+exports.percentileInc = openf.PERCENTILEINC;
+exports.percentRank = openf.PERCENTRANK;
+exports.percentRankExc = openf.PERCENTRANKEXC;
+exports.percentRankInc = openf.PERCENTRANKINC;
+exports.poisson = openf.POISSON;
+exports.poissonDist = openf.POISSONDIST;
+exports.quartile = openf.QUARTILE;
+exports.quartileExc = openf.QUARTILEEXC;
+exports.quartileInc = openf.QUARTILEINC;
+exports.rank = openf.RANK;
+exports.rankAvg = openf.RANKAVG;
+exports.rankEq = openf.RANKEQ;
+exports.skewP = openf.SKEWP;
+exports.stDev = openf.STDEV;
+exports.stDevP = openf.STDEVP;
+exports.stDevS = openf.STDEVS;
+exports.tDist = openf.TDIST;
+exports.tDistRt = openf.TDISTRT;
+exports.tInv = openf.TINV;
+exports.tTest = openf.TTEST;
+exports.var = openf.VAR;
+exports.varP = openf.VARP;
+// varS is a Lotus 1-2-3 function that maps to varA in the Open formula Spec
+// See Lotus 1-2-3 Function Names at https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html
+//exports.varS = openf.VARS;
+exports.weiBull = openf.WEIBULL;
+exports.weiBullDist = openf.WEIBULLDIST;
+exports.workDayIntl = openf.WORKDAYINTL;
+exports.zTest = openf.ZTEST;
+//# sourceMappingURL=compatibility.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/create.js.html b/javadoc/create.js.html new file mode 100644 index 00000000..b04db02f --- /dev/null +++ b/javadoc/create.js.html @@ -0,0 +1,222 @@ +Source: create.js
On this page

create.js

"use strict";
+/**
+ * @file Create
+ * @module create
+ * @category Create
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.createView = exports.createTextbox = exports.createSubform = exports.createSection = exports.createRectangularHotspot = exports.createRectangle = exports.createPolyline = exports.createPolygon = exports.createNavigator = exports.createLayoutRegion = exports.createForm = exports.createFolder = exports.createEllipse = exports.createControlledAccessSection = exports.createAgent = exports.createAction = exports.composeWithReference = exports.compose = exports._notes_vmx = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesc_base = tslib_1.__importStar(require("../notes/create"));
+const notesc_vmx = tslib_1.__importStar(require("../notes/voltmx/create"));
+const API = tslib_1.__importStar(require("../rosetta/API"));
+const notesc = () => API.isDefaultFrameworkVoltMX() ? notesc_vmx : notesc_base;
+exports._notes = notesc_base;
+exports._notes_vmx = notesc_vmx;
+//-----------------------------
+// Notes @Commands create
+/**
+ * Creates a new, blank document.
+ * @param {any} serverDatabase
+ * @param {string} form
+ * @returns {boolean}
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_COMPOSE.html|www.hcltechsw.com }
+ */
+function compose(serverDatabase, form) {
+    return notesc().Compose(serverDatabase, form);
+}
+exports.compose = compose;
+/**
+ * Creates a new document filling in the Body rich text field with values based on the current document.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_COMPOSEWITHREFERENCE.html|www.hcltechsw.com }
+ */
+function composeWithReference() {
+    return notesc().ComposeWithReference();
+}
+exports.composeWithReference = composeWithReference;
+/**
+ * Creates a new action and opens the design pane, where you can edit the action.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CREATEACTION.html|www.hcltechsw.com }
+ */
+function createAction() {
+    return notesc().CreateAction();
+}
+exports.createAction = createAction;
+/**
+ * Creates a new agent in the current database and opens the Agent Properties box,
+ * where you can name and define the agent.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CREATEAGENT.html|www.hcltechsw.com }
+ */
+function createAgent() {
+    return notesc().CreateAgent();
+}
+exports.createAgent = createAgent;
+/**
+ * Creates a controlled access section on a form or subform. Unlike a regular
+ * section, a controlled access section has a formula to determine who can edit it.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CREATECONTROLLEDACCESSSECTION.html|www.hcltechsw.com }
+ */
+function createControlledAccessSection() {
+    return notesc().CreateControlledAccessSection();
+}
+exports.createControlledAccessSection = createControlledAccessSection;
+/**
+ * Lets you create an ellipse in a navigator. After you invoke the command, the
+ * cursor changes to a crosshair when you start to drag the mouse in the design
+ * area. You create an ellipse by dragging the mouse until the ellipse is the size
+ * you want.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CREATEELLIPSE.html|www.hcltechsw.com }
+ */
+function createEllipse() {
+    return notesc().CreateEllipse();
+}
+exports.createEllipse = createEllipse;
+/**
+ * Displays the Create Folder dialog box, which lets you choose a location for a
+ * new folder and create it.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CREATEFOLDER.html|www.hcltechsw.com }
+ */
+function createFolder() {
+    return notesc().CreateFolder();
+}
+exports.createFolder = createFolder;
+/**
+ * Creates a new, blank form in a database.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CREATEFORM.html|www.hcltechsw.com }
+ */
+function createForm() {
+    return notesc().CreateForm();
+}
+exports.createForm = createForm;
+/**
+ * Creates a new layout region on a form or subform.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CREATELAYOUTREGION.html|www.hcltechsw.com }
+ */
+function createLayoutRegion() {
+    return notesc().CreateLayoutRegion();
+}
+exports.createLayoutRegion = createLayoutRegion;
+/**
+ * Creates a new, blank navigator in a database.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CREATENAVIGATOR.html|www.hcltechsw.com }
+ */
+function createNavigator() {
+    return notesc().CreateNavigator();
+}
+exports.createNavigator = createNavigator;
+/**
+ * Lets you create a polygon in a navigator. After you invoke the command, the
+ * cursor changes to a crosshair when you start to drag the mouse in the design
+ * area. You create a polygon by clicking the mouse each time you want to start
+ * a new side. Double-click when you are done.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CREATEPOLYGON.html|www.hcltechsw.com }
+ */
+function createPolygon() {
+    return notesc().CreatePolygon();
+}
+exports.createPolygon = createPolygon;
+/**
+ * Lets you create a polyline in a navigator. After you invoke the command, the
+ * cursor changes to a crosshair when you start to drag the mouse in the design
+ * area. You create a polyline by clicking the mouse each time you want to start
+ * a new line. Double-click when you are done.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CREATEPOLYLINE.html|www.hcltechsw.com }
+ */
+function createPolyline() {
+    return notesc().CreatePolyline();
+}
+exports.createPolyline = createPolyline;
+/**
+ * Lets you create a rectangle in a navigator. After you invoke the command, the
+ * cursor changes to a crosshair when you start to drag the mouse in the design
+ * area. You create a rectangle by dragging the mouse until the rectangle is the
+ * size you want.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CREATERECTANGLE.html|www.hcltechsw.com }
+ */
+function createRectangle() {
+    return notesc().CreateRectangle();
+}
+exports.createRectangle = createRectangle;
+/**
+ * Lets you create a rectangular hotspot in a navigator. After you invoke the
+ * command, the cursor changes to a crosshair when you start to drag the mouse in
+ * the design area. You create a rectangular hotspot by dragging the mouse until
+ * the rectangle is the size you want.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CREATERECTANGULARHOTSPOT.html|www.hcltechsw.com }
+ */
+function createRectangularHotspot() {
+    return notesc().CreateRectangularHotspot();
+}
+exports.createRectangularHotspot = createRectangularHotspot;
+/**
+ * Creates a section.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CREATESECTION.html|www.hcltechsw.com }
+ */
+function createSection() {
+    return notesc().CreateSection();
+}
+exports.createSection = createSection;
+/**
+ * Creates a new, blank subform in a database.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CREATESUBFORM.html|www.hcltechsw.com }
+ */
+function createSubform() {
+    return notesc().CreateSubform();
+}
+exports.createSubform = createSubform;
+/**
+ * Lets you create a textbox in a navigator. After you invoke the command, the
+ * cursor changes to a crosshair when you start to drag the mouse in the design
+ * area. You create a textbox by dragging the mouse until the textbox is the size
+ * you want.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CREATETEXTBOX.html|www.hcltechsw.com }
+ */
+function createTextbox() {
+    return notesc().CreateTextbox();
+}
+exports.createTextbox = createTextbox;
+/**
+ * Displays the Create View dialog box, which lets you choose a location for a new
+ * view and create it.
+ * @param {Array} ...args any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CREATEVIEW.html|www.hcltechsw.com }
+ */
+function createView() {
+    return notesc().CreateView();
+}
+exports.createView = createView;
+//# sourceMappingURL=create.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/data/search.json b/javadoc/data/search.json new file mode 100644 index 00000000..40ab3c0c --- /dev/null +++ b/javadoc/data/search.json @@ -0,0 +1 @@ +{"list":[{"title":"DDE (Dynamic Data Exchange)","link":"DDE (Dynamic Data Exchange)","description":"

dde

"},{"title":"DDE (Dynamic Data Exchange)~ddeExecute","link":"ddeExecute","description":"

Passes the specified command string to the DDE application, which is identified\nby the conversation ID. @DDEExecute is always used in conjunction with\n@DDEInitiate and @DDETerminate.

"},{"title":"DDE (Dynamic Data Exchange)~ddeInitiate","link":"ddeInitiate","description":"

Initiates a conversation with a DDE server, and returns the conversation ID.

"},{"title":"DDE (Dynamic Data Exchange)~ddePoke","link":"ddePoke","description":"

Deposits unsolicited data into the specified location within the DDE server\napplication. If the data was successfully inserted into the target location,\n@DDEPoke returns an ACK (acknowledgement) with the value @True(1); if the\nattempt was not successful, the call returns a NACK (negative acknowledgment)\nwith the value @False(0). If the conversation ID is invalid, an error is\nreturned (see @IsError).

"},{"title":"DDE (Dynamic Data Exchange)~ddeTerminate","link":"ddeTerminate","description":"

Terminates the conversation with a DDE application.

"},{"title":"ECL (Execution Control List)","link":"ECL (Execution Control List)","description":"

ecl

"},{"title":"ECL (Execution Control List)~editECL","link":"editECL","description":"

Displays the administration "Workstation Security: Execution Control List"\ndialog box for a specified address book and name, which lets you change that\nadministration ECL. Administrators can name Administration ECLs. The name is not\nusually a user name, but whatever name the administrator chooses; for example,\nManager, Developer, or LimitedAccess.

"},{"title":"ECL (Execution Control List)~editUserECL","link":"editUserECL","description":"

Displays the "Workstation Security: Execution Control List" dialog box, which\nallows you to change your personal ECL for the current workstation.

"},{"title":"ECL (Execution Control List)~refreshECL","link":"refreshECL","description":"

Copies the administration execution control list from a specified Address Book\nand name to your personal workstation ECL.

"},{"title":"module:admin","link":"admin","description":"

Administrative

"},{"title":"module:admin~adminCertify","link":"adminCertify","description":"

Displays the Choose Certifier ID dialog box, where you can select a Certifier ID\nfile. After selecting a Certifier ID and entering its password, you select the\nuser or server ID to be certified.

"},{"title":"module:admin~adminCreateGroup","link":"adminCreateGroup","description":"

Opens a Domino® Directory and displays a blank Group form.

"},{"title":"module:admin~adminCrossCertifyIDFile","link":"adminCrossCertifyIDFile","description":"

Displays the Choose Certifier ID dialog box, where you can select a Certifier ID\nfile. After you select a Certifier ID and enter its password, Notes® displays\nthe Choose ID to be Cross-Certified dialog box, which allows you to create a\nhierarchical cross certificate for an ID in another organization.

"},{"title":"module:admin~adminCrossCertifyKey","link":"adminCrossCertifyKey","description":"

Displays the Choose Certifier ID dialog box, where you can select a Certifier ID\nfile. After you select a Certifier ID and enter its password, Notes® displays\nthe Cross Certify Key dialog box, which allows you to create a cross certificate\nfor an ID in another organization using the numeric key associated with that ID.

"},{"title":"module:admin~adminDatabaseAnalysis","link":"adminDatabaseAnalysis","description":"

Displays the Database Analysis dialog box, which provides information about the\nselected database on the selected server.

"},{"title":"module:admin~adminDatabaseQuotas","link":"adminDatabaseQuotas","description":"

For the selected server, displays a list of the databases in which you can\nchange the size limits.

"},{"title":"module:admin~adminECLIsLocked","link":"adminECLIsLocked","description":"

Checks the current status of the Administration ECL in the name and address book\nand returns 1 (True) if the Administration ECL is locked and editing is\nprevented; otherwise returns 0 (False).

"},{"title":"module:admin~adminIDFileClearPassword","link":"adminIDFileClearPassword","description":"

Allows the administrator to delete the password associated with any user ID\nfile, without having to first switch to that ID and make it active.

"},{"title":"module:admin~adminIDFileExamine","link":"adminIDFileExamine","description":"

Displays the Choose ID File to Examine dialog box. After the administrator\nselects an ID, Notes/Domino displays the ID Properties box, which contains\ninformation about security basics and your identity.

"},{"title":"module:admin~adminIDFileSetPassword","link":"adminIDFileSetPassword","description":"

Allows the administrator to assign a password to any user ID file, without\nhaving to first switch to that ID and make it active.

"},{"title":"module:admin~administration","link":"administration","description":"

Opens the Domino® Administrator if the Domino® Administrator package is\ninstalled on the local machine of the user executing the command.

"},{"title":"module:admin~adminNewOrganization","link":"adminNewOrganization","description":"

Displays the Register Organization Certifier dialog box, where an administrator\ncan create a hierarchical Certifier ID for an organization. After the\nadministrator enters a name and password for the new Certifier ID, Notes® asks\nthe user where to save the ID file and then creates the ID.

"},{"title":"module:admin~adminNewOrgUnit","link":"adminNewOrgUnit","description":"

Prompts for the Certifier ID password and then displays the Register\nOrganizational Unit Certifier dialog box, where the administrator can create a\nhierarchical Certifier ID for an organizational unit.

"},{"title":"module:admin~adminOpenAddressBook","link":"adminOpenAddressBook","description":"

Opens a Domino® Directory on the selected server.

"},{"title":"module:admin~adminOpenCatalog","link":"adminOpenCatalog","description":"

Opens the database catalog (CATALOG.NSF) on the selected server.

"},{"title":"module:admin~adminOpenCertLog","link":"adminOpenCertLog","description":"

Opens the certification log (CERTLOG.NSF) on the selected server.

"},{"title":"module:admin~adminOpenGroupsView","link":"adminOpenGroupsView","description":"

Opens a Domino® Directory on the selected server and displays its Groups view.

"},{"title":"module:admin~adminOpenServerLog","link":"adminOpenServerLog","description":"

Opens the server log (LOG.NSF) on the selected server.

"},{"title":"module:admin~adminOpenServersView","link":"adminOpenServersView","description":"

Opens a Domino® Directory on the selected server and displays its Servers view.

"},{"title":"module:admin~adminOpenStatistics","link":"adminOpenStatistics","description":"

Opens the statistics reporting database (STATREP5.NSF) on the selected server.

"},{"title":"module:admin~adminOpenUsersView","link":"adminOpenUsersView","description":"

Opens a Domino® Directory on the selected server and displays its People view.

"},{"title":"module:admin~adminOutgoingMail","link":"adminOutgoingMail","description":"

Displays the contents of the selected server's MAIL.BOX file.

"},{"title":"module:admin~adminRegisterFromFile","link":"adminRegisterFromFile","description":"

Displays a series of dialog boxes for certifying multiple new users from a text\nfile.

"},{"title":"module:admin~adminRegisterServer","link":"adminRegisterServer","description":"

Displays a series of dialog boxes for creating a new server ID.

"},{"title":"module:admin~adminRegisterUser","link":"adminRegisterUser","description":"

Displays a series of dialog boxes for certifying new users.

"},{"title":"module:admin~adminRemoteConsole","link":"adminRemoteConsole","description":"

Displays the Remote Server Console dialog box, where an administrator can enter\nserver console commands from a workstation.

"},{"title":"module:admin~adminSendMailTrace","link":"adminSendMailTrace","description":"

Displays the Mail Path Tracing dialog box, which allows you to send a message to\na location on the mail router and receive a trace message in return.

"},{"title":"module:admin~adminStatisticsConfig","link":"adminStatisticsConfig","description":"

Opens the server events database (EVENTS4.NSF) on the selected server and\ndisplays its Servers to Monitor view.

"},{"title":"module:admin~adminTraceConnection","link":"adminTraceConnection","description":"

Displays the Trace Connections dialog box, which allows you to test network\nconnections through a passthru server.

"},{"title":"module:agent","link":"agent","description":"

Agents (Domino)

"},{"title":"module:agent~agentEdit","link":"agentEdit","description":"

Opens the Agent Properties box for the currently selected agent.

"},{"title":"module:agent~agentEnableDisable","link":"agentEnableDisable","description":"

Enables or disables the specified agent.

"},{"title":"module:agent~agentLog","link":"agentLog","description":"

Displays the log for the currently selected agent. The log contains information\nabout when the agent last ran, what actions it performed, and when it finished\nrunning.

"},{"title":"module:agent~agentRun","link":"agentRun","description":"

Runs the currently selected agent and then displays its log.

"},{"title":"module:agent~agentSetServerName","link":"agentSetServerName","description":"

Specifies a scheduled agent to run on a particular server.

"},{"title":"module:agent~agentTestRun","link":"agentTestRun","description":"

Displays a log for the currently selected agent, describing what actions the\nagent will perform when run.

"},{"title":"module:agent~isAgentEnabled","link":"isAgentEnabled","description":"

Indicates whether or not a scheduled agent is enabled.

"},{"title":"module:agent~runAgent","link":"runAgent","description":"

Executes a specified agent.

"},{"title":"module:agent~runScheduledAgents","link":"runScheduledAgents","description":"

Runs all of the database's scheduled agents, regardless of when they are\nscheduled to run. The agents will then run as usual at their regularly scheduled\ntimes.

"},{"title":"module:attachment","link":"attachment","description":"

Attachments

"},{"title":"module:attachment~attachmentDetachAll","link":"attachmentDetachAll","description":"

Displays the Save Attachments To dialog box, where you select a location for the\ncurrent document's attachments.

"},{"title":"module:attachment~attachmentLaunch","link":"attachmentLaunch","description":"

Launches the selected attachment by opening the application in which it was\ncreated, if possible.

"},{"title":"module:attachment~attachmentProperties","link":"attachmentProperties","description":"

Displays the Properties box for the current attachment.

"},{"title":"module:attachment~attachmentView","link":"attachmentView","description":"

Launches the Attachment Viewer, which lets you view the contents of the selected\nattachment without opening the application in which it was created.

"},{"title":"module:compatibility","link":"compatibility","description":"

Compatibility

"},{"title":"module:create","link":"create","description":"

Create

"},{"title":"module:create~compose","link":"compose","description":"

Creates a new, blank document.

"},{"title":"module:create~composeWithReference","link":"composeWithReference","description":"

Creates a new document filling in the Body rich text field with values based on the current document.

"},{"title":"module:create~createAction","link":"createAction","description":"

Creates a new action and opens the design pane, where you can edit the action.

"},{"title":"module:create~createAgent","link":"createAgent","description":"

Creates a new agent in the current database and opens the Agent Properties box,\nwhere you can name and define the agent.

"},{"title":"module:create~createControlledAccessSection","link":"createControlledAccessSection","description":"

Creates a controlled access section on a form or subform. Unlike a regular\nsection, a controlled access section has a formula to determine who can edit it.

"},{"title":"module:create~createEllipse","link":"createEllipse","description":"

Lets you create an ellipse in a navigator. After you invoke the command, the\ncursor changes to a crosshair when you start to drag the mouse in the design\narea. You create an ellipse by dragging the mouse until the ellipse is the size\nyou want.

"},{"title":"module:create~createFolder","link":"createFolder","description":"

Displays the Create Folder dialog box, which lets you choose a location for a\nnew folder and create it.

"},{"title":"module:create~createForm","link":"createForm","description":"

Creates a new, blank form in a database.

"},{"title":"module:create~createLayoutRegion","link":"createLayoutRegion","description":"

Creates a new layout region on a form or subform.

"},{"title":"module:create~createNavigator","link":"createNavigator","description":"

Creates a new, blank navigator in a database.

"},{"title":"module:create~createPolygon","link":"createPolygon","description":"

Lets you create a polygon in a navigator. After you invoke the command, the\ncursor changes to a crosshair when you start to drag the mouse in the design\narea. You create a polygon by clicking the mouse each time you want to start\na new side. Double-click when you are done.

"},{"title":"module:create~createPolyline","link":"createPolyline","description":"

Lets you create a polyline in a navigator. After you invoke the command, the\ncursor changes to a crosshair when you start to drag the mouse in the design\narea. You create a polyline by clicking the mouse each time you want to start\na new line. Double-click when you are done.

"},{"title":"module:create~createRectangle","link":"createRectangle","description":"

Lets you create a rectangle in a navigator. After you invoke the command, the\ncursor changes to a crosshair when you start to drag the mouse in the design\narea. You create a rectangle by dragging the mouse until the rectangle is the\nsize you want.

"},{"title":"module:create~createRectangularHotspot","link":"createRectangularHotspot","description":"

Lets you create a rectangular hotspot in a navigator. After you invoke the\ncommand, the cursor changes to a crosshair when you start to drag the mouse in\nthe design area. You create a rectangular hotspot by dragging the mouse until\nthe rectangle is the size you want.

"},{"title":"module:create~createSection","link":"createSection","description":"

Creates a section.

"},{"title":"module:create~createSubform","link":"createSubform","description":"

Creates a new, blank subform in a database.

"},{"title":"module:create~createTextbox","link":"createTextbox","description":"

Lets you create a textbox in a navigator. After you invoke the command, the\ncursor changes to a crosshair when you start to drag the mouse in the design\narea. You create a textbox by dragging the mouse until the textbox is the size\nyou want.

"},{"title":"module:create~createView","link":"createView","description":"

Displays the Create View dialog box, which lets you choose a location for a new\nview and create it.

"},{"title":"module:database","link":"database","description":"

Database

"},{"title":"module:database~addDatabase","link":"addDatabase","description":"

Adds the specified database icon to the user's workspace, without opening the\ndatabase.

"},{"title":"module:database~addDatabaseRepID","link":"addDatabaseRepID","description":"

Adds an icon to the desktop for the database specified by its replica ID.

"},{"title":"module:database~databaseDelete","link":"databaseDelete","description":"

Permanently deletes the current database file from the hard disk where it is\nstored.

"},{"title":"module:database~databaseReplSettings","link":"databaseReplSettings","description":"

Displays the Replication Settings dialog box for the current database.

"},{"title":"module:database~dAverage","link":"dAverage","description":"

Finds the average of values in a given field from the records (rows) in a\ndatabase that match a search criteria.

"},{"title":"module:database~dB2Schema","link":"dB2Schema","description":"

Given the name of a database as a text string, returns a text string containing\nthe DB2® schema of that database if it is a db2nsf database or the empty string\nif it is not a db2nsf database.

"},{"title":"module:database~dbColumn","link":"dbColumn","description":"

Returns a column of values from a view or folder in a Domino® database.

"},{"title":"module:database~dbCommand","link":"dbCommand","description":"

Accesses view and folder information from a Domino® database in Web applications.

"},{"title":"module:database~dbExists","link":"dbExists","description":"

Given a server and file name, or replica ID, indicates whether the specified\ndatabase exists.

"},{"title":"module:database~dbLookup","link":"dbLookup","description":"

Given a key value, looks in the specified view (or folder) and finds all\ndocuments containing the key value within the view.

"},{"title":"module:database~dbManager","link":"dbManager","description":"

Returns a list of users, groups, and servers who currently have Manager access\nto the database. In a window title formula, only the name of the first manager\nlisted in the ACL is displayed.

\n

@DbManager does not work in selection formulas or column formulas.

"},{"title":"module:database~dbName","link":"dbName","description":"

Returns the name of the current Domino® server and database.

"},{"title":"module:database~dbTitle","link":"dbTitle","description":"

Returns the title of the current database.

"},{"title":"module:database~dCount","link":"dCount","description":"

Counts the number of records (rows) in a database that match a search criteria\nand contain numerical values.

"},{"title":"module:database~dCountA","link":"dCountA","description":"

Counts the number of records (rows) in a database that match a search criteria\nand contain values (as COUNTA).

"},{"title":"module:database~dGet","link":"dGet","description":"

Get the single value in the field from the single record (row) in a database\nthat matches a search criteria.

"},{"title":"module:database~dMax","link":"dMax","description":"

Finds the maximum value in a given field from the records (rows) in a database\nthat match a search criteria.

"},{"title":"module:database~dMin","link":"dMin","description":"

Finds the minimum value in a given field from the records (rows) in a database\nthat match a search criteria.

"},{"title":"module:database~docChildren","link":"docChildren","description":"

In a column or window title formula, returns the number of child documents or\ncategories belonging to the current document or category. Only immediate\nresponses count as children. For example, the responses to a main document are\nits children, but the responses to a response document are not.

"},{"title":"module:database~docDescendants","link":"docDescendants","description":"

In a column or window title formula, returns the number of descendant documents\nor subcategories belonging to the current document or category. Where\n@DocChildren only counts direct descendants, @DocDescendants counts all\ndescendants, regardless of level.

"},{"title":"module:database~docLevel","link":"docLevel","description":"

Returns a text string that represents the level of the document or category.

"},{"title":"module:database~docNumber","link":"docNumber","description":"

In a column or window title formula, returns a string representing the entry\nnumber of the current document or category. For example, 2.3 indicates that the\ndocument is the third entry following the second entry.

"},{"title":"module:database~docParentNumber","link":"docParentNumber","description":"

In a column or window title formula, returns a string that represents the entry\nnumber of the parent view entry. Both the current view entry and the parent can\nbe either documents or categories.

"},{"title":"module:database~docSiblings","link":"docSiblings","description":"

In a column or window title formula, returns a string that represents the total\nnumber of entries at the same level as a view entry (document or category). The\nreturned total includes the document itself. For example, if the document is\nentry 8.2, and entries 8.1, 8.3, and 8.4 also exist, then there are four\ndocument siblings

"},{"title":"module:database~dProduct","link":"dProduct","description":"

Finds the product of values in a given field from the records (rows) in a\ndatabase that match a search criteria.

"},{"title":"module:database~dstDev","link":"dstDev","description":"

Finds the sample standard deviation in a given field from the records (rows) in\na database that match a search criteria.

"},{"title":"module:database~dstDevP","link":"dstDevP","description":"

Finds the population standard deviation in a given field from the records (rows)\nin a database that match a search criteria.

"},{"title":"module:database~dSum","link":"dSum","description":"

Finds the sum of values in a given field from the records (rows) in a database\nthat match a search criteria.

"},{"title":"module:database~dVar","link":"dVar","description":"

Finds the sample variance in a given field from the records (rows) in a database\nthat match a search criteria.

"},{"title":"module:database~dVarP","link":"dVarP","description":"

Finds the population variance in a given field from the records (rows) in a\ndatabase that match a search criteria.

"},{"title":"module:database~findField","link":"findField","description":"

Not listed as a public database function in OpenFormula help

"},{"title":"module:database~getDocField","link":"getDocField","description":"

Given the unique ID of a document, returns the contents of a specific field on\nthat document. The document must reside in the current database.

"},{"title":"module:database~getProfileField","link":"getProfileField","description":"

Retrieves a field from a profile document, and caches the field value for the\nremainder of the session.

"},{"title":"module:database~isCategory","link":"isCategory","description":"

In a column formula, returns a specified string if any item in the row of a view\nis defined as a category.

"},{"title":"module:database~isDB2","link":"isDB2","description":"

Given a server and filename or server and replica ID, indicates if the specified\ndatabase is backed by DB2® or not.

"},{"title":"module:database~isExpandable","link":"isExpandable","description":"

In column formulas, returns a specified string if a row in a view can be\nexpanded.

"},{"title":"module:database~publishDatabase","link":"publishDatabase","description":"

Displays the Publish Database dialog box, where the user selects a library in\nwhich to publish the selected database.

"},{"title":"module:database~renameDatabase","link":"renameDatabase","description":"

For a particular database on the user's workspace, RenameDatabase locates a\nreplica of that database (based on its replica ID) on the specified server, and\nreplaces the database icon with that of the replica. The only change the user\nsees is that the server name has changed on the database icon.

"},{"title":"module:database~replicaID","link":"replicaID","description":"

Returns the replica ID of the current database.

"},{"title":"module:database~selectDocuments","link":"selectDocuments","description":"

Returns a Promise that can be resolved to an array of selected documents.

"},{"title":"module:database~serverName","link":"serverName","description":"

Returns the name of the server containing the current database. When the\ndatabase is local, returns the user name.

"},{"title":"module:database~setDocField","link":"setDocField","description":"

Given the unique ID of a document, sets the value of a specific field on that\ndocument. The document must reside in the current database.

"},{"title":"module:database~setProfileField","link":"setProfileField","description":"

Sets the value of a field in a profile document or creates a profile document.

"},{"title":"module:database~switchView","link":"switchView","description":"

Switches to the specified view or folder within the current database or, if a\nview or folder is not specified, displays the View menu so the user can select\na view.

"},{"title":"module:database~viewTitle","link":"viewTitle","description":"

Returns the current view's name. If there are aliases and synonyms, they are\nreturned in a text list.

"},{"title":"module:database~webDbName","link":"webDbName","description":"

Returns the name of the current database encoded for URL inclusion.

"},{"title":"module:date-time","link":"date-time","description":"

Date & Time

"},{"title":"module:date-time~accessed","link":"accessed","description":"

Indicates the time and date when the document was last accessed by a Notes®\nclient, whether for reading or editing.

"},{"title":"module:date-time~adjust","link":"adjust","description":"

Adjusts the specified time-date value by the number of years, months, days, hours, minutes, and/or seconds you specify.\nThe amount of adjustment may be positive or negative.

"},{"title":"module:date-time~businessDays","link":"businessDays","description":"

Returns the number of business days in one or more date ranges.

"},{"title":"module:date-time~created","link":"created","description":"

Returns the time-date when the document was created.

"},{"title":"module:date-time~date","link":"date","description":"

Constructs the date from year, month, and day of month or translates numbers for the various components of time and date,\nthen returns the time-date value.

"},{"title":"module:date-time~dateDif","link":"dateDif","description":"

Calculates the number of days, months, or years between two dates.

"},{"title":"module:date-time~dateValue","link":"dateValue","description":"

Returns the string representation of the date and time from given text.

"},{"title":"module:date-time~day","link":"day","description":"

Extracts the day of the month from the specified date.

"},{"title":"module:date-time~days","link":"days","description":"

Returns the number of days between two dates.

"},{"title":"module:date-time~days360","link":"days360","description":"

Calculates the number of days between two dates based on a 360-day year.

"},{"title":"module:date-time~eDate","link":"eDate","description":"

Returns the date and time that is the indicated number of months before or after the start date.

"},{"title":"module:date-time~eoMonth","link":"eoMonth","description":"

Returns the string representation of the date and time of the last day of the\nmonth before or after a specified number of months.

"},{"title":"module:date-time~getCurrentTimeZone","link":"getCurrentTimeZone","description":"

Returns the current operating system's time zone settings in canonical time zone\nformat.

"},{"title":"module:date-time~hour","link":"hour","description":"

Extracts the number of the hour (0 through 23) from a specified Date.

"},{"title":"module:date-time~interval","link":"interval","description":"

Calculates the number of years, months, days, hours, minutes and seconds from a specified number of seconds.

"},{"title":"module:date-time~isoWeekNum","link":"isoWeekNum","description":"

Returns the number of the ISO week number of the year for a given date.

"},{"title":"module:date-time~locale","link":"locale","description":"

Returns information about language codes.

"},{"title":"module:date-time~minute","link":"minute","description":"

Extracts the number of the minutes (0 through 23) from a specified Date.

"},{"title":"module:date-time~modified","link":"modified","description":"

Returns a time-date value indicating when the document was modified initially.

"},{"title":"module:date-time~month","link":"month","description":"

Extracts the number of the month from the specified date.

"},{"title":"module:date-time~netWorkDays","link":"netWorkDays","description":"

Return the number of whole workdays between two dates. Working days exclude\nweekends and any dates identified in holidays.

"},{"title":"module:date-time~netWorkDays.intl","link":"intl","description":"

Return the number of whole workdays between two dates using parameters to\nindicate which and how many days are weekend days.

"},{"title":"module:date-time~now","link":"now","description":"

Returns the string representation of the current date and time.

"},{"title":"module:date-time~second","link":"second","description":"

Extracts the number of the seconds (0 through 23) from a specified Date.\nThis function presumes that leap seconds never exist.

"},{"title":"module:date-time~time","link":"time","description":"

Constructs and returns a Date object from one of the following combination of time-date parameters:\n( hour, minute, second ), ( year, month, day, hour, minute, second ),\nor Date object or array of Date objects, as per the notes formula Time function parameters.

"},{"title":"module:date-time~timeMerge","link":"timeMerge","description":"

Builds a time-date value from separate date, time, and time zone values.

"},{"title":"module:date-time~timeValue","link":"timeValue","description":"

Converts a time in the form of text to a serial number.

"},{"title":"module:date-time~today","link":"today","description":"

Returns today's date.

"},{"title":"module:date-time~tomorrow","link":"tomorrow","description":"

Returns the time-date value that corresponds to tomorrow's date.

"},{"title":"module:date-time~weekday","link":"weekday","description":"

Extracts the day of the week from a date; if text, uses current locale to convert to a date.\nReturns a number that identifies the day.

"},{"title":"module:date-time~weekNum","link":"weekNum","description":"

Converts a date to a number representing where the week falls numerically with a year.

\n

There are two systems used for this function:

\n
    \n
  • System 1 The week containing January 1 is the first week of the year, and is numbered week 1.
  • \n
  • System 2 The week containing the first Thursday of the year is the first week of the year,\nand is numbered as week 1. This system is the methodology specified in ISO 8601,\nwhich is commonly known as the European week numbering system.
  • \n
"},{"title":"module:date-time~workDay","link":"workDay","description":"

Return the serial number of the date before or after a specified number of\nworkdays.

"},{"title":"module:date-time~workDay.intl","link":"intl","description":"

Return the string representation of the date before or after a specified number of\nworkdays using parameters to indicate which and how many days are weekend days.

"},{"title":"module:date-time~year","link":"year","description":"

Extracts the number of the month from the specified date.

"},{"title":"module:date-time~yearFrac","link":"yearFrac","description":"

Returns the year fraction representing the number of whole days between start_date and end_date.

"},{"title":"module:date-time~yesterday","link":"yesterday","description":"

Returns the time-date value which corresponds to yesterday's date.

"},{"title":"module:date-time~zone","link":"zone","description":"

Returns the time zone setting of the current computer or of a time-date value,\nand indicates if daylight-saving time is observed.

\n

The time zone is represented as the number of hours that must be added to the\ntime-date to convert it to Greenwich Mean Time.

"},{"title":"module:design","link":"design","description":"

Design

"},{"title":"module:design.designDocumentInfo","link":"designDocumentInfo","description":"

Displays the Properties box for the current document.

"},{"title":"module:design.designFormAttributes","link":"designFormAttributes","description":"

Displays the Properties box for the current form, subform, or page.

"},{"title":"module:design.designFormFieldDef","link":"designFormFieldDef","description":"

Displays the Properties box for the currently selected field.

"},{"title":"module:design.designFormNewField","link":"designFormNewField","description":"

Creates a new field on a form or subform.

"},{"title":"module:design.designForms","link":"designForms","description":"

Displays the Design - Forms view of the current database.

"},{"title":"module:design.designFormShareField","link":"designFormShareField","description":"

Turns a single-use field into a shared field.

"},{"title":"module:design.designFormUseField","link":"designFormUseField","description":"

Displays the Insert Shared Field dialog box, where the user can select a shared\nfield to place on the current form or subform.

"},{"title":"module:design.designFormWindowTitle","link":"designFormWindowTitle","description":"

Displays the design pane and sets the Event edit control to Window Title, so you\ncan define a formula for a form's window title.

"},{"title":"module:design.designHelpAboutDocument","link":"designHelpAboutDocument","description":"

Displays the About document in Edit mode for the current database.

"},{"title":"module:design.designHelpUsingDocument","link":"designHelpUsingDocument","description":"

Displays the Using document in Edit mode for the current database.

"},{"title":"module:design.designIcon","link":"designIcon","description":"

Displays the Design Icon dialog box, where you can edit the icon for the\ncurrently selected database.

"},{"title":"module:design.designMacros","link":"designMacros","description":"

Displays the Agents and Release 3 macros in the current database.

"},{"title":"module:design.designRefresh","link":"designRefresh","description":"

Displays the Refresh Database Design dialog box, where the user can choose a\nserver that contains the design template for the current database.

"},{"title":"module:design.designReplace","link":"designReplace","description":"

Displays the Replace Database Design dialog box, where the user can choose a\ndesign template to replace that of the current database.

"},{"title":"module:design.designSharedFields","link":"designSharedFields","description":"

Displays the Design - Shared Fields view in the current database.

"},{"title":"module:design.designSynopsis","link":"designSynopsis","description":"

Displays the Design Synopsis dialog box so the user can select the types of\ninformation to be included in the synopsis.

"},{"title":"module:design.designViewAppendColumn","link":"designViewAppendColumn","description":"

Creates a column in a view or folder, positioned after the last column.

"},{"title":"module:design.designViewAttributes","link":"designViewAttributes","description":"

Displays the Properties box for the current view or folder.

"},{"title":"module:design.designViewColumnDef","link":"designViewColumnDef","description":"

Displays the Properties box for the currently selected column.

"},{"title":"module:design.designViewEditActions","link":"designViewEditActions","description":"

Displays or hides the action pane.

"},{"title":"module:design.designViewFormFormula","link":"designViewFormFormula","description":"

Displays the Design Form Formula dialog box, where the user can define a formula\nthat determines which form is used to display documents opened from a particular\nview or folder.

"},{"title":"module:design.designViewNewColumn","link":"designViewNewColumn","description":"

Creates a new column before the currently selected column in a view or folder.

"},{"title":"module:design.designViews","link":"designViews","description":"

Displays the Design - Views view in the current database.

"},{"title":"module:design.designViewSelectFormula","link":"designViewSelectFormula","description":"

Displays the design pane and sets the Define control to View Selection, which\nallows you to define a selection formula to determine which documents are\ndisplayed in a view.

"},{"title":"module:directory","link":"directory","description":"

Directory

"},{"title":"module:directory~nameLookup","link":"nameLookup","description":"

Searches for each specified user name across all Domino® Directories and returns\na list of single text values for each specified user name.

"},{"title":"module:directory~orgDir","link":"orgDir","description":"

In a Service Provider (xSP) environment, returns the name of the subdirectory\nfor the company with which the currently authenticated user is registered. Notes/\nDomino retrieves this information from the organization's certifier document.

"},{"title":"module:document","link":"document","description":"

Document

"},{"title":"module:document~addToFolder","link":"addToFolder","description":"

Adds current document to one folder while removing it from another. NULL string\ncan be substituted for either argument to skip the action.

"},{"title":"module:document~all","link":"all","description":"

Returns the value True.

"},{"title":"module:document~allChildren","link":"allChildren","description":"

Includes all response documents at all levels for parent documents that match\nselection criteria.

"},{"title":"module:document~allDescendants","link":"allDescendants","description":"

Includes all response and response-to-response documents for parents that match\nselection criteria.

"},{"title":"module:document~attachmentLengths","link":"attachmentLengths","description":"

Returns a number or a number list containing the length of each attachment to\nthe current document. The number(s) returned are only approximations; the actual\nsize(s) of the attachment(s) may be slightly different.

"},{"title":"module:document~attachmentModifiedTimes","link":"attachmentModifiedTimes","description":"

Returns a datetime that displays the date on which the file attachment\nassociated with the current document was last modified. If the document contains\nmore than one file attachment, returns the modification dates in a datetime list.

"},{"title":"module:document~attachmentNames","link":"attachmentNames","description":"

Returns the operating system file names of any files attached to a document. If\nthere are multiple files attached, the names are returned as a multiple-value\ntext list.

"},{"title":"module:document~attachments","link":"attachments","description":"

Returns the number of files attached to a document.

"},{"title":"module:document~author","link":"author","description":"

Returns a text list containing the names of the author(s) of the current document.

"},{"title":"module:document~chooseFolders","link":"chooseFolders","description":"

Displays the Folders dialog box, which allows you to select a folder in which to\nfile the current document.

"},{"title":"module:document~deleteDocument","link":"deleteDocument","description":"

Deletes the current document.

"},{"title":"module:document~deleteField","link":"deleteField","description":"

Deletes the value of an editable field.

"},{"title":"module:document~discoverFolders","link":"discoverFolders","description":"

Displays the "Folders containing current document" dialog box.

"},{"title":"module:document~docFields","link":"docFields","description":"

Returns a list of all the fields in a document.

"},{"title":"module:document~docLength","link":"docLength","description":"

Returns the approximate size of a document in bytes.

"},{"title":"module:document~docLock","link":"docLock","description":"

Locks, unlocks, returns the locked status of the current document, or indicates\nif a database has document locking enabled.

"},{"title":"module:document~docMark","link":"docMark","description":"

In an agent that runs a formula, indicates whether or not you want to save the\nchanges to a document.

"},{"title":"module:document~docOmmittedLength","link":"docOmmittedLength","description":"

Returns the approximate number of bytes a truncated document lost during\nreplication. The bytes are the total number of bytes per attachment, OLE object,\nlarge rich text field, or non-summary items that were too large, according to\nthe replication settings for the database, to be replicated.

"},{"title":"module:document~documentUniqueID","link":"documentUniqueID","description":"

The universal ID, which uniquely identifies a document across all replicas of a\ndatabase. In text format, the universal ID is a 32-character combination of\nhexadecimal digits (0-9, A-F).

\n

The universal ID is also known as the unique ID or UNID.

"},{"title":"module:document~formLanguage","link":"formLanguage","description":"

Returns the language of the current form.

"},{"title":"module:document~formTestDocument","link":"formTestDocument","description":"

Creates a document using the current form or Page, so you can test its fields,\nformulas, and scripts.

"},{"title":"module:document~getField","link":"getField","description":"

Returns the value of a specified field.

"},{"title":"module:document~getFieldType","link":"getFieldType","description":"

Returns the type of a specified field.

"},{"title":"module:document~getFocusTable","link":"getFocusTable","description":"

Returns the name, current row, or current column of the table that is in focus.

"},{"title":"module:document~hardDeleteDocument","link":"hardDeleteDocument","description":"

In an agent that runs a formula, @HardDeleteDocument permanently removes the\ndocument currently being processed from the database if the database has soft\ndeletions enabled. If the database does not have soft deletions enabled,\n@HardDeleteDocument performs the same action as @DeleteDocument.

"},{"title":"module:document~inheritedDocumentUniqueID","link":"inheritedDocumentUniqueID","description":"

The unique ID of the current document's inheritance parent. See\n@documentUniqueID for a description of unique IDs.

"},{"title":"module:document~isAvailable","link":"isAvailable","description":"

Checks a document for the existence of a field.

"},{"title":"module:document~isDocBeingEdited","link":"isDocBeingEdited","description":"

Checks the current status of the document and returns 1 (True) if the document\nis being edited; otherwise returns 0 (False).

"},{"title":"module:document~isDocBeingLoaded","link":"isDocBeingLoaded","description":"

Checks the current status of the document and returns 1 (True) if the document\nis being loaded into memory for display; otherwise returns 0 (False).

"},{"title":"module:document~isDocBeingMailed","link":"isDocBeingMailed","description":"

Checks the current status of the document and returns 1 (True) if the document\nis being mailed; otherwise, returns 0 (False).

"},{"title":"module:document~isDocBeingRecalculated","link":"isDocBeingRecalculated","description":"

Checks the current status of the document and returns 1 (True) if the document\nis being recalculated; otherwise, returns 0 (False).

"},{"title":"module:document~isDocBeingSaved","link":"isDocBeingSaved","description":"

Checks the current status of the document and returns 1 (True) if the document\nis being saved; otherwise, returns 0 (False).

"},{"title":"module:document~isDocTruncated","link":"isDocTruncated","description":"

Indicates whether the current document has been truncated.

"},{"title":"module:document~isNewDoc","link":"isNewDoc","description":"

For a document being edited, indicates if the document has been saved to disk.

"},{"title":"module:document~isResponseDoc","link":"isResponseDoc","description":"

Indicates whether a document is a response to another document.

"},{"title":"module:document~isUnavailable","link":"isUnavailable","description":"

Indicates whether a field name exists in a document.

"},{"title":"module:document~moveToTrash","link":"moveToTrash","description":"

Marks the currently selected document for deletion.

"},{"title":"module:document~noteID","link":"noteID","description":"

The ID number of the current document.

"},{"title":"module:document~openInNewWindow","link":"openInNewWindow","description":"

Opens the specified document within a new window.

"},{"title":"module:document~pickList","link":"pickList","description":"

Displays a modal window that contains either:

\n
    \n
  • A view you specify from which the user can select one or more documents.\n@pickList returns a column value from the selected document(s).
  • \n
  • A dialog box, displaying information from all available Domino® Directories.\nThe user can select one or more person, group, server, room, or resource names,\nand @pickList returns those names.
  • \n
"},{"title":"module:document~policyIsFieldLocked","link":"policyIsFieldLocked","description":"

Indicates whether a field is locked by an administration policy and cannot be\nmodified.

"},{"title":"module:document~prompt","link":"prompt","description":"

Get html to generate a prompt.

"},{"title":"module:document~removeFromFolder","link":"removeFromFolder","description":"

Removes the selected document from the current folder.

"},{"title":"module:document~responses","link":"responses","description":"

Returns the number of responses (in the current view) to the document.

"},{"title":"module:document~setField","link":"setField","description":"

Assigns a value to a field stored within a document (use @set for temporary\nvariables). This is similar to using the FIELD keyword, except that @setField\ncan be used within another @function. If the field does not exist, this\ncommand creates it and applies the specified value to it.

"},{"title":"module:document~setTargetFrame","link":"setTargetFrame","description":"

Allows you to specify a target frame when opening a view, page, or frameset, or\nwhen composing or editing a document.

"},{"title":"module:document~showParentPreview","link":"showParentPreview","description":"

Displays the parent document preview pane.

"},{"title":"module:document~showProperties","link":"showProperties","description":"

Displays the Properties box for the currently selected Notes® object. For\nexample, if a document is selected in a view, displays the document Properties\nbox; if a field is selected on a form, displays the field Properties box.

"},{"title":"module:document~switchForm","link":"switchForm","description":"

Changes the form used to display the current document.

"},{"title":"module:document~unavailable","link":"unavailable","description":"

Deletes the value of an editable field.

"},{"title":"module:document~undeleteDocument","link":"undeleteDocument","description":"

In a database with "Allow soft deletions" selected, this command restores a\ndeleted document.

"},{"title":"module:document~v3EditNextField","link":"v3EditNextField","description":"

In a document in Edit mode, moves the insertion point to the next editable field.

"},{"title":"module:document~v3EditPrevField","link":"v3EditPrevField","description":"

In a document in Edit mode, moves the insertion point to the first editable field.

"},{"title":"module:document~whichFolders","link":"whichFolders","description":"

Returns the names of the folders containing the current document.

"},{"title":"module:edit","link":"edit","description":"

Edit

"},{"title":"module:edit~editBottom","link":"editBottom","description":"

Moves the insertion point to the end of a document or form.

"},{"title":"module:edit~editButton","link":"editButton","description":"

Displays the design pane and the Properties box for the selected button.

"},{"title":"module:edit~editClear","link":"editClear","description":"

Performs the menu command Edit - Delete.

"},{"title":"module:edit~editCopy","link":"editCopy","description":"

Performs the menu command Edit - Copy.

"},{"title":"module:edit~editCut","link":"editCut","description":"

Performs the menu command Edit - Cut.

"},{"title":"module:edit~editDeselectAll","link":"editDeselectAll","description":"

Performs the menu command Edit - Deselect All.

"},{"title":"module:edit~editDetach","link":"editDetach","description":"

Detaches a file attachment to a location you specify.

"},{"title":"module:edit~editDocument","link":"editDocument","description":"

Places the current document into the mode you specify. If you don't specify a\nmode, toggles between Read and Edit mode.

"},{"title":"module:edit~editDown","link":"editDown","description":"

Moves the insertion point in a document down by the number of lines you specify.\nIf you don't specify a number, moves the insertion point down one line.

"},{"title":"module:edit~editEncryptionKeys","link":"editEncryptionKeys","description":"

Displays the Properties box for the current document, where you can edit its\nencryption keys.

"},{"title":"module:edit~editFind","link":"editFind","description":"

Performs the menu command Edit - Find/Replace.

"},{"title":"module:edit~editFindInPreview","link":"editFindInPreview","description":"

Performs the menu command Edit - Find/Replace without moving the focus to the\nediting window. This allows searches to take place when the focus is on the view\nor folder panes.

"},{"title":"module:edit~editFindNext","link":"editFindNext","description":"

Performs the menu command Edit - Find Next.

"},{"title":"module:edit~editGotoField","link":"editGotoField","description":"

In a document in Edit mode, places the insertion point in a field you specify.

"},{"title":"module:edit~editHeaderFooter","link":"editHeaderFooter","description":"

Displays the Properties box for the current document or form, which allows you\nto set headers, footers, and other print attributes.

"},{"title":"module:edit~editHorizScrollbar","link":"editHorizScrollbar","description":"

Toggles the horizontal scroll bar in a document.

"},{"title":"module:edit~editIndent","link":"editIndent","description":"

Indents a paragraph 1/4 inch. The entire paragraph is indented, as well as any\nparagraphs that are subsequently typed below it, until the user disables\nindenting.

"},{"title":"module:edit~editIndentFirstLine","link":"editIndentFirstLine","description":"

Indents the first line of a paragraph 1/4 inch. The first line of the current\nparagraph is indented, as well as first lines of subsequently typed paragraphs,\nuntil the user disables indenting. (A carriage return defines a new paragraph.)

"},{"title":"module:edit~editInsertButton","link":"editInsertButton","description":"

Creates a new button and displays the design pane, where the user can define a\nformula, simple action(s), LotusScript®, or JavaScript™ for the button.

"},{"title":"module:edit~editInsertFileAttachment","link":"editInsertFileAttachment","description":"

Attaches a file to a document.

"},{"title":"module:edit~editInsertObject","link":"editInsertObject","description":"

Inserts an object into a document, form, or subform.

"},{"title":"module:edit~editInsertPageBreak","link":"editInsertPageBreak","description":"

Inserts a forced page break into a document, form, subform, or page.

"},{"title":"module:edit~editInsertPopup","link":"editInsertPopup","description":"

Creates a hotspot that displays text.

"},{"title":"module:edit~editInsertTable","link":"editInsertTable","description":"

Displays the Create Table dialog box, where the user can specify the number of\nrows and columns in a new table.

"},{"title":"module:edit~editInsertText","link":"editInsertText","description":"

Inserts the specified string at the current cursor position.

"},{"title":"module:edit~editLeft","link":"editLeft","description":"

Moves the insertion point in a document, form, subform, or page to the left by\nthe number of spaces you specify. If you don't specify a number, moves the\ninsertion point one space to the left.

"},{"title":"module:edit~editLinks","link":"editLinks","description":"

Displays the External Links dialog box.

"},{"title":"module:edit~editLocations","link":"editLocations","description":"

Opens the Personal Address Book to the Locations view.

"},{"title":"module:edit~editMakeDocLink","link":"editMakeDocLink","description":"

Creates a link to the current document and copies it to the Clipboard. The user\ncan paste the link into any rich text field.

"},{"title":"module:edit~editNextField","link":"editNextField","description":"

In a document in Edit mode, moves the insertion point to the next editable field\nin the document, working left to right, beginning to end.

"},{"title":"module:edit~editOpenLink","link":"editOpenLink","description":"

Opens the selected link.

"},{"title":"module:edit~editOwnerVCard","link":"editOwnerVCard","description":"

Displays the My Contact/vCard Edit dialog using the Contact form.

"},{"title":"module:edit~editPaste","link":"editPaste","description":"

Performs the menu command Edit - Paste.

"},{"title":"module:edit~editPasteSpecial","link":"editPasteSpecial","description":"

Displays the Paste Special dialog box.

"},{"title":"module:edit~editPhoneNumbers","link":"editPhoneNumbers","description":"

Displays the Server/Connections view of the Personal Address Book.

"},{"title":"module:edit~editPrevField","link":"editPrevField","description":"

In a document in Edit mode, moves the insertion point to the previous editable\nfield in the document, working right to left, end to beginning.

"},{"title":"module:edit~editProfile","link":"editProfile","description":"

Opens a new or existing profile document in Edit mode.

"},{"title":"module:edit~editProfileDocument","link":"editProfileDocument","description":"

Creates a new or opens an existing profile document in Edit mode.

"},{"title":"module:edit~editQuoteSelection","link":"editQuoteSelection","description":"

Makes selected text look like an Internet-style reply by prefixing each line\nwith a greater-than sign and removing attachments and other objects. This sets\neach line of the message to a default length, preventing it from wrapping in\nunexpected places when sent to non-Notes users.

"},{"title":"module:edit~editResizePicture","link":"editResizePicture","description":"

Displays the proportions of the selected graphic at the end of the screen. The\nuser can size the picture by dragging the mouse in the appropriate direction.

"},{"title":"module:edit~editRestoreDocument","link":"editRestoreDocument","description":"

Performs the menu command Edit - Restore.

"},{"title":"module:edit~editRight","link":"editRight","description":"

Moves the insertion point in a document to the right by the number of spaces you\nspecify. If you don't specify a number, moves the insertion point one space to\nthe right.

"},{"title":"module:edit~editSelectAll","link":"editSelectAll","description":"

Performs the menu command Edit - Select All.

"},{"title":"module:edit~editSelectByDate","link":"editSelectByDate","description":"

Displays the Select by Date dialog box, where the user indicates which documents\nshould be selected in the view or folder, according to the date they were\ncreated or last modified.

"},{"title":"module:edit~editShowHideHiddenChars","link":"editShowHideHiddenChars","description":"

Toggles the display of the hidden characters (such as spaces, tabs, and carriage\nreturns) in a document, form, or subform.

"},{"title":"module:edit~editTableDeleteRowColumn","link":"editTableDeleteRowColumn","description":"

Displays the Delete Row/Column dialog box, where the user can select the number\nof rows or columns to delete from the current table.

"},{"title":"module:edit~editTableFormat","link":"editTableFormat","description":"

Displays the Properties box for the selected table.

"},{"title":"module:edit~editTableInsertRowColumn","link":"editTableInsertRowColumn","description":"

Displays the Insert Row/Column dialog box, where the user can select the number\nof rows or columns to insert into the table.

"},{"title":"module:edit~editTop","link":"editTop","description":"

Moves the insertion point to the beginning of a document or form.

"},{"title":"module:edit~editUndo","link":"editUndo","description":"

Performs the menu command Edit - Undo, which undoes the previous reversible\noperation.

"},{"title":"module:edit~editUntruncate","link":"editUntruncate","description":"

Retrieves the full version of a truncated document.

"},{"title":"module:edit~editUp","link":"editUp","description":"

Moves the insertion point in a document up by the number of lines you specify.\nIf you don't specify a number, moves the insertion point up one line.

"},{"title":"module:engineering","link":"engineering","description":"

Engineering

"},{"title":"module:engineering~besselI","link":"besselI","description":"

Returns the modified Bessel function In(x).

"},{"title":"module:engineering~besselJ","link":"besselJ","description":"

Returns the Bessel function Jn(x).

"},{"title":"module:engineering~besselK","link":"besselK","description":"

Returns the modified Bessel function Kn(x).

"},{"title":"module:engineering~besselY","link":"besselY","description":"

Returns the Bessel function Yn(x).

"},{"title":"module:engineering~bin2Dec","link":"bin2Dec","description":"

Converts a binary number to decimal.

"},{"title":"module:engineering~bin2Hex","link":"bin2Hex","description":"

Converts a binary number to hexadecimal.

"},{"title":"module:engineering~bin2Oct","link":"bin2Oct","description":"

Converts a binary number to octal.

"},{"title":"module:engineering~bitAnd","link":"bitAnd","description":"

Returns a bitwise 'AND' of two numbers.

"},{"title":"module:engineering~bitLShift","link":"bitLShift","description":"

Returns a value number shifted left by shift_amount bits.

"},{"title":"module:engineering~bitOr","link":"bitOr","description":"

Returns a bitwise 'OR' of two numbers.

"},{"title":"module:engineering~bitRShift","link":"bitRShift","description":"

Returns a value number shifted right by shift_amount bits.

"},{"title":"module:engineering~bitXOr","link":"bitXOr","description":"

Returns a bitwise 'XOR' of two numbers.

"},{"title":"module:engineering~complex","link":"complex","description":"

Converts real and imaginary coefficients into a complex number.

"},{"title":"module:engineering~convert","link":"convert","description":"

Converts a number from one measurement system to another.

"},{"title":"module:engineering~dec2Bin","link":"dec2Bin","description":"

Converts a decimal number to binary.

"},{"title":"module:engineering~dec2Hex","link":"dec2Hex","description":"

Converts a decimal number to hexadecimal.

"},{"title":"module:engineering~dec2Oct","link":"dec2Oct","description":"

Converts a decimal number to octal.

"},{"title":"module:engineering~delta","link":"delta","description":"

Tests whether two values are equal.

"},{"title":"module:engineering~erf","link":"erf","description":"

Returns the error function integrated between lower_limit and upper_limit.

"},{"title":"module:engineering~erf.precise","link":"precise","description":"

Returns the error function.

"},{"title":"module:engineering~erfc","link":"erfc","description":"

Returns the complementary error function.

"},{"title":"module:engineering~erfc.precise","link":"precise","description":"

Returns the complementary ERF function integrated between x and infinity.

"},{"title":"module:engineering~geStep","link":"geStep","description":"

Tests whether a number is greater than a threshold value.

"},{"title":"module:engineering~hex2Bin","link":"hex2Bin","description":"

Converts a hexadecimal number to binary.

"},{"title":"module:engineering~hex2Dec","link":"hex2Dec","description":"

Converts a hexadecimal number to decimal.

"},{"title":"module:engineering~hex2Oct","link":"hex2Oct","description":"

Converts a hexadecimal number to octal

"},{"title":"module:engineering~imAbs","link":"imAbs","description":"

Returns the absolute value (modulus) of a complex number.

"},{"title":"module:engineering~imaginary","link":"imaginary","description":"

Returns the imaginary coefficient of a complex number.

"},{"title":"module:engineering~imArgument","link":"imArgument","description":"

Returns the argument theta, an angle expressed in radians.

"},{"title":"module:engineering~imConjugate","link":"imConjugate","description":"

Returns the complex conjugate of a complex number.

"},{"title":"module:engineering~imCos","link":"imCos","description":"

Returns the cosine of a complex number.

"},{"title":"module:engineering~imCosh","link":"imCosh","description":"

Returns the hyperbolic cosine of a complex number.

"},{"title":"module:engineering~imCot","link":"imCot","description":"

Returns the cotangent of a complex number.

"},{"title":"module:engineering~imCsc","link":"imCsc","description":"

Returns the cosecant of a complex number.

"},{"title":"module:engineering~imCsch","link":"imCsch","description":"

Returns the hyperbolic cosecant of a complex number.

"},{"title":"module:engineering~imDiv","link":"imDiv","description":"

Returns the quotient of two complex numbers.

"},{"title":"module:engineering~imExp","link":"imExp","description":"

Returns the exponential of a complex number.

"},{"title":"module:engineering~imLn","link":"imLn","description":"

Returns the natural logarithm of a complex number.

"},{"title":"module:engineering~imLog2","link":"imLog2","description":"

Returns the base-2 logarithm of a complex number.

"},{"title":"module:engineering~imLog10","link":"imLog10","description":"

Returns the base-10 logarithm of a complex number.

"},{"title":"module:engineering~imPower","link":"imPower","description":"

Returns a complex number raised to an integer power.

"},{"title":"module:engineering~imProduct","link":"imProduct","description":"

Returns the product of from 2 to 255 complex numbers.

"},{"title":"module:engineering~imReal","link":"imReal","description":"

Returns the real coefficient of a complex number.

"},{"title":"module:engineering~imSec","link":"imSec","description":"

Returns the secant of a complex number.

"},{"title":"module:engineering~imSech","link":"imSech","description":"

Returns the hyperbolic secant of a complex number.

"},{"title":"module:engineering~imSin","link":"imSin","description":"

Returns the sine of a complex number.

"},{"title":"module:engineering~imSinh","link":"imSinh","description":"

Returns the hyperbolic sine of a complex number.

"},{"title":"module:engineering~imSqrt","link":"imSqrt","description":"

Returns the square root of a complex number.

"},{"title":"module:engineering~imSub","link":"imSub","description":"

Returns the difference between two complex numbers.

"},{"title":"module:engineering~imSum","link":"imSum","description":"

Returns the sum of complex numbers.

"},{"title":"module:engineering~imTan","link":"imTan","description":"

Returns the tangent of a complex number.

"},{"title":"module:engineering~oct2Bin","link":"oct2Bin","description":"

Converts an octal number to binary.

"},{"title":"module:engineering~oct2Dec","link":"oct2Dec","description":"

Converts an octal number to decimal.

"},{"title":"module:engineering~oct2Hex","link":"oct2Hex","description":"

Converts an octal number to hexadecimal.

"},{"title":"module:file","link":"file","description":"

File

"},{"title":"module:file~fileCloseWindow","link":"fileCloseWindow","description":"

Closes the current Notes® window. If the document or design element in that\nwindow has not been saved, Notes® prompts the user to save it before closing.

"},{"title":"module:file~fileDatabaseACL","link":"fileDatabaseACL","description":"

Displays the access control list for the current database.

"},{"title":"module:file~fileDatabaseCompact","link":"fileDatabaseCompact","description":"

Compacts the white space in a database, and at the same time, converts the old\ndatabase to the new format.

"},{"title":"module:file~fileDatabaseCopy","link":"fileDatabaseCopy","description":"

Displays the Copy Database dialog box, where the user can copy the current\ndatabase to a new location.

"},{"title":"module:file~fileDatabaseDelete","link":"fileDatabaseDelete","description":"

Permanently deletes the current database file from the hard disk where it is\nstored.

"},{"title":"module:file~fileDatabaseInfo","link":"fileDatabaseInfo","description":"

Displays the Properties box for the current database.

"},{"title":"module:file~fileDatabaseRemove","link":"fileDatabaseRemove","description":"

Removes the current database icon from the workspace.

"},{"title":"module:file~fileDatabaseUseServer","link":"fileDatabaseUseServer","description":"

Displays the Switch Servers dialog box, where the user can choose a server that\ncontains a replica of the currently selected database.

"},{"title":"module:file~fileExit","link":"fileExit","description":"

Performs the menu command File - Exit (File - Quit on the Macintosh), which\ncloses Notes/Domino and all its open windows.

"},{"title":"module:file~fileExport","link":"fileExport","description":"

Exports a Notes/Domino document or view.

"},{"title":"module:file~fileFullTextCreate","link":"fileFullTextCreate","description":"

Displays the Full-Text Create Index dialog box, where the user can specify\nsettings for the database's full-text index.

"},{"title":"module:file~fileFullTextDelete","link":"fileFullTextDelete","description":"

Deletes a database's full-text index.

"},{"title":"module:file~fileFullTextInfo","link":"fileFullTextInfo","description":"

Displays the Full Text tab of the current database's Properties box.

"},{"title":"module:file~fileFullTextUpdate","link":"fileFullTextUpdate","description":"

Updates full-text indexes for local databases or queues the update request for\nserver-based databases.

"},{"title":"module:file~fileImport","link":"fileImport","description":"

Imports a file into a Notes/Domino document or view.

"},{"title":"module:file~fileNewDatabase","link":"fileNewDatabase","description":"

Displays the New Database dialog box, where the user can select a server, title,\nand file name for a new database.

"},{"title":"module:file~fileNewReplica","link":"fileNewReplica","description":"

Displays the New Replica dialog box, where the user can create a replica of the\ncurrent database.

"},{"title":"module:file~fileOpenDatabase","link":"fileOpenDatabase","description":"

Opens the specified database to the specified view, highlighting the first\ndocument whose value in the sort column matches the key. You specify a database\nusing its server and file name.

"},{"title":"module:file~fileOpenDBRepID","link":"fileOpenDBRepID","description":"

Opens the specified database to the specified view, highlighting the first\ndocument whose value in the sort column matches the key. You specify a database\nusing its replica ID, and Notes/Domino searches the workspace and all servers\navailable in the current session to find a replica.

"},{"title":"module:file~filePageSetup","link":"filePageSetup","description":"

Displays the Page Setup dialog box (or, on the Macintosh, the File Print Margins\ndialog box), which allows you to specify print settings for the selected\ndatabase.

"},{"title":"module:file~filePrint","link":"filePrint","description":"

Prints the currently open or selected document(s), or the current view.

"},{"title":"module:file~filePrintSetup","link":"filePrintSetup","description":"

Displays the Print Setup dialog box, which allows you to direct the current view\nor document to a printer or a file that you specify.

"},{"title":"module:file~fileSave","link":"fileSave","description":"

Performs the menu command File - Save.

"},{"title":"module:file~fileSaveNewVersion","link":"fileSaveNewVersion","description":"

Saves a document as a new version.

"},{"title":"module:financial","link":"financial","description":"

Financial

"},{"title":"module:financial~accrInt","link":"accrInt","description":"

Returns the modified Bessel function In(x).

"},{"title":"module:financial~accrIntM","link":"accrIntM","description":"

Returns the accrued interest for a security that pays interest at maturity.

\n

Category: Financial

"},{"title":"module:financial~amorDegrc","link":"amorDegrc","description":"

Returns the depreciation for each accounting period by using a depreciation coefficient.

\n

Category: Financial

"},{"title":"module:financial~amorLinc","link":"amorLinc","description":"

Returns the depreciation for each accounting period.

\n

Category: Financial

"},{"title":"module:financial~coupDayBS","link":"coupDayBS","description":"

Returns the number of days from the beginning of the coupon period to the settlement date.

\n

Category: Financial

"},{"title":"module:financial~coupDays","link":"coupDays","description":"

Returns the number of days in the coupon period that contains the settlement date.

\n

Category: Financial

"},{"title":"module:financial~coupDaySnc","link":"coupDaySnc","description":"

Returns the number of days from the settlement date to the next coupon date.

\n

Category: Financial

"},{"title":"module:financial~coupNCD","link":"coupNCD","description":"

Returns the next coupon date after the settlement date.

\n

Category: Financial

"},{"title":"module:financial~coupNum","link":"coupNum","description":"

Returns the number of coupons payable between the settlement date and maturity date.

\n

Category: Financial

"},{"title":"module:financial~coupPCD","link":"coupPCD","description":"

Returns the previous coupon date before the settlement date.

\n

Category: Financial

"},{"title":"module:financial~cumIPmt","link":"cumIPmt","description":"

Returns the cumulative interest paid between two periods.

\n

Category: Financial

"},{"title":"module:financial~cumPrinc","link":"cumPrinc","description":"

Returns the cumulative principal paid on a loan between two periods.

\n

Category: Financial

"},{"title":"module:financial~db","link":"db","description":"

Returns the depreciation of an asset for a specified period by using the fixed-declining balance method.

\n

Category: Financial

"},{"title":"module:financial~ddb","link":"ddb","description":"

Returns the depreciation of an asset for a specified period by using the double-declining balance method or some other method that you specify.

\n

Category: Financial

"},{"title":"module:financial~disc","link":"disc","description":"

Returns the discount rate for a security.

\n

Category: Financial

"},{"title":"module:financial~dollarDe","link":"dollarDe","description":"

Converts a dollar price, expressed as a fraction, into a dollar price, expressed as a decimal number.

\n

Category: Financial

"},{"title":"module:financial~dollarFr","link":"dollarFr","description":"

Converts a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction.

\n

Category: Financial

"},{"title":"module:financial~duration","link":"duration","description":"

Returns the annual duration of a security with periodic interest payments.

\n

Category: Financial

"},{"title":"module:financial~effect","link":"effect","description":"

Returns the effective annual interest rate.

\n

Category: Financial

"},{"title":"module:financial~fv","link":"fv","description":"

Returns the future value of an investment.

\n

Category: Financial

"},{"title":"module:financial~fvSchedule","link":"fvSchedule","description":"

Returns the future value of an initial principal after applying a series of compound interest rates.

\n

Category: Financial

"},{"title":"module:financial~intRate","link":"intRate","description":"

Returns the interest rate for a fully invested security.

\n

Category: Financial

"},{"title":"module:financial~iPmt","link":"iPmt","description":"

Returns the interest payment for an investment for a given period.

\n

Category: Financial

"},{"title":"module:financial~irr","link":"irr","description":"

Returns the internal rate of return for a series of cash flows.

\n

Category: Financial

"},{"title":"module:financial~isPmt","link":"isPmt","description":"

Calculates the interest paid during a specific period of an investment.

\n

Category: Financial

"},{"title":"module:financial~mDuration","link":"mDuration","description":"

Returns the Macauley modified duration for a security with an assumed par value of $100.

\n

Category: Financial

"},{"title":"module:financial~mirr","link":"mirr","description":"

Returns the internal rate of return where positive and negative cash flows are financed at different rates.

\n

Category: Financial

"},{"title":"module:financial~nominal","link":"nominal","description":"

Returns the annual nominal interest rate.

\n

Category: Financial

"},{"title":"module:financial~nPer","link":"nPer","description":"

Returns the number of periods for an investment.

\n

Category: Financial

"},{"title":"module:financial~npv","link":"npv","description":"

Returns the net present value of an investment based on a series of periodic cash flows and a discount rate.

\n

Category: Financial

"},{"title":"module:financial~oddFPrice","link":"oddFPrice","description":"

Returns the price per $100 face value of a security with an odd first period.

\n

Category: Financial

"},{"title":"module:financial~oddFYield","link":"oddFYield","description":"

Returns the yield of a security with an odd first period.

\n

Category: Financial

"},{"title":"module:financial~oddLPrice","link":"oddLPrice","description":"

Returns the price per $100 face value of a security with an odd last period.

\n

Category: Financial

"},{"title":"module:financial~oddLYield","link":"oddLYield","description":"

Returns the yield of a security with an odd last period.

\n

Category: Financial

"},{"title":"module:financial~pDuration","link":"pDuration","description":"

Returns the number of periods required by an investment to reach a specified value.

\n

Category: Financial

"},{"title":"module:financial~pmt","link":"pmt","description":"

Returns the periodic payment for an annuity.

\n

Category: Financial

"},{"title":"module:financial~pPmt","link":"pPmt","description":"

Returns the payment on the principal for an investment for a given period.

\n

Category: Financial

"},{"title":"module:financial~price","link":"price","description":"

Returns the price per $100 face value of a security that pays periodic interest.

\n

Category: Financial

"},{"title":"module:financial~priceDisc","link":"priceDisc","description":"

Returns the price per $100 face value of a discounted security.

\n

Category: Financial

"},{"title":"module:financial~priceMat","link":"priceMat","description":"

Returns the price per $100 face value of a security that pays interest at maturity.

\n

Category: Financial

"},{"title":"module:financial~pv","link":"pv","description":"

Returns the present value of an investment.

\n

Category: Financial

"},{"title":"module:financial~rate","link":"rate","description":"

Returns the interest rate per period of an annuity.

\n

Category: Financial

"},{"title":"module:financial~received","link":"received","description":"

Returns the amount received at maturity for a fully invested security.

\n

Category: Financial

"},{"title":"module:financial~rri","link":"rri","description":"

Returns an equivalent interest rate for the growth of an investment.

\n

Category: Financial

"},{"title":"module:financial~sln","link":"sln","description":"

Returns the straight-line depreciation of an asset for one period.

\n

Category: Financial

"},{"title":"module:financial~syd","link":"syd","description":"

Returns the sum-of-years' digits depreciation of an asset for a specified period.

\n

Category: Financial

"},{"title":"module:financial~tbillEq","link":"tbillEq","description":"

Returns the bond-equivalent yield for a Treasury bill.

\n

Category: Financial

"},{"title":"module:financial~tbillPrice","link":"tbillPrice","description":"

Returns the price per $100 face value for a Treasury bill.

\n

Category: Financial

"},{"title":"module:financial~tbillYield","link":"tbillYield","description":"

Returns the yield for a Treasury bill.

\n

Category: Financial

"},{"title":"module:financial~vdb","link":"vdb","description":"

Returns the depreciation of an asset for a specified or partial period by using a declining balance method.

\n

Category: Financial

"},{"title":"module:financial~xirr","link":"xirr","description":"

Returns the internal rate of return for a schedule of cash flows that is not necessarily periodic.

\n

Category: Financial

"},{"title":"module:financial~xnpv","link":"xnpv","description":"

Returns the net present value for a schedule of cash flows that is not necessarily periodic.

\n

Category: Financial

"},{"title":"module:financial~Yield","link":"Yield","description":"

Returns the yield on a security that pays periodic interest.

\n

Category: Financial

"},{"title":"module:financial~yieldDisc","link":"yieldDisc","description":"

Returns the annual yield for a discounted security; for example, a Treasury bill.

\n

Category: Financial

"},{"title":"module:financial~yieldMat","link":"yieldMat","description":"

Returns the annual yield of a security that pays interest at maturity.

\n

Category: Financial

"},{"title":"module:folder","link":"folder","description":"

Folder

"},{"title":"module:folder~folder","link":"folder","description":"

Moves or copies the selected document to a folder.

"},{"title":"module:folder~folderCollapse","link":"folderCollapse","description":"

For a folder or view containing nested folders or views, collapses the selected\nfolder or view in the navigation pane.

"},{"title":"module:folder~folderCustomize","link":"folderCustomize","description":"

Displays the design pane for the currently selected view or folder.

"},{"title":"module:folder~folderDocuments","link":"folderDocuments","description":"

Moves or copies the selected document to a folder.

"},{"title":"module:folder~folderExpand","link":"folderExpand","description":"

Expands the currently selected view or folder one level in the navigation pane.

"},{"title":"module:folder~folderExpandAll","link":"folderExpandAll","description":"

Fully expands all views and folders in the navigation pane.

"},{"title":"module:folder~folderExpandWithChildren","link":"folderExpandWithChildren","description":"

Fully expands the selected view or folder in the navigation pane.

"},{"title":"module:folder~folderMove","link":"folderMove","description":"

Displays the Move dialog box for a view or folder, which allows you to move the\nselected view or folder.

"},{"title":"module:folder~folderProperties","link":"folderProperties","description":"

Displays the Properties box for a view or folder.

"},{"title":"module:folder~folderRename","link":"folderRename","description":"

Displays the Rename dialog box, which allows you to rename the selected folder\nor view.

"},{"title":"module:formula","link":"formula","description":"

formula

"},{"title":"module:formula~checkFormulaSyntax","link":"checkFormulaSyntax","description":"

Checks a block of commented out formula language code for errors.

"},{"title":"module:formula~command","link":"command","description":"

Executes a Notes/Domino command. Most of the standard menu commands can be\nexecuted using @Command. In addition, a number of specialized commands are\navailable. In a formula, any command invoked using @Command runs in the\norder you specify in the formula. This means that any changes made by the\ncommand, such as inserting text into a field, affect the rest of the formula\n(see exceptions).

\n

In the context of RosettaJS, the @Command is a Notes @Formula function that\ndoes not exist in the functions of the Notes @Formula language but rather an

"},{"title":"module:formula~Eval","link":"Eval","description":"

At run-time, compiles and runs each element in a text expression as a formula.\nReturns the result of the last formula expression in the list or an error if an\nerror is generated by any of the formula expressions in the list.

"},{"title":"module:formula~isValid","link":"isValid","description":"

Executes all validation formulas within the current form.

"},{"title":"module:formula~set","link":"set","description":"

Assigns a value to a temporary variable for use within a formula.

"},{"title":"module:formula~updateFormulaContext","link":"updateFormulaContext","description":"

Updates the context of a formula to the Notes® client window currently being\naccessed by the code. For example, if the code accesses a new form called\n"Response" by using @Command([Compose]:"Response", @UpdateFormulaContext\nswitches the context of the formula to this new form. Any subsequent functions in\nthe code execute in the context of the Response document, not the current document.

"},{"title":"module:help","link":"help","description":"

Help

"},{"title":"module:help~helpAboutDatabase","link":"helpAboutDatabase","description":"

Displays the About This Database or database policy document for the current\ndatabase (which typically explains the purpose of the application, as well as\nits intended audience).

"},{"title":"module:help~helpAboutNotes","link":"helpAboutNotes","description":"

Displays the Notes® splash screen that appears when you launch Notes/Domino. The\nscreen displays the current release number and date.

"},{"title":"module:help~helpUsingDatabase","link":"helpUsingDatabase","description":"

Displays the Using This Database document for the current database. The Using\nThis Database document typically provides pointers on how to use an\napplication's forms and views.

"},{"title":"module:information","link":"information","description":"

Information

"},{"title":"module:information~browserInfo","link":"browserInfo","description":"

Determines the capabilities of a Web client, that is you can determine the\nproperties of the browser for the current request.

"},{"title":"module:information~cell","link":"cell","description":"

Returns information about the formatting, location, or contents of a value.\nCategory: Information

"},{"title":"module:information~clientType","link":"clientType","description":"

Returns a text string to differentiate Notes® clients and World Wide Web browsers.

"},{"title":"module:information~configFile","link":"configFile","description":"

Returns the file path for the initialization file for Notes® (notes.ini).

"},{"title":"module:information~fontList","link":"fontList","description":"

Provides a list of available fonts on the Notes® client where this @function\nis executed.

"},{"title":"module:information~getAddressBooks","link":"getAddressBooks","description":"

Returns a list of the address books associated with a client (if the current\ndatabase is local) or server.

"},{"title":"module:information~info","link":"info","description":"

Returns information about the current operating environment.\nCategory: Information

"},{"title":"module:information~isAppInstalled","link":"isAppInstalled","description":"

Indicates whether the specified type of application is installed.

"},{"title":"module:information~isBinary","link":"isBinary","description":"

Formula.js only

"},{"title":"module:information~isBlank","link":"isBlank","description":"

Returns TRUE if the value is blank.

\n

Category: Information

"},{"title":"module:information~isEmbeddedInsideWCT","link":"isEmbeddedInsideWCT","description":"

Indicates whether any part of the current Notes® session is embedded inside of\nWorkplace client.

"},{"title":"module:information~isErr","link":"isErr","description":"

Returns TRUE if the value is any error value except #N/A.

\n

Category: Information

"},{"title":"module:information~isError","link":"isError","description":"

Returns TRUE if the value is any error value.

\n

Category: Information

"},{"title":"module:information~isEven","link":"isEven","description":"

Returns TRUE if the number is even.

\n

Category: Information

"},{"title":"module:information~isFormula","link":"isFormula","description":"

Returns TRUE if there is a reference to a value that contains a formula.\nCategory: Information

"},{"title":"module:information~isInCompositeApp","link":"isInCompositeApp","description":"

Indicates whether the component is running within a composite application.

"},{"title":"module:information~isLogical","link":"isLogical","description":"

Returns TRUE if the value is a logical value.

\n

Category: Information

"},{"title":"module:information~isModalHelp","link":"isModalHelp","description":"

Indicates whether the current document is a modal Help document.

"},{"title":"module:information~isNA","link":"isNA","description":"

Returns TRUE if the value is the #N/A error value.

\n

Category: Information

"},{"title":"module:information~isNonText","link":"isNonText","description":"

Returns TRUE if the value is not text.

\n

Category: Information

"},{"title":"module:information~isNumber","link":"isNumber","description":"

Returns TRUE if the value is a number.

\n

Category: Information

"},{"title":"module:information~isOdd","link":"isOdd","description":"

Returns TRUE if the number is odd.

\n

Category: Information

"},{"title":"module:information~isRef","link":"isRef","description":"

Returns TRUE if the value is a reference.\nCategory: Information

"},{"title":"module:information~isText","link":"isText","description":"

Returns TRUE if the value is text.

\n

Category: Information

"},{"title":"module:information~isUsingJavaElement","link":"isUsingJavaElement","description":"

Indicates whether a view or outline uses the Java™ user interface.

"},{"title":"module:information~isVirtualizedDirectory","link":"isVirtualizedDirectory","description":"

Indicates whether virtualized directories are enabled for the current server.

"},{"title":"module:information~languagePreference","link":"languagePreference","description":"

Returns user's specified preferred language setting.

"},{"title":"module:information~ldapServer","link":"ldapServer","description":"

Returns the URL and port number of the LDAP listener in the current domain.\nNotes® looks for this information in several places, following this search\nsequence:

\n
    \n
  1. Searches on the current server.
  2. \n
  3. Searches for the notes.ini variable labeled LDAPSERVER=.
  4. \n
  5. Queries the administration server, which runs the LDAP service automatically, by default.
  6. \n
"},{"title":"module:information~n","link":"n","description":"

Returns a value converted to a number.

\n

Category: Information

"},{"title":"module:information~na","link":"na","description":"

Returns the error value #N/A.

\n

Category: Information

"},{"title":"module:information~notesError","link":"notesError","description":"

Allows you to generate an error condition within an expression. This is useful\nif you want to evaluate the current values in several fields and need to know if\nan error has occurred in the entry of any of them.

"},{"title":"module:information~regQueryValue","link":"regQueryValue","description":"

Copies the administration execution control list from a specified Address Book\nand name to your personal workstation ECL.

"},{"title":"module:information~serverAccess","link":"serverAccess","description":"

Checks if a specified user has a specified administrative access level to a\nserver.

"},{"title":"module:information~sheet","link":"sheet","description":"

Returns the sheet number of the referenced sheet.\nCategory: Information

"},{"title":"module:information~sheets","link":"sheets","description":"

Returns the number of sheets in a reference.\nCategory: Information

"},{"title":"module:information~soundex","link":"soundex","description":"

Returns the Soundex (the Notes® phonetic speller) code for the specified string.

"},{"title":"module:information~templateVersion","link":"templateVersion","description":"

Returns the version number of the master template upon which the\ndatabase design is based.

"},{"title":"module:information~thisName","link":"thisName","description":"

Returns the name of the current field.

"},{"title":"module:information~thisValue","link":"thisValue","description":"

Returns the value of the current field.

"},{"title":"module:information~type","link":"type","description":"

Returns a number indicating the data type of a value.

\n

Category: Information

"},{"title":"module:layout","link":"layout","description":"

Layout

"},{"title":"module:layout~layoutAddGraphic","link":"layoutAddGraphic","description":"

Adds a graphic from the Clipboard to a layout region.

"},{"title":"module:layout~layoutAddText","link":"layoutAddText","description":"

Creates a static text box in a layout region.

"},{"title":"module:layout~layoutElementBringToFront","link":"layoutElementBringToFront","description":"

Brings the selected layout element to the front, which means it overlays any\nother layout elements that overlap it.

"},{"title":"module:layout~layoutElementProperties","link":"layoutElementProperties","description":"

Displays the Properties box for the currently selected layout element.

"},{"title":"module:layout~layoutElementSendToBack","link":"layoutElementSendToBack","description":"

Sends the selected layout element to the back, which means it displays\nunderneath any other layout elements that overlap it.

"},{"title":"module:layout~layoutProperties","link":"layoutProperties","description":"

Displays the Properties box for the currently selected layout region.

"},{"title":"module:lists","link":"lists","description":"

Lists

"},{"title":"module:lists~count","link":"count","description":"

Calculates the number of text, number, or time-date values in a list. This\nfunction always returns a number to indicate the number of entries in the list.

\n

This function is similar to @Elements, except that it returns the number 1\ninstead of 0, when the value it is evaluating is not a list or is a null string.

"},{"title":"module:lists~elements","link":"elements","description":"

Calculates the number of text, number, or time-date values in a list. This\nfunction always returns a number to indicate the number of entries in the list.

"},{"title":"module:lists~explode","link":"explode","description":"

Returns a text list composed of the elements of a text string or date range.

\n
    \n
  • If you specify a text string, elements are defined as sequences of characters\nseparated by separator characters and newlines.
  • \n
  • If you specify a time-date range, elements are defined as individual days within\nthe range.
  • \n
"},{"title":"module:lists~implode","link":"implode","description":"

Concatenates all members of a text list and returns a text string.

"},{"title":"module:lists~isMember","link":"isMember","description":"

Indicates if a piece of text (or a text list) is contained within another text\nlist. The function is case-sensitive.

"},{"title":"module:lists~isNotMember","link":"isNotMember","description":"

Indicates if a text string (or a text list) is not contained within another text\nlist. The function is case-sensitive.

"},{"title":"module:lists~keywords","link":"keywords","description":"

Given two text lists, returns only those items from the second list that are\nfound in the first list.

"},{"title":"module:lists~member","link":"member","description":"

Given a value, finds its position in a text list.

"},{"title":"module:lists~nothing","link":"nothing","description":"

Use with an @Transform formula. Returns no list element (reducing the return\nlist by one element). Not valid in any other context.

"},{"title":"module:lists~replace","link":"replace","description":"

Repeats a string a specified number of times.

"},{"title":"module:lists~select","link":"select","description":"

Returns the value that appears in the number position. If the number is greater\nthan the number of values, @Select returns the last value in the list. If\nthe value in the number position is a list, returns the entire list contained\nwithin the value.

"},{"title":"module:lists~sort","link":"sort","description":"

Sorts a list.

"},{"title":"module:lists~subset","link":"subset","description":"

Searches a list from beginning to end and returns the number values you specify.\nIf you specify a negative number, @Subset searches the list from end to\nbeginning, but the result is ordered as from the beginning of the list.

"},{"title":"module:lists~transform","link":"transform","description":"

Applies a formula to each element of a list and returns the results in a list.

"},{"title":"module:lists~unique","link":"unique","description":"

Without a parameter, returns a random, unique text value. With a parameter,\nremoves duplicate values from a text list by returning only the first occurrence\nof each member of the list.

"},{"title":"module:logical","link":"logical","description":"

Logical

"},{"title":"module:logical.and","link":"and","description":"

Returns TRUE if all of its arguments are TRUE.

"},{"title":"module:logical.do","link":"do","description":"

Evaluates expressions from left to right, and returns the value of the last\nexpression in the list.

"},{"title":"module:logical.doWhile","link":"doWhile","description":"

Executes one or more statements iteratively while a condition is true. Checks\nthe condition after executing the statements.

"},{"title":"module:logical.failure","link":"failure","description":"

Returns text that indicates that input to a field does not meet validation.

"},{"title":"module:logical.false","link":"false","description":"

Returns the logical value false (or the number 0).

"},{"title":"module:logical.for","link":"for","description":"

Executes one or more statements iteratively while a condition remains true.\nExecutes an initialization statement. Checks the condition before executing the\nstatements and executes an increment statement after executing the statements.

"},{"title":"module:logical.if","link":"if","description":"

Specifies a logical test to perform and returns the specified value determined by the test.

"},{"title":"module:logical.ifError","link":"ifError","description":"

Returns a value you specify if a formula evaluates to an error; otherwise, returns the result of the formula.

"},{"title":"module:logical.ifNA","link":"ifNA","description":"

Returns the value you specify if the expression resolves to #N/A, otherwise returns the result of the expression.

"},{"title":"module:logical.ifs","link":"ifs","description":"

Checks whether one or more conditions are met and returns a value that corresponds to the first TRUE condition.

"},{"title":"module:logical.isNull","link":"isNull","description":"

Tests for a null value. Returns true only if a value is a single text value that\nis null, otherwise it returns false. This function also returns false if the\nvalue is an error.

"},{"title":"module:logical.no","link":"no","description":"

Returns the number 0 (false).

"},{"title":"module:logical.not","link":"not","description":"

Reverses the logic of its argument.

"},{"title":"module:logical.or","link":"or","description":"

Returns TRUE if any argument is TRUE.

"},{"title":"module:logical.return","link":"return","description":"

Immediately stops the execution of a formula and returns the specified value.\nThis is useful when you only want the remainder of the formula to be executed\nonly if certain conditions are True.

"},{"title":"module:logical.success","link":"success","description":"

Returns 1 (True). Use this function with @If in field validation formulas to\nindicate that the value entered satisfies the validation criteria.

"},{"title":"module:logical.switch","link":"switch","description":"

Evaluates an expression against a list of values and returns the result corresponding to the first matching value.\nIf there is no match, an optional default value may be returned.

"},{"title":"module:logical.true","link":"true","description":"

Returns the logical value true (or the number 1).

"},{"title":"module:logical.v2If","link":"v2If","description":"

This function performs an @If operation; the syntax is the same as for @if.

"},{"title":"module:logical.while","link":"while","description":"

Returns the names of the folders containing the current document.

"},{"title":"module:logical.xor","link":"xor","description":"

Returns a logical exclusive OR of all arguments.

"},{"title":"module:logical.yes","link":"yes","description":"

Returns the number 1 (true).

"},{"title":"module:lookup-reference","link":"lookup-reference","description":"

Lookup Reference

"},{"title":"module:lookup-reference~choose","link":"choose","description":"

Chooses a value from a list of values.

\n

Category: Lookup and reference

"},{"title":"module:lookup-reference~column","link":"column","description":"

Returns the column number of a reference.

\n

Category: Lookup and reference

"},{"title":"module:lookup-reference~columns","link":"columns","description":"

Returns the number of columns in a reference.

\n

Category: Lookup and reference

"},{"title":"module:lookup-reference~hLookup","link":"hLookup","description":"

Looks in the top row of an array and returns the value of the indicated value.

\n

Category: Lookup and reference

"},{"title":"module:lookup-reference~index","link":"index","description":"

Uses an index to choose a value from a reference or array.

\n

Category: Lookup and reference

"},{"title":"module:lookup-reference~lookup","link":"lookup","description":"

Looks up values in a vector or array.

\n

Category: Lookup and reference

"},{"title":"module:lookup-reference~match","link":"match","description":"

Looks up values in a reference or array.

\n

Category: Lookup and reference

"},{"title":"module:lookup-reference~row","link":"row","description":"

Returns the row number of a reference.

\n

Category: Lookup and reference

"},{"title":"module:lookup-reference~rows","link":"rows","description":"

Returns the number of rows in a reference.

\n

Category: Lookup and reference

"},{"title":"module:lookup-reference~transpose","link":"transpose","description":"

Returns the transpose of an array.

\n

Category: Lookup and reference

"},{"title":"module:lookup-reference~unique","link":"unique","description":"

Returns a list of unique values in a list or range.

"},{"title":"module:lookup-reference~vLookup","link":"vLookup","description":"

Looks in the first column of an array and moves across the row to return the value of a value.

\n

Category: Lookup and reference

"},{"title":"module:mail","link":"mail","description":"

Mail

"},{"title":"module:mail~mailAddress","link":"mailAddress","description":"

Displays the Select Addresses dialog box, where the user can select people and\ngroups to include in an address field of a mail document.

"},{"title":"module:mail~mailComposeMemo","link":"mailComposeMemo","description":"

Creates and displays a blank mail document. Notes/Domino uses the default form\nfor the user's mail database. This is a Memo document unless the user has\nchanged it.

"},{"title":"module:mail~mailEncryptSavedPreference","link":"mailEncryptSavedPreference","description":"

Indicates whether the user has selected "Encrypt saved mail" in the User\nPreferences dialog box.

"},{"title":"module:mail~mailEncryptSentPreference","link":"mailEncryptSentPreference","description":"

Indicates whether the user has selected "Encrypt sent mail" in the User\nPreferences dialog box.

"},{"title":"module:mail~mailForward","link":"mailForward","description":"

Forwards the current document by placing its contents into a mail memo, which\nthe user then addresses and sends like any other mail memo.

"},{"title":"module:mail~mailForwardAsAttachment","link":"mailForwardAsAttachment","description":"

In cc:Mail, forwards a Notes/Domino document as a cc:Mail attachment.

"},{"title":"module:mail~mailOpen","link":"mailOpen","description":"

Opens the user's mail database to the view or navigator to which it was most\nrecently open.

"},{"title":"module:mail~mailRequestCrossCert","link":"mailRequestCrossCert","description":"

Displays the Choose ID to be Cross-Certified dialog box, which allows an\nadministrator to send a safe copy of a Certifier ID to another administrator,\nwho can certify it with a different Certifier ID to create a cross certificate.

"},{"title":"module:mail~mailRequestNewName","link":"mailRequestNewName","description":"

Displays the Change User Name dialog box, which allows the user to send a\nportion of the Notes® user ID to a Notes/Domino administrator, who can change\nthe user name associated with the ID and return the ID to the user. The user\nthen merges the updated portion back into the existing user ID.

"},{"title":"module:mail~mailRequestNewPublicKey","link":"mailRequestNewPublicKey","description":"

Displays the Mail New Public Key Request dialog box, which allows the user to\nsend a portion of his or her Notes/Domino ID to an administrator, who can create\na new public key for the ID and return the ID to the user. The user then merges\nthe updated portion back into the existing user ID.

"},{"title":"module:mail~mailSavePreference","link":"mailSavePreference","description":"

Indicates which option the user has selected for the "Save sent mail"setting in\nthe User Preferences dialog box.

"},{"title":"module:mail~mailScanUnread","link":"mailScanUnread","description":"

Opens the user's mail database to the first unread document in the view to which\nthe database was most recently open.

"},{"title":"module:mail~mailSend","link":"mailSend","description":"

Displays the Mail Send dialog box, which lets the user choose whether or not to\nencrypt, sign, or send the selected memo.

"},{"title":"module:mail~mailSendCertificateRequest","link":"mailSendCertificateRequest","description":"

Displays the Mail Certificate Request dialog box. This lets the user send a safe\ncopy of the Notes/Domino user ID to an administrator, who certifies and then\nreturns it; the user then merges the updated safe copy back into the user ID.

"},{"title":"module:mail~mailSendEncryptionKey","link":"mailSendEncryptionKey","description":"

Displays the User ID dialog box, where the user can define and send encryption\nkeys. If the user's ID is password-protected, the user will be required to\nenter the password before being allowed access to the dialog box.

"},{"title":"module:mail~mailSendPublicKey","link":"mailSendPublicKey","description":"

Displays the Mail Public Key dialog box. This lets the user send the public key\nto another user (typically to an administrator who can then paste the public key\ninto that user's Person record in the Domino® Directory).

"},{"title":"module:mail~mailSignPreference","link":"mailSignPreference","description":"

Indicates whether the user has selected "Sign sent mail" in the User Preferences\ndialog box.

"},{"title":"module:math-trig","link":"math-trig","description":"

Math and Trigonometry

"},{"title":"module:math-trig~abs","link":"abs","description":"

Returns the absolute (unsigned) value of one or more number(s).

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~acos","link":"acos","description":"

Returns the arccosine (inverse cosine) of a number using the cosine of an angle.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~acosh","link":"acosh","description":"

Returns the inverse hyperbolic cosine of a number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~acot","link":"acot","description":"

Returns the inverse cotangent of a number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~acoth","link":"acoth","description":"

Returns the inverse hyperbolic cotangent of a number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~add","link":"add","description":"

Returns the sum of the two given numbers.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~aggregate","link":"aggregate","description":"

Returns an aggregate in a list or database.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~arabic","link":"arabic","description":"

Converts a Roman number to Arabic, as a number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~asin","link":"asin","description":"

Returns the arcsine (inverse sine) of a number using the sine of an angle.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~asinh","link":"asinh","description":"

Returns the inverse hyperbolic sine of a number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~atan","link":"atan","description":"

Returns the arc (inverse) tangent using the tangent of an angle.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~atan2","link":"atan2","description":"

Returns the arc (inverse) tangent using the tangent x- and y-coordinates.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~atanh","link":"atanh","description":"

Returns the inverse hyperbolic tangent of a number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~base","link":"base","description":"

Converts a number into a text representation with the given radix (base).

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~ceiling","link":"ceiling","description":"

Rounds a number to the nearest integer or to the nearest multiple of significance.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~combin","link":"combin","description":"

Returns the number of combinations for a given number of objects.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~combina","link":"combina","description":"

Returns the number of combinations with repetitions for a given number of items.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~cos","link":"cos","description":"

Given an angle in radians, returns the cosine of the angle. In a right triangle,\nthe cosine of an acute angle is the ratio of the length of its adjacent side to\nthe length of the hypotenuse.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~cosh","link":"cosh","description":"

Returns the hyperbolic cosine of the angle.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~cot","link":"cot","description":"

Returns the cotangent of a number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~coth","link":"coth","description":"

Returns the hyperbolic cotangent of a number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~csc","link":"csc","description":"

Returns the cosecant of an angle.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~csch","link":"csch","description":"

Returns the hyperbolic cosecant of an angle.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~decimal","link":"decimal","description":"

Converts a text representation of a number in a given base into a decimal number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~degrees","link":"degrees","description":"

Converts radians to degrees.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~divide","link":"divide","description":"

Returns the quotient of the two given numbers.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~e","link":"e","description":"

Returns the mathematical constant e (approximately 2.718282).

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~eq","link":"eq","description":"

Returns whether the first number is equal to the second number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~even","link":"even","description":"

Rounds a number up to the nearest even integer.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~exp","link":"exp","description":"

Returns e (approximately 2.718282) raised to the power of a given number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~fact","link":"fact","description":"

Returns the factorial of a number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~factDouble","link":"factDouble","description":"

Returns the double factorial of a number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~floatEq","link":"floatEq","description":"

Compares two numbers for equality within a confidence range.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~floor","link":"floor","description":"

Rounds a number down, toward zero.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~gcd","link":"gcd","description":"

Returns the greatest common divisor.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~gt","link":"gt","description":"

Returns whether the first number is greater than the second number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~gte","link":"gte","description":"

Returns whether the first number is greater than or equal to the second number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~int","link":"int","description":"

Truncates the values in a number or number list at the whole number, leaving off\nany decimals.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~integer","link":"integer","description":"

Truncates the values in a number or number list at the whole number, leaving off\nany decimals.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~lcm","link":"lcm","description":"

Returns the least common multiple.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~ln","link":"ln","description":"

Returns the natural log of a number. Natural logs use e (approximately 2.718282) as their base.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~ln2","link":"ln2","description":"

Returns the natural logarithm of 2.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~ln10","link":"ln10","description":"

Returns the natural logarithm of 10.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~log","link":"log","description":"

Returns the common logarithm (base 10) of any number greater than zero.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~log2E","link":"log2E","description":"

Returns the base-2 logarithm of e.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~log10","link":"log10","description":"

Returns the base-10 logarithm of a number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~log10E","link":"log10E","description":"

Returns the base-10 logarithm of e.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~lt","link":"lt","description":"

Returns whether the first number is less than the second number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~lte","link":"lte","description":"

Returns whether the first number is less than or equal to the second number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~max","link":"max","description":"

Returns the largest number in a single list, or the larger of two numbers or number lists.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~min","link":"min","description":"

Returns the smallest number in a single list, or the smaller of two numbers or\nnumber lists.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~minus","link":"minus","description":"

Returns the difference between the two given numbers.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~mod","link":"mod","description":"

Returns the remainder of a division operation.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~modulo","link":"modulo","description":"

Returns the remainder of a division operation.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~mRound","link":"mRound","description":"

Returns a number rounded to the desired multiple.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~multinomial","link":"multinomial","description":"

Returns the multinomial of a set of numbers.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~multiply","link":"multiply","description":"

Returns the product of the two given numbers.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~ne","link":"ne","description":"

Returns whether the first number is not equal to the second number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~odd","link":"odd","description":"

Rounds a number up to the nearest odd integer.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~pi","link":"pi","description":"

Returns the constant value pi, accurate to fifteen decimal places.\nThe value pi is the ratio of the circumference of a circle to its diameter.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~pow","link":"pow","description":"

Returns the result of a number raised to a power.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~power","link":"power","description":"

Returns the result of a number raised to a power.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~product","link":"product","description":"

Multiplies the arguments.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~quotient","link":"quotient","description":"

Returns the integer portion of a division.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~radians","link":"radians","description":"

Converts degrees to radians.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~rand","link":"rand","description":"

Generates a random number between 0 and 1, inclusive.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~randBetween","link":"randBetween","description":"

Returns a random number between the numbers you specify.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~random","link":"random","description":"

Generates a random number between 0 and 1, inclusive by calling open formula RAND

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~roman","link":"roman","description":"

Converts an arabic numeral to roman, as text.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~round","link":"round","description":"

Rounds the designated number to the nearest whole number; if an additional\nnumber is specified, it is used as the rounding factor.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~roundDown","link":"roundDown","description":"

Rounds a number down, toward zero.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~roundUp","link":"roundUp","description":"

Rounds a number up, away from zero.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~sec","link":"sec","description":"

Returns the secant of an angle.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~sech","link":"sech","description":"

Returns the hyperbolic secant of an angle.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~seriesSum","link":"seriesSum","description":"

Returns the sum of a power series based on the formula.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~sign","link":"sign","description":"

Indicates whether a number is positive, negative, or zero.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~sin","link":"sin","description":"

Given an angle in radians, returns the sine of the angle. In a right triangle,\nthe sine of an acute angle is the ratio of the length of its opposite side to\nthe length of the hypotenuse.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~sinh","link":"sinh","description":"

Returns the hyperbolic sine of a number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~sqrt","link":"sqrt","description":"

Given a number, returns its positive square root.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~sqrtPi","link":"sqrtPi","description":"

Returns the square root of (number * pi).

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~subTotal","link":"subTotal","description":"

Returns a subtotal in a list or database.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~sum","link":"sum","description":"

Adds a set of numbers or number lists.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~sumIf","link":"sumIf","description":"

Adds the values specified by a given criteria.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~sumIfs","link":"sumIfs","description":"

Adds the values in a range that meet multiple criteria.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~sumProduct","link":"sumProduct","description":"

Returns the sum of the products of corresponding array components.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~sumSq","link":"sumSq","description":"

Returns the sum of the squares of the arguments.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~sumx2My2","link":"sumx2My2","description":"

Returns the sum of the difference of squares of corresponding values in two arrays.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~sumx2Py2","link":"sumx2Py2","description":"

Returns the sum of the sum of squares of corresponding values in two arrays.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~sumxmy2","link":"sumxmy2","description":"

Returns the sum of squares of differences of corresponding values in two arrays.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~tan","link":"tan","description":"

Given an angle in radians, returns the tangent of the angle. In a right triangle\nthe tangent of an acute angle is the ratio of the length of the opposite side to\nthe length of the adjacent side.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~tanh","link":"tanh","description":"

Returns the hyperbolic tangent of a number.

\n

Category: Math and trigonometry

"},{"title":"module:math-trig~trunc","link":"trunc","description":"

Truncates a number to an integer or a specified precision.

\n

Category: Math and trigonometry

"},{"title":"module:messaging","link":"messaging","description":"

Messaging

"},{"title":"module:messaging~getIMContactListGroupNames","link":"getIMContactListGroupNames","description":"

Returns the group names in the Instant Messaging Contact List.

"},{"title":"module:miscellaneous","link":"miscellaneous","description":"

Miscellaneous

"},{"title":"module:miscellaneous~addBookmark","link":"addBookmark","description":"

Adds a bookmark with the specified URL or current object.

"},{"title":"module:miscellaneous~addToIMContactList","link":"addToIMContactList","description":"

Adds a name or names to a personal group in the Instant Messaging Contact List.

"},{"title":"module:miscellaneous~calendarFormat","link":"calendarFormat","description":"

Changes the Calendar view to display one day, two days, one work week, one week,\ntwo work weeks, two weeks, one work month, one month, or one year.

"},{"title":"module:miscellaneous~calendarGoTo","link":"calendarGoTo","description":"

Goes to a particular date in a Calendar view.

"},{"title":"module:miscellaneous~checkAlarms","link":"checkAlarms","description":"

Triggers the alarm daemon to check for new alarms in the mail file.

"},{"title":"module:miscellaneous~checkCalendar","link":"checkCalendar","description":"

Pops up a dialog box containing a one-day calendar view. The current database\nmust contain a calendar view for this command to function properly.

"},{"title":"module:miscellaneous~clear","link":"clear","description":"

Performs the menu command Edit - Delete.

"},{"title":"module:miscellaneous~copySelectedAsTable","link":"copySelectedAsTable","description":"

Copies one or more selected entries as a table.

"},{"title":"module:miscellaneous~debugLotusScript","link":"debugLotusScript","description":"

Puts Designer into debug mode, so that all LotusScript® scripts run in the\ndebugger. The command is a toggle; selecting it again takes Notes® out of debug\nmode.

"},{"title":"module:miscellaneous~dialingRules","link":"dialingRules","description":"

Displays the Dialing Rules dialog box, which allows you to define dialing rules\nfor a modem in a Location document in a Domino® Directory.

"},{"title":"module:miscellaneous~dialogBox","link":"dialogBox","description":"

Brings up a dialog box that displays the current document (either open or\nselected in a view). The dialog box shares fields with the underlying document.\nThe user interacts with the dialog box as usual, clicking OK or Cancel when\nfinished.

\n

This function can be used with any form, but it's particularly useful with forms\nthat contain a single table or layout region, because the user can interact with\nthe table or layout region as if it were a dialog box.

"},{"title":"module:miscellaneous~directories","link":"directories","description":"

Displays the Directories dialog box which allows you to search for an address,\nview detailed information about an address entry, and add an entry to your\nDomino® Directory with the Directories dialog box.

"},{"title":"module:miscellaneous~enableAlarms","link":"enableAlarms","description":"

Starts or stops the alarm daemon.

"},{"title":"module:miscellaneous~environment","link":"environment","description":"

Sets or returns an environment variable stored in a formula.

"},{"title":"module:miscellaneous~exchangeUnreadMarks","link":"exchangeUnreadMarks","description":"

For two selected database replicas, marks the documents as read in one replica\nthat are marked as read in the other.

"},{"title":"module:miscellaneous~execute","link":"execute","description":"

Launches an application.

"},{"title":"module:miscellaneous~exitNotes","link":"exitNotes","description":"

Performs the menu command File - Exit (File - Quit on the Macintosh), which\ncloses Notes/Domino and all its open windows.

"},{"title":"module:miscellaneous~findFreeTimeDialog","link":"findFreeTimeDialog","description":"

Opens the Free Time dialog box to allow searches for available meeting times.

"},{"title":"module:miscellaneous~formActions","link":"formActions","description":"

Displays the actions pane for the current form, subform, or Page. The command is\na toggle; selecting it again hides the actions pane.

"},{"title":"module:miscellaneous~goUpLevel","link":"goUpLevel","description":"

Displays the view containing the current document when the user closes that\ndocument.

"},{"title":"module:miscellaneous~hashPassword","link":"hashPassword","description":"

Encodes a string.

"},{"title":"module:miscellaneous~insertSubform","link":"insertSubform","description":"

Displays the Insert Subform dialog box, where you can select a subform to be\ninserted on a form.

"},{"title":"module:miscellaneous~launchApp","link":"launchApp","description":"

Launches the requested Domino® application.

"},{"title":"module:miscellaneous~mailSend","link":"mailSend","description":"

There are two ways to use @MailSend:

\n
    \n
  • When used with no parameters, @MailSend mails the current document (the one\nbeing processed when the @function is evaluated) to the recipient designated\nin the document's SendTo field. The document must have a SendTo field.
  • \n
  • When used with one or more parameters, @MailSend composes a new mail memo\nbased on the information you supply in the arguments list, and sends it to the\nrecipients listed in the sendTo, copyTo, and blindcopyTo arguments.
  • \n
"},{"title":"module:miscellaneous~passwordQuality","link":"passwordQuality","description":"

Evaluates the return value of a Password data type field with a number.

"},{"title":"module:miscellaneous~pasteBitmapAsBackground","link":"pasteBitmapAsBackground","description":"

Pastes a bitmap into the background of a navigator. All other objects in the\nnavigator overlay the background bitmap.

"},{"title":"module:miscellaneous~pasteBitmapAsObject","link":"pasteBitmapAsObject","description":"

Pastes a bitmap into a navigator. The bitmap becomes a hotspot which can be\nedited like any other hotspot.

"},{"title":"module:miscellaneous~pictureProperties","link":"pictureProperties","description":"

Displays the Properties box for a bitmap in a rich text field.

"},{"title":"module:miscellaneous~postedCommand","link":"postedCommand","description":"

Indicates whether a field is locked by an administration policy and cannot be\nmodified.

"},{"title":"module:miscellaneous~remoteDebugLotusScript","link":"remoteDebugLotusScript","description":"

From the Notes® Remote Debugger client, opens the Select Debug Target dialog box.

"},{"title":"module:miscellaneous~sendInstantMessage","link":"sendInstantMessage","description":"

Starts a chat with one or more users.

"},{"title":"module:miscellaneous~setCurrentLocation","link":"setCurrentLocation","description":"

Displays the Choose Location dialog box, where you can choose your current\nworkstation location, such as Office, Island, or Travel.

"},{"title":"module:miscellaneous~setEnvironment","link":"setEnvironment","description":"

Sets an environment variable stored in the user's notes.ini file (Windows™,\nOS/2, and UNIX™) or Notes® Preferences file (Macintosh).

"},{"title":"module:miscellaneous~setHTTPHeader","link":"setHTTPHeader","description":"

In a Web application, sets the value of HTTP headers in the response being\ngenerated by the server for the browser client.

"},{"title":"module:miscellaneous~setViewInfo","link":"setViewInfo","description":"

In Standard Outline views, filters a view to display only documents from a\nspecified category. In Calendar views, filters a view to display only documents\nthat contain a specified string in a specified column.

"},{"title":"module:miscellaneous~smartIconsFloating","link":"smartIconsFloating","description":"

Makes the SmartIcons palette "float" so that users can move it around on the\nscreen.

"},{"title":"module:miscellaneous~smartIconsNextSet","link":"smartIconsNextSet","description":"

Switches to display the next set of SmartIcons in the Icon bar.

"},{"title":"module:miscellaneous~styleCycleKey","link":"styleCycleKey","description":"

Cycles through the list of styles that have been defined for the current\ndocument, form, or page. This is the same as pressing F11. Each time you invoke\nStyleCycleKey, a different style goes into effect.

"},{"title":"module:miscellaneous~validateInternetAddress","link":"validateInternetAddress","description":"

Validates an Internet address based on the RFC 822 or RFC 821 Address Format\nSyntax.

"},{"title":"module:miscellaneous~verifyPassword","link":"verifyPassword","description":"

Compares two passwords.

"},{"title":"module:miscellaneous~viewShowThisUnread","link":"viewShowThisUnread","description":"

Changes a view to show only unread documents, or to show read and unread\ndocuments.

"},{"title":"module:navigate","link":"navigate","description":"

Navigate

"},{"title":"module:navigate~navigateNext","link":"navigateNext","description":"

Navigates to the next document in the current view or folder.

"},{"title":"module:navigate~navigateNextHighlight","link":"navigateNextHighlight","description":"

Navigates to the next full-text search highlight within a document, working from\nleft to right and beginning to end.

"},{"title":"module:navigate~navigateNextMain","link":"navigateNextMain","description":"

Navigates to the next main document in the current view.

"},{"title":"module:navigate~navigateNextSelected","link":"navigateNextSelected","description":"

Navigates to the next selected document in the current view or folder.

"},{"title":"module:navigate~navigateNextUnread","link":"navigateNextUnread","description":"

Navigates to the next unread document in the current view or folder.

"},{"title":"module:navigate~navigatePrev","link":"navigatePrev","description":"

Navigates to the previous document in the current view or folder.

"},{"title":"module:navigate~navigatePrevHighlight","link":"navigatePrevHighlight","description":"

Navigates to the previous full-text search highlight within a document, working\nfrom right to left and end to beginning.

"},{"title":"module:navigate~navigatePrevMain","link":"navigatePrevMain","description":"

Navigates to the previous main document in the current view or folder.

"},{"title":"module:navigate~navigatePrevSelected","link":"navigatePrevSelected","description":"

Navigates to the previous selected document in the current view or folder.

"},{"title":"module:navigate~navigatePrevUnread","link":"navigatePrevUnread","description":"

Navigates to the previous unread document in the current view or folder.

"},{"title":"module:navigate~navigateToBacklink","link":"navigateToBacklink","description":"

Returns to the document from which you launched the current document.

"},{"title":"module:navigate~navigatorProperties","link":"navigatorProperties","description":"

Displays the Properties box for a navigator.

"},{"title":"module:navigate~navigatorTest","link":"navigatorTest","description":"

Opens a navigator in Testing mode, so you can test its hotspots, formulas, and\nscripts. Selecting this command again puts the navigator back into Design mode.

"},{"title":"module:navigate~navNext","link":"navNext","description":"

Navigates to the next document in the current view or folder.

"},{"title":"module:navigate~navNextMain","link":"navNextMain","description":"

Navigates to the next main document in the current view.

"},{"title":"module:navigate~navNextSelected","link":"navNextSelected","description":"

Navigates to the next selected document in the current view or folder.

"},{"title":"module:navigate~navNextUnread","link":"navNextUnread","description":"

Navigates to the next unread document in the current view or folder.

"},{"title":"module:navigate~navPrev","link":"navPrev","description":"

Navigates to the previous document in the current view or folder.

"},{"title":"module:navigate~navPrevMain","link":"navPrevMain","description":"

Navigates to the previous main document in the current view or folder.

"},{"title":"module:navigate~navPrevSelected","link":"navPrevSelected","description":"

Navigates to the previous selected document in the current view or folder.

"},{"title":"module:navigate~navPrevUnread","link":"navPrevUnread","description":"

Navigates to the previous unread document in the current view or folder.

"},{"title":"module:network","link":"network","description":"

Network

"},{"title":"module:network~certificate","link":"certificate","description":"

Extracts information from the Certified Public Key in the Domino® Directory.

"},{"title":"module:network~getHTTPHeader","link":"getHTTPHeader","description":"

In a Web application, returns the value of an HTTP header from the browser\nclient request being processed by the server.

"},{"title":"module:network~getPortsList","link":"getPortsList","description":"

Returns a list of enabled or disabled ports.

"},{"title":"module:object","link":"object","description":"

Object

"},{"title":"module:object~objectDisplayAs","link":"objectDisplayAs","description":"

Displays the Display As dialog box, which lets you change the display settings\nof the selected OLE object.

"},{"title":"module:object~objectOpen","link":"objectOpen","description":"

Opens an OLE object for editing.

"},{"title":"module:object~objectProperties","link":"objectProperties","description":"

Displays the Properties box for the selected OLE object.

"},{"title":"module:open","link":"open","description":"

Open

"},{"title":"module:open~openCalendar","link":"openCalendar","description":"

Opens a mail file to the Calendar view.

"},{"title":"module:open~openDocument","link":"openDocument","description":"

Opens a document.

"},{"title":"module:open~openFrameset","link":"openFrameset","description":"

Opens a frameset defined for the current database. Framesets provide a way for\ndesigners to display several pages at the same time. A frame is actually one\npage; a frameset is a collection of pages. Page designers can create links\nbetween frames. A major advantage of framesets is the ability to leave one page\nconstant as users scroll or link to other pages.

"},{"title":"module:open~openHelpDocument","link":"openHelpDocument","description":"

Allows you to create your own context-sensitive help documents. To use this\ncommand, you must first create a view that has a sorted first column containing\nkey values that uniquely identify each help document. @Command([OpenHelpDocument])\nsearches this sorted view for the specified key value and, if found, displays\nthe associated help document in a separate Help window.

"},{"title":"module:open~openNavigator","link":"openNavigator","description":"

Opens a navigator defined for the selected database.

"},{"title":"module:open~openPage","link":"openPage","description":"

Opens a page defined for the current database. A page is a design element that\nstructures and displays information, including text, graphics, applets, and\nlinks. Unlike a form, a page cannot contain fields, subforms, layout regions,\nand some embedded controls.

"},{"title":"module:open~openView","link":"openView","description":"

Opens the specified view in the current database.

"},{"title":"module:refresh","link":"refresh","description":"

Refresh

"},{"title":"module:refresh~refreshFrame","link":"refreshFrame","description":"

Refreshes the specified frame in a frameset.

"},{"title":"module:refresh~refreshHideFormulas","link":"refreshHideFormulas","description":"

Refreshes only the hidden formulas in a document or view.

"},{"title":"module:refresh~refreshParentNote","link":"refreshParentNote","description":"

This formula sends the values entered in the dialog box to the parent document.\nA designer can update a parent note and close the dialog box without having to\nuse the OK button on the dialog box.

"},{"title":"module:replicator","link":"replicator","description":"

Replicator

"},{"title":"module:replicator~replicator","link":"replicator","description":"

Displays the Replicator on the Notes® workspace page.

"},{"title":"module:replicator~replicatorReplicateHigh","link":"replicatorReplicateHigh","description":"

Initiates replication of databases that have been assigned a priority of High.

"},{"title":"module:replicator~replicatorReplicateNext","link":"replicatorReplicateNext","description":"

Stops replication of the currently replicating database and initiates\nreplication of the next database selected for replication.

"},{"title":"module:replicator~replicatorReplicateSelected","link":"replicatorReplicateSelected","description":"

Initiates replication of the selected database.

"},{"title":"module:replicator~replicatorReplicateWithServer","link":"replicatorReplicateWithServer","description":"

Displays the "Replicate With Which Server" dialog box and initiates replication\nwith the server you select.

"},{"title":"module:replicator~replicatorSendMail","link":"replicatorSendMail","description":"

Sends local pending mail to the server.

"},{"title":"module:replicator~replicatorSendReceiveMail","link":"replicatorSendReceiveMail","description":"

Initiates replication between the mail server and your local mail database.

"},{"title":"module:replicator~replicatorStart","link":"replicatorStart","description":"

Initiates or resumes replication of the selected databases.

"},{"title":"module:replicator~replicatorStop","link":"replicatorStop","description":"

Stops the current replication process.

"},{"title":"module:rosetta-api","link":"rosetta-api","description":"

Rosetta API

"},{"title":"module:rosetta-api-context","link":"rosetta-api-context","description":"

Rosetta API

"},{"title":"module:rosetta-api-context~getDefault","link":"getDefault","description":"

Get default context

"},{"title":"module:rosetta-api-context~isDefaultDb","link":"isDefaultDb","description":"

Is default context database?

"},{"title":"module:rosetta-api-context~isDefaultLocal","link":"isDefaultLocal","description":"

Is default context local?

"},{"title":"module:rosetta-api-context~setDefaultAsDb","link":"setDefaultAsDb","description":"

Set default context to db

"},{"title":"module:rosetta-api-context~setDefaultAsLocal","link":"setDefaultAsLocal","description":"

Set default context to local

"},{"title":"module:rosetta-api-voltmx","link":"rosetta-api-voltmx","description":"

Rosetta API - Volt MX

"},{"title":"module:rosetta-api-voltmx.rosettaServicesMap","link":"rosettaServicesMap","description":"

Top level Map to store all Volt MX Services

"},{"title":"module:rosetta-api-voltmx~currentServerDatabase","link":"currentServerDatabase","description":"

Current active Server:Database

"},{"title":"module:rosetta-api-voltmx~getDefaultServiceType","link":"getDefaultServiceType","description":"

Set getDefaultServiceType

"},{"title":"module:rosetta-api-voltmx~isDefaultServiceTypeIntegration","link":"isDefaultServiceTypeIntegration","description":"

Is default service type integration.

"},{"title":"module:rosetta-api-voltmx~isDefaultServiceTypeObject","link":"isDefaultServiceTypeObject","description":"

Is default service type object.

"},{"title":"module:rosetta-api-voltmx~isDefaultServiceTypeOffline","link":"isDefaultServiceTypeOffline","description":"

Is default service type offline.

"},{"title":"module:rosetta-api-voltmx~rosettajsLogger","link":"rosettajsLogger","description":"

rosettajsLogger

"},{"title":"module:rosetta-api-voltmx~rosettaServicesEntry","link":"rosettaServicesEntry"},{"title":"module:rosetta-api-voltmx~rosettaVMXObject","link":"rosettaVMXObject"},{"title":"module:rosetta-api-voltmx~setDefaultServiceTypeAsIntegration","link":"setDefaultServiceTypeAsIntegration","description":"

Set default service type to integration.

"},{"title":"module:rosetta-api-voltmx~setDefaultServiceTypeAsObject","link":"setDefaultServiceTypeAsObject","description":"

Set default service type to object.

"},{"title":"module:rosetta-api-voltmx~setDefaultServiceTypeAsOffline","link":"setDefaultServiceTypeAsOffline","description":"

Set default service type to offline.

"},{"title":"module:rosetta-api~getDefaultAPI","link":"getDefaultAPI","description":"

Set getDefaultAPI

"},{"title":"module:rosetta-api~getDefaultContext","link":"getDefaultContext","description":"

Get default context

"},{"title":"module:rosetta-api~getDefaultFramework","link":"getDefaultFramework","description":"

Get default framework

"},{"title":"module:rosetta-api~getTernFileNames","link":"getTernFileNames","description":"

Get the names for the Tern files generated for the Rosetta API.

"},{"title":"module:rosetta-api~isDefaultContextDb","link":"isDefaultContextDb","description":"

Is default context database?

"},{"title":"module:rosetta-api~isDefaultContextLocal","link":"isDefaultContextLocal","description":"

Is default context local?

"},{"title":"module:rosetta-api~isDefaultFrameworkJS","link":"isDefaultFrameworkJS","description":"

Is default framework Javascript.

"},{"title":"module:rosetta-api~isDefaultFrameworkVoltMX","link":"isDefaultFrameworkVoltMX","description":"

Is default framework Volt MX.

"},{"title":"module:rosetta-api~isDefaultNotes","link":"isDefaultNotes","description":"

Is default API Notes.

"},{"title":"module:rosetta-api~isDefaultOpenFormula","link":"isDefaultOpenFormula","description":"

Is default API Open Formula.

"},{"title":"module:rosetta-api~registerAPI","link":"registerAPI","description":"

Register an API by adding it as an object to the referential array of APIs\nDefines/redefines the Rosetta API library by creating/updating a node in the API object\nThe API object may be redefined if when using the existing category, name, language combination\nIf language param is supplied, the API node will also define the method at the formula language level and\nthe main method will point to call the method inside the language object

"},{"title":"module:rosetta-api~registerAPIs","link":"registerAPIs","description":"

Register APIs from an array of JSON API extension definition objects.\nEach object in the array must adhere to schema required in registerAPI method

"},{"title":"module:rosetta-api~setDefaultAPIAsNotes","link":"setDefaultAPIAsNotes","description":"

Set default API to Notes when an underlaying Open Formula API function with the same name exists.

"},{"title":"module:rosetta-api~setDefaultAPIAsOpenFormula","link":"setDefaultAPIAsOpenFormula","description":"

Set default API to Open Formula when an underlaying Notes API function with the same name exists.

"},{"title":"module:rosetta-api~setDefaultContextAsDb","link":"setDefaultContextAsDb","description":"

Set default context to db

"},{"title":"module:rosetta-api~setDefaultContextAsLocal","link":"setDefaultContextAsLocal","description":"

Set default context to local

"},{"title":"module:rosetta-api~setDefaultFrameworkAsJS","link":"setDefaultFrameworkAsJS","description":"

Set default framework to javascript

"},{"title":"module:rosetta-api~setDefaultFrameworkAsVoltMX","link":"setDefaultFrameworkAsVoltMX","description":"

Set default framework to voltmx

"},{"title":"module:section","link":"section","description":"

Section

"},{"title":"module:section~sectionCollapse","link":"sectionCollapse","description":"

Collapses the current section in a document, form, or subform.

"},{"title":"module:section~sectionCollapseAll","link":"sectionCollapseAll","description":"

Collapses all the sections in a document, page, form, or subform.

"},{"title":"module:section~sectionDefineEditors","link":"sectionDefineEditors","description":"

Displays the Edit Section dialog box for the current section on a form.

"},{"title":"module:section~sectionExpand","link":"sectionExpand","description":"

Expands the current section in a document, form, or subform.

"},{"title":"module:section~sectionExpandAll","link":"sectionExpandAll","description":"

Expands all the sections in a document, page, form, or subform.

"},{"title":"module:section~sectionProperties","link":"sectionProperties","description":"

On a form or subform, displays the Properties box for the selected section.

"},{"title":"module:section~sectionRemoveHeader","link":"sectionRemoveHeader","description":"

Removes the contents of a section from the section. The contents are then displayed as they existed before the section was created.

"},{"title":"module:showhide","link":"showhide","description":"

Show & Hide

"},{"title":"module:showhide~showHideIMContactList","link":"showHideIMContactList","description":"

Toggles the display of the Instant Messaging Contact List.

"},{"title":"module:showhide~showHideLinkPreview","link":"showHideLinkPreview","description":"

Toggles the display of the link preview pane.

"},{"title":"module:showhide~showHideParentPreview","link":"showHideParentPreview","description":"

Toggles the display of the parent document preview pane.

"},{"title":"module:showhide~showHidePreviewPane","link":"showHidePreviewPane","description":"

Toggles the display of the document preview pane.

"},{"title":"module:statistical","link":"statistical","description":"

Statistical

"},{"title":"module:statistical.beta.dist","link":"dist","description":"

Returns the beta cumulative distribution function.

\n

Category: Statistical

"},{"title":"module:statistical.beta.inv","link":"inv","description":"

Returns the inverse of the cumulative distribution function for a specified beta distribution.

\n

Category: Statistical

"},{"title":"module:statistical.binom.dist","link":"dist","description":"

Returns the individual term binomial distribution probability.

\n

Category: Statistical

"},{"title":"module:statistical.binom.dist.range","link":"range","description":"

Returns the probability of a trial result using a binomial distribution.

\n

Category: Statistical

"},{"title":"module:statistical.binom.inv","link":"inv","description":"

Returns the smallest value for which the cumulative binomial distribution is less than or equal to a criterion value.

\n

Category: Statistical

"},{"title":"module:statistical.chiSq.dist","link":"dist","description":"

Returns the cumulative beta probability density function.

\n

Category: Statistical

"},{"title":"module:statistical.chiSq.dist.rt","link":"rt","description":"

Returns the one-tailed probability of the chi-squared distribution.

\n

Category: Statistical

"},{"title":"module:statistical.chiSq.inv","link":"inv","description":"

Returns the cumulative beta probability density function.

\n

Category: Statistical

"},{"title":"module:statistical.chiSq.inv.rt","link":"rt","description":"

Returns the inverse of the one-tailed probability of the chi-squared distribution.

\n

Category: Statistical

"},{"title":"module:statistical.chiSq.test","link":"test","description":"

Returns the test for independence.

\n

Category: Statistical

"},{"title":"module:statistical.confidence","link":"confidence","description":"

Returns the confidence interval for a population mean.

\n

Category: Statistical

"},{"title":"module:statistical.confidence.t","link":"t","description":"

Returns the confidence interval for a population mean, using a Student's t distribution.

\n

Category: Statistical

"},{"title":"module:statistical.coVariance.p","link":"p","description":"

Returns covariance, the average of the products of paired deviations.

\n

Category: Statistical

"},{"title":"module:statistical.coVariance.s","link":"s","description":"

Returns the sample covariance, the average of the products deviations for each data point pair in two data sets.

\n

Category: Statistical

"},{"title":"module:statistical.expon.dist","link":"dist","description":"

Returns the exponential distribution.

\n

Category: Statistical

"},{"title":"module:statistical.f.dist","link":"dist","description":"

Returns the F probability distribution.

\n

Category: Statistical

"},{"title":"module:statistical.f.dist.rt","link":"rt","description":"

Returns the F probability distribution.

\n

Category: Statistical

"},{"title":"module:statistical.f.inv","link":"inv","description":"

Returns the inverse of the F probability distribution.

\n

Category: Statistical

"},{"title":"module:statistical.f.inv.rt","link":"rt","description":"

Returns the inverse of the F probability distribution.

\n

Category: Statistical

"},{"title":"module:statistical.f.test","link":"test","description":"

Returns the result of an F-test.

\n

Category: Statistical

"},{"title":"module:statistical.hypGeom","link":"hypGeom","description":"

Returns the hypergeometric distribution.

\n

Category: Statistical

"},{"title":"module:statistical.logNorm.dist","link":"dist","description":"

Returns the cumulative lognormal distribution.

\n

Category: Statistical

"},{"title":"module:statistical.logNorm.inv","link":"inv","description":"

Returns the inverse of the lognormal cumulative distribution.

\n

Category: Statistical

"},{"title":"module:statistical.mode.mult","link":"mult","description":"

Returns a vertical array of the most frequently occurring, or repetitive values in an array or range of data.

\n

Category: Statistical

"},{"title":"module:statistical.mode.sngl","link":"sngl","description":"

Returns the most common value in a data set.

\n

Category: Statistical

"},{"title":"module:statistical.negBinom","link":"negBinom","description":"

Returns the negative binomial distribution.

\n

Category: Statistical

"},{"title":"module:statistical.norm.dist","link":"dist","description":"

Returns the normal cumulative distribution.

\n

Category: Statistical

"},{"title":"module:statistical.norm.inv","link":"inv","description":"

Returns the inverse of the normal cumulative distribution.

\n

Category: Statistical

"},{"title":"module:statistical.norm.s.dist","link":"dist","description":"

Returns the standard normal cumulative distribution.

\n

Category: Statistical

"},{"title":"module:statistical.norm.s.inv","link":"inv","description":"

Returns the inverse of the standard normal cumulative distribution.

\n

Category: Statistical

"},{"title":"module:statistical.percentile.exc","link":"exc","description":"

Returns the k-th percentile of values in a range, where k is in the range 0..1, exclusive.

\n

Category: Statistical

"},{"title":"module:statistical.percentile.inc","link":"inc","description":"

Returns the k-th percentile of values in a range.

\n

Category: Statistical

"},{"title":"module:statistical.percentRank.exc","link":"exc","description":"

Returns the rank of a value in a data set as a percentage (0..1, exclusive) of the data set.

\n

Category: Statistical

"},{"title":"module:statistical.percentRank.inc","link":"inc","description":"

Returns the percentage rank of a value in a data set.

\n

Category: Statistical

"},{"title":"module:statistical.poisson","link":"poisson","description":"

Returns the Poisson distribution.

\n

Category: Statistical

"},{"title":"module:statistical.quartile","link":"quartile","description":"

Returns the probability that values in a range are between two limits.

\n

Category: Statistical

"},{"title":"module:statistical.quartile.exc","link":"exc","description":"

Returns the quartile of the data set, based on percentile values from 0..1, exclusive.

\n

Category: Statistical

"},{"title":"module:statistical.quartile.inc","link":"inc","description":"

Returns the quartile of a data set.

\n

Category: Statistical

"},{"title":"module:statistical.rank.avg","link":"avg","description":"

Returns the rank of a number in a list of numbers.

\n

Category: Statistical

"},{"title":"module:statistical.rank.eq","link":"eq","description":"

Returns the rank of a number in a list of numbers.

\n

Category: Statistical

"},{"title":"module:statistical.stDev","link":"stDev","description":"

Estimates standard deviation based on a sample.

"},{"title":"module:statistical.stDev.p","link":"p","description":"

Calculates standard deviation based on the entire population.

\n

Category: Statistical

"},{"title":"module:statistical.stDev.s","link":"s","description":"

Estimates standard deviation based on a sample.

\n

Category: Statistical

"},{"title":"module:statistical.t.dist","link":"dist","description":"

Returns the Percentage Points (probability) for the Student t-distribution.

\n

Category: Statistical

"},{"title":"module:statistical.t.dist.'2T'","link":"'2T'","description":"

Returns the Percentage Points (probability) for the Student t-distribution

\n

Category: Statistical

"},{"title":"module:statistical.t.dist.rt","link":"rt","description":"

Returns the Student's t-distribution.

\n

Category: Statistical

"},{"title":"module:statistical.t.inv","link":"inv","description":"

Returns the t-value of the Student's t-distribution as a function of the probability and the degrees of freedom.

\n

Category: Statistical

"},{"title":"module:statistical.t.inv.'2T'","link":"'2T'","description":"

Returns the inverse of the Student's t-distribution

\n

Category: Statistical

"},{"title":"module:statistical.t.test","link":"test","description":"

Returns the probability associated with a Student's t-test.

\n

Category: Statistical

"},{"title":"module:statistical.Var","link":"Var","description":"

Compute the sample variance of a set of numbers.

"},{"title":"module:statistical.Var.p","link":"p","description":"

Calculates variance based on the entire population.

\n

Category: Statistical

"},{"title":"module:statistical.Var.s","link":"s","description":"

Estimates variance based on a sample.

\n

Category: Statistical

"},{"title":"module:statistical.weiBull","link":"weiBull","description":"

Returns the Weibull distribution.

\n

Category: Statistical

"},{"title":"module:statistical.z","link":"z","description":"

Returns the one-tailed probability-value of a z-test.

\n

Category: Statistical

"},{"title":"module:statistical~aveDev","link":"aveDev","description":"

Returns the average of the absolute deviations of data points from their mean.

\n

Category: Statistical

"},{"title":"module:statistical~average","link":"average","description":"

Returns the average of its arguments.

\n

Category: Statistical

"},{"title":"module:statistical~averageA","link":"averageA","description":"

Returns the average of its arguments, including numbers, text, and logical values.

\n

Category: Statistical

"},{"title":"module:statistical~averageIf","link":"averageIf","description":"

Returns the average (arithmetic mean) of all the values in a range that meet a given criteria.

\n

Category: Statistical

"},{"title":"module:statistical~averageIfs","link":"averageIfs","description":"

Returns the average (arithmetic mean) of all values that meet multiple criteria.

\n

Category: Statistical

"},{"title":"module:statistical~correl","link":"correl","description":"

Returns the correlation coefficient between two data sets.

\n

Category: Statistical

"},{"title":"module:statistical~count","link":"count","description":"

Counts how many numbers are in the list of arguments.

\n

Category: Statistical

"},{"title":"module:statistical~countA","link":"countA","description":"

Counts how many values are in the list of arguments.

\n

Category: Statistical

"},{"title":"module:statistical~countBlank","link":"countBlank","description":"

Counts the number of blank values within a range.

\n

Category: Statistical

"},{"title":"module:statistical~countIf","link":"countIf","description":"

Counts the number of values within a range that meet the given criteria.

\n

Category: Statistical

"},{"title":"module:statistical~countIfs","link":"countIfs","description":"

Counts the number of values within a range that meet multiple criteria.

\n

Category: Statistical

"},{"title":"module:statistical~countIn","link":"countIn","description":"

Counts the number of occurrences of a value in a given range.

\n

Category: Statistical

"},{"title":"module:statistical~countUnique","link":"countUnique","description":"

Returns the number of unique items in a flattened array\nFormula.js only

"},{"title":"module:statistical~devSq","link":"devSq","description":"

Returns the sum of squares of deviations.

\n

Category: Statistical

"},{"title":"module:statistical~fisher","link":"fisher","description":"

Returns the Fisher transformation.

\n

Category: Statistical

"},{"title":"module:statistical~fisherInv","link":"fisherInv","description":"

Returns the inverse of the Fisher transformation.

\n

Category: Statistical

"},{"title":"module:statistical~forecast","link":"forecast","description":"

Returns a value along a linear trend.

\n

Category: Statistical

"},{"title":"module:statistical~frequency","link":"frequency","description":"

Returns a frequency distribution as a vertical array.

\n

Category: Statistical

"},{"title":"module:statistical~gamma","link":"gamma","description":"

Returns the Gamma function value.

\n

Category: Statistical

"},{"title":"module:statistical~gamma.dist","link":"dist","description":"

Returns the gamma distribution.

\n

Category: Statistical

"},{"title":"module:statistical~gamma.inv","link":"inv","description":"

Returns the inverse of the gamma cumulative distribution.

\n

Category: Statistical

"},{"title":"module:statistical~gammaLn","link":"gammaLn","description":"

Returns the natural logarithm of the gamma function, Γ(x).

\n

` * Category: Statistical

"},{"title":"module:statistical~gammaLn.precise","link":"precise","description":"

Returns the natural logarithm of the gamma function, Γ(x).

\n

Category: Statistical

"},{"title":"module:statistical~gauss","link":"gauss","description":"

Returns 0.5 less than the standard normal cumulative distribution.

\n

Category: Statistical

"},{"title":"module:statistical~geoMean","link":"geoMean","description":"

Returns the geometric mean.

\n

Category: Statistical

"},{"title":"module:statistical~growth","link":"growth","description":"

Returns values along an exponential trend.

\n

Category: Statistical

"},{"title":"module:statistical~harMean","link":"harMean","description":"

Returns the harmonic mean.

\n

Category: Statistical

"},{"title":"module:statistical~intercept","link":"intercept","description":"

Returns the intercept of the linear regression line.

\n

Category: Statistical

"},{"title":"module:statistical~kurt","link":"kurt","description":"

Returns the kurtosis of a data set.

\n

Category: Statistical

"},{"title":"module:statistical~large","link":"large","description":"

Returns the k-th largest value in a data set.

\n

Category: Statistical

"},{"title":"module:statistical~linest","link":"linest","description":"

Returns the parameters of a linear trend.

\n

Category: Statistical

"},{"title":"module:statistical~logest","link":"logest","description":"

Returns the parameters of an exponential trend.

\n

Category: Statistical

"},{"title":"module:statistical~maxA","link":"maxA","description":"

Returns the maximum value in a list of arguments, including numbers, text, and logical values.

\n

Category: Statistical

"},{"title":"module:statistical~median","link":"median","description":"

Returns the median of the given numbers.

\n

Category: Statistical

"},{"title":"module:statistical~minA","link":"minA","description":"

Returns the smallest value in a list of arguments, including numbers, text, and logical values.

\n

Category: Statistical

"},{"title":"module:statistical~pearson","link":"pearson","description":"

Returns the Pearson product moment correlation coefficient.

\n

Category: Statistical

"},{"title":"module:statistical~permut","link":"permut","description":"

Returns the number of permutations for a given number of objects.

\n

Category: Statistical

"},{"title":"module:statistical~permutationA","link":"permutationA","description":"

Returns the number of permutations for a given number of objects (with repetitions) that can be selected from the total objects.

\n

Category: Statistical

"},{"title":"module:statistical~phi","link":"phi","description":"

Returns the value of the density function for a standard normal distribution.

\n

Category: Statistical

"},{"title":"module:statistical~prob","link":"prob","description":"

Returns the probability that values in a range are between two limits.

\n

Category: Statistical

"},{"title":"module:statistical~rsq","link":"rsq","description":"

Returns the square of the Pearson product moment correlation coefficient.

\n

Category: Statistical

"},{"title":"module:statistical~skew","link":"skew","description":"

Returns the skewness of a distribution.

\n

Category: Statistical

"},{"title":"module:statistical~skew.p","link":"p","description":"

Returns the skewness of a distribution based on a population.

\n

Category: Statistical

"},{"title":"module:statistical~slope","link":"slope","description":"

Returns the slope of the linear regression line.

\n

Category: Statistical

"},{"title":"module:statistical~small","link":"small","description":"

Returns the k-th smallest value in a data set.

\n

Category: Statistical

"},{"title":"module:statistical~standardize","link":"standardize","description":"

Returns a normalized value.

\n

Category: Statistical

"},{"title":"module:statistical~stDevA","link":"stDevA","description":"

Estimates standard deviation based on a sample, including numbers, text, and logical values.

\n

Category: Statistical

"},{"title":"module:statistical~stDevPA","link":"stDevPA","description":"

Calculates standard deviation based on the entire population, including numbers, text, and logical values.

\n

Category: Statistical

"},{"title":"module:statistical~steyx","link":"steyx","description":"

Returns the standard error of the predicted y-value for each x in the regression.

\n

Category: Statistical

"},{"title":"module:statistical~trend","link":"trend","description":"

Returns values along a linear trend.

\n

Category: Statistical

"},{"title":"module:statistical~trimMean","link":"trimMean","description":"

Returns the mean of the interior of a data set.

\n

Category: Statistical

"},{"title":"module:statistical~varA","link":"varA","description":"

Estimates variance based on a sample, including numbers, text, and logical values.

\n

Category: Statistical

"},{"title":"module:statistical~varPA","link":"varPA","description":"

Calculates variance based on the entire population, including numbers, text, and logical values.

\n

Category: Statistical

"},{"title":"module:text","link":"text","description":"

Text & Strings

"},{"title":"module:text~abstract","link":"abstract","description":"

Abbreviates the contents of one or more fields by:

\n
    \n
  • Selecting the most significant words in a body of text
  • \n
  • Abbreviating common words
  • \n
  • Dropping vowels from words
  • \n
  • Removing unnecessary text or characters, such as mail headers or white space
  • \n
"},{"title":"module:text~abstractSimple","link":"abstractSimple","description":"

Creates a short abstract of a text or rich text field. Simpler and more\nefficient than using @Abstract.

"},{"title":"module:text~ascii","link":"ascii","description":"

Converts an LMBCS (Lotus® Multi-Byte Character Set) string to an ASCII string.

"},{"title":"module:text~begins","link":"begins","description":"

Determines whether a particular substring is stored at the beginning of another\nstring.

"},{"title":"module:text~char","link":"char","description":"

Converts IBM Code Page 850 code number into the corresponding single character string.

"},{"title":"module:text~compare","link":"compare","description":"

Compares the alphabetic order of the elements in two lists pair-wise.

"},{"title":"module:text~contains","link":"contains","description":"

Determines whether a substring is stored within a string.

"},{"title":"module:text~ends","link":"ends","description":"

Determines if a substring is at the end of a string.

"},{"title":"module:text~fileDir","link":"fileDir","description":"

Returns the directory portion of a path name, that is, the path name minus the\nfile name.

"},{"title":"module:text~fixed","link":"fixed","description":"

Formats a number as text with a fixed number of decimals.

\n

Category: Text

"},{"title":"module:text~isNumber","link":"isNumber","description":"

Indicates if a given value is a number (or a number list).

"},{"title":"module:text~isText","link":"isText","description":"

Indicates whether a value is text (or a text list).

"},{"title":"module:text~isTime","link":"isTime","description":"

Indicates whether a value is a time-date (or a time-date list).

"},{"title":"module:text~left","link":"left","description":"

Searches a string from left to right and returns the leftmost characters of the string.

"},{"title":"module:text~leftBack","link":"leftBack","description":"

Searches a string from right to left and returns a substring.

"},{"title":"module:text~length","link":"length","description":"

Returns the number of characters in a text string.

"},{"title":"module:text~like","link":"like","description":"

Matches a string with a pattern. It is case-sensitive and supports the NotesSQL\nODBC driver.

"},{"title":"module:text~lowerCase","link":"lowerCase","description":"

Converts the uppercase letters in the specified string to lowercase.

"},{"title":"module:text~matches","link":"matches","description":"

Tests a string for a pattern string. Because the pattern string can contain a\nnumber of "wildcard" characters and logical symbols, you can test for complex\ncharacter patterns.

"},{"title":"module:text~middle","link":"middle","description":"

Returns any substring from the middle of a string. The middle is found by\nscanning the string from left to right, and parameters determine where the\nmiddle begins and ends.

"},{"title":"module:text~middleBack","link":"middleBack","description":"

Returns any substring from the middle of a string. The middle is found by\nscanning the string from right to left, and parameters determine where the middle\nbegins and ends.

"},{"title":"module:text~narrow","link":"narrow","description":"

Converts full-pitch alphanumeric characters (double byte characters -- DBCS) in\nthe specified string to half-pitch alphanumeric characters (single byte\ncharacters -- SBCS). This function works in Japanese, Korean, Simplified Chinese,\nand traditional Chinese environments. In the Japanese environment, this function\ncan convert full-pitch Katakana as well.

"},{"title":"module:text~newLine","link":"newLine","description":"

returns a new line (carriage return) into a text string.

"},{"title":"module:text~properCase","link":"properCase","description":"

Converts the words in a string to proper-name capitalization: the first letter\nof each word becomes uppercase, all others become lowercase.

"},{"title":"module:text~repeat","link":"repeat","description":"

Repeats a string a specified number of times.

"},{"title":"module:text~replaceSubstring","link":"replaceSubstring","description":"

Replaces specific words or phrases in a string with new words or phrases that\nyou specify. Case sensitive.

"},{"title":"module:text~right","link":"right","description":"

Returns the rightmost characters in the string. You can specify the number of\nrightmost characters you want returned, or you can indicate that you want all\nthe characters following a specific substring.

"},{"title":"module:text~rightBack","link":"rightBack","description":"

Returns the rightmost characters in a string.

"},{"title":"module:text~text","link":"text","description":"

Converts any value to a text string.

"},{"title":"module:text~textAlignCenter","link":"textAlignCenter","description":"

Centers the current text.

"},{"title":"module:text~textAlignFull","link":"textAlignFull","description":"

Aligns text along the left margin.

"},{"title":"module:text~textAlignLeft","link":"textAlignLeft","description":"

Aligns text along the left margin.

"},{"title":"module:text~textAlignNone","link":"textAlignNone","description":"

Reverses the previously specified alignment settings.

"},{"title":"module:text~textAlignRight","link":"textAlignRight","description":"

Aligns text along the right margin.

"},{"title":"module:text~textBold","link":"textBold","description":"

Makes the selected and subsequently entered text bold. This command is a toggle;\nselecting it again removes the bold.

"},{"title":"module:text~textBullet","link":"textBullet","description":"

Applies the bullet attribute to selected and subsequently entered text.

"},{"title":"module:text~textCycleSpacing","link":"textCycleSpacing","description":"

Resets the interline spacing below the selected text to single, one and a half,\nor double.

"},{"title":"module:text~textEnlargeFont","link":"textEnlargeFont","description":"

Increases selected and subsequently entered text to the next larger point size.

"},{"title":"module:text~textFont","link":"textFont","description":"

Displays the Properties box for the current text, where the user can select the\ntypeface, size, color, and style attributes.

"},{"title":"module:text~textItalic","link":"textItalic","description":"

Italicizes the selected and subsequently entered text. This command is a toggle;\nselecting it a second time removes the italics.

"},{"title":"module:text~textNormal","link":"textNormal","description":"

Removes all style attributes from selected and subsequently entered text.

"},{"title":"module:text~textNumbers","link":"textNumbers","description":"

Applies the numbers attribute to selected and subsequently entered text.

"},{"title":"module:text~textOutdent","link":"textOutdent","description":"

Outdents selected and subsequently entered text by narrowing its left margin.

"},{"title":"module:text~textParagraph","link":"textParagraph","description":"

Displays the Paragraph Alignment panel of the Text Properties box.

"},{"title":"module:text~textParagraphStyles","link":"textParagraphStyles","description":"

Displays the Paragraph Styles panel of the Text Properties box.

"},{"title":"module:text~textPermanentPen","link":"textPermanentPen","description":"

Toggles the permanent pen.

"},{"title":"module:text~textReduceFont","link":"textReduceFont","description":"

Decreases the selected text to the next smaller point size.

"},{"title":"module:text~textSetFontColor","link":"textSetFontColor","description":"

Displays selected or subsequently entered text using the specified color.

"},{"title":"module:text~textSetFontFace","link":"textSetFontFace","description":"

Displays selected or subsequently entered text using the specified typeface.

"},{"title":"module:text~textSetFontSize","link":"textSetFontSize","description":"

Displays text using the specified point size.

"},{"title":"module:text~textSpacingDouble","link":"textSpacingDouble","description":"

Sets Interline spacing below the selected text to double.

"},{"title":"module:text~textSpacingOneAndAHalf","link":"textSpacingOneAndAHalf","description":"

Sets interline spacing below the selected text to one and a half.

"},{"title":"module:text~textSpacingSingle","link":"textSpacingSingle","description":"

Sets interline spacing below the selected text to single.

"},{"title":"module:text~textToNumber","link":"textToNumber","description":"

Converts a text string to a number, where possible.

"},{"title":"module:text~textToTime","link":"textToTime","description":"

Converts a text string to a time-date value, where possible.

"},{"title":"module:text~textUnderline","link":"textUnderline","description":"

Underlines selected and subsequently entered text. This command is a toggle;\nselecting it a second time removes the underlining.

"},{"title":"module:text~timeToTextInZone","link":"timeToTextInZone","description":"

Converts a time-date value to a text string, incorporating time zone information.

"},{"title":"module:text~timeZoneToText","link":"timeZoneToText","description":"

Converts a canonical time zone value to a human-readable text string.

"},{"title":"module:text~toNumber","link":"toNumber","description":"

Converts a value to a number.

"},{"title":"module:text~toTime","link":"toTime","description":"

Converts a value with a data type of text or time to a date-time value.

"},{"title":"module:text~trim","link":"trim","description":"

Removes leading, trailing, and redundant spaces from a text string, or from each\nelement of a text list.

"},{"title":"module:text~upperCase","link":"upperCase","description":"

Converts the lowercase letters in the specified string to uppercase.

"},{"title":"module:text~wide","link":"wide","description":"

Converts half-pitch alphanumeric characters (single-byte characters -- SBCS) in\nthe specified string to full-pitch alphanumeric characters (double-byte\ncharacters -- DBCS). This function works in Japanese, Korean, Simplified\nChinese, and traditional Chinese environments. In the Japanese environment, this\nfunction can convert half-pitch Katakana as well.

"},{"title":"module:text~word","link":"word","description":"

Returns the specified word from a text string. A "word" is defined as the part\nof a string that is delimited by the defined separator character. For example,\nif you specify a space (" ") as the separator, then a word is any series of\ncharacters preceded by and followed by a space (or the beginning or end of the\nstring).

"},{"title":"module:tools","link":"tools","description":"

Tools

"},{"title":"module:tools~toolsCall","link":"toolsCall","description":"

Displays the Call Server dialog box, where the user can select a server to dial\nin to.

"},{"title":"module:tools~toolsCategorize","link":"toolsCategorize","description":"

Categorizes the current document.

"},{"title":"module:tools~toolsHangUp","link":"toolsHangUp","description":"

Displays the Hang Up dialog box.

"},{"title":"module:tools~toolsMarkAllRead","link":"toolsMarkAllRead","description":"

Marks all of the documents in a database as read.

"},{"title":"module:tools~toolsMarkAllUnread","link":"toolsMarkAllUnread","description":"

Marks all of the documents in a database as unread.

"},{"title":"module:tools~toolsMarkSelectedRead","link":"toolsMarkSelectedRead","description":"

In a view or folder, marks all of the selected documents as read.

"},{"title":"module:tools~toolsMarkSelectedUnread","link":"toolsMarkSelectedUnread","description":"

In a view or folder, marks all of the selected documents as unread.

"},{"title":"module:tools~toolsRefreshAllDocs","link":"toolsRefreshAllDocs","description":"

Refreshes the fields of all the documents in a view or folder.

"},{"title":"module:tools~toolsRefreshSelectedDocs","link":"toolsRefreshSelectedDocs","description":"

Refreshes the fields of all the selected documents in a view or folder.

"},{"title":"module:tools~toolsReplicate","link":"toolsReplicate","description":"

Displays the Replicate dialog box, where the user can choose to replicate the\ncurrent database using the options defined in Replicator or using special\none-time options.

"},{"title":"module:tools~toolsRunBackgroundMacros","link":"toolsRunBackgroundMacros","description":"

Runs all of the database's scheduled agents, regardless of when they are\nscheduled to run. The agents will then run as usual at their regularly scheduled\ntimes.

"},{"title":"module:tools~toolsRunMacro","link":"toolsRunMacro","description":"

Executes a specified agent.

"},{"title":"module:tools~toolsScanUnreadChoose","link":"toolsScanUnreadChoose","description":"

Displays the Scan Unread Preferred Setup dialog box, where the user can select\nthe preferred databases to be scanned for unread documents.

"},{"title":"module:tools~toolsScanUnreadPreferred","link":"toolsScanUnreadPreferred","description":"

Displays the Scan Unread dialog box, where the user can see unread counts for\neach of the user preferred databases.

"},{"title":"module:tools~toolsScanUnreadSelected","link":"toolsScanUnreadSelected","description":"

Opens the selected database to the first unread document. The user can then\nnavigate to subsequent unread documents.

"},{"title":"module:tools~toolsSetupLocation","link":"toolsSetupLocation","description":"

Opens the current location document in your Personal Address Book in Edit mode,\nallowing you to change your home server, mail database location, and time zone.

"},{"title":"module:tools~toolsSetupMail","link":"toolsSetupMail","description":"

Displays the Mail section of the User Preferences dialog box, where the user can\nindicate how often Notes® should check for new mail, whether to sign and encrypt\noutgoing mail, and so on.

"},{"title":"module:tools~toolsSetupPorts","link":"toolsSetupPorts","description":"

Displays the Ports section of the User Preferences dialog box, where the user\ncan enable and disable network ports.

"},{"title":"module:tools~toolsSetupUserSetup","link":"toolsSetupUserSetup","description":"

Displays the Basics section of the User Preferences dialog box, where the user\ndefines Notes® startup options.

"},{"title":"module:tools~toolsSmartIcons","link":"toolsSmartIcons","description":"

Displays the Toolbar Preferences dialog box where you can create new toolbars\nand customize the content and display of existing toolbars.

"},{"title":"module:tools~toolsSpellCheck","link":"toolsSpellCheck","description":"

Starts the Notes® spell checker.

"},{"title":"module:tools~toolsUserLogoff","link":"toolsUserLogoff","description":"

Logs the user off of all Domino® servers. Reconnecting to a Domino® server\nrequires the user Notes® ID and, if one is set, password.

"},{"title":"module:URL","link":"URL","description":"

url

"},{"title":"module:URL~urlDecode","link":"urlDecode","description":"

Decodes a URL string into regular text.

"},{"title":"module:URL~urlEncode","link":"urlEncode","description":"

Encodes a string into a URL-safe format.

"},{"title":"module:URL~urlGetHeader","link":"urlGetHeader","description":"

Returns specific Hypertext Transfer Protocol (HTTP) header information from the\nUniform Resource Locator (URL). A URL is a text string used for identifying and\naddressing a Web page.

"},{"title":"module:URL~urlHistory","link":"urlHistory","description":"

Used for navigating, saving, and reloading a Uniform Resource Locator (URL)\nhistory list. The URL history list keeps track of all the Web pages you have\nvisited. The history list is used for the Next and Previous buttons and for the\nWeb Tours.

"},{"title":"module:URL~urlOpen","link":"urlOpen","description":"

Retrieves a World Wide Web page specified by its URL.

"},{"title":"module:URL~urlQueryString","link":"urlQueryString","description":"

In a Web application, returns the current URL command and parameters, or the\nvalue of one of the parameters.

"},{"title":"module:user-environment","link":"user-environment","description":"

User Environment

"},{"title":"module:user-environment~domain","link":"domain","description":"

Returns the name of the current user's Domino® mail domain listed in the current\nlocation document of the Personal Address Book.

"},{"title":"module:user-environment~mailDbName","link":"mailDbName","description":"

Returns the name of the Domino® server and the name of the current user's mail\ndatabase.

"},{"title":"module:user-environment~name","link":"name","description":"

Allows you to manipulate hierarchical names. You can abbreviate the canonical\nformat of a name, expand an abbreviated name to its canonical format, identify\nparticular components within the name, and reverse the order of the components\nso that you can categorize a view by hierarchical names.

\n

Enables you to convert a name between the Domino® and LDAP formats.

"},{"title":"module:user-environment~optimizeMailAddress","link":"optimizeMailAddress","description":"

Returns a mail address with all unnecessary domains removed.

"},{"title":"module:user-environment~password","link":"password","description":"

Encodes a string.

"},{"title":"module:user-environment~platform","link":"platform","description":"

Returns the name of the currently running platform version of Notes, Domino,\nor Nomad.

"},{"title":"module:user-environment~statusBar","link":"statusBar","description":"

Writes a message or messages to the status bar.

"},{"title":"module:user-environment~userAccess","link":"userAccess","description":"

Given a server and file name, indicates the current user's level of access to\nthe database.

"},{"title":"module:user-environment~userName","link":"userName","description":"

Returns the current user name.

\n

If the user name is hierarchical, @UserName returns it in canonical format\n(including the CN, OU, O, and C identifiers). To return the name in abbreviated\nformat (omitting those identifiers), use @V3UserName.

"},{"title":"module:user-environment~userNameLanguage","link":"userNameLanguage","description":"

Returns language tags associated with the user ID.

"},{"title":"module:user-environment~userNamesList","link":"userNamesList","description":"

For a database on a server or a local database with "Enforce a consistent Access\nControl List across all replicas" in effect, @UserNamesList returns a text\nlist containing the following information for the current user:

\n
    \n
  • Common name
  • \n
  • All hierarchical names (fully distinguished) that include the user name; for\nexample, CN=My Name/OU=My Org Unit/O=My Org, plus \t*/OU=My Org\nUnit/O=My Org, */O=My Org, and *
  • \n
  • Any roles associated with the user in the ACL
  • \n
  • All groups to which the user belongs (only if the database is on a server)
  • \n
"},{"title":"module:user-environment~userPrivileges","link":"userPrivileges","description":"

Returns a text list of the current user's privileges. This function returns only\nthe position of the privilege in the privilege list, not the name of the\nprivilege.

"},{"title":"module:user-environment~userRoles","link":"userRoles","description":"

For a database on a server or a local replicated database, returns a list of\nroles that the current user has. Roles are defined in a database's access control\nlist.

"},{"title":"module:user-environment~v3UserName","link":"v3UserName","description":"

Returns the current user name or server name. Using @V3UserName on a local\ndatabase or in a private view in a server-based database returns the user's name.

\n

If the user name is hierarchical, @V3UserName returns the name in\nabbreviated format (omitting the CN, OU, O, and C identifiers). To return the\nname in canonical format, use @UserName.

"},{"title":"module:user-environment~v4UserAccess","link":"v4UserAccess","description":"

Given a server and file name, indicates the current user's level of access to\nthe database.

"},{"title":"module:user-environment~version","link":"version","description":"

Returns the release number of the Notes/Domino software you're running.

"},{"title":"module:userid","link":"userid","description":"

User Id

"},{"title":"module:userid~userIDCertificates","link":"userIDCertificates","description":"

Displays the Certificates section of the User ID dialog box. If the user ID is\npassword-protected, the user must enter the password before displaying the\ndialog box.

"},{"title":"module:userid~userIDClearPassword","link":"userIDClearPassword","description":"

Displays the Enter Password dialog box where the password associated with the\nuser ID can be removed.

"},{"title":"module:userid~userIDCreateSafeCopy","link":"userIDCreateSafeCopy","description":"

Displays the Enter Safe Copy ID File Name dialog box, where the user defines a\nfile name for storing a safe copy of the Notes/Domino user ID. The safe copy\ncontains only the user name and public key. The private key and all certificates\nare omitted from the safe copy.

"},{"title":"module:userid~userIDEncryptionKeys","link":"userIDEncryptionKeys","description":"

Displays the Encryption section of the User ID dialog box. If the user ID is\npassword-protected, the user must enter the password before displaying the\ndialog box.

"},{"title":"module:userid~userIDInfo","link":"userIDInfo","description":"

Displays the Basics section of the User ID Information dialog box.

"},{"title":"module:userid~userIDMergeCopy","link":"userIDMergeCopy","description":"

Displays the Choose User ID to Merge into Current® ID dialog box. This lets the\nuser select an updated user ID (for example, one that has been certified by an\nadministrator) and merge it into the existing user ID (thus retaining the\ninformation already stored in the existing ID). If the user ID is\npassword-protected, Notes/Domino requires the user to enter the password before\ndisplaying the dialog box.

"},{"title":"module:userid~userIDSetPassword","link":"userIDSetPassword","description":"

Displays the Set Password dialog box where the user can enter a new password for\nthe Notes/Domino ID. If a password already exists, the user must enter the\nexisting password before specifying a new one.

"},{"title":"module:userid~userIDSwitch","link":"userIDSwitch","description":"

Displays the Choose User ID to Switch To dialog box. If the selected ID is\npassword-protected, Notes/Domino next displays the Enter Password dialog box,\nwhere the user must enter the correct password.

"},{"title":"module:view","link":"view","description":"

View

"},{"title":"module:view~getViewInfo","link":"getViewInfo","description":"

Returns a view attribute.

"},{"title":"module:view~viewArrangeIcons","link":"viewArrangeIcons","description":"

Aligns database icons on the current workspace page from left to right and\nbeginning to end.

"},{"title":"module:view~viewBelowFolders","link":"viewBelowFolders","description":"

Places the view pane at the end of the screen and the folder pane at the\nbeginning.

"},{"title":"module:view~viewBesideFolders","link":"viewBesideFolders","description":"

Places the view pane at the right of the screen and the folder pane at the left.

"},{"title":"module:view~viewCertify","link":"viewCertify","description":"

Displays the Choose Certifier ID dialog box, in which you specify the\ncertification to be renewed for the selected user or users.

"},{"title":"module:view~viewChange","link":"viewChange","description":"

Switches to the specified view or folder within the current database or, if a\nview or folder is not specified, displays the View menu so the user can select\na view.

"},{"title":"module:view~viewCollapse","link":"viewCollapse","description":"

Collapses all levels of subcategories, documents, and responses within the\ncurrent category, so only the first category name shows. If the view or folder\nhas a response hierarchy but is not categorized, ViewCollapse collapses all\nlevels of response documents under the current main document.

"},{"title":"module:view~viewCollapseAll","link":"viewCollapseAll","description":"

Collapses all levels of categories, subcategories, documents, and responses\nwithin a view or folder so that only the first level of category names appears.\nIf the view or folder has a response hierarchy but is not categorized,\nViewCollapseAll collapses all levels of response documents under the main\ndocuments.

"},{"title":"module:view~viewExpand","link":"viewExpand","description":"

Expands one level of subcategories, documents, and responses within the current\ncategory. If the view or folder has a response hierarchy but is not categorized,\nViewExpand expands all levels of response documents under the current main\ndocument.

"},{"title":"module:view~viewExpandAll","link":"viewExpandAll","description":"

Expands all levels of categories, subcategories, documents, and responses within\nthe view or folder.

"},{"title":"module:view~viewExpandWithChildren","link":"viewExpandWithChildren","description":"

Expands all levels of subcategories, documents, and responses within the\nselected category.

"},{"title":"module:view~viewHorizScrollBar","link":"viewHorizScrollBar","description":"

Toggles display of the horizontal scroll bar in a view or folder.

"},{"title":"module:view~viewMoveName","link":"viewMoveName","description":"

Displays the Choose Certifier ID dialog box, which allows you to specify the\norganizational unit for which you want to certify the selected user.

"},{"title":"module:view~viewNavigatorsFolders","link":"viewNavigatorsFolders","description":"

Displays the Folders and Views navigators in the navigator pane and the view or\nfolder that the user most recently selected.

"},{"title":"module:view~viewNavigatorsNone","link":"viewNavigatorsNone","description":"

Hides the navigator pane.

"},{"title":"module:view~viewRefreshFields","link":"viewRefreshFields","description":"

Recalculates the fields in the current document or updates the current view or\nfolder.

"},{"title":"module:view~viewRefreshUnread","link":"viewRefreshUnread","description":"

Updates the unread counts on all database icons displayed on the current\nworkspace page.

"},{"title":"module:view~viewRenamePerson","link":"viewRenamePerson","description":"

Displays the Certify Selected Entries dialog box, which enables you to upgrade\nthe selected user name to a hierarchical name, change the user's common name, or\nchange the user's hierarchical name.

"},{"title":"module:view~viewShowFieldHelp","link":"viewShowFieldHelp","description":"

Shows field Help, so that the Help description for the current field (if\navailable) appears on the status bar while the user composes or edits a\ndocument. (Field Help is a design option specified in the Field Properties box.)\nThis command is a toggle; selecting it a second time hides the field Help.

"},{"title":"module:view~viewShowObject","link":"viewShowObject","description":"

Displays the "object delimiter" -- a dotted frame surrounding an OLE/LEL object\nwithin a field. This command is a toggle; selecting it a second time hides the\nobject delimiter so the OLE/LEL object looks like regular, editable data.

"},{"title":"module:view~viewShowOnlyCategories","link":"viewShowOnlyCategories","description":"

Collapses the view or folder so that only category and subcategory names show up.\nThis command is a toggle; selecting it a second time expands all category levels.

"},{"title":"module:view~viewShowOnlySearchResults","link":"viewShowOnlySearchResults","description":"

Shows the results of a full-text search as selected documents in a view or\nfolder. This command is a toggle. Instead of listing only the documents that\nsatisfy the search query (the default for a full-text search), the view or\nfolder lists all the documents it normally lists, with a check mark in front\nof those documents that satisfy the search query.

"},{"title":"module:view~viewShowOnlySelected","link":"viewShowOnlySelected","description":"

Displays only the selected documents or categories in the view or folder (those\ndocuments with a check mark). This command is a toggle; selecting it a second\ntime displays all documents or categories.

"},{"title":"module:view~viewShowOnlyUnread","link":"viewShowOnlyUnread","description":"

Displays only the unread documents in the view or folder. This command is a\ntoggle; selecting it again displays all documents in the view or folder.

"},{"title":"module:view~viewShowPageBreaks","link":"viewShowPageBreaks","description":"

Displays a line representing each page break in the document. The page breaks\nindicate where Notes® will end each page when the document is printed on the\ncurrently selected printer. This command is a toggle; selecting it a second time\nsuppresses the display of automatic page breaks (manual page breaks will still\nbe displayed).

"},{"title":"module:view~viewShowRuler","link":"viewShowRuler","description":"

Toggles the display of the ruler while a document is open in Edit mode.

"},{"title":"module:view~viewShowSearchBar","link":"viewShowSearchBar","description":"

Toggles the display of the full-text search bar at the beginning of the view. If\nthe database does not have a full-text index, the search bar displays but is not\nusable.

"},{"title":"module:view~viewShowServerNames","link":"viewShowServerNames","description":"

Toggles the display of server names on the database icons in the user's\nworkspace.

"},{"title":"module:view~viewShowUnread","link":"viewShowUnread","description":"

Toggles the display of the unread document count on each database icon on the\nuser's workspace.

"},{"title":"module:view~viewSwitchForm","link":"viewSwitchForm","description":"

Changes the form used to display the current document.

"},{"title":"module:volt-formula","link":"volt-formula","description":"

Volt Formula

"},{"title":"module:volt-formula~context","link":"context","description":"

Gets the current API context (if ctx param is null or not supplied) or\nSets the API context to either database for local DOM, for those APIs\nthat require working with differents contexts such as GetField/SetField

"},{"title":"module:volt-formula~debug","link":"debug","description":"

Uses the console object's methods to display Debug messages,\nprepending them with a timestamp. Defaults to console.log() if\nno type of logger is supplied

"},{"title":"module:window","link":"window","description":"

Window

"},{"title":"module:window~closeWindow","link":"closeWindow","description":"

Same as the File - Close command menu. Closes the current Notes® tab, or the\nwindow if this was the last tab in the window. If the document or design element\nin that window has not been saved, Notes® prompts the user to save it before\nclosing.

"},{"title":"module:window~refreshWindow","link":"refreshWindow","description":"

Reloads or refreshes the contents of the current window.

"},{"title":"module:window~reloadWindow","link":"reloadWindow","description":"

Reloads or refreshes the contents of the current window.

"},{"title":"module:window~windowCascade","link":"windowCascade","description":"

Resizes all open Notes/Domino windows to less than 50% of their maximum window\nsize and layers them in a cascading stack. Because the layered stack is cascaded,\nthe title bar of each window is visible behind the stack's first window. To\ndisplay a window that is lower in the stack, you can make it first by clicking\nits title bar.

"},{"title":"module:window~windowMaximize","link":"windowMaximize","description":"

Maximizes the active Notes/Domino window (the window whose title bar is\nhighlighted).

"},{"title":"module:window~windowMaximizeAll","link":"windowMaximizeAll","description":"

Maximizes all open Notes/Domino windows. Notes/Domino windows include the\nDesigner and Administration client windows as well as any of the Notes® Help\nwindows.

"},{"title":"module:window~windowMinimize","link":"windowMinimize","description":"

Minimizes the active Notes/Domino window (the window whose title bar is\nhighlighted).

"},{"title":"module:window~windowMinimizeAll","link":"windowMinimizeAll","description":"

Minimizes all open Notes/Domino windows. Notes/Domino windows include the\nDesigner and Administration client windows as well as any of the Notes® Help\nwindows.

"},{"title":"module:window~windowNext","link":"windowNext","description":"

Maximizes the Notes® window whose taskbar button follows the current window's\ntaskbar button or, if the windows are cascaded, moves the next window in the\nstack to the beginning of the stack.

"},{"title":"module:window~windowRestore","link":"windowRestore","description":"

Restores the active window to its former size (before it was maximized or\nminimized).

"},{"title":"module:window~windowTile","link":"windowTile","description":"

Resizes all open Notes/Domino windows to display them all at once. The open\nwindows are tiled across the screen until they fill the background. If two\nwindows are currently open, Notes® displays them side-by-side. If four windows\nare open, Notes® displays one in each of the four quadrants of the window.

"},{"title":"module:window~windowWorkspace","link":"windowWorkspace","description":"

Displays the Notes/Domino workspace as the active window.

"},{"title":"module:workspace","link":"workspace","description":"

workspace

"},{"title":"module:workspace~workspaceProperties","link":"workspaceProperties","description":"

Displays the Properties box for the Notes/Domino workspace.

"},{"title":"module:workspace~workspaceStackReplicaIcons","link":"workspaceStackReplicaIcons","description":"

For databases on the workspace that are replicas of one another, stacks them\ninto a single icon. The command is a toggle; selecting it a second time unstacks\nthe replica icons and displays each icon individually.

"}]} \ No newline at end of file diff --git a/javadoc/database.js.html b/javadoc/database.js.html new file mode 100644 index 00000000..3d278a22 --- /dev/null +++ b/javadoc/database.js.html @@ -0,0 +1,582 @@ +Source: database.js
On this page

database.js

"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.switchView = exports.renameDatabase = exports.publishDatabase = exports.databaseReplSettings = exports.databaseDelete = exports.addDatabaseRepID = exports.addDatabase = exports.webDbName = exports.viewTitle = exports.setProfileField = exports.serverName = exports.replicaID = exports.isExpandable = exports.isDB2 = exports.getProfileField = exports.dbTitle = exports.dbName = exports.dbManager = exports.dbExists = exports.dbCommand = exports.dB2Schema = exports.setDocField = exports.selectDocuments = exports.isCategory = exports.getDocField = exports.docSiblings = exports.docParentNumber = exports.docNumber = exports.docLevel = exports.docDescendants = exports.docChildren = exports.dbLookup = exports.dbColumn = exports.dVarP = exports.dVar = exports.dSum = exports.dstDevP = exports.dstDev = exports.dProduct = exports.dMin = exports.dMax = exports.dGet = exports.dCountA = exports.dCount = exports.dAverage = exports.findField = exports._openFormula = exports._notes_vmx_utils = exports._notes_vmx = exports._notes = void 0;
+const tslib_1 = require("tslib");
+/**
+ * @file Database
+ * @module database
+ * @category Database
+ */
+const openf = tslib_1.__importStar(require("../openformula/database"));
+const notesf_base = tslib_1.__importStar(require("../notes/database"));
+const notesf_vmx = tslib_1.__importStar(require("../notes/voltmx/database"));
+const notesf_vmx_utils = tslib_1.__importStar(require("../notes/voltmx/database.utils"));
+const API = tslib_1.__importStar(require("../rosetta/API"));
+const notesf = () => API.isDefaultFrameworkVoltMX() ? notesf_vmx : notesf_base;
+const notesc = notesf; // notes commands are exposed in the notes functions source file; this notesc is just for visual cue
+exports._notes = notesf_base;
+exports._notes_vmx = notesf_vmx;
+exports._notes_vmx_utils = notesf_vmx_utils;
+exports._openFormula = openf;
+//-----------------------------
+// Open Formula database
+/**
+ *
+ * Not listed as a public database function in OpenFormula help
+ *
+ * @param {Array} database
+ * @param {string} title
+ * @returns (TBD)
+ */
+function findField(database, title) {
+    return openf.FINDFIELD(database, title);
+}
+exports.findField = findField;
+/**
+ * Finds the average of values in a given field from the records (rows) in a
+ * database that match a search criteria.
+ * @param {Array} database Range of values that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.
+ * @param {string} field Indicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.
+ * @param {Array} criteria Range of values that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one value below the column label in which you specify a condition for the column.
+ * @returns {number} Average of the field's values from call to OpenFormula DAVERAGE function
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DAVERAGE|www.oasis-open.org}
+ */
+function dAverage(database, field, criteria) {
+    return openf.DAVERAGE(database, field, criteria);
+}
+exports.dAverage = dAverage;
+/**
+ * Counts the number of records (rows) in a database that match a search criteria
+ * and contain numerical values.
+ * @param {Array} database The database
+ * @param {string} field The field
+ * @param {Array} criteria The criteria
+ * @returns {number} Count of records matching search criteria from call to OpenFormula
+ *     DCOUNT function
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DCOUNT|www.oasis-open.org}
+ */
+function dCount(database, field, criteria) {
+    return openf.DCOUNT(database, field, criteria);
+}
+exports.dCount = dCount;
+/**
+ * Counts the number of records (rows) in a database that match a search criteria
+ * and contain values (as COUNTA).
+ * @param {Array} database The database
+ * @param {string} field The field
+ * @param {Array} criteria The criteria
+ * @returns {number} Count of records matching search criteria from call to OpenFormula
+ *     DCOUNTA function
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DCOUNTA|www.oasis-open.org}
+ */
+function dCountA(database, field, criteria) {
+    return openf.DCOUNTA(database, field, criteria);
+}
+exports.dCountA = dCountA;
+/**
+ * Get the single value in the field from the single record (row) in a database
+ * that matches a search criteria.
+ * @param {Array} database The database
+ * @param {string} field The field
+ * @param {Array} criteria The criteria
+ * @returns {number} Value in field matching search criteria from call to OpenFormula DGET function
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DGET|www.oasis-open.org}
+ */
+function dGet(database, field, criteria) {
+    return openf.DGET(database, field, criteria);
+}
+exports.dGet = dGet;
+/**
+ * Finds the maximum value in a given field from the records (rows) in a database
+ * that match a search criteria.
+ * @param {Array} database The database
+ * @param {string} field The field
+ * @param {Array} criteria The criteria
+ * @returns {number} Maximum value of the field's values matching search criteria from call
+ *     to OpenFormula DMAX function
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DMAX|www.oasis-open.org}
+ */
+function dMax(database, field, criteria) {
+    return openf.DMAX(database, field, criteria);
+}
+exports.dMax = dMax;
+/**
+ * Finds the minimum value in a given field from the records (rows) in a database
+ * that match a search criteria.
+ * @param {Array} database The database
+ * @param {string} field The field
+ * @param {Array} criteria The criteria
+ * @returns {number} Minimum value of the field's values matching search criteria from call
+ *     to OpenFormula DMIN function
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DMIN|www.oasis-open.org}
+ */
+function dMin(database, field, criteria) {
+    return openf.DMIN(database, field, criteria);
+}
+exports.dMin = dMin;
+/**
+ * Finds the product of values in a given field from the records (rows) in a
+ * database that match a search criteria.
+ * @param {Array} database The database
+ * @param {string} field The field
+ * @param {Array} criteria The criteria
+ * @returns {number} Product of the field's values matching search criteriain field records
+ *     matching search criteria from call to OpenFormula DPRODUCT function
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DPRODUCT|www.oasis-open.org}
+ */
+function dProduct(database, field, criteria) {
+    return openf.DPRODUCT(database, field, criteria);
+}
+exports.dProduct = dProduct;
+/**
+ * Finds the sample standard deviation in a given field from the records (rows) in
+ * a database that match a search criteria.
+ * @param {Array} database The database
+ * @param {string} field The field
+ * @param {Array} criteria The criteria
+ * @returns {number} Sample standard deviation of the field's values matching search criteria
+ *     from call to OpenFormula DSTDEV function
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DSTDEV|www.oasis-open.org}
+ */
+function dstDev(database, field, criteria) {
+    return openf.DSTDEV(database, field, criteria);
+}
+exports.dstDev = dstDev;
+/**
+ * Finds the population standard deviation in a given field from the records (rows)
+ * in a database that match a search criteria.
+ * @param {Array} database The database
+ * @param {string} field The field
+ * @param {Array} criteria The criteria
+ * @returns {number} Population standard deviation of the field's values matching search
+ *     criteria from call to OpenFormula DSTDEVP function
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DSTDEVP|www.oasis-open.org}
+ */
+function dstDevP(database, field, criteria) {
+    return openf.DSTDEVP(database, field, criteria);
+}
+exports.dstDevP = dstDevP;
+/**
+ * Finds the sum of values in a given field from the records (rows) in a database
+ * that match a search criteria.
+ * @param {Array} database The database
+ * @param {string} field The field
+ * @param {Array} criteria The criteria
+ * @returns {number} Sum of the field's values matching search criteria from call to
+ *     OpenFormula DSUM function
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DSUM|www.oasis-open.org}
+ */
+function dSum(database, field, criteria) {
+    return openf.DSUM(database, field, criteria);
+}
+exports.dSum = dSum;
+/**
+ * Finds the sample variance in a given field from the records (rows) in a database
+ * that match a search criteria.
+ * @param {Array} catabase The database
+ * @param {string} field The field
+ * @param {Array} criteria The criteria
+ * @returns {number} Sample variance of the field's values matching search criteria from call
+ *     to OpenFormula DVAR function
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DVAR|www.oasis-open.org}
+ */
+function dVar(database, field, criteria) {
+    return openf.DVAR(database, field, criteria);
+}
+exports.dVar = dVar;
+/**
+ * Finds the population variance in a given field from the records (rows) in a
+ * database that match a search criteria.
+ * @param {Array} database The database
+ * @param {string} field The field
+ * @param {Array} criteria The criteria
+ * @returns {number} Population variance of the field's values matching search criteria from
+ *     call to OpenFormula DVARP function
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DVARP|www.oasis-open.org}
+ */
+function dVarP(database, field, criteria) {
+    return openf.DVARP(database, field, criteria);
+}
+exports.dVarP = dVarP;
+//-----------------------------
+// Notes @functions database
+/**
+ * Returns a column of values from a view or folder in a Domino® database.
+ * @param {*} cache
+ * @param {any} serverDatabase
+ * @param {string} viewName
+ * @param {number} column
+ * @returns Promise
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DBCOLUMN_NOTES_DATABASES.html|www.hcltechsw.com }
+ */
+const dbColumn = (cache, serverDatabase, viewName, column = 1) => {
+    return notesf().DbColumn(cache, serverDatabase, viewName, column);
+};
+exports.dbColumn = dbColumn;
+/**
+ * Given a key value, looks in the specified view (or folder) and finds all
+ * documents containing the key value within the view.
+ * @param {*} cache
+ * @param {any} serverDatabase
+ * @param {string} viewName
+ * @param {string} key
+ * @param {any} field
+ * @returns Promise
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DBLOOKUP_NOTES_DATABASES.html|www.hcltechsw.com }
+ */
+const dbLookup = (cache, serverDatabase, viewName, key, field, keywords) => {
+    return notesf().DbLookup(cache, serverDatabase, viewName, key, field, keywords);
+};
+exports.dbLookup = dbLookup;
+/**
+ * In a column or window title formula, returns the number of child documents or
+ * categories belonging to the current document or category. Only immediate
+ * responses count as children. For example, the responses to a main document are
+ * its children, but the responses to a response document are not.
+ * @param {Array} any arguments
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DOCCHILDREN.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function docChildren() {
+    return notesf().DocChildren();
+}
+exports.docChildren = docChildren;
+/**
+ * In a column or window title formula, returns the number of descendant documents
+ * or subcategories belonging to the current document or category. Where
+ * &#64;DocChildren only counts direct descendants, &#64;DocDescendants counts all
+ * descendants, regardless of level.
+ * @param {Array} any arguments
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DOCDESCENDANTS.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function docDescendants() {
+    return notesf().DocDescendants();
+}
+exports.docDescendants = docDescendants;
+/**
+ * Returns a text string that represents the level of the document or category.
+ * @param {Array} any arguments
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DOCLEVEL.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function docLevel() {
+    return notesf().DocLevel();
+}
+exports.docLevel = docLevel;
+/**
+ * In a column or window title formula, returns a string representing the entry
+ * number of the current document or category. For example, 2.3 indicates that the
+ * document is the third entry following the second entry.
+ * @param {Array} any arguments
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DOCNUMBER.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function docNumber() {
+    return notesf().DocNumber();
+}
+exports.docNumber = docNumber;
+/**
+ * In a column or window title formula, returns a string that represents the entry
+ * number of the parent view entry. Both the current view entry and the parent can
+ * be either documents or categories.
+ * @param {Array} any arguments
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DOCPARENTNUMBER.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function docParentNumber() {
+    return notesf().DocParentNumber();
+}
+exports.docParentNumber = docParentNumber;
+/**
+ * In a column or window title formula, returns a string that represents the total
+ * number of entries at the same level as a view entry (document or category). The
+ * returned total includes the document itself. For example, if the document is
+ * entry 8.2, and entries 8.1, 8.3, and 8.4 also exist, then there are four
+ * document siblings
+ * @param {Array} any arguments
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DOCSIBLINGS.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function docSiblings() {
+    return notesf().DocSiblings();
+}
+exports.docSiblings = docSiblings;
+/**
+ * Given the unique ID of a document, returns the contents of a specific field on
+ * that document. The document must reside in the current database.
+ * @param {string} documentUNID
+ * @param {string} fieldName
+ * @returns {any} fieldValue
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_GETDOCFIELD.html|www.hcltechsw.com }
+ */
+function getDocField(documentUNID, fieldName) {
+    return notesf().GetDocField(documentUNID, fieldName);
+}
+exports.getDocField = getDocField;
+/**
+ * In a column formula, returns a specified string if any item in the row of a view
+ * is defined as a category.
+ * @returns {string}
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISCATEGORY.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function isCategory() {
+    return notesf().IsCategory();
+}
+exports.isCategory = isCategory;
+/**
+ * Returns a Promise that can be resolved to an array of selected documents.
+ * @param {string} formula
+ * @returns {*} Promise
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SELECT.html|www.hcltechsw.com }
+ */
+const selectDocuments = (formula) => {
+    return notesf().SelectDocuments(formula);
+};
+exports.selectDocuments = selectDocuments;
+/**
+ * Given the unique ID of a document, sets the value of a specific field on that
+ * document. The document must reside in the current database.
+ * @param {string} documentUNID The unique ID of a document.
+ * @param {string} fieldName The name of a field in the current document.
+ * @param {any} fieldValue The value to set the field.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SETDOCFIELD.html|www.hcltechsw.com }
+ */
+function setDocField(documentUNID, fieldName, fieldValue) {
+    return notesf().SetDocField(documentUNID, fieldName, fieldValue);
+}
+exports.setDocField = setDocField;
+/**
+ * Given the name of a database as a text string, returns a text string containing
+ * the DB2® schema of that database if it is a db2nsf database or the empty string
+ * if it is not a db2nsf database.
+ * @param {Array} any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DB2SCHEMA.html|www.hcltechsw.com }
+ */
+function dB2Schema() {
+    return notesf().DB2Schema();
+}
+exports.dB2Schema = dB2Schema;
+/**
+ * Accesses view and folder information from a Domino® database in Web applications.
+ * @param {Array} any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DBCOMMAND_DOMINO_DATA_SOURCE_.html|www.hcltechsw.com }
+ */
+function dbCommand() {
+    return notesf().DbCommand();
+}
+exports.dbCommand = dbCommand;
+/**
+ * Given a server and file name, or replica ID, indicates whether the specified
+ * database exists.
+ * @param {Array} any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DOESDBEXIST.html|www.hcltechsw.com }
+ */
+function dbExists() {
+    return notesf().DbExists();
+}
+exports.dbExists = dbExists;
+/**
+ * Returns a list of users, groups, and servers who currently have Manager access
+ * to the database. In a window title formula, only the name of the first manager
+ * listed in the ACL is displayed.
+ *
+ * &#64;DbManager does not work in selection formulas or column formulas.
+ * @param {Array} any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DBMANAGER.html|www.hcltechsw.com }
+ */
+function dbManager() {
+    return notesf().DbManager();
+}
+exports.dbManager = dbManager;
+/**
+ * Returns the name of the current Domino® server and database.
+ * @param {Array} any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DBNAME.html|www.hcltechsw.com }
+ */
+function dbName() {
+    return notesf().DbName();
+}
+exports.dbName = dbName;
+/**
+ * Returns the title of the current database.
+ * @param {Array} any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DBTITLE.html|www.hcltechsw.com }
+ */
+function dbTitle() {
+    return notesf().DbTitle();
+}
+exports.dbTitle = dbTitle;
+/**
+ * Retrieves a field from a profile document, and caches the field value for the
+ * remainder of the session.
+ * @param {Array} any arguments
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_GETPROFILEFIELD.html|www.hcltechsw.com }
+ */
+function getProfileField() {
+    return notesf().GetProfileField();
+}
+exports.getProfileField = getProfileField;
+/**
+ * Given a server and filename or server and replica ID, indicates if the specified
+ * database is backed by DB2® or not.
+ * @returns {boolean}
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISDB2.html|www.hcltechsw.com }
+ */
+function isDB2() {
+    return notesf().IsDB2();
+}
+exports.isDB2 = isDB2;
+/**
+ * In column formulas, returns a specified string if a row in a view can be
+ * expanded.
+ * @returns {string}
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISEXPANDABLE.html|www.hcltechsw.com }
+ */
+function isExpandable() {
+    return notesf().IsExpandable();
+}
+exports.isExpandable = isExpandable;
+/**
+ * Returns the replica ID of the current database.
+ * @returns {string}
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REPLICAID_FUNCTION.html|www.hcltechsw.com }
+ */
+function replicaID() {
+    return notesf().ReplicaID();
+}
+exports.replicaID = replicaID;
+/**
+ * Returns the name of the server containing the current database. When the
+ * database is local, returns the user name.
+ * @returns {string}
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SERVERNAME_FUNCTION.html|www.hcltechsw.com }
+ */
+function serverName() {
+    return notesf().ServerName();
+}
+exports.serverName = serverName;
+/**
+ * Sets the value of a field in a profile document or creates a profile document.
+ * @returns {*}
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SETPROFILEFIELD.html|www.hcltechsw.com }
+ */
+function setProfileField() {
+    return notesf().SetProfileField();
+}
+exports.setProfileField = setProfileField;
+/**
+ * Returns the current view's name. If there are aliases and synonyms, they are
+ * returned in a text list.
+ * @returns {string|string[]}
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_VIEWTITLE.html|www.hcltechsw.com }
+ */
+function viewTitle() {
+    return notesf().ViewTitle();
+}
+exports.viewTitle = viewTitle;
+/**
+ * Returns the name of the current database encoded for URL inclusion.
+ * @returns {string}
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_WEBDBNAME.html|www.hcltechsw.com }
+ */
+function webDbName() {
+    return notesf().WebDbName();
+}
+exports.webDbName = webDbName;
+/**
+ * Adds the specified database icon to the user's workspace, without opening the
+ * database.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADDDATABASE.html|www.hcltechsw.com }
+ */
+function addDatabase() {
+    return notesc().AddDatabase();
+}
+exports.addDatabase = addDatabase;
+/**
+ * Adds an icon to the desktop for the database specified by its replica ID.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADDDATABASEREPID.html|www.hcltechsw.com }
+ */
+function addDatabaseRepID() {
+    return notesc().AddDatabaseRepID();
+}
+exports.addDatabaseRepID = addDatabaseRepID;
+/**
+ * Permanently deletes the current database file from the hard disk where it is
+ * stored.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DATABASEDELETE_COMMAND.html|www.hcltechsw.com }
+ */
+function databaseDelete() {
+    return notesc().DatabaseDelete();
+}
+exports.databaseDelete = databaseDelete;
+/**
+ * Displays the Replication Settings dialog box for the current database.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DATABASEREPLSETTINGS.html|www.hcltechsw.com }
+ */
+function databaseReplSettings() {
+    return notesc().DatabaseReplSettings();
+}
+exports.databaseReplSettings = databaseReplSettings;
+/**
+ * Displays the Publish Database dialog box, where the user selects a library in
+ * which to publish the selected database.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_PUBLISHDATABASE.html|www.hcltechsw.com }
+ */
+function publishDatabase() {
+    return notesc().PublishDatabase();
+}
+exports.publishDatabase = publishDatabase;
+/**
+ * For a particular database on the user's workspace, RenameDatabase locates a
+ * replica of that database (based on its replica ID) on the specified server, and
+ * replaces the database icon with that of the replica. The only change the user
+ * sees is that the server name has changed on the database icon.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_RENAMEDATABASE.html|www.hcltechsw.com }
+ */
+function renameDatabase() {
+    return notesc().RenameDatabase();
+}
+exports.renameDatabase = renameDatabase;
+/**
+ * Switches to the specified view or folder within the current database or, if a
+ * view or folder is not specified, displays the View menu so the user can select
+ * a view.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SWITCHVIEW_COMMAND.html|www.hcltechsw.com }
+ */
+function switchView() {
+    return notesc().SwitchView();
+}
+exports.switchView = switchView;
+//# sourceMappingURL=database.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/date-time.js.html b/javadoc/date-time.js.html new file mode 100644 index 00000000..c8bd19eb --- /dev/null +++ b/javadoc/date-time.js.html @@ -0,0 +1,900 @@ +Source: date-time.js
On this page

date-time.js

"use strict";
+/**
+ * @file Date & Time
+ * @module date-time
+ * @category Date & Time
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.accessed = exports.locale = exports.getCurrentTimeZone = exports.zone = exports.yesterday = exports.tomorrow = exports.timeMerge = exports.modified = exports.created = exports.businessDays = exports.adjust = exports.yearFrac = exports.workDayIntl = exports.workDay = exports.weekNum = exports.timeValue = exports.netWorkDaysIntl = exports.netWorkDays = exports.isoWeekNum = exports.interval = exports.eoMonth = exports.eDate = exports.days360 = exports.days = exports.dateValue = exports.dateDif = exports.year = exports.weekday = exports.today = exports.time = exports.second = exports.now = exports.month = exports.minute = exports.hour = exports.day = exports.date = exports._notes = exports._openFormula = void 0;
+const tslib_1 = require("tslib");
+const openf = tslib_1.__importStar(require("../openformula/date-time"));
+exports._openFormula = openf;
+const openf_compat = tslib_1.__importStar(require("../openformula/compatibility"));
+const notesf = tslib_1.__importStar(require("../notes/date-time"));
+exports._notes = notesf;
+const API = tslib_1.__importStar(require("../rosetta/API"));
+const common_1 = require("../utils/common");
+const error = tslib_1.__importStar(require("../utils/error"));
+//-----------------------------
+// Rosetta date-time - common functions (exist in both OpenFormula and Notes Formula)
+/**
+ * Constructs the date from year, month, and day of month or translates numbers for the various components of time and date,
+ * then returns the time-date value.
+ *
+ * @param {number|Date|Date[]} yearOrDateTime The year that you want to appear in the resulting date.
+ *     You must specify an entire four-digit year. (For example, use 1996, not 96).
+ *     Or Time-date or time-date list. For a time-date value such as @Now or [10/31/93 12:00:00], @Date removes the time portion of the value, leaving only the date.
+ * @param {number} month Optional (when DateTime provided). The month that you want to appear in the resulting date. (For example, use 1 to specify January).
+ * @param {number} day Optional (when DateTime provided). The day that you want to appear in the resulting date.
+ * @param {number} hour Optional. The number of hours. This value will be truncated from the resulting date.
+ * @param {number} minute Optional. The number of minutes. This value will be truncated from the resulting date.
+ * @param {number} second Optional. The number of seconds. This value will be truncated from the resulting date.
+ * @returns {string} A string representation of the date and time of the given year, month and day
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_DATE.html | www.hcltechsw.com}
+ *     &nbsp; and &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DATE | www.oasis-open.org}
+ * @example rosetta.date(12, 12, 12) // returns 'Thu Dec 12 1912 00:00:00 GMT-0500 (Eastern Standard Time)'
+ * @example rosetta.date(dateObj) // returns 'Thu Dec 12 1912 00:00:00 GMT-0500 (Eastern Standard Time)'
+ */
+function date(yearOrDateTime, month, day, hour, minute, second) {
+    var _a;
+    if (API.isDefaultOpenFormula()) {
+        // Open formula does not accept array of Dates as input, so handle it here 
+        if (Array.isArray(yearOrDateTime) || yearOrDateTime instanceof Date) {
+            let dates = Array.isArray(yearOrDateTime) ? yearOrDateTime : [yearOrDateTime];
+            const rtnDates = [];
+            for (let index = 0; index < dates.length; index++) {
+                const d = dates[index];
+                let result = openf.DATE(d.getFullYear(), d.getMonth(), d.getDate());
+                if (result instanceof Error) {
+                    return result;
+                }
+                rtnDates.push(result);
+            }
+            return rtnDates.length === 1 ? rtnDates[0] : rtnDates;
+        }
+        else {
+            if (yearOrDateTime instanceof Error || month instanceof Error || day instanceof Error) {
+                return (_a = (0, common_1.anyError)(yearOrDateTime, month, day)) !== null && _a !== void 0 ? _a : error.value;
+            }
+            if (month === undefined || day === undefined) {
+                return error.value;
+            }
+            return openf.DATE(yearOrDateTime, month, day);
+        }
+    }
+    else {
+        return notesf.Date(yearOrDateTime, month, day, hour, minute, second);
+    }
+}
+exports.date = date;
+/**
+ * Extracts the day of the month from the specified date.
+ *
+ * @param {string|number|DateOrDateList} dateOrDateList The date, as a string, number, Date object, or Array of Date objects, of the day you are trying to find.
+ * @returns {NumberOrNumberList} Number or Number list. Day portion (or list of days) of the date (or list of dates).
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_DAY.html | www.hcltechsw.com}
+ *     &nbsp; and &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DAY | www.oasis-open.org}
+ * @example rosetta.day(2958465) // returns 31 (openformula)
+ * @example rosetta.day(new Date(1900, 0, 1)) // returns 1
+ */
+function day(dateOrDateList) {
+    var _a;
+    if (dateOrDateList instanceof Error) {
+        return (_a = (0, common_1.anyError)(dateOrDateList)) !== null && _a !== void 0 ? _a : error.value;
+    }
+    else {
+        if (API.isDefaultOpenFormula()) {
+            // Open Formula does not accept array of Dates as input, so handle it here 
+            if (Array.isArray(dateOrDateList) || dateOrDateList instanceof Date) {
+                let dates = Array.isArray(dateOrDateList) ? dateOrDateList : [dateOrDateList];
+                const rtnDays = [];
+                dates.forEach(d => {
+                    var _a;
+                    if (d instanceof Error)
+                        return (_a = (0, common_1.anyError)(dateOrDateList)) !== null && _a !== void 0 ? _a : error.value;
+                    let result = openf.DAY(d);
+                    if (result instanceof Error) {
+                        return result;
+                    }
+                    rtnDays.push(result);
+                });
+                return rtnDays.length === 1 ? rtnDays[0] : rtnDays;
+            }
+            // handle non date objects (string or number)
+            else {
+                return openf.DAY(dateOrDateList);
+            }
+        }
+        // Notes Formula accepts date or date list only
+        else if (typeof dateOrDateList === 'string' || typeof dateOrDateList === 'number') {
+            return error.value;
+        }
+        else {
+            return notesf.Day(dateOrDateList);
+        }
+    }
+}
+exports.day = day;
+/**
+ * Extracts the number of the hour (0 through 23) from a specified Date.
+ *
+ * @param {string|number|DateOrDateList} dateOrDateList The date, as a string, number, Date object, or Array of Date objects, of the hour you are trying to find.
+ * @returns {NumberOrNumberList} Number or Number list. Hour portion (or list of hours) of the given date.
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_HOUR.html | www.hcltechsw.com}
+ *     &nbsp; and &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#HOUR | www.oasis-open.org}
+ * @example rosetta.hour('1/1/1900 1:00') // returns 1 (openformula)
+ * @example rosetta.hour(rosetta.date(95, 11, 20, 8, 58, 12)) // returns 8
+ */
+function hour(dateOrDateList) {
+    var _a;
+    if (dateOrDateList instanceof Error) {
+        return (_a = (0, common_1.anyError)(dateOrDateList)) !== null && _a !== void 0 ? _a : error.value;
+    }
+    else {
+        if (API.isDefaultOpenFormula()) {
+            // Open Formula does not accept array of Dates as input, so handle it here 
+            if (Array.isArray(dateOrDateList) || dateOrDateList instanceof Date) {
+                let dates = Array.isArray(dateOrDateList) ? dateOrDateList : [dateOrDateList];
+                const rtnHours = [];
+                dates.forEach(d => {
+                    var _a;
+                    if (d instanceof Error)
+                        return (_a = (0, common_1.anyError)(dateOrDateList)) !== null && _a !== void 0 ? _a : error.value;
+                    let result = openf.HOUR(d);
+                    if (result instanceof Error) {
+                        return result;
+                    }
+                    rtnHours.push(result);
+                });
+                return rtnHours.length === 1 ? rtnHours[0] : rtnHours;
+            }
+            // handle non date objects (string or number)
+            else {
+                return openf.HOUR(dateOrDateList);
+            }
+        }
+        // Notes Formula accepts date or date list only
+        else if (typeof dateOrDateList === 'string' || typeof dateOrDateList === 'number') {
+            return error.value;
+        }
+        else {
+            return notesf.Hour(dateOrDateList);
+        }
+    }
+}
+exports.hour = hour;
+/**
+ * Extracts the number of the minutes (0 through 23) from a specified Date.
+ *
+ * @param {string|number|DateOrDateList} dateOrDateList The date, as a string, number, Date object, or Array of Date objects, of the minuntes you are trying to find.
+ * @returns {NumberOrNumberList} Number or Number list. Minutes portion (or list of minutes) of the given date.
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_MINUTE.html | www.hcltechsw.com}
+ *     &nbsp; and &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#MINUTE | www.oasis-open.org}
+ * @example rosetta.minute('1/1/1900 1:00') // returns 0 (openformula)
+ * @example rosetta.minute(rosetta.date(95, 11, 20, 8, 58, 12)) // returns 58
+ */
+function minute(dateOrDateList) {
+    var _a;
+    if (dateOrDateList instanceof Error) {
+        return (_a = (0, common_1.anyError)(dateOrDateList)) !== null && _a !== void 0 ? _a : error.value;
+    }
+    else {
+        if (API.isDefaultOpenFormula()) {
+            // Open Formula does not accept array of Dates as input, so handle it here 
+            if (Array.isArray(dateOrDateList) || dateOrDateList instanceof Date) {
+                let dates = Array.isArray(dateOrDateList) ? dateOrDateList : [dateOrDateList];
+                const rtnMinutes = [];
+                dates.forEach(d => {
+                    var _a;
+                    if (d instanceof Error)
+                        return (_a = (0, common_1.anyError)(dateOrDateList)) !== null && _a !== void 0 ? _a : error.value;
+                    let result = openf.MINUTE(d);
+                    if (result instanceof Error) {
+                        return result;
+                    }
+                    rtnMinutes.push(result);
+                });
+                return rtnMinutes.length === 1 ? rtnMinutes[0] : rtnMinutes;
+            }
+            // handle non date objects (string or number)
+            else {
+                return openf.MINUTE(dateOrDateList);
+            }
+        }
+        // Notes Formula accepts date or date list only
+        else if (typeof dateOrDateList === 'string' || typeof dateOrDateList === 'number') {
+            return error.value;
+        }
+        else {
+            return notesf.Minute(dateOrDateList);
+        }
+    }
+}
+exports.minute = minute;
+/**
+ * Extracts the number of the month from the specified date.
+ *
+ * @param {string|number|DateOrDateList} dateOrDateList The date, as a string, number, Date object, or Array of Date objects of the month you are trying to find.
+ * @returns {NumberOrNumberList} Number or Number list. Month portion (or list of days) of the date (or list of dates).
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_MONTH.html | www.hcltechsw.com}
+ *     &nbsp; and &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#MONTH | www.oasis-open.org}
+ * @example rosetta.month(2958465) // returns 12 (openformula)
+ * @example rosetta.month(new Date(1900, 0, 1)) // returns 1
+ */
+function month(dateOrDateList) {
+    var _a;
+    if (dateOrDateList instanceof Error) {
+        return (_a = (0, common_1.anyError)(dateOrDateList)) !== null && _a !== void 0 ? _a : error.value;
+    }
+    else {
+        if (API.isDefaultOpenFormula()) {
+            // Open Formula does not accept array of Dates as input, so handle it here 
+            if (Array.isArray(dateOrDateList) || dateOrDateList instanceof Date) {
+                let dates = Array.isArray(dateOrDateList) ? dateOrDateList : [dateOrDateList];
+                const rtnMonths = [];
+                dates.forEach(d => {
+                    var _a;
+                    if (d instanceof Error)
+                        return (_a = (0, common_1.anyError)(dateOrDateList)) !== null && _a !== void 0 ? _a : error.value;
+                    let result = openf.MONTH(d);
+                    if (result instanceof Error) {
+                        return result;
+                    }
+                    rtnMonths.push(result);
+                });
+                return rtnMonths.length === 1 ? rtnMonths[0] : rtnMonths;
+            }
+            // handle non date objects (string or number)
+            else {
+                return openf.MONTH(dateOrDateList);
+            }
+        }
+        // Notes Formula accepts date or date list only
+        else if (typeof dateOrDateList === 'string' || typeof dateOrDateList === 'number') {
+            return error.value;
+        }
+        else {
+            return notesf.Month(dateOrDateList);
+        }
+    }
+}
+exports.month = month;
+/**
+ * Returns the string representation of the current date and time.
+ *
+ * @returns {Date} A date representation of the current date and time
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_NOW.html | www.hcltechsw.com}
+ *     &nbsp; and &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#NOW | www.oasis-open.org}
+ * @example rosetta.now() // returns 'Wed Jun 07 2023 12:26:36 GMT-0400 (Eastern Daylight Time)'
+ */
+function now() {
+    return API.isDefaultOpenFormula() ? openf.NOW() : notesf.Now();
+}
+exports.now = now;
+/**
+ * Extracts the number of the seconds (0 through 23) from a specified Date.
+ * This function presumes that leap seconds never exist.
+ *
+ * @param {string|number|DateOrDateList} dateOrDateList The date, as a string, number, Date object, or Array of Date objects, of the seconds you are trying to find.
+ * @returns {NumberOrNumberList} Number or Number list. Seconds portion (or list of seconds) of the given date.
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_SECOND.html | www.hcltechsw.com}
+ *     &nbsp; and &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#SECOND | www.oasis-open.org}
+ * @example rosetta.second('1/1/1900') // returns 0 (open formula)
+ * @example rosetta.second(rosetta.date(95, 11, 20, 8, 58, 12)) // returns 12
+ */
+function second(dateOrDateList) {
+    var _a;
+    if (dateOrDateList instanceof Error) {
+        return (_a = (0, common_1.anyError)(dateOrDateList)) !== null && _a !== void 0 ? _a : error.value;
+    }
+    else {
+        if (API.isDefaultOpenFormula()) {
+            // Open Formula does not accept array of Dates as input, so handle it here 
+            if (Array.isArray(dateOrDateList) || dateOrDateList instanceof Date) {
+                let dates = Array.isArray(dateOrDateList) ? dateOrDateList : [dateOrDateList];
+                const rtnSeconds = [];
+                dates.forEach(d => {
+                    var _a;
+                    if (d instanceof Error)
+                        return (_a = (0, common_1.anyError)(dateOrDateList)) !== null && _a !== void 0 ? _a : error.value;
+                    let result = openf.SECOND(d);
+                    if (result instanceof Error) {
+                        return result;
+                    }
+                    rtnSeconds.push(result);
+                });
+                return rtnSeconds.length === 1 ? rtnSeconds[0] : rtnSeconds;
+            }
+            // handle non date objects (string or number)
+            else {
+                return openf.SECOND(dateOrDateList);
+            }
+        }
+        // Notes Formula accepts date or date list only
+        else if (typeof dateOrDateList === 'string' || typeof dateOrDateList === 'number') {
+            return error.value;
+        }
+        else {
+            return notesf.Second(dateOrDateList);
+        }
+    }
+}
+exports.second = second;
+/**
+ * Constructs and returns a Date object from one of the following combination of time-date parameters:
+ *    ( hour, minute, second ), ( year, month, day, hour, minute, second ),
+ *    or Date object or array of Date objects, as per the notes formula Time function parameters.
+ *
+ * @param {any} args Date-time object or list of Dates, 6 Numbers representing the date-time, or 3 Numbers from 0 (zero) to 32767 representing the hour, minute, day.
+ *     Any value greater than 23 will be divided by 24 and the remainder will be treated as the time value.
+ * @returns {number} A number representing time (as a fraction of a day) or Date-time object of the current time; display usually formatted in current locale.
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_TIME.html | www.hcltechsw.com}
+ *     &nbsp; and &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#TIME | www.oasis-open.org}
+ * @example rosetta.time(1, 1, 1) // returns 0.04237268518518519 (openformula)
+ * @example rosetta.time(93, 12, 24, 12, 30, 40) // returns 1993-12-24 12:30:40.000 -0000
+ * @example rosetta.time(new Date(93, 12, 24, 12, 30, 40)) // returns 1993-12-24 12:30:40.000 -0000
+ */
+function time(...args) {
+    if (API.isDefaultOpenFormula()) {
+        if (args.length === 3) {
+            return openf.TIME(args[0], args[1], args[2]);
+        }
+        return error.value;
+    }
+    else {
+        return notesf.Time(...args);
+    }
+}
+exports.time = time;
+/**
+ * Returns today's date.
+ *
+ * @returns {Date} The date object for the current date and time.
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_TODAY.html | www.hcltechsw.com}
+ *     &nbsp; and &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#TODAY | www.oasis-open.org}
+ * @example rosetta.today() // returns 'Wed Jun 07 2023 12:26:36 GMT-0400 (Eastern Daylight Time)'
+ */
+function today() {
+    return API.isDefaultOpenFormula() ? openf.TODAY() : notesf.Today();
+}
+exports.today = today;
+/**
+ * Extracts the day of the week from a date; if text, uses current locale to convert to a date.
+ * Returns a number that identifies the day.
+ *
+ * @param {string|number|Date} date The date
+ * @param {number} [returnType] A number that determines the type of return value. The default is 1.
+ * -   **1**  Numbers 1 (Sunday)    through 7 (Saturday)
+ * -   **2**  Numbers 1 (Monday)    through 7 (Sunday)
+ * -   **3**  Numbers 0 (Monday)    through 6 (Sunday)
+ * -   **11** Numbers 1 (Monday)    through 7 (Sunday)
+ * -   **12** Numbers 1 (Tuesday)   through 7 (Monday)
+ * -   **13** Numbers 1 (Wednesday) through 7 (Tuesday)
+ * -   **14** Numbers 1 (Thursday)  through 7 (Wednesday)
+ * -   **15** Numbers 1 (Friday)    through 7 (Thursday)
+ * -   **16** Numbers 1 (Saturday)  through 7 (Friday)
+ * -   **17** Numbers 1 (Sunday)    through 7 (Saturday)
+ * @returns {number} The day of the week of a given date as a number from 1 through 7. (default)
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_WEEKDAY.html | www.hcltechsw.com}
+ *     &nbsp; and &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#WEEKDAY | www.oasis-open.org}
+ * @example rosetta.weekday(rosetta.date(1900, 0, 31)) // returns 4
+ * @example rosetta.weekday(2958465) // returns 6 (openf only)
+ * @example rosetta.weekday([rosetta.date(95, 11, 20, 8, 58, 12), rosetta.date(95, 11, 21, 8, 58, 12)]) // returns [2, 3]
+ */
+function weekday(dateOrDateList, returnType = 1) {
+    var _a;
+    if (dateOrDateList instanceof Error) {
+        return (_a = (0, common_1.anyError)(dateOrDateList)) !== null && _a !== void 0 ? _a : error.value;
+    }
+    else {
+        if (API.isDefaultOpenFormula()) {
+            // Open Formula does not accept array of Dates as input, so handle it here 
+            if (Array.isArray(dateOrDateList) || dateOrDateList instanceof Date) {
+                let dates = Array.isArray(dateOrDateList) ? dateOrDateList : [dateOrDateList];
+                const rtnDays = [];
+                dates.forEach(d => {
+                    var _a;
+                    if (d instanceof Error)
+                        return (_a = (0, common_1.anyError)(dateOrDateList)) !== null && _a !== void 0 ? _a : error.value;
+                    let result = openf.WEEKDAY(d, returnType);
+                    if (result instanceof Error) {
+                        return result;
+                    }
+                    rtnDays.push(result);
+                });
+                return rtnDays.length === 1 ? rtnDays[0] : rtnDays;
+            }
+            // handle non date objects (string or number)
+            else {
+                return openf.WEEKDAY(dateOrDateList, returnType);
+            }
+        }
+        // Notes Formula accepts date or date list only
+        else if (typeof dateOrDateList === 'string' || typeof dateOrDateList === 'number') {
+            return error.value;
+        }
+        else {
+            return notesf.Weekday(dateOrDateList);
+        }
+    }
+}
+exports.weekday = weekday;
+/**
+ * Extracts the number of the month from the specified date.
+ *
+ * @param {string|number|DateOrDateList} dateOrDateList The date, as a string, number, Date object, or Array of Date objects of the year you are trying to find.
+ * @returns {NumberOrNumberList} Number or Number list. Year portion (or list of days) of the date (or list of dates).
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_YEAR.html | www.hcltechsw.com}
+ *     &nbsp; and &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#YEAR | www.oasis-open.org}
+ * @example rosetta.year(2958465) // returns 1995 (openformula)
+ * @example rosetta.year(new Date(1900, 0, 1)) // returns 1900
+ */
+function year(dateOrDateList) {
+    var _a;
+    if (dateOrDateList instanceof Error) {
+        return (_a = (0, common_1.anyError)(dateOrDateList)) !== null && _a !== void 0 ? _a : error.value;
+    }
+    else {
+        if (API.isDefaultOpenFormula()) {
+            // Open Formula does not accept array of Dates as input, so handle it here 
+            if (Array.isArray(dateOrDateList) || dateOrDateList instanceof Date) {
+                let dates = Array.isArray(dateOrDateList) ? dateOrDateList : [dateOrDateList];
+                const rtnYears = [];
+                dates.forEach(d => {
+                    var _a;
+                    if (d instanceof Error)
+                        return (_a = (0, common_1.anyError)(dateOrDateList)) !== null && _a !== void 0 ? _a : error.value;
+                    let result = openf.YEAR(d);
+                    if (result instanceof Error) {
+                        return result;
+                    }
+                    rtnYears.push(result);
+                });
+                return rtnYears.length === 1 ? rtnYears[0] : rtnYears;
+            }
+            // handle non date objects (string or number)
+            else {
+                return openf.YEAR(dateOrDateList);
+            }
+        }
+        // Notes Formula accepts date or date list only
+        else if (typeof dateOrDateList === 'string' || typeof dateOrDateList === 'number') {
+            return error.value;
+        }
+        else {
+            return notesf.Year(dateOrDateList);
+        }
+    }
+}
+exports.year = year;
+//-----------------------------
+// Open Formula date-time
+/**
+ * Calculates the number of days, months, or years between two dates.
+ *
+ * @param {string|number|Date} start_date A date that represents the first, or starting date of a given period.
+ * @param {string|number|Date} end_date A date that represents the last, or ending, date of the period.
+ * @param {string} unit The type of information that you want returned, where:
+ - "Y": The number of complete years in the period.
+ - "M": The number of complete months in the period.
+ - "D": The number of days in the period.
+ - "MD": The difference between the days in start_date and end_date. The months and years of the dates are ignored.
+ - "YM": The difference between the months in start_date and end_date. The days and years of the dates are ignored
+ - "YD": The difference between the days of start_date and end_date. The years of the dates are ignored.
+ * @returns {Number} Days, months, or years between given dates.
+ * @see For further information, see &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DATEDIF | www.oasis-open.org}
+ * @example rosetta.dateDif('1/1/2001', '1/1/2003', 'Y') // returns 2
+ * @example rosetta.dateDif('6/1/2001', '8/15/2002', 'D') // returns 440
+ */
+function dateDif(start_date, end_date, unit) {
+    return openf.DATEDIF(start_date, end_date, unit);
+}
+exports.dateDif = dateDif;
+/**
+ * Returns the string representation of the date and time from given text.
+ *
+ * @param {string} date_text Text that represents a date in an OpenFormula date format, or a reference to a value that contains text that represents a date in an OpenFormula date format.
+ * @returns {Date} A string representation of the date and time of the given date.
+ * @see For further information, see &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DATEVALUE | www.oasis-open.org}
+ * @example rosetta.dateValue('1/1/1900') // returns new Date(1990, 0, 1);
+ */
+function dateValue(date_text) {
+    return openf.DATEVALUE(date_text);
+}
+exports.dateValue = dateValue;
+/**
+ * Returns the number of days between two dates.
+ *
+ * @param {string|number|Date} endDate A date that represents the last, or ending, date of the period
+ * @param {string|number|Date} startDate A date that represents the first, or starting date of a given period
+ * @returns {number} Number of days between two given dates.
+ * @see For further information, see &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DAYS | www.oasis-open.org}
+ * @example rosetta.days('1/2/1900', '1/1/1900') // returns 1
+ */
+function days(endDate, startDate) {
+    return openf.DAYS(endDate, startDate);
+}
+exports.days = days;
+/**
+ * Calculates the number of days between two dates based on a 360-day year.
+ *
+ * @param {string|number|Date} endDate A date that represents the last, or ending, date of the period.
+ * @param {string|number|Date} startDate A date that represents the first, or starting date of a given period.
+ * @param {string} [method] Optional. A logical value that specifies whether to use the U.S. or European
+ *     method in the calculation. The default is FALSE.
+ * -   **FALSE** U.S. (NASD) method. If the starting date is the last day of a month, it
+ *               becomes equal to the 30th day of the same month. If the ending date is
+ *               the last day of a month and the starting date is earlier than the 30th
+ *               day of a month, the ending date becomes equal to the 1st day of the next
+ *               month; otherwise the ending date becomes equal to the 30th day of the
+ *               same month.
+ * -   **TRUE** European method. Starting dates and ending dates that occur on the 31st
+ *              day of a month become equal to the 30th day of the same month.
+ * @returns {number} Number of days between two given dates based on a 360-day year.
+ * @see For further information, see &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DAYS360 | www.oasis-open.org}
+ * @example rosetta.days360('1/1/1901', '12/31/1901', true) // returns 359
+ */
+function days360(startDate, endDate, method = false) {
+    return openf.DAYS360(startDate, endDate, method);
+}
+exports.days360 = days360;
+/**
+ * Returns the date and time that is the indicated number of months before or after the start date.
+ *
+ * @param {string|number|Date} startDate A date that represents the first, or starting date of a given period.
+ * @param {number} months The number of months before or after start_date. A positive value for
+ *     months yields a future date; a negative value yields a past date.
+ * @returns {Date} The date of the given date and number of months.
+ * @see For further information, see &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#EDATE | www.oasis-open.org}
+ * @example rosetta.eDate(new Date(2011, 0, 23), 1) // returns new Date(2011, 1, 23)
+ */
+function eDate(startDate, months) {
+    return openf.EDATE(startDate, months);
+}
+exports.eDate = eDate;
+/**
+ * Returns the string representation of the date and time of the last day of the
+ * month before or after a specified number of months.
+ *
+ * @param {string|number|Date} startDate A date that represents the first, or starting date of a given period.
+ * @param {number} months Number of months before or after start_date. A positive value for months
+ *     yields a future date; a negative value yields a past date.
+ * @returns {Date} The date of the given date number of months.
+ * @see For further information, see &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#EOMONTH | www.oasis-open.org}
+ * @example rosetta.eoMonth('1/1/2005', 12) // returns new Date('1/1/2005', 12)
+ */
+function eoMonth(startDate, months) {
+    return openf.EOMONTH(startDate, months);
+}
+exports.eoMonth = eoMonth;
+/**
+ * Calculates the number of years, months, days, hours, minutes and seconds from a specified number of seconds.
+ *
+ * @param {number} second Number of seconds.
+ * @returns {string} A string representing the years, months, days, hours, minutes and seconds based on the given number of seconds.
+ * @see For further information, see &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#INTERVAL | www.oasis-open.org}
+ * @example rosetta.interval(10000000) // returns 'P3M25DT17H46M40S'
+ */
+function interval(second) {
+    return openf.INTERVAL(second);
+}
+exports.interval = interval;
+/**
+ * Returns the number of the ISO week number of the year for a given date.
+ *
+ * @param {string|number|Date} date The date.
+ * @returns {number} Number of the week in the year of given date.
+ * @see For further information, see &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#ISOWEEKNUM | www.oasis-open.org}
+ * @example rosetta.isoWeekNum('1/8/1901') // returns 2
+ */
+function isoWeekNum(date) {
+    return openf.ISOWEEKNUM(date);
+}
+exports.isoWeekNum = isoWeekNum;
+/**
+ * Return the number of whole workdays between two dates. Working days exclude
+ * weekends and any dates identified in holidays.
+ * @param {string|number|Date} startDate A date that represents the first, or starting date of a given period
+ * @param {string|number|Date} endDate A date that represents the last, or ending, date of the period
+ * @param {Array} [holidays] An optional range of one or more dates to exclude from the working
+ *     calendar, such as state and federal holidays and floating holidays.
+ * @returns {number} The number of whole workdays between two dates from call to OpenFormula
+ *     NETWORKDAYS function
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#NETWORKDAYS | www.oasis-open.org}
+ */
+function netWorkDays(startDate, endDate, holidays) {
+    return openf.NETWORKDAYS(startDate, endDate, holidays);
+}
+exports.netWorkDays = netWorkDays;
+/**
+ * Return the number of whole workdays between two dates using parameters to
+ * indicate which and how many days are weekend days.
+ * @param {string|number|Date} startDate A date that represents the first, or starting date of a given period
+ * @param {string|number|Date} endDate A date that represents the last, or ending, date of the period
+ * @param {string} [weekend] Indicates the days of the week that are weekend days and are
+ *     not included in the number of whole working days between start_date and end_date.
+ *     Weekend is a weekend number or string that specifies when weekends occur.
+ *     <br><br>
+ *     Weekend *number* values indicate the following weekend days:
+ * -   **1**  Saturday, Sunday (Default value)
+ * -   **2**  Sunday, Monday
+ * -   **3**  Monday, Tuesday
+ * -   **4**  Tuesday, Wednesday
+ * -   **5**  Wednesday, Thursday
+ * -   **6**  Thursday, Friday
+ * -   **7**  Friday, Saturday
+ * -   **11** Sunday only
+ * -   **12** Monday only
+ * -   **13** Tuesday only
+ * -   **14** Wednesday only
+ * -   **15** Thursday only
+ * -   **16** Friday only
+ * -   **17** Saturday only
+ *
+ *     Weekend *string* values are seven characters long and each character in the string
+ *     represents a day of the week, starting with Monday. 1 represents a non-workday
+ *     and 0 represents a workday. Only the characters 1 and 0 are permitted in the
+ *     string. Using 1111111 will always return 0.
+ *
+ *     For example, 0000011 would result in a weekend that is Saturday and Sunday.
+ * @param {Array} ['holidays'] An optional range of one or more dates to exclude from the working
+ *     calendar, such as state and federal holidays and floating holidays.
+ * @returns {number} The number of whole workdays between two dates from call to OpenFormula
+ *     NETWORKDAYs.INTL function
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#NETWORkDAYS.INTL | www.oasis-open.org}
+ */
+netWorkDays.intl = (startDate, endDate, weekend, holidays) => {
+    return openf_compat.NETWORKDAYSINTL(startDate, endDate, weekend, holidays);
+};
+exports.netWorkDaysIntl = netWorkDays.intl;
+/**
+ * Converts a time in the form of text to a serial number.
+ *
+ * @param {string} timeText The time represented by a text string.
+ * @returns {number} The decimal number of the time represented by a text string. The decimal
+ *     number is a value ranging from 0 (zero) to 0.99988426, representing the times
+ *     from 0:00:00 (12:00:00 AM) to 23:59:59 (11:59:59 P.M.).
+ * @see For further information, see &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#TIMEVALUE | www.oasis-open.org}
+ * @example rosetta.timeValue('1/1/1900 12:00:00') // returns ~ 0.5
+ */
+function timeValue(timeText) {
+    return openf.TIMEVALUE(timeText);
+}
+exports.timeValue = timeValue;
+/**
+ * Converts a date to a number representing where the week falls numerically with a year.
+ *
+ * There are two systems used for this function:
+ *  - **System 1** The week containing January 1 is the first week of the year, and is numbered week 1.
+ *  - **System 2** The week containing the first Thursday of the year is the first week of the year,
+ *      and is numbered as week 1. This system is the methodology specified in ISO 8601,
+ *      which is commonly known as the European week numbering system.
+ *
+ * @param {string|number|Date} date A date within the week.
+ * @param {number} [return_type] Optional. A number that determines on which day the week begins. The default is 1.
+ * -   **1**  Sunday,    System 1 (Default value)
+ * -   **2**  Monday,    System 1
+ * -   **11** Monday,    System 1
+ * -   **12** Tuesday,   System 1
+ * -   **13** Wednesday, System 1
+ * -   **14** Thursday,  System 1
+ * -   **15** Friday,    System 1
+ * -   **16** Saturday,  System 1
+ * -   **17** Sunday,    System 1
+ * -   **21** Monday,    System 2
+ * @returns {number} The week number of given date.
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#WEEKNUM | www.oasis-open.org}
+ * @example rosetta.weekNum('2/1/1909', 2) // returns 6
+ */
+function weekNum(date, returnType = 1) {
+    return openf.WEEKNUM(date, returnType);
+}
+exports.weekNum = weekNum;
+/**
+ * Return the serial number of the date before or after a specified number of
+ * workdays.
+ * @param {string|number|Error} startDate A date that represents the first, or starting date of a given period
+ * @param {number} days The number of nonweekend and nonholiday days before or after start_date.
+ *     A positive value for days yields a future date; a negative value yields a past date.
+ * @param {Array} [holidays] An optional range of one or more dates to exclude from the working
+ *     calendar, such as state and federal holidays and floating holidays.
+ * @returns {number} The number of whole workdays between two dates from call to OpenFormula WORKDAY function
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#WORKDAY | www.oasis-open.org}
+ */
+function workDay(startDate, days, holidays) {
+    return openf.WORKDAY(startDate, days, holidays);
+}
+exports.workDay = workDay;
+/**
+ * Return the string representation of the date before or after a specified number of
+ * workdays using parameters to indicate which and how many days are weekend days.
+ * @param {string} startDate A date that represents the first, or starting date of a given period
+ * @param {number} day The number of nonweekend and nonholiday days before or after start_date.
+ *     A positive value for days yields a future date; a negative value yields a past date.
+ * @param {string} [weekend] Indicates the days of the week that are weekend days and are not
+ *     considered working days. Weekend is a weekend number or string that specifies
+ *     when weekends occur.
+ *
+ *     Weekend number values indicate the following weekend days:
+ * -   **1** Saturday, Sunday (Default value)
+ * -   **2** Sunday, Monday
+ * -   **3** Monday, Tuesday
+ * -   **4** Tuesday, Wednesday
+ * -   **5** Wednesday, Thursday
+ * -   **6** Thursday, Friday
+ * -   **7** Friday, Saturday
+ * -   **11** Sunday only
+ * -   **12** Monday only
+ * -   **13** Tuesday only
+ * -   **14** Wednesday only
+ * -   **15** Thursday only
+ * -   **16** Friday only
+ * -   **17** Saturday only
+ *
+ *     Weekend string values are seven characters long and each character in the string
+ *     represents a day of the week, starting with Monday. 1 represents a non-workday
+ *     and 0 represents a workday. Only the characters 1 and 0 are permitted in the
+ *     string. Using 1111111 will always return 0.
+ *
+ *     For example, 0000011 would result in a weekend that is Saturday and Sunday.
+ * @param {Array} [holidays] An optional set of one or more dates that are to be excluded
+ *     from the working day calendar. Holidays shall be a range of cells that contain
+ *     the dates, or an array constant of the serial values that represent those dates.
+ *     The ordering of dates or serial values in holidays can be arbitrary.
+ * @returns {string} A string representation of the date and time before or after the given date
+ *     from call to OpenFormula WORKDAY.INTL function
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#WORKDAY.INTL | www.oasis-open.org}
+ */
+workDay.intl = (startDate, days, weekend, holidays) => {
+    return openf_compat.WORKDAYINTL(startDate, days, weekend, holidays);
+};
+exports.workDayIntl = workDay.intl;
+/**
+ * Returns the year fraction representing the number of whole days between start_date and end_date.
+ *
+ * @param {string|number|Date} startDate A date that represents the first, or starting date of a given period.
+ * @param {string|number|Date} endDate A date that represents the last, or ending, date of the period.
+ * @param {number} [basis] The type of day count basis to use:
+ * -   **0** US (NASD) 30/360 (Default value)
+ * -   **1** Actual/actual
+ * -   **2** Actual/360
+ * -   **3** Actual/365
+ * -   **4** European 30/360
+ * @returns {number} The year fraction of whole days between given dates.
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#YEARFRAC | www.oasis-open.org}
+ * @example rosetta.yearFrac('1/31/1900', '3/31/1900', 0) // returns ~ 0.16666666666666666
+ * @example rosetta.yearFrac('1/1/1904', '1/1/1905', 1) // returns 1
+ */
+function yearFrac(startDate, endDate, basis = 0) {
+    return openf.YEARFRAC(startDate, endDate, basis);
+}
+exports.yearFrac = yearFrac;
+//-----------------------------
+// Notes @functions date-time
+/**
+ * Adjusts the specified time-date value by the number of years, months, days, hours, minutes, and/or seconds you specify.
+ * The amount of adjustment may be positive or negative.
+ *
+ * @param {DateOrDateList} dateOrDateList The Date or list of Dates you want to increment. This should be a single date, not a range.
+ * @param {number} years The number of years to increment by.
+ * @param {number} months The number of months to increment by.
+ * @param {number} days The number of days to increment by.
+ * @param {number} hours The number of hours to increment by.
+ * @param {number} minutes The number of minutes to increment by.
+ * @param {number} seconds The number of seconds to increment by.
+ * @returns {DateOrDateList} The adjusted date or list of adjusted dates.
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_ADJUST.html | www.hcltechsw.com}
+ * @example rosetta.adjust(rosetta.date(2006, 2, 2), 0, 2, 28, 0, 0, 0) // returns 2006, 4, 30
+ */
+function adjust(dateOrDateList, years, months, days, hours, minutes, seconds) {
+    return notesf.Adjust(dateOrDateList, years, months, days, hours, minutes, seconds);
+}
+exports.adjust = adjust;
+/**
+ * Returns the number of business days in one or more date ranges.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_BUSINESSDAYS_FUNCTION.html | www.hcltechsw.com}
+ * @TODO this needs to be implemented
+ */
+function businessDays() {
+    return notesf.BusinessDays();
+}
+exports.businessDays = businessDays;
+/**
+ * Returns the time-date when the document was created.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_CREATED.html | www.hcltechsw.com}
+ * @TODO this needs to be implemented
+ */
+function created() {
+    return notesf.Created();
+}
+exports.created = created;
+/**
+ * Returns a time-date value indicating when the document was modified initially.
+ * @throw {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_MODIFIED.html | www.hcltechsw.com}
+ * @TODO this needs to be implemented
+ */
+function modified() {
+    return notesf.Modified();
+}
+exports.modified = modified;
+/**
+ * Builds a time-date value from separate date, time, and time zone values.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_TIMEMERGE.html | www.hcltechsw.com}
+ * @TODO this needs to be implemented
+ */
+function timeMerge() {
+    return notesf.TimeMerge();
+}
+exports.timeMerge = timeMerge;
+/**
+ * Returns the time-date value that corresponds to tomorrow's date.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_TOMORROW.html | www.hcltechsw.com}
+ * @TODO this needs to be implemented
+ */
+function tomorrow() {
+    return notesf.Tomorrow();
+}
+exports.tomorrow = tomorrow;
+/**
+ * Returns the time-date value which corresponds to yesterday's date.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_YESTERDAY.html | www.hcltechsw.com}
+ * @TODO this needs to be implemented
+ */
+function yesterday() {
+    return notesf.Yesterday();
+}
+exports.yesterday = yesterday;
+/**
+ * Returns the time zone setting of the current computer or of a time-date value,
+ * and indicates if daylight-saving time is observed.
+ *
+ * The time zone is represented as the number of hours that must be added to the
+ * time-date to convert it to Greenwich Mean Time.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_ZONE.html | www.hcltechsw.com}
+ * @TODO this needs to be implemented
+ */
+function zone() {
+    return notesf.Zone();
+}
+exports.zone = zone;
+/**
+ * Returns the current operating system's time zone settings in canonical time zone
+ * format.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_GETCURRENTTIMEZONE.html | www.hcltechsw.com}
+ * @TODO this needs to be implemented
+ */
+function getCurrentTimeZone() {
+    return notesf.GetCurrentTimeZone();
+}
+exports.getCurrentTimeZone = getCurrentTimeZone;
+/**
+ * Returns information about language codes.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_LOCALE_5907.html | www.hcltechsw.com}
+ * @TODO this needs to be implemented
+ */
+function locale() {
+    return notesf.Locale();
+}
+exports.locale = locale;
+/**
+ * Indicates the time and date when the document was last accessed by a Notes®
+ * client, whether for reading or editing.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_ACCESSED.html | www.hcltechsw.com}
+ */
+function accessed() {
+    return notesf.Accessed();
+}
+exports.accessed = accessed;
+//# sourceMappingURL=date-time.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/dde.js.html b/javadoc/dde.js.html new file mode 100644 index 00000000..a2b07f50 --- /dev/null +++ b/javadoc/dde.js.html @@ -0,0 +1,60 @@ +Source: dde.js
On this page

dde.js

"use strict";
+/**
+ * @file dde
+ * @module DDE (Dynamic Data Exchange)
+ * @category DDE
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.ddeTerminate = exports.ddePoke = exports.ddeInitiate = exports.ddeExecute = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesf_base = tslib_1.__importStar(require("../notes/dde"));
+const notesf = () => notesf_base;
+exports._notes = notesf_base;
+//-----------------------------
+// Notes @functions DDE
+/**
+ * Passes the specified command string to the DDE application, which is identified
+ * by the conversation ID. &#64;DDEExecute is always used in conjunction with
+ * &#64;DDEInitiate and @DDETerminate.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DDEEXECUTE.html|www.hcltechsw.com }
+ */
+function ddeExecute() {
+    return notesf().DDEExecute();
+}
+exports.ddeExecute = ddeExecute;
+/**
+ * Initiates a conversation with a DDE server, and returns the conversation ID.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DDEINITIATE.html|www.hcltechsw.com }
+ */
+function ddeInitiate() {
+    return notesf().DDEInitiate();
+}
+exports.ddeInitiate = ddeInitiate;
+/**
+ * Deposits unsolicited data into the specified location within the DDE server
+ * application. If the data was successfully inserted into the target location,
+ * &#64;DDEPoke returns an ACK (acknowledgement) with the value @True(1); if the
+ * attempt was not successful, the call returns a NACK (negative acknowledgment)
+ * with the value @False(0). If the conversation ID is invalid, an error is
+ * returned (see @IsError).
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DDEPOKE.html|www.hcltechsw.com }
+ */
+function ddePoke() {
+    return notesf().DDEPoke();
+}
+exports.ddePoke = ddePoke;
+/**
+ * Terminates the conversation with a DDE application.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DDETERMINATE.html|www.hcltechsw.com }
+ */
+function ddeTerminate() {
+    return notesf().DDETerminate();
+}
+exports.ddeTerminate = ddeTerminate;
+//# sourceMappingURL=dde.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/design.js.html b/javadoc/design.js.html new file mode 100644 index 00000000..108193f8 --- /dev/null +++ b/javadoc/design.js.html @@ -0,0 +1,215 @@ +Source: design.js
On this page

design.js

"use strict";
+/**
+ * @file Design
+ * @module design
+ * @category Design
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+const tslib_1 = require("tslib");
+const notesc = tslib_1.__importStar(require("../notes/design"));
+exports._notes = notesc;
+/**
+ * Displays the Properties box for the current document.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNDOCUMENTINFO.html|www.hcltechsw.com }
+ */
+exports.designDocumentInfo = () => {
+    return notesc.DesignDocumentInfo();
+};
+/**
+ * Displays the Properties box for the current form, subform, or page.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNFORMATTRIBUTES.html|www.hcltechsw.com }
+ */
+exports.designFormAttributes = () => {
+    return notesc.DesignFormAttributes();
+};
+/**
+ * Displays the Properties box for the currently selected field.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNFORMFIELDDEF.html|www.hcltechsw.com }
+ */
+exports.designFormFieldDef = () => {
+    return notesc.DesignFormFieldDef();
+};
+/**
+ * Creates a new field on a form or subform.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNFORMNEWFIELD.html|www.hcltechsw.com }
+ */
+exports.designFormNewField = () => {
+    return notesc.DesignFormNewField();
+};
+/**
+ * Displays the Design - Forms view of the current database.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNFORMS.html|www.hcltechsw.com }
+ */
+exports.designForms = () => {
+    return notesc.DesignForms();
+};
+/**
+ * Turns a single-use field into a shared field.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNFORMSHAREFIELD.html|www.hcltechsw.com }
+ */
+exports.designFormShareField = () => {
+    return notesc.DesignFormShareField();
+};
+/**
+ * Displays the Insert Shared Field dialog box, where the user can select a shared
+ * field to place on the current form or subform.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNFORMUSEFIELD.html|www.hcltechsw.com }
+ */
+exports.designFormUseField = () => {
+    return notesc.DesignFormUseField();
+};
+/**
+ * Displays the design pane and sets the Event edit control to Window Title, so you
+ * can define a formula for a form's window title.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNFORMWINDOWTITLE.html|www.hcltechsw.com }
+ */
+exports.designFormWindowTitle = () => {
+    return notesc.DesignFormWindowTitle();
+};
+/**
+ * Displays the About document in Edit mode for the current database.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNHELPABOUTDOCUMENT.html|www.hcltechsw.com }
+ */
+exports.designHelpAboutDocument = () => {
+    return notesc.DesignHelpAboutDocument();
+};
+/**
+ * Displays the Using document in Edit mode for the current database.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNHELPUSINGDOCUMENT.html|www.hcltechsw.com }
+ */
+exports.designHelpUsingDocument = () => {
+    return notesc.DesignHelpUsingDocument();
+};
+/**
+ * Displays the Design Icon dialog box, where you can edit the icon for the
+ * currently selected database.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNICON.html|www.hcltechsw.com }
+ */
+exports.designIcon = () => {
+    return notesc.DesignIcon();
+};
+/**
+ * Displays the Agents and Release 3 macros in the current database.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNMACROS.html|www.hcltechsw.com }
+ */
+exports.designMacros = () => {
+    return notesc.DesignMacros();
+};
+/**
+ * Displays the Refresh Database Design dialog box, where the user can choose a
+ * server that contains the design template for the current database.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNREFRESH.html|www.hcltechsw.com }
+ */
+exports.designRefresh = () => {
+    return notesc.DesignRefresh();
+};
+/**
+ * Displays the Replace Database Design dialog box, where the user can choose a
+ * design template to replace that of the current database.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNREPLACE.html|www.hcltechsw.com }
+ */
+exports.designReplace = () => {
+    return notesc.DesignReplace();
+};
+/**
+ * Displays the Design - Shared Fields view in the current database.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNSHAREDFIELDS.html|www.hcltechsw.com }
+ */
+exports.designSharedFields = () => {
+    return notesc.DesignSharedFields();
+};
+/**
+ * Displays the Design Synopsis dialog box so the user can select the types of
+ * information to be included in the synopsis.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNSYNOPSIS.html|www.hcltechsw.com }
+ */
+exports.designSynopsis = () => {
+    return notesc.DesignSynopsis();
+};
+/**
+ * Creates a column in a view or folder, positioned after the last column.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNVIEWAPPENDCOLUMN.html|www.hcltechsw.com }
+ */
+exports.designViewAppendColumn = () => {
+    return notesc.DesignViewAppendColumn();
+};
+/**
+ * Displays the Properties box for the current view or folder.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNVIEWATTRIBUTES.html|www.hcltechsw.com }
+ */
+exports.designViewAttributes = () => {
+    return notesc.DesignViewAttributes();
+};
+/**
+ * Displays the Properties box for the currently selected column.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNVIEWCOLUMNDEF.html|www.hcltechsw.com }
+ */
+exports.designViewColumnDef = () => {
+    return notesc.DesignViewColumnDef();
+};
+/**
+ * Displays or hides the action pane.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNVIEWEDITACTIONS.html|www.hcltechsw.com }
+ */
+exports.designViewEditActions = () => {
+    return notesc.DesignViewEditActions();
+};
+/**
+ * Displays the Design Form Formula dialog box, where the user can define a formula
+ * that determines which form is used to display documents opened from a particular
+ * view or folder.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNVIEWFORMFORMULA.html|www.hcltechsw.com }
+ */
+exports.designViewFormFormula = () => {
+    return notesc.DesignViewFormFormula();
+};
+/**
+ * Creates a new column before the currently selected column in a view or folder.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNVIEWNEWCOLUMN.html|www.hcltechsw.com }
+ */
+exports.designViewNewColumn = () => {
+    return notesc.DesignViewNewColumn();
+};
+/**
+ * Displays the Design - Views view in the current database.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNVIEWS.html|www.hcltechsw.com }
+ */
+exports.designViews = () => {
+    return notesc.DesignViews();
+};
+/**
+ * Displays the design pane and sets the Define control to View Selection, which
+ * allows you to define a selection formula to determine which documents are
+ * displayed in a view.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DESIGNVIEWSELECTFORMULA.html|www.hcltechsw.com }
+ */
+exports.designViewSelectFormula = () => {
+    return notesc.DesignViewSelectFormula();
+};
+//# sourceMappingURL=design.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/directory.js.html b/javadoc/directory.js.html new file mode 100644 index 00000000..272aa9c0 --- /dev/null +++ b/javadoc/directory.js.html @@ -0,0 +1,37 @@ +Source: directory.js
On this page

directory.js

"use strict";
+/**
+ * @file Directory
+ * @module directory
+ * @category Directory
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.orgDir = exports.nameLookup = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesf = tslib_1.__importStar(require("../notes/directory"));
+exports._notes = notesf;
+/**
+ * Searches for each specified user name across all Domino® Directories and returns
+ * a list of single text values for each specified user name.
+
+ * @throws {Error} method not implemented
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_NAMELOOKUP_7699.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function nameLookup() {
+    return notesf.NameLookup();
+}
+exports.nameLookup = nameLookup;
+/**
+ * In a Service Provider (xSP) environment, returns the name of the subdirectory
+ * for the company with which the currently authenticated user is registered. Notes/
+ * Domino retrieves this information from the organization's certifier document.
+ * @throws {Error} no plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_ORGDIR_FUNCTION.html|www.hcltechsw.com }
+ */
+function orgDir() {
+    return notesf.OrgDir();
+}
+exports.orgDir = orgDir;
+//# sourceMappingURL=directory.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/document.js.html b/javadoc/document.js.html new file mode 100644 index 00000000..e978ad0f --- /dev/null +++ b/javadoc/document.js.html @@ -0,0 +1,583 @@ +Source: document.js
On this page

document.js

"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.isDocBeingRecalculated = exports.isDocBeingMailed = exports.isDocBeingLoaded = exports.isDocBeingEdited = exports.inheritedDocumentUniqueID = exports.getFocusTable = exports.docMark = exports.docLength = exports.v3EditPrevField = exports.v3EditNextField = exports.switchForm = exports.showProperties = exports.removeFromFolder = exports.moveToTrash = exports.discoverFolders = exports.chooseFolders = exports.undeleteDocument = exports.showParentPreview = exports.setTargetFrame = exports.openInNewWindow = exports.hardDeleteDocument = exports.docLock = exports.addToFolder = exports.setField = exports.responses = exports.prompt = exports.pickList = exports.isResponseDoc = exports.isUnavailable = exports.isNewDoc = exports.isDocTruncated = exports.isAvailable = exports.getFieldType = exports.getField = exports.formLanguage = exports.documentUniqueID = exports.docOmmittedLength = exports.docFields = exports.deleteField = exports.deleteDocument = exports.author = exports.attachments = exports.attachmentNames = exports.attachmentModifiedTimes = exports.attachmentLengths = exports.allDescendants = exports.allChildren = exports.all = exports._notes_vmx = exports._notes = void 0;
+exports.whichFolders = exports.formTestDocument = exports.unavailable = exports.policyIsFieldLocked = exports.noteID = exports.isDocBeingSaved = void 0;
+const tslib_1 = require("tslib");
+/**
+ * @file Document
+ * @module document
+ * @category Document
+ */
+const notesf_base = tslib_1.__importStar(require("../notes/document"));
+const notesf_vmx = tslib_1.__importStar(require("../notes/voltmx/document"));
+const API = tslib_1.__importStar(require("../rosetta/API"));
+const common_1 = require("../utils/common");
+const notesf = () => API.isDefaultFrameworkVoltMX() ? notesf_vmx : notesf_base;
+const notesc = notesf; // notes commands are exposed in the notes functions source file; this notesc is just for visual cue
+exports._notes = notesf_base;
+exports._notes_vmx = notesf_vmx;
+/**
+ * Returns the value True.
+ * @returns {Promise<any>}
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ALL.html|www.hcltechsw.com }
+ */
+const all = () => {
+    return notesf().All();
+};
+exports.all = all;
+/**
+ * Includes all response documents at all levels for parent documents that match
+ * selection criteria.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ALLCHILDREN.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function allChildren() {
+    return notesf().AllChildren();
+}
+exports.allChildren = allChildren;
+/**
+ * Includes all response and response-to-response documents for parents that match
+ * selection criteria.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ALLDESCENDANTS.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function allDescendants() {
+    return notesf().AllDescendants();
+}
+exports.allDescendants = allDescendants;
+/**
+ * Returns a number or a number list containing the length of each attachment to
+ * the current document. The number(s) returned are only approximations; the actual
+ * size(s) of the attachment(s) may be slightly different.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ATTACHMENTLENGTHS.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function attachmentLengths() {
+    return notesf().AttachmentLengths();
+}
+exports.attachmentLengths = attachmentLengths;
+/**
+ * Returns a datetime that displays the date on which the file attachment
+ * associated with the current document was last modified. If the document contains
+ * more than one file attachment, returns the modification dates in a datetime list.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ATTACHMENTMODIFIEDTIMES.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function attachmentModifiedTimes() {
+    return notesf().AttachmentModifiedTimes();
+}
+exports.attachmentModifiedTimes = attachmentModifiedTimes;
+/**
+ * Returns the operating system file names of any files attached to a document. If
+ * there are multiple files attached, the names are returned as a multiple-value
+ * text list.
+ * @returns {TextOrTextList}
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ATTACHMENTNAMES.html|www.hcltechsw.com }
+ */
+function attachmentNames() {
+    return notesf().AttachmentNames();
+}
+exports.attachmentNames = attachmentNames;
+/**
+ * Returns the number of files attached to a document.
+ * @returns {number}
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ATTACHMENTS.html|www.hcltechsw.com }
+ */
+function attachments() {
+    return notesf().Attachments();
+}
+exports.attachments = attachments;
+/**
+ * Returns a text list containing the names of the author(s) of the current document.
+ * @returns {string[]}
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_AUTHOR.html|www.hcltechsw.com }
+ */
+function author() {
+    return notesf().Author();
+}
+exports.author = author;
+/**
+ * Deletes the current document.
+ * @returns {Promise<any>}
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DELETEDOCUMENT.html|www.hcltechsw.com }
+ */
+function deleteDocument() {
+    return notesf().DeleteDocument();
+}
+exports.deleteDocument = deleteDocument;
+/**
+ * Deletes the value of an editable field.
+ * @returns {void}
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DELETEFIELD.html|www.hcltechsw.com }
+ */
+function deleteField() {
+    return notesf().DeleteField();
+}
+exports.deleteField = deleteField;
+/**
+ * Returns a list of all the fields in a document.
+
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DOCFIELDS.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function docFields() {
+    return notesf().DocFields();
+}
+exports.docFields = docFields;
+/**
+ * Returns the approximate number of bytes a truncated document lost during
+ * replication. The bytes are the total number of bytes per attachment, OLE object,
+ * large rich text field, or non-summary items that were too large, according to
+ * the replication settings for the database, to be replicated.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DOCOMITTEDLENGTH.html|www.hcltechsw.com }
+ */
+function docOmmittedLength() {
+    return notesf().DocOmmittedLength();
+}
+exports.docOmmittedLength = docOmmittedLength;
+/**
+ * The universal ID, which uniquely identifies a document across all replicas of a
+ * database. In text format, the universal ID is a 32-character combination of
+ * hexadecimal digits (0-9, A-F).
+ *
+ * The universal ID is also known as the unique ID or UNID.
+ * @returns {string}
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DOCUMENTUNIQUEID.html|www.hcltechsw.com }
+ */
+function documentUniqueID() {
+    return notesf().DocumentUniqueID();
+}
+exports.documentUniqueID = documentUniqueID;
+/**
+ * Returns the language of the current form.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FORMLANGUAGE_FUNCTION.html|www.hcltechsw.com }
+ */
+function formLanguage() {
+    return notesf().FormLanguage();
+}
+exports.formLanguage = formLanguage;
+/**
+ * Returns the value of a specified field.
+ * @param {any} fieldName
+ * @returns {*} value
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_GETFIELD.html|www.hcltechsw.com }
+ */
+const getField = (fieldName) => {
+    return notesf().GetField(fieldName);
+};
+exports.getField = getField;
+/**
+ * Returns the type of a specified field.
+ * @param {any} fieldName  - uses current document
+ * @returns {*} field type - possible return values - 'string', 'number', 'date', 'richtext', 'string[]', 'number[]', 'date[], 'richtext[]', and []'
+ */
+const getFieldType = (fieldName) => {
+    return notesf().GetFieldType(fieldName);
+};
+exports.getFieldType = getFieldType;
+/**
+ * Checks a document for the existence of a field.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISAVAILABLE.html|www.hcltechsw.com }
+ */
+function isAvailable() {
+    return notesf().IsAvailable();
+}
+exports.isAvailable = isAvailable;
+/**
+ * Indicates whether the current document has been truncated.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISDOCTRUNCATED.html|www.hcltechsw.com }
+ */
+function isDocTruncated() {
+    return notesf().IsDocTruncated();
+}
+exports.isDocTruncated = isDocTruncated;
+/**
+ * For a document being edited, indicates if the document has been saved to disk.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISNEWDOC.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function isNewDoc() {
+    return notesf().IsNewDoc();
+}
+exports.isNewDoc = isNewDoc;
+/**
+ * Indicates whether a field name exists in a document.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISUNAVAILABLE.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function isUnavailable() {
+    return notesf().IsUnavailable();
+}
+exports.isUnavailable = isUnavailable;
+/**
+ * Indicates whether a document is a response to another document.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISRESPONSEDOC.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function isResponseDoc() {
+    return notesf().IsResponseDoc();
+}
+exports.isResponseDoc = isResponseDoc;
+/**
+ * Displays a modal window that contains either:
+ * - A view you specify from which the user can select one or more documents.
+ * &#64;pickList returns a column value from the selected document(s).
+ * - A dialog box, displaying information from all available Domino® Directories.
+ * The user can select one or more person, group, server, room, or resource names,
+ * and &#64;pickList returns those names.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_PICKLIST.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function pickList() {
+    return notesf().PickList();
+}
+exports.pickList = pickList;
+/**
+ * Get html to generate a prompt.
+ * @param style - The type of prompt to generate
+ * @param title - The title for the prompt
+ * @param [promptString] - Optional. Text to display with the prompt
+ * @param [defaultChoice] - Optional. Default choice to select when the prompt is displayed.
+ * @param [choiceList] - Optional. The list of avaliable choices
+ * @returns A promise that will inject the code for the prompt into the document.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_PROMPT.html|www.hcltechsw.com }
+ */
+function prompt(style, title, promptString, defaultChoice, choiceList) {
+    if (!style) {
+        return Promise.reject('Insufficient arguments');
+    }
+    style = common_1.PromptStyle[style.toUpperCase()] || '';
+    if (!style) {
+        return Promise.reject('Invalid Prompt type');
+    }
+    return notesf().Prompt(style, title, promptString, defaultChoice, choiceList);
+}
+exports.prompt = prompt;
+/**
+ * Returns the number of responses (in the current view) to the document.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_RESPONSES.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function responses() {
+    return notesf().Responses();
+}
+exports.responses = responses;
+/**
+ * Assigns a value to a field stored within a document (use &#64;set for temporary
+ * variables). This is similar to using the FIELD keyword, except that &#64;setField
+ * can be used within another &#64;function. If the field does not exist, this
+ * command creates it and applies the specified value to it.
+ * @param {string} fieldName The name of a field in the current document.
+ * @param {any} value The value to set the field.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SETFIELD.html|www.hcltechsw.com }
+ */
+function setField(fieldName, value) {
+    return notesf().SetField(fieldName, value);
+}
+exports.setField = setField;
+/* --------------------------------------------------------------- */
+/* Moved from Miscellaneous category                               */
+/**
+ * Adds current document to one folder while removing it from another. NULL string
+ * can be substituted for either argument to skip the action.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADDTOFOLDER_2068_MEMLIST.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function addToFolder() {
+    return notesf().AddToFolder();
+}
+exports.addToFolder = addToFolder;
+/**
+ * Locks, unlocks, returns the locked status of the current document, or indicates
+ * if a database has document locking enabled.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DOCLOCK.html|www.hcltechsw.com }
+ */
+function docLock() {
+    return notesf().DocLock();
+}
+exports.docLock = docLock;
+/**
+ * In an agent that runs a formula, &#64;HardDeleteDocument permanently removes the
+ * document currently being processed from the database if the database has soft
+ * deletions enabled. If the database does not have soft deletions enabled,
+ * &#64;HardDeleteDocument performs the same action as @DeleteDocument.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_HARDDELETEDOCUMENT.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function hardDeleteDocument() {
+    return notesf().HardDeleteDocument();
+}
+exports.hardDeleteDocument = hardDeleteDocument;
+/**
+ * Opens the specified document within a new window.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_OPENINNEWWINDOW.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function openInNewWindow() {
+    return notesf().OpenInNewWindow();
+}
+exports.openInNewWindow = openInNewWindow;
+/**
+ * Allows you to specify a target frame when opening a view, page, or frameset, or
+ * when composing or editing a document.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SETTARGETFRAME_4540.html|www.hcltechsw.com }
+ */
+function setTargetFrame() {
+    return notesf().SetTargetFrame();
+}
+exports.setTargetFrame = setTargetFrame;
+/**
+ * Displays the parent document preview pane.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SHOWPARENTPREVIEW_FUNCTION.html|www.hcltechsw.com }
+ */
+function showParentPreview() {
+    return notesf().ShowParentPreview();
+}
+exports.showParentPreview = showParentPreview;
+/**
+ * In a database with "Allow soft deletions" selected, this command restores a
+ * deleted document.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_UNDELETEDOCUMENT_9160_OVER.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function undeleteDocument() {
+    return notesf().UndeleteDocument();
+}
+exports.undeleteDocument = undeleteDocument;
+/**
+ * Displays the Folders dialog box, which allows you to select a folder in which to
+ * file the current document.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CHOOSEFOLDERS.html|www.hcltechsw.com }
+ */
+function chooseFolders() {
+    return notesc().ChooseFolders();
+}
+exports.chooseFolders = chooseFolders;
+/**
+ * Displays the "Folders containing current document" dialog box.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DISCOVERFOLDERS_COMMANDS.html|www.hcltechsw.com }
+ */
+function discoverFolders() {
+    return notesc().DiscoverFolders();
+}
+exports.discoverFolders = discoverFolders;
+/**
+ * Marks the currently selected document for deletion.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MOVETOTRASH_COMMAND.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function moveToTrash() {
+    return notesc().MoveToTrash();
+}
+exports.moveToTrash = moveToTrash;
+/**
+ * Removes the selected document from the current folder.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REMOVEFROMFOLDER.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function removeFromFolder() {
+    return notesc().RemoveFromFolder();
+}
+exports.removeFromFolder = removeFromFolder;
+/**
+ * Displays the Properties box for the currently selected Notes® object. For
+ * example, if a document is selected in a view, displays the document Properties
+ * box; if a field is selected on a form, displays the field Properties box.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SHOWPROPERTIES.html|www.hcltechsw.com }
+ */
+function showProperties() {
+    return notesc().ShowProperties();
+}
+exports.showProperties = showProperties;
+/**
+ * Changes the form used to display the current document.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SWITCHFORM_COMMAND.html|www.hcltechsw.com }
+ */
+function switchForm() {
+    return notesc().SwitchForm();
+}
+exports.switchForm = switchForm;
+/**
+ * In a document in Edit mode, moves the insertion point to the next editable field.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_V3EDITNEXTFIELD.html|www.hcltechsw.com }
+ */
+function v3EditNextField() {
+    return notesc().V3EditNextField();
+}
+exports.v3EditNextField = v3EditNextField;
+/**
+ * In a document in Edit mode, moves the insertion point to the first editable field.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_V3EDITPREVFIELD.html|www.hcltechsw.com }
+ */
+function v3EditPrevField() {
+    return notesc().V3EditPrevField();
+}
+exports.v3EditPrevField = v3EditPrevField;
+/**
+ * Returns the approximate size of a document in bytes.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DOCLENGTH.html|www.hcltechsw.com }
+ */
+function docLength() {
+    return notesf().DocLength();
+}
+exports.docLength = docLength;
+/**
+ * In an agent that runs a formula, indicates whether or not you want to save the
+ * changes to a document.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DOCMARK.html|www.hcltechsw.com }
+ */
+function docMark() {
+    return notesf().DocMark();
+}
+exports.docMark = docMark;
+/**
+ * Returns the name, current row, or current column of the table that is in focus.
+
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_GETFOCUSTABLE.html|www.hcltechsw.com }
+ */
+function getFocusTable() {
+    return notesf().GetFocusTable();
+}
+exports.getFocusTable = getFocusTable;
+/**
+ * The unique ID of the current document's inheritance parent. See
+ * &#64;documentUniqueID for a description of unique IDs.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_INHERITEDDOCUMENTUNIQUEID.html|www.hcltechsw.com }
+ */
+function inheritedDocumentUniqueID() {
+    return notesf().InheritedDocumentUniqueID();
+}
+exports.inheritedDocumentUniqueID = inheritedDocumentUniqueID;
+/**
+ * Checks the current status of the document and returns 1 (True) if the document
+ * is being edited; otherwise returns 0 (False).
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISDOCBEINGEDITED.html|www.hcltechsw.com }
+ */
+function isDocBeingEdited() {
+    return notesf().IsDocBeingEdited();
+}
+exports.isDocBeingEdited = isDocBeingEdited;
+/**
+ * Checks the current status of the document and returns 1 (True) if the document
+ * is being loaded into memory for display; otherwise returns 0 (False).
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISDOCBEINGLOADED.html|www.hcltechsw.com }
+ */
+function isDocBeingLoaded() {
+    return notesf().IsDocBeingLoaded();
+}
+exports.isDocBeingLoaded = isDocBeingLoaded;
+/**
+ * Checks the current status of the document and returns 1 (True) if the document
+ * is being mailed; otherwise, returns 0 (False).
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISDOCBEINGMAILED.html|www.hcltechsw.com }
+ */
+function isDocBeingMailed() {
+    return notesf().IsDocBeingMailed();
+}
+exports.isDocBeingMailed = isDocBeingMailed;
+/**
+ * Checks the current status of the document and returns 1 (True) if the document
+ * is being recalculated; otherwise, returns 0 (False).
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISDOCBEINGRECALCULATED.html|www.hcltechsw.com }
+ */
+function isDocBeingRecalculated() {
+    return notesf().IsDocBeingRecalculated();
+}
+exports.isDocBeingRecalculated = isDocBeingRecalculated;
+/**
+ * Checks the current status of the document and returns 1 (True) if the document
+ * is being saved; otherwise, returns 0 (False).
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISDOCBEINGSAVED.html|www.hcltechsw.com }
+ */
+function isDocBeingSaved() {
+    return notesf().IsDocBeingSaved();
+}
+exports.isDocBeingSaved = isDocBeingSaved;
+/**
+ * The ID number of the current document.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NOTEID.html|www.hcltechsw.com }
+ */
+function noteID() {
+    return notesf().NoteID();
+}
+exports.noteID = noteID;
+/**
+ * Indicates whether a field is locked by an administration policy and cannot be
+ * modified.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_POLICYISFIELDLOCKED.html|www.hcltechsw.com }
+ */
+function policyIsFieldLocked() {
+    return notesf().PolicyIsFieldLocked();
+}
+exports.policyIsFieldLocked = policyIsFieldLocked;
+/**
+ * Deletes the value of an editable field.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_UNAVAILABLE.html|www.hcltechsw.com }
+ */
+function unavailable() {
+    return notesf().Unavailable();
+}
+exports.unavailable = unavailable;
+/**
+ * Creates a document using the current form or Page, so you can test its fields,
+ * formulas, and scripts.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FORMTESTDOCUMENT.html|www.hcltechsw.com }
+ */
+function formTestDocument() {
+    return notesc().FormTestDocument();
+}
+exports.formTestDocument = formTestDocument;
+/**
+ * Returns the names of the folders containing the current document.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_WHICHFOLDERS_FUNCTION.html|www.hcltechsw.com }
+ */
+function whichFolders() {
+    return notesf().WhichFolders();
+}
+exports.whichFolders = whichFolders;
+//# sourceMappingURL=document.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/ecl.js.html b/javadoc/ecl.js.html new file mode 100644 index 00000000..6fafb3d1 --- /dev/null +++ b/javadoc/ecl.js.html @@ -0,0 +1,51 @@ +Source: ecl.js
On this page

ecl.js

"use strict";
+/**
+ * @file ecl
+ * @module ECL (Execution Control List)
+ * @category ECL
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.refreshECL = exports.editUserECL = exports.editECL = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesf_base = tslib_1.__importStar(require("../notes/ecl"));
+const notesf = () => notesf_base;
+exports._notes = notesf_base;
+//-----------------------------
+// Notes @functions ECL
+/**
+ * Displays the administration "Workstation Security: Execution Control List"
+ * dialog box for a specified address book and name, which lets you change that
+ * administration ECL. Administrators can name Administration ECLs. The name is not
+ * usually a user name, but whatever name the administrator chooses; for example,
+ * Manager, Developer, or LimitedAccess.
+ * @throws {Error}  no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITECL.html|www.hcltechsw.com }
+ */
+function editECL() {
+    return notesf().EditECL();
+}
+exports.editECL = editECL;
+/**
+ * Displays the "Workstation Security: Execution Control List" dialog box, which
+ * allows you to change your personal ECL for the current workstation.
+ * @throws {Error}  no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITUSERECL.html|www.hcltechsw.com }
+ */
+function editUserECL() {
+    return notesf().EditUserECL();
+}
+exports.editUserECL = editUserECL;
+/**
+ * Copies the administration execution control list from a specified Address Book
+ * and name to your personal workstation ECL.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REFRESHECL.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function refreshECL() {
+    return notesf().RefreshECL();
+}
+exports.refreshECL = refreshECL;
+//# sourceMappingURL=ecl.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/edit.js.html b/javadoc/edit.js.html new file mode 100644 index 00000000..2bd378a4 --- /dev/null +++ b/javadoc/edit.js.html @@ -0,0 +1,513 @@ +Source: edit.js
On this page

edit.js

"use strict";
+/**
+ * @file Edit
+ * @module edit
+ * @category Edit
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.editTop = exports.editTableInsertRowColumn = exports.editTableFormat = exports.editTableDeleteRowColumn = exports.editShowHideHiddenChars = exports.editSelectByDate = exports.editSelectAll = exports.editRight = exports.editRestoreDocument = exports.editResizePicture = exports.editQuoteSelection = exports.editProfileDocument = exports.editProfile = exports.editPrevField = exports.editPhoneNumbers = exports.editPasteSpecial = exports.editPaste = exports.editOwnerVCard = exports.editOpenLink = exports.editNextField = exports.editMakeDocLink = exports.editLocations = exports.editLinks = exports.editLeft = exports.editInsertText = exports.editInsertTable = exports.editInsertPopup = exports.editInsertPageBreak = exports.editInsertObject = exports.editInsertFileAttachment = exports.editInsertButton = exports.editIndentFirstLine = exports.editIndent = exports.editHorizScrollbar = exports.editHeaderFooter = exports.editGotoField = exports.editFindNext = exports.editFindInPreview = exports.editFind = exports.editEncryptionKeys = exports.editDown = exports.editDocument = exports.editDetach = exports.editDeselectAll = exports.editCut = exports.editCopy = exports.editClear = exports.editButton = exports.editBottom = exports._notes = void 0;
+exports.editUp = exports.editUntruncate = exports.editUndo = void 0;
+const tslib_1 = require("tslib");
+const notesc = tslib_1.__importStar(require("../notes/edit"));
+exports._notes = notesc;
+/**
+ * Moves the insertion point to the end of a document or form.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITBOTTOM.html|www.hcltechsw.com }
+ */
+function editBottom() {
+    return notesc.EditBottom();
+}
+exports.editBottom = editBottom;
+/**
+ * Displays the design pane and the Properties box for the selected button.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITBUTTON.html|www.hcltechsw.com }
+ */
+function editButton() {
+    return notesc.EditButton();
+}
+exports.editButton = editButton;
+/**
+ * Performs the menu command Edit - Delete.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITCLEAR.html|www.hcltechsw.com }
+ */
+function editClear() {
+    return notesc.EditClear();
+}
+exports.editClear = editClear;
+/**
+ * Performs the menu command Edit - Copy.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITCOPY.html|www.hcltechsw.com }
+ */
+function editCopy() {
+    return notesc.EditCopy();
+}
+exports.editCopy = editCopy;
+/**
+ * Performs the menu command Edit - Cut.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITCUT.html|www.hcltechsw.com }
+ */
+function editCut() {
+    return notesc.EditCut();
+}
+exports.editCut = editCut;
+/**
+ * Performs the menu command Edit - Deselect All.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITDESELECTALL.html|www.hcltechsw.com }
+ */
+function editDeselectAll() {
+    return notesc.EditDeselectAll();
+}
+exports.editDeselectAll = editDeselectAll;
+/**
+ * Detaches a file attachment to a location you specify.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITDETACH.html|www.hcltechsw.com }
+ */
+function editDetach() {
+    return notesc.EditDetach();
+}
+exports.editDetach = editDetach;
+/**
+ * Places the current document into the mode you specify. If you don't specify a
+ * mode, toggles between Read and Edit mode.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITDOCUMENT.html|www.hcltechsw.com }
+ */
+function editDocument() {
+    return notesc.EditDocument();
+}
+exports.editDocument = editDocument;
+/**
+ * Moves the insertion point in a document down by the number of lines you specify.
+ * If you don't specify a number, moves the insertion point down one line.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITDOWN.html|www.hcltechsw.com }
+ */
+function editDown() {
+    return notesc.EditDown();
+}
+exports.editDown = editDown;
+/**
+ * Displays the Properties box for the current document, where you can edit its
+ * encryption keys.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITENCRYPTIONKEYS.html|www.hcltechsw.com }
+ */
+function editEncryptionKeys() {
+    return notesc.EditEncryptionKeys();
+}
+exports.editEncryptionKeys = editEncryptionKeys;
+/**
+ * Performs the menu command Edit - Find/Replace.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITFIND.html|www.hcltechsw.com }
+ */
+function editFind() {
+    return notesc.EditFind();
+}
+exports.editFind = editFind;
+/**
+ * Performs the menu command Edit - Find/Replace without moving the focus to the
+ * editing window. This allows searches to take place when the focus is on the view
+ * or folder panes.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITFINDINPREVIEW.html|www.hcltechsw.com }
+ */
+function editFindInPreview() {
+    return notesc.EditFindInPreview();
+}
+exports.editFindInPreview = editFindInPreview;
+/**
+ * Performs the menu command Edit - Find Next.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITFINDNEXT.html|www.hcltechsw.com }
+ */
+function editFindNext() {
+    return notesc.EditFindNext();
+}
+exports.editFindNext = editFindNext;
+/**
+ * In a document in Edit mode, places the insertion point in a field you specify.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITGOTOFIELD.html|www.hcltechsw.com }
+ */
+function editGotoField() {
+    return notesc.EditGotoField();
+}
+exports.editGotoField = editGotoField;
+/**
+ * Displays the Properties box for the current document or form, which allows you
+ * to set headers, footers, and other print attributes.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITHEADERFOOTER.html|www.hcltechsw.com }
+ */
+function editHeaderFooter() {
+    return notesc.EditHeaderFooter();
+}
+exports.editHeaderFooter = editHeaderFooter;
+/**
+ * Toggles the horizontal scroll bar in a document.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITHORIZSCROLLBAR.html|www.hcltechsw.com }
+ */
+function editHorizScrollbar() {
+    return notesc.EditHorizScrollbar();
+}
+exports.editHorizScrollbar = editHorizScrollbar;
+/**
+ * Indents a paragraph 1/4 inch. The entire paragraph is indented, as well as any
+ * paragraphs that are subsequently typed below it, until the user disables
+ * indenting.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITINDENT.html|www.hcltechsw.com }
+ */
+function editIndent() {
+    return notesc.EditIndent();
+}
+exports.editIndent = editIndent;
+/**
+ * Indents the first line of a paragraph 1/4 inch. The first line of the current
+ * paragraph is indented, as well as first lines of subsequently typed paragraphs,
+ * until the user disables indenting. (A carriage return defines a new paragraph.)
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITINDENTFIRSTLINE.html|www.hcltechsw.com }
+ */
+function editIndentFirstLine() {
+    return notesc.EditIndentFirstLine();
+}
+exports.editIndentFirstLine = editIndentFirstLine;
+/**
+ * Creates a new button and displays the design pane, where the user can define a
+ * formula, simple action(s), LotusScript®, or JavaScript™ for the button.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITINSERTBUTTON.html|www.hcltechsw.com }
+ */
+function editInsertButton() {
+    return notesc.EditInsertButton();
+}
+exports.editInsertButton = editInsertButton;
+/**
+ * Attaches a file to a document.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITINSERTFILEATTACHMENT.html|www.hcltechsw.com }
+ */
+function editInsertFileAttachment() {
+    return notesc.EditInsertFileAttachment();
+}
+exports.editInsertFileAttachment = editInsertFileAttachment;
+/**
+ * Inserts an object into a document, form, or subform.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITINSERTOBJECT.html|www.hcltechsw.com }
+ */
+function editInsertObject() {
+    return notesc.EditInsertObject();
+}
+exports.editInsertObject = editInsertObject;
+/**
+ * Inserts a forced page break into a document, form, subform, or page.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITINSERTPAGEBREAK.html|www.hcltechsw.com }
+ */
+function editInsertPageBreak() {
+    return notesc.EditInsertPageBreak();
+}
+exports.editInsertPageBreak = editInsertPageBreak;
+/**
+ * Creates a hotspot that displays text.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITINSERTPOPUP.html|www.hcltechsw.com }
+ */
+function editInsertPopup() {
+    return notesc.EditInsertPopup();
+}
+exports.editInsertPopup = editInsertPopup;
+/**
+ * Displays the Create Table dialog box, where the user can specify the number of
+ * rows and columns in a new table.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITINSERTTABLE.html|www.hcltechsw.com }
+ */
+function editInsertTable() {
+    return notesc.EditInsertTable();
+}
+exports.editInsertTable = editInsertTable;
+/**
+ * Inserts the specified string at the current cursor position.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITINSERTTEXT.html|www.hcltechsw.com }
+ */
+function editInsertText() {
+    return notesc.EditInsertText();
+}
+exports.editInsertText = editInsertText;
+/**
+ * Moves the insertion point in a document, form, subform, or page to the left by
+ * the number of spaces you specify. If you don't specify a number, moves the
+ * insertion point one space to the left.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITLEFT.html|www.hcltechsw.com }
+ */
+function editLeft() {
+    return notesc.EditLeft();
+}
+exports.editLeft = editLeft;
+/**
+ * Displays the External Links dialog box.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITLINKS.html|www.hcltechsw.com }
+ */
+function editLinks() {
+    return notesc.EditLinks();
+}
+exports.editLinks = editLinks;
+/**
+ * Opens the Personal Address Book to the Locations view.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITLOCATIONS.html|www.hcltechsw.com }
+ */
+function editLocations() {
+    return notesc.EditLocations();
+}
+exports.editLocations = editLocations;
+/**
+ * Creates a link to the current document and copies it to the Clipboard. The user
+ * can paste the link into any rich text field.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITMAKEDOCLINK.html|www.hcltechsw.com }
+ */
+function editMakeDocLink() {
+    return notesc.EditMakeDocLink();
+}
+exports.editMakeDocLink = editMakeDocLink;
+/**
+ * In a document in Edit mode, moves the insertion point to the next editable field
+ * in the document, working left to right, beginning to end.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITNEXTFIELD.html|www.hcltechsw.com }
+ */
+function editNextField() {
+    return notesc.EditNextField();
+}
+exports.editNextField = editNextField;
+/**
+ * Opens the selected link.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITOPENLINK.html|www.hcltechsw.com }
+ */
+function editOpenLink() {
+    return notesc.EditOpenLink();
+}
+exports.editOpenLink = editOpenLink;
+/**
+ * Displays the My Contact/vCard Edit dialog using the Contact form.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITOWNERVCARD.html|www.hcltechsw.com }
+ */
+function editOwnerVCard() {
+    return notesc.EditOwnerVCard();
+}
+exports.editOwnerVCard = editOwnerVCard;
+/**
+ * Performs the menu command Edit - Paste.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITPASTE.html|www.hcltechsw.com }
+ */
+function editPaste() {
+    return notesc.EditPaste();
+}
+exports.editPaste = editPaste;
+/**
+ * Displays the Paste Special dialog box.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITPASTESPECIAL.html|www.hcltechsw.com }
+ */
+function editPasteSpecial() {
+    return notesc.EditPasteSpecial();
+}
+exports.editPasteSpecial = editPasteSpecial;
+/**
+ * Displays the Server/Connections view of the Personal Address Book.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITPHONENUMBERS.html|www.hcltechsw.com }
+ */
+function editPhoneNumbers() {
+    return notesc.EditPhoneNumbers();
+}
+exports.editPhoneNumbers = editPhoneNumbers;
+/**
+ * In a document in Edit mode, moves the insertion point to the previous editable
+ * field in the document, working right to left, end to beginning.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITPREVFIELD.html|www.hcltechsw.com }
+ */
+function editPrevField() {
+    return notesc.EditPrevField();
+}
+exports.editPrevField = editPrevField;
+/**
+ * Opens a new or existing profile document in Edit mode.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITPROFILE.html|www.hcltechsw.com }
+ */
+function editProfile() {
+    return notesc.EditProfile();
+}
+exports.editProfile = editProfile;
+/**
+ * Creates a new or opens an existing profile document in Edit mode.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITPROFILEDOCUMENT_COMMAND.html|www.hcltechsw.com }
+ */
+function editProfileDocument() {
+    return notesc.EditProfileDocument();
+}
+exports.editProfileDocument = editProfileDocument;
+/**
+ * Makes selected text look like an Internet-style reply by prefixing each line
+ * with a greater-than sign and removing attachments and other objects. This sets
+ * each line of the message to a default length, preventing it from wrapping in
+ * unexpected places when sent to non-Notes users.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITQUOTESELECTION.html|www.hcltechsw.com }
+ */
+function editQuoteSelection() {
+    return notesc.EditQuoteSelection();
+}
+exports.editQuoteSelection = editQuoteSelection;
+/**
+ * Displays the proportions of the selected graphic at the end of the screen. The
+ * user can size the picture by dragging the mouse in the appropriate direction.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITRESIZEPICTURE.html|www.hcltechsw.com }
+ */
+function editResizePicture() {
+    return notesc.EditResizePicture();
+}
+exports.editResizePicture = editResizePicture;
+/**
+ * Performs the menu command Edit - Restore.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITRESTOREDOCUMENT_COMMAND.html|www.hcltechsw.com }
+ */
+function editRestoreDocument() {
+    return notesc.EditRestoreDocument();
+}
+exports.editRestoreDocument = editRestoreDocument;
+/**
+ * Moves the insertion point in a document to the right by the number of spaces you
+ * specify. If you don't specify a number, moves the insertion point one space to
+ * the right.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITRIGHT.html|www.hcltechsw.com }
+ */
+function editRight() {
+    return notesc.EditRight();
+}
+exports.editRight = editRight;
+/**
+ * Performs the menu command Edit - Select All.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITSELECTALL.html|www.hcltechsw.com }
+ */
+function editSelectAll() {
+    return notesc.EditSelectAll();
+}
+exports.editSelectAll = editSelectAll;
+/**
+ * Displays the Select by Date dialog box, where the user indicates which documents
+ * should be selected in the view or folder, according to the date they were
+ * created or last modified.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITSELECTBYDATE.html|www.hcltechsw.com }
+ */
+function editSelectByDate() {
+    return notesc.EditSelectByDate();
+}
+exports.editSelectByDate = editSelectByDate;
+/**
+ * Toggles the display of the hidden characters (such as spaces, tabs, and carriage
+ * returns) in a document, form, or subform.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITSHOWHIDEHIDDENCHARS.html|www.hcltechsw.com }
+ */
+function editShowHideHiddenChars() {
+    return notesc.EditShowHideHiddenChars();
+}
+exports.editShowHideHiddenChars = editShowHideHiddenChars;
+/**
+ * Displays the Delete Row/Column dialog box, where the user can select the number
+ * of rows or columns to delete from the current table.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITTABLEDELETEROWCOLUMN.html|www.hcltechsw.com }
+ */
+function editTableDeleteRowColumn() {
+    return notesc.EditTableDeleteRowColumn();
+}
+exports.editTableDeleteRowColumn = editTableDeleteRowColumn;
+/**
+ * Displays the Properties box for the selected table.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITTABLEFORMAT.html|www.hcltechsw.com }
+ */
+function editTableFormat() {
+    return notesc.EditTableFormat();
+}
+exports.editTableFormat = editTableFormat;
+/**
+ * Displays the Insert Row/Column dialog box, where the user can select the number
+ * of rows or columns to insert into the table.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITTABLEINSERTROWCOLUMN.html|www.hcltechsw.com }
+ */
+function editTableInsertRowColumn() {
+    return notesc.EditTableInsertRowColumn();
+}
+exports.editTableInsertRowColumn = editTableInsertRowColumn;
+/**
+ * Moves the insertion point to the beginning of a document or form.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITTOP.html|www.hcltechsw.com }
+ */
+function editTop() {
+    return notesc.EditTop();
+}
+exports.editTop = editTop;
+/**
+ * Performs the menu command Edit - Undo, which undoes the previous reversible
+ * operation.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITUNDO.html|www.hcltechsw.com }
+ */
+function editUndo() {
+    return notesc.EditUndo();
+}
+exports.editUndo = editUndo;
+/**
+ * Retrieves the full version of a truncated document.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_UNTRUNCATE.html|www.hcltechsw.com }
+ */
+function editUntruncate() {
+    return notesc.EditUntruncate();
+}
+exports.editUntruncate = editUntruncate;
+/**
+ * Moves the insertion point in a document up by the number of lines you specify.
+ * If you don't specify a number, moves the insertion point up one line.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EDITUP.html|www.hcltechsw.com }
+ */
+function editUp() {
+    return notesc.EditUp();
+}
+exports.editUp = editUp;
+//# sourceMappingURL=edit.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/engineering.js.html b/javadoc/engineering.js.html new file mode 100644 index 00000000..6e7467de --- /dev/null +++ b/javadoc/engineering.js.html @@ -0,0 +1,707 @@ +Source: engineering.js
On this page

engineering.js

"use strict";
+/**
+ * @file Engineering
+ * @module engineering
+ * @category Engineering
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.imSub = exports.imSqrt = exports.imSinh = exports.imSin = exports.imSech = exports.imSec = exports.imReal = exports.imProduct = exports.imPower = exports.imLog2 = exports.imLog10 = exports.imLn = exports.imExp = exports.imDiv = exports.imCsch = exports.imCsc = exports.imCot = exports.imCosh = exports.imCos = exports.imConjugate = exports.imArgument = exports.imaginary = exports.imAbs = exports.hex2Oct = exports.hex2Dec = exports.hex2Bin = exports.geStep = exports.erfcPrecise = exports.erfc = exports.erfPrecise = exports.erf = exports.delta = exports.dec2Oct = exports.dec2Hex = exports.dec2Bin = exports.convert = exports.complex = exports.bitXOr = exports.bitRShift = exports.bitOr = exports.bitLShift = exports.bitAnd = exports.bin2Oct = exports.bin2Hex = exports.bin2Dec = exports.besselY = exports.besselK = exports.besselJ = exports.besselI = exports._openFormula = void 0;
+exports.oct2Hex = exports.oct2Dec = exports.oct2Bin = exports.imTan = exports.imSum = void 0;
+const tslib_1 = require("tslib");
+const openf = tslib_1.__importStar(require("../openformula/engineering"));
+exports._openFormula = openf;
+//-----------------------------
+// Open Formula engineering
+/**
+ * Returns the modified Bessel function In(x).
+ * @param {number} x The value at which to evaluate the function
+ * @param {number} order The order of the Bessel function. If order is not an integer, it is truncated
+ * @returns {number} The calculated modified Bessel function for the given value of x and the specified order
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#BESSELI|www.oasis-open.org}
+ * @example rosettajs.besselI(2.6, 1) // returns 2.7553843378955585
+ */
+function besselI(x, order) {
+    return openf.BESSELI(x, order);
+}
+exports.besselI = besselI;
+/**
+ * Returns the Bessel function Jn(x).
+ * @param {number} x The value at which to evaluate the function
+ * @param {number} order The order of the Bessel function. If order is not an integer, it is truncated
+ * @returns {number} The calculated Bessel function for the given value of x and the specified order
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#BESSELJ|www.oasis-open.org}
+ * @example rosettajs.besselJ(2.6, 1) // returns 0.47081826649775615
+ */
+function besselJ(x, order) {
+    return openf.BESSELJ(x, order);
+}
+exports.besselJ = besselJ;
+/**
+ * Returns the modified Bessel function Kn(x).
+ * @param {number} x The value at which to evaluate the function.
+ * @param {number} order The order of the Bessel function. If order is not an integer, it is truncated
+ * @returns {number} The calculated Bessel function for the given value of x and the specified order
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#BESSELK|www.oasis-open.org}
+ * @example rosettajs.besselK(2.6, 1) // returns 0.0652840440474331
+ */
+function besselK(x, order) {
+    return openf.BESSELK(x, order);
+}
+exports.besselK = besselK;
+/**
+ * Returns the Bessel function Yn(x).
+ * @param {number} x The value at which to evaluate the function
+ * @param {number} order The order of the function. If order is not an integer, it is truncated
+ * @returns {number} The calculated Bessel function for the given value of x and the specified order
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#BESSELY|www.oasis-open.org}
+ * @example rosettajs.besselY(2.6, 1) // returns 0.18836354378844533
+ */
+function besselY(x, order) {
+    return openf.BESSELY(x, order);
+}
+exports.besselY = besselY;
+/**
+ * Converts a binary number to decimal.
+ * @param {number} number The binary number you want to convert. Number cannot contain more than
+ *     10 characters (10 bits). The most significant bit of number is the sign bit. The
+ *     remaining 9 bits are magnitude bits. Negative numbers are represented using
+ *     two's-complement notation.
+ * @returns {number} A decimal for the given binary number
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#BIN2DEC|www.oasis-open.org}
+ * @example rosettajs.bin2Dec(1100001) // returns 97
+ */
+function bin2Dec(number) {
+    return openf.BIN2DEC(number);
+}
+exports.bin2Dec = bin2Dec;
+/**
+ * Converts a binary number to hexadecimal.
+ * @param {number} number The binary number you want to convert. Number cannot contain more than
+ *     10 characters (10 bits). The most significant bit of number is the sign bit. The
+ *     remaining 9 bits are magnitude bits. Negative numbers are represented using
+ *     two's-complement notation.
+ * @param {number} [places] The number of characters to use. If places is omitted, bin2Hex uses the
+ *     minimum number of characters necessary. Places is useful for padding the return
+ *     value with leading 0s (zeros).
+ * @returns {string} A hexadecimal for the given binary number
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#BIN2HEX|www.oasis-open.org}
+ * @example rosettajs.bin2Hex(11111011) // returns fb
+ * @example rosettajs.bin2Hex(11111011, 4) // returns 00fb
+ */
+function bin2Hex(number, places) {
+    return openf.BIN2HEX(number, places);
+}
+exports.bin2Hex = bin2Hex;
+/**
+ * Converts a binary number to octal.
+ * @param {number} number The binary number you want to convert. Number cannot contain more than
+ *     10 characters (10 bits). The most significant bit of number is the sign bit. The
+ *     remaining 9 bits are magnitude bits. Negative numbers are represented using
+ *     two's-complement notation.
+ * @param {number} [places] The number of characters to use. If places is omitted, bin2Oct uses the
+ *     minimum number of characters necessary. Places is useful for padding the return
+ *     value with leading 0s (zeros).
+ * @returns {string} A octal for the given binary number
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#BIN2OCT|www.oasis-open.org}
+ * @example rosettajs.bin2Oct(1001) // returns 11
+ * @example rosettajs.bin2Oct(1001, 4) // returns 0011
+ */
+function bin2Oct(number, places) {
+    return openf.BIN2OCT(number, places);
+}
+exports.bin2Oct = bin2Oct;
+/**
+ * Returns a bitwise 'AND' of two numbers.
+ * @param {number} number1 A decimal greater than or equal to 0
+ * @param {number} number2 A decimal greater than or equal to 0
+ * @returns {number} A decimal that is a bitwise 'AND' of the 2 given numbers
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#BITAND|www.oasis-open.org}
+ * @example rosettajs.bitAnd(7,29) // returns 5
+ */
+function bitAnd(number1, number2) {
+    return openf.BITAND(number1, number2);
+}
+exports.bitAnd = bitAnd;
+/**
+ * Returns a value number shifted left by shift_amount bits.
+ * @param {number} number A integer greater than or equal to 0
+ * @param {number} shift A integer indicating amount of bits to shift
+ * @returns {number} A decimal representing the specified number shifted left by specified amount of bits
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#BITLSHIFT|www.oasis-open.org}
+ * @example rosettajs.bitLShift(5,3) // returns 40
+ */
+function bitLShift(number, shift) {
+    return openf.BITLSHIFT(number, shift);
+}
+exports.bitLShift = bitLShift;
+/**
+ * Returns a bitwise 'OR' of two numbers.
+ * @param {number} number1 A decimal greater than or equal to 0
+ * @param {number} number2 A decimal greater than or equal to 0
+ * @returns {number} A decimal that is a bitwise 'OR' of the 2 given numbers
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#BITOR|www.oasis-open.org}
+ * @example rosettajs.bitOr(7,29) // returns 31
+ */
+function bitOr(number1, number2) {
+    return openf.BITOR(number1, number2);
+}
+exports.bitOr = bitOr;
+/**
+ * Returns a value number shifted right by shift_amount bits.
+ * @param {number} number A integer greater than or equal to 0
+ * @param {number} shift A integer indicating amount of bits to shift
+ * @returns {number} A decimal representing the specified number shifted right by specified amount of bits
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#BITRSHIFT|www.oasis-open.org}
+ * @example rosettajs.bitRShift(29,2) // returns 7
+ */
+function bitRShift(number, shift) {
+    return openf.BITRSHIFT(number, shift);
+}
+exports.bitRShift = bitRShift;
+/**
+ * Returns a bitwise 'XOR' of two numbers.
+ * @param {number} number1 A decimal greater than or equal to 0
+ * @param {number} number2 A decimal greater than or equal to 0
+ * @returns {number} A decimal that is a bitwise 'XOR' of the 2 given numbers
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#BITXOR|www.oasis-open.org}
+ * @example rosettajs.bitXOr(7,29) // returns 26
+ */
+function bitXOr(number1, number2) {
+    return openf.BITXOR(number1, number2);
+}
+exports.bitXOr = bitXOr;
+/**
+ * Converts real and imaginary coefficients into a complex number.
+ * @param {number} real The real coefficient of the complex number
+ * @param {number} imaginary The imaginary coefficient of the complex number
+ * @param {String} [suffix] The suffix, either lowercase "i" or "j", for the imaginary component of the
+ *     complex number. If omitted, suffix is assumed to be "i".
+ * @returns {string|number} A complex number from the given real and imaginary coefficient numbers
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#COMPLEX|www.oasis-open.org}
+ * @example rosettajs.complex(4,5) // returns 4+5i
+ * @example rosettajs.complex(4,5,"j") // returns 4+5j
+ */
+function complex(real, imaginary, suffix = "i") {
+    return openf.COMPLEX(real, imaginary, suffix);
+}
+exports.complex = complex;
+/**
+ * Converts a number from one measurement system to another.
+ * @param {number} number The value in from_units to convert
+ * @param {number} from_unit The units for number
+ * @param {number} to_unit The units for the result
+ * @returns {number} A number representing conversion from one measurement system to another
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#CONVERT|www.oasis-open.org}
+ * @example rosettajs.convert(1, "lbm", "kg") // returns 0.45359237
+ */
+function convert(number, from_unit, to_unit) {
+    return openf.CONVERT(number, from_unit, to_unit);
+}
+exports.convert = convert;
+/**
+ * Converts a decimal number to binary.
+ * @param {number} number The decimal integer you want to convert. If number is negative, valid place
+ *     values are ignored and dec2Bin returns a 10-character (10-bit) binary number in
+ *     which the most significant bit is the sign bit. The remaining 9 bits are
+ *     magnitude bits. Negative numbers are represented using two's-complement notation.
+ * @param {number} [places] The number of characters to use. If places is omitted, dec2Bin uses the minimum
+ *     number of characters necessary. Places is useful for padding the return value with leading 0s (zeros).
+ * @returns {number} A binary for the given decimal number
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DEC2BIN|www.oasis-open.org}
+ * @example rosettajs.dec2Bin(10,5) // returns 01010
+ * @example rosettajs.dec2Bin(-90) // returns 1110100110
+ */
+function dec2Bin(number, places) {
+    return openf.DEC2BIN(number, places);
+}
+exports.dec2Bin = dec2Bin;
+/**
+ * Converts a decimal number to hexadecimal.
+ * @param {number} number The decimal integer you want to convert. If number is negative, places is
+ *     ignored and dec2Hex returns a 10-character (40-bit) hexadecimal number in which
+ *     the most significant bit is the sign bit. The remaining 39 bits are magnitude
+ *     bits. Negative numbers are represented using two's-complement notation.
+ * @param {number} [places] The number of characters to use. If places is omitted, dec2Hex uses the minimum
+ *     number of characters necessary. Places is useful for padding the return value
+ *     with leading 0s (zeros).
+ * @returns {string} A hexadecimal for the given decimal number
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DEC2HEX|www.oasis-open.org}
+ * @example rosettajs.dec2Hex(90, 4) // returns 005a
+ * @example rosettajs.dec2Hex(-75) // returns ffffffffb5
+ */
+function dec2Hex(number, places) {
+    return openf.DEC2HEX(number, places);
+}
+exports.dec2Hex = dec2Hex;
+/**
+ * Converts a decimal number to octal.
+ * @param {number} number The decimal integer you want to convert. If number is negative, places is
+ *     ignored and dec2Oct returns a 10-character (30-bit) octal number in which the
+ *     most significant bit is the sign bit. The remaining 29 bits are magnitude bits.
+ *     Negative numbers are represented using two's-complement notation.
+ * @param {number} [places] The number of characters to use. If places is omitted, dec2Oct uses the minimum
+ *     number of characters necessary. Places is useful for padding the return value
+ *     with leading 0s (zeros).
+ * @returns {number} A octal for the given decimal number
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DEC2OCT|www.oasis-open.org}
+ * @example rosettajs.dec2Oct(78, 3) // returns 116
+ * @example rosettajs.dec2Oct(-75) // returns 7777777665
+ */
+function dec2Oct(number, places) {
+    return openf.DEC2OCT(number, places);
+}
+exports.dec2Oct = dec2Oct;
+/**
+ * Tests whether two values are equal.
+ * @param {number} number1 The first number
+ * @param {number} [number2] The second number. If omitted, number2 is assumed to be zero.
+ * @returns {number} 1 if number1 = number2; returns 0 otherwise
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#DELTA|www.oasis-open.org}
+ * @example rosettajs.delta(6, 4) // returns 0
+ * @example rosettajs.delta(8, 8) // returns 1
+ */
+function delta(number1, number2 = 0) {
+    return openf.DELTA(number1, number2);
+}
+exports.delta = delta;
+/**
+ * Returns the error function integrated between lower_limit and upper_limit.
+ * @param {number} lower_bound The lower bound for integrating ERF
+ * @param {number} [upper_bound] The upper bound for integrating ERF. If omitted, ERF integrates between zero and lower_limit.
+ * @returns {number} The error function integrated between lower_limit and upper_limit
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#ERF|www.oasis-open.org}
+ * @example rosettajs.erf(0.875) // returns 0.7840750610598597
+ */
+function erf(lower_bound, upper_bound = 0) {
+    return openf.ERF(lower_bound, upper_bound);
+}
+exports.erf = erf;
+/**
+ * Returns the error function.
+ * @throws {Error} method not implemented
+ * @TODO this needs to be implemented
+ */
+erf.precise = () => {
+    return openf.ERF.PRECISE();
+};
+exports.erfPrecise = erf.precise;
+/**
+ * Returns the complementary error function.
+ * @param {number} x The lower bound for integrating ERFC
+ * @returns {number} Complementary ERF of provided number
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#ERFC|www.oasis-open.org}
+ * @example rosettajs.erfc(2) // returns 0.004677734981047288
+ */
+function erfc(x) {
+    return openf.ERFC(x);
+}
+exports.erfc = erfc;
+/**
+ * Returns the complementary ERF function integrated between x and infinity.
+ * @throws {Error} method not implemented
+ * @TODO this needs to be implemented
+ */
+erfc.precise = () => {
+    return openf.ERFC.PRECISE();
+};
+exports.erfcPrecise = erfc.precise;
+/**
+ * Tests whether a number is greater than a threshold value.
+ * @param {number} number The value to test against step
+ * @param {number} [step] The threshold value. If you omit a value for step, geStep uses zero.
+ * @returns {number} 1 if number ≥ step; returns 0 (zero) otherwise.
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#GESTEP|www.oasis-open.org}
+ * @example rosettajs.geStep(6) // returns 1
+ * @example rosettajs.geStep(6,8) // returns 0
+ */
+function geStep(number, step = 0) {
+    return openf.GESTEP(number, step);
+}
+exports.geStep = geStep;
+/**
+ * Converts a hexadecimal number to binary.
+ * @param {string} number The hexadecimal number you want to convert. Number cannot contain more than 10
+ *     characters. The most significant bit of number is the sign bit (40th bit from
+ *     the right). The remaining 9 bits are magnitude bits. Negative numbers are
+ *     represented using two's-complement notation.
+ * @param {number} [places] The number of characters to use. If places is omitted, hex2Bin uses the minimum
+ *     number of characters necessary. Places is useful for padding the return value with leading 0s (zeros).
+ * @returns {string} A binary for the given hexadecimal
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#HEX2BIN|www.oasis-open.org}
+ * @example rosettajs.hex2Bin("B") // returns 1011
+ * @example rosettajs.hex2Bin("B",10) // returns 0000001011
+ */
+function hex2Bin(number, places) {
+    return openf.HEX2BIN(number, places);
+}
+exports.hex2Bin = hex2Bin;
+/**
+ * Converts a hexadecimal number to decimal.
+ * @param {string} number The hexadecimal number you want to convert. Number cannot contain more
+ *     than 10 characters (40 bits). The most significant bit of number is the sign
+ *     bit. The remaining 39 bits are magnitude bits. Negative numbers are represented using
+ *     two's-complement notation.
+ * @returns {number} A decimal for the given hexadecimal number
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#HEX2DEC|www.oasis-open.org}
+ * @example rosettajs.hex2Dec("A6") // returns 166
+ */
+function hex2Dec(number) {
+    return openf.HEX2DEC(number);
+}
+exports.hex2Dec = hex2Dec;
+/**
+ * Converts a hexadecimal number to octal
+ * @param {string} number The hexadecimal number you want to convert. Number cannot contain more
+ *     than 10 characters. The most significant bit of number is the sign bit. The
+ *     remaining 39 bits are magnitude bits. Negative numbers are represented using
+ *     two's-complement notation.
+ * @param {number} [places] The number of characters to use. If places is omitted, hex2Oct uses the
+ *     minimum number of characters necessary. Places is useful for padding the return
+ *     value with leading 0s (zeros).
+ * @returns {string} A octal for the given hexadecimal number
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#HEX2OCT|www.oasis-open.org}
+ * @example rosettajs.hex2Oct("B") // returns 13
+ * @example rosettajs.hex2Oct("B",10) // 0000000013
+ */
+function hex2Oct(number, places) {
+    return openf.HEX2OCT(number, places);
+}
+exports.hex2Oct = hex2Oct;
+/**
+ * Returns the absolute value (modulus) of a complex number.
+ * @param {string|number} inumber A complex number for which you want the absolute value
+ * @returns {number} Absolute value for the given complex number
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMABS|www.oasis-open.org}
+ * @example rosettajs.imAbs("9+12i") // returns 15
+ */
+function imAbs(inumber) {
+    return openf.IMABS(inumber);
+}
+exports.imAbs = imAbs;
+/**
+ * Returns the imaginary coefficient of a complex number.
+ * @param {string|number} inumber A complex number for which you want the imaginary coefficient
+ * @returns {string|number} The imaginary coefficient of the given complex number
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMAGINARY|www.oasis-open.org}
+ * @example rosettajs.imaginary("4+5i") // returns 5
+ * @example rosettajs.imaginary(7) // returns 0
+ */
+function imaginary(inumber) {
+    return openf.IMAGINARY(inumber);
+}
+exports.imaginary = imaginary;
+/**
+ * Returns the argument theta, an angle expressed in radians.
+ * @param {string|number} inumber A complex number for which you want the argument Theta
+ * @returns {string|number} The argument Theta, an angle expressed in radians, for the given complex number
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMARGUMENT|www.oasis-open.org}
+ * @example rosettajs.imArgument("4+5i") // returns 0.8960553845713439
+ */
+function imArgument(inumber) {
+    return openf.IMARGUMENT(inumber);
+}
+exports.imArgument = imArgument;
+/**
+ * Returns the complex conjugate of a complex number.
+ * @param {string|number} inumber A complex number for which you want the conjugate
+ * @returns {string|number} The complex conjugate of the given complex number
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMCONJUGATE|www.oasis-open.org}
+ * @example rosettajs.imConjugate("7+4i") // returns 7-4i
+ */
+function imConjugate(inumber) {
+    return openf.IMCONJUGATE(inumber);
+}
+exports.imConjugate = imConjugate;
+/**
+ * Returns the cosine of a complex number.
+ * @param {string|number} inumber A complex number for which you want the cosine
+ * @returns {string|number} Returns the cosine of the given complex number in x + yi or x + yj text format
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMCOS|www.oasis-open.org}
+ * @example rosettajs.imCos("7+i") // returns 1.1633319692207098-0.772091435022302i
+ */
+function imCos(inumber) {
+    return openf.IMCOS(inumber);
+}
+exports.imCos = imCos;
+/**
+ * Returns the hyperbolic cosine of a complex number.
+ * @param {string|number} inumber A complex number for which you want the hyperbolic cosine
+ * @returns {string|number} The hyperbolic cosine of the given complex number in x+yi or x+yj text format
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMCOSH|www.oasis-open.org}
+ * @example rosettajs.imCosh("7+i") // returns 296.2569584411429+461.3921082367867i
+ */
+function imCosh(inumber) {
+    return openf.IMCOSH(inumber);
+}
+exports.imCosh = imCosh;
+/**
+ * Returns the cotangent of a complex number.
+ * @param {string|number} inumber A complex number for which you want the cotangent
+ * @returns {string|number} The cotangent of the given complex number in x+yi or x+yj text format
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMCOT|www.oasis-open.org}
+ * @example rosettajs.imCot("7+i") // returns 0.27323643702063916-1.0003866917747672i
+ */
+function imCot(inumber) {
+    return openf.IMCOT(inumber);
+}
+exports.imCot = imCot;
+/**
+ * Returns the cosecant of a complex number.
+ * @param {string|number} inumber A complex number for which you want the cosecant
+ * @returns {string|number} The cosecant of a complex number in x+yi or x+yj text format
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMCSC|www.oasis-open.org}
+ * @example rosettajs.imCsc("7+i") // returns 0.5592579837285742-0.48875850368917295i
+ */
+function imCsc(inumber) {
+    return openf.IMCSC(inumber);
+}
+exports.imCsc = imCsc;
+/**
+ * Returns the hyperbolic cosecant of a complex number.
+ * @param {string|number} inumber A complex number for which you want the hyperbolic cosecant
+ * @returns {string|number} The hyperbolic cosecant of the given complex number in x+yi or x+yj text format
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMCSCH|www.oasis-open.org}
+ * @example rosettajs.imCsch("7+i") // returns 0.0009853823560021253-0.0015346446451764265i
+ */
+function imCsch(inumber) {
+    return openf.IMCSCH(inumber);
+}
+exports.imCsch = imCsch;
+/**
+ * Returns the quotient of two complex numbers.
+ * @param {string|number} inumber1 The complex numerator or dividend
+ * @param {string|number} inumber2 The complex denominator or divisor
+ * @returns {string|number} The quotient of the two given complex numbers in x + yi or x + yj text format
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMDIV|www.oasis-open.org}
+ * @example rosettajs.imDiv("-238+240i","10+24i") // returns 5+12i
+ */
+function imDiv(inumber1, inumber2) {
+    return openf.IMDIV(inumber1, inumber2);
+}
+exports.imDiv = imDiv;
+/**
+ * Returns the exponential of a complex number.
+ * @param {string|number} inumber A complex number for which you want the exponential
+ * @returns {string|number} The exponential of a complex number in x + yi or x + yj text format
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMEXP|www.oasis-open.org}
+ * @example rosettajs.imExp("2+i") // returns 3.992324048441272+6.217676312367968i
+ */
+function imExp(inumber) {
+    return openf.IMEXP(inumber);
+}
+exports.imExp = imExp;
+/**
+ * Returns the natural logarithm of a complex number.
+ * @param {string|number} inumber A complex number for which you want the natural logarithm
+ * @returns {string|number} The natural logarithm of a complex number in x + yi or x + yj text format
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMLN|www.oasis-open.org}
+ * @example rosettajs.imLn("2+i") // returns 0.8047189562170503+0.4636476090008061i
+ */
+function imLn(inumber) {
+    return openf.IMLN(inumber);
+}
+exports.imLn = imLn;
+/**
+ * Returns the base-10 logarithm of a complex number.
+ * @param {string|number} inumber A complex number for which you want the common logarithm
+ * @returns {string|number} The common logarithm (base 10) of a complex number in x + yi or x + yj text format.
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMLOG10|www.oasis-open.org}
+ * @example rosettajs.imLog10("7+i") // returns 0.8494850021680093+0.06162510781291279i
+ */
+function imLog10(inumber) {
+    return openf.IMLOG10(inumber);
+}
+exports.imLog10 = imLog10;
+/**
+ * Returns the base-2 logarithm of a complex number.
+ * @param {string|number} inumber A complex number for which you want the base-2 logarithm
+ * @returns {string|number} The base-2 logarithm of a complex number in x + yi or x + yj text format
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMLOG2|www.oasis-open.org}
+ * @example rosettajs.imLog2("7+i") // returns 2.821928094887362+0.20471417699417774i
+ */
+function imLog2(inumber) {
+    return openf.IMLOG2(inumber);
+}
+exports.imLog2 = imLog2;
+/**
+ * Returns a complex number raised to an integer power.
+ * @param {string|number} inumber A complex number you want to raise to a power
+ * @param {number} power The power to which you want to raise the complex number
+ * @returns {string|number} A complex number in x + yi or x + yj text format raised to a power
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMPOWER|www.oasis-open.org}
+ * @example rosettajs.imPower("2+2i", 55) // returns 4.835703278458551e+24-4.835703278458541e+24i
+ */
+function imPower(inumber, power) {
+    return openf.IMPOWER(inumber, power);
+}
+exports.imPower = imPower;
+/**
+ * Returns the product of from 2 to 255 complex numbers.
+ * @param {string[]|number[]} inumbers Inumber1 is required, subsequent inumbers are not. 1 to 255 complex numbers to multiply
+ * @returns {string|number} The product of 1 to 255 complex numbers in x + yi or x + yj text format
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMPRODUCT|www.oasis-open.org}
+ * @example rosettajs.imProduct("7+2i",55) // returns 385+110i
+ * @example rosettajs.imProduct("7+2i","9-3i") // returns 69-3i
+ */
+function imProduct(...inumbers) {
+    return openf.IMPRODUCT(...inumbers);
+}
+exports.imProduct = imProduct;
+/**
+ * Returns the real coefficient of a complex number.
+ * @param {string|number} inumber A complex number for which you want the real coefficient
+ * @returns {string|number} The real coefficient of a complex number in x + yi or x + yj text format
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMREAL|www.oasis-open.org}
+ * @example rosettajs.imReal("7-3i") // returns 7
+ */
+function imReal(inumber) {
+    return openf.IMREAL(inumber);
+}
+exports.imReal = imReal;
+/**
+ * Returns the secant of a complex number.
+ * @param {number} inumber A complex number for which you want the secant
+ * @returns {String} The secant of a complex number in x+yi or x+yj text format.
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMSEC|www.oasis-open.org}
+ * @example rosettajs.imSec("7-3i") // returns 0.07520380314551633-0.06521210988033882i
+ */
+function imSec(inumber) {
+    return openf.IMSEC(inumber);
+}
+exports.imSec = imSec;
+/**
+ * Returns the hyperbolic secant of a complex number.
+ * @param {number} inumber A complex number for which you want the hyperbolic secant.
+ * @returns {String} The hyperbolic secant of a complex number in x+yi or x+yj text format.
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMSECH|www.oasis-open.org}
+ * @example rosettajs.imSech("7-3i") // returns -0.0018055112256293788+0.00025736895567555834i
+ */
+function imSech(inumber) {
+    return openf.IMSECH(inumber);
+}
+exports.imSech = imSech;
+/**
+ * Returns the sine of a complex number.
+ * @param {string|number} inumber A complex number for which you want the sine
+ * @returns {string|number} The sine of a complex number in x + yi or x + yj text format
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMSIN|www.oasis-open.org}
+ * @example rosettajs.imSin("7-3i") // returns 6.61431901165645-7.552498491503594i
+ */
+function imSin(inumber) {
+    return openf.IMSIN(inumber);
+}
+exports.imSin = imSin;
+/**
+ * Returns the hyperbolic sine of a complex number.
+ * @param {string|number} inumber A complex number for which you want the hyperbolic sine
+ * @returns {string|number} The hyperbolic sine of a complex number in x+yi or x+yj text format
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMSINH|www.oasis-open.org}
+ * @example rosettajs.imSinh("7-4i") // returns -358.4033361942234+414.96770042530943i
+ */
+function imSinh(inumber) {
+    return openf.IMSINH(inumber);
+}
+exports.imSinh = imSinh;
+/**
+ * Returns the square root of a complex number.
+ * @param {string|number} inumber A complex number for which you want the square root
+ * @returns {string|number} The square root of a complex number in x + yi or x + yj text format.
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMSQRT|www.oasis-open.org}
+ * @example rosettajs.imSqrt("7-4i") // returns 2.744290231398508-0.7287858904707711i
+ */
+function imSqrt(inumber) {
+    return openf.IMSQRT(inumber);
+}
+exports.imSqrt = imSqrt;
+/**
+ * Returns the difference between two complex numbers.
+ * @param {string|number} inumber1 The complex number from which to subtract inumber2
+ * @param {string|number} inumber2 The complex number to subtract from inumber1
+ * @returns {stirng|number} The difference of two complex numbers in x + yi or x + yj text format
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMSUB|www.oasis-open.org}
+ * @example rosettajs.imSub("15+2i","3+3i") // returns 12-1i
+ */
+function imSub(inumber1, inumber2) {
+    return openf.IMSUB(inumber1, inumber2);
+}
+exports.imSub = imSub;
+/**
+ * Returns the sum of complex numbers.
+ * @param {string[]|number[]} inumbers Inumber1 is required, subsequent inumbers are not. 1 to 255 complex numbers to add
+ * @returns {string|number} The sum of two or more complex numbers in x + yi or x + yj text format
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMSUM|www.oasis-open.org}
+ * @example rosettajs.imSum("7+2i",55) // returns 755+2i
+ * @example rosettajs.imSum("7+2i","9-3i") // returns 16-1i
+ */
+function imSum(...inumbers) {
+    return openf.IMSUM(...inumbers);
+}
+exports.imSum = imSum;
+/**
+ * Returns the tangent of a complex number.
+ * @param {string|number} inumber A complex number for which you want the tangent
+ * @returns {string|number} The tangent of a complex number in x+yi or x+yj text format
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IMTAN|www.oasis-open.org}
+ * @example rosettajs.imTan("7+2i") // returns 0.03609431359326245+0.9943504089532537i
+ */
+function imTan(inumber) {
+    return openf.IMTAN(inumber);
+}
+exports.imTan = imTan;
+/**
+ * Converts an octal number to binary.
+ * @param {string} number The octal number you want to convert. Number may not contain more than 10
+ *     characters. The most significant bit of number is the sign bit. The remaining 29
+ *     bits are magnitude bits. Negative numbers are represented using two's-complement
+ *     notation.
+ * @param {number} [places] The number of characters to use. If places is omitted, oct2Bin uses the
+ *     minimum number of characters necessary. Places is useful for padding the return
+ *     value with leading 0s (zeros).
+ * @returns {number} A binary for the given octal number
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#OCT2BIN|www.oasis-open.org}
+ * @example rosettajs.oct2Bin(7) // returns 111
+ * @example rosettajs.oct2Bin(7, 5) // returns 00111
+ */
+function oct2Bin(number, places) {
+    return openf.OCT2BIN(number, places);
+}
+exports.oct2Bin = oct2Bin;
+/**
+ * Converts an octal number to decimal.
+ * @param {string} number The octal number you want to convert. Number may not contain more than
+ *     10 octal characters (30 bits). The most significant bit of number is the sign
+ *     bit. The remaining 29 bits are magnitude bits. Negative numbers are represented
+ *     using two's-complement notation.
+ * @returns {number} A decimal for the given octal number
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#OCT2DEC|www.oasis-open.org}
+ * @example rosettajs.oct2Dec(64) // returns 52
+ */
+function oct2Dec(number) {
+    return openf.OCT2DEC(number);
+}
+exports.oct2Dec = oct2Dec;
+/**
+ * Converts an octal number to hexadecimal.
+ * @param {string} number The octal number you want to convert. Number may not contain more than
+ *     10 octal characters (30 bits). The most significant bit of number is the sign
+ *     bit. The remaining 29 bits are magnitude bits. Negative numbers are represented
+ *     using two's-complement notation
+ * @param {number} [places] The number of characters to use. If places is omitted, OCT2HEX uses the
+ *     minimum number of characters necessary. Places is useful for padding the return
+ *     value with leading 0s (zeros).
+ * @returns {number} A hexadecimal for the given octal number
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#OCT2HEX|www.oasis-open.org}
+ * @example rosettajs.oct2Hex(177747533) // returns 1ffcf5b
+ * @example rosettajs.oct2Hex(74,5) // returns 0003c
+ */
+function oct2Hex(number, places) {
+    return openf.OCT2HEX(number, places);
+}
+exports.oct2Hex = oct2Hex;
+//-----------------------------
+// Notes @functions engineering
+//-----------------------------
+// Notes @Commands engineering
+//# sourceMappingURL=engineering.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/file.js.html b/javadoc/file.js.html new file mode 100644 index 00000000..ac6d356b --- /dev/null +++ b/javadoc/file.js.html @@ -0,0 +1,257 @@ +Source: file.js
On this page

file.js

"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.fileSaveNewVersion = exports.filePrintSetup = exports.filePageSetup = exports.fileOpenDBRepID = exports.fileNewReplica = exports.fileNewDatabase = exports.fileImport = exports.fileFullTextUpdate = exports.fileFullTextInfo = exports.fileFullTextDelete = exports.fileFullTextCreate = exports.fileExport = exports.fileExit = exports.fileDatabaseUseServer = exports.fileDatabaseRemove = exports.fileDatabaseInfo = exports.fileDatabaseDelete = exports.fileDatabaseCopy = exports.fileDatabaseCompact = exports.fileDatabaseACL = exports.fileSave = exports.filePrint = exports.fileOpenDatabase = exports.fileCloseWindow = exports._notes_vmx = exports._notes = void 0;
+const tslib_1 = require("tslib");
+/**
+ * @file File
+ * @module file
+ * @category File
+ */
+const notesc_base = tslib_1.__importStar(require("../notes/file"));
+const notesc_vmx = tslib_1.__importStar(require("../notes/voltmx/file"));
+const API = tslib_1.__importStar(require("../rosetta/API"));
+const notesc = () => API.isDefaultFrameworkVoltMX() ? notesc_vmx : notesc_base;
+exports._notes = notesc_base;
+exports._notes_vmx = notesc_vmx;
+/**
+ * Closes the current Notes® window. If the document or design element in that
+ * window has not been saved, Notes® prompts the user to save it before closing.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILECLOSEWINDOW.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+const fileCloseWindow = () => {
+    return notesc().FileCloseWindow();
+};
+exports.fileCloseWindow = fileCloseWindow;
+/**
+ * Opens the specified database to the specified view, highlighting the first
+ * document whose value in the sort column matches the key. You specify a database
+ * using its server and file name.
+ * @param {any} serverDatabase
+ * @param {string} viewName
+ * @param {any} key
+ * @returns {Promise<boolean>}
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEOPENDATABASE.html|www.hcltechsw.com }
+ */
+const fileOpenDatabase = (serverDatabase, viewName, key) => {
+    return notesc().FileOpenDatabase(serverDatabase, viewName, key);
+};
+exports.fileOpenDatabase = fileOpenDatabase;
+/**
+ * Prints the currently open or selected document(s), or the current view.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEPRINT.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+const filePrint = () => {
+    return notesc().FilePrint();
+};
+exports.filePrint = filePrint;
+/**
+ * Performs the menu command File - Save.
+ * @returns {Promise<boolean>}
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILESAVE.html|www.hcltechsw.com }
+ */
+const fileSave = () => {
+    return notesc().FileSave();
+};
+exports.fileSave = fileSave;
+/**
+ * Displays the access control list for the current database.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEDATABASEACL.html|www.hcltechsw.com }
+ */
+const fileDatabaseACL = () => {
+    return notesc().FileDatabaseACL();
+};
+exports.fileDatabaseACL = fileDatabaseACL;
+/**
+ * Compacts the white space in a database, and at the same time, converts the old
+ * database to the new format.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEDATABASECOMPACT.html|www.hcltechsw.com }
+ */
+const fileDatabaseCompact = () => {
+    return notesc().FileDatabaseCompact();
+};
+exports.fileDatabaseCompact = fileDatabaseCompact;
+/**
+ * Displays the Copy Database dialog box, where the user can copy the current
+ * database to a new location.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEDATABASECOPY.html|www.hcltechsw.com }
+ */
+const fileDatabaseCopy = () => {
+    return notesc().FileDatabaseCopy();
+};
+exports.fileDatabaseCopy = fileDatabaseCopy;
+/**
+ * Permanently deletes the current database file from the hard disk where it is
+ * stored.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEDATABASEDELETE.html|www.hcltechsw.com }
+ */
+const fileDatabaseDelete = () => {
+    return notesc().FileDatabaseDelete();
+};
+exports.fileDatabaseDelete = fileDatabaseDelete;
+/**
+ * Displays the Properties box for the current database.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEDATABASEINFO.html|www.hcltechsw.com }
+ */
+const fileDatabaseInfo = () => {
+    return notesc().FileDatabaseInfo();
+};
+exports.fileDatabaseInfo = fileDatabaseInfo;
+/**
+ * Removes the current database icon from the workspace.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEDATABASEREMOVE.html|www.hcltechsw.com }
+ */
+const fileDatabaseRemove = () => {
+    return notesc().FileDatabaseRemove();
+};
+exports.fileDatabaseRemove = fileDatabaseRemove;
+/**
+ * Displays the Switch Servers dialog box, where the user can choose a server that
+ * contains a replica of the currently selected database.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEDATABASEUSESERVER.html|www.hcltechsw.com }
+ */
+const fileDatabaseUseServer = () => {
+    return notesc().FileDatabaseUseServer();
+};
+exports.fileDatabaseUseServer = fileDatabaseUseServer;
+/**
+ * Performs the menu command File - Exit (File - Quit on the Macintosh), which
+ * closes Notes/Domino and all its open windows.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEEXIT.html|www.hcltechsw.com }
+ */
+const fileExit = () => {
+    return notesc().FileExit();
+};
+exports.fileExit = fileExit;
+/**
+ * Exports a Notes/Domino document or view.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEEXPORT.html|www.hcltechsw.com }
+ */
+const fileExport = () => {
+    return notesc().FileExport();
+};
+exports.fileExport = fileExport;
+/**
+ * Displays the Full-Text Create Index dialog box, where the user can specify
+ * settings for the database's full-text index.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEFULLTEXTCREATE.html|www.hcltechsw.com }
+ */
+const fileFullTextCreate = () => {
+    return notesc().FileFullTextCreate();
+};
+exports.fileFullTextCreate = fileFullTextCreate;
+/**
+ * Deletes a database's full-text index.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEFULLTEXTDELETE.html|www.hcltechsw.com }
+ */
+const fileFullTextDelete = () => {
+    return notesc().FileFullTextDelete();
+};
+exports.fileFullTextDelete = fileFullTextDelete;
+/**
+ * Displays the Full Text tab of the current database's Properties box.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEFULLTEXTINFO.html|www.hcltechsw.com }
+ */
+const fileFullTextInfo = () => {
+    return notesc().FileFullTextInfo();
+};
+exports.fileFullTextInfo = fileFullTextInfo;
+/**
+ * Updates full-text indexes for local databases or queues the update request for
+ * server-based databases.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEFULLTEXTUPDATE.html|www.hcltechsw.com }
+ */
+const fileFullTextUpdate = () => {
+    return notesc().FileFullTextUpdate();
+};
+exports.fileFullTextUpdate = fileFullTextUpdate;
+/**
+ * Imports a file into a Notes/Domino document or view.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEIMPORT.html|www.hcltechsw.com }
+ */
+const fileImport = () => {
+    return notesc().FileImport();
+};
+exports.fileImport = fileImport;
+/**
+ * Displays the New Database dialog box, where the user can select a server, title,
+ * and file name for a new database.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILENEWDATABASE.html|www.hcltechsw.com }
+ */
+const fileNewDatabase = () => {
+    return notesc().FileNewDatabase();
+};
+exports.fileNewDatabase = fileNewDatabase;
+/**
+ * Displays the New Replica dialog box, where the user can create a replica of the
+ * current database.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILENEWREPLICA.html|www.hcltechsw.com }
+ */
+const fileNewReplica = () => {
+    return notesc().FileNewReplica();
+};
+exports.fileNewReplica = fileNewReplica;
+/**
+ * Opens the specified database to the specified view, highlighting the first
+ * document whose value in the sort column matches the key. You specify a database
+ * using its replica ID, and Notes/Domino searches the workspace and all servers
+ * available in the current session to find a replica.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEOPENDBREPID.html|www.hcltechsw.com }
+ */
+const fileOpenDBRepID = () => {
+    return notesc().FileOpenDBRepID();
+};
+exports.fileOpenDBRepID = fileOpenDBRepID;
+/**
+ * Displays the Page Setup dialog box (or, on the Macintosh, the File Print Margins
+ * dialog box), which allows you to specify print settings for the selected
+ * database.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEPAGESETUP.html|www.hcltechsw.com }
+ */
+const filePageSetup = () => {
+    return notesc().FilePageSetup();
+};
+exports.filePageSetup = filePageSetup;
+/**
+ * Displays the Print Setup dialog box, which allows you to direct the current view
+ * or document to a printer or a file that you specify.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILEPRINTSETUP.html|www.hcltechsw.com }
+ */
+const filePrintSetup = () => {
+    return notesc().FilePrintSetup();
+};
+exports.filePrintSetup = filePrintSetup;
+/**
+ * Saves a document as a new version.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FILESAVENEWVERSION.html|www.hcltechsw.com }
+ */
+const fileSaveNewVersion = () => {
+    return notesc().FileSaveNewVersion();
+};
+exports.fileSaveNewVersion = fileSaveNewVersion;
+//# sourceMappingURL=file.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/financial.js.html b/javadoc/financial.js.html new file mode 100644 index 00000000..518a4733 --- /dev/null +++ b/javadoc/financial.js.html @@ -0,0 +1,929 @@ +Source: financial.js
On this page

financial.js

"use strict";
+/**
+ * @file Financial
+ * @module financial
+ * @category Financial
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.tbillYield = exports.tbillPrice = exports.tbillEq = exports.syd = exports.sln = exports.rri = exports.received = exports.rate = exports.pv = exports.priceMat = exports.priceDisc = exports.price = exports.pPmt = exports.pmt = exports.pDuration = exports.oddLYield = exports.oddLPrice = exports.oddFYield = exports.oddFPrice = exports.npv = exports.nPer = exports.nominal = exports.mirr = exports.mDuration = exports.isPmt = exports.irr = exports.iPmt = exports.intRate = exports.fvSchedule = exports.fv = exports.effect = exports.duration = exports.dollarFr = exports.dollarDe = exports.disc = exports.ddb = exports.db = exports.cumPrinc = exports.cumIPmt = exports.coupPCD = exports.coupNum = exports.coupNCD = exports.coupDaySnc = exports.coupDays = exports.coupDayBS = exports.amorLinc = exports.amorDegrc = exports.accrIntM = exports.accrInt = exports._openFormula = void 0;
+exports.yieldMat = exports.yieldDisc = exports.Yield = exports.xnpv = exports.xirr = exports.vdb = void 0;
+const tslib_1 = require("tslib");
+const openf = tslib_1.__importStar(require("../openformula/financial"));
+exports._openFormula = openf;
+//-----------------------------
+// Open Formula financial
+/**
+ * Returns the modified Bessel function In(x).
+ * @param {Date} issue The security's issue date.
+ * @param {Date} first_interest The security's first interest date.
+ * @param {Date} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {number} rate The security's annual coupon rate.
+ * @param {number} par The security's par value. If you omit par, ACCRINT uses $1,000.
+ * @param {number} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
+ * @param {number} [basis] Optional. The type of day count basis to use.
+ * @returns {number} returns error if inputs are invalid, otherwise returns the accrued interest as a number.
+ */
+function accrInt(issue, first_interest, settlement, rate, par, frequency, basis) {
+    return openf.ACCRINT(issue, first_interest, settlement, rate, par, frequency, basis);
+}
+exports.accrInt = accrInt;
+/**
+ *
+ * Returns the accrued interest for a security that pays interest at maturity.
+ *
+ * Category: Financial
+ *
+ * @param {*} issue The security's issue date.
+ * @param {*} settlement The security's maturity date.
+ * @param {*} rate The security's annual coupon rate.
+ * @param {*} par The security's par value. If you omit par, ACCRINTM uses $1,000.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function accrIntM() {
+    return openf.ACCRINTM();
+}
+exports.accrIntM = accrIntM;
+/**
+ * Returns the depreciation for each accounting period by using a depreciation coefficient.
+ *
+ * Category: Financial
+ *
+ * @param {*} cost The cost of the asset.
+ * @param {*} date_purchased The date of the purchase of the asset.
+ * @param {*} first_period The date of the end of the first period.
+ * @param {*} salvage The salvage value at the end of the life of the asset.
+ * @param {*} period The period.
+ * @param {*} rate The rate of depreciation.
+ * @param {*} basis Optional. The year basis to be used.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function amorDegrc() {
+    return openf.AMORDEGRC();
+}
+exports.amorDegrc = amorDegrc;
+/**
+ * Returns the depreciation for each accounting period.
+ *
+ * Category: Financial
+ *
+ * @param {*} cost The cost of the asset.
+ * @param {*} date_purchased The date of the purchase of the asset.
+ * @param {*} first_period The date of the end of the first period.
+ * @param {*} salvage The salvage value at the end of the life of the asset.
+ * @param {*} period The period.
+ * @param {*} rate The rate of depreciation.
+ * @param {*} basis Optional. The year basis to be used.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function amorLinc() {
+    return openf.AMORLINC();
+}
+exports.amorLinc = amorLinc;
+/**
+ * Returns the number of days from the beginning of the coupon period to the settlement date.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function coupDayBS() {
+    return openf.COUPDAYBS();
+}
+exports.coupDayBS = coupDayBS;
+/**
+ * Returns the number of days in the coupon period that contains the settlement date.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function coupDays() {
+    return openf.COUPDAYS();
+}
+exports.coupDays = coupDays;
+/**
+ * Returns the number of days from the settlement date to the next coupon date.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function coupDaySnc() {
+    return openf.COUPDAYSNC();
+}
+exports.coupDaySnc = coupDaySnc;
+/**
+ * Returns the next coupon date after the settlement date.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function coupNCD() {
+    return openf.COUPNCD();
+}
+exports.coupNCD = coupNCD;
+/**
+ * Returns the number of coupons payable between the settlement date and maturity date.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented
+ */
+function coupNum() {
+    return openf.COUPNUM();
+}
+exports.coupNum = coupNum;
+/**
+ * Returns the previous coupon date before the settlement date.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented
+ */
+function coupPCD() {
+    return openf.COUPPCD();
+}
+exports.coupPCD = coupPCD;
+/**
+ * Returns the cumulative interest paid between two periods.
+ *
+ * Category: Financial
+ *
+ * @param {number} intrate The interest rate.
+ * @param {number} numper The total number of payment periods.
+ * @param {number} pvalue The present value.
+ * @param {number} start_period The first period in the calculation. Payment periods are numbered beginning with 1.
+ * @param {number} end_period The last period in the calculation.
+ * @param {number} type The timing of the payment.
+ * @returns {number} the cumulative interest paid between two periods or an error if the arguments are incorrect.
+ */
+function cumIPmt(intrate, numper, pvalue, start_period, end_period, type) {
+    return openf.CUMIPMT(intrate, numper, pvalue, start_period, end_period, type);
+}
+exports.cumIPmt = cumIPmt;
+/**
+ * Returns the cumulative principal paid on a loan between two periods.
+ *
+ * Category: Financial
+ *
+ * @param {number} intrate The interest rate.
+ * @param {number} numper The total number of payment periods.
+ * @param {number} pvalue The present value.
+ * @param {number} start_period The first period in the calculation. Payment periods are numbered beginning with 1.
+ * @param {number} end_period The last period in the calculation.
+ * @param {number} type The timing of the payment.
+ * @returns {number} returns an error if input is wrong, otherwise returns cumulative principle as a number
+ */
+function cumPrinc(intrate, numper, pvalue, start_period, end_period, type) {
+    return openf.CUMPRINC(intrate, numper, pvalue, start_period, end_period, type);
+}
+exports.cumPrinc = cumPrinc;
+/**
+ * Returns the depreciation of an asset for a specified period by using the fixed-declining balance method.
+ *
+ * Category: Financial
+ *
+ * @param {number} initcost The initial cost of the asset.
+ * @param {number} salvageval The value at the end of the depreciation (sometimes called the salvage value of the asset).
+ * @param {number} uselife The number of periods over which the asset is being depreciated (sometimes called the useful life of the asset).
+ * @param {number} depperiod The period for which you want to calculate the depreciation. Period must use the same units as life.
+ * @param {number} [months] Optional. The number of months in the first year. If month is omitted, it is assumed to be 12.
+ * @returns {number} returns the depreciation as a number or an error if the arguments are incorrect.
+ */
+function db(initcost, salvageval, uselife, depperiod, months = 12) {
+    return openf.DB(initcost, salvageval, uselife, depperiod, months);
+}
+exports.db = db;
+/**
+ * Returns the depreciation of an asset for a specified period by using the double-declining balance method or some other method that you specify.
+ *
+ * Category: Financial
+ *
+ * @param {number} initcost The initial cost of the asset.
+ * @param {number} salvageval The value at the end of the depreciation (sometimes called the salvage value of the asset). This value can be 0.
+ * @param {number} uselife The number of periods over which the asset is being depreciated (sometimes called the useful life of the asset).
+ * @param {number} depperiod The period for which you want to calculate the depreciation. Period must use the same units as life.
+ * @param {number} [decfactor] Optional. The rate at which the balance declines. If factor is omitted, it is assumed to be 2 (the double-declining balance method).
+ * @returns {number} the depreciation of an asset for a specified period using fixed double declining balance or an error if the arguments are not formatted properly.
+ */
+function ddb(initcost, salvageval, uselife, depperiod, decfactor) {
+    return openf.DDB(initcost, salvageval, uselife, depperiod, decfactor);
+}
+exports.ddb = ddb;
+/**
+ * Returns the discount rate for a security.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} pr The security's price per $100 face value.
+ * @param {*} redemption The security's redemption value per $100 face value.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented
+ */
+function disc() {
+    return openf.DISC();
+}
+exports.disc = disc;
+/**
+ * Converts a dollar price, expressed as a fraction, into a dollar price, expressed as a decimal number.
+ *
+ * Category: Financial
+ *
+ * @param {number} fractional_dollar A number expressed as an integer part and a fraction part, separated by a decimal symbol.
+ * @param {number} fraction The integer to use in the denominator of the fraction.
+ * @returns {number} a decimal number that results from converting a dollar price, expressed as a fraction, into a dollar price, expressed as a decimal number. Or an error if the arguments are not formatted properly.
+ */
+function dollarDe(fractional_dollar, fraction) {
+    return openf.DOLLARDE(fractional_dollar, fraction);
+}
+exports.dollarDe = dollarDe;
+/**
+ * Converts a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction.
+ *
+ * Category: Financial
+ *
+ * @param {number} decimal_dollar A decimal number.
+ * @param {number} fraction The integer to use in the denominator of a fraction.
+ * @returns {number} a fraction that results from converting  dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction. Or an error if he arguments arent formatted properly.
+ */
+function dollarFr(decimal_dollar, fraction) {
+    return openf.DOLLARFR(decimal_dollar, fraction);
+}
+exports.dollarFr = dollarFr;
+/**
+ * Returns the annual duration of a security with periodic interest payments.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} coupon The security's annual coupon rate.
+ * @param {*} yld The security's annual yield.
+ * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented
+ */
+function duration() {
+    return openf.DURATION();
+}
+exports.duration = duration;
+/**
+ * Returns the effective annual interest rate.
+ *
+ * Category: Financial
+ *
+ * @param {number} nominal_intrate The nominal interest rate.
+ * @param {number} nperyr The number of compounding periods per year.
+ * @returns {number} effective annual interest rate or an error if the arguments are not formated properly.
+ */
+function effect(nominal_intrate, nperyr) {
+    return openf.EFFECT(nominal_intrate, nperyr);
+}
+exports.effect = effect;
+/**
+ * Returns the future value of an investment.
+ *
+ * Category: Financial
+ *
+ * @param {number} intrate The interest rate per period.
+ * @param {number} numper The total number of payment periods in an annuity.
+ * @param {number} pmt The payment made each period; it cannot change over the life of the annuity. Typically, pmt contains principal and interest but no other fees or taxes. If pmt is omitted, you must include the pv argument.
+ * @param {number} [pv] Optional. The present value, or the lump-sum amount that a series of future payments is worth right now. If pv is omitted, it is assumed to be 0 (zero), and you must include the pmt argument.
+ * @param {number} [type] Optional. The number 0 or 1 and indicates when payments are due. If type is omitted, it is assumed to be 0.
+ * @returns {number} the future value of an investment or an error if the arguments are not formatted properly.
+ */
+function fv(intrate, numper, pmt, pv = 0, type = 0) {
+    return openf.FV(intrate, numper, pmt, pv, type);
+}
+exports.fv = fv;
+/**
+ * Returns the future value of an initial principal after applying a series of compound interest rates.
+ *
+ * Category: Financial
+ *
+ * @param {number} principal The present value.
+ * @param {number} schedule An array of interest rates to apply.
+ * @returns {number}  the future value of an initial principal after applying a series of compound interest rates or an error if arguments are formatted improperly.
+ */
+function fvSchedule(principal, schedule) {
+    return openf.FVSCHEDULE(principal, schedule);
+}
+exports.fvSchedule = fvSchedule;
+/**
+ * Returns the interest rate for a fully invested security.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} investment The amount invested in the security.
+ * @param {*} redemption The amount to be received at maturity.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function intRate() {
+    return openf.INTRATE();
+}
+exports.intRate = intRate;
+/**
+ * Returns the interest payment for an investment for a given period.
+ *
+ * Category: Financial
+ *
+ * @param {number} intrate The interest rate per period.
+ * @param {number} period The period for which you want to find the interest and must be in the range 1 to nper.
+ * @param {number} numper The total number of payment periods in an annuity.
+ * @param {number} pvalue The present value, or the lump-sum amount that a series of future payments is worth right now.
+ * @param {number} [fvalue] Optional. The future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (the future value of a loan, for example, is 0).
+ * @param {number} [type] Optional. The number 0 or 1 and indicates when payments are due. If type is omitted, it is assumed to be 0.
+ * @returns {number} the interest payment for an investment for a given period or an error if the arguments are not formatted properly.
+ */
+function iPmt(intrate, period, numper, pvalue, fvalue = 0, type = 0) {
+    return openf.IPMT(intrate, period, numper, pvalue, fvalue, type);
+}
+exports.iPmt = iPmt;
+/**
+ * Returns the internal rate of return for a series of cash flows.
+ *
+ * Category: Financial
+ *
+ * @param {any[]} values An array or a reference to values that contain numbers for which you want to calculate the internal rate of return.
+ - Values must contain at least one positive value and one negative value to calculate the internal rate of return.
+ - IRR uses the order of values to interpret the order of cash flows. Be sure to enter your payment and income values in the sequence you want.
+ - If an array or reference argument contains text, logical values, or empty values, those values are ignored.
+ * @param {number} [guess] Optional. A number that you guess is close to the result of IRR.
+ - Microsoft Excel uses an iterative technique for calculating IRR. Starting with guess, IRR cycles through the calculation until the result is accurate within 0.00001 percent. If IRR can't find a result that works after 20 tries, the #NUM! error value is returned.
+ - In most cases you do not need to provide guess for the IRR calculation. If guess is omitted, it is assumed to be 0.1 (10 percent).
+ - If IRR gives the #NUM! error value, or if the result is not close to what you expected, try again with a different value for guess.
+ * @returns {number} the internal rate of return for a series of cash flows or an error if the arguments are incorrect.
+ */
+function irr(values, guess = 0.1) {
+    return openf.IRR(values, guess);
+}
+exports.irr = irr;
+/**
+ * Calculates the interest paid during a specific period of an investment.
+ *
+ * Category: Financial
+ *
+ * @param {number} intrate The interest rate for the investment.
+ * @param {number} period The period for which you want to find the interest, and must be between 1 and Nper.
+ * @param {number} numper The total number of payment periods for the investment.
+ * @param {number} pvalue The present value of the investment. For a loan, Pv is the loan amount.
+ *
+ * @returns {number} the interest paid during a specific period of an investment or an error if the arguments are incorrect.
+ */
+function isPmt(intrate, period, numper, pvalue) {
+    return openf.ISPMT(intrate, period, numper, pvalue);
+}
+exports.isPmt = isPmt;
+/**
+ * Returns the Macauley modified duration for a security with an assumed par value of $100.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} coupon The security's annual coupon rate.
+ * @param {*} yld The security's annual yield.
+ * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function mDuration() {
+    return openf.MDURATION();
+}
+exports.mDuration = mDuration;
+/**
+ * Returns the internal rate of return where positive and negative cash flows are financed at different rates.
+ *
+ * Category: Financial
+ *
+ * @param {any[]} values An array or a reference to values that contain numbers. These numbers represent a series of payments (negative values) and income (positive values) occurring at regular periods.
+ - Values must contain at least one positive value and one negative value to calculate the modified internal rate of return. Otherwise, MIRR returns the #DIV/0! error value.
+ - If an array or reference argument contains text, logical values, or empty values, those values are ignored; however, values with the value zero are included.
+ * @param {number} finance_intrate The interest rate you pay on the money used in the cash flows.
+ * @param {number} reinvest_intrate The interest rate you receive on the cash flows as you reinvest them.
+ * @returns {number} the internal rate of return where positive and negative cash flows are financed at different rates or an error when the arguments arent formatted properly.
+ */
+function mirr(values, finance_intrate, reinvest_intrate) {
+    return openf.MIRR(values, finance_intrate, reinvest_intrate);
+}
+exports.mirr = mirr;
+/**
+ * Returns the annual nominal interest rate.
+ *
+ * Category: Financial
+ *
+ * @param {number} effect_intrate The effective interest rate.
+ * @param {number} numpery The number of compounding periods per year.
+ * @returns {number} the annual nominal interest rate or an error if the arguments arent formatted properly
+ */
+function nominal(effect_intrate, numpery) {
+    return openf.NOMINAL(effect_intrate, numpery);
+}
+exports.nominal = nominal;
+/**
+ * Returns the number of periods for an investment.
+ *
+ * Category: Financial
+ *
+ * @param {number} intrate The interest rate per period.
+ * @param {number} payment The payment made each period; it cannot change over the life of the annuity. Typically, pmt contains principal and interest but no other fees or taxes.
+ * @param {number} pvalue The present value, or the lump-sum amount that a series of future payments is worth right now.
+ * @param {number} [fvalue] Optional. The future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (the future value of a loan, for example, is 0).
+ * @param {number} [type] Optional. The number 0 or 1 and indicates when payments are due.
+ * @returns {number} the number of periods for an invesment or an error if the arguments are not formatted properly.
+ */
+function nPer(intrate, payment, pvalue, fvalue = 0, type = 0) {
+    return openf.NPER(intrate, payment, pvalue, fvalue, type);
+}
+exports.nPer = nPer;
+/**
+ * Returns the net present value of an investment based on a series of periodic cash flows and a discount rate.
+ *
+ * Category: Financial
+ *
+ * @param {number} drate The rate of discount over the length of one period.
+ * @param {number[]} values value1, value2, ... Value1 is required, subsequent values are optional. 1 to 254 arguments representing the payments and income.
+ - value1, value2, ... must be equally spaced in time and occur at the end of each period.
+ - NPV uses the order of value1, value2, ... to interpret the order of cash flows. Be sure to enter your payment and income values in the correct sequence.
+ - Arguments that are empty values, logical values, or text representations of numbers, error values, or text that cannot be translated into numbers are ignored.
+ - If an argument is an array or reference, only numbers in that array or reference are counted. Empty values, logical values, text, or error values in the array or reference are ignored.
+ * @returns {number} net present value as a number or an error if the arguments dont match requirements.
+ */
+function npv(drate, ...values) {
+    return openf.NPV(drate, ...values);
+}
+exports.npv = npv;
+/**
+ * Returns the price per $100 face value of a security with an odd first period.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} issue The security's issue date.
+ * @param {*} first_coupon The security's first coupon date.
+ * @param {*} rate The security's interest rate.
+ * @param {*} yld The security's annual yield.
+ * @param {*} redemption The security's redemption value per $100 face value.
+ * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function oddFPrice() {
+    return openf.ODDFPRICE();
+}
+exports.oddFPrice = oddFPrice;
+/**
+ * Returns the yield of a security with an odd first period.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} issue The security's issue date.
+ * @param {*} first_coupon The security's first coupon date.
+ * @param {*} rate The security's interest rate.
+ * @param {*} pr The security's price.
+ * @param {*} redemption The security's redemption value per $100 face value.
+ * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function oddFYield() {
+    return openf.ODDFYIELD();
+}
+exports.oddFYield = oddFYield;
+/**
+ * Returns the price per $100 face value of a security with an odd last period.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} last_interest The security's last coupon date.
+ * @param {*} rate The security's interest rate.
+ * @param {*} yld The security's annual yield.
+ * @param {*} redemption The security's redemption value per $100 face value.
+ * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function oddLPrice() {
+    return openf.ODDLPRICE();
+}
+exports.oddLPrice = oddLPrice;
+/**
+ * Returns the yield of a security with an odd last period.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} last_interest The security's last coupon date.
+ * @param {*} rate The security's interest rate
+ * @param {*} pr The security's price.
+ * @param {*} redemption The security's redemption value per $100 face value.
+ * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function oddLYield() {
+    return openf.ODDLYIELD();
+}
+exports.oddLYield = oddLYield;
+/**
+ * Returns the number of periods required by an investment to reach a specified value.
+ *
+ * Category: Financial
+ *
+ * @param {number} intrate Rate is the interest rate per period.
+ * @param {number} pvalue Pv is the present value of the investment.
+ * @param {number} fvalue Fv is the desired future value of the investment.
+ * @returns {number} the number of periods required as a number or an error if arguments are not formatted properly.
+ */
+function pDuration(intrate, pvalue, fvalue) {
+    return openf.PDURATION(intrate, pvalue, fvalue);
+}
+exports.pDuration = pDuration;
+/**
+ * Returns the periodic payment for an annuity.
+ *
+ * Category: Financial
+ *
+ * @param {number} intrate The interest rate for the loan.
+ * @param {number} numper The total number of payments for the loan.
+ * @param {number} pvalue The present value, or the total amount that a series of future payments is worth now; also known as the principal.
+ * @param {number} [fvalue] Optional. The future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (zero), that is, the future value of a loan is 0.
+ * @param {number} [type] Optional. The number 0 (zero) or 1 and indicates when payments are due.
+ * @returns {number} the periodic payment for an annuity as a number or error if the arguments are not formatted properly.
+
+ */
+function pmt(intrate, numper, pvalue, fvalue = 0, type = 0) {
+    return openf.PMT(intrate, numper, pvalue, fvalue, type);
+}
+exports.pmt = pmt;
+/**
+ * Returns the payment on the principal for an investment for a given period.
+ *
+ * Category: Financial
+ *
+ * @param {number} intrate The interest rate per period.
+ * @param {number} period Specifies the period and must be in the range 1 to nper.
+ * @param {number} numper The total number of payment periods in an annuity.
+ * @param {number} pvalue The present value — the total amount that a series of future payments is worth now.
+ * @param {number} [fvalue] Optional. The future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (zero), that is, the future value of a loan is 0.
+ * @param {number} [type] Optional. The number 0 or 1 and indicates when payments are due.
+ * @returns {number} principal payment for investment over a specific period as a number, or an error if the arguments are not formated properly.
+ */
+function pPmt(intrate, period, numper, pvalue, fvalue = 0, type = 0) {
+    return openf.PPMT(intrate, period, numper, pvalue, fvalue, type);
+}
+exports.pPmt = pPmt;
+/**
+ * Returns the price per $100 face value of a security that pays periodic interest.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} rate The security's annual coupon rate.
+ * @param {*} yld The security's annual yield.
+ * @param {*} redemption The security's redemption value per $100 face value.
+ * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function price() {
+    return openf.PRICE();
+}
+exports.price = price;
+/**
+ * Returns the price per $100 face value of a discounted security.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} discount The security's discount rate.
+ * @param {*} redemption The security's redemption value per $100 face value.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function priceDisc() {
+    return openf.PRICEDISC();
+}
+exports.priceDisc = priceDisc;
+/**
+ * Returns the price per $100 face value of a security that pays interest at maturity.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} issue The security's issue date, expressed as a serial date number.
+ * @param {*} rate The security's interest rate at date of issue.
+ * @param {*} yld The security's annual yield.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function priceMat() {
+    return openf.PRICEMAT();
+}
+exports.priceMat = priceMat;
+/**
+ * Returns the present value of an investment.
+ *
+ * Category: Financial
+ *
+ * @param {number} intrate The interest rate per period. For example, if you obtain an automobile loan at a 10 percent annual interest rate and make monthly payments, your interest rate per month is 10%/12, or 0.83%. You would enter 10%/12, or 0.83%, or 0.0083, into the formula as the rate.
+ * @param {number} periods The total number of payment periods in an annuity. For example, if you get a four-year car loan and make monthly payments, your loan has 4*12 (or 48) periods. You would enter 48 into the formula for nper.
+ * @param {number} payment The payment made each period and cannot change over the life of the annuity. Typically, pmt includes principal and interest but no other fees or taxes. For example, the monthly payments on a $10,000, four-year car loan at 12 percent are $263.33. You would enter -263.33 into the formula as the pmt. If pmt is omitted, you must include the fv argument.
+ * @param {number} fvalue Optional. The future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (the future value of a loan, for example, is 0). For example, if you want to save $50,000 to pay for a special project in 18 years, then $50,000 is the future value. You could then make a conservative guess at an interest rate and determine how much you must save each month. If fv is omitted, you must include the pmt argument.
+ * @param {number} [type] Optional. The number 0 or 1 and indicates when payments are due.
+ * @returns {number} present value of an investment or an error if arguments are not formatted properly.
+ */
+function pv(intrate, periods, payment, fvalue = 0, type = 0) {
+    return openf.PV(intrate, periods, payment, fvalue, type);
+}
+exports.pv = pv;
+/**
+ * Returns the interest rate per period of an annuity.
+ *
+ * Category: Financial
+ *
+ * @param {number} periods The total number of payment periods in an annuity.
+ * @param {number} payment The payment made each period and cannot change over the life of the annuity. Typically, pmt includes principal and interest but no other fees or taxes. If pmt is omitted, you must include the fv argument.
+ * @param {number} pvalue The present value — the total amount that a series of future payments is worth now.
+ * @param {number} [fvalue] Optional. The future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (the future value of a loan, for example, is 0). If fv is omitted, you must include the pmt argument.
+ * @param {number} [type] Optional. The number 0 or 1 and indicates when payments are due.
+ * @param {number} [guess] Optional. Your guess for what the rate will be. If you omit guess, it is assumed to be 10 percent. If RATE does not converge, try different values for guess. RATE usually converges if guess is between 0 and 1.
+ - If you omit guess, it is assumed to be 10 percent.
+ - If RATE does not converge, try different values for guess. RATE usually converges if guess is between 0 and 1.
+ * @returns {number} the interest rate per period of an annuity or an error if the arguments arent formatted properly.
+ */
+function rate(periods, payment, pvalue, fvalue = 0, paytype = 0, guess = 0.01) {
+    return openf.RATE(periods, payment, pvalue, fvalue, paytype, guess);
+}
+exports.rate = rate;
+/**
+ * Returns the amount received at maturity for a fully invested security.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} investment The amount invested in the security.
+ * @param {*} discount The security's discount rate.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function received() {
+    return openf.RECEIVED();
+}
+exports.received = received;
+/**
+ * Returns an equivalent interest rate for the growth of an investment.
+ *
+ * Category: Financial
+ *
+ * @param {number} periods The number of periods for the investment.
+ * @param {number} pvalue The present value of the investment.
+ * @param {number} fvalue The future value of the investment.
+ * @returns {number} an equivalent interestrate for growth of an investment or an error if arguments are not formatted properly.
+ */
+function rri(periods, pvalue, fvalue) {
+    return openf.RRI(periods, pvalue, fvalue);
+}
+exports.rri = rri;
+/**
+ * Returns the straight-line depreciation of an asset for one period.
+ *
+ * Category: Financial
+ *
+ * @param {number} initcost The initial cost of the asset.
+ * @param {number} salvageval The value at the end of the depreciation (sometimes called the salvage value of the asset).
+ * @param {number} uselife The number of periods over which the asset is depreciated (sometimes called the useful life of the asset).
+ * @returns {number} returns the straightline depreciation of an asset for 1 period or error if arguments are not formatted properly.
+ */
+function sln(initcost, salvageval, uselife) {
+    return openf.SLN(initcost, salvageval, uselife);
+}
+exports.sln = sln;
+/**
+ * Returns the sum-of-years' digits depreciation of an asset for a specified period.
+ *
+ * Category: Financial
+ *
+ * @param {number} initcost The initial cost of the asset.
+ * @param {number} salvageval The value at the end of the depreciation (sometimes called the salvage value of the asset).
+ * @param {number} uselife The number of periods over which the asset is depreciated (sometimes called the useful life of the asset).
+ * @param {number} periods The period and must use the same units as life.
+ * @returns {number} the sum-of-years' digits depreciation of an asset for a specified period or an error if arguments are not formatted properly.
+ */
+function syd(initcost, salvageval, uselife, periods) {
+    return openf.SYD(initcost, salvageval, uselife, periods);
+}
+exports.syd = syd;
+/**
+ * Returns the bond-equivalent yield for a Treasury bill.
+ *
+ * Category: Financial
+ *
+ * @param {Date|number|string} settlement_date The Treasury bill's settlement date. The security settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
+ * @param {Date|number|string} maturity_date The Treasury bill's maturity date. The maturity date is the date when the Treasury bill expires.
+ * @param {number} discount_rate The Treasury bill's discount rate.
+ * @returns {number} Returns the bond-equivalent yield for a Treasury bill or an error if the arguments are not formatted properly.
+ */
+function tbillEq(settlement_date, maturity_date, discount_rate) {
+    return openf.TBILLEQ(settlement_date, maturity_date, discount_rate);
+}
+exports.tbillEq = tbillEq;
+/**
+ * Returns the price per $100 face value for a Treasury bill.
+ *
+ * Category: Financial
+ *
+ * @param {Date|number|string} settlement_date The Treasury bill's settlement date. The security settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
+ * @param {Date|number|string} maturity_date The Treasury bill's maturity date. The maturity date is the date when the Treasury bill expires.
+ * @param {number} discount_rate The Treasury bill's discount rate.
+ * @returns {number} returns the price per $100 facec value for a treasury bill or an error if the arguments arent formatted properly.
+ */
+function tbillPrice(settlement_date, maturity_date, discount_rate) {
+    return openf.TBILLPRICE(settlement_date, maturity_date, discount_rate);
+}
+exports.tbillPrice = tbillPrice;
+/**
+ * Returns the yield for a Treasury bill.
+ *
+ * Category: Financial
+ *
+ * @param {Date|number|string} settlement_date The Treasury bill's settlement date. The security settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
+ * @param {Date|number|string} maturity_date The Treasury bill's maturity date. The maturity date is the date when the Treasury bill expires.
+ * @param {number} price The Treasury bill's price per $100 face value.
+ * @returns {number} the yield for a treasury bill or an error if the arguments are not formated properly
+ */
+function tbillYield(settlement_date, maturity_date, price) {
+    return openf.TBILLYIELD(settlement_date, maturity_date, price);
+}
+exports.tbillYield = tbillYield;
+/**
+ * Returns the depreciation of an asset for a specified or partial period by using a declining balance method.
+ *
+ * Category: Financial
+ *
+ * @param {*} cost The initial cost of the asset.
+ * @param {*} salvage The value at the end of the depreciation (sometimes called the salvage value of the asset). This value can be 0.
+ * @param {*} life The number of periods over which the asset is depreciated (sometimes called the useful life of the asset).
+ * @param {*} start_period The starting period for which you want to calculate the depreciation. Start_period must use the same units as life.
+ * @param {*} end_period The ending period for which you want to calculate the depreciation. End_period must use the same units as life.
+ * @param {*} factor Optional. The rate at which the balance declines. If factor is omitted, it is assumed to be 2 (the double-declining balance method). Change factor if you do not want to use the double-declining balance method. For a description of the double-declining balance method, see DDB.
+ * @param {*} no_switch Optional. A logical value specifying whether to switch to straight-line depreciation when depreciation is greater than the declining balance calculation.
+ - If no_switch is TRUE, Microsoft Excel does not switch to straight-line depreciation even when the depreciation is greater than the declining balance calculation.
+ - If no_switch is FALSE or omitted, Excel switches to straight-line depreciation when depreciation is greater than the declining balance calculation.
+ * @returns (TBD)
+ */
+function vdb() {
+    return openf.VDB();
+}
+exports.vdb = vdb;
+/**
+ * Returns the internal rate of return for a schedule of cash flows that is not necessarily periodic.
+ *
+ * Category: Financial
+ *
+ * @param {number[]} cash_flows A series of cash flows that corresponds to a schedule of payments in dates. The first payment is optional and corresponds to a cost or payment that occurs at the beginning of the investment. If the first value is a cost or payment, it must be a negative value. All succeeding payments are discounted based on a 365-day year. The series of values must contain at least one positive and one negative value.
+ * @param {Date[]|number[]|string[]} paydates A schedule of payment dates that corresponds to the cash flow payments. Dates may occur in any order. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text. .
+ * @param {number} [guess] Optional. A number that you guess is close to the result of XIRR.
+ * @returns {number} internal rate of return as a number or an error if the arguments are not formatted properly.
+ */
+function xirr(cash_flows, paydates, guess = 0.1) {
+    return openf.XIRR(cash_flows, paydates, guess);
+}
+exports.xirr = xirr;
+/**
+ * Returns the net present value for a schedule of cash flows that is not necessarily periodic.
+ *
+ * Category: Financial
+ *
+ * @param {number} disrate The discount rate to apply to the cash flows.
+ * @param {number[]} cash_flows A series of cash flows that corresponds to a schedule of payments in dates. The first payment is optional and corresponds to a cost or payment that occurs at the beginning of the investment. If the first value is a cost or payment, it must be a negative value. All succeeding payments are discounted based on a 365-day year. The series of values must contain at least one positive value and one negative value.
+ * @param {Date[]|number[]|string[]} paydates A schedule of payment dates that corresponds to the cash flow payments. The first payment date indicates the beginning of the schedule of payments. All other dates must be later than this date, but they may occur in any order.
+ * @returns {number} net present value for a schedule of cash flows or an error if the arguments are not formated properly.
+ */
+function xnpv(disrate, cash_flows, paydates) {
+    return openf.XNPV(disrate, cash_flows, paydates);
+}
+exports.xnpv = xnpv;
+/**
+ * Returns the yield on a security that pays periodic interest.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} rate The security's annual coupon rate.
+ * @param {*} pr The security's price per $100 face value.
+ * @param {*} redemption The security's redemption value per $100 face value.
+ * @param {*} frequency The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function Yield() {
+    return openf.YIELD();
+}
+exports.Yield = Yield;
+/**
+ * Returns the annual yield for a discounted security; for example, a Treasury bill.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} pr The security's price per $100 face value.
+ * @param {*} redemption The security's redemption value per $100 face value.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function yieldDisc() {
+    return openf.YIELDDISC();
+}
+exports.yieldDisc = yieldDisc;
+/**
+ * Returns the annual yield of a security that pays interest at maturity.
+ *
+ * Category: Financial
+ *
+ * @param {*} settlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
+ * @param {*} maturity The security's maturity date. The maturity date is the date when the security expires.
+ * @param {*} issue The security's issue date, expressed as a serial date number.
+ * @param {*} rate The security's interest rate at date of issue.
+ * @param {*} pr The security's price per $100 face value.
+ * @param {*} basis Optional. The type of day count basis to use.
+ * @returns (TBD)
+ * @TODO this needs to be implemented.
+ */
+function yieldMat() {
+    return openf.YIELDMAT();
+}
+exports.yieldMat = yieldMat;
+//-----------------------------
+// Notes @functions financial
+//-----------------------------
+// Notes @Commands financial
+//# sourceMappingURL=financial.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/folder.js.html b/javadoc/folder.js.html new file mode 100644 index 00000000..fb150340 --- /dev/null +++ b/javadoc/folder.js.html @@ -0,0 +1,107 @@ +Source: folder.js
On this page

folder.js

"use strict";
+/**
+ * @file Folder
+ * @module folder
+ * @category Folder
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.folderRename = exports.folderProperties = exports.folderMove = exports.folderExpandWithChildren = exports.folderExpandAll = exports.folderExpand = exports.folderDocuments = exports.folderCustomize = exports.folderCollapse = exports.folder = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesc = tslib_1.__importStar(require("../notes/folder"));
+exports._notes = notesc;
+/**
+ * Moves or copies the selected document to a folder.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FOLDER_COMMAND.html|www.hcltechsw.com }
+ */
+function folder() {
+    return notesc.Folder();
+}
+exports.folder = folder;
+/**
+ * For a folder or view containing nested folders or views, collapses the selected
+ * folder or view in the navigation pane.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FOLDERCOLLAPSE.html|www.hcltechsw.com }
+ */
+function folderCollapse() {
+    return notesc.FolderCollapse();
+}
+exports.folderCollapse = folderCollapse;
+/**
+ * Displays the design pane for the currently selected view or folder.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FOLDERCUSTOMIZE.html|www.hcltechsw.com }
+ */
+function folderCustomize() {
+    return notesc.FolderCustomize();
+}
+exports.folderCustomize = folderCustomize;
+/**
+ * Moves or copies the selected document to a folder.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FOLDERDOCUMENTS_COMMAND.html|www.hcltechsw.com }
+ */
+function folderDocuments() {
+    return notesc.FolderDocuments();
+}
+exports.folderDocuments = folderDocuments;
+/**
+ * Expands the currently selected view or folder one level in the navigation pane.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FOLDEREXPAND.html|www.hcltechsw.com }
+ */
+function folderExpand() {
+    return notesc.FolderExpand();
+}
+exports.folderExpand = folderExpand;
+/**
+ * Fully expands all views and folders in the navigation pane.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FOLDEREXPANDALL.html|www.hcltechsw.com }
+ */
+function folderExpandAll() {
+    return notesc.FolderExpandAll();
+}
+exports.folderExpandAll = folderExpandAll;
+/**
+ * Fully expands the selected view or folder in the navigation pane.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FOLDEREXPANDWITHCHILDREN.html|www.hcltechsw.com }
+ */
+function folderExpandWithChildren() {
+    return notesc.FolderExpandWithChildren();
+}
+exports.folderExpandWithChildren = folderExpandWithChildren;
+/**
+ * Displays the Move dialog box for a view or folder, which allows you to move the
+ * selected view or folder.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FOLDERMOVE.html|www.hcltechsw.com }
+ */
+function folderMove() {
+    return notesc.FolderMove();
+}
+exports.folderMove = folderMove;
+/**
+ * Displays the Properties box for a view or folder.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FOLDERPROPERTIES.html|www.hcltechsw.com }
+ */
+function folderProperties() {
+    return notesc.FolderProperties();
+}
+exports.folderProperties = folderProperties;
+/**
+ * Displays the Rename dialog box, which allows you to rename the selected folder
+ * or view.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FOLDERRENAME.html|www.hcltechsw.com }
+ */
+function folderRename() {
+    return notesc.FolderRename();
+}
+exports.folderRename = folderRename;
+//# sourceMappingURL=folder.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/fonts/Inconsolata-Regular.ttf b/javadoc/fonts/Inconsolata-Regular.ttf new file mode 100644 index 00000000..457d262c Binary files /dev/null and b/javadoc/fonts/Inconsolata-Regular.ttf differ diff --git a/javadoc/fonts/OpenSans-Regular.ttf b/javadoc/fonts/OpenSans-Regular.ttf new file mode 100644 index 00000000..e21ff5f1 Binary files /dev/null and b/javadoc/fonts/OpenSans-Regular.ttf differ diff --git a/javadoc/fonts/WorkSans-Bold.ttf b/javadoc/fonts/WorkSans-Bold.ttf new file mode 100644 index 00000000..0caaf4d4 Binary files /dev/null and b/javadoc/fonts/WorkSans-Bold.ttf differ diff --git a/javadoc/formula.js.html b/javadoc/formula.js.html new file mode 100644 index 00000000..48e73d8b --- /dev/null +++ b/javadoc/formula.js.html @@ -0,0 +1,96 @@ +Source: formula.js
On this page

formula.js

"use strict";
+/**
+ * @file formula
+ * @module formula
+ * @category Formula
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.updateFormulaContext = exports.set = exports.isValid = exports.Eval = exports.checkFormulaSyntax = exports.command = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesf_base = tslib_1.__importStar(require("../notes/formula"));
+const notesf = () => notesf_base;
+exports._notes = notesf_base;
+//-----------------------------
+// Notes @functions Formula
+/**
+ * Executes a Notes/Domino command. Most of the standard menu commands can be
+ * executed using @Command. In addition, a number of specialized commands are
+ * available. In a formula, any command invoked using &#64;Command runs in the
+ * order you specify in the formula. This means that any changes made by the
+ * command, such as inserting text into a field, affect the rest of the formula
+ * (see exceptions).
+ *
+ * In the context of RosettaJS, the @Command is a Notes @Formula function that
+ * does not exist in the functions of the Notes @Formula language but rather an
+ * @Command command itself that accepts the command name to execute as its first
+ * argument and the accompanying command parameters as arguments 2 through n.
+ * Commands in the Notes Formula for the most part interact with specific items on the page,
+ * and thus expect these to exist in the context when the command is executed.
+ *
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_COMMAND.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function command() {
+    return notesf().Command();
+}
+exports.command = command;
+/**
+ * Checks a block of commented out formula language code for errors.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CHECKFORMULASYNTAX.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function checkFormulaSyntax() {
+    return notesf().CheckFormulaSyntax();
+}
+exports.checkFormulaSyntax = checkFormulaSyntax;
+/**
+ * At run-time, compiles and runs each element in a text expression as a formula.
+ * Returns the result of the last formula expression in the list or an error if an
+ * error is generated by any of the formula expressions in the list.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EVAL.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function Eval() {
+    return notesf().Eval();
+}
+exports.Eval = Eval;
+/**
+ * Executes all validation formulas within the current form.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISVALID.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function isValid() {
+    return notesf().IsValid();
+}
+exports.isValid = isValid;
+/**
+ * Assigns a value to a temporary variable for use within a formula.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SET.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function set() {
+    return notesf().Set();
+}
+exports.set = set;
+/**
+ * Updates the context of a formula to the Notes® client window currently being
+ * accessed by the code. For example, if the code accesses a new form called
+ * "Response" by using @Command([Compose]:"Response", &#64;UpdateFormulaContext
+ * switches the context of the formula to this new form. Any subsequent functions in
+ * the code execute in the context of the Response document, not the current document.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_UPDATEFORMULACONTEXT.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function updateFormulaContext() {
+    return notesf().UpdateFormulaContext();
+}
+exports.updateFormulaContext = updateFormulaContext;
+//# sourceMappingURL=formula.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/help.js.html b/javadoc/help.js.html new file mode 100644 index 00000000..855bf6a4 --- /dev/null +++ b/javadoc/help.js.html @@ -0,0 +1,48 @@ +Source: help.js
On this page

help.js

"use strict";
+/**
+ * @file Help
+ * @module help
+ * @category Help
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.helpUsingDatabase = exports.helpAboutNotes = exports.helpAboutDatabase = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesc = tslib_1.__importStar(require("../notes/help"));
+exports._notes = notesc;
+//-----------------------------
+// Notes @Commands help
+/**
+ * Displays the About This Database or database policy document for the current
+ * database (which typically explains the purpose of the application, as well as
+ * its intended audience).
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_HELPABOUTDATABASE.html|www.hcltechsw.com }
+ */
+function helpAboutDatabase() {
+    return notesc.HelpAboutDatabase();
+}
+exports.helpAboutDatabase = helpAboutDatabase;
+/**
+ * Displays the Notes® splash screen that appears when you launch Notes/Domino. The
+ * screen displays the current release number and date.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_HELPABOUTNOTES.html|www.hcltechsw.com }
+ */
+function helpAboutNotes() {
+    return notesc.HelpAboutNotes();
+}
+exports.helpAboutNotes = helpAboutNotes;
+/**
+ * Displays the Using This Database document for the current database. The Using
+ * This Database document typically provides pointers on how to use an
+ * application's forms and views.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_HELPUSINGDATABASE.html|www.hcltechsw.com }
+ */
+function helpUsingDatabase() {
+    return notesc.HelpUsingDatabase();
+}
+exports.helpUsingDatabase = helpUsingDatabase;
+//# sourceMappingURL=help.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/index.html b/javadoc/index.html new file mode 100644 index 00000000..39c3d6e9 --- /dev/null +++ b/javadoc/index.html @@ -0,0 +1,3 @@ +Home
On this page
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/information.js.html b/javadoc/information.js.html new file mode 100644 index 00000000..20ab4b47 --- /dev/null +++ b/javadoc/information.js.html @@ -0,0 +1,478 @@ +Source: information.js
On this page

information.js

"use strict";
+/**
+ * @file Information
+ * @module information
+ * @category Information
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.notesError = exports.templateVersion = exports.serverAccess = exports.isVirtualizedDirectory = exports.isUsingJavaElement = exports.isModalHelp = exports.isInCompositeApp = exports.isEmbeddedInsideWCT = exports.isAppInstalled = exports.getAddressBooks = exports.fontList = exports.configFile = exports.thisValue = exports.thisName = exports.soundex = exports.regQueryValue = exports.ldapServer = exports.languagePreference = exports.clientType = exports.browserInfo = exports.sheets = exports.sheet = exports.isRef = exports.isFormula = exports.info = exports.cell = exports.type = exports.na = exports.n = exports.isText = exports.isOdd = exports.isNumber = exports.isNonText = exports.isNA = exports.isLogical = exports.isEven = exports.isError = exports.isErr = exports.isBinary = exports.isBlank = exports.errorType = exports.error = exports._notes = exports._openFormula = void 0;
+const tslib_1 = require("tslib");
+const openf = tslib_1.__importStar(require("../openformula/information"));
+exports._openFormula = openf;
+const notesf = tslib_1.__importStar(require("../notes/information"));
+const API = tslib_1.__importStar(require("../rosetta/API"));
+exports._notes = notesf;
+//-----------------------------
+// Open Formula information
+// TODO: This does not match openformula implementation
+function error() {
+    return openf.ERROR();
+}
+exports.error = error;
+error.type = (error_val) => {
+    return openf.ERROR.TYPE(error_val);
+};
+exports.errorType = error.type;
+/**
+ * Returns TRUE if the value is blank.
+ *
+ * Category: Information
+ *
+ * @param {*} value The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.
+ * @returns {boolean} if the value is null.
+ * @example ISBLANK(null) // returns true.
+ */
+function isBlank(value) {
+    return openf.ISBLANK(value);
+}
+exports.isBlank = isBlank;
+/**
+ * Formula.js only
+ *
+ * @param {string} number the expression to be evaluated.
+ * @returns {boolean} true if number is a binary string, false if not.
+ * @example ISBINARY('0101101') // returns true.
+ */
+function isBinary(number) {
+    return openf.ISBINARY(number);
+}
+exports.isBinary = isBinary;
+/**
+ * Returns TRUE if the value is any error value except #N/A.
+ *
+ * Category: Information
+ *
+ * @param {*} value The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.
+ * @returns (TBD)
+ */
+function isErr(value) {
+    return openf.ISERR(value);
+}
+exports.isErr = isErr;
+/**
+ * Returns TRUE if the value is any error value.
+ *
+ * Category: Information
+ *
+ * @param {*} value The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.
+ * @returns {boolean}
+ */
+function isError(value) {
+    return API.isDefaultOpenFormula() ? exports._openFormula.ISERROR(value) : exports._notes.IsError(value);
+}
+exports.isError = isError;
+/**
+ * Returns TRUE if the number is even.
+ *
+ * Category: Information
+ *
+ * @param {number} number The value to test. If number is not an integer, it is truncated.
+ * @returns {number} true if a number is even and false if it is not
+ * @example ISEVEN(-3); // returns false.
+ * @example ISEVEN(2); // returns true.
+ */
+function isEven(number) {
+    return openf.ISEVEN(number);
+}
+exports.isEven = isEven;
+/**
+ * Returns TRUE if the value is a logical value.
+ *
+ * Category: Information
+ *
+ * @param {*} value The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.
+ * @returns {boolean} true if the value is true, and false if the value is false or 0.
+ * @example ISLOGICAL(true); // returns true.
+ * @example ISLOGICAL(0); // returns false.
+ */
+function isLogical(value) {
+    return openf.ISLOGICAL(value);
+}
+exports.isLogical = isLogical;
+/**
+ * Returns TRUE if the value is the #N/A error value.
+ *
+ * Category: Information
+ *
+ * @param {*} value The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.
+ * @returns {boolean} returns true if the value being evaluated is equal to error.na, false if not;
+ * @example ISNA(error.na); // returns true.
+ * @example ISNA(1); // returns false.
+ */
+function isNA(value) {
+    return openf.ISNA(value);
+}
+exports.isNA = isNA;
+/**
+ * Returns TRUE if the value is not text.
+ *
+ * Category: Information
+ *
+ * @param {*} value The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.
+ * @returns {boolean} true if value is not a string, false if it is.
+ * @example ISNONTEXT(1); // returns true.
+ * @example ISNONTEXT('string'); // returns false.
+ */
+function isNonText(value) {
+    return openf.ISNONTEXT(value);
+}
+exports.isNonText = isNonText;
+/**
+ * Returns TRUE if the value is a number.
+ *
+ * Category: Information
+ *
+ * @param {*} value The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.
+ * @returns {boolean} true if value is a number, false if not
+ */
+function isNumber(value) {
+    return openf.ISNUMBER(value);
+}
+exports.isNumber = isNumber;
+/**
+ * Returns TRUE if the number is odd.
+ *
+ * Category: Information
+ *
+ * @param {number} value The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.
+ * @returns {boolean} true if the value is an odd number, false if not.
+ * @example ISODD(1); // returns true.
+ * @example ISODD('string'); // returns false.
+ * @example ISODD(2.5); // returns false.
+ */
+function isOdd(value) {
+    return openf.ISODD(value);
+}
+exports.isOdd = isOdd;
+/**
+ * Returns TRUE if the value is text.
+ *
+ * Category: Information
+ *
+ * @param {*} value The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.
+ * @returns {boolean} returns true if value has type string, false if not.
+ */
+function isText(value) {
+    return openf.ISTEXT(value);
+}
+exports.isText = isText;
+/**
+ * Returns a value converted to a number.
+ *
+ * Category: Information
+ *
+ * @param {*} value The value you want converted. N converts values listed in the following table.
+ * @returns {number | Error} value if it is a number, value.getTime if it is an instance of Date, 1 if true, 0 if false, otherwise it returns an error.
+ */
+function n(value) {
+    return openf.N(value);
+}
+exports.n = n;
+/**
+ * Returns the error value #N/A.
+ *
+ * Category: Information
+ *
+ * @returns {error} error.na
+ */
+function na() {
+    return openf.NA();
+}
+exports.na = na;
+/**
+ * Returns a number indicating the data type of a value.
+ *
+ * Category: Information
+ *
+ * @param {*} value Can be any Microsoft Excel value, such as a number, text, logical value, and so on.
+ * @returns {number | undefined} 1 if value is a number, 2 if value is text, 4 if value isLogical, 16 if value is an array, 64 if value is an error/
+ */
+function type(value) {
+    return openf.TYPE(value);
+}
+exports.type = type;
+/**
+ * Returns information about the formatting, location, or contents of a value.
+ * Category: Information
+ * @returns (TBD)
+ */
+function cell() {
+    return openf.CELL();
+}
+exports.cell = cell;
+/**
+ * Returns information about the current operating environment.
+ * Category: Information
+ * @returns (TBD)
+ */
+function info() {
+    return openf.INFO();
+}
+exports.info = info;
+/**
+ * Returns TRUE if there is a reference to a value that contains a formula.
+ * Category: Information
+ * @param {*} reference Reference is a reference to the value you want to test. Reference can be a value reference, a formula, or a name that refers to a value.
+ * @returns (TBD)
+ */
+function isFormula() {
+    return openf.ISFORMULA();
+}
+exports.isFormula = isFormula;
+/**
+ * Returns TRUE if the value is a reference.
+ * Category: Information
+ * @param {*} value The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.
+ * @returns (TBD)
+ */
+function isRef() {
+    return openf.ISREF();
+}
+exports.isRef = isRef;
+/**
+ * Returns the sheet number of the referenced sheet.
+ * Category: Information
+ * @param {*} value Optional. Value is the name of a sheet or a reference for which you want the sheet number. If value is omitted, SHEET returns the number of the sheet that contains the function.
+ * @returns (TBD)
+ */
+function sheet() {
+    return openf.SHEET();
+}
+exports.sheet = sheet;
+/**
+ * Returns the number of sheets in a reference.
+ * Category: Information
+ * @param {*} reference Optional. Reference is a reference for which you want to know the number of sheets it contains. If Reference is omitted, SHEETS returns the number of sheets in the workbook that contains the function.
+ * @returns (TBD)
+ */
+function sheets() {
+    return openf.SHEETS();
+}
+exports.sheets = sheets;
+//-----------------------------
+// Notes @functions information
+/**
+ * Determines the capabilities of a Web client, that is you can determine the
+ * properties of the browser for the current request.
+ * @throws {Error} method not implemented
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_BROWSERINFO_8997.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function browserInfo() {
+    return notesf.BrowserInfo();
+}
+exports.browserInfo = browserInfo;
+/**
+ * Returns a text string to differentiate Notes® clients and World Wide Web browsers.
+ * @throws {Error} method not implemented
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_CLIENTTYPE_FUNCTION.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function clientType() {
+    return notesf.ClientType();
+}
+exports.clientType = clientType;
+/**
+ * Returns 1 (True) if the value is an &#64;ERROR value, returns 0 (False) if not
+ * an error.
+ * @throws {Error} method not implemented
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_ISERROR.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+//export function isError ():boolean {   //dup
+//  return notesf.IsError();
+//};
+/**
+ * Returns user's specified preferred language setting.
+ * @throws {Error} method not implemented
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_LANGUAGEPREFERENCE_FORMULA.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function languagePreference() {
+    return notesf.LanguagePreference();
+}
+exports.languagePreference = languagePreference;
+/**
+ * Returns the URL and port number of the LDAP listener in the current domain.
+ * Notes® looks for this information in several places, following this search
+ * sequence:
+ * 1. Searches on the current server.
+ * 2. Searches for the notes.ini variable labeled LDAPSERVER=.
+ * 3. Queries the administration server, which runs the LDAP service automatically, by default.
+ * @throws {Error} method not implemented
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_LDAPSERVER_FUNCTION.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function ldapServer() {
+    return notesf.LDAPServer();
+}
+exports.ldapServer = ldapServer;
+/**
+ * Copies the administration execution control list from a specified Address Book
+ * and name to your personal workstation ECL.
+ * @throws {Error} no plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_REGQUERYVALUE_FUNCTION.html|www.hcltechsw.com }
+ */
+function regQueryValue() {
+    return notesf.RegQueryValue();
+}
+exports.regQueryValue = regQueryValue;
+/**
+ * Returns the Soundex (the Notes® phonetic speller) code for the specified string.
+ * @throws {Error} method not implemented
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_SOUNDEX.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function soundex() {
+    return notesf.Soundex();
+}
+exports.soundex = soundex;
+/**
+ * Returns the name of the current field.
+ * @throws {Error} method not implemented
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_THISNAME.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function thisName() {
+    return notesf.ThisName();
+}
+exports.thisName = thisName;
+/**
+ * Returns the value of the current field.
+ * @throws {Error} method not implemented
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_THISVALUE.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function thisValue() {
+    return notesf.ThisValue();
+}
+exports.thisValue = thisValue;
+/**
+ * Returns the file path for the initialization file for Notes® (notes.ini).
+ * @throws {Error} no plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_CONFIGFILE_FUNCTION.html|www.hcltechsw.com }
+ */
+function configFile() {
+    return notesf.ConfigFile();
+}
+exports.configFile = configFile;
+/**
+ * Provides a list of available fonts on the Notes® client where this &#64;function
+ * is executed.
+ * @throws {Error} no plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_FONTLIST_1948.html|www.hcltechsw.com }
+ */
+function fontList() {
+    return notesf.FontList();
+}
+exports.fontList = fontList;
+/**
+ * Returns a list of the address books associated with a client (if the current
+ * database is local) or server.
+ * @throws {Error} no plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_GETADDRESSBOOKS.html|www.hcltechsw.com }
+ */
+function getAddressBooks() {
+    return notesf.GetAddressBooks();
+}
+exports.getAddressBooks = getAddressBooks;
+/**
+ * Indicates whether the specified type of application is installed.
+ * @throws {Error} no plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_ISAPPINSTALLED_FUNCTION.html|www.hcltechsw.com }
+ */
+function isAppInstalled() {
+    return notesf.IsAppInstalled();
+}
+exports.isAppInstalled = isAppInstalled;
+/**
+ * Indicates whether any part of the current Notes® session is embedded inside of
+ * Workplace client.
+ * @throws {Error} no plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_ISEMBEDDEDINSIDEWCT.html|www.hcltechsw.com }
+ */
+function isEmbeddedInsideWCT() {
+    return notesf.IsEmbeddedInsideWCT();
+}
+exports.isEmbeddedInsideWCT = isEmbeddedInsideWCT;
+/**
+ * Indicates whether the component is running within a composite application.
+ * @throws {Error} no plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_ISINCOMPOSITEAPP.html|www.hcltechsw.com }
+ */
+function isInCompositeApp() {
+    return notesf.IsInCompositeApp();
+}
+exports.isInCompositeApp = isInCompositeApp;
+/**
+ * Indicates whether the current document is a modal Help document.
+ * @throws {Error} no plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_ISMODALHELP.html|www.hcltechsw.com }
+ */
+function isModalHelp() {
+    return notesf.IsModalHelp();
+}
+exports.isModalHelp = isModalHelp;
+/**
+ * Indicates whether a view or outline uses the Java™ user interface.
+ * @throws {Error} no plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_ISUSINGJAVAELEMENT.html|www.hcltechsw.com }
+ */
+function isUsingJavaElement() {
+    return notesf.IsUsingJavaElement();
+}
+exports.isUsingJavaElement = isUsingJavaElement;
+/**
+ * Indicates whether virtualized directories are enabled for the current server.
+ * @throws {Error} no plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_ISVIRTUALIZEDDIRECTORY.html|www.hcltechsw.com }
+ */
+function isVirtualizedDirectory() {
+    return notesf.IsVirtualizedDirectory();
+}
+exports.isVirtualizedDirectory = isVirtualizedDirectory;
+/**
+ * Checks if a specified user has a specified administrative access level to a
+ * server.
+ * @throws {Error} no plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_SERVERACCESS.html|www.hcltechsw.com }
+ */
+function serverAccess() {
+    return notesf.ServerAccess();
+}
+exports.serverAccess = serverAccess;
+/**
+ * Returns the version number of the master template upon which the
+ *     database design is based.
+
+ * @throws {Error} no plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_TEMPLATEVERSION.html|www.hcltechsw.com }
+ */
+function templateVersion() {
+    return notesf.TemplateVersion();
+}
+exports.templateVersion = templateVersion;
+/**
+ * Allows you to generate an error condition within an expression. This is useful
+ * if you want to evaluate the current values in several fields and need to know if
+ * an error has occurred in the entry of any of them.
+ * @throws {Error} Notes Error
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_ERROR.html|www.hcltechsw.com }
+ */
+function notesError() {
+    return notesf.NotesError();
+}
+exports.notesError = notesError;
+//# sourceMappingURL=information.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/layout.js.html b/javadoc/layout.js.html new file mode 100644 index 00000000..fee2803d --- /dev/null +++ b/javadoc/layout.js.html @@ -0,0 +1,70 @@ +Source: layout.js
On this page

layout.js

"use strict";
+/**
+ * @file Layout
+ * @module layout
+ * @category Layout
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.layoutProperties = exports.layoutElementSendToBack = exports.layoutElementProperties = exports.layoutElementBringToFront = exports.layoutAddText = exports.layoutAddGraphic = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesc = tslib_1.__importStar(require("../notes/layout"));
+exports._notes = notesc;
+/**
+ * Adds a graphic from the Clipboard to a layout region.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_LAYOUTADDGRAPHIC.html|www.hcltechsw.com }
+ */
+function layoutAddGraphic() {
+    return notesc.LayoutAddGraphic();
+}
+exports.layoutAddGraphic = layoutAddGraphic;
+/**
+ * Creates a static text box in a layout region.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_LAYOUTADDTEXT.html|www.hcltechsw.com }
+ */
+function layoutAddText() {
+    return notesc.LayoutAddText();
+}
+exports.layoutAddText = layoutAddText;
+/**
+ * Brings the selected layout element to the front, which means it overlays any
+ * other layout elements that overlap it.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_LAYOUTELEMENTBRINGTOFRONT.html|www.hcltechsw.com }
+ */
+function layoutElementBringToFront() {
+    return notesc.LayoutElementBringToFront();
+}
+exports.layoutElementBringToFront = layoutElementBringToFront;
+/**
+ * Displays the Properties box for the currently selected layout element.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_LAYOUTELEMENTPROPERTIES.html|www.hcltechsw.com }
+ */
+function layoutElementProperties() {
+    return notesc.LayoutElementProperties();
+}
+exports.layoutElementProperties = layoutElementProperties;
+/**
+ * Sends the selected layout element to the back, which means it displays
+ * underneath any other layout elements that overlap it.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_LAYOUTELEMENTSENDTOBACK.html|www.hcltechsw.com }
+ */
+function layoutElementSendToBack() {
+    return notesc.LayoutElementSendToBack();
+}
+exports.layoutElementSendToBack = layoutElementSendToBack;
+/**
+ * Displays the Properties box for the currently selected layout region.
+ * @throws {Error} No plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_LAYOUTPROPERTIES.html|www.hcltechsw.com }
+ */
+function layoutProperties() {
+    return notesc.LayoutProperties();
+}
+exports.layoutProperties = layoutProperties;
+//# sourceMappingURL=layout.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/lists.js.html b/javadoc/lists.js.html new file mode 100644 index 00000000..565b79f6 --- /dev/null +++ b/javadoc/lists.js.html @@ -0,0 +1,193 @@ +Source: lists.js
On this page

lists.js

"use strict";
+/**
+ * @file Lists
+ * @module lists
+ * @category Lists
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.unique = exports.transform = exports.subset = exports.sort = exports.select = exports.replace = exports.nothing = exports.member = exports.keywords = exports.isNotMember = exports.isMember = exports.implode = exports.explode = exports.elements = exports.count = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesf = tslib_1.__importStar(require("../notes/lists"));
+exports._notes = notesf;
+//-----------------------------
+// Open Formula lists
+//-----------------------------
+// Notes @functions lists
+/**
+ * Calculates the number of text, number, or time-date values in a list. This
+ * function always returns a number to indicate the number of entries in the list.
+ *
+ * This function is similar to &#64;Elements, except that it returns the number 1
+ * instead of 0, when the value it is evaluating is not a list or is a null string.
+ * @returns {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_COUNT.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function count() {
+    return notesf.Count();
+}
+exports.count = count;
+/**
+ * Calculates the number of text, number, or time-date values in a list. This
+ * function always returns a number to indicate the number of entries in the list.
+ * @returns {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ELEMENTS.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function elements() {
+    return notesf.Elements();
+}
+exports.elements = elements;
+/**
+ * Returns a text list composed of the elements of a text string or date range.
+ *
+ * - If you specify a text string, elements are defined as sequences of characters
+ * separated by separator characters and newlines.
+ * - If you specify a time-date range, elements are defined as individual days within
+ * the range.
+ * @returns {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EXPLODE.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function explode() {
+    return notesf.Explode();
+}
+exports.explode = explode;
+/**
+ * Concatenates all members of a text list and returns a text string.
+ * @returns {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_IMPLODE.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function implode() {
+    return notesf.Implode();
+}
+exports.implode = implode;
+/**
+ * Indicates if a piece of text (or a text list) is contained within another text
+ * list. The function is case-sensitive.
+ * @returns {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISMEMBER.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function isMember() {
+    return notesf.IsMember();
+}
+exports.isMember = isMember;
+/**
+ * Indicates if a text string (or a text list) is not contained within another text
+ * list. The function is case-sensitive.
+ * @returns {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ISNOTMEMBER.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function isNotMember() {
+    return notesf.IsNotMember();
+}
+exports.isNotMember = isNotMember;
+/**
+ * Given two text lists, returns only those items from the second list that are
+ * found in the first list.
+ * @returns {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_KEYWORDS.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function keywords() {
+    return notesf.Keywords();
+}
+exports.keywords = keywords;
+/**
+ * Given a value, finds its position in a text list.
+ * @returns {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MEMBER.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function member() {
+    return notesf.Member();
+}
+exports.member = member;
+/**
+ * Use with an &#64;Transform formula. Returns no list element (reducing the return
+ * list by one element). Not valid in any other context.
+ * @returns {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NOTHING.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function nothing() {
+    return notesf.Nothing();
+}
+exports.nothing = nothing;
+/**
+ * Repeats a string a specified number of times.
+ * @returns {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REPLACE.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function replace() {
+    return notesf.Replace();
+}
+exports.replace = replace;
+/**
+ * Returns the value that appears in the number position. If the number is greater
+ * than the number of values, &#64;Select returns the last value in the list. If
+ * the value in the number position is a list, returns the entire list contained
+ * within the value.
+ * @throws {Error} method not implemented
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_SELECT_AT.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function select() {
+    return notesf.Select();
+}
+exports.select = select;
+/**
+ * Sorts a list.
+ * @returns {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SORT.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function sort() {
+    return notesf.Sort();
+}
+exports.sort = sort;
+/**
+ * Searches a list from beginning to end and returns the number values you specify.
+ * If you specify a negative number, &#64;Subset searches the list from end to
+ * beginning, but the result is ordered as from the beginning of the list.
+ * @returns {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SUBSET.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function subset() {
+    return notesf.Subset();
+}
+exports.subset = subset;
+/**
+ * Applies a formula to each element of a list and returns the results in a list.
+ * @returns {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_TRANSFORM.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function transform() {
+    return notesf.Transform();
+}
+exports.transform = transform;
+/**
+ * Without a parameter, returns a random, unique text value. With a parameter,
+ * removes duplicate values from a text list by returning only the first occurrence
+ * of each member of the list.
+ * @param text - list of values
+ * @returns If no parameter is specified, returns a random, unique text value. Otherwise, the _text_ list, with
+ * duplicate values removed.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_UNIQUE.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function unique(...text) {
+    return notesf.Unique(...text);
+}
+exports.unique = unique;
+//-----------------------------
+// Notes @Commands lists
+//# sourceMappingURL=lists.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/logical.js.html b/javadoc/logical.js.html new file mode 100644 index 00000000..60339d0d --- /dev/null +++ b/javadoc/logical.js.html @@ -0,0 +1,269 @@ +Source: logical.js
On this page

logical.js

"use strict";
+/**
+ * @file Logical
+ * @module logical
+ * @category Logical
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+const tslib_1 = require("tslib");
+const openf_logic = require('../openformula/logical');
+exports._openFormula = openf_logic;
+const notesf_logic = require('../notes/logical');
+exports._notes = notesf_logic;
+const API = tslib_1.__importStar(require("../rosetta/API"));
+//-----------------------------
+// Rosetta logical - common functions (exist in both OpenFormula and Notes Formula)
+/**
+ * Returns the logical value false (or the number 0).
+ *
+ * @returns {boolean | number} False (or 0).
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_FALSE.html | www.hcltechsw.com}
+ *      &nbsp; and &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#FALSE | www.oasis-open.org}
+ * @example rosettajs.false(); // returns false (openf) or 0 (notesf)
+ */
+exports.false = () => {
+    return API.isDefaultOpenFormula() ? openf_logic.FALSE() : notesf_logic.False();
+};
+/**
+ * Specifies a logical test to perform and returns the specified value determined by the test.
+ *
+ * @param {any} args The parameters that include the condition/action pair(s), and else action.
+ * @returns {any} The resulting value if true or false.
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_IF.html | www.hcltechsw.com}
+ *     &nbsp; and &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#IF | www.oasis-open.org}
+ * @example rosettajs.if(55 >= 12.45, "Over Budget", "OK") // returns "Over Budget"
+ */
+exports.if = function (...args) {
+    let value_if_true = arguments.length >= 2 ? args[1] : true;
+    let value_if_false = arguments.length === 3 ? args[2] : false;
+    return API.isDefaultOpenFormula() ? openf_logic.IF(args[0], value_if_true, value_if_false) : notesf_logic.If(...args);
+};
+/**
+ * Returns a value you specify if a formula evaluates to an error; otherwise, returns the result of the formula.
+ *
+ * @param {any} value The argument that is checked for an error.
+ * @param {any} value_if_error The value to return if the formula evaluates to an error. The following error types are evaluated: #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!.
+ * @returns {any} The value you specify if a formula evaluates to an error; otherwise, returns the result of the formula.
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_IFERROR_FUNCTION.html | www.hcltechsw.com}
+ * @example rosettajs.ifError(error.value, 2) // returns 2
+ */
+exports.ifError = (value, value_if_error) => {
+    return API.isDefaultOpenFormula() ? openf_logic.IFERROR(value, value_if_error) : notesf_logic.IfError(value, value_if_error);
+};
+/**
+ * Returns the logical value true (or the number 1).
+ *
+ * @returns {boolean | number} True (or 1)
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_TRUE.html | www.hcltechsw.com}
+ * @example rosettajs.true(); // returns true (openf) or 1 (notesf)
+ */
+exports.true = () => {
+    return API.isDefaultOpenFormula() ? openf_logic.TRUE() : notesf_logic.True();
+};
+//-----------------------------
+// Open Formula logical
+/**
+ * Returns TRUE if all of its arguments are TRUE.
+ *
+ * @param {any[]} values The values to determine whether they are true or not.
+ * @returns {boolean} True if all of the arguments are true. False if any value is not true.
+ * @see For further information, see &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#AND | www.oasis-open.org}
+ * @example rosettajs.and(true, false) // returns false
+ */
+exports.and = (...values) => {
+    return openf_logic.AND(...values);
+};
+/**
+ * Checks whether one or more conditions are met and returns a value that corresponds to the first TRUE condition.
+ *
+ * @param {any[]} args One or more conditions.
+ * @returns {any} The value that corresponds to the first TRUE condition.
+ * @example rosettajs.ifs(false, 1, true, 2) // returns 2
+ */
+exports.ifs = (...args) => {
+    return openf_logic.IFS(...args);
+};
+/**
+ * Returns the value you specify if the expression resolves to #N/A, otherwise returns the result of the expression.
+ *
+ * @param {any} value The expression to compute.
+ * @param {any} value_if_na The result of the expression to return if the value is not #N/A.
+ * @returns {any} The value you specify if the expression resolves to #N/A, otherwise returns the result of the expression.
+ * @example rosettajs.ifNA(error.na, 2) // returns 2
+ */
+exports.ifNA = (value, value_if_na) => {
+    return openf_logic.IFNA(value, value_if_na);
+};
+/**
+ * Reverses the logic of its argument.
+ *
+ * @param {boolean} logical The expression to reverse.
+ * @returns {boolean} The reversed logic of the logical expression.
+ * @see For further information, see &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#NOT | www.oasis-open.org}
+ * @example rosettajs.not(false) // returns true
+ */
+exports.not = (logical) => {
+    return openf_logic.NOT(logical);
+};
+/**
+ * Returns TRUE if any argument is TRUE.
+ *
+ * @param {any[]} values The values to determine whether they are true or not.
+ * @returns {boolean} True if any one of the arguments are true. False if all values are false.
+ * @see For further information, see &nbsp; {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#OR | www.oasis-open.org}
+ * @example rosettajs.or(true, false) // returns true
+ */
+exports.or = (...values) => {
+    return openf_logic.OR(...values);
+};
+/**
+ * Evaluates an expression against a list of values and returns the result corresponding to the first matching value.
+ * If there is no match, an optional default value may be returned.
+ *
+ * @param {any[]} args The expression and values to compare.
+ * @returns {any} The result corresponding to the first matching value.
+ * @example rosettajs.switch() // returns
+ */
+exports.switch = (...args) => {
+    return openf_logic.SWITCH(...args);
+};
+/**
+ * Returns a logical exclusive OR of all arguments.
+ *
+ * @param {any[]} values logical1, logical2,… Logical 1 is required, subsequent logical values are optional.
+ *     1 to 254 conditions you want to test that can be either TRUE or FALSE, and can be logical values, arrays, or references.
+ * @returns {boolean} The logical exclusive OR of all arguments.
+ * @example rosettajs.xor()
+ */
+exports.xor = (...values) => {
+    return openf_logic.XOR(...values);
+};
+//-----------------------------
+// Notes @functions logical
+/**
+ * Evaluates expressions from left to right, and returns the value of the last
+ * expression in the list.
+ *
+ * @param {any} expressions One or more expressions to evaluate.
+ * @returns {any} The resulting value of the last expression in the list.
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_DO.html | www.hcltechsw.com}
+ * @example rosettajs.do(rosettajs.success(), true, false, "message") // returns "message"
+ */
+exports.do = (...expressions) => {
+    return notesf_logic.Do(...expressions);
+};
+/**
+ * Executes one or more statements iteratively while a condition is true. Checks
+ * the condition after executing the statements.
+ *
+ * @throws {Error} method not implemented
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_DOWHILE_FUNCTION.html | www.hcltechsw.com}
+ * @TODO this needs to be implemented
+ */
+exports.doWhile = () => {
+    return notesf_logic.DoWhile();
+};
+/**
+ * Returns text that indicates that input to a field does not meet validation.
+ *
+ * @param {string} message The error message to be displayed to the user.
+ * @returns {string} The message indicating the failure.
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_FAILURE.html | www.hcltechsw.com}
+ * @example rosettajs.failure("Failure message test") // returns "Failure message test"
+ */
+exports.failure = (message) => {
+    return notesf_logic.Failure(message);
+};
+/**
+ * Executes one or more statements iteratively while a condition remains true.
+ * Executes an initialization statement. Checks the condition before executing the
+ * statements and executes an increment statement after executing the statements.
+ *
+ * @throws {Error} method not implemented
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_FOR_FUNCTION.html | www.hcltechsw.com}
+ * @TODO this needs to be implemented
+ */
+exports.for = () => {
+    return notesf_logic.For();
+};
+/**
+ * Tests for a null value. Returns true only if a value is a single text value that
+ * is null, otherwise it returns false. This function also returns false if the
+ * value is an error.
+ *
+ * @param {any} value The value to test for null.
+ * @returns {boolean} True if value is null, otherwise false.
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_ISNULL.html | www.hcltechsw.com}
+ * @example rosettajs.isNull(null) // true
+ * @example rosettajs.isNull(4) // false
+
+ */
+exports.isNull = (value) => {
+    return notesf_logic.IsNull(value);
+};
+/**
+ * Returns the number 0 (false).
+ *
+ * @returns {number} The number 0 (false).
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_NO.html | www.hcltechsw.com}
+ * @example rosettajs.no() // returns 0
+ */
+exports.no = () => {
+    return notesf_logic.No();
+};
+/**
+ * Immediately stops the execution of a formula and returns the specified value.
+ * This is useful when you only want the remainder of the formula to be executed
+ * only if certain conditions are True.
+ *
+ * @param {any} value The value to return.
+ * @returns {any} The value.
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_RETURN.html | www.hcltechsw.com}
+ * @example rosettajs.return('Message to return') // throws 'Message to return'
+ */
+exports.return = (value) => {
+    return notesf_logic.Return(value);
+};
+/**
+ * Returns 1 (True). Use this function with &#64;If in field validation formulas to
+ * indicate that the value entered satisfies the validation criteria.
+ *
+ * @returns {number} The number 1 (true).
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_SUCCESS.html | www.hcltechsw.com}
+ * @example rosettajs.success() // returns 1
+ */
+exports.success = () => {
+    return notesf_logic.Success();
+};
+/**
+ * Returns the names of the folders containing the current document.
+ *
+ * @throws {Error} method not implemented
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_WHILE_FUNCTION.html | www.hcltechsw.com}
+ * @TODO this needs to be implemented
+ */
+exports.while = () => {
+    return notesf_logic.While();
+};
+/**
+ * Returns the number 1 (true).
+ *
+ * @returns {number} The number 1 (true).
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_YES.html | www.hcltechsw.com}
+ * @example rosettajs.yes() // returns 1
+ */
+exports.yes = () => {
+    return notesf_logic.Yes();
+};
+/**
+ * This function performs an &#64;If operation; the syntax is the same as for &#64;if.
+ *
+ * @throws {Error} No plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_V2IF.html | www.hcltechsw.com}
+ */
+exports.v2If = () => {
+    return notesf_logic.V2If();
+};
+//# sourceMappingURL=logical.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/lookup-reference.js.html b/javadoc/lookup-reference.js.html new file mode 100644 index 00000000..b7e80e39 --- /dev/null +++ b/javadoc/lookup-reference.js.html @@ -0,0 +1,216 @@ +Source: lookup-reference.js
On this page

lookup-reference.js

"use strict";
+/**
+ * @file Lookup Reference
+ * @module lookup-reference
+ * @category Lookup Reference
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.unique = exports.choose = exports.columns = exports.column = exports.row = exports.rows = exports.transpose = exports.index = exports.lookup = exports.hLookup = exports.vLookup = exports.match = exports._openFormula = void 0;
+const tslib_1 = require("tslib");
+const openf = tslib_1.__importStar(require("../openformula/lookup-reference"));
+exports._openFormula = openf;
+const error = tslib_1.__importStar(require("../utils/error"));
+//-----------------------------
+// Open Formula lookup-reference
+/**
+ * Looks up values in a reference or array.
+ *
+ * Category: Lookup and reference
+ *
+ * @param {*} lookup_value The value that you want to match in lookup_array. For example, when you look up someone's number in a telephone book, you are using the person's name as the lookup value, but the telephone number is the value you want.The lookup_value argument can be a value (number, text, or logical value) or a value reference to a number, text, or logical value.
+ * @param {any[]} lookup_array The range of values being searched.
+ * @param {number} match_type Optional. The number -1, 0, or 1. The match_type argument specifies how Excel matches lookup_value with values in lookup_array. The default value for this argument is 1.
+ * @see For futher information, see ;nbsp {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#MATCH | www.oasis-open.org}
+ * @returns {number | Error} the index of the value you are attempting to lookup via match_type, or it returns an error.
+ * @example match(1, [[0], [1], [2], [3], [4]]) //returns 2
+ * @example match('*mc', ['jima', 'jimb', 'jimc', 'bernie'], 0) //returns 3
+ *
+ */
+function match(lookup_value, lookup_array, match_type = 1) {
+    return openf.MATCH(lookup_value, lookup_array, match_type);
+}
+exports.match = match;
+/**
+ * Looks in the first column of an array and moves across the row to return the value of a value.
+ *
+ * Category: Lookup and reference
+ *
+ * @param {*} lookup_value The value to be found in the first row of the table. Lookup_value can be a value, a reference, or a text string.
+ * @param {any[][]} table_array A table of information in which data is looked up. Use a reference to a range or a range name.
+ * @param {number} col_index_num The row number in table_array from which the matching value will be returned. A row_index_num of 1 returns the first row value in table_array, a row_index_num of 2 returns the second row value in table_array, and so on. If row_index_num is less than 1, VLOOKUP returns the #VALUE! error value; if row_index_num is greater than the number of rows on table_array, VLOOKUP returns the #REF! error value.
+ * @param {boolean} [range_lookup] Optional. A logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match. If TRUE or omitted, an approximate match is returned. In other words, if an exact match is not found, the next largest value that is less than lookup_value is returned. If FALSE, VLOOKUP will find an exact match. If one is not found, the error value #N/A is returned.
+ * @see For futher information, see ;nbsp {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#VLOOKUP | www.oasis-open.org}
+ * @returns {any | Error} the value in the table_array second column based on the index of the value looked up in the first column.
+ * @example rosetta.vLookup('jim', [['jam', 2], ['jim', 4]], 2, false) //returns 4
+ * @example rosetta.vLookup(1.1, [[0, 'A'], [1, 'B'], [2, 'C'], [1, 'D']], 2, true) //returns 'B'
+ */
+function vLookup(lookup_value, table_array, col_index_num, range_lookup) {
+    return openf.VLOOKUP(lookup_value, table_array, col_index_num, range_lookup);
+}
+exports.vLookup = vLookup;
+/**
+ * Looks in the top row of an array and returns the value of the indicated value.
+ *
+ * Category: Lookup and reference
+ *
+ * @param {*} lookup_value The value to be found in the first row of the table. Lookup_value can be a value, a reference, or a text string.
+ * @param {any[][]} table_array A table of information in which data is looked up. Use a reference to a range or a range name.
+ * @param {number} row_index_num The row number in table_array from which the matching value will be returned. A row_index_num of 1 returns the first row value in table_array, a row_index_num of 2 returns the second row value in table_array, and so on. If row_index_num is less than 1, HLOOKUP returns the #VALUE! error value; if row_index_num is greater than the number of rows on table_array, HLOOKUP returns the #REF! error value.
+ * @param {boolean} [range_lookup] Optional. A logical value that specifies whether you want HLOOKUP to find an exact match or an approximate match. If TRUE or omitted, an approximate match is returned. In other words, if an exact match is not found, the next largest value that is less than lookup_value is returned. If FALSE, HLOOKUP will find an exact match. If one is not found, the error value #N/A is returned.
+ * @see For futher information, see ;nbsp {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#VLOOKUP | www.oasis-open.org}
+ * @returns {any | Error} the value in the table_array second column based on the index of the value looked up in the first column.
+ * @example rosetta.hLookup(0, [[1, 0], ['jim', 'jam']], 2, false) //returns'jam'
+ * @example rosetta.hLookup(1.4, [[0, 1, 2, 1], ['A', 'B', 'C', 'D']], 2) //returns 'B'
+ */
+function hLookup(lookup_value, table_array, row_index_num, range_lookup) {
+    return openf.HLOOKUP(lookup_value, table_array, row_index_num, range_lookup);
+}
+exports.hLookup = hLookup;
+/**
+ * Looks up values in a vector or array.
+ *
+ * Category: Lookup and reference
+ *
+ * @param {*} lookup_value A value that LOOKUP searches for in an array. The lookup_value argument can be a number, text, a logical value, or a name or reference that refers to a value.
+ - If LOOKUP can't find the value of lookup_value, it uses the largest value in the array that is less than or equal to lookup_value.
+ - If the value of lookup_value is smaller than the smallest value in the first row or column (depending on the array dimensions), LOOKUP returns the #N/A error value.
+ * @param {any[]} array A range of values that contains text, numbers, or logical values that you want to compare with lookup_value. The array form of LOOKUP is very similar to the HLOOKUP and VLOOKUP functions. The difference is that HLOOKUP searches for the value of lookup_value in the first row, VLOOKUP searches in the first column, and LOOKUP searches according to the dimensions of array.
+ * @param {any[]} [result_array] Optional. A range that contains only one row or column. The result_array argument must be the same size as lookup_value. It has to be the same size.
+ * @see For futher information, see ;nbsp {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#LOOKUP | www.oasis-open.org}
+ * @returns {any | Error} the value in the result_array at the same index from the first array that is closest to the lookup_value
+ * @example lookup('Jack', ['Jim', 'Jack', 'Franck'], ['blue', 'yellow', 'red']) //returns 'yellow'
+ * @example lookup(0.21, [[0.1, 0.2, 0.3, 0.2]], [['A', 'B', 'C', 'D']]) //returns 'B'
+ */
+function lookup(lookup_value, array, result_array) {
+    return openf.LOOKUP(lookup_value, array, result_array);
+}
+exports.lookup = lookup;
+/**
+ * Uses an index to choose a value from a reference or array.
+ *
+ * Category: Lookup and reference
+ *
+ * @param {any[]} array A range of values or an array constant.
+ - If array contains only one row or column, the corresponding row_num or column_num argument is optional.
+ - If array has more than one row and more than one column, and only row_num or column_num is used, INDEX returns an array of the entire row or column in array.
+ * @param {number} row_num Required, unless column_num is present. Selects the row in array from which to return a value. If row_num is omitted, column_num is required.
+ * @param {number} [column_num] Optional. Selects the column in array from which to return a value. If column_num is omitted, row_num is required.
+ * * @see For futher information, see ;nbsp {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#INDEX | www.oasis-open.org}
+ * @returns {any | Error } returns the value at a given index from a datasource.
+ * @example rosetta.index([['Banana', 'Apple'],['Strawberry', 'Pineapple']], 2, 1) //returns 'Strawberry'
+ * @example rosetta.index([['Banana', 'Apple'],['Strawberry', 'Pineapple']], 1, 2) //returns 'Apple'
+ */
+function index(array, row_num, column_num) {
+    return openf.INDEX(array, row_num, column_num);
+}
+exports.index = index;
+/**
+ * Returns the transpose of an array.
+ *
+ * Category: Lookup and reference
+ *
+ * @param {number[][]} array An array or range of values on a worksheet that you want to transpose. The transpose of an array is created by using the first row of the array as the first column of the new array, the second row of the array as the second column of the new array, and so on. If you're not sure of how to enter an array formula, see Create an array formula.
+ * @returns {number[][]} the transpose of an array or an error if the arguments are incorrect.
+ */
+function transpose(array) {
+    return openf.TRANSPOSE(array);
+}
+exports.transpose = transpose;
+/**
+ * Returns the number of rows in a reference.
+ *
+ * Category: Lookup and reference
+ *
+ * @param {number[][]} array An array, an array formula, or a reference to a range of values for which you want the number of rows.
+ * @returns the number of rows in a reference or an error if the arguments are incorect.
+ */
+function rows(array) {
+    if (arguments.length !== 1) {
+        return error.na;
+    }
+    return openf.ROWS(array);
+}
+exports.rows = rows;
+/**
+ * Returns the row number of a reference.
+ *
+ * Category: Lookup and reference
+ *
+ * @param {number[][]} reference the value or range of values for which you want the row number.
+ * @param {number} index
+ * @returns {number} the row number of a reference or an error if the arguments are incorrect.
+ */
+function row(reference, index) {
+    if (arguments.length !== 2) {
+        return error.na;
+    }
+    return openf.ROW(reference, index);
+}
+exports.row = row;
+/**
+ * Returns the column number of a reference.
+ *
+ * Category: Lookup and reference
+ *
+ * @param {any[][]} reference the value or range of values for which you want to return the column number.
+ * @param {number} index
+ * @returns {number} the column number of a reference or an error if the arguments are incorrect.
+ */
+function column(reference, index) {
+    if (arguments.length !== 2) {
+        return error.na;
+    }
+    return openf.COLUMN(reference, index);
+}
+exports.column = column;
+/**
+ * Returns the number of columns in a reference.
+ *
+ * Category: Lookup and reference
+ *
+ * @param {any[][]} array An array or array formula, or a reference to a range of values for which you want the number of columns.
+ * @returns {number} the number of columns in a reference or an error if the arguments are incorrect.
+ */
+function columns(array) {
+    if (arguments.length !== 1) {
+        return error.na;
+    }
+    return openf.COLUMNS(array);
+}
+exports.columns = columns;
+/**
+ * Chooses a value from a list of values.
+ *
+ * Category: Lookup and reference
+ *
+ * @param {number} index_num Specifies which value argument is selected. Index_num must be a number between 1 and 254, or a formula or reference to a value containing a number between 1 and 254. If index_num is 1, CHOOSE returns value1; if it is 2, CHOOSE returns value2; and so on. If index_num is less than 1 or greater than the number of the last value in the list, CHOOSE returns the #VALUE! error value. If index_num is a fraction, it is truncated to the lowest integer before being used.
+ - If index_num is 1, CHOOSE returns value1; if it is 2, CHOOSE returns value2; and so on.
+ - If index_num is less than 1 or greater than the number of the last value in the list, CHOOSE returns the #VALUE! error value.
+ - If index_num is a fraction, it is truncated to the lowest integer before being used.
+ * @param {number} index_num the index of the value to return.
+ * @param {*} args value1, value2, ... Value 1 is required, subsequent values are optional. 1 to 254 value arguments from which CHOOSE selects a value or an action to perform based on index_num. The arguments can be numbers, value references, defined names, formulas, functions, or text.
+ * @see For futher information, see ;nbsp {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#CHOOSE | www.oasis-open.org}
+ * @returns {any} the value at a given index, or an error where it specifies an index that does not exist.
+ * @example lookup.CHOOSE(3, 'jima', 'jimb', 'jimc') //returns ('jimc')
+ * @example lookup.CHOOSE(2, 'jima') //returns (error.value)
+ */
+function choose(index_num, ...args) {
+    return openf.CHOOSE(index_num, ...args);
+}
+exports.choose = choose;
+/**
+ * Returns a list of unique values in a list or range.
+ * @param values The list of values
+ * @returns A list of unique values
+ */
+function unique(...values) {
+    return openf.UNIQUE(...values);
+}
+exports.unique = unique;
+//-----------------------------
+// Notes @functions lookup-reference
+//-----------------------------
+// Notes @Commands lookup-reference
+//# sourceMappingURL=lookup-reference.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/mail.js.html b/javadoc/mail.js.html new file mode 100644 index 00000000..758788d7 --- /dev/null +++ b/javadoc/mail.js.html @@ -0,0 +1,194 @@ +Source: mail.js
On this page

mail.js

"use strict";
+/**
+ * @file Mail
+ * @module mail
+ * @category Mail
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.mailSignPreference = exports.mailSendPublicKey = exports.mailSendEncryptionKey = exports.mailSendCertificateRequest = exports.mailSend = exports.mailScanUnread = exports.mailSavePreference = exports.mailRequestNewPublicKey = exports.mailRequestNewName = exports.mailRequestCrossCert = exports.mailOpen = exports.mailForwardAsAttachment = exports.mailForward = exports.mailEncryptSentPreference = exports.mailEncryptSavedPreference = exports.mailComposeMemo = exports.mailAddress = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesc = tslib_1.__importStar(require("../notes/mail"));
+exports._notes = notesc;
+//-----------------------------
+// Notes @Commands mail
+/**
+ * Displays the Select Addresses dialog box, where the user can select people and
+ * groups to include in an address field of a mail document.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILADDRESS.html|www.hcltechsw.com }
+ */
+function mailAddress() {
+    return notesc.MailAddress();
+}
+exports.mailAddress = mailAddress;
+/**
+ * Creates and displays a blank mail document. Notes/Domino uses the default form
+ * for the user's mail database. This is a Memo document unless the user has
+ * changed it.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILCOMPOSEMEMO.html|www.hcltechsw.com }
+ */
+function mailComposeMemo() {
+    return notesc.MailComposeMemo();
+}
+exports.mailComposeMemo = mailComposeMemo;
+/**
+ * Indicates whether the user has selected "Encrypt saved mail" in the User
+ * Preferences dialog box.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILENCRYPTSAVEDPREFERENCE.html|www.hcltechsw.com }
+ */
+function mailEncryptSavedPreference() {
+    return notesc.MailEncryptSavedPreference();
+}
+exports.mailEncryptSavedPreference = mailEncryptSavedPreference;
+/**
+ * Indicates whether the user has selected "Encrypt sent mail" in the User
+ * Preferences dialog box.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILENCRYPTSENTPREFERENCE.html|www.hcltechsw.com }
+ */
+function mailEncryptSentPreference() {
+    return notesc.MailEncryptSentPreference();
+}
+exports.mailEncryptSentPreference = mailEncryptSentPreference;
+/**
+ * Forwards the current document by placing its contents into a mail memo, which
+ * the user then addresses and sends like any other mail memo.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILFORWARD.html|www.hcltechsw.com }
+ */
+function mailForward() {
+    return notesc.MailForward();
+}
+exports.mailForward = mailForward;
+/**
+ * In cc:Mail, forwards a Notes/Domino document as a cc:Mail attachment.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILFORWARDASATTACHMENT.html|www.hcltechsw.com }
+ */
+function mailForwardAsAttachment() {
+    return notesc.MailForwardAsAttachment();
+}
+exports.mailForwardAsAttachment = mailForwardAsAttachment;
+/**
+ * Opens the user's mail database to the view or navigator to which it was most
+ * recently open.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILOPEN.html|www.hcltechsw.com }
+ */
+function mailOpen() {
+    return notesc.MailOpen();
+}
+exports.mailOpen = mailOpen;
+/**
+ * Displays the Choose ID to be Cross-Certified dialog box, which allows an
+ * administrator to send a safe copy of a Certifier ID to another administrator,
+ * who can certify it with a different Certifier ID to create a cross certificate.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILREQUESTCROSSCERT.html|www.hcltechsw.com }
+ */
+function mailRequestCrossCert() {
+    return notesc.MailRequestCrossCert();
+}
+exports.mailRequestCrossCert = mailRequestCrossCert;
+/**
+ * Displays the Change User Name dialog box, which allows the user to send a
+ * portion of the Notes® user ID to a Notes/Domino administrator, who can change
+ * the user name associated with the ID and return the ID to the user. The user
+ * then merges the updated portion back into the existing user ID.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILREQUESTNEWNAME.html|www.hcltechsw.com }
+ */
+function mailRequestNewName() {
+    return notesc.MailRequestNewName();
+}
+exports.mailRequestNewName = mailRequestNewName;
+/**
+ * Displays the Mail New Public Key Request dialog box, which allows the user to
+ * send a portion of his or her Notes/Domino ID to an administrator, who can create
+ * a new public key for the ID and return the ID to the user. The user then merges
+ * the updated portion back into the existing user ID.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILREQUESTNEWPUBLICKEY.html|www.hcltechsw.com }
+ */
+function mailRequestNewPublicKey() {
+    return notesc.MailRequestNewPublicKey();
+}
+exports.mailRequestNewPublicKey = mailRequestNewPublicKey;
+/**
+ * Indicates which option the user has selected for the "Save sent mail"setting in
+ * the User Preferences dialog box.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILSAVEPREFERENCE.html|www.hcltechsw.com }
+ */
+function mailSavePreference() {
+    return notesc.MailSavePreference();
+}
+exports.mailSavePreference = mailSavePreference;
+/**
+ * Opens the user's mail database to the first unread document in the view to which
+ * the database was most recently open.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILSCANUNREAD.html|www.hcltechsw.com }
+ */
+function mailScanUnread() {
+    return notesc.MailScanUnread();
+}
+exports.mailScanUnread = mailScanUnread;
+/**
+ * Displays the Mail Send dialog box, which lets the user choose whether or not to
+ * encrypt, sign, or send the selected memo.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILSEND_COMMAND.html|www.hcltechsw.com }
+ */
+function mailSend() {
+    return notesc.MailSend(); // note: there is also a MailSend notes function in the miscellaneous category
+}
+exports.mailSend = mailSend;
+/**
+ * Displays the Mail Certificate Request dialog box. This lets the user send a safe
+ * copy of the Notes/Domino user ID to an administrator, who certifies and then
+ * returns it; the user then merges the updated safe copy back into the user ID.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILSENDCERTIFICATEREQUEST.html|www.hcltechsw.com }
+ */
+function mailSendCertificateRequest() {
+    return notesc.MailSendCertificateRequest();
+}
+exports.mailSendCertificateRequest = mailSendCertificateRequest;
+/**
+ * Displays the User ID dialog box, where the user can define and send encryption
+ * keys. If the user's ID is password-protected, the user will be required to
+ * enter the password before being allowed access to the dialog box.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILSENDENCRYPTIONKEY.html|www.hcltechsw.com }
+ */
+function mailSendEncryptionKey() {
+    return notesc.MailSendEncryptionKey();
+}
+exports.mailSendEncryptionKey = mailSendEncryptionKey;
+/**
+ * Displays the Mail Public Key dialog box. This lets the user send the public key
+ * to another user (typically to an administrator who can then paste the public key
+ * into that user's Person record in the Domino® Directory).
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILSENDPUBLICKEY.html|www.hcltechsw.com }
+ */
+function mailSendPublicKey() {
+    return notesc.MailSendPublicKey();
+}
+exports.mailSendPublicKey = mailSendPublicKey;
+/**
+ * Indicates whether the user has selected "Sign sent mail" in the User Preferences
+ * dialog box.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILSIGNPREFERENCE.html|www.hcltechsw.com }
+ */
+function mailSignPreference() {
+    return notesc.MailSignPreference();
+}
+exports.mailSignPreference = mailSignPreference;
+//# sourceMappingURL=mail.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/math-trig.js.html b/javadoc/math-trig.js.html new file mode 100644 index 00000000..079fcd4c --- /dev/null +++ b/javadoc/math-trig.js.html @@ -0,0 +1,1497 @@ +Source: math-trig.js
On this page

math-trig.js

"use strict";
+/**
+ * @file Math and Trigonometry
+ * @module math-trig
+ * @category Math & Trigonometry
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.ln10 = exports.lcm = exports.iso = exports.int = exports.gcd = exports.floor = exports.factDouble = exports.fact = exports.even = exports.degrees = exports.decimal = exports.csch = exports.csc = exports.coth = exports.cot = exports.cosh = exports.combina = exports.combin = exports.ceilingPrecise = exports.ceilingMath = exports.ceiling = exports.base = exports.atanh = exports.asinh = exports.arabic = exports.aggregate = exports.acoth = exports.acot = exports.acosh = exports.tan = exports.sum = exports.sqrt = exports.sin = exports.sign = exports.round = exports.power = exports.pi = exports.min = exports.max = exports.log = exports.ln = exports.exp = exports.cos = exports.atan2 = exports.atan = exports.asin = exports.acos = exports.abs = exports._notes = exports._openFormula = void 0;
+exports.random = exports.modulo = exports.integer = exports.floatEq = exports.trunc = exports.tanh = exports.sumxmy2 = exports.sumx2Py2 = exports.sumx2My2 = exports.sumSq = exports.sumProduct = exports.sumIfs = exports.sumIf = exports.pow = exports.ne = exports.eq = exports.lte = exports.lt = exports.gte = exports.gt = exports.multiply = exports.divide = exports.minus = exports.add = exports.subTotal = exports.sqrtPi = exports.sinh = exports.seriesSum = exports.sech = exports.sec = exports.roundUp = exports.roundDown = exports.roman = exports.randBetween = exports.rand = exports.radians = exports.quotient = exports.product = exports.e = exports.odd = exports.multinomial = exports.mRound = exports.mod = exports.log10 = exports.log2E = exports.log10E = exports.ln2 = void 0;
+const tslib_1 = require("tslib");
+const openf = tslib_1.__importStar(require("../openformula/math-trig"));
+exports._openFormula = openf;
+const notesf = tslib_1.__importStar(require("../notes/math-trig"));
+exports._notes = notesf;
+const API = tslib_1.__importStar(require("../rosetta/API"));
+const error = tslib_1.__importStar(require("../utils/error"));
+//-----------------------------
+// Rosetta math-trig - common functions (exist in both OpenFormula and Notes Formula)
+/**
+ * Returns the absolute (unsigned) value of one or more number(s).
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} value Number or number list. The numbers whose absolute value is to be calculated.
+ *     Any number whether positive or negative, whole or fractional, integer or real.
+ * @returns {number} Number or number list. The absolute values of value.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ABS.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#ABS|www.oasis-open.org}
+ * @example rosetta.abs(-3); // returns 3
+ * @example rosetta.abs(-3,-4,-5); // returns [3,4,5]
+ */
+function abs(...value) {
+    const list = value.map(n => n instanceof Error ? n : API.isDefaultOpenFormula() ? openf.ABS(n) : notesf.Abs(n));
+    return list.length ? (list.length === 1 ? list[0] : list) : 0;
+}
+exports.abs = abs;
+/**
+ * Returns the arccosine (inverse cosine) of a number using the cosine of an angle.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} value Number or number list. A cosine of an angle, from -1 through 1.
+ * @returns {number} Number or number list. The trigonometric arccosine of value. An angle, in radians, from 0 through pi.
+ *     This represents an angle between 0 and 180 degrees.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ACOS.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#ACOS|www.oasis-open.org}
+ * @example rosetta.acos(.5); // returns 1.0471975511965979
+ * @example rosetta.acos(.5,.6,.7); // returns [1.0471975511965979, 0.9272952180016123, 0.7953988301841436]
+ */
+function acos(...value) {
+    if (!value.length) {
+        return API.isDefaultOpenFormula() ? openf.ACOS(0) : notesf.ACos(0);
+    }
+    const list = value.map(n => n instanceof Error ? n : API.isDefaultOpenFormula() ? openf.ACOS(n) : notesf.ACos(n));
+    return list.length ? (list.length === 1 ? list[0] : list) : 0;
+}
+exports.acos = acos;
+/**
+ * Returns the arcsine (inverse sine) of a number using the sine of an angle.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} value Number or number list. A sine of an angle, from -1 through 1.
+ * @returns {number} Number or number list. The trigonometric arcsine of value. An angle, in radians, from -pi/2 through pi/2.
+ *     This represents an angle between -90 and 90 degrees.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ASIN.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#ASIN|www.oasis-open.org}
+ * @example rosetta.asin(.5); // returns 0.5235987755982989
+ * @example rosetta.asin(.5,.6,.7); // returns [0.5235987755982989, 0.6435011087932844, 0.775397496610753]
+ */
+function asin(...value) {
+    const list = value.map(n => n instanceof Error ? n : API.isDefaultOpenFormula() ? openf.ASIN(n) : notesf.ASin(n));
+    return list.length ? (list.length === 1 ? list[0] : list) : 0;
+}
+exports.asin = asin;
+/**
+ * Returns the arc (inverse) tangent using the tangent of an angle.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} value Number or number list. A tangent of an angle, from -1 through 1.
+ * @returns {number} Number or number list. The trigonometric arctan of value. An angle, in radians, from -pi/2 through pi/2.
+ *     This represents an angle between -90 and 90 degrees.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ATAN.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#ATAN|www.oasis-open.org}
+ * @example rosetta.atan(.5); // returns 0.4636476090008061
+ * @example rosetta.atan(.5,.6,.7); // returns [0.4636476090008061, 0.5404195002705842, 0.6107259643892086]
+ */
+function atan(...value) {
+    const list = value.map(n => n instanceof Error ? n : API.isDefaultOpenFormula() ? openf.ATAN(n) : notesf.ATan(n));
+    return list.length ? (list.length === 1 ? list[0] : list) : 0;
+}
+exports.atan = atan;
+/**
+ * Returns the arc (inverse) tangent using the tangent x- and y-coordinates.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} x Number or number list. The denominator of the tangent value y / x.
+ * @param {number} y Number or number list. The numerator of the tangent value y / x.
+ * @returns {number} Number or number list. The trigonometric arctangent of y / x. An angle, in radians, from -pi through pi.
+ *     This represents an angle between -180 and 180 degrees, depending on the sign of x and y.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ATAN2.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#ATAN2|www.oasis-open.org}
+ * @example rosetta.atan2(1,1); // returns 0.7853981633974483
+ * @example rosetta.atan2([1,2,3],[1,2,3]); // returns [0.7853981633974483, 0.7853981633974483, 0.7853981633974483]
+ */
+function atan2(x, y) {
+    let list = [];
+    let xx = Array.isArray(x) ? x : [x];
+    let yy = Array.isArray(y) ? y : [y];
+    if (xx.length >= yy.length) {
+        list = xx.map((num, index) => index < yy.length ?
+            num instanceof Error ? num : API.isDefaultOpenFormula() ? openf.ATAN2(xx[index], yy[index]) : notesf.ATan2(xx[index], yy[index]) :
+            num instanceof Error ? num : API.isDefaultOpenFormula() ? openf.ATAN2(xx[index], yy[yy.length - 1]) : notesf.ATan2(xx[index], yy[yy.length - 1]));
+    }
+    else {
+        list = yy.map((num, index) => index < xx.length ?
+            num instanceof Error ? num : API.isDefaultOpenFormula() ? openf.ATAN2(xx[index], yy[index]) : notesf.ATan2(xx[index], yy[index]) :
+            num instanceof Error ? num : API.isDefaultOpenFormula() ? openf.ATAN2(xx[xx.length - 1], yy[index]) : notesf.ATan2(xx[xx.length - 1], yy[index]));
+    }
+    return list.length === 1 ? list[0] : list;
+}
+exports.atan2 = atan2;
+/**
+ * Given an angle in radians, returns the cosine of the angle. In a right triangle,
+ * the cosine of an acute angle is the ratio of the length of its adjacent side to
+ * the length of the hypotenuse.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} angle Number or number list. An angle measured in radians for which you want the cosine.
+ * @returns {number} Number or number list. The cosine of angle, from -1 to 1. Rounded to 15 decimal places.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_COS.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#COS|www.oasis-open.org}
+ * @example rosetta.cos(.5); // returns 0.8775825618903728
+ * @example rosetta.cos(.5,.6,.7); // returns [0.8775825618903728, 0.8253356149096783, 0.7648421872844885]
+ */
+function cos(...angle) {
+    const list = angle.map(n => n instanceof Error ? n : API.isDefaultOpenFormula() ? openf.COS(n) : notesf.Cos(n));
+    return list.length ? (list.length === 1 ? list[0] : list) : 0;
+}
+exports.cos = cos;
+/**
+ * Returns e (approximately 2.718282) raised to the power of a given number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} power Number or number list. The power to which you want to raise e.
+ * @returns {number} Number or number list. The number e raised to the power of the parameter. (this value can contain up to 14 decimal places).
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EXP.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#EXP|www.oasis-open.org}
+ * @example rosetta.exp(1); // returns 2.718281828459045
+ * @example rosetta.exp(1,1); // returns [2.718281828459045, 2.718281828459045]
+ */
+function exp(...power) {
+    if (API.isDefaultOpenFormula()) {
+        if (arguments.length < 1) {
+            return error.na;
+        }
+        if (arguments.length > 1) {
+            return error.error;
+        }
+        const list = power.map(n => n instanceof Error ? n : openf.EXP(n));
+        return list.length ? (list.length === 1 ? list[0] : list) : 0;
+    }
+    else {
+        return notesf.Exp(...power);
+    }
+}
+exports.exp = exp;
+/**
+ * Returns the natural log of a number. Natural logs use e (approximately 2.718282) as their base.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} value Number or number list. May be any value greater than 0, and can contain up to 15 decimal places.
+ * @returns {number} Number or number list. The natural log of number.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_LN.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#LN|www.oasis-open.org}
+ * @example rosetta.ln(5); // returns 1.6094379124341003
+ * @example rosetta.ln(5,6,7); // returns [1.6094379124341003, 1.791759469228055, 1.9459101490553132]
+ */
+function ln(...value) {
+    const list = value.map(n => n instanceof Error ? n : API.isDefaultOpenFormula() ? openf.LN(n) : notesf.Ln(n));
+    return list.length ? (list.length === 1 ? list[0] : list) : 0;
+}
+exports.ln = ln;
+/**
+ * Returns the common logarithm (base 10) of any number greater than zero.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} value Number or number list. Number who's common logarithm will be returned. Must be larger than zero.
+ * @param {number} [base] Number, optional. The base of the logarithm. If base is omitted, it is assumed to be 10.
+ * @returns {number} Number or number list. The log of number.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_LOG.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#LOG|www.oasis-open.org}
+ * @example rosetta.log(4); // returns 0.602059991327962
+ * @example rosetta.log(5,6,7); // returns [0.6989700043360187, 0.7781512503836435, 0.8450980400142567]
+ */
+function log(value, base = 10) {
+    let list = [];
+    let num = Array.isArray(value) ? value : [value];
+    list = num.map(n => API.isDefaultOpenFormula() ? openf.LOG(n, base) : notesf.Log(n));
+    return list.length === 1 ? list[0] : list;
+}
+exports.log = log;
+/**
+ * Returns the largest number in a single list, or the larger of two numbers or number lists.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} values Number or number list.
+ * @returns {number} Number or number list. The larger of the values provided. If the
+ *     parameters are number lists, NotesFormula Max returns a list that is the result of pair-wise
+ *     computation on the list values and OpenFormula Max concats the lists and returns the number result.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAX.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#MAX|www.oasis-open.org}
+ * @example rosetta.max(4,5,6); // returns 6
+ * @example rosetta.max([5,8,6,7],[2,9,3]); // returns [5, 9, 6, 7] or 9
+ */
+function max(...values) {
+    return API.isDefaultOpenFormula() ? openf.MAX(...values) : notesf.Max(...values);
+}
+exports.max = max;
+/**
+ * Returns the smallest number in a single list, or the smaller of two numbers or
+ * number lists.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} values Number or number list.
+ * @returns {number} Number or number list. NotesFormula Max returns a list that is the result of pair-wise
+ *     computation on the list values and OpenFormula Max concats the lists and returns the number result.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MIN.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#MIN|www.oasis-open.org}
+ * @example rosetta.min(4,5,6); // returns 4
+ * @example rosetta.min([5,8,6,7],[2,9,3]); // returns [2, 8, 3, 7] or 2
+ */
+function min(...values) {
+    return API.isDefaultOpenFormula() ? openf.MIN(...values) : notesf.Min(...values);
+}
+exports.min = min;
+/**
+ * Returns the constant value pi, accurate to fifteen decimal places.
+ * The value pi is the ratio of the circumference of a circle to its diameter.
+ *
+ * Category: Math and trigonometry
+ *
+ * @returns {number} Returns the constant value pi, accurate to fifteen decimal places. 3.141592653589793
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_PI.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#PI|www.oasis-open.org}
+ */
+function pi() {
+    return API.isDefaultOpenFormula() ? openf.PI() : notesf.Pi();
+}
+exports.pi = pi;
+/**
+ * Returns the result of a number raised to a power.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} base Number or number list. The value that you want raised to exponent. May be
+ *     positive or negative.
+ * @param {number} exponent Number or number list. The power to which the base number is raised.
+ * @returns {number} Number or number list. The value of base raised to the power of exponent.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_POWER.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#POWER|www.oasis-open.org}
+ * @example rosetta.power(4,2); // returns 16
+ * @example rosetta.power([5,6],[2,2]); // returns [25, 36]
+ */
+function power(base, exponent) {
+    let list = [];
+    let bs = Array.isArray(base) ? base : [base];
+    let exp = Array.isArray(exponent) ? exponent : [exponent];
+    if (bs.length >= exp.length) {
+        list = bs.map((num, index) => index < exp.length ?
+            num instanceof Error ? num : API.isDefaultOpenFormula() ? openf.POWER(bs[index], exp[index]) : notesf.Power(bs[index], exp[index]) :
+            num instanceof Error ? num : API.isDefaultOpenFormula() ? openf.POWER(bs[index], exp[exp.length - 1]) : notesf.Power(bs[index], exp[exp.length - 1]));
+    }
+    else {
+        list = exp.map((num, index) => index < bs.length ?
+            num instanceof Error ? num : API.isDefaultOpenFormula() ? openf.POWER(bs[index], exp[index]) : notesf.Power(bs[index], exp[index]) :
+            num instanceof Error ? num : API.isDefaultOpenFormula() ? openf.POWER(bs[bs.length - 1], exp[index]) : notesf.Power(bs[bs.length - 1], exp[index]));
+    }
+    return list.length === 1 ? list[0] : list;
+}
+exports.power = power;
+/**
+ * Rounds the designated number to the nearest whole number; if an additional
+ * number is specified, it is used as the rounding factor.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Number or number list. Numbers to be rounded.
+ * @param {number} digits Number. Optional. The rounding factor to use. If you don't specify
+ *     a factor, the number is rounded to the nearest whole number.
+ * @returns {number} Number or number list. The value of number, rounded to the specified factor or
+ *     to the nearest whole number. If number is a list, each number in the list is
+ *     rounded to the specified factor or to the nearest whole number.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ROUND.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#ROUND|www.oasis-open.org}
+ * @example rosetta.round(2.15,1); // returns 2.2
+ * @example rosetta.round([2.15,626.31],1); // returns [2.2, 626.3]
+ */
+function round(number, digits) {
+    let list = [];
+    let num = Array.isArray(number) ? number : [number];
+    // digits is optional but cannot be an array
+    if (Array.isArray(digits)) {
+        return new Error('#VALUE!');
+    }
+    // round to nearest whole number if no digits provided (digits = 0)
+    list = num.map(n => digits === undefined ?
+        API.isDefaultOpenFormula() ? openf.ROUND(n, 0) : notesf.Round(n) :
+        API.isDefaultOpenFormula() ? openf.ROUND(n, digits) : notesf.Round(n, digits));
+    return list.length === 1 ? list[0] : list;
+}
+exports.round = round;
+/**
+ * Indicates whether a number is positive, negative, or zero.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} value Number or number list. The number whose sign you want to determine.
+ * @returns {number} Number or number list. May be any of the following values: signed number is
+ *     negative, - 1, signed number is zero, 0, signed number is positive, 1
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SIGN_FUNCTION.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#SIGN|www.oasis-open.org}
+ * @example rosetta.sign(5); // returns 1
+ * @example rosetta.sign(5,-6,7); // returns [1, -1, 1]
+ */
+function sign(...value) {
+    const list = value.map(n => n instanceof Error ? n : API.isDefaultOpenFormula() ? openf.SIGN(n) : notesf.Sign(n));
+    return list.length ? (list.length === 1 ? list[0] : list) : 0;
+}
+exports.sign = sign;
+/**
+ * Given an angle in radians, returns the sine of the angle. In a right triangle,
+ * the sine of an acute angle is the ratio of the length of its opposite side to
+ * the length of the hypotenuse.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} angle Number or number list. An angle expressed in radians for which you want the sine.
+ * @returns {number} Number or number list. The sine of angle, from -1 to 1. Rounded to 15 decimal places.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SIN.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#SIN|www.oasis-open.org}
+ * @example rosetta.sin(.5); // returns 0.479425538604203
+ * @example rosetta.sin(.5,.6,.7); // returns [0.479425538604203, 0.5646424733950354, 0.644217687237691]
+ */
+function sin(...angle) {
+    const list = angle.map(n => n instanceof Error ? n : API.isDefaultOpenFormula() ? openf.SIN(n) : notesf.Sin(n));
+    return list.length ? (list.length === 1 ? list[0] : list) : 0;
+}
+exports.sin = sin;
+/**
+ * Given a number, returns its positive square root.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} value Number or number list. The number whose square root you want to find.
+ *     The number must be positive, otherwise sqrt returns an error.
+ * @returns {number} Number or number list. The square root of the number.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SQRT.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#SQRT|www.oasis-open.org}
+ * @example rosetta.sqrt(25); // returns 5
+ * @example rosetta.sqrt(16,64,25); // returns [4, 8, 5]
+ */
+function sqrt(...value) {
+    const list = value.map(n => n instanceof Error ? n : API.isDefaultOpenFormula() ? openf.SQRT(n) : notesf.Sqrt(n));
+    return list.length ? (list.length === 1 ? list[0] : list) : 0;
+}
+exports.sqrt = sqrt;
+/**
+ * Adds a set of numbers or number lists.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} value Number or number list. The numbers used to calculate the sum.
+ * @returns {number} Number that is the sum of the value numbers.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SUM.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#SUM|www.oasis-open.org}
+ * @example rosetta.sum(1, 2, 3); // returns 6
+ * @example rosetta.sum([1, 2, 3], [1, 4]); // returns 11
+ */
+function sum(...value) {
+    return API.isDefaultOpenFormula() ? openf.SUM(...value) : notesf.Sum(...value);
+}
+exports.sum = sum;
+/**
+ * Given an angle in radians, returns the tangent of the angle. In a right triangle
+ * the tangent of an acute angle is the ratio of the length of the opposite side to
+ * the length of the adjacent side.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} angle Number or number list. An angle expressed in radians for which you want the tangent.
+ * @returns {number} Number or number list. The tangent of angle, rounded to 15 decimal places.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_TAN.html|www.hcltechsw.com }
+ *     and {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#TAN|www.oasis-open.org}
+ * @example rosetta.tan(.5); // returns 0.5463024898437905
+ * @example rosetta.tan(.5,.6,.7); // returns [0.5463024898437905, 0.6841368083416923, 0.8422883804630794]
+ */
+function tan(...angle) {
+    const list = angle.map(n => n instanceof Error ? n : API.isDefaultOpenFormula() ? openf.TAN(n) : notesf.Tan(n));
+    return list.length ? (list.length === 1 ? list[0] : list) : 0;
+}
+exports.tan = tan;
+//-----------------------------
+// Open Formula math-trig
+/**
+ * Returns the inverse hyperbolic cosine of a number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Any real number equal to or greater than 1.
+ * @returns {number} Number that is the trigonometric inverse hyperbolic cosine of the number.
+ * @example rosetta.acosh(1); // returns 0
+ */
+function acosh(number) {
+    return openf.ACOSH(number);
+}
+exports.acosh = acosh;
+/**
+ * Returns the inverse cotangent of a number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Number that is the cotangent of the angle you want. This must be a real number.
+ * @returns {number} Number that is the trigonometric inverse cotangent of the number.
+ * @example rosetta.acot(1); // returns 0.7853981633974483
+ */
+function acot(number) {
+    return openf.ACOT(number);
+}
+exports.acot = acot;
+/**
+ * Returns the inverse hyperbolic cotangent of a number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Any real number equal to or greater than 1.
+ * @returns {number} Number that is the trigonometric inverse hyperbolic cotangent of the number.
+ * @example rosetta.acoth(1); // returns Infinity
+ */
+function acoth(number) {
+    return openf.ACOTH(number);
+}
+exports.acoth = acoth;
+/**
+ * Returns an aggregate in a list or database.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} function_num A number 1 to 19 that specifies which function to use.
+ * @param {number} options A numerical value that determines which values to ignore in the
+ *     evaluation range for the function. Note: The function will not ignore hidden rows,
+ *     nested subtotals or nested aggregates if the array argument includes a calculation,
+ *     for example: =AGGREGATE(14,3,A1:A100*(A1:A100>0),1)
+ * @param {number | number[]} ref1 The first numeric argument for functions that take multiple
+ *     numeric arguments for which you want the aggregate value.
+ * @param {number} [ref2] Optional. Numeric arguments 2 to 253 for which you want the aggregate
+ *     value. For functions that take an array, ref1 is an array, an array formula, or a reference
+ *     to a range of values for which you want the aggregate value. Ref2 is a second argument that
+ *     is required for certain functions.
+ * @returns {number} Number that is the aggregate of the input in a list or database.
+ * @example rosetta.aggregate(1, 4, [1, 2, 3]) // returns 2
+ */
+function aggregate(function_num, options, ref1, ref2) {
+    return openf.AGGREGATE(function_num, options, ref1, ref2);
+}
+exports.aggregate = aggregate;
+/**
+ * Converts a Roman number to Arabic, as a number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {string} text String enclosed in quotation marks, an empty string (""), or a reference to a value containing text.
+ * @returns {number} Number that is the Arabic form of the given Roman number
+ * @example rosetta.arabic('X') // returns 10
+ */
+function arabic(text) {
+    return openf.ARABIC(text);
+}
+exports.arabic = arabic;
+/**
+ * Returns the inverse hyperbolic sine of a number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Any real number.
+ * @returns {number} Number that is the trigonometric hyperbolic arcsine of the number.
+ * @example rosetta.asinh(0.5); // returns 0.48121182505960347
+ */
+function asinh(number) {
+    return openf.ASINH(number);
+}
+exports.asinh = asinh;
+/**
+ * Returns the inverse hyperbolic tangent of a number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Any real number between 1 and -1.
+ * @returns {number} Number that is the trigonometric hyperbolic arctangent of the number.
+ * @example rosetta.atanh(1); // returns Infinity
+ */
+function atanh(number) {
+    return openf.ATANH(number);
+}
+exports.atanh = atanh;
+/**
+ * Converts a number into a text representation with the given radix (base).
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number The number that you want to convert. Must be an integer greater than or equal to 0 and less than 2^53.
+ * @param {number} radix The base radix that you want to convert the number into. Must be an integer greater than or equal to 2 and less than or equal to 36.
+ * @param {number} [min_length] Optional. The minimum length of the returned string. Must be an integer greater than or equal to 0.
+ * @returns {number} Number that is the text representation with the given radix (base).
+ * @example rosetta.base(7, 2) // returns '111'
+ */
+function base(number, radix, min_length) {
+    return openf.BASE(number, radix, min_length);
+}
+exports.base = base;
+/**
+ * Rounds a number to the nearest integer or to the nearest multiple of significance.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number The value you want to round.
+ * @param {number} significance The multiple to which you want to round.
+ * @param {number} [mode] Optional. For negative numbers, controls whether number is rounded toward or away from zero.
+ * @returns {number} Number that is the result of rounding the provided number
+ */
+function ceiling(number, significance, mode) {
+    return openf.CEILING.MATH(number, significance, mode);
+}
+exports.ceiling = ceiling;
+ceiling.math = ceiling;
+exports.ceilingMath = ceiling.math;
+ceiling.precise = ceiling;
+exports.ceilingPrecise = ceiling.precise;
+/**
+ * Returns the number of combinations for a given number of objects.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number The number of items.
+ * @param {number} number_chosen The number of items in each combination.
+ * @returns {number} Number of combinations for the given number of items.
+ * @example rosetta.combin(3, 2) // returns 3
+ */
+function combin(number, number_chosen) {
+    return openf.COMBIN(number, number_chosen);
+}
+exports.combin = combin;
+/**
+ * Returns the number of combinations with repetitions for a given number of items.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number The number of items. Must be greater than or equal to 0, and greater than or equal to Number_chosen.
+ *     Non-integer values are truncated.
+ * @param {number} number_chosen The number of items in each combination. Must be greater than or equal to 0.
+ *     Non-integer values are truncated.
+ * @returns {number} Number of combinations (with repititions) for the given number of items.
+ * @example rosetta.combina(3, 2) // returns 6
+ */
+function combina(number, number_chosen) {
+    return openf.COMBINA(number, number_chosen);
+}
+exports.combina = combina;
+/**
+ * Returns the hyperbolic cosine of the angle.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Any real number, angle measured in radians for which you want the hyperbolic cosine.
+ * @returns {number} Number that is the trigonometric hyperbolic cosine of angle
+ * @example rosetta.cosh(0); // returns 1
+ */
+function cosh(number) {
+    return openf.COSH(number);
+}
+exports.cosh = cosh;
+/**
+ * Returns the cotangent of a number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Any real number, angle measured in radians for which you want the cotangent.
+ * @returns {number} Number that is the trigonometric cotangent of the number.
+ * @example rosetta.cot(1); // returns 0.6420926159343306
+ */
+function cot(number) {
+    return openf.COT(number);
+}
+exports.cot = cot;
+/**
+ * Returns the hyperbolic cotangent of a number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Any real number, angle measured in radians for which you want the hyperbolic cotangent.
+ * @returns {number} Number that is the trigonometric hyperbolic cotangent of the number.
+ * @example rosetta.coth(1); // returns 1.3130352854993312
+ */
+function coth(number) {
+    return openf.COTH(number);
+}
+exports.coth = coth;
+/**
+ * Returns the cosecant of an angle.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Any real number, angle measured in radians for which you want the cosecant.
+ * @returns {number} Number that is the trigonometric cosecant of the number.
+ * @example rosetta.csc(1); // returns 1.1883951057781212
+ */
+function csc(number) {
+    return openf.CSC(number);
+}
+exports.csc = csc;
+/**
+ * Returns the hyperbolic cosecant of an angle.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Any real number, angle measured in radians for which you want the hyperbolic cosecant.
+ * @returns {number} Number that is the trigonometric hyperbolic cosecant of the number.
+ * @example rosetta.csch(1); // returns 0.8509181282393216
+ */
+function csch(number) {
+    return openf.CSCH(number);
+}
+exports.csch = csch;
+/**
+ * Converts a text representation of a number in a given base into a decimal number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {string} text The number as text
+ * @param {number} radix The number as the base. Radix must be an integer.
+ * @returns {number} The converted number as a decimal.
+ * @example rosetta.decimal('10', 2) // returns 2
+ */
+function decimal(text, radix) {
+    if (arguments.length < 1) {
+        return error.value;
+    }
+    return openf.DECIMAL(text, radix);
+}
+exports.decimal = decimal;
+/**
+ * Converts radians to degrees.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} angle The angle in radians that you want to convert.
+ * @returns {number} The converted angle in degrees.
+ * @example rosetta.degrees(Math.PI) // returns 180
+ */
+function degrees(angle) {
+    return openf.DEGREES(angle);
+}
+exports.degrees = degrees;
+/**
+ * Rounds a number up to the nearest even integer.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number The value to round.
+ * @returns {number} The number rounded up to the nearest even integer.
+ * @example rosetta.even(3) // returns 4
+ */
+function even(number) {
+    return openf.EVEN(number);
+}
+exports.even = even;
+/**
+ * Returns the factorial of a number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number The nonnegative number for which you want the factorial. If number is not an integer, it is truncated.
+ * @returns {number} The factorial of the given number.
+ * @example rosetta.fact(6) // returns 720
+ */
+function fact(number) {
+    return openf.FACT(number);
+}
+exports.fact = fact;
+/**
+ * Returns the double factorial of a number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number The nonnegative number for which you want the double factorial. If number is not an integer, it is truncated.
+ * @returns {number} The double factorial of the given number.
+ * @example rosetta.factDouble(10) // returns 3840
+ */
+function factDouble(number) {
+    return openf.FACTDOUBLE(number);
+}
+exports.factDouble = factDouble;
+/**
+ * Rounds a number down, toward zero.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number The numeric value you want to round.
+ * @param {number} significance The multiple to which you want to round.
+ * @returns {number} The number rounded down to the nearest multiple given.
+ * @example rosetta.floor(3.7, 2) // returns 2
+ */
+function floor(number, significance) {
+    return openf.FLOOR(number, significance);
+}
+exports.floor = floor;
+floor.math = function (number, significance, mode) {
+    return openf.FLOOR.MATH(number, significance, mode);
+};
+floor.precise = floor.math;
+/**
+ * Returns the greatest common divisor.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} numbers Number or number list. One is required, subsequent numbers are optional. 1 to 255 values for which you want the greatest common divisor. If any value is not an integer, it is truncated.
+ * @returns {number} Number that is the greatest common divisor.
+ * @see For further information, adapted from {@link http://rosettacode.org/wiki/Greatest_common_divisor#JavaScript|www.rosettacode.org }
+ * @example rosetta.gcd(24, 36) // returns 12
+ */
+function gcd(...numbers) {
+    return openf.GCD(...numbers);
+}
+exports.gcd = gcd;
+/**
+ * Truncates the values in a number or number list at the whole number, leaving off
+ * any decimals.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Number that is the value you want to truncate.
+ * @returns {number} Number that is the truncated value.
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#INT|www.oasis-open.org}
+ * @example rosetta.int(5.5); // returns 5
+ */
+function int(number) {
+    return openf.INT(number);
+}
+exports.int = int;
+exports.iso = {
+    ceiling: ceiling
+};
+/**
+ * Returns the least common multiple.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} numbers Number or number list. One is required, subsequent numbers are optional. 1 to 255 values for which you want the least common multiple. If value is not an integer, it is truncated.
+ * @returns {number} Number that is the least common multiple.
+ * @example rosetta.lcm(5, 1, 2) // returns 10
+ */
+function lcm(...numbers) {
+    return openf.LCM(...numbers);
+}
+exports.lcm = lcm;
+/**
+ * Returns the natural logarithm of 10.
+ *
+ * Category: Math and trigonometry
+ *
+ * @returns {number} Number, the natural log of 10.
+ * @example rosetta.ln10(); // returns 2.302585092994046
+ */
+function ln10() {
+    return openf.LN10();
+}
+exports.ln10 = ln10;
+/**
+ * Returns the natural logarithm of 2.
+ *
+ * Category: Math and trigonometry
+ *
+ * @returns {number} Number, the natural log of 2.
+ * @example rosetta.ln2(); // returns 0.6931471805599453
+ */
+function ln2() {
+    return openf.LN2();
+}
+exports.ln2 = ln2;
+/**
+ * Returns the base-10 logarithm of e.
+ *
+ * Category: Math and trigonometry
+ *
+ * @returns {number} Number, the base-10 logarithm of e.
+ * @example rosetta.log10E(); // returns 0.4342944819032518
+ */
+function log10E() {
+    return openf.LOG10E();
+}
+exports.log10E = log10E;
+/**
+ * Returns the base-2 logarithm of e.
+ *
+ * Category: Math and trigonometry
+ *
+ * @returns {number} Number, the base-2 logarithm of e.
+ * @example rosetta.log2E(); // returns 1.4426950408889634
+ */
+function log2E() {
+    return openf.LOG2E();
+}
+exports.log2E = log2E;
+/**
+ * Returns the base-10 logarithm of a number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number The positive real number for which you want the base-10 logarithm.
+ * @returns {number} Number that is the base-10 logarithm of the given number.
+ * @example rosetta.log10(10) // returns 1
+ */
+function log10(number) {
+    return openf.LOG10(number);
+}
+exports.log10 = log10;
+/**
+ * Returns the remainder of a division operation.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Number that is the dividend (numerator) to be divided.
+ * @param {number} divisor Number that is the divisor (denominator) to be divide dividend by.
+ * @returns {number} Number that is the remainder of dividend divided by divisor. If the
+ *     parameters are number lists, mod returns a list that is the result of
+ *     pair-wise computation on the list values.
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#MOD|www.oasis-open.org}
+ * @example rosetta.mod(7,4); // returns 3
+ */
+function mod(number, divisor) {
+    return openf.MOD(number, divisor);
+}
+exports.mod = mod;
+/**
+ * Returns a number rounded to the desired multiple.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Number that is the value to round.
+ * @param {number} multiple Number that is the multiple to which you want to round the number.
+ * @returns {number} Number that is rounded to the desired multiple.
+ * @example rosetta.mRound(10, 3) // returns 9
+ */
+function mRound(number, multiple) {
+    return openf.MROUND(number, multiple);
+}
+exports.mRound = mRound;
+/**
+ * Returns the multinomial of a set of numbers.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} numbers Number or number list, one is required, subsequent numbers are optional. 1 to 255 values for which you want the multinomial.
+ * @returns {number} Number that is the multinomial of the set of given numbers.
+ * @example rosetta.multinomial(2, 3, 4) // 1260
+ */
+function multinomial(...numbers) {
+    return openf.MULTINOMIAL(...numbers);
+}
+exports.multinomial = multinomial;
+/**
+ * Rounds a number up to the nearest odd integer.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number The value to round.
+ * @returns {number} The number rounded up to the nearest odd integer.
+ * @example rosetta.odd(4) // returns 5
+ */
+function odd(number) {
+    return openf.ODD(number);
+}
+exports.odd = odd;
+/**
+ * Returns the mathematical constant e (approximately 2.718282).
+ *
+ * Category: Math and trigonometry
+ *
+ * @returns {number} Number that is the mathematical constant e
+ * @example rosetta.e() // returns 2.718282
+ */
+function e() {
+    return openf.E();
+}
+exports.e = e;
+/**
+ * Multiplies the arguments.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} numbers Number or number list that you want to multiply, up to a maximum of 255 arguments.
+ * @returns {number} Number that is the product of the arguments.
+ * @example rosetta.product([5, 15, 30]) // returns 2250
+ */
+function product(...numbers) {
+    return openf.PRODUCT(...numbers);
+}
+exports.product = product;
+/**
+ * Returns the integer portion of a division.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} numerator Number that is the dividend.
+ * @param {number} denominator Number that is the divisor.
+ * @returns {number} The quotient of the two arguments (integer portion).
+ * @example rosetta.quotient(4.5, 3.1) // returns 1
+ */
+function quotient(numerator, denominator) {
+    return openf.QUOTIENT(numerator, denominator);
+}
+exports.quotient = quotient;
+/**
+ * Converts degrees to radians.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} angle An angle in degrees that you want to convert.
+ * @returns {number} The converted angle in radians.
+ * @example rosetta.radians(180) // returns Math.PI
+ */
+function radians(angle) {
+    return openf.RADIANS(angle);
+}
+exports.radians = radians;
+/**
+ * Generates a random number between 0 and 1, inclusive.
+ *
+ * Category: Math and trigonometry
+ *
+ * @returns {number} Random number between 0 and 1, inclusive.
+ * @see For further information, see {@link https://www.oasis-open.org/committees/download.php/16826/openformula-spec-20060221.html#RAND|www.oasis-open.org}
+ */
+function rand() {
+    return openf.RAND();
+}
+exports.rand = rand;
+/**
+ * Returns a random number between the numbers you specify.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} bottom The smallest integer RANDBETWEEN will return.
+ * @param {number} top The largest integer RANDBETWEEN will return.
+ * @returns {number} A random number between the numbers you specify.
+ * @example rosetta.randBetween(1, 10) // returns a number between 1 and 10 (inclusive)
+ */
+function randBetween(bottom, top) {
+    return openf.RANDBETWEEN(bottom, top);
+}
+exports.randBetween = randBetween;
+/**
+ * Converts an arabic numeral to roman, as text.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} arabic_numeral Number that is the Arabic numeral you want converted.
+ * @returns {string} String that is the Roman numeral form of the given Arabic number
+ * @example rosetta.roman(10) // returns 'X'
+ */
+function roman(arabic_numeral) {
+    return openf.ROMAN(arabic_numeral);
+}
+exports.roman = roman;
+/**
+ * Rounds a number down, toward zero.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Any real number that you want rounded down.
+ * @param {number} digits The number of digits to which you want to round number.
+ * @returns {number} The number rounded down
+ * @example rosetta.roundDown(3.14159, 3) // returns 3.141
+ * @example rosetta.roundDown(-3.14159, 1) // returns -3.1
+ */
+function roundDown(number, digits) {
+    return openf.ROUNDDOWN(number, digits);
+}
+exports.roundDown = roundDown;
+/**
+ * Rounds a number up, away from zero.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Any real number that you want rounded up.
+ * @param {number} digits The number of digits to which you want to round number.
+ * @returns {number} The number rounded up
+ * @example rosetta.roundUp(3.14159, 3) // returns 3.142
+ * @example rosetta.roundUp(-3.14159, 1) // returns -3.2
+ */
+function roundUp(number, digits) {
+    return openf.ROUNDUP(number, digits);
+}
+exports.roundUp = roundUp;
+/**
+ * Returns the secant of an angle.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Any real number, angle measured in radians for which you want the secant.
+ * @returns {number} Number that is the trigonometric secant of the number.
+ * @example rosetta.sec(1); // returns 1.1883951057781212
+ */
+function sec(number) {
+    return openf.SEC(number);
+}
+exports.sec = sec;
+/**
+ * Returns the hyperbolic secant of an angle.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Any real number, angle measured in radians for which you want the hyperbolic secant.
+ * @returns {number} Number that is the trigonometric hyberbolic secant of the number.
+ * @example rosetta.sech(1); // returns 0.6480542736638855
+ */
+function sech(number) {
+    return openf.SECH(number);
+}
+exports.sech = sech;
+/**
+ * Returns the sum of a power series based on the formula.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} x The input value to the power series.
+ * @param {number} power The initial power to which you want to raise x.
+ * @param {number} step The step by which to increase n for each term in the series.
+ * @param {number[]} coefficients A set of coefficients by which each successive power of x is multiplied.
+ *        The number of values in coefficients determines the number of terms in the power series.
+ *        For example, if there are three values in coefficients, then there will be three terms in the power series.
+ * @returns {number} Number that is the sum of the given power series
+ * @example rosetta.seriesSum( rosetta.pi() / 4, 0, 2,
+ *            [ 1, -1 / rosetta.fact(2), 1 / rosetta.fact(4), -1 / rosetta.fact(6) ] )
+ *            // returns 0.7071032148228457
+ */
+function seriesSum(x, power, step, coefficients) {
+    return openf.SERIESSUM(x, power, step, coefficients);
+}
+exports.seriesSum = seriesSum;
+/**
+ * Returns the hyperbolic sine of a number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Any real number, angle measured in radians for which you want the hyperbolic sine.
+ * @returns {number} Number that is the trigonometric hyberbolic sine of the number.
+ * @example rosetta.sinh(1); // returns 1.1752011936438014
+ */
+function sinh(number) {
+    return openf.SINH(number);
+}
+exports.sinh = sinh;
+/**
+ * Returns the square root of (number * pi).
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number The number by which pi is multiplied.
+ * @returns {number} Number that is the square root of (number * pi)
+ * @example rosetta.sqrtPi(3) // returns 3.0699801238394655
+ */
+function sqrtPi(number) {
+    return openf.SQRTPI(number);
+}
+exports.sqrtPi = sqrtPi;
+/**
+ * Returns a subtotal in a list or database.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} function_num Number 1-11 or 101-111 that specifies the function to use for the subtotal.
+ *     1-11 includes manually-hidden rows, while 101-111 excludes them; filtered-out values are always excluded.
+ * @param {number[]} ref1 Number or number list. The first named range or reference for which you want the subtotal.
+ * @returns {number} The subtotal of the of a list or database
+ * @example rosetta.subTotal(4, [1, 2, 3]) // returns 3 (max)
+ */
+function subTotal(function_num, ref1) {
+    return openf.SUBTOTAL(function_num, ref1);
+}
+exports.subTotal = subTotal;
+/**
+ * Returns the sum of the two given numbers.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} num1 Number that is the first addend.
+ * @param {number} num2 Number that is the second addend.
+ * @returns {number} The sum of the addends.
+ * @example rosetta.add(1.2, 4) // returns 5.2
+ */
+function add(num1, num2) {
+    if (arguments.length !== 2) {
+        return error.na;
+    }
+    return openf.ADD(num1, num2);
+}
+exports.add = add;
+/**
+ * Returns the difference between the two given numbers.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} num1 Number that is being subtracted from.
+ * @param {number} num2 Number that is being subtracted.
+ * @returns {number} The difference between the two numbers.
+ * @example rosetta.minus(10, 4) // returns 6
+ */
+function minus(num1, num2) {
+    if (arguments.length !== 2) {
+        return error.na;
+    }
+    return openf.MINUS(num1, num2);
+}
+exports.minus = minus;
+/**
+ * Returns the quotient of the two given numbers.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} dividend Number that is the dividend (numerator).
+ * @param {number} divisor Number that is the divisor (denominator).
+ * @returns {number} The quotient of the two numbers.
+ * @example rosetta.divide(10, 4) // returns 2.5
+ */
+function divide(dividend, divisor) {
+    if (arguments.length !== 2) {
+        return error.na;
+    }
+    return openf.DIVIDE(dividend, divisor);
+}
+exports.divide = divide;
+/**
+ * Returns the product of the two given numbers.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} factor1 Number that is the first factor being multiplied.
+ * @param {number} factor2 Number that is the second factor being multiplied.
+ * @returns {number} The product of the two numbers.
+ * @example rosetta.multiply(10, 4) // returns 40
+ */
+function multiply(factor1, factor2) {
+    if (arguments.length !== 2) {
+        return error.na;
+    }
+    return openf.MULTIPLY(factor1, factor2);
+}
+exports.multiply = multiply;
+/**
+ * Returns whether the first number is greater than the second number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number|string} num1 The first number to compare.
+ * @param {number|string} num2 The second number to compare.
+ * @returns {boolean} True if num1 is greater than num2
+ * @example rosetta.gt(10, 4) // returns true
+ */
+function gt(num1, num2) {
+    if (arguments.length !== 2) {
+        return error.na;
+    }
+    return openf.GT(num1, num2);
+}
+exports.gt = gt;
+/**
+ * Returns whether the first number is greater than or equal to the second number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number|string} num1 The first number to compare.
+ * @param {number|string} num2 The second number to compare.
+ * @returns {boolean} True if num1 is greater than or equal to num2
+ * @example rosetta.gte(10, 10) // returns true
+ */
+function gte(num1, num2) {
+    if (arguments.length !== 2) {
+        return error.na;
+    }
+    return openf.GTE(num1, num2);
+}
+exports.gte = gte;
+/**
+ * Returns whether the first number is less than the second number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number|string} num1 The first number to compare.
+ * @param {number|string} num2 The second number to compare.
+ * @returns {boolean} True if num1 is less than num2
+ * @example rosetta.lt(10, 4) // returns false
+ */
+function lt(num1, num2) {
+    if (arguments.length !== 2) {
+        return error.na;
+    }
+    return openf.LT(num1, num2);
+}
+exports.lt = lt;
+/**
+ * Returns whether the first number is less than or equal to the second number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number|string} num1 The first number to compare.
+ * @param {number|string} num2 The second number to compare.
+ * @returns {boolean} True if num1 is less than or equal to num2
+ * @example rosetta.lte(10, 10) // returns true
+ */
+function lte(num1, num2) {
+    if (arguments.length !== 2) {
+        return error.na;
+    }
+    return openf.LTE(num1, num2);
+}
+exports.lte = lte;
+/**
+ * Returns whether the first number is equal to the second number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number|string} value1 The first value to compare.
+ * @param {number|string} value2 The second value to compare.
+ * @returns {boolean} True if num1 is equal to num2
+ * @example rosetta.eq(10, 10) // returns true
+ */
+function eq(value1, value2) {
+    if (arguments.length !== 2) {
+        return error.na;
+    }
+    return openf.EQ(value1, value2);
+}
+exports.eq = eq;
+/**
+ * Returns whether the first number is not equal to the second number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number|string} value1 The first value to compare.
+ * @param {number|string} value2 The second value to compare.
+ * @returns {true} True if num1 is not equal to num2
+ * @example rosetta.ne(10, 10) // returns true
+ */
+function ne(value1, value2) {
+    if (arguments.length !== 2) {
+        return error.na;
+    }
+    return openf.NE(value1, value2);
+}
+exports.ne = ne;
+/**
+ * Returns the result of a number raised to a power.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} base The value that you want raised to exponent. May be positive or negative.
+ * @param {number} exponent The power to which the base number is raised.
+ * @returns {number} The value of base raised to the power of exponent.
+ * @example rosetta.pow(4,2); // returns 16
+ */
+function pow(base, exponent) {
+    if (arguments.length !== 2) {
+        return error.na;
+    }
+    return openf.POW(base, exponent);
+}
+exports.pow = pow;
+/**
+ * Adds the values specified by a given criteria.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {any[]} range The range of values that you want evaluated by criteria.
+ *     Cells in each range must be numbers or names, arrays, or references that contain numbers.
+ *     Blank and text values are ignored.
+ * @param {*} criteria The criteria in the form of a number, expression, a value reference, text,
+ *     or a function that defines which values will be added.
+ * @param {number[]} [sum_range] Optional. The actual values to add, if you want to add values
+ *     other than those specified in the range argument. If the sum_range argument is omitted,
+ *     Excel adds the values that are specified in the range argument (the same values to which
+ *     the criteria is applied). Sum_range should be the same size and shape as range. If it isn't,
+ *     performance may suffer, and the formula will sum a range of values that starts with the
+ *     first value in sum_range but has the same dimensions as range.
+ * @returns {number} The sum of the values specified by the given criteria.
+ * @example rosetta.sumIf([1, 2, 3], '>1') // returns 5
+ */
+function sumIf(range, criteria, sum_range) {
+    return openf.SUMIF(range, criteria, sum_range);
+}
+exports.sumIf = sumIf;
+/**
+ * Adds the values in a range that meet multiple criteria.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {any[]} values The range of values that you want evaluated.
+ * @returns {number} The sum of the values that meet the given criteria.
+ * @example rosetta.sumIfs([1, 2, 3], [4, 5, 6], '>4', [7, 8, 9], '<9') // returns 2
+ */
+function sumIfs(...values) {
+    return openf.SUMIFS(...values);
+}
+exports.sumIfs = sumIfs;
+/**
+ * Returns the sum of the products of corresponding array components.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {any[]} args The range of values that you want evaluated.
+ * @returns {number} The sum of the products of corresponding array components.
+ * @example rosetta.sumProduct([1, 4, 10], [0.55, 0.3, 0.1]) // returns 2.75
+ */
+function sumProduct(...args) {
+    if (!args || args.length === 0) {
+        return error.value;
+    }
+    return openf.SUMPRODUCT(...args);
+}
+exports.sumProduct = sumProduct;
+/**
+ * Returns the sum of the squares of the arguments.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} args Number or number list. One number is required, subsequent numbers are optional.
+ *     1 to 255 arguments for which you want the sum of the squares. You can also use a single array
+ *     or a reference to an array instead of arguments separated by commas.
+ * @returns {number} The sum of the squares of the arguments.
+ * @example rosetta.sumSq([1, 2, 3]) // returns 14
+ */
+function sumSq(...args) {
+    return openf.SUMSQ(...args);
+}
+exports.sumSq = sumSq;
+/**
+ * Returns the sum of the difference of squares of corresponding values in two arrays.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number[]} array_x The first array or range of values.
+ * @param {number[]} array_y The second array or range of values.
+ * @returns {number} The sum of the difference of squares of corresponding values in two arrays.
+ * @example rosetta.sumx2My2([1, 2, 3], [4, 5, 6]) // returns -63
+ */
+function sumx2My2(array_x, array_y) {
+    return openf.SUMX2MY2(array_x, array_y);
+}
+exports.sumx2My2 = sumx2My2;
+/**
+ * Returns the sum of the sum of squares of corresponding values in two arrays.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number[]} array_x The first array or range of values.
+ * @param {number[]} array_y The second array or range of values.
+ * @returns {number} The sum of the difference of squares of corresponding values in two arrays.
+ * @example rosetta.sumx2Py2([1, 2, 3], [4, 5, 6]) // returns 91
+ */
+function sumx2Py2(array_x, array_y) {
+    return openf.SUMX2PY2(array_x, array_y);
+}
+exports.sumx2Py2 = sumx2Py2;
+/**
+ * Returns the sum of squares of differences of corresponding values in two arrays.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number[]} array_x The first array or range of values.
+ * @param {number[]} array_y The second array or range of values.
+ * @returns {number} The sum of squares of differences of corresponding values in two arrays.
+ * @example rosetta.sumxmy2([1, 2, 3], [4, 5, 6]) // returns 27
+ */
+function sumxmy2(array_x, array_y) {
+    return openf.SUMXMY2(array_x, array_y);
+}
+exports.sumxmy2 = sumxmy2;
+/**
+ * Returns the hyperbolic tangent of a number.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number Any real number.
+ * @returns {number} The hyperbolic tangent of the number.
+ * @example rosetta.tanh(0.5) // returns 0.46211715726000974
+ */
+function tanh(number) {
+    return openf.TANH(number);
+}
+exports.tanh = tanh;
+/**
+ * Truncates a number to an integer or a specified precision.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number The number you want to truncate.
+ * @param {number} [digits] Optional. A number specifying the precision of the truncation. The default value for num_digits is 0 (zero).
+ * @returns {number} The truncated for of the number with the given precision.
+ * @example rosetta.trunc(0.45) // returns 0
+ * @example rosetta.trunc(12.3456, 2) // returns 12.34
+ */
+function trunc(number, digits) {
+    return openf.TRUNC(number, digits);
+}
+exports.trunc = trunc;
+//-----------------------------
+// Notes @functions math-trig
+/**
+ * Compares two numbers for equality within a confidence range.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} number1 Number or number list. Any numeric value.
+ * @param {number} number2 Number or number list. Any numeric value.
+ * @param {number} confidence Number or number list. Optional (default is 0.0001).
+ * @returns {number} Returns 1 (true) if the difference of the numbers is less than the confidence
+ *     range. Returns 0 (false) if the difference of the numbers exceeds or is equal to
+ *     the confidence range.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FLOATEQ.html|www.hcltechsw.com }
+ * @example rosetta.floatEq(2.22, 2.24, 0.01); // returns false
+ * @example rosetta.floatEq(2.22, 2.24, 0.03); // returns true
+ * @example rosetta.floatEq([2.22, 2.24], [2.25, 2.26], 0.04); // returns true
+ */
+function floatEq(number1, number2, confidence) {
+    return notesf.FloatEq(number1, number2, confidence);
+}
+exports.floatEq = floatEq;
+/**
+ * Truncates the values in a number or number list at the whole number, leaving off
+ * any decimals.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} value Number or number list. The value(s) that is the value you want to truncate.
+ * @returns {number} Number or number list. The value(s) that is the truncated value.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_INTEGER.html|www.hcltechsw.com }
+ * @example rosetta.integer(5.5); // returns 5
+ * @example rosetta.integer(5.5,6.6,7.7); // returns [5, 6, 7]
+ */
+function integer(...value) {
+    return notesf.Integer(...value);
+}
+exports.integer = integer;
+/**
+ * Returns the remainder of a division operation.
+ *
+ * Category: Math and trigonometry
+ *
+ * @param {number} dividend Number or number list. The dividend (numerator) to be divided.
+ * @param {number} divisor Number or number list. The divisor (denominator) to be divide dividend by.
+ * @returns {number} Number or number list. The remainder of dividend divided by divisor. If the
+ *     parameters are number lists, mod returns a list that is the result of
+ *     pair-wise computation on the list values.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MODULO.html|www.hcltechsw.com }
+ * @example rosetta.modulo(7,4); // returns 3
+ * @example rosetta.modulo([7,5],[4,3]); // returns [3,2]);
+ */
+function modulo(dividend, divisor) {
+    return notesf.Modulo(dividend, divisor);
+}
+exports.modulo = modulo;
+/**
+ * Generates a random number between 0 and 1, inclusive by calling open formula RAND
+ *
+ * Category: Math and trigonometry
+ *
+ * @returns {number} Random number between 0 and 1, inclusive.
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_RANDOM.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented for NotesFormula with parameters
+ */
+function random() {
+    return notesf.Random();
+}
+exports.random = random;
+//-----------------------------
+// Notes @Commands math-trig
+//# sourceMappingURL=math-trig.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/messaging.js.html b/javadoc/messaging.js.html new file mode 100644 index 00000000..eada4713 --- /dev/null +++ b/javadoc/messaging.js.html @@ -0,0 +1,23 @@ +Source: messaging.js
On this page

messaging.js

"use strict";
+/**
+ * @file Messaging
+ * @module messaging
+ * @category Messaging
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.getIMContactListGroupNames = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesf = tslib_1.__importStar(require("../notes/messaging"));
+exports._notes = notesf;
+/**
+ * Returns the group names in the Instant Messaging Contact List.
+ * @throws {Error} no plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_GETIMCONTACTLISTGROUPNAMES.html|www.hcltechsw.com }
+ */
+function getIMContactListGroupNames() {
+    return notesf.GetIMContactListGroupNames();
+}
+exports.getIMContactListGroupNames = getIMContactListGroupNames;
+//# sourceMappingURL=messaging.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/miscellaneous.js.html b/javadoc/miscellaneous.js.html new file mode 100644 index 00000000..98d0aa9b --- /dev/null +++ b/javadoc/miscellaneous.js.html @@ -0,0 +1,447 @@ +Source: miscellaneous.js
On this page

miscellaneous.js

"use strict";
+/**
+ * @file Miscellaneous
+ * @module miscellaneous
+ * @category Miscellaneous
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.styleCycleKey = exports.smartIconsNextSet = exports.smartIconsFloating = exports.setCurrentLocation = exports.sendInstantMessage = exports.remoteDebugLotusScript = exports.pictureProperties = exports.pasteBitmapAsObject = exports.pasteBitmapAsBackground = exports.insertSubform = exports.goUpLevel = exports.formActions = exports.findFreeTimeDialog = exports.exitNotes = exports.execute = exports.exchangeUnreadMarks = exports.directories = exports.dialingRules = exports.debugLotusScript = exports.copySelectedAsTable = exports.clear = exports.checkCalendar = exports.calendarGoTo = exports.calendarFormat = exports.addToIMContactList = exports.addBookmark = exports.viewShowThisUnread = exports.verifyPassword = exports.validateInternetAddress = exports.setViewInfo = exports.setHTTPHeader = exports.setEnvironment = exports.postedCommand = exports.passwordQuality = exports.mailSend = exports.launchApp = exports.hashPassword = exports.environment = exports.enableAlarms = exports.dialogBox = exports.checkAlarms = exports._notes_vmx = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesf_base = tslib_1.__importStar(require("../notes/miscellaneous"));
+const notesf_vmx = tslib_1.__importStar(require("../notes/voltmx/miscellaneous"));
+const API = tslib_1.__importStar(require("../rosetta/API"));
+const notesf = () => API.isDefaultFrameworkVoltMX() ? notesf_vmx : notesf_base;
+const notesc = notesf; // notes commands are exposed in the notes functions source file; this notesc is just for visual cue
+exports._notes = notesf_base;
+exports._notes_vmx = notesf_vmx;
+//-----------------------------
+// Notes @functions misc
+/**
+ * Triggers the alarm daemon to check for new alarms in the mail file.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CHECKALARMS.html|www.hcltechsw.com }
+ */
+function checkAlarms() {
+    return notesf().CheckAlarms();
+}
+exports.checkAlarms = checkAlarms;
+/**
+ * Brings up a dialog box that displays the current document (either open or
+ * selected in a view). The dialog box shares fields with the underlying document.
+ * The user interacts with the dialog box as usual, clicking OK or Cancel when
+ * finished.
+ *
+ * This function can be used with any form, but it's particularly useful with forms
+ * that contain a single table or layout region, because the user can interact with
+ * the table or layout region as if it were a dialog box.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DIALOGBOX.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function dialogBox() {
+    return notesf().DialogBox();
+}
+exports.dialogBox = dialogBox;
+/**
+ * Starts or stops the alarm daemon.
+ * @throws {Error}  no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ENABLEALARMS.html|www.hcltechsw.com }
+ */
+function enableAlarms() {
+    return notesf().EnableAlarms();
+}
+exports.enableAlarms = enableAlarms;
+/**
+ * Sets or returns an environment variable stored in a formula.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ENVIRONMENT.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function environment(key, value) {
+    return notesf().Environment(key, value);
+}
+exports.environment = environment;
+/**
+ * Encodes a string.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_HASHPASSWORD.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function hashPassword() {
+    return notesf().HashPassword();
+}
+exports.hashPassword = hashPassword;
+/**
+ * Launches the requested Domino® application.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_LAUNCHAPP_FUNCTION.html|www.hcltechsw.com }
+ */
+function launchApp() {
+    return notesf().LaunchApp();
+}
+exports.launchApp = launchApp;
+/**
+ * There are two ways to use @MailSend:
+ * - When used with no parameters, &#64;MailSend mails the current document (the one
+ * being processed when the &#64;function is evaluated) to the recipient designated
+ * in the document's SendTo field. The document must have a SendTo field.
+ * - When used with one or more parameters, &#64;MailSend composes a new mail memo
+ * based on the information you supply in the arguments list, and sends it to the
+ * recipients listed in the sendTo, copyTo, and blindcopyTo arguments.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_MAILSEND.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function mailSend() {
+    return notesf().MailSend();
+}
+exports.mailSend = mailSend;
+/**
+ * Evaluates the return value of a Password data type field with a number.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_PASSWORDQUALITY.html|www.hcltechsw.com }
+ */
+function passwordQuality() {
+    return notesf().PasswordQuality();
+}
+exports.passwordQuality = passwordQuality;
+/**
+ * Indicates whether a field is locked by an administration policy and cannot be
+ * modified.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_POSTEDCOMMAND.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function postedCommand() {
+    return notesf().PostedCommand();
+}
+exports.postedCommand = postedCommand;
+/**
+ * Sets an environment variable stored in the user's notes.ini file (Windows™,
+ * OS/2, and UNIX™) or Notes® Preferences file (Macintosh).
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SETENVIRONMENT.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function setEnvironment(key, value) {
+    if (value === undefined) {
+        throw new Error('Insufficient arguments');
+    }
+    return notesf().SetEnvironment(key, value);
+}
+exports.setEnvironment = setEnvironment;
+/**
+ * In a Web application, sets the value of HTTP headers in the response being
+ * generated by the server for the browser client.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SETHTTPHEADER.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function setHTTPHeader() {
+    return notesf().SetHTTPHeader();
+}
+exports.setHTTPHeader = setHTTPHeader;
+/**
+ * In Standard Outline views, filters a view to display only documents from a
+ * specified category. In Calendar views, filters a view to display only documents
+ * that contain a specified string in a specified column.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SETVIEWINFO.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function setViewInfo() {
+    return notesf().SetViewInfo();
+}
+exports.setViewInfo = setViewInfo;
+/**
+ * Validates an Internet address based on the RFC 822 or RFC 821 Address Format
+ * Syntax.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_VALIDATEINTERNETADDRESS_5866_OVER.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function validateInternetAddress() {
+    return notesf().ValidateInternetAddress();
+}
+exports.validateInternetAddress = validateInternetAddress;
+/**
+ * Compares two passwords.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_VERIFYPASSWORD.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function verifyPassword() {
+    return notesf().VerifyPassword();
+}
+exports.verifyPassword = verifyPassword;
+/**
+ * Changes a view to show only unread documents, or to show read and unread
+ * documents.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_VIEWSHOWTHISUNREAD.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function viewShowThisUnread() {
+    return notesf().ViewShowThisUnread();
+}
+exports.viewShowThisUnread = viewShowThisUnread;
+//-----------------------------
+// Notes @Commands misc
+/**
+ * Adds a bookmark with the specified URL or current object.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADDBOOKMARK_COMMAND.html|www.hcltechsw.com }
+ */
+function addBookmark() {
+    return notesc().AddBookmark();
+}
+exports.addBookmark = addBookmark;
+/**
+ * Adds a name or names to a personal group in the Instant Messaging Contact List.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_ADDTOIMCONTACTLIST.html|www.hcltechsw.com }
+ */
+function addToIMContactList() {
+    return notesc().AddToIMContactList();
+}
+exports.addToIMContactList = addToIMContactList;
+/**
+ * Changes the Calendar view to display one day, two days, one work week, one week,
+ * two work weeks, two weeks, one work month, one month, or one year.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CALENDARFORMAT.html|www.hcltechsw.com }
+ */
+function calendarFormat() {
+    return notesc().CalendarFormat();
+}
+exports.calendarFormat = calendarFormat;
+/**
+ * Goes to a particular date in a Calendar view.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CALENDARGOTO.html|www.hcltechsw.com }
+ */
+function calendarGoTo() {
+    return notesc().CalendarGoTo();
+}
+exports.calendarGoTo = calendarGoTo;
+/**
+ * Pops up a dialog box containing a one-day calendar view. The current database
+ * must contain a calendar view for this command to function properly.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CHECKCALENDAR_COMMAND.html|www.hcltechsw.com }
+ */
+function checkCalendar() {
+    return notesc().CheckCalendar();
+}
+exports.checkCalendar = checkCalendar;
+/**
+ * Performs the menu command Edit - Delete.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_CLEAR_COMMAND.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function clear() {
+    return notesc().Clear();
+}
+exports.clear = clear;
+/**
+ * Copies one or more selected entries as a table.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_COPYSELECTEDASTABLE.html|www.hcltechsw.com }
+ */
+function copySelectedAsTable() {
+    return notesc().CopySelectedAsTable();
+}
+exports.copySelectedAsTable = copySelectedAsTable;
+/**
+ * Puts Designer into debug mode, so that all LotusScript® scripts run in the
+ * debugger. The command is a toggle; selecting it again takes Notes® out of debug
+ * mode.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DEBUGLOTUSSCRIPT.html|www.hcltechsw.com }
+ */
+function debugLotusScript() {
+    return notesc().DebugLotusScript();
+}
+exports.debugLotusScript = debugLotusScript;
+/**
+ * Displays the Dialing Rules dialog box, which allows you to define dialing rules
+ * for a modem in a Location document in a Domino® Directory.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DIALINGRULES.html|www.hcltechsw.com }
+ */
+function dialingRules() {
+    return notesc().DialingRules();
+}
+exports.dialingRules = dialingRules;
+/**
+ * Displays the Directories dialog box which allows you to search for an address,
+ * view detailed information about an address entry, and add an entry to your
+ * Domino® Directory with the Directories dialog box.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_DIRECTORIES_COMMANDS_A_TO_Z.html|www.hcltechsw.com }
+ */
+function directories() {
+    return notesc().Directories();
+}
+exports.directories = directories;
+/**
+ * For two selected database replicas, marks the documents as read in one replica
+ * that are marked as read in the other.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EXCHANGEUNREADMARKS.html|www.hcltechsw.com }
+ */
+function exchangeUnreadMarks() {
+    return notesc().ExchangeUnreadMarks();
+}
+exports.exchangeUnreadMarks = exchangeUnreadMarks;
+/**
+ * Launches an application.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EXECUTE.html|www.hcltechsw.com }
+ */
+function execute() {
+    return notesc().Execute();
+}
+exports.execute = execute;
+/**
+ * Performs the menu command File - Exit (File - Quit on the Macintosh), which
+ * closes Notes/Domino and all its open windows.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_EXITNOTES_COMMAND.html|www.hcltechsw.com }
+ */
+function exitNotes() {
+    return notesc().ExitNotes();
+}
+exports.exitNotes = exitNotes;
+/**
+ * Opens the Free Time dialog box to allow searches for available meeting times.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FINDFREETIMEDIALOG.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function findFreeTimeDialog() {
+    return notesc().FindFreeTimeDialog();
+}
+exports.findFreeTimeDialog = findFreeTimeDialog;
+/**
+ * Displays the actions pane for the current form, subform, or Page. The command is
+ * a toggle; selecting it again hides the actions pane.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_FORMACTIONS.html|www.hcltechsw.com }
+ */
+function formActions() {
+    return notesc().FormActions();
+}
+exports.formActions = formActions;
+/**
+ * Displays the view containing the current document when the user closes that
+ * document.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_GOUPLEVEL.html|www.hcltechsw.com }
+ */
+function goUpLevel() {
+    return notesc().GoUpLevel();
+}
+exports.goUpLevel = goUpLevel;
+/**
+ * Displays the Insert Subform dialog box, where you can select a subform to be
+ * inserted on a form.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_INSERTSUBFORM.html|www.hcltechsw.com }
+ */
+function insertSubform() {
+    return notesc().InsertSubform();
+}
+exports.insertSubform = insertSubform;
+/**
+ * Pastes a bitmap into the background of a navigator. All other objects in the
+ * navigator overlay the background bitmap.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_PASTEBITMAPASBACKGROUND.html|www.hcltechsw.com }
+ */
+function pasteBitmapAsBackground() {
+    return notesc().PasteBitmapAsBackground();
+}
+exports.pasteBitmapAsBackground = pasteBitmapAsBackground;
+/**
+ * Pastes a bitmap into a navigator. The bitmap becomes a hotspot which can be
+ * edited like any other hotspot.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_PASTEBITMAPASOBJECT.html|www.hcltechsw.com }
+ */
+function pasteBitmapAsObject() {
+    return notesc().PasteBitmapAsObject();
+}
+exports.pasteBitmapAsObject = pasteBitmapAsObject;
+/**
+ * Displays the Properties box for a bitmap in a rich text field.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_PICTUREPROPERTIES.html|www.hcltechsw.com }
+ */
+function pictureProperties() {
+    return notesc().PictureProperties();
+}
+exports.pictureProperties = pictureProperties;
+/**
+ * From the Notes® Remote Debugger client, opens the Select Debug Target dialog box.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REMOTEDEBUGLOTUSSCRIPT_COMMAND.html|www.hcltechsw.com }
+ */
+function remoteDebugLotusScript() {
+    return notesc().RemoteDebugLotusScript();
+}
+exports.remoteDebugLotusScript = remoteDebugLotusScript;
+/**
+ * Starts a chat with one or more users.
+ * @throws {Error} method not implemented
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SENDINSTANTMESSAGE.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function sendInstantMessage() {
+    return notesc().SendInstantMessage();
+}
+exports.sendInstantMessage = sendInstantMessage;
+/**
+ * Displays the Choose Location dialog box, where you can choose your current
+ * workstation location, such as Office, Island, or Travel.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SETCURRENTLOCATION.html|www.hcltechsw.com }
+ */
+function setCurrentLocation() {
+    return notesc().SetCurrentLocation();
+}
+exports.setCurrentLocation = setCurrentLocation;
+/**
+ * Makes the SmartIcons palette "float" so that users can move it around on the
+ * screen.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SMARTICONSFLOATING.html|www.hcltechsw.com }
+ */
+function smartIconsFloating() {
+    return notesc().SmartIconsFloating();
+}
+exports.smartIconsFloating = smartIconsFloating;
+/**
+ * Switches to display the next set of SmartIcons in the Icon bar.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_SMARTICONSNEXTSET.html|www.hcltechsw.com }
+ */
+function smartIconsNextSet() {
+    return notesc().SmartIconsNextSet();
+}
+exports.smartIconsNextSet = smartIconsNextSet;
+/**
+ * Cycles through the list of styles that have been defined for the current
+ * document, form, or page. This is the same as pressing F11. Each time you invoke
+ * StyleCycleKey, a different style goes into effect.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_STYLECYCLEKEY.html|www.hcltechsw.com }
+ */
+function styleCycleKey() {
+    return notesc().StyleCycleKey();
+}
+exports.styleCycleKey = styleCycleKey;
+//# sourceMappingURL=miscellaneous.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-URL.html b/javadoc/module-URL.html new file mode 100644 index 00000000..d4dad8f3 --- /dev/null +++ b/javadoc/module-URL.html @@ -0,0 +1,3 @@ +Module: URL
On this page

url

Source

Methods

(inner) urlDecode()

Decodes a URL string into regular text.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) urlEncode()

Encodes a string into a URL-safe format.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) urlGetHeader()

Returns specific Hypertext Transfer Protocol (HTTP) header information from the Uniform Resource Locator (URL). A URL is a text string used for identifying and addressing a Web page.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) urlHistory()

Used for navigating, saving, and reloading a Uniform Resource Locator (URL) history list. The URL history list keeps track of all the Web pages you have visited. The history list is used for the Next and Previous buttons and for the Web Tours.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) urlOpen()

Retrieves a World Wide Web page specified by its URL.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) urlQueryString()

In a Web application, returns the current URL command and parameters, or the value of one of the parameters.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-admin.html b/javadoc/module-admin.html new file mode 100644 index 00000000..54d24249 --- /dev/null +++ b/javadoc/module-admin.html @@ -0,0 +1,3 @@ +Module: admin
On this page

Administrative

Methods

(inner) adminCertify()

Displays the Choose Certifier ID dialog box, where you can select a Certifier ID file. After selecting a Certifier ID and entering its password, you select the user or server ID to be certified.

See
Throws:

No plans to implement

Type
Error

(inner) adminCreateGroup()

Opens a Domino® Directory and displays a blank Group form.

See
Throws:

No plans to implement

Type
Error

(inner) adminCrossCertifyIDFile()

Displays the Choose Certifier ID dialog box, where you can select a Certifier ID file. After you select a Certifier ID and enter its password, Notes® displays the Choose ID to be Cross-Certified dialog box, which allows you to create a hierarchical cross certificate for an ID in another organization.

See
Throws:

No plans to implement

Type
Error

(inner) adminCrossCertifyKey()

Displays the Choose Certifier ID dialog box, where you can select a Certifier ID file. After you select a Certifier ID and enter its password, Notes® displays the Cross Certify Key dialog box, which allows you to create a cross certificate for an ID in another organization using the numeric key associated with that ID.

See
Throws:

No plans to implement

Type
Error

(inner) adminDatabaseAnalysis()

Displays the Database Analysis dialog box, which provides information about the selected database on the selected server.

See
Throws:

No plans to implement

Type
Error

(inner) adminDatabaseQuotas()

For the selected server, displays a list of the databases in which you can change the size limits.

See
Throws:

No plans to implement

Type
Error

(inner) adminECLIsLocked()

Checks the current status of the Administration ECL in the name and address book and returns 1 (True) if the Administration ECL is locked and editing is prevented; otherwise returns 0 (False).

See
  • For further information, see www.hcltechsw.com
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) adminIDFileClearPassword()

Allows the administrator to delete the password associated with any user ID file, without having to first switch to that ID and make it active.

See
Throws:

No plans to implement

Type
Error

(inner) adminIDFileExamine()

Displays the Choose ID File to Examine dialog box. After the administrator selects an ID, Notes/Domino displays the ID Properties box, which contains information about security basics and your identity.

See
Throws:

No plans to implement

Type
Error

(inner) adminIDFileSetPassword()

Allows the administrator to assign a password to any user ID file, without having to first switch to that ID and make it active.

See
Throws:

No plans to implement

Type
Error

(inner) administration()

Opens the Domino® Administrator if the Domino® Administrator package is installed on the local machine of the user executing the command.

See
Throws:

No plans to implement

Type
Error

(inner) adminNewOrganization()

Displays the Register Organization Certifier dialog box, where an administrator can create a hierarchical Certifier ID for an organization. After the administrator enters a name and password for the new Certifier ID, Notes® asks the user where to save the ID file and then creates the ID.

See
Throws:

No plans to implement

Type
Error

(inner) adminNewOrgUnit()

Prompts for the Certifier ID password and then displays the Register Organizational Unit Certifier dialog box, where the administrator can create a hierarchical Certifier ID for an organizational unit.

See
Throws:

No plans to implement

Type
Error

(inner) adminOpenAddressBook()

Opens a Domino® Directory on the selected server.

See
Throws:

No plans to implement

Type
Error

(inner) adminOpenCatalog()

Opens the database catalog (CATALOG.NSF) on the selected server.

See
Throws:

No plans to implement

Type
Error

(inner) adminOpenCertLog()

Opens the certification log (CERTLOG.NSF) on the selected server.

See
Throws:

No plans to implement

Type
Error

(inner) adminOpenGroupsView()

Opens a Domino® Directory on the selected server and displays its Groups view.

See
Throws:

No plans to implement

Type
Error

(inner) adminOpenServerLog()

Opens the server log (LOG.NSF) on the selected server.

See
Throws:

No plans to implement

Type
Error

(inner) adminOpenServersView()

Opens a Domino® Directory on the selected server and displays its Servers view.

See
Throws:

No plans to implement

Type
Error

(inner) adminOpenStatistics()

Opens the statistics reporting database (STATREP5.NSF) on the selected server.

See
Throws:

No plans to implement

Type
Error

(inner) adminOpenUsersView()

Opens a Domino® Directory on the selected server and displays its People view.

See
Throws:

No plans to implement

Type
Error

(inner) adminOutgoingMail()

Displays the contents of the selected server's MAIL.BOX file.

See
Throws:

No plans to implement

Type
Error

(inner) adminRegisterFromFile()

Displays a series of dialog boxes for certifying multiple new users from a text file.

See
Throws:

No plans to implement

Type
Error

(inner) adminRegisterServer()

Displays a series of dialog boxes for creating a new server ID.

See
Throws:

No plans to implement

Type
Error

(inner) adminRegisterUser()

Displays a series of dialog boxes for certifying new users.

See
Throws:

No plans to implement

Type
Error

(inner) adminRemoteConsole()

Displays the Remote Server Console dialog box, where an administrator can enter server console commands from a workstation.

See
Throws:

No plans to implement

Type
Error

(inner) adminSendMailTrace()

Displays the Mail Path Tracing dialog box, which allows you to send a message to a location on the mail router and receive a trace message in return.

See
Throws:

No plans to implement

Type
Error

(inner) adminStatisticsConfig()

Opens the server events database (EVENTS4.NSF) on the selected server and displays its Servers to Monitor view.

See
Throws:

No plans to implement

Type
Error

(inner) adminTraceConnection()

Displays the Trace Connections dialog box, which allows you to test network connections through a passthru server.

See
Throws:

No plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-agent.html b/javadoc/module-agent.html new file mode 100644 index 00000000..fba4241c --- /dev/null +++ b/javadoc/module-agent.html @@ -0,0 +1,3 @@ +Module: agent
On this page

Agents (Domino)

Methods

(inner) agentEdit()

Opens the Agent Properties box for the currently selected agent.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) agentEnableDisable()

Enables or disables the specified agent.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) agentLog()

Displays the log for the currently selected agent. The log contains information about when the agent last ran, what actions it performed, and when it finished running.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) agentRun()

Runs the currently selected agent and then displays its log.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) agentSetServerName()

Specifies a scheduled agent to run on a particular server.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) agentTestRun()

Displays a log for the currently selected agent, describing what actions the agent will perform when run.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) isAgentEnabled()

Indicates whether or not a scheduled agent is enabled.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) runAgent()

Executes a specified agent.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) runScheduledAgents()

Runs all of the database's scheduled agents, regardless of when they are scheduled to run. The agents will then run as usual at their regularly scheduled times.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-attachment.html b/javadoc/module-attachment.html new file mode 100644 index 00000000..bc294c2e --- /dev/null +++ b/javadoc/module-attachment.html @@ -0,0 +1,3 @@ +Module: attachment
On this page

Attachments

Methods

(inner) attachmentDetachAll()

Displays the Save Attachments To dialog box, where you select a location for the current document's attachments.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) attachmentLaunch()

Launches the selected attachment by opening the application in which it was created, if possible.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) attachmentProperties()

Displays the Properties box for the current attachment.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) attachmentView()

Launches the Attachment Viewer, which lets you view the contents of the selected attachment without opening the application in which it was created.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-compatibility.html b/javadoc/module-compatibility.html new file mode 100644 index 00000000..75b5188a --- /dev/null +++ b/javadoc/module-compatibility.html @@ -0,0 +1,3 @@ +Module: compatibility
On this page
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-create.html b/javadoc/module-create.html new file mode 100644 index 00000000..91f20e09 --- /dev/null +++ b/javadoc/module-create.html @@ -0,0 +1,3 @@ +Module: create
On this page

Create

Methods

(inner) compose(serverDatabase, form) → {boolean}

Creates a new, blank document.

Parameters:
NameTypeDescription
serverDatabaseany
formstring
See
Returns:
Type: 
boolean

(inner) composeWithReference()

Creates a new document filling in the Body rich text field with values based on the current document.

See
Throws:

no plans to implement

Type
Error

(inner) createAction()

Creates a new action and opens the design pane, where you can edit the action.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) createAgent()

Creates a new agent in the current database and opens the Agent Properties box, where you can name and define the agent.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) createControlledAccessSection()

Creates a controlled access section on a form or subform. Unlike a regular section, a controlled access section has a formula to determine who can edit it.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) createEllipse()

Lets you create an ellipse in a navigator. After you invoke the command, the cursor changes to a crosshair when you start to drag the mouse in the design area. You create an ellipse by dragging the mouse until the ellipse is the size you want.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) createFolder()

Displays the Create Folder dialog box, which lets you choose a location for a new folder and create it.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) createForm()

Creates a new, blank form in a database.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) createLayoutRegion()

Creates a new layout region on a form or subform.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) createNavigator()

Creates a new, blank navigator in a database.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) createPolygon()

Lets you create a polygon in a navigator. After you invoke the command, the cursor changes to a crosshair when you start to drag the mouse in the design area. You create a polygon by clicking the mouse each time you want to start a new side. Double-click when you are done.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) createPolyline()

Lets you create a polyline in a navigator. After you invoke the command, the cursor changes to a crosshair when you start to drag the mouse in the design area. You create a polyline by clicking the mouse each time you want to start a new line. Double-click when you are done.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) createRectangle()

Lets you create a rectangle in a navigator. After you invoke the command, the cursor changes to a crosshair when you start to drag the mouse in the design area. You create a rectangle by dragging the mouse until the rectangle is the size you want.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) createRectangularHotspot()

Lets you create a rectangular hotspot in a navigator. After you invoke the command, the cursor changes to a crosshair when you start to drag the mouse in the design area. You create a rectangular hotspot by dragging the mouse until the rectangle is the size you want.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) createSection()

Creates a section.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) createSubform()

Creates a new, blank subform in a database.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) createTextbox()

Lets you create a textbox in a navigator. After you invoke the command, the cursor changes to a crosshair when you start to drag the mouse in the design area. You create a textbox by dragging the mouse until the textbox is the size you want.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error

(inner) createView()

Displays the Create View dialog box, which lets you choose a location for a new view and create it.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
Throws:

No plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-database.html b/javadoc/module-database.html new file mode 100644 index 00000000..d488c3ec --- /dev/null +++ b/javadoc/module-database.html @@ -0,0 +1,3 @@ +Module: database
On this page

Database

Methods

(inner) addDatabase()

Adds the specified database icon to the user's workspace, without opening the database.

See
Throws:

no plans to implement

Type
Error

(inner) addDatabaseRepID()

Adds an icon to the desktop for the database specified by its replica ID.

See
Throws:

no plans to implement

Type
Error

(inner) databaseDelete()

Permanently deletes the current database file from the hard disk where it is stored.

See
Throws:

no plans to implement

Type
Error

(inner) databaseReplSettings()

Displays the Replication Settings dialog box for the current database.

See
Throws:

no plans to implement

Type
Error

(inner) dAverage(database, field, criteria) → {number}

Finds the average of values in a given field from the records (rows) in a database that match a search criteria.

Parameters:
NameTypeDescription
databaseArray

Range of values that makes up the list or database. A database is a list of related data in which rows of related information are records, and columns of data are fields. The first row of the list contains labels for each column.

fieldstring

Indicates which column is used in the function. Enter the column label enclosed between double quotation marks, such as "Age" or "Yield," or a number (without quotation marks) that represents the position of the column within the list: 1 for the first column, 2 for the second column, and so on.

criteriaArray

Range of values that contains the conditions you specify. You can use any range for the criteria argument, as long as it includes at least one column label and at least one value below the column label in which you specify a condition for the column.

See
Returns:

Average of the field's values from call to OpenFormula DAVERAGE function

Type: 
number

(inner) dB2Schema(any)

Given the name of a database as a text string, returns a text string containing the DB2® schema of that database if it is a db2nsf database or the empty string if it is not a db2nsf database.

Parameters:
NameTypeDescription
anyArray

arguments

See
Throws:

No plans to implement

Type
Error

(inner) dbColumn(cache, serverDatabase, viewName, column)

Returns a column of values from a view or folder in a Domino® database.

Parameters:
NameTypeDefaultDescription
cache*
serverDatabaseany
viewNamestring
columnnumber1
See
Returns:

Promise

(inner) dbCommand(any)

Accesses view and folder information from a Domino® database in Web applications.

Parameters:
NameTypeDescription
anyArray

arguments

See
Throws:

No plans to implement

Type
Error

(inner) dbExists(any)

Given a server and file name, or replica ID, indicates whether the specified database exists.

Parameters:
NameTypeDescription
anyArray

arguments

See
Throws:

No plans to implement

Type
Error

(inner) dbLookup(cache, serverDatabase, viewName, key, field)

Given a key value, looks in the specified view (or folder) and finds all documents containing the key value within the view.

Parameters:
NameTypeDescription
cache*
serverDatabaseany
viewNamestring
keystring
fieldany
See
Returns:

Promise

(inner) dbManager(any)

Returns a list of users, groups, and servers who currently have Manager access to the database. In a window title formula, only the name of the first manager listed in the ACL is displayed.

@DbManager does not work in selection formulas or column formulas.

Parameters:
NameTypeDescription
anyArray

arguments

See
Throws:

No plans to implement

Type
Error

(inner) dbName(any)

Returns the name of the current Domino® server and database.

Parameters:
NameTypeDescription
anyArray

arguments

See
Throws:

No plans to implement

Type
Error

(inner) dbTitle(any)

Returns the title of the current database.

Parameters:
NameTypeDescription
anyArray

arguments

See
Throws:

No plans to implement

Type
Error

(inner) dCount(database, field, criteria) → {number}

Counts the number of records (rows) in a database that match a search criteria and contain numerical values.

Parameters:
NameTypeDescription
databaseArray

The database

fieldstring

The field

criteriaArray

The criteria

See
Returns:

Count of records matching search criteria from call to OpenFormula DCOUNT function

Type: 
number

(inner) dCountA(database, field, criteria) → {number}

Counts the number of records (rows) in a database that match a search criteria and contain values (as COUNTA).

Parameters:
NameTypeDescription
databaseArray

The database

fieldstring

The field

criteriaArray

The criteria

See
Returns:

Count of records matching search criteria from call to OpenFormula DCOUNTA function

Type: 
number

(inner) dGet(database, field, criteria) → {number}

Get the single value in the field from the single record (row) in a database that matches a search criteria.

Parameters:
NameTypeDescription
databaseArray

The database

fieldstring

The field

criteriaArray

The criteria

See
Returns:

Value in field matching search criteria from call to OpenFormula DGET function

Type: 
number

(inner) dMax(database, field, criteria) → {number}

Finds the maximum value in a given field from the records (rows) in a database that match a search criteria.

Parameters:
NameTypeDescription
databaseArray

The database

fieldstring

The field

criteriaArray

The criteria

See
Returns:

Maximum value of the field's values matching search criteria from call to OpenFormula DMAX function

Type: 
number

(inner) dMin(database, field, criteria) → {number}

Finds the minimum value in a given field from the records (rows) in a database that match a search criteria.

Parameters:
NameTypeDescription
databaseArray

The database

fieldstring

The field

criteriaArray

The criteria

See
Returns:

Minimum value of the field's values matching search criteria from call to OpenFormula DMIN function

Type: 
number

(inner) docChildren(any)

In a column or window title formula, returns the number of child documents or categories belonging to the current document or category. Only immediate responses count as children. For example, the responses to a main document are its children, but the responses to a response document are not.

Parameters:
NameTypeDescription
anyArray

arguments

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) docDescendants(any)

In a column or window title formula, returns the number of descendant documents or subcategories belonging to the current document or category. Where @DocChildren only counts direct descendants, @DocDescendants counts all descendants, regardless of level.

Parameters:
NameTypeDescription
anyArray

arguments

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) docLevel(any)

Returns a text string that represents the level of the document or category.

Parameters:
NameTypeDescription
anyArray

arguments

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) docNumber(any)

In a column or window title formula, returns a string representing the entry number of the current document or category. For example, 2.3 indicates that the document is the third entry following the second entry.

Parameters:
NameTypeDescription
anyArray

arguments

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) docParentNumber(any)

In a column or window title formula, returns a string that represents the entry number of the parent view entry. Both the current view entry and the parent can be either documents or categories.

Parameters:
NameTypeDescription
anyArray

arguments

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) docSiblings(any)

In a column or window title formula, returns a string that represents the total number of entries at the same level as a view entry (document or category). The returned total includes the document itself. For example, if the document is entry 8.2, and entries 8.1, 8.3, and 8.4 also exist, then there are four document siblings

Parameters:
NameTypeDescription
anyArray

arguments

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) dProduct(database, field, criteria) → {number}

Finds the product of values in a given field from the records (rows) in a database that match a search criteria.

Parameters:
NameTypeDescription
databaseArray

The database

fieldstring

The field

criteriaArray

The criteria

See
Returns:

Product of the field's values matching search criteriain field records matching search criteria from call to OpenFormula DPRODUCT function

Type: 
number

(inner) dstDev(database, field, criteria) → {number}

Finds the sample standard deviation in a given field from the records (rows) in a database that match a search criteria.

Parameters:
NameTypeDescription
databaseArray

The database

fieldstring

The field

criteriaArray

The criteria

See
Returns:

Sample standard deviation of the field's values matching search criteria from call to OpenFormula DSTDEV function

Type: 
number

(inner) dstDevP(database, field, criteria) → {number}

Finds the population standard deviation in a given field from the records (rows) in a database that match a search criteria.

Parameters:
NameTypeDescription
databaseArray

The database

fieldstring

The field

criteriaArray

The criteria

See
Returns:

Population standard deviation of the field's values matching search criteria from call to OpenFormula DSTDEVP function

Type: 
number

(inner) dSum(database, field, criteria) → {number}

Finds the sum of values in a given field from the records (rows) in a database that match a search criteria.

Parameters:
NameTypeDescription
databaseArray

The database

fieldstring

The field

criteriaArray

The criteria

See
Returns:

Sum of the field's values matching search criteria from call to OpenFormula DSUM function

Type: 
number

(inner) dVar(catabase, field, criteria) → {number}

Finds the sample variance in a given field from the records (rows) in a database that match a search criteria.

Parameters:
NameTypeDescription
catabaseArray

The database

fieldstring

The field

criteriaArray

The criteria

See
Returns:

Sample variance of the field's values matching search criteria from call to OpenFormula DVAR function

Type: 
number

(inner) dVarP(database, field, criteria) → {number}

Finds the population variance in a given field from the records (rows) in a database that match a search criteria.

Parameters:
NameTypeDescription
databaseArray

The database

fieldstring

The field

criteriaArray

The criteria

See
Returns:

Population variance of the field's values matching search criteria from call to OpenFormula DVARP function

Type: 
number

(inner) findField(database, title)

Not listed as a public database function in OpenFormula help

Parameters:
NameTypeDescription
databaseArray
titlestring
Returns:

(TBD)

(inner) getDocField(documentUNID, fieldName) → {any}

Given the unique ID of a document, returns the contents of a specific field on that document. The document must reside in the current database.

Parameters:
NameTypeDescription
documentUNIDstring
fieldNamestring
See
Returns:

fieldValue

Type: 
any

(inner) getProfileField(any)

Retrieves a field from a profile document, and caches the field value for the remainder of the session.

Parameters:
NameTypeDescription
anyArray

arguments

See
Throws:

No plans to implement

Type
Error

(inner) isCategory() → {string}

In a column formula, returns a specified string if any item in the row of a view is defined as a category.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error
Returns:
Type: 
string

(inner) isDB2() → {boolean}

Given a server and filename or server and replica ID, indicates if the specified database is backed by DB2® or not.

See
Throws:

No plans to implement

Type
Error
Returns:
Type: 
boolean

(inner) isExpandable() → {string}

In column formulas, returns a specified string if a row in a view can be expanded.

See
Throws:

No plans to implement

Type
Error
Returns:
Type: 
string

(inner) publishDatabase()

Displays the Publish Database dialog box, where the user selects a library in which to publish the selected database.

See
Throws:

no plans to implement

Type
Error

(inner) renameDatabase()

For a particular database on the user's workspace, RenameDatabase locates a replica of that database (based on its replica ID) on the specified server, and replaces the database icon with that of the replica. The only change the user sees is that the server name has changed on the database icon.

See
Throws:

no plans to implement

Type
Error

(inner) replicaID() → {string}

Returns the replica ID of the current database.

See
Throws:

No plans to implement

Type
Error
Returns:
Type: 
string

(inner) selectDocuments(formula) → {*}

Returns a Promise that can be resolved to an array of selected documents.

Parameters:
NameTypeDescription
formulastring
See
Returns:

Promise

Type: 
*

(inner) serverName() → {string}

Returns the name of the server containing the current database. When the database is local, returns the user name.

See
Throws:

No plans to implement

Type
Error
Returns:
Type: 
string

(inner) setDocField(documentUNID, fieldName, fieldValue)

Given the unique ID of a document, sets the value of a specific field on that document. The document must reside in the current database.

Parameters:
NameTypeDescription
documentUNIDstring

The unique ID of a document.

fieldNamestring

The name of a field in the current document.

fieldValueany

The value to set the field.

See

(inner) setProfileField() → {*}

Sets the value of a field in a profile document or creates a profile document.

See
Throws:

No plans to implement

Type
Error
Returns:
Type: 
*

(inner) switchView()

Switches to the specified view or folder within the current database or, if a view or folder is not specified, displays the View menu so the user can select a view.

See
Throws:

no plans to implement

Type
Error

(inner) viewTitle() → {string|Array.<string>}

Returns the current view's name. If there are aliases and synonyms, they are returned in a text list.

See
Throws:

No plans to implement

Type
Error
Returns:
Type: 
string | Array.<string>

(inner) webDbName() → {string}

Returns the name of the current database encoded for URL inclusion.

See
Throws:

No plans to implement

Type
Error
Returns:
Type: 
string
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-date-time.html b/javadoc/module-date-time.html new file mode 100644 index 00000000..15c5b457 --- /dev/null +++ b/javadoc/module-date-time.html @@ -0,0 +1,3 @@ +Module: date-time
On this page

Date & Time

Methods

(inner) accessed()

Indicates the time and date when the document was last accessed by a Notes® client, whether for reading or editing.

See
Throws:

No plans to implement

Type
Error

(inner) adjust(dateOrDateList, years, months, days, hours, minutes, seconds) → {DateOrDateList}

Adjusts the specified time-date value by the number of years, months, days, hours, minutes, and/or seconds you specify. The amount of adjustment may be positive or negative.

Parameters:
NameTypeDescription
dateOrDateListDateOrDateList

The Date or list of Dates you want to increment. This should be a single date, not a range.

yearsnumber

The number of years to increment by.

monthsnumber

The number of months to increment by.

daysnumber

The number of days to increment by.

hoursnumber

The number of hours to increment by.

minutesnumber

The number of minutes to increment by.

secondsnumber

The number of seconds to increment by.

See
Returns:

The adjusted date or list of adjusted dates.

Type: 
DateOrDateList
Example
rosetta.adjust(rosetta.date(2006, 2, 2), 0, 2, 28, 0, 0, 0) // returns 2006, 4, 30

(inner) businessDays()

Returns the number of business days in one or more date ranges.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) created()

Returns the time-date when the document was created.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) date(yearOrDateTime, month, day, hour, minute, second) → {string}

Constructs the date from year, month, and day of month or translates numbers for the various components of time and date, then returns the time-date value.

Parameters:
NameTypeDescription
yearOrDateTimenumber | Date | Array.<Date>

The year that you want to appear in the resulting date. You must specify an entire four-digit year. (For example, use 1996, not 96). Or Time-date or time-date list. For a time-date value such as @Now or [10/31/93 12:00:00], @Date removes the time portion of the value, leaving only the date.

monthnumber

Optional (when DateTime provided). The month that you want to appear in the resulting date. (For example, use 1 to specify January).

daynumber

Optional (when DateTime provided). The day that you want to appear in the resulting date.

hournumber

Optional. The number of hours. This value will be truncated from the resulting date.

minutenumber

Optional. The number of minutes. This value will be truncated from the resulting date.

secondnumber

Optional. The number of seconds. This value will be truncated from the resulting date.

See
Returns:

A string representation of the date and time of the given year, month and day

Type: 
string
Examples
rosetta.date(12, 12, 12) // returns 'Thu Dec 12 1912 00:00:00 GMT-0500 (Eastern Standard Time)'
rosetta.date(dateObj) // returns 'Thu Dec 12 1912 00:00:00 GMT-0500 (Eastern Standard Time)'

(inner) dateDif(start_date, end_date, unit) → {Number}

Calculates the number of days, months, or years between two dates.

Parameters:
NameTypeDescription
start_datestring | number | Date

A date that represents the first, or starting date of a given period.

end_datestring | number | Date

A date that represents the last, or ending, date of the period.

unitstring

The type of information that you want returned, where:

  • "Y": The number of complete years in the period.
  • "M": The number of complete months in the period.
  • "D": The number of days in the period.
  • "MD": The difference between the days in start_date and end_date. The months and years of the dates are ignored.
  • "YM": The difference between the months in start_date and end_date. The days and years of the dates are ignored
  • "YD": The difference between the days of start_date and end_date. The years of the dates are ignored.
See
Returns:

Days, months, or years between given dates.

Type: 
Number
Examples
rosetta.dateDif('1/1/2001', '1/1/2003', 'Y') // returns 2
rosetta.dateDif('6/1/2001', '8/15/2002', 'D') // returns 440

(inner) dateValue(date_text) → {Date}

Returns the string representation of the date and time from given text.

Parameters:
NameTypeDescription
date_textstring

Text that represents a date in an OpenFormula date format, or a reference to a value that contains text that represents a date in an OpenFormula date format.

See
Returns:

A string representation of the date and time of the given date.

Type: 
Date
Example
rosetta.dateValue('1/1/1900') // returns new Date(1990, 0, 1);

(inner) day(dateOrDateList) → {NumberOrNumberList}

Extracts the day of the month from the specified date.

Parameters:
NameTypeDescription
dateOrDateListstring | number | DateOrDateList

The date, as a string, number, Date object, or Array of Date objects, of the day you are trying to find.

See
Returns:

Number or Number list. Day portion (or list of days) of the date (or list of dates).

Type: 
NumberOrNumberList
Examples
rosetta.day(2958465) // returns 31 (openformula)
rosetta.day(new Date(1900, 0, 1)) // returns 1

(inner) days(endDate, startDate) → {number}

Returns the number of days between two dates.

Parameters:
NameTypeDescription
endDatestring | number | Date

A date that represents the last, or ending, date of the period

startDatestring | number | Date

A date that represents the first, or starting date of a given period

See
Returns:

Number of days between two given dates.

Type: 
number
Example
rosetta.days('1/2/1900', '1/1/1900') // returns 1

(inner) days360(endDate, startDate, methodopt) → {number}

Calculates the number of days between two dates based on a 360-day year.

Parameters:
NameTypeAttributesDescription
endDatestring | number | Date

A date that represents the last, or ending, date of the period.

startDatestring | number | Date

A date that represents the first, or starting date of a given period.

methodstring<optional>

Optional. A logical value that specifies whether to use the U.S. or European method in the calculation. The default is FALSE.

  • FALSE U.S. (NASD) method. If the starting date is the last day of a month, it becomes equal to the 30th day of the same month. If the ending date is the last day of a month and the starting date is earlier than the 30th day of a month, the ending date becomes equal to the 1st day of the next month; otherwise the ending date becomes equal to the 30th day of the same month.
  • TRUE European method. Starting dates and ending dates that occur on the 31st day of a month become equal to the 30th day of the same month.
See
Returns:

Number of days between two given dates based on a 360-day year.

Type: 
number
Example
rosetta.days360('1/1/1901', '12/31/1901', true) // returns 359

(inner) eDate(startDate, months) → {Date}

Returns the date and time that is the indicated number of months before or after the start date.

Parameters:
NameTypeDescription
startDatestring | number | Date

A date that represents the first, or starting date of a given period.

monthsnumber

The number of months before or after start_date. A positive value for months yields a future date; a negative value yields a past date.

See
Returns:

The date of the given date and number of months.

Type: 
Date
Example
rosetta.eDate(new Date(2011, 0, 23), 1) // returns new Date(2011, 1, 23)

(inner) eoMonth(startDate, months) → {Date}

Returns the string representation of the date and time of the last day of the month before or after a specified number of months.

Parameters:
NameTypeDescription
startDatestring | number | Date

A date that represents the first, or starting date of a given period.

monthsnumber

Number of months before or after start_date. A positive value for months yields a future date; a negative value yields a past date.

See
Returns:

The date of the given date number of months.

Type: 
Date
Example
rosetta.eoMonth('1/1/2005', 12) // returns new Date('1/1/2005', 12)

(inner) getCurrentTimeZone()

Returns the current operating system's time zone settings in canonical time zone format.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) hour(dateOrDateList) → {NumberOrNumberList}

Extracts the number of the hour (0 through 23) from a specified Date.

Parameters:
NameTypeDescription
dateOrDateListstring | number | DateOrDateList

The date, as a string, number, Date object, or Array of Date objects, of the hour you are trying to find.

See
Returns:

Number or Number list. Hour portion (or list of hours) of the given date.

Type: 
NumberOrNumberList
Examples
rosetta.hour('1/1/1900 1:00') // returns 1 (openformula)
rosetta.hour(rosetta.date(95, 11, 20, 8, 58, 12)) // returns 8

(inner) interval(second) → {string}

Calculates the number of years, months, days, hours, minutes and seconds from a specified number of seconds.

Parameters:
NameTypeDescription
secondnumber

Number of seconds.

See
Returns:

A string representing the years, months, days, hours, minutes and seconds based on the given number of seconds.

Type: 
string
Example
rosetta.interval(10000000) // returns 'P3M25DT17H46M40S'

(inner) isoWeekNum(date) → {number}

Returns the number of the ISO week number of the year for a given date.

Parameters:
NameTypeDescription
datestring | number | Date

The date.

See
Returns:

Number of the week in the year of given date.

Type: 
number
Example
rosetta.isoWeekNum('1/8/1901') // returns 2

(inner) locale()

Returns information about language codes.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) minute(dateOrDateList) → {NumberOrNumberList}

Extracts the number of the minutes (0 through 23) from a specified Date.

Parameters:
NameTypeDescription
dateOrDateListstring | number | DateOrDateList

The date, as a string, number, Date object, or Array of Date objects, of the minuntes you are trying to find.

See
Returns:

Number or Number list. Minutes portion (or list of minutes) of the given date.

Type: 
NumberOrNumberList
Examples
rosetta.minute('1/1/1900 1:00') // returns 0 (openformula)
rosetta.minute(rosetta.date(95, 11, 20, 8, 58, 12)) // returns 58

(inner) modified()

Returns a time-date value indicating when the document was modified initially.

See
To Do
  • this needs to be implemented

(inner) month(dateOrDateList) → {NumberOrNumberList}

Extracts the number of the month from the specified date.

Parameters:
NameTypeDescription
dateOrDateListstring | number | DateOrDateList

The date, as a string, number, Date object, or Array of Date objects of the month you are trying to find.

See
Returns:

Number or Number list. Month portion (or list of days) of the date (or list of dates).

Type: 
NumberOrNumberList
Examples
rosetta.month(2958465) // returns 12 (openformula)
rosetta.month(new Date(1900, 0, 1)) // returns 1

(inner) netWorkDays(startDate, endDate, holidaysopt) → {number}

Return the number of whole workdays between two dates. Working days exclude weekends and any dates identified in holidays.

Parameters:
NameTypeAttributesDescription
startDatestring | number | Date

A date that represents the first, or starting date of a given period

endDatestring | number | Date

A date that represents the last, or ending, date of the period

holidaysArray<optional>

An optional range of one or more dates to exclude from the working calendar, such as state and federal holidays and floating holidays.

See
Returns:

The number of whole workdays between two dates from call to OpenFormula NETWORKDAYS function

Type: 
number

(inner) now() → {Date}

Returns the string representation of the current date and time.

See
Returns:

A date representation of the current date and time

Type: 
Date
Example
rosetta.now() // returns 'Wed Jun 07 2023 12:26:36 GMT-0400 (Eastern Daylight Time)'

(inner) second(dateOrDateList) → {NumberOrNumberList}

Extracts the number of the seconds (0 through 23) from a specified Date. This function presumes that leap seconds never exist.

Parameters:
NameTypeDescription
dateOrDateListstring | number | DateOrDateList

The date, as a string, number, Date object, or Array of Date objects, of the seconds you are trying to find.

See
Returns:

Number or Number list. Seconds portion (or list of seconds) of the given date.

Type: 
NumberOrNumberList
Examples
rosetta.second('1/1/1900') // returns 0 (open formula)
rosetta.second(rosetta.date(95, 11, 20, 8, 58, 12)) // returns 12

(inner) time(…args) → {number}

Constructs and returns a Date object from one of the following combination of time-date parameters: ( hour, minute, second ), ( year, month, day, hour, minute, second ), or Date object or array of Date objects, as per the notes formula Time function parameters.

Parameters:
NameTypeAttributesDescription
argsany<repeatable>

Date-time object or list of Dates, 6 Numbers representing the date-time, or 3 Numbers from 0 (zero) to 32767 representing the hour, minute, day. Any value greater than 23 will be divided by 24 and the remainder will be treated as the time value.

See
Returns:

A number representing time (as a fraction of a day) or Date-time object of the current time; display usually formatted in current locale.

Type: 
number
Examples
rosetta.time(1, 1, 1) // returns 0.04237268518518519 (openformula)
rosetta.time(93, 12, 24, 12, 30, 40) // returns 1993-12-24 12:30:40.000 -0000
rosetta.time(new Date(93, 12, 24, 12, 30, 40)) // returns 1993-12-24 12:30:40.000 -0000

(inner) timeMerge()

Builds a time-date value from separate date, time, and time zone values.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) timeValue(timeText) → {number}

Converts a time in the form of text to a serial number.

Parameters:
NameTypeDescription
timeTextstring

The time represented by a text string.

See
Returns:

The decimal number of the time represented by a text string. The decimal number is a value ranging from 0 (zero) to 0.99988426, representing the times from 0:00:00 (12:00:00 AM) to 23:59:59 (11:59:59 P.M.).

Type: 
number
Example
rosetta.timeValue('1/1/1900 12:00:00') // returns ~ 0.5

(inner) today() → {Date}

Returns today's date.

See
Returns:

The date object for the current date and time.

Type: 
Date
Example
rosetta.today() // returns 'Wed Jun 07 2023 12:26:36 GMT-0400 (Eastern Daylight Time)'

(inner) tomorrow()

Returns the time-date value that corresponds to tomorrow's date.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) weekday(date, returnTypeopt) → {number}

Extracts the day of the week from a date; if text, uses current locale to convert to a date. Returns a number that identifies the day.

Parameters:
NameTypeAttributesDescription
datestring | number | Date

The date

returnTypenumber<optional>

A number that determines the type of return value. The default is 1.

  • 1 Numbers 1 (Sunday) through 7 (Saturday)
  • 2 Numbers 1 (Monday) through 7 (Sunday)
  • 3 Numbers 0 (Monday) through 6 (Sunday)
  • 11 Numbers 1 (Monday) through 7 (Sunday)
  • 12 Numbers 1 (Tuesday) through 7 (Monday)
  • 13 Numbers 1 (Wednesday) through 7 (Tuesday)
  • 14 Numbers 1 (Thursday) through 7 (Wednesday)
  • 15 Numbers 1 (Friday) through 7 (Thursday)
  • 16 Numbers 1 (Saturday) through 7 (Friday)
  • 17 Numbers 1 (Sunday) through 7 (Saturday)
See
Returns:

The day of the week of a given date as a number from 1 through 7. (default)

Type: 
number
Examples
rosetta.weekday(rosetta.date(1900, 0, 31)) // returns 4
rosetta.weekday(2958465) // returns 6 (openf only)
rosetta.weekday([rosetta.date(95, 11, 20, 8, 58, 12), rosetta.date(95, 11, 21, 8, 58, 12)]) // returns [2, 3]

(inner) weekNum(date, return_typeopt) → {number}

Converts a date to a number representing where the week falls numerically with a year.

There are two systems used for this function:

  • System 1 The week containing January 1 is the first week of the year, and is numbered week 1.
  • System 2 The week containing the first Thursday of the year is the first week of the year, and is numbered as week 1. This system is the methodology specified in ISO 8601, which is commonly known as the European week numbering system.
Parameters:
NameTypeAttributesDescription
datestring | number | Date

A date within the week.

return_typenumber<optional>

Optional. A number that determines on which day the week begins. The default is 1.

  • 1 Sunday, System 1 (Default value)
  • 2 Monday, System 1
  • 11 Monday, System 1
  • 12 Tuesday, System 1
  • 13 Wednesday, System 1
  • 14 Thursday, System 1
  • 15 Friday, System 1
  • 16 Saturday, System 1
  • 17 Sunday, System 1
  • 21 Monday, System 2
See
Returns:

The week number of given date.

Type: 
number
Example
rosetta.weekNum('2/1/1909', 2) // returns 6

(inner) workDay(startDate, days, holidaysopt) → {number}

Return the serial number of the date before or after a specified number of workdays.

Parameters:
NameTypeAttributesDescription
startDatestring | number | Error

A date that represents the first, or starting date of a given period

daysnumber

The number of nonweekend and nonholiday days before or after start_date. A positive value for days yields a future date; a negative value yields a past date.

holidaysArray<optional>

An optional range of one or more dates to exclude from the working calendar, such as state and federal holidays and floating holidays.

See
Returns:

The number of whole workdays between two dates from call to OpenFormula WORKDAY function

Type: 
number

(inner) year(dateOrDateList) → {NumberOrNumberList}

Extracts the number of the month from the specified date.

Parameters:
NameTypeDescription
dateOrDateListstring | number | DateOrDateList

The date, as a string, number, Date object, or Array of Date objects of the year you are trying to find.

See
Returns:

Number or Number list. Year portion (or list of days) of the date (or list of dates).

Type: 
NumberOrNumberList
Examples
rosetta.year(2958465) // returns 1995 (openformula)
rosetta.year(new Date(1900, 0, 1)) // returns 1900

(inner) yearFrac(startDate, endDate, basisopt) → {number}

Returns the year fraction representing the number of whole days between start_date and end_date.

Parameters:
NameTypeAttributesDefaultDescription
startDatestring | number | Date

A date that represents the first, or starting date of a given period.

endDatestring | number | Date

A date that represents the last, or ending, date of the period.

basisnumber<optional>
0

The type of day count basis to use:

  • 0 US (NASD) 30/360 (Default value)
  • 1 Actual/actual
  • 2 Actual/360
  • 3 Actual/365
  • 4 European 30/360
See
Returns:

The year fraction of whole days between given dates.

Type: 
number
Examples
rosetta.yearFrac('1/31/1900', '3/31/1900', 0) // returns ~ 0.16666666666666666
rosetta.yearFrac('1/1/1904', '1/1/1905', 1) // returns 1

(inner) yesterday()

Returns the time-date value which corresponds to yesterday's date.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) zone()

Returns the time zone setting of the current computer or of a time-date value, and indicates if daylight-saving time is observed.

The time zone is represented as the number of hours that must be added to the time-date to convert it to Greenwich Mean Time.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-design.html b/javadoc/module-design.html new file mode 100644 index 00000000..8a08ed03 --- /dev/null +++ b/javadoc/module-design.html @@ -0,0 +1,3 @@ +Module: design
On this page

Design

Methods

(static) designDocumentInfo()

Displays the Properties box for the current document.

See
Throws:

No plans to implement

Type
Error

(static) designFormAttributes()

Displays the Properties box for the current form, subform, or page.

See
Throws:

No plans to implement

Type
Error

(static) designFormFieldDef()

Displays the Properties box for the currently selected field.

See
Throws:

No plans to implement

Type
Error

(static) designFormNewField()

Creates a new field on a form or subform.

See
Throws:

No plans to implement

Type
Error

(static) designForms()

Displays the Design - Forms view of the current database.

See
Throws:

No plans to implement

Type
Error

(static) designFormShareField()

Turns a single-use field into a shared field.

See
Throws:

No plans to implement

Type
Error

(static) designFormUseField()

Displays the Insert Shared Field dialog box, where the user can select a shared field to place on the current form or subform.

See
Throws:

No plans to implement

Type
Error

(static) designFormWindowTitle()

Displays the design pane and sets the Event edit control to Window Title, so you can define a formula for a form's window title.

See
Throws:

No plans to implement

Type
Error

(static) designHelpAboutDocument()

Displays the About document in Edit mode for the current database.

See
Throws:

No plans to implement

Type
Error

(static) designHelpUsingDocument()

Displays the Using document in Edit mode for the current database.

See
Throws:

No plans to implement

Type
Error

(static) designIcon()

Displays the Design Icon dialog box, where you can edit the icon for the currently selected database.

See
Throws:

No plans to implement

Type
Error

(static) designMacros()

Displays the Agents and Release 3 macros in the current database.

See
Throws:

No plans to implement

Type
Error

(static) designRefresh()

Displays the Refresh Database Design dialog box, where the user can choose a server that contains the design template for the current database.

See
Throws:

No plans to implement

Type
Error

(static) designReplace()

Displays the Replace Database Design dialog box, where the user can choose a design template to replace that of the current database.

See
Throws:

No plans to implement

Type
Error

(static) designSharedFields()

Displays the Design - Shared Fields view in the current database.

See
Throws:

No plans to implement

Type
Error

(static) designSynopsis()

Displays the Design Synopsis dialog box so the user can select the types of information to be included in the synopsis.

See
Throws:

No plans to implement

Type
Error

(static) designViewAppendColumn()

Creates a column in a view or folder, positioned after the last column.

See
Throws:

No plans to implement

Type
Error

(static) designViewAttributes()

Displays the Properties box for the current view or folder.

See
Throws:

No plans to implement

Type
Error

(static) designViewColumnDef()

Displays the Properties box for the currently selected column.

See
Throws:

No plans to implement

Type
Error

(static) designViewEditActions()

Displays or hides the action pane.

See
Throws:

No plans to implement

Type
Error

(static) designViewFormFormula()

Displays the Design Form Formula dialog box, where the user can define a formula that determines which form is used to display documents opened from a particular view or folder.

See
Throws:

No plans to implement

Type
Error

(static) designViewNewColumn()

Creates a new column before the currently selected column in a view or folder.

See
Throws:

No plans to implement

Type
Error

(static) designViews()

Displays the Design - Views view in the current database.

See
Throws:

No plans to implement

Type
Error

(static) designViewSelectFormula()

Displays the design pane and sets the Define control to View Selection, which allows you to define a selection formula to determine which documents are displayed in a view.

See
Throws:

No plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-directory.html b/javadoc/module-directory.html new file mode 100644 index 00000000..4d5f3c49 --- /dev/null +++ b/javadoc/module-directory.html @@ -0,0 +1,3 @@ +Module: directory
On this page

Directory

Methods

(inner) nameLookup()

Searches for each specified user name across all Domino® Directories and returns a list of single text values for each specified user name.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) orgDir()

In a Service Provider (xSP) environment, returns the name of the subdirectory for the company with which the currently authenticated user is registered. Notes/ Domino retrieves this information from the organization's certifier document.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-document.html b/javadoc/module-document.html new file mode 100644 index 00000000..ef2fcfe4 --- /dev/null +++ b/javadoc/module-document.html @@ -0,0 +1,3 @@ +Module: document
On this page

Document

Methods

(inner) addToFolder()

Adds current document to one folder while removing it from another. NULL string can be substituted for either argument to skip the action.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) all() → {Promise.<any>}

Returns the value True.

See
Returns:
Type: 
Promise.<any>

(inner) allChildren()

Includes all response documents at all levels for parent documents that match selection criteria.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) allDescendants()

Includes all response and response-to-response documents for parents that match selection criteria.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) attachmentLengths()

Returns a number or a number list containing the length of each attachment to the current document. The number(s) returned are only approximations; the actual size(s) of the attachment(s) may be slightly different.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) attachmentModifiedTimes()

Returns a datetime that displays the date on which the file attachment associated with the current document was last modified. If the document contains more than one file attachment, returns the modification dates in a datetime list.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) attachmentNames() → {TextOrTextList}

Returns the operating system file names of any files attached to a document. If there are multiple files attached, the names are returned as a multiple-value text list.

See
Returns:
Type: 
TextOrTextList

(inner) attachments() → {number}

Returns the number of files attached to a document.

See
Returns:
Type: 
number

(inner) author() → {Array.<string>}

Returns a text list containing the names of the author(s) of the current document.

See
Returns:
Type: 
Array.<string>

(inner) chooseFolders()

Displays the Folders dialog box, which allows you to select a folder in which to file the current document.

See
Throws:

no plans to implement

Type
Error

(inner) deleteDocument() → {Promise.<any>}

Deletes the current document.

See
Returns:
Type: 
Promise.<any>

(inner) deleteField() → {void}

Deletes the value of an editable field.

See
Returns:
Type: 
void

(inner) discoverFolders()

Displays the "Folders containing current document" dialog box.

See
Throws:

no plans to implement

Type
Error

(inner) docFields()

Returns a list of all the fields in a document.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) docLength()

Returns the approximate size of a document in bytes.

See
Throws:

No plans to implement

Type
Error

(inner) docLock()

Locks, unlocks, returns the locked status of the current document, or indicates if a database has document locking enabled.

See
Throws:

no plans to implement

Type
Error

(inner) docMark()

In an agent that runs a formula, indicates whether or not you want to save the changes to a document.

See
Throws:

No plans to implement

Type
Error

(inner) docOmmittedLength()

Returns the approximate number of bytes a truncated document lost during replication. The bytes are the total number of bytes per attachment, OLE object, large rich text field, or non-summary items that were too large, according to the replication settings for the database, to be replicated.

See
Throws:

no plans to implement

Type
Error

(inner) documentUniqueID() → {string}

The universal ID, which uniquely identifies a document across all replicas of a database. In text format, the universal ID is a 32-character combination of hexadecimal digits (0-9, A-F).

The universal ID is also known as the unique ID or UNID.

See
Returns:
Type: 
string

(inner) formLanguage()

Returns the language of the current form.

See
Throws:

no plans to implement

Type
Error

(inner) formTestDocument()

Creates a document using the current form or Page, so you can test its fields, formulas, and scripts.

See
Throws:

no plans to implement

Type
Error

(inner) getField(fieldName) → {*}

Returns the value of a specified field.

Parameters:
NameTypeDescription
fieldNameany
See
Returns:

value

Type: 
*

(inner) getFieldType(fieldName) → {*}

Returns the type of a specified field.

Parameters:
NameTypeDescription
fieldNameany

uses current document

Returns:

field type - possible return values - 'string', 'number', 'date', 'richtext', 'string[]', 'number[]', 'date[], 'richtext[]', and []'

Type: 
*

(inner) getFocusTable()

Returns the name, current row, or current column of the table that is in focus.

See
Throws:

No plans to implement

Type
Error

(inner) hardDeleteDocument()

In an agent that runs a formula, @HardDeleteDocument permanently removes the document currently being processed from the database if the database has soft deletions enabled. If the database does not have soft deletions enabled, @HardDeleteDocument performs the same action as @DeleteDocument.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) inheritedDocumentUniqueID()

The unique ID of the current document's inheritance parent. See @documentUniqueID for a description of unique IDs.

See
Throws:

No plans to implement

Type
Error

(inner) isAvailable()

Checks a document for the existence of a field.

See
Throws:

method not implemented

Type
Error

(inner) isDocBeingEdited()

Checks the current status of the document and returns 1 (True) if the document is being edited; otherwise returns 0 (False).

See
Throws:

No plans to implement

Type
Error

(inner) isDocBeingLoaded()

Checks the current status of the document and returns 1 (True) if the document is being loaded into memory for display; otherwise returns 0 (False).

See
Throws:

No plans to implement

Type
Error

(inner) isDocBeingMailed()

Checks the current status of the document and returns 1 (True) if the document is being mailed; otherwise, returns 0 (False).

See
Throws:

No plans to implement

Type
Error

(inner) isDocBeingRecalculated()

Checks the current status of the document and returns 1 (True) if the document is being recalculated; otherwise, returns 0 (False).

See
Throws:

No plans to implement

Type
Error

(inner) isDocBeingSaved()

Checks the current status of the document and returns 1 (True) if the document is being saved; otherwise, returns 0 (False).

See
Throws:

No plans to implement

Type
Error

(inner) isDocTruncated()

Indicates whether the current document has been truncated.

See
Throws:

no plans to implement

Type
Error

(inner) isNewDoc()

For a document being edited, indicates if the document has been saved to disk.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) isResponseDoc()

Indicates whether a document is a response to another document.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) isUnavailable()

Indicates whether a field name exists in a document.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) moveToTrash()

Marks the currently selected document for deletion.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) noteID()

The ID number of the current document.

See
Throws:

No plans to implement

Type
Error

(inner) openInNewWindow()

Opens the specified document within a new window.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) pickList()

Displays a modal window that contains either:

  • A view you specify from which the user can select one or more documents. @pickList returns a column value from the selected document(s).
  • A dialog box, displaying information from all available Domino® Directories. The user can select one or more person, group, server, room, or resource names, and @pickList returns those names.
See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) policyIsFieldLocked()

Indicates whether a field is locked by an administration policy and cannot be modified.

See
Throws:

No plans to implement

Type
Error

(inner) prompt(style, title, promptStringopt, defaultChoiceopt, choiceListopt)

Get html to generate a prompt.

Parameters:
NameTypeAttributesDescription
style

The type of prompt to generate

title

The title for the prompt

promptString<optional>

Optional. Text to display with the prompt

defaultChoice<optional>

Optional. Default choice to select when the prompt is displayed.

choiceList<optional>

Optional. The list of avaliable choices

See
Returns:

A promise that will inject the code for the prompt into the document.

(inner) removeFromFolder()

Removes the selected document from the current folder.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) responses()

Returns the number of responses (in the current view) to the document.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) setField(fieldName, value)

Assigns a value to a field stored within a document (use @set for temporary variables). This is similar to using the FIELD keyword, except that @setField can be used within another @function. If the field does not exist, this command creates it and applies the specified value to it.

Parameters:
NameTypeDescription
fieldNamestring

The name of a field in the current document.

valueany

The value to set the field.

See

(inner) setTargetFrame()

Allows you to specify a target frame when opening a view, page, or frameset, or when composing or editing a document.

See
Throws:

no plans to implement

Type
Error

(inner) showParentPreview()

Displays the parent document preview pane.

See
Throws:

no plans to implement

Type
Error

(inner) showProperties()

Displays the Properties box for the currently selected Notes® object. For example, if a document is selected in a view, displays the document Properties box; if a field is selected on a form, displays the field Properties box.

See
Throws:

no plans to implement

Type
Error

(inner) switchForm()

Changes the form used to display the current document.

See
Throws:

no plans to implement

Type
Error

(inner) unavailable()

Deletes the value of an editable field.

See
Throws:

No plans to implement

Type
Error

(inner) undeleteDocument()

In a database with "Allow soft deletions" selected, this command restores a deleted document.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) v3EditNextField()

In a document in Edit mode, moves the insertion point to the next editable field.

See
Throws:

no plans to implement

Type
Error

(inner) v3EditPrevField()

In a document in Edit mode, moves the insertion point to the first editable field.

See
Throws:

no plans to implement

Type
Error

(inner) whichFolders()

Returns the names of the folders containing the current document.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-edit.html b/javadoc/module-edit.html new file mode 100644 index 00000000..006cab12 --- /dev/null +++ b/javadoc/module-edit.html @@ -0,0 +1,3 @@ +Module: edit
On this page

Edit

Methods

(inner) editBottom()

Moves the insertion point to the end of a document or form.

See
Throws:

No plans to implement

Type
Error

(inner) editButton()

Displays the design pane and the Properties box for the selected button.

See
Throws:

No plans to implement

Type
Error

(inner) editClear()

Performs the menu command Edit - Delete.

See
Throws:

No plans to implement

Type
Error

(inner) editCopy()

Performs the menu command Edit - Copy.

See
Throws:

No plans to implement

Type
Error

(inner) editCut()

Performs the menu command Edit - Cut.

See
Throws:

No plans to implement

Type
Error

(inner) editDeselectAll()

Performs the menu command Edit - Deselect All.

See
Throws:

No plans to implement

Type
Error

(inner) editDetach()

Detaches a file attachment to a location you specify.

See
Throws:

No plans to implement

Type
Error

(inner) editDocument()

Places the current document into the mode you specify. If you don't specify a mode, toggles between Read and Edit mode.

See
Throws:

No plans to implement

Type
Error

(inner) editDown()

Moves the insertion point in a document down by the number of lines you specify. If you don't specify a number, moves the insertion point down one line.

See
Throws:

No plans to implement

Type
Error

(inner) editEncryptionKeys()

Displays the Properties box for the current document, where you can edit its encryption keys.

See
Throws:

No plans to implement

Type
Error

(inner) editFind()

Performs the menu command Edit - Find/Replace.

See
Throws:

No plans to implement

Type
Error

(inner) editFindInPreview()

Performs the menu command Edit - Find/Replace without moving the focus to the editing window. This allows searches to take place when the focus is on the view or folder panes.

See
Throws:

No plans to implement

Type
Error

(inner) editFindNext()

Performs the menu command Edit - Find Next.

See
Throws:

No plans to implement

Type
Error

(inner) editGotoField()

In a document in Edit mode, places the insertion point in a field you specify.

See
Throws:

No plans to implement

Type
Error

(inner) editHeaderFooter()

Displays the Properties box for the current document or form, which allows you to set headers, footers, and other print attributes.

See
Throws:

No plans to implement

Type
Error

(inner) editHorizScrollbar()

Toggles the horizontal scroll bar in a document.

See
Throws:

No plans to implement

Type
Error

(inner) editIndent()

Indents a paragraph 1/4 inch. The entire paragraph is indented, as well as any paragraphs that are subsequently typed below it, until the user disables indenting.

See
Throws:

No plans to implement

Type
Error

(inner) editIndentFirstLine()

Indents the first line of a paragraph 1/4 inch. The first line of the current paragraph is indented, as well as first lines of subsequently typed paragraphs, until the user disables indenting. (A carriage return defines a new paragraph.)

See
Throws:

No plans to implement

Type
Error

(inner) editInsertButton()

Creates a new button and displays the design pane, where the user can define a formula, simple action(s), LotusScript®, or JavaScript™ for the button.

See
Throws:

No plans to implement

Type
Error

(inner) editInsertFileAttachment()

Attaches a file to a document.

See
Throws:

No plans to implement

Type
Error

(inner) editInsertObject()

Inserts an object into a document, form, or subform.

See
Throws:

No plans to implement

Type
Error

(inner) editInsertPageBreak()

Inserts a forced page break into a document, form, subform, or page.

See
Throws:

No plans to implement

Type
Error

(inner) editInsertPopup()

Creates a hotspot that displays text.

See
Throws:

No plans to implement

Type
Error

(inner) editInsertTable()

Displays the Create Table dialog box, where the user can specify the number of rows and columns in a new table.

See
Throws:

No plans to implement

Type
Error

(inner) editInsertText()

Inserts the specified string at the current cursor position.

See
Throws:

No plans to implement

Type
Error

(inner) editLeft()

Moves the insertion point in a document, form, subform, or page to the left by the number of spaces you specify. If you don't specify a number, moves the insertion point one space to the left.

See
Throws:

No plans to implement

Type
Error

Displays the External Links dialog box.

See
Throws:

No plans to implement

Type
Error

(inner) editLocations()

Opens the Personal Address Book to the Locations view.

See
Throws:

No plans to implement

Type
Error

Creates a link to the current document and copies it to the Clipboard. The user can paste the link into any rich text field.

See
Throws:

No plans to implement

Type
Error

(inner) editNextField()

In a document in Edit mode, moves the insertion point to the next editable field in the document, working left to right, beginning to end.

See
Throws:

No plans to implement

Type
Error

Opens the selected link.

See
Throws:

No plans to implement

Type
Error

(inner) editOwnerVCard()

Displays the My Contact/vCard Edit dialog using the Contact form.

See
Throws:

No plans to implement

Type
Error

(inner) editPaste()

Performs the menu command Edit - Paste.

See
Throws:

No plans to implement

Type
Error

(inner) editPasteSpecial()

Displays the Paste Special dialog box.

See
Throws:

No plans to implement

Type
Error

(inner) editPhoneNumbers()

Displays the Server/Connections view of the Personal Address Book.

See
Throws:

No plans to implement

Type
Error

(inner) editPrevField()

In a document in Edit mode, moves the insertion point to the previous editable field in the document, working right to left, end to beginning.

See
Throws:

No plans to implement

Type
Error

(inner) editProfile()

Opens a new or existing profile document in Edit mode.

See
Throws:

No plans to implement

Type
Error

(inner) editProfileDocument()

Creates a new or opens an existing profile document in Edit mode.

See
Throws:

No plans to implement

Type
Error

(inner) editQuoteSelection()

Makes selected text look like an Internet-style reply by prefixing each line with a greater-than sign and removing attachments and other objects. This sets each line of the message to a default length, preventing it from wrapping in unexpected places when sent to non-Notes users.

See
Throws:

No plans to implement

Type
Error

(inner) editResizePicture()

Displays the proportions of the selected graphic at the end of the screen. The user can size the picture by dragging the mouse in the appropriate direction.

See
Throws:

No plans to implement

Type
Error

(inner) editRestoreDocument()

Performs the menu command Edit - Restore.

See
Throws:

No plans to implement

Type
Error

(inner) editRight()

Moves the insertion point in a document to the right by the number of spaces you specify. If you don't specify a number, moves the insertion point one space to the right.

See
Throws:

No plans to implement

Type
Error

(inner) editSelectAll()

Performs the menu command Edit - Select All.

See
Throws:

No plans to implement

Type
Error

(inner) editSelectByDate()

Displays the Select by Date dialog box, where the user indicates which documents should be selected in the view or folder, according to the date they were created or last modified.

See
Throws:

No plans to implement

Type
Error

(inner) editShowHideHiddenChars()

Toggles the display of the hidden characters (such as spaces, tabs, and carriage returns) in a document, form, or subform.

See
Throws:

No plans to implement

Type
Error

(inner) editTableDeleteRowColumn()

Displays the Delete Row/Column dialog box, where the user can select the number of rows or columns to delete from the current table.

See
Throws:

No plans to implement

Type
Error

(inner) editTableFormat()

Displays the Properties box for the selected table.

See
Throws:

No plans to implement

Type
Error

(inner) editTableInsertRowColumn()

Displays the Insert Row/Column dialog box, where the user can select the number of rows or columns to insert into the table.

See
Throws:

No plans to implement

Type
Error

(inner) editTop()

Moves the insertion point to the beginning of a document or form.

See
Throws:

No plans to implement

Type
Error

(inner) editUndo()

Performs the menu command Edit - Undo, which undoes the previous reversible operation.

See
Throws:

No plans to implement

Type
Error

(inner) editUntruncate()

Retrieves the full version of a truncated document.

See
Throws:

No plans to implement

Type
Error

(inner) editUp()

Moves the insertion point in a document up by the number of lines you specify. If you don't specify a number, moves the insertion point up one line.

See
Throws:

No plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-engineering.html b/javadoc/module-engineering.html new file mode 100644 index 00000000..7cad3f9c --- /dev/null +++ b/javadoc/module-engineering.html @@ -0,0 +1,3 @@ +Module: engineering
On this page

Engineering

Methods

(inner) besselI(x, order) → {number}

Returns the modified Bessel function In(x).

Parameters:
NameTypeDescription
xnumber

The value at which to evaluate the function

ordernumber

The order of the Bessel function. If order is not an integer, it is truncated

See
Returns:

The calculated modified Bessel function for the given value of x and the specified order

Type: 
number
Example
rosettajs.besselI(2.6, 1) // returns 2.7553843378955585

(inner) besselJ(x, order) → {number}

Returns the Bessel function Jn(x).

Parameters:
NameTypeDescription
xnumber

The value at which to evaluate the function

ordernumber

The order of the Bessel function. If order is not an integer, it is truncated

See
Returns:

The calculated Bessel function for the given value of x and the specified order

Type: 
number
Example
rosettajs.besselJ(2.6, 1) // returns 0.47081826649775615

(inner) besselK(x, order) → {number}

Returns the modified Bessel function Kn(x).

Parameters:
NameTypeDescription
xnumber

The value at which to evaluate the function.

ordernumber

The order of the Bessel function. If order is not an integer, it is truncated

See
Returns:

The calculated Bessel function for the given value of x and the specified order

Type: 
number
Example
rosettajs.besselK(2.6, 1) // returns 0.0652840440474331

(inner) besselY(x, order) → {number}

Returns the Bessel function Yn(x).

Parameters:
NameTypeDescription
xnumber

The value at which to evaluate the function

ordernumber

The order of the function. If order is not an integer, it is truncated

See
Returns:

The calculated Bessel function for the given value of x and the specified order

Type: 
number
Example
rosettajs.besselY(2.6, 1) // returns 0.18836354378844533

(inner) bin2Dec(number) → {number}

Converts a binary number to decimal.

Parameters:
NameTypeDescription
numbernumber

The binary number you want to convert. Number cannot contain more than 10 characters (10 bits). The most significant bit of number is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation.

See
Returns:

A decimal for the given binary number

Type: 
number
Example
rosettajs.bin2Dec(1100001) // returns 97

(inner) bin2Hex(number, placesopt) → {string}

Converts a binary number to hexadecimal.

Parameters:
NameTypeAttributesDescription
numbernumber

The binary number you want to convert. Number cannot contain more than 10 characters (10 bits). The most significant bit of number is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation.

placesnumber<optional>

The number of characters to use. If places is omitted, bin2Hex uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros).

See
Returns:

A hexadecimal for the given binary number

Type: 
string
Examples
rosettajs.bin2Hex(11111011) // returns fb
rosettajs.bin2Hex(11111011, 4) // returns 00fb

(inner) bin2Oct(number, placesopt) → {string}

Converts a binary number to octal.

Parameters:
NameTypeAttributesDescription
numbernumber

The binary number you want to convert. Number cannot contain more than 10 characters (10 bits). The most significant bit of number is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation.

placesnumber<optional>

The number of characters to use. If places is omitted, bin2Oct uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros).

See
Returns:

A octal for the given binary number

Type: 
string
Examples
rosettajs.bin2Oct(1001) // returns 11
rosettajs.bin2Oct(1001, 4) // returns 0011

(inner) bitAnd(number1, number2) → {number}

Returns a bitwise 'AND' of two numbers.

Parameters:
NameTypeDescription
number1number

A decimal greater than or equal to 0

number2number

A decimal greater than or equal to 0

See
Returns:

A decimal that is a bitwise 'AND' of the 2 given numbers

Type: 
number
Example
rosettajs.bitAnd(7,29) // returns 5

(inner) bitLShift(number, shift) → {number}

Returns a value number shifted left by shift_amount bits.

Parameters:
NameTypeDescription
numbernumber

A integer greater than or equal to 0

shiftnumber

A integer indicating amount of bits to shift

See
Returns:

A decimal representing the specified number shifted left by specified amount of bits

Type: 
number
Example
rosettajs.bitLShift(5,3) // returns 40

(inner) bitOr(number1, number2) → {number}

Returns a bitwise 'OR' of two numbers.

Parameters:
NameTypeDescription
number1number

A decimal greater than or equal to 0

number2number

A decimal greater than or equal to 0

See
Returns:

A decimal that is a bitwise 'OR' of the 2 given numbers

Type: 
number
Example
rosettajs.bitOr(7,29) // returns 31

(inner) bitRShift(number, shift) → {number}

Returns a value number shifted right by shift_amount bits.

Parameters:
NameTypeDescription
numbernumber

A integer greater than or equal to 0

shiftnumber

A integer indicating amount of bits to shift

See
Returns:

A decimal representing the specified number shifted right by specified amount of bits

Type: 
number
Example
rosettajs.bitRShift(29,2) // returns 7

(inner) bitXOr(number1, number2) → {number}

Returns a bitwise 'XOR' of two numbers.

Parameters:
NameTypeDescription
number1number

A decimal greater than or equal to 0

number2number

A decimal greater than or equal to 0

See
Returns:

A decimal that is a bitwise 'XOR' of the 2 given numbers

Type: 
number
Example
rosettajs.bitXOr(7,29) // returns 26

(inner) complex(real, imaginary, suffixopt) → {string|number}

Converts real and imaginary coefficients into a complex number.

Parameters:
NameTypeAttributesDefaultDescription
realnumber

The real coefficient of the complex number

imaginarynumber

The imaginary coefficient of the complex number

suffixString<optional>
i

The suffix, either lowercase "i" or "j", for the imaginary component of the complex number. If omitted, suffix is assumed to be "i".

See
Returns:

A complex number from the given real and imaginary coefficient numbers

Type: 
string | number
Examples
rosettajs.complex(4,5) // returns 4+5i
rosettajs.complex(4,5,"j") // returns 4+5j

(inner) convert(number, from_unit, to_unit) → {number}

Converts a number from one measurement system to another.

Parameters:
NameTypeDescription
numbernumber

The value in from_units to convert

from_unitnumber

The units for number

to_unitnumber

The units for the result

See
Returns:

A number representing conversion from one measurement system to another

Type: 
number
Example
rosettajs.convert(1, "lbm", "kg") // returns 0.45359237

(inner) dec2Bin(number, placesopt) → {number}

Converts a decimal number to binary.

Parameters:
NameTypeAttributesDescription
numbernumber

The decimal integer you want to convert. If number is negative, valid place values are ignored and dec2Bin returns a 10-character (10-bit) binary number in which the most significant bit is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation.

placesnumber<optional>

The number of characters to use. If places is omitted, dec2Bin uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros).

See
Returns:

A binary for the given decimal number

Type: 
number
Examples
rosettajs.dec2Bin(10,5) // returns 01010
rosettajs.dec2Bin(-90) // returns 1110100110

(inner) dec2Hex(number, placesopt) → {string}

Converts a decimal number to hexadecimal.

Parameters:
NameTypeAttributesDescription
numbernumber

The decimal integer you want to convert. If number is negative, places is ignored and dec2Hex returns a 10-character (40-bit) hexadecimal number in which the most significant bit is the sign bit. The remaining 39 bits are magnitude bits. Negative numbers are represented using two's-complement notation.

placesnumber<optional>

The number of characters to use. If places is omitted, dec2Hex uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros).

See
Returns:

A hexadecimal for the given decimal number

Type: 
string
Examples
rosettajs.dec2Hex(90, 4) // returns 005a
rosettajs.dec2Hex(-75) // returns ffffffffb5

(inner) dec2Oct(number, placesopt) → {number}

Converts a decimal number to octal.

Parameters:
NameTypeAttributesDescription
numbernumber

The decimal integer you want to convert. If number is negative, places is ignored and dec2Oct returns a 10-character (30-bit) octal number in which the most significant bit is the sign bit. The remaining 29 bits are magnitude bits. Negative numbers are represented using two's-complement notation.

placesnumber<optional>

The number of characters to use. If places is omitted, dec2Oct uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros).

See
Returns:

A octal for the given decimal number

Type: 
number
Examples
rosettajs.dec2Oct(78, 3) // returns 116
rosettajs.dec2Oct(-75) // returns 7777777665

(inner) delta(number1, number2opt) → {number}

Tests whether two values are equal.

Parameters:
NameTypeAttributesDefaultDescription
number1number

The first number

number2number<optional>
0

The second number. If omitted, number2 is assumed to be zero.

See
Returns:

1 if number1 = number2; returns 0 otherwise

Type: 
number
Examples
rosettajs.delta(6, 4) // returns 0
rosettajs.delta(8, 8) // returns 1

(inner) erf(lower_bound, upper_boundopt) → {number}

Returns the error function integrated between lower_limit and upper_limit.

Parameters:
NameTypeAttributesDefaultDescription
lower_boundnumber

The lower bound for integrating ERF

upper_boundnumber<optional>
0

The upper bound for integrating ERF. If omitted, ERF integrates between zero and lower_limit.

See
Returns:

The error function integrated between lower_limit and upper_limit

Type: 
number
Example
rosettajs.erf(0.875) // returns 0.7840750610598597

(inner) erfc(x) → {number}

Returns the complementary error function.

Parameters:
NameTypeDescription
xnumber

The lower bound for integrating ERFC

See
Returns:

Complementary ERF of provided number

Type: 
number
Example
rosettajs.erfc(2) // returns 0.004677734981047288

(inner) geStep(number, stepopt) → {number}

Tests whether a number is greater than a threshold value.

Parameters:
NameTypeAttributesDefaultDescription
numbernumber

The value to test against step

stepnumber<optional>
0

The threshold value. If you omit a value for step, geStep uses zero.

See
Returns:

1 if number ≥ step; returns 0 (zero) otherwise.

Type: 
number
Examples
rosettajs.geStep(6) // returns 1
rosettajs.geStep(6,8) // returns 0

(inner) hex2Bin(number, placesopt) → {string}

Converts a hexadecimal number to binary.

Parameters:
NameTypeAttributesDescription
numberstring

The hexadecimal number you want to convert. Number cannot contain more than 10 characters. The most significant bit of number is the sign bit (40th bit from the right). The remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation.

placesnumber<optional>

The number of characters to use. If places is omitted, hex2Bin uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros).

See
Returns:

A binary for the given hexadecimal

Type: 
string
Examples
rosettajs.hex2Bin("B") // returns 1011
rosettajs.hex2Bin("B",10) // returns 0000001011

(inner) hex2Dec(number) → {number}

Converts a hexadecimal number to decimal.

Parameters:
NameTypeDescription
numberstring

The hexadecimal number you want to convert. Number cannot contain more than 10 characters (40 bits). The most significant bit of number is the sign bit. The remaining 39 bits are magnitude bits. Negative numbers are represented using two's-complement notation.

See
Returns:

A decimal for the given hexadecimal number

Type: 
number
Example
rosettajs.hex2Dec("A6") // returns 166

(inner) hex2Oct(number, placesopt) → {string}

Converts a hexadecimal number to octal

Parameters:
NameTypeAttributesDescription
numberstring

The hexadecimal number you want to convert. Number cannot contain more than 10 characters. The most significant bit of number is the sign bit. The remaining 39 bits are magnitude bits. Negative numbers are represented using two's-complement notation.

placesnumber<optional>

The number of characters to use. If places is omitted, hex2Oct uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros).

See
Returns:

A octal for the given hexadecimal number

Type: 
string
Examples
rosettajs.hex2Oct("B") // returns 13
rosettajs.hex2Oct("B",10) // 0000000013

(inner) imAbs(inumber) → {number}

Returns the absolute value (modulus) of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the absolute value

See
Returns:

Absolute value for the given complex number

Type: 
number
Example
rosettajs.imAbs("9+12i") // returns 15

(inner) imaginary(inumber) → {string|number}

Returns the imaginary coefficient of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the imaginary coefficient

See
Returns:

The imaginary coefficient of the given complex number

Type: 
string | number
Examples
rosettajs.imaginary("4+5i") // returns 5
rosettajs.imaginary(7) // returns 0

(inner) imArgument(inumber) → {string|number}

Returns the argument theta, an angle expressed in radians.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the argument Theta

See
Returns:

The argument Theta, an angle expressed in radians, for the given complex number

Type: 
string | number
Example
rosettajs.imArgument("4+5i") // returns 0.8960553845713439

(inner) imConjugate(inumber) → {string|number}

Returns the complex conjugate of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the conjugate

See
Returns:

The complex conjugate of the given complex number

Type: 
string | number
Example
rosettajs.imConjugate("7+4i") // returns 7-4i

(inner) imCos(inumber) → {string|number}

Returns the cosine of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the cosine

See
Returns:

Returns the cosine of the given complex number in x + yi or x + yj text format

Type: 
string | number
Example
rosettajs.imCos("7+i") // returns 1.1633319692207098-0.772091435022302i

(inner) imCosh(inumber) → {string|number}

Returns the hyperbolic cosine of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the hyperbolic cosine

See
Returns:

The hyperbolic cosine of the given complex number in x+yi or x+yj text format

Type: 
string | number
Example
rosettajs.imCosh("7+i") // returns 296.2569584411429+461.3921082367867i

(inner) imCot(inumber) → {string|number}

Returns the cotangent of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the cotangent

See
Returns:

The cotangent of the given complex number in x+yi or x+yj text format

Type: 
string | number
Example
rosettajs.imCot("7+i") // returns 0.27323643702063916-1.0003866917747672i

(inner) imCsc(inumber) → {string|number}

Returns the cosecant of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the cosecant

See
Returns:

The cosecant of a complex number in x+yi or x+yj text format

Type: 
string | number
Example
rosettajs.imCsc("7+i") // returns 0.5592579837285742-0.48875850368917295i

(inner) imCsch(inumber) → {string|number}

Returns the hyperbolic cosecant of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the hyperbolic cosecant

See
Returns:

The hyperbolic cosecant of the given complex number in x+yi or x+yj text format

Type: 
string | number
Example
rosettajs.imCsch("7+i") // returns 0.0009853823560021253-0.0015346446451764265i

(inner) imDiv(inumber1, inumber2) → {string|number}

Returns the quotient of two complex numbers.

Parameters:
NameTypeDescription
inumber1string | number

The complex numerator or dividend

inumber2string | number

The complex denominator or divisor

See
Returns:

The quotient of the two given complex numbers in x + yi or x + yj text format

Type: 
string | number
Example
rosettajs.imDiv("-238+240i","10+24i") // returns 5+12i

(inner) imExp(inumber) → {string|number}

Returns the exponential of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the exponential

See
Returns:

The exponential of a complex number in x + yi or x + yj text format

Type: 
string | number
Example
rosettajs.imExp("2+i") // returns 3.992324048441272+6.217676312367968i

(inner) imLn(inumber) → {string|number}

Returns the natural logarithm of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the natural logarithm

See
Returns:

The natural logarithm of a complex number in x + yi or x + yj text format

Type: 
string | number
Example
rosettajs.imLn("2+i") // returns 0.8047189562170503+0.4636476090008061i

(inner) imLog2(inumber) → {string|number}

Returns the base-2 logarithm of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the base-2 logarithm

See
Returns:

The base-2 logarithm of a complex number in x + yi or x + yj text format

Type: 
string | number
Example
rosettajs.imLog2("7+i") // returns 2.821928094887362+0.20471417699417774i

(inner) imLog10(inumber) → {string|number}

Returns the base-10 logarithm of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the common logarithm

See
Returns:

The common logarithm (base 10) of a complex number in x + yi or x + yj text format.

Type: 
string | number
Example
rosettajs.imLog10("7+i") // returns 0.8494850021680093+0.06162510781291279i

(inner) imPower(inumber, power) → {string|number}

Returns a complex number raised to an integer power.

Parameters:
NameTypeDescription
inumberstring | number

A complex number you want to raise to a power

powernumber

The power to which you want to raise the complex number

See
Returns:

A complex number in x + yi or x + yj text format raised to a power

Type: 
string | number
Example
rosettajs.imPower("2+2i", 55) // returns 4.835703278458551e+24-4.835703278458541e+24i

(inner) imProduct(…inumbers) → {string|number}

Returns the product of from 2 to 255 complex numbers.

Parameters:
NameTypeAttributesDescription
inumbersArray.<string> | Array.<number><repeatable>

Inumber1 is required, subsequent inumbers are not. 1 to 255 complex numbers to multiply

See
Returns:

The product of 1 to 255 complex numbers in x + yi or x + yj text format

Type: 
string | number
Examples
rosettajs.imProduct("7+2i",55) // returns 385+110i
rosettajs.imProduct("7+2i","9-3i") // returns 69-3i

(inner) imReal(inumber) → {string|number}

Returns the real coefficient of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the real coefficient

See
Returns:

The real coefficient of a complex number in x + yi or x + yj text format

Type: 
string | number
Example
rosettajs.imReal("7-3i") // returns 7

(inner) imSec(inumber) → {String}

Returns the secant of a complex number.

Parameters:
NameTypeDescription
inumbernumber

A complex number for which you want the secant

See
Returns:

The secant of a complex number in x+yi or x+yj text format.

Type: 
String
Example
rosettajs.imSec("7-3i") // returns 0.07520380314551633-0.06521210988033882i

(inner) imSech(inumber) → {String}

Returns the hyperbolic secant of a complex number.

Parameters:
NameTypeDescription
inumbernumber

A complex number for which you want the hyperbolic secant.

See
Returns:

The hyperbolic secant of a complex number in x+yi or x+yj text format.

Type: 
String
Example
rosettajs.imSech("7-3i") // returns -0.0018055112256293788+0.00025736895567555834i

(inner) imSin(inumber) → {string|number}

Returns the sine of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the sine

See
Returns:

The sine of a complex number in x + yi or x + yj text format

Type: 
string | number
Example
rosettajs.imSin("7-3i") // returns 6.61431901165645-7.552498491503594i

(inner) imSinh(inumber) → {string|number}

Returns the hyperbolic sine of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the hyperbolic sine

See
Returns:

The hyperbolic sine of a complex number in x+yi or x+yj text format

Type: 
string | number
Example
rosettajs.imSinh("7-4i") // returns -358.4033361942234+414.96770042530943i

(inner) imSqrt(inumber) → {string|number}

Returns the square root of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the square root

See
Returns:

The square root of a complex number in x + yi or x + yj text format.

Type: 
string | number
Example
rosettajs.imSqrt("7-4i") // returns 2.744290231398508-0.7287858904707711i

(inner) imSub(inumber1, inumber2) → {stirng|number}

Returns the difference between two complex numbers.

Parameters:
NameTypeDescription
inumber1string | number

The complex number from which to subtract inumber2

inumber2string | number

The complex number to subtract from inumber1

See
Returns:

The difference of two complex numbers in x + yi or x + yj text format

Type: 
stirng | number
Example
rosettajs.imSub("15+2i","3+3i") // returns 12-1i

(inner) imSum(…inumbers) → {string|number}

Returns the sum of complex numbers.

Parameters:
NameTypeAttributesDescription
inumbersArray.<string> | Array.<number><repeatable>

Inumber1 is required, subsequent inumbers are not. 1 to 255 complex numbers to add

See
Returns:

The sum of two or more complex numbers in x + yi or x + yj text format

Type: 
string | number
Examples
rosettajs.imSum("7+2i",55) // returns 755+2i
rosettajs.imSum("7+2i","9-3i") // returns 16-1i

(inner) imTan(inumber) → {string|number}

Returns the tangent of a complex number.

Parameters:
NameTypeDescription
inumberstring | number

A complex number for which you want the tangent

See
Returns:

The tangent of a complex number in x+yi or x+yj text format

Type: 
string | number
Example
rosettajs.imTan("7+2i") // returns 0.03609431359326245+0.9943504089532537i

(inner) oct2Bin(number, placesopt) → {number}

Converts an octal number to binary.

Parameters:
NameTypeAttributesDescription
numberstring

The octal number you want to convert. Number may not contain more than 10 characters. The most significant bit of number is the sign bit. The remaining 29 bits are magnitude bits. Negative numbers are represented using two's-complement notation.

placesnumber<optional>

The number of characters to use. If places is omitted, oct2Bin uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros).

See
Returns:

A binary for the given octal number

Type: 
number
Examples
rosettajs.oct2Bin(7) // returns 111
rosettajs.oct2Bin(7, 5) // returns 00111

(inner) oct2Dec(number) → {number}

Converts an octal number to decimal.

Parameters:
NameTypeDescription
numberstring

The octal number you want to convert. Number may not contain more than 10 octal characters (30 bits). The most significant bit of number is the sign bit. The remaining 29 bits are magnitude bits. Negative numbers are represented using two's-complement notation.

See
Returns:

A decimal for the given octal number

Type: 
number
Example
rosettajs.oct2Dec(64) // returns 52

(inner) oct2Hex(number, placesopt) → {number}

Converts an octal number to hexadecimal.

Parameters:
NameTypeAttributesDescription
numberstring

The octal number you want to convert. Number may not contain more than 10 octal characters (30 bits). The most significant bit of number is the sign bit. The remaining 29 bits are magnitude bits. Negative numbers are represented using two's-complement notation

placesnumber<optional>

The number of characters to use. If places is omitted, OCT2HEX uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros).

See
Returns:

A hexadecimal for the given octal number

Type: 
number
Examples
rosettajs.oct2Hex(177747533) // returns 1ffcf5b
rosettajs.oct2Hex(74,5) // returns 0003c
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-file.html b/javadoc/module-file.html new file mode 100644 index 00000000..4d031a1c --- /dev/null +++ b/javadoc/module-file.html @@ -0,0 +1,3 @@ +Module: file
On this page

File

Methods

(inner) fileCloseWindow()

Closes the current Notes® window. If the document or design element in that window has not been saved, Notes® prompts the user to save it before closing.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) fileDatabaseACL()

Displays the access control list for the current database.

See
Throws:

No plans to implement

Type
Error

(inner) fileDatabaseCompact()

Compacts the white space in a database, and at the same time, converts the old database to the new format.

See
Throws:

No plans to implement

Type
Error

(inner) fileDatabaseCopy()

Displays the Copy Database dialog box, where the user can copy the current database to a new location.

See
Throws:

No plans to implement

Type
Error

(inner) fileDatabaseDelete()

Permanently deletes the current database file from the hard disk where it is stored.

See
Throws:

No plans to implement

Type
Error

(inner) fileDatabaseInfo()

Displays the Properties box for the current database.

See
Throws:

No plans to implement

Type
Error

(inner) fileDatabaseRemove()

Removes the current database icon from the workspace.

See
Throws:

No plans to implement

Type
Error

(inner) fileDatabaseUseServer()

Displays the Switch Servers dialog box, where the user can choose a server that contains a replica of the currently selected database.

See
Throws:

No plans to implement

Type
Error

(inner) fileExit()

Performs the menu command File - Exit (File - Quit on the Macintosh), which closes Notes/Domino and all its open windows.

See
Throws:

No plans to implement

Type
Error

(inner) fileExport()

Exports a Notes/Domino document or view.

See
Throws:

No plans to implement

Type
Error

(inner) fileFullTextCreate()

Displays the Full-Text Create Index dialog box, where the user can specify settings for the database's full-text index.

See
Throws:

No plans to implement

Type
Error

(inner) fileFullTextDelete()

Deletes a database's full-text index.

See
Throws:

No plans to implement

Type
Error

(inner) fileFullTextInfo()

Displays the Full Text tab of the current database's Properties box.

See
Throws:

No plans to implement

Type
Error

(inner) fileFullTextUpdate()

Updates full-text indexes for local databases or queues the update request for server-based databases.

See
Throws:

No plans to implement

Type
Error

(inner) fileImport()

Imports a file into a Notes/Domino document or view.

See
Throws:

No plans to implement

Type
Error

(inner) fileNewDatabase()

Displays the New Database dialog box, where the user can select a server, title, and file name for a new database.

See
Throws:

No plans to implement

Type
Error

(inner) fileNewReplica()

Displays the New Replica dialog box, where the user can create a replica of the current database.

See
Throws:

No plans to implement

Type
Error

(inner) fileOpenDatabase(serverDatabase, viewName, key) → {Promise.<boolean>}

Opens the specified database to the specified view, highlighting the first document whose value in the sort column matches the key. You specify a database using its server and file name.

Parameters:
NameTypeDescription
serverDatabaseany
viewNamestring
keyany
See
Returns:
Type: 
Promise.<boolean>

(inner) fileOpenDBRepID()

Opens the specified database to the specified view, highlighting the first document whose value in the sort column matches the key. You specify a database using its replica ID, and Notes/Domino searches the workspace and all servers available in the current session to find a replica.

See
Throws:

No plans to implement

Type
Error

(inner) filePageSetup()

Displays the Page Setup dialog box (or, on the Macintosh, the File Print Margins dialog box), which allows you to specify print settings for the selected database.

See
Throws:

No plans to implement

Type
Error

(inner) filePrint()

Prints the currently open or selected document(s), or the current view.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) filePrintSetup()

Displays the Print Setup dialog box, which allows you to direct the current view or document to a printer or a file that you specify.

See
Throws:

No plans to implement

Type
Error

(inner) fileSave() → {Promise.<boolean>}

Performs the menu command File - Save.

See
Returns:
Type: 
Promise.<boolean>

(inner) fileSaveNewVersion()

Saves a document as a new version.

See
Throws:

No plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-financial.html b/javadoc/module-financial.html new file mode 100644 index 00000000..d47a6c99 --- /dev/null +++ b/javadoc/module-financial.html @@ -0,0 +1,3 @@ +Module: financial
On this page

Financial

Methods

(inner) accrInt(issue, first_interest, settlement, rate, par, frequency, basisopt) → {number}

Returns the modified Bessel function In(x).

Parameters:
NameTypeAttributesDescription
issueDate

The security's issue date.

first_interestDate

The security's first interest date.

settlementDate

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

ratenumber

The security's annual coupon rate.

parnumber

The security's par value. If you omit par, ACCRINT uses $1,000.

frequencynumber

The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

basisnumber<optional>

Optional. The type of day count basis to use.

Returns:

returns error if inputs are invalid, otherwise returns the accrued interest as a number.

Type: 
number

(inner) accrIntM(issue, settlement, rate, par, basis)

Returns the accrued interest for a security that pays interest at maturity.

Category: Financial

Parameters:
NameTypeDescription
issue*

The security's issue date.

settlement*

The security's maturity date.

rate*

The security's annual coupon rate.

par*

The security's par value. If you omit par, ACCRINTM uses $1,000.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) amorDegrc(cost, date_purchased, first_period, salvage, period, rate, basis)

Returns the depreciation for each accounting period by using a depreciation coefficient.

Category: Financial

Parameters:
NameTypeDescription
cost*

The cost of the asset.

date_purchased*

The date of the purchase of the asset.

first_period*

The date of the end of the first period.

salvage*

The salvage value at the end of the life of the asset.

period*

The period.

rate*

The rate of depreciation.

basis*

Optional. The year basis to be used.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) amorLinc(cost, date_purchased, first_period, salvage, period, rate, basis)

Returns the depreciation for each accounting period.

Category: Financial

Parameters:
NameTypeDescription
cost*

The cost of the asset.

date_purchased*

The date of the purchase of the asset.

first_period*

The date of the end of the first period.

salvage*

The salvage value at the end of the life of the asset.

period*

The period.

rate*

The rate of depreciation.

basis*

Optional. The year basis to be used.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) coupDayBS(settlement, maturity, frequency, basis)

Returns the number of days from the beginning of the coupon period to the settlement date.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

frequency*

The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) coupDays(settlement, maturity, frequency, basis)

Returns the number of days in the coupon period that contains the settlement date.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

frequency*

The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) coupDaySnc(settlement, maturity, frequency, basis)

Returns the number of days from the settlement date to the next coupon date.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

frequency*

The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) coupNCD(settlement, maturity, frequency, basis)

Returns the next coupon date after the settlement date.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

frequency*

The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) coupNum(settlement, maturity, frequency, basis)

Returns the number of coupons payable between the settlement date and maturity date.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

frequency*

The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented
Returns:

(TBD)

(inner) coupPCD(settlement, maturity, frequency, basis)

Returns the previous coupon date before the settlement date.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

frequency*

The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented
Returns:

(TBD)

(inner) cumIPmt(intrate, numper, pvalue, start_period, end_period, type) → {number}

Returns the cumulative interest paid between two periods.

Category: Financial

Parameters:
NameTypeDescription
intratenumber

The interest rate.

numpernumber

The total number of payment periods.

pvaluenumber

The present value.

start_periodnumber

The first period in the calculation. Payment periods are numbered beginning with 1.

end_periodnumber

The last period in the calculation.

typenumber

The timing of the payment.

Returns:

the cumulative interest paid between two periods or an error if the arguments are incorrect.

Type: 
number

(inner) cumPrinc(intrate, numper, pvalue, start_period, end_period, type) → {number}

Returns the cumulative principal paid on a loan between two periods.

Category: Financial

Parameters:
NameTypeDescription
intratenumber

The interest rate.

numpernumber

The total number of payment periods.

pvaluenumber

The present value.

start_periodnumber

The first period in the calculation. Payment periods are numbered beginning with 1.

end_periodnumber

The last period in the calculation.

typenumber

The timing of the payment.

Returns:

returns an error if input is wrong, otherwise returns cumulative principle as a number

Type: 
number

(inner) db(initcost, salvageval, uselife, depperiod, monthsopt) → {number}

Returns the depreciation of an asset for a specified period by using the fixed-declining balance method.

Category: Financial

Parameters:
NameTypeAttributesDefaultDescription
initcostnumber

The initial cost of the asset.

salvagevalnumber

The value at the end of the depreciation (sometimes called the salvage value of the asset).

uselifenumber

The number of periods over which the asset is being depreciated (sometimes called the useful life of the asset).

depperiodnumber

The period for which you want to calculate the depreciation. Period must use the same units as life.

monthsnumber<optional>
12

Optional. The number of months in the first year. If month is omitted, it is assumed to be 12.

Returns:

returns the depreciation as a number or an error if the arguments are incorrect.

Type: 
number

(inner) ddb(initcost, salvageval, uselife, depperiod, decfactoropt) → {number}

Returns the depreciation of an asset for a specified period by using the double-declining balance method or some other method that you specify.

Category: Financial

Parameters:
NameTypeAttributesDescription
initcostnumber

The initial cost of the asset.

salvagevalnumber

The value at the end of the depreciation (sometimes called the salvage value of the asset). This value can be 0.

uselifenumber

The number of periods over which the asset is being depreciated (sometimes called the useful life of the asset).

depperiodnumber

The period for which you want to calculate the depreciation. Period must use the same units as life.

decfactornumber<optional>

Optional. The rate at which the balance declines. If factor is omitted, it is assumed to be 2 (the double-declining balance method).

Returns:

the depreciation of an asset for a specified period using fixed double declining balance or an error if the arguments are not formatted properly.

Type: 
number

(inner) disc(settlement, maturity, pr, redemption, basis)

Returns the discount rate for a security.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

pr*

The security's price per $100 face value.

redemption*

The security's redemption value per $100 face value.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented
Returns:

(TBD)

(inner) dollarDe(fractional_dollar, fraction) → {number}

Converts a dollar price, expressed as a fraction, into a dollar price, expressed as a decimal number.

Category: Financial

Parameters:
NameTypeDescription
fractional_dollarnumber

A number expressed as an integer part and a fraction part, separated by a decimal symbol.

fractionnumber

The integer to use in the denominator of the fraction.

Returns:

a decimal number that results from converting a dollar price, expressed as a fraction, into a dollar price, expressed as a decimal number. Or an error if the arguments are not formatted properly.

Type: 
number

(inner) dollarFr(decimal_dollar, fraction) → {number}

Converts a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction.

Category: Financial

Parameters:
NameTypeDescription
decimal_dollarnumber

A decimal number.

fractionnumber

The integer to use in the denominator of a fraction.

Returns:

a fraction that results from converting dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction. Or an error if he arguments arent formatted properly.

Type: 
number

(inner) duration(settlement, maturity, coupon, yld, frequency, basis)

Returns the annual duration of a security with periodic interest payments.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

coupon*

The security's annual coupon rate.

yld*

The security's annual yield.

frequency*

The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented
Returns:

(TBD)

(inner) effect(nominal_intrate, nperyr) → {number}

Returns the effective annual interest rate.

Category: Financial

Parameters:
NameTypeDescription
nominal_intratenumber

The nominal interest rate.

nperyrnumber

The number of compounding periods per year.

Returns:

effective annual interest rate or an error if the arguments are not formated properly.

Type: 
number

(inner) fv(intrate, numper, pmt, pvopt, typeopt) → {number}

Returns the future value of an investment.

Category: Financial

Parameters:
NameTypeAttributesDefaultDescription
intratenumber

The interest rate per period.

numpernumber

The total number of payment periods in an annuity.

pmtnumber

The payment made each period; it cannot change over the life of the annuity. Typically, pmt contains principal and interest but no other fees or taxes. If pmt is omitted, you must include the pv argument.

pvnumber<optional>
0

Optional. The present value, or the lump-sum amount that a series of future payments is worth right now. If pv is omitted, it is assumed to be 0 (zero), and you must include the pmt argument.

typenumber<optional>
0

Optional. The number 0 or 1 and indicates when payments are due. If type is omitted, it is assumed to be 0.

Returns:

the future value of an investment or an error if the arguments are not formatted properly.

Type: 
number

(inner) fvSchedule(principal, schedule) → {number}

Returns the future value of an initial principal after applying a series of compound interest rates.

Category: Financial

Parameters:
NameTypeDescription
principalnumber

The present value.

schedulenumber

An array of interest rates to apply.

Returns:

the future value of an initial principal after applying a series of compound interest rates or an error if arguments are formatted improperly.

Type: 
number

(inner) intRate(settlement, maturity, investment, redemption, basis)

Returns the interest rate for a fully invested security.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

investment*

The amount invested in the security.

redemption*

The amount to be received at maturity.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) iPmt(intrate, period, numper, pvalue, fvalueopt, typeopt) → {number}

Returns the interest payment for an investment for a given period.

Category: Financial

Parameters:
NameTypeAttributesDefaultDescription
intratenumber

The interest rate per period.

periodnumber

The period for which you want to find the interest and must be in the range 1 to nper.

numpernumber

The total number of payment periods in an annuity.

pvaluenumber

The present value, or the lump-sum amount that a series of future payments is worth right now.

fvaluenumber<optional>
0

Optional. The future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (the future value of a loan, for example, is 0).

typenumber<optional>
0

Optional. The number 0 or 1 and indicates when payments are due. If type is omitted, it is assumed to be 0.

Returns:

the interest payment for an investment for a given period or an error if the arguments are not formatted properly.

Type: 
number

(inner) irr(values, guessopt) → {number}

Returns the internal rate of return for a series of cash flows.

Category: Financial

Parameters:
NameTypeAttributesDefaultDescription
valuesArray.<any>

An array or a reference to values that contain numbers for which you want to calculate the internal rate of return.

  • Values must contain at least one positive value and one negative value to calculate the internal rate of return.
  • IRR uses the order of values to interpret the order of cash flows. Be sure to enter your payment and income values in the sequence you want.
  • If an array or reference argument contains text, logical values, or empty values, those values are ignored.
guessnumber<optional>
0.1

Optional. A number that you guess is close to the result of IRR.

  • Microsoft Excel uses an iterative technique for calculating IRR. Starting with guess, IRR cycles through the calculation until the result is accurate within 0.00001 percent. If IRR can't find a result that works after 20 tries, the #NUM! error value is returned.
  • In most cases you do not need to provide guess for the IRR calculation. If guess is omitted, it is assumed to be 0.1 (10 percent).
  • If IRR gives the #NUM! error value, or if the result is not close to what you expected, try again with a different value for guess.
Returns:

the internal rate of return for a series of cash flows or an error if the arguments are incorrect.

Type: 
number

(inner) isPmt(intrate, period, numper, pvalue) → {number}

Calculates the interest paid during a specific period of an investment.

Category: Financial

Parameters:
NameTypeDescription
intratenumber

The interest rate for the investment.

periodnumber

The period for which you want to find the interest, and must be between 1 and Nper.

numpernumber

The total number of payment periods for the investment.

pvaluenumber

The present value of the investment. For a loan, Pv is the loan amount.

Returns:

the interest paid during a specific period of an investment or an error if the arguments are incorrect.

Type: 
number

(inner) mDuration(settlement, maturity, coupon, yld, frequency, basis)

Returns the Macauley modified duration for a security with an assumed par value of $100.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

coupon*

The security's annual coupon rate.

yld*

The security's annual yield.

frequency*

The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) mirr(values, finance_intrate, reinvest_intrate) → {number}

Returns the internal rate of return where positive and negative cash flows are financed at different rates.

Category: Financial

Parameters:
NameTypeDescription
valuesArray.<any>

An array or a reference to values that contain numbers. These numbers represent a series of payments (negative values) and income (positive values) occurring at regular periods.

  • Values must contain at least one positive value and one negative value to calculate the modified internal rate of return. Otherwise, MIRR returns the #DIV/0! error value.
  • If an array or reference argument contains text, logical values, or empty values, those values are ignored; however, values with the value zero are included.
finance_intratenumber

The interest rate you pay on the money used in the cash flows.

reinvest_intratenumber

The interest rate you receive on the cash flows as you reinvest them.

Returns:

the internal rate of return where positive and negative cash flows are financed at different rates or an error when the arguments arent formatted properly.

Type: 
number

(inner) nominal(effect_intrate, numpery) → {number}

Returns the annual nominal interest rate.

Category: Financial

Parameters:
NameTypeDescription
effect_intratenumber

The effective interest rate.

numperynumber

The number of compounding periods per year.

Returns:

the annual nominal interest rate or an error if the arguments arent formatted properly

Type: 
number

(inner) nPer(intrate, payment, pvalue, fvalueopt, typeopt) → {number}

Returns the number of periods for an investment.

Category: Financial

Parameters:
NameTypeAttributesDefaultDescription
intratenumber

The interest rate per period.

paymentnumber

The payment made each period; it cannot change over the life of the annuity. Typically, pmt contains principal and interest but no other fees or taxes.

pvaluenumber

The present value, or the lump-sum amount that a series of future payments is worth right now.

fvaluenumber<optional>
0

Optional. The future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (the future value of a loan, for example, is 0).

typenumber<optional>
0

Optional. The number 0 or 1 and indicates when payments are due.

Returns:

the number of periods for an invesment or an error if the arguments are not formatted properly.

Type: 
number

(inner) npv(drate, …values) → {number}

Returns the net present value of an investment based on a series of periodic cash flows and a discount rate.

Category: Financial

Parameters:
NameTypeAttributesDescription
dratenumber

The rate of discount over the length of one period.

valuesArray.<number><repeatable>

value1, value2, ... Value1 is required, subsequent values are optional. 1 to 254 arguments representing the payments and income.

  • value1, value2, ... must be equally spaced in time and occur at the end of each period.
  • NPV uses the order of value1, value2, ... to interpret the order of cash flows. Be sure to enter your payment and income values in the correct sequence.
  • Arguments that are empty values, logical values, or text representations of numbers, error values, or text that cannot be translated into numbers are ignored.
  • If an argument is an array or reference, only numbers in that array or reference are counted. Empty values, logical values, text, or error values in the array or reference are ignored.
Returns:

net present value as a number or an error if the arguments dont match requirements.

Type: 
number

(inner) oddFPrice(settlement, maturity, issue, first_coupon, rate, yld, redemption, frequency, basis)

Returns the price per $100 face value of a security with an odd first period.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

issue*

The security's issue date.

first_coupon*

The security's first coupon date.

rate*

The security's interest rate.

yld*

The security's annual yield.

redemption*

The security's redemption value per $100 face value.

frequency*

The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) oddFYield(settlement, maturity, issue, first_coupon, rate, pr, redemption, frequency, basis)

Returns the yield of a security with an odd first period.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

issue*

The security's issue date.

first_coupon*

The security's first coupon date.

rate*

The security's interest rate.

pr*

The security's price.

redemption*

The security's redemption value per $100 face value.

frequency*

The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) oddLPrice(settlement, maturity, last_interest, rate, yld, redemption, frequency, basis)

Returns the price per $100 face value of a security with an odd last period.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

last_interest*

The security's last coupon date.

rate*

The security's interest rate.

yld*

The security's annual yield.

redemption*

The security's redemption value per $100 face value.

frequency*

The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) oddLYield(settlement, maturity, last_interest, rate, pr, redemption, frequency, basis)

Returns the yield of a security with an odd last period.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

last_interest*

The security's last coupon date.

rate*

The security's interest rate

pr*

The security's price.

redemption*

The security's redemption value per $100 face value.

frequency*

The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) pDuration(intrate, pvalue, fvalue) → {number}

Returns the number of periods required by an investment to reach a specified value.

Category: Financial

Parameters:
NameTypeDescription
intratenumber

Rate is the interest rate per period.

pvaluenumber

Pv is the present value of the investment.

fvaluenumber

Fv is the desired future value of the investment.

Returns:

the number of periods required as a number or an error if arguments are not formatted properly.

Type: 
number

(inner) pmt(intrate, numper, pvalue, fvalueopt, typeopt) → {number}

Returns the periodic payment for an annuity.

Category: Financial

Parameters:
NameTypeAttributesDefaultDescription
intratenumber

The interest rate for the loan.

numpernumber

The total number of payments for the loan.

pvaluenumber

The present value, or the total amount that a series of future payments is worth now; also known as the principal.

fvaluenumber<optional>
0

Optional. The future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (zero), that is, the future value of a loan is 0.

typenumber<optional>
0

Optional. The number 0 (zero) or 1 and indicates when payments are due.

Returns:

the periodic payment for an annuity as a number or error if the arguments are not formatted properly.

Type: 
number

(inner) pPmt(intrate, period, numper, pvalue, fvalueopt, typeopt) → {number}

Returns the payment on the principal for an investment for a given period.

Category: Financial

Parameters:
NameTypeAttributesDefaultDescription
intratenumber

The interest rate per period.

periodnumber

Specifies the period and must be in the range 1 to nper.

numpernumber

The total number of payment periods in an annuity.

pvaluenumber

The present value — the total amount that a series of future payments is worth now.

fvaluenumber<optional>
0

Optional. The future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (zero), that is, the future value of a loan is 0.

typenumber<optional>
0

Optional. The number 0 or 1 and indicates when payments are due.

Returns:

principal payment for investment over a specific period as a number, or an error if the arguments are not formated properly.

Type: 
number

(inner) price(settlement, maturity, rate, yld, redemption, frequency, basis)

Returns the price per $100 face value of a security that pays periodic interest.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

rate*

The security's annual coupon rate.

yld*

The security's annual yield.

redemption*

The security's redemption value per $100 face value.

frequency*

The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) priceDisc(settlement, maturity, discount, redemption, basis)

Returns the price per $100 face value of a discounted security.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

discount*

The security's discount rate.

redemption*

The security's redemption value per $100 face value.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) priceMat(settlement, maturity, issue, rate, yld, basis)

Returns the price per $100 face value of a security that pays interest at maturity.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

issue*

The security's issue date, expressed as a serial date number.

rate*

The security's interest rate at date of issue.

yld*

The security's annual yield.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) pv(intrate, periods, payment, fvalue, typeopt) → {number}

Returns the present value of an investment.

Category: Financial

Parameters:
NameTypeAttributesDefaultDescription
intratenumber

The interest rate per period. For example, if you obtain an automobile loan at a 10 percent annual interest rate and make monthly payments, your interest rate per month is 10%/12, or 0.83%. You would enter 10%/12, or 0.83%, or 0.0083, into the formula as the rate.

periodsnumber

The total number of payment periods in an annuity. For example, if you get a four-year car loan and make monthly payments, your loan has 4*12 (or 48) periods. You would enter 48 into the formula for nper.

paymentnumber

The payment made each period and cannot change over the life of the annuity. Typically, pmt includes principal and interest but no other fees or taxes. For example, the monthly payments on a $10,000, four-year car loan at 12 percent are $263.33. You would enter -263.33 into the formula as the pmt. If pmt is omitted, you must include the fv argument.

fvaluenumber0

Optional. The future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (the future value of a loan, for example, is 0). For example, if you want to save $50,000 to pay for a special project in 18 years, then $50,000 is the future value. You could then make a conservative guess at an interest rate and determine how much you must save each month. If fv is omitted, you must include the pmt argument.

typenumber<optional>
0

Optional. The number 0 or 1 and indicates when payments are due.

Returns:

present value of an investment or an error if arguments are not formatted properly.

Type: 
number

(inner) rate(periods, payment, pvalue, fvalueopt, typeopt, guessopt) → {number}

Returns the interest rate per period of an annuity.

Category: Financial

Parameters:
NameTypeAttributesDefaultDescription
periodsnumber

The total number of payment periods in an annuity.

paymentnumber

The payment made each period and cannot change over the life of the annuity. Typically, pmt includes principal and interest but no other fees or taxes. If pmt is omitted, you must include the fv argument.

pvaluenumber

The present value — the total amount that a series of future payments is worth now.

fvaluenumber<optional>
0

Optional. The future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (the future value of a loan, for example, is 0). If fv is omitted, you must include the pmt argument.

typenumber<optional>

Optional. The number 0 or 1 and indicates when payments are due.

guessnumber<optional>

Optional. Your guess for what the rate will be. If you omit guess, it is assumed to be 10 percent. If RATE does not converge, try different values for guess. RATE usually converges if guess is between 0 and 1.

  • If you omit guess, it is assumed to be 10 percent.
  • If RATE does not converge, try different values for guess. RATE usually converges if guess is between 0 and 1.
Returns:

the interest rate per period of an annuity or an error if the arguments arent formatted properly.

Type: 
number

(inner) received(settlement, maturity, investment, discount, basis)

Returns the amount received at maturity for a fully invested security.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

investment*

The amount invested in the security.

discount*

The security's discount rate.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) rri(periods, pvalue, fvalue) → {number}

Returns an equivalent interest rate for the growth of an investment.

Category: Financial

Parameters:
NameTypeDescription
periodsnumber

The number of periods for the investment.

pvaluenumber

The present value of the investment.

fvaluenumber

The future value of the investment.

Returns:

an equivalent interestrate for growth of an investment or an error if arguments are not formatted properly.

Type: 
number

(inner) sln(initcost, salvageval, uselife) → {number}

Returns the straight-line depreciation of an asset for one period.

Category: Financial

Parameters:
NameTypeDescription
initcostnumber

The initial cost of the asset.

salvagevalnumber

The value at the end of the depreciation (sometimes called the salvage value of the asset).

uselifenumber

The number of periods over which the asset is depreciated (sometimes called the useful life of the asset).

Returns:

returns the straightline depreciation of an asset for 1 period or error if arguments are not formatted properly.

Type: 
number

(inner) syd(initcost, salvageval, uselife, periods) → {number}

Returns the sum-of-years' digits depreciation of an asset for a specified period.

Category: Financial

Parameters:
NameTypeDescription
initcostnumber

The initial cost of the asset.

salvagevalnumber

The value at the end of the depreciation (sometimes called the salvage value of the asset).

uselifenumber

The number of periods over which the asset is depreciated (sometimes called the useful life of the asset).

periodsnumber

The period and must use the same units as life.

Returns:

the sum-of-years' digits depreciation of an asset for a specified period or an error if arguments are not formatted properly.

Type: 
number

(inner) tbillEq(settlement_date, maturity_date, discount_rate) → {number}

Returns the bond-equivalent yield for a Treasury bill.

Category: Financial

Parameters:
NameTypeDescription
settlement_dateDate | number | string

The Treasury bill's settlement date. The security settlement date is the date after the issue date when the Treasury bill is traded to the buyer.

maturity_dateDate | number | string

The Treasury bill's maturity date. The maturity date is the date when the Treasury bill expires.

discount_ratenumber

The Treasury bill's discount rate.

Returns:

Returns the bond-equivalent yield for a Treasury bill or an error if the arguments are not formatted properly.

Type: 
number

(inner) tbillPrice(settlement_date, maturity_date, discount_rate) → {number}

Returns the price per $100 face value for a Treasury bill.

Category: Financial

Parameters:
NameTypeDescription
settlement_dateDate | number | string

The Treasury bill's settlement date. The security settlement date is the date after the issue date when the Treasury bill is traded to the buyer.

maturity_dateDate | number | string

The Treasury bill's maturity date. The maturity date is the date when the Treasury bill expires.

discount_ratenumber

The Treasury bill's discount rate.

Returns:

returns the price per $100 facec value for a treasury bill or an error if the arguments arent formatted properly.

Type: 
number

(inner) tbillYield(settlement_date, maturity_date, price) → {number}

Returns the yield for a Treasury bill.

Category: Financial

Parameters:
NameTypeDescription
settlement_dateDate | number | string

The Treasury bill's settlement date. The security settlement date is the date after the issue date when the Treasury bill is traded to the buyer.

maturity_dateDate | number | string

The Treasury bill's maturity date. The maturity date is the date when the Treasury bill expires.

pricenumber

The Treasury bill's price per $100 face value.

Returns:

the yield for a treasury bill or an error if the arguments are not formated properly

Type: 
number

(inner) vdb(cost, salvage, life, start_period, end_period, factor, no_switch)

Returns the depreciation of an asset for a specified or partial period by using a declining balance method.

Category: Financial

Parameters:
NameTypeDescription
cost*

The initial cost of the asset.

salvage*

The value at the end of the depreciation (sometimes called the salvage value of the asset). This value can be 0.

life*

The number of periods over which the asset is depreciated (sometimes called the useful life of the asset).

start_period*

The starting period for which you want to calculate the depreciation. Start_period must use the same units as life.

end_period*

The ending period for which you want to calculate the depreciation. End_period must use the same units as life.

factor*

Optional. The rate at which the balance declines. If factor is omitted, it is assumed to be 2 (the double-declining balance method). Change factor if you do not want to use the double-declining balance method. For a description of the double-declining balance method, see DDB.

no_switch*

Optional. A logical value specifying whether to switch to straight-line depreciation when depreciation is greater than the declining balance calculation.

  • If no_switch is TRUE, Microsoft Excel does not switch to straight-line depreciation even when the depreciation is greater than the declining balance calculation.
  • If no_switch is FALSE or omitted, Excel switches to straight-line depreciation when depreciation is greater than the declining balance calculation.
Returns:

(TBD)

(inner) xirr(cash_flows, paydates, guessopt) → {number}

Returns the internal rate of return for a schedule of cash flows that is not necessarily periodic.

Category: Financial

Parameters:
NameTypeAttributesDefaultDescription
cash_flowsArray.<number>

A series of cash flows that corresponds to a schedule of payments in dates. The first payment is optional and corresponds to a cost or payment that occurs at the beginning of the investment. If the first value is a cost or payment, it must be a negative value. All succeeding payments are discounted based on a 365-day year. The series of values must contain at least one positive and one negative value.

paydatesArray.<Date> | Array.<number> | Array.<string>

A schedule of payment dates that corresponds to the cash flow payments. Dates may occur in any order. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text. .

guessnumber<optional>
0.1

Optional. A number that you guess is close to the result of XIRR.

Returns:

internal rate of return as a number or an error if the arguments are not formatted properly.

Type: 
number

(inner) xnpv(disrate, cash_flows, paydates) → {number}

Returns the net present value for a schedule of cash flows that is not necessarily periodic.

Category: Financial

Parameters:
NameTypeDescription
disratenumber

The discount rate to apply to the cash flows.

cash_flowsArray.<number>

A series of cash flows that corresponds to a schedule of payments in dates. The first payment is optional and corresponds to a cost or payment that occurs at the beginning of the investment. If the first value is a cost or payment, it must be a negative value. All succeeding payments are discounted based on a 365-day year. The series of values must contain at least one positive value and one negative value.

paydatesArray.<Date> | Array.<number> | Array.<string>

A schedule of payment dates that corresponds to the cash flow payments. The first payment date indicates the beginning of the schedule of payments. All other dates must be later than this date, but they may occur in any order.

Returns:

net present value for a schedule of cash flows or an error if the arguments are not formated properly.

Type: 
number

(inner) Yield(settlement, maturity, rate, pr, redemption, frequency, basis)

Returns the yield on a security that pays periodic interest.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

rate*

The security's annual coupon rate.

pr*

The security's price per $100 face value.

redemption*

The security's redemption value per $100 face value.

frequency*

The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) yieldDisc(settlement, maturity, pr, redemption, basis)

Returns the annual yield for a discounted security; for example, a Treasury bill.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

pr*

The security's price per $100 face value.

redemption*

The security's redemption value per $100 face value.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

(inner) yieldMat(settlement, maturity, issue, rate, pr, basis)

Returns the annual yield of a security that pays interest at maturity.

Category: Financial

Parameters:
NameTypeDescription
settlement*

The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity*

The security's maturity date. The maturity date is the date when the security expires.

issue*

The security's issue date, expressed as a serial date number.

rate*

The security's interest rate at date of issue.

pr*

The security's price per $100 face value.

basis*

Optional. The type of day count basis to use.

To Do
  • this needs to be implemented.
Returns:

(TBD)

Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-folder.html b/javadoc/module-folder.html new file mode 100644 index 00000000..8768250f --- /dev/null +++ b/javadoc/module-folder.html @@ -0,0 +1,3 @@ +Module: folder
On this page

Folder

Methods

(inner) folder()

Moves or copies the selected document to a folder.

See
Throws:

No plans to implement

Type
Error

(inner) folderCollapse()

For a folder or view containing nested folders or views, collapses the selected folder or view in the navigation pane.

See
Throws:

No plans to implement

Type
Error

(inner) folderCustomize()

Displays the design pane for the currently selected view or folder.

See
Throws:

No plans to implement

Type
Error

(inner) folderDocuments()

Moves or copies the selected document to a folder.

See
Throws:

No plans to implement

Type
Error

(inner) folderExpand()

Expands the currently selected view or folder one level in the navigation pane.

See
Throws:

No plans to implement

Type
Error

(inner) folderExpandAll()

Fully expands all views and folders in the navigation pane.

See
Throws:

No plans to implement

Type
Error

(inner) folderExpandWithChildren()

Fully expands the selected view or folder in the navigation pane.

See
Throws:

No plans to implement

Type
Error

(inner) folderMove()

Displays the Move dialog box for a view or folder, which allows you to move the selected view or folder.

See
Throws:

No plans to implement

Type
Error

(inner) folderProperties()

Displays the Properties box for a view or folder.

See
Throws:

No plans to implement

Type
Error

(inner) folderRename()

Displays the Rename dialog box, which allows you to rename the selected folder or view.

See
Throws:

No plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-formula.html b/javadoc/module-formula.html new file mode 100644 index 00000000..29985e77 --- /dev/null +++ b/javadoc/module-formula.html @@ -0,0 +1,3 @@ +Module: formula
On this page

formula

Methods

(inner) checkFormulaSyntax()

Checks a block of commented out formula language code for errors.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) command()

Executes a Notes/Domino command. Most of the standard menu commands can be executed using @Command. In addition, a number of specialized commands are available. In a formula, any command invoked using @Command runs in the order you specify in the formula. This means that any changes made by the command, such as inserting text into a field, affect the rest of the formula (see exceptions).

In the context of RosettaJS, the @Command is a Notes @Formula function that does not exist in the functions of the Notes @Formula language but rather an

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) Eval()

At run-time, compiles and runs each element in a text expression as a formula. Returns the result of the last formula expression in the list or an error if an error is generated by any of the formula expressions in the list.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) isValid()

Executes all validation formulas within the current form.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) set()

Assigns a value to a temporary variable for use within a formula.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) updateFormulaContext()

Updates the context of a formula to the Notes® client window currently being accessed by the code. For example, if the code accesses a new form called "Response" by using @Command([Compose]:"Response", @UpdateFormulaContext switches the context of the formula to this new form. Any subsequent functions in the code execute in the context of the Response document, not the current document.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-help.html b/javadoc/module-help.html new file mode 100644 index 00000000..80dc94d4 --- /dev/null +++ b/javadoc/module-help.html @@ -0,0 +1,3 @@ +Module: help
On this page

Help

Methods

(inner) helpAboutDatabase()

Displays the About This Database or database policy document for the current database (which typically explains the purpose of the application, as well as its intended audience).

See
Throws:

No plans to implement

Type
Error

(inner) helpAboutNotes()

Displays the Notes® splash screen that appears when you launch Notes/Domino. The screen displays the current release number and date.

See
Throws:

No plans to implement

Type
Error

(inner) helpUsingDatabase()

Displays the Using This Database document for the current database. The Using This Database document typically provides pointers on how to use an application's forms and views.

See
Throws:

No plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-information.html b/javadoc/module-information.html new file mode 100644 index 00000000..4bea1287 --- /dev/null +++ b/javadoc/module-information.html @@ -0,0 +1,3 @@ +Module: information
On this page

Information

Methods

(inner) browserInfo()

Determines the capabilities of a Web client, that is you can determine the properties of the browser for the current request.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) cell()

Returns information about the formatting, location, or contents of a value. Category: Information

Returns:

(TBD)

(inner) clientType()

Returns a text string to differentiate Notes® clients and World Wide Web browsers.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) configFile()

Returns the file path for the initialization file for Notes® (notes.ini).

See
Throws:

no plans to implement

Type
Error

(inner) fontList()

Provides a list of available fonts on the Notes® client where this @function is executed.

See
Throws:

no plans to implement

Type
Error

(inner) getAddressBooks()

Returns a list of the address books associated with a client (if the current database is local) or server.

See
Throws:

no plans to implement

Type
Error

(inner) info()

Returns information about the current operating environment. Category: Information

Returns:

(TBD)

(inner) isAppInstalled()

Indicates whether the specified type of application is installed.

See
Throws:

no plans to implement

Type
Error

(inner) isBinary(number) → {boolean}

Formula.js only

Parameters:
NameTypeDescription
numberstring

the expression to be evaluated.

Returns:

true if number is a binary string, false if not.

Type: 
boolean
Example
ISBINARY('0101101') // returns true.

(inner) isBlank(value) → {boolean}

Returns TRUE if the value is blank.

Category: Information

Parameters:
NameTypeDescription
value*

The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.

Returns:

if the value is null.

Type: 
boolean
Example
ISBLANK(null) // returns true.

(inner) isEmbeddedInsideWCT()

Indicates whether any part of the current Notes® session is embedded inside of Workplace client.

See
Throws:

no plans to implement

Type
Error

(inner) isErr(value)

Returns TRUE if the value is any error value except #N/A.

Category: Information

Parameters:
NameTypeDescription
value*

The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.

Returns:

(TBD)

(inner) isError(value) → {boolean}

Returns TRUE if the value is any error value.

Category: Information

Parameters:
NameTypeDescription
value*

The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.

Returns:
Type: 
boolean

(inner) isEven(number) → {number}

Returns TRUE if the number is even.

Category: Information

Parameters:
NameTypeDescription
numbernumber

The value to test. If number is not an integer, it is truncated.

Returns:

true if a number is even and false if it is not

Type: 
number
Examples
ISEVEN(-3); // returns false.
ISEVEN(2); // returns true.

(inner) isFormula(reference)

Returns TRUE if there is a reference to a value that contains a formula. Category: Information

Parameters:
NameTypeDescription
reference*

Reference is a reference to the value you want to test. Reference can be a value reference, a formula, or a name that refers to a value.

Returns:

(TBD)

(inner) isInCompositeApp()

Indicates whether the component is running within a composite application.

See
Throws:

no plans to implement

Type
Error

(inner) isLogical(value) → {boolean}

Returns TRUE if the value is a logical value.

Category: Information

Parameters:
NameTypeDescription
value*

The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.

Returns:

true if the value is true, and false if the value is false or 0.

Type: 
boolean
Examples
ISLOGICAL(true); // returns true.
ISLOGICAL(0); // returns false.

(inner) isModalHelp()

Indicates whether the current document is a modal Help document.

See
Throws:

no plans to implement

Type
Error

(inner) isNA(value) → {boolean}

Returns TRUE if the value is the #N/A error value.

Category: Information

Parameters:
NameTypeDescription
value*

The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.

Returns:

returns true if the value being evaluated is equal to error.na, false if not;

Type: 
boolean
Examples
ISNA(error.na); // returns true.
ISNA(1); // returns false.

(inner) isNonText(value) → {boolean}

Returns TRUE if the value is not text.

Category: Information

Parameters:
NameTypeDescription
value*

The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.

Returns:

true if value is not a string, false if it is.

Type: 
boolean
Examples
ISNONTEXT(1); // returns true.
ISNONTEXT('string'); // returns false.

(inner) isNumber(value) → {boolean}

Returns TRUE if the value is a number.

Category: Information

Parameters:
NameTypeDescription
value*

The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.

Returns:

true if value is a number, false if not

Type: 
boolean

(inner) isOdd(value) → {boolean}

Returns TRUE if the number is odd.

Category: Information

Parameters:
NameTypeDescription
valuenumber

The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.

Returns:

true if the value is an odd number, false if not.

Type: 
boolean
Examples
ISODD(1); // returns true.
ISODD('string'); // returns false.
ISODD(2.5); // returns false.

(inner) isRef(value)

Returns TRUE if the value is a reference. Category: Information

Parameters:
NameTypeDescription
value*

The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.

Returns:

(TBD)

(inner) isText(value) → {boolean}

Returns TRUE if the value is text.

Category: Information

Parameters:
NameTypeDescription
value*

The value that you want tested. The value argument can be a blank (empty value), error, logical value, text, number, or reference value, or a name referring to any of these.

Returns:

returns true if value has type string, false if not.

Type: 
boolean

(inner) isUsingJavaElement()

Indicates whether a view or outline uses the Java™ user interface.

See
Throws:

no plans to implement

Type
Error

(inner) isVirtualizedDirectory()

Indicates whether virtualized directories are enabled for the current server.

See
Throws:

no plans to implement

Type
Error

(inner) languagePreference()

Returns user's specified preferred language setting.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) ldapServer()

Returns the URL and port number of the LDAP listener in the current domain. Notes® looks for this information in several places, following this search sequence:

  1. Searches on the current server.
  2. Searches for the notes.ini variable labeled LDAPSERVER=.
  3. Queries the administration server, which runs the LDAP service automatically, by default.
See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) n(value) → {number|Error}

Returns a value converted to a number.

Category: Information

Parameters:
NameTypeDescription
value*

The value you want converted. N converts values listed in the following table.

Returns:

value if it is a number, value.getTime if it is an instance of Date, 1 if true, 0 if false, otherwise it returns an error.

Type: 
number | Error

(inner) na() → {error}

Returns the error value #N/A.

Category: Information

Returns:

error.na

Type: 
error

(inner) notesError()

Allows you to generate an error condition within an expression. This is useful if you want to evaluate the current values in several fields and need to know if an error has occurred in the entry of any of them.

See
Throws:

Notes Error

Type
Error

(inner) regQueryValue()

Copies the administration execution control list from a specified Address Book and name to your personal workstation ECL.

See
Throws:

no plans to implement

Type
Error

(inner) serverAccess()

Checks if a specified user has a specified administrative access level to a server.

See
Throws:

no plans to implement

Type
Error

(inner) sheet(value)

Returns the sheet number of the referenced sheet. Category: Information

Parameters:
NameTypeDescription
value*

Optional. Value is the name of a sheet or a reference for which you want the sheet number. If value is omitted, SHEET returns the number of the sheet that contains the function.

Returns:

(TBD)

(inner) sheets(reference)

Returns the number of sheets in a reference. Category: Information

Parameters:
NameTypeDescription
reference*

Optional. Reference is a reference for which you want to know the number of sheets it contains. If Reference is omitted, SHEETS returns the number of sheets in the workbook that contains the function.

Returns:

(TBD)

(inner) soundex()

Returns the Soundex (the Notes® phonetic speller) code for the specified string.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) templateVersion()

Returns the version number of the master template upon which the database design is based.

See
Throws:

no plans to implement

Type
Error

(inner) thisName()

Returns the name of the current field.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) thisValue()

Returns the value of the current field.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) type(value) → {number|undefined}

Returns a number indicating the data type of a value.

Category: Information

Parameters:
NameTypeDescription
value*

Can be any Microsoft Excel value, such as a number, text, logical value, and so on.

Returns:

1 if value is a number, 2 if value is text, 4 if value isLogical, 16 if value is an array, 64 if value is an error/

Type: 
number | undefined
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-layout.html b/javadoc/module-layout.html new file mode 100644 index 00000000..8f1115c1 --- /dev/null +++ b/javadoc/module-layout.html @@ -0,0 +1,3 @@ +Module: layout
On this page

Layout

Methods

(inner) layoutAddGraphic()

Adds a graphic from the Clipboard to a layout region.

See
Throws:

No plans to implement

Type
Error

(inner) layoutAddText()

Creates a static text box in a layout region.

See
Throws:

No plans to implement

Type
Error

(inner) layoutElementBringToFront()

Brings the selected layout element to the front, which means it overlays any other layout elements that overlap it.

See
Throws:

No plans to implement

Type
Error

(inner) layoutElementProperties()

Displays the Properties box for the currently selected layout element.

See
Throws:

No plans to implement

Type
Error

(inner) layoutElementSendToBack()

Sends the selected layout element to the back, which means it displays underneath any other layout elements that overlap it.

See
Throws:

No plans to implement

Type
Error

(inner) layoutProperties()

Displays the Properties box for the currently selected layout region.

See
Throws:

No plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-lists.html b/javadoc/module-lists.html new file mode 100644 index 00000000..9ff86d7e --- /dev/null +++ b/javadoc/module-lists.html @@ -0,0 +1,3 @@ +Module: lists
On this page

Lists

Methods

(inner) count() → {Error}

Calculates the number of text, number, or time-date values in a list. This function always returns a number to indicate the number of entries in the list.

This function is similar to @Elements, except that it returns the number 1 instead of 0, when the value it is evaluating is not a list or is a null string.

See
To Do
  • this needs to be implemented
Returns:

method not implemented

Type: 
Error

(inner) elements() → {Error}

Calculates the number of text, number, or time-date values in a list. This function always returns a number to indicate the number of entries in the list.

See
To Do
  • this needs to be implemented
Returns:

method not implemented

Type: 
Error

(inner) explode() → {Error}

Returns a text list composed of the elements of a text string or date range.

  • If you specify a text string, elements are defined as sequences of characters separated by separator characters and newlines.
  • If you specify a time-date range, elements are defined as individual days within the range.
See
To Do
  • this needs to be implemented
Returns:

method not implemented

Type: 
Error

(inner) implode() → {Error}

Concatenates all members of a text list and returns a text string.

See
To Do
  • this needs to be implemented
Returns:

method not implemented

Type: 
Error

(inner) isMember() → {Error}

Indicates if a piece of text (or a text list) is contained within another text list. The function is case-sensitive.

See
To Do
  • this needs to be implemented
Returns:

method not implemented

Type: 
Error

(inner) isNotMember() → {Error}

Indicates if a text string (or a text list) is not contained within another text list. The function is case-sensitive.

See
To Do
  • this needs to be implemented
Returns:

method not implemented

Type: 
Error

(inner) keywords() → {Error}

Given two text lists, returns only those items from the second list that are found in the first list.

See
To Do
  • this needs to be implemented
Returns:

method not implemented

Type: 
Error

(inner) member() → {Error}

Given a value, finds its position in a text list.

See
To Do
  • this needs to be implemented
Returns:

method not implemented

Type: 
Error

(inner) nothing() → {Error}

Use with an @Transform formula. Returns no list element (reducing the return list by one element). Not valid in any other context.

See
To Do
  • this needs to be implemented
Returns:

method not implemented

Type: 
Error

(inner) replace() → {Error}

Repeats a string a specified number of times.

See
To Do
  • this needs to be implemented
Returns:

method not implemented

Type: 
Error

(inner) select()

Returns the value that appears in the number position. If the number is greater than the number of values, @Select returns the last value in the list. If the value in the number position is a list, returns the entire list contained within the value.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) sort() → {Error}

Sorts a list.

See
To Do
  • this needs to be implemented
Returns:

method not implemented

Type: 
Error

(inner) subset() → {Error}

Searches a list from beginning to end and returns the number values you specify. If you specify a negative number, @Subset searches the list from end to beginning, but the result is ordered as from the beginning of the list.

See
To Do
  • this needs to be implemented
Returns:

method not implemented

Type: 
Error

(inner) transform() → {Error}

Applies a formula to each element of a list and returns the results in a list.

See
To Do
  • this needs to be implemented
Returns:

method not implemented

Type: 
Error

(inner) unique(…text)

Without a parameter, returns a random, unique text value. With a parameter, removes duplicate values from a text list by returning only the first occurrence of each member of the list.

Parameters:
NameTypeAttributesDescription
text<repeatable>

list of values

See
To Do
  • this needs to be implemented
Returns:

If no parameter is specified, returns a random, unique text value. Otherwise, the text list, with duplicate values removed.

Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-logical.html b/javadoc/module-logical.html new file mode 100644 index 00000000..7c607611 --- /dev/null +++ b/javadoc/module-logical.html @@ -0,0 +1,3 @@ +Module: logical
On this page

Logical

Methods

(static) and(values) → {boolean}

Returns TRUE if all of its arguments are TRUE.

Parameters:
NameTypeDescription
valuesArray.<any>

The values to determine whether they are true or not.

See
Returns:

True if all of the arguments are true. False if any value is not true.

Type: 
boolean
Example
rosettajs.and(true, false) // returns false

(static) do(expressions) → {any}

Evaluates expressions from left to right, and returns the value of the last expression in the list.

Parameters:
NameTypeDescription
expressionsany

One or more expressions to evaluate.

See
Returns:

The resulting value of the last expression in the list.

Type: 
any
Example
rosettajs.do(rosettajs.success(), true, false, "message") // returns "message"

(static) doWhile()

Executes one or more statements iteratively while a condition is true. Checks the condition after executing the statements.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(static) failure(message) → {string}

Returns text that indicates that input to a field does not meet validation.

Parameters:
NameTypeDescription
messagestring

The error message to be displayed to the user.

See
Returns:

The message indicating the failure.

Type: 
string
Example
rosettajs.failure("Failure message test") // returns "Failure message test"

(static) false() → {boolean|number}

Returns the logical value false (or the number 0).

See
Returns:

False (or 0).

Type: 
boolean | number
Example
rosettajs.false(); // returns false (openf) or 0 (notesf)

(static) for()

Executes one or more statements iteratively while a condition remains true. Executes an initialization statement. Checks the condition before executing the statements and executes an increment statement after executing the statements.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(static) if(args) → {any}

Specifies a logical test to perform and returns the specified value determined by the test.

Parameters:
NameTypeDescription
argsany

The parameters that include the condition/action pair(s), and else action.

See
Returns:

The resulting value if true or false.

Type: 
any
Example
rosettajs.if(55 >= 12.45, "Over Budget", "OK") // returns "Over Budget"

(static) ifError(value, value_if_error) → {any}

Returns a value you specify if a formula evaluates to an error; otherwise, returns the result of the formula.

Parameters:
NameTypeDescription
valueany

The argument that is checked for an error.

value_if_errorany

The value to return if the formula evaluates to an error. The following error types are evaluated: #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!.

See
Returns:

The value you specify if a formula evaluates to an error; otherwise, returns the result of the formula.

Type: 
any
Example
rosettajs.ifError(error.value, 2) // returns 2

(static) ifNA(value, value_if_na) → {any}

Returns the value you specify if the expression resolves to #N/A, otherwise returns the result of the expression.

Parameters:
NameTypeDescription
valueany

The expression to compute.

value_if_naany

The result of the expression to return if the value is not #N/A.

Returns:

The value you specify if the expression resolves to #N/A, otherwise returns the result of the expression.

Type: 
any
Example
rosettajs.ifNA(error.na, 2) // returns 2

(static) ifs(args) → {any}

Checks whether one or more conditions are met and returns a value that corresponds to the first TRUE condition.

Parameters:
NameTypeDescription
argsArray.<any>

One or more conditions.

Returns:

The value that corresponds to the first TRUE condition.

Type: 
any
Example
rosettajs.ifs(false, 1, true, 2) // returns 2

(static) isNull(value) → {boolean}

Tests for a null value. Returns true only if a value is a single text value that is null, otherwise it returns false. This function also returns false if the value is an error.

Parameters:
NameTypeDescription
valueany

The value to test for null.

See
Returns:

True if value is null, otherwise false.

Type: 
boolean
Examples
rosettajs.isNull(null) // true
rosettajs.isNull(4) // false

(static) no() → {number}

Returns the number 0 (false).

See
Returns:

The number 0 (false).

Type: 
number
Example
rosettajs.no() // returns 0

(static) not(logical) → {boolean}

Reverses the logic of its argument.

Parameters:
NameTypeDescription
logicalboolean

The expression to reverse.

See
Returns:

The reversed logic of the logical expression.

Type: 
boolean
Example
rosettajs.not(false) // returns true

(static) or(values) → {boolean}

Returns TRUE if any argument is TRUE.

Parameters:
NameTypeDescription
valuesArray.<any>

The values to determine whether they are true or not.

See
Returns:

True if any one of the arguments are true. False if all values are false.

Type: 
boolean
Example
rosettajs.or(true, false) // returns true

(static) return(value) → {any}

Immediately stops the execution of a formula and returns the specified value. This is useful when you only want the remainder of the formula to be executed only if certain conditions are True.

Parameters:
NameTypeDescription
valueany

The value to return.

See
Returns:

The value.

Type: 
any
Example
rosettajs.return('Message to return') // throws 'Message to return'

(static) success() → {number}

Returns 1 (True). Use this function with @If in field validation formulas to indicate that the value entered satisfies the validation criteria.

See
Returns:

The number 1 (true).

Type: 
number
Example
rosettajs.success() // returns 1

(static) switch(args) → {any}

Evaluates an expression against a list of values and returns the result corresponding to the first matching value. If there is no match, an optional default value may be returned.

Parameters:
NameTypeDescription
argsArray.<any>

The expression and values to compare.

Returns:

The result corresponding to the first matching value.

Type: 
any
Example
rosettajs.switch() // returns

(static) true() → {boolean|number}

Returns the logical value true (or the number 1).

See
Returns:

True (or 1)

Type: 
boolean | number
Example
rosettajs.true(); // returns true (openf) or 1 (notesf)

(static) v2If()

This function performs an @If operation; the syntax is the same as for @if.

See
Throws:

No plans to implement

Type
Error

(static) while()

Returns the names of the folders containing the current document.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(static) xor(values) → {boolean}

Returns a logical exclusive OR of all arguments.

Parameters:
NameTypeDescription
valuesArray.<any>

logical1, logical2,… Logical 1 is required, subsequent logical values are optional. 1 to 254 conditions you want to test that can be either TRUE or FALSE, and can be logical values, arrays, or references.

Returns:

The logical exclusive OR of all arguments.

Type: 
boolean
Example
rosettajs.xor()

(static) yes() → {number}

Returns the number 1 (true).

See
Returns:

The number 1 (true).

Type: 
number
Example
rosettajs.yes() // returns 1
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-lookup-reference.html b/javadoc/module-lookup-reference.html new file mode 100644 index 00000000..099b1dbc --- /dev/null +++ b/javadoc/module-lookup-reference.html @@ -0,0 +1,3 @@ +Module: lookup-reference
On this page

Lookup Reference

Methods

(inner) choose(index_num, index_num, …args) → {any}

Chooses a value from a list of values.

Category: Lookup and reference

Parameters:
NameTypeAttributesDescription
index_numnumber

Specifies which value argument is selected. Index_num must be a number between 1 and 254, or a formula or reference to a value containing a number between 1 and 254. If index_num is 1, CHOOSE returns value1; if it is 2, CHOOSE returns value2; and so on. If index_num is less than 1 or greater than the number of the last value in the list, CHOOSE returns the #VALUE! error value. If index_num is a fraction, it is truncated to the lowest integer before being used.

  • If index_num is 1, CHOOSE returns value1; if it is 2, CHOOSE returns value2; and so on.
  • If index_num is less than 1 or greater than the number of the last value in the list, CHOOSE returns the #VALUE! error value.
  • If index_num is a fraction, it is truncated to the lowest integer before being used.
index_numnumber

the index of the value to return.

args*<repeatable>

value1, value2, ... Value 1 is required, subsequent values are optional. 1 to 254 value arguments from which CHOOSE selects a value or an action to perform based on index_num. The arguments can be numbers, value references, defined names, formulas, functions, or text.

See
Returns:

the value at a given index, or an error where it specifies an index that does not exist.

Type: 
any
Examples
lookup.CHOOSE(3, 'jima', 'jimb', 'jimc') //returns ('jimc')
lookup.CHOOSE(2, 'jima') //returns (error.value)

(inner) column(reference, index) → {number}

Returns the column number of a reference.

Category: Lookup and reference

Parameters:
NameTypeDescription
referenceArray.<Array.<any>>

the value or range of values for which you want to return the column number.

indexnumber
Returns:

the column number of a reference or an error if the arguments are incorrect.

Type: 
number

(inner) columns(array) → {number}

Returns the number of columns in a reference.

Category: Lookup and reference

Parameters:
NameTypeDescription
arrayArray.<Array.<any>>

An array or array formula, or a reference to a range of values for which you want the number of columns.

Returns:

the number of columns in a reference or an error if the arguments are incorrect.

Type: 
number

(inner) hLookup(lookup_value, table_array, row_index_num, range_lookupopt) → {any|Error}

Looks in the top row of an array and returns the value of the indicated value.

Category: Lookup and reference

Parameters:
NameTypeAttributesDescription
lookup_value*

The value to be found in the first row of the table. Lookup_value can be a value, a reference, or a text string.

table_arrayArray.<Array.<any>>

A table of information in which data is looked up. Use a reference to a range or a range name.

row_index_numnumber

The row number in table_array from which the matching value will be returned. A row_index_num of 1 returns the first row value in table_array, a row_index_num of 2 returns the second row value in table_array, and so on. If row_index_num is less than 1, HLOOKUP returns the #VALUE! error value; if row_index_num is greater than the number of rows on table_array, HLOOKUP returns the #REF! error value.

range_lookupboolean<optional>

Optional. A logical value that specifies whether you want HLOOKUP to find an exact match or an approximate match. If TRUE or omitted, an approximate match is returned. In other words, if an exact match is not found, the next largest value that is less than lookup_value is returned. If FALSE, HLOOKUP will find an exact match. If one is not found, the error value #N/A is returned.

See
Returns:

the value in the table_array second column based on the index of the value looked up in the first column.

Type: 
any | Error
Examples
rosetta.hLookup(0, [[1, 0], ['jim', 'jam']], 2, false) //returns'jam'
rosetta.hLookup(1.4, [[0, 1, 2, 1], ['A', 'B', 'C', 'D']], 2) //returns 'B'

(inner) index(array, row_num, column_numopt) → {any|Error}

Uses an index to choose a value from a reference or array.

Category: Lookup and reference

Parameters:
NameTypeAttributesDescription
arrayArray.<any>

A range of values or an array constant.

  • If array contains only one row or column, the corresponding row_num or column_num argument is optional.
  • If array has more than one row and more than one column, and only row_num or column_num is used, INDEX returns an array of the entire row or column in array.
row_numnumber

Required, unless column_num is present. Selects the row in array from which to return a value. If row_num is omitted, column_num is required.

column_numnumber<optional>

Optional. Selects the column in array from which to return a value. If column_num is omitted, row_num is required.

Returns:

returns the value at a given index from a datasource.

Type: 
any | Error
Examples
rosetta.index([['Banana', 'Apple'],['Strawberry', 'Pineapple']], 2, 1) //returns 'Strawberry'
rosetta.index([['Banana', 'Apple'],['Strawberry', 'Pineapple']], 1, 2) //returns 'Apple'

(inner) lookup(lookup_value, array, result_arrayopt) → {any|Error}

Looks up values in a vector or array.

Category: Lookup and reference

Parameters:
NameTypeAttributesDescription
lookup_value*

A value that LOOKUP searches for in an array. The lookup_value argument can be a number, text, a logical value, or a name or reference that refers to a value.

  • If LOOKUP can't find the value of lookup_value, it uses the largest value in the array that is less than or equal to lookup_value.
  • If the value of lookup_value is smaller than the smallest value in the first row or column (depending on the array dimensions), LOOKUP returns the #N/A error value.
arrayArray.<any>

A range of values that contains text, numbers, or logical values that you want to compare with lookup_value. The array form of LOOKUP is very similar to the HLOOKUP and VLOOKUP functions. The difference is that HLOOKUP searches for the value of lookup_value in the first row, VLOOKUP searches in the first column, and LOOKUP searches according to the dimensions of array.

result_arrayArray.<any><optional>

Optional. A range that contains only one row or column. The result_array argument must be the same size as lookup_value. It has to be the same size.

See
Returns:

the value in the result_array at the same index from the first array that is closest to the lookup_value

Type: 
any | Error
Examples
lookup('Jack', ['Jim', 'Jack', 'Franck'], ['blue', 'yellow', 'red']) //returns 'yellow'
lookup(0.21, [[0.1, 0.2, 0.3, 0.2]], [['A', 'B', 'C', 'D']]) //returns 'B'

(inner) match(lookup_value, lookup_array, match_type) → {number|Error}

Looks up values in a reference or array.

Category: Lookup and reference

Parameters:
NameTypeDefaultDescription
lookup_value*

The value that you want to match in lookup_array. For example, when you look up someone's number in a telephone book, you are using the person's name as the lookup value, but the telephone number is the value you want.The lookup_value argument can be a value (number, text, or logical value) or a value reference to a number, text, or logical value.

lookup_arrayArray.<any>

The range of values being searched.

match_typenumber1

Optional. The number -1, 0, or 1. The match_type argument specifies how Excel matches lookup_value with values in lookup_array. The default value for this argument is 1.

See
Returns:

the index of the value you are attempting to lookup via match_type, or it returns an error.

Type: 
number | Error
Examples
match(1, [[0], [1], [2], [3], [4]]) //returns 2
match('*mc', ['jima', 'jimb', 'jimc', 'bernie'], 0) //returns 3

(inner) row(reference, index) → {number}

Returns the row number of a reference.

Category: Lookup and reference

Parameters:
NameTypeDescription
referenceArray.<Array.<number>>

the value or range of values for which you want the row number.

indexnumber
Returns:

the row number of a reference or an error if the arguments are incorrect.

Type: 
number

(inner) rows(array)

Returns the number of rows in a reference.

Category: Lookup and reference

Parameters:
NameTypeDescription
arrayArray.<Array.<number>>

An array, an array formula, or a reference to a range of values for which you want the number of rows.

Returns:

the number of rows in a reference or an error if the arguments are incorect.

(inner) transpose(array) → {Array.<Array.<number>>}

Returns the transpose of an array.

Category: Lookup and reference

Parameters:
NameTypeDescription
arrayArray.<Array.<number>>

An array or range of values on a worksheet that you want to transpose. The transpose of an array is created by using the first row of the array as the first column of the new array, the second row of the array as the second column of the new array, and so on. If you're not sure of how to enter an array formula, see Create an array formula.

Returns:

the transpose of an array or an error if the arguments are incorrect.

Type: 
Array.<Array.<number>>

(inner) unique(…values)

Returns a list of unique values in a list or range.

Parameters:
NameTypeAttributesDescription
values<repeatable>

The list of values

Returns:

A list of unique values

(inner) vLookup(lookup_value, table_array, col_index_num, range_lookupopt) → {any|Error}

Looks in the first column of an array and moves across the row to return the value of a value.

Category: Lookup and reference

Parameters:
NameTypeAttributesDescription
lookup_value*

The value to be found in the first row of the table. Lookup_value can be a value, a reference, or a text string.

table_arrayArray.<Array.<any>>

A table of information in which data is looked up. Use a reference to a range or a range name.

col_index_numnumber

The row number in table_array from which the matching value will be returned. A row_index_num of 1 returns the first row value in table_array, a row_index_num of 2 returns the second row value in table_array, and so on. If row_index_num is less than 1, VLOOKUP returns the #VALUE! error value; if row_index_num is greater than the number of rows on table_array, VLOOKUP returns the #REF! error value.

range_lookupboolean<optional>

Optional. A logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match. If TRUE or omitted, an approximate match is returned. In other words, if an exact match is not found, the next largest value that is less than lookup_value is returned. If FALSE, VLOOKUP will find an exact match. If one is not found, the error value #N/A is returned.

See
Returns:

the value in the table_array second column based on the index of the value looked up in the first column.

Type: 
any | Error
Examples
rosetta.vLookup('jim', [['jam', 2], ['jim', 4]], 2, false) //returns 4
rosetta.vLookup(1.1, [[0, 'A'], [1, 'B'], [2, 'C'], [1, 'D']], 2, true) //returns 'B'
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-mail.html b/javadoc/module-mail.html new file mode 100644 index 00000000..e3a03131 --- /dev/null +++ b/javadoc/module-mail.html @@ -0,0 +1,3 @@ +Module: mail
On this page

Mail

Methods

(inner) mailAddress()

Displays the Select Addresses dialog box, where the user can select people and groups to include in an address field of a mail document.

See
Throws:

no plans to implement

Type
Error

(inner) mailComposeMemo()

Creates and displays a blank mail document. Notes/Domino uses the default form for the user's mail database. This is a Memo document unless the user has changed it.

See
Throws:

no plans to implement

Type
Error

(inner) mailEncryptSavedPreference()

Indicates whether the user has selected "Encrypt saved mail" in the User Preferences dialog box.

See
Throws:

no plans to implement

Type
Error

(inner) mailEncryptSentPreference()

Indicates whether the user has selected "Encrypt sent mail" in the User Preferences dialog box.

See
Throws:

no plans to implement

Type
Error

(inner) mailForward()

Forwards the current document by placing its contents into a mail memo, which the user then addresses and sends like any other mail memo.

See
Throws:

no plans to implement

Type
Error

(inner) mailForwardAsAttachment()

In cc:Mail, forwards a Notes/Domino document as a cc:Mail attachment.

See
Throws:

no plans to implement

Type
Error

(inner) mailOpen()

Opens the user's mail database to the view or navigator to which it was most recently open.

See
Throws:

no plans to implement

Type
Error

(inner) mailRequestCrossCert()

Displays the Choose ID to be Cross-Certified dialog box, which allows an administrator to send a safe copy of a Certifier ID to another administrator, who can certify it with a different Certifier ID to create a cross certificate.

See
Throws:

no plans to implement

Type
Error

(inner) mailRequestNewName()

Displays the Change User Name dialog box, which allows the user to send a portion of the Notes® user ID to a Notes/Domino administrator, who can change the user name associated with the ID and return the ID to the user. The user then merges the updated portion back into the existing user ID.

See
Throws:

no plans to implement

Type
Error

(inner) mailRequestNewPublicKey()

Displays the Mail New Public Key Request dialog box, which allows the user to send a portion of his or her Notes/Domino ID to an administrator, who can create a new public key for the ID and return the ID to the user. The user then merges the updated portion back into the existing user ID.

See
Throws:

no plans to implement

Type
Error

(inner) mailSavePreference()

Indicates which option the user has selected for the "Save sent mail"setting in the User Preferences dialog box.

See
Throws:

no plans to implement

Type
Error

(inner) mailScanUnread()

Opens the user's mail database to the first unread document in the view to which the database was most recently open.

See
Throws:

no plans to implement

Type
Error

(inner) mailSend()

Displays the Mail Send dialog box, which lets the user choose whether or not to encrypt, sign, or send the selected memo.

See
Throws:

no plans to implement

Type
Error

(inner) mailSendCertificateRequest()

Displays the Mail Certificate Request dialog box. This lets the user send a safe copy of the Notes/Domino user ID to an administrator, who certifies and then returns it; the user then merges the updated safe copy back into the user ID.

See
Throws:

no plans to implement

Type
Error

(inner) mailSendEncryptionKey()

Displays the User ID dialog box, where the user can define and send encryption keys. If the user's ID is password-protected, the user will be required to enter the password before being allowed access to the dialog box.

See
Throws:

no plans to implement

Type
Error

(inner) mailSendPublicKey()

Displays the Mail Public Key dialog box. This lets the user send the public key to another user (typically to an administrator who can then paste the public key into that user's Person record in the Domino® Directory).

See
Throws:

no plans to implement

Type
Error

(inner) mailSignPreference()

Indicates whether the user has selected "Sign sent mail" in the User Preferences dialog box.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-math-trig.html b/javadoc/module-math-trig.html new file mode 100644 index 00000000..bdde9549 --- /dev/null +++ b/javadoc/module-math-trig.html @@ -0,0 +1,5 @@ +Module: math-trig
On this page

Math and Trigonometry

Methods

(inner) abs(…value) → {number}

Returns the absolute (unsigned) value of one or more number(s).

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
valuenumber<repeatable>

Number or number list. The numbers whose absolute value is to be calculated. Any number whether positive or negative, whole or fractional, integer or real.

See
Returns:

Number or number list. The absolute values of value.

Type: 
number
Examples
rosetta.abs(-3); // returns 3
rosetta.abs(-3,-4,-5); // returns [3,4,5]

(inner) acos(…value) → {number}

Returns the arccosine (inverse cosine) of a number using the cosine of an angle.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
valuenumber<repeatable>

Number or number list. A cosine of an angle, from -1 through 1.

See
Returns:

Number or number list. The trigonometric arccosine of value. An angle, in radians, from 0 through pi. This represents an angle between 0 and 180 degrees.

Type: 
number
Examples
rosetta.acos(.5); // returns 1.0471975511965979
rosetta.acos(.5,.6,.7); // returns [1.0471975511965979, 0.9272952180016123, 0.7953988301841436]

(inner) acosh(number) → {number}

Returns the inverse hyperbolic cosine of a number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Any real number equal to or greater than 1.

Returns:

Number that is the trigonometric inverse hyperbolic cosine of the number.

Type: 
number
Example
rosetta.acosh(1); // returns 0

(inner) acot(number) → {number}

Returns the inverse cotangent of a number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Number that is the cotangent of the angle you want. This must be a real number.

Returns:

Number that is the trigonometric inverse cotangent of the number.

Type: 
number
Example
rosetta.acot(1); // returns 0.7853981633974483

(inner) acoth(number) → {number}

Returns the inverse hyperbolic cotangent of a number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Any real number equal to or greater than 1.

Returns:

Number that is the trigonometric inverse hyperbolic cotangent of the number.

Type: 
number
Example
rosetta.acoth(1); // returns Infinity

(inner) add(num1, num2) → {number}

Returns the sum of the two given numbers.

Category: Math and trigonometry

Parameters:
NameTypeDescription
num1number

Number that is the first addend.

num2number

Number that is the second addend.

Returns:

The sum of the addends.

Type: 
number
Example
rosetta.add(1.2, 4) // returns 5.2

(inner) aggregate(function_num, options, ref1, ref2opt) → {number}

Returns an aggregate in a list or database.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
function_numnumber

A number 1 to 19 that specifies which function to use.

optionsnumber

A numerical value that determines which values to ignore in the evaluation range for the function. Note: The function will not ignore hidden rows, nested subtotals or nested aggregates if the array argument includes a calculation, for example: =AGGREGATE(14,3,A1:A100*(A1:A100>0),1)

ref1number | Array.<number>

The first numeric argument for functions that take multiple numeric arguments for which you want the aggregate value.

ref2number<optional>

Optional. Numeric arguments 2 to 253 for which you want the aggregate value. For functions that take an array, ref1 is an array, an array formula, or a reference to a range of values for which you want the aggregate value. Ref2 is a second argument that is required for certain functions.

Returns:

Number that is the aggregate of the input in a list or database.

Type: 
number
Example
rosetta.aggregate(1, 4, [1, 2, 3]) // returns 2

(inner) arabic(text) → {number}

Converts a Roman number to Arabic, as a number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
textstring

String enclosed in quotation marks, an empty string (""), or a reference to a value containing text.

Returns:

Number that is the Arabic form of the given Roman number

Type: 
number
Example
rosetta.arabic('X') // returns 10

(inner) asin(…value) → {number}

Returns the arcsine (inverse sine) of a number using the sine of an angle.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
valuenumber<repeatable>

Number or number list. A sine of an angle, from -1 through 1.

See
Returns:

Number or number list. The trigonometric arcsine of value. An angle, in radians, from -pi/2 through pi/2. This represents an angle between -90 and 90 degrees.

Type: 
number
Examples
rosetta.asin(.5); // returns 0.5235987755982989
rosetta.asin(.5,.6,.7); // returns [0.5235987755982989, 0.6435011087932844, 0.775397496610753]

(inner) asinh(number) → {number}

Returns the inverse hyperbolic sine of a number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Any real number.

Returns:

Number that is the trigonometric hyperbolic arcsine of the number.

Type: 
number
Example
rosetta.asinh(0.5); // returns 0.48121182505960347

(inner) atan(…value) → {number}

Returns the arc (inverse) tangent using the tangent of an angle.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
valuenumber<repeatable>

Number or number list. A tangent of an angle, from -1 through 1.

See
Returns:

Number or number list. The trigonometric arctan of value. An angle, in radians, from -pi/2 through pi/2. This represents an angle between -90 and 90 degrees.

Type: 
number
Examples
rosetta.atan(.5); // returns 0.4636476090008061
rosetta.atan(.5,.6,.7); // returns [0.4636476090008061, 0.5404195002705842, 0.6107259643892086]

(inner) atan2(x, y) → {number}

Returns the arc (inverse) tangent using the tangent x- and y-coordinates.

Category: Math and trigonometry

Parameters:
NameTypeDescription
xnumber

Number or number list. The denominator of the tangent value y / x.

ynumber

Number or number list. The numerator of the tangent value y / x.

See
Returns:

Number or number list. The trigonometric arctangent of y / x. An angle, in radians, from -pi through pi. This represents an angle between -180 and 180 degrees, depending on the sign of x and y.

Type: 
number
Examples
rosetta.atan2(1,1); // returns 0.7853981633974483
rosetta.atan2([1,2,3],[1,2,3]); // returns [0.7853981633974483, 0.7853981633974483, 0.7853981633974483]

(inner) atanh(number) → {number}

Returns the inverse hyperbolic tangent of a number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Any real number between 1 and -1.

Returns:

Number that is the trigonometric hyperbolic arctangent of the number.

Type: 
number
Example
rosetta.atanh(1); // returns Infinity

(inner) base(number, radix, min_lengthopt) → {number}

Converts a number into a text representation with the given radix (base).

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
numbernumber

The number that you want to convert. Must be an integer greater than or equal to 0 and less than 2^53.

radixnumber

The base radix that you want to convert the number into. Must be an integer greater than or equal to 2 and less than or equal to 36.

min_lengthnumber<optional>

Optional. The minimum length of the returned string. Must be an integer greater than or equal to 0.

Returns:

Number that is the text representation with the given radix (base).

Type: 
number
Example
rosetta.base(7, 2) // returns '111'

(inner) ceiling(number, significance, modeopt) → {number}

Rounds a number to the nearest integer or to the nearest multiple of significance.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
numbernumber

The value you want to round.

significancenumber

The multiple to which you want to round.

modenumber<optional>

Optional. For negative numbers, controls whether number is rounded toward or away from zero.

Returns:

Number that is the result of rounding the provided number

Type: 
number

(inner) combin(number, number_chosen) → {number}

Returns the number of combinations for a given number of objects.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

The number of items.

number_chosennumber

The number of items in each combination.

Returns:

Number of combinations for the given number of items.

Type: 
number
Example
rosetta.combin(3, 2) // returns 3

(inner) combina(number, number_chosen) → {number}

Returns the number of combinations with repetitions for a given number of items.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

The number of items. Must be greater than or equal to 0, and greater than or equal to Number_chosen. Non-integer values are truncated.

number_chosennumber

The number of items in each combination. Must be greater than or equal to 0. Non-integer values are truncated.

Returns:

Number of combinations (with repititions) for the given number of items.

Type: 
number
Example
rosetta.combina(3, 2) // returns 6

(inner) cos(…angle) → {number}

Given an angle in radians, returns the cosine of the angle. In a right triangle, the cosine of an acute angle is the ratio of the length of its adjacent side to the length of the hypotenuse.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
anglenumber<repeatable>

Number or number list. An angle measured in radians for which you want the cosine.

See
Returns:

Number or number list. The cosine of angle, from -1 to 1. Rounded to 15 decimal places.

Type: 
number
Examples
rosetta.cos(.5); // returns 0.8775825618903728
rosetta.cos(.5,.6,.7); // returns [0.8775825618903728, 0.8253356149096783, 0.7648421872844885]

(inner) cosh(number) → {number}

Returns the hyperbolic cosine of the angle.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Any real number, angle measured in radians for which you want the hyperbolic cosine.

Returns:

Number that is the trigonometric hyperbolic cosine of angle

Type: 
number
Example
rosetta.cosh(0); // returns 1

(inner) cot(number) → {number}

Returns the cotangent of a number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Any real number, angle measured in radians for which you want the cotangent.

Returns:

Number that is the trigonometric cotangent of the number.

Type: 
number
Example
rosetta.cot(1); // returns 0.6420926159343306

(inner) coth(number) → {number}

Returns the hyperbolic cotangent of a number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Any real number, angle measured in radians for which you want the hyperbolic cotangent.

Returns:

Number that is the trigonometric hyperbolic cotangent of the number.

Type: 
number
Example
rosetta.coth(1); // returns 1.3130352854993312

(inner) csc(number) → {number}

Returns the cosecant of an angle.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Any real number, angle measured in radians for which you want the cosecant.

Returns:

Number that is the trigonometric cosecant of the number.

Type: 
number
Example
rosetta.csc(1); // returns 1.1883951057781212

(inner) csch(number) → {number}

Returns the hyperbolic cosecant of an angle.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Any real number, angle measured in radians for which you want the hyperbolic cosecant.

Returns:

Number that is the trigonometric hyperbolic cosecant of the number.

Type: 
number
Example
rosetta.csch(1); // returns 0.8509181282393216

(inner) decimal(text, radix) → {number}

Converts a text representation of a number in a given base into a decimal number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
textstring

The number as text

radixnumber

The number as the base. Radix must be an integer.

Returns:

The converted number as a decimal.

Type: 
number
Example
rosetta.decimal('10', 2) // returns 2

(inner) degrees(angle) → {number}

Converts radians to degrees.

Category: Math and trigonometry

Parameters:
NameTypeDescription
anglenumber

The angle in radians that you want to convert.

Returns:

The converted angle in degrees.

Type: 
number
Example
rosetta.degrees(Math.PI) // returns 180

(inner) divide(dividend, divisor) → {number}

Returns the quotient of the two given numbers.

Category: Math and trigonometry

Parameters:
NameTypeDescription
dividendnumber

Number that is the dividend (numerator).

divisornumber

Number that is the divisor (denominator).

Returns:

The quotient of the two numbers.

Type: 
number
Example
rosetta.divide(10, 4) // returns 2.5

(inner) e() → {number}

Returns the mathematical constant e (approximately 2.718282).

Category: Math and trigonometry

Returns:

Number that is the mathematical constant e

Type: 
number
Example
rosetta.e() // returns 2.718282

(inner) eq(value1, value2) → {boolean}

Returns whether the first number is equal to the second number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
value1number | string

The first value to compare.

value2number | string

The second value to compare.

Returns:

True if num1 is equal to num2

Type: 
boolean
Example
rosetta.eq(10, 10) // returns true

(inner) even(number) → {number}

Rounds a number up to the nearest even integer.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

The value to round.

Returns:

The number rounded up to the nearest even integer.

Type: 
number
Example
rosetta.even(3) // returns 4

(inner) exp(…power) → {number}

Returns e (approximately 2.718282) raised to the power of a given number.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
powernumber<repeatable>

Number or number list. The power to which you want to raise e.

See
Returns:

Number or number list. The number e raised to the power of the parameter. (this value can contain up to 14 decimal places).

Type: 
number
Examples
rosetta.exp(1); // returns 2.718281828459045
rosetta.exp(1,1); // returns [2.718281828459045, 2.718281828459045]

(inner) fact(number) → {number}

Returns the factorial of a number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

The nonnegative number for which you want the factorial. If number is not an integer, it is truncated.

Returns:

The factorial of the given number.

Type: 
number
Example
rosetta.fact(6) // returns 720

(inner) factDouble(number) → {number}

Returns the double factorial of a number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

The nonnegative number for which you want the double factorial. If number is not an integer, it is truncated.

Returns:

The double factorial of the given number.

Type: 
number
Example
rosetta.factDouble(10) // returns 3840

(inner) floatEq(number1, number2, confidence) → {number}

Compares two numbers for equality within a confidence range.

Category: Math and trigonometry

Parameters:
NameTypeDescription
number1number

Number or number list. Any numeric value.

number2number

Number or number list. Any numeric value.

confidencenumber

Number or number list. Optional (default is 0.0001).

See
Returns:

Returns 1 (true) if the difference of the numbers is less than the confidence range. Returns 0 (false) if the difference of the numbers exceeds or is equal to the confidence range.

Type: 
number
Examples
rosetta.floatEq(2.22, 2.24, 0.01); // returns false
rosetta.floatEq(2.22, 2.24, 0.03); // returns true
rosetta.floatEq([2.22, 2.24], [2.25, 2.26], 0.04); // returns true

(inner) floor(number, significance) → {number}

Rounds a number down, toward zero.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

The numeric value you want to round.

significancenumber

The multiple to which you want to round.

Returns:

The number rounded down to the nearest multiple given.

Type: 
number
Example
rosetta.floor(3.7, 2) // returns 2

(inner) gcd(…numbers) → {number}

Returns the greatest common divisor.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
numbersnumber<repeatable>

Number or number list. One is required, subsequent numbers are optional. 1 to 255 values for which you want the greatest common divisor. If any value is not an integer, it is truncated.

See
Returns:

Number that is the greatest common divisor.

Type: 
number
Example
rosetta.gcd(24, 36) // returns 12

(inner) gt(num1, num2) → {boolean}

Returns whether the first number is greater than the second number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
num1number | string

The first number to compare.

num2number | string

The second number to compare.

Returns:

True if num1 is greater than num2

Type: 
boolean
Example
rosetta.gt(10, 4) // returns true

(inner) gte(num1, num2) → {boolean}

Returns whether the first number is greater than or equal to the second number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
num1number | string

The first number to compare.

num2number | string

The second number to compare.

Returns:

True if num1 is greater than or equal to num2

Type: 
boolean
Example
rosetta.gte(10, 10) // returns true

(inner) int(number) → {number}

Truncates the values in a number or number list at the whole number, leaving off any decimals.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Number that is the value you want to truncate.

See
Returns:

Number that is the truncated value.

Type: 
number
Example
rosetta.int(5.5); // returns 5

(inner) integer(…value) → {number}

Truncates the values in a number or number list at the whole number, leaving off any decimals.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
valuenumber<repeatable>

Number or number list. The value(s) that is the value you want to truncate.

See
Returns:

Number or number list. The value(s) that is the truncated value.

Type: 
number
Examples
rosetta.integer(5.5); // returns 5
rosetta.integer(5.5,6.6,7.7); // returns [5, 6, 7]

(inner) lcm(…numbers) → {number}

Returns the least common multiple.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
numbersnumber<repeatable>

Number or number list. One is required, subsequent numbers are optional. 1 to 255 values for which you want the least common multiple. If value is not an integer, it is truncated.

Returns:

Number that is the least common multiple.

Type: 
number
Example
rosetta.lcm(5, 1, 2) // returns 10

(inner) ln(…value) → {number}

Returns the natural log of a number. Natural logs use e (approximately 2.718282) as their base.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
valuenumber<repeatable>

Number or number list. May be any value greater than 0, and can contain up to 15 decimal places.

See
Returns:

Number or number list. The natural log of number.

Type: 
number
Examples
rosetta.ln(5); // returns 1.6094379124341003
rosetta.ln(5,6,7); // returns [1.6094379124341003, 1.791759469228055, 1.9459101490553132]

(inner) ln2() → {number}

Returns the natural logarithm of 2.

Category: Math and trigonometry

Returns:

Number, the natural log of 2.

Type: 
number
Example
rosetta.ln2(); // returns 0.6931471805599453

(inner) ln10() → {number}

Returns the natural logarithm of 10.

Category: Math and trigonometry

Returns:

Number, the natural log of 10.

Type: 
number
Example
rosetta.ln10(); // returns 2.302585092994046

(inner) log(value, baseopt) → {number}

Returns the common logarithm (base 10) of any number greater than zero.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDefaultDescription
valuenumber

Number or number list. Number who's common logarithm will be returned. Must be larger than zero.

basenumber<optional>
10

Number, optional. The base of the logarithm. If base is omitted, it is assumed to be 10.

See
Returns:

Number or number list. The log of number.

Type: 
number
Examples
rosetta.log(4); // returns 0.602059991327962
rosetta.log(5,6,7); // returns [0.6989700043360187, 0.7781512503836435, 0.8450980400142567]

(inner) log2E() → {number}

Returns the base-2 logarithm of e.

Category: Math and trigonometry

Returns:

Number, the base-2 logarithm of e.

Type: 
number
Example
rosetta.log2E(); // returns 1.4426950408889634

(inner) log10(number) → {number}

Returns the base-10 logarithm of a number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

The positive real number for which you want the base-10 logarithm.

Returns:

Number that is the base-10 logarithm of the given number.

Type: 
number
Example
rosetta.log10(10) // returns 1

(inner) log10E() → {number}

Returns the base-10 logarithm of e.

Category: Math and trigonometry

Returns:

Number, the base-10 logarithm of e.

Type: 
number
Example
rosetta.log10E(); // returns 0.4342944819032518

(inner) lt(num1, num2) → {boolean}

Returns whether the first number is less than the second number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
num1number | string

The first number to compare.

num2number | string

The second number to compare.

Returns:

True if num1 is less than num2

Type: 
boolean
Example
rosetta.lt(10, 4) // returns false

(inner) lte(num1, num2) → {boolean}

Returns whether the first number is less than or equal to the second number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
num1number | string

The first number to compare.

num2number | string

The second number to compare.

Returns:

True if num1 is less than or equal to num2

Type: 
boolean
Example
rosetta.lte(10, 10) // returns true

(inner) max(…values) → {number}

Returns the largest number in a single list, or the larger of two numbers or number lists.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
valuesnumber<repeatable>

Number or number list.

See
Returns:

Number or number list. The larger of the values provided. If the parameters are number lists, NotesFormula Max returns a list that is the result of pair-wise computation on the list values and OpenFormula Max concats the lists and returns the number result.

Type: 
number
Examples
rosetta.max(4,5,6); // returns 6
rosetta.max([5,8,6,7],[2,9,3]); // returns [5, 9, 6, 7] or 9

(inner) min(…values) → {number}

Returns the smallest number in a single list, or the smaller of two numbers or number lists.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
valuesnumber<repeatable>

Number or number list.

See
Returns:

Number or number list. NotesFormula Max returns a list that is the result of pair-wise computation on the list values and OpenFormula Max concats the lists and returns the number result.

Type: 
number
Examples
rosetta.min(4,5,6); // returns 4
rosetta.min([5,8,6,7],[2,9,3]); // returns [2, 8, 3, 7] or 2

(inner) minus(num1, num2) → {number}

Returns the difference between the two given numbers.

Category: Math and trigonometry

Parameters:
NameTypeDescription
num1number

Number that is being subtracted from.

num2number

Number that is being subtracted.

Returns:

The difference between the two numbers.

Type: 
number
Example
rosetta.minus(10, 4) // returns 6

(inner) mod(number, divisor) → {number}

Returns the remainder of a division operation.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Number that is the dividend (numerator) to be divided.

divisornumber

Number that is the divisor (denominator) to be divide dividend by.

See
Returns:

Number that is the remainder of dividend divided by divisor. If the parameters are number lists, mod returns a list that is the result of pair-wise computation on the list values.

Type: 
number
Example
rosetta.mod(7,4); // returns 3

(inner) modulo(dividend, divisor) → {number}

Returns the remainder of a division operation.

Category: Math and trigonometry

Parameters:
NameTypeDescription
dividendnumber

Number or number list. The dividend (numerator) to be divided.

divisornumber

Number or number list. The divisor (denominator) to be divide dividend by.

See
Returns:

Number or number list. The remainder of dividend divided by divisor. If the parameters are number lists, mod returns a list that is the result of pair-wise computation on the list values.

Type: 
number
Examples
rosetta.modulo(7,4); // returns 3
rosetta.modulo([7,5],[4,3]); // returns [3,2]);

(inner) mRound(number, multiple) → {number}

Returns a number rounded to the desired multiple.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Number that is the value to round.

multiplenumber

Number that is the multiple to which you want to round the number.

Returns:

Number that is rounded to the desired multiple.

Type: 
number
Example
rosetta.mRound(10, 3) // returns 9

(inner) multinomial(…numbers) → {number}

Returns the multinomial of a set of numbers.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
numbersnumber<repeatable>

Number or number list, one is required, subsequent numbers are optional. 1 to 255 values for which you want the multinomial.

Returns:

Number that is the multinomial of the set of given numbers.

Type: 
number
Example
rosetta.multinomial(2, 3, 4) // 1260

(inner) multiply(factor1, factor2) → {number}

Returns the product of the two given numbers.

Category: Math and trigonometry

Parameters:
NameTypeDescription
factor1number

Number that is the first factor being multiplied.

factor2number

Number that is the second factor being multiplied.

Returns:

The product of the two numbers.

Type: 
number
Example
rosetta.multiply(10, 4) // returns 40

(inner) ne(value1, value2) → {true}

Returns whether the first number is not equal to the second number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
value1number | string

The first value to compare.

value2number | string

The second value to compare.

Returns:

True if num1 is not equal to num2

Type: 
true
Example
rosetta.ne(10, 10) // returns true

(inner) odd(number) → {number}

Rounds a number up to the nearest odd integer.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

The value to round.

Returns:

The number rounded up to the nearest odd integer.

Type: 
number
Example
rosetta.odd(4) // returns 5

(inner) pi() → {number}

Returns the constant value pi, accurate to fifteen decimal places. The value pi is the ratio of the circumference of a circle to its diameter.

Category: Math and trigonometry

See
Returns:

Returns the constant value pi, accurate to fifteen decimal places. 3.141592653589793

Type: 
number

(inner) pow(base, exponent) → {number}

Returns the result of a number raised to a power.

Category: Math and trigonometry

Parameters:
NameTypeDescription
basenumber

The value that you want raised to exponent. May be positive or negative.

exponentnumber

The power to which the base number is raised.

Returns:

The value of base raised to the power of exponent.

Type: 
number
Example
rosetta.pow(4,2); // returns 16

(inner) power(base, exponent) → {number}

Returns the result of a number raised to a power.

Category: Math and trigonometry

Parameters:
NameTypeDescription
basenumber

Number or number list. The value that you want raised to exponent. May be positive or negative.

exponentnumber

Number or number list. The power to which the base number is raised.

See
Returns:

Number or number list. The value of base raised to the power of exponent.

Type: 
number
Examples
rosetta.power(4,2); // returns 16
rosetta.power([5,6],[2,2]); // returns [25, 36]

(inner) product(…numbers) → {number}

Multiplies the arguments.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
numbersnumber<repeatable>

Number or number list that you want to multiply, up to a maximum of 255 arguments.

Returns:

Number that is the product of the arguments.

Type: 
number
Example
rosetta.product([5, 15, 30]) // returns 2250

(inner) quotient(numerator, denominator) → {number}

Returns the integer portion of a division.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numeratornumber

Number that is the dividend.

denominatornumber

Number that is the divisor.

Returns:

The quotient of the two arguments (integer portion).

Type: 
number
Example
rosetta.quotient(4.5, 3.1) // returns 1

(inner) radians(angle) → {number}

Converts degrees to radians.

Category: Math and trigonometry

Parameters:
NameTypeDescription
anglenumber

An angle in degrees that you want to convert.

Returns:

The converted angle in radians.

Type: 
number
Example
rosetta.radians(180) // returns Math.PI

(inner) rand() → {number}

Generates a random number between 0 and 1, inclusive.

Category: Math and trigonometry

See
Returns:

Random number between 0 and 1, inclusive.

Type: 
number

(inner) randBetween(bottom, top) → {number}

Returns a random number between the numbers you specify.

Category: Math and trigonometry

Parameters:
NameTypeDescription
bottomnumber

The smallest integer RANDBETWEEN will return.

topnumber

The largest integer RANDBETWEEN will return.

Returns:

A random number between the numbers you specify.

Type: 
number
Example
rosetta.randBetween(1, 10) // returns a number between 1 and 10 (inclusive)

(inner) random() → {number}

Generates a random number between 0 and 1, inclusive by calling open formula RAND

Category: Math and trigonometry

See
To Do
  • this needs to be implemented for NotesFormula with parameters
Returns:

Random number between 0 and 1, inclusive.

Type: 
number

(inner) roman(arabic_numeral) → {string}

Converts an arabic numeral to roman, as text.

Category: Math and trigonometry

Parameters:
NameTypeDescription
arabic_numeralnumber

Number that is the Arabic numeral you want converted.

Returns:

String that is the Roman numeral form of the given Arabic number

Type: 
string
Example
rosetta.roman(10) // returns 'X'

(inner) round(number, digits) → {number}

Rounds the designated number to the nearest whole number; if an additional number is specified, it is used as the rounding factor.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Number or number list. Numbers to be rounded.

digitsnumber

Number. Optional. The rounding factor to use. If you don't specify a factor, the number is rounded to the nearest whole number.

See
Returns:

Number or number list. The value of number, rounded to the specified factor or to the nearest whole number. If number is a list, each number in the list is rounded to the specified factor or to the nearest whole number.

Type: 
number
Examples
rosetta.round(2.15,1); // returns 2.2
rosetta.round([2.15,626.31],1); // returns [2.2, 626.3]

(inner) roundDown(number, digits) → {number}

Rounds a number down, toward zero.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Any real number that you want rounded down.

digitsnumber

The number of digits to which you want to round number.

Returns:

The number rounded down

Type: 
number
Examples
rosetta.roundDown(3.14159, 3) // returns 3.141
rosetta.roundDown(-3.14159, 1) // returns -3.1

(inner) roundUp(number, digits) → {number}

Rounds a number up, away from zero.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Any real number that you want rounded up.

digitsnumber

The number of digits to which you want to round number.

Returns:

The number rounded up

Type: 
number
Examples
rosetta.roundUp(3.14159, 3) // returns 3.142
rosetta.roundUp(-3.14159, 1) // returns -3.2

(inner) sec(number) → {number}

Returns the secant of an angle.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Any real number, angle measured in radians for which you want the secant.

Returns:

Number that is the trigonometric secant of the number.

Type: 
number
Example
rosetta.sec(1); // returns 1.1883951057781212

(inner) sech(number) → {number}

Returns the hyperbolic secant of an angle.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Any real number, angle measured in radians for which you want the hyperbolic secant.

Returns:

Number that is the trigonometric hyberbolic secant of the number.

Type: 
number
Example
rosetta.sech(1); // returns 0.6480542736638855

(inner) seriesSum(x, power, step, coefficients) → {number}

Returns the sum of a power series based on the formula.

Category: Math and trigonometry

Parameters:
NameTypeDescription
xnumber

The input value to the power series.

powernumber

The initial power to which you want to raise x.

stepnumber

The step by which to increase n for each term in the series.

coefficientsArray.<number>

A set of coefficients by which each successive power of x is multiplied. The number of values in coefficients determines the number of terms in the power series. For example, if there are three values in coefficients, then there will be three terms in the power series.

Returns:

Number that is the sum of the given power series

Type: 
number
Example
rosetta.seriesSum( rosetta.pi() / 4, 0, 2,
+           [ 1, -1 / rosetta.fact(2), 1 / rosetta.fact(4), -1 / rosetta.fact(6) ] )
+           // returns 0.7071032148228457

(inner) sign(…value) → {number}

Indicates whether a number is positive, negative, or zero.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
valuenumber<repeatable>

Number or number list. The number whose sign you want to determine.

See
Returns:

Number or number list. May be any of the following values: signed number is negative, - 1, signed number is zero, 0, signed number is positive, 1

Type: 
number
Examples
rosetta.sign(5); // returns 1
rosetta.sign(5,-6,7); // returns [1, -1, 1]

(inner) sin(…angle) → {number}

Given an angle in radians, returns the sine of the angle. In a right triangle, the sine of an acute angle is the ratio of the length of its opposite side to the length of the hypotenuse.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
anglenumber<repeatable>

Number or number list. An angle expressed in radians for which you want the sine.

See
Returns:

Number or number list. The sine of angle, from -1 to 1. Rounded to 15 decimal places.

Type: 
number
Examples
rosetta.sin(.5); // returns 0.479425538604203
rosetta.sin(.5,.6,.7); // returns [0.479425538604203, 0.5646424733950354, 0.644217687237691]

(inner) sinh(number) → {number}

Returns the hyperbolic sine of a number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Any real number, angle measured in radians for which you want the hyperbolic sine.

Returns:

Number that is the trigonometric hyberbolic sine of the number.

Type: 
number
Example
rosetta.sinh(1); // returns 1.1752011936438014

(inner) sqrt(…value) → {number}

Given a number, returns its positive square root.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
valuenumber<repeatable>

Number or number list. The number whose square root you want to find. The number must be positive, otherwise sqrt returns an error.

See
Returns:

Number or number list. The square root of the number.

Type: 
number
Examples
rosetta.sqrt(25); // returns 5
rosetta.sqrt(16,64,25); // returns [4, 8, 5]

(inner) sqrtPi(number) → {number}

Returns the square root of (number * pi).

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

The number by which pi is multiplied.

Returns:

Number that is the square root of (number * pi)

Type: 
number
Example
rosetta.sqrtPi(3) // returns 3.0699801238394655

(inner) subTotal(function_num, ref1) → {number}

Returns a subtotal in a list or database.

Category: Math and trigonometry

Parameters:
NameTypeDescription
function_numnumber

Number 1-11 or 101-111 that specifies the function to use for the subtotal. 1-11 includes manually-hidden rows, while 101-111 excludes them; filtered-out values are always excluded.

ref1Array.<number>

Number or number list. The first named range or reference for which you want the subtotal.

Returns:

The subtotal of the of a list or database

Type: 
number
Example
rosetta.subTotal(4, [1, 2, 3]) // returns 3 (max)

(inner) sum(…value) → {number}

Adds a set of numbers or number lists.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
valuenumber<repeatable>

Number or number list. The numbers used to calculate the sum.

See
Returns:

Number that is the sum of the value numbers.

Type: 
number
Examples
rosetta.sum(1, 2, 3); // returns 6
rosetta.sum([1, 2, 3], [1, 4]); // returns 11

(inner) sumIf(range, criteria, sum_rangeopt) → {number}

Adds the values specified by a given criteria.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
rangeArray.<any>

The range of values that you want evaluated by criteria. Cells in each range must be numbers or names, arrays, or references that contain numbers. Blank and text values are ignored.

criteria*

The criteria in the form of a number, expression, a value reference, text, or a function that defines which values will be added.

sum_rangeArray.<number><optional>

Optional. The actual values to add, if you want to add values other than those specified in the range argument. If the sum_range argument is omitted, Excel adds the values that are specified in the range argument (the same values to which the criteria is applied). Sum_range should be the same size and shape as range. If it isn't, performance may suffer, and the formula will sum a range of values that starts with the first value in sum_range but has the same dimensions as range.

Returns:

The sum of the values specified by the given criteria.

Type: 
number
Example
rosetta.sumIf([1, 2, 3], '>1') // returns 5

(inner) sumIfs(…values) → {number}

Adds the values in a range that meet multiple criteria.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
valuesArray.<any><repeatable>

The range of values that you want evaluated.

Returns:

The sum of the values that meet the given criteria.

Type: 
number
Example
rosetta.sumIfs([1, 2, 3], [4, 5, 6], '>4', [7, 8, 9], '<9') // returns 2

(inner) sumProduct(…args) → {number}

Returns the sum of the products of corresponding array components.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
argsArray.<any><repeatable>

The range of values that you want evaluated.

Returns:

The sum of the products of corresponding array components.

Type: 
number
Example
rosetta.sumProduct([1, 4, 10], [0.55, 0.3, 0.1]) // returns 2.75

(inner) sumSq(…args) → {number}

Returns the sum of the squares of the arguments.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
argsnumber<repeatable>

Number or number list. One number is required, subsequent numbers are optional. 1 to 255 arguments for which you want the sum of the squares. You can also use a single array or a reference to an array instead of arguments separated by commas.

Returns:

The sum of the squares of the arguments.

Type: 
number
Example
rosetta.sumSq([1, 2, 3]) // returns 14

(inner) sumx2My2(array_x, array_y) → {number}

Returns the sum of the difference of squares of corresponding values in two arrays.

Category: Math and trigonometry

Parameters:
NameTypeDescription
array_xArray.<number>

The first array or range of values.

array_yArray.<number>

The second array or range of values.

Returns:

The sum of the difference of squares of corresponding values in two arrays.

Type: 
number
Example
rosetta.sumx2My2([1, 2, 3], [4, 5, 6]) // returns -63

(inner) sumx2Py2(array_x, array_y) → {number}

Returns the sum of the sum of squares of corresponding values in two arrays.

Category: Math and trigonometry

Parameters:
NameTypeDescription
array_xArray.<number>

The first array or range of values.

array_yArray.<number>

The second array or range of values.

Returns:

The sum of the difference of squares of corresponding values in two arrays.

Type: 
number
Example
rosetta.sumx2Py2([1, 2, 3], [4, 5, 6]) // returns 91

(inner) sumxmy2(array_x, array_y) → {number}

Returns the sum of squares of differences of corresponding values in two arrays.

Category: Math and trigonometry

Parameters:
NameTypeDescription
array_xArray.<number>

The first array or range of values.

array_yArray.<number>

The second array or range of values.

Returns:

The sum of squares of differences of corresponding values in two arrays.

Type: 
number
Example
rosetta.sumxmy2([1, 2, 3], [4, 5, 6]) // returns 27

(inner) tan(…angle) → {number}

Given an angle in radians, returns the tangent of the angle. In a right triangle the tangent of an acute angle is the ratio of the length of the opposite side to the length of the adjacent side.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
anglenumber<repeatable>

Number or number list. An angle expressed in radians for which you want the tangent.

See
Returns:

Number or number list. The tangent of angle, rounded to 15 decimal places.

Type: 
number
Examples
rosetta.tan(.5); // returns 0.5463024898437905
rosetta.tan(.5,.6,.7); // returns [0.5463024898437905, 0.6841368083416923, 0.8422883804630794]

(inner) tanh(number) → {number}

Returns the hyperbolic tangent of a number.

Category: Math and trigonometry

Parameters:
NameTypeDescription
numbernumber

Any real number.

Returns:

The hyperbolic tangent of the number.

Type: 
number
Example
rosetta.tanh(0.5) // returns 0.46211715726000974

(inner) trunc(number, digitsopt) → {number}

Truncates a number to an integer or a specified precision.

Category: Math and trigonometry

Parameters:
NameTypeAttributesDescription
numbernumber

The number you want to truncate.

digitsnumber<optional>

Optional. A number specifying the precision of the truncation. The default value for num_digits is 0 (zero).

Returns:

The truncated for of the number with the given precision.

Type: 
number
Examples
rosetta.trunc(0.45) // returns 0
rosetta.trunc(12.3456, 2) // returns 12.34
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-messaging.html b/javadoc/module-messaging.html new file mode 100644 index 00000000..69309894 --- /dev/null +++ b/javadoc/module-messaging.html @@ -0,0 +1,3 @@ +Module: messaging
On this page
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-miscellaneous.html b/javadoc/module-miscellaneous.html new file mode 100644 index 00000000..8b12fb51 --- /dev/null +++ b/javadoc/module-miscellaneous.html @@ -0,0 +1,3 @@ +Module: miscellaneous
On this page

Miscellaneous

Methods

(inner) addBookmark()

Adds a bookmark with the specified URL or current object.

See
Throws:

no plans to implement

Type
Error

(inner) addToIMContactList()

Adds a name or names to a personal group in the Instant Messaging Contact List.

See
Throws:

no plans to implement

Type
Error

(inner) calendarFormat()

Changes the Calendar view to display one day, two days, one work week, one week, two work weeks, two weeks, one work month, one month, or one year.

See
Throws:

no plans to implement

Type
Error

(inner) calendarGoTo()

Goes to a particular date in a Calendar view.

See
Throws:

no plans to implement

Type
Error

(inner) checkAlarms()

Triggers the alarm daemon to check for new alarms in the mail file.

See
Throws:

no plans to implement

Type
Error

(inner) checkCalendar()

Pops up a dialog box containing a one-day calendar view. The current database must contain a calendar view for this command to function properly.

See
Throws:

no plans to implement

Type
Error

(inner) clear()

Performs the menu command Edit - Delete.

See
To Do
  • this needs to be implemented
Throws:

no plans to implement

Type
Error

(inner) copySelectedAsTable()

Copies one or more selected entries as a table.

See
Throws:

no plans to implement

Type
Error

(inner) debugLotusScript()

Puts Designer into debug mode, so that all LotusScript® scripts run in the debugger. The command is a toggle; selecting it again takes Notes® out of debug mode.

See
Throws:

no plans to implement

Type
Error

(inner) dialingRules()

Displays the Dialing Rules dialog box, which allows you to define dialing rules for a modem in a Location document in a Domino® Directory.

See
Throws:

no plans to implement

Type
Error

(inner) dialogBox()

Brings up a dialog box that displays the current document (either open or selected in a view). The dialog box shares fields with the underlying document. The user interacts with the dialog box as usual, clicking OK or Cancel when finished.

This function can be used with any form, but it's particularly useful with forms that contain a single table or layout region, because the user can interact with the table or layout region as if it were a dialog box.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) directories()

Displays the Directories dialog box which allows you to search for an address, view detailed information about an address entry, and add an entry to your Domino® Directory with the Directories dialog box.

See
Throws:

no plans to implement

Type
Error

(inner) enableAlarms()

Starts or stops the alarm daemon.

See
Throws:

no plans to implement

Type
Error

(inner) environment()

Sets or returns an environment variable stored in a formula.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) exchangeUnreadMarks()

For two selected database replicas, marks the documents as read in one replica that are marked as read in the other.

See
Throws:

no plans to implement

Type
Error

(inner) execute()

Launches an application.

See
Throws:

no plans to implement

Type
Error

(inner) exitNotes()

Performs the menu command File - Exit (File - Quit on the Macintosh), which closes Notes/Domino and all its open windows.

See
Throws:

no plans to implement

Type
Error

(inner) findFreeTimeDialog()

Opens the Free Time dialog box to allow searches for available meeting times.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) formActions()

Displays the actions pane for the current form, subform, or Page. The command is a toggle; selecting it again hides the actions pane.

See
Throws:

no plans to implement

Type
Error

(inner) goUpLevel()

Displays the view containing the current document when the user closes that document.

See
Throws:

no plans to implement

Type
Error

(inner) hashPassword()

Encodes a string.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) insertSubform()

Displays the Insert Subform dialog box, where you can select a subform to be inserted on a form.

See
Throws:

no plans to implement

Type
Error

(inner) launchApp()

Launches the requested Domino® application.

See
Throws:

no plans to implement

Type
Error

(inner) mailSend()

There are two ways to use @MailSend:

  • When used with no parameters, @MailSend mails the current document (the one being processed when the @function is evaluated) to the recipient designated in the document's SendTo field. The document must have a SendTo field.
  • When used with one or more parameters, @MailSend composes a new mail memo based on the information you supply in the arguments list, and sends it to the recipients listed in the sendTo, copyTo, and blindcopyTo arguments.
See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) passwordQuality()

Evaluates the return value of a Password data type field with a number.

See
Throws:

no plans to implement

Type
Error

(inner) pasteBitmapAsBackground()

Pastes a bitmap into the background of a navigator. All other objects in the navigator overlay the background bitmap.

See
Throws:

no plans to implement

Type
Error

(inner) pasteBitmapAsObject()

Pastes a bitmap into a navigator. The bitmap becomes a hotspot which can be edited like any other hotspot.

See
Throws:

no plans to implement

Type
Error

(inner) pictureProperties()

Displays the Properties box for a bitmap in a rich text field.

See
Throws:

no plans to implement

Type
Error

(inner) postedCommand()

Indicates whether a field is locked by an administration policy and cannot be modified.

See
To Do
  • this needs to be implemented
Throws:

no plans to implement

Type
Error

(inner) remoteDebugLotusScript()

From the Notes® Remote Debugger client, opens the Select Debug Target dialog box.

See
Throws:

no plans to implement

Type
Error

(inner) sendInstantMessage()

Starts a chat with one or more users.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) setCurrentLocation()

Displays the Choose Location dialog box, where you can choose your current workstation location, such as Office, Island, or Travel.

See
Throws:

no plans to implement

Type
Error

(inner) setEnvironment()

Sets an environment variable stored in the user's notes.ini file (Windows™, OS/2, and UNIX™) or Notes® Preferences file (Macintosh).

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) setHTTPHeader()

In a Web application, sets the value of HTTP headers in the response being generated by the server for the browser client.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) setViewInfo()

In Standard Outline views, filters a view to display only documents from a specified category. In Calendar views, filters a view to display only documents that contain a specified string in a specified column.

See
To Do
  • this needs to be implemented
Throws:

no plans to implement

Type
Error

(inner) smartIconsFloating()

Makes the SmartIcons palette "float" so that users can move it around on the screen.

See
Throws:

no plans to implement

Type
Error

(inner) smartIconsNextSet()

Switches to display the next set of SmartIcons in the Icon bar.

See
Throws:

no plans to implement

Type
Error

(inner) styleCycleKey()

Cycles through the list of styles that have been defined for the current document, form, or page. This is the same as pressing F11. Each time you invoke StyleCycleKey, a different style goes into effect.

See
Throws:

no plans to implement

Type
Error

(inner) validateInternetAddress()

Validates an Internet address based on the RFC 822 or RFC 821 Address Format Syntax.

See
To Do
  • this needs to be implemented
Throws:

no plans to implement

Type
Error

(inner) verifyPassword()

Compares two passwords.

See
To Do
  • this needs to be implemented
Throws:

no plans to implement

Type
Error

(inner) viewShowThisUnread()

Changes a view to show only unread documents, or to show read and unread documents.

See
To Do
  • this needs to be implemented
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-navigate.html b/javadoc/module-navigate.html new file mode 100644 index 00000000..c42d4f5a --- /dev/null +++ b/javadoc/module-navigate.html @@ -0,0 +1,3 @@ +Module: navigate
On this page

Navigate

Methods

(inner) navigateNext()

Navigates to the next document in the current view or folder.

See
Throws:

no plans to implement

Type
Error

(inner) navigateNextHighlight()

Navigates to the next full-text search highlight within a document, working from left to right and beginning to end.

See
Throws:

no plans to implement

Type
Error

(inner) navigateNextMain()

Navigates to the next main document in the current view.

See
Throws:

no plans to implement

Type
Error

(inner) navigateNextSelected()

Navigates to the next selected document in the current view or folder.

See
Throws:

no plans to implement

Type
Error

(inner) navigateNextUnread()

Navigates to the next unread document in the current view or folder.

See
Throws:

no plans to implement

Type
Error

(inner) navigatePrev()

Navigates to the previous document in the current view or folder.

See
Throws:

no plans to implement

Type
Error

(inner) navigatePrevHighlight()

Navigates to the previous full-text search highlight within a document, working from right to left and end to beginning.

See
Throws:

no plans to implement

Type
Error

(inner) navigatePrevMain()

Navigates to the previous main document in the current view or folder.

See
Throws:

no plans to implement

Type
Error

(inner) navigatePrevSelected()

Navigates to the previous selected document in the current view or folder.

See
Throws:

no plans to implement

Type
Error

(inner) navigatePrevUnread()

Navigates to the previous unread document in the current view or folder.

See
Throws:

no plans to implement

Type
Error

Returns to the document from which you launched the current document.

See
Throws:

no plans to implement

Type
Error

(inner) navigatorProperties()

Displays the Properties box for a navigator.

See
Throws:

no plans to implement

Type
Error

(inner) navigatorTest()

Opens a navigator in Testing mode, so you can test its hotspots, formulas, and scripts. Selecting this command again puts the navigator back into Design mode.

See
Throws:

no plans to implement

Type
Error

(inner) navNext()

Navigates to the next document in the current view or folder.

See
Throws:

no plans to implement

Type
Error

(inner) navNextMain()

Navigates to the next main document in the current view.

See
Throws:

no plans to implement

Type
Error

(inner) navNextSelected()

Navigates to the next selected document in the current view or folder.

See
Throws:

no plans to implement

Type
Error

(inner) navNextUnread()

Navigates to the next unread document in the current view or folder.

See
Throws:

no plans to implement

Type
Error

(inner) navPrev()

Navigates to the previous document in the current view or folder.

See
  • For further information, see www.hcltechsw.com
Throws:

no plans to implement

Type
Error

(inner) navPrevMain()

Navigates to the previous main document in the current view or folder.

See
Throws:

no plans to implement

Type
Error

(inner) navPrevSelected()

Navigates to the previous selected document in the current view or folder.

See
Throws:

no plans to implement

Type
Error

(inner) navPrevUnread()

Navigates to the previous unread document in the current view or folder.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-network.html b/javadoc/module-network.html new file mode 100644 index 00000000..820d337a --- /dev/null +++ b/javadoc/module-network.html @@ -0,0 +1,3 @@ +Module: network
On this page

Network

Methods

(inner) certificate()

Extracts information from the Certified Public Key in the Domino® Directory.

See
Throws:

no plans to implement

Type
Error

(inner) getHTTPHeader()

In a Web application, returns the value of an HTTP header from the browser client request being processed by the server.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) getPortsList()

Returns a list of enabled or disabled ports.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-object.html b/javadoc/module-object.html new file mode 100644 index 00000000..4a8b8544 --- /dev/null +++ b/javadoc/module-object.html @@ -0,0 +1,3 @@ +Module: object
On this page

Object

Methods

(inner) objectDisplayAs()

Displays the Display As dialog box, which lets you change the display settings of the selected OLE object.

See
Throws:

no plans to implement

Type
Error

(inner) objectOpen()

Opens an OLE object for editing.

See
Throws:

no plans to implement

Type
Error

(inner) objectProperties()

Displays the Properties box for the selected OLE object.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-open.html b/javadoc/module-open.html new file mode 100644 index 00000000..844a8da5 --- /dev/null +++ b/javadoc/module-open.html @@ -0,0 +1,3 @@ +Module: open
On this page

Open

Methods

(inner) openCalendar()

Opens a mail file to the Calendar view.

See
Throws:

no plans to implement

Type
Error

(inner) openDocument() → {Promise.<boolean>}

Opens a document.

See
Returns:
Type: 
Promise.<boolean>

(inner) openFrameset()

Opens a frameset defined for the current database. Framesets provide a way for designers to display several pages at the same time. A frame is actually one page; a frameset is a collection of pages. Page designers can create links between frames. A major advantage of framesets is the ability to leave one page constant as users scroll or link to other pages.

See
Throws:

no plans to implement

Type
Error

(inner) openHelpDocument()

Allows you to create your own context-sensitive help documents. To use this command, you must first create a view that has a sorted first column containing key values that uniquely identify each help document. @Command([OpenHelpDocument]) searches this sorted view for the specified key value and, if found, displays the associated help document in a separate Help window.

See
Throws:

no plans to implement

Type
Error

(inner) openNavigator()

Opens a navigator defined for the selected database.

See
Throws:

no plans to implement

Type
Error

(inner) openPage()

Opens a page defined for the current database. A page is a design element that structures and displays information, including text, graphics, applets, and links. Unlike a form, a page cannot contain fields, subforms, layout regions, and some embedded controls.

See
Throws:

no plans to implement

Type
Error

(inner) openView() → {Promise.<boolean>}

Opens the specified view in the current database.

See
Returns:
Type: 
Promise.<boolean>
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-refresh.html b/javadoc/module-refresh.html new file mode 100644 index 00000000..022a70f8 --- /dev/null +++ b/javadoc/module-refresh.html @@ -0,0 +1,3 @@ +Module: refresh
On this page

Refresh

Methods

(inner) refreshFrame()

Refreshes the specified frame in a frameset.

See
Throws:

no plans to implement

Type
Error

(inner) refreshHideFormulas()

Refreshes only the hidden formulas in a document or view.

See
Throws:

no plans to implement

Type
Error

(inner) refreshParentNote()

This formula sends the values entered in the dialog box to the parent document. A designer can update a parent note and close the dialog box without having to use the OK button on the dialog box.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-replicator.html b/javadoc/module-replicator.html new file mode 100644 index 00000000..6b7c14cb --- /dev/null +++ b/javadoc/module-replicator.html @@ -0,0 +1,3 @@ +Module: replicator
On this page

Replicator

Methods

(inner) replicator()

Displays the Replicator on the Notes® workspace page.

See
Throws:

no plans to implement

Type
Error

(inner) replicatorReplicateHigh()

Initiates replication of databases that have been assigned a priority of High.

See
Throws:

no plans to implement

Type
Error

(inner) replicatorReplicateNext()

Stops replication of the currently replicating database and initiates replication of the next database selected for replication.

See
Throws:

no plans to implement

Type
Error

(inner) replicatorReplicateSelected()

Initiates replication of the selected database.

See
Throws:

no plans to implement

Type
Error

(inner) replicatorReplicateWithServer()

Displays the "Replicate With Which Server" dialog box and initiates replication with the server you select.

See
Throws:

no plans to implement

Type
Error

(inner) replicatorSendMail()

Sends local pending mail to the server.

See
Throws:

no plans to implement

Type
Error

(inner) replicatorSendReceiveMail()

Initiates replication between the mail server and your local mail database.

See
Throws:

no plans to implement

Type
Error

(inner) replicatorStart()

Initiates or resumes replication of the selected databases.

See
Throws:

no plans to implement

Type
Error

(inner) replicatorStop()

Stops the current replication process.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-rosetta-api-context.html b/javadoc/module-rosetta-api-context.html new file mode 100644 index 00000000..3e6ea9eb --- /dev/null +++ b/javadoc/module-rosetta-api-context.html @@ -0,0 +1,3 @@ +Module: rosetta-api-context
On this page

Rosetta API

Methods

(inner) getDefault() → {string}

Get default context

Returns:

default context (Local or DB)

Type: 
string

(inner) isDefaultDb() → {boolean}

Is default context database?

Returns:

true if the default context is set to db; false otherwise

Type: 
boolean

(inner) isDefaultLocal() → {boolean}

Is default context local?

Returns:

true if the default context is set to local; false otherwise

Type: 
boolean

(inner) setDefaultAsDb() → {string}

Set default context to db

Returns:

The default context

Type: 
string

(inner) setDefaultAsLocal() → {string}

Set default context to local

Returns:

The default context

Type: 
string
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-rosetta-api-voltmx-rosettaServicesEntry.html b/javadoc/module-rosetta-api-voltmx-rosettaServicesEntry.html new file mode 100644 index 00000000..bae8dee3 --- /dev/null +++ b/javadoc/module-rosetta-api-voltmx-rosettaServicesEntry.html @@ -0,0 +1,3 @@ +Class: rosettaServicesEntry
On this page

rosetta-api-voltmx~ rosettaServicesEntry

Entry class for a Volt MX Service Each Volt MX Foundry Service is stored in a separate rosettaServicesEntry

Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-rosetta-api-voltmx-rosettaVMXObject.html b/javadoc/module-rosetta-api-voltmx-rosettaVMXObject.html new file mode 100644 index 00000000..f7ab6354 --- /dev/null +++ b/javadoc/module-rosetta-api-voltmx-rosettaVMXObject.html @@ -0,0 +1,3 @@ +Class: rosettaVMXObject
On this page

rosetta-api-voltmx~ rosettaVMXObject

Class for a Volt MX Object - View or Form

Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-rosetta-api-voltmx.html b/javadoc/module-rosetta-api-voltmx.html new file mode 100644 index 00000000..ebd817aa --- /dev/null +++ b/javadoc/module-rosetta-api-voltmx.html @@ -0,0 +1,3 @@ +Module: rosetta-api-voltmx
On this page

Rosetta API - Volt MX

Classes

rosettaServicesEntry
rosettaVMXObject

Members

(static) rosettaServicesMap

Top level Map to store all Volt MX Services

(inner) currentServerDatabase

Current active Server:Database

Methods

(inner) getDefaultServiceType() → {string}

Set getDefaultServiceType

Returns:

the default service type currently set

Type: 
string

(inner) isDefaultServiceTypeIntegration() → {boolean}

Is default service type integration.

Returns:

True if the default service type is set to integration; false otherwise

Type: 
boolean

(inner) isDefaultServiceTypeObject() → {boolean}

Is default service type object.

Returns:

True if the default service type is set to object; false otherwise

Type: 
boolean

(inner) isDefaultServiceTypeOffline() → {boolean}

Is default service type offline.

Returns:

True if the default service type is set to offline; false otherwise

Type: 
boolean

(inner) rosettajsLogger() → {any}

rosettajsLogger

Returns:

rosettajs logger for voltmx;

Type: 
any

(inner) setDefaultServiceTypeAsIntegration() → {string}

Set default service type to integration.

Returns:

The default service type

Type: 
string

(inner) setDefaultServiceTypeAsObject() → {string}

Set default service type to object.

Returns:

The default service type

Type: 
string

(inner) setDefaultServiceTypeAsOffline() → {string}

Set default service type to offline.

Returns:

The default service type

Type: 
string
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-rosetta-api.html b/javadoc/module-rosetta-api.html new file mode 100644 index 00000000..be5050f5 --- /dev/null +++ b/javadoc/module-rosetta-api.html @@ -0,0 +1,111 @@ +Module: rosetta-api
On this page

Rosetta API

Source

Methods

(inner) getDefaultAPI() → {string}

Set getDefaultAPI

Returns:

the default API currently set

Type: 
string

(inner) getDefaultContext() → {string}

Get default context

Returns:

default context (Local or DB)

Type: 
string

(inner) getDefaultFramework() → {string}

Get default framework

Returns:

default framework (JS or VMX)

Type: 
string

(inner) getTernFileNames() → {Object}

Get the names for the Tern files generated for the Rosetta API.

Returns:

The names of the tern file definitions generated for the Rossetta API. Keys are "API" for the Rosetta javascript API, "Notes" for the Notes formula, and "OpenFormula" for OpenFormula.

Type: 
Object

(inner) isDefaultContextDb() → {boolean}

Is default context database?

Returns:

true if the default context is set to db; false otherwise

Type: 
boolean

(inner) isDefaultContextLocal() → {boolean}

Is default context local?

Returns:

true if the default context is set to local; false otherwise

Type: 
boolean

(inner) isDefaultFrameworkJS() → {boolean}

Is default framework Javascript.

Returns:

True if the default framework is set to js; false otherwise

Type: 
boolean

(inner) isDefaultFrameworkVoltMX() → {boolean}

Is default framework Volt MX.

Returns:

True if the default framework is set to vmx; false otherwise

Type: 
boolean

(inner) isDefaultNotes() → {boolean}

Is default API Notes.

Returns:

True if the default API is set to Notes; false otherwise

Type: 
boolean

(inner) isDefaultOpenFormula() → {boolean}

Is default API Open Formula.

Returns:

True if the default API is set to Open Formula false otherwise

Type: 
boolean

(inner) registerAPI(apiRef, data) → {Object}

Register an API by adding it as an object to the referential array of APIs Defines/redefines the Rosetta API library by creating/updating a node in the API object The API object may be redefined if when using the existing category, name, language combination If language param is supplied, the API node will also define the method at the formula language level and the main method will point to call the method inside the language object

Parameters:
NameTypeDescription
apiRefObject

required. reference to the rosetta API object tree where to register the method.

dataObject

required. object defining the extended API. object props as follows: "name" :required. the API method name to register under rosetta "cat" :optional. the category name where the API name will be defined under. default: "Custom" "lang" :optional. the formula language implementation layer to register the method under. default: undefined "namef":optional. the method name to use in the formula lang implementations layer. default: name arg "code" : <String|Function> optional. a string with the formula to convert or a callback function. default: noop: () => {}

Throws:

Error string reprensenting registration failure

Type
String
Returns:

the return value from registerCustomAPI

Type: 
Object
Example
// code as actual js arrow function object, default params for the rest
+// defines <rosettaObj>.Custom.hello = s => alert(`hello $(s)}`)
+registerAPI(
+  apiRef:rosettajs,
+  {
+    "name":"hello(s)",
+    "code": s => alert(`hello $(s)}`)
+  }
+);
+
+// code as actual js function object,
+// defines <rosettaObj>.Text.hello(args...) -> .Text._notes.Hello_Test(args...) = function(name) { return "hello " + name; }
+registerAPI(
+  apiRef:rosettajs,
+  {
+    "name": "hello(name)",
+    "cat": "Text",
+    "lang": "notes",
+    "namef": "Hello_Test",
+    "code": function(name) { return "hello " + name; }
+  }
+);
+
+// code as stringified js function body,
+// defines <rosettaObj>.Text.hellop(args...) -> .Text._notes.HelloPhone_Test(args...) = function(name,phone) { return `hello ${name}. phone is ${phone}` }
+registerAPI(
+  apiRef:rosettajs,
+  {
+    "name": "hellop(name,phone)",
+    "cat": "Text",
+    "lang": "notes",
+    "namef": "HelloPhone_Test",
+    "code": "{ return `hello ${name}. phone is ${phone}` }"
+  }
+
+// code as stringified notes formula code (gets auto-converted to rosettajs),
+// defines <rosettaObj>.Custom.myAbs -> .Custom._notes.myAbs(args...) = n => { return rosettajs.Math.abs(n)+10 }`)
+registerAPI(
+  apiRef:rosettajs,
+  {
+    "name":"myAbs(n)",
+    "code": "@Abs(n)+10;"
+  }
+);
+
+// code as stringified open formula code (gets auto-converted to rosettajs),
+// defines <rosettaObj>.Custom.myAbs -> .Custom._openFormula.MYABS(args...) = n => { return rosettajs.Math.abs(n)+10 }`)
+registerAPI(
+  apiRef:rosettajs,
+  {
+    "name":"myAbs(n)",
+    "namef": "MYABS"
+    "code": "=ABS(n)+10;"
+  }
+);

(inner) registerAPIs(apiRef, data) → {Array}

Register APIs from an array of JSON API extension definition objects. Each object in the array must adhere to schema required in registerAPI method

Parameters:
NameTypeDescription
apiRefString

required. reference to the rosetta api object tree

dataArray

an array of JSON objects, each representing a custom API to register. see registerAPI for schema

Throws:

Error string reprensenting registration failure

Type
String
Returns:

Array of callbacks for the API methods registered

Type: 
Array
Example
registerAPI(
+  apiRef:rosettajs,
+  [
+    { // defines: <rosettajs>.Custom.simplest = () => { }
+      "name": "simplest"
+    },
+    { // defines: <rosettajs>.Text.simpler = () => { }
+      "name": "simpler",
+      "cat": "Text",
+    },
+    { // defines: <rosettajs>.Text.simple = function(x) { return x+1; }
+      "name": "simple(x)",
+      "cat": "Text",
+      "code": function(x) { return x+1; }
+    },
+    { // defines: <rosettajs>.Text.simple = function(x) { this._notes.simple(): function(x) { return x+1; } }
+      "name": "simpleNotes(x)",
+      "cat": "Text",
+      "lang": "notes",
+      "code": function(x) { return x+1; }
+    },
+    { // defines: <rosettajs>.Text.simple = function(x) { this._notes.ADVanceNOTES123(): function(x) { return x+1; } }
+      "name": "advancedNotes(x)",
+      "cat": "Text",
+      "lang": "notes",
+      "namef": "ADVanceNOTES123",
+      "code": function(x) { return x+1; }
+    },
+    {
+      "cat": "Text",
+      "name": "hello(name)",
+      "lang": "notes",
+      "namef": "Hello",
+      "code": function(name) { return "hello " + name; }
+    },
+    {
+      "name": "goodbye(name)",
+      "lang": "notes",
+      "cat": "Text",
+      "code": function(name) { return "bye bye " + name; }
+    },
+    { // defines: <rosettajs>.Custom.weather = function(x) { this._openFormula.WEATHER(): function(zip) { return "Sunny in " + zip; } }
+      "name": "WEATHER(zip)",
+      "lang": "open formula",
+      "cat": "Custom",
+      "code": function (zip) { return "Sunny in " + zip; }
+    },
+    { // defines: <rosettajs>.Custom.absPlusX = function(n,x) { this._notes.absPlusX(): javascript conversion result from "@Abs(n)+x" }
+      "name": "AbsPlusX(n; x)",
+      "lang": "notes",
+      "cat": "Custom",
+      "code": "@Abs(n)+x;"
+    }
+  ]
+);

(inner) setDefaultAPIAsNotes() → {string}

Set default API to Notes when an underlaying Open Formula API function with the same name exists.

Returns:

The default API

Type: 
string

(inner) setDefaultAPIAsOpenFormula() → {string}

Set default API to Open Formula when an underlaying Notes API function with the same name exists.

Returns:

The default API

Type: 
string

(inner) setDefaultContextAsDb() → {string}

Set default context to db

Returns:

The default context

Type: 
string

(inner) setDefaultContextAsLocal() → {string}

Set default context to local

Returns:

The default context

Type: 
string

(inner) setDefaultFrameworkAsJS() → {string}

Set default framework to javascript

Returns:

The default framework

Type: 
string

(inner) setDefaultFrameworkAsVoltMX() → {string}

Set default framework to voltmx

Returns:

The default framework

Type: 
string
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-section.html b/javadoc/module-section.html new file mode 100644 index 00000000..6ad129c3 --- /dev/null +++ b/javadoc/module-section.html @@ -0,0 +1,3 @@ +Module: section
On this page

Section

Methods

(inner) sectionCollapse()

Collapses the current section in a document, form, or subform.

See
Throws:

no plans to implement

Type
Error

(inner) sectionCollapseAll()

Collapses all the sections in a document, page, form, or subform.

See
Throws:

no plans to implement

Type
Error

(inner) sectionDefineEditors()

Displays the Edit Section dialog box for the current section on a form.

See
Throws:

no plans to implement

Type
Error

(inner) sectionExpand()

Expands the current section in a document, form, or subform.

See
Throws:

no plans to implement

Type
Error

(inner) sectionExpandAll()

Expands all the sections in a document, page, form, or subform.

See
Throws:

no plans to implement

Type
Error

(inner) sectionProperties()

On a form or subform, displays the Properties box for the selected section.

See
Throws:

no plans to implement

Type
Error

(inner) sectionRemoveHeader()

Removes the contents of a section from the section. The contents are then displayed as they existed before the section was created.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-showhide.html b/javadoc/module-showhide.html new file mode 100644 index 00000000..dd64f179 --- /dev/null +++ b/javadoc/module-showhide.html @@ -0,0 +1,3 @@ +Module: showhide
On this page

Show & Hide

Methods

(inner) showHideIMContactList()

Toggles the display of the Instant Messaging Contact List.

See
Throws:

no plans to implement

Type
Error

(inner) showHideLinkPreview()

Toggles the display of the link preview pane.

See
Throws:

no plans to implement

Type
Error

(inner) showHideParentPreview()

Toggles the display of the parent document preview pane.

See
Throws:

no plans to implement

Type
Error

(inner) showHidePreviewPane()

Toggles the display of the document preview pane.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-statistical.html b/javadoc/module-statistical.html new file mode 100644 index 00000000..9a3b2230 --- /dev/null +++ b/javadoc/module-statistical.html @@ -0,0 +1,3 @@ +Module: statistical
On this page

Statistical

Members

(static) confidence

Returns the confidence interval for a population mean.

Category: Statistical

(static) hypGeom

Returns the hypergeometric distribution.

Category: Statistical

(static) negBinom

Returns the negative binomial distribution.

Category: Statistical

(static) poisson

Returns the Poisson distribution.

Category: Statistical

(static) quartile

Returns the probability that values in a range are between two limits.

Category: Statistical

(static) stDev

Estimates standard deviation based on a sample.

(static) Var

Compute the sample variance of a set of numbers.

(static) weiBull

Returns the Weibull distribution.

Category: Statistical

(static) z

Returns the one-tailed probability-value of a z-test.

Category: Statistical

Methods

(inner) aveDev(args) → {number}

Returns the average of the absolute deviations of data points from their mean.

Category: Statistical

Parameters:
NameTypeDescription
argsnumber

number1, number2, ... Number1 is required, subsequent numbers are optional. 1 to 255 arguments for which you want the average of the absolute deviations. You can also use a single array or a reference to an array instead of arguments separated by commas.

Returns:

the average of the absolute deviations of data points from their mean or an error.

Type: 
number

(inner) average(args) → {number}

Returns the average of its arguments.

Category: Statistical

Parameters:
NameTypeDescription
argsnumber

number1, number2, ...Numbers, value references or ranges for which you want the average.

Returns:

the average of the arguments

Type: 
number

(inner) averageA(args) → {number}

Returns the average of its arguments, including numbers, text, and logical values.

Category: Statistical

Parameters:
NameTypeDescription
args*

value1, value2, ... Value1 is required, subsequent values are optional. 1 to 255 values, ranges of values, or values for which you want the average.

Returns:

the average of its arguments, including numbers, text, and logical values.

Type: 
number

(inner) averageIf(range, criteria, average_range) → {number}

Returns the average (arithmetic mean) of all the values in a range that meet a given criteria.

Category: Statistical

Parameters:
NameTypeDescription
range*

One or more values to average, including numbers or names, arrays, or references that contain numbers.

criteriastring

The criteria in the form of a number, expression, value reference, or text that defines which values are averaged.

average_range*

Optional. The actual set of values to average. If omitted, range is used.

Returns:

the average (arithmetic mean) of all the values in a range that meet a given criteria.

Type: 
number

(inner) averageIfs(args) → {number}

Returns the average (arithmetic mean) of all values that meet multiple criteria.

Category: Statistical

Parameters:
NameTypeDescription
args*

One or more values to average, including numbers or names, arrays, or references that contain numbers.

Returns:

the average (arithmetic mean) of all values that meet multiple criteria.

Type: 
number

(inner) correl(array1, array2) → {number|Error}

Returns the correlation coefficient between two data sets.

Category: Statistical

Parameters:
NameTypeDescription
array1Array.<number>

A range of value values.

array2Array.<number>

A second range of value values.

Returns:

Returns the population correlation coefficient of the array1 and array2 vectors (Pearson's Rho).

Type: 
number | Error

(inner) count(args) → {number}

Counts how many numbers are in the list of arguments.

Category: Statistical

Parameters:
NameTypeDescription
args*

Cell reference, or range within which you want to count numbers.

Returns:

how many numbers are in the list of arguments.

Type: 
number

(inner) countA(args) → {number}

Counts how many values are in the list of arguments.

Category: Statistical

Parameters:
NameTypeDescription
args*

Arguments representing the values that you want to count.

Returns:

how many values are in the list of arguments

Type: 
number

(inner) countBlank(…values) → {number}

Counts the number of blank values within a range.

Category: Statistical

Parameters:
NameTypeAttributesDescription
valuesnumber<repeatable>

The range from which you want to count the blank values.

Returns:

the number of blank values within a range.

Type: 
number

(inner) countIf(range, criteria) → {number}

Counts the number of values within a range that meet the given criteria.

Category: Statistical

Parameters:
NameTypeDescription
range*

The values to check

criteriastring

The criteria to apply to each value in range

Returns:

The number of values in range that meet criteria

Type: 
number

(inner) countIfs(…valuesAndCriteria) → {number}

Counts the number of values within a range that meet multiple criteria.

Category: Statistical

Parameters:
NameTypeAttributesDescription
valuesAndCriteria*<repeatable>

Range in which to evaluate the associated criteria.

Returns:

the number of values within a range that meet multiple criteria

Type: 
number

(inner) countIn(range, value) → {number}

Counts the number of occurrences of a value in a given range.

Category: Statistical

Parameters:
NameTypeDescription
range*
value*
Returns:

the number of occurrences of a value in a given range.

Type: 
number

(inner) countUnique(…values) → {number}

Returns the number of unique items in a flattened array Formula.js only

Parameters:
NameTypeAttributesDescription
values*<repeatable>

The array or multiple arrays to be examined.

Returns:

the number of unique items in a flattened array

Type: 
number

(inner) devSq(args) → {number}

Returns the sum of squares of deviations.

Category: Statistical

Parameters:
NameTypeDescription
args*

number1, number2, ... Number1 is required, subsequent numbers are optional. 1 to 255 arguments for which you want to calculate the sum of squared deviations. You can also use a single array or a reference to an array instead of arguments separated by commas.

Returns:

the sum of squares of deviations or an error if the arguments are incorrect.

Type: 
number

(inner) fisher(x) → {number}

Returns the Fisher transformation.

Category: Statistical

Parameters:
NameTypeDescription
xnumber

A numeric value for which you want the transformation.

Returns:

the Fisher transformation for a given number, or an error if the arguments are incorrect.

Type: 
number

(inner) fisherInv(y) → {number|Error}

Returns the inverse of the Fisher transformation.

Category: Statistical

Parameters:
NameTypeDescription
ynumber

The value for which you want to perform the inverse of the transformation.

Returns:

the inverse of the Fisher transformation.

Type: 
number | Error

(inner) forecast(x, known_ys, known_xs) → {number}

Returns a value along a linear trend.

Category: Statistical

Parameters:
NameTypeDescription
xnumber

The data point for which you want to predict a value.

known_ysnumber

The dependent array or range of data.

known_xsnumber

The independent array or range of data.

Returns:

a value along a linear trend or an error if the arguments are incorrect.

Type: 
number

(inner) frequency(data_array, bins_array) → {number}

Returns a frequency distribution as a vertical array.

Category: Statistical

Parameters:
NameTypeDescription
data_arraynumber

An array of or reference to a set of values for which you want to count frequencies. If data_array contains no values, FREQUENCY returns an array of zeros.

bins_arraynumber

An array of or reference to intervals into which you want to group the values in data_array. If bins_array contains no values, FREQUENCY returns the number of elements in data_array.

Returns:

a frequency distribution as a vertical array or an error if the arguments are incorrect.

Type: 
number

(inner) gamma(number) → {number}

Returns the Gamma function value.

Category: Statistical

Parameters:
NameTypeDescription
numbernumber

Returns a number.

Returns:

the Gamma function value or an error if the arguments are incorrect.

Type: 
number

(inner) gammaLn(x) → {number}

Returns the natural logarithm of the gamma function, Γ(x).

` * Category: Statistical

Parameters:
NameTypeDescription
xnumber

The value for which you want to calculate GAMMALN.

Returns:

the natural logarithm of the gamma function, Γ(x), or an error if the arguments are incorrect

Type: 
number

(inner) gauss(z) → {number}

Returns 0.5 less than the standard normal cumulative distribution.

Category: Statistical

Parameters:
NameTypeDescription
znumber

Returns a number.

Returns:

0.5 less than the standard normal cumulative districubtion or an error if the arguments are incorrect.

Type: 
number

(inner) geoMean(args) → {number}

Returns the geometric mean.

Category: Statistical

Parameters:
NameTypeDescription
argsnumber

number1, number2, ... Number1 is required, subsequent numbers are optional. 1 to 255 arguments for which you want to calculate the mean. You can also use a single array or a reference to an array instead of arguments separated by commas.

Returns:

the geometric mean or an error if the arguments are incorrect.

Type: 
number

(inner) growth(known_y, known_x, new_x, use_const) → {number}

Returns values along an exponential trend.

Category: Statistical

Parameters:
NameTypeDescription
known_ynumber

The set of y-values you already know in the relationship y = b*m^x.

  • If the array known_y's is in a single column, then each column of known_x's is interpreted as a separate variable.
  • If the array known_y's is in a single row, then each row of known_x's is interpreted as a separate variable.
  • If any of the numbers in known_y's is 0 or negative, GROWTH returns the #NUM! error value.
known_xnumber

Optional. An optional set of x-values that you may already know in the relationship y = b*m^x.

  • The array known_x's can include one or more sets of variables. If only one variable is used, known_y's and known_x's can be ranges of any shape, as long as they have equal dimensions. If more than one variable is used, known_y's must be a vector (that is, a range with a height of one row or a width of one column).
  • If known_x's is omitted, it is assumed to be the array {1,2,3,...} that is the same size as known_y's.
new_xnumber

Optional. Are new x-values for which you want GROWTH to return corresponding y-values.

  • new_x's must include a column (or row) for each independent variable, just as known_x's does. So, if known_y's is in a single column, known_x's and new_x's must have the same number of columns. If known_y's is in a single row, known_x's and new_x's must have the same number of rows.
  • If new_x's is omitted, it is assumed to be the same as known_x's.
  • If both known_x's and new_x's are omitted, they are assumed to be the array {1,2,3,...} that is the same size as known_y's.
use_constboolean

Optional. A logical value specifying whether to force the constant b to equal 1. If const is TRUE or omitted, b is calculated normally. If const is FALSE, b is set equal to 1 and the m-values are adjusted so that y = m^x.

  • If const is TRUE or omitted, b is calculated normally.
  • If const is FALSE, b is set equal to 1 and the m-values are adjusted so that y = m^x.
Returns:

values along an exponential trend or an error if the arguments are incorrect.

Type: 
number

(inner) harMean(args) → {number}

Returns the harmonic mean.

Category: Statistical

Parameters:
NameTypeDescription
argsnumber

number1, number2, ... Number1 is required, subsequent numbers are optional. 1 to 255 arguments for which you want to calculate the mean. You can also use a single array or a reference to an array instead of arguments separated by commas.

Returns:

the harmonic mean or an error if the arguments are incorrect.

Type: 
number

(inner) intercept(known_y, known_x)

Returns the intercept of the linear regression line.

Category: Statistical

Parameters:
NameTypeDescription
known_ynumber

The dependent set of observations or data.

known_xnumber

The independent set of observations or data.

Returns:

the intercept of the linear regression line.

(inner) kurt(args) → {number}

Returns the kurtosis of a data set.

Category: Statistical

Parameters:
NameTypeDescription
argsnumber

number1, number2, ... Number1 is required, subsequent numbers are optional. 1 to 255 arguments for which you want to calculate kurtosis. You can also use a single array or a reference to an array instead of arguments separated by commas.

Returns:

the kurtosis of a data set or an error if the arguments are incorrect.

Type: 
number

(inner) large(array, k)

Returns the k-th largest value in a data set.

Category: Statistical

Parameters:
NameTypeDescription
arraynumber

The array or range of data for which you want to determine the k-th largest value.

knumber

The position (from the largest) in the array or value range of data to return.

Returns:

the k-th largest value in a data set or an error if the arguments are incorrect.

(inner) linest(known_y, known_x) → {number}

Returns the parameters of a linear trend.

Category: Statistical

Parameters:
NameTypeDescription
known_ynumber

The set of y-values that you already know in the relationship y = mx + b.

  • If the range of known_y's is in a single column, each column of known_x's is interpreted as a separate variable.
  • If the range of known_y's is contained in a single row, each row of known_x's is interpreted as a separate variable.
known_xnumber

Optional. A set of x-values that you may already know in the relationship y = mx + b.

  • The range of known_x's can include one or more sets of variables. If only one variable is used, known_y's and known_x's can be ranges of any shape, as long as they have equal dimensions. If more than one variable is used, known_y's must be a vector (that is, a range with a height of one row or a width of one column).
  • If known_x's is omitted, it is assumed to be the array {1,2,3,...} that is the same size as known_y's.
Returns:

the parameters of a linear trend or an error if the arguments are incorrect.

Type: 
number

(inner) logest(known_y, known_x)

Returns the parameters of an exponential trend.

Category: Statistical

Parameters:
NameTypeDescription
known_ynumber

The set of y-values you already know in the relationship y = b*m^x.

  • If the array known_y's is in a single column, then each column of known_x's is interpreted as a separate variable.
  • If the array known_y's is in a single row, then each row of known_x's is interpreted as a separate variable.
known_xnumber

Optional. An optional set of x-values that you may already know in the relationship y = b*m^x.

  • The array known_x's can include one or more sets of variables. If only one variable is used, known_y's and known_x's can be ranges of any shape, as long as they have equal dimensions. If more than one variable is used, known_y's must be a range of values with a height of one row or a width of one column (which is also known as a vector).
  • If known_x's is omitted, it is assumed to be the array {1,2,3,...} that is the same size as known_y's.
Returns:

the parameters of an exponential trend or an error if the arguments are incorrect.

(inner) maxA(args) → {number}

Returns the maximum value in a list of arguments, including numbers, text, and logical values.

Category: Statistical

Parameters:
NameTypeDescription
argsnumber

value1, value2,... Number arguments 2 to 255 for which you want to find the largest value.

Returns:

the maximum value in a list of arguments, including numbers, text, and logical values.

Type: 
number

(inner) median(args) → {number}

Returns the median of the given numbers.

Category: Statistical

Parameters:
NameTypeDescription
argsnumber

number1, number2, ... Number1 is required, subsequent numbers are optional. 1 to 255 numbers for which you want the median.

Returns:

the median of the given numbers or an error if the arguments are incorrect.

Type: 
number

(inner) minA(args) → {number}

Returns the smallest value in a list of arguments, including numbers, text, and logical values.

Category: Statistical

Parameters:
NameTypeDescription
argsnumber

value1, value2, ... Value1 is required, subsequent values are optional. 1 to 255 values for which you want to find the smallest value.

Returns:

the smallest value in a list of arguments, including numbers, text, and logical values.

Type: 
number

(inner) pearson(array1, array2) → {number}

Returns the Pearson product moment correlation coefficient.

Category: Statistical

Parameters:
NameTypeDescription
array1Array.<number>

A set of independent values.

array2Array.<number>

A set of dependent values.

Returns:

the Pearson product moment correlation coefficient or an error if the arguments are incorrect.

Type: 
number

(inner) permut(number, number_chosen) → {number}

Returns the number of permutations for a given number of objects.

Category: Statistical

Parameters:
NameTypeDescription
numbernumber

An integer that describes the number of objects.

number_chosennumber

An integer that describes the number of objects in each permutation.

Returns:

the number of permutations for a given number of objects or an error if the arguments are incorrect.

Type: 
number

(inner) permutationA(number, number_chosen) → {number}

Returns the number of permutations for a given number of objects (with repetitions) that can be selected from the total objects.

Category: Statistical

Parameters:
NameTypeDescription
numbernumber

An integer that describes the total number of objects.

number_chosennumber

An integer that describes the number of objects in each permutation.

Returns:

the number of permutations for a given number of objects (with repetitions) that can be selected from the total objects or an error if the arguments are incorrect.

Type: 
number

(inner) phi(x) → {number}

Returns the value of the density function for a standard normal distribution.

Category: Statistical

Parameters:
NameTypeDescription
xnumber

X is the number for which you want the density of the standard normal distribution.

Returns:

the value of the density function for a standard normal distribution or an error if the argument is incorrect.

Type: 
number

(inner) prob(x_range, prob_range, lower_limit, upper_limit) → {number}

Returns the probability that values in a range are between two limits.

Category: Statistical

Parameters:
NameTypeDescription
x_rangeArray.<number>

The range of numeric values of x with which there are associated probabilities.

prob_rangeArray.<number>

A set of probabilities associated with values in x_range.

lower_limitnumber

Optional. The lower bound on the value for which you want a probability.

upper_limitnumber

Optional. The optional upper bound on the value for which you want a probability.

Returns:

the probability that values in a range are between two limits.

Type: 
number

(inner) rsq(known_y, known_x) → {number}

Returns the square of the Pearson product moment correlation coefficient.

Category: Statistical

Parameters:
NameTypeDescription
known_yArray.<number>

An array or range of data points.

known_xArray.<number>

An array or range of data points.

Returns:

the square of the Pearson product moment correlation coefficient or an error if the arguments are inforrect.

Type: 
number

(inner) skew(args) → {number}

Returns the skewness of a distribution.

Category: Statistical

Parameters:
NameTypeDescription
argsArray.<number>

number1, number2, ... Number1 is required, subsequent numbers are optional. 1 to 255 arguments for which you want to calculate skewness. You can also use a single array or a reference to an array instead of arguments separated by commas.

Returns:

the skewness of a distribution or an error if the arguments are incorrect.

Type: 
number

(inner) slope(known_y, known_x) → {number}

Returns the slope of the linear regression line.

Category: Statistical

Parameters:
NameTypeDescription
known_yArray.<number>

An array or value range of numeric dependent data points.

known_xArray.<number>

The set of independent data points.

Returns:

the slope of the linear regression line or an error if the arguments are incorrect.

Type: 
number

(inner) small(array, k) → {number}

Returns the k-th smallest value in a data set.

Category: Statistical

Parameters:
NameTypeDescription
arrayArray.<number>

An array or range of numerical data for which you want to determine the k-th smallest value.

knumber

The position (from the smallest) in the array or range of data to return.

Returns:

the k-th smallest value in a data set or an error if the arguments are incorrect.

Type: 
number

(inner) standardize(x, mean, standard_dev) → {number}

Returns a normalized value.

Category: Statistical

Parameters:
NameTypeDescription
xnumber

The value you want to normalize.

meannumber

The arithmetic mean of the distribution.

standard_devnumber

The standard deviation of the distribution.

Returns:

a normalized value or an error if the arguments are incorrect.

Type: 
number

(inner) stDevA(…args) → {number}

Estimates standard deviation based on a sample, including numbers, text, and logical values.

Category: Statistical

Parameters:
NameTypeAttributesDescription
argsArray.<number><repeatable>

value1, value2, ... Value1 is required, subsequent values are optional. 1 to 255 values corresponding to a sample of a population. You can also use a single array or a reference to an array instead of arguments separated by commas.

Returns:

Estimated standard deviation based on a sample, including numbers, text, and logical values or an error.

Type: 
number

(inner) stDevPA(…args) → {number}

Calculates standard deviation based on the entire population, including numbers, text, and logical values.

Category: Statistical

Parameters:
NameTypeAttributesDescription
argsArray.<number><repeatable>

value1, value2, ... Value1 is required, subsequent values are optional. 1 to 255 values corresponding to a population. You can also use a single array or a reference to an array instead of arguments separated by commas.

Returns:

Calculated standard deviation based on the entire population, including numbers, text, and logical values or an error.

Type: 
number

(inner) steyx(known_y, known_x) → {number}

Returns the standard error of the predicted y-value for each x in the regression.

Category: Statistical

Parameters:
NameTypeDescription
known_yArray.<number>

An array or range of dependent data points.

known_xArray.<number>

An array or range of independent data points.

Returns:

the standard error of the predicted y-value for each x in the regression or an error if the arguments are incorrect.

Type: 
number

(inner) trend(known_ys, known_xs, new_xs) → {Array.<number>}

Returns values along a linear trend.

Category: Statistical

Parameters:
NameTypeDescription
known_ysArray.<number>

The set of y-values you already know in the relationship y = mx + b

known_xsArray.<number>

An optional set of x-values that you may already know in the relationship y = mx + b

new_xsArray.<number>

Optional. New x-values for which you want TREND to return corresponding y-values.

Returns:

values along a linear trend or an error if the arguments are incorrect.

Type: 
Array.<number>

(inner) trimMean(range, percent) → {number}

Returns the mean of the interior of a data set.

Category: Statistical

Parameters:
NameTypeDescription
rangeArray.<number>

The array or range of values to trim and average.

percentnumber

The fractional number of data points to exclude from the calculation. For example, if percent = 0.2, 4 points are trimmed from a data set of 20 points (20 x 0.2): 2 from the top and 2 from the bottom of the set.

Returns:

the mean of the interior of a data set or an error if the arguments are incorrect.

Type: 
number

(inner) varA(…args) → {number}

Estimates variance based on a sample, including numbers, text, and logical values.

Category: Statistical

Parameters:
NameTypeAttributesDescription
argsArray.<number><repeatable>

value1, value2, ... Value1 is required, subsequent values are optional. 1 to 255 value arguments corresponding to a sample of a population.

Returns:

Estimated variance based on a sample, including numbers, text, and logical values.

Type: 
number

(inner) varPA(…args) → {number}

Calculates variance based on the entire population, including numbers, text, and logical values.

Category: Statistical

Parameters:
NameTypeAttributesDescription
argsArray.<number><repeatable>

value1, value2, ... Value1 is required, subsequent values are optional. 1 to 255 value arguments corresponding to a population.

Returns:

Calculated variance based on the entire population, including numbers, text, and logical values

Type: 
number
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-text.html b/javadoc/module-text.html new file mode 100644 index 00000000..ed517f1c --- /dev/null +++ b/javadoc/module-text.html @@ -0,0 +1,3 @@ +Module: text
On this page

Text & Strings

Methods

(inner) abstract()

Abbreviates the contents of one or more fields by:

  • Selecting the most significant words in a body of text
  • Abbreviating common words
  • Dropping vowels from words
  • Removing unnecessary text or characters, such as mail headers or white space
See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) abstractSimple()

Creates a short abstract of a text or rich text field. Simpler and more efficient than using @Abstract.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) ascii(Text)

Converts an LMBCS (Lotus® Multi-Byte Character Set) string to an ASCII string.

Parameters:
NameTypeDescription
TextString

or text list. An LMBCS string.

Boolean.Boolean

Optional. Specifies that Ascii should return a null string ("") if any characters in the original string cannot be represented by ASCII codes 32 to 127.

See
Returns:

Text or text list. The original string, with each character converted to an ASCII-compliant character. Any character that can't be represented by ASCII codes 32 to 127 is replaced with a question mark (?). If you specify [ALLINRANGE] and there are characters that can't be represented by ASCII codes 32 to 127, returns a null string ("").

Examples
rosetta.ascii("Abc");  // returns 'Abc'
rosetta.ascii("Çüé");  // returns 'Cue'
rosetta.ascii("Çü飥");  // returns 'Cue??'
rosetta.ascii(["Çü飥", "Çüé", "Abc"]);  // returns ['Cue??', 'Cue', 'Abc']

(inner) begins(within_text, find_text)

Determines whether a particular substring is stored at the beginning of another string.

Parameters:
NameTypeDescription
within_textString

Any string.

find_textString

The string you want to search for at the beginning of string.

See
Returns:

(true) if substring is contained within string, beginning from the first letter. Returns 0 (false) if not. This function is case-sensitive. If the either parameter is a list, the function tests each element of the second parameter against each element of the first parameter and returns 1 if any match occurs.

Examples
rosetta.begins('Miriam-McGovern','Miriam');  // returns 1
rosetta.begins('Miriam-McGovern',['Abc','Miri']);  // returns 1
rosetta.begins(['John Jones','Mary Hill'],['Ma', 'Pa']);  // returns 1;

(inner) char(…number)

Converts IBM Code Page 850 code number into the corresponding single character string.

Parameters:
NameTypeAttributesDescription
numbernumber<repeatable>

or number list. Any number between 0 and 255. Non-integer numbers are truncated to integers.

See
Returns:

Text or text list. A single character that corresponds to codeNumber.

Examples
rosetta.char(65);   // returns "A"
rosetta.char(237);  // returns "Ý"
rosetta.char(253);  // returns "²"
rosetta.char(65, 157, 'invalid', 169);  // returns ["A", "Ø", error.value, "®"];

(inner) compare()

Compares the alphabetic order of the elements in two lists pair-wise.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) contains(Text, Text)

Determines whether a substring is stored within a string.

Parameters:
NameTypeDescription
TextString

or text list. The string(s) you want to search.

TextString

or text list. The string(s) you want to search for in string.

See
Returns:

true (1) if any substring is contained in one of the strings. Returns false (0) if no substrings are contained in any of the strings. Note: If any element in the substrings is a null string(""), this function always returns true. This function is case-sensitive. If either parameter is a list, the function returns 1 if any element of parameter 1 contains any element of parameter 2.

Examples
rosetta.contains('Miriam-McGovern','iam');  // returns 1
rosetta.contains('Miriam-McGovern',['Abc','McG']);  // returns 1
rosetta.contains(['John Jones','Mary Hill'],['Hi', 'Pa']);  // returns 1;

(inner) ends(Text, Text)

Determines if a substring is at the end of a string.

Parameters:
NameTypeDescription
TextString

or text string. Any string.

TextString

or text string. The string you want to search for at the beginning of string.

See
Returns:

(true) if substring is contained within string, beginning from the first letter. Returns 0 (false) if not. This function is case-sensitive. If the either parameter is a list, the function tests each element of the second parameter against each element of the first parameter and returns 1 if any match occurs.

Examples
rosetta.ends('Miriam-McGovern','McGovern');  // returns 1
rosetta.ends('Miriam-McGovern',['Abc','vern']);  // returns 1
rosetta.ends(['John Jones','Mary Hill'],['Ma', 'Hill']);  // returns 1;

(inner) fileDir()

Returns the directory portion of a path name, that is, the path name minus the file name.

Parameters:
NameTypeDescription
...argsArray

any arguments

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) fixed(number, decimals, no_commas)

Formats a number as text with a fixed number of decimals.

Category: Text

Parameters:
NameTypeDefaultDescription
numbernumber

The number you want to round and convert to text.

decimalsnumber2

Optional. The number of digits to the right of the decimal point.

no_commasbooleanfalse

Optional. A logical value that, if TRUE, prevents FIXED from including commas in the returned text.

Returns:

The string representation of the number

(inner) isNumber(…value)

Indicates if a given value is a number (or a number list).

Parameters:
NameTypeAttributesDescription
valueArray<repeatable>

Any data type. Any value. Any list of values.

See
Returns:

1 (true) if the value is a number or a number list. Returns 0 (false) if the value is not a number or a number list.

Examples
rosettajs.isNumber(21); // returns true
rosettajs.isNumber(5.5, 6.6, 7.7); // returns true
rosettajs.isNumber(5.5, 'abc', 7.7); // returns false

(inner) isText(…value)

Indicates whether a value is text (or a text list).

Parameters:
NameTypeAttributesDescription
valueArray<repeatable>

Any data type. Any value. Any list of values.

See
Returns:

1 (true) if the value is text or a text list. Returns 0 (false) if the value is not text or a text list.

Examples
rosettajs.isText(21); // returns false
rosettajs.isText('abc'); // returns true
rosettajs.isText('xyz', 'abc', 7.7); // returns false

(inner) isTime(value) → {boolean}

Indicates whether a value is a time-date (or a time-date list).

Parameters:
NameTypeDescription
valueArray

any arguments

See
Returns:

True if the value ia a time-date or a time-date list. Othewise false.

Type: 
boolean

(inner) left(text, param) → {string|Array.<string>}

Searches a string from left to right and returns the leftmost characters of the string.

Parameters:
NameTypeDescription
textstring

or text list. The string where you want to find the leftmost characters.

paramnumber | string
  • Number: The number of characters to return. If the number is 2, the first two characters of the string are returned; if the number is 5, the first five characters are returned, and so on. If the number is negative, the entire string is returned. If using Open Formula implementation, param must be a number and is optional with a default of 1.
  • String: A substring of stringToSearch. Left returns the characters to the left of subString. It finds subString by searching stringToSearch from left to right. A string is only valid for the Notes formula implementation and param is required.
See
Returns:

The leftmost characters in stringToSearch. The number of characters returned is determined by either numberOfChars or subString. Left returns "" if subString is not found in stringToSearch.

Type: 
string | Array.<string>
Examples
rosettajs.left('Sale Price', 4); // returns 'Sale'
rosettajs.left('Sweden', 'en'); // returns 'Swed'
rosettajs.left(['Sweden', 'England'], 2); // returns ['Sw', 'En']

(inner) leftBack(stringToSearch, param) → {String}

Searches a string from right to left and returns a substring.

Parameters:
NameTypeDescription
stringToSearchstring | Array.<string>

The string where you want to find the leftmost characters.

paramnumber

Counting from right to left, the number of characters to skip. All the characters to the left of that number of characters are returned. If the number is negative, the entire string is returned.

See
Returns:

Text or text list. The leftmost characters in stringToSearch. The number of characters returned is determined by either numToSkip or startString.

Type: 
String
Examples
rosettajs.leftBack('Sale Price', 4); // returns 'Sale P'
rosettajs.leftBack('Sweden', 'en'); // returns 'Swed'
rosettajs.leftBack(['Sweden', 'England'], 2); // returns ['Swed', 'Engl']

(inner) length(…text)

Returns the number of characters in a text string.

Parameters:
NameTypeAttributesDescription
textArray<repeatable>

A single string with the length you want to find, or a list of strings.

See
Returns:

If the parameter is a text string, length returns the number of characters in the specified string, including spaces and punctuation. If the argument is a text list, length searches the list of strings and returns the number of characters in each string as a number list.

Examples
rosettajs.length('four'); // returns 4
rosettajs.length('four', 'seven'); // returns [4, 5]
rosettajs.length('four', 12); // returns [4, 0]

(inner) like()

Matches a string with a pattern. It is case-sensitive and supports the NotesSQL ODBC driver.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) lowerCase(text)

Converts the uppercase letters in the specified string to lowercase.

Parameters:
NameTypeDescription
textstring | Array.<string>

The string you want to convert to lowercase.

See
Returns:

Text or text list. The string, converted to lowercase letters.

Examples
rosettajs.lowerCase('ABcd'); // returns 'abcd'
rosettajs.lowerCase('ABcd', 'efGH'); // returns ['abcd', 'efgh']

(inner) matches()

Tests a string for a pattern string. Because the pattern string can contain a number of "wildcard" characters and logical symbols, you can test for complex character patterns.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) middle(Text) → {String}

Returns any substring from the middle of a string. The middle is found by scanning the string from left to right, and parameters determine where the middle begins and ends.

Parameters:
NameTypeDescription
TextString

or text list. Any string.

Number.Number

A character position in string that indicates where you want the middle to begin, always counting from left to right. The middle begins one character after the offset.

Text.String

A substring of string that indicates where you want the middle to begin, always counting from left to right. The middle begins one character after the end of startString.

Number.Number

The number of characters that you want in the middle. If numberchars is negative, the middle starts at offset or startString and continues from right to left. If numberchars is positive, the middle starts one character past the offset or startString and continues from left to right.

Text.String

A substring of string that indicates the end of the middle. Middle returns all the characters between offset and endstring, or between startString and endstring.

See
Returns:

Text or text list. The substring from the middle of string, which begins at the offset or startString you specify and ends at the endstring you specify, or after the numberchars have been reached.

Type: 
String
Examples
rosettajs.middle('North Carolina', ' ', 3); // returns 'Car'
rosettajs.middle('This is the text', 4, 'text); // returns ' is the '
rosettajs.middle(["Hello world", "This is the time"], 0, " "); // returns ['Hello', 'This']

(inner) middleBack(Text) → {String}

Returns any substring from the middle of a string. The middle is found by scanning the string from right to left, and parameters determine where the middle begins and ends.

Parameters:
NameTypeDescription
TextString

or text list. Any string.

Number.Number

A character position in string that indicates where you want the middle to begin, always counting from right to left. The middle begins one character after the offset. Always add 1 to this number; the end of the string is marked by one non-visible character and must be counted in the offset.

Text.String

A substring of string that indicates where you want the middle to begin, always counting from right to left. The middle begins one character after the end of startString.

Number.Number

The number of characters that you want in the middle. If numberchars is negative, the middle starts at offset or startString and continues from right to left. If numberchars is positive, the middle starts one character past the offset or startString and continues from left to right.

Text.String

A substring of string that indicates the end of the middle. MiddleBack returns all the characters between offset and endstring, or between startString and endstring.

See
Returns:

Text or text list. The substring from the middle of string, which begins at the offset or startString you specify and ends at the endstring you specify, or after the numberchars have been reached.

Type: 
String
Examples
rosettajs.middleBack('Fluid Flow', 0, 5); // returns 'Flow'
rosettajs.middleBack('This is the text', 'text', 'is'); // returns ' the '
rosettajs.middleBack(["Hello world", "This is the time"], 0, " "); // returns ["world", "time"]

(inner) narrow(Text) → {String}

Converts full-pitch alphanumeric characters (double byte characters -- DBCS) in the specified string to half-pitch alphanumeric characters (single byte characters -- SBCS). This function works in Japanese, Korean, Simplified Chinese, and traditional Chinese environments. In the Japanese environment, this function can convert full-pitch Katakana as well.

Parameters:
NameTypeDescription
TextString

or text list. The string that you want to convert to single byte characters.

See
Returns:

Text or text list. The string converted to single byte characters.

Type: 
String
Examples
rosettajs.narrow("0123456789ABCDEFGHI"); // returns "0123456789ABCDEFGHI"
rosettajs.narrow(["0123456789ABCDEFGHI", "アイウABCエオカㄱㄲㄳ"]); // returns ["0123456789ABCDEFGHI", "アイウABCエオカᄀᄁᆪ"]

(inner) newLine() → {string}

returns a new line (carriage return) into a text string.

See
Returns:

the new line character

Type: 
string

(inner) properCase()

Converts the words in a string to proper-name capitalization: the first letter of each word becomes uppercase, all others become lowercase.

Parameters:
NameTypeDescription
text.Array.<string>

The string you want to convert.

See
Returns:

Text or text list. The string, converted to proper-name capitalization.

Examples
rosettajs.properCase('a title case'); // returns 'A Title Case'
rosettajs.properCase('a title case','is awaiting trial'); // returns ['A Title Case','Is Awaiting Trial']

(inner) repeat(Text)

Repeats a string a specified number of times.

Parameters:
NameTypeDescription
TextString

or text list. The string you want to repeat.

Number.Number

The number of times you want to repeat string.

Number.Number

Optional. The maximum number of characters you want returned. Repeat truncates the result to this number.

See
Returns:

Text or text list. The string, repeated number times until numberchars (if specified) is reached.

Examples
rosettajs.repeat('multiple ', 3); // returns 'multiple multiple multiple '
rosettajs.repeat(['multiple ', 'hits '], 3); // returns ['multiple multiple multiple ', 'hits hits hits ']
rosettajs.repeat(['multiple ', 'hits '], 3, 10); // returns ['multiple m', 'hits hits ']

(inner) replaceSubstring(Text, Text, Text) → {String}

Replaces specific words or phrases in a string with new words or phrases that you specify. Case sensitive.

Parameters:
NameTypeDescription
TextString

or text list. The string whose contents you want to modify.

TextString

or text list. A list containing the words or phrases that you want to replace.

TextString

or text list. A list containing the replacement words or phrases.

See
Returns:

Text or text list. The sourceList, with any values from fromList replaced by the corresponding value in toList. If none of the values in fromList matched the values in sourceList, then sourceList is returned unaltered.

Type: 
String
Examples
rosettajs.replaceSubstring("I like apples", "like", "hate"); // returns 'I hate apples'
rosettajs.replaceSubstring("I like apples", ["like", "apples"], ["hate", "peaches"]); // returns 'I hate peaches'
rosettajs.replaceSubstring(["I like apples", "I like bananas"], ["like", "I"], ["hates", "He"]); // returns ["He hates apples", "He hates bananas"]

(inner) right(param) → {String}

Returns the rightmost characters in the string. You can specify the number of rightmost characters you want returned, or you can indicate that you want all the characters following a specific substring.

Parameters:
NameTypeDescription
paramnumber | string
  • Number: The number of characters to return. If the number is 2, the first two characters of the string are returned; if the number is 5, the first five characters are returned, and so on. If the number is negative, the entire string is returned. If using Open Formula implementation, param must be a number and is optional with a default of 1.
  • String: A substring of stringToSearch. Left returns the characters to the left of subString. It finds subString by searching stringToSearch from left to right. A string is only valid for the Notes formula implementation and param is required.
See
Returns:

Text or text list. The rightmost characters in stringToSearch. The number of characters returned is determined by either numberOfChars or subString. Right returns "" if subString is not found in stringToSearch.

Type: 
String
Examples
rosettajs.right('Sale Price', 5); // returns 'Price'
rosettajs.right('Lennard Wallace', " "); // returns 'Wallace'
rosettajs.right(['Lennard', 'Wallace'], 3); // returns ['ard', 'ace']

(inner) rightBack(Text) → {String}

Returns the rightmost characters in a string.

Parameters:
NameTypeDescription
TextString

or text list. The string whose rightmost characters you want to find.

Number.Number

Counting from left to right, the number of characters to skip. All the characters following that number are returned.

Text.String

A substring of stringToSearch. @RightBack returns all the characters following subString. It finds subString by searching stringToSearch from right to left.

See
Returns:

Text or text list. The rightmost characters in stringToSearch. The number of characters returned is determined by either numberOfChars or subString.

Type: 
String
Examples
rosettajs.rightBack('Sale Price', 5); // returns 'Price'
rosettajs.rightBack('Lennard Wallace', " "); // returns 'Wallace'
rosettajs.rightBack(['Lennard', 'Wallace'], 3); // returns ['nard', 'lace']

(inner) text(value, format) → {string|Error|Array.<string>|Array.<Error>}

Converts any value to a text string.

Parameters:
NameTypeDescription
valueany

Any value you want to convert to text.

formatstring | Array.<string>

format strings used to determine how the text is returned. For Open Formula, only the first format string is used.

See
To Do
  • this needs to be implemented
Returns:
Type: 
string | Error | Array.<string> | Array.<Error>

(inner) textAlignCenter()

Centers the current text.

See
Throws:

no plans to implement

Type
Error

(inner) textAlignFull()

Aligns text along the left margin.

See
Throws:

no plans to implement

Type
Error

(inner) textAlignLeft()

Aligns text along the left margin.

See
Throws:

no plans to implement

Type
Error

(inner) textAlignNone()

Reverses the previously specified alignment settings.

See
Throws:

no plans to implement

Type
Error

(inner) textAlignRight()

Aligns text along the right margin.

See
Throws:

no plans to implement

Type
Error

(inner) textBold()

Makes the selected and subsequently entered text bold. This command is a toggle; selecting it again removes the bold.

See
Throws:

no plans to implement

Type
Error

(inner) textBullet()

Applies the bullet attribute to selected and subsequently entered text.

See
Throws:

no plans to implement

Type
Error

(inner) textCycleSpacing()

Resets the interline spacing below the selected text to single, one and a half, or double.

See
Throws:

no plans to implement

Type
Error

(inner) textEnlargeFont()

Increases selected and subsequently entered text to the next larger point size.

See
Throws:

no plans to implement

Type
Error

(inner) textFont()

Displays the Properties box for the current text, where the user can select the typeface, size, color, and style attributes.

See
Throws:

no plans to implement

Type
Error

(inner) textItalic()

Italicizes the selected and subsequently entered text. This command is a toggle; selecting it a second time removes the italics.

See
Throws:

no plans to implement

Type
Error

(inner) textNormal()

Removes all style attributes from selected and subsequently entered text.

See
Throws:

no plans to implement

Type
Error

(inner) textNumbers()

Applies the numbers attribute to selected and subsequently entered text.

See
Throws:

no plans to implement

Type
Error

(inner) textOutdent()

Outdents selected and subsequently entered text by narrowing its left margin.

See
Throws:

no plans to implement

Type
Error

(inner) textParagraph()

Displays the Paragraph Alignment panel of the Text Properties box.

See
Throws:

no plans to implement

Type
Error

(inner) textParagraphStyles()

Displays the Paragraph Styles panel of the Text Properties box.

See
Throws:

no plans to implement

Type
Error

(inner) textPermanentPen()

Toggles the permanent pen.

See
Throws:

no plans to implement

Type
Error

(inner) textReduceFont()

Decreases the selected text to the next smaller point size.

See
Throws:

no plans to implement

Type
Error

(inner) textSetFontColor()

Displays selected or subsequently entered text using the specified color.

See
Throws:

no plans to implement

Type
Error

(inner) textSetFontFace()

Displays selected or subsequently entered text using the specified typeface.

See
Throws:

no plans to implement

Type
Error

(inner) textSetFontSize()

Displays text using the specified point size.

See
Throws:

no plans to implement

Type
Error

(inner) textSpacingDouble()

Sets Interline spacing below the selected text to double.

See
Throws:

no plans to implement

Type
Error

(inner) textSpacingOneAndAHalf()

Sets interline spacing below the selected text to one and a half.

See
Throws:

no plans to implement

Type
Error

(inner) textSpacingSingle()

Sets interline spacing below the selected text to single.

See
Throws:

no plans to implement

Type
Error

(inner) textToNumber()

Converts a text string to a number, where possible.

Parameters:
NameTypeDescription
...argsArray

Text or text list. The string you want to convert to a number. If the string contains both numbers and letters, it must begin with a number to be converted properly. For example, the string "12ABC" converts to 12, but "ABC12" produces an error.

See
Returns:

Number or number list. The string, converted to a number.

Examples
rosettajs.textToNumber('2500'); // returns 2500
rosettajs.textToNumber('2500-xyz', '250.5abc', '333'); // returns [2500, 250.5, 333]

(inner) textToTime(…time_text) → {Date|DateRange|Array.<Date>|Array.<DateRange>}

Converts a text string to a time-date value, where possible.

Parameters:
NameTypeAttributesDescription
time_textArray.<string><repeatable>

The strings you want to convert to a Date objects.

See
To Do
  • this needs to be implemented
Returns:

Time-date, time-date range, or list thereof. The time_text, converted to a time-date.

Type: 
Date | DateRange | Array.<Date> | Array.<DateRange>

(inner) textUnderline()

Underlines selected and subsequently entered text. This command is a toggle; selecting it a second time removes the underlining.

See
Throws:

no plans to implement

Type
Error

(inner) timeToTextInZone()

Converts a time-date value to a text string, incorporating time zone information.

See
Throws:

method not implemented

Type
Error

(inner) timeZoneToText(Canonical) → {String}

Converts a canonical time zone value to a human-readable text string.

Parameters:
NameTypeDescription
CanonicalString

time zone value or list thereof. Use a Notes® Time zone field to create a time zone value.

Optional.String

String consisting of one or more of the following format specifiers: S = Short time zone string, A = Alias for local time zone. For example, if the zone is the same as the zone in which the system is running, returns: "Local time".

See
To Do
  • this needs to be implemented
Returns:

The time-date value converted to a string. If you do not include a format specifier, a long time zone label is returned.

Type: 
String
Examples
rosettajs.timeZoneToText("Z=9$DO=1$DL=4 1 1 10 -1 1$ZX=25$ZN=America/Anchorage", "S"); // returns "GMT-8 AKDT" (when DST is in effect)
rosettajs.timeZoneToText("Z=5$DO=1$DL=4 1 1 10 -1 1$ZX=25$ZN=America/New_York", "SA"); // returns "Local time" (when DST is in effect)

(inner) toNumber(…value)

Converts a value to a number.

Parameters:
NameTypeAttributesDescription
valueArray<repeatable>

Text, number, or list thereof. A value that cannot be converted returns the error, "The value cannot be converted to a Number."

See
Returns:

Number or number list. The value converted to a number.

Examples
rosettajs.textToNumber('2500'); // returns 2500
"rosettajs.textToNumber('2500', '250.5', '333'); // returns [2500, 250.5, 333]""

(inner) toTime(…time_text) → {Date|Array.<Date>}

Converts a value with a data type of text or time to a date-time value.

Parameters:
NameTypeAttributesDescription
time_textArray.<any><repeatable>

the values to convert.

See
To Do
  • this needs to be implemented
Returns:

The converted date-time values.

Type: 
Date | Array.<Date>

(inner) trim(…text)

Removes leading, trailing, and redundant spaces from a text string, or from each element of a text list.

Parameters:
NameTypeAttributesDescription
textArray.<string><repeatable>

Text or text list.

See
Returns:

Text or text list. The string, with extra spaces removed.

Examples
rosettajs.trim(' more  spaces '); // returns 'more  spaces'
rosettajs.trim(' more  spaces ','  less spaces  '); // returns ['more spaces', 'less spaces']

(inner) upperCase()

Converts the lowercase letters in the specified string to uppercase.

Parameters:
NameTypeDescription
...argsArray

Text or text list. The string you want to convert to uppercase.

See
Returns:

Text. The string, converted to uppercase letters.

Examples
rosettajs.upperCase('to upper case please'); // returns 'TO UPPER CASE PLEASE'
rosettajs.upperCase('ABcd', 'efGH'); // returns ['ABCD', 'EFGH']

(inner) wide(Text) → {String}

Converts half-pitch alphanumeric characters (single-byte characters -- SBCS) in the specified string to full-pitch alphanumeric characters (double-byte characters -- DBCS). This function works in Japanese, Korean, Simplified Chinese, and traditional Chinese environments. In the Japanese environment, this function can convert half-pitch Katakana as well.

Parameters:
NameTypeDescription
TextString

or text list. The string you want to convert to double-byte characters.

See
Returns:

Text or text list. The string converted to double-byte characters.

Type: 
String
Examples
rosettajs.wide("0123456789ABCDEFGHI"); // returns "0123456789ABCDEFGHI"
rosettajs.wide(["0123456789ABCDEFGHI", "アイウABCエオカᄀᄁᆪ"]); // returns ["0123456789ABCDEFGHI", "アイウABCエオカㄱㄲㄳ"]

(inner) word()

Returns the specified word from a text string. A "word" is defined as the part of a string that is delimited by the defined separator character. For example, if you specify a space (" ") as the separator, then a word is any series of characters preceded by and followed by a space (or the beginning or end of the string).

Parameters:
NameTypeDescription
...argsArray

any arguments

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-tools.html b/javadoc/module-tools.html new file mode 100644 index 00000000..b79c5fd6 --- /dev/null +++ b/javadoc/module-tools.html @@ -0,0 +1,3 @@ +Module: tools
On this page

Tools

Methods

(inner) toolsCall()

Displays the Call Server dialog box, where the user can select a server to dial in to.

See
Throws:

no plans to implement

Type
Error

(inner) toolsCategorize()

Categorizes the current document.

See
Throws:

no plans to implement

Type
Error

(inner) toolsHangUp()

Displays the Hang Up dialog box.

See
Throws:

no plans to implement

Type
Error

(inner) toolsMarkAllRead()

Marks all of the documents in a database as read.

See
Throws:

no plans to implement

Type
Error

(inner) toolsMarkAllUnread()

Marks all of the documents in a database as unread.

See
Throws:

no plans to implement

Type
Error

(inner) toolsMarkSelectedRead()

In a view or folder, marks all of the selected documents as read.

See
Throws:

no plans to implement

Type
Error

(inner) toolsMarkSelectedUnread()

In a view or folder, marks all of the selected documents as unread.

See
Throws:

no plans to implement

Type
Error

(inner) toolsRefreshAllDocs()

Refreshes the fields of all the documents in a view or folder.

See
Throws:

no plans to implement

Type
Error

(inner) toolsRefreshSelectedDocs()

Refreshes the fields of all the selected documents in a view or folder.

See
Throws:

no plans to implement

Type
Error

(inner) toolsReplicate()

Displays the Replicate dialog box, where the user can choose to replicate the current database using the options defined in Replicator or using special one-time options.

See
Throws:

no plans to implement

Type
Error

(inner) toolsRunBackgroundMacros()

Runs all of the database's scheduled agents, regardless of when they are scheduled to run. The agents will then run as usual at their regularly scheduled times.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) toolsRunMacro()

Executes a specified agent.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) toolsScanUnreadChoose()

Displays the Scan Unread Preferred Setup dialog box, where the user can select the preferred databases to be scanned for unread documents.

See
Throws:

no plans to implement

Type
Error

(inner) toolsScanUnreadPreferred()

Displays the Scan Unread dialog box, where the user can see unread counts for each of the user preferred databases.

See
Throws:

no plans to implement

Type
Error

(inner) toolsScanUnreadSelected()

Opens the selected database to the first unread document. The user can then navigate to subsequent unread documents.

See
Throws:

no plans to implement

Type
Error

(inner) toolsSetupLocation()

Opens the current location document in your Personal Address Book in Edit mode, allowing you to change your home server, mail database location, and time zone.

See
Throws:

no plans to implement

Type
Error

(inner) toolsSetupMail()

Displays the Mail section of the User Preferences dialog box, where the user can indicate how often Notes® should check for new mail, whether to sign and encrypt outgoing mail, and so on.

See
Throws:

no plans to implement

Type
Error

(inner) toolsSetupPorts()

Displays the Ports section of the User Preferences dialog box, where the user can enable and disable network ports.

See
Throws:

no plans to implement

Type
Error

(inner) toolsSetupUserSetup()

Displays the Basics section of the User Preferences dialog box, where the user defines Notes® startup options.

See
Throws:

no plans to implement

Type
Error

(inner) toolsSmartIcons()

Displays the Toolbar Preferences dialog box where you can create new toolbars and customize the content and display of existing toolbars.

See
Throws:

no plans to implement

Type
Error

(inner) toolsSpellCheck()

Starts the Notes® spell checker.

See
Throws:

no plans to implement

Type
Error

(inner) toolsUserLogoff()

Logs the user off of all Domino® servers. Reconnecting to a Domino® server requires the user Notes® ID and, if one is set, password.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-user-environment.html b/javadoc/module-user-environment.html new file mode 100644 index 00000000..17dc8a70 --- /dev/null +++ b/javadoc/module-user-environment.html @@ -0,0 +1,3 @@ +Module: user-environment
On this page

User Environment

Methods

(inner) domain()

Returns the name of the current user's Domino® mail domain listed in the current location document of the Personal Address Book.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) mailDbName()

Returns the name of the Domino® server and the name of the current user's mail database.

See
Throws:

no plans to implement

Type
Error

(inner) name() → {TextOrTextList}

Allows you to manipulate hierarchical names. You can abbreviate the canonical format of a name, expand an abbreviated name to its canonical format, identify particular components within the name, and reverse the order of the components so that you can categorize a view by hierarchical names.

Enables you to convert a name between the Domino® and LDAP formats.

See
Returns:
Type: 
TextOrTextList

(inner) optimizeMailAddress()

Returns a mail address with all unnecessary domains removed.

See
Throws:

no plans to implement

Type
Error

(inner) password()

Encodes a string.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) platform()

Returns the name of the currently running platform version of Notes, Domino, or Nomad.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) statusBar()

Writes a message or messages to the status bar.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) userAccess()

Given a server and file name, indicates the current user's level of access to the database.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) userName()

Returns the current user name.

If the user name is hierarchical, @UserName returns it in canonical format (including the CN, OU, O, and C identifiers). To return the name in abbreviated format (omitting those identifiers), use @V3UserName.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) userNameLanguage()

Returns language tags associated with the user ID.

See
Throws:

no plans to implement

Type
Error

(inner) userNamesList()

For a database on a server or a local database with "Enforce a consistent Access Control List across all replicas" in effect, @UserNamesList returns a text list containing the following information for the current user:

  • Common name
  • All hierarchical names (fully distinguished) that include the user name; for example, CN=My Name/OU=My Org Unit/O=My Org, plus */OU=My Org Unit/O=My Org, */O=My Org, and *
  • Any roles associated with the user in the ACL
  • All groups to which the user belongs (only if the database is on a server)
See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) userPrivileges()

Returns a text list of the current user's privileges. This function returns only the position of the privilege in the privilege list, not the name of the privilege.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) userRoles()

For a database on a server or a local replicated database, returns a list of roles that the current user has. Roles are defined in a database's access control list.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) v3UserName()

Returns the current user name or server name. Using @V3UserName on a local database or in a private view in a server-based database returns the user's name.

If the user name is hierarchical, @V3UserName returns the name in abbreviated format (omitting the CN, OU, O, and C identifiers). To return the name in canonical format, use @UserName.

See
Throws:

no plans to implement

Type
Error

(inner) v4UserAccess()

Given a server and file name, indicates the current user's level of access to the database.

See
Throws:

no plans to implement

Type
Error

(inner) version()

Returns the release number of the Notes/Domino software you're running.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-userid.html b/javadoc/module-userid.html new file mode 100644 index 00000000..859e225a --- /dev/null +++ b/javadoc/module-userid.html @@ -0,0 +1,3 @@ +Module: userid
On this page

User Id

Methods

(inner) userIDCertificates()

Displays the Certificates section of the User ID dialog box. If the user ID is password-protected, the user must enter the password before displaying the dialog box.

See
Throws:

no plans to implement

Type
Error

(inner) userIDClearPassword()

Displays the Enter Password dialog box where the password associated with the user ID can be removed.

See
Throws:

no plans to implement

Type
Error

(inner) userIDCreateSafeCopy()

Displays the Enter Safe Copy ID File Name dialog box, where the user defines a file name for storing a safe copy of the Notes/Domino user ID. The safe copy contains only the user name and public key. The private key and all certificates are omitted from the safe copy.

See
Throws:

no plans to implement

Type
Error

(inner) userIDEncryptionKeys()

Displays the Encryption section of the User ID dialog box. If the user ID is password-protected, the user must enter the password before displaying the dialog box.

See
Throws:

no plans to implement

Type
Error

(inner) userIDInfo()

Displays the Basics section of the User ID Information dialog box.

See
Throws:

no plans to implement

Type
Error

(inner) userIDMergeCopy()

Displays the Choose User ID to Merge into Current® ID dialog box. This lets the user select an updated user ID (for example, one that has been certified by an administrator) and merge it into the existing user ID (thus retaining the information already stored in the existing ID). If the user ID is password-protected, Notes/Domino requires the user to enter the password before displaying the dialog box.

See
Throws:

no plans to implement

Type
Error

(inner) userIDSetPassword()

Displays the Set Password dialog box where the user can enter a new password for the Notes/Domino ID. If a password already exists, the user must enter the existing password before specifying a new one.

See
Throws:

no plans to implement

Type
Error

(inner) userIDSwitch()

Displays the Choose User ID to Switch To dialog box. If the selected ID is password-protected, Notes/Domino next displays the Enter Password dialog box, where the user must enter the correct password.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-view.html b/javadoc/module-view.html new file mode 100644 index 00000000..4ab7b2a5 --- /dev/null +++ b/javadoc/module-view.html @@ -0,0 +1,3 @@ +Module: view
On this page

View

Methods

(inner) getViewInfo()

Returns a view attribute.

See
Throws:

no plans to implement

Type
Error

(inner) viewArrangeIcons()

Aligns database icons on the current workspace page from left to right and beginning to end.

See
Throws:

no plans to implement

Type
Error

(inner) viewBelowFolders()

Places the view pane at the end of the screen and the folder pane at the beginning.

See
Throws:

no plans to implement

Type
Error

(inner) viewBesideFolders()

Places the view pane at the right of the screen and the folder pane at the left.

See
Throws:

no plans to implement

Type
Error

(inner) viewCertify()

Displays the Choose Certifier ID dialog box, in which you specify the certification to be renewed for the selected user or users.

See
Throws:

no plans to implement

Type
Error

(inner) viewChange()

Switches to the specified view or folder within the current database or, if a view or folder is not specified, displays the View menu so the user can select a view.

See
Throws:

no plans to implement

Type
Error

(inner) viewCollapse()

Collapses all levels of subcategories, documents, and responses within the current category, so only the first category name shows. If the view or folder has a response hierarchy but is not categorized, ViewCollapse collapses all levels of response documents under the current main document.

See
Throws:

no plans to implement

Type
Error

(inner) viewCollapseAll()

Collapses all levels of categories, subcategories, documents, and responses within a view or folder so that only the first level of category names appears. If the view or folder has a response hierarchy but is not categorized, ViewCollapseAll collapses all levels of response documents under the main documents.

See
Throws:

no plans to implement

Type
Error

(inner) viewExpand()

Expands one level of subcategories, documents, and responses within the current category. If the view or folder has a response hierarchy but is not categorized, ViewExpand expands all levels of response documents under the current main document.

See
Throws:

no plans to implement

Type
Error

(inner) viewExpandAll()

Expands all levels of categories, subcategories, documents, and responses within the view or folder.

See
Throws:

no plans to implement

Type
Error

(inner) viewExpandWithChildren()

Expands all levels of subcategories, documents, and responses within the selected category.

See
Throws:

no plans to implement

Type
Error

(inner) viewHorizScrollBar()

Toggles display of the horizontal scroll bar in a view or folder.

See
Throws:

no plans to implement

Type
Error

(inner) viewMoveName()

Displays the Choose Certifier ID dialog box, which allows you to specify the organizational unit for which you want to certify the selected user.

See
Throws:

no plans to implement

Type
Error

(inner) viewNavigatorsFolders()

Displays the Folders and Views navigators in the navigator pane and the view or folder that the user most recently selected.

See
Throws:

no plans to implement

Type
Error

(inner) viewNavigatorsNone()

Hides the navigator pane.

See
Throws:

no plans to implement

Type
Error

(inner) viewRefreshFields()

Recalculates the fields in the current document or updates the current view or folder.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) viewRefreshUnread()

Updates the unread counts on all database icons displayed on the current workspace page.

See
Throws:

no plans to implement

Type
Error

(inner) viewRenamePerson()

Displays the Certify Selected Entries dialog box, which enables you to upgrade the selected user name to a hierarchical name, change the user's common name, or change the user's hierarchical name.

See
Throws:

no plans to implement

Type
Error

(inner) viewShowFieldHelp()

Shows field Help, so that the Help description for the current field (if available) appears on the status bar while the user composes or edits a document. (Field Help is a design option specified in the Field Properties box.) This command is a toggle; selecting it a second time hides the field Help.

See
Throws:

no plans to implement

Type
Error

(inner) viewShowObject()

Displays the "object delimiter" -- a dotted frame surrounding an OLE/LEL object within a field. This command is a toggle; selecting it a second time hides the object delimiter so the OLE/LEL object looks like regular, editable data.

See
Throws:

no plans to implement

Type
Error

(inner) viewShowOnlyCategories()

Collapses the view or folder so that only category and subcategory names show up. This command is a toggle; selecting it a second time expands all category levels.

See
Throws:

no plans to implement

Type
Error

(inner) viewShowOnlySearchResults()

Shows the results of a full-text search as selected documents in a view or folder. This command is a toggle. Instead of listing only the documents that satisfy the search query (the default for a full-text search), the view or folder lists all the documents it normally lists, with a check mark in front of those documents that satisfy the search query.

See
Throws:

no plans to implement

Type
Error

(inner) viewShowOnlySelected()

Displays only the selected documents or categories in the view or folder (those documents with a check mark). This command is a toggle; selecting it a second time displays all documents or categories.

See
Throws:

no plans to implement

Type
Error

(inner) viewShowOnlyUnread()

Displays only the unread documents in the view or folder. This command is a toggle; selecting it again displays all documents in the view or folder.

See
Throws:

no plans to implement

Type
Error

(inner) viewShowPageBreaks()

Displays a line representing each page break in the document. The page breaks indicate where Notes® will end each page when the document is printed on the currently selected printer. This command is a toggle; selecting it a second time suppresses the display of automatic page breaks (manual page breaks will still be displayed).

See
Throws:

no plans to implement

Type
Error

(inner) viewShowRuler()

Toggles the display of the ruler while a document is open in Edit mode.

See
Throws:

no plans to implement

Type
Error

(inner) viewShowSearchBar()

Toggles the display of the full-text search bar at the beginning of the view. If the database does not have a full-text index, the search bar displays but is not usable.

See
Throws:

no plans to implement

Type
Error

(inner) viewShowServerNames()

Toggles the display of server names on the database icons in the user's workspace.

See
Throws:

no plans to implement

Type
Error

(inner) viewShowUnread()

Toggles the display of the unread document count on each database icon on the user's workspace.

See
Throws:

no plans to implement

Type
Error

(inner) viewSwitchForm()

Changes the form used to display the current document.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-volt-formula.html b/javadoc/module-volt-formula.html new file mode 100644 index 00000000..05914423 --- /dev/null +++ b/javadoc/module-volt-formula.html @@ -0,0 +1,3 @@ +Module: volt-formula
On this page

Volt Formula

Methods

(inner) context(ctxopt) → {string}

Gets the current API context (if ctx param is null or not supplied) or Sets the API context to either database for local DOM, for those APIs that require working with differents contexts such as GetField/SetField

Parameters:
NameTypeAttributesDescription
ctxstring<optional>

the context to set: 'db', 'local'

Returns:

the context

Type: 
string

(inner) debug(msg, type) → {Object|undefined}

Uses the console object's methods to display Debug messages, prepending them with a timestamp. Defaults to console.log() if no type of logger is supplied

Parameters:
NameTypeDescription
msgstring

message

typestring

logger to employ: 'Error', 'Warning', 'Info', 'Debug', 'Log' from the console object, or javascript alert if type is Alert

Returns:
  • Object representing the debug message

    Type: 
    Object
  • undefined if no logger is available

    Type: 
    undefined
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-window.html b/javadoc/module-window.html new file mode 100644 index 00000000..69413838 --- /dev/null +++ b/javadoc/module-window.html @@ -0,0 +1,3 @@ +Module: window
On this page

Window

Methods

(inner) closeWindow()

Same as the File - Close command menu. Closes the current Notes® tab, or the window if this was the last tab in the window. If the document or design element in that window has not been saved, Notes® prompts the user to save it before closing.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) refreshWindow()

Reloads or refreshes the contents of the current window.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) reloadWindow()

Reloads or refreshes the contents of the current window.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) windowCascade()

Resizes all open Notes/Domino windows to less than 50% of their maximum window size and layers them in a cascading stack. Because the layered stack is cascaded, the title bar of each window is visible behind the stack's first window. To display a window that is lower in the stack, you can make it first by clicking its title bar.

See
Throws:

no plans to implement

Type
Error

(inner) windowMaximize()

Maximizes the active Notes/Domino window (the window whose title bar is highlighted).

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) windowMaximizeAll()

Maximizes all open Notes/Domino windows. Notes/Domino windows include the Designer and Administration client windows as well as any of the Notes® Help windows.

See
Throws:

no plans to implement

Type
Error

(inner) windowMinimize()

Minimizes the active Notes/Domino window (the window whose title bar is highlighted).

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) windowMinimizeAll()

Minimizes all open Notes/Domino windows. Notes/Domino windows include the Designer and Administration client windows as well as any of the Notes® Help windows.

See
Throws:

no plans to implement

Type
Error

(inner) windowNext()

Maximizes the Notes® window whose taskbar button follows the current window's taskbar button or, if the windows are cascaded, moves the next window in the stack to the beginning of the stack.

See
To Do
  • this needs to be implemented
Throws:

no plans to implement

Type
Error

(inner) windowRestore()

Restores the active window to its former size (before it was maximized or minimized).

See
Throws:

no plans to implement

Type
Error

(inner) windowTile()

Resizes all open Notes/Domino windows to display them all at once. The open windows are tiled across the screen until they fill the background. If two windows are currently open, Notes® displays them side-by-side. If four windows are open, Notes® displays one in each of the four quadrants of the window.

See
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) windowWorkspace()

Displays the Notes/Domino workspace as the active window.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/module-workspace.html b/javadoc/module-workspace.html new file mode 100644 index 00000000..ab1d8704 --- /dev/null +++ b/javadoc/module-workspace.html @@ -0,0 +1,3 @@ +Module: workspace
On this page

workspace

Methods

(inner) workspaceProperties()

Displays the Properties box for the Notes/Domino workspace.

See
Throws:

no plans to implement

Type
Error

(inner) workspaceStackReplicaIcons()

For databases on the workspace that are replicas of one another, stacks them into a single icon. The command is a toggle; selecting it a second time unstacks the replica icons and displays each icon individually.

See
Throws:

no plans to implement

Type
Error
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/navigate.js.html b/javadoc/navigate.js.html new file mode 100644 index 00000000..f246c3b6 --- /dev/null +++ b/javadoc/navigate.js.html @@ -0,0 +1,208 @@ +Source: navigate.js
On this page

navigate.js

"use strict";
+/**
+ * @file Navigate
+ * @module navigate
+ * @category Navigate
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.navPrevUnread = exports.navPrevSelected = exports.navPrevMain = exports.navPrev = exports.navNextUnread = exports.navNextSelected = exports.navNextMain = exports.navNext = exports.navigatorTest = exports.navigatorProperties = exports.navigateToBacklink = exports.navigatePrevUnread = exports.navigatePrevSelected = exports.navigatePrevMain = exports.navigatePrevHighlight = exports.navigatePrev = exports.navigateNextUnread = exports.navigateNextSelected = exports.navigateNextMain = exports.navigateNextHighlight = exports.navigateNext = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesc = tslib_1.__importStar(require("../notes/navigate"));
+exports._notes = notesc;
+//-----------------------------
+// Notes @Commands navigate
+/**
+ * Navigates to the next document in the current view or folder.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVIGATENEXT.html|www.hcltechsw.com }
+ */
+function navigateNext() {
+    return notesc.NavigateNext();
+}
+exports.navigateNext = navigateNext;
+/**
+ * Navigates to the next full-text search highlight within a document, working from
+ * left to right and beginning to end.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVIGATENEXTHIGHLIGHT.html|www.hcltechsw.com }
+ */
+function navigateNextHighlight() {
+    return notesc.NavigateNextHighlight();
+}
+exports.navigateNextHighlight = navigateNextHighlight;
+/**
+ * Navigates to the next main document in the current view.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVIGATENEXTMAIN.html|www.hcltechsw.com }
+ */
+function navigateNextMain() {
+    return notesc.NavigateNextMain();
+}
+exports.navigateNextMain = navigateNextMain;
+/**
+ * Navigates to the next selected document in the current view or folder.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVIGATENEXTSELECTED.html|www.hcltechsw.com }
+ */
+function navigateNextSelected() {
+    return notesc.NavigateNextSelected();
+}
+exports.navigateNextSelected = navigateNextSelected;
+/**
+ * Navigates to the next unread document in the current view or folder.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVIGATENEXTUNREAD.html|www.hcltechsw.com }
+ */
+function navigateNextUnread() {
+    return notesc.NavigateNextUnread();
+}
+exports.navigateNextUnread = navigateNextUnread;
+/**
+ * Navigates to the previous document in the current view or folder.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVIGATEPREV.html|www.hcltechsw.com }
+ */
+function navigatePrev() {
+    return notesc.NavigatePrev();
+}
+exports.navigatePrev = navigatePrev;
+/**
+ * Navigates to the previous full-text search highlight within a document, working
+ * from right to left and end to beginning.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVIGATEPREVHIGHLIGHT.html|www.hcltechsw.com }
+ */
+function navigatePrevHighlight() {
+    return notesc.NavigatePrevHighlight();
+}
+exports.navigatePrevHighlight = navigatePrevHighlight;
+/**
+ * Navigates to the previous main document in the current view or folder.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVIGATEPREVMAIN.html|www.hcltechsw.com }
+ */
+function navigatePrevMain() {
+    return notesc.NavigatePrevMain();
+}
+exports.navigatePrevMain = navigatePrevMain;
+/**
+ * Navigates to the previous selected document in the current view or folder.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVIGATEPREVSELECTED.html|www.hcltechsw.com }
+ */
+function navigatePrevSelected() {
+    return notesc.NavigatePrevSelected();
+}
+exports.navigatePrevSelected = navigatePrevSelected;
+/**
+ * Navigates to the previous unread document in the current view or folder.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVIGATEPREVUNREAD.html|www.hcltechsw.com }
+ */
+function navigatePrevUnread() {
+    return notesc.NavigatePrevUnread();
+}
+exports.navigatePrevUnread = navigatePrevUnread;
+/**
+ * Returns to the document from which you launched the current document.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVIGATEToBackLink.html|www.hcltechsw.com }
+ */
+function navigateToBacklink() {
+    return notesc.NavigateToBacklink();
+}
+exports.navigateToBacklink = navigateToBacklink;
+/**
+ * Displays the Properties box for a navigator.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVIGATORPROPERTIES.html|www.hcltechsw.com }
+ */
+function navigatorProperties() {
+    return notesc.NavigatorProperties();
+}
+exports.navigatorProperties = navigatorProperties;
+/**
+ * Opens a navigator in Testing mode, so you can test its hotspots, formulas, and
+ * scripts. Selecting this command again puts the navigator back into Design mode.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVIGATORTEST.html|www.hcltechsw.com }
+ */
+function navigatorTest() {
+    return notesc.NavigatorTest();
+}
+exports.navigatorTest = navigatorTest;
+/**
+ * Navigates to the next document in the current view or folder.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVNEXT_COMMAND.html|www.hcltechsw.com }
+ */
+function navNext() {
+    return notesc.NavNext();
+}
+exports.navNext = navNext;
+/**
+ * Navigates to the next main document in the current view.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVNEXTMAIN_COMMAND.html|www.hcltechsw.com }
+ */
+function navNextMain() {
+    return notesc.NavNextMain();
+}
+exports.navNextMain = navNextMain;
+/**
+ * Navigates to the next selected document in the current view or folder.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVNEXTSELECTED_COMMAND.html|www.hcltechsw.com }
+ */
+function navNextSelected() {
+    return notesc.NavNextSelected();
+}
+exports.navNextSelected = navNextSelected;
+/**
+ * Navigates to the next unread document in the current view or folder.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVNEXTUNREAD.html|www.hcltechsw.com }
+ */
+function navNextUnread() {
+    return notesc.NavNextUnread();
+}
+exports.navNextUnread = navNextUnread;
+/**
+ * Navigates to the previous document in the current view or folder.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link <add https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVPREV_COMMAND.html|www.hcltechsw.com }
+ */
+function navPrev() {
+    return notesc.NavPrev();
+}
+exports.navPrev = navPrev;
+/**
+ * Navigates to the previous main document in the current view or folder.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVPREVMAIN_COMMAND.html|www.hcltechsw.com }
+ */
+function navPrevMain() {
+    return notesc.NavPrevMain();
+}
+exports.navPrevMain = navPrevMain;
+/**
+ * Navigates to the previous selected document in the current view or folder.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVPREVSELECTED_COMMAND.html|www.hcltechsw.com }
+ */
+function navPrevSelected() {
+    return notesc.NavPrevSelected();
+}
+exports.navPrevSelected = navPrevSelected;
+/**
+ * Navigates to the previous unread document in the current view or folder.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_NAVPREVUNREAD_COMMAND.html|www.hcltechsw.com }
+ */
+function navPrevUnread() {
+    return notesc.NavPrevUnread();
+}
+exports.navPrevUnread = navPrevUnread;
+//# sourceMappingURL=navigate.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/network.js.html b/javadoc/network.js.html new file mode 100644 index 00000000..39739ad2 --- /dev/null +++ b/javadoc/network.js.html @@ -0,0 +1,43 @@ +Source: network.js
On this page

network.js

"use strict";
+/**
+ * @file Network
+ * @module network
+ * @category Network
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.getPortsList = exports.certificate = exports.getHTTPHeader = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesf = tslib_1.__importStar(require("../notes/network"));
+exports._notes = notesf;
+/**
+ * In a Web application, returns the value of an HTTP header from the browser
+ * client request being processed by the server.
+ * @throws {Error} method not implemented
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_GETHTTPHEADER.html|www.hcltechsw.com }
+ * @TODO this needs to be implemented
+ */
+function getHTTPHeader() {
+    return notesf.GetHTTPHeader();
+}
+exports.getHTTPHeader = getHTTPHeader;
+/**
+ * Extracts information from the Certified Public Key in the Domino® Directory.
+ * @throws {Error} no plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_CERTIFICATE_FUNCTION.html|www.hcltechsw.com }
+ */
+function certificate() {
+    return notesf.Certificate();
+}
+exports.certificate = certificate;
+/**
+ * Returns a list of enabled or disabled ports.
+ * @throws {Error} no plans to implement
+ * @see For further information, see &nbsp; {@link https://help.hcltechsw.com/dom_designer/12.0.2/basic/H_GETPORTSLIST.html|www.hcltechsw.com }
+ */
+function getPortsList() {
+    return notesf.GetPortsList();
+}
+exports.getPortsList = getPortsList;
+//# sourceMappingURL=network.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/object.js.html b/javadoc/object.js.html new file mode 100644 index 00000000..02fdcd79 --- /dev/null +++ b/javadoc/object.js.html @@ -0,0 +1,44 @@ +Source: object.js
On this page

object.js

"use strict";
+/**
+ * @file Object
+ * @module object
+ * @category Object
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.objectProperties = exports.objectOpen = exports.objectDisplayAs = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesc = tslib_1.__importStar(require("../notes/object"));
+exports._notes = notesc;
+//-----------------------------
+// Notes @Commands object
+/**
+ * Displays the Display As dialog box, which lets you change the display settings
+ * of the selected OLE object.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_OBJECTDISPLAYAS.html|www.hcltechsw.com }
+ */
+function objectDisplayAs() {
+    return notesc.ObjectDisplayAs();
+}
+exports.objectDisplayAs = objectDisplayAs;
+/**
+ * Opens an OLE object for editing.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_OBJECTOPEN.html|www.hcltechsw.com }
+ */
+function objectOpen() {
+    return notesc.ObjectOpen();
+}
+exports.objectOpen = objectOpen;
+/**
+ * Displays the Properties box for the selected OLE object.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_OBJECTPROPERTIES.html|www.hcltechsw.com }
+ */
+function objectProperties() {
+    return notesc.ObjectProperties();
+}
+exports.objectProperties = objectProperties;
+//# sourceMappingURL=object.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/open.js.html b/javadoc/open.js.html new file mode 100644 index 00000000..924f7adf --- /dev/null +++ b/javadoc/open.js.html @@ -0,0 +1,94 @@ +Source: open.js
On this page

open.js

"use strict";
+/**
+ * @file Open
+ * @module open
+ * @category Open
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.openView = exports.openDocument = exports.openPage = exports.openNavigator = exports.openHelpDocument = exports.openFrameset = exports.openCalendar = exports._notes_vmx = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesc_base = tslib_1.__importStar(require("../notes/open"));
+const notesc_vmx = tslib_1.__importStar(require("../notes/voltmx/open"));
+const API = tslib_1.__importStar(require("../rosetta/API"));
+const notesc = () => API.isDefaultFrameworkVoltMX() ? notesc_vmx : notesc_base;
+exports._notes = notesc_base;
+exports._notes_vmx = notesc_vmx;
+//-----------------------------
+// Notes @Commands open
+/**
+ * Opens a mail file to the Calendar view.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_OPENCALENDAR.html|www.hcltechsw.com }
+ */
+function openCalendar() {
+    return notesc().OpenCalendar();
+}
+exports.openCalendar = openCalendar;
+/**
+ * Opens a frameset defined for the current database. Framesets provide a way for
+ * designers to display several pages at the same time. A frame is actually one
+ * page; a frameset is a collection of pages. Page designers can create links
+ * between frames. A major advantage of framesets is the ability to leave one page
+ * constant as users scroll or link to other pages.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_OPENFRAMESET_8100.html|www.hcltechsw.com }
+ */
+function openFrameset() {
+    return notesc().OpenFrameset();
+}
+exports.openFrameset = openFrameset;
+/**
+ * Allows you to create your own context-sensitive help documents. To use this
+ * command, you must first create a view that has a sorted first column containing
+ * key values that uniquely identify each help document. @Command([OpenHelpDocument])
+ * searches this sorted view for the specified key value and, if found, displays
+ * the associated help document in a separate Help window.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_OPENHELPDOCUMENT_2585_MEMLIST.html|www.hcltechsw.com }
+ */
+function openHelpDocument() {
+    return notesc().OpenHelpDocument();
+}
+exports.openHelpDocument = openHelpDocument;
+/**
+ * Opens a navigator defined for the selected database.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_OPENNAVIGATOR.html|www.hcltechsw.com }
+ */
+function openNavigator() {
+    return notesc().OpenNavigator();
+}
+exports.openNavigator = openNavigator;
+/**
+ * Opens a page defined for the current database. A page is a design element that
+ * structures and displays information, including text, graphics, applets, and
+ * links. Unlike a form, a page cannot contain fields, subforms, layout regions,
+ * and some embedded controls.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_OPENPAGE_1766.html|www.hcltechsw.com }
+ */
+function openPage() {
+    return notesc().OpenPage();
+}
+exports.openPage = openPage;
+/**
+ * Opens a document.
+ * @returns {Promise<boolean>}
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_OPENDOCUMENT.html|www.hcltechsw.com }
+ */
+function openDocument(writeOrReadOnly, UNID) {
+    return notesc().OpenDocument(writeOrReadOnly, UNID);
+}
+exports.openDocument = openDocument;
+/**
+ * Opens the specified view in the current database.
+ * @returns {Promise<boolean>}
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_OPENVIEW.html|www.hcltechsw.com }
+ */
+function openView() {
+    return notesc().OpenView();
+}
+exports.openView = openView;
+//# sourceMappingURL=open.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/refresh.js.html b/javadoc/refresh.js.html new file mode 100644 index 00000000..09d0a9c2 --- /dev/null +++ b/javadoc/refresh.js.html @@ -0,0 +1,45 @@ +Source: refresh.js
On this page

refresh.js

"use strict";
+/**
+ * @file Refresh
+ * @module refresh
+ * @category Refresh
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.refreshParentNote = exports.refreshHideFormulas = exports.refreshFrame = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesc = tslib_1.__importStar(require("../notes/refresh"));
+exports._notes = notesc;
+//-----------------------------
+// Notes @Commands refresh
+/**
+ * Refreshes the specified frame in a frameset.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REFRESHFRAME_COMMAND.html|www.hcltechsw.com }
+ */
+function refreshFrame() {
+    return notesc.RefreshFrame();
+}
+exports.refreshFrame = refreshFrame;
+/**
+ * Refreshes only the hidden formulas in a document or view.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REFRESHHIDEFORMULAS.html|www.hcltechsw.com }
+ */
+function refreshHideFormulas() {
+    return notesc.RefreshHideFormulas();
+}
+exports.refreshHideFormulas = refreshHideFormulas;
+/**
+ * This formula sends the values entered in the dialog box to the parent document.
+ * A designer can update a parent note and close the dialog box without having to
+ * use the OK button on the dialog box.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REFRESHPARENTNOTE_4582_MEMLIST.html|www.hcltechsw.com }
+ */
+function refreshParentNote() {
+    return notesc.RefreshParentNote();
+}
+exports.refreshParentNote = refreshParentNote;
+//# sourceMappingURL=refresh.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/replicator.js.html b/javadoc/replicator.js.html new file mode 100644 index 00000000..94bd6b5d --- /dev/null +++ b/javadoc/replicator.js.html @@ -0,0 +1,99 @@ +Source: replicator.js
On this page

replicator.js

"use strict";
+/**
+ * @file Replicator
+ * @module replicator
+ * @category Replicator
+ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.replicatorStop = exports.replicatorStart = exports.replicatorSendReceiveMail = exports.replicatorSendMail = exports.replicatorReplicateWithServer = exports.replicatorReplicateSelected = exports.replicatorReplicateNext = exports.replicatorReplicateHigh = exports.replicator = exports._notes = void 0;
+const tslib_1 = require("tslib");
+const notesc = tslib_1.__importStar(require("../notes/replicator"));
+exports._notes = notesc;
+//-----------------------------
+// Notes @Commands replicator
+/**
+ * Displays the Replicator on the Notes® workspace page.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REPLICATOR.html|www.hcltechsw.com }
+ */
+function replicator() {
+    return notesc.Replicator();
+}
+exports.replicator = replicator;
+/**
+ * Initiates replication of databases that have been assigned a priority of High.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REPLICATORREPLICATEHIGH.html|www.hcltechsw.com }
+ */
+function replicatorReplicateHigh() {
+    return notesc.ReplicatorReplicateHigh();
+}
+exports.replicatorReplicateHigh = replicatorReplicateHigh;
+/**
+ * Stops replication of the currently replicating database and initiates
+ * replication of the next database selected for replication.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REPLICATORREPLICATENEXT.html|www.hcltechsw.com }
+ */
+function replicatorReplicateNext() {
+    return notesc.ReplicatorReplicateNext();
+}
+exports.replicatorReplicateNext = replicatorReplicateNext;
+/**
+ * Initiates replication of the selected database.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REPLICATORREPLICATESELECTED.html|www.hcltechsw.com }
+ */
+function replicatorReplicateSelected() {
+    return notesc.ReplicatorReplicateSelected();
+}
+exports.replicatorReplicateSelected = replicatorReplicateSelected;
+/**
+ * Displays the "Replicate With Which Server" dialog box and initiates replication
+ * with the server you select.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REPLICATORREPLICATEWITHSERVER.html|www.hcltechsw.com }
+ */
+function replicatorReplicateWithServer() {
+    return notesc.ReplicatorReplicateWithServer();
+}
+exports.replicatorReplicateWithServer = replicatorReplicateWithServer;
+/**
+ * Sends local pending mail to the server.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REPLICATORSENDMAIL.html|www.hcltechsw.com }
+ */
+function replicatorSendMail() {
+    return notesc.ReplicatorSendMail();
+}
+exports.replicatorSendMail = replicatorSendMail;
+/**
+ * Initiates replication between the mail server and your local mail database.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REPLICATORSENDRECEIVEMAIL.html|www.hcltechsw.com }
+ */
+function replicatorSendReceiveMail() {
+    return notesc.ReplicatorSendReceiveMail();
+}
+exports.replicatorSendReceiveMail = replicatorSendReceiveMail;
+/**
+ * Initiates or resumes replication of the selected databases.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REPLICATORSTART.html|www.hcltechsw.com }
+ */
+function replicatorStart() {
+    return notesc.ReplicatorStart();
+}
+exports.replicatorStart = replicatorStart;
+/**
+ * Stops the current replication process.
+ * @throws {Error} no plans to implement
+ * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/12.0.0/basic/H_REPLICATORSTOP.html|www.hcltechsw.com }
+ */
+function replicatorStop() {
+    return notesc.ReplicatorStop();
+}
+exports.replicatorStop = replicatorStop;
+//# sourceMappingURL=replicator.js.map
Licensed Materials - Property of HCL. (c) Copyright HCL America, Inc. 2023
\ No newline at end of file diff --git a/javadoc/resources/favicon.ico b/javadoc/resources/favicon.ico new file mode 100644 index 00000000..ea235e24 Binary files /dev/null and b/javadoc/resources/favicon.ico differ diff --git a/javadoc/scripts/core.js b/javadoc/scripts/core.js new file mode 100644 index 00000000..00334029 --- /dev/null +++ b/javadoc/scripts/core.js @@ -0,0 +1,675 @@ +/* global document */ +var accordionLocalStorageKey = 'accordion-id'; +var themeLocalStorageKey = 'theme'; +var fontSizeLocalStorageKey = 'font-size'; +var html = document.querySelector('html'); + +var MAX_FONT_SIZE = 30; +var MIN_FONT_SIZE = 10; + +// eslint-disable-next-line no-undef +var localStorage = window.localStorage; + +function getTheme() { + var body = document.body; + + return body.getAttribute('data-theme'); +} + +function localUpdateTheme(theme) { + var body = document.body; + var svgUse = document.querySelectorAll('.theme-svg-use'); + var iconID = theme === 'dark' ? '#light-theme-icon' : '#dark-theme-icon'; + + body.setAttribute('data-theme', theme); + body.classList.remove('dark', 'light'); + body.classList.add(theme); + + svgUse.forEach(function (svg) { + svg.setAttribute('xlink:href', iconID); + }); +} + +function updateTheme(theme) { + localUpdateTheme(theme); + localStorage.setItem(themeLocalStorageKey, theme); +} + +function toggleTheme() { + var body = document.body; + var theme = body.getAttribute('data-theme'); + + var newTheme = theme === 'dark' ? 'light' : 'dark'; + + updateTheme(newTheme); +} + +(function () { + var theme = getTheme(); + + var themeStoredInLocalStorage = localStorage.getItem(themeLocalStorageKey); + + if (themeStoredInLocalStorage) { + if (theme === themeStoredInLocalStorage) { + return; + } + + updateTheme(themeStoredInLocalStorage); + } else { + localStorage.setItem(themeLocalStorageKey, theme); + } +})(); + +/** + * Function to set accordion id to localStorage. + * @param {string} id Accordion id + */ +function setAccordionIdToLocalStorage(id) { + /** + * @type {object} + */ + var ids = JSON.parse(localStorage.getItem(accordionLocalStorageKey)); + + ids[id] = id; + localStorage.setItem(accordionLocalStorageKey, JSON.stringify(ids)); +} + +/** + * Function to remove accordion id from localStorage. + * @param {string} id Accordion id + */ +function removeAccordionIdFromLocalStorage(id) { + /** + * @type {object} + */ + var ids = JSON.parse(localStorage.getItem(accordionLocalStorageKey)); + + delete ids[id]; + localStorage.setItem(accordionLocalStorageKey, JSON.stringify(ids)); +} + +/** + * Function to get all accordion ids from localStorage. + * + * @returns {object} + */ +function getAccordionIdsFromLocalStorage() { + /** + * @type {object} + */ + var ids = JSON.parse(localStorage.getItem(accordionLocalStorageKey)); + + return ids || {}; +} + +function toggleAccordion(element) { + var currentNode = element; + var isCollapsed = currentNode.getAttribute('data-isopen') === 'false'; + + if (isCollapsed) { + currentNode.setAttribute('data-isopen', 'true'); + setAccordionIdToLocalStorage(currentNode.id); + } else { + currentNode.setAttribute('data-isopen', 'false'); + removeAccordionIdFromLocalStorage(currentNode.id); + } +} + +function initAccordion() { + if ( + localStorage.getItem(accordionLocalStorageKey) === undefined || + localStorage.getItem(accordionLocalStorageKey) === null + ) { + localStorage.setItem(accordionLocalStorageKey, '{}'); + } + var allAccordion = document.querySelectorAll('.sidebar-section-title'); + var ids = getAccordionIdsFromLocalStorage(); + + allAccordion.forEach(function (item) { + item.addEventListener('click', function () { + toggleAccordion(item); + }); + if (item.id in ids) { + toggleAccordion(item); + } + }); +} + +function isSourcePage() { + return Boolean(document.querySelector('#source-page')); +} + +function bringElementIntoView(element, updateHistory = true) { + // If element is null then we are not going further + if (!element) { + return; + } + + /** + * tocbotInstance is defined in layout.tmpl + * It is defined when we are initializing tocbot. + * + */ + // eslint-disable-next-line no-undef + if (tocbotInstance) { + // eslint-disable-next-line no-undef + setTimeout(() => tocbotInstance.updateTocListActiveElement(element), 60) + } + var navbar = document.querySelector('.navbar-container'); + var body = document.querySelector('.main-content'); + var elementTop = element.getBoundingClientRect().top; + + var offset = 16; + + if (navbar) { + offset += navbar.scrollHeight; + } + + if (body) { + body.scrollBy(0, elementTop - offset); + } + + if (updateHistory) { + // eslint-disable-next-line no-undef + history.pushState(null, null, '#' + element.id); + } +} + +// eslint-disable-next-line no-unused-vars +function bringLinkToView(event) { + event.preventDefault(); + event.stopPropagation(); + var id = event.currentTarget.getAttribute('href'); + + if (!id) { + return; + } + + var element = document.getElementById(id.slice(1)); + + if (element) { + bringElementIntoView(element); + } +} + +function bringIdToViewOnMount() { + if (isSourcePage()) { + return; + } + + // eslint-disable-next-line no-undef + var id = window.location.hash; + + if (id === '') { + return; + } + + var element = document.getElementById(id.slice(1)); + + if (!element) { + id = decodeURI(id); + element = document.getElementById(id.slice(1)); + } + + if (element) { + bringElementIntoView(element, false); + } +} + +function createAnchorElement(id) { + var anchor = document.createElement('a'); + + anchor.textContent = '#'; + anchor.href = '#' + id; + anchor.classList.add('link-anchor'); + anchor.onclick = bringLinkToView; + + return anchor; +} + +function addAnchor() { + var main = document.querySelector('.main-content').querySelector('section'); + + var h1 = main.querySelectorAll('h1'); + var h2 = main.querySelectorAll('h2'); + var h3 = main.querySelectorAll('h3'); + var h4 = main.querySelectorAll('h4'); + + var targets = [h1, h2, h3, h4]; + + targets.forEach(function (target) { + target.forEach(function (heading) { + var anchor = createAnchorElement(heading.id); + + heading.classList.add('has-anchor'); + heading.append(anchor); + }); + }); +} + +/** + * + * @param {string} value + */ +function copy(value) { + console.log(value); + const el = document.createElement('textarea'); + + el.value = value; + document.body.appendChild(el); + el.select(); + document.execCommand('copy'); + document.body.removeChild(el); +} + +function showTooltip(id) { + var tooltip = document.getElementById(id); + + tooltip.classList.add('show-tooltip'); + setTimeout(function () { + tooltip.classList.remove('show-tooltip'); + }, 3000); +} + +/* eslint-disable-next-line */ +function copyFunction(id) { + // selecting the pre element + var code = document.getElementById(id); + + // selecting the ol.linenums + var element = code.querySelector('.linenums'); + + if (!element) { + // selecting the code block + element = code.querySelector('code'); + } + + // copy + copy(element.innerText.trim().replace(/(^\t)/gm, '')); + + // show tooltip + showTooltip('tooltip-' + id); +} + +function hideTocOnSourcePage() { + if (isSourcePage()) { + document.querySelector('.toc-container').style.display = 'none'; + } +} + +function getPreTopBar(id, lang = '') { + // tooltip + var tooltip = '
Copied!
'; + + // template of copy to clipboard icon container + var copyToClipboard = + ''; + + var langNameDiv = + '
' + + lang.toLocaleUpperCase() + + '
'; + + var topBar = + '
' + + langNameDiv + + copyToClipboard + + '
'; + + return topBar; +} + +function getPreDiv() { + var divElement = document.createElement('div'); + + divElement.classList.add('pre-div'); + + return divElement; +} + +function processAllPre() { + var targets = document.querySelectorAll('pre'); + var footer = document.querySelector('#PeOAagUepe'); + var navbar = document.querySelector('#VuAckcnZhf'); + + var navbarHeight = 0; + var footerHeight = 0; + + if (footer) { + footerHeight = footer.getBoundingClientRect().height; + } + + if (navbar) { + navbarHeight = navbar.getBoundingClientRect().height; + } + + // eslint-disable-next-line no-undef + var preMaxHeight = window.innerHeight - navbarHeight - footerHeight - 250; + + targets.forEach(function (pre, idx) { + var parent = pre.parentNode; + + if (parent && parent.getAttribute('data-skip-pre-process') === 'true') { + return; + } + + var div = getPreDiv(); + var id = 'ScDloZOMdL' + idx; + + var lang = pre.getAttribute('data-lang') || 'code'; + var topBar = getPreTopBar(id, lang); + + div.innerHTML = topBar; + + pre.style.maxHeight = preMaxHeight + 'px'; + pre.id = id; + pre.classList.add('prettyprint'); + pre.parentNode.insertBefore(div, pre); + div.appendChild(pre); + }); +} + +function highlightAndBringLineIntoView() { + // eslint-disable-next-line no-undef + var lineNumber = window.location.hash.replace('#line', ''); + + try { + var selector = '[data-line-number="' + lineNumber + '"'; + + var element = document.querySelector(selector); + + element.scrollIntoView(); + element.parentNode.classList.add('selected'); + } catch (error) { + console.error(error); + } +} + +function getFontSize() { + var currentFontSize = 16; + + try { + currentFontSize = Number.parseInt( + html.style.fontSize.split('px')[0], + 10 + ); + } catch (error) { + console.log(error); + } + + return currentFontSize; +} + +function localUpdateFontSize(fontSize) { + html.style.fontSize = fontSize + 'px'; + + var fontSizeText = document.querySelector( + '#b77a68a492f343baabea06fad81f651e' + ); + + if (fontSizeText) { + fontSizeText.innerHTML = fontSize; + } +} + +function updateFontSize(fontSize) { + localUpdateFontSize(fontSize); + localStorage.setItem(fontSizeLocalStorageKey, fontSize); +} + +(function () { + var fontSize = getFontSize(); + var fontSizeInLocalStorage = localStorage.getItem(fontSizeLocalStorageKey); + + if (fontSizeInLocalStorage) { + var n = Number.parseInt(fontSizeInLocalStorage, 10); + + if (n === fontSize) { + return; + } + updateFontSize(n); + } else { + updateFontSize(fontSize); + } +})(); + +// eslint-disable-next-line no-unused-vars +function incrementFont(event) { + var n = getFontSize(); + + if (n < MAX_FONT_SIZE) { + updateFontSize(n + 1); + } +} + +// eslint-disable-next-line no-unused-vars +function decrementFont(event) { + var n = getFontSize(); + + if (n > MIN_FONT_SIZE) { + updateFontSize(n - 1); + } +} + +function fontSizeTooltip() { + var fontSize = getFontSize(); + + return ` +
+ +
+ ${fontSize} +
+ + +
+ + `; +} + +function initTooltip() { + // add tooltip to navbar item + // eslint-disable-next-line no-undef + tippy('.theme-toggle', { + content: 'Toggle Theme', + delay: 500 + }); + + // eslint-disable-next-line no-undef + tippy('.search-button', { + content: 'Search', + delay: 500 + }); + + // eslint-disable-next-line no-undef + tippy('.font-size', { + content: 'Change font size', + delay: 500 + }); + + // eslint-disable-next-line no-undef + tippy('.codepen-button', { + content: 'Open code in CodePen', + placement: 'left' + }); + + // eslint-disable-next-line no-undef + tippy('.copy-code', { + content: 'Copy this code', + placement: 'left' + }); + + // eslint-disable-next-line no-undef + tippy('.font-size', { + content: fontSizeTooltip(), + trigger: 'click', + interactive: true, + allowHTML: true, + placement: 'left' + }); +} + +function fixTable() { + const tables = document.querySelectorAll('table'); + + for (const table of tables) { + if (table.classList.contains('hljs-ln')) { + // don't want to wrap code blocks. + return; + } + + var div = document.createElement('div'); + + div.classList.add('table-div'); + table.parentNode.insertBefore(div, table); + div.appendChild(table); + } +} + +function hideMobileMenu() { + var mobileMenuContainer = document.querySelector('#mobile-sidebar'); + var target = document.querySelector('#mobile-menu'); + var svgUse = target.querySelector('use'); + + if (mobileMenuContainer) { + mobileMenuContainer.classList.remove('show'); + } + if (target) { + target.setAttribute('data-isopen', 'false'); + } + if (svgUse) { + svgUse.setAttribute('xlink:href', '#menu-icon'); + } +} + +function showMobileMenu() { + var mobileMenuContainer = document.querySelector('#mobile-sidebar'); + var target = document.querySelector('#mobile-menu'); + var svgUse = target.querySelector('use'); + + if (mobileMenuContainer) { + mobileMenuContainer.classList.add('show'); + } + if (target) { + target.setAttribute('data-isopen', 'true'); + } + if (svgUse) { + svgUse.setAttribute('xlink:href', '#close-icon'); + } +} + +function onMobileMenuClick() { + var target = document.querySelector('#mobile-menu'); + var isOpen = target.getAttribute('data-isopen') === 'true'; + + if (isOpen) { + hideMobileMenu(); + } else { + showMobileMenu(); + } +} + +function initMobileMenu() { + var menu = document.querySelector('#mobile-menu'); + + if (menu) { + menu.addEventListener('click', onMobileMenuClick); + } +} + +function addHrefToSidebarTitle() { + var titles = document.querySelectorAll('.sidebar-title-anchor'); + + titles.forEach(function (title) { + // eslint-disable-next-line no-undef + title.setAttribute('href', baseURL); + }); +} + +function onDomContentLoaded() { + var themeButton = document.querySelectorAll('.theme-toggle'); + + initMobileMenu(); + + if (themeButton) { + themeButton.forEach(function (button) { + button.addEventListener('click', toggleTheme); + }); + } + + // Highlighting code + + // eslint-disable-next-line no-undef + hljs.addPlugin({ + 'after:highlightElement': function (obj) { + // Replace 'code' with result.language when + // we are able to cross-check the correctness of + // result. + obj.el.parentNode.setAttribute('data-lang', 'code'); + } + }); + // eslint-disable-next-line no-undef + hljs.highlightAll(); + // eslint-disable-next-line no-undef + hljs.initLineNumbersOnLoad({ + singleLine: true + }); + + // Highlight complete + + initAccordion(); + addAnchor(); + processAllPre(); + hideTocOnSourcePage(); + setTimeout(function () { + bringIdToViewOnMount(); + if (isSourcePage()) { + highlightAndBringLineIntoView(); + } + }, 1000); + initTooltip(); + fixTable(); + addHrefToSidebarTitle(); +} + +// eslint-disable-next-line no-undef +window.addEventListener('DOMContentLoaded', onDomContentLoaded); + +// eslint-disable-next-line no-undef +window.addEventListener('hashchange', (event) => { + const url = new URL(event.newURL); + + if (url.hash !== '') { + bringIdToViewOnMount(url.hash); + } +}); + +// eslint-disable-next-line no-undef +window.addEventListener('storage', event => { + if (event.newValue === 'undefined') return; + + initTooltip(); + + if (event.key === themeLocalStorageKey) + localUpdateTheme(event.newValue); + if (event.key === fontSizeLocalStorageKey) + localUpdateFontSize(event.newValue); +}); diff --git a/javadoc/scripts/core.min.js b/javadoc/scripts/core.min.js new file mode 100644 index 00000000..8f65ec77 --- /dev/null +++ b/javadoc/scripts/core.min.js @@ -0,0 +1,23 @@ +var accordionLocalStorageKey="accordion-id",themeLocalStorageKey="theme",fontSizeLocalStorageKey="font-size",html=document.querySelector("html"),MAX_FONT_SIZE=30,MIN_FONT_SIZE=10,localStorage=window.localStorage;function getTheme(){return document.body.getAttribute("data-theme")}function localUpdateTheme(e){var t=document.body,o=document.querySelectorAll(".theme-svg-use"),n="dark"===e?"#light-theme-icon":"#dark-theme-icon";t.setAttribute("data-theme",e),t.classList.remove("dark","light"),t.classList.add(e),o.forEach(function(e){e.setAttribute("xlink:href",n)})}function updateTheme(e){localUpdateTheme(e),localStorage.setItem(themeLocalStorageKey,e)}function toggleTheme(){updateTheme("dark"===document.body.getAttribute("data-theme")?"light":"dark")}function setAccordionIdToLocalStorage(e){var t=JSON.parse(localStorage.getItem(accordionLocalStorageKey));t[e]=e,localStorage.setItem(accordionLocalStorageKey,JSON.stringify(t))}function removeAccordionIdFromLocalStorage(e){var t=JSON.parse(localStorage.getItem(accordionLocalStorageKey));delete t[e],localStorage.setItem(accordionLocalStorageKey,JSON.stringify(t))}function getAccordionIdsFromLocalStorage(){return JSON.parse(localStorage.getItem(accordionLocalStorageKey))||{}}function toggleAccordion(e){"false"===e.getAttribute("data-isopen")?(e.setAttribute("data-isopen","true"),setAccordionIdToLocalStorage(e.id)):(e.setAttribute("data-isopen","false"),removeAccordionIdFromLocalStorage(e.id))}function initAccordion(){void 0!==localStorage.getItem(accordionLocalStorageKey)&&null!==localStorage.getItem(accordionLocalStorageKey)||localStorage.setItem(accordionLocalStorageKey,"{}");var e=document.querySelectorAll(".sidebar-section-title"),t=getAccordionIdsFromLocalStorage();e.forEach(function(e){e.addEventListener("click",function(){toggleAccordion(e)}),e.id in t&&toggleAccordion(e)})}function isSourcePage(){return Boolean(document.querySelector("#source-page"))}function bringElementIntoView(e,t=!0){var o,n,i,c;e&&(tocbotInstance&&setTimeout(()=>tocbotInstance.updateTocListActiveElement(e),60),o=document.querySelector(".navbar-container"),n=document.querySelector(".main-content"),i=e.getBoundingClientRect().top,c=16,o&&(c+=o.scrollHeight),n&&n.scrollBy(0,i-c),t&&history.pushState(null,null,"#"+e.id))}function bringLinkToView(e){e.preventDefault(),e.stopPropagation();var e=e.currentTarget.getAttribute("href");!e||(e=document.getElementById(e.slice(1)))&&bringElementIntoView(e)}function bringIdToViewOnMount(){var e,t;isSourcePage()||""!==(e=window.location.hash)&&((t=document.getElementById(e.slice(1)))||(e=decodeURI(e),t=document.getElementById(e.slice(1))),t&&bringElementIntoView(t,!1))}function createAnchorElement(e){var t=document.createElement("a");return t.textContent="#",t.href="#"+e,t.classList.add("link-anchor"),t.onclick=bringLinkToView,t}function addAnchor(){var e=document.querySelector(".main-content").querySelector("section");[e.querySelectorAll("h1"),e.querySelectorAll("h2"),e.querySelectorAll("h3"),e.querySelectorAll("h4")].forEach(function(e){e.forEach(function(e){var t=createAnchorElement(e.id);e.classList.add("has-anchor"),e.append(t)})})}function copy(e){console.log(e);const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}function showTooltip(e){var t=document.getElementById(e);t.classList.add("show-tooltip"),setTimeout(function(){t.classList.remove("show-tooltip")},3e3)}function copyFunction(e){var t=document.getElementById(e);copy((t.querySelector(".linenums")||t.querySelector("code")).innerText.trim().replace(/(^\t)/gm,"")),showTooltip("tooltip-"+e)}function hideTocOnSourcePage(){isSourcePage()&&(document.querySelector(".toc-container").style.display="none")}function getPreTopBar(e,t=""){e='";return'
'+('
'+t.toLocaleUpperCase()+"
")+e+"
"}function getPreDiv(){var e=document.createElement("div");return e.classList.add("pre-div"),e}function processAllPre(){var e=document.querySelectorAll("pre"),t=document.querySelector("#PeOAagUepe"),o=document.querySelector("#VuAckcnZhf"),n=0,i=0,c=(t&&(i=t.getBoundingClientRect().height),o&&(n=o.getBoundingClientRect().height),window.innerHeight-n-i-250);e.forEach(function(e,t){var o,n=e.parentNode;n&&"true"===n.getAttribute("data-skip-pre-process")||(n=getPreDiv(),o=getPreTopBar(t="ScDloZOMdL"+t,e.getAttribute("data-lang")||"code"),n.innerHTML=o,e.style.maxHeight=c+"px",e.id=t,e.classList.add("prettyprint"),e.parentNode.insertBefore(n,e),n.appendChild(e))})}function highlightAndBringLineIntoView(){var e=window.location.hash.replace("#line","");try{var t='[data-line-number="'+e+'"',o=document.querySelector(t);o.scrollIntoView(),o.parentNode.classList.add("selected")}catch(e){console.error(e)}}function getFontSize(){var e=16;try{e=Number.parseInt(html.style.fontSize.split("px")[0],10)}catch(e){console.log(e)}return e}function localUpdateFontSize(e){html.style.fontSize=e+"px";var t=document.querySelector("#b77a68a492f343baabea06fad81f651e");t&&(t.innerHTML=e)}function updateFontSize(e){localUpdateFontSize(e),localStorage.setItem(fontSizeLocalStorageKey,e)}function incrementFont(e){var t=getFontSize();t + +
+ ${e} +
+ + + + + `}function initTooltip(){tippy(".theme-toggle",{content:"Toggle Theme",delay:500}),tippy(".search-button",{content:"Search",delay:500}),tippy(".font-size",{content:"Change font size",delay:500}),tippy(".codepen-button",{content:"Open code in CodePen",placement:"left"}),tippy(".copy-code",{content:"Copy this code",placement:"left"}),tippy(".font-size",{content:fontSizeTooltip(),trigger:"click",interactive:!0,allowHTML:!0,placement:"left"})}function fixTable(){for(const t of document.querySelectorAll("table")){if(t.classList.contains("hljs-ln"))return;var e=document.createElement("div");e.classList.add("table-div"),t.parentNode.insertBefore(e,t),e.appendChild(t)}}function hideMobileMenu(){var e=document.querySelector("#mobile-sidebar"),t=document.querySelector("#mobile-menu"),o=t.querySelector("use");e&&e.classList.remove("show"),t&&t.setAttribute("data-isopen","false"),o&&o.setAttribute("xlink:href","#menu-icon")}function showMobileMenu(){var e=document.querySelector("#mobile-sidebar"),t=document.querySelector("#mobile-menu"),o=t.querySelector("use");e&&e.classList.add("show"),t&&t.setAttribute("data-isopen","true"),o&&o.setAttribute("xlink:href","#close-icon")}function onMobileMenuClick(){("true"===document.querySelector("#mobile-menu").getAttribute("data-isopen")?hideMobileMenu:showMobileMenu)()}function initMobileMenu(){var e=document.querySelector("#mobile-menu");e&&e.addEventListener("click",onMobileMenuClick)}function addHrefToSidebarTitle(){document.querySelectorAll(".sidebar-title-anchor").forEach(function(e){e.setAttribute("href",baseURL)})}function onDomContentLoaded(){var e=document.querySelectorAll(".theme-toggle");initMobileMenu(),e&&e.forEach(function(e){e.addEventListener("click",toggleTheme)}),hljs.addPlugin({"after:highlightElement":function(e){e.el.parentNode.setAttribute("data-lang","code")}}),hljs.highlightAll(),hljs.initLineNumbersOnLoad({singleLine:!0}),initAccordion(),addAnchor(),processAllPre(),hideTocOnSourcePage(),setTimeout(function(){bringIdToViewOnMount(),isSourcePage()&&highlightAndBringLineIntoView()},1e3),initTooltip(),fixTable(),addHrefToSidebarTitle()}!function(){var e=getTheme(),t=localStorage.getItem(themeLocalStorageKey);t?e!==t&&updateTheme(t):localStorage.setItem(themeLocalStorageKey,e)}(),function(){var e=getFontSize(),t=localStorage.getItem(fontSizeLocalStorageKey);t?(t=Number.parseInt(t,10))!==e&&updateFontSize(t):updateFontSize(e)}(),window.addEventListener("DOMContentLoaded",onDomContentLoaded),window.addEventListener("hashchange",e=>{e=new URL(e.newURL);""!==e.hash&&bringIdToViewOnMount(e.hash)}),window.addEventListener("storage",e=>{"undefined"!==e.newValue&&(initTooltip(),e.key===themeLocalStorageKey&&localUpdateTheme(e.newValue),e.key===fontSizeLocalStorageKey&&localUpdateFontSize(e.newValue))}); \ No newline at end of file diff --git a/javadoc/scripts/resize.js b/javadoc/scripts/resize.js new file mode 100644 index 00000000..d8e3a9cf --- /dev/null +++ b/javadoc/scripts/resize.js @@ -0,0 +1,90 @@ +/* global document */ +// This file is @deprecated + +var NAVBAR_OPTIONS = {}; + +(function() { + var NAVBAR_RESIZE_LOCAL_STORAGE_KEY = 'NAVBAR_RESIZE_LOCAL_STORAGE_KEY'; + + var navbar = document.querySelector('#navbar'); + var footer = document.querySelector('#footer'); + var mainSection = document.querySelector('#main'); + var localStorageResizeObject = JSON.parse( + // eslint-disable-next-line no-undef + localStorage.getItem(NAVBAR_RESIZE_LOCAL_STORAGE_KEY) + ); + + /** + * Check whether we have any resize value in local storage or not. + * If we have resize value then resize the navbar. + **/ + if (localStorageResizeObject) { + navbar.style.width = localStorageResizeObject.width; + mainSection.style.marginLeft = localStorageResizeObject.width; + footer.style.marginLeft = localStorageResizeObject.width; + } + + var navbarSlider = document.querySelector('#navbar-resize'); + + function resizeNavbar(event) { + var pageX = event.pageX, + pageXPlusPx = event.pageX + 'px', + min = Number.parseInt(NAVBAR_OPTIONS.min, 10) || 300, + max = Number.parseInt(NAVBAR_OPTIONS.max, 10) || 600; + + /** + * Just to add some checks. If min is smaller than 10 then + * user may accidentally end up reducing the size of navbar + * less than 10. In that case user will not able to resize navbar + * because navbar slider will be hidden. + */ + if (min < 10) { + min = 10; + } + + /** + * Only resize if pageX in range between min and max + * allowed value. + */ + if (min < pageX && pageX < max) { + navbar.style.width = pageXPlusPx; + mainSection.style.marginLeft = pageXPlusPx; + footer.style.marginLeft = pageXPlusPx; + } + } + + function setupEventListeners() { + // eslint-disable-next-line no-undef + window.addEventListener('mousemove', resizeNavbar); + // eslint-disable-next-line no-undef + window.addEventListener('touchmove', resizeNavbar); + } + + function afterRemovingEventListeners() { + // eslint-disable-next-line no-undef + localStorage.setItem( + NAVBAR_RESIZE_LOCAL_STORAGE_KEY, + JSON.stringify({ + width: navbar.style.width + }) + ); + } + + function removeEventListeners() { + // eslint-disable-next-line no-undef + window.removeEventListener('mousemove', resizeNavbar); + // eslint-disable-next-line no-undef + window.removeEventListener('touchend', resizeNavbar); + afterRemovingEventListeners(); + } + + navbarSlider.addEventListener('mousedown', setupEventListeners); + navbarSlider.addEventListener('touchstart', setupEventListeners); + // eslint-disable-next-line no-undef + window.addEventListener('mouseup', removeEventListeners); +})(); + +// eslint-disable-next-line no-unused-vars +function setupResizeOptions(options) { + NAVBAR_OPTIONS = options; +} diff --git a/javadoc/scripts/search.js b/javadoc/scripts/search.js new file mode 100644 index 00000000..415e1cf8 --- /dev/null +++ b/javadoc/scripts/search.js @@ -0,0 +1,265 @@ +/* global document */ + +const searchId = 'LiBfqbJVcV'; +const searchHash = '#' + searchId; +const searchContainer = document.querySelector('#PkfLWpAbet'); +const searchWrapper = document.querySelector('#iCxFxjkHbP'); +const searchCloseButton = document.querySelector('#VjLlGakifb'); +const searchInput = document.querySelector('#vpcKVYIppa'); +const resultBox = document.querySelector('#fWwVHRuDuN'); + +function showResultText(text) { + resultBox.innerHTML = `${text}`; +} + +function hideSearch() { + // eslint-disable-next-line no-undef + if (window.location.hash === searchHash) { + // eslint-disable-next-line no-undef + history.go(-1); + } + + // eslint-disable-next-line no-undef + window.onhashchange = null; + + if (searchContainer) { + searchContainer.style.display = 'none'; + } +} + +function listenCloseKey(event) { + if (event.key === 'Escape') { + hideSearch(); + // eslint-disable-next-line no-undef + window.removeEventListener('keyup', listenCloseKey); + } +} + +function showSearch() { + try { + // Closing mobile menu before opening + // search box. + // It is defined in core.js + // eslint-disable-next-line no-undef + hideMobileMenu(); + } catch (error) { + console.error(error); + } + + // eslint-disable-next-line no-undef + window.onhashchange = hideSearch; + + // eslint-disable-next-line no-undef + if (window.location.hash !== searchHash) { + // eslint-disable-next-line no-undef + history.pushState(null, null, searchHash); + } + + if (searchContainer) { + searchContainer.style.display = 'flex'; + // eslint-disable-next-line no-undef + window.addEventListener('keyup', listenCloseKey); + } + + if (searchInput) { + searchInput.focus(); + } +} + +async function fetchAllData() { + // eslint-disable-next-line no-undef + const { hostname, protocol, port } = location; + + // eslint-disable-next-line no-undef + const base = protocol + '//' + hostname + (port !== '' ? ':' + port : '') + baseURL; + // eslint-disable-next-line no-undef + const url = new URL('data/search.json', base); + const result = await fetch(url); + const { list } = await result.json(); + + return list; +} + +// eslint-disable-next-line no-unused-vars +function onClickSearchItem(event) { + const target = event.currentTarget; + + if (target) { + const href = target.getAttribute('href') || ''; + let elementId = href.split('#')[1] || ''; + let element = document.getElementById(elementId); + + if (!element) { + elementId = decodeURI(elementId); + element = document.getElementById(elementId); + } + + if (element) { + setTimeout(function() { + // eslint-disable-next-line no-undef + bringElementIntoView(element); // defined in core.js + }, 100); + } + } +} + +function buildSearchResult(result) { + let output = ''; + const removeHTMLTagsRegExp = /(<([^>]+)>)/ig; + + for (const res of result) { + const { title = '', description = '' } = res.item; + + const _link = res.item.link.replace('.*/, ''); + const _title = title.replace(removeHTMLTagsRegExp, ""); + const _description = description.replace(removeHTMLTagsRegExp, ""); + + output += ` + +
${_title}
+
${_description || 'No description available.'}
+
+ `; + } + + return output; +} + +function getSearchResult(list, keys, searchKey) { + const defaultOptions = { + shouldSort: true, + threshold: 0.4, + location: 0, + distance: 100, + maxPatternLength: 32, + minMatchCharLength: 1, + keys: keys + }; + + const options = { ...defaultOptions }; + + // eslint-disable-next-line no-undef + const searchIndex = Fuse.createIndex(options.keys, list); + + // eslint-disable-next-line no-undef + const fuse = new Fuse(list, options, searchIndex); + + const result = fuse.search(searchKey); + + if (result.length > 20) { + return result.slice(0, 20); + } + + return result; +} + +function debounce(func, wait, immediate) { + let timeout; + + return function() { + const args = arguments; + + clearTimeout(timeout); + timeout = setTimeout(() => { + timeout = null; + if (!immediate) { + // eslint-disable-next-line consistent-this, no-invalid-this + func.apply(this, args); + } + }, wait); + + if (immediate && !timeout) { + // eslint-disable-next-line consistent-this, no-invalid-this + func.apply(this, args); + } + }; +} + +let searchData; + +async function search(event) { + const value = event.target.value; + const keys = ['title', 'description']; + + if (!resultBox) { + console.error('Search result container not found'); + + return; + } + + if (!value) { + showResultText('Type anything to view search result'); + + return; + } + + if (!searchData) { + showResultText('Loading...'); + + try { + // eslint-disable-next-line require-atomic-updates + searchData = await fetchAllData(); + } catch (e) { + console.log(e); + showResultText('Failed to load result.'); + + return; + } + } + + const result = getSearchResult(searchData, keys, value); + + if (!result.length) { + showResultText('No result found! Try some different combination.'); + + return; + } + + // eslint-disable-next-line require-atomic-updates + resultBox.innerHTML = buildSearchResult(result); +} + +function onDomContentLoaded() { + const searchButton = document.querySelectorAll('.search-button'); + const debouncedSearch = debounce(search, 300); + + if (searchCloseButton) { + searchCloseButton.addEventListener('click', hideSearch); + } + + if (searchButton) { + searchButton.forEach(function(item) { + item.addEventListener('click', showSearch); + }); + } + + if (searchContainer) { + searchContainer.addEventListener('click', hideSearch); + } + + if (searchWrapper) { + searchWrapper.addEventListener('click', function(event) { + event.stopPropagation(); + }); + } + + if (searchInput) { + searchInput.addEventListener('keyup', debouncedSearch); + } + + // eslint-disable-next-line no-undef + if (window.location.hash === searchHash) { + showSearch(); + } +} + +// eslint-disable-next-line no-undef +window.addEventListener('DOMContentLoaded', onDomContentLoaded); + +// eslint-disable-next-line no-undef +window.addEventListener('hashchange', function() { + // eslint-disable-next-line no-undef + if (window.location.hash === searchHash) { + showSearch(); + } +}); diff --git a/javadoc/scripts/search.min.js b/javadoc/scripts/search.min.js new file mode 100644 index 00000000..5358bced --- /dev/null +++ b/javadoc/scripts/search.min.js @@ -0,0 +1,6 @@ +const searchId="LiBfqbJVcV",searchHash="#"+searchId,searchContainer=document.querySelector("#PkfLWpAbet"),searchWrapper=document.querySelector("#iCxFxjkHbP"),searchCloseButton=document.querySelector("#VjLlGakifb"),searchInput=document.querySelector("#vpcKVYIppa"),resultBox=document.querySelector("#fWwVHRuDuN");function showResultText(e){resultBox.innerHTML=`${e}`}function hideSearch(){window.location.hash===searchHash&&history.go(-1),window.onhashchange=null,searchContainer&&(searchContainer.style.display="none")}function listenCloseKey(e){"Escape"===e.key&&(hideSearch(),window.removeEventListener("keyup",listenCloseKey))}function showSearch(){try{hideMobileMenu()}catch(e){console.error(e)}window.onhashchange=hideSearch,window.location.hash!==searchHash&&history.pushState(null,null,searchHash),searchContainer&&(searchContainer.style.display="flex",window.addEventListener("keyup",listenCloseKey)),searchInput&&searchInput.focus()}async function fetchAllData(){var{hostname:e,protocol:t,port:n}=location,t=t+"//"+e+(""!==n?":"+n:"")+baseURL,e=new URL("data/search.json",t);const a=await fetch(e);n=(await a.json()).list;return n}function onClickSearchItem(t){const n=t.currentTarget;if(n){const a=n.getAttribute("href")||"";t=a.split("#")[1]||"";let e=document.getElementById(t);e||(t=decodeURI(t),e=document.getElementById(t)),e&&setTimeout(function(){bringElementIntoView(e)},100)}}function buildSearchResult(e){let t="";var n=/(<([^>]+)>)/gi;for(const s of e){const{title:c="",description:i=""}=s.item;var a=s.item.link.replace('.*/,""),o=c.replace(n,""),r=i.replace(n,"");t+=` + +
${o}
+
${r||"No description available."}
+
+ `}return t}function getSearchResult(e,t,n){var t={...{shouldSort:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:t}},a=Fuse.createIndex(t.keys,e);const o=new Fuse(e,t,a),r=o.search(n);return 20{o=null,a||t.apply(this,e)},n),a&&!o&&t.apply(this,e)}}let searchData;async function search(e){e=e.target.value;if(resultBox)if(e){if(!searchData){showResultText("Loading...");try{searchData=await fetchAllData()}catch(e){return console.log(e),void showResultText("Failed to load result.")}}e=getSearchResult(searchData,["title","description"],e);e.length?resultBox.innerHTML=buildSearchResult(e):showResultText("No result found! Try some different combination.")}else showResultText("Type anything to view search result");else console.error("Search result container not found")}function onDomContentLoaded(){const e=document.querySelectorAll(".search-button");var t=debounce(search,300);searchCloseButton&&searchCloseButton.addEventListener("click",hideSearch),e&&e.forEach(function(e){e.addEventListener("click",showSearch)}),searchContainer&&searchContainer.addEventListener("click",hideSearch),searchWrapper&&searchWrapper.addEventListener("click",function(e){e.stopPropagation()}),searchInput&&searchInput.addEventListener("keyup",t),window.location.hash===searchHash&&showSearch()}window.addEventListener("DOMContentLoaded",onDomContentLoaded),window.addEventListener("hashchange",function(){window.location.hash===searchHash&&showSearch()}); \ No newline at end of file diff --git a/javadoc/scripts/third-party/Apache-License-2.0.txt b/javadoc/scripts/third-party/Apache-License-2.0.txt new file mode 100644 index 00000000..75b52484 --- /dev/null +++ b/javadoc/scripts/third-party/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/javadoc/scripts/third-party/fuse.js b/javadoc/scripts/third-party/fuse.js new file mode 100644 index 00000000..a55c5daa --- /dev/null +++ b/javadoc/scripts/third-party/fuse.js @@ -0,0 +1,9 @@ +/** + * Fuse.js v6.4.6 - Lightweight fuzzy-search (http://fusejs.io) + * + * Copyright (c) 2021 Kiro Risk (http://kiro.me) + * All Rights Reserved. Apache Software License 2.0 + * + * http://www.apache.org/licenses/LICENSE-2.0 + */ +var e,t;e=this,t=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:3,t=new Map,n=Math.pow(10,e);return{get:function(e){var r=e.match(I).length;if(t.has(r))return t.get(r);var i=1/Math.sqrt(r),o=parseFloat(Math.round(i*n)/n);return t.set(r,o),o},clear:function(){t.clear()}}}var E=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.getFn,i=void 0===r?A.getFn:r;t(this,e),this.norm=C(3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return r(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,n){e._keysMap[t.id]=n}))}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,g(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();g(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,i=void 0===r?A.getFn:r,o=new E({getFn:i});return o.setKeys(e.map(_)),o.setSources(t),o.create(),o}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,i=t.currentLocation,o=void 0===i?0:i,c=t.expectedLocation,a=void 0===c?0:c,s=t.distance,u=void 0===s?A.distance:s,h=t.ignoreLocation,f=void 0===h?A.ignoreLocation:h,l=r/e.length;if(f)return l;var d=Math.abs(a-o);return u?l+d/u:d?1:l}function F(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.minMatchCharLength,n=[],r=-1,i=-1,o=0,c=e.length;o=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}function P(e){for(var t={},n=0,r=e.length;n1&&void 0!==arguments[1]?arguments[1]:{},o=i.location,c=void 0===o?A.location:o,a=i.threshold,s=void 0===a?A.threshold:a,u=i.distance,h=void 0===u?A.distance:u,f=i.includeMatches,l=void 0===f?A.includeMatches:f,d=i.findAllMatches,v=void 0===d?A.findAllMatches:d,g=i.minMatchCharLength,y=void 0===g?A.minMatchCharLength:g,p=i.isCaseSensitive,m=void 0===p?A.isCaseSensitive:p,k=i.ignoreLocation,M=void 0===k?A.ignoreLocation:k;if(t(this,e),this.options={location:c,threshold:s,distance:h,includeMatches:l,findAllMatches:v,minMatchCharLength:y,isCaseSensitive:m,ignoreLocation:M},this.pattern=m?n:n.toLowerCase(),this.chunks=[],this.pattern.length){var b=function(e,t){r.chunks.push({pattern:e,alphabet:P(e),startIndex:t})},x=this.pattern.length;if(x>32){for(var L=0,S=x%32,w=x-S;L3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,o=void 0===i?A.location:i,c=r.distance,a=void 0===c?A.distance:c,s=r.threshold,u=void 0===s?A.threshold:s,h=r.findAllMatches,f=void 0===h?A.findAllMatches:h,l=r.minMatchCharLength,d=void 0===l?A.minMatchCharLength:l,v=r.includeMatches,g=void 0===v?A.includeMatches:v,y=r.ignoreLocation,p=void 0===y?A.ignoreLocation:y;if(t.length>32)throw new Error(L(32));for(var m,k=t.length,M=e.length,b=Math.max(0,Math.min(o,M)),x=u,S=b,w=d>1||g,_=w?Array(M):[];(m=e.indexOf(t,S))>-1;){var O=R(t,{currentLocation:m,expectedLocation:b,distance:a,ignoreLocation:p});if(x=Math.min(O,x),S=m+k,w)for(var j=0;j=K;J-=1){var T=J-1,U=n[e.charAt(T)];if(w&&(_[T]=+!!U),W[J]=(W[J+1]<<1|1)&U,P&&(W[J]|=(I[J+1]|I[J])<<1|1|I[J+1]),W[J]&$&&(C=R(t,{errors:P,currentLocation:T,expectedLocation:b,distance:a,ignoreLocation:p}))<=x){if(x=C,(S=T)<=b)break;K=Math.max(1,2*b-S)}}var V=R(t,{errors:P+1,currentLocation:b,expectedLocation:b,distance:a,ignoreLocation:p});if(V>x)break;I=W}var B={isMatch:S>=0,score:Math.max(.001,C)};if(w){var G=F(_,d);G.length?g&&(B.indices=G):B.isMatch=!1}return B}(e,n,i,{location:c+o,distance:a,threshold:s,findAllMatches:u,minMatchCharLength:h,includeMatches:r,ignoreLocation:f}),p=y.isMatch,m=y.score,k=y.indices;p&&(g=!0),v+=m,p&&k&&(d=[].concat(l(d),l(k)))}));var y={isMatch:g,score:g?v/this.chunks.length:1};return g&&r&&(y.indices=d),y}}]),e}(),D=function(){function e(n){t(this,e),this.pattern=n}return r(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return z(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return z(e,this.singleRegex)}}]),e}();function z(e,t){var n=e.match(t);return n?n[1]:null}var K=function(e){a(i,e);var n=f(i);function i(e){return t(this,i),n.call(this,e)}return r(i,[{key:"search",value:function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),i}(D),q=function(e){a(i,e);var n=f(i);function i(e){return t(this,i),n.call(this,e)}return r(i,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),i}(D),W=function(e){a(i,e);var n=f(i);function i(e){return t(this,i),n.call(this,e)}return r(i,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),i}(D),J=function(e){a(i,e);var n=f(i);function i(e){return t(this,i),n.call(this,e)}return r(i,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),i}(D),T=function(e){a(i,e);var n=f(i);function i(e){return t(this,i),n.call(this,e)}return r(i,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),i}(D),U=function(e){a(i,e);var n=f(i);function i(e){return t(this,i),n.call(this,e)}return r(i,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),i}(D),V=function(e){a(i,e);var n=f(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=o.location,a=void 0===c?A.location:c,s=o.threshold,u=void 0===s?A.threshold:s,h=o.distance,f=void 0===h?A.distance:h,l=o.includeMatches,d=void 0===l?A.includeMatches:l,v=o.findAllMatches,g=void 0===v?A.findAllMatches:v,y=o.minMatchCharLength,p=void 0===y?A.minMatchCharLength:y,m=o.isCaseSensitive,k=void 0===m?A.isCaseSensitive:m,M=o.ignoreLocation,b=void 0===M?A.ignoreLocation:M;return t(this,i),(r=n.call(this,e))._bitapSearch=new N(e,{location:a,threshold:u,distance:f,includeMatches:d,findAllMatches:g,minMatchCharLength:p,isCaseSensitive:k,ignoreLocation:b}),r}return r(i,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),i}(D),B=function(e){a(i,e);var n=f(i);function i(e){return t(this,i),n.call(this,e)}return r(i,[{key:"search",value:function(e){for(var t,n=0,r=[],i=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);var o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),i}(D),G=[K,B,W,J,U,T,q,V],H=G.length,Q=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var n=e.trim().split(Q).filter((function(e){return e&&!!e.trim()})),r=[],i=0,o=n.length;i1&&void 0!==arguments[1]?arguments[1]:{},i=r.isCaseSensitive,o=void 0===i?A.isCaseSensitive:i,c=r.includeMatches,a=void 0===c?A.includeMatches:c,s=r.minMatchCharLength,u=void 0===s?A.minMatchCharLength:s,h=r.ignoreLocation,f=void 0===h?A.ignoreLocation:h,l=r.findAllMatches,d=void 0===l?A.findAllMatches:l,v=r.location,g=void 0===v?A.location:v,y=r.threshold,p=void 0===y?A.threshold:y,m=r.distance,k=void 0===m?A.distance:m;t(this,e),this.query=null,this.options={isCaseSensitive:o,includeMatches:a,minMatchCharLength:u,findAllMatches:d,ignoreLocation:f,location:g,threshold:p,distance:k},this.pattern=o?n:n.toLowerCase(),this.query=X(this.pattern,this.options)}return r(e,[{key:"searchIn",value:function(e){var t=this.query;if(!t)return{isMatch:!1,score:1};var n=this.options,r=n.includeMatches;e=n.isCaseSensitive?e:e.toLowerCase();for(var i=0,o=[],c=0,a=0,s=t.length;a-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function le(e,t){t.score=e.score}function de(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?A.includeMatches:r,o=n.includeScore,c=void 0===o?A.includeScore:o,a=[];return i&&a.push(fe),c&&a.push(le),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return a.length&&a.forEach((function(t){t(e,r)})),r}))}var ve=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;t(this,e),this.options=c({},A,{},r),this.options.useExtendedSearch,this._keyStore=new w(this.options.keys),this.setCollection(n,i)}return r(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof E))throw new Error("Incorrect 'index' type");this._myIndex=t||$(this.options.keys,this._docs,{getFn:this.options.getFn})}},{key:"add",value:function(e){k(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?-1:n,i=this.options,o=i.includeMatches,c=i.includeScore,a=i.shouldSort,s=i.sortFn,u=i.ignoreFieldNorm,h=g(e)?g(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return he(h,{ignoreFieldNorm:u}),a&&h.sort(s),y(r)&&r>-1&&(h=h.slice(0,r)),de(h,this._docs,{includeMatches:o,includeScore:c})}},{key:"_searchStringList",value:function(e){var t=te(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,i=e.i,o=e.n;if(k(n)){var c=t.searchIn(n),a=c.isMatch,s=c.score,u=c.indices;a&&r.push({item:n,idx:i,matches:[{score:s,value:n,norm:o,indices:u}]})}})),r}},{key:"_searchLogical",value:function(e){var t=this,n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.auto,i=void 0===r||r,o=function e(n){var r=Object.keys(n),o=ae(n);if(!o&&r.length>1&&!ce(n))return e(ue(n));if(se(n)){var c=o?n[ie]:r[0],a=o?n[oe]:n[c];if(!g(a))throw new Error(x(c));var s={keyId:j(c),pattern:a};return i&&(s.searcher=te(a,t)),s}var u={children:[],operator:r[0]};return r.forEach((function(t){var r=n[t];v(r)&&r.forEach((function(t){u.children.push(e(t))}))})),u};return ce(e)||(e=ue(e)),o(e)}(e,this.options),r=this._myIndex.records,i={},o=[];return r.forEach((function(e){var r=e.$,c=e.i;if(k(r)){var a=function e(n,r,i){if(!n.children){var o=n.keyId,c=n.searcher,a=t._findMatches({key:t._keyStore.get(o),value:t._myIndex.getValueForItemAtKeyId(r,o),searcher:c});return a&&a.length?[{idx:i,item:r,matches:a}]:[]}switch(n.operator){case ne:for(var s=[],u=0,h=n.children.length;u1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?A.getFn:n,i=e.keys,o=e.records,c=new E({getFn:r});return c.setKeys(i),c.setIndexRecords(o),c},ve.config=A,function(){ee.push.apply(ee,arguments)}(Z),ve},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Fuse=t(); \ No newline at end of file diff --git a/javadoc/scripts/third-party/hljs-line-num-original.js b/javadoc/scripts/third-party/hljs-line-num-original.js new file mode 100644 index 00000000..9b8e18f7 --- /dev/null +++ b/javadoc/scripts/third-party/hljs-line-num-original.js @@ -0,0 +1,369 @@ +// jshint multistr:true + +(function (w, d) { + 'use strict'; + + var TABLE_NAME = 'hljs-ln', + LINE_NAME = 'hljs-ln-line', + CODE_BLOCK_NAME = 'hljs-ln-code', + NUMBERS_BLOCK_NAME = 'hljs-ln-numbers', + NUMBER_LINE_NAME = 'hljs-ln-n', + DATA_ATTR_NAME = 'data-line-number', + BREAK_LINE_REGEXP = /\r\n|\r|\n/g; + + if (w.hljs) { + w.hljs.initLineNumbersOnLoad = initLineNumbersOnLoad; + w.hljs.lineNumbersBlock = lineNumbersBlock; + w.hljs.lineNumbersValue = lineNumbersValue; + + addStyles(); + } else { + w.console.error('highlight.js not detected!'); + } + + function isHljsLnCodeDescendant(domElt) { + var curElt = domElt; + while (curElt) { + if (curElt.className && curElt.className.indexOf('hljs-ln-code') !== -1) { + return true; + } + curElt = curElt.parentNode; + } + return false; + } + + function getHljsLnTable(hljsLnDomElt) { + var curElt = hljsLnDomElt; + while (curElt.nodeName !== 'TABLE') { + curElt = curElt.parentNode; + } + return curElt; + } + + // Function to workaround a copy issue with Microsoft Edge. + // Due to hljs-ln wrapping the lines of code inside a element, + // itself wrapped inside a
 element, window.getSelection().toString()
+    // does not contain any line breaks. So we need to get them back using the
+    // rendered code in the DOM as reference.
+    function edgeGetSelectedCodeLines(selection) {
+        // current selected text without line breaks
+        var selectionText = selection.toString();
+
+        // get the 
' + + '' + + '' + + '', + [ + LINE_NAME, + NUMBERS_BLOCK_NAME, + NUMBER_LINE_NAME, + DATA_ATTR_NAME, + CODE_BLOCK_NAME, + i + options.startFrom, + lines[i].length > 0 ? lines[i] : ' ' + ]); + } + + return format('
element wrapping the first line of selected code + var tdAnchor = selection.anchorNode; + while (tdAnchor.nodeName !== 'TD') { + tdAnchor = tdAnchor.parentNode; + } + + // get the element wrapping the last line of selected code + var tdFocus = selection.focusNode; + while (tdFocus.nodeName !== 'TD') { + tdFocus = tdFocus.parentNode; + } + + // extract line numbers + var firstLineNumber = parseInt(tdAnchor.dataset.lineNumber); + var lastLineNumber = parseInt(tdFocus.dataset.lineNumber); + + // multi-lines copied case + if (firstLineNumber != lastLineNumber) { + + var firstLineText = tdAnchor.textContent; + var lastLineText = tdFocus.textContent; + + // if the selection was made backward, swap values + if (firstLineNumber > lastLineNumber) { + var tmp = firstLineNumber; + firstLineNumber = lastLineNumber; + lastLineNumber = tmp; + tmp = firstLineText; + firstLineText = lastLineText; + lastLineText = tmp; + } + + // discard not copied characters in first line + while (selectionText.indexOf(firstLineText) !== 0) { + firstLineText = firstLineText.slice(1); + } + + // discard not copied characters in last line + while (selectionText.lastIndexOf(lastLineText) === -1) { + lastLineText = lastLineText.slice(0, -1); + } + + // reconstruct and return the real copied text + var selectedText = firstLineText; + var hljsLnTable = getHljsLnTable(tdAnchor); + for (var i = firstLineNumber + 1 ; i < lastLineNumber ; ++i) { + var codeLineSel = format('.{0}[{1}="{2}"]', [CODE_BLOCK_NAME, DATA_ATTR_NAME, i]); + var codeLineElt = hljsLnTable.querySelector(codeLineSel); + selectedText += '\n' + codeLineElt.textContent; + } + selectedText += '\n' + lastLineText; + return selectedText; + // single copied line case + } else { + return selectionText; + } + } + + // ensure consistent code copy/paste behavior across all browsers + // (see https://github.com/wcoder/highlightjs-line-numbers.js/issues/51) + document.addEventListener('copy', function(e) { + // get current selection + var selection = window.getSelection(); + // override behavior when one wants to copy line of codes + if (isHljsLnCodeDescendant(selection.anchorNode)) { + var selectionText; + // workaround an issue with Microsoft Edge as copied line breaks + // are removed otherwise from the selection string + if (window.navigator.userAgent.indexOf('Edge') !== -1) { + selectionText = edgeGetSelectedCodeLines(selection); + } else { + // other browsers can directly use the selection string + selectionText = selection.toString(); + } + e.clipboardData.setData( + 'text/plain', + selectionText + .replace(/(^\t)/gm, '') + ); + e.preventDefault(); + } + }); + + function addStyles () { + var css = d.createElement('style'); + css.type = 'text/css'; + css.innerHTML = format( + '.{0}{border-collapse:collapse}' + + '.{0} td{padding:0}' + + '.{1}:before{content:attr({2})}', + [ + TABLE_NAME, + NUMBER_LINE_NAME, + DATA_ATTR_NAME + ]); + d.getElementsByTagName('head')[0].appendChild(css); + } + + function initLineNumbersOnLoad (options) { + if (d.readyState === 'interactive' || d.readyState === 'complete') { + documentReady(options); + } else { + w.addEventListener('DOMContentLoaded', function () { + documentReady(options); + }); + } + } + + function documentReady (options) { + try { + var blocks = d.querySelectorAll('code.hljs,code.nohighlight'); + + for (var i in blocks) { + if (blocks.hasOwnProperty(i)) { + if (!isPluginDisabledForBlock(blocks[i])) { + lineNumbersBlock(blocks[i], options); + } + } + } + } catch (e) { + w.console.error('LineNumbers error: ', e); + } + } + + function isPluginDisabledForBlock(element) { + return element.classList.contains('nohljsln'); + } + + function lineNumbersBlock (element, options) { + if (typeof element !== 'object') return; + + async(function () { + element.innerHTML = lineNumbersInternal(element, options); + }); + } + + function lineNumbersValue (value, options) { + if (typeof value !== 'string') return; + + var element = document.createElement('code') + element.innerHTML = value + + return lineNumbersInternal(element, options); + } + + function lineNumbersInternal (element, options) { + + var internalOptions = mapOptions(element, options); + + duplicateMultilineNodes(element); + + return addLineNumbersBlockFor(element.innerHTML, internalOptions); + } + + function addLineNumbersBlockFor (inputHtml, options) { + var lines = getLines(inputHtml); + + // if last line contains only carriage return remove it + if (lines[lines.length-1].trim() === '') { + lines.pop(); + } + + if (lines.length > 1 || options.singleLine) { + var html = ''; + + for (var i = 0, l = lines.length; i < l; i++) { + html += format( + '
' + + '' + + '{6}' + + '
{1}
', [ TABLE_NAME, html ]); + } + + return inputHtml; + } + + /** + * @param {HTMLElement} element Code block. + * @param {Object} options External API options. + * @returns {Object} Internal API options. + */ + function mapOptions (element, options) { + options = options || {}; + return { + singleLine: getSingleLineOption(options), + startFrom: getStartFromOption(element, options) + }; + } + + function getSingleLineOption (options) { + var defaultValue = false; + if (!!options.singleLine) { + return options.singleLine; + } + return defaultValue; + } + + function getStartFromOption (element, options) { + var defaultValue = 1; + var startFrom = defaultValue; + + if (isFinite(options.startFrom)) { + startFrom = options.startFrom; + } + + // can be overridden because local option is priority + var value = getAttribute(element, 'data-ln-start-from'); + if (value !== null) { + startFrom = toNumber(value, defaultValue); + } + + return startFrom; + } + + /** + * Recursive method for fix multi-line elements implementation in highlight.js + * Doing deep passage on child nodes. + * @param {HTMLElement} element + */ + function duplicateMultilineNodes (element) { + var nodes = element.childNodes; + for (var node in nodes) { + if (nodes.hasOwnProperty(node)) { + var child = nodes[node]; + if (getLinesCount(child.textContent) > 0) { + if (child.childNodes.length > 0) { + duplicateMultilineNodes(child); + } else { + duplicateMultilineNode(child.parentNode); + } + } + } + } + } + + /** + * Method for fix multi-line elements implementation in highlight.js + * @param {HTMLElement} element + */ + function duplicateMultilineNode (element) { + var className = element.className; + + if ( ! /hljs-/.test(className)) return; + + var lines = getLines(element.innerHTML); + + for (var i = 0, result = ''; i < lines.length; i++) { + var lineText = lines[i].length > 0 ? lines[i] : ' '; + result += format('{1}\n', [ className, lineText ]); + } + + element.innerHTML = result.trim(); + } + + function getLines (text) { + if (text.length === 0) return []; + return text.split(BREAK_LINE_REGEXP); + } + + function getLinesCount (text) { + return (text.trim().match(BREAK_LINE_REGEXP) || []).length; + } + + /// + /// HELPERS + /// + + function async (func) { + w.setTimeout(func, 0); + } + + /** + * {@link https://wcoder.github.io/notes/string-format-for-string-formating-in-javascript} + * @param {string} format + * @param {array} args + */ + function format (format, args) { + return format.replace(/\{(\d+)\}/g, function(m, n){ + return args[n] !== undefined ? args[n] : m; + }); + } + + /** + * @param {HTMLElement} element Code block. + * @param {String} attrName Attribute name. + * @returns {String} Attribute value or empty. + */ + function getAttribute (element, attrName) { + return element.hasAttribute(attrName) ? element.getAttribute(attrName) : null; + } + + /** + * @param {String} str Source string. + * @param {Number} fallback Fallback value. + * @returns Parsed number or fallback value. + */ + function toNumber (str, fallback) { + if (!str) return fallback; + var number = Number(str); + return isFinite(number) ? number : fallback; + } + +}(window, document)); diff --git a/javadoc/scripts/third-party/hljs-line-num.js b/javadoc/scripts/third-party/hljs-line-num.js new file mode 100644 index 00000000..facdf6be --- /dev/null +++ b/javadoc/scripts/third-party/hljs-line-num.js @@ -0,0 +1 @@ +!function(r,o){"use strict";var e,l="hljs-ln",s="hljs-ln-line",f="hljs-ln-code",c="hljs-ln-numbers",u="hljs-ln-n",h="data-line-number",n=/\r\n|\r|\n/g;function t(e){for(var n=e.toString(),t=e.anchorNode;"TD"!==t.nodeName;)t=t.parentNode;for(var r=e.focusNode;"TD"!==r.nodeName;)r=r.parentNode;var e=parseInt(t.dataset.lineNumber),o=parseInt(r.dataset.lineNumber);if(e==o)return n;var a,i=t.textContent,l=r.textContent;for(o{6}',[s,c,u,h,f,a+t.startFrom,0{1}',[l,o])}return e}function m(e){var n=e.className;if(/hljs-/.test(n)){for(var t=g(e.innerHTML),r=0,o="";r{1}\n',[n,0/g, '>') + .replace(/"/g, '"') + .replace(/'/g, '''); + } + + /** + * performs a shallow merge of multiple objects into one + * + * @template T + * @param {T} original + * @param {Record[]} objects + * @returns {T} a single new object + */ + function inherit$1(original, ...objects) { + /** @type Record */ + const result = Object.create(null); + + for (const key in original) { + result[key] = original[key]; + } + objects.forEach(function (obj) { + for (const key in obj) { + result[key] = obj[key]; + } + }); + return /** @type {T} */ (result); + } + + /** + * @typedef {object} Renderer + * @property {(text: string) => void} addText + * @property {(node: Node) => void} openNode + * @property {(node: Node) => void} closeNode + * @property {() => string} value + */ + + /** @typedef {{kind?: string, sublanguage?: boolean}} Node */ + /** @typedef {{walk: (r: Renderer) => void}} Tree */ + /** */ + + const SPAN_CLOSE = ''; + + /** + * Determines if a node needs to be wrapped in + * + * @param {Node} node */ + const emitsWrappingTags = (node) => { + return !!node.kind; + }; + + /** + * + * @param {string} name + * @param {{prefix:string}} options + */ + const expandScopeName = (name, { prefix }) => { + if (name.includes(".")) { + const pieces = name.split("."); + return [ + `${prefix}${pieces.shift()}`, + ...(pieces.map((x, i) => `${x}${"_".repeat(i + 1)}`)) + ].join(" "); + } + return `${prefix}${name}`; + }; + + /** @type {Renderer} */ + class HTMLRenderer { + /** + * Creates a new HTMLRenderer + * + * @param {Tree} parseTree - the parse tree (must support `walk` API) + * @param {{classPrefix: string}} options + */ + constructor(parseTree, options) { + this.buffer = ""; + this.classPrefix = options.classPrefix; + parseTree.walk(this); + } + + /** + * Adds texts to the output stream + * + * @param {string} text */ + addText(text) { + this.buffer += escapeHTML(text); + } + + /** + * Adds a node open to the output stream (if needed) + * + * @param {Node} node */ + openNode(node) { + if (!emitsWrappingTags(node)) return; + + let scope = node.kind; + if (node.sublanguage) { + scope = `language-${scope}`; + } else { + scope = expandScopeName(scope, { prefix: this.classPrefix }); + } + this.span(scope); + } + + /** + * Adds a node close to the output stream (if needed) + * + * @param {Node} node */ + closeNode(node) { + if (!emitsWrappingTags(node)) return; + + this.buffer += SPAN_CLOSE; + } + + /** + * returns the accumulated buffer + */ + value() { + return this.buffer; + } + + // helpers + + /** + * Builds a span element + * + * @param {string} className */ + span(className) { + this.buffer += ``; + } + } + + /** @typedef {{kind?: string, sublanguage?: boolean, children: Node[]} | string} Node */ + /** @typedef {{kind?: string, sublanguage?: boolean, children: Node[]} } DataNode */ + /** @typedef {import('highlight.js').Emitter} Emitter */ + /** */ + + class TokenTree { + constructor() { + /** @type DataNode */ + this.rootNode = { children: [] }; + this.stack = [this.rootNode]; + } + + get top() { + return this.stack[this.stack.length - 1]; + } + + get root() { return this.rootNode; } + + /** @param {Node} node */ + add(node) { + this.top.children.push(node); + } + + /** @param {string} kind */ + openNode(kind) { + /** @type Node */ + const node = { kind, children: [] }; + this.add(node); + this.stack.push(node); + } + + closeNode() { + if (this.stack.length > 1) { + return this.stack.pop(); + } + // eslint-disable-next-line no-undefined + return undefined; + } + + closeAllNodes() { + while (this.closeNode()); + } + + toJSON() { + return JSON.stringify(this.rootNode, null, 4); + } + + /** + * @typedef { import("./html_renderer").Renderer } Renderer + * @param {Renderer} builder + */ + walk(builder) { + // this does not + return this.constructor._walk(builder, this.rootNode); + // this works + // return TokenTree._walk(builder, this.rootNode); + } + + /** + * @param {Renderer} builder + * @param {Node} node + */ + static _walk(builder, node) { + if (typeof node === "string") { + builder.addText(node); + } else if (node.children) { + builder.openNode(node); + node.children.forEach((child) => this._walk(builder, child)); + builder.closeNode(node); + } + return builder; + } + + /** + * @param {Node} node + */ + static _collapse(node) { + if (typeof node === "string") return; + if (!node.children) return; + + if (node.children.every(el => typeof el === "string")) { + // node.text = node.children.join(""); + // delete node.children; + node.children = [node.children.join("")]; + } else { + node.children.forEach((child) => { + TokenTree._collapse(child); + }); + } + } + } + + /** + Currently this is all private API, but this is the minimal API necessary + that an Emitter must implement to fully support the parser. + + Minimal interface: + + - addKeyword(text, kind) + - addText(text) + - addSublanguage(emitter, subLanguageName) + - finalize() + - openNode(kind) + - closeNode() + - closeAllNodes() + - toHTML() + + */ + + /** + * @implements {Emitter} + */ + class TokenTreeEmitter extends TokenTree { + /** + * @param {*} options + */ + constructor(options) { + super(); + this.options = options; + } + + /** + * @param {string} text + * @param {string} kind + */ + addKeyword(text, kind) { + if (text === "") { return; } + + this.openNode(kind); + this.addText(text); + this.closeNode(); + } + + /** + * @param {string} text + */ + addText(text) { + if (text === "") { return; } + + this.add(text); + } + + /** + * @param {Emitter & {root: DataNode}} emitter + * @param {string} name + */ + addSublanguage(emitter, name) { + /** @type DataNode */ + const node = emitter.root; + node.kind = name; + node.sublanguage = true; + this.add(node); + } + + toHTML() { + const renderer = new HTMLRenderer(this, this.options); + return renderer.value(); + } + + finalize() { + return true; + } + } + + /** + * @param {string} value + * @returns {RegExp} + * */ + + /** + * @param {RegExp | string } re + * @returns {string} + */ + function source(re) { + if (!re) return null; + if (typeof re === "string") return re; + + return re.source; + } + + /** + * @param {RegExp | string } re + * @returns {string} + */ + function lookahead(re) { + return concat('(?=', re, ')'); + } + + /** + * @param {RegExp | string } re + * @returns {string} + */ + function optional(re) { + return concat('(?:', re, ')?'); + } + + /** + * @param {...(RegExp | string) } args + * @returns {string} + */ + function concat(...args) { + const joined = args.map((x) => source(x)).join(""); + return joined; + } + + function stripOptionsFromArgs(args) { + const opts = args[args.length - 1]; + + if (typeof opts === 'object' && opts.constructor === Object) { + args.splice(args.length - 1, 1); + return opts; + } else { + return {}; + } + } + + /** + * Any of the passed expresssions may match + * + * Creates a huge this | this | that | that match + * @param {(RegExp | string)[] } args + * @returns {string} + */ + function either(...args) { + const opts = stripOptionsFromArgs(args); + const joined = '(' + + (opts.capture ? "" : "?:") + + args.map((x) => source(x)).join("|") + ")"; + return joined; + } + + /** + * @param {RegExp} re + * @returns {number} + */ + function countMatchGroups(re) { + return (new RegExp(re.toString() + '|')).exec('').length - 1; + } + + /** + * Does lexeme start with a regular expression match at the beginning + * @param {RegExp} re + * @param {string} lexeme + */ + function startsWith(re, lexeme) { + const match = re && re.exec(lexeme); + return match && match.index === 0; + } + + // BACKREF_RE matches an open parenthesis or backreference. To avoid + // an incorrect parse, it additionally matches the following: + // - [...] elements, where the meaning of parentheses and escapes change + // - other escape sequences, so we do not misparse escape sequences as + // interesting elements + // - non-matching or lookahead parentheses, which do not capture. These + // follow the '(' with a '?'. + const BACKREF_RE = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./; + + // **INTERNAL** Not intended for outside usage + // join logically computes regexps.join(separator), but fixes the + // backreferences so they continue to match. + // it also places each individual regular expression into it's own + // match group, keeping track of the sequencing of those match groups + // is currently an exercise for the caller. :-) + /** + * @param {(string | RegExp)[]} regexps + * @param {{joinWith: string}} opts + * @returns {string} + */ + function _rewriteBackreferences(regexps, { joinWith }) { + let numCaptures = 0; + + return regexps.map((regex) => { + numCaptures += 1; + const offset = numCaptures; + let re = source(regex); + let out = ''; + + while (re.length > 0) { + const match = BACKREF_RE.exec(re); + if (!match) { + out += re; + break; + } + out += re.substring(0, match.index); + re = re.substring(match.index + match[0].length); + if (match[0][0] === '\\' && match[1]) { + // Adjust the backreference. + out += '\\' + String(Number(match[1]) + offset); + } else { + out += match[0]; + if (match[0] === '(') { + numCaptures++; + } + } + } + return out; + }).map(re => `(${re})`).join(joinWith); + } + + /** @typedef {import('highlight.js').Mode} Mode */ + /** @typedef {import('highlight.js').ModeCallback} ModeCallback */ + + // Common regexps + const MATCH_NOTHING_RE = /\b\B/; + const IDENT_RE$1 = '[a-zA-Z]\\w*'; + const UNDERSCORE_IDENT_RE = '[a-zA-Z_]\\w*'; + const NUMBER_RE = '\\b\\d+(\\.\\d+)?'; + const C_NUMBER_RE = '(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)'; // 0x..., 0..., decimal, float + const BINARY_NUMBER_RE = '\\b(0b[01]+)'; // 0b... + const RE_STARTERS_RE = '!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~'; + + /** + * @param { Partial & {binary?: string | RegExp} } opts + */ + const SHEBANG = (opts = {}) => { + const beginShebang = /^#![ ]*\//; + if (opts.binary) { + opts.begin = concat( + beginShebang, + /.*\b/, + opts.binary, + /\b.*/); + } + return inherit$1({ + scope: 'meta', + begin: beginShebang, + end: /$/, + relevance: 0, + /** @type {ModeCallback} */ + "on:begin": (m, resp) => { + if (m.index !== 0) resp.ignoreMatch(); + } + }, opts); + }; + + // Common modes + const BACKSLASH_ESCAPE = { + begin: '\\\\[\\s\\S]', relevance: 0 + }; + const APOS_STRING_MODE = { + scope: 'string', + begin: '\'', + end: '\'', + illegal: '\\n', + contains: [BACKSLASH_ESCAPE] + }; + const QUOTE_STRING_MODE = { + scope: 'string', + begin: '"', + end: '"', + illegal: '\\n', + contains: [BACKSLASH_ESCAPE] + }; + const PHRASAL_WORDS_MODE = { + begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ + }; + /** + * Creates a comment mode + * + * @param {string | RegExp} begin + * @param {string | RegExp} end + * @param {Mode | {}} [modeOptions] + * @returns {Partial} + */ + const COMMENT = function (begin, end, modeOptions = {}) { + const mode = inherit$1( + { + scope: 'comment', + begin, + end, + contains: [] + }, + modeOptions + ); + mode.contains.push({ + scope: 'doctag', + // hack to avoid the space from being included. the space is necessary to + // match here to prevent the plain text rule below from gobbling up doctags + begin: '[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)', + end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/, + excludeBegin: true, + relevance: 0 + }); + const ENGLISH_WORD = either( + // list of common 1 and 2 letter words in English + "I", + "a", + "is", + "so", + "us", + "to", + "at", + "if", + "in", + "it", + "on", + // note: this is not an exhaustive list of contractions, just popular ones + /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, // contractions - can't we'd they're let's, etc + /[A-Za-z]+[-][a-z]+/, // `no-way`, etc. + /[A-Za-z][a-z]{2,}/ // allow capitalized words at beginning of sentences + ); + // looking like plain text, more likely to be a comment + mode.contains.push( + { + // TODO: how to include ", (, ) without breaking grammars that use these for + // comment delimiters? + // begin: /[ ]+([()"]?([A-Za-z'-]{3,}|is|a|I|so|us|[tT][oO]|at|if|in|it|on)[.]?[()":]?([.][ ]|[ ]|\))){3}/ + // --- + + // this tries to find sequences of 3 english words in a row (without any + // "programming" type syntax) this gives us a strong signal that we've + // TRULY found a comment - vs perhaps scanning with the wrong language. + // It's possible to find something that LOOKS like the start of the + // comment - but then if there is no readable text - good chance it is a + // false match and not a comment. + // + // for a visual example please see: + // https://github.com/highlightjs/highlight.js/issues/2827 + + begin: concat( + /[ ]+/, // necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */ + '(', + ENGLISH_WORD, + /[.]?[:]?([.][ ]|[ ])/, + '){3}') // look for 3 words in a row + } + ); + return mode; + }; + const C_LINE_COMMENT_MODE = COMMENT('//', '$'); + const C_BLOCK_COMMENT_MODE = COMMENT('/\\*', '\\*/'); + const HASH_COMMENT_MODE = COMMENT('#', '$'); + const NUMBER_MODE = { + scope: 'number', + begin: NUMBER_RE, + relevance: 0 + }; + const C_NUMBER_MODE = { + scope: 'number', + begin: C_NUMBER_RE, + relevance: 0 + }; + const BINARY_NUMBER_MODE = { + scope: 'number', + begin: BINARY_NUMBER_RE, + relevance: 0 + }; + const REGEXP_MODE = { + // this outer rule makes sure we actually have a WHOLE regex and not simply + // an expression such as: + // + // 3 / something + // + // (which will then blow up when regex's `illegal` sees the newline) + begin: /(?=\/[^/\n]*\/)/, + contains: [{ + scope: 'regexp', + begin: /\//, + end: /\/[gimuy]*/, + illegal: /\n/, + contains: [ + BACKSLASH_ESCAPE, + { + begin: /\[/, + end: /\]/, + relevance: 0, + contains: [BACKSLASH_ESCAPE] + } + ] + }] + }; + const TITLE_MODE = { + scope: 'title', + begin: IDENT_RE$1, + relevance: 0 + }; + const UNDERSCORE_TITLE_MODE = { + scope: 'title', + begin: UNDERSCORE_IDENT_RE, + relevance: 0 + }; + const METHOD_GUARD = { + // excludes method names from keyword processing + begin: '\\.\\s*' + UNDERSCORE_IDENT_RE, + relevance: 0 + }; + + /** + * Adds end same as begin mechanics to a mode + * + * Your mode must include at least a single () match group as that first match + * group is what is used for comparison + * @param {Partial} mode + */ + const END_SAME_AS_BEGIN = function (mode) { + return Object.assign(mode, + { + /** @type {ModeCallback} */ + 'on:begin': (m, resp) => { resp.data._beginMatch = m[1]; }, + /** @type {ModeCallback} */ + 'on:end': (m, resp) => { if (resp.data._beginMatch !== m[1]) resp.ignoreMatch(); } + }); + }; + + var MODES$1 = /*#__PURE__*/Object.freeze({ + __proto__: null, + MATCH_NOTHING_RE: MATCH_NOTHING_RE, + IDENT_RE: IDENT_RE$1, + UNDERSCORE_IDENT_RE: UNDERSCORE_IDENT_RE, + NUMBER_RE: NUMBER_RE, + C_NUMBER_RE: C_NUMBER_RE, + BINARY_NUMBER_RE: BINARY_NUMBER_RE, + RE_STARTERS_RE: RE_STARTERS_RE, + SHEBANG: SHEBANG, + BACKSLASH_ESCAPE: BACKSLASH_ESCAPE, + APOS_STRING_MODE: APOS_STRING_MODE, + QUOTE_STRING_MODE: QUOTE_STRING_MODE, + PHRASAL_WORDS_MODE: PHRASAL_WORDS_MODE, + COMMENT: COMMENT, + C_LINE_COMMENT_MODE: C_LINE_COMMENT_MODE, + C_BLOCK_COMMENT_MODE: C_BLOCK_COMMENT_MODE, + HASH_COMMENT_MODE: HASH_COMMENT_MODE, + NUMBER_MODE: NUMBER_MODE, + C_NUMBER_MODE: C_NUMBER_MODE, + BINARY_NUMBER_MODE: BINARY_NUMBER_MODE, + REGEXP_MODE: REGEXP_MODE, + TITLE_MODE: TITLE_MODE, + UNDERSCORE_TITLE_MODE: UNDERSCORE_TITLE_MODE, + METHOD_GUARD: METHOD_GUARD, + END_SAME_AS_BEGIN: END_SAME_AS_BEGIN + }); + + /** + @typedef {import('highlight.js').CallbackResponse} CallbackResponse + @typedef {import('highlight.js').CompilerExt} CompilerExt + */ + + // Grammar extensions / plugins + // See: https://github.com/highlightjs/highlight.js/issues/2833 + + // Grammar extensions allow "syntactic sugar" to be added to the grammar modes + // without requiring any underlying changes to the compiler internals. + + // `compileMatch` being the perfect small example of now allowing a grammar + // author to write `match` when they desire to match a single expression rather + // than being forced to use `begin`. The extension then just moves `match` into + // `begin` when it runs. Ie, no features have been added, but we've just made + // the experience of writing (and reading grammars) a little bit nicer. + + // ------ + + // TODO: We need negative look-behind support to do this properly + /** + * Skip a match if it has a preceding dot + * + * This is used for `beginKeywords` to prevent matching expressions such as + * `bob.keyword.do()`. The mode compiler automatically wires this up as a + * special _internal_ 'on:begin' callback for modes with `beginKeywords` + * @param {RegExpMatchArray} match + * @param {CallbackResponse} response + */ + function skipIfHasPrecedingDot(match, response) { + const before = match.input[match.index - 1]; + if (before === ".") { + response.ignoreMatch(); + } + } + + /** + * + * @type {CompilerExt} + */ + function scopeClassName(mode, _parent) { + // eslint-disable-next-line no-undefined + if (mode.className !== undefined) { + mode.scope = mode.className; + delete mode.className; + } + } + + /** + * `beginKeywords` syntactic sugar + * @type {CompilerExt} + */ + function beginKeywords(mode, parent) { + if (!parent) return; + if (!mode.beginKeywords) return; + + // for languages with keywords that include non-word characters checking for + // a word boundary is not sufficient, so instead we check for a word boundary + // or whitespace - this does no harm in any case since our keyword engine + // doesn't allow spaces in keywords anyways and we still check for the boundary + // first + mode.begin = '\\b(' + mode.beginKeywords.split(' ').join('|') + ')(?!\\.)(?=\\b|\\s)'; + mode.__beforeBegin = skipIfHasPrecedingDot; + mode.keywords = mode.keywords || mode.beginKeywords; + delete mode.beginKeywords; + + // prevents double relevance, the keywords themselves provide + // relevance, the mode doesn't need to double it + // eslint-disable-next-line no-undefined + if (mode.relevance === undefined) mode.relevance = 0; + } + + /** + * Allow `illegal` to contain an array of illegal values + * @type {CompilerExt} + */ + function compileIllegal(mode, _parent) { + if (!Array.isArray(mode.illegal)) return; + + mode.illegal = either(...mode.illegal); + } + + /** + * `match` to match a single expression for readability + * @type {CompilerExt} + */ + function compileMatch(mode, _parent) { + if (!mode.match) return; + if (mode.begin || mode.end) throw new Error("begin & end are not supported with match"); + + mode.begin = mode.match; + delete mode.match; + } + + /** + * provides the default 1 relevance to all modes + * @type {CompilerExt} + */ + function compileRelevance(mode, _parent) { + // eslint-disable-next-line no-undefined + if (mode.relevance === undefined) mode.relevance = 1; + } + + // allow beforeMatch to act as a "qualifier" for the match + // the full match begin must be [beforeMatch][begin] + const beforeMatchExt = (mode, parent) => { + if (!mode.beforeMatch) return; + // starts conflicts with endsParent which we need to make sure the child + // rule is not matched multiple times + if (mode.starts) throw new Error("beforeMatch cannot be used with starts"); + + const originalMode = Object.assign({}, mode); + Object.keys(mode).forEach((key) => { delete mode[key]; }); + + mode.keywords = originalMode.keywords; + mode.begin = concat(originalMode.beforeMatch, lookahead(originalMode.begin)); + mode.starts = { + relevance: 0, + contains: [ + Object.assign(originalMode, { endsParent: true }) + ] + }; + mode.relevance = 0; + + delete originalMode.beforeMatch; + }; + + // keywords that should have no default relevance value + const COMMON_KEYWORDS = [ + 'of', + 'and', + 'for', + 'in', + 'not', + 'or', + 'if', + 'then', + 'parent', // common variable name + 'list', // common variable name + 'value' // common variable name + ]; + + const DEFAULT_KEYWORD_SCOPE = "keyword"; + + /** + * Given raw keywords from a language definition, compile them. + * + * @param {string | Record | Array} rawKeywords + * @param {boolean} caseInsensitive + */ + function compileKeywords(rawKeywords, caseInsensitive, scopeName = DEFAULT_KEYWORD_SCOPE) { + /** @type KeywordDict */ + const compiledKeywords = Object.create(null); + + // input can be a string of keywords, an array of keywords, or a object with + // named keys representing scopeName (which can then point to a string or array) + if (typeof rawKeywords === 'string') { + compileList(scopeName, rawKeywords.split(" ")); + } else if (Array.isArray(rawKeywords)) { + compileList(scopeName, rawKeywords); + } else { + Object.keys(rawKeywords).forEach(function (scopeName) { + // collapse all our objects back into the parent object + Object.assign( + compiledKeywords, + compileKeywords(rawKeywords[scopeName], caseInsensitive, scopeName) + ); + }); + } + return compiledKeywords; + + // --- + + /** + * Compiles an individual list of keywords + * + * Ex: "for if when while|5" + * + * @param {string} scopeName + * @param {Array} keywordList + */ + function compileList(scopeName, keywordList) { + if (caseInsensitive) { + keywordList = keywordList.map(x => x.toLowerCase()); + } + keywordList.forEach(function (keyword) { + const pair = keyword.split('|'); + compiledKeywords[pair[0]] = [scopeName, scoreForKeyword(pair[0], pair[1])]; + }); + } + } + + /** + * Returns the proper score for a given keyword + * + * Also takes into account comment keywords, which will be scored 0 UNLESS + * another score has been manually assigned. + * @param {string} keyword + * @param {string} [providedScore] + */ + function scoreForKeyword(keyword, providedScore) { + // manual scores always win over common keywords + // so you can force a score of 1 if you really insist + if (providedScore) { + return Number(providedScore); + } + + return commonKeyword(keyword) ? 0 : 1; + } + + /** + * Determines if a given keyword is common or not + * + * @param {string} keyword */ + function commonKeyword(keyword) { + return COMMON_KEYWORDS.includes(keyword.toLowerCase()); + } + + /* + + For the reasoning behind this please see: + https://github.com/highlightjs/highlight.js/issues/2880#issuecomment-747275419 + + */ + + /** + * @type {Record} + */ + const seenDeprecations = {}; + + /** + * @param {string} message + */ + const error = (message) => { + console.error(message); + }; + + /** + * @param {string} message + * @param {any} args + */ + const warn = (message, ...args) => { + console.log(`WARN: ${message}`, ...args); + }; + + /** + * @param {string} version + * @param {string} message + */ + const deprecated = (version, message) => { + if (seenDeprecations[`${version}/${message}`]) return; + + console.log(`Deprecated as of ${version}. ${message}`); + seenDeprecations[`${version}/${message}`] = true; + }; + + /* eslint-disable no-throw-literal */ + + /** + @typedef {import('highlight.js').CompiledMode} CompiledMode + */ + + const MultiClassError = new Error(); + + /** + * Renumbers labeled scope names to account for additional inner match + * groups that otherwise would break everything. + * + * Lets say we 3 match scopes: + * + * { 1 => ..., 2 => ..., 3 => ... } + * + * So what we need is a clean match like this: + * + * (a)(b)(c) => [ "a", "b", "c" ] + * + * But this falls apart with inner match groups: + * + * (a)(((b)))(c) => ["a", "b", "b", "b", "c" ] + * + * Our scopes are now "out of alignment" and we're repeating `b` 3 times. + * What needs to happen is the numbers are remapped: + * + * { 1 => ..., 2 => ..., 5 => ... } + * + * We also need to know that the ONLY groups that should be output + * are 1, 2, and 5. This function handles this behavior. + * + * @param {CompiledMode} mode + * @param {Array} regexes + * @param {{key: "beginScope"|"endScope"}} opts + */ + function remapScopeNames(mode, regexes, { key }) { + let offset = 0; + const scopeNames = mode[key]; + /** @type Record */ + const emit = {}; + /** @type Record */ + const positions = {}; + + for (let i = 1; i <= regexes.length; i++) { + positions[i + offset] = scopeNames[i]; + emit[i + offset] = true; + offset += countMatchGroups(regexes[i - 1]); + } + // we use _emit to keep track of which match groups are "top-level" to avoid double + // output from inside match groups + mode[key] = positions; + mode[key]._emit = emit; + mode[key]._multi = true; + } + + /** + * @param {CompiledMode} mode + */ + function beginMultiClass(mode) { + if (!Array.isArray(mode.begin)) return; + + if (mode.skip || mode.excludeBegin || mode.returnBegin) { + error("skip, excludeBegin, returnBegin not compatible with beginScope: {}"); + throw MultiClassError; + } + + if (typeof mode.beginScope !== "object" || mode.beginScope === null) { + error("beginScope must be object"); + throw MultiClassError; + } + + remapScopeNames(mode, mode.begin, { key: "beginScope" }); + mode.begin = _rewriteBackreferences(mode.begin, { joinWith: "" }); + } + + /** + * @param {CompiledMode} mode + */ + function endMultiClass(mode) { + if (!Array.isArray(mode.end)) return; + + if (mode.skip || mode.excludeEnd || mode.returnEnd) { + error("skip, excludeEnd, returnEnd not compatible with endScope: {}"); + throw MultiClassError; + } + + if (typeof mode.endScope !== "object" || mode.endScope === null) { + error("endScope must be object"); + throw MultiClassError; + } + + remapScopeNames(mode, mode.end, { key: "endScope" }); + mode.end = _rewriteBackreferences(mode.end, { joinWith: "" }); + } + + /** + * this exists only to allow `scope: {}` to be used beside `match:` + * Otherwise `beginScope` would necessary and that would look weird + + { + match: [ /def/, /\w+/ ] + scope: { 1: "keyword" , 2: "title" } + } + + * @param {CompiledMode} mode + */ + function scopeSugar(mode) { + if (mode.scope && typeof mode.scope === "object" && mode.scope !== null) { + mode.beginScope = mode.scope; + delete mode.scope; + } + } + + /** + * @param {CompiledMode} mode + */ + function MultiClass(mode) { + scopeSugar(mode); + + if (typeof mode.beginScope === "string") { + mode.beginScope = { _wrap: mode.beginScope }; + } + if (typeof mode.endScope === "string") { + mode.endScope = { _wrap: mode.endScope }; + } + + beginMultiClass(mode); + endMultiClass(mode); + } + + /** + @typedef {import('highlight.js').Mode} Mode + @typedef {import('highlight.js').CompiledMode} CompiledMode + @typedef {import('highlight.js').Language} Language + @typedef {import('highlight.js').HLJSPlugin} HLJSPlugin + @typedef {import('highlight.js').CompiledLanguage} CompiledLanguage + */ + + // compilation + + /** + * Compiles a language definition result + * + * Given the raw result of a language definition (Language), compiles this so + * that it is ready for highlighting code. + * @param {Language} language + * @returns {CompiledLanguage} + */ + function compileLanguage(language) { + /** + * Builds a regex with the case sensitivity of the current language + * + * @param {RegExp | string} value + * @param {boolean} [global] + */ + function langRe(value, global) { + return new RegExp( + source(value), + 'm' + (language.case_insensitive ? 'i' : '') + (global ? 'g' : '') + ); + } + + /** + Stores multiple regular expressions and allows you to quickly search for + them all in a string simultaneously - returning the first match. It does + this by creating a huge (a|b|c) regex - each individual item wrapped with () + and joined by `|` - using match groups to track position. When a match is + found checking which position in the array has content allows us to figure + out which of the original regexes / match groups triggered the match. + + The match object itself (the result of `Regex.exec`) is returned but also + enhanced by merging in any meta-data that was registered with the regex. + This is how we keep track of which mode matched, and what type of rule + (`illegal`, `begin`, end, etc). + */ + class MultiRegex { + constructor() { + this.matchIndexes = {}; + // @ts-ignore + this.regexes = []; + this.matchAt = 1; + this.position = 0; + } + + // @ts-ignore + addRule(re, opts) { + opts.position = this.position++; + // @ts-ignore + this.matchIndexes[this.matchAt] = opts; + this.regexes.push([opts, re]); + this.matchAt += countMatchGroups(re) + 1; + } + + compile() { + if (this.regexes.length === 0) { + // avoids the need to check length every time exec is called + // @ts-ignore + this.exec = () => null; + } + const terminators = this.regexes.map(el => el[1]); + this.matcherRe = langRe(_rewriteBackreferences(terminators, { joinWith: '|' }), true); + this.lastIndex = 0; + } + + /** @param {string} s */ + exec(s) { + this.matcherRe.lastIndex = this.lastIndex; + const match = this.matcherRe.exec(s); + if (!match) { return null; } + + // eslint-disable-next-line no-undefined + const i = match.findIndex((el, i) => i > 0 && el !== undefined); + // @ts-ignore + const matchData = this.matchIndexes[i]; + // trim off any earlier non-relevant match groups (ie, the other regex + // match groups that make up the multi-matcher) + match.splice(0, i); + + return Object.assign(match, matchData); + } + } + + /* + Created to solve the key deficiently with MultiRegex - there is no way to + test for multiple matches at a single location. Why would we need to do + that? In the future a more dynamic engine will allow certain matches to be + ignored. An example: if we matched say the 3rd regex in a large group but + decided to ignore it - we'd need to started testing again at the 4th + regex... but MultiRegex itself gives us no real way to do that. + + So what this class creates MultiRegexs on the fly for whatever search + position they are needed. + + NOTE: These additional MultiRegex objects are created dynamically. For most + grammars most of the time we will never actually need anything more than the + first MultiRegex - so this shouldn't have too much overhead. + + Say this is our search group, and we match regex3, but wish to ignore it. + + regex1 | regex2 | regex3 | regex4 | regex5 ' ie, startAt = 0 + + What we need is a new MultiRegex that only includes the remaining + possibilities: + + regex4 | regex5 ' ie, startAt = 3 + + This class wraps all that complexity up in a simple API... `startAt` decides + where in the array of expressions to start doing the matching. It + auto-increments, so if a match is found at position 2, then startAt will be + set to 3. If the end is reached startAt will return to 0. + + MOST of the time the parser will be setting startAt manually to 0. + */ + class ResumableMultiRegex { + constructor() { + // @ts-ignore + this.rules = []; + // @ts-ignore + this.multiRegexes = []; + this.count = 0; + + this.lastIndex = 0; + this.regexIndex = 0; + } + + // @ts-ignore + getMatcher(index) { + if (this.multiRegexes[index]) return this.multiRegexes[index]; + + const matcher = new MultiRegex(); + this.rules.slice(index).forEach(([re, opts]) => matcher.addRule(re, opts)); + matcher.compile(); + this.multiRegexes[index] = matcher; + return matcher; + } + + resumingScanAtSamePosition() { + return this.regexIndex !== 0; + } + + considerAll() { + this.regexIndex = 0; + } + + // @ts-ignore + addRule(re, opts) { + this.rules.push([re, opts]); + if (opts.type === "begin") this.count++; + } + + /** @param {string} s */ + exec(s) { + const m = this.getMatcher(this.regexIndex); + m.lastIndex = this.lastIndex; + let result = m.exec(s); + + // The following is because we have no easy way to say "resume scanning at the + // existing position but also skip the current rule ONLY". What happens is + // all prior rules are also skipped which can result in matching the wrong + // thing. Example of matching "booger": + + // our matcher is [string, "booger", number] + // + // ....booger.... + + // if "booger" is ignored then we'd really need a regex to scan from the + // SAME position for only: [string, number] but ignoring "booger" (if it + // was the first match), a simple resume would scan ahead who knows how + // far looking only for "number", ignoring potential string matches (or + // future "booger" matches that might be valid.) + + // So what we do: We execute two matchers, one resuming at the same + // position, but the second full matcher starting at the position after: + + // /--- resume first regex match here (for [number]) + // |/---- full match here for [string, "booger", number] + // vv + // ....booger.... + + // Which ever results in a match first is then used. So this 3-4 step + // process essentially allows us to say "match at this position, excluding + // a prior rule that was ignored". + // + // 1. Match "booger" first, ignore. Also proves that [string] does non match. + // 2. Resume matching for [number] + // 3. Match at index + 1 for [string, "booger", number] + // 4. If #2 and #3 result in matches, which came first? + if (this.resumingScanAtSamePosition()) { + if (result && result.index === this.lastIndex); else { // use the second matcher result + const m2 = this.getMatcher(0); + m2.lastIndex = this.lastIndex + 1; + result = m2.exec(s); + } + } + + if (result) { + this.regexIndex += result.position + 1; + if (this.regexIndex === this.count) { + // wrap-around to considering all matches again + this.considerAll(); + } + } + + return result; + } + } + + /** + * Given a mode, builds a huge ResumableMultiRegex that can be used to walk + * the content and find matches. + * + * @param {CompiledMode} mode + * @returns {ResumableMultiRegex} + */ + function buildModeRegex(mode) { + const mm = new ResumableMultiRegex(); + + mode.contains.forEach(term => mm.addRule(term.begin, { rule: term, type: "begin" })); + + if (mode.terminatorEnd) { + mm.addRule(mode.terminatorEnd, { type: "end" }); + } + if (mode.illegal) { + mm.addRule(mode.illegal, { type: "illegal" }); + } + + return mm; + } + + /** skip vs abort vs ignore + * + * @skip - The mode is still entered and exited normally (and contains rules apply), + * but all content is held and added to the parent buffer rather than being + * output when the mode ends. Mostly used with `sublanguage` to build up + * a single large buffer than can be parsed by sublanguage. + * + * - The mode begin ands ends normally. + * - Content matched is added to the parent mode buffer. + * - The parser cursor is moved forward normally. + * + * @abort - A hack placeholder until we have ignore. Aborts the mode (as if it + * never matched) but DOES NOT continue to match subsequent `contains` + * modes. Abort is bad/suboptimal because it can result in modes + * farther down not getting applied because an earlier rule eats the + * content but then aborts. + * + * - The mode does not begin. + * - Content matched by `begin` is added to the mode buffer. + * - The parser cursor is moved forward accordingly. + * + * @ignore - Ignores the mode (as if it never matched) and continues to match any + * subsequent `contains` modes. Ignore isn't technically possible with + * the current parser implementation. + * + * - The mode does not begin. + * - Content matched by `begin` is ignored. + * - The parser cursor is not moved forward. + */ + + /** + * Compiles an individual mode + * + * This can raise an error if the mode contains certain detectable known logic + * issues. + * @param {Mode} mode + * @param {CompiledMode | null} [parent] + * @returns {CompiledMode | never} + */ + function compileMode(mode, parent) { + const cmode = /** @type CompiledMode */ (mode); + if (mode.isCompiled) return cmode; + + [ + scopeClassName, + // do this early so compiler extensions generally don't have to worry about + // the distinction between match/begin + compileMatch, + MultiClass, + beforeMatchExt + ].forEach(ext => ext(mode, parent)); + + language.compilerExtensions.forEach(ext => ext(mode, parent)); + + // __beforeBegin is considered private API, internal use only + mode.__beforeBegin = null; + + [ + beginKeywords, + // do this later so compiler extensions that come earlier have access to the + // raw array if they wanted to perhaps manipulate it, etc. + compileIllegal, + // default to 1 relevance if not specified + compileRelevance + ].forEach(ext => ext(mode, parent)); + + mode.isCompiled = true; + + let keywordPattern = null; + if (typeof mode.keywords === "object" && mode.keywords.$pattern) { + // we need a copy because keywords might be compiled multiple times + // so we can't go deleting $pattern from the original on the first + // pass + mode.keywords = Object.assign({}, mode.keywords); + keywordPattern = mode.keywords.$pattern; + delete mode.keywords.$pattern; + } + keywordPattern = keywordPattern || /\w+/; + + if (mode.keywords) { + mode.keywords = compileKeywords(mode.keywords, language.case_insensitive); + } + + cmode.keywordPatternRe = langRe(keywordPattern, true); + + if (parent) { + if (!mode.begin) mode.begin = /\B|\b/; + cmode.beginRe = langRe(mode.begin); + if (!mode.end && !mode.endsWithParent) mode.end = /\B|\b/; + if (mode.end) cmode.endRe = langRe(mode.end); + cmode.terminatorEnd = source(mode.end) || ''; + if (mode.endsWithParent && parent.terminatorEnd) { + cmode.terminatorEnd += (mode.end ? '|' : '') + parent.terminatorEnd; + } + } + if (mode.illegal) cmode.illegalRe = langRe(/** @type {RegExp | string} */(mode.illegal)); + if (!mode.contains) mode.contains = []; + + mode.contains = [].concat(...mode.contains.map(function (c) { + return expandOrCloneMode(c === 'self' ? mode : c); + })); + mode.contains.forEach(function (c) { compileMode(/** @type Mode */(c), cmode); }); + + if (mode.starts) { + compileMode(mode.starts, parent); + } + + cmode.matcher = buildModeRegex(cmode); + return cmode; + } + + if (!language.compilerExtensions) language.compilerExtensions = []; + + // self is not valid at the top-level + if (language.contains && language.contains.includes('self')) { + throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation."); + } + + // we need a null object, which inherit will guarantee + language.classNameAliases = inherit$1(language.classNameAliases || {}); + + return compileMode(/** @type Mode */(language)); + } + + /** + * Determines if a mode has a dependency on it's parent or not + * + * If a mode does have a parent dependency then often we need to clone it if + * it's used in multiple places so that each copy points to the correct parent, + * where-as modes without a parent can often safely be re-used at the bottom of + * a mode chain. + * + * @param {Mode | null} mode + * @returns {boolean} - is there a dependency on the parent? + * */ + function dependencyOnParent(mode) { + if (!mode) return false; + + return mode.endsWithParent || dependencyOnParent(mode.starts); + } + + /** + * Expands a mode or clones it if necessary + * + * This is necessary for modes with parental dependenceis (see notes on + * `dependencyOnParent`) and for nodes that have `variants` - which must then be + * exploded into their own individual modes at compile time. + * + * @param {Mode} mode + * @returns {Mode | Mode[]} + * */ + function expandOrCloneMode(mode) { + if (mode.variants && !mode.cachedVariants) { + mode.cachedVariants = mode.variants.map(function (variant) { + return inherit$1(mode, { variants: null }, variant); + }); + } + + // EXPAND + // if we have variants then essentially "replace" the mode with the variants + // this happens in compileMode, where this function is called from + if (mode.cachedVariants) { + return mode.cachedVariants; + } + + // CLONE + // if we have dependencies on parents then we need a unique + // instance of ourselves, so we can be reused with many + // different parents without issue + if (dependencyOnParent(mode)) { + return inherit$1(mode, { starts: mode.starts ? inherit$1(mode.starts) : null }); + } + + if (Object.isFrozen(mode)) { + return inherit$1(mode); + } + + // no special dependency issues, just return ourselves + return mode; + } + + var version = "11.0.0-beta1"; + + /* + Syntax highlighting with language autodetection. + https://highlightjs.org/ + */ + + /** + @typedef {import('highlight.js').Mode} Mode + @typedef {import('highlight.js').CompiledMode} CompiledMode + @typedef {import('highlight.js').Language} Language + @typedef {import('highlight.js').HLJSApi} HLJSApi + @typedef {import('highlight.js').HLJSPlugin} HLJSPlugin + @typedef {import('highlight.js').PluginEvent} PluginEvent + @typedef {import('highlight.js').HLJSOptions} HLJSOptions + @typedef {import('highlight.js').LanguageFn} LanguageFn + @typedef {import('highlight.js').HighlightedHTMLElement} HighlightedHTMLElement + @typedef {import('highlight.js').BeforeHighlightContext} BeforeHighlightContext + @typedef {import('highlight.js/private').MatchType} MatchType + @typedef {import('highlight.js/private').KeywordData} KeywordData + @typedef {import('highlight.js/private').EnhancedMatch} EnhancedMatch + @typedef {import('highlight.js/private').AnnotatedError} AnnotatedError + @typedef {import('highlight.js').AutoHighlightResult} AutoHighlightResult + @typedef {import('highlight.js').HighlightOptions} HighlightOptions + @typedef {import('highlight.js').HighlightResult} HighlightResult + */ + + + const escape = escapeHTML; + const inherit = inherit$1; + const NO_MATCH = Symbol("nomatch"); + const MAX_KEYWORD_HITS = 7; + + /** + * @param {any} hljs - object that is extended (legacy) + * @returns {HLJSApi} + */ + const HLJS = function (hljs) { + // Global internal variables used within the highlight.js library. + /** @type {Record} */ + const languages = Object.create(null); + /** @type {Record} */ + const aliases = Object.create(null); + /** @type {HLJSPlugin[]} */ + const plugins = []; + + // safe/production mode - swallows more errors, tries to keep running + // even if a single syntax or parse hits a fatal error + let SAFE_MODE = true; + const LANGUAGE_NOT_FOUND = "Could not find the language '{}', did you forget to load/include a language module?"; + /** @type {Language} */ + const PLAINTEXT_LANGUAGE = { disableAutodetect: true, name: 'Plain text', contains: [] }; + + // Global options used when within external APIs. This is modified when + // calling the `hljs.configure` function. + /** @type HLJSOptions */ + let options = { + ignoreUnescapedHTML: false, + noHighlightRe: /^(no-?highlight)$/i, + languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i, + classPrefix: 'hljs-', + cssSelector: 'pre code', + languages: null, + // beta configuration options, subject to change, welcome to discuss + // https://github.com/highlightjs/highlight.js/issues/1086 + __emitter: TokenTreeEmitter + }; + + /* Utility functions */ + + /** + * Tests a language name to see if highlighting should be skipped + * @param {string} languageName + */ + function shouldNotHighlight(languageName) { + return options.noHighlightRe.test(languageName); + } + + /** + * @param {HighlightedHTMLElement} block - the HTML element to determine language for + */ + function blockLanguage(block) { + let classes = block.className + ' '; + + classes += block.parentNode ? block.parentNode.className : ''; + + // language-* takes precedence over non-prefixed class names. + const match = options.languageDetectRe.exec(classes); + if (match) { + const language = getLanguage(match[1]); + if (!language) { + warn(LANGUAGE_NOT_FOUND.replace("{}", match[1])); + warn("Falling back to no-highlight mode for this block.", block); + } + return language ? match[1] : 'no-highlight'; + } + + return classes + .split(/\s+/) + .find((_class) => shouldNotHighlight(_class) || getLanguage(_class)); + } + + /** + * Core highlighting function. + * + * OLD API + * highlight(lang, code, ignoreIllegals, continuation) + * + * NEW API + * highlight(code, {lang, ignoreIllegals}) + * + * @param {string} codeOrLanguageName - the language to use for highlighting + * @param {string | HighlightOptions} optionsOrCode - the code to highlight + * @param {boolean} [ignoreIllegals] - whether to ignore illegal matches, default is to bail + * @param {CompiledMode} [continuation] - current continuation mode, if any + * + * @returns {HighlightResult} Result - an object that represents the result + * @property {string} language - the language name + * @property {number} relevance - the relevance score + * @property {string} value - the highlighted HTML code + * @property {string} code - the original raw code + * @property {CompiledMode} top - top of the current mode stack + * @property {boolean} illegal - indicates whether any illegal matches were found + */ + function highlight(codeOrLanguageName, optionsOrCode, ignoreIllegals, continuation) { + let code = ""; + let languageName = ""; + if (typeof optionsOrCode === "object") { + code = codeOrLanguageName; + ignoreIllegals = optionsOrCode.ignoreIllegals; + languageName = optionsOrCode.language; + // continuation not supported at all via the new API + // eslint-disable-next-line no-undefined + continuation = undefined; + } else { + // old API + deprecated("10.7.0", "highlight(lang, code, ...args) has been deprecated."); + deprecated("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"); + languageName = codeOrLanguageName; + code = optionsOrCode; + } + + // https://github.com/highlightjs/highlight.js/issues/3149 + // eslint-disable-next-line no-undefined + if (ignoreIllegals === undefined) { ignoreIllegals = true; } + + /** @type {BeforeHighlightContext} */ + const context = { + code, + language: languageName + }; + // the plugin can change the desired language or the code to be highlighted + // just be changing the object it was passed + fire("before:highlight", context); + + // a before plugin can usurp the result completely by providing it's own + // in which case we don't even need to call highlight + const result = context.result + ? context.result + : _highlight(context.language, context.code, ignoreIllegals, continuation); + + result.code = context.code; + // the plugin can change anything in result to suite it + fire("after:highlight", result); + + return result; + } + + /** + * private highlight that's used internally and does not fire callbacks + * + * @param {string} languageName - the language to use for highlighting + * @param {string} codeToHighlight - the code to highlight + * @param {boolean?} [ignoreIllegals] - whether to ignore illegal matches, default is to bail + * @param {CompiledMode?} [continuation] - current continuation mode, if any + * @returns {HighlightResult} - result of the highlight operation + */ + function _highlight(languageName, codeToHighlight, ignoreIllegals, continuation) { + const keywordHits = Object.create(null); + + /** + * Return keyword data if a match is a keyword + * @param {CompiledMode} mode - current mode + * @param {string} matchText - the textual match + * @returns {KeywordData | false} + */ + function keywordData(mode, matchText) { + return mode.keywords[matchText]; + } + + function processKeywords() { + if (!top.keywords) { + emitter.addText(modeBuffer); + return; + } + + let lastIndex = 0; + top.keywordPatternRe.lastIndex = 0; + let match = top.keywordPatternRe.exec(modeBuffer); + let buf = ""; + + while (match) { + buf += modeBuffer.substring(lastIndex, match.index); + const word = language.case_insensitive ? match[0].toLowerCase() : match[0]; + const data = keywordData(top, word); + if (data) { + const [kind, keywordRelevance] = data; + emitter.addText(buf); + buf = ""; + + keywordHits[word] = (keywordHits[word] || 0) + 1; + if (keywordHits[word] <= MAX_KEYWORD_HITS) relevance += keywordRelevance; + if (kind.startsWith("_")) { + // _ implied for relevance only, do not highlight + // by applying a class name + buf += match[0]; + } else { + const cssClass = language.classNameAliases[kind] || kind; + emitter.addKeyword(match[0], cssClass); + } + } else { + buf += match[0]; + } + lastIndex = top.keywordPatternRe.lastIndex; + match = top.keywordPatternRe.exec(modeBuffer); + } + buf += modeBuffer.substr(lastIndex); + emitter.addText(buf); + } + + function processSubLanguage() { + if (modeBuffer === "") return; + /** @type HighlightResult */ + let result = null; + + if (typeof top.subLanguage === 'string') { + if (!languages[top.subLanguage]) { + emitter.addText(modeBuffer); + return; + } + result = _highlight(top.subLanguage, modeBuffer, true, continuations[top.subLanguage]); + continuations[top.subLanguage] = /** @type {CompiledMode} */ (result._top); + } else { + result = highlightAuto(modeBuffer, top.subLanguage.length ? top.subLanguage : null); + } + + // Counting embedded language score towards the host language may be disabled + // with zeroing the containing mode relevance. Use case in point is Markdown that + // allows XML everywhere and makes every XML snippet to have a much larger Markdown + // score. + if (top.relevance > 0) { + relevance += result.relevance; + } + emitter.addSublanguage(result._emitter, result.language); + } + + function processBuffer() { + if (top.subLanguage != null) { + processSubLanguage(); + } else { + processKeywords(); + } + modeBuffer = ''; + } + + /** + * @param {CompiledMode} mode + * @param {RegExpMatchArray} match + */ + function emitMultiClass(scope, match) { + let i = 1; + // eslint-disable-next-line no-undefined + while (match[i] !== undefined) { + if (!scope._emit[i]) { i++; continue; } + const klass = language.classNameAliases[scope[i]] || scope[i]; + const text = match[i]; + if (klass) { + emitter.addKeyword(text, klass); + } else { + modeBuffer = text; + processKeywords(); + modeBuffer = ""; + } + i++; + } + } + + /** + * @param {CompiledMode} mode - new mode to start + * @param {RegExpMatchArray} match + */ + function startNewMode(mode, match) { + if (mode.scope && typeof mode.scope === "string") { + emitter.openNode(language.classNameAliases[mode.scope] || mode.scope); + } + if (mode.beginScope) { + // beginScope just wraps the begin match itself in a scope + if (mode.beginScope._wrap) { + emitter.addKeyword(modeBuffer, language.classNameAliases[mode.beginScope._wrap] || mode.beginScope._wrap); + modeBuffer = ""; + } else if (mode.beginScope._multi) { + // at this point modeBuffer should just be the match + emitMultiClass(mode.beginScope, match); + modeBuffer = ""; + } + } + + top = Object.create(mode, { parent: { value: top } }); + return top; + } + + /** + * @param {CompiledMode } mode - the mode to potentially end + * @param {RegExpMatchArray} match - the latest match + * @param {string} matchPlusRemainder - match plus remainder of content + * @returns {CompiledMode | void} - the next mode, or if void continue on in current mode + */ + function endOfMode(mode, match, matchPlusRemainder) { + let matched = startsWith(mode.endRe, matchPlusRemainder); + + if (matched) { + if (mode["on:end"]) { + const resp = new Response(mode); + mode["on:end"](match, resp); + if (resp.isMatchIgnored) matched = false; + } + + if (matched) { + while (mode.endsParent && mode.parent) { + mode = mode.parent; + } + return mode; + } + } + // even if on:end fires an `ignore` it's still possible + // that we might trigger the end node because of a parent mode + if (mode.endsWithParent) { + return endOfMode(mode.parent, match, matchPlusRemainder); + } + } + + /** + * Handle matching but then ignoring a sequence of text + * + * @param {string} lexeme - string containing full match text + */ + function doIgnore(lexeme) { + if (top.matcher.regexIndex === 0) { + // no more regexes to potentially match here, so we move the cursor forward one + // space + modeBuffer += lexeme[0]; + return 1; + } else { + // no need to move the cursor, we still have additional regexes to try and + // match at this very spot + resumeScanAtSamePosition = true; + return 0; + } + } + + /** + * Handle the start of a new potential mode match + * + * @param {EnhancedMatch} match - the current match + * @returns {number} how far to advance the parse cursor + */ + function doBeginMatch(match) { + const lexeme = match[0]; + const newMode = match.rule; + + const resp = new Response(newMode); + // first internal before callbacks, then the public ones + const beforeCallbacks = [newMode.__beforeBegin, newMode["on:begin"]]; + for (const cb of beforeCallbacks) { + if (!cb) continue; + cb(match, resp); + if (resp.isMatchIgnored) return doIgnore(lexeme); + } + + if (newMode.skip) { + modeBuffer += lexeme; + } else { + if (newMode.excludeBegin) { + modeBuffer += lexeme; + } + processBuffer(); + if (!newMode.returnBegin && !newMode.excludeBegin) { + modeBuffer = lexeme; + } + } + startNewMode(newMode, match); + return newMode.returnBegin ? 0 : lexeme.length; + } + + /** + * Handle the potential end of mode + * + * @param {RegExpMatchArray} match - the current match + */ + function doEndMatch(match) { + const lexeme = match[0]; + const matchPlusRemainder = codeToHighlight.substr(match.index); + + const endMode = endOfMode(top, match, matchPlusRemainder); + if (!endMode) { return NO_MATCH; } + + const origin = top; + if (top.endScope && top.endScope._wrap) { + processBuffer(); + emitter.addKeyword(lexeme, top.endScope._wrap); + } else if (top.endScope && top.endScope._multi) { + processBuffer(); + emitMultiClass(top.endScope, match); + } else if (origin.skip) { + modeBuffer += lexeme; + } else { + if (!(origin.returnEnd || origin.excludeEnd)) { + modeBuffer += lexeme; + } + processBuffer(); + if (origin.excludeEnd) { + modeBuffer = lexeme; + } + } + do { + if (top.scope && !top.isMultiClass) { + emitter.closeNode(); + } + if (!top.skip && !top.subLanguage) { + relevance += top.relevance; + } + top = top.parent; + } while (top !== endMode.parent); + if (endMode.starts) { + startNewMode(endMode.starts, match); + } + return origin.returnEnd ? 0 : lexeme.length; + } + + function processContinuations() { + const list = []; + for (let current = top; current !== language; current = current.parent) { + if (current.scope) { + list.unshift(current.scope); + } + } + list.forEach(item => emitter.openNode(item)); + } + + /** @type {{type?: MatchType, index?: number, rule?: Mode}}} */ + let lastMatch = {}; + + /** + * Process an individual match + * + * @param {string} textBeforeMatch - text preceding the match (since the last match) + * @param {EnhancedMatch} [match] - the match itself + */ + function processLexeme(textBeforeMatch, match) { + const lexeme = match && match[0]; + + // add non-matched text to the current mode buffer + modeBuffer += textBeforeMatch; + + if (lexeme == null) { + processBuffer(); + return 0; + } + + // we've found a 0 width match and we're stuck, so we need to advance + // this happens when we have badly behaved rules that have optional matchers to the degree that + // sometimes they can end up matching nothing at all + // Ref: https://github.com/highlightjs/highlight.js/issues/2140 + if (lastMatch.type === "begin" && match.type === "end" && lastMatch.index === match.index && lexeme === "") { + // spit the "skipped" character that our regex choked on back into the output sequence + modeBuffer += codeToHighlight.slice(match.index, match.index + 1); + if (!SAFE_MODE) { + /** @type {AnnotatedError} */ + const err = new Error(`0 width match regex (${languageName})`); + err.languageName = languageName; + err.badRule = lastMatch.rule; + throw err; + } + return 1; + } + lastMatch = match; + + if (match.type === "begin") { + return doBeginMatch(match); + } else if (match.type === "illegal" && !ignoreIllegals) { + // illegal match, we do not continue processing + /** @type {AnnotatedError} */ + const err = new Error('Illegal lexeme "' + lexeme + '" for mode "' + (top.scope || '') + '"'); + err.mode = top; + throw err; + } else if (match.type === "end") { + const processed = doEndMatch(match); + if (processed !== NO_MATCH) { + return processed; + } + } + + // edge case for when illegal matches $ (end of line) which is technically + // a 0 width match but not a begin/end match so it's not caught by the + // first handler (when ignoreIllegals is true) + if (match.type === "illegal" && lexeme === "") { + // advance so we aren't stuck in an infinite loop + return 1; + } + + // infinite loops are BAD, this is a last ditch catch all. if we have a + // decent number of iterations yet our index (cursor position in our + // parsing) still 3x behind our index then something is very wrong + // so we bail + if (iterations > 100000 && iterations > match.index * 3) { + const err = new Error('potential infinite loop, way more iterations than matches'); + throw err; + } + + /* + Why might be find ourselves here? An potential end match that was + triggered but could not be completed. IE, `doEndMatch` returned NO_MATCH. + (this could be because a callback requests the match be ignored, etc) + + This causes no real harm other than stopping a few times too many. + */ + + modeBuffer += lexeme; + return lexeme.length; + } + + const language = getLanguage(languageName); + if (!language) { + error(LANGUAGE_NOT_FOUND.replace("{}", languageName)); + throw new Error('Unknown language: "' + languageName + '"'); + } + + const md = compileLanguage(language); + let result = ''; + /** @type {CompiledMode} */ + let top = continuation || md; + /** @type Record */ + const continuations = {}; // keep continuations for sub-languages + const emitter = new options.__emitter(options); + processContinuations(); + let modeBuffer = ''; + let relevance = 0; + let index = 0; + let iterations = 0; + let resumeScanAtSamePosition = false; + + try { + top.matcher.considerAll(); + + for (; ;) { + iterations++; + if (resumeScanAtSamePosition) { + // only regexes not matched previously will now be + // considered for a potential match + resumeScanAtSamePosition = false; + } else { + top.matcher.considerAll(); + } + top.matcher.lastIndex = index; + + const match = top.matcher.exec(codeToHighlight); + // console.log("match", match[0], match.rule && match.rule.begin) + + if (!match) break; + + const beforeMatch = codeToHighlight.substring(index, match.index); + const processedCount = processLexeme(beforeMatch, match); + index = match.index + processedCount; + } + processLexeme(codeToHighlight.substr(index)); + emitter.closeAllNodes(); + emitter.finalize(); + result = emitter.toHTML(); + + return { + language: languageName, + value: result, + relevance: relevance, + illegal: false, + _emitter: emitter, + _top: top + }; + } catch (err) { + if (err.message && err.message.includes('Illegal')) { + return { + language: languageName, + value: escape(codeToHighlight), + illegal: true, + relevance: 0, + _illegalBy: { + message: err.message, + index: index, + context: codeToHighlight.slice(index - 100, index + 100), + mode: err.mode, + resultSoFar: result + }, + _emitter: emitter + }; + } else if (SAFE_MODE) { + return { + language: languageName, + value: escape(codeToHighlight), + illegal: false, + relevance: 0, + errorRaised: err, + _emitter: emitter, + _top: top + }; + } else { + throw err; + } + } + } + + /** + * returns a valid highlight result, without actually doing any actual work, + * auto highlight starts with this and it's possible for small snippets that + * auto-detection may not find a better match + * @param {string} code + * @returns {HighlightResult} + */ + function justTextHighlightResult(code) { + const result = { + value: escape(code), + illegal: false, + relevance: 0, + _top: PLAINTEXT_LANGUAGE, + _emitter: new options.__emitter(options) + }; + result._emitter.addText(code); + return result; + } + + /** + Highlighting with language detection. Accepts a string with the code to + highlight. Returns an object with the following properties: + + - language (detected language) + - relevance (int) + - value (an HTML string with highlighting markup) + - secondBest (object with the same structure for second-best heuristically + detected language, may be absent) + + @param {string} code + @param {Array} [languageSubset] + @returns {AutoHighlightResult} + */ + function highlightAuto(code, languageSubset) { + languageSubset = languageSubset || options.languages || Object.keys(languages); + const plaintext = justTextHighlightResult(code); + + const results = languageSubset.filter(getLanguage).filter(autoDetection).map(name => + _highlight(name, code, false) + ); + results.unshift(plaintext); // plaintext is always an option + + const sorted = results.sort((a, b) => { + // sort base on relevance + if (a.relevance !== b.relevance) return b.relevance - a.relevance; + + // always award the tie to the base language + // ie if C++ and Arduino are tied, it's more likely to be C++ + if (a.language && b.language) { + if (getLanguage(a.language).supersetOf === b.language) { + return 1; + } else if (getLanguage(b.language).supersetOf === a.language) { + return -1; + } + } + + // otherwise say they are equal, which has the effect of sorting on + // relevance while preserving the original ordering - which is how ties + // have historically been settled, ie the language that comes first always + // wins in the case of a tie + return 0; + }); + + const [best, secondBest] = sorted; + + /** @type {AutoHighlightResult} */ + const result = best; + result.secondBest = secondBest; + + return result; + } + + /** + * Builds new class name for block given the language name + * + * @param {HTMLElement} element + * @param {string} [currentLang] + * @param {string} [resultLang] + */ + function updateClassName(element, currentLang, resultLang) { + const language = (currentLang && aliases[currentLang]) || resultLang; + + element.classList.add("hljs"); + element.classList.add(`language-${language}`); + } + + /** + * Applies highlighting to a DOM node containing code. + * + * @param {HighlightedHTMLElement} element - the HTML element to highlight + */ + function highlightElement(element) { + /** @type HTMLElement */ + let node = null; + const language = blockLanguage(element); + + if (shouldNotHighlight(language)) return; + + fire("before:highlightElement", + { el: element, language: language }); + + // we should be all text, no child nodes + if (!options.ignoreUnescapedHTML && element.children.length > 0) { + console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."); + console.warn("https://github.com/highlightjs/highlight.js/issues/2886"); + console.warn(element); + } + + node = element; + const text = node.textContent; + const result = language ? highlight(text, { language, ignoreIllegals: true }) : highlightAuto(text); + + fire("after:highlightElement", { el: element, result, text }); + + element.innerHTML = result.value; + updateClassName(element, language, result.language); + element.result = { + language: result.language, + // TODO: remove with version 11.0 + re: result.relevance, + relevance: result.relevance + }; + if (result.secondBest) { + element.secondBest = { + language: result.secondBest.language, + relevance: result.secondBest.relevance + }; + } + } + + /** + * Updates highlight.js global options with the passed options + * + * @param {Partial} userOptions + */ + function configure(userOptions) { + options = inherit(options, userOptions); + } + + // TODO: remove v12, deprecated + const initHighlighting = () => { + highlightAll(); + deprecated("10.6.0", "initHighlighting() deprecated. Use highlightAll() now."); + }; + + // TODO: remove v12, deprecated + function initHighlightingOnLoad() { + highlightAll(); + deprecated("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now."); + } + + let wantsHighlight = false; + + /** + * auto-highlights all pre>code elements on the page + */ + function highlightAll() { + // if we are called too early in the loading process + if (document.readyState === "loading") { + wantsHighlight = true; + return; + } + + const blocks = document.querySelectorAll(options.cssSelector); + blocks.forEach(highlightElement); + } + + function boot() { + // if a highlight was requested before DOM was loaded, do now + if (wantsHighlight) highlightAll(); + } + + // make sure we are in the browser environment + if (typeof window !== 'undefined' && window.addEventListener) { + window.addEventListener('DOMContentLoaded', boot, false); + } + + /** + * Register a language grammar module + * + * @param {string} languageName + * @param {LanguageFn} languageDefinition + */ + function registerLanguage(languageName, languageDefinition) { + let lang = null; + try { + lang = languageDefinition(hljs); + } catch (error$1) { + error("Language definition for '{}' could not be registered.".replace("{}", languageName)); + // hard or soft error + if (!SAFE_MODE) { throw error$1; } else { error(error$1); } + // languages that have serious errors are replaced with essentially a + // "plaintext" stand-in so that the code blocks will still get normal + // css classes applied to them - and one bad language won't break the + // entire highlighter + lang = PLAINTEXT_LANGUAGE; + } + // give it a temporary name if it doesn't have one in the meta-data + if (!lang.name) lang.name = languageName; + languages[languageName] = lang; + lang.rawDefinition = languageDefinition.bind(null, hljs); + + if (lang.aliases) { + registerAliases(lang.aliases, { languageName }); + } + } + + /** + * Remove a language grammar module + * + * @param {string} languageName + */ + function unregisterLanguage(languageName) { + delete languages[languageName]; + for (const alias of Object.keys(aliases)) { + if (aliases[alias] === languageName) { + delete aliases[alias]; + } + } + } + + /** + * @returns {string[]} List of language internal names + */ + function listLanguages() { + return Object.keys(languages); + } + + /** + * @param {string} name - name of the language to retrieve + * @returns {Language | undefined} + */ + function getLanguage(name) { + name = (name || '').toLowerCase(); + return languages[name] || languages[aliases[name]]; + } + + /** + * + * @param {string|string[]} aliasList - single alias or list of aliases + * @param {{languageName: string}} opts + */ + function registerAliases(aliasList, { languageName }) { + if (typeof aliasList === 'string') { + aliasList = [aliasList]; + } + aliasList.forEach(alias => { aliases[alias.toLowerCase()] = languageName; }); + } + + /** + * Determines if a given language has auto-detection enabled + * @param {string} name - name of the language + */ + function autoDetection(name) { + const lang = getLanguage(name); + return lang && !lang.disableAutodetect; + } + + /** + * Upgrades the old highlightBlock plugins to the new + * highlightElement API + * @param {HLJSPlugin} plugin + */ + function upgradePluginAPI(plugin) { + // TODO: remove with v12 + if (plugin["before:highlightBlock"] && !plugin["before:highlightElement"]) { + plugin["before:highlightElement"] = (data) => { + plugin["before:highlightBlock"]( + Object.assign({ block: data.el }, data) + ); + }; + } + if (plugin["after:highlightBlock"] && !plugin["after:highlightElement"]) { + plugin["after:highlightElement"] = (data) => { + plugin["after:highlightBlock"]( + Object.assign({ block: data.el }, data) + ); + }; + } + } + + /** + * @param {HLJSPlugin} plugin + */ + function addPlugin(plugin) { + upgradePluginAPI(plugin); + plugins.push(plugin); + } + + /** + * + * @param {PluginEvent} event + * @param {any} args + */ + function fire(event, args) { + const cb = event; + plugins.forEach(function (plugin) { + if (plugin[cb]) { + plugin[cb](args); + } + }); + } + + /** + * + * @param {HighlightedHTMLElement} el + */ + function deprecateHighlightBlock(el) { + deprecated("10.7.0", "highlightBlock will be removed entirely in v12.0"); + deprecated("10.7.0", "Please use highlightElement now."); + + return highlightElement(el); + } + + /* Interface definition */ + Object.assign(hljs, { + highlight, + highlightAuto, + highlightAll, + highlightElement, + // TODO: Remove with v12 API + highlightBlock: deprecateHighlightBlock, + configure, + initHighlighting, + initHighlightingOnLoad, + registerLanguage, + unregisterLanguage, + listLanguages, + getLanguage, + registerAliases, + autoDetection, + inherit, + addPlugin + }); + + hljs.debugMode = function () { SAFE_MODE = false; }; + hljs.safeMode = function () { SAFE_MODE = true; }; + hljs.versionString = version; + + for (const key in MODES$1) { + // @ts-ignore + if (typeof MODES$1[key] === "object") { + // @ts-ignore + deepFreeze$1(MODES$1[key]); + } + } + + // merge all the modes/regexes into our main object + Object.assign(hljs, MODES$1); + + return hljs; + }; + + // export an "instance" of the highlighter + var HighlightJS = HLJS({}); + + /* + Language: Bash + Author: vah + Contributrors: Benjamin Pannell + Website: https://www.gnu.org/software/bash/ + Category: common + */ + + /** @type LanguageFn */ + function bash(hljs) { + const VAR = {}; + const BRACED_VAR = { + begin: /\$\{/, + end: /\}/, + contains: [ + "self", + { + begin: /:-/, + contains: [VAR] + } // default values + ] + }; + Object.assign(VAR, { + className: 'variable', + variants: [ + { + begin: concat(/\$[\w\d#@][\w\d_]*/, + // negative look-ahead tries to avoid matching patterns that are not + // Perl at all like $ident$, @ident@, etc. + `(?![\\w\\d])(?![$])`) + }, + BRACED_VAR + ] + }); + + const SUBST = { + className: 'subst', + begin: /\$\(/, end: /\)/, + contains: [hljs.BACKSLASH_ESCAPE] + }; + const HERE_DOC = { + begin: /<<-?\s*(?=\w+)/, + starts: { + contains: [ + hljs.END_SAME_AS_BEGIN({ + begin: /(\w+)/, + end: /(\w+)/, + className: 'string' + }) + ] + } + }; + const QUOTE_STRING = { + className: 'string', + begin: /"/, end: /"/, + contains: [ + hljs.BACKSLASH_ESCAPE, + VAR, + SUBST + ] + }; + SUBST.contains.push(QUOTE_STRING); + const ESCAPED_QUOTE = { + className: '', + begin: /\\"/ + + }; + const APOS_STRING = { + className: 'string', + begin: /'/, end: /'/ + }; + const ARITHMETIC = { + begin: /\$\(\(/, + end: /\)\)/, + contains: [ + { begin: /\d+#[0-9a-f]+/, className: "number" }, + hljs.NUMBER_MODE, + VAR + ] + }; + const SH_LIKE_SHELLS = [ + "fish", + "bash", + "zsh", + "sh", + "csh", + "ksh", + "tcsh", + "dash", + "scsh", + ]; + const KNOWN_SHEBANG = hljs.SHEBANG({ + binary: `(${SH_LIKE_SHELLS.join("|")})`, + relevance: 10 + }); + const FUNCTION = { + className: 'function', + begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/, + returnBegin: true, + contains: [hljs.inherit(hljs.TITLE_MODE, { begin: /\w[\w\d_]*/ })], + relevance: 0 + }; + + const KEYWORDS = [ + "if", + "then", + "else", + "elif", + "fi", + "for", + "while", + "in", + "do", + "done", + "case", + "esac", + "function" + ]; + + const LITERALS = [ + "true", + "false" + ]; + + return { + name: 'Bash', + aliases: ['sh'], + keywords: { + $pattern: /\b[a-z._-]+\b/, + keyword: KEYWORDS, + literal: LITERALS, + built_in: + // Shell built-ins + // http://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html + 'break cd continue eval exec exit export getopts hash pwd readonly return shift test times ' + + 'trap umask unset ' + + // Bash built-ins + 'alias bind builtin caller command declare echo enable help let local logout mapfile printf ' + + 'read readarray source type typeset ulimit unalias ' + + // Shell modifiers + 'set shopt ' + + // Zsh built-ins + 'autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles ' + + 'compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate ' + + 'fc fg float functions getcap getln history integer jobs kill limit log noglob popd print ' + + 'pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit ' + + 'unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof ' + + 'zpty zregexparse zsocket zstyle ztcp' + }, + contains: [ + KNOWN_SHEBANG, // to catch known shells and boost relevancy + hljs.SHEBANG(), // to catch unknown shells but still highlight the shebang + FUNCTION, + ARITHMETIC, + hljs.HASH_COMMENT_MODE, + HERE_DOC, + QUOTE_STRING, + ESCAPED_QUOTE, + APOS_STRING, + VAR + ] + }; + } + + + const MODES = (hljs) => { + return { + IMPORTANT: { + scope: 'meta', + begin: '!important' + }, + HEXCOLOR: { + scope: 'number', + begin: '#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})' + }, + ATTRIBUTE_SELECTOR_MODE: { + scope: 'selector-attr', + begin: /\[/, + end: /\]/, + illegal: '$', + contains: [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE + ] + }, + CSS_NUMBER_MODE: { + scope: 'number', + begin: hljs.NUMBER_RE + '(' + + '%|em|ex|ch|rem' + + '|vw|vh|vmin|vmax' + + '|cm|mm|in|pt|pc|px' + + '|deg|grad|rad|turn' + + '|s|ms' + + '|Hz|kHz' + + '|dpi|dpcm|dppx' + + ')?', + relevance: 0 + } + }; + }; + + const TAGS = [ + 'a', + 'abbr', + 'address', + 'article', + 'aside', + 'audio', + 'b', + 'blockquote', + 'body', + 'button', + 'canvas', + 'caption', + 'cite', + 'code', + 'dd', + 'del', + 'details', + 'dfn', + 'div', + 'dl', + 'dt', + 'em', + 'fieldset', + 'figcaption', + 'figure', + 'footer', + 'form', + 'h1', + 'h2', + 'h3', + 'h4', + 'h5', + 'h6', + 'header', + 'hgroup', + 'html', + 'i', + 'iframe', + 'img', + 'input', + 'ins', + 'kbd', + 'label', + 'legend', + 'li', + 'main', + 'mark', + 'menu', + 'nav', + 'object', + 'ol', + 'p', + 'q', + 'quote', + 'samp', + 'section', + 'span', + 'strong', + 'summary', + 'sup', + 'table', + 'tbody', + 'td', + 'textarea', + 'tfoot', + 'th', + 'thead', + 'time', + 'tr', + 'ul', + 'var', + 'video' + ]; + + const MEDIA_FEATURES = [ + 'any-hover', + 'any-pointer', + 'aspect-ratio', + 'color', + 'color-gamut', + 'color-index', + 'device-aspect-ratio', + 'device-height', + 'device-width', + 'display-mode', + 'forced-colors', + 'grid', + 'height', + 'hover', + 'inverted-colors', + 'monochrome', + 'orientation', + 'overflow-block', + 'overflow-inline', + 'pointer', + 'prefers-color-scheme', + 'prefers-contrast', + 'prefers-reduced-motion', + 'prefers-reduced-transparency', + 'resolution', + 'scan', + 'scripting', + 'update', + 'width', + // TODO: find a better solution? + 'min-width', + 'max-width', + 'min-height', + 'max-height' + ]; + + // https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes + const PSEUDO_CLASSES = [ + 'active', + 'any-link', + 'blank', + 'checked', + 'current', + 'default', + 'defined', + 'dir', // dir() + 'disabled', + 'drop', + 'empty', + 'enabled', + 'first', + 'first-child', + 'first-of-type', + 'fullscreen', + 'future', + 'focus', + 'focus-visible', + 'focus-within', + 'has', // has() + 'host', // host or host() + 'host-context', // host-context() + 'hover', + 'indeterminate', + 'in-range', + 'invalid', + 'is', // is() + 'lang', // lang() + 'last-child', + 'last-of-type', + 'left', + 'link', + 'local-link', + 'not', // not() + 'nth-child', // nth-child() + 'nth-col', // nth-col() + 'nth-last-child', // nth-last-child() + 'nth-last-col', // nth-last-col() + 'nth-last-of-type', //nth-last-of-type() + 'nth-of-type', //nth-of-type() + 'only-child', + 'only-of-type', + 'optional', + 'out-of-range', + 'past', + 'placeholder-shown', + 'read-only', + 'read-write', + 'required', + 'right', + 'root', + 'scope', + 'target', + 'target-within', + 'user-invalid', + 'valid', + 'visited', + 'where' // where() + ]; + + // https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements + const PSEUDO_ELEMENTS = [ + 'after', + 'backdrop', + 'before', + 'cue', + 'cue-region', + 'first-letter', + 'first-line', + 'grammar-error', + 'marker', + 'part', + 'placeholder', + 'selection', + 'slotted', + 'spelling-error' + ]; + + const ATTRIBUTES = [ + 'align-content', + 'align-items', + 'align-self', + 'animation', + 'animation-delay', + 'animation-direction', + 'animation-duration', + 'animation-fill-mode', + 'animation-iteration-count', + 'animation-name', + 'animation-play-state', + 'animation-timing-function', + 'auto', + 'backface-visibility', + 'background', + 'background-attachment', + 'background-clip', + 'background-color', + 'background-image', + 'background-origin', + 'background-position', + 'background-repeat', + 'background-size', + 'border', + 'border-bottom', + 'border-bottom-color', + 'border-bottom-left-radius', + 'border-bottom-right-radius', + 'border-bottom-style', + 'border-bottom-width', + 'border-collapse', + 'border-color', + 'border-image', + 'border-image-outset', + 'border-image-repeat', + 'border-image-slice', + 'border-image-source', + 'border-image-width', + 'border-left', + 'border-left-color', + 'border-left-style', + 'border-left-width', + 'border-radius', + 'border-right', + 'border-right-color', + 'border-right-style', + 'border-right-width', + 'border-spacing', + 'border-style', + 'border-top', + 'border-top-color', + 'border-top-left-radius', + 'border-top-right-radius', + 'border-top-style', + 'border-top-width', + 'border-width', + 'bottom', + 'box-decoration-break', + 'box-shadow', + 'box-sizing', + 'break-after', + 'break-before', + 'break-inside', + 'caption-side', + 'clear', + 'clip', + 'clip-path', + 'color', + 'column-count', + 'column-fill', + 'column-gap', + 'column-rule', + 'column-rule-color', + 'column-rule-style', + 'column-rule-width', + 'column-span', + 'column-width', + 'columns', + 'content', + 'counter-increment', + 'counter-reset', + 'cursor', + 'direction', + 'display', + 'empty-cells', + 'filter', + 'flex', + 'flex-basis', + 'flex-direction', + 'flex-flow', + 'flex-grow', + 'flex-shrink', + 'flex-wrap', + 'float', + 'font', + 'font-display', + 'font-family', + 'font-feature-settings', + 'font-kerning', + 'font-language-override', + 'font-size', + 'font-size-adjust', + 'font-smoothing', + 'font-stretch', + 'font-style', + 'font-variant', + 'font-variant-ligatures', + 'font-variation-settings', + 'font-weight', + 'height', + 'hyphens', + 'icon', + 'image-orientation', + 'image-rendering', + 'image-resolution', + 'ime-mode', + 'inherit', + 'initial', + 'justify-content', + 'left', + 'letter-spacing', + 'line-height', + 'list-style', + 'list-style-image', + 'list-style-position', + 'list-style-type', + 'margin', + 'margin-bottom', + 'margin-left', + 'margin-right', + 'margin-top', + 'marks', + 'mask', + 'max-height', + 'max-width', + 'min-height', + 'min-width', + 'nav-down', + 'nav-index', + 'nav-left', + 'nav-right', + 'nav-up', + 'none', + 'normal', + 'object-fit', + 'object-position', + 'opacity', + 'order', + 'orphans', + 'outline', + 'outline-color', + 'outline-offset', + 'outline-style', + 'outline-width', + 'overflow', + 'overflow-wrap', + 'overflow-x', + 'overflow-y', + 'padding', + 'padding-bottom', + 'padding-left', + 'padding-right', + 'padding-top', + 'page-break-after', + 'page-break-before', + 'page-break-inside', + 'perspective', + 'perspective-origin', + 'pointer-events', + 'position', + 'quotes', + 'resize', + 'right', + 'src', // @font-face + 'tab-size', + 'table-layout', + 'text-align', + 'text-align-last', + 'text-decoration', + 'text-decoration-color', + 'text-decoration-line', + 'text-decoration-style', + 'text-indent', + 'text-overflow', + 'text-rendering', + 'text-shadow', + 'text-transform', + 'text-underline-position', + 'top', + 'transform', + 'transform-origin', + 'transform-style', + 'transition', + 'transition-delay', + 'transition-duration', + 'transition-property', + 'transition-timing-function', + 'unicode-bidi', + 'vertical-align', + 'visibility', + 'white-space', + 'widows', + 'width', + 'word-break', + 'word-spacing', + 'word-wrap', + 'z-index' + // reverse makes sure longer attributes `font-weight` are matched fully + // instead of getting false positives on say `font` + ].reverse(); + + // some grammars use them all as a single group + const PSEUDO_SELECTORS = PSEUDO_CLASSES.concat(PSEUDO_ELEMENTS); + + + // https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.html#jls-3.10 + var decimalDigits = '[0-9](_*[0-9])*'; + var frac = `\\.(${decimalDigits})`; + var hexDigits = '[0-9a-fA-F](_*[0-9a-fA-F])*'; + var NUMERIC = { + className: 'number', + variants: [ + // DecimalFloatingPointLiteral + // including ExponentPart + { + begin: `(\\b(${decimalDigits})((${frac})|\\.)?|(${frac}))` + + `[eE][+-]?(${decimalDigits})[fFdD]?\\b` + }, + // excluding ExponentPart + { begin: `\\b(${decimalDigits})((${frac})[fFdD]?\\b|\\.([fFdD]\\b)?)` }, + { begin: `(${frac})[fFdD]?\\b` }, + { begin: `\\b(${decimalDigits})[fFdD]\\b` }, + + // HexadecimalFloatingPointLiteral + { + begin: `\\b0[xX]((${hexDigits})\\.?|(${hexDigits})?\\.(${hexDigits}))` + + `[pP][+-]?(${decimalDigits})[fFdD]?\\b` + }, + + // DecimalIntegerLiteral + { begin: '\\b(0|[1-9](_*[0-9])*)[lL]?\\b' }, + + // HexIntegerLiteral + { begin: `\\b0[xX](${hexDigits})[lL]?\\b` }, + + // OctalIntegerLiteral + { begin: '\\b0(_*[0-7])*[lL]?\\b' }, + + // BinaryIntegerLiteral + { begin: '\\b0[bB][01](_*[01])*[lL]?\\b' }, + ], + relevance: 0 + }; + + + /** + * Allows recursive regex expressions to a given depth + * + * ie: recurRegex("(abc~~~)", /~~~/g, 2) becomes: + * (abc(abc(abc))) + * + * @param {string} re + * @param {RegExp} substitution (should be a g mode regex) + * @param {number} depth + * @returns {string}`` + */ + function recurRegex(re, substitution, depth) { + if (depth === -1) return ""; + + return re.replace(substitution, _ => { + return recurRegex(re, substitution, depth - 1); + }); + } + + const IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*'; + const KEYWORDS = [ + "as", // for exports + "in", + "of", + "if", + "for", + "while", + "finally", + "var", + "new", + "function", + "do", + "return", + "void", + "else", + "break", + "catch", + "instanceof", + "with", + "throw", + "case", + "default", + "try", + "switch", + "continue", + "typeof", + "delete", + "let", + "yield", + "const", + "class", + // JS handles these with a special rule + // "get", + // "set", + "debugger", + "async", + "await", + "static", + "import", + "from", + "export", + "extends" + ]; + const LITERALS = [ + "true", + "false", + "null", + "undefined", + "NaN", + "Infinity" + ]; + + const TYPES = [ + "Intl", + "DataView", + "Number", + "Math", + "Date", + "String", + "RegExp", + "Object", + "Function", + "Boolean", + "Error", + "Symbol", + "Set", + "Map", + "WeakSet", + "WeakMap", + "Proxy", + "Reflect", + "JSON", + "Promise", + "Float64Array", + "Int16Array", + "Int32Array", + "Int8Array", + "Uint16Array", + "Uint32Array", + "Float32Array", + "Array", + "Uint8Array", + "Uint8ClampedArray", + "ArrayBuffer", + "BigInt64Array", + "BigUint64Array", + "BigInt" + ]; + + const ERROR_TYPES = [ + "EvalError", + "InternalError", + "RangeError", + "ReferenceError", + "SyntaxError", + "TypeError", + "URIError" + ]; + + const BUILT_IN_GLOBALS = [ + "setInterval", + "setTimeout", + "clearInterval", + "clearTimeout", + + "require", + "exports", + + "eval", + "isFinite", + "isNaN", + "parseFloat", + "parseInt", + "decodeURI", + "decodeURIComponent", + "encodeURI", + "encodeURIComponent", + "escape", + "unescape" + ]; + + const BUILT_IN_VARIABLES = [ + "arguments", + "this", + "super", + "console", + "window", + "document", + "localStorage", + "module", + "global" // Node.js + ]; + + const BUILT_INS = [].concat( + BUILT_IN_GLOBALS, + TYPES, + ERROR_TYPES + ); + + /* + Language: JavaScript + Description: JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions. + Category: common, scripting, web + Website: https://developer.mozilla.org/en-US/docs/Web/JavaScript + */ + + /** @type LanguageFn */ + function javascript(hljs) { + /** + * Takes a string like " { + const tag = "', + end: '' + }; + const XML_TAG = { + begin: /<[A-Za-z0-9\\._:-]+/, + end: /\/[A-Za-z0-9\\._:-]+>|\/>/, + /** + * @param {RegExpMatchArray} match + * @param {CallbackResponse} response + */ + isTrulyOpeningTag: (match, response) => { + const afterMatchIndex = match[0].length + match.index; + const nextChar = match.input[afterMatchIndex]; + // nested type? + // HTML should not include another raw `<` inside a tag + // But a type might: `>`, etc. + if (nextChar === "<") { + response.ignoreMatch(); + return; + } + // + // This is now either a tag or a type. + if (nextChar === ">") { + // if we cannot find a matching closing tag, then we + // will ignore it + if (!hasClosingTag(match, { after: afterMatchIndex })) { + response.ignoreMatch(); + } + } + } + }; + const KEYWORDS$1 = { + $pattern: IDENT_RE, + keyword: KEYWORDS, + literal: LITERALS, + built_in: BUILT_INS, + "variable.language": BUILT_IN_VARIABLES + }; + + // https://tc39.es/ecma262/#sec-literals-numeric-literals + const decimalDigits = '[0-9](_?[0-9])*'; + const frac = `\\.(${decimalDigits})`; + // DecimalIntegerLiteral, including Annex B NonOctalDecimalIntegerLiteral + // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals + const decimalInteger = `0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`; + const NUMBER = { + className: 'number', + variants: [ + // DecimalLiteral + { + begin: `(\\b(${decimalInteger})((${frac})|\\.)?|(${frac}))` + + `[eE][+-]?(${decimalDigits})\\b` + }, + { begin: `\\b(${decimalInteger})\\b((${frac})\\b|\\.)?|(${frac})\\b` }, + + // DecimalBigIntegerLiteral + { begin: `\\b(0|[1-9](_?[0-9])*)n\\b` }, + + // NonDecimalIntegerLiteral + { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, + { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, + { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, + + // LegacyOctalIntegerLiteral (does not include underscore separators) + // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals + { begin: "\\b0[0-7]+n?\\b" }, + ], + relevance: 0 + }; + + const SUBST = { + className: 'subst', + begin: '\\$\\{', + end: '\\}', + keywords: KEYWORDS$1, + contains: [] // defined later + }; + const HTML_TEMPLATE = { + begin: 'html`', + end: '', + starts: { + end: '`', + returnEnd: false, + contains: [ + hljs.BACKSLASH_ESCAPE, + SUBST + ], + subLanguage: 'xml' + } + }; + const CSS_TEMPLATE = { + begin: 'css`', + end: '', + starts: { + end: '`', + returnEnd: false, + contains: [ + hljs.BACKSLASH_ESCAPE, + SUBST + ], + subLanguage: 'css' + } + }; + const TEMPLATE_STRING = { + className: 'string', + begin: '`', + end: '`', + contains: [ + hljs.BACKSLASH_ESCAPE, + SUBST + ] + }; + const JSDOC_COMMENT = hljs.COMMENT( + /\/\*\*(?!\/)/, + '\\*/', + { + relevance: 0, + contains: [ + { + begin: '(?=@[A-Za-z]+)', + relevance: 0, + contains: [ + { + className: 'doctag', + begin: '@[A-Za-z]+' + }, + { + className: 'type', + begin: '\\{', + end: '\\}', + excludeEnd: true, + excludeBegin: true, + relevance: 0 + }, + { + className: 'variable', + begin: IDENT_RE$1 + '(?=\\s*(-)|$)', + endsParent: true, + relevance: 0 + }, + // eat spaces (not newlines) so we can find + // types or variables + { + begin: /(?=[^\n])\s/, + relevance: 0 + } + ] + } + ] + } + ); + const COMMENT = { + className: "comment", + variants: [ + JSDOC_COMMENT, + hljs.C_BLOCK_COMMENT_MODE, + hljs.C_LINE_COMMENT_MODE + ] + }; + const SUBST_INTERNALS = [ + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + HTML_TEMPLATE, + CSS_TEMPLATE, + TEMPLATE_STRING, + NUMBER, + hljs.REGEXP_MODE + ]; + SUBST.contains = SUBST_INTERNALS + .concat({ + // we need to pair up {} inside our subst to prevent + // it from ending too early by matching another } + begin: /\{/, + end: /\}/, + keywords: KEYWORDS$1, + contains: [ + "self" + ].concat(SUBST_INTERNALS) + }); + const SUBST_AND_COMMENTS = [].concat(COMMENT, SUBST.contains); + const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([ + // eat recursive parens in sub expressions + { + begin: /\(/, + end: /\)/, + keywords: KEYWORDS$1, + contains: ["self"].concat(SUBST_AND_COMMENTS) + } + ]); + const PARAMS = { + className: 'params', + begin: /\(/, + end: /\)/, + excludeBegin: true, + excludeEnd: true, + keywords: KEYWORDS$1, + contains: PARAMS_CONTAINS + }; + + // ES6 classes + const CLASS_OR_EXTENDS = { + variants: [ + { + match: [ + /class/, + /\s+/, + IDENT_RE$1 + ], + scope: { + 1: "keyword", + 3: "title.class" + } + }, + { + match: [ + /extends/, + /\s+/, + concat(IDENT_RE$1, "(", concat(/\./, IDENT_RE$1), ")*") + ], + scope: { + 1: "keyword", + 3: "title.class.inherited" + } + } + ] + }; + + const CLASS_REFERENCE = { + relevance: 0, + match: /\b[A-Z][a-z]+([A-Z][a-z]+)*/, + className: "title.class", + keywords: { + _: [ + // se we still get relevance credit for JS library classes + ...TYPES, + ...ERROR_TYPES + ] + } + }; + + const USE_STRICT = { + label: "use_strict", + className: 'meta', + relevance: 10, + begin: /^\s*['"]use (strict|asm)['"]/ + }; + + const FUNCTION_DEFINITION = { + variants: [ + { + match: [ + /function/, + /\s+/, + IDENT_RE$1, + /(?=\s*\()/ + ] + }, + // anonymous function + { + match: [ + /function/, + /\s*(?=\()/ + ] + } + ], + className: { + 1: "keyword", + 3: "title.function" + }, + label: "func.def", + contains: [PARAMS], + illegal: /%/ + }; + + const UPPER_CASE_CONSTANT = { + relevance: 0, + match: /\b[A-Z][A-Z_]+\b/, + className: "variable.constant" + }; + + function noneOf(list) { + return concat("(?!", list.join("|"), ")"); + } + + const FUNCTION_CALL = { + match: concat( + /\b/, + noneOf([ + ...BUILT_IN_GLOBALS, + "super" + ]), + IDENT_RE$1, lookahead(/\(/)), + className: "title.function", + relevance: 0 + }; + + const PROPERTY_ACCESS = { + begin: concat(/\./, lookahead( + concat(IDENT_RE$1, /(?![0-9A-Za-z$_(])/) + )), + end: IDENT_RE$1, + excludeBegin: true, + keywords: "prototype", + className: "property", + relevance: 0 + }; + + const GETTER_OR_SETTER = { + match: [ + /get|set/, + /\s+/, + IDENT_RE$1, + /(?=\()/ + ], + className: { + 1: "keyword", + 3: "title.function" + }, + contains: [ + { // eat to avoid empty params + begin: /\(\)/ + }, + PARAMS + ] + }; + + const FUNC_LEAD_IN_RE = '(\\(' + + '[^()]*(\\(' + + '[^()]*(\\(' + + '[^()]*' + + '\\)[^()]*)*' + + '\\)[^()]*)*' + + '\\)|' + hljs.UNDERSCORE_IDENT_RE + ')\\s*=>'; + + const FUNCTION_VARIABLE = { + match: [ + /const|var|let/, /\s+/, + IDENT_RE$1, /\s*/, + /=\s*/, + lookahead(FUNC_LEAD_IN_RE) + ], + className: { + 1: "keyword", + 3: "title.function" + }, + contains: [ + PARAMS + ] + }; + + return { + name: 'Javascript', + aliases: ['js', 'jsx', 'mjs', 'cjs'], + keywords: KEYWORDS$1, + // this will be extended by TypeScript + exports: { PARAMS_CONTAINS }, + illegal: /#(?![$_A-z])/, + contains: [ + hljs.SHEBANG({ + label: "shebang", + binary: "node", + relevance: 5 + }), + USE_STRICT, + hljs.APOS_STRING_MODE, + hljs.QUOTE_STRING_MODE, + HTML_TEMPLATE, + CSS_TEMPLATE, + TEMPLATE_STRING, + COMMENT, + NUMBER, + CLASS_REFERENCE, + { + className: 'attr', + begin: IDENT_RE$1 + lookahead(':'), + relevance: 0 + }, + FUNCTION_VARIABLE, + { // "value" container + begin: '(' + hljs.RE_STARTERS_RE + '|\\b(case|return|throw)\\b)\\s*', + keywords: 'return throw case', + relevance: 0, + contains: [ + COMMENT, + hljs.REGEXP_MODE, + { + className: 'function', + // we have to count the parens to make sure we actually have the + // correct bounding ( ) before the =>. There could be any number of + // sub-expressions inside also surrounded by parens. + begin: FUNC_LEAD_IN_RE, + returnBegin: true, + end: '\\s*=>', + contains: [ + { + className: 'params', + variants: [ + { + begin: hljs.UNDERSCORE_IDENT_RE, + relevance: 0 + }, + { + className: null, + begin: /\(\s*\)/, + skip: true + }, + { + begin: /\(/, + end: /\)/, + excludeBegin: true, + excludeEnd: true, + keywords: KEYWORDS$1, + contains: PARAMS_CONTAINS + } + ] + } + ] + }, + { // could be a comma delimited list of params to a function call + begin: /,/, + relevance: 0 + }, + { + match: /\s+/, + relevance: 0 + }, + { // JSX + variants: [ + { begin: FRAGMENT.begin, end: FRAGMENT.end }, + { + begin: XML_TAG.begin, + // we carefully check the opening tag to see if it truly + // is a tag and not a false positive + 'on:begin': XML_TAG.isTrulyOpeningTag, + end: XML_TAG.end + } + ], + subLanguage: 'xml', + contains: [ + { + begin: XML_TAG.begin, + end: XML_TAG.end, + skip: true, + contains: ['self'] + } + ] + } + ], + }, + FUNCTION_DEFINITION, + { + // prevent this from getting swallowed up by function + // since they appear "function like" + beginKeywords: "while if switch catch for" + }, + { + // we have to count the parens to make sure we actually have the correct + // bounding ( ). There could be any number of sub-expressions inside + // also surrounded by parens. + begin: '\\b(?!function)' + hljs.UNDERSCORE_IDENT_RE + + '\\(' + // first parens + '[^()]*(\\(' + + '[^()]*(\\(' + + '[^()]*' + + '\\)[^()]*)*' + + '\\)[^()]*)*' + + '\\)\\s*\\{', // end parens + returnBegin: true, + label: "func.def", + contains: [ + PARAMS, + hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1, className: "title.function" }) + ] + }, + // catch ... so it won't trigger the property rule below + { + match: /\.\.\./, + relevance: 0 + }, + PROPERTY_ACCESS, + // hack: prevents detection of keywords in some circumstances + // .keyword() + // $keyword = x + { + match: '\\$' + IDENT_RE$1, + relevance: 0 + }, + { + match: [/\bconstructor(?=\s*\()/], + className: { 1: "title.function" }, + contains: [PARAMS] + }, + FUNCTION_CALL, + UPPER_CASE_CONSTANT, + CLASS_OR_EXTENDS, + GETTER_OR_SETTER, + { + match: /\$[(.]/ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something` + } + ] + }; + } + + /* + Language: JSON + Description: JSON (JavaScript Object Notation) is a lightweight data-interchange format. + Author: Ivan Sagalaev + Website: http://www.json.org + Category: common, protocols, web + */ + + function json(hljs) { + const ATTRIBUTE = { + className: 'attr', + begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/, + relevance: 1.01 + }; + const PUNCTUATION = { + match: /[{}[\],:]/, + className: "punctuation", + relevance: 0 + }; + // normally we would rely on `keywords` for this but using a mode here allows us + // to use the very tight `illegal: \S` rule later to flag any other character + // as illegal indicating that despite looking like JSON we do not truly have + // JSON and thus improve false-positively greatly since JSON will try and claim + // all sorts of JSON looking stuff + const LITERALS = { + beginKeywords: [ + "true", + "false", + "null" + ].join(" ") + }; + + return { + name: 'JSON', + contains: [ + ATTRIBUTE, + PUNCTUATION, + hljs.QUOTE_STRING_MODE, + LITERALS, + hljs.C_NUMBER_MODE, + hljs.C_LINE_COMMENT_MODE, + hljs.C_BLOCK_COMMENT_MODE + ], + illegal: '\\S' + }; + } + + + /** @type LanguageFn */ + function xml(hljs) { + // Element names can contain letters, digits, hyphens, underscores, and periods + const TAG_NAME_RE = concat(/[A-Z_]/, optional(/[A-Z0-9_.-]*:/), /[A-Z0-9_.-]*/); + const XML_IDENT_RE = /[A-Za-z0-9._:-]+/; + const XML_ENTITIES = { + className: 'symbol', + begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/ + }; + const XML_META_KEYWORDS = { + begin: /\s/, + contains: [ + { + className: 'keyword', + begin: /#?[a-z_][a-z1-9_-]+/, + illegal: /\n/ + } + ] + }; + const XML_META_PAR_KEYWORDS = hljs.inherit(XML_META_KEYWORDS, { + begin: /\(/, + end: /\)/ + }); + const APOS_META_STRING_MODE = hljs.inherit(hljs.APOS_STRING_MODE, { + className: 'string' + }); + const QUOTE_META_STRING_MODE = hljs.inherit(hljs.QUOTE_STRING_MODE, { + className: 'string' + }); + const TAG_INTERNALS = { + endsWithParent: true, + illegal: /`]+/ + } + ] + } + ] + } + ] + }; + return { + name: 'HTML, XML', + aliases: [ + 'html', + 'xhtml', + 'rss', + 'atom', + 'xjb', + 'xsd', + 'xsl', + 'plist', + 'wsf', + 'svg' + ], + case_insensitive: true, + contains: [ + { + className: 'meta', + begin: //, + relevance: 10, + contains: [ + XML_META_KEYWORDS, + QUOTE_META_STRING_MODE, + APOS_META_STRING_MODE, + XML_META_PAR_KEYWORDS, + { + begin: /\[/, + end: /\]/, + contains: [ + { + className: 'meta', + begin: //, + contains: [ + XML_META_KEYWORDS, + XML_META_PAR_KEYWORDS, + QUOTE_META_STRING_MODE, + APOS_META_STRING_MODE + ] + } + ] + } + ] + }, + hljs.COMMENT( + //, + { + relevance: 10 + } + ), + { + begin: //, + relevance: 10 + }, + XML_ENTITIES, + { + className: 'meta', + begin: /<\?xml/, + end: /\?>/, + relevance: 10 + }, + { + className: 'tag', + /* + The lookahead pattern (?=...) ensures that 'begin' only matches + ')/, + end: />/, + keywords: { + name: 'style' + }, + contains: [TAG_INTERNALS], + starts: { + end: /<\/style>/, + returnEnd: true, + subLanguage: [ + 'css', + 'xml' + ] + } + }, + { + className: 'tag', + // See the comment in the