cavalion-vcl 1.1.52 → 1.1.53

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 ADDED
@@ -0,0 +1,46 @@
1
+ * [CHANGELOG.md]() - [README.md]() - [Workspace<vcl>](/Library/vcl-comps/devtools/Workspace$/vcl.js)
2
+
3
+ ---
4
+
5
+ ### `2022/04/03`
6
+
7
+ * ...
8
+
9
+ # classes
10
+
11
+ * [Factory](src/:.js) [.parse](src/Factory:.js) - [Reader](src/:.js) - [Writer](src/:.js)
12
+ * [CssRules](src/:.js) - [Listeners](src/:.js)
13
+ * [Component](src/:.js) [.query](src/Component:.js)
14
+ * [Action](src/:.js) - [Application](src/:.js)
15
+ * [data](src/:/) / [Array](src/data/:.js)
16
+ * [entities](src/:/) / [Query](src/entities/:.js) - [Instance](src/entities/:.js)
17
+ * [Control](src/:.js) < [ui](src/:/) /
18
+ * [Element](src/ui/:.js) < [LargeIcon](src/ui/:.js) << _smdl - alert_
19
+ * [Button](src/ui/:.js) < [PopupButton](src/ui/:.js)
20
+ * [Select](src/ui/:.js)
21
+ * [Input](src/ui/:.js) < [Checkbox](src/ui/:.js) - [Combobox](src/ui/:.js) - [DatePicker](src/ui/:.js)
22
+ * [Container](src/ui/:.js)
23
+ * [Group](src/ui/:.js)
24
+ * [Bar](src/ui/:.js)
25
+ * [CheckGroup](src/ui/:.js)
26
+ * [Panel](src/ui/:.js)
27
+ * [Popup](src/ui/:.js) - [Ace](src/ui/:.js) - [Console](src/ui/:.js)
28
+ * [Form](src/ui/:.js) - [FormContainer](src/ui/:.js)
29
+ * [List](src/ui/:.js) | [ListColumn](src/ui/:.js) - [ListBody](src/ui/:.js) - [ListFooter](src/ui/:.js) - [ListHeader](src/ui/:.js) - [ListRow](src/ui/:.js)
30
+ * [Node](src/ui/:.js) [.closeable](src/ui/Node:.js)
31
+ * [Sizer](src/ui/:.js) - [Tab](src/ui/:.js) - [Tabs](src/ui/:.js) - [Tree](src/ui/:.js)
32
+
33
+ # prototypes
34
+
35
+ > * [App](src/prototypes/:.js) << _#window is instantiated here (weirdly not in .desktop)_
36
+ * [.console](src/prototypes/App:.js)
37
+ * [.desktop](src/prototypes/App:.js)
38
+ * [.framework7](src/prototypes/App:.js)
39
+ * [.openform](src/prototypes/App:.js)
40
+ * [.scaffold](src/prototypes/App:.js)
41
+ * [.toast](src/prototypes/App:.js)
42
+ * [.v1](src/prototypes/App:.js)
43
+
44
+ # resources
45
+
46
+ * ...
package/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
+ ### 2022/04/05 - 1.1.53*
2
+
3
+ - **ui/List**: Adding support for UTC to `formatDate()`
4
+
1
5
  ### 2022/03/28 - 1.1.52
2
6
 
3
- * Refactoring animation classes for glassy-containers
7
+ * Refactoring animation classes for `glassy-overlay` containers
4
8
 
5
9
  ### 2022/03/22
6
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cavalion-vcl",
3
- "version": "1.1.52",
3
+ "version": "1.1.53",
4
4
  "description": "Visual Component Library for vcl-comps",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -5,7 +5,7 @@ var HtmlElement = require("util/HtmlElement");
5
5
  var Element = require("vcl/ui/Element");
6
6
  var FormContainer = require("vcl/ui/FormContainer");
7
7
 
8
- $(["./App.openform.toast"], {
8
+ [["./App.openform.toast"], {
9
9
  onDispatchChildEvent: function(component, name, evt, f, args) {
10
10
  if(name === "touchstart") {
11
11
  if(!Fullscreen.hasRequested()) {
@@ -34,9 +34,9 @@ $(["./App.openform.toast"], {
34
34
  state && state.restore && state.restore(state);
35
35
  }
36
36
  }, [
37
- $i("window", [
38
- $("vcl/ui/FormContainer", "client", {
37
+ ["#window", [
38
+ ["vcl/ui/FormContainer", "client", {
39
39
  formUri: "./ui/forms/Portal<>"
40
- }),
41
- ])
42
- ]);
40
+ }],
41
+ ]]
42
+ ]];
package/src/ui/List.js CHANGED
@@ -460,12 +460,15 @@ define(function(require) {
460
460
  return (value instanceof Date) || (typeof value === "string" &&
461
461
  value.length === 24 && value.endsWith("Z"));
462
462
  },
463
- formatDate: function(value) {
463
+ formatDate: function(value, opts) {
464
464
  if(!(value instanceof Date)) value = new Date(value);
465
+ if(opts && opts.utc) {
466
+ return String.format("%d/%02d/%02d %02d:%02d", value.getUTCFullYear(), value.getUTCMonth() + 1,
467
+ value.getUTCDate(), value.getUTCHours(), value.getUTCMinutes());
468
+ }
469
+
465
470
  return String.format("%d/%02d/%02d %02d:%02d", value.getFullYear(), value.getMonth() + 1,
466
471
  value.getDate(), value.getHours(), value.getMinutes());
467
- // return String.format("%d/%02d/%d %02d:%02d", value.getDate(), value.getMonth() + 1,
468
- // value.getFullYear(), value.getHours(), value.getMinutes());
469
472
  },
470
473
 
471
474
  getBodyWidth: function() {