@oracle/oraclejet-audit 15.1.7 → 16.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 (150) hide show
  1. package/corePackMigrator/corePackMigrator.js +2 -2
  2. package/corePackMigrator/metadata/actionCardMetadata.json +8 -0
  3. package/corePackMigrator/metadata/avatarMetadata.json +0 -12
  4. package/corePackMigrator/metadata/drawerPopupMetadata.json +16 -0
  5. package/corePackMigrator/metadata/formLayoutMetadata.json +34 -0
  6. package/corePackMigrator/metadata/highlightTextMetadata.json +8 -0
  7. package/corePackMigrator/metadata/inputNumberMetadata.json +26 -2
  8. package/corePackMigrator/metadata/inputPasswordMetadata.json +32 -2
  9. package/corePackMigrator/metadata/inputTextMetadata.json +26 -2
  10. package/corePackMigrator/metadata/legendItemMetadata.json +1 -5
  11. package/corePackMigrator/metadata/legendMetadata.json +42 -0
  12. package/corePackMigrator/metadata/legendSectionMetadata.json +6 -4
  13. package/corePackMigrator/metadata/listviewMetadata.json +61 -2
  14. package/corePackMigrator/metadata/messageBannerMetadata.json +8 -0
  15. package/corePackMigrator/metadata/messagesMetadata.json +17 -5
  16. package/corePackMigrator/metadata/radiosetMetadata.json +86 -0
  17. package/corePackMigrator/metadata/ratingGaugeMetadata.json +29 -17
  18. package/corePackMigrator/metadata/selectManyMetadata.json +9 -3
  19. package/corePackMigrator/metadata/selectSingleMetadata.json +16 -5
  20. package/corePackMigrator/metadata/selectorMetadata.json +37 -0
  21. package/corePackMigrator/metadata/statusMeterGaugeMetadata.json +21 -9
  22. package/corePackMigrator/metadata/tagCloudMetadata.json +8 -0
  23. package/corePackMigrator/metadata/textAreaMetadata.json +8 -2
  24. package/corePackMigrator/resource/astUtils.js +1 -1
  25. package/corePackMigrator/resource/componentMigrator.js +1 -1
  26. package/corePackMigrator/resource/fileScanner.js +1 -1
  27. package/corePackMigrator/resource/htmlUtils.js +1 -1
  28. package/corePackMigrator/resource/manifest.json +25 -10
  29. package/corePackMigrator/resource/migrationConfig.json +3 -0
  30. package/corePackMigrator/templates/componentMetaData.json +18 -4
  31. package/corePackMigrator/templates/migrationConfig.json +15 -3
  32. package/corePackMigrator/utilities/logging.js +1 -1
  33. package/jaf-amd.js +1 -1
  34. package/jaf.js +1 -1
  35. package/jafapi.js +1 -1
  36. package/lib/AST_Ts.js +1 -1
  37. package/lib/AstNodeTypes.js +1 -1
  38. package/lib/Components.js +1 -1
  39. package/lib/DomUtils.js +1 -1
  40. package/lib/FsUtils.js +1 -1
  41. package/lib/HtmlUtils.js +1 -1
  42. package/lib/JafLib.js +1 -1
  43. package/lib/MetaLib.js +1 -1
  44. package/lib/OjCPack.js +1 -1
  45. package/lib/Registry.js +1 -1
  46. package/lib/RulePack.js +1 -1
  47. package/lib/RuleSet.js +1 -1
  48. package/lib/Rules.js +1 -1
  49. package/lib/Stats.js +1 -1
  50. package/lib/Ts.js +1 -1
  51. package/lib/TsUtils.js +6 -0
  52. package/lib/TsxUtils.js +1 -1
  53. package/lib/TsxUtils2.js +1 -1
  54. package/lib/Utils.js +1 -1
  55. package/lib/checkage.js +1 -1
  56. package/lib/defaults.js +1 -1
  57. package/lib/jsx.js +1 -1
  58. package/lib/migrator.js +1 -1
  59. package/lib/scaffold.js +1 -1
  60. package/lib/sublib/precomp/ComponentFinder.js +6 -0
  61. package/lib/sublib/precomp/Precompiler.js +6 -0
  62. package/lib/sublib/precomp/TsxUtils.js +6 -0
  63. package/lib/sublib/precomp/Utils.js +6 -0
  64. package/meta/15.0.0/jetauditmeta.js +1 -1
  65. package/meta/15.1.0/jetauditmeta.js +1 -1
  66. package/meta/16.0.0/jetauditmeta.js +9 -0
  67. package/meta/metaverlist.json +1 -1
  68. package/package.json +10 -7
  69. package/profiles/best-practice.json +1 -0
  70. package/rulepacks/csp/csp-json-unsafe-expr.js +1 -1
  71. package/rulepacks/jetwc/jetwc-bootstrap.js +1 -1
  72. package/rulepacks/jetwc/jetwc-require-paths.js +1 -1
  73. package/rulepacks/jetwc/jetwc-schema.js +1 -1
  74. package/rulepacks/jetwc/jetwc-well-formed-description.js +6 -0
  75. package/rulepacks/jetwc/msgid.json +1 -1
  76. package/rulepacks/jetwc/rules.json +1 -1
  77. package/rulepacks/jetwc-lib/jetwcutils-componentAuditUtils.js +1 -1
  78. package/rulepacks/jetwc-lib/jetwcutils-componentFinder.js +1 -1
  79. package/rulepacks/jetwc-lib/jetwcutils-tsxUtils.js +1 -1
  80. package/rulepacks/jetwco/jetwco-bootstrap.js +1 -1
  81. package/rulepacks/jetwco/jetwco-cacc-methodParamTypes.js +1 -1
  82. package/rulepacks/jetwco/jetwco-cacc-methodReturnType.js +1 -1
  83. package/rulepacks/jetwco/jetwco-description-standards.js +1 -1
  84. package/rulepacks/jetwco/jetwco-license-info.js +1 -1
  85. package/rulepacks/jetwco/jetwco-validate-applied-audits.js +6 -0
  86. package/rulepacks/jetwco/msgid.json +1 -1
  87. package/rulepacks/jetwco/rules.json +1 -1
  88. package/rulepacks/ojc/msgid.json +1 -1
  89. package/rulepacks/ojc/ojc-html-button-defslot.js +6 -0
  90. package/rulepacks/ojc/ojc-tsx-button-defslot.js +6 -0
  91. package/rulepacks/ojc/rules.json +1 -1
  92. package/rules/jaf/jaf-css-diagnose.js +1 -1
  93. package/rules/jaf/jaf-js-diagnose.js +1 -1
  94. package/rules/jaf/jaf-sys-dup-component.js +6 -0
  95. package/rules/jaf/jaf-sys-rule-opt.js +6 -0
  96. package/rules/jaf/jaf-ts-precompile.js +6 -0
  97. package/rules/jaf/msgid.json +1 -1
  98. package/rules/jaf/rules.json +1 -1
  99. package/rules/jet/helpers/has-slot-name.js +1 -1
  100. package/rules/jet/msgid.json +1 -1
  101. package/rules/jet/oj-cca-compjson-bp-jetver.js +1 -1
  102. package/rules/jet/oj-html-alta-deprecated.js +1 -1
  103. package/rules/jet/oj-html-attr-expr-writeback.js +6 -0
  104. package/rules/jet/oj-html-binding-as-slot-child.js +6 -0
  105. package/rules/jet/oj-html-event-focus-blur.js +6 -0
  106. package/rules/jet/oj-html-form-bindif.js +1 -1
  107. package/rules/jet/oj-html-ojattr-deprecated.js +1 -1
  108. package/rules/jet/oj-html-ojattr-enum-deprecated.js +1 -1
  109. package/rules/jet/oj-html-ojattr.js +1 -1
  110. package/rules/jet/oj-html-ojtag-deprecated.js +1 -1
  111. package/rules/jet/oj-html-ojtag-nonglobattr-prefix.js +1 -1
  112. package/rules/jet/oj-html-prop-anti-pattern.js +6 -0
  113. package/rules/jet/oj-html-slot-default.js +6 -0
  114. package/rules/jet/oj-html-slot-deprecated.js +1 -1
  115. package/rules/jet/oj-html-slot-name.js +1 -1
  116. package/rules/jet/oj-html-slot-pref-content.js +1 -1
  117. package/rules/jet/oj-html-style-deprecated.js +1 -1
  118. package/rules/jet/oj-html-treeview-actionable-content.js +6 -0
  119. package/rules/jet/oj-html-wctag-anti-pattern.js +6 -0
  120. package/rules/jet/oj-html-wctag-maintenance.js +1 -1
  121. package/rules/jet/oj-html-wctag-supersedes.js +1 -1
  122. package/rules/jet/oj-js-ojcomp-exist.js +1 -1
  123. package/rules/jet/oj-ts-ojcomp-exist.js +1 -1
  124. package/rules/jet/oj-tsx-aria-ojselector-labelledby.js +1 -1
  125. package/rules/jet/oj-tsx-aria-prop.js +1 -1
  126. package/rules/jet/oj-tsx-event.js +6 -0
  127. package/rules/jet/oj-tsx-ojattr-deprecated.js +1 -1
  128. package/rules/jet/oj-tsx-ojattr-enum-deprecated.js +1 -1
  129. package/rules/jet/oj-tsx-ojattr-value.js +1 -1
  130. package/rules/jet/oj-tsx-ojattr.js +1 -1
  131. package/rules/jet/oj-tsx-ojtag-deprecated.js +1 -1
  132. package/rules/jet/oj-tsx-pageopts-type.js +1 -1
  133. package/rules/jet/oj-tsx-picker-attrs.js +1 -1
  134. package/rules/jet/oj-tsx-popup-sibling.js +6 -0
  135. package/rules/jet/oj-tsx-prop-anti-pattern.js +6 -0
  136. package/rules/jet/oj-tsx-rating-gauge-size.js +1 -1
  137. package/rules/jet/oj-tsx-rating-gauge-track-resize.js +1 -1
  138. package/rules/jet/oj-tsx-slot-deprecated.js +1 -1
  139. package/rules/jet/oj-tsx-slot-pref-content.js +1 -1
  140. package/rules/jet/oj-tsx-treeview-actionable-content.js +6 -0
  141. package/rules/jet/oj-tsx-unsup-theme.js +1 -1
  142. package/rules/jet/oj-tsx-wctag-anti-pattern.js +6 -0
  143. package/rules/jet/oj-tsx-wctag-maintenance.js +1 -1
  144. package/rules/jet/rules.json +1 -1
  145. package/schema/component-schema.json +1 -1
  146. package/src/JafCore.js +1 -1
  147. package/types/index.d.ts +1 -0
  148. package/rulepacks/jetwc-lib/jetwcutils-preCompiler.js +0 -6
  149. package/rules/jet/oj-html-combo-converter.js +0 -6
  150. package/rules/jet/oj-tsx-combo-converter.js +0 -6
