json-object-editor 0.9.89 → 0.10.0

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.
Files changed (62) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/app.js +5 -4
  3. package/css/jif/Read Me.txt +5 -5
  4. package/css/jif/demo-files/demo.css +153 -153
  5. package/css/jif/demo-files/demo.js +30 -30
  6. package/css/jif/demo.html +285 -285
  7. package/css/jif/fonts/joeiconfont.svg +24 -24
  8. package/css/jif/ie7/ie7.css +45 -45
  9. package/css/jif/ie7/ie7.js +46 -46
  10. package/css/jif/selection.json +573 -573
  11. package/css/joe-styles.css +5 -1
  12. package/css/joe.css +11 -7
  13. package/css/jquery-ui-1.10.4.custom.min.css +5 -5
  14. package/css/jquery-ui.min.css +6 -6
  15. package/css/jquery.timepicker.css +72 -72
  16. package/es5-build/capp/capp.js +1083 -1083
  17. package/es5-build/js/JsonObjectEditor_es5.jquery.craydent.js +11047 -11047
  18. package/es5-build/web-components/account-info.js +136 -136
  19. package/es5-build/web-components/capp-components.js +160 -160
  20. package/es5-build/web-components/capp-panel.js +85 -85
  21. package/es5-build/web-components/capp-view.js +73 -73
  22. package/es5-build/web-components/joe-autocomplete.js +149 -149
  23. package/es5-build/web-components/joe-button.js +132 -132
  24. package/es5-build/web-components/joe-card.js +92 -92
  25. package/es5-build/web-components/joe-component.js +74 -74
  26. package/es5-build/web-components/joe-field.js +70 -70
  27. package/es5-build/web-components/joe-list-item.js +176 -176
  28. package/es5-build/web-components/joe-user-cube.js +100 -100
  29. package/es5-build/web-components/report-components.js +133 -133
  30. package/grunt/build +86 -86
  31. package/grunt/package-lock.json +6301 -2489
  32. package/grunt/package.json +47 -47
  33. package/grunt/src +86 -86
  34. package/js/JsonObjectEditor.jquery.craydent.js +3 -2
  35. package/js/joe-full.js +11 -10
  36. package/js/joe.js +12 -11
  37. package/js/joe_es5.js +11056 -11056
  38. package/js/jquery.timepicker.min.js +1 -1
  39. package/js/leaflet.js +8 -8
  40. package/js/libs/adapter-latest.js +4400 -4400
  41. package/js/libs/craydent-1.9.2.js +11741 -11741
  42. package/js/libs/craydent-upload-2.0.0.js +394 -394
  43. package/js/libs/hammer.min.208.js +6 -6
  44. package/js/libs/jquery-3.5.1.min.js +2 -2
  45. package/js/libs/moment.min.js +6 -6
  46. package/js/native-shim.js +46 -46
  47. package/js/plugins/c3/c3.min.js +5 -5
  48. package/js/plugins/c3/d3.v3.min.js +4 -4
  49. package/js/plugins/threejs/Detector.js +78 -78
  50. package/js/plugins/threejs/LICENSE +21 -21
  51. package/js/plugins/threejs/MTLLoader.js +417 -417
  52. package/js/plugins/threejs/OBJLoader.js +564 -564
  53. package/js/plugins/threejs/OrbitControls.js +1037 -1037
  54. package/js/plugins/threejs/README.md +9 -9
  55. package/js/plugins/threejs/assets/female-croupier-2013-03-26.mtl +3 -3
  56. package/js/plugins/threejs/index.html +178 -178
  57. package/js/plugins/threejs/three.js +41507 -41507
  58. package/package copy.json +62 -0
  59. package/package.json +12 -13
  60. package/server/schemas/ledger.js +52 -16
  61. package/web-components/joe-card.js +5 -0
  62. package/projectFilesBackup/.idea/workspace.xml +0 -424
