nuxt-ui-tools 1.30.1 → 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
@@ -5,7 +5,7 @@
5
5
  "configKey": "nuxtUiTools",
6
6
  "docs": "https://ui.nuxt.com/docs/getting-started/installation/nuxt",
7
7
  "name": "nuxt-ui-tools",
8
- "version": "1.30.1",
8
+ "version": "1.30.2",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.3",
11
11
  "unbuild": "unknown"
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-ui-tools",
3
- "version": "1.30.1",
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",