@@ -3,8 +3,8 @@
3
3
  * Licensed under The Universal Permissive License (UPL), Version 1.0
4
4
  * as shown at https://oss.oracle.com/licenses/upl/
5
5
  */
6
- const readlineSync=require("readline-sync");const fileScanner=require("./resource/fileScanner");let manifestData=require("./resource/manifest.json");const logging=require("./utilities/logging");const migrator=require("./resource/componentMigrator");global.configData=require("./resource/migrationConfig.json");function migrate(){if(global.jaf.options.dryRunMode){const text="\nMigrator is in Dry Run Mode.\n\tFile changes will not occur.";global.jaf.log.warn(text);logging.logMessage(text)}else{global.jaf.log.warn("\nMigrator will make file changes.");if(readlineSync.keyInYNStrict("Do you want to continue?")){logging.consoleLog("\nMigration in progress. Please wait...")}else{logging.consoleLog("\nMigration attempt exited. No changes occured.");return 0}}console.time("** Time for Migration");if(global.jaf.configPath){const{excludeFolders,excludeFiles,excludeComponents,forceMigration,excludeAttributeExpressions}=fileScanner.getConfigData(global.jaf.configPath);if(excludeFiles){global.configData.excludeFiles=excludeFiles}if(excludeFolders){global.configData.excludeFolders=global.configData.excludeFolders.concat(excludeFolders)}if(excludeComponents){manifestData=manifestData.filter(obj=>{return!excludeComponents.includes(obj.componentName)})}if(forceMigration){global.configData.forceMigration=forceMigration}if(excludeAttributeExpressions){global.configData.excludeAttributeExpressions=excludeAttributeExpressions}}const sourcePath=process.cwd();global.migrationMetrics={components:0,files:0};const fileSets=fileScanner.scanForFiles(sourcePath);for(let extension in fileSets){for(let filepath of fileSets[extension]){global.filePath=filepath;global.fileIsUpdated=false;for(let obj of manifestData){let componentMetadata=require("./metadata/"+obj.metadata+".json");switch(extension){case".html":migrator.migrateHTML(filepath,componentMetadata);break;case".js":case".ts":case".jsx":case".tsx":migrator.migrateTSX(filepath,componentMetadata);case".css":break}}}}logging.consoleLog(`\n
6
+ var fs=require("fs");const readlineSync=require("readline-sync");const fileScanner=require("./resource/fileScanner");global.manifestData=require("./resource/manifest.json");const logging=require("./utilities/logging");const migrator=require("./resource/componentMigrator");global.configData=require("./resource/migrationConfig.json");function migrate(){if(global.jaf.options.dryRunMode){const text="\nMigrator is in Dry Run Mode.\n\tFile changes will not occur.";global.jaf.log.warn(text);logging.logMessage(text)}else{global.jaf.log.warn("\nMigrator will make file changes.");if(readlineSync.keyInYNStrict("Do you want to continue?")){logging.consoleLog("\nMigration in progress. Please wait...")}else{logging.consoleLog("\nMigration attempt exited. No changes occured.");return 0}}console.time("** Time for Migration");if(global.jaf.configPath){const{excludeFolders,excludeFiles,excludeComponents,includeFiles,includeFolders,includeComponents,forceMigration,excludeAttributeExpressions,baseMigrationDir,logFileName,logFilePath}=fileScanner.getConfigData(global.jaf.configPath);global.configData=Object.assign(global.configData,{baseMigrationDir,logFileName,logFilePath});if(excludeFiles?.length&&includeFiles?.length){logging.logIncludeExcludeIssue("Files");return 0}if(excludeFolders?.length&&includeFolders?.length){logging.logIncludeExcludeIssue("Folders");return 0}if(excludeComponents?.length&&includeComponents?.length){logging.logIncludeExcludeIssue("Components");return 0}if(excludeFiles?.length){global.configData.excludeFiles=excludeFiles}if(excludeFolders?.length){global.configData.excludeFolders=global.configData.excludeFolders.concat(excludeFolders)}if(includeFiles?.length){global.configData.includeFiles=includeFiles}if(includeFolders?.length){global.configData.includeFolders=global.configData.includeFolders.concat(includeFolders)}if(includeComponents?.length&&!excludeComponents?.length){global.manifestData=global.manifestData.filter(obj=>{return includeComponents.includes(obj.componentName)})}if(excludeComponents?.length&&!includeComponents?.length){global.manifestData=global.manifestData.filter(obj=>{return!excludeComponents.includes(obj.componentName)})}if(forceMigration){global.configData.forceMigration=forceMigration}if(excludeAttributeExpressions){global.configData.excludeAttributeExpressions=excludeAttributeExpressions}}const{baseMigrationDir:baseDir,logFileName,logFilePath}=global.configData;const sourcePath=baseDir||process.cwd();global.migrationMetrics={components:0,files:0};const fileSets=fileScanner.scanForFiles(sourcePath);let logFileDestination=global.jaf.logPath;for(let extension in fileSets){for(let filepath of fileSets[extension]){global.filePath=filepath;global.fileIsUpdated=false;global.errorInFile=false;let code=fs.readFileSync(filePath,{encoding:"utf8"});switch(extension){case".html":code=migrator.migrateHTML(code);break;case".js":case".ts":global.plugins=["typescript","decorators"];code=migrator.migrateTSX(code);break;case".jsx":case".tsx":global.plugins=["jsx","typescript","decorators"];code=migrator.migrateTSX(code);case".css":break}if(global.errorInFile){continue}if(!global.jaf.options.dryRunMode&&global.fileIsUpdated){fs.writeFileSync(filePath,code,err=>{if(err){console.error(err)}})}}}if(logFileName||logFilePath){const defaultPathSplit=global.jaf.logPath.split("/");const defaultFileName=defaultPathSplit[defaultPathSplit.length-1].split(".")[0];defaultPathSplit.pop();const defaultPath=defaultPathSplit.join("/");logFileDestination=`${logFilePath?logFilePath:defaultPath}/${logFileName?logFileName:defaultFileName}.log`;fs.copyFile(global.jaf.logPath,logFileDestination,err=>{if(err)throw err});if(logFilePath){fs.unlink(global.jaf.logPath,err=>{if(err)throw err})}}logging.consoleLog(`\n
7
7
  ** Migration Complete
8
8
  ** Files Updated: ${global.migrationMetrics.files}
9
9
  ** Component Instances Migrated: ${global.migrationMetrics.components}
10
- ** Please refer to the log file found at ${global.jaf.logPath} for more details`);console.timeEnd("** Time for Migration");return 0}exports.migrate=migrate;
10
+ ** Please refer to the log file found at ${logFileDestination} for more details`);console.timeEnd("** Time for Migration");return 0}exports.migrate=migrate;
@@ -0,0 +1,8 @@
1
+ {
2
+ "legacyTag": "oj-action-card",
3
+ "corePackTag": "oj-c-action-card",
4
+ "migrateImports": {
5
+ "from": "ojs/ojactioncard",
6
+ "to": "oj-c/action-card"
7
+ }
8
+ }
@@ -23,18 +23,6 @@
23
23
  "fromValue": "xxl",
