@oracle/oraclejet-audit 18.1.5 → 19.0.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.
Files changed (86) hide show
  1. package/corePackMigrator/corePackMigrator.js +1 -1
  2. package/corePackMigrator/metadata/badgeMetadata.json +66 -0
  3. package/corePackMigrator/metadata/checkboxsetMetadata.json +101 -0
  4. package/corePackMigrator/metadata/inputNumberMetadata.json +0 -3
  5. package/corePackMigrator/metadata/inputTextMetadata.json +0 -3
  6. package/corePackMigrator/metadata/labelMetadata.json +285 -222
  7. package/corePackMigrator/metadata/labelValueMetadata.json +226 -137
  8. package/corePackMigrator/metadata/listviewMetadata.json +7 -0
  9. package/corePackMigrator/metadata/radiosetMetadata.json +20 -9
  10. package/corePackMigrator/metadata/selectorMetadata.json +6 -0
  11. package/corePackMigrator/resource/astUtils.js +1 -1
  12. package/corePackMigrator/resource/componentMigrator.js +1 -1
  13. package/corePackMigrator/resource/fileScanner.js +1 -1
  14. package/corePackMigrator/resource/htmlUtils.js +1 -1
  15. package/corePackMigrator/resource/manifest.json +57 -49
  16. package/corePackMigrator/resource/migrationConfig.json +1 -1
  17. package/corePackMigrator/utilities/logging.js +2 -2
  18. package/jaf-amd.js +1 -1
  19. package/lib/Components.js +1 -1
  20. package/lib/Config.js +1 -1
  21. package/lib/FsUtils.js +1 -1
  22. package/lib/HtmlUtils.js +1 -1
  23. package/lib/JafLib.js +1 -1
  24. package/lib/MetaLib.js +1 -1
  25. package/lib/OjCPack.js +1 -1
  26. package/lib/RegTypes.js +1 -1
  27. package/lib/Registry.js +1 -1
  28. package/lib/Rules.js +1 -1
  29. package/lib/Ts.js +1 -1
  30. package/lib/TsUtils.js +1 -1
  31. package/lib/TsxUtils.js +1 -1
  32. package/lib/checkage.js +1 -1
  33. package/lib/defaults.js +1 -1
  34. package/lib/extends.js +1 -1
  35. package/lib/ns.js +1 -1
  36. package/lib/scaffold.js +1 -1
  37. package/lib/scopewalker.js +1 -1
  38. package/lib/sublib/precomp/Precompiler.js +1 -1
  39. package/libext/expparser.js +1 -1
  40. package/meta/18.0.0/jetauditmeta.js +1 -1
  41. package/meta/18.1.0/jetauditmeta.js +1 -1
  42. package/meta/19.0.0/jetauditmeta.js +9 -0
  43. package/meta/metaverlist.json +1 -1
  44. package/package.json +4 -4
  45. package/profiles/best-practice.json +3 -0
  46. package/profiles/redwood-strict.json +10 -1
  47. package/rulepacks/jetwc/jetwc-use-public-apis.js +6 -0
  48. package/rulepacks/jetwc/msgid.json +1 -1
  49. package/rulepacks/jetwc/rules.json +1 -1
  50. package/rulepacks/jetwc-lib/jetwcutils-componentAuditUtils.js +1 -1
  51. package/rulepacks/jetwc-lib/jetwcutils-componentFinder.js +1 -1
  52. package/rulepacks/jetwco/jetwco-cacc-properties.js +1 -1
  53. package/rulepacks/jetwco/rules.json +1 -1
  54. package/rules/jet/msgid.json +1 -1
  55. package/rules/jet/oj-acc-aria-accessible.js +1 -1
  56. package/rules/jet/oj-acc-aria-prop.js +1 -1
  57. package/rules/jet/oj-acc-navigable-link.js +6 -0
  58. package/rules/jet/oj-acc-select-aria-label.js +1 -1
  59. package/rules/jet/oj-cca-compjson-prop-conflict.js +6 -0
  60. package/rules/jet/oj-css-bp-zindex.js +7 -0
  61. package/rules/jet/oj-html-badge-maintenance.js +6 -0
  62. package/rules/jet/oj-html-binding-as-slot-child.js +1 -1
  63. package/rules/jet/oj-html-corequired.js +6 -0
  64. package/rules/jet/oj-html-nav-tab-nointeractive.js +6 -0
  65. package/rules/jet/oj-html-oj-ux-ico-slot.js +6 -0
  66. package/rules/jet/oj-html-ojtag-id.js +1 -1
  67. package/rules/jet/oj-html-redwood-ojoption-disabled.js +6 -0
  68. package/rules/jet/oj-html-slot-pref-content.js +1 -1
  69. package/rules/jet/oj-html-tabbar-progressive-popup.js +1 -1
  70. package/rules/jet/oj-html-wctag-for.js +1 -1
  71. package/rules/jet/oj-html-wctag-id.js +1 -1
  72. package/rules/jet/oj-html-wctag-maintenance.js +1 -1
  73. package/rules/jet/oj-html-wctag-packprivate.js +1 -1
  74. package/rules/jet/oj-js-poly-promise.js +1 -1
  75. package/rules/jet/oj-ts-poly-promise.js +1 -1
  76. package/rules/jet/oj-tsx-acc-navigable-link.js +6 -0
  77. package/rules/jet/oj-tsx-aria-prop.js +1 -1
  78. package/rules/jet/oj-tsx-corequired.js +6 -0
  79. package/rules/jet/oj-tsx-prop-ko-binding.js +6 -0
  80. package/rules/jet/oj-tsx-tabbar-progressive-popup.js +6 -0
  81. package/rules/jet/oj-tsx-wctag-packprivate.js +1 -1
  82. package/rules/jet/rules.json +1 -1
  83. package/schema/component-schema.json +1 -1
  84. package/src/JafCore.js +1 -1
  85. package/types/index.d.ts +5 -0
  86. package/corePackMigrator/metadata/messagesMetadata.json +0 -41
