@oracle/oraclejet-audit 14.1.3 → 15.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.
- package/corePackMigrator/cli.js +6 -0
- package/corePackMigrator/corePackMigrator.js +10 -0
- package/corePackMigrator/metadata/avatarMetadata.json +40 -0
- package/corePackMigrator/metadata/buttonMetadata.json +55 -0
- package/corePackMigrator/metadata/collapsibleMetadata.json +15 -0
- package/corePackMigrator/metadata/filePickerMetadata.json +8 -0
- package/corePackMigrator/metadata/inputNumberMetadata.json +56 -0
- package/corePackMigrator/metadata/inputPasswordMetadata.json +50 -0
- package/corePackMigrator/metadata/inputTextMetadata.json +62 -0
- package/corePackMigrator/metadata/legendItemMetadata.json +8 -0
- package/corePackMigrator/metadata/legendMetadata.json +18 -0
- package/corePackMigrator/metadata/legendSectionMetadata.json +8 -0
- package/corePackMigrator/metadata/listItemLayoutMetadata.json +15 -0
- package/corePackMigrator/metadata/listviewMetadata.json +8 -0
- package/corePackMigrator/metadata/messagesMetadata.json +35 -0
- package/corePackMigrator/metadata/progressBarMetadata.json +15 -0
- package/corePackMigrator/metadata/progressCircleMetadata.json +8 -0
- package/corePackMigrator/metadata/ratingGaugeMetadata.json +78 -0
- package/corePackMigrator/metadata/selectManyMetadata.json +39 -0
- package/corePackMigrator/metadata/selectSingleMetadata.json +39 -0
- package/corePackMigrator/metadata/statusMeterGaugeMetadata.json +99 -0
- package/corePackMigrator/metadata/textAreaMetadata.json +44 -0
- package/corePackMigrator/resource/astUtils.js +6 -0
- package/corePackMigrator/resource/componentMigrator.js +6 -0
- package/corePackMigrator/resource/fileScanner.js +6 -0
- package/corePackMigrator/resource/htmlUtils.js +6 -0
- package/corePackMigrator/resource/manifest.json +102 -0
- package/corePackMigrator/resource/migrationConfig.json +21 -0
- package/corePackMigrator/templates/componentMetaData.json +119 -0
- package/corePackMigrator/templates/migrationConfig.json +17 -0
- package/corePackMigrator/utilities/logging.js +6 -0
- package/jaf-amd.js +1 -1
- package/lib/AST_Ts.js +1 -1
- package/lib/Cli.js +1 -1
- package/lib/Components.js +1 -1
- package/lib/Config.js +1 -1
- package/lib/ConfigLib.js +1 -1
- package/lib/DomUtils.js +1 -1
- package/lib/FileIndex.js +1 -1
- package/lib/FileSet.js +1 -1
- package/lib/FsUtils.js +1 -1
- package/lib/HtmlUtils.js +1 -1
- package/lib/JsonLoader.js +1 -1
- package/lib/MetaLib.js +1 -1
- package/lib/NetUtils.js +1 -1
- package/lib/Parser.js +1 -1
- package/lib/RegTypes.js +1 -1
- package/lib/Registry.js +1 -1
- package/lib/Reporter.js +1 -1
- package/lib/RulePack.js +1 -1
- package/lib/RuleSet.js +1 -1
- package/lib/Rules.js +1 -1
- package/lib/Scope.js +1 -1
- package/lib/Ts.js +1 -1
- package/lib/TsxUtils.js +1 -1
- package/lib/TsxUtils2.js +6 -0
- package/lib/Utils.js +1 -1
- package/lib/ZipUtils.js +1 -1
- package/lib/checkage.js +1 -1
- package/lib/cmdline.js +1 -1
- package/lib/defaults.js +1 -1
- package/lib/exportRules.js +1 -1
- package/lib/filetypes.js +1 -1
- package/lib/groups.js +1 -1
- package/lib/help.js +1 -1
- package/lib/jetver.js +1 -1
- package/lib/jsx.js +1 -1
- package/lib/maint.js +6 -0
- package/lib/manpage.js +1 -1
- package/lib/manual.js +1 -1
- package/lib/migrator.js +6 -0
- package/lib/msgidLoader.js +1 -1
- package/lib/ns.js +1 -1
- package/lib/outfile.js +1 -1
- package/lib/schema.js +1 -1
- package/lib/scopewalker.js +1 -1
- package/libext/expparser.js +1 -1
- package/meta/14.0.0/jetauditmeta.js +1 -1
- package/meta/14.1.0/jetauditmeta.js +1 -1
- package/meta/15.0.0/jetauditmeta.js +9 -0
- package/meta/metaverlist.json +1 -1
- package/package.json +16 -8
- package/profiles/redwood-strict.json +2 -1
- package/rulepacks/csp/csp-html-script-unsafe-inline.js +1 -1
- package/rulepacks/csp/csp-html-unsafe-expr.js +1 -1
- package/rulepacks/csp/csp-js-script-unsafe-eval.js +1 -1
- package/rulepacks/csp/csp-js-style-unsafe-inline.js +1 -1
- package/rulepacks/csp/csp-json-unsafe-expr.js +6 -0
- package/rulepacks/csp/msgid.json +1 -1
- package/rulepacks/csp/rules.json +1 -1
- package/rulepacks/jetwc/jetwc-absolute-jetversion.js +1 -1
- package/rulepacks/jetwc/jetwc-aria-redefinition.js +1 -1
- package/rulepacks/jetwc/jetwc-bootstrap.js +1 -1
- package/rulepacks/jetwc/jetwc-compjson-bp-ar.js +1 -1
- package/rulepacks/jetwc/jetwc-compjson-bp-obj.js +1 -1
- package/rulepacks/jetwc/jetwc-component-dependencies.js +1 -1
- package/rulepacks/jetwc/jetwc-component-displayname.js +1 -1
- package/rulepacks/jetwc/jetwc-component-foldername.js +1 -1
- package/rulepacks/jetwc/jetwc-component-location.js +1 -1
- package/rulepacks/jetwc/jetwc-component-type.js +1 -1
- package/rulepacks/jetwc/jetwc-css-oj-complete.js +1 -1
- package/rulepacks/jetwc/jetwc-css-pack-load-path.js +6 -0
- package/rulepacks/jetwc/jetwc-css-scoping.js +1 -1
- package/rulepacks/jetwc/jetwc-data-property-prefix.js +1 -1
- package/rulepacks/jetwc/jetwc-deprecated-lifecycle.js +1 -1
- package/rulepacks/jetwc/jetwc-disabled-property.js +1 -1
- package/rulepacks/jetwc/jetwc-displayname.js +1 -1
- package/rulepacks/jetwc/jetwc-dynamic-slot-context.js +1 -1
- package/rulepacks/jetwc/jetwc-event-displayname.js +1 -1
- package/rulepacks/jetwc/jetwc-events.js +1 -1
- package/rulepacks/jetwc/jetwc-exchange-images.js +1 -1
- package/rulepacks/jetwc/jetwc-jet-version.js +1 -1
- package/rulepacks/jetwc/jetwc-loader-file.js +1 -1
- package/rulepacks/jetwc/jetwc-markdown-link.js +1 -1
- package/rulepacks/jetwc/jetwc-method-displayname.js +1 -1
- package/rulepacks/jetwc/jetwc-methods.js +1 -1
- package/rulepacks/jetwc/jetwc-namespace.js +1 -1
- package/rulepacks/jetwc/jetwc-nested-defaults.js +1 -1
- package/rulepacks/jetwc/jetwc-nls-languages.js +1 -1
- package/rulepacks/jetwc/jetwc-nls-root.js +1 -1
- package/rulepacks/jetwc/jetwc-oj-register.js +1 -1
- package/rulepacks/jetwc/jetwc-ojcss.js +1 -1
- package/rulepacks/jetwc/jetwc-pack-children.js +1 -1
- package/rulepacks/jetwc/jetwc-packable-components.js +1 -1
- package/rulepacks/jetwc/jetwc-prerelease-dependencies.js +1 -1
- package/rulepacks/jetwc/jetwc-prerelease-pattern.js +1 -1
- package/rulepacks/jetwc/jetwc-prerelease-version.js +1 -1
- package/rulepacks/jetwc/jetwc-property-changed.js +1 -1
- package/rulepacks/jetwc/jetwc-property-displayname.js +1 -1
- package/rulepacks/jetwc/jetwc-property-nesting.js +1 -1
- package/rulepacks/jetwc/jetwc-property-translatable.js +1 -1
- package/rulepacks/jetwc/jetwc-public-modules.js +1 -1
- package/rulepacks/jetwc/jetwc-reference-npm-path.js +6 -0
- package/rulepacks/jetwc/jetwc-register-css.js +1 -1
- package/rulepacks/jetwc/jetwc-register-with-promises.js +1 -1
- package/rulepacks/jetwc/jetwc-require-paths.js +1 -1
- package/rulepacks/jetwc/jetwc-required-subproperty.js +1 -1
- package/rulepacks/jetwc/jetwc-reserved-property.js +1 -1
- package/rulepacks/jetwc/jetwc-schema.js +1 -1
- package/rulepacks/jetwc/jetwc-semantic-version.js +1 -1
- package/rulepacks/jetwc/jetwc-slot-displayname.js +1 -1
- package/rulepacks/jetwc/jetwc-slots.js +1 -1
- package/rulepacks/jetwc/jetwc-standard-files.js +1 -1
- package/rulepacks/jetwc/jetwc-status-since.js +6 -0
- package/rulepacks/jetwc/jetwc-unused-events.js +1 -1
- package/rulepacks/jetwc/jetwc-unused-slots.js +1 -1
- package/rulepacks/jetwc/jetwc-vb-category.js +1 -1
- package/rulepacks/jetwc/jetwc-vb-icon.js +1 -1
- package/rulepacks/jetwc/jetwc-vcomponent-jetversion.js +1 -1
- package/rulepacks/jetwc/jetwc-vcomponent-loader.js +1 -1
- package/rulepacks/jetwc/jetwc-vcomponent-version.js +1 -1
- package/rulepacks/jetwc/jetwc-version-openrange.js +1 -1
- package/rulepacks/jetwc/jetwc-writeback-required.js +1 -1
- package/rulepacks/jetwc/msgid.json +1 -1
- package/rulepacks/jetwc/rules.json +1 -1
- package/rulepacks/jetwc-lib/jetwcutils-auditComponentCacheManager.js +1 -1
- package/rulepacks/jetwc-lib/jetwcutils-commonListenerImpls.js +1 -1
- package/rulepacks/jetwc-lib/jetwcutils-componentAuditUtils.js +1 -1
- package/rulepacks/jetwc-lib/jetwcutils-componentFinder.js +1 -1
- package/rulepacks/jetwc-lib/jetwcutils-preCompiler.js +1 -1
- package/rulepacks/jetwc-lib/jetwcutils-tsxUtils.js +1 -1
- package/rulepacks/jetwco/jetwco-bootstrap.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-componentType.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-dependencies.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-dynamicSlots.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-eventBubbles.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-eventCancelable.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-eventPayload.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-events.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-helpers.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-jetVer.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-methodParamTypes.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-methodParams.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-methodReturnType.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-methods.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-packBundle.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-packBundleContent.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-packContent.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-properties.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-propertyDefault.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-propertyEnumeration.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-propertyReadOnly.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-propertyRequired.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-propertyType.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-propertyWriteback.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-publicModules.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-slotDataVariable.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-slotDataVariableType.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-slots.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-styleClasses.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-styleVariables.js +1 -1
- package/rulepacks/jetwco/jetwco-cacc-typeMappingOverrides.js +6 -0
- package/rulepacks/jetwco/jetwco-compjson-ns-reg.js +1 -1
- package/rulepacks/jetwco/jetwco-component-api-baseline-changes.js +1 -1
- package/rulepacks/jetwco/jetwco-component-api-changes.js +1 -1
- package/rulepacks/jetwco/jetwco-component-api-controlled-changes.js +1 -1
- package/rulepacks/jetwco/jetwco-component-cdn.js +1 -1
- package/rulepacks/jetwco/jetwco-description-standards.js +1 -1
- package/rulepacks/jetwco/jetwco-displayname-standards.js +1 -1
- package/rulepacks/jetwco/jetwco-exchange-version-check.js +1 -1
- package/rulepacks/jetwco/jetwco-license-info.js +1 -1
- package/rulepacks/jetwco/jetwco-prerelease-cdn.js +1 -1
- package/rulepacks/jetwco/jetwco-thirdparty-ba.js +1 -1
- package/rulepacks/jetwco/msgid.json +1 -1
- package/rulepacks/jetwco/rules.json +1 -1
- package/rules/jaf/jaf-ts-noparser.js +6 -0
- package/rules/jaf/msgid.json +1 -1
- package/rules/jaf/rules.json +1 -1
- package/rules/jet/helpers/has-slot-name.js +1 -1
- package/rules/jet/helpers/style-selector.js +1 -1
- package/rules/jet/helpers/tsx/has-slot-name.js +6 -0
- package/rules/jet/msgid.json +1 -1
- package/rules/jet/oj-acc-aria-labelledby.js +1 -1
- package/rules/jet/oj-cca-compjson-bp-ar.js +1 -1
- package/rules/jet/oj-cca-compjson-bp-obj.js +1 -1
- package/rules/jet/oj-css-bp-dir-flow.js +1 -1
- package/rules/jet/oj-html-attr-$unique.js +1 -1
- package/rules/jet/oj-html-attr-expr-delims.js +6 -0
- package/rules/jet/oj-html-combo-converter.js +1 -1
- package/rules/jet/oj-html-file-pick-accept.js +1 -1
- package/rules/jet/oj-html-form-bindif.js +1 -1
- package/rules/jet/oj-html-input-isodate.js +1 -1
- package/rules/jet/oj-html-invalid-doctype.js +1 -1
- package/rules/jet/oj-html-msgs-cat-text.js +1 -1
- package/rules/jet/oj-html-ojattr-deprecated.js +1 -1
- package/rules/jet/oj-html-ojattr-enum-deprecated.js +1 -1
- package/rules/jet/oj-html-ojtag-deprecated.js +1 -1
- package/rules/jet/oj-html-ojtag-ns.js +1 -1
- package/rules/jet/oj-html-rating-gauge-track-resize.js +6 -0
- package/rules/jet/oj-html-self-close.js +1 -1
- package/rules/jet/oj-html-slot-deprecated.js +1 -1
- package/rules/jet/oj-html-slot-item-minmax.js +1 -1
- package/rules/jet/oj-html-slot-name.js +1 -1
- package/rules/jet/oj-html-slot-pref-content.js +1 -1
- package/rules/jet/oj-html-style.js +1 -1
- package/rules/jet/oj-html-stylesel.js +1 -1
- package/rules/jet/oj-html-tabbar-edge.js +6 -0
- package/rules/jet/oj-html-unsup-theme.js +1 -1
- package/rules/jet/oj-html-wctag-maintenance.js +1 -1
- package/rules/jet/oj-html-wctag-nested.js +1 -1
- package/rules/jet/oj-html-wctag-supersedes.js +6 -0
- package/rules/jet/oj-js-numconv-pattern.js +6 -0
- package/rules/jet/oj-ts-numconv-pattern.js +6 -0
- package/rules/jet/oj-tsx-5-tag-obs.js +1 -1
- package/rules/jet/oj-tsx-acc-avatar-aria-role.js +6 -0
- package/rules/jet/oj-tsx-acc-button-onclick.js +1 -1
- package/rules/jet/oj-tsx-aria-ojselector-labelledby.js +1 -1
- package/rules/jet/oj-tsx-aria-prop.js +1 -1
- package/rules/jet/oj-tsx-attr-req.js +1 -1
- package/rules/jet/oj-tsx-cca-tagname.js +1 -1
- package/rules/jet/oj-tsx-combo-converter.js +1 -1
- package/rules/jet/oj-tsx-databind-all.js +1 -1
- package/rules/jet/oj-tsx-dlg-title.js +1 -1
- package/rules/jet/oj-tsx-form-bindif.js +6 -0
- package/rules/jet/oj-tsx-form-noflex.js +6 -0
- package/rules/jet/oj-tsx-input-isodate.js +1 -1
- package/rules/jet/oj-tsx-ojattr-deprecated.js +6 -0
- package/rules/jet/oj-tsx-ojattr-enum-deprecated.js +6 -0
- package/rules/jet/oj-tsx-ojattr-value.js +1 -1
- package/rules/jet/oj-tsx-ojattr.js +1 -1
- package/rules/jet/oj-tsx-ojtag-deprecated.js +1 -1
- package/rules/jet/oj-tsx-ojtag-ns.js +6 -0
- package/rules/jet/oj-tsx-pageopts-type.js +1 -1
- package/rules/jet/oj-tsx-picker-attrs.js +1 -1
- package/rules/jet/oj-tsx-prop-inline-definition.js +1 -1
- package/rules/jet/oj-tsx-rating-gauge-size.js +1 -1
- package/rules/jet/oj-tsx-rating-gauge-track-resize.js +6 -0
- package/rules/jet/oj-tsx-slot-deprecated.js +6 -0
- package/rules/jet/oj-tsx-slot-pref-content.js +6 -0
- package/rules/jet/oj-tsx-tabbar-edge.js +6 -0
- package/rules/jet/oj-tsx-unsup-theme.js +1 -1
- package/rules/jet/oj-tsx-wctag-maintenance.js +1 -1
- package/rules/jet/oj-tsx-wctag-nested.js +1 -1
- package/rules/jet/rules.json +1 -1
- package/schema/component-schema.json +1 -1
- package/src/JafCore.js +1 -1
- package/types/index.d.ts +6 -4
- package/rules/jet/oj-html-cspexpr.js +0 -6
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018, 2023, Oracle and/or its affiliates.
|
|
3
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
4
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
5
|
+
*/
|
|
6
|
+
const migrator=require("./corePackMigrator.js");class MigCli{constructor(ctx){this._ctx=ctx}run(){global.jaf=this._ctx;return migrator.migrate()}}module.exports=MigCli;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018, 2023, Oracle and/or its affiliates.
|
|
3
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
4
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
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
|
|
7
|
+
** Migration Complete
|
|
8
|
+
** Files Updated: ${global.migrationMetrics.files}
|
|
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;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"legacyTag": "oj-avatar",
|
|
3
|
+
"corePackTag": "oj-c-avatar",
|
|
4
|
+
"migrateImports": {
|
|
5
|
+
"from": "ojs/ojavatar",
|
|
6
|
+
"to": "oj-c/avatar"
|
|
7
|
+
},
|
|
8
|
+
"migrateAttributes": [
|
|
9
|
+
{
|
|
10
|
+
"fromAttribute": "role",
|
|
11
|
+
"fromValue": "",
|
|
12
|
+
"toAttribute": "",
|
|
13
|
+
"toValue": ""
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"fromAttribute": "size",
|
|
17
|
+
"fromValue": "xxs",
|
|
18
|
+
"toAttribute": "size",
|
|
19
|
+
"toValue": "2xs"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"fromAttribute": "size",
|
|
23
|
+
"fromValue": "xxl",
|
|
24
|
+
"toAttribute": "size",
|
|
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
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"legacyTag": "oj-button",
|
|
3
|
+
"corePackTag": "oj-c-button",
|
|
4
|
+
"migrateImports": {
|
|
5
|
+
"from": "ojs/ojbutton",
|
|
6
|
+
"to": "oj-c/button"
|
|
7
|
+
},
|
|
8
|
+
"commentSlotContent": {
|
|
9
|
+
"slot": "contextMenu"
|
|
10
|
+
},
|
|
11
|
+
"slotContentToAttribute": {
|
|
12
|
+
"slotName": "",
|
|
13
|
+
"attribute": "label"
|
|
14
|
+
},
|
|
15
|
+
"classNameToAttribute": [
|
|
16
|
+
{
|
|
17
|
+
"className": "oj-button-full-width",
|
|
18
|
+
"attribute": "edge",
|
|
19
|
+
"attributeValue": "bottom"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"className": "oj-button-sm",
|
|
23
|
+
"attribute": "size",
|
|
24
|
+
"attributeValue": "sm"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"className": "oj-button-md",
|
|
28
|
+
"attribute": "size",
|
|
29
|
+
"attributeValue": "md"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"className": "oj-button-lg",
|
|
33
|
+
"attribute": "size",
|
|
34
|
+
"attributeValue": "lg"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"className": "oj-sm-width-full",
|
|
38
|
+
"attribute": "width",
|
|
39
|
+
"attributeValue": "100%"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"migrateAttributes": [
|
|
43
|
+
{
|
|
44
|
+
"fromAttribute": "title",
|
|
45
|
+
"fromValue": "",
|
|
46
|
+
"toAttribute": "tooltip",
|
|
47
|
+
"toValue": ""
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"ruleSetToIgnore": [
|
|
51
|
+
{
|
|
52
|
+
"slot": "contextMenu"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"legacyTag": "oj-collapsible",
|
|
3
|
+
"corePackTag": "oj-c-collapsible",
|
|
4
|
+
"migrateImports": {
|
|
5
|
+
"from": "ojs/ojcollapsible",
|
|
6
|
+
"to": "oj-c/collapsible"
|
|
7
|
+
},
|
|
8
|
+
"classNameToAttribute": [
|
|
9
|
+
{
|
|
10
|
+
"className": "oj-header-border",
|
|
11
|
+
"attribute": "variant",
|
|
12
|
+
"attributeValue": "horizontal-rule"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"legacyTag": "oj-input-number",
|
|
3
|
+
"corePackTag": "oj-c-input-number",
|
|
4
|
+
"migrateImports": {
|
|
5
|
+
"from": "ojs/ojinputnumber",
|
|
6
|
+
"to": "oj-c/input-number"
|
|
7
|
+
},
|
|
8
|
+
"classNameToAttribute": [
|
|
9
|
+
{
|
|
10
|
+
"className": "oj-form-control-text-align-right",
|
|
11
|
+
"attribute": "textAlign",
|
|
12
|
+
"attributeValue": "right"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"className": "oj-form-control-text-align-start",
|
|
16
|
+
"attribute": "textAlign",
|
|
17
|
+
"attributeValue": "start"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"className": "oj-form-control-text-align-end",
|
|
21
|
+
"attribute": "textAlign",
|
|
22
|
+
"attributeValue": "end"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"migrateAttributes": [
|
|
26
|
+
{
|
|
27
|
+
"fromAttribute": "translations.number-range.message-detail.exact",
|
|
28
|
+
"fromValue": "",
|
|
29
|
+
"toAttribute": "number-range-exact-message-detail",
|
|
30
|
+
"toValue": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"fromAttribute": "translations.number-range.message-detail.overflow",
|
|
34
|
+
"fromValue": "",
|
|
35
|
+
"toAttribute": "number-range-overflow-message-detail",
|
|
36
|
+
"toValue": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"fromAttribute": "translations.number-range.message-detail.underflow",
|
|
40
|
+
"fromValue": "",
|
|
41
|
+
"toAttribute": "number-range-underflow-message-detail",
|
|
42
|
+
"toValue": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"fromAttribute": "labeledge",
|
|
46
|
+
"fromValue": "provided",
|
|
47
|
+
"toAttribute": "labeledge",
|
|
48
|
+
"toValue": ""
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"ruleSetToIgnore": [
|
|
52
|
+
{
|
|
53
|
+
"attribute": "converter"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"legacyTag": "oj-input-password",
|
|
3
|
+
"corePackTag": "oj-c-input-password",
|
|
4
|
+
"migrateImports": {
|
|
5
|
+
"from": "ojs/ojinputtext",
|
|
6
|
+
"to": ["oj-c/input-text", "oj-c/text-area", "oj-c/input-password"]
|
|
7
|
+
},
|
|
8
|
+
"classNameToAttribute": [
|
|
9
|
+
{
|
|
10
|
+
"className": "oj-form-control-text-align-right",
|
|
11
|
+
"attribute": "textAlign",
|
|
12
|
+
"attributeValue": "right"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"className": "oj-form-control-text-align-start",
|
|
16
|
+
"attribute": "textAlign",
|
|
17
|
+
"attributeValue": "start"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"className": "oj-form-control-text-align-end",
|
|
21
|
+
"attribute": "textAlign",
|
|
22
|
+
"attributeValue": "end"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"migrateAttributes": [
|
|
26
|
+
{
|
|
27
|
+
"fromAttribute": "translations.required.message-detail",
|
|
28
|
+
"fromValue": "",
|
|
29
|
+
"toAttribute": "required-message-detail",
|
|
30
|
+
"toValue": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"fromAttribute": "labeledge",
|
|
34
|
+
"fromValue": "provided",
|
|
35
|
+
"toAttribute": "labeledge",
|
|
36
|
+
"toValue": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"fromAttribute": "mask-icon",
|
|
40
|
+
"fromValue": "hidden",
|
|
41
|
+
"toAttribute": "mask-icon",
|
|
42
|
+
"toValue": "visible"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"ruleSetToIgnore": [
|
|
46
|
+
{
|
|
47
|
+
"attribute": "converter"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"legacyTag": "oj-input-text",
|
|
3
|
+
"corePackTag": "oj-c-input-text",
|
|
4
|
+
"migrateImports": {
|
|
5
|
+
"from": "ojs/ojinputtext",
|
|
6
|
+
"to": ["oj-c/input-text", "oj-c/text-area", "oj-c/input-password"]
|
|
7
|
+
},
|
|
8
|
+
"classNameToAttribute": [
|
|
9
|
+
{
|
|
10
|
+
"className": "oj-form-control-text-align-right",
|
|
11
|
+
"attribute": "textAlign",
|
|
12
|
+
"attributeValue": "right"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"className": "oj-form-control-text-align-start",
|
|
16
|
+
"attribute": "textAlign",
|
|
17
|
+
"attributeValue": "start"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"className": "oj-form-control-text-align-end",
|
|
21
|
+
"attribute": "textAlign",
|
|
22
|
+
"attributeValue": "end"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"migrateAttributes": [
|
|
26
|
+
{
|
|
27
|
+
"fromAttribute": "translations.required.message-detail",
|
|
28
|
+
"fromValue": "",
|
|
29
|
+
"toAttribute": "required-message-detail",
|
|
30
|
+
"toValue": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"fromAttribute": "translations.number-range.message-detail.exact",
|
|
34
|
+
"fromValue": "",
|
|
35
|
+
"toAttribute": "number-range-exact-message-detail",
|
|
36
|
+
"toValue": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"fromAttribute": "translations.number-range.message-detail.overflow",
|
|
40
|
+
"fromValue": "",
|
|
41
|
+
"toAttribute": "number-range-overflow-message-detail",
|
|
42
|
+
"toValue": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"fromAttribute": "translations.number-range.message-detail.underflow",
|
|
46
|
+
"fromValue": "",
|
|
47
|
+
"toAttribute": "number-range-underflow-message-detail",
|
|
48
|
+
"toValue": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"fromAttribute": "labeledge",
|
|
52
|
+
"fromValue": "provided",
|
|
53
|
+
"toAttribute": "labeledge",
|
|
54
|
+
"toValue": ""
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"ruleSetToIgnore": [
|
|
58
|
+
{
|
|
59
|
+
"attribute": "converter"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"legacyTag": "oj-legend",
|
|
3
|
+
"corePackTag": "oj-c-legend",
|
|
4
|
+
"migrateImports": {
|
|
5
|
+
"from": "ojs/ojlegend",
|
|
6
|
+
"to": "oj-c/legend"
|
|
7
|
+
},
|
|
8
|
+
"migrateAttributes": [
|
|
9
|
+
{
|
|
10
|
+
"fromAttribute": "expanded",
|
|
11
|
+
"fromValue": ""
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"fromAttribute": "collapsible",
|
|
15
|
+
"fromValue": ""
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"legacyTag": "oj-list-item-layout",
|
|
3
|
+
"corePackTag": "oj-c-list-item-layout",
|
|
4
|
+
"migrateImports": {
|
|
5
|
+
"from": "ojs/ojlistitemlayout",
|
|
6
|
+
"to": "oj-c/list-item-layout"
|
|
7
|
+
},
|
|
8
|
+
"classNameToAttribute": [
|
|
9
|
+
{
|
|
10
|
+
"className": "oj-listitemlayout-padding-off",
|
|
11
|
+
"attribute": "inset",
|
|
12
|
+
"attributeValue": "none"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"legacyTag": "oj-messages",
|
|
3
|
+
"corePackTag": "oj-c-message-toast",
|
|
4
|
+
"migrateImports": {
|
|
5
|
+
"from": "ojs/ojmessages",
|
|
6
|
+
"to": "oj-c/message-toast"
|
|
7
|
+
},
|
|
8
|
+
"migrateTagByAttribute": [
|
|
9
|
+
{
|
|
10
|
+
"fromTag": "oj-messages",
|
|
11
|
+
"toTag": "oj-c-message-toast",
|
|
12
|
+
"attribute": "display",
|
|
13
|
+
"attributeValue": "notification"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"ruleSetToIgnore": [
|
|
17
|
+
{
|
|
18
|
+
"attributeName": "messages"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"migrateAttributes": [
|
|
22
|
+
{
|
|
23
|
+
"fromAttribute": "display",
|
|
24
|
+
"fromValue": "notification",
|
|
25
|
+
"toAttribute": "",
|
|
26
|
+
"toValue": ""
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"fromAttribute": "display-options",
|
|
30
|
+
"fromValue": "",
|
|
31
|
+
"toAttribute": "",
|
|
32
|
+
"toValue": ""
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"legacyTag": "oj-progress-bar",
|
|
3
|
+
"corePackTag": "oj-c-progress-bar",
|
|
4
|
+
"migrateImports": {
|
|
5
|
+
"from": "ojs/ojprogress-bar",
|
|
6
|
+
"to": "oj-c/progress-bar"
|
|
7
|
+
},
|
|
8
|
+
"classNameToAttribute": [
|
|
9
|
+
{
|
|
10
|
+
"className": "oj-progress-bar-embedded",
|
|
11
|
+
"attribute": "edge",
|
|
12
|
+
"attributeValue": "top"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"legacyTag": "oj-rating-gauge",
|
|
3
|
+
"corePackTag": "oj-c-rating-gauge",
|
|
4
|
+
"migrateImports": {
|
|
5
|
+
"from": "ojs/ojgauge",
|
|
6
|
+
"to": ["oj-c/meter-bar", "oj-c/meter-circle", "oj-c/rating-gauge"]
|
|
7
|
+
},
|
|
8
|
+
"migrateAttributes": [
|
|
9
|
+
{
|
|
10
|
+
"fromAttribute": "selected-state",
|
|
11
|
+
"fromValue": "",
|
|
12
|
+
"toAttribute": "",
|
|
13
|
+
"toValue": ""
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"fromAttribute": "hovered-state",
|
|
17
|
+
"fromValue": "",
|
|
18
|
+
"toAttribute": "",
|
|
19
|
+
"toValue": ""
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"fromAttribute": "changed-state",
|
|
23
|
+
"fromValue": "",
|
|
24
|
+
"toAttribute": "",
|
|
25
|
+
"toValue": ""
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"fromAttribute": "unselected-state",
|
|
29
|
+
"fromValue": "",
|
|
30
|
+
"toAttribute": "",
|
|
31
|
+
"toValue": ""
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"fromAttribute": "track-resize",
|
|
35
|
+
"fromValue": "",
|
|
36
|
+
"toAttribute": "",
|
|
37
|
+
"toValue": ""
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"fromAttribute": "min",
|
|
41
|
+
"fromValue": "",
|
|
42
|
+
"toAttribute": "",
|
|
43
|
+
"toValue": ""
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"fromAttribute": "size",
|
|
47
|
+
"fromValue": "large",
|
|
48
|
+
"toAttribute": "size",
|
|
49
|
+
"toValue": "lg"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"fromAttribute": "size",
|
|
53
|
+
"fromValue": "medium",
|
|
54
|
+
"toAttribute": "size",
|
|
55
|
+
"toValue": "md"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"fromAttribute": "size",
|
|
59
|
+
"fromValue": "small",
|
|
60
|
+
"toAttribute": "size",
|
|
61
|
+
"toValue": "sm"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"fromAttribute": "size",
|
|
65
|
+
"fromValue": "fit",
|
|
66
|
+
"toAttribute": "size",
|
|
67
|
+
"toValue": "lg"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"depAttribute": "readonly",
|
|
71
|
+
"depValue": "",
|
|
72
|
+
"fromAttribute": "title",
|
|
73
|
+
"fromValue": "",
|
|
74
|
+
"toAttribute": "tooltip",
|
|
75
|
+
"toValue": ""
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"legacyTag": "oj-select-many",
|
|
3
|
+
"corePackTag": "oj-c-select-multiple",
|
|
4
|
+
"migrateImports": {
|
|
5
|
+
"from": "ojs/ojselectmany",
|
|
6
|
+
"to": "oj-c/select-multiple"
|
|
7
|
+
},
|
|
8
|
+
"classNameToAttribute": [
|
|
9
|
+
{
|
|
10
|
+
"className": "oj-form-control-text-align-right",
|
|
11
|
+
"attribute": "textAlign",
|
|
12
|
+
"attributeValue": "right"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"className": "oj-form-control-text-align-start",
|
|
16
|
+
"attribute": "textAlign",
|
|
17
|
+
"attributeValue": "start"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"className": "oj-form-control-text-align-end",
|
|
21
|
+
"attribute": "textAlign",
|
|
22
|
+
"attributeValue": "end"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"migrateAttributes": [
|
|
26
|
+
{
|
|
27
|
+
"fromAttribute": "",
|
|
28
|
+
"fromValue": "",
|
|
29
|
+
"toAttribute": "item-text",
|
|
30
|
+
"toValue": "label"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"fromAttribute": "labeledge",
|
|
34
|
+
"fromValue": "provided",
|
|
35
|
+
"toAttribute": "labeledge",
|
|
36
|
+
"toValue": ""
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"legacyTag": "oj-select-single",
|
|
3
|
+
"corePackTag": "oj-c-select-single",
|
|
4
|
+
"migrateImports": {
|
|
5
|
+
"from": "ojs/ojselectsingle",
|
|
6
|
+
"to": "oj-c/select-single"
|
|
7
|
+
},
|
|
8
|
+
"classNameToAttribute": [
|
|
9
|
+
{
|
|
10
|
+
"className": "oj-form-control-text-align-right",
|
|
11
|
+
"attribute": "textAlign",
|
|
12
|
+
"attributeValue": "right"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"className": "oj-form-control-text-align-start",
|
|
16
|
+
"attribute": "textAlign",
|
|
17
|
+
"attributeValue": "start"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"className": "oj-form-control-text-align-end",
|
|
21
|
+
"attribute": "textAlign",
|
|
22
|
+
"attributeValue": "end"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"migrateAttributes": [
|
|
26
|
+
{
|
|
27
|
+
"fromAttribute": "",
|
|
28
|
+
"fromValue": "",
|
|
29
|
+
"toAttribute": "item-text",
|
|
30
|
+
"toValue": "label"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"fromAttribute": "labeledge",
|
|
34
|
+
"fromValue": "provided",
|
|
35
|
+
"toAttribute": "labeledge",
|
|
36
|
+
"toValue": ""
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|