24
24
  "toAttribute": "size",
25
25
  "toValue": "2xl"
26
- },
27
- {
28
- "fromAttribute": "size",
29
- "fromValue": "small",
30
- "toAttribute": "size",
31
- "toValue": "sm"
32
- },
33
- {
34
- "fromAttribute": "size",
35
- "fromValue": "fit",
36
- "toAttribute": "size",
37
- "toValue": "lg"
38
26
  }
39
27
  ]
40
28
  }
@@ -0,0 +1,16 @@
1
+ {
2
+ "legacyTag": "oj-drawer-popup",
3
+ "corePackTag": "oj-c-drawer-popup",
4
+ "migrateImports": {
5
+ "from": "ojs/ojdrawerpopup",
6
+ "to": "oj-c/drawer-popup"
7
+ },
8
+ "migrateAttributes": [
9
+ {
10
+ "fromAttribute": "role",
11
+ "fromValue": "",
12
+ "toAttribute": "",
13
+ "toValue": ""
14
+ }
15
+ ]
16
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "legacyTag": "oj-form-layout",
3
+ "corePackTag": "oj-c-form-layout",
4
+ "migrateImports": {
5
+ "from": "ojs/ojformlayout",
6
+ "to": "oj-c/form-layout"
7
+ },
8
+ "migrateAttributes": [
9
+ {
10
+ "fromAttribute": "colspan-wrap",
11
+ "fromValue": "",
12
+ "toAttribute": "",
13
+ "toValue": ""
14
+ },
15
+ {
16
+ "fromAttribute": "label-width",
17
+ "fromValue": "",
18
+ "toAttribute": "label-start-width",
19
+ "toValue": ""
20
+ },
21
+ {
22
+ "fromAttribute": "colspanWrap",
23
+ "fromValue": "",
24
+ "toAttribute": "",
25
+ "toValue": ""
26
+ },
27
+ {
28
+ "fromAttribute": "labelWidth",
29
+ "fromValue": "",
30
+ "toAttribute": "labelStartWidth",
31
+ "toValue": ""
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "legacyTag": "oj-highlight-text",
3
+ "corePackTag": "oj-c-highlight-text",
4
+ "migrateImports": {
5
+ "from": "ojs/ojhighlighttext",
6
+ "to": "oj-c/highlight-text"
7
+ }
8
+ }
@@ -42,9 +42,33 @@
42
42
  "toValue": ""
43
43
  },
44
44
  {
45
- "fromAttribute": "labeledge",
45
+ "fromAttribute": "label-edge",
46
46
  "fromValue": "provided",
47
- "toAttribute": "labeledge",
47
+ "toAttribute": "",
48
+ "toValue": ""
49
+ },
50
+ {
51
+ "fromAttribute": "labelEdge",
52
+ "fromValue": "provided",
53
+ "toAttribute": "",
54
+ "toValue": ""
55
+ },
56
+ {
57
+ "fromAttribute": ":described-by",
58
+ "fromValue": "",
59
+ "toAttribute": "",
60
+ "toValue": ""
61
+ },
62
+ {
63
+ "fromAttribute": "described-by",
64
+ "fromValue": "",
65
+ "toAttribute": "",
66
+ "toValue": ""
67
+ },
68
+ {
69
+ "fromAttribute": "describedBy",
70
+ "fromValue": "",
71
+ "toAttribute": "",
48
72
  "toValue": ""
49
73
  }
50
74
  ],
