nuxt-ui-tools 1.30.0 → 1.30.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/dist/module.json
CHANGED
|
@@ -177,8 +177,8 @@ onBeforeUnmount(() => unregister?.());
|
|
|
177
177
|
</header>
|
|
178
178
|
<div
|
|
179
179
|
:class="
|
|
180
|
-
mergeFormUiClass(
|
|
181
|
-
|
|
180
|
+
entry.section.flush ? 'min-w-0' : mergeFormUiClass(
|
|
181
|
+
`min-w-0 ${page.surfaceClasses.value.sectionBody}`,
|
|
182
182
|
pageUi?.sectionBody
|
|
183
183
|
)
|
|
184
184
|
"
|
|
@@ -400,6 +400,18 @@ function buildFieldRules(params) {
|
|
|
400
400
|
continue;
|
|
401
401
|
}
|
|
402
402
|
if (isFlatPassthroughField(field)) {
|
|
403
|
+
const visible = shouldRenderField(field, {
|
|
404
|
+
api: params.apiFactory(params.parentPath, field),
|
|
405
|
+
ctx: params.context,
|
|
406
|
+
deps: resolveFieldDependencies({
|
|
407
|
+
field,
|
|
408
|
+
parentPath: params.parentPath,
|
|
409
|
+
state: params.state
|
|
410
|
+
})
|
|
411
|
+
});
|
|
412
|
+
if (!visible) {
|
|
413
|
+
continue;
|
|
414
|
+
}
|
|
403
415
|
const childRules = buildFieldRules({ ...params, fields: getChildFieldsForRules(field) });
|
|
404
416
|
for (const [key, value] of Object.entries(childRules)) {
|
|
405
417
|
if (value !== void 0) {
|
|
@@ -41,9 +41,9 @@ export interface FormPageSection<TContext = NonNullable<unknown>, TFields extend
|
|
|
41
41
|
/** Supporting copy next to the title. */
|
|
42
42
|
description?: FormText;
|
|
43
43
|
/**
|
|
44
|
-
* Lets the section's content reach the card's edges: the body under the heading has no padding
|
|
45
|
-
*
|
|
46
|
-
*
|
|
44
|
+
* Lets the section's content reach the card's edges: the body under the heading has no padding,
|
|
45
|
+
* neither the surface's nor one set with `ui.page.ui.sectionBody`. For a block that draws its own
|
|
46
|
+
* rows, such as a price grid.
|
|
47
47
|
*/
|
|
48
48
|
flush?: boolean;
|
|
49
49
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-ui-tools",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.2",
|
|
4
4
|
"description": "Nuxt module and runtime toolkit for UI-heavy Nuxt applications",
|
|
5
5
|
"homepage": "https://github.com/ChronicStone/nuxt-ui-tools#readme",
|
|
6
6
|
"bugs": "https://github.com/ChronicStone/nuxt-ui-tools/issues",
|