@sealcode/sealgen 0.15.40 → 0.15.41
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.
|
@@ -18,7 +18,8 @@ class Table extends FormControl {
|
|
|
18
18
|
}
|
|
19
19
|
return (
|
|
20
20
|
/* HTML */
|
|
21
|
-
`<
|
|
21
|
+
`<turbo-frame
|
|
22
|
+
id="${this.getFrameID()}"
|
|
22
23
|
class="${[
|
|
23
24
|
"form-input__wrapper",
|
|
24
25
|
"form-input__wrapper--type--table",
|
|
@@ -50,6 +51,7 @@ class Table extends FormControl {
|
|
|
50
51
|
`<td>
|
|
51
52
|
<input
|
|
52
53
|
type="submit"
|
|
54
|
+
data-turbo-frame="${this.getFrameID()}"
|
|
53
55
|
value="${this.options.label_remove || "remove"}"
|
|
54
56
|
form="${fctx.form_id}"
|
|
55
57
|
formnovalidate
|
|
@@ -85,7 +87,7 @@ class Table extends FormControl {
|
|
|
85
87
|
/>`
|
|
86
88
|
) : ""}
|
|
87
89
|
</div>
|
|
88
|
-
</
|
|
90
|
+
</turbo-frame>`
|
|
89
91
|
);
|
|
90
92
|
}
|
|
91
93
|
getFrameID() {
|
package/package.json
CHANGED
|
@@ -51,7 +51,8 @@ export class Table<F extends Record<string, FormField>> extends FormControl {
|
|
|
51
51
|
if (!rows) {
|
|
52
52
|
rows = [];
|
|
53
53
|
}
|
|
54
|
-
return /* HTML */ `<
|
|
54
|
+
return /* HTML */ `<turbo-frame
|
|
55
|
+
id="${this.getFrameID()}"
|
|
55
56
|
class="${[
|
|
56
57
|
"form-input__wrapper",
|
|
57
58
|
"form-input__wrapper--type--table",
|
|
@@ -93,6 +94,7 @@ export class Table<F extends Record<string, FormField>> extends FormControl {
|
|
|
93
94
|
? /* HTML */ `<td>
|
|
94
95
|
<input
|
|
95
96
|
type="submit"
|
|
97
|
+
data-turbo-frame="${this.getFrameID()}"
|
|
96
98
|
value="${this.options
|
|
97
99
|
.label_remove ||
|
|
98
100
|
"remove"}"
|
|
@@ -129,7 +131,7 @@ export class Table<F extends Record<string, FormField>> extends FormControl {
|
|
|
129
131
|
/>`
|
|
130
132
|
: ""}
|
|
131
133
|
</div>
|
|
132
|
-
</
|
|
134
|
+
</turbo-frame>`;
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
getFrameID() {
|