@@ -30,9 +30,9 @@
30
30
  "toValue": ""
31
31
  },
32
32
  {
33
- "fromAttribute": "labeledge",
33
+ "fromAttribute": "label-edge",
34
34
  "fromValue": "provided",
35
- "toAttribute": "labeledge",
35
+ "toAttribute": "",
36
36
  "toValue": ""
37
37
  },
38
38
  {
@@ -40,6 +40,36 @@
40
40
  "fromValue": "hidden",
41
41
  "toAttribute": "mask-icon",
42
42
  "toValue": "visible"
43
+ },
44
+ {
45
+ "fromAttribute": "labelEdge",
46
+ "fromValue": "provided",
47
+ "toAttribute": "",
48
+ "toValue": ""
49
+ },
50
+ {
51
+ "fromAttribute": "maskIcon",
52
+ "fromValue": "hidden",
53
+ "toAttribute": "maskIcon",
54
+ "toValue": "visible"
55
+ },
56
+ {
57
+ "fromAttribute": ":described-by",
58
+ "fromValue": "",
59
+ "toAttribute": "",
60
+ "toValue": ""
61
+ },
62
+ {
63
+ "fromAttribute": "described-by",
64
+ "fromValue": "",
65
+ "toAttribute": "",
66
+ "toValue": ""
67
+ },
68
+ {
69
+ "fromAttribute": "describedBy",
70
+ "fromValue": "",
71
+ "toAttribute": "",
72
+ "toValue": ""
43
73
  }
