biz9-logic 4.8.230 → 4.8.232

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='7.1.0'
1
+ VERSION='7.1.2'
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,9 @@ class Page_Logic {
191
191
  }
192
192
  return item_list;
193
193
  };
194
+ static get_page_section = (type,page_id,section_id,value_id,value,item_list) => {
195
+ return {type:type,page_id:page_id,section_id:section_id,value_id:value_id,value:value,item_list:item_list};
196
+ };
194
197
  static get_section_type_list = () => {
195
198
  return [
196
199
  {value:'text',label:'Text'},
@@ -1590,8 +1593,8 @@ class Page_Url {
1590
1593
  let action_url=PageType.get_title(PageType.HOME);
1591
1594
  return get_cloud_url_main(app_id,url,action_url,params);
1592
1595
  };
1593
- static post_section = (app_id,url,page_id,params) => {
1594
- let action_url="page/post_section/"+page_id;
1596
+ static post_section = (app_id,url,type,page_id,section_id,value_id,params) => {
1597
+ let action_url="page/post_section/"+type+"/"+page_id+"/"+section_id+"/"+value_id;
1595
1598
  return get_cloud_url_main(app_id,url,action_url,params);
1596
1599
  };
1597
1600
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.230",
3
+ "version": "4.8.232",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -31,13 +31,14 @@ describe("connect", () => {
31
31
  series([
32
32
 
33
33
  function(call) {
34
- console.log('PAGE-SECTION-START');
34
+ //console.log('PAGE-SECTION-START');
35
+ console.log(Page_Logic.get_page_section('text',1,2,3,'cool',null));
35
36
  //console.log(Page_Logic.get_page_section_type_list());
36
- console.log(Page_Logic.get_section_property_type(1,2,true));
37
+ //console.log(Page_Logic.get_section_property_type(1,2,true));
37
38
  //console.log(Page_Logic.get_section_property_type_value('text',1,2,true));
38
- //console.log(Page_Logic.get_section_property_list(FieldType.SECTION_PROPERTY_TYPE_LIST_VALUE,1,2,3));
39
+ //console.log(Page_Logic.get_section_property_type_list(FieldType.SECTION_PROPERTY_TYPE_LIST_VALUE,1,2,3));
39
40
  //console.log(Page_Logic.get_section_property_list(FieldType.SECTION_PROPERTY_TYPE_LIST_FIELD,1,2,3));
40
- console.log('PAGE-SECTION-END');
41
+ //console.log('PAGE-SECTION-END');
41
42
 
42
43
 
43
44
  //console.log('PRODUCT-URL-START');