@mchp-mcc/clock-16bit-driver 1.0.2 → 1.0.3
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/Changelog.md +6 -0
- package/Readme.md +6 -0
- package/output/creator.js +2 -2
- package/output/processor.js +41 -3
- package/output/processor.js.map +1 -1
- package/output/reducer.js +40 -2
- package/output/reducer.js.map +1 -1
- package/package.json +2 -2
- package/src/DerivedData.tsx +29 -0
package/Changelog.md
CHANGED
package/Readme.md
CHANGED
@@ -27,6 +27,12 @@ The Clock Driver helps the user to easily configure the System Clock , Auxiliary
|
|
27
27
|
# Changelog
|
28
28
|
All notable changes to this project will be documented in this file.
|
29
29
|
|
30
|
+
## [1.0.3] - 2022-05-24
|
31
|
+
|
32
|
+
### New Features
|
33
|
+
- **CC16SCRIP-2045** :- Dependency module names updated in builder view
|
34
|
+
|
35
|
+
|
30
36
|
## [1.0.2] - 2022-03-10
|
31
37
|
|
32
38
|
### Bug Fixes
|
package/output/creator.js
CHANGED
@@ -5215,7 +5215,7 @@ module.exports = g;
|
|
5215
5215
|
/*! exports provided: name, version, scf, scf-automodule, license, scripts, husky, lint-staged, files, jest, dependencies, devDependencies, description, main, author, default */
|
5216
5216
|
/***/ (function(module) {
|
5217
5217
|
|
5218
|
-
module.exports = JSON.parse("{\"name\":\"@mchp-mcc/clock-16bit-driver\",\"version\":\"1.0.
|
5218
|
+
module.exports = JSON.parse("{\"name\":\"@mchp-mcc/clock-16bit-driver\",\"version\":\"1.0.3\",\"scf\":{\"reducer\":\"output/reducer.js\",\"creator\":\"output/creator.js\",\"processor\":\"output/processor.js\",\"nullPrototype\":\"output/nullPrototype.json\",\"views\":{\"main\":\"auto\"},\"displayName\":\"Clock\",\"category\":\"System\"},\"scf-automodule\":{\"mode\":\"react\",\"hookPaths\":{\"processor\":\"generated_module/src/processor.tsx\",\"creator\":\"generated_module/src/creator.tsx\",\"reducer\":\"src/reducer.tsx\"},\"shouldNotifyOnDeploy\":false},\"license\":\"SEE LICENSE IN LICENSE.txt\",\"scripts\":{\"build\":\"gulp build --gulpfile config/gulpfile.js --cwd .\",\"build-dev\":\"gulp build --gulpfile config/gulpfile.js --buildDev --cwd .\",\"build-prod\":\"gulp build --gulpfile config/gulpfile.js --production --cwd .\",\"start\":\"gulp start --gulpfile config/gulpfile.js --cwd .\",\"test\":\"jest\",\"create-auto-module\":\"gulp create-auto-module --gulpfile config/gulpfile.js --cwd .\",\"get-latest-auto-module\":\"yarn add @microchip/scf-automodule -D\",\"build-run-dir\":\"node config/extract-run-directory.js\",\"build-latest-run-dir\":\"yarn add @microchip/run-directory && yarn build-run-dir\",\"dist\":\"gulp dist --gulpfile config/gulpfile.js --cwd .\",\"lint:nofix\":\"eslint \\\"./src/**/*.{ts,tsx}\\\" --quiet\",\"lint\":\"tsc --noEmit && yarn lint:nofix --fix\",\"updateProject\":\"node config/create-auto-module.js --updateProject=true\",\"update-auto-module\":\"yarn add @microchip/scf-automodule -D && yarn updateProject\",\"build-run-dir-future\":\"node config/extract-run-directory-future.js\",\"profile\":\"jest profile\",\"release\":\"yarn build && yarn test && node -e 'require(\\\"./config/scf-project-scripts\\\").releaseProject()'\"},\"husky\":{\"hooks\":{\"pre-commit\":\"tsc --noEmit && lint-staged\"}},\"lint-staged\":{\"./src/**/*.{ts,tsx}\":[\"eslint --fix\"]},\"files\":[\"output/**/*\",\"config.json\",\"src/**/*\"],\"jest\":{\"testPathIgnorePatterns\":[\"/node_modules/\",\"/run/\",\"/generated_module/examples/\",\"/lib/\"],\"modulePathIgnorePatterns\":[\"<rootDir>/run\"],\"preset\":\"ts-jest\",\"collectCoverage\":true,\"moduleNameMapper\":{\"\\\\.(css|less|scss|sss|styl)$\":\"<rootDir>/node_modules/jest-css-modules\"}},\"dependencies\":{\"@mchp-mcc/pic-8bit-types\":\"^5.4.1\",\"@microchip/api-prefix-registration\":\"^0.1.0\",\"@microchip/canfd-clock-interface\":\"^1.0.0\",\"@microchip/clock-16bit-config-interface\":\"^1.1.0\",\"@microchip/clock-16bit-interface\":\"^1.1.0\",\"@microchip/fosc-hz\":\"^0.1.2\",\"@microchip/pin-standard\":\"^0.2.14\",\"@microchip/scf-automodule-interface\":\"^0.17.0\",\"@microchip/scf-common\":\"^3.16.0\",\"@microchip/scf-device\":\"^8.2.0\",\"@microchip/scf-integration-test\":\"^1.0.0\",\"@microchip/scf-interface\":\"^1.4.0\",\"@microchip/scf-register-view-helper\":\"^2.4.0\"},\"devDependencies\":{\"@babel/core\":\"^7.9.6\",\"@babel/plugin-proposal-class-properties\":\"^7.8.3\",\"@babel/preset-env\":\"^7.9.6\",\"@babel/preset-react\":\"^7.9.4\",\"@babel/preset-typescript\":\"^7.9.0\",\"@microchip/initializer-system\":\"^0.5.3\",\"@microchip/pic-8bit-types\":\"^5.0.1\",\"@microchip/run-directory\":\"^2.3.58\",\"@microchip/run-directory-future\":\"^1.0.5\",\"@microchip/scf-automodule\":\"4.14.6\",\"@microchip/scf-autoview\":\"^3.20.0\",\"@microchip/scf-autoview-impl\":\"^3.3.1\",\"@microchip/scf-project-scripts\":\"^1.0.0\",\"@types/core-js\":\"^2.5.1\",\"@types/enzyme\":\"^3.9.3\",\"@types/jest\":\"^24.0.14\",\"@types/lodash.filter\":\"^4.6.6\",\"@types/lodash.find\":\"^4.6.6\",\"@types/lodash.map\":\"^4.6.13\",\"@types/node\":\"^12.0.10\",\"@types/properties-reader\":\"^0.0.1\",\"@types/semver\":\"^7.1.0\",\"@typescript-eslint/eslint-plugin\":\"^3.2.0\",\"@typescript-eslint/parser\":\"^3.6.0\",\"autoprefixer\":\"^9.7.6\",\"babel-eslint\":\"^10.1.0\",\"babel-loader\":\"^8.0.6\",\"babel-plugin-named-asset-import\":\"^0.3.2\",\"babel-preset-react-app\":\"^9.0.0\",\"classnames\":\"^2.2.6\",\"core-js\":\"^3.6.5\",\"css-loader\":\"^3.5.2\",\"del\":\"^4.1.1\",\"eslint\":\"^7.4.0\",\"eslint-config-prettier\":\"^6.11.0\",\"eslint-friendly-formatter\":\"^4.0.1\",\"eslint-loader\":\"^4.0.2\",\"eslint-plugin-prettier\":\"^3.1.3\",\"eslint-plugin-react\":\"^7.20.0\",\"file-loader\":\"^6.0.0\",\"fork-ts-checker-webpack-plugin\":\"^1.3.7\",\"fs\":\"^0.0.1-security\",\"gulp\":\"^4.0.2\",\"gulp-changed\":\"^4.0.2\",\"gulp-cli\":\"^2.2.0\",\"gulp-if\":\"^3.0.0\",\"gulp-typescript\":\"^5.0.1\",\"hard-source-webpack-plugin\":\"^0.13.1\",\"html-webpack-plugin\":\"^4.2.0\",\"husky\":\"^4.2.4\",\"is-wsl\":\"^2.1.0\",\"jest\":\"^24.8.0\",\"jest-css-modules\":\"^2.1.0\",\"jest-html-reporter\":\"^2.5.0\",\"jest-pnp-resolver\":\"^1.2.1\",\"lint-staged\":\"^10.1.3\",\"mini-css-extract-plugin\":\"^0.9.0\",\"node-sass\":\"^4.13.1\",\"optimize-css-assets-webpack-plugin\":\"^5.0.3\",\"pnp-webpack-plugin\":\"^1.5.0\",\"postcss-loader\":\"^3.0.0\",\"postcss-safe-parser\":\"^4.0.2\",\"prettier\":\"^2.0.5\",\"react\":\"^16.13.1\",\"react-dom\":\"^16.13.1\",\"react-redux\":\"^7.2.0\",\"sass-loader\":\"^9.0.2\",\"style-loader\":\"^1.2.1\",\"ts-jest\":\"^24.0.2\",\"ts-pnp\":\"^1.1.2\",\"typescript\":\"^4.0.5\",\"url-loader\":\"^4.1.0\",\"webpack\":\"^4.34.0\",\"webpack-cli\":\"^3.3.4\",\"webpack-merge\":\"^4.2.2\",\"webpack-stream\":\"^5.2.1\",\"yargs\":\"^13.2.4\"},\"description\":\"- Download & Install [nodejs](https://nodejs.org/en/download/)\\r - Download & Install npm\\r - Setup node & npm in enviroment path\",\"main\":\"lib/generated_module/src/index.js\",\"author\":\"\"}");
|
5219
5219
|
|
5220
5220
|
/***/ }),
|
5221
5221
|
|
@@ -5266,7 +5266,7 @@ module.exports = JSON.parse("{\"moduleName\":\"Clock\",\"deviceType\":\"PIC\",\"
|
|
5266
5266
|
|
5267
5267
|
__webpack_require__(/*! core-js/es/set/index */"./node_modules/core-js/es/set/index.js");
|
5268
5268
|
__webpack_require__(/*! core-js/es/map/index */"./node_modules/core-js/es/map/index.js");
|
5269
|
-
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/
|
5269
|
+
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/ontent_clock-16bit-driver_master/generated_module/src/creator.tsx */"./generated_module/src/creator.tsx");
|
5270
5270
|
|
5271
5271
|
|
5272
5272
|
/***/ })
|
package/output/processor.js
CHANGED
@@ -12196,7 +12196,7 @@ module.exports = function(module) {
|
|
12196
12196
|
/*! exports provided: name, version, scf, scf-automodule, license, scripts, husky, lint-staged, files, jest, dependencies, devDependencies, description, main, author, default */
|
12197
12197
|
/***/ (function(module) {
|
12198
12198
|
|
12199
|
-
module.exports = JSON.parse("{\"name\":\"@mchp-mcc/clock-16bit-driver\",\"version\":\"1.0.
|
12199
|
+
module.exports = JSON.parse("{\"name\":\"@mchp-mcc/clock-16bit-driver\",\"version\":\"1.0.3\",\"scf\":{\"reducer\":\"output/reducer.js\",\"creator\":\"output/creator.js\",\"processor\":\"output/processor.js\",\"nullPrototype\":\"output/nullPrototype.json\",\"views\":{\"main\":\"auto\"},\"displayName\":\"Clock\",\"category\":\"System\"},\"scf-automodule\":{\"mode\":\"react\",\"hookPaths\":{\"processor\":\"generated_module/src/processor.tsx\",\"creator\":\"generated_module/src/creator.tsx\",\"reducer\":\"src/reducer.tsx\"},\"shouldNotifyOnDeploy\":false},\"license\":\"SEE LICENSE IN LICENSE.txt\",\"scripts\":{\"build\":\"gulp build --gulpfile config/gulpfile.js --cwd .\",\"build-dev\":\"gulp build --gulpfile config/gulpfile.js --buildDev --cwd .\",\"build-prod\":\"gulp build --gulpfile config/gulpfile.js --production --cwd .\",\"start\":\"gulp start --gulpfile config/gulpfile.js --cwd .\",\"test\":\"jest\",\"create-auto-module\":\"gulp create-auto-module --gulpfile config/gulpfile.js --cwd .\",\"get-latest-auto-module\":\"yarn add @microchip/scf-automodule -D\",\"build-run-dir\":\"node config/extract-run-directory.js\",\"build-latest-run-dir\":\"yarn add @microchip/run-directory && yarn build-run-dir\",\"dist\":\"gulp dist --gulpfile config/gulpfile.js --cwd .\",\"lint:nofix\":\"eslint \\\"./src/**/*.{ts,tsx}\\\" --quiet\",\"lint\":\"tsc --noEmit && yarn lint:nofix --fix\",\"updateProject\":\"node config/create-auto-module.js --updateProject=true\",\"update-auto-module\":\"yarn add @microchip/scf-automodule -D && yarn updateProject\",\"build-run-dir-future\":\"node config/extract-run-directory-future.js\",\"profile\":\"jest profile\",\"release\":\"yarn build && yarn test && node -e 'require(\\\"./config/scf-project-scripts\\\").releaseProject()'\"},\"husky\":{\"hooks\":{\"pre-commit\":\"tsc --noEmit && lint-staged\"}},\"lint-staged\":{\"./src/**/*.{ts,tsx}\":[\"eslint --fix\"]},\"files\":[\"output/**/*\",\"config.json\",\"src/**/*\"],\"jest\":{\"testPathIgnorePatterns\":[\"/node_modules/\",\"/run/\",\"/generated_module/examples/\",\"/lib/\"],\"modulePathIgnorePatterns\":[\"<rootDir>/run\"],\"preset\":\"ts-jest\",\"collectCoverage\":true,\"moduleNameMapper\":{\"\\\\.(css|less|scss|sss|styl)$\":\"<rootDir>/node_modules/jest-css-modules\"}},\"dependencies\":{\"@mchp-mcc/pic-8bit-types\":\"^5.4.1\",\"@microchip/api-prefix-registration\":\"^0.1.0\",\"@microchip/canfd-clock-interface\":\"^1.0.0\",\"@microchip/clock-16bit-config-interface\":\"^1.1.0\",\"@microchip/clock-16bit-interface\":\"^1.1.0\",\"@microchip/fosc-hz\":\"^0.1.2\",\"@microchip/pin-standard\":\"^0.2.14\",\"@microchip/scf-automodule-interface\":\"^0.17.0\",\"@microchip/scf-common\":\"^3.16.0\",\"@microchip/scf-device\":\"^8.2.0\",\"@microchip/scf-integration-test\":\"^1.0.0\",\"@microchip/scf-interface\":\"^1.4.0\",\"@microchip/scf-register-view-helper\":\"^2.4.0\"},\"devDependencies\":{\"@babel/core\":\"^7.9.6\",\"@babel/plugin-proposal-class-properties\":\"^7.8.3\",\"@babel/preset-env\":\"^7.9.6\",\"@babel/preset-react\":\"^7.9.4\",\"@babel/preset-typescript\":\"^7.9.0\",\"@microchip/initializer-system\":\"^0.5.3\",\"@microchip/pic-8bit-types\":\"^5.0.1\",\"@microchip/run-directory\":\"^2.3.58\",\"@microchip/run-directory-future\":\"^1.0.5\",\"@microchip/scf-automodule\":\"4.14.6\",\"@microchip/scf-autoview\":\"^3.20.0\",\"@microchip/scf-autoview-impl\":\"^3.3.1\",\"@microchip/scf-project-scripts\":\"^1.0.0\",\"@types/core-js\":\"^2.5.1\",\"@types/enzyme\":\"^3.9.3\",\"@types/jest\":\"^24.0.14\",\"@types/lodash.filter\":\"^4.6.6\",\"@types/lodash.find\":\"^4.6.6\",\"@types/lodash.map\":\"^4.6.13\",\"@types/node\":\"^12.0.10\",\"@types/properties-reader\":\"^0.0.1\",\"@types/semver\":\"^7.1.0\",\"@typescript-eslint/eslint-plugin\":\"^3.2.0\",\"@typescript-eslint/parser\":\"^3.6.0\",\"autoprefixer\":\"^9.7.6\",\"babel-eslint\":\"^10.1.0\",\"babel-loader\":\"^8.0.6\",\"babel-plugin-named-asset-import\":\"^0.3.2\",\"babel-preset-react-app\":\"^9.0.0\",\"classnames\":\"^2.2.6\",\"core-js\":\"^3.6.5\",\"css-loader\":\"^3.5.2\",\"del\":\"^4.1.1\",\"eslint\":\"^7.4.0\",\"eslint-config-prettier\":\"^6.11.0\",\"eslint-friendly-formatter\":\"^4.0.1\",\"eslint-loader\":\"^4.0.2\",\"eslint-plugin-prettier\":\"^3.1.3\",\"eslint-plugin-react\":\"^7.20.0\",\"file-loader\":\"^6.0.0\",\"fork-ts-checker-webpack-plugin\":\"^1.3.7\",\"fs\":\"^0.0.1-security\",\"gulp\":\"^4.0.2\",\"gulp-changed\":\"^4.0.2\",\"gulp-cli\":\"^2.2.0\",\"gulp-if\":\"^3.0.0\",\"gulp-typescript\":\"^5.0.1\",\"hard-source-webpack-plugin\":\"^0.13.1\",\"html-webpack-plugin\":\"^4.2.0\",\"husky\":\"^4.2.4\",\"is-wsl\":\"^2.1.0\",\"jest\":\"^24.8.0\",\"jest-css-modules\":\"^2.1.0\",\"jest-html-reporter\":\"^2.5.0\",\"jest-pnp-resolver\":\"^1.2.1\",\"lint-staged\":\"^10.1.3\",\"mini-css-extract-plugin\":\"^0.9.0\",\"node-sass\":\"^4.13.1\",\"optimize-css-assets-webpack-plugin\":\"^5.0.3\",\"pnp-webpack-plugin\":\"^1.5.0\",\"postcss-loader\":\"^3.0.0\",\"postcss-safe-parser\":\"^4.0.2\",\"prettier\":\"^2.0.5\",\"react\":\"^16.13.1\",\"react-dom\":\"^16.13.1\",\"react-redux\":\"^7.2.0\",\"sass-loader\":\"^9.0.2\",\"style-loader\":\"^1.2.1\",\"ts-jest\":\"^24.0.2\",\"ts-pnp\":\"^1.1.2\",\"typescript\":\"^4.0.5\",\"url-loader\":\"^4.1.0\",\"webpack\":\"^4.34.0\",\"webpack-cli\":\"^3.3.4\",\"webpack-merge\":\"^4.2.2\",\"webpack-stream\":\"^5.2.1\",\"yargs\":\"^13.2.4\"},\"description\":\"- Download & Install [nodejs](https://nodejs.org/en/download/)\\r - Download & Install npm\\r - Setup node & npm in enviroment path\",\"main\":\"lib/generated_module/src/index.js\",\"author\":\"\"}");
|
12200
12200
|
|
12201
12201
|
/***/ }),
|
12202
12202
|
|
@@ -12329,7 +12329,9 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
12329
12329
|
requestedSystemFrequency_HzValidator: _this.requestedSystemFrequency_HzValidator,
|
12330
12330
|
requestedRefClockOutputFrequency_HzValidator: _this.requestedRefClockOutputFrequency_HzValidator,
|
12331
12331
|
getCustomUiErrors: _this.getCustomUiErrors,
|
12332
|
-
"clock-16bit-ux-interface_payloads": _this.getClockApplicationInterfacePayload
|
12332
|
+
"clock-16bit-ux-interface_payloads": _this.getClockApplicationInterfacePayload,
|
12333
|
+
importName: _this.friendlyImportName,
|
12334
|
+
exportName: _this.friendlyExportName
|
12333
12335
|
};
|
12334
12336
|
};
|
12335
12337
|
|
@@ -13408,6 +13410,42 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
13408
13410
|
return clockApplicationInterfacePayloads;
|
13409
13411
|
};
|
13410
13412
|
|
13413
|
+
this.friendlyExportName = function (exportKey) {
|
13414
|
+
var exportName;
|
13415
|
+
|
13416
|
+
switch (exportKey) {
|
13417
|
+
case "canfd_clock":
|
13418
|
+
exportName = "CAN FD Clock";
|
13419
|
+
break;
|
13420
|
+
|
13421
|
+
case "clock_16bit_ux_interface":
|
13422
|
+
exportName = "Clock Drv Config";
|
13423
|
+
break;
|
13424
|
+
|
13425
|
+
default:
|
13426
|
+
exportName = exportKey;
|
13427
|
+
break;
|
13428
|
+
}
|
13429
|
+
|
13430
|
+
return exportName;
|
13431
|
+
};
|
13432
|
+
|
13433
|
+
this.friendlyImportName = function (importKey) {
|
13434
|
+
var importName;
|
13435
|
+
|
13436
|
+
switch (importKey) {
|
13437
|
+
case "clock_16bit_config_interface":
|
13438
|
+
importName = "Clock Configuration";
|
13439
|
+
break;
|
13440
|
+
|
13441
|
+
default:
|
13442
|
+
importName = importKey;
|
13443
|
+
break;
|
13444
|
+
}
|
13445
|
+
|
13446
|
+
return importName;
|
13447
|
+
};
|
13448
|
+
|
13411
13449
|
this.dataModel = dataModel;
|
13412
13450
|
};
|
13413
13451
|
|
@@ -13546,7 +13584,7 @@ module.exports = JSON.parse("{\"moduleName\":\"Clock\",\"deviceType\":\"PIC\",\"
|
|
13546
13584
|
|
13547
13585
|
__webpack_require__(/*! core-js/es/set/index */"./node_modules/core-js/es/set/index.js");
|
13548
13586
|
__webpack_require__(/*! core-js/es/map/index */"./node_modules/core-js/es/map/index.js");
|
13549
|
-
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/
|
13587
|
+
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/ontent_clock-16bit-driver_master/generated_module/src/processor.tsx */"./generated_module/src/processor.tsx");
|
13550
13588
|
|
13551
13589
|
|
13552
13590
|
/***/ })
|