44
74
  ],
45
75
  "ruleSetToIgnore": [
@@ -48,9 +48,33 @@
48
48
  "toValue": ""
49
49
  },
50
50
  {
51
- "fromAttribute": "labeledge",
51
+ "fromAttribute": "label-edge",
52
52
  "fromValue": "provided",
53
- "toAttribute": "labeledge",
53
+ "toAttribute": "",
54
+ "toValue": ""
55
+ },
56
+ {
57
+ "fromAttribute": "labelEdge",
58
+ "fromValue": "provided",
59
+ "toAttribute": "",
60
+ "toValue": ""
61
+ },
62
+ {
63
+ "fromAttribute": ":described-by",
64
+ "fromValue": "",
65
+ "toAttribute": "",
66
+ "toValue": ""
67
+ },
68
+ {
69
+ "fromAttribute": "described-by",
70
+ "fromValue": "",
71
+ "toAttribute": "",
72
+ "toValue": ""
73
+ },
74
+ {
75
+ "fromAttribute": "describedBy",
76
+ "fromValue": "",
77
+ "toAttribute": "",
54
78
  "toValue": ""
55
79
  }
56
80
  ],
@@ -1,8 +1,4 @@
1
1
  {
2
2
  "legacyTag": "oj-legend-item",
3
- "corePackTag": "oj-c-legend-item",
4
- "migrateImports": {
5
- "from": "ojs/ojlegend",
6
- "to": "oj-c/legend"
7
- }
3
+ "corePackTag": "oj-c-legend-item"
8
4
  }
