cavalion-vcl 1.1.62 → 1.1.65

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/.md CHANGED
@@ -1,13 +1,22 @@
1
1
  * [CHANGELOG.md]() - [README.md]() - [package.json]()
2
2
  * [Workspace<vcl>](/Library/vcl-comps/devtools/Workspace$/vcl.js)
3
3
 
4
+ # `0519` vcl/Factory `#CVLN-20220519-1`
5
+
6
+ * how is the implicit base determined in `["", {}, []]`
7
+
8
+ >> require("vcl/Factory!devtools/App<code>");
9
+ => Factory.load
10
+ => Factory.prototype.load
11
+
4
12
  # `0417` prototypes
5
13
 
6
- > * [App](src/prototypes/:.js) - << _#window is instantiated here (weirdly not in .desktop)_
14
+ > * [App](src/prototypes/:.js) - <= _#window is instantiated here (weirdly not in .desktop)_
7
15
  * [.console](src/prototypes/App:.js) << _hotkeys_ _probably deprecated_
8
16
  * [.desktop](src/prototypes/App:.js) << _#client [ui/forms/Portal<>]()_ _used at all?_
9
17
  * [.framework7](src/prototypes/App:.js) -[.scaffold](src/prototypes/App:.js)
10
- * [.v1](src/prototypes/App:.js) - << _#client [ui/forms/Portal<>]()_ _(used by cavalion-code and veldoffice-vcl-comps)_
18
+ * [.v1](src/prototypes/App:.js) - <= _#client [ui/forms/Portal<>]()_ _(used by cavalion-code and veldoffice-vcl-comps)_
19
+ * [.v2](src/prototypes/App:.js) - <= _Main<>_
11
20
  * [.glassy](src/prototypes/App:.js) [.openform](src/prototypes/App:.js) [.toast](src/prototypes/App:.js)
12
21
  * [ui](src/prototypes/:/)
13
22
  * [Form](src/prototypes/ui/:.js) - [forms](src/prototypes/ui/:/)
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ### 2022/06/27 - 1.1.65
2
+
3
+ * 52c79ea - fixes bug where applyClasses was called without a _node being allocated/available
4
+ * 90bba04 - foolproofing rendering (vcl/ui/List) while reseting array during usage - needs performance boost with splice
5
+ * 89db212 - tweaking vertical-align
6
+
7
+ ### 2022/06/23 - 1.1.64
8
+
9
+ * ed814eb - updating
10
+ * ca79dd6 - preventDefault when clicked A
11
+ * 0e3c6e0 - rendering pending values as -
12
+ * d1aeeae - fixes executesAction enum item No -> no
13
+ * 2239c5b - cosmetic (5 days ago) <Ralph Kazemier>
14
+
15
+ ### 2022/05/31 - 1.1.63
16
+
17
+ * 837510b - fixes document.title bug
18
+ * [prototypes/ui/forms/Portal](src/:.js)
19
+
1
20
  ### 2022/05/02 - 1.1.62
2
21
 
3
22
  * 4de4125 - Clogging
@@ -7,7 +26,6 @@
7
26
  ### 2022/04/25 - 1.1.61
8
27
 
9
28
  * √ CVLN-20220429-2
10
-
11
29
  * 3a78624 - ui/List: onNodeCreated was triggered while visible=false
12
30
  * c7288af - prototypes/App<>: further implementing/refactoring App.glassy
13
31
  * 849fc6c - vcl/Application: Making sure app is #0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cavalion-vcl",
3
- "version": "1.1.62",
3
+ "version": "1.1.65",
4
4
  "description": "Visual Component Library for vcl-comps",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/Control.js CHANGED
