add-calculator-mdimran0509 0.0.5 → 0.0.8
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/add-calculator/add-calculator.component.css +0 -0
- package/add-calculator/add-calculator.component.html +6 -0
- package/add-calculator/add-calculator.component.spec.ts +23 -0
- package/add-calculator/add-calculator.component.ts +23 -0
- package/ng-package.json +7 -0
- package/package.json +12 -23
- package/src/lib/add-calculator.component.spec.ts +23 -0
- package/src/lib/add-calculator.component.ts +15 -0
- package/src/lib/add-calculator.module.ts +18 -0
- package/src/lib/add-calculator.service.spec.ts +16 -0
- package/src/lib/add-calculator.service.ts +9 -0
- package/src/public-api.ts +11 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +11 -0
- package/tsconfig.spec.json +15 -0
- package/fesm2022/add-calculator-mdimran0509.mjs +0 -42
- package/fesm2022/add-calculator-mdimran0509.mjs.map +0 -1
- package/fesm2022/mdimran-add-calculator.mjs +0 -42
- package/fesm2022/mdimran-add-calculator.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/add-calculator.component.d.ts +0 -5
- package/lib/add-calculator.service.d.ts +0 -6
- package/public-api.d.ts +0 -2
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<div>
|
2
|
+
<input type="number" [(ngModel)]="num1" placeholder="Enter first number" />
|
3
|
+
<input type="number" [(ngModel)]="num2" placeholder="Enter second number" />
|
4
|
+
<button (click)="addNumbers()">Add</button>
|
5
|
+
<div *ngIf="result !== null">Result: {{ result }}</div>
|
6
|
+
</div>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
2
|
+
|
3
|
+
import { AddCalculatorComponent } from './add-calculator.component';
|
4
|
+
|
5
|
+
describe('AddCalculatorComponent', () => {
|
6
|
+
let component: AddCalculatorComponent;
|
7
|
+
let fixture: ComponentFixture<AddCalculatorComponent>;
|
8
|
+
|
9
|
+
beforeEach(async () => {
|
10
|
+
await TestBed.configureTestingModule({
|
11
|
+
imports: [AddCalculatorComponent]
|
12
|
+
})
|
13
|
+
.compileComponents();
|
14
|
+
|
15
|
+
fixture = TestBed.createComponent(AddCalculatorComponent);
|
16
|
+
component = fixture.componentInstance;
|
17
|
+
fixture.detectChanges();
|
18
|
+
});
|
19
|
+
|
20
|
+
it('should create', () => {
|
21
|
+
expect(component).toBeTruthy();
|
22
|
+
});
|
23
|
+
});
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { Component } from '@angular/core';
|
2
|
+
|
3
|
+
@Component({
|
4
|
+
selector: 'lib-add-calculator',
|
5
|
+
templateUrl: './add-calculator.component.html',
|
6
|
+
// template: `
|
7
|
+
// <div>
|
8
|
+
// <input type="number" [(ngModel)]="num1" placeholder="Enter first number" />
|
9
|
+
// <input type="number" [(ngModel)]="num2" placeholder="Enter second number" />
|
10
|
+
// <button (click)="addNumbers()">Add</button>
|
11
|
+
// <div *ngIf="result !== null">Result: {{ result }}</div>
|
12
|
+
// </div>
|
13
|
+
// `,
|
14
|
+
})
|
15
|
+
export class AddCalculatorComponent {
|
16
|
+
num1: number = 0;
|
17
|
+
num2: number = 0;
|
18
|
+
result: number | null = null;
|
19
|
+
|
20
|
+
addNumbers() {
|
21
|
+
this.result = this.num1 + this.num2;
|
22
|
+
}
|
23
|
+
}
|
package/ng-package.json
ADDED
package/package.json
CHANGED
@@ -1,23 +1,12 @@
|
|
1
|
-
{
|
2
|
-
|
3
|
-
"version": "0.0.
|
4
|
-
"peerDependencies": {
|
5
|
-
"@angular/common": "^19.2.0",
|
6
|
-
"@angular/core": "^19.2.0"
|
7
|
-
},
|
8
|
-
"dependencies": {
|
9
|
-
"tslib": "^2.3.0"
|
10
|
-
},
|
11
|
-
"sideEffects": false
|
12
|
-
|
13
|
-
"typings": "index.d.ts",
|
14
|
-
"exports": {
|
15
|
-
"./package.json": {
|
16
|
-
"default": "./package.json"
|
17
|
-
},
|
18
|
-
".": {
|
19
|
-
"types": "./index.d.ts",
|
20
|
-
"default": "./fesm2022/add-calculator-mdimran0509.mjs"
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
1
|
+
{
|
2
|
+
"name": "add-calculator-mdimran0509",
|
3
|
+
"version": "0.0.8",
|
4
|
+
"peerDependencies": {
|
5
|
+
"@angular/common": "^19.2.0",
|
6
|
+
"@angular/core": "^19.2.0"
|
7
|
+
},
|
8
|
+
"dependencies": {
|
9
|
+
"tslib": "^2.3.0"
|
10
|
+
},
|
11
|
+
"sideEffects": false
|
12
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
2
|
+
|
3
|
+
import { AddCalculatorComponent } from './add-calculator.component';
|
4
|
+
|
5
|
+
describe('AddCalculatorComponent', () => {
|
6
|
+
let component: AddCalculatorComponent;
|
7
|
+
let fixture: ComponentFixture<AddCalculatorComponent>;
|
8
|
+
|
9
|
+
beforeEach(async () => {
|
10
|
+
await TestBed.configureTestingModule({
|
11
|
+
imports: [AddCalculatorComponent]
|
12
|
+
})
|
13
|
+
.compileComponents();
|
14
|
+
|
15
|
+
fixture = TestBed.createComponent(AddCalculatorComponent);
|
16
|
+
component = fixture.componentInstance;
|
17
|
+
fixture.detectChanges();
|
18
|
+
});
|
19
|
+
|
20
|
+
it('should create', () => {
|
21
|
+
expect(component).toBeTruthy();
|
22
|
+
});
|
23
|
+
});
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { FormsModule } from '@angular/forms';
|
4
|
+
import { AddCalculatorComponent } from './add-calculator.component';
|
5
|
+
|
6
|
+
@NgModule({
|
7
|
+
// No declarations because it's a standalone component
|
8
|
+
imports: [
|
9
|
+
CommonModule,
|
10
|
+
FormsModule,
|
11
|
+
|
12
|
+
// ← import the standalone component here
|
13
|
+
AddCalculatorComponent
|
14
|
+
],
|
15
|
+
// Now you can export it
|
16
|
+
exports: [AddCalculatorComponent]
|
17
|
+
})
|
18
|
+
export class AddCalculatorModule {}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
2
|
+
|
3
|
+
import { AddCalculatorService } from './add-calculator.service';
|
4
|
+
|
5
|
+
describe('AddCalculatorService', () => {
|
6
|
+
let service: AddCalculatorService;
|
7
|
+
|
8
|
+
beforeEach(() => {
|
9
|
+
TestBed.configureTestingModule({});
|
10
|
+
service = TestBed.inject(AddCalculatorService);
|
11
|
+
});
|
12
|
+
|
13
|
+
it('should be created', () => {
|
14
|
+
expect(service).toBeTruthy();
|
15
|
+
});
|
16
|
+
});
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
2
|
+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
3
|
+
{
|
4
|
+
"extends": "../../tsconfig.json",
|
5
|
+
"compilerOptions": {
|
6
|
+
"outDir": "../../out-tsc/lib",
|
7
|
+
"declaration": true,
|
8
|
+
"declarationMap": true,
|
9
|
+
"inlineSources": true,
|
10
|
+
"types": []
|
11
|
+
},
|
12
|
+
"exclude": [
|
13
|
+
"**/*.spec.ts"
|
14
|
+
]
|
15
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
2
|
+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
3
|
+
{
|
4
|
+
"extends": "./tsconfig.lib.json",
|
5
|
+
"compilerOptions": {
|
6
|
+
"declarationMap": false
|
7
|
+
},
|
8
|
+
"angularCompilerOptions": {
|
9
|
+
"compilationMode": "partial"
|
10
|
+
}
|
11
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
2
|
+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
3
|
+
{
|
4
|
+
"extends": "../../tsconfig.json",
|
5
|
+
"compilerOptions": {
|
6
|
+
"outDir": "../../out-tsc/spec",
|
7
|
+
"types": [
|
8
|
+
"jasmine"
|
9
|
+
]
|
10
|
+
},
|
11
|
+
"include": [
|
12
|
+
"**/*.spec.ts",
|
13
|
+
"**/*.d.ts"
|
14
|
+
]
|
15
|
+
}
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import * as i0 from '@angular/core';
|
2
|
-
import { Injectable, Component } from '@angular/core';
|
3
|
-
|
4
|
-
class AddCalculatorService {
|
5
|
-
constructor() { }
|
6
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: AddCalculatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
7
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: AddCalculatorService, providedIn: 'root' });
|
8
|
-
}
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: AddCalculatorService, decorators: [{
|
10
|
-
type: Injectable,
|
11
|
-
args: [{
|
12
|
-
providedIn: 'root'
|
13
|
-
}]
|
14
|
-
}], ctorParameters: () => [] });
|
15
|
-
|
16
|
-
class AddCalculatorComponent {
|
17
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: AddCalculatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
18
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.12", type: AddCalculatorComponent, isStandalone: true, selector: "lib-add-calculator", ngImport: i0, template: `
|
19
|
-
<p>
|
20
|
-
add-calculator works!
|
21
|
-
</p>
|
22
|
-
`, isInline: true, styles: [""] });
|
23
|
-
}
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: AddCalculatorComponent, decorators: [{
|
25
|
-
type: Component,
|
26
|
-
args: [{ selector: 'lib-add-calculator', imports: [], template: `
|
27
|
-
<p>
|
28
|
-
add-calculator works!
|
29
|
-
</p>
|
30
|
-
` }]
|
31
|
-
}] });
|
32
|
-
|
33
|
-
/*
|
34
|
-
* Public API Surface of add-calculator
|
35
|
-
*/
|
36
|
-
|
37
|
-
/**
|
38
|
-
* Generated bundle index. Do not edit.
|
39
|
-
*/
|
40
|
-
|
41
|
-
export { AddCalculatorComponent, AddCalculatorService };
|
42
|
-
//# sourceMappingURL=add-calculator-mdimran0509.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"add-calculator-mdimran0509.mjs","sources":["../../../projects/add-calculator/src/lib/add-calculator.service.ts","../../../projects/add-calculator/src/lib/add-calculator.component.ts","../../../projects/add-calculator/src/public-api.ts","../../../projects/add-calculator/src/add-calculator-mdimran0509.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AddCalculatorService {\r\n\r\n constructor() { }\r\n}\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-add-calculator',\r\n imports: [],\r\n template: `\r\n <p>\r\n add-calculator works!\r\n </p>\r\n `,\r\n styles: ``\r\n})\r\nexport class AddCalculatorComponent {\r\n\r\n}\r\n","/*\r\n * Public API Surface of add-calculator\r\n */\r\n\r\nexport * from './lib/add-calculator.service';\r\nexport * from './lib/add-calculator.component';\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,oBAAoB,CAAA;AAE/B,IAAA,WAAA,GAAA;wGAFW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAApB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cAFnB,MAAM,EAAA,CAAA;;4FAEP,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;MCQY,sBAAsB,CAAA;wGAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAtB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,EAPvB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAGU,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAVlC,SAAS;+BACE,oBAAoB,EAAA,OAAA,EACrB,EAAE,EACD,QAAA,EAAA,CAAA;;;;AAIT,EAAA,CAAA,EAAA;;;ACTH;;AAEG;;ACFH;;AAEG;;;;"}
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import * as i0 from '@angular/core';
|
2
|
-
import { Injectable, Component } from '@angular/core';
|
3
|
-
|
4
|
-
class AddCalculatorService {
|
5
|
-
constructor() { }
|
6
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: AddCalculatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
7
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: AddCalculatorService, providedIn: 'root' });
|
8
|
-
}
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: AddCalculatorService, decorators: [{
|
10
|
-
type: Injectable,
|
11
|
-
args: [{
|
12
|
-
providedIn: 'root'
|
13
|
-
}]
|
14
|
-
}], ctorParameters: () => [] });
|
15
|
-
|
16
|
-
class AddCalculatorComponent {
|
17
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: AddCalculatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
18
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.12", type: AddCalculatorComponent, isStandalone: true, selector: "lib-add-calculator", ngImport: i0, template: `
|
19
|
-
<p>
|
20
|
-
add-calculator works!
|
21
|
-
</p>
|
22
|
-
`, isInline: true, styles: [""] });
|
23
|
-
}
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: AddCalculatorComponent, decorators: [{
|
25
|
-
type: Component,
|
26
|
-
args: [{ selector: 'lib-add-calculator', imports: [], template: `
|
27
|
-
<p>
|
28
|
-
add-calculator works!
|
29
|
-
</p>
|
30
|
-
` }]
|
31
|
-
}] });
|
32
|
-
|
33
|
-
/*
|
34
|
-
* Public API Surface of add-calculator
|
35
|
-
*/
|
36
|
-
|
37
|
-
/**
|
38
|
-
* Generated bundle index. Do not edit.
|
39
|
-
*/
|
40
|
-
|
41
|
-
export { AddCalculatorComponent, AddCalculatorService };
|
42
|
-
//# sourceMappingURL=mdimran-add-calculator.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mdimran-add-calculator.mjs","sources":["../../../projects/add-calculator/src/lib/add-calculator.service.ts","../../../projects/add-calculator/src/lib/add-calculator.component.ts","../../../projects/add-calculator/src/public-api.ts","../../../projects/add-calculator/src/mdimran-add-calculator.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AddCalculatorService {\r\n\r\n constructor() { }\r\n}\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-add-calculator',\r\n imports: [],\r\n template: `\r\n <p>\r\n add-calculator works!\r\n </p>\r\n `,\r\n styles: ``\r\n})\r\nexport class AddCalculatorComponent {\r\n\r\n}\r\n","/*\r\n * Public API Surface of add-calculator\r\n */\r\n\r\nexport * from './lib/add-calculator.service';\r\nexport * from './lib/add-calculator.component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,oBAAoB,CAAA;AAE/B,IAAA,WAAA,GAAA;wGAFW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAApB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cAFnB,MAAM,EAAA,CAAA;;4FAEP,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;MCQY,sBAAsB,CAAA;wGAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAtB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,EAPvB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAGU,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAVlC,SAAS;+BACE,oBAAoB,EAAA,OAAA,EACrB,EAAE,EACD,QAAA,EAAA,CAAA;;;;AAIT,EAAA,CAAA,EAAA;;;ACTH;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
export declare class AddCalculatorComponent {
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AddCalculatorComponent, never>;
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AddCalculatorComponent, "lib-add-calculator", never, {}, {}, never, never, true, never>;
|
5
|
-
}
|
package/public-api.d.ts
DELETED