biz9-logic 3.2.15 → 3.2.18

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 +22 -1
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='3.4.2'
1
+ VERSION='3.4.5'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -124,6 +124,26 @@ class Obj {
124
124
  return get_cloud_filter_obj_main(data_type,filter,sort_by,page_current,page_size);
125
125
  }
126
126
  };
127
+ class Cat {
128
+ static get_title_by_type = (data_type) => {
129
+ switch (data_type) {
130
+ case DataType.DT_EVENT:
131
+ return "Event";
132
+ break;
133
+ case DataType.DT_GALLERY:
134
+ return "Gallery";
135
+ break;
136
+ case DataType.DT_PRODUCT:
137
+ return "Product";
138
+ break;
139
+ case DataType.DT_SERVICE:
140
+ return "Service";
141
+ break;
142
+ default:
143
+ return "Blank";
144
+ }
145
+ }
146
+ };
127
147
  class CMS {
128
148
  static Tab_Edit_Title_General = 'general';
129
149
  static Tab_Edit_Title_Photo = 'photo';
@@ -210,5 +230,6 @@ module.exports = {
210
230
  Url,
211
231
  BiZ_Url,
212
232
  Obj,
213
- CMS
233
+ CMS,
234
+ Cat
214
235
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "3.2.15",
3
+ "version": "3.2.18",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"