biz9-logic 4.8.174 → 4.8.176

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 +9 -2
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='6.5.4'
1
+ VERSION='6.5.6'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -10,6 +10,7 @@ class Message {
10
10
  static SUCCESS="Update Success";
11
11
  static LOGIN_GOOD="Login Success";
12
12
  static LOGIN_BAD="Login Incorrect";
13
+ static ERROR_TITLE="Please Enter A Valid Title";
13
14
  }
14
15
  class TemplateType {
15
16
  static PRIMARY='primary';
@@ -916,8 +917,14 @@ class PageType {
916
917
  static VALUE_19='value_19';
917
918
  }
918
919
  class DataType {
919
- static get_data_type_title = (data_type) => {
920
- return (!data_type) ? "" : String(Str.get_title(data_type.replaceAll('_',' ').replaceAll('dt','').replace('biz',''))).trim();
920
+ static get_data_type_title = (data_type,get_plural) => {
921
+ let r_data_type = (!data_type) ? "" : String(Str.get_title(data_type.replaceAll('_',' ').replaceAll('dt','').replace('biz',''))).trim();
922
+ if(get_plural){
923
+ return r_data_type + "s";
924
+ }else{
925
+ return r_data_type;
926
+ }
927
+
921
928
  }
922
929
  static get_data_type_url(data_type){
923
930
  switch(data_type){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.174",
3
+ "version": "4.8.176",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"