biz9-logic 4.8.226 → 4.8.228

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.0.6'
1
+ VERSION='7.0.8'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -199,14 +199,12 @@ class Page_Logic {
199
199
  {value:'list',label:'List'},
200
200
  ];
201
201
  };
202
- static get_section_property = (type,section_id,value_id,is_title) =>{
202
+ static get_section_property_type = (section_id,value_id,is_title) =>{
203
203
  //page['section_1_value_1_type'] -- / text,note,photo,list
204
- //page['section_1_value_1_text_value']
205
- //page['section_1_value_1_note_value']
206
- //page['section_1_value_1_photo_value']
207
- //page['section_1_value_1_list_value_1']
208
- //page['section_1_value_1_list_value_2']
209
- //page['section_1_value_1_list_value_3']
204
+ return !is_title ? 'section_'+section_id + '_value_'+value_id + "_type" : 'Section '+section_id + ' Value '+value_id;
205
+ }
206
+ static get_section_property_type_value = (type,section_id,value_id) =>{
207
+ //page['section_1_value_1_[text,note,photo,list]_value']
210
208
  let type_str = '';
211
209
  switch(type){
212
210
  case 'text':
@@ -222,7 +220,7 @@ class Page_Logic {
222
220
  type_str = 'list';
223
221
  break;
224
222
  };
225
- return !is_title ? 'section_'+section_id + '_value_'+value_id + "_" + type_str + "_value" : 'Section '+section_id + ' Value '+value_id + " " + Str.get_title(type_str);
223
+ return 'section_'+section_id + '_value_'+value_id + "_" + type_str + "_value";
226
224
  }
227
225
 
228
226
  static get_section_property_list = (type,section_id,value_id,row_id) =>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.226",
3
+ "version": "4.8.228",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -32,8 +32,9 @@ describe("connect", () => {
32
32
 
33
33
  function(call) {
34
34
  console.log('PAGE-SECTION-START');
35
- console.log(Page_Logic.get_page_section_type_list());
36
- //console.log(Page_Logic.get_section_property('text',1,2,false));
35
+ //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_value('text',1,2,true));
37
38
  //console.log(Page_Logic.get_section_property_list(FieldType.SECTION_PROPERTY_TYPE_LIST_VALUE,1,2,3));
38
39
  //console.log(Page_Logic.get_section_property_list(FieldType.SECTION_PROPERTY_TYPE_LIST_FIELD,1,2,3));
39
40
  console.log('PAGE-SECTION-END');