@optionfactory/ful 1.1.3 → 3.0.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/ful.iife.js +25 -7
- 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 +26 -8
- package/dist/ful.mjs.map +1 -1
- package/package.json +2 -2
package/dist/ful.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { registry, ParsedElement, Attributes, Fragments, Nodes } from '@optionfactory/ftl';
|
|
1
|
+
import { registry, ParsedElement, Attributes, Fragments, Nodes, Rendering } from '@optionfactory/ftl';
|
|
2
2
|
|
|
3
3
|
class Base64 {
|
|
4
4
|
static encode(arrayBuffer, dialect) {
|
|
@@ -1421,7 +1421,10 @@ class Input extends ParsedElement {
|
|
|
1421
1421
|
static observed = ['value', 'readonly:presence'];
|
|
1422
1422
|
static slots = true;
|
|
1423
1423
|
static template = `
|
|
1424
|
-
<
|
|
1424
|
+
<div class="form-label">
|
|
1425
|
+
<label>{{{{ slots.default }}}}</label>
|
|
1426
|
+
{{{{ slots.info }}}}
|
|
1427
|
+
</div>
|
|
1425
1428
|
<div class="input-group">
|
|
1426
1429
|
<span data-tpl-if="slots.ibefore" class="input-group-text">{{{{ slots.ibefore }}}}</span>
|
|
1427
1430
|
{{{{ slots.before }}}}
|
|
@@ -1703,7 +1706,10 @@ class Select extends ParsedElement {
|
|
|
1703
1706
|
static observed = ['value:csvm', 'readonly:presence']
|
|
1704
1707
|
static slots = true
|
|
1705
1708
|
static template = `
|
|
1706
|
-
<
|
|
1709
|
+
<div class="form-label">
|
|
1710
|
+
<label>{{{{ slots.default }}}}</label>
|
|
1711
|
+
{{{{ slots.info }}}}
|
|
1712
|
+
</div>
|
|
1707
1713
|
<div class="input-group flex-nowrap" tabindex="-1">
|
|
1708
1714
|
<span data-tpl-if="slots.ibefore" class="input-group-text">{{{{ slots.ibefore }}}}</span>
|
|
1709
1715
|
{{{{ slots.before }}}}
|
|
@@ -2005,7 +2011,10 @@ class Checkbox extends ParsedElement {
|
|
|
2005
2011
|
<div class="input-container">
|
|
2006
2012
|
<input class="form-check-input" type="checkbox" role="switch" form="" placeholder=" ">
|
|
2007
2013
|
</div>
|
|
2008
|
-
<
|
|
2014
|
+
<div class="form-check-label">
|
|
2015
|
+
<label>{{{{ slots.default }}}}</label>
|
|
2016
|
+
{{{{ slots.info }}}}
|
|
2017
|
+
</div>
|
|
2009
2018
|
</div>
|
|
2010
2019
|
<ful-field-error></ful-field-error>
|
|
2011
2020
|
`;
|
|
@@ -2375,7 +2384,7 @@ class Table extends ParsedElement {
|
|
|
2375
2384
|
this.#paginator = Nodes.queryChildren(fragment, 'ful-pagination');
|
|
2376
2385
|
this.#sorters = table.querySelectorAll(':scope > thead ful-sorter') ?? [];
|
|
2377
2386
|
this.replaceChildren(fragment);
|
|
2378
|
-
await
|
|
2387
|
+
await Rendering.waitForChildren(this);
|
|
2379
2388
|
const orderFromSchema = schema.find(v => v.order);
|
|
2380
2389
|
|
|
2381
2390
|
const maybeForm = /** @type any */(Nodes.queryChildren(this, 'ful-form'));
|
|
@@ -2458,7 +2467,10 @@ class InstantFilter extends ParsedElement {
|
|
|
2458
2467
|
static observed = ["value:json"];
|
|
2459
2468
|
static slots = true;
|
|
2460
2469
|
static template = `
|
|
2461
|
-
<
|
|
2470
|
+
<div class="form-label" data-tpl-if="label">
|
|
2471
|
+
<label>{{{{ label }}}}</label>
|
|
2472
|
+
{{{{ slots.info }}}}
|
|
2473
|
+
</div>
|
|
2462
2474
|
<div class="input-group">
|
|
2463
2475
|
<button data-ref="operator" class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" value="LTE" form="">≼</button>
|
|
2464
2476
|
<ul class="dropdown-menu">
|
|
@@ -2560,7 +2572,10 @@ class LocalDateFilter extends ParsedElement {
|
|
|
2560
2572
|
static observed = ["value:json"];
|
|
2561
2573
|
static slots = true;
|
|
2562
2574
|
static template = `
|
|
2563
|
-
<
|
|
2575
|
+
<div class="form-label" data-tpl-if="label">
|
|
2576
|
+
<label>{{{{ label }}}}</label>
|
|
2577
|
+
{{{{ slots.info }}}}
|
|
2578
|
+
</div>
|
|
2564
2579
|
<div class="input-group">
|
|
2565
2580
|
<button data-ref="operator" class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" value="EQ" form="">=</button>
|
|
2566
2581
|
<ul class="dropdown-menu">
|
|
@@ -2652,7 +2667,10 @@ class TextFilter extends ParsedElement {
|
|
|
2652
2667
|
static observed = ["value:json"];
|
|
2653
2668
|
static slots = true;
|
|
2654
2669
|
static template = `
|
|
2655
|
-
<
|
|
2670
|
+
<div class="form-label" data-tpl-if="label">
|
|
2671
|
+
<label>{{{{ label }}}}</label>
|
|
2672
|
+
{{{{ slots.info }}}}
|
|
2673
|
+
</div>
|
|
2656
2674
|
<div class="input-group">
|
|
2657
2675
|
<button data-ref="operator" class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" value="CONTAINS" form="">…a…</button>
|
|
2658
2676
|
<ul class="dropdown-menu">
|