biz9-logic 4.0.35 → 4.0.37

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='4.3.5'
1
+ VERSION='4.3.7'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -37,7 +37,7 @@ class Template{
37
37
  class Page{
38
38
  static get_test = (option) =>{
39
39
  if(!option){
40
- option = {item_count:9,page_count:9,get_value:false,get_item:false};
40
+ option = {item_count:9,page_count:9,get_value:false,get_item:false,value_count:20};
41
41
  }
42
42
  if(!option.item_count){
43
43
  option.item_count=10;
@@ -59,7 +59,7 @@ class Page{
59
59
  class Product{
60
60
  static get_test = (option) =>{
61
61
  if(!option){
62
- option = {item_count:9,product_count:9,get_value:false,get_item:false};
62
+ option = {item_count:9,product_count:9,get_value:false,get_item:false,value_count:20};
63
63
  }
64
64
  let product = DataItem.get_new_full_item(
65
65
  DataItem.get_new(DataType.PRODUCT,Number.get_id()),
@@ -101,7 +101,7 @@ class Product{
101
101
  for(let a=0;a<category_list.length;a++){
102
102
  for(let b=0;b<product_count;b++){
103
103
  item_count++;
104
- let product = Product.get_test({item_count:0,product_count:product_count,get_value:false,get_item:false});
104
+ let product = Product.get_test({item_count:0,product_count:product_count,get_value:false,get_item:false,value_count:20});
105
105
  product.category = category_list[Number.get_id(category_list.length-1)].title;
106
106
  product_list.push(product);
107
107
  }
@@ -112,7 +112,7 @@ class Product{
112
112
  class Service{
113
113
  static get_test = (option) =>{
114
114
  if(!option){
115
- option = {item_count:10,get_value:false,get_item:false};
115
+ option = {item_count:10,get_value:false,get_item:false,value_count:20};
116
116
  }
117
117
  if(!option.item_count){
118
118
  option.item_count=10;
@@ -178,7 +178,7 @@ class Service{
178
178
  class Event{
179
179
  static get_test = (option) =>{
180
180
  if(!option){
181
- option = {item_count:9,get_value:false,get_item:false};
181
+ option = {item_count:9,get_value:false,get_item:false,value_count:20};
182
182
  }
183
183
  if(!option.item_count){
184
184
  option.item_count=10;
@@ -236,7 +236,7 @@ class Event{
236
236
  for(let a=0;a<category_list.length;a++){
237
237
  for(let b=0;b<event_count;b++){
238
238
  item_count++;
239
- let event = Event.get_test({item_count:0,event_count:event_count,get_value:false,get_item:false});
239
+ let event = Event.get_test({item_count:0,event_count:event_count,get_value:false,get_item:false,value_count:20});
240
240
  event.category = category_list[Number.get_id(category_list.length-1)].title;
241
241
  event_list.push(event);
242
242
  }
@@ -250,7 +250,7 @@ class Field{
250
250
  title="";
251
251
  }
252
252
  if(!option){
253
- option={get_value:true};
253
+ option={get_value:true,value_count:10};
254
254
  }
255
255
  let item = {
256
256
  date_create:new moment().toISOString(),
@@ -263,7 +263,12 @@ class Field{
263
263
  note : "Note "+String(Number.get_id())
264
264
  }
265
265
  if(option.get_value){
266
- for(let b = 1;b<20;b++){
266
+ if(!option.value_count){
267
+ option.value_count = 10;
268
+ }
269
+ console.log('rrr');
270
+ console.log(option.value_count);
271
+ for(let b = 1;b<parseInt(option.value_count);b++){
267
272
  item['value_'+String(b)] = 'value ' + String(b);
268
273
  }
269
274
  }
@@ -396,7 +401,7 @@ class DataType {
396
401
  class Blog_Post{
397
402
  static get_test = (option) =>{
398
403
  if(!option){
399
- option = {item_count:10,get_value:false,get_item:false};
404
+ option = {item_count:10,get_value:false,get_item:false,value_count:20};
400
405
  }
401
406
  if(!option.item_count){
402
407
  option.item_count=10;
@@ -419,7 +424,7 @@ class Blog_Post{
419
424
  };
420
425
  static get_test_list=(option)=>{
421
426
  if(!option){
422
- option = {blog_post_count:10,get_value:false,get_item:false};
427
+ option = {blog_post_count:10,get_value:false,get_item:false,value_count:20};
423
428
  }
424
429
  let item_list=[];
425
430
  for(let a=0;a<option.blog_post_count;a++){
@@ -447,7 +452,7 @@ class Blog_Post{
447
452
  for(let a=0;a<category_list.length;a++){
448
453
  for(let b=0;b<blog_post_count;b++){
449
454
  item_count++;
450
- let blog_post = Blog_Post.get_test({item_count:0,blog_post_count:blog_post_count,get_value:false,get_item:false});
455
+ let blog_post = Blog_Post.get_test({item_count:0,blog_post_count:blog_post_count,get_value:false,get_item:false,value_count:20});
451
456
  blog_post.category = category_list[Number.get_id(category_list.length-1)].title;
452
457
  blog_post_list.push(blog_post);
453
458
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.0.35",
3
+ "version": "4.0.37",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -38,11 +38,11 @@ describe("connect", () => {
38
38
  /* --CONFIG--END */
39
39
 
40
40
  /* --PAGE--START */
41
- //let page = Page.get_test("Home",{item_count:20,page_count:2,get_value:true,get_item:true})
41
+ let page = Page.get_test({item_count:2,page_count:2,get_value:true,get_item:true,value_count:50})
42
+ Log.w("Page",page);
42
43
  /*
43
44
  let page = Page.get_test({item_count:9,page_count:19,get_item:true,get_value:true})
44
45
  //let page = Page.get_test()
45
- Log.w("Page",page);
46
46
  Log.w("Page_section_1",page.section_1);
47
47
  Log.w("Page_section_1_section_1_section_1",page.section_1.section_1.section_1);
48
48
  */
@@ -75,9 +75,9 @@ describe("connect", () => {
75
75
  /* --PRODUCT--END */
76
76
 
77
77
  /* --EVENT--START */
78
- let event_list=Event.get_test_list({category_count:5,event_count:9,get_value:false,get_item:false});
78
+ //let event_list=Event.get_test_list({category_count:5,event_count:9,get_value:false,get_item:false});
79
79
  //let [category_list,event_list]=Event.get_test_list_by_category({category_count:5,event_count:9});
80
- Log.w('event_list',event_list);
80
+ //Log.w('event_list',event_list);
81
81
  //Log.w('category_list',category_list);
82
82
  /* --EVENT--END */
83
83