@dmitryvim/form-builder 0.4.0 → 0.5.1
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/browser/formbuilder.min.js +106 -114
- package/dist/browser/{formbuilder.v0.4.0.min.js → formbuilder.v0.5.1.min.js} +106 -114
- package/dist/cjs/index.cjs +46 -125
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +46 -125
- package/dist/esm/index.js.map +1 -1
- package/dist/form-builder.js +106 -114
- package/dist/types/components/file/render-edit.d.ts +0 -4
- package/dist/types/types/config.d.ts +6 -3
- package/dist/types/types/schema.d.ts +9 -2
- package/package.json +1 -1
|
@@ -36,10 +36,13 @@ export interface Translations {
|
|
|
36
36
|
hintRequired: string;
|
|
37
37
|
hintOptional: string;
|
|
38
38
|
hintPattern: string;
|
|
39
|
-
fileCountSingle: string;
|
|
40
|
-
fileCountPlural: string;
|
|
41
|
-
fileCountWithMax: string;
|
|
42
39
|
fileCountRange: string;
|
|
40
|
+
/** @deprecated Unused since the multi-file meta line was reduced to a Clear-all button. Kept to avoid TS excess-property errors on existing translation overrides. Remove in a future major. */
|
|
41
|
+
fileCountSingle?: string;
|
|
42
|
+
/** @deprecated See {@link Translations.fileCountSingle}. */
|
|
43
|
+
fileCountPlural?: string;
|
|
44
|
+
/** @deprecated See {@link Translations.fileCountSingle}. */
|
|
45
|
+
fileCountWithMax?: string;
|
|
43
46
|
uploadingFile: string;
|
|
44
47
|
filesCounter: string;
|
|
45
48
|
fromLibrary: string;
|
|
@@ -155,13 +155,20 @@ export interface ContainerElement extends BaseElement {
|
|
|
155
155
|
multiple?: boolean;
|
|
156
156
|
minCount?: number;
|
|
157
157
|
maxCount?: number;
|
|
158
|
+
/**
|
|
159
|
+
* Number of columns for horizontal layout (default: 1 for vertical).
|
|
160
|
+
* Applies to single containers (multiple !== true) and to `displayMode: "stack"` items.
|
|
161
|
+
* **Ignored for `displayMode: "slides"`** — slides use a responsive CSS grid;
|
|
162
|
+
* tune density via the `--fb-slide-min-width` CSS variable instead.
|
|
163
|
+
*/
|
|
158
164
|
columns?: 1 | 2 | 3 | 4;
|
|
159
165
|
prefillHints?: PrefillHint[];
|
|
160
166
|
/**
|
|
161
167
|
* How items are arranged when `multiple: true`.
|
|
162
168
|
* - "stack" (default): vertical list, one item per row (current behavior).
|
|
163
|
-
* - "slides":
|
|
164
|
-
*
|
|
169
|
+
* - "slides": responsive grid. Column count is driven by container width and
|
|
170
|
+
* `--fb-slide-min-width` (default 280px). Schema `columns` is ignored —
|
|
171
|
+
* override via theme / host CSS instead. See `.docs/theming.md` (Slides grid).
|
|
165
172
|
* Ignored when `multiple: false`.
|
|
166
173
|
*/
|
|
167
174
|
displayMode?: "stack" | "slides";
|