{"_id":"@abylle/ng-file-mapper","_rev":"6-4a3ecba037ac265ea0a6a16f1748aadb","name":"@abylle/ng-file-mapper","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"@abylle/ng-file-mapper","version":"1.0.0","private":false,"peerDependencies":{"@angular/animations":"^16.0.0","@angular/cdk":"^16.0.0","@angular/common":"^16.0.0","@angular/compiler":"^16.0.0","@angular/core":"^16.0.0","@angular/forms":"^16.0.0","@angular/platform-browser":"^16.0.0","@angular/platform-browser-dynamic":"^16.0.0","@angular/router":"^16.0.0","bootstrap":"^5.2.3","bootstrap-icons":"^1.10.5","rxjs":"~7.8.0","zone.js":"~0.13.0"},"description":"This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.0.0.","author":{"name":"shuxton"},"license":"ISC","module":"fesm2022/abylle-ng-file-mapper.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/abylle-ng-file-mapper.mjs","esm":"./esm2022/abylle-ng-file-mapper.mjs","default":"./fesm2022/abylle-ng-file-mapper.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"},"gitHead":"5f13d642d61fa38eb6df0c29da5ad3156bdca6ee","_id":"@abylle/ng-file-mapper@1.0.0","_nodeVersion":"18.14.0","_npmVersion":"9.4.2","dist":{"integrity":"sha512-0EaSOWxFoEdG2GvoWLfsA/SB48YxpJDb0GVQij86Siy1yRr9XYalRbeIX6NJkFZ3ZUF4AeZfNZfob11RuKGNMg==","shasum":"bd8a243cd0fa7e37605ab1636c8ad969de3fb8cc","tarball":"https://registry.npmjs.org/@abylle/ng-file-mapper/-/ng-file-mapper-1.0.0.tgz","fileCount":36,"unpackedSize":231546,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpAbUUu4kzoWWj6FoVF43y/3SlvNSS7A3k+0fyIwwz8wIhAJef1+gB1m9fiTWYwhj/2aQ/IiAM1ImdXXFoSkVqzbVy"}]},"_npmUser":{"name":"shuxton","email":"shubhamsnj@gmail.com"},"directories":{},"maintainers":[{"name":"shuxton","email":"shubhamsnj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-file-mapper_1.0.0_1683782089460_0.84289007118276"},"_hasShrinkwrap":false},"1.0.1":{"name":"@abylle/ng-file-mapper","version":"1.0.1","private":false,"peerDependencies":{"@angular/animations":"^16.0.0","@angular/cdk":"^16.0.0","@angular/common":"^16.0.0","@angular/compiler":"^16.0.0","@angular/core":"^16.0.0","@angular/forms":"^16.0.0","@angular/platform-browser":"^16.0.0","@angular/platform-browser-dynamic":"^16.0.0","@angular/router":"^16.0.0","bootstrap":"^5.2.3","bootstrap-icons":"^1.10.5","rxjs":"~7.8.0","zone.js":"~0.13.0"},"description":"This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.0.0.","author":{"name":"shuxton"},"license":"ISC","module":"fesm2022/abylle-ng-file-mapper.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/abylle-ng-file-mapper.mjs","esm":"./esm2022/abylle-ng-file-mapper.mjs","default":"./fesm2022/abylle-ng-file-mapper.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"},"gitHead":"7ff57ebf00ab32b62db6d9df410ef8d78b31f834","_id":"@abylle/ng-file-mapper@1.0.1","_nodeVersion":"18.14.0","_npmVersion":"9.4.2","dist":{"integrity":"sha512-1Nb/gsCHIJYK3iUJI36najI016Dty31IfBhjO1X3+1jwSfLK0ZHwvz65Oo4kbddpZZlZ5c+hW2RmsRxcuD3sNw==","shasum":"1fb1f5f78084282e9f43b4f785aa3af79698cb23","tarball":"https://registry.npmjs.org/@abylle/ng-file-mapper/-/ng-file-mapper-1.0.1.tgz","fileCount":36,"unpackedSize":231479,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHNy93yqK4q/zp3wq/ip1OWYSIsVd7OW/eGHnt/sAw/TAiEA8pxAmfRPKcn441rqyUNOYfJkIoduOguGJb9F4NOZfQw="}]},"_npmUser":{"name":"shuxton","email":"shubhamsnj@gmail.com"},"directories":{},"maintainers":[{"name":"shuxton","email":"shubhamsnj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-file-mapper_1.0.1_1683784119918_0.2450274849350098"},"_hasShrinkwrap":false},"1.0.2":{"name":"@abylle/ng-file-mapper","version":"1.0.2","private":false,"peerDependencies":{"@angular/animations":"^16.0.0","@angular/cdk":"^16.0.0","@angular/common":"^16.0.0","@angular/compiler":"^16.0.0","@angular/core":"^16.0.0","@angular/forms":"^16.0.0","@angular/platform-browser":"^16.0.0","@angular/platform-browser-dynamic":"^16.0.0","@angular/router":"^16.0.0","bootstrap":"^5.2.3","bootstrap-icons":"^1.10.5","rxjs":"~7.8.0","zone.js":"~0.13.0"},"description":"This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.0.0.","author":{"name":"shuxton"},"license":"ISC","module":"fesm2022/abylle-ng-file-mapper.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/abylle-ng-file-mapper.mjs","esm":"./esm2022/abylle-ng-file-mapper.mjs","default":"./fesm2022/abylle-ng-file-mapper.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"},"gitHead":"7ff57ebf00ab32b62db6d9df410ef8d78b31f834","_id":"@abylle/ng-file-mapper@1.0.2","_nodeVersion":"18.14.0","_npmVersion":"9.4.2","dist":{"integrity":"sha512-IvcecOKUTcew60jf+nHrm/J7lMElAAqO3GzfkZoc6A070u9LJSPXr2Tg4nfUpKBDqcqQWtPA4e0Pc7FOc9bu4Q==","shasum":"9296133741c9d847a93c8f32b43876cf97d557f7","tarball":"https://registry.npmjs.org/@abylle/ng-file-mapper/-/ng-file-mapper-1.0.2.tgz","fileCount":36,"unpackedSize":232869,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQK14+HFrMCkoarNa0LUPT8Q/CulBbep87CEJjb7lEugIhAPjq+cTG03FaDhuy+3LdxGwSZfXWVerC3mo+UsmKWCrW"}]},"_npmUser":{"name":"shuxton","email":"shubhamsnj@gmail.com"},"directories":{},"maintainers":[{"name":"shuxton","email":"shubhamsnj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-file-mapper_1.0.2_1683784593559_0.7235405054955613"},"_hasShrinkwrap":false},"1.0.3":{"name":"@abylle/ng-file-mapper","version":"1.0.3","private":false,"peerDependencies":{"@angular/animations":"^16.0.0","@angular/cdk":"^16.0.0","@angular/common":"^16.0.0","@angular/compiler":"^16.0.0","@angular/core":"^16.0.0","@angular/forms":"^16.0.0","@angular/platform-browser":"^16.0.0","@angular/platform-browser-dynamic":"^16.0.0","@angular/router":"^16.0.0","bootstrap":"^5.2.3","bootstrap-icons":"^1.10.5","rxjs":"~7.8.0","zone.js":"~0.13.0"},"description":"This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.0.0.","author":{"name":"shuxton"},"license":"ISC","module":"fesm2022/abylle-ng-file-mapper.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/abylle-ng-file-mapper.mjs","esm":"./esm2022/abylle-ng-file-mapper.mjs","default":"./fesm2022/abylle-ng-file-mapper.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"},"gitHead":"6f76a8fb43276d39f9b2c193599b559f8436e884","_id":"@abylle/ng-file-mapper@1.0.3","_nodeVersion":"18.14.0","_npmVersion":"9.4.2","dist":{"integrity":"sha512-0LRMsxxmhi0/PCrb36Qrgu3tXS6JLDcBZUTKEug6S+XG1in+yvTKvUdw3/OUFRiSoTyCPS0FcHOX82hBXU/7Sg==","shasum":"7de008d81d24fe2b0d10dbe9b78774cd0cb877f6","tarball":"https://registry.npmjs.org/@abylle/ng-file-mapper/-/ng-file-mapper-1.0.3.tgz","fileCount":36,"unpackedSize":246366,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBy69odeSBvNrYJ6mOcvjj5NdOkoQLuND9YGKShJ76WUAiBHDvQ9SsTEaP6mqIEzskNBB4t6xbV8RsM1flqed0/zfQ=="}]},"_npmUser":{"name":"shuxton","email":"shubhamsnj@gmail.com"},"directories":{},"maintainers":[{"name":"shuxton","email":"shubhamsnj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-file-mapper_1.0.3_1684132194109_0.3230941386564852"},"_hasShrinkwrap":false},"1.0.4":{"name":"@abylle/ng-file-mapper","version":"1.0.4","private":false,"peerDependencies":{"@angular/animations":"^16.0.0","@angular/cdk":"^16.0.0","@angular/common":"^16.0.0","@angular/compiler":"^16.0.0","@angular/core":"^16.0.0","@angular/forms":"^16.0.0","@angular/platform-browser":"^16.0.0","@angular/platform-browser-dynamic":"^16.0.0","@angular/router":"^16.0.0","bootstrap":"^5.2.3","bootstrap-icons":"^1.10.5","rxjs":"~7.8.0","zone.js":"~0.13.0","xlsx":"^0.18.5"},"description":"This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.0.0.","author":{"name":"shuxton"},"license":"ISC","dependencies":{"tslib":"^2.3.0"},"module":"fesm2022/abylle-ng-file-mapper.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/abylle-ng-file-mapper.mjs","esm":"./esm2022/abylle-ng-file-mapper.mjs","default":"./fesm2022/abylle-ng-file-mapper.mjs"}},"sideEffects":false,"gitHead":"2d1b5584a327713eb1b02efa50a374b5bf07afef","_id":"@abylle/ng-file-mapper@1.0.4","_nodeVersion":"18.14.0","_npmVersion":"9.4.2","dist":{"integrity":"sha512-2TOQLBN5B8a6v6MlRCrZ/8KsynYCQiEFguL1saa6NPEtSoBZ21GQTtGLvaBKEhXbXNAKe4R8LJo4ntFSsVy+OA==","shasum":"ea4a309ed3f6f3205185bb208945640ddb1cec90","tarball":"https://registry.npmjs.org/@abylle/ng-file-mapper/-/ng-file-mapper-1.0.4.tgz","fileCount":36,"unpackedSize":267987,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC6pkRBgnnggJ5el9DMc0R1ij7gpZ0ysvSnurd0fsdTkAiAJOKiHwe+uP8ikSsgmWVnb5ocfeHPuVFfcDNcCM15X5A=="}]},"_npmUser":{"name":"shuxton","email":"shubhamsnj@gmail.com"},"directories":{},"maintainers":[{"name":"shuxton","email":"shubhamsnj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-file-mapper_1.0.4_1690454468459_0.44383607329693553"},"_hasShrinkwrap":false},"1.0.5":{"name":"@abylle/ng-file-mapper","version":"1.0.5","private":false,"peerDependencies":{"@angular/animations":"^16.0.0","@angular/cdk":"^16.0.0","@angular/common":"^16.0.0","@angular/compiler":"^16.0.0","@angular/core":"^16.0.0","@angular/forms":"^16.0.0","@angular/platform-browser":"^16.0.0","@angular/platform-browser-dynamic":"^16.0.0","@angular/router":"^16.0.0","bootstrap":"^5.2.3","bootstrap-icons":"^1.10.5","rxjs":"~7.8.0","zone.js":"~0.13.0","xlsx":"^0.18.5"},"description":"This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.0.0.","author":{"name":"shuxton"},"license":"ISC","dependencies":{"tslib":"^2.3.0"},"module":"fesm2022/abylle-ng-file-mapper.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/abylle-ng-file-mapper.mjs","esm":"./esm2022/abylle-ng-file-mapper.mjs","default":"./fesm2022/abylle-ng-file-mapper.mjs"}},"sideEffects":false,"gitHead":"2d1b5584a327713eb1b02efa50a374b5bf07afef","_id":"@abylle/ng-file-mapper@1.0.5","_nodeVersion":"18.14.0","_npmVersion":"9.4.2","dist":{"integrity":"sha512-iZL2bmrQEHQ5BnNBMR5JkfztwcDGqpmNMB3ktBvuMYkbIyvASlqPLTRdtvx6LCeXIrngEbW2I213pYssJz97oQ==","shasum":"8517c7d0ed33c17c12b597e5ab8fde93aa4bf8e8","tarball":"https://registry.npmjs.org/@abylle/ng-file-mapper/-/ng-file-mapper-1.0.5.tgz","fileCount":36,"unpackedSize":271536,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMk25VdvlIJ9WxW/aFShuZQJw3S2ZToe9X2aRbrW4THAIgQciwvTAQ3jIxkR5BDgMJav02ispf/uV2h1llfhmdHEA="}]},"_npmUser":{"name":"shuxton","email":"shubhamsnj@gmail.com"},"directories":{},"maintainers":[{"name":"shuxton","email":"shubhamsnj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-file-mapper_1.0.5_1690459540158_0.15465729082306123"},"_hasShrinkwrap":false},"1.0.6":{"name":"@abylle/ng-file-mapper","version":"1.0.6","private":false,"peerDependencies":{"@angular/animations":"^16.0.0","@angular/cdk":"^16.0.0","@angular/common":"^16.0.0","@angular/compiler":"^16.0.0","@angular/core":"^16.0.0","@angular/forms":"^16.0.0","@angular/platform-browser":"^16.0.0","@angular/platform-browser-dynamic":"^16.0.0","@angular/router":"^16.0.0","bootstrap":"^5.2.3","bootstrap-icons":"^1.10.5","rxjs":"~7.8.0","zone.js":"~0.13.0","xlsx":"^0.18.5"},"description":"This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.0.0.","author":{"name":"shuxton"},"license":"ISC","dependencies":{"tslib":"^2.3.0"},"module":"fesm2022/abylle-ng-file-mapper.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/abylle-ng-file-mapper.mjs","esm":"./esm2022/abylle-ng-file-mapper.mjs","default":"./fesm2022/abylle-ng-file-mapper.mjs"}},"sideEffects":false,"gitHead":"2d1b5584a327713eb1b02efa50a374b5bf07afef","_id":"@abylle/ng-file-mapper@1.0.6","_nodeVersion":"18.14.0","_npmVersion":"9.4.2","dist":{"integrity":"sha512-ghykryFfGYUQM6YsSeQ4TVe/wpc1foQ08ylnzljZ1VqwovyYsjDmHdh5HwM8OSkeJWEEQwtOjB9rUXbgUJGdJQ==","shasum":"17d069ca80304ca2a5ee9de0f830cfd41d7fa4c7","tarball":"https://registry.npmjs.org/@abylle/ng-file-mapper/-/ng-file-mapper-1.0.6.tgz","fileCount":36,"unpackedSize":283375,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxY67kDHENnlkKKGnINsqxmafB+wnxYrEbOzTIgzgtzAIgZ0kjw/zmAcQhrNPEmla7Q/ubvWJcyK3UmvVUvmTQj3U="}]},"_npmUser":{"name":"shuxton","email":"shubhamsnj@gmail.com"},"directories":{},"maintainers":[{"name":"shuxton","email":"shubhamsnj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ng-file-mapper_1.0.6_1690464946553_0.5577328658802307"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-11T05:14:49.403Z","1.0.0":"2023-05-11T05:14:49.659Z","modified":"2023-07-27T13:35:46.972Z","1.0.1":"2023-05-11T05:48:40.085Z","1.0.2":"2023-05-11T05:56:33.745Z","1.0.3":"2023-05-15T06:29:54.262Z","1.0.4":"2023-07-27T10:41:08.666Z","1.0.5":"2023-07-27T12:05:40.298Z","1.0.6":"2023-07-27T13:35:46.773Z"},"maintainers":[{"name":"shuxton","email":"shubhamsnj@gmail.com"}],"description":"This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.0.0.","author":{"name":"shuxton"},"license":"ISC","readme":"# ng-file-mapper\n### _File Mapping Component for Angular_\n\n## Contribute\n[https://github.com/shuxton/ng-file-mapper](https://github.com/shuxton/ng-file-mapper)\n\n## Features\n\n- Import a CSV/XSLX file\n- Map the fields to your model\n- Transform the mapped data\n- Combine the fields in many to one mappings\n- Export the mapped data\n\n## To-Do\n\n- Develop utility functions to work with final output\n- Provide more customizable UI\n\n## Installation\n\n```sh\nnpm i @shuxton/ng-file-mapper\n```\n\n## Example \n\n#### Using the Component\n*.module.ts\n```\nimport { NgFileMapperModule } from '@shuxton/ng-file-mapper';\n\n@NgModule({\n  ...\n  imports: [\n    ...\n    NgFileMapperModule,\n    ...\n  ]})\n```\n*.component.html\n```\n<ng-file-mapper\n  (getMappings)=\"getMappings($event)\"\n  [availableColumns]=\"availableColumns\"\n  [labelsConfig]=\"labelsConfig\"\n></ng-file-mapper>\n```\n\n*.component.ts\n```\n  labelsConfig: LabelsConfig = {\n    availableColumns: 'Our fields',\n  };\n  availableColumns = [\n    {\n      name: 'Sales',\n      columns: [\n        { name: 'Invoice Number', defaultValue: null, dataType: 'string' },\n        { name: 'Issue Date', defaultValue: null, dataType: 'dateTime' },\n      ],\n    },\n    {\n      name: 'Credit',\n      columns: [\n        { name: 'Credit Note Number', defaultValue: null, dataType: 'string' },\n        { name: 'Issue Date', defaultValue: null, dataType: 'dateTime' },\n      ],\n    },\n  ];\n\n  getMappings(output: any) {\n    console.log(output);\n  }\n```\n\n#### Output\n```\n[\n    {\n        \"uploadedFields\": [\n            \"Invoice Type\",\n            \"Invoice Number *\"\n        ],\n        \"fieldForMapping\": \"Invoice Number\",\n        \"defaultValue\": null,\n        \"transform\": [\n            {\n                \"field\": \"Invoice Number *\",\n                \"operation\": \"concat\",\n                \"args\": [\n                    \"-\"\n                ],\n                \"stepNum\": 0,\n                \"output\": \"20900-\"\n            }\n        ],\n        \"dataType\": \"string\",\n        \"combination\": [\n            \"Invoice Number *\",\n            \"Invoice Type\"\n        ]\n    },\n    {\n        \"uploadedFields\": [\n            \"Invoice Issue Date*\"\n        ],\n        \"fieldForMapping\": \"Issue Date\",\n        \"defaultValue\": null,\n        \"transform\": [],\n        \"dataType\": \"dateTime\",\n        \"combination\": [\n            \"Invoice Issue Date*\"\n        ]\n    }\n]\n```","readmeFilename":"README.md"}