@@ -718,15 +718,12 @@ define(function(require) {
718
718
  var classes = this.determineClasses();
719
719
  delete this._computedStyle;
720
720
  classes = String.trim(classes.join(" "));
721
- //if(classes !== this._node.className) {
721
+ if(this._node) {
722
722
  this._node.className = classes;
723
723
  if(this.inDocument()) {
724
724
  this.layoutChanged();
725
725
  }
726
- // } else {
727
- // console.trace("Control.applyClasses-blocked",
728
- // this.hashCode(), this);
729
- // }
726
+ }
730
727
  },
731
728
  toggleClass: function(classes) {
732
729
  if(this._classes_rt === null) {
@@ -1642,7 +1639,7 @@ this._updateCalls = this._updateCalls || 0; this._updateCalls++;
1642
1639
  if(value) {
1643
1640
  this.setFocus();
1644
1641
  } else {
1645
- this.blur();
1642
+ this.blur(); // setFocus(false) - this seems broken
1646
1643
  }
1647
1644
  },
1648
1645
  getDraggable: function() {
@@ -10,6 +10,9 @@ var FormContainer = require("vcl/ui/FormContainer");
10
10
  var img = document.body.childNodes[0];
11
11
  if(img && img.nodeName === "IMG") {
12
12
  img.parentNode.removeChild(img);
13
+ } else {
14
+ img = document.body.querySelector("img.loading_");
15
+ img && img.parentNode.removeChild(img);
13
16
  }
14
17
 
15
18
  var scope = this.scope(), delegate;
@@ -176,13 +176,7 @@ var Component = require("vcl/Component");
176
176
 
177
177
  this.override({
178
178
  setCaption: function (value) {
179
- this.setTimeout("updateCaption", function() {
180
- if(value.indexOf("<i") === 0) {
181
- // alert(value);
182
- value = value.substring(value.indexOf("</i>") + 5);
183
- }
184
- document.title = String.format("%s", value);
185
- }, 250);
179
+ this.setTimeout("updateCaption", () => document.title = String.format("%s", value), 250);
186
180
  return this.inherited(arguments);
187
181
  }
188
182
  });
@@ -292,6 +286,7 @@ var Component = require("vcl/Component");
292
286
  uri = uri.replace(/<>/, "<" + keys.specializer + ">");
293
287
  }
294
288
 
289
+ tab.setTextReflects("innerHTML");
295
290
  tab.override({
296
291
  setText: function () {
297
292
  var r = this.inherited(arguments);
package/src/ui/Input.js CHANGED
@@ -305,7 +305,7 @@ define(function(require) {
305
305
  properties: {
306
306
  "executesAction": {
307
307
  /** @overrides ../Element.properties.executesAction */
308
- type: ["No", "onClick", "onEnterPressed"]
308
+ type: ["no", "onClick", "onEnterPressed"]
309
309
  },
310
310
  "detectChangeTimeout": {
311
311
  type: Type.INTEGER
package/src/ui/List.js CHANGED
@@ -404,8 +404,10 @@ define(function(require) {
404
404
  if(column._attribute !== "") {
405
405
  orgValue = (value = this._source.getAttributeValue(column._attribute, row));
406
406
  }
407
-
408
- if(column._wantsNullValues || (value !== null && value !== undefined)) {
407
+
408
+ if(value === Source.Pending) {
409
+ value = "-";
410
+ } else if(column._wantsNullValues || (value !== null && value !== undefined)) {
409
411
  if(column._displayFormat !== "") {
410
412
  value = String.format(column._displayFormat, value);
411
413
  }
@@ -494,12 +496,14 @@ define(function(require) {
494
496
  setCount: function(value) {
495
497
  if(this._count !== value) {
496
498
  this._count = value;
499
+ this.setSelection([]);
497
500
  if(value === 0) {
498
501
  this.resetColumnAutoWidth();
499
502
  }
500
- this.setSelection([]);
501
503
  //this.alignControls();
502
504
  this.render_();
505
+ // this.nextTick(() => this._body.updateRows());
506
+ // value && this._body.updateRows();
503
507
  }
504
508
  },
505
509
 
@@ -124,7 +124,7 @@ if(firstRow !== 0 && delta === 0) return;
124
124
  },
125
125
  updateRows: function(range) {
126
126
  if(this.hasOwnProperty("_controls")) {
127
- for(var i = 0; i < this._controls.length; ++i) {
127
+ for(var i = 0; i < Math.min(this._controls.length, this._parent.getCount()); ++i) {
128
128
  var c = this._controls[i];
129
129
  if(c._node !== null) {
130
130
  // Update row when the range is unknown or it's rowIndex is within the range
package/src/ui/Popup.js CHANGED
@@ -33,7 +33,7 @@ define(function(require) {
33
33
  if(!HtmlElement.hasParent(evt.target, popup._node)) {
34
34
  popup.close();
35
35
  evt.bubbleUp = false;
36
- //evt.preventDefault();
36
+ evt.preventDefault(); // for A's
37
37
  }
38
38
  }
39
39
  });
package/src/ui/Tabs.js CHANGED
@@ -16,7 +16,7 @@ define(function(require) {
16
16
  'padding-left': "2px",
17
17
  'padding-bottom': "0",
18
18
 
19
- 'z-index': "999", // Ace really f's things up
19
+ // 'z-index': "999", // Ace really f's things up
20
20
 
21
21
  "&.gradient":{
22
22
  "background-image": "-webkit-gradient(linear, 0% 0%, 0% 100%, from(#F5F5F5), to(#E5E5E5))",
package/src/ui/Tree.js CHANGED
@@ -64,7 +64,7 @@ define(function (require) {
64
64
  // height: "20px",
65
65
  width: "12px",
66
66
  // "padding-top": "3px",
67
- "vertical-align": "text-top",
67
+ // "vertical-align": "text-top",
68
68
  "&::before": {
69
69
  content: "' '",
70
70
  display: "inline-block",