@@ -1,138 +1,227 @@
1
1
  {
2
- "legacyTag": "oj-label-value",
3
- "slotContentToAttribute": [
4
- {
5
- "fromDescendant": "oj-label",
6
- "slotNameFrom": "label",
7
- "toDescendant": "oj-input-text",
8
- "slotNameTo": "value",
9
- "attribute": "label-hint"
10
- },
11
- {
12
- "fromDescendant": "oj-label",
13
- "slotNameFrom": "label",
14
- "toDescendant": "oj-input-number",
15
- "slotNameTo": "value",
16
- "attribute": "label-hint"
17
- },
18
- {
19
- "fromDescendant": "oj-label",
20
- "slotNameFrom": "label",
21
- "toDescendant": "oj-input-password",
22
- "slotNameTo": "value",
23
- "attribute": "label-hint"
24
- },
25
- {
26
- "fromDescendant": "oj-label",
27
- "slotNameFrom": "label",
28
- "toDescendant": "oj-input-date",
29
- "slotNameTo": "value",
30
- "attribute": "label-hint"
31
- },
32
- {
33
- "fromDescendant": "oj-label",
34
- "slotNameFrom": "label",
35
- "toDescendant": "oj-text-area",
36
- "slotNameTo": "value",
37
- "attribute": "label-hint"
38
- }
39
- ],
40
- "migrateAttributes": [
41
- {
42
- "fromAttribute": "",
43
- "fromValue": "",
44
- "toAttribute": "label-edge",
45
- "toValue": "top"
46
- },
47
- {
48
- "toDescendant": "oj-input-text",
49
- "slotName": "value",
50
- "fromAttribute": "label-edge",
51
- "fromValue": "",
52
- "toAttribute": "label-edge",
53
- "toValue": ""
54
- },
55
- {
56
- "toDescendant": "oj-input-number",
57
- "slotName": "value",
58
- "fromAttribute": "label-edge",
59
- "fromValue": "",
60
- "toAttribute": "label-edge",
61
- "toValue": ""
62
- },
63
- {
64
- "toDescendant": "oj-input-password",
65
- "slotName": "value",
66
- "fromAttribute": "label-edge",
67
- "fromValue": "",
68
- "toAttribute": "label-edge",
69
- "toValue": ""
70
- },
71
- {
72
- "toDescendant": "oj-input-date",
73
- "slotName": "value",
74
- "fromAttribute": "label-edge",
75
- "fromValue": "",
76
- "toAttribute": "label-edge",
77
- "toValue": ""
78
- },
79
- {
80
- "toDescendant": "oj-text-area",
81
- "slotName": "value",
82
- "fromAttribute": "label-edge",
83
- "fromValue": "",
84
- "toAttribute": "label-edge",
85
- "toValue": ""
86
- }
87
- ],
88
- "migrateDescendants": [
89
- "inputTextMetadata",
90
- "inputNumberMetadata",
91
- "inputPasswordMetadata",
92
- "inputDateMetadata",
93
- "textAreaMetadata"
94
- ],
95
- "replaceComponent": [
96
- {
97
- "descendant": "oj-c-input-text"
98
- },
99
- {
100
- "descendant": "oj-c-input-number"
101
- },
102
- {
103
- "descendant": "oj-c-input-password"
104
- },
105
- {
106
- "descendant": "oj-c-input-date-picker"
107
- },
108
- {
109
- "descendant": "oj-c-text-area"
110
- }
111
- ],
112
- "ruleSetToIgnore": [
113
- {
114
- "descendant": "oj-form-layout"
115
- },
116
- {
117
- "missDescendant": {
118
- "tag": ["oj-input-text", "oj-input-password", "oj-input-number", "oj-input-date", "oj-text-area"],
119
- "attribute": "converter",
120
- "missSlot": "value"
121
- }
122
- },
123
- {
124
- "missDescendant": {
125
- "tag": ["oj-input-text", "oj-input-password", "oj-input-number", "oj-input-date", "oj-text-area"],
126
- "attribute": "label-hint",
127
- "missSlot": "value"
128
- }
129
- },
130
- {
131
- "missDescendant": {
132
- "tag": ["oj-input-text", "oj-input-password", "oj-input-number", "oj-input-date", "oj-text-area"],
133
- "attribute": "aria-label",
134
- "missSlot": "value"
135
- }
136
- }
137
- ]
138
- }
2
+ "legacyTag": "oj-label-value",
3
+ "slotContentToAttribute": [
4
+ {
5
+ "fromDescendant": "oj-label",
6
+ "slotNameFrom": "label",
7
+ "toDescendant": "oj-input-text",
8
+ "slotNameTo": "value",
9
+ "attribute": "label-hint"
10
+ },
11
+ {
12
+ "fromDescendant": "oj-label",
13
+ "slotNameFrom": "label",
14
+ "toDescendant": "oj-input-number",
15
+ "slotNameTo": "value",
16
+ "attribute": "label-hint"
17
+ },
18
+ {
19
+ "fromDescendant": "oj-label",
20
+ "slotNameFrom": "label",
21
+ "toDescendant": "oj-input-password",
22
+ "slotNameTo": "value",
23
+ "attribute": "label-hint"
24
+ },
25
+ {
26
+ "fromDescendant": "oj-label",
27
+ "slotNameFrom": "label",
28
+ "toDescendant": "oj-input-date",
29
+ "slotNameTo": "value",
30
+ "attribute": "label-hint"
31
+ },
32
+ {
33
+ "fromDescendant": "oj-label",
34
+ "slotNameFrom": "label",
35
+ "toDescendant": "oj-text-area",
36
+ "slotNameTo": "value",
37
+ "attribute": "label-hint"
38
+ },
39
+ {
40
+ "fromDescendant": "oj-label",
41
+ "slotNameFrom": "label",
42
+ "toDescendant": "oj-radioset",
43
+ "slotNameTo": "value",
44
+ "attribute": "label-hint"
45
+ },
46
+ {
47
+ "fromDescendant": "oj-label",
48
+ "slotNameFrom": "label",
49
+ "toDescendant": "oj-checkboxset",
50
+ "slotNameTo": "value",
51
+ "attribute": "label-hint"
52
+ }
53
+ ],
54
+ "migrateAttributes": [
55
+ {
56
+ "fromAttribute": "",
57
+ "fromValue": "",
58
+ "toAttribute": "label-edge",
59
+ "toValue": "top"
60
+ },
61
+ {
62
+ "toDescendant": "oj-input-text",
63
+ "slotName": "value",
64
+ "fromAttribute": "label-edge",
65
+ "fromValue": "",
66
+ "toAttribute": "label-edge",
67
+ "toValue": ""
68
+ },
69
+ {
70
+ "toDescendant": "oj-input-number",
71
+ "slotName": "value",
72
+ "fromAttribute": "label-edge",
73
+ "fromValue": "",
74
+ "toAttribute": "label-edge",
75
+ "toValue": ""
76
+ },
77
+ {
78
+ "toDescendant": "oj-input-password",
79
+ "slotName": "value",
80
+ "fromAttribute": "label-edge",
81
+ "fromValue": "",
82
+ "toAttribute": "label-edge",
83
+ "toValue": ""
84
+ },
85
+ {
86
+ "toDescendant": "oj-input-date",
87
+ "slotName": "value",
88
+ "fromAttribute": "label-edge",
89
+ "fromValue": "",
90
+ "toAttribute": "label-edge",
91
+ "toValue": ""
92
+ },
93
+ {
94
+ "toDescendant": "oj-text-area",
95
+ "slotName": "value",
96
+ "fromAttribute": "label-edge",
97
+ "fromValue": "",
98
+ "toAttribute": "label-edge",
99
+ "toValue": ""
100
+ },
101
+ {
102
+ "toDescendant": "oj-radioset",
103
+ "slotName": "value",
104
+ "fromAttribute": "label-edge",
105
+ "fromValue": "",
106
+ "toAttribute": "label-edge",
107
+ "toValue": ""
108
+ },
109
+ {
110
+ "toDescendant": "oj-checkboxset",
111
+ "slotName": "value",
112
+ "fromAttribute": "label-edge",
113
+ "fromValue": "",
114
+ "toAttribute": "label-edge",
115
+ "toValue": ""
116
+ }
117
+ ],
118
+ "migrateDescendants": [
119
+ "inputTextMetadata",
120
+ "inputNumberMetadata",
121
+ "inputPasswordMetadata",
122
+ "inputDateMetadata",
123
+ "textAreaMetadata",
124
+ "radiosetMetadata",
125
+ "checkboxsetMetadata"
126
+ ],
127
+ "replaceComponent": [
128
+ {
129
+ "descendant": "oj-c-input-text"
130
+ },
131
+ {
132
+ "descendant": "oj-c-input-number"
133
+ },
134
+ {
135
+ "descendant": "oj-c-input-password"
136
+ },
137
+ {
138
+ "descendant": "oj-c-input-date-picker"
139
+ },
140
+ {
141
+ "descendant": "oj-c-text-area"
142
+ },
143
+ {
144
+ "descendant": "oj-c-radioset"
145
+ },
146
+ {
147
+ "descendant": "oj-c-checkboxset"
148
+ },
149
+ {
150
+ "descendant": "oj-input-text"
151
+ },
152
+ {
153
+ "descendant": "oj-input-number"
154
+ },
155
+ {
156
+ "descendant": "oj-input-password"
157
+ },
158
+ {
159
+ "descendant": "oj-input-date-picker"
160
+ },
161
+ {
162
+ "descendant": "oj-text-area"
163
+ },
164
+ {
165
+ "descendant": "oj-radioset"
166
+ },
167
+ {
168
+ "descendant": "oj-checkboxset"
169
+ }
170
+ ],
171
+ "ruleSetToIgnore": [
172
+ {
173
+ "descendant": "oj-form-layout"
174
+ },
175
+ {
176
+ "missDescendant": {
177
+ "tagAttributes": [
178
+ {
179
+ "name": "oj-input-text",
180
+ "attribute": [{ "label-hint": "", "aria-label": "" }],
181
+ "missSlot": "value"
182
+ },
183
+ {
184
+ "name": "oj-input-number",
185
+ "attribute": [{ "label-hint": "", "aria-label": "" }],
186
+ "missSlot": "value"
187
+ },
188
+ {
189
+ "name": "oj-input-password",
190
+ "attribute": [{ "label-hint": "", "aria-label": "" }, { "converter": "" }],
191
+ "missSlot": "value"
192
+ },
193
+ {
194
+ "name": "oj-input-date",
195
+ "attribute": [{ "label-hint": "", "aria-label": "" }, { "converter": "" }],
196
+ "missSlot": "value"
197
+ },
198
+ {
199
+ "name": "oj-text-area",
200
+ "attribute": [{ "label-hint": "", "aria-label": "" }, { "converter": "" }],
201
+ "missSlot": "value"
202
+ },
203
+ {
204
+ "name": "oj-radioset",
205
+ "attribute": [{ "label-hint": "", "aria-label": "" }],
206
+ "missSlot": "value",
207
+ "descendant": {
208
+ "descendant": "oj-option",
209
+ "attribute": "disabled"
210
+ },
211
+ "mapper": "true"
212
+ },
213
+ {
214
+ "name": "oj-checkboxset",
215
+ "attribute": [{ "label-hint": "", "aria-label": "" }],
216
+ "missSlot": "value",
217
+ "descendant": {
218
+ "descendant": "oj-option",
219
+ "attribute": "disabled"
220
+ },
221
+ "mapper": "true"
222
+ }
223
+ ]
224
+ }
225
+ }
226
+ ]
227
+ }
@@ -11,6 +11,13 @@
11
11
  "fromValue": "visibleExceptLast",
