biz9-logic 4.8.219 → 4.8.221

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 CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='6.9.9'
1
+ VERSION='7.0.1'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -191,6 +191,31 @@ class Page_Logic {
191
191
  }
192
192
  return item_list;
193
193
  }
194
+ static get_section_property = (type,section_id,value_id,is_title) =>{
195
+ //page['section_1_value_1_type'] -- / text,note,photo,list
196
+ //page['section_1_value_1_text_value']
197
+ //page['section_1_value_1_note_value']
198
+ //page['section_1_value_1_photo_value']
199
+ //page['section_1_value_1_list_value_1']
200
+ //page['section_1_value_1_list_value_2']
201
+ //page['section_1_value_1_list_value_3']
202
+ let type_str = '';
203
+ switch(type){
204
+ case 'text':
205
+ type_str = 'text';
206
+ break;
207
+ case 'note':
208
+ type_str = 'note';
209
+ break;
210
+ case 'photo':
211
+ type_str = 'photo';
212
+ break;
213
+ case 'list':
214
+ type_str = 'list';
215
+ break;
216
+ };
217
+ return !is_title ? 'section_'+section_id + '_value_'+value_id + "_" + type_str + "_value" : 'Section '+section_id + ' Value '+value_id + " " + Str.get_title(type_str);
218
+ }
194
219
  }
195
220
  class Order_Logic {
196
221
  static get_order_number = () => {
@@ -893,6 +918,10 @@ class PageType {
893
918
 
894
919
  }
895
920
  class DataType {
921
+
922
+ static SECTION='section';
923
+ static SUB_SECTION='sub_section';
924
+
896
925
  static ACTIVITY='activity_biz';
897
926
  static APP='app_biz';
898
927
  static BLANK='blank_biz';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.219",
3
+ "version": "4.8.221",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -31,10 +31,9 @@ describe("connect", () => {
31
31
  series([
32
32
 
33
33
  function(call) {
34
- console.log('FULL-NAME-START');
35
- console.log(User_Logic.get_full_name('',''));
36
-
37
- console.log('FULL-NAME-END');
34
+ console.log('PAGE-SECTION-START');
35
+ console.log(Page_Logic.get_section_property('text',1,2,false));
36
+ console.log('PAGE-SECTION-END');
38
37
 
39
38
 
40
39
  //console.log('PRODUCT-URL-START');