@navette-js/forms 1.0.0-beta.1 → 1.0.0-beta.2
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/README.md +2 -2
- package/lib/builder.d.ts +23 -23
- package/lib/builder.js +29 -32
- package/lib/index.d.ts +170 -175
- package/lib/index.js +209 -219
- package/package.json +5 -6
- package/views/components/field-wrapper.ejs +3 -3
- package/views/components/rich-editor.ejs +2 -3
- package/views/components/text-input.ejs +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navette-js/forms",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
4
|
-
"description": "Form fields for Navette
|
|
3
|
+
"version": "1.0.0-beta.2",
|
|
4
|
+
"description": "Form fields and validation for Navette admin panels.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
},
|
|
36
36
|
"keywords": [
|
|
37
37
|
"navette",
|
|
38
|
-
"filament",
|
|
39
38
|
"admin",
|
|
40
39
|
"panel",
|
|
41
40
|
"livewire",
|
|
@@ -43,9 +42,9 @@
|
|
|
43
42
|
"node"
|
|
44
43
|
],
|
|
45
44
|
"dependencies": {
|
|
46
|
-
"@navette-js/actions": "1.0.0-beta.
|
|
47
|
-
"@navette-js/schemas": "1.0.0-beta.
|
|
48
|
-
"@navette-js/support": "1.0.0-beta.
|
|
45
|
+
"@navette-js/actions": "1.0.0-beta.2",
|
|
46
|
+
"@navette-js/schemas": "1.0.0-beta.2",
|
|
47
|
+
"@navette-js/support": "1.0.0-beta.2",
|
|
49
48
|
"@tiptap/core": "^3.33.1",
|
|
50
49
|
"@tiptap/extension-highlight": "^3.33.1",
|
|
51
50
|
"@tiptap/extension-image": "^3.33.1",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<%#
|
|
1
|
+
<%# Default field wrapper. %>
|
|
2
2
|
<div data-field-wrapper class="<%- cls([locals.wrapperClass, 'fi-fo-field']) %>"<% if (locals.focusable) { %> tabindex="-1"<% } %>>
|
|
3
3
|
<% if (locals.hiddenLabel) { %>
|
|
4
4
|
<% if (locals.labelAsDiv) { %>
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
<% } else { %>
|
|
14
14
|
<div class="fi-fo-field-label-col">
|
|
15
15
|
<div class="fi-fo-field-label-ctn">
|
|
16
|
-
<%#
|
|
16
|
+
<%# Button groups: the label is a <div> referenced by aria-labelledby, not a <label> %>
|
|
17
17
|
<<%- locals.labelAsDiv ? 'div id="' + id + '-label"' : 'label for="' + id + '"' %> class="fi-fo-field-label">
|
|
18
18
|
<%- labelPrefix %>
|
|
19
19
|
<span class="fi-fo-field-label-content">
|
|
20
20
|
<%= label %><% if (required) { %><sup class="fi-fo-field-label-required-mark">*</sup><% } %>
|
|
21
21
|
</span>
|
|
22
22
|
</<%- locals.labelAsDiv ? 'div' : 'label' %>>
|
|
23
|
-
<%#
|
|
23
|
+
<%# After the label: hint, hint icon and hint actions, inline and right-aligned %>
|
|
24
24
|
<%- locals.afterLabel ?? '' %>
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
<%#
|
|
2
|
-
|
|
3
|
-
Variables : livewireId, key (clé et id du champ), statePath. État non géré ici : champ désactivé ou en erreur. %>
|
|
1
|
+
<%# Rich editor markup. Generated by tools/gen-rich-editor-view.mjs: do not edit by hand.
|
|
2
|
+
Variables: livewireId, key (field key and id), statePath. Not handled here: disabled or invalid state. %>
|
|
4
3
|
<div x-cloak="x-cloak" style="--min-height: 10rem;" class="fi-fo-rich-editor fi-input-wrp">
|
|
5
4
|
|
|
6
5
|
<div class="fi-input-wrp-content-ctn">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<%#
|
|
1
|
+
<%# Text input with its prefix/suffix wrapper. %>
|
|
2
2
|
<div <%- wrapper %>>
|
|
3
3
|
<% if (prefix !== null) { %>
|
|
4
4
|
<div x-on:click="if (! $event.target.closest('.fi-input-wrp-actions')) $dispatch('focus-input')" class="fi-input-wrp-prefix fi-input-wrp-prefix-has-content fi-input-wrp-prefix-has-label">
|