@godxjp/ui 33.4.0 → 33.4.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@godxjp/ui",
3
- "version": "33.4.0",
4
- "godxUiMcp": "33.4.0",
3
+ "version": "33.4.2",
4
+ "godxUiMcp": "33.4.2",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1961,6 +1961,17 @@ function* handRolledFilterBarMatches(source) {
1961
1961
  ) {
1962
1962
  continue;
1963
1963
  }
1964
+ // A Form that lays out its own fields (layout vertical — the default — or horizontal, i.e.
1965
+ // label-left) STACKS them: a parameter form, not a filter row. Only `layout="inline"`, or a
1966
+ // row container placed inside the Form, makes a strip. Measured: gino-cloud's 提出用一式 page
1967
+ // (channel + planned date, `layout="horizontal"`) was a false positive.
1968
+ const formAt = stack.findLastIndex((f) => f.tag === "Form" && !f.attr);
1969
+ if (formAt >= 0) {
1970
+ const formTag = openTags.get(stack[formAt].id)?.openTag ?? "";
1971
+ const inline = /\blayout\s*=\s*\{?\s*["']inline["']/.test(topLevelAttrs(formTag));
1972
+ const rowInside = stack.slice(formAt + 1).some((f) => !f.attr && STRIP_CONTAINER.test(f.tag));
1973
+ if (!inline && !rowInside) continue;
1974
+ }
1964
1975
  const field = stack.findLastIndex((f) => f.tag === "FormField" && !f.attr);
1965
1976
  if (field >= 0) {
1966
1977
  // `label={false}` is a layout slot (a submit row), not a labelled filter.