app/assets/build/coco/book.js in coveragebook_components-0.5.1 vs app/assets/build/coco/book.js in coveragebook_components-0.5.2

- old
+ new

@@ -11634,10 +11634,44 @@ } // ../../../node_modules/@hotwired/turbo-rails/app/javascript/turbo/index.js addEventListener("turbo:before-fetch-request", encodeMethodIntoRequestBody); + // base/polyfills/request-submit.js + (function(prototype) { + if (typeof prototype.requestSubmit == "function") + return; + prototype.requestSubmit = function(submitter) { + if (submitter) { + validateSubmitter(submitter, this); + submitter.click(); + } else { + submitter = document.createElement("input"); + submitter.type = "submit"; + submitter.hidden = true; + this.appendChild(submitter); + submitter.click(); + this.removeChild(submitter); + } + }; + function validateSubmitter(submitter, form) { + submitter instanceof HTMLElement || raise(TypeError, "parameter 1 is not of type 'HTMLElement'"); + submitter.type == "submit" || raise(TypeError, "The specified element is not a submit button"); + submitter.form == form || raise( + DOMException, + "The specified element is not owned by this form element", + "NotFoundError" + ); + } + function raise(errorConstructor, message, name) { + throw new errorConstructor( + "Failed to execute 'requestSubmit' on 'HTMLFormElement': " + message + ".", + name + ); + } + })(HTMLFormElement.prototype); + // ../../../node_modules/alpinejs/dist/module.esm.js var flushPending = false; var flushing = false; var queue = []; var lastFlushedIndex = -1; @@ -19577,14 +19611,12 @@ this.$watch("collapsed", (collapsed) => { if (collapsed && !this.collapsible) { this.collapsed = false; return; } - this.setTooltipText(); this.$root.setAttribute("data-collapsed", collapsed ? "true" : "false"); }); - this.$watch("$options.state", () => this.setTooltipText()); }, setTooltipText() { if (this.disabled) { this.tooltipText = null; return; @@ -19683,9 +19715,10 @@ }, /* bindings */ root: { "x-options": "options", "x-tooltip": "tooltipText", + "x-effect": "setTooltipText", "@confirmation:confirm": "approveAndRun", "@confirmation:cancel": "cancelConfirmation", "@dropdown:show": "setState('active')", "@dropdown:hide": "resetState()" }