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,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); // })
@@ -1,74 +1,74 @@
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 CappView =
30
- /*#__PURE__*/
31
- function (_HTMLElement) {
32
- _inherits(CappView, _HTMLElement);
33
-
34
- function CappView() {
35
- _classCallCheck(this, CappView);
36
-
37
- return _possibleConstructorReturn(this, _getPrototypeOf(CappView).call(this));
38
- }
39
-
40
- _createClass(CappView, [{
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
- self.addEventListener('click', function () {
47
- capp.special.joeicon(false);
48
- });
49
- }
50
- }, {
51
- key: "render",
52
- value: function render() {
53
- var atts = _joe.Components.getAttributes(this);
54
- }
55
- }, {
56
- key: "attributeChangedCallback",
57
- value: function attributeChangedCallback(attr, oldValue, newValue) {
58
- this.render();
59
- }
60
- }, {
61
- key: "disconnectedCallback",
62
- value: function disconnectedCallback() {}
63
- }], [{
64
- key: "observedAttributes",
65
- get: function get() {
66
- return [];
67
- }
68
- }]);
69
-
70
- return CappView;
71
- }(_wrapNativeSuper(HTMLElement)); // window.addEventListener('load', function(){
72
-
73
-
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 CappView =
30
+ /*#__PURE__*/
31
+ function (_HTMLElement) {
32
+ _inherits(CappView, _HTMLElement);
33
+
34
+ function CappView() {
35
+ _classCallCheck(this, CappView);
36
+
37
+ return _possibleConstructorReturn(this, _getPrototypeOf(CappView).call(this));
38
+ }
39
+
40
+ _createClass(CappView, [{
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
+ self.addEventListener('click', function () {
47
+ capp.special.joeicon(false);
48
+ });
49
+ }
50
+ }, {
51
+ key: "render",
52
+ value: function render() {
53
+ var atts = _joe.Components.getAttributes(this);
54
+ }
55
+ }, {
56
+ key: "attributeChangedCallback",
57
+ value: function attributeChangedCallback(attr, oldValue, newValue) {
58
+ this.render();
59
+ }
60
+ }, {
61
+ key: "disconnectedCallback",
62
+ value: function disconnectedCallback() {}
63
+ }], [{
64
+ key: "observedAttributes",
65
+ get: function get() {
66
+ return [];
67
+ }
68
+ }]);
69
+
70
+ return CappView;
71
+ }(_wrapNativeSuper(HTMLElement)); // window.addEventListener('load', function(){
72
+
73
+
74
74
  window.customElements.define("capp-view", CappView); // })
