@tripley-kit/xfs-form-parser 1.0.1 → 1.0.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/index.cjs +8 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -17849,11 +17849,10 @@ var XFSFormParserVisitor = class extends antlr4.ParseTreeVisitor {
|
|
|
17849
17849
|
const forms = [];
|
|
17850
17850
|
const medias = [];
|
|
17851
17851
|
for (const child of ctx.children || []) {
|
|
17852
|
-
|
|
17853
|
-
if (typeName.startsWith("FormDefinitionContext")) {
|
|
17852
|
+
if (child.ruleIndex === XFSFormParser.RULE_formDefinition) {
|
|
17854
17853
|
const form = this.visitFormDefinition(child);
|
|
17855
17854
|
if (form) forms.push(form);
|
|
17856
|
-
} else if (
|
|
17855
|
+
} else if (child.ruleIndex === XFSFormParser.RULE_mediaDefinition) {
|
|
17857
17856
|
const media = this.visitMediaDefinition(child);
|
|
17858
17857
|
if (media) medias.push(media);
|
|
17859
17858
|
}
|
|
@@ -17868,13 +17867,12 @@ var XFSFormParserVisitor = class extends antlr4.ParseTreeVisitor {
|
|
|
17868
17867
|
const bodyCtx = ctx.formBody();
|
|
17869
17868
|
if (bodyCtx && bodyCtx.children) {
|
|
17870
17869
|
for (const child of bodyCtx.children) {
|
|
17871
|
-
|
|
17872
|
-
if (typeName.startsWith("FormPropertyContext")) {
|
|
17870
|
+
if (child.ruleIndex === XFSFormParser.RULE_formProperty) {
|
|
17873
17871
|
this.parseFormProperty(child, properties);
|
|
17874
|
-
} else if (
|
|
17872
|
+
} else if (child.ruleIndex === XFSFormParser.RULE_frameDefinition) {
|
|
17875
17873
|
const frame = this.visitFrameDefinition(child);
|
|
17876
17874
|
if (frame) frames.push(frame);
|
|
17877
|
-
} else if (
|
|
17875
|
+
} else if (child.ruleIndex === XFSFormParser.RULE_fieldDefinition) {
|
|
17878
17876
|
const field = this.visitFieldDefinition(child);
|
|
17879
17877
|
if (field) fields.push(field);
|
|
17880
17878
|
}
|
|
@@ -17888,7 +17886,7 @@ var XFSFormParserVisitor = class extends antlr4.ParseTreeVisitor {
|
|
|
17888
17886
|
const bodyCtx = ctx.frameBody();
|
|
17889
17887
|
if (bodyCtx && bodyCtx.children) {
|
|
17890
17888
|
for (const child of bodyCtx.children) {
|
|
17891
|
-
if (child.
|
|
17889
|
+
if (child.ruleIndex === XFSFormParser.RULE_frameProperty) {
|
|
17892
17890
|
this.parseFrameProperty(child, properties);
|
|
17893
17891
|
}
|
|
17894
17892
|
}
|
|
@@ -17901,7 +17899,7 @@ var XFSFormParserVisitor = class extends antlr4.ParseTreeVisitor {
|
|
|
17901
17899
|
const bodyCtx = ctx.fieldBody();
|
|
17902
17900
|
if (bodyCtx && bodyCtx.children) {
|
|
17903
17901
|
for (const child of bodyCtx.children) {
|
|
17904
|
-
if (child.
|
|
17902
|
+
if (child.ruleIndex === XFSFormParser.RULE_fieldProperty) {
|
|
17905
17903
|
this.parseFieldProperty(child, properties);
|
|
17906
17904
|
}
|
|
17907
17905
|
}
|
|
@@ -17914,7 +17912,7 @@ var XFSFormParserVisitor = class extends antlr4.ParseTreeVisitor {
|
|
|
17914
17912
|
const bodyCtx = ctx.mediaBody();
|
|
17915
17913
|
if (bodyCtx && bodyCtx.children) {
|
|
17916
17914
|
for (const child of bodyCtx.children) {
|
|
17917
|
-
if (child.
|
|
17915
|
+
if (child.ruleIndex === XFSFormParser.RULE_mediaProperty) {
|
|
17918
17916
|
this.parseMediaProperty(child, properties);
|
|
17919
17917
|
}
|
|
17920
17918
|
}
|