12
12
  "toAttribute": "gridlines.item",
13
13
  "toValue": "visible"
14
+ },
15
+ {
16
+ "depAttribute": "gridlines.item",
17
+ "fromAttribute": "",
18
+ "fromValue": "",
19
+ "toAttribute": "gridlines.bottom",
20
+ "toValue": "visible"
14
21
  }
15
22
  ],
16
23
  "ruleSetToIgnore": [
@@ -5,9 +5,9 @@
5
5
  "from": "ojs/ojradioset",
6
6
  "to": "oj-c/radioset"
7
7
  },
8
- "slotContentToAttribute": {
9
- "slotName": "oj-label",
10
- "attribute": "label-hint"
8
+ "migrateOptions": {
9
+ "toAttribute": "options",
10
+ "ignoreAttribute": ["disabled"]
11
11
  },
12
12
  "classNameToAttribute": [
13
13
  {
@@ -34,12 +34,6 @@
34
34
  "toAttribute": "",
35
35
  "toValue": ""
36
36
  },
37
- {
38
- "fromAttribute": "optionRenderer",
39
- "fromValue": "",
40
- "toAttribute": "",
41
- "toValue": ""
42
- },
43
37
  {
44
38
  "fromAttribute": "class",
45
39
  "fromValue": "oj-radioset-input-end",
@@ -75,6 +69,23 @@
75
69
  "fromValue": "",
76
70
  "toAttribute": "",
77
71
  "toValue": ""
72
+ },
73
+ {
74
+ "fromAttribute": "described-by",
75
+ "fromValue": "",
76
+ "toAttribute": "",
77
+ "toValue": ""
78
+ },
79
+ {
80
+ "fromAttribute": "labelled-by",
81
+ "fromValue": "",
82
+ "toAttribute": "",
83
+ "toValue": ""
84
+ }
85
+ ],
86
+ "ruleSetToIgnore": [
87
+ {
88
+ "missAttribute": {"label-hint": ""}
78
89
  }
79
90
  ],
80
91
  "migrateTest": {
@@ -40,6 +40,12 @@
40
40
  "fromValue": "all",
41
41
  "toAttribute": "",
42
42
  "toValue": ""
43
+ },
44
+ {
45
+ "fromAttribute": "indeterminate",
46
+ "fromValue": "",
47
+ "toAttribute": "",
48
+ "toValue": ""
43
49
  }
44
50
  ]
45
51
  }