@symfony/ux-live-component 2.36.1 → 3.1.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/live_controller.js +4 -7
- package/package.json +1 -1
package/dist/live_controller.js
CHANGED
|
@@ -623,12 +623,9 @@ var Idiomorph = (function() {
|
|
|
623
623
|
} else if (ctx.head.shouldRemove(currentHeadElt) !== false) removed.push(currentHeadElt);
|
|
624
624
|
}
|
|
625
625
|
nodesToAppend.push(...srcToNewHeadNodes.values());
|
|
626
|
-
log("to append: ", nodesToAppend);
|
|
627
626
|
let promises = [];
|
|
628
627
|
for (const newNode of nodesToAppend) {
|
|
629
|
-
log("adding: ", newNode);
|
|
630
628
|
let newElt = document.createRange().createContextualFragment(newNode.outerHTML).firstChild;
|
|
631
|
-
log(newElt);
|
|
632
629
|
if (ctx.callbacks.beforeNodeAdded(newElt) !== false) {
|
|
633
630
|
if (newElt.href || newElt.src) {
|
|
634
631
|
let resolve = null;
|
|
@@ -656,7 +653,6 @@ var Idiomorph = (function() {
|
|
|
656
653
|
});
|
|
657
654
|
return promises;
|
|
658
655
|
}
|
|
659
|
-
function log() {}
|
|
660
656
|
function noOp() {}
|
|
661
657
|
function mergeDefaults(config) {
|
|
662
658
|
let finalConfig = {};
|
|
@@ -1752,7 +1748,8 @@ var ChildComponentPlugin_default = class {
|
|
|
1752
1748
|
constructor(component) {
|
|
1753
1749
|
this.parentModelBindings = [];
|
|
1754
1750
|
this.component = component;
|
|
1755
|
-
|
|
1751
|
+
const modelDirectives = getAllModelDirectiveFromElements(this.component.element);
|
|
1752
|
+
this.parentModelBindings = modelDirectives.map(get_model_binding_default);
|
|
1756
1753
|
}
|
|
1757
1754
|
attachToComponent(component) {
|
|
1758
1755
|
component.on("request:started", (requestData) => {
|
|
@@ -1827,8 +1824,8 @@ var LoadingPlugin_default = class {
|
|
|
1827
1824
|
this.handleLoadingToggle(component, false, targetElement, null);
|
|
1828
1825
|
}
|
|
1829
1826
|
handleLoadingToggle(component, isLoading, targetElement, backendRequest) {
|
|
1830
|
-
if (isLoading)
|
|
1831
|
-
else
|
|
1827
|
+
if (isLoading) targetElement.setAttribute("aria-busy", "true");
|
|
1828
|
+
else targetElement.removeAttribute("aria-busy");
|
|
1832
1829
|
this.getLoadingDirectives(component, targetElement).forEach(({ element, directives }) => {
|
|
1833
1830
|
if (isLoading) this.addAttributes(element, ["data-live-is-loading"]);
|
|
1834
1831
|
else this.removeAttributes(element, ["data-live-is-loading"]);
|
package/package.json
CHANGED