@@ -13,6 +13,48 @@
13
13
  {
14
14
  "fromAttribute": "collapsible",
15
15
  "fromValue": ""
16
+ },
17
+ {
18
+ "fromChild": "oj-legend-section",
19
+ "fromAttribute": "text-halign",
20
+ "fromValue": "",
21
+ "toAttribute": "section-title-halign",
22
+ "toValue": ""
23
+ },
24
+ {
25
+ "fromChild": "oj-legend-section",
26
+ "fromAttribute": "text-style",
27
+ "fromValue": "",
28
+ "toAttribute": "section-title-style",
29
+ "toValue": ""
30
+ },
31
+ {
32
+ "fromChild": "oj-legend-section",
33
+ "fromAttribute": "textHalign",
34
+ "fromValue": "",
35
+ "toAttribute": "sectionTitleHalign",
36
+ "toValue": ""
37
+ },
38
+ {
39
+ "fromChild": "oj-legend-section",
40
+ "fromAttribute": "textStyle",
41
+ "fromValue": "",
42
+ "toAttribute": "sectionTitleStyle",
43
+ "toValue": ""
44
+ }
45
+ ],
46
+ "migrateChildren": [
47
+ "legendItemMetadata",
48
+ "legendSectionMetadata"
49
+ ],
50
+ "ruleSetToIgnore": [
51
+ {
52
+ "attribute": "marker-shape",
53
+ "allowedValues": ["circle", "diamond", "ellipse", "human", "plus", "rectangle", "square", "star", "triangleDown", "triangleUp"]
54
+ },
55
+ {
56
+ "attribute": "markerShape",
57
+ "allowedValues": ["circle", "diamond", "ellipse", "human", "plus", "rectangle", "square", "star", "triangleDown", "triangleUp"]
16
58
  }
17
59
  ]
18
60
  }
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "legacyTag": "oj-legend-section",
3
3
  "corePackTag": "oj-c-legend-section",
4
- "migrateImports": {
5
- "from": "ojs/ojlegend",
6
- "to": "oj-c/legend"
7
- }
4
+ "migrateAttributes": [
5
+ {
6
+ "fromAttribute": "collapsible",
7
+ "fromValue": ""
8
+ }
9
+ ]
8
10
  }
