biz9-logic 4.8.221 → 4.8.223

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.1'
1
+ VERSION='7.0.3'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -216,6 +216,28 @@ class Page_Logic {
216
216
  };
217
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
218
  }
219
+
220
+ static get_section_property_list = (type,section_id,value_id,row_id) =>{
221
+ //page['section_1_value_1_type'] -- / list
222
+ //page['section_1_value_1_list_field_1']
223
+ //page['section_1_value_1_list_value_1']
224
+ //page['section_1_value_1_list_field_2']
225
+ //page['section_1_value_1_list_value_2']
226
+ //page['section_1_value_1_list_field_3']
227
+ //page['section_1_value_1_list_value_3']
228
+ // section_1_value_2_list_field_value_3
229
+ let type_str = '';
230
+ switch(type){
231
+ case 'field':
232
+ type_str = 'field';
233
+ break;
234
+ case 'value':
235
+ type_str = 'value';
236
+ break;
237
+ };
238
+
239
+ return 'section_'+section_id + '_value_'+value_id + "_list_" + type_str +"_" +row_id;
240
+ }
219
241
  }
220
242
  class Order_Logic {
221
243
  static get_order_number = () => {
@@ -829,6 +851,14 @@ class FieldType {
829
851
 
830
852
  static ACTIVITY_TYPE_LOGIN="login";
831
853
  static ACTIVITY_TYPE_REGISTER="register";
854
+
855
+ static SECTION_PROPERTY_TYPE_TEXT="text";
856
+ static SECTION_PROPERTY_TYPE_NOTE="note";
857
+ static SECTION_PROPERTY_TYPE_PHOTO="photo";
858
+ static SECTION_PROPERTY_TYPE_LIST="list";
859
+
860
+ static SECTION_PROPERTY_TYPE_LIST_FIELD="field";
861
+ static SECTION_PROPERTY_TYPE_LIST_VALUE="value";
832
862
  }
833
863
  class Social {
834
864
  static FACEBOOK_URL="https://facebook.com/";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.221",
3
+ "version": "4.8.223",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -32,7 +32,9 @@ describe("connect", () => {
32
32
 
33
33
  function(call) {
34
34
  console.log('PAGE-SECTION-START');
35
- console.log(Page_Logic.get_section_property('text',1,2,false));
35
+ //console.log(Page_Logic.get_section_property('text',1,2,false));
36
+ console.log(Page_Logic.get_section_property_list(FieldType.SECTION_PROPERTY_TYPE_LIST_VALUE,1,2,3));
37
+ console.log(Page_Logic.get_section_property_list(FieldType.SECTION_PROPERTY_TYPE_LIST_FIELD,1,2,3));
36
38
  console.log('PAGE-SECTION-END');
37
39
 
38
40