json-object-editor 0.10.443 → 0.10.444

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 (52) hide show
  1. package/css/jif/Read Me.txt +5 -5
  2. package/css/jif/demo-files/demo.css +153 -153
  3. package/css/jif/demo-files/demo.js +30 -30
  4. package/css/jif/demo.html +285 -285
  5. package/css/jif/fonts/joeiconfont.svg +24 -24
  6. package/css/jif/ie7/ie7.css +45 -45
  7. package/css/jif/ie7/ie7.js +46 -46
  8. package/css/jif/selection.json +573 -573
  9. package/css/joe.css +12 -12
  10. package/css/jquery-ui-1.10.4.custom.min.css +5 -5
  11. package/css/jquery-ui.min.css +6 -6
  12. package/css/jquery.timepicker.css +72 -72
  13. package/es5-build/web-components/account-info.js +136 -136
  14. package/es5-build/web-components/capp-components.js +160 -160
  15. package/es5-build/web-components/capp-panel.js +85 -85
  16. package/es5-build/web-components/capp-view.js +73 -73
  17. package/es5-build/web-components/joe-autocomplete.js +149 -149
  18. package/es5-build/web-components/joe-button.js +132 -132
  19. package/es5-build/web-components/joe-card.js +92 -92
  20. package/es5-build/web-components/joe-component.js +74 -74
  21. package/es5-build/web-components/joe-field.js +70 -70
  22. package/es5-build/web-components/joe-list-item.js +176 -176
  23. package/es5-build/web-components/joe-user-cube.js +100 -100
  24. package/es5-build/web-components/report-components.js +133 -133
  25. package/grunt/build +86 -86
  26. package/grunt/package-lock.json +9105 -9105
  27. package/grunt/package.json +47 -47
  28. package/grunt/src +86 -86
  29. package/js/joe.js +10 -10
  30. package/js/leaflet.js +8 -8
  31. package/js/libs/adapter-latest.js +4400 -4400
  32. package/js/libs/craydent-1.9.2.js +11741 -11741
  33. package/js/libs/craydent-upload-2.0.0.js +394 -394
  34. package/js/libs/hammer.min.208.js +6 -6
  35. package/js/libs/jquery-3.5.1.min.js +2 -2
  36. package/js/libs/moment.min.js +6 -6
  37. package/js/native-shim.js +46 -46
  38. package/js/plugins/c3/c3.min.js +5 -5
  39. package/js/plugins/c3/d3.v3.min.js +4 -4
  40. package/js/plugins/threejs/Detector.js +78 -78
  41. package/js/plugins/threejs/LICENSE +21 -21
  42. package/js/plugins/threejs/MTLLoader.js +417 -417
  43. package/js/plugins/threejs/OBJLoader.js +564 -564
  44. package/js/plugins/threejs/OrbitControls.js +1037 -1037
  45. package/js/plugins/threejs/README.md +9 -9
  46. package/js/plugins/threejs/assets/female-croupier-2013-03-26.mtl +3 -3
  47. package/js/plugins/threejs/index.html +178 -178
  48. package/js/plugins/threejs/three.js +41507 -41507
  49. package/package.json +2 -2
  50. package/server/modules/Server.js +21 -1
  51. package/server/plugins/chatgpt-assistants.js +359 -359
  52. package/server/plugins/chatgpt-tools.js +79 -79
@@ -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);
@@ -1,86 +1,86 @@
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 CappPanel =
30
- /*#__PURE__*/
31
- function (_HTMLElement) {
32
- _inherits(CappPanel, _HTMLElement);
33
-
34
- function CappPanel() {
35
- _classCallCheck(this, CappPanel);
36
-
37
- return _possibleConstructorReturn(this, _getPrototypeOf(CappPanel).call(this));
38
- }
39
-
40
- _createClass(CappPanel, [{
41
- key: "connectedCallback",
42
- value: function connectedCallback() {
43
- var self = this; // create a simple instance
44
- // by default, it only adds horizontal recognizers
45
-
46
- var mc = new Hammer(this, {
47
- threshold: 20
48
- }); // listen to events...
49
-
50
- mc.on("panleft panright", function (ev) {
51
- switch (ev.type) {
52
- case "panleft":
53
- capp.special.joeicon(false);
54
- break;
55
-
56
- case "panright":
57
- capp.special.joeicon(true);
58
- break;
59
- }
60
- });
61
- }
62
- }, {
63
- key: "render",
64
- value: function render() {
65
- var atts = _joe.Components.getAttributes(this);
66
- }
67
- }, {
68
- key: "attributeChangedCallback",
69
- value: function attributeChangedCallback(attr, oldValue, newValue) {
70
- this.render();
71
- }
72
- }, {
73
- key: "disconnectedCallback",
74
- value: function disconnectedCallback() {}
75
- }], [{
76
- key: "observedAttributes",
77
- get: function get() {
78
- return [];
79
- }
80
- }]);
81
-
82
- return CappPanel;
83
- }(_wrapNativeSuper(HTMLElement)); // window.addEventListener('load', function(){
84
-
85
-
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 CappPanel =
30
+ /*#__PURE__*/
31
+ function (_HTMLElement) {
32
+ _inherits(CappPanel, _HTMLElement);
33
+
34
+ function CappPanel() {
35
+ _classCallCheck(this, CappPanel);
36
+
37
+ return _possibleConstructorReturn(this, _getPrototypeOf(CappPanel).call(this));
38
+ }
39
+
40
+ _createClass(CappPanel, [{
41
+ key: "connectedCallback",
42
+ value: function connectedCallback() {
43
+ var self = this; // create a simple instance
44
+ // by default, it only adds horizontal recognizers
45
+
46
+ var mc = new Hammer(this, {
47
+ threshold: 20
48
+ }); // listen to events...
49
+
50
+ mc.on("panleft panright", function (ev) {
51
+ switch (ev.type) {
52
+ case "panleft":
53
+ capp.special.joeicon(false);
54
+ break;
55
+
56
+ case "panright":
57
+ capp.special.joeicon(true);
58
+ break;
59
+ }
60
+ });
61
+ }
62
+ }, {
63
+ key: "render",
64
+ value: function render() {
65
+ var atts = _joe.Components.getAttributes(this);
66
+ }
67
+ }, {
68
+ key: "attributeChangedCallback",
69
+ value: function attributeChangedCallback(attr, oldValue, newValue) {
70
+ this.render();
71
+ }
72
+ }, {
73
+ key: "disconnectedCallback",
74
+ value: function disconnectedCallback() {}
75
+ }], [{
76
+ key: "observedAttributes",
77
+ get: function get() {
78
+ return [];
79
+ }
80
+ }]);
81
+
82
+ return CappPanel;
83
+ }(_wrapNativeSuper(HTMLElement)); // window.addEventListener('load', function(){
84
+
85
+
86
86
  window.customElements.define("capp-panel", CappPanel); // })