@@ -4,5 +4,64 @@
4
4
  "migrateImports": {
5
5
  "from": "ojs/ojlistview",
6
6
  "to": "oj-c/list-view"
7
- }
8
- }
7
+ },
8
+ "ruleSetToIgnore": [
9
+ {
10
+ "attribute": "display"
11
+ },
12
+ {
13
+ "attribute": "drill-mode"
14
+ },
15
+ {
16
+ "attribute": "drillMode"
17
+ },
18
+ {
19
+ "attribute": "expanded"
20
+ },
21
+ {
22
+ "attribute": "group-header-position"
23
+ },
24
+ {
25
+ "attribute": "groupHeaderPosition"
26
+ },
27
+ {
28
+ "attribute": "dnd"
29
+ },
30
+ {
31
+ "attribute": "first-selected-item"
32
+ },
33
+ {
34
+ "attribute": "item.selectable"
35
+ },
36
+ {
37
+ "attribute": "scroll-policy"
38
+ },
39
+ {
40
+ "attribute": "scroll-position"
41
+ },
42
+ {
43
+ "attribute": "scroll-to-key"
44
+ },
45
+ {
46
+ "attribute": "selection-required"
47
+ },
48
+ {
49
+ "slot": "contextMenu"
50
+ },
51
+ {
52
+ "attribute": "firstSelectedItem"
53
+ },
54
+ {
55
+ "attribute": "scrollPolicy"
56
+ },
57
+ {
58
+ "attribute": "scrollPosition"
59
+ },
60
+ {
61
+ "attribute": "scrollToKey"
62
+ },
63
+ {
64
+ "attribute": "selectionRequired"
65
+ }
66
+ ]
67
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "legacyTag": "oj-message-banner",
3
+ "corePackTag": "oj-c-message-banner",
4
+ "migrateImports": {
5
+ "from": "ojs/ojmessagebanner",
6
+ "to": "oj-c/message-banner"
7
+ }
8
+ }
@@ -13,11 +13,6 @@
13
13
  "attributeValue": "notification"
14
14
  }
15
15
  ],
16
- "ruleSetToIgnore": [
17
- {
18
- "attributeName": "messages"
19
- }
20
- ],
21
16
  "migrateAttributes": [
22
17
  {
23
18
  "fromAttribute": "display",
@@ -30,6 +25,23 @@
30
25
  "fromValue": "",
31
26
  "toAttribute": "",
32
27
  "toValue": ""
28
+ },
29
+ {
30
+ "fromAttribute": "displayOptions",
31
+ "fromValue": "",
32
+ "toAttribute": "",
33
+ "toValue": ""
34
+ },
35
+ {
36
+ "fromAttribute": "display-options.category",
37
+ "fromValue": "",
38
+ "toAttribute": "",
39
+ "toValue": ""
40
+ }
41
+ ],
42
+ "ruleSetToIgnore": [
43
+ {
44
+ "attribute": "messages"
33
45
  }
34
46
  ]
35
47
  }
@@ -0,0 +1,86 @@
1
+ {
2
+ "legacyTag": "oj-radioset",
3
+ "corePackTag": "oj-c-radioset",
4
+ "migrateImports": {
5
+ "from": "ojs/ojradioset",
6
+ "to": "oj-c/radioset"
7
+ },
8
+ "slotContentToAttribute": {
9
+ "slotName": "oj-label",
10
+ "attribute": "label-hint"
11
+ },
12
+ "classNameToAttribute": [
13
+ {
14
+ "className": "oj-choice-direction-column",
15
+ "attribute": "direction",
16
+ "attributeValue": "column"
17
+ },
18
+ {
19
+ "className": "oj-choice-direction-row",
20
+ "attribute": "direction",
21
+ "attributeValue": "row"
22
+ }
23
+ ],
24
+ "migrateAttributes": [
25
+ {
26
+ "fromAttribute": "label-edge",
27
+ "fromValue": "provided",
28
+ "toAttribute": "",
29
+ "toValue": ""
30
+ },
31
+ {
32
+ "fromAttribute": "option-renderer",
33
+ "fromValue": "",
34
+ "toAttribute": "",
35
+ "toValue": ""
36
+ },
37
+ {
38
+ "fromAttribute": "labelEdge",
39
+ "fromValue": "provided",
40
+ "toAttribute": "",
41
+ "toValue": ""
42
+ },
43
+ {
44
+ "fromAttribute": "optionRenderer",
45
+ "fromValue": "",
46
+ "toAttribute": "",
47
+ "toValue": ""
48
+ },
49
+ {
50
+ "fromAttribute": "class",
51
+ "fromValue": "oj-radioset-input-end",
52
+ "toAttribute": "",
53
+ "toValue": ""
54
+ },
55
+ {
56
+ "fromAttribute": "class",
57
+ "fromValue": "oj-radioset-input-start",
58
+ "toAttribute": "",
59
+ "toValue": ""
60
+ },
61
+ {
62
+ "fromAttribute": "class",
63
+ "fromValue": "oj-radioset-no-chrome",
64
+ "toAttribute": "",
65
+ "toValue": ""
66
+ },
67
+ {
68
+ "fromAttribute": "translations.required.message-detail",
69
+ "fromValue": "",
70
+ "toAttribute": "required-message-detail",
71
+ "toValue": ""
72
+ },
73
+ {
74
+ "fromAttribute": "display-options.validator-hint",
75
+ "fromValue": "",
76
+ "toAttribute": "",
77
+ "toValue": ""
78
+ },
79
+ {
80
+ "fromAttribute": "display-options.converter-hint",
81
+ "fromValue": "",
82
+ "toAttribute": "",
83
+ "toValue": ""
84
+ }
85
+ ]
86
+ }
@@ -44,34 +44,46 @@
44
44
  },