@@ -1,150 +1,150 @@
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 JoeAutocomplete =
30
- /*#__PURE__*/
31
- function (_HTMLElement) {
32
- _inherits(JoeAutocomplete, _HTMLElement);
33
-
34
- function JoeAutocomplete() {
35
- _classCallCheck(this, JoeAutocomplete);
36
-
37
- return _possibleConstructorReturn(this, _getPrototypeOf(JoeAutocomplete).call(this));
38
- }
39
-
40
- _createClass(JoeAutocomplete, [{
41
- key: "connectedCallback",
42
- value: function connectedCallback() {
43
- var _this = this;
44
-
45
- var st = new Date().getTime();
46
- var self = this;
47
- this.classList.add('joe-autocomplete');
48
- this.schemaObj = _joe.schemas[this.getAttribute('schema')];
49
- this.field = this.getAttribute('field');
50
- this.itemId = this.getAttribute('itemId');
51
- this.idprop = this.getAttribute('idprop') || this.schemaObj.idprop;
52
- this.propObj = _joe.getField(this.field);
53
- this.joeIndex = this.getAttribute('joe-index');
54
- this.values = this.propObj.values;
55
-
56
- if (typeof this.values == "function") {
57
- this.values = this.values(_joe.current.object);
58
- }
59
-
60
- if ($.type(this.values) == 'string' && _joe.getDataset(this.values)) {
61
- this.values = _joe.getDataset(this.values);
62
- }
63
-
64
- this.lookup = {};
65
- this.autocompleteSpecs = this.propObj.autocomplete || {
66
- template: this.propObj.autocomplete_template || this.propObj.template || '<joe-title>${name}</joe-title><joe-subtext>${info}</joe-subtext>'
67
- };
68
- this.template = this.autocompleteSpecs.template;
69
- this.values.map(function (v) {
70
- var schema = v.itemtype && _joe.schemas[v.itemtype] || _this.schemaObj;
71
- var searchable = schema.searchable || _this.autocompleteSpecs.searchable || ['name', 'id', 'info'];
72
- var haystack = searchable.map(function (s) {
73
- return v[s];
74
- }).join(' ').replace(/,/, ' ').toLowerCase();
75
- _this.lookup[v[_this.idprop]] = haystack; //`${v.name} ${v.id} ${v.info} `.replace( /,/,' ').toLowerCase();
76
- }); // _joe.propAsFuncOrValue(this.propObj.values);
77
-
78
- var el = new Date().getTime() - st;
79
- this.innerHTML = "<joe-subtext>" + this.values.length + " options [" + el + " ms]</joe-subtext><autocomplete-options></autocomplete-options>";
80
- this.autocompleteOptions = this.querySelector('autocomplete-options');
81
- }
82
- }, {
83
- key: "search",
84
- value: function search(query) {
85
- var _this2 = this;
86
-
87
- //find elements in values that match
88
- var needles = query.toLowerCase().replace(/,/, ' ').split(' ');
89
- this.show();
90
- var opts = this.values.filter(function (v) {
91
- if (!needles.length) {
92
- return true;
93
- }
94
-
95
- for (var n = 0, tot = needles.length; n < tot; n++) {
96
- if (_this2.lookup[v[_this2.idprop]].indexOf(needles[n]) == -1) {
97
- //needle not in haystack
98
- return false;
99
- }
100
- }
101
-
102
- return true;
103
- });
104
- this.renderOptions(opts);
105
- this.classList.add('active');
106
- }
107
- }, {
108
- key: "renderOptions",
109
- value: function renderOptions(opts) {
110
- var autocomplete = this.autocompleteSpecs;
111
- var html = '';
112
- var ac_opt;
113
- var ac_id, ac_title;
114
- var max = Math.min(20, opts.length);
115
-
116
- for (var v = 0, len = max; v < len; v++) {
117
- //ac_opt = ($.type(this.values[v]) == "object")?
118
- // this.values[v]:
119
- // {id:this.values[v],name:this.values[v]};
120
- // ac_title = fillTemplate(_joe.propAsFuncOrValue(autocomplete.template,ac_opt,null,_joe.current.object),ac_opt);
121
- // ac_id = (autocomplete.value && fillTemplate(_joe.propAsFuncOrValue(autocomplete.value,ac_opt),ac_opt))
122
- // ||(autocomplete.idprop && ac_opt[autocomplete.idprop])
123
- // ||ac_opt._id||ac_opt.id||ac_opt.name;
124
- ac_opt = opts[v];
125
- var schema = ac_opt.itemtype && _joe.schemas[ac_opt.itemtype] || this.schemaObj;
126
- ac_id = ac_opt[this.idprop];
127
- ac_title = this.lookup[ac_id];
128
- html += "<div class=\"joe-text-autocomplete-option\"\n onclick=\"getJoe(" + this.joeIndex + ").autocompleteTextFieldOptionClick(this);\"\n data-value=\"" + ac_id + "\">\n " + (_joe.schemas[schema.name] && _joe.schemas[schema.name].menuicon) + "\n " + fillTemplate(_joe.propAsFuncOrValue(this.template, ac_opt), ac_opt) + "\n </div>";
129
- }
130
-
131
- this.autocompleteOptions.innerHTML = html;
132
- }
133
- }, {
134
- key: "attributeChangedCallback",
135
- value: function attributeChangedCallback(attr, oldValue, newValue) {}
136
- }, {
137
- key: "disconnectedCallback",
138
- value: function disconnectedCallback() {}
139
- }], [{
140
- key: "observedAttributes",
141
- get: function get() {
142
- return [];
143
- }
144
- }]);
145
-
146
- return JoeAutocomplete;
147
- }(_wrapNativeSuper(HTMLElement)); // window.addEventListener('load', function(){
148
-
149
-
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 JoeAutocomplete =
30
+ /*#__PURE__*/
31
+ function (_HTMLElement) {
32
+ _inherits(JoeAutocomplete, _HTMLElement);
33
+
34
+ function JoeAutocomplete() {
35
+ _classCallCheck(this, JoeAutocomplete);
36
+
37
+ return _possibleConstructorReturn(this, _getPrototypeOf(JoeAutocomplete).call(this));
38
+ }
39
+
40
+ _createClass(JoeAutocomplete, [{
41
+ key: "connectedCallback",
42
+ value: function connectedCallback() {
43
+ var _this = this;
44
+
45
+ var st = new Date().getTime();
46
+ var self = this;
47
+ this.classList.add('joe-autocomplete');
48
+ this.schemaObj = _joe.schemas[this.getAttribute('schema')];
49
+ this.field = this.getAttribute('field');
50
+ this.itemId = this.getAttribute('itemId');
51
+ this.idprop = this.getAttribute('idprop') || this.schemaObj.idprop;
52
+ this.propObj = _joe.getField(this.field);
53
+ this.joeIndex = this.getAttribute('joe-index');
54
+ this.values = this.propObj.values;
55
+
56
+ if (typeof this.values == "function") {
57
+ this.values = this.values(_joe.current.object);
58
+ }
59
+
60
+ if ($.type(this.values) == 'string' && _joe.getDataset(this.values)) {
61
+ this.values = _joe.getDataset(this.values);
62
+ }
63
+
64
+ this.lookup = {};
65
+ this.autocompleteSpecs = this.propObj.autocomplete || {
66
+ template: this.propObj.autocomplete_template || this.propObj.template || '<joe-title>${name}</joe-title><joe-subtext>${info}</joe-subtext>'
67
+ };
68
+ this.template = this.autocompleteSpecs.template;
69
+ this.values.map(function (v) {
70
+ var schema = v.itemtype && _joe.schemas[v.itemtype] || _this.schemaObj;
71
+ var searchable = schema.searchable || _this.autocompleteSpecs.searchable || ['name', 'id', 'info'];
72
+ var haystack = searchable.map(function (s) {
73
+ return v[s];
74
+ }).join(' ').replace(/,/, ' ').toLowerCase();
75
+ _this.lookup[v[_this.idprop]] = haystack; //`${v.name} ${v.id} ${v.info} `.replace( /,/,' ').toLowerCase();
76
+ }); // _joe.propAsFuncOrValue(this.propObj.values);
77
+
78
+ var el = new Date().getTime() - st;
79
+ this.innerHTML = "<joe-subtext>" + this.values.length + " options [" + el + " ms]</joe-subtext><autocomplete-options></autocomplete-options>";
80
+ this.autocompleteOptions = this.querySelector('autocomplete-options');
81
+ }
82
+ }, {
83
+ key: "search",
84
+ value: function search(query) {
85
+ var _this2 = this;
86
+
87
+ //find elements in values that match
88
+ var needles = query.toLowerCase().replace(/,/, ' ').split(' ');
89
+ this.show();
90
+ var opts = this.values.filter(function (v) {
91
+ if (!needles.length) {
92
+ return true;
93
+ }
94
+
95
+ for (var n = 0, tot = needles.length; n < tot; n++) {
96
+ if (_this2.lookup[v[_this2.idprop]].indexOf(needles[n]) == -1) {
97
+ //needle not in haystack
98
+ return false;
99
+ }
100
+ }
101
+
102
+ return true;
103
+ });
104
+ this.renderOptions(opts);
105
+ this.classList.add('active');
106
+ }
107
+ }, {
108
+ key: "renderOptions",
109
+ value: function renderOptions(opts) {
110
+ var autocomplete = this.autocompleteSpecs;
111
+ var html = '';
112
+ var ac_opt;
113
+ var ac_id, ac_title;
114
+ var max = Math.min(20, opts.length);
115
+
116
+ for (var v = 0, len = max; v < len; v++) {
117
+ //ac_opt = ($.type(this.values[v]) == "object")?
118
+ // this.values[v]:
119
+ // {id:this.values[v],name:this.values[v]};
120
+ // ac_title = fillTemplate(_joe.propAsFuncOrValue(autocomplete.template,ac_opt,null,_joe.current.object),ac_opt);
121
+ // ac_id = (autocomplete.value && fillTemplate(_joe.propAsFuncOrValue(autocomplete.value,ac_opt),ac_opt))
122
+ // ||(autocomplete.idprop && ac_opt[autocomplete.idprop])
123
+ // ||ac_opt._id||ac_opt.id||ac_opt.name;
124
+ ac_opt = opts[v];
125
+ var schema = ac_opt.itemtype && _joe.schemas[ac_opt.itemtype] || this.schemaObj;
126
+ ac_id = ac_opt[this.idprop];
127
+ ac_title = this.lookup[ac_id];
128
+ html += "<div class=\"joe-text-autocomplete-option\"\n onclick=\"getJoe(" + this.joeIndex + ").autocompleteTextFieldOptionClick(this);\"\n data-value=\"" + ac_id + "\">\n " + (_joe.schemas[schema.name] && _joe.schemas[schema.name].menuicon) + "\n " + fillTemplate(_joe.propAsFuncOrValue(this.template, ac_opt), ac_opt) + "\n </div>";
129
+ }
130
+
131
+ this.autocompleteOptions.innerHTML = html;
132
+ }
133
+ }, {
134
+ key: "attributeChangedCallback",
135
+ value: function attributeChangedCallback(attr, oldValue, newValue) {}
136
+ }, {
137
+ key: "disconnectedCallback",
138
+ value: function disconnectedCallback() {}
139
+ }], [{
140
+ key: "observedAttributes",
141
+ get: function get() {
142
+ return [];
143
+ }
144
+ }]);
145
+
146
+ return JoeAutocomplete;
147
+ }(_wrapNativeSuper(HTMLElement)); // window.addEventListener('load', function(){
148
+
149
+
150
150
  window.customElements.define("joe-autocomplete", JoeAutocomplete); // })