@jinntec/fore 2.7.1 → 2.8.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/dist/fore-dev.js +3960 -3721
- package/dist/fore.js +12642 -16281
- package/package.json +1 -1
- package/resources/fore.css +3 -0
- package/src/ForeElementMixin.js +4 -4
- package/src/fx-bind.js +1 -1
- package/src/fx-fore.js +323 -164
- package/src/fx-instance.js +2 -2
- package/src/fx-submission.js +24 -10
- package/src/modelitem.js +5 -5
- package/src/tools/deprecation.md +1 -0
- package/src/tools/fx-action-log.js +2 -2
- package/src/ui/abstract-control.js +49 -16
- package/src/ui/fx-control.js +42 -21
- package/src/ui/fx-output.js +1 -2
- package/src/ui/fx-repeat.js +7 -5
- package/src/xpath-evaluation.js +8 -1
- package/src/xpath-util.js +3 -3
- package/src/DataObserver.js +0 -181
package/package.json
CHANGED
package/resources/fore.css
CHANGED
package/src/ForeElementMixin.js
CHANGED
|
@@ -160,11 +160,11 @@ export default class ForeElementMixin extends HTMLElement {
|
|
|
160
160
|
} else {
|
|
161
161
|
// this.nodeset = fx.evaluateXPathToFirstNode(this.ref, inscopeContext, null, {namespaceResolver: this.namespaceResolver});
|
|
162
162
|
if (!inscopeContext) return;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
this.nodeset =
|
|
163
|
+
if (this.nodeName === 'FX-REPEAT') {
|
|
164
|
+
// Repeats are special: they have multiple nodes in their nodeset
|
|
165
|
+
this.nodeset = evaluateXPath(this.ref, inscopeContext, this);
|
|
166
166
|
} else {
|
|
167
|
-
|
|
167
|
+
this.nodeset = evaluateXPath(this.ref, inscopeContext, this)[0] || null;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
// console.log('UiElement evaluated to nodeset: ', this.nodeset);
|
package/src/fx-bind.js
CHANGED
|
@@ -94,7 +94,7 @@ export class FxBind extends ForeElementMixin {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
// ✅ only the repeat item gets the _<opNum> suffix; children do not.
|
|
97
|
-
const basePath =
|
|
97
|
+
const basePath = getPath(node, instanceId);
|
|
98
98
|
const path = opNum ? `${basePath}_${opNum}` : basePath;
|
|
99
99
|
|
|
100
100
|
// const path = XPathUtil.getPath(node, instanceId);
|