45
45
  {
46
46
  "fromAttribute": "size",
47
- "fromValue": "large",
47
+ "fromValue": "fit",
48
48
  "toAttribute": "size",
49
49
  "toValue": "lg"
50
50
  },
51
51
  {
52
- "fromAttribute": "size",
53
- "fromValue": "medium",
54
- "toAttribute": "size",
55
- "toValue": "md"
52
+ "depAttribute": "readonly",
53
+ "depValue": "",
54
+ "fromAttribute": "title",
55
+ "fromValue": "",
56
+ "toAttribute": "tooltip",
57
+ "toValue": ""
56
58
  },
57
59
  {
58
- "fromAttribute": "size",
59
- "fromValue": "small",
60
- "toAttribute": "size",
61
- "toValue": "sm"
60
+ "fromAttribute": "selectedState",
61
+ "fromValue": "",
62
+ "toAttribute": "",
63
+ "toValue": ""
62
64
  },
63
65
  {
64
- "fromAttribute": "size",
65
- "fromValue": "fit",
66
- "toAttribute": "size",
67
- "toValue": "lg"
66
+ "fromAttribute": "hoveredState",
67
+ "fromValue": "",
68
+ "toAttribute": "",
69
+ "toValue": ""
68
70
  },
69
71
  {
70
- "depAttribute": "readonly",
71
- "depValue": "",
72
- "fromAttribute": "title",
72
+ "fromAttribute": "changedState",
73
73
  "fromValue": "",
74
- "toAttribute": "tooltip",
74
+ "toAttribute": "",
75
+ "toValue": ""
76
+ },
77
+ {
78
+ "fromAttribute": "unselectedState",
79
+ "fromValue": "",
80
+ "toAttribute": "",
81
+ "toValue": ""
82
+ },
83
+ {
84
+ "fromAttribute": "trackResize",
85
+ "fromValue": "",
86
+ "toAttribute": "",
75
87
  "toValue": ""
76
88
  }
77
89
  ]
@@ -2,7 +2,7 @@
2
2
  "legacyTag": "oj-select-many",
3
3
  "corePackTag": "oj-c-select-multiple",
4
4
  "migrateImports": {
5
- "from": "ojs/ojselectmany",
5
+ "from": "ojs/ojselectcombobox",
6
6
  "to": "oj-c/select-multiple"
7
7
  },
8
8
  "classNameToAttribute": [
@@ -30,9 +30,15 @@
30
30
  "toValue": "label"
31
31
  },
32
32
  {
33
- "fromAttribute": "labeledge",
33
+ "fromAttribute": "label-edge",
34
34
  "fromValue": "provided",
35
- "toAttribute": "labeledge",
35
+ "toAttribute": "",
36
+ "toValue": ""
37
+ },
38
+ {
39
+ "fromAttribute": "labelEdge",
40
+ "fromValue": "provided",
41
+ "toAttribute": "",
36
42
  "toValue": ""
37
43
  }
38
44
  ]
@@ -8,17 +8,17 @@
8
8
  "classNameToAttribute": [
9
9
  {
10
10
  "className": "oj-form-control-text-align-right",
11
- "attribute": "textAlign",
11
+ "attribute": "text-align",
12
12
  "attributeValue": "right"
13
13
  },
14
14
  {
15
15
  "className": "oj-form-control-text-align-start",
16
- "attribute": "textAlign",
16
+ "attribute": "text-align",
17
17
  "attributeValue": "start"
18
18
  },
19
19
  {
20
20
  "className": "oj-form-control-text-align-end",
21
- "attribute": "textAlign",
21
+ "attribute": "text-align",
22
22
  "attributeValue": "end"
23
23
  }
24
24
  ],
@@ -30,10 +30,21 @@
30
30
  "toValue": "label"
31
31
  },
32
32
  {
33
- "fromAttribute": "labeledge",
33
+ "fromAttribute": "label-edge",
34
34
  "fromValue": "provided",
35
- "toAttribute": "labeledge",
35
+ "toAttribute": "",
36
36
  "toValue": ""
37
+ },
38
+ {
39
+ "fromAttribute": "labelEdge",
40
+ "fromValue": "provided",
41
+ "toAttribute": "",
42
+ "toValue": ""
43
+ }
44
+ ],
45
+ "ruleSetToIgnore": [
46
+ {
47
+ "descendant": "template"
37
48
  }
38
49
  ]
39
50
  }