@@ -1,137 +1,137 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
-
5
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
-
7
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
8
-
9
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10
-
11
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12
-
13
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
14
-
15
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
16
-
17
- function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
18
-
19
- function isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
20
-
21
- function _construct(Parent, args, Class) { if (isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
22
-
23
- function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
24
-
25
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
26
-
27
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
-
29
- var AccountInfo =
30
- /*#__PURE__*/
31
- function (_HTMLElement) {
32
- _inherits(AccountInfo, _HTMLElement);
33
-
34
- function AccountInfo() {
35
- _classCallCheck(this, AccountInfo);
36
-
37
- return _possibleConstructorReturn(this, _getPrototypeOf(AccountInfo).call(this));
38
- }
39
-
40
- _createClass(AccountInfo, [{
41
- key: "connectedCallback",
42
- value: function connectedCallback() {
43
- this.plaidid = this.getAttribute('plaid-id');
44
- this.start_date = new Date(this.getAttribute('start-date')).format('Y-m-d');
45
- this.end_date = new Date(this.getAttribute('end-date')).format('Y-m-d');
46
- this.acctName = this.getAttribute('acct-name');
47
- this.acctId = this.getAttribute('acct-id');
48
- this.joe_id = this.getAttribute('joe-id');
49
- this.render();
50
- var styles = "\n account-info {\n display: block;\n padding: 0;\n background: #fff;\n /* border: 1px solid #eee; */\n margin: 5px auto;\n border-bottom: 1px solid #ccc;\n padding-bottom: 5px;\n }\n acct-row {\n display: block;\n font-weight: bold;\n font-size: 14px;\n padding: 4px;\n }\n acct-row.charge{background: rgba(255,0,0,.1);}\n acct-row.payment{background: rgba(0,255,0,.1);}\n acct-row span.trans-count {\n float: right;\n font-weight: normal;\n }\n \n ";
51
- document.getElementById(_joe.Components.styleTag).innerHTML += styles;
52
- }
53
- }, {
54
- key: "render",
55
- value: function render() {
56
- var self = this;
57
- var data = {
58
- bank: self.plaidid,
59
- start_date: self.start_date,
60
- end_date: self.end_date
61
- };
62
- self.acctId && (data.account_ids = self.acctId);
63
- $.ajax({
64
- url: '/API/plugin/money/transactions?',
65
- data: data,
66
- success: function success(data) {
67
- var transUrl = "/API/plugin/money/transactions?bank=" + self.plaidid + "&start_date=" + self.start_date + "&end_date=" + self.end_date + (self.acctId && "&account_ids=" + self.acctId || '');
68
-
69
- if (data.error) {
70
- this.innerHTML = data.error;
71
- return;
72
- }
73
-
74
- var transactions = data.transactions;
75
-
76
- if (self.acctId && self.acctId != "undefined") {
77
- transactions = data.transactions.filter(function (t) {
78
- return t.account_id == self.acctId;
79
- });
80
- }
81
-
82
- var summary = {
83
- total: {
84
- count: 0,
85
- sum: 0
86
- },
87
- charge: {
88
- count: 0,
89
- sum: 0
90
- },
91
- payment: {
92
- count: 0,
93
- sum: 0
94
- }
95
- };
96
- transactions.map(function (tran) {
97
- summary.total.count++;
98
- summary.total.sum += tran.amount;
99
-
100
- if (tran.amount > 0) {
101
- summary.charge.count++;
102
- summary.charge.sum += tran.amount;
103
- } else {
104
- summary.payment.count++;
105
- summary.payment.sum += tran.amount;
106
- }
107
- });
108
-
109
- function renderRow(obj, label) {
110
- var money = ('$' + summary[obj].sum.toFixed(2)).replace('$-', '-$');
111
- return "<acct-row class=\"" + obj + "\">" + money + "\n <span class=\"trans-count\">" + summary[obj].count + " " + (label || 'transactions') + "</span>\n </acct-row>";
112
- }
113
-
114
- self.innerHTML = "<joe-subtitle>" + self.acctName + "</joe-subtitle>\n <joe-subtext>" + self.joe_id + "</joe-subtext>\n " + renderRow('charge', 'charges') + "\n " + renderRow('payment', 'payments') + "\n " + renderRow('total', 'transactions') + "\n <a href=\"" + transUrl + "\" target=\"_blank\" class=\"joe-subtext\">view transactions json</a>\n ";
115
- }
116
- });
117
- }
118
- }, {
119
- key: "attributeChangedCallback",
120
- value: function attributeChangedCallback(attr, oldValue, newValue) {
121
- this.render();
122
- }
123
- }, {
124
- key: "disconnectedCallback",
125
- value: function disconnectedCallback() {}
126
- }], [{
127
- key: "observedAttributes",
128
- get: function get() {
129
- return [];
130
- }
131
- }]);
132
-
133
- return AccountInfo;
134
- }(_wrapNativeSuper(HTMLElement)); // window.addEventListener('load', function(){
135
-
136
-
1
+ "use strict";
2
+
3
+ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
+
7
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
8
+
9
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10
+
11
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12
+
13
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
14
+
15
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
16
+
17
+ function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
18
+
19
+ function isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
20
+
21
+ function _construct(Parent, args, Class) { if (isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
22
+
23
+ function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
24
+
25
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
26
+
27
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
+
29
+ var AccountInfo =
30
+ /*#__PURE__*/
31
+ function (_HTMLElement) {
32
+ _inherits(AccountInfo, _HTMLElement);
33
+
34
+ function AccountInfo() {
35
+ _classCallCheck(this, AccountInfo);
36
+
37
+ return _possibleConstructorReturn(this, _getPrototypeOf(AccountInfo).call(this));
38
+ }
39
+
40
+ _createClass(AccountInfo, [{
41
+ key: "connectedCallback",
42
+ value: function connectedCallback() {
43
+ this.plaidid = this.getAttribute('plaid-id');
44
+ this.start_date = new Date(this.getAttribute('start-date')).format('Y-m-d');
45
+ this.end_date = new Date(this.getAttribute('end-date')).format('Y-m-d');
46
+ this.acctName = this.getAttribute('acct-name');
47
+ this.acctId = this.getAttribute('acct-id');
48
+ this.joe_id = this.getAttribute('joe-id');
49
+ this.render();
50
+ var styles = "\n account-info {\n display: block;\n padding: 0;\n background: #fff;\n /* border: 1px solid #eee; */\n margin: 5px auto;\n border-bottom: 1px solid #ccc;\n padding-bottom: 5px;\n }\n acct-row {\n display: block;\n font-weight: bold;\n font-size: 14px;\n padding: 4px;\n }\n acct-row.charge{background: rgba(255,0,0,.1);}\n acct-row.payment{background: rgba(0,255,0,.1);}\n acct-row span.trans-count {\n float: right;\n font-weight: normal;\n }\n \n ";
51
+ document.getElementById(_joe.Components.styleTag).innerHTML += styles;
52
+ }
53
+ }, {
54
+ key: "render",
55
+ value: function render() {
56
+ var self = this;
57
+ var data = {
58
+ bank: self.plaidid,
59
+ start_date: self.start_date,
60
+ end_date: self.end_date
61
+ };
62
+ self.acctId && (data.account_ids = self.acctId);
63
+ $.ajax({
64
+ url: '/API/plugin/money/transactions?',
65
+ data: data,
66
+ success: function success(data) {
67
+ var transUrl = "/API/plugin/money/transactions?bank=" + self.plaidid + "&start_date=" + self.start_date + "&end_date=" + self.end_date + (self.acctId && "&account_ids=" + self.acctId || '');
68
+
69
+ if (data.error) {
70
+ this.innerHTML = data.error;
71
+ return;
72
+ }
73
+
74
+ var transactions = data.transactions;
75
+
76
+ if (self.acctId && self.acctId != "undefined") {
77
+ transactions = data.transactions.filter(function (t) {
78
+ return t.account_id == self.acctId;
79
+ });
80
+ }
81
+
82
+ var summary = {
83
+ total: {
84
+ count: 0,
85
+ sum: 0
86
+ },
87
+ charge: {
88
+ count: 0,
89
+ sum: 0
90
+ },
91
+ payment: {
92
+ count: 0,
93
+ sum: 0
94
+ }
95
+ };
96
+ transactions.map(function (tran) {
97
+ summary.total.count++;
98
+ summary.total.sum += tran.amount;
99
+
100
+ if (tran.amount > 0) {
101
+ summary.charge.count++;
102
+ summary.charge.sum += tran.amount;
103
+ } else {
104
+ summary.payment.count++;
105
+ summary.payment.sum += tran.amount;
106
+ }
107
+ });
108
+
109
+ function renderRow(obj, label) {
110
+ var money = ('$' + summary[obj].sum.toFixed(2)).replace('$-', '-$');
111
+ return "<acct-row class=\"" + obj + "\">" + money + "\n <span class=\"trans-count\">" + summary[obj].count + " " + (label || 'transactions') + "</span>\n </acct-row>";
112
+ }
113
+
114
+ self.innerHTML = "<joe-subtitle>" + self.acctName + "</joe-subtitle>\n <joe-subtext>" + self.joe_id + "</joe-subtext>\n " + renderRow('charge', 'charges') + "\n " + renderRow('payment', 'payments') + "\n " + renderRow('total', 'transactions') + "\n <a href=\"" + transUrl + "\" target=\"_blank\" class=\"joe-subtext\">view transactions json</a>\n ";
115
+ }
116
+ });
117
+ }
118
+ }, {
119
+ key: "attributeChangedCallback",
120
+ value: function attributeChangedCallback(attr, oldValue, newValue) {
121
+ this.render();
122
+ }
123
+ }, {
124
+ key: "disconnectedCallback",
125
+ value: function disconnectedCallback() {}
126
+ }], [{
127
+ key: "observedAttributes",
128
+ get: function get() {
129
+ return [];
130
+ }
131
+ }]);
132
+
133
+ return AccountInfo;
134
+ }(_wrapNativeSuper(HTMLElement)); // window.addEventListener('load', function(){
135
+
136
+
137
137
  window.customElements.define("account-info", AccountInfo); // })
@@ -1,161 +1,161 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
-
5
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
-
7
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
8
-
9
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10
-
11
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12
-
13
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
14
-
15
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
16
-
17
- function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
18
-
19
- function isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
20
-
21
- function _construct(Parent, args, Class) { if (isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
22
-
23
- function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
24
-
25
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
26
-
27
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
-
29
- var cappWrapper = document.querySelector("capp-wrapper");
30
-
31
- var CappView =
32
- /*#__PURE__*/
33
- function (_HTMLElement) {
34
- _inherits(CappView, _HTMLElement);
35
-
36
- function CappView() {
37
- _classCallCheck(this, CappView);
38
-
39
- return _possibleConstructorReturn(this, _getPrototypeOf(CappView).call(this));
40
- }
41
-
42
- _createClass(CappView, [{
43
- key: "connectedCallback",
44
- value: function connectedCallback() {
45
- var self = this; // create a simple instance
46
- // by default, it only adds horizontal recognizers
47
-
48
- self.addEventListener("click", function () {
49
- capp.special.joeicon(false);
50
- });
51
- }
52
- }, {
53
- key: "render",
54
- value: function render() {
55
- var atts = _joe.Components.getAttributes(this);
56
- }
57
- }, {
58
- key: "attributeChangedCallback",
59
- value: function attributeChangedCallback(attr, oldValue, newValue) {
60
- this.render();
61
- }
62
- }, {
63
- key: "disconnectedCallback",
64
- value: function disconnectedCallback() {}
65
- }], [{
66
- key: "observedAttributes",
67
- get: function get() {
68
- return [];
69
- }
70
- }]);
71
-
72
- return CappView;
73
- }(_wrapNativeSuper(HTMLElement));
74
-
75
- window.customElements.define("capp-view", CappView);
76
-
77
- var CappDashboard =
78
- /*#__PURE__*/
79
- function (_HTMLElement2) {
80
- _inherits(CappDashboard, _HTMLElement2);
81
-
82
- function CappDashboard() {
83
- _classCallCheck(this, CappDashboard);
84
-
85
- return _possibleConstructorReturn(this, _getPrototypeOf(CappDashboard).call(this));
86
- }
87
-
88
- _createClass(CappDashboard, [{
89
- key: "connectedCallback",
90
- value: function connectedCallback() {
91
- var self = this; // create a simple instance
92
- // by default, it only adds horizontal recognizers
93
-
94
- self.addEventListener("touchstart", function () {
95
- if (cappWrapper.classList.contains('small-size')) {
96
- capp.special.joeicon(false);
97
- }
98
- });
99
- }
100
- }, {
101
- key: "render",
102
- value: function render() {
103
- var atts = _joe.Components.getAttributes(this);
104
- }
105
- }, {
106
- key: "attributeChangedCallback",
107
- value: function attributeChangedCallback(attr, oldValue, newValue) {
108
- this.render();
109
- }
110
- }, {
111
- key: "disconnectedCallback",
112
- value: function disconnectedCallback() {}
113
- }], [{
114
- key: "observedAttributes",
115
- get: function get() {
116
- return [];
117
- }
118
- }]);
119
-
120
- return CappDashboard;
121
- }(_wrapNativeSuper(HTMLElement));
122
-
123
- window.customElements.define("capp-dashboard", CappDashboard);
124
- /* CAPP-PANEL */
125
-
126
- var CappPanel =
127
- /*#__PURE__*/
128
- function (_HTMLElement3) {
129
- _inherits(CappPanel, _HTMLElement3);
130
-
131
- function CappPanel() {
132
- _classCallCheck(this, CappPanel);
133
-
134
- return _possibleConstructorReturn(this, _getPrototypeOf(CappPanel).call(this));
135
- }
136
-
137
- _createClass(CappPanel, [{
138
- key: "connectedCallback",
139
- value: function connectedCallback() {
140
- var self = this;
141
- var mc = new Hammer(this, {
142
- threshold: 20
143
- });
144
- mc.on("panleft panright", function (ev) {
145
- switch (ev.type) {
146
- case "panleft":
147
- capp.special.joeicon(false);
148
- break;
149
-
150
- case "panright":
151
- capp.special.joeicon(true);
152
- break;
153
- }
154
- });
155
- }
156
- }]);
157
-
158
- return CappPanel;
159
- }(_wrapNativeSuper(HTMLElement));
160
-
1
+ "use strict";
2
+
3
+ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
+
7
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
8
+
9
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10
+
11
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12
+
13
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
14
+
15
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
16
+
17
+ function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
18
+
19
+ function isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
20
+
21
+ function _construct(Parent, args, Class) { if (isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
22
+
23
+ function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
24
+
25
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
26
+
27
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
+
29
+ var cappWrapper = document.querySelector("capp-wrapper");
30
+
31
+ var CappView =
32
+ /*#__PURE__*/
33
+ function (_HTMLElement) {
34
+ _inherits(CappView, _HTMLElement);
35
+
36
+ function CappView() {
37
+ _classCallCheck(this, CappView);
38
+
39
+ return _possibleConstructorReturn(this, _getPrototypeOf(CappView).call(this));
40
+ }
41
+
42
+ _createClass(CappView, [{
43
+ key: "connectedCallback",
44
+ value: function connectedCallback() {
45
+ var self = this; // create a simple instance
46
+ // by default, it only adds horizontal recognizers
47
+
48
+ self.addEventListener("click", function () {
49
+ capp.special.joeicon(false);
50
+ });
51
+ }
52
+ }, {
53
+ key: "render",
54
+ value: function render() {
55
+ var atts = _joe.Components.getAttributes(this);
56
+ }
57
+ }, {
58
+ key: "attributeChangedCallback",
59
+ value: function attributeChangedCallback(attr, oldValue, newValue) {
60
+ this.render();
61
+ }
62
+ }, {
63
+ key: "disconnectedCallback",
64
+ value: function disconnectedCallback() {}
65
+ }], [{
66
+ key: "observedAttributes",
67
+ get: function get() {
68
+ return [];
69
+ }
70
+ }]);
71
+
72
+ return CappView;
73
+ }(_wrapNativeSuper(HTMLElement));
74
+
75
+ window.customElements.define("capp-view", CappView);
76
+
77
+ var CappDashboard =
78
+ /*#__PURE__*/
79
+ function (_HTMLElement2) {
80
+ _inherits(CappDashboard, _HTMLElement2);
81
+
82
+ function CappDashboard() {
83
+ _classCallCheck(this, CappDashboard);
84
+
85
+ return _possibleConstructorReturn(this, _getPrototypeOf(CappDashboard).call(this));
86
+ }
87
+
88
+ _createClass(CappDashboard, [{
89
+ key: "connectedCallback",
90
+ value: function connectedCallback() {
91
+ var self = this; // create a simple instance
92
+ // by default, it only adds horizontal recognizers
93
+
94
+ self.addEventListener("touchstart", function () {
95
+ if (cappWrapper.classList.contains('small-size')) {
96
+ capp.special.joeicon(false);
97
+ }
98
+ });
99
+ }
100
+ }, {
101
+ key: "render",
102
+ value: function render() {
103
+ var atts = _joe.Components.getAttributes(this);
104
+ }
105
+ }, {
106
+ key: "attributeChangedCallback",
107
+ value: function attributeChangedCallback(attr, oldValue, newValue) {
108
+ this.render();
109
+ }
110
+ }, {
111
+ key: "disconnectedCallback",
112
+ value: function disconnectedCallback() {}
113
+ }], [{
114
+ key: "observedAttributes",
115
+ get: function get() {
116
+ return [];
117
+ }
118
+ }]);
119
+
120
+ return CappDashboard;
121
+ }(_wrapNativeSuper(HTMLElement));
122
+
123
+ window.customElements.define("capp-dashboard", CappDashboard);
124
+ /* CAPP-PANEL */
125
+
126
+ var CappPanel =
127
+ /*#__PURE__*/
128
+ function (_HTMLElement3) {
129
+ _inherits(CappPanel, _HTMLElement3);
130
+
131
+ function CappPanel() {
132
+ _classCallCheck(this, CappPanel);
133
+
134
+ return _possibleConstructorReturn(this, _getPrototypeOf(CappPanel).call(this));
135
+ }
136
+
137
+ _createClass(CappPanel, [{
138
+ key: "connectedCallback",
139
+ value: function connectedCallback() {
140
+ var self = this;
141
+ var mc = new Hammer(this, {
142
+ threshold: 20
143
+ });
144
+ mc.on("panleft panright", function (ev) {
145
+ switch (ev.type) {
146
+ case "panleft":
147
+ capp.special.joeicon(false);
148
+ break;
149
+
150
+ case "panright":
151
+ capp.special.joeicon(true);
152
+ break;
153
+ }
154
+ });
155
+ }
156
+ }]);
157
+
158
+ return CappPanel;
159
+ }(_wrapNativeSuper(HTMLElement));
160
+
161
161
  window.customElements.define("capp-panel", CappPanel);