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.
- package/biz9_config +1 -1
- package/index.js +9 -2
- package/package.json +1 -1
package/biz9_config
CHANGED
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
|
-
|
|
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){
|