@jinntec/fore 1.7.1 → 1.7.2
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/dist/fore-dev.js +2 -2
- package/dist/fore-dev.js.map +1 -1
- package/dist/fore.js +2 -2
- package/dist/fore.js.map +1 -1
- package/index.js +1 -1
- package/package.json +2 -1
- package/src/actions/abstract-action.js +1 -1
- package/src/actions/fx-load.js +2 -2
- package/src/fx-fore.js +5 -0
- package/src/tools/fx-action-log.js +1 -2
package/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import './src/tools/fx-devtools.js';
|
|
|
30
30
|
import './src/tools/fx-dom-inspector.js';
|
|
31
31
|
import './src/lab/fore-component.js';
|
|
32
32
|
import './src/tools/fx-json-instance.js';
|
|
33
|
-
import './src/tools/fx-minimap.js';
|
|
33
|
+
// import './src/tools/fx-minimap.js';
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
// import './src/ui/fx-checkbox-group.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jinntec/fore",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "Fore - declarative user interfaces in plain HTML",
|
|
5
5
|
"module": "./index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"rollup": "^2.75.4",
|
|
61
61
|
"rollup-plugin-babel": "^4.4.0",
|
|
62
62
|
"rollup-plugin-minify-html-literals": "^1.2.6",
|
|
63
|
+
"rollup-plugin-version-injector": "^1.3.3",
|
|
63
64
|
"typescript": "^4.7.2",
|
|
64
65
|
"web-component-analyzer": "^1.1.6",
|
|
65
66
|
"xmlserializer": "^0.6.1"
|
|
@@ -187,7 +187,7 @@ export class AbstractAction extends foreElementMixin(HTMLElement) {
|
|
|
187
187
|
// console.log('execute', this.event);
|
|
188
188
|
|
|
189
189
|
|
|
190
|
-
if (e && e.target.nodeType !== Node.DOCUMENT_NODE ){
|
|
190
|
+
if (e && e.target.nodeType !== Node.DOCUMENT_NODE && e.target !== window ){
|
|
191
191
|
/*
|
|
192
192
|
### ignore event if there's a parent fore and the current element is NOT part of it. This avoids
|
|
193
193
|
### an event to fire twice on an inner one and the surrounding one(s).
|
package/src/actions/fx-load.js
CHANGED
|
@@ -122,7 +122,7 @@ class FxLoad extends AbstractAction {
|
|
|
122
122
|
);
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
const resolvedUrl = this.evaluateAttributeTemplateExpression(this.url,this);
|
|
126
126
|
if (this.attachTo === '_blank') {
|
|
127
127
|
window.open(this.url);
|
|
128
128
|
}
|
|
@@ -132,7 +132,7 @@ class FxLoad extends AbstractAction {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
try {
|
|
135
|
-
const response = await fetch(
|
|
135
|
+
const response = await fetch(resolvedUrl, {
|
|
136
136
|
method: 'GET',
|
|
137
137
|
mode: 'cors',
|
|
138
138
|
credentials: 'same-origin',
|
package/src/fx-fore.js
CHANGED
|
@@ -55,6 +55,9 @@ export class FxFore extends HTMLElement {
|
|
|
55
55
|
*/
|
|
56
56
|
validateOn: {
|
|
57
57
|
type: String
|
|
58
|
+
},
|
|
59
|
+
version: {
|
|
60
|
+
type: String
|
|
58
61
|
}
|
|
59
62
|
};
|
|
60
63
|
}
|
|
@@ -69,6 +72,8 @@ export class FxFore extends HTMLElement {
|
|
|
69
72
|
*/
|
|
70
73
|
constructor() {
|
|
71
74
|
super();
|
|
75
|
+
this.version = '[VI]Version: {version} - built on {date}[/VI]';
|
|
76
|
+
|
|
72
77
|
this.model = {};
|
|
73
78
|
this.inited=false;
|
|
74
79
|
// this.addEventListener('model-construct-done', this._handleModelConstructDone);
|
|
@@ -459,10 +459,9 @@ export class FxActionLog extends HTMLElement {
|
|
|
459
459
|
*/
|
|
460
460
|
_logDetails(e) {
|
|
461
461
|
const eventType = e.type;
|
|
462
|
-
// console.log('>>>> event type', type)
|
|
463
462
|
const path = XPathUtil.getPath(e.target);
|
|
463
|
+
// console.log('>>>> _logDetails', path);
|
|
464
464
|
const cut = path.substring(path.indexOf('/fx-fore'), path.length);
|
|
465
|
-
;
|
|
466
465
|
const xpath = `/${cut}`;
|
|
467
466
|
const short = cut.replaceAll('fx-', '');
|
|
468
467
|
|