cavalion-vcl 1.1.37 → 1.1.40

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 2021/12/07 - 1.1.40
2
+
3
+ * Updating
4
+
1
5
  ### 2021/10/23 - 1.1.37
2
6
 
3
7
  * Updating
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cavalion-vcl",
3
- "version": "1.1.37",
3
+ "version": "1.1.40",
4
4
  "description": "Visual Component Library for vcl-comps",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/data/Array.js CHANGED
@@ -21,6 +21,7 @@ define(function(require) {
21
21
  _notifications: null,
22
22
 
23
23
  _onUpdate: null,
24
+ _onChange: null,
24
25
  _onBusyChanged: null,
25
26
  _onActiveChanged: null,
26
27
  _onGetAttributeValue: null,
@@ -86,6 +87,8 @@ define(function(require) {
86
87
  this.fire("onActiveChanged", args);
87
88
  } else if(event === SourceEvent.updated) {
88
89
  this.fire("onUpdate", args);
90
+ } else if(event === SourceEvent.changed) {
91
+ this.fire("onChange", args);
89
92
  }
90
93
  this.emit("event", arguments);
91
94
  },
@@ -329,6 +332,9 @@ define(function(require) {
329
332
  type: Type.EVENT
330
333
  },
331
334
  "onUpdate": {
335
+ type: Type.EVENT
336
+ },
337
+ "onChange": {
332
338
  type: Type.EVENT
333
339
  },
334
340
  "onFilterObject": {
@@ -368,7 +368,7 @@ define(function(require) {
368
368
  this.notify(SourceEvent.layoutChanged);
369
369
  }
370
370
 
371
- if(this._arr === null) {
371
+ if(this._arr === null || this._arr.length === 0) {
372
372
  if(!res.hasOwnProperty("count")) {
373
373
  if(this._count === false && page === 0 && res.instances.length === 0) {
374
374
  res.count = 0;
@@ -380,10 +380,13 @@ define(function(require) {
380
380
  }
381
381
  while(instances.length < res.count) {
382
382
  instances.push(Source.Pending);
383
+ }
384
+ while(tuples.length < res.count) {
383
385
  tuples.push(Source.Pending);
384
386
  }
385
387
  this._tuples = tuples;
386
388
  this.setArray(instances);
389
+ this.notify(SourceEvent.updated, {}); // TODO #VA-20211123-1
387
390
  } else {
388
391
  for(var i = 0; i < size; ++i) {
389
392
  this._array[i + base] = instances[i];
@@ -420,7 +423,6 @@ define(function(require) {
420
423
  this.requestWhenNeeded();
421
424
  },
422
425
  setAll: function(entity, attributes, where, groupBy, having, orderBy, count, refresh /*refresh and count default to true*/) {
423
- console.debug("setAll");
424
426
  if(this._request !== null) {
425
427
  var me = this;
426
428
  console.debug(this._entity, "waiting for current request to finish");
@@ -0,0 +1 @@
1
+ <svg height="512" viewBox="0 0 48 58" width="512" xmlns="http://www.w3.org/2000/svg"><g id="Page-1" fill="none" fill-rule="evenodd"><g id="110---File" fill-rule="nonzero"><path id="Shape" d="m0 54v-50c0-2.209139 1.790861-4 4-4h40c2.209139 0 4 1.790861 4 4v42l-12 12h-32c-2.209139 0-4-1.790861-4-4z" fill="#b0d3f0"/><path id="Shape" d="m36 58v-8c0-2.209139 1.790861-4 4-4h8z" fill="#90bae1"/><g fill="#285680"><path id="Shape" d="m8 7h-2c-.55228475 0-1-.44771525-1-1s.44771525-1 1-1h2c.55228475 0 1 .44771525 1 1s-.44771525 1-1 1z"/><path id="Shape" d="m42 7h-30c-.5522847 0-1-.44771525-1-1s.4477153-1 1-1h30c.5522847 0 1 .44771525 1 1s-.4477153 1-1 1z"/><path id="Shape" d="m8 13h-2c-.55228475 0-1-.4477153-1-1s.44771525-1 1-1h2c.55228475 0 1 .4477153 1 1s-.44771525 1-1 1z"/><path id="Shape" d="m35 13h-23c-.5522847 0-1-.4477153-1-1s.4477153-1 1-1h23c.5522847 0 1 .4477153 1 1s-.4477153 1-1 1z"/><path id="Shape" d="m8 19h-2c-.55228475 0-1-.4477153-1-1s.44771525-1 1-1h2c.55228475 0 1 .4477153 1 1s-.44771525 1-1 1z"/><path id="Shape" d="m28 19h-16c-.5522847 0-1-.4477153-1-1s.4477153-1 1-1h16c.5522847 0 1 .4477153 1 1s-.4477153 1-1 1z"/></g><path id="Shape" d="m44 37c-.5522847 0-1-.4477153-1-1v-16c0-.5522847.4477153-1 1-1s1 .4477153 1 1v16c0 .5522847-.4477153 1-1 1z" fill="#ecf0f1"/><path id="Shape" d="m44 43c-.5522847 0-1-.4477153-1-1v-2c0-.5522847.4477153-1 1-1s1 .4477153 1 1v2c0 .5522847-.4477153 1-1 1z" fill="#ecf0f1"/></g></g></svg>
@@ -0,0 +1,39 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
5
+ <polygon style="fill:#FF9100;" points="203.237,105.572 171.357,45.792 0,45.792 0,466.208 447.129,466.208 450.305,105.572 "/>
6
+ <polygon style="fill:#F77E00;" points="257,105.572 257,466.208 447.129,466.208 450.305,105.572 "/>
7
+ <polygon style="fill:#FFDA2D;" points="0,466.208 447.129,466.208 512,197.236 94.256,197.236 "/>
8
+ <polygon style="fill:#FDBF00;" points="257,197.236 257,466.208 447.129,466.208 512,197.236 "/>
9
+ <g>
10
+ </g>
11
+ <g>
12
+ </g>
13
+ <g>
14
+ </g>
15
+ <g>
16
+ </g>
17
+ <g>
18
+ </g>
19
+ <g>
20
+ </g>
21
+ <g>
22
+ </g>
23
+ <g>
24
+ </g>
25
+ <g>
26
+ </g>
27
+ <g>
28
+ </g>
29
+ <g>
30
+ </g>
31
+ <g>
32
+ </g>
33
+ <g>
34
+ </g>
35
+ <g>
36
+ </g>
37
+ <g>
38
+ </g>
39
+ </svg>
@@ -38,9 +38,9 @@ define(function(require) {
38
38
  }
39
39
  },
40
40
  ".autowidth": {
41
+ // "max-width": "350px",
41
42
  visibility: "hidden",
42
43
  height: "0px",
43
- // "max-width": "350px",
44
44
  "overflow": "hidden"
45
45
  }
46
46
  },
package/src/ui/Tree.js CHANGED
@@ -61,10 +61,10 @@ define(function (require) {
61
61
  },
62
62
  ">.icon": {
63
63
  display: "inline-block",
64
- height: "20px",
64
+ // height: "20px",
65
65
  width: "12px",
66
- "padding-top": "3px",
67
- "vertical-align": "top",
66
+ // "padding-top": "3px",
67
+ "vertical-align": "text-top",
68
68
  "&::before": {
69
69
  content: "' '",
70
70
  display: "inline-block",