json-object-editor 0.9.901 → 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.
- package/CHANGELOG.md +2 -0
- package/app.js +5 -4
- package/css/jif/Read Me.txt +5 -5
- package/css/jif/demo-files/demo.css +153 -153
- package/css/jif/demo-files/demo.js +30 -30
- package/css/jif/demo.html +285 -285
- package/css/jif/fonts/joeiconfont.svg +24 -24
- package/css/jif/ie7/ie7.css +45 -45
- package/css/jif/ie7/ie7.js +46 -46
- package/css/jif/selection.json +573 -573
- package/css/joe.css +6 -6
- package/css/jquery-ui-1.10.4.custom.min.css +5 -5
- package/css/jquery-ui.min.css +6 -6
- package/css/jquery.timepicker.css +72 -72
- package/es5-build/capp/capp.js +1083 -1083
- package/es5-build/js/JsonObjectEditor_es5.jquery.craydent.js +11047 -11047
- package/es5-build/web-components/account-info.js +136 -136
- package/es5-build/web-components/capp-components.js +160 -160
- package/es5-build/web-components/capp-panel.js +85 -85
- package/es5-build/web-components/capp-view.js +73 -73
- package/es5-build/web-components/joe-autocomplete.js +149 -149
- package/es5-build/web-components/joe-button.js +132 -132
- package/es5-build/web-components/joe-card.js +92 -92
- package/es5-build/web-components/joe-component.js +74 -74
- package/es5-build/web-components/joe-field.js +70 -70
- package/es5-build/web-components/joe-list-item.js +176 -176
- package/es5-build/web-components/joe-user-cube.js +100 -100
- package/es5-build/web-components/report-components.js +133 -133
- package/grunt/build +86 -86
- package/grunt/package-lock.json +6301 -2489
- package/grunt/package.json +47 -47
- package/grunt/src +86 -86
- package/js/JsonObjectEditor.jquery.craydent.js +3 -2
- package/js/joe-full.js +11 -10
- package/js/joe.js +12 -11
- package/js/joe_es5.js +11056 -11056
- package/js/jquery.timepicker.min.js +1 -1
- package/js/leaflet.js +8 -8
- package/js/libs/adapter-latest.js +4400 -4400
- package/js/libs/craydent-1.9.2.js +11741 -11741
- package/js/libs/craydent-upload-2.0.0.js +394 -394
- package/js/libs/hammer.min.208.js +6 -6
- package/js/libs/jquery-3.5.1.min.js +2 -2
- package/js/libs/moment.min.js +6 -6
- package/js/native-shim.js +46 -46
- package/js/plugins/c3/c3.min.js +5 -5
- package/js/plugins/c3/d3.v3.min.js +4 -4
- package/js/plugins/threejs/Detector.js +78 -78
- package/js/plugins/threejs/LICENSE +21 -21
- package/js/plugins/threejs/MTLLoader.js +417 -417
- package/js/plugins/threejs/OBJLoader.js +564 -564
- package/js/plugins/threejs/OrbitControls.js +1037 -1037
- package/js/plugins/threejs/README.md +9 -9
- package/js/plugins/threejs/assets/female-croupier-2013-03-26.mtl +3 -3
- package/js/plugins/threejs/index.html +178 -178
- package/js/plugins/threejs/three.js +41507 -41507
- package/package copy.json +62 -0
- package/package.json +12 -13
- package/projectFilesBackup/.idea/workspace.xml +0 -424
|
@@ -1,133 +1,133 @@
|
|
|
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 JoeButton =
|
|
30
|
-
/*#__PURE__*/
|
|
31
|
-
function (_HTMLElement) {
|
|
32
|
-
_inherits(JoeButton, _HTMLElement);
|
|
33
|
-
|
|
34
|
-
function JoeButton() {
|
|
35
|
-
_classCallCheck(this, JoeButton);
|
|
36
|
-
|
|
37
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(JoeButton).call(this));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
_createClass(JoeButton, [{
|
|
41
|
-
key: "connectedCallback",
|
|
42
|
-
value: function connectedCallback() {
|
|
43
|
-
this.schema = this.getAttribute('schema');
|
|
44
|
-
this.classList.add('joe-button');
|
|
45
|
-
this.initialHTML = this.innerHTML.trim(); //var initialText = this.innerText.trim();
|
|
46
|
-
// this.newText = this.innerText.trim() && `<jb-text>${this.innerText.trim()}</jb-text>` ||'';
|
|
47
|
-
|
|
48
|
-
this.render();
|
|
49
|
-
}
|
|
50
|
-
}, {
|
|
51
|
-
key: "render",
|
|
52
|
-
value: function render() {
|
|
53
|
-
var _this$classList;
|
|
54
|
-
|
|
55
|
-
var atts = _joe.Components.getAttributes(this);
|
|
56
|
-
|
|
57
|
-
var classesToAdd = [];
|
|
58
|
-
var icon;
|
|
59
|
-
var newHTML = '';
|
|
60
|
-
|
|
61
|
-
if (atts.schema) {
|
|
62
|
-
this.schema = atts.schema;
|
|
63
|
-
icon = _joe.schemas[this.schema] && _joe.schemas[this.schema].menuicon;
|
|
64
|
-
icon && classesToAdd.push("joe-svg-button");
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
atts.color && classesToAdd.push("joe-" + atts.color + "-button");
|
|
68
|
-
atts.icon && classesToAdd.push('joe-iconed-button', "joe-" + atts.icon + "-button");
|
|
69
|
-
var actionPreset = false;
|
|
70
|
-
|
|
71
|
-
if (atts.action) {
|
|
72
|
-
var actString = '';
|
|
73
|
-
|
|
74
|
-
switch (atts.action) {
|
|
75
|
-
case 'create':
|
|
76
|
-
case 'new':
|
|
77
|
-
var actKey = "create"; //this.classList.add(`joe-${atts.action}-button`)
|
|
78
|
-
|
|
79
|
-
classesToAdd.push("joe-" + actKey + "-button");
|
|
80
|
-
|
|
81
|
-
if (atts.schema) {
|
|
82
|
-
actString = "_joe.Object." + actKey + "('" + atts.schema + "')";
|
|
83
|
-
newHTML = "new <b>" + atts.schema.toUpperCase() + "</b>";
|
|
84
|
-
classesToAdd.push('joe-iconed-button', "joe-plus-button");
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
actionPreset = true;
|
|
88
|
-
break;
|
|
89
|
-
|
|
90
|
-
case 'preview':
|
|
91
|
-
case 'view':
|
|
92
|
-
var prefix = atts.prefix || '';
|
|
93
|
-
actString = "_joe.gotoFieldURL(this,'" + prefix + "');"; //actString="_joe.gotoFieldURL(this,\''+prefix+'\');"
|
|
94
|
-
|
|
95
|
-
newHTML = "<jb-text>" + atts.action + " <b>" + atts.schema.toUpperCase() + "</b></jb-text>";
|
|
96
|
-
classesToAdd.push('joe-iconed-button', "joe-view-button");
|
|
97
|
-
actionPreset = true;
|
|
98
|
-
break;
|
|
99
|
-
|
|
100
|
-
default:
|
|
101
|
-
actString = atts.action;
|
|
102
|
-
break;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
this.setAttribute('onclick', actString);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
var guts = actionPreset ? newHTML || this.initialHTML : this.initialHTML || newHTML;
|
|
109
|
-
this.innerHTML = (icon || '') + guts;
|
|
110
|
-
/*this.innerText = '<button-text>'+this.innerText+'</button-text>';*/
|
|
111
|
-
|
|
112
|
-
(_this$classList = this.classList).add.apply(_this$classList, classesToAdd);
|
|
113
|
-
}
|
|
114
|
-
}, {
|
|
115
|
-
key: "attributeChangedCallback",
|
|
116
|
-
value: function attributeChangedCallback(attr, oldValue, newValue) {
|
|
117
|
-
this.render();
|
|
118
|
-
}
|
|
119
|
-
}, {
|
|
120
|
-
key: "disconnectedCallback",
|
|
121
|
-
value: function disconnectedCallback() {}
|
|
122
|
-
}], [{
|
|
123
|
-
key: "observedAttributes",
|
|
124
|
-
get: function get() {
|
|
125
|
-
return [];
|
|
126
|
-
}
|
|
127
|
-
}]);
|
|
128
|
-
|
|
129
|
-
return JoeButton;
|
|
130
|
-
}(_wrapNativeSuper(HTMLElement)); // window.addEventListener('load', function(){
|
|
131
|
-
|
|
132
|
-
|
|
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 JoeButton =
|
|
30
|
+
/*#__PURE__*/
|
|
31
|
+
function (_HTMLElement) {
|
|
32
|
+
_inherits(JoeButton, _HTMLElement);
|
|
33
|
+
|
|
34
|
+
function JoeButton() {
|
|
35
|
+
_classCallCheck(this, JoeButton);
|
|
36
|
+
|
|
37
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(JoeButton).call(this));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
_createClass(JoeButton, [{
|
|
41
|
+
key: "connectedCallback",
|
|
42
|
+
value: function connectedCallback() {
|
|
43
|
+
this.schema = this.getAttribute('schema');
|
|
44
|
+
this.classList.add('joe-button');
|
|
45
|
+
this.initialHTML = this.innerHTML.trim(); //var initialText = this.innerText.trim();
|
|
46
|
+
// this.newText = this.innerText.trim() && `<jb-text>${this.innerText.trim()}</jb-text>` ||'';
|
|
47
|
+
|
|
48
|
+
this.render();
|
|
49
|
+
}
|
|
50
|
+
}, {
|
|
51
|
+
key: "render",
|
|
52
|
+
value: function render() {
|
|
53
|
+
var _this$classList;
|
|
54
|
+
|
|
55
|
+
var atts = _joe.Components.getAttributes(this);
|
|
56
|
+
|
|
57
|
+
var classesToAdd = [];
|
|
58
|
+
var icon;
|
|
59
|
+
var newHTML = '';
|
|
60
|
+
|
|
61
|
+
if (atts.schema) {
|
|
62
|
+
this.schema = atts.schema;
|
|
63
|
+
icon = _joe.schemas[this.schema] && _joe.schemas[this.schema].menuicon;
|
|
64
|
+
icon && classesToAdd.push("joe-svg-button");
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
atts.color && classesToAdd.push("joe-" + atts.color + "-button");
|
|
68
|
+
atts.icon && classesToAdd.push('joe-iconed-button', "joe-" + atts.icon + "-button");
|
|
69
|
+
var actionPreset = false;
|
|
70
|
+
|
|
71
|
+
if (atts.action) {
|
|
72
|
+
var actString = '';
|
|
73
|
+
|
|
74
|
+
switch (atts.action) {
|
|
75
|
+
case 'create':
|
|
76
|
+
case 'new':
|
|
77
|
+
var actKey = "create"; //this.classList.add(`joe-${atts.action}-button`)
|
|
78
|
+
|
|
79
|
+
classesToAdd.push("joe-" + actKey + "-button");
|
|
80
|
+
|
|
81
|
+
if (atts.schema) {
|
|
82
|
+
actString = "_joe.Object." + actKey + "('" + atts.schema + "')";
|
|
83
|
+
newHTML = "new <b>" + atts.schema.toUpperCase() + "</b>";
|
|
84
|
+
classesToAdd.push('joe-iconed-button', "joe-plus-button");
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
actionPreset = true;
|
|
88
|
+
break;
|
|
89
|
+
|
|
90
|
+
case 'preview':
|
|
91
|
+
case 'view':
|
|
92
|
+
var prefix = atts.prefix || '';
|
|
93
|
+
actString = "_joe.gotoFieldURL(this,'" + prefix + "');"; //actString="_joe.gotoFieldURL(this,\''+prefix+'\');"
|
|
94
|
+
|
|
95
|
+
newHTML = "<jb-text>" + atts.action + " <b>" + atts.schema.toUpperCase() + "</b></jb-text>";
|
|
96
|
+
classesToAdd.push('joe-iconed-button', "joe-view-button");
|
|
97
|
+
actionPreset = true;
|
|
98
|
+
break;
|
|
99
|
+
|
|
100
|
+
default:
|
|
101
|
+
actString = atts.action;
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
this.setAttribute('onclick', actString);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
var guts = actionPreset ? newHTML || this.initialHTML : this.initialHTML || newHTML;
|
|
109
|
+
this.innerHTML = (icon || '') + guts;
|
|
110
|
+
/*this.innerText = '<button-text>'+this.innerText+'</button-text>';*/
|
|
111
|
+
|
|
112
|
+
(_this$classList = this.classList).add.apply(_this$classList, classesToAdd);
|
|
113
|
+
}
|
|
114
|
+
}, {
|
|
115
|
+
key: "attributeChangedCallback",
|
|
116
|
+
value: function attributeChangedCallback(attr, oldValue, newValue) {
|
|
117
|
+
this.render();
|
|
118
|
+
}
|
|
119
|
+
}, {
|
|
120
|
+
key: "disconnectedCallback",
|
|
121
|
+
value: function disconnectedCallback() {}
|
|
122
|
+
}], [{
|
|
123
|
+
key: "observedAttributes",
|
|
124
|
+
get: function get() {
|
|
125
|
+
return [];
|
|
126
|
+
}
|
|
127
|
+
}]);
|
|
128
|
+
|
|
129
|
+
return JoeButton;
|
|
130
|
+
}(_wrapNativeSuper(HTMLElement)); // window.addEventListener('load', function(){
|
|
131
|
+
|
|
132
|
+
|
|
133
133
|
window.customElements.define("joe-button", JoeButton); // })
|
|
@@ -1,93 +1,93 @@
|
|
|
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 JoeCard =
|
|
30
|
-
/*#__PURE__*/
|
|
31
|
-
function (_HTMLElement) {
|
|
32
|
-
_inherits(JoeCard, _HTMLElement);
|
|
33
|
-
|
|
34
|
-
function JoeCard() {
|
|
35
|
-
_classCallCheck(this, JoeCard);
|
|
36
|
-
|
|
37
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(JoeCard).call(this));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
_createClass(JoeCard, [{
|
|
41
|
-
key: "connectedCallback",
|
|
42
|
-
value: function connectedCallback() {
|
|
43
|
-
var atts = _joe.Components.getAttributes(this);
|
|
44
|
-
|
|
45
|
-
var styles = "\n joe-card{\n display:block;\n position:relative;\n box-sizing:border-box;\n padding:5px;\n border:1px solid #eee;\n background-color:#fff;\n }\n .joe-panel-content-option-expander joe-card{\n margin-bottom:5px;\n background:#fcfcfc;\n }\n joe-card > joe-title {\n border-bottom: 1px solid #f2f2f2;\n margin: 0 -5px;\n padding: 0px 5px 5px 5px;\n background:#fff;\n }\n ";
|
|
46
|
-
|
|
47
|
-
_joe.Components.appendStyles(styles);
|
|
48
|
-
|
|
49
|
-
this.item = this.getJoeItem(atts.item || atts.itemId || atts.item_id); //var schemaname = atts.schema || this.item.itemtype;
|
|
50
|
-
|
|
51
|
-
this.schema = _joe.schemas[atts.schema || this.item.itemtype];
|
|
52
|
-
this.render();
|
|
53
|
-
this.classList.add("joe-card");
|
|
54
|
-
}
|
|
55
|
-
}, {
|
|
56
|
-
key: "getJoeItem",
|
|
57
|
-
value: function getJoeItem(itemid) {
|
|
58
|
-
return _joe.getDataItem(itemid);
|
|
59
|
-
}
|
|
60
|
-
}, {
|
|
61
|
-
key: "render",
|
|
62
|
-
value: function render() {
|
|
63
|
-
var atts = _joe.Components.getAttributes(this);
|
|
64
|
-
|
|
65
|
-
if (!this.schema) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
var card_template = "<joe-title>" + this.item.name + "</joe-title>";
|
|
70
|
-
this.cardTemplate = this.schema.card && _joe.propAsFuncOrValue(this.schema.card, this.item);
|
|
71
|
-
|
|
72
|
-
if (this.innerHTML) {}
|
|
73
|
-
}
|
|
74
|
-
}, {
|
|
75
|
-
key: "attributeChangedCallback",
|
|
76
|
-
value: function attributeChangedCallback(attr, oldValue, newValue) {
|
|
77
|
-
this.render();
|
|
78
|
-
}
|
|
79
|
-
}, {
|
|
80
|
-
key: "disconnectedCallback",
|
|
81
|
-
value: function disconnectedCallback() {}
|
|
82
|
-
}], [{
|
|
83
|
-
key: "observedAttributes",
|
|
84
|
-
get: function get() {
|
|
85
|
-
return [];
|
|
86
|
-
}
|
|
87
|
-
}]);
|
|
88
|
-
|
|
89
|
-
return JoeCard;
|
|
90
|
-
}(_wrapNativeSuper(HTMLElement)); // window.addEventListener('load', function(){
|
|
91
|
-
|
|
92
|
-
|
|
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 JoeCard =
|
|
30
|
+
/*#__PURE__*/
|
|
31
|
+
function (_HTMLElement) {
|
|
32
|
+
_inherits(JoeCard, _HTMLElement);
|
|
33
|
+
|
|
34
|
+
function JoeCard() {
|
|
35
|
+
_classCallCheck(this, JoeCard);
|
|
36
|
+
|
|
37
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(JoeCard).call(this));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
_createClass(JoeCard, [{
|
|
41
|
+
key: "connectedCallback",
|
|
42
|
+
value: function connectedCallback() {
|
|
43
|
+
var atts = _joe.Components.getAttributes(this);
|
|
44
|
+
|
|
45
|
+
var styles = "\n joe-card{\n display:block;\n position:relative;\n box-sizing:border-box;\n padding:5px;\n border:1px solid #eee;\n background-color:#fff;\n }\n .joe-panel-content-option-expander joe-card{\n margin-bottom:5px;\n background:#fcfcfc;\n }\n joe-card > joe-title {\n border-bottom: 1px solid #f2f2f2;\n margin: 0 -5px;\n padding: 0px 5px 5px 5px;\n background:#fff;\n }\n ";
|
|
46
|
+
|
|
47
|
+
_joe.Components.appendStyles(styles);
|
|
48
|
+
|
|
49
|
+
this.item = this.getJoeItem(atts.item || atts.itemId || atts.item_id); //var schemaname = atts.schema || this.item.itemtype;
|
|
50
|
+
|
|
51
|
+
this.schema = _joe.schemas[atts.schema || this.item.itemtype];
|
|
52
|
+
this.render();
|
|
53
|
+
this.classList.add("joe-card");
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
key: "getJoeItem",
|
|
57
|
+
value: function getJoeItem(itemid) {
|
|
58
|
+
return _joe.getDataItem(itemid);
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
key: "render",
|
|
62
|
+
value: function render() {
|
|
63
|
+
var atts = _joe.Components.getAttributes(this);
|
|
64
|
+
|
|
65
|
+
if (!this.schema) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
var card_template = "<joe-title>" + this.item.name + "</joe-title>";
|
|
70
|
+
this.cardTemplate = this.schema.card && _joe.propAsFuncOrValue(this.schema.card, this.item);
|
|
71
|
+
|
|
72
|
+
if (this.innerHTML) {}
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
key: "attributeChangedCallback",
|
|
76
|
+
value: function attributeChangedCallback(attr, oldValue, newValue) {
|
|
77
|
+
this.render();
|
|
78
|
+
}
|
|
79
|
+
}, {
|
|
80
|
+
key: "disconnectedCallback",
|
|
81
|
+
value: function disconnectedCallback() {}
|
|
82
|
+
}], [{
|
|
83
|
+
key: "observedAttributes",
|
|
84
|
+
get: function get() {
|
|
85
|
+
return [];
|
|
86
|
+
}
|
|
87
|
+
}]);
|
|
88
|
+
|
|
89
|
+
return JoeCard;
|
|
90
|
+
}(_wrapNativeSuper(HTMLElement)); // window.addEventListener('load', function(){
|
|
91
|
+
|
|
92
|
+
|
|
93
93
|
window.customElements.define("joe-card", JoeCard); // })
|
|
@@ -1,75 +1,75 @@
|
|
|
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 JoeComponent =
|
|
30
|
-
/*#__PURE__*/
|
|
31
|
-
function (_HTMLElement) {
|
|
32
|
-
_inherits(JoeComponent, _HTMLElement);
|
|
33
|
-
|
|
34
|
-
function JoeComponent() {
|
|
35
|
-
_classCallCheck(this, JoeComponent);
|
|
36
|
-
|
|
37
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(JoeComponent).call(this));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
_createClass(JoeComponent, [{
|
|
41
|
-
key: "connectedCallback",
|
|
42
|
-
value: function connectedCallback() {
|
|
43
|
-
var styles = '';
|
|
44
|
-
|
|
45
|
-
_joe.Components.appendStyles(styles);
|
|
46
|
-
|
|
47
|
-
this.classList.add('joe-component');
|
|
48
|
-
this.container = this.parentElement;
|
|
49
|
-
this.render();
|
|
50
|
-
}
|
|
51
|
-
}, {
|
|
52
|
-
key: "render",
|
|
53
|
-
value: function render() {
|
|
54
|
-
var atts = _joe.Components.getAttributes(this);
|
|
55
|
-
}
|
|
56
|
-
}, {
|
|
57
|
-
key: "attributeChangedCallback",
|
|
58
|
-
value: function attributeChangedCallback(attr, oldValue, newValue) {
|
|
59
|
-
this.render();
|
|
60
|
-
}
|
|
61
|
-
}, {
|
|
62
|
-
key: "disconnectedCallback",
|
|
63
|
-
value: function disconnectedCallback() {}
|
|
64
|
-
}], [{
|
|
65
|
-
key: "observedAttributes",
|
|
66
|
-
get: function get() {
|
|
67
|
-
return [];
|
|
68
|
-
}
|
|
69
|
-
}]);
|
|
70
|
-
|
|
71
|
-
return JoeComponent;
|
|
72
|
-
}(_wrapNativeSuper(HTMLElement)); // window.addEventListener('load', function(){
|
|
73
|
-
|
|
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 JoeComponent =
|
|
30
|
+
/*#__PURE__*/
|
|
31
|
+
function (_HTMLElement) {
|
|
32
|
+
_inherits(JoeComponent, _HTMLElement);
|
|
33
|
+
|
|
34
|
+
function JoeComponent() {
|
|
35
|
+
_classCallCheck(this, JoeComponent);
|
|
36
|
+
|
|
37
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(JoeComponent).call(this));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
_createClass(JoeComponent, [{
|
|
41
|
+
key: "connectedCallback",
|
|
42
|
+
value: function connectedCallback() {
|
|
43
|
+
var styles = '';
|
|
44
|
+
|
|
45
|
+
_joe.Components.appendStyles(styles);
|
|
46
|
+
|
|
47
|
+
this.classList.add('joe-component');
|
|
48
|
+
this.container = this.parentElement;
|
|
49
|
+
this.render();
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
key: "render",
|
|
53
|
+
value: function render() {
|
|
54
|
+
var atts = _joe.Components.getAttributes(this);
|
|
55
|
+
}
|
|
56
|
+
}, {
|
|
57
|
+
key: "attributeChangedCallback",
|
|
58
|
+
value: function attributeChangedCallback(attr, oldValue, newValue) {
|
|
59
|
+
this.render();
|
|
60
|
+
}
|
|
61
|
+
}, {
|
|
62
|
+
key: "disconnectedCallback",
|
|
63
|
+
value: function disconnectedCallback() {}
|
|
64
|
+
}], [{
|
|
65
|
+
key: "observedAttributes",
|
|
66
|
+
get: function get() {
|
|
67
|
+
return [];
|
|
68
|
+
}
|
|
69
|
+
}]);
|
|
70
|
+
|
|
71
|
+
return JoeComponent;
|
|
72
|
+
}(_wrapNativeSuper(HTMLElement)); // window.addEventListener('load', function(){
|
|
73
|
+
|
|
74
|
+
|
|
75
75
|
window.customElements.define("joe-component", JoeComponent); // })
|