biz9-logic 4.8.173 → 4.8.175

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/biz9_config +1 -1
  2. package/index.js +8 -2
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='6.5.3'
1
+ VERSION='6.5.5'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -916,8 +916,14 @@ class PageType {
916
916
  static VALUE_19='value_19';
917
917
  }
918
918
  class DataType {
919
- static get_title = (data_type) => {
920
- return (!data_type) ? "" : String(Str.get_title(data_type.replaceAll('_',' ').replaceAll('dt','').replace('biz',''))).trim();
919
+ static get_data_type_title = (data_type,get_plural) => {
920
+ let r_data_type = (!data_type) ? "" : String(Str.get_title(data_type.replaceAll('_',' ').replaceAll('dt','').replace('biz',''))).trim();
921
+ if(get_plural){
922
+ return r_data_type + "s";
923
+ }else{
924
+ return r_data_type;
925
+ }
926
+
921
927
  }
922
928
  static get_data_type_url(data_type){
923
929
  switch(data_type){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.173",
3
+ "version": "4.8.175",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"