@asamuzakjp/dom-selector 5.2.2 → 5.3.0

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.
@@ -1,24 +1,24 @@
1
1
  export const AN_PLUS_B: "AnPlusB";
2
+ export const ATTR_SELECTOR: "AttributeSelector";
3
+ export const CLASS_SELECTOR: "ClassSelector";
2
4
  export const COMBINATOR: "Combinator";
3
5
  export const EMPTY: "__EMPTY__";
4
- export const IDENTIFIER: "Identifier";
6
+ export const IDENT: "Identifier";
7
+ export const ID_SELECTOR: "IdSelector";
5
8
  export const NOT_SUPPORTED_ERR: "NotSupportedError";
6
9
  export const NTH: "Nth";
10
+ export const PS_CLASS_SELECTOR: "PseudoClassSelector";
11
+ export const PS_ELEMENT_SELECTOR: "PseudoElementSelector";
7
12
  export const RAW: "Raw";
8
13
  export const SELECTOR: "Selector";
9
- export const SELECTOR_ATTR: "AttributeSelector";
10
- export const SELECTOR_CLASS: "ClassSelector";
11
- export const SELECTOR_ID: "IdSelector";
12
14
  export const SELECTOR_LIST: "SelectorList";
13
- export const SELECTOR_PSEUDO_CLASS: "PseudoClassSelector";
14
- export const SELECTOR_PSEUDO_ELEMENT: "PseudoElementSelector";
15
- export const SELECTOR_TYPE: "TypeSelector";
16
15
  export const STRING: "String";
17
16
  export const SYNTAX_ERR: "SyntaxError";
18
17
  export const TARGET_ALL: "all";
19
18
  export const TARGET_FIRST: "first";
20
19
  export const TARGET_LINEAL: "lineal";
21
20
  export const TARGET_SELF: "self";
21
+ export const TYPE_SELECTOR: "TypeSelector";
22
22
  export const U_FFFD: "�";
23
23
  export const BIT_01: 1;
24
24
  export const BIT_02: 2;
@@ -27,9 +27,9 @@ export const BIT_08: 8;
27
27
  export const BIT_16: 16;
28
28
  export const BIT_32: 32;
29
29
  export const BIT_FFFF: 65535;
30
- export const BIT_HYPHEN: 45;
31
30
  export const DUO: 2;
32
31
  export const HEX: 16;
32
+ export const HYPHEN: 45;
33
33
  export const TYPE_FROM: 8;
34
34
  export const TYPE_TO: -1;
35
35
  export const ELEMENT_NODE: 1;
@@ -48,7 +48,7 @@ export const ALPHA_NUM: "[A-Z\\d]+";
48
48
  export const CHILD_IDX: "(?:first|last|only)-(?:child|of-type)";
49
49
  export const DIGIT: "(?:0|[1-9]\\d*)";
50
50
  export const LANG_PART: "(?:-[A-Z\\d]+)*";
51
- export const PSEUDO_CLASSES: "(?:any-)?link|(?:first|last|only)-(?:child|of-type)|checked|empty|indeterminate|root|target|visited";
51
+ export const PSEUDO_CLASS: "(?:any-)?link|(?:first|last|only)-(?:child|of-type)|checked|empty|indeterminate|root|target|visited";
52
52
  export const ANB: "[+-]?(?:(?:0|[1-9]\\d*)n?|n)|(?:[+-]?(?:0|[1-9]\\d*))?n\\s*[+-]\\s*(?:0|[1-9]\\d*)";
53
53
  export const N_TH: "nth-(?:last-)?(?:child|of-type)\\(\\s*(?:even|odd|[+-]?(?:(?:0|[1-9]\\d*)n?|n)|(?:[+-]?(?:0|[1-9]\\d*))?n\\s*[+-]\\s*(?:0|[1-9]\\d*))\\s*\\)";
54
54
  export const SUB_TYPE: "\\[[^|\\]]+\\]|[#.:][\\w-]+";
@@ -67,30 +67,5 @@ export const COMPLEX_L: "(?:\\*|[A-Za-z][\\w-]*|(?:\\*|[A-Za-z][\\w-]*)?(?:\\[[^
67
67
  export const KEY_IS_NOT: "(?:is|not)";
68
68
  export const LOGICAL_COMPLEX: "(?:is|not)\\(\\s*(?:\\*|[A-Za-z][\\w-]*|(?:\\*|[A-Za-z][\\w-]*)?(?:\\[[^|\\]]+\\]|[#.:][\\w-]+|:is\\(\\s*(?:\\*|[A-Za-z][\\w-]*|(?:\\*|[A-Za-z][\\w-]*)?(?:\\[[^|\\]]+\\]|[#.:][\\w-]+)+)(?:\\s?[\\s>~+]\\s?(?:\\*|[A-Za-z][\\w-]*|(?:\\*|[A-Za-z][\\w-]*)?(?:\\[[^|\\]]+\\]|[#.:][\\w-]+)+))*(?:\\s*,\\s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*)?(?:\\[[^|\\]]+\\]|[#.:][\\w-]+)+)(?:\\s*,\\s*(?:\\*|[A-Za-z][\\w-]*|(?:\\*|[A-Za-z][\\w-]*)?(?:\\[[^|\\]]+\\]|[#.:][\\w-]+)+))*\\s*\\))+))*\\s*\\)";
70
- export const REG_ANCHOR: RegExp;
71
- export const REG_COMPLEX: RegExp;
72
- export const REG_DESCEND: RegExp;
73
- export const REG_DIR: RegExp;
74
- export const REG_FILTER_COMPLEX: RegExp;
75
- export const REG_FILTER_COMPOUND: RegExp;
76
- export const REG_FILTER_SIMPLE: RegExp;
77
- export const REG_FORM: RegExp;
78
- export const REG_FORM_CTRL: RegExp;
79
- export const REG_FORM_VALID: RegExp;
80
- export const REG_HEX: RegExp;
81
- export const REG_INTERACT: RegExp;
82
- export const REG_INVALID_SELECTOR: RegExp;
83
- export const REG_LANG: RegExp;
84
- export const REG_LANG_QUOTED: RegExp;
85
- export const REG_LOGICAL_EMPTY: RegExp;
86
- export const REG_LOGICAL_PSEUDO: RegExp;
87
- export const REG_SHADOW_HOST: RegExp;
88
- export const REG_SHADOW_MODE: RegExp;
89
- export const REG_SHADOW_PSEUDO: RegExp;
90
- export const REG_TAG_NAME: RegExp;
91
- export const REG_TYPE_CHECK: RegExp;
92
- export const REG_TYPE_INPUT: RegExp;
93
- export const REG_TYPE_RANGE: RegExp;
94
- export const REG_TYPE_RESET: RegExp;
95
- export const REG_TYPE_SUBMIT: RegExp;
96
- export const REG_TYPE_TEXT: RegExp;
70
+ export const REG_LOGICAL: RegExp;
71
+ export const REG_INPUT_TYPE: RegExp;