@tripley-kit/xfs-form-parser 1.0.0 → 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.d.cts CHANGED
@@ -3,7 +3,7 @@ import { Lexer, CharStream, ATN, DFA, ParseTreeVisitor, Parser, FailedPredicateE
3
3
  type Unit = "MM" | "INCH" | "ROWCOLUMN";
4
4
  type Alignment = "TOPLEFT" | "TOPRIGHT" | "BOTTOMLEFT" | "BOTTOMRIGHT";
5
5
  type Orientation = "PORTRAIT" | "LANDSCAPE";
6
- type ClassType = "STATIC" | "STATICTEXT" | "STATICGRAPHIC";
6
+ type ClassType = "STATIC" | "STATICTEXT" | "STATICGRAPHIC" | "OPTIONAL" | "REQUIRED";
7
7
  type ElementType = "TEXT" | "MICR" | "OCR" | "MSF" | "BARCODE" | "GRAPHIC" | "PAGEMARK" | "RECTANGLE";
8
8
  type Style = "SINGLE_THIN" | "SINGLE_THICK" | "DOUBLE_THIN" | "DOUBLE_THICK" | "BOLD" | "ITALIC" | "UNDERLINE" | "NORMAL";
9
9
  type HorizontalAlign = "LEFT" | "RIGHT" | "CENTER" | "JUSTIFY";
@@ -91,6 +91,7 @@ interface Frame {
91
91
  properties: FrameProperties;
92
92
  }
93
93
  interface FieldProperties {
94
+ access?: Access;
94
95
  position: Position;
95
96
  size: Size;
96
97
  initialValue?: string;
@@ -358,6 +359,8 @@ declare class XFSFormLexer extends Lexer {
358
359
  static readonly WS = 126;
359
360
  static readonly LINE_COMMENT = 127;
360
361
  static readonly BLOCK_COMMENT = 128;
362
+ static readonly OPTIONAL = 129;
363
+ static readonly REQUIRED = 130;
361
364
  static readonly EOF: number;
362
365
  static readonly channelNames: string[];
363
366
  static readonly literalNames: (string | null)[];
@@ -541,6 +544,8 @@ declare class XFSFormParser extends Parser {
541
544
  static readonly WS = 126;
542
545
  static readonly LINE_COMMENT = 127;
543
546
  static readonly BLOCK_COMMENT = 128;
547
+ static readonly OPTIONAL = 129;
548
+ static readonly REQUIRED = 130;
544
549
  static readonly EOF: number;
545
550
  static readonly RULE_file = 0;
546
551
  static readonly RULE_formDefinition = 1;
@@ -756,6 +761,8 @@ declare class ClassValueContext extends ParserRuleContext {
756
761
  STATIC(): TerminalNode;
757
762
  STATICTEXT(): TerminalNode;
758
763
  STATICGRAPHIC(): TerminalNode;
764
+ OPTIONAL(): TerminalNode;
765
+ REQUIRED(): TerminalNode;
759
766
  get ruleIndex(): number;
760
767
  accept<Result>(visitor: XFSFormVisitor<Result>): Result;
761
768
  }
@@ -853,6 +860,8 @@ declare class FieldBodyContext extends ParserRuleContext {
853
860
  }
854
861
  declare class FieldPropertyContext extends ParserRuleContext {
855
862
  constructor(parser?: XFSFormParser, parent?: ParserRuleContext, invokingState?: number);
863
+ ACCESS(): TerminalNode;
864
+ accessValue(): AccessValueContext;
856
865
  POSITION(): TerminalNode;
857
866
  NUMBER_list(): TerminalNode[];
858
867
  NUMBER(i: number): TerminalNode;
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { Lexer, CharStream, ATN, DFA, ParseTreeVisitor, Parser, FailedPredicateE
3
3
  type Unit = "MM" | "INCH" | "ROWCOLUMN";
4
4
  type Alignment = "TOPLEFT" | "TOPRIGHT" | "BOTTOMLEFT" | "BOTTOMRIGHT";
5
5
  type Orientation = "PORTRAIT" | "LANDSCAPE";
6
- type ClassType = "STATIC" | "STATICTEXT" | "STATICGRAPHIC";
6
+ type ClassType = "STATIC" | "STATICTEXT" | "STATICGRAPHIC" | "OPTIONAL" | "REQUIRED";
7
7
  type ElementType = "TEXT" | "MICR" | "OCR" | "MSF" | "BARCODE" | "GRAPHIC" | "PAGEMARK" | "RECTANGLE";
8
8
  type Style = "SINGLE_THIN" | "SINGLE_THICK" | "DOUBLE_THIN" | "DOUBLE_THICK" | "BOLD" | "ITALIC" | "UNDERLINE" | "NORMAL";
9
9
  type HorizontalAlign = "LEFT" | "RIGHT" | "CENTER" | "JUSTIFY";
@@ -91,6 +91,7 @@ interface Frame {
91
91
  properties: FrameProperties;
92
92
  }
93
93
  interface FieldProperties {
94
+ access?: Access;
94
95
  position: Position;
95
96
  size: Size;
96
97
  initialValue?: string;
@@ -358,6 +359,8 @@ declare class XFSFormLexer extends Lexer {
358
359
  static readonly WS = 126;
359
360
  static readonly LINE_COMMENT = 127;
360
361
  static readonly BLOCK_COMMENT = 128;
362
+ static readonly OPTIONAL = 129;
363
+ static readonly REQUIRED = 130;
361
364
  static readonly EOF: number;
362
365
  static readonly channelNames: string[];
363
366
  static readonly literalNames: (string | null)[];
@@ -541,6 +544,8 @@ declare class XFSFormParser extends Parser {
541
544
  static readonly WS = 126;
542
545
  static readonly LINE_COMMENT = 127;
543
546
  static readonly BLOCK_COMMENT = 128;
547
+ static readonly OPTIONAL = 129;
548
+ static readonly REQUIRED = 130;
544
549
  static readonly EOF: number;
545
550
  static readonly RULE_file = 0;
546
551
  static readonly RULE_formDefinition = 1;
@@ -756,6 +761,8 @@ declare class ClassValueContext extends ParserRuleContext {
756
761
  STATIC(): TerminalNode;
757
762
  STATICTEXT(): TerminalNode;
758
763
  STATICGRAPHIC(): TerminalNode;
764
+ OPTIONAL(): TerminalNode;
765
+ REQUIRED(): TerminalNode;
759
766
  get ruleIndex(): number;
760
767
  accept<Result>(visitor: XFSFormVisitor<Result>): Result;
761
768
  }
@@ -853,6 +860,8 @@ declare class FieldBodyContext extends ParserRuleContext {
853
860
  }
854
861
  declare class FieldPropertyContext extends ParserRuleContext {
855
862
  constructor(parser?: XFSFormParser, parent?: ParserRuleContext, invokingState?: number);
863
+ ACCESS(): TerminalNode;
864
+ accessValue(): AccessValueContext;
856
865
  POSITION(): TerminalNode;
857
866
  NUMBER_list(): TerminalNode[];
858
867
  NUMBER(i: number): TerminalNode;