@optionfactory/fml 9.0.0-rc8 → 9.0.0-rc9
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/custom-elements.json +2 -2
- package/dist/fml.css +1 -1
- package/dist/fml.css.map +1 -1
- package/dist/fml.iife.js +4 -3
- package/dist/fml.iife.js.map +1 -1
- package/dist/fml.iife.min.js +1 -1
- package/dist/fml.iife.min.js.map +1 -1
- package/dist/ful.css +1 -1
- package/dist/ful.css.map +1 -1
- package/dist/ful.iife.js +4 -3
- package/dist/ful.iife.js.map +1 -1
- package/dist/ful.iife.min.js +1 -1
- package/dist/ful.iife.min.js.map +1 -1
- package/dist/ful.min.mjs +1 -1
- package/dist/ful.min.mjs.map +1 -1
- package/dist/ful.mjs +4 -3
- package/dist/ful.mjs.map +1 -1
- package/dist/vscode.html-custom-data.json +1 -1
- package/dist/web-types.json +3 -3
- package/package.json +1 -1
package/dist/fml.iife.js
CHANGED
|
@@ -11153,7 +11153,7 @@ var fml = (function (exports) {
|
|
|
11153
11153
|
<section data-ref="error" role="alert" hidden></section>
|
|
11154
11154
|
<div data-ref="body" class="ful-dialog-body">{{{{ slots.default }}}}</div>
|
|
11155
11155
|
<footer class="ful-dialog-footer">
|
|
11156
|
-
<button type="button" data-ref="acknowledge" data-result="acknowledged" data-tpl-if="!slots.buttons" data-tpl-aria-label="#l10n:t('dialog.acknowledge')">{{ #l10n:t('dialog.acknowledge') }}</button>
|
|
11156
|
+
<button type="button" data-ref="acknowledge" data-result="acknowledged" data-tpl-if="!slots.buttons && !closeOnSubmit" data-tpl-aria-label="#l10n:t('dialog.acknowledge')">{{ #l10n:t('dialog.acknowledge') }}</button>
|
|
11157
11157
|
{{{{ slots.buttons }}}}
|
|
11158
11158
|
</footer>
|
|
11159
11159
|
</dialog>
|
|
@@ -11171,8 +11171,9 @@ var fml = (function (exports) {
|
|
|
11171
11171
|
#answer = null;
|
|
11172
11172
|
render({ slots }) {
|
|
11173
11173
|
const requiresAnswer = this.declared('requires-answer');
|
|
11174
|
+
const closeOnSubmit = this.declared('close-on-submit');
|
|
11174
11175
|
const fragment = this.template()
|
|
11175
|
-
.withOverlay({ slots, header: this.declared('header') ?? '', requiresAnswer })
|
|
11176
|
+
.withOverlay({ slots, header: this.declared('header') ?? '', requiresAnswer, closeOnSubmit })
|
|
11176
11177
|
.render();
|
|
11177
11178
|
this.#dialog = fragment.querySelector('[data-ref=dialog]');
|
|
11178
11179
|
this.#body = fragment.querySelector('[data-ref=body]');
|
|
@@ -11195,7 +11196,7 @@ var fml = (function (exports) {
|
|
|
11195
11196
|
fragment
|
|
11196
11197
|
.querySelector('[data-ref=close]')
|
|
11197
11198
|
?.addEventListener('click', () => this.#dialog.close(''));
|
|
11198
|
-
if (
|
|
11199
|
+
if (closeOnSubmit) {
|
|
11199
11200
|
//delegated on the body rather than bound to the form, so a body
|
|
11200
11201
|
//delivered later by update() is covered by the same listener. The
|
|
11201
11202
|
//form must be the body's own: a ful-table wraps its filters in a
|