@ivandt/importer-angular 0.0.1

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/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2025 Ivandt
2
+
3
+ All rights reserved.
4
+
5
+ This software and associated documentation files (the "Software") are proprietary
6
+ and confidential. Unauthorized copying, distribution, modification, or use of this
7
+ Software, via any medium, is strictly prohibited without the express written
8
+ permission of Ivandt.
9
+
10
+ The Software is provided to authorized users only under separate commercial license
11
+ agreements. Use of the Software requires valid authentication credentials and is
12
+ subject to the terms and conditions of your license agreement with Ivandt.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,69 @@
1
+ # @ivandt/importer-angular
2
+
3
+ Angular wrapper for the [@ivandt/importer](https://www.npmjs.com/package/@ivandt/importer) web component.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @ivandt/importer @ivandt/importer-angular
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ### Basic Example
14
+
15
+ ```typescript
16
+ import { Component } from '@angular/core';
17
+ import { IvtImporterComponent } from '@ivandt/importer-angular';
18
+ import type { IvtSchema } from '@ivandt/importer';
19
+
20
+ @Component({
21
+ selector: 'app-root',
22
+ standalone: true,
23
+ imports: [IvtImporterComponent],
24
+ template: `
25
+ <div style="height: 600px">
26
+ <ivandt-importer [schema]="schema" />
27
+ </div>
28
+ `
29
+ })
30
+ export class AppComponent {
31
+ schema: IvtSchema = {
32
+ title: 'Customer Import',
33
+ fields: [
34
+ {
35
+ key: 'name',
36
+ label: 'Full Name',
37
+ type: 'text',
38
+ validators: [{ type: 'required' }]
39
+ },
40
+ {
41
+ key: 'email',
42
+ label: 'Email',
43
+ type: 'text',
44
+ validators: [{ type: 'email' }]
45
+ }
46
+ ]
47
+ };
48
+ }
49
+ ```
50
+
51
+ ## Props
52
+
53
+ | Prop | Type | Required | Description |
54
+ |------|------|----------|-------------|
55
+ | `schema` | `IvtSchema` | Yes | The schema configuration for your importer |
56
+
57
+ ## TypeScript
58
+
59
+ Import types from `@ivandt/importer`:
60
+
61
+ ```typescript
62
+ import type { IvtSchema } from '@ivandt/importer';
63
+ ```
64
+
65
+ For full Importer documentation, see the [Ivandt](https://ivandt/docs).
66
+
67
+ ## License
68
+
69
+ Proprietary - See LICENSE file
package/dist/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2025 Ivandt
2
+
3
+ All rights reserved.
4
+
5
+ This software and associated documentation files (the "Software") are proprietary
6
+ and confidential. Unauthorized copying, distribution, modification, or use of this
7
+ Software, via any medium, is strictly prohibited without the express written
8
+ permission of Ivandt.
9
+
10
+ The Software is provided to authorized users only under separate commercial license
11
+ agreements. Use of the Software requires valid authentication credentials and is
12
+ subject to the terms and conditions of your license agreement with Ivandt.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/dist/README.md ADDED
@@ -0,0 +1,69 @@
1
+ # @ivandt/importer-angular
2
+
3
+ Angular wrapper for the [@ivandt/importer](https://www.npmjs.com/package/@ivandt/importer) web component.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @ivandt/importer @ivandt/importer-angular
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ### Basic Example
14
+
15
+ ```typescript
16
+ import { Component } from '@angular/core';
17
+ import { IvtImporterComponent } from '@ivandt/importer-angular';
18
+ import type { IvtSchema } from '@ivandt/importer';
19
+
20
+ @Component({
21
+ selector: 'app-root',
22
+ standalone: true,
23
+ imports: [IvtImporterComponent],
24
+ template: `
25
+ <div style="height: 600px">
26
+ <ivandt-importer [schema]="schema" />
27
+ </div>
28
+ `
29
+ })
30
+ export class AppComponent {
31
+ schema: IvtSchema = {
32
+ title: 'Customer Import',
33
+ fields: [
34
+ {
35
+ key: 'name',
36
+ label: 'Full Name',
37
+ type: 'text',
38
+ validators: [{ type: 'required' }]
39
+ },
40
+ {
41
+ key: 'email',
42
+ label: 'Email',
43
+ type: 'text',
44
+ validators: [{ type: 'email' }]
45
+ }
46
+ ]
47
+ };
48
+ }
49
+ ```
50
+
51
+ ## Props
52
+
53
+ | Prop | Type | Required | Description |
54
+ |------|------|----------|-------------|
55
+ | `schema` | `IvtSchema` | Yes | The schema configuration for your importer |
56
+
57
+ ## TypeScript
58
+
59
+ Import types from `@ivandt/importer`:
60
+
61
+ ```typescript
62
+ import type { IvtSchema } from '@ivandt/importer';
63
+ ```
64
+
65
+ For full Importer documentation, see the [Ivandt](https://ivandt/docs).
66
+
67
+ ## License
68
+
69
+ Proprietary - See LICENSE file
@@ -0,0 +1,40 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ViewChild, Input, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
3
+ import '@ivandt/importer/importer';
4
+
5
+ class IvtImporterComponent {
6
+ schema;
7
+ importerElement;
8
+ ngOnInit() {
9
+ if (this.importerElement && this.schema) {
10
+ this.importerElement.nativeElement.schema = this.schema;
11
+ }
12
+ }
13
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: IvtImporterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.3", type: IvtImporterComponent, isStandalone: true, selector: "ivandt-importer", inputs: { schema: "schema" }, viewQueries: [{ propertyName: "importerElement", first: true, predicate: ["importerElement"], descendants: true, static: true }], ngImport: i0, template: `<ivt-importer #importerElement></ivt-importer>`, isInline: true });
15
+ }
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: IvtImporterComponent, decorators: [{
17
+ type: Component,
18
+ args: [{
19
+ selector: 'ivandt-importer',
20
+ standalone: true,
21
+ template: `<ivt-importer #importerElement></ivt-importer>`,
22
+ schemas: [CUSTOM_ELEMENTS_SCHEMA]
23
+ }]
24
+ }], propDecorators: { schema: [{
25
+ type: Input
26
+ }], importerElement: [{
27
+ type: ViewChild,
28
+ args: ['importerElement', { static: true }]
29
+ }] } });
30
+
31
+ /*
32
+ * Public API Surface of importer-angular
33
+ */
34
+
35
+ /**
36
+ * Generated bundle index. Do not edit.
37
+ */
38
+
39
+ export { IvtImporterComponent };
40
+ //# sourceMappingURL=ivandt-importer-angular.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ivandt-importer-angular.mjs","sources":["../../projects/ivandt/importer-angular/src/lib/importer-angular.ts","../../projects/ivandt/importer-angular/src/public-api.ts","../../projects/ivandt/importer-angular/src/ivandt-importer-angular.ts"],"sourcesContent":["import { Component, CUSTOM_ELEMENTS_SCHEMA, ElementRef, Input, OnInit, ViewChild } from '@angular/core';\nimport type { DefaultTableRowType, IvtSchema } from '@ivandt/importer';\nimport '@ivandt/importer/importer';\n\n@Component({\n selector: 'ivandt-importer',\n standalone: true,\n template: `<ivt-importer #importerElement></ivt-importer>`,\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class IvtImporterComponent<TableRow = DefaultTableRowType> implements OnInit {\n @Input() schema!: IvtSchema<TableRow>;\n @ViewChild('importerElement', { static: true }) importerElement!: ElementRef;\n\n ngOnInit() {\n if (this.importerElement && this.schema) {\n (this.importerElement.nativeElement as any).schema = this.schema;\n }\n }\n}\n","/*\n * Public API Surface of importer-angular\n */\n\nexport { IvtImporterComponent } from './lib/importer-angular';\nexport type { IvtSchema } from '@ivandt/importer';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAUa,oBAAoB,CAAA;AACtB,IAAA,MAAM;AACiC,IAAA,eAAe;IAE/D,QAAQ,GAAA;QACN,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,MAAM,EAAE;YACtC,IAAI,CAAC,eAAe,CAAC,aAAqB,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM;QAClE;IACF;uGARW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAApB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,oBAAoB,2OAHrB,CAAA,8CAAA,CAAgD,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;2FAG/C,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBANhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,CAAA,8CAAA,CAAgD;oBAC1D,OAAO,EAAE,CAAC,sBAAsB;AACjC,iBAAA;8BAEU,MAAM,EAAA,CAAA;sBAAd;gBAC+C,eAAe,EAAA,CAAA;sBAA9D,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,iBAAiB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;;ACZhD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -0,0 +1,14 @@
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit, ElementRef } from '@angular/core';
3
+ import { DefaultTableRowType, IvtSchema } from '@ivandt/importer';
4
+ export { IvtSchema } from '@ivandt/importer';
5
+
6
+ declare class IvtImporterComponent<TableRow = DefaultTableRowType> implements OnInit {
7
+ schema: IvtSchema<TableRow>;
8
+ importerElement: ElementRef;
9
+ ngOnInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<IvtImporterComponent<any>, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<IvtImporterComponent<any>, "ivandt-importer", never, { "schema": { "alias": "schema"; "required": false; }; }, {}, never, never, true, never>;
12
+ }
13
+
14
+ export { IvtImporterComponent };
package/package.json ADDED
@@ -0,0 +1,89 @@
1
+ {
2
+ "name": "@ivandt/importer-angular",
3
+ "version": "0.0.1",
4
+ "description": "Angular wrapper for @ivandt/importer web component",
5
+ "type": "module",
6
+ "main": "./dist/fesm2022/ivandt-importer-angular.mjs",
7
+ "module": "./dist/fesm2022/ivandt-importer-angular.mjs",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/fesm2022/ivandt-importer-angular.mjs"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md",
18
+ "LICENSE"
19
+ ],
20
+ "sideEffects": false,
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "prettier": {
25
+ "printWidth": 100,
26
+ "singleQuote": true,
27
+ "overrides": [
28
+ {
29
+ "files": "*.html",
30
+ "options": {
31
+ "parser": "angular"
32
+ }
33
+ }
34
+ ]
35
+ },
36
+ "peerDependencies": {
37
+ "@angular/common": "^20.3.0",
38
+ "@angular/core": "^20.3.0",
39
+ "@ivandt/importer": "^1.9.8"
40
+ },
41
+ "dependencies": {
42
+ "tslib": "^2.3.0"
43
+ },
44
+ "devDependencies": {
45
+ "@angular/build": "^20.3.4",
46
+ "@angular/cli": "^20.3.4",
47
+ "@angular/common": "^20.3.0",
48
+ "@angular/compiler": "^20.3.0",
49
+ "@angular/compiler-cli": "^20.3.0",
50
+ "@angular/core": "^20.3.0",
51
+ "@angular/forms": "^20.3.0",
52
+ "@angular/platform-browser": "^20.3.0",
53
+ "@angular/router": "^20.3.0",
54
+ "@types/jasmine": "~5.1.0",
55
+ "jasmine-core": "~5.9.0",
56
+ "karma": "~6.4.0",
57
+ "karma-chrome-launcher": "~3.2.0",
58
+ "karma-coverage": "~2.2.0",
59
+ "karma-jasmine": "~5.1.0",
60
+ "karma-jasmine-html-reporter": "~2.1.0",
61
+ "ng-packagr": "^20.3.0",
62
+ "rxjs": "~7.8.0",
63
+ "typescript": "~5.9.2",
64
+ "@ivandt/importer": "1.9.8"
65
+ },
66
+ "keywords": [
67
+ "angular",
68
+ "importer",
69
+ "data-import",
70
+ "spreadsheet",
71
+ "csv",
72
+ "excel",
73
+ "validation",
74
+ "transformation",
75
+ "web-component"
76
+ ],
77
+ "repository": {
78
+ "type": "git",
79
+ "url": "https://github.com/ivandt/ivandt-platform.git",
80
+ "directory": "packages/importer-angular"
81
+ },
82
+ "license": "SEE LICENSE IN LICENSE",
83
+ "scripts": {
84
+ "ng": "ng",
85
+ "build": "ng build @ivandt/importer-angular",
86
+ "watch": "ng build @ivandt/importer-angular --watch --configuration development",
87
+ "test": "ng test"
88
+ }
89
+ }