Skip to content

Commit 65df4bd

Browse files
author
pixelbyaj
committed
npm changes
1 parent fa6f419 commit 65df4bd

File tree

10 files changed

+191
-61045
lines changed

10 files changed

+191
-61045
lines changed

dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
ARG NODE_IMAGE=node:16-bullseye
2+
FROM ${NODE_IMAGE} as node-build
3+
WORKDIR /app
4+
COPY package.json /app
5+
RUN npm install
6+
COPY . /src
7+
RUN npm run build --prod
8+
FROM nginx:1.17.1-alpine
9+
10+
COPY --from=build-step /app/docs /usr/share/nginx/html
11+
12+

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"@ngx-translate/core": "^15.0.0",
3030
"@ngx-translate/http-loader": "^8.0.0",
3131
"angular-split": "^15.0.0",
32-
"ngx-iso-form": "^1.1.0",
32+
"ngx-iso-form": "^2.1.0",
33+
"ngx-xml-message": "^1.0.2",
3334
"rxjs": "~7.8.0",
3435
"tslib": "^2.3.0",
3536
"zone.js": "~0.13.0"

projects/ngx-iso-app/src/app/app.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ import { HttpClient, HttpClientModule } from '@angular/common/http';
55
import { AppComponent } from './app.component';
66
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
77
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
8-
import { NgxIsoFormModule } from 'projects/ngx-iso-form/src/public-api';
98
import { AngularSplitModule } from 'angular-split';
109
import { MatListModule } from '@angular/material/list';
1110
import { RouterModule } from '@angular/router';
1211
import { MatIconModule } from '@angular/material/icon';
1312
import { MatButtonModule } from '@angular/material/button';
14-
//import { NgxIsoFormModule } from 'ngx-iso-form';
13+
//import { NgxIsoFormModule } from 'projects/ngx-iso-form/src/public-api';
14+
import { NgxIsoFormModule } from 'ngx-iso-form';
1515
import { ReadonlyComponent } from './readonly.component';
1616
import { IsoComponent } from './component/iso.component';
17-
import { NgxXmlMessageModule } from 'ngx-xml-message';
1817
import { MatFormFieldModule } from '@angular/material/form-field';
1918
import { MatInputModule } from '@angular/material/input';
2019
import { FormsModule } from '@angular/forms';
21-
//import { NgxXmlMessageModule } from 'projects/ngx-xml-message/src/public-api';
20+
//import { NgxXmlMessageModule } from 'ngx-xml-message';
21+
import { NgxXmlMessageModule } from 'projects/ngx-xml-message/src/public-api';
2222

2323
// AoT requires an exported function for factories
2424
export function HttpLoaderFactory(http: HttpClient) {
@@ -43,7 +43,7 @@ export function HttpLoaderFactory(http: HttpClient) {
4343
MatFormFieldModule,
4444
MatInputModule,
4545
RouterModule.forRoot([
46-
{ path: '**', component: IsoComponent }
46+
{ path: '**', component: ReadonlyComponent }
4747
], { useHash: true }),
4848
TranslateModule.forRoot({
4949
defaultLanguage: 'en',

projects/ngx-iso-app/src/app/component/iso.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="main">
22
<div class="header">
33
<a hre="https://www.pixelbyaj.com/ngx-iso-form/">
4-
<img src="https://material.angular.io/assets/img/homepage/angular-white-transparent.svg" alt="ngx-iso-form"
5-
aria-hidden="true" class="logo"> NGX-ISO-FORM
4+
<svg class="logo"_ngcontent-ng-c1910891413="" x="0px" y="0px" width="960px" height="960px" viewBox="0 0 960 960"><polygon _ngcontent-ng-c1910891413="" points="562.6,109.8 804.1,629.5 829.2,233.1"></polygon><polygon _ngcontent-ng-c1910891413="" points="624.9,655.9 334.3,655.9 297.2,745.8 479.6,849.8 662,745.8"></polygon><polygon _ngcontent-ng-c1910891413="" points="384.1,539.3 575.2,539.3 479.6,307"></polygon><polygon _ngcontent-ng-c1910891413="" points="396.6,109.8 130,233.1 155.1,629.5"></polygon></svg>
5+
NGX-ISO-FORM
66
</a>
77
<a href="https://npmjs.com/package/ngx-iso-form" target="_blank" class="logo">
88
<img alt="npm" src="https://img.shields.io/npm/dm/ngx-iso-form">

projects/ngx-iso-app/src/app/readonly.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="main">
22
<div class="header">
33
<a hre="https://www.pixelbyaj.com/ngx-iso-form/">
4-
<img src="https://material.angular.io/assets/img/homepage/angular-white-transparent.svg" alt="ngx-xml-message"
5-
aria-hidden="true" class="logo"> NGX-XML-MESSAGE
4+
<svg class="logo"_ngcontent-ng-c1910891413="" x="0px" y="0px" width="960px" height="960px" viewBox="0 0 960 960"><polygon _ngcontent-ng-c1910891413="" points="562.6,109.8 804.1,629.5 829.2,233.1"></polygon><polygon _ngcontent-ng-c1910891413="" points="624.9,655.9 334.3,655.9 297.2,745.8 479.6,849.8 662,745.8"></polygon><polygon _ngcontent-ng-c1910891413="" points="384.1,539.3 575.2,539.3 479.6,307"></polygon><polygon _ngcontent-ng-c1910891413="" points="396.6,109.8 130,233.1 155.1,629.5"></polygon></svg>
5+
NGX-XML-MESSAGE
66
</a>
77
<a href="https://npmjs.com/package/ngx-xml-message" target="_blank" class="logo">
88
<img alt="npm" src="https://img.shields.io/npm/dm/ngx-xml-message">

projects/ngx-iso-app/src/assets/camt.053.001.10.json

Lines changed: 0 additions & 61028 deletions
This file was deleted.
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
{
2+
"id": "document",
3+
"name": "Document",
4+
"dataType": null,
5+
"minOccurs": "1",
6+
"maxOccurs": null,
7+
"minLength": null,
8+
"maxLength": null,
9+
"pattern": null,
10+
"fractionDigits": null,
11+
"totalDigits": null,
12+
"minInclusive": null,
13+
"maxInclusive": null,
14+
"values": null,
15+
"isCurrency": false,
16+
"xpath": "Document",
17+
"elements": [
18+
{
19+
"id": "document_bktocstmrstmt_stmt_rptgseq",
20+
"name": "RptgSeq",
21+
"dataType": "choice",
22+
"minOccurs": "0",
23+
"maxOccurs": "1",
24+
"minLength": null,
25+
"maxLength": null,
26+
"pattern": null,
27+
"fractionDigits": null,
28+
"totalDigits": null,
29+
"minInclusive": null,
30+
"maxInclusive": null,
31+
"values": null,
32+
"isCurrency": false,
33+
"xpath": "Document/BkToCstmrStmt/Stmt/RptgSeq",
34+
"elements": [
35+
{
36+
"id": "document_bktocstmrstmt_stmt_rptgseq_frseq",
37+
"name": "FrSeq",
38+
"dataType": "String",
39+
"minOccurs": "1",
40+
"maxOccurs": "1",
41+
"minLength": "1",
42+
"maxLength": "35",
43+
"pattern": null,
44+
"fractionDigits": null,
45+
"totalDigits": null,
46+
"minInclusive": null,
47+
"maxInclusive": null,
48+
"values": null,
49+
"isCurrency": false,
50+
"xpath": "Document/BkToCstmrStmt/Stmt/RptgSeq/FrSeq",
51+
"elements": []
52+
},
53+
{
54+
"id": "document_bktocstmrstmt_stmt_rptgseq_toseq",
55+
"name": "ToSeq",
56+
"dataType": "String",
57+
"minOccurs": "1",
58+
"maxOccurs": "1",
59+
"minLength": "1",
60+
"maxLength": "35",
61+
"pattern": null,
62+
"fractionDigits": null,
63+
"totalDigits": null,
64+
"minInclusive": null,
65+
"maxInclusive": null,
66+
"values": null,
67+
"isCurrency": false,
68+
"xpath": "Document/BkToCstmrStmt/Stmt/RptgSeq/ToSeq",
69+
"elements": []
70+
},
71+
{
72+
"id": "document_bktocstmrstmt_stmt_rptgseq_frtoseq",
73+
"name": "FrToSeq",
74+
"dataType": null,
75+
"minOccurs": "1",
76+
"maxOccurs": "unbounded",
77+
"minLength": null,
78+
"maxLength": null,
79+
"pattern": null,
80+
"fractionDigits": null,
81+
"totalDigits": null,
82+
"minInclusive": null,
83+
"maxInclusive": null,
84+
"values": null,
85+
"isCurrency": false,
86+
"xpath": "Document/BkToCstmrStmt/Stmt/RptgSeq/FrToSeq",
87+
"elements": [
88+
{
89+
"id": "document_bktocstmrstmt_stmt_rptgseq_frtoseq_frseq",
90+
"name": "FrSeq",
91+
"dataType": "String",
92+
"minOccurs": "1",
93+
"maxOccurs": "1",
94+
"minLength": "1",
95+
"maxLength": "35",
96+
"pattern": null,
97+
"fractionDigits": null,
98+
"totalDigits": null,
99+
"minInclusive": null,
100+
"maxInclusive": null,
101+
"values": null,
102+
"isCurrency": false,
103+
"xpath": "Document/BkToCstmrStmt/Stmt/RptgSeq/FrToSeq/FrSeq",
104+
"elements": []
105+
},
106+
{
107+
"id": "document_bktocstmrstmt_stmt_rptgseq_frtoseq_toseq",
108+
"name": "ToSeq",
109+
"dataType": "String",
110+
"minOccurs": "1",
111+
"maxOccurs": "1",
112+
"minLength": "1",
113+
"maxLength": "35",
114+
"pattern": null,
115+
"fractionDigits": null,
116+
"totalDigits": null,
117+
"minInclusive": null,
118+
"maxInclusive": null,
119+
"values": null,
120+
"isCurrency": false,
121+
"xpath": "Document/BkToCstmrStmt/Stmt/RptgSeq/FrToSeq/ToSeq",
122+
"elements": []
123+
}
124+
]
125+
},
126+
{
127+
"id": "document_bktocstmrstmt_stmt_rptgseq_eqseq",
128+
"name": "EQSeq",
129+
"dataType": "String",
130+
"minOccurs": "1",
131+
"maxOccurs": "unbounded",
132+
"minLength": "1",
133+
"maxLength": "35",
134+
"pattern": null,
135+
"fractionDigits": null,
136+
"totalDigits": null,
137+
"minInclusive": null,
138+
"maxInclusive": null,
139+
"values": null,
140+
"isCurrency": false,
141+
"xpath": "Document/BkToCstmrStmt/Stmt/RptgSeq/EQSeq",
142+
"elements": []
143+
},
144+
{
145+
"id": "document_bktocstmrstmt_stmt_rptgseq_neqseq",
146+
"name": "NEQSeq",
147+
"dataType": "String",
148+
"minOccurs": "1",
149+
"maxOccurs": "unbounded",
150+
"minLength": "1",
151+
"maxLength": "35",
152+
"pattern": null,
153+
"fractionDigits": null,
154+
"totalDigits": null,
155+
"minInclusive": null,
156+
"maxInclusive": null,
157+
"values": null,
158+
"isCurrency": false,
159+
"xpath": "Document/BkToCstmrStmt/Stmt/RptgSeq/NEQSeq",
160+
"elements": []
161+
}
162+
]
163+
}
164+
]
165+
}

projects/ngx-iso-app/src/index.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@
1818
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'>
1919
</head>
2020

21-
<body>
22-
<strong>powered by
23-
<a _ngcontent-ng-c860482607="" href="https://npmjs.com/package/ngx-iso-form" target="_blank" class="logo">
24-
ngx-iso-form <img _ngcontent-ng-c860482607="" alt="npm" src="https://img.shields.io/npm/v/ngx-iso-form"></a>
25-
</strong>
21+
<body>
2622
<app-root></app-root>
2723
</body>
2824

projects/ngx-iso-app/src/styles.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ body {
2222
height: 50px;
2323
line-height: 50px;
2424
color: #fff;
25-
.logo{
26-
25+
.logo{
2726
height: 32px;
2827
width: 32px;
2928
vertical-align: middle;

projects/ngx-xml-message/src/lib/ngx-xml-message.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export class NgxXmlMessageComponent {
7676
protected copyToClipboard(value: string){
7777
navigator.clipboard.writeText(value);
7878
}
79+
7980
private parseXML(node: any) {
8081
if (node.nodeType === Node.ELEMENT_NODE) {
8182
const obj: Record<string, any> = {};

0 commit comments

Comments
 (0)