xt-plugin-finance 0.6.0
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/.editorconfig +16 -0
- package/.postcssrc.json +1 -0
- package/.rush/temp/chunked-rush-logs/xt-plugin-finance.build-deploy-latest.chunks.jsonl +79 -0
- package/.rush/temp/chunked-rush-logs/xt-plugin-finance.build-deploy-next.chunks.jsonl +29 -0
- package/.rush/temp/chunked-rush-logs/xt-plugin-finance.build.chunks.jsonl +24 -0
- package/.rush/temp/chunked-rush-logs/xt-plugin-finance.test.chunks.jsonl +36 -0
- package/.rush/temp/package-deps_test.json +55 -0
- package/.rush/temp/shrinkwrap-deps.json +1082 -0
- package/CHANGELOG.md +13 -0
- package/README.md +17 -0
- package/angular.json +164 -0
- package/package.json +62 -0
- package/projects/finance/README.md +17 -0
- package/projects/finance/ng-package.json +7 -0
- package/projects/finance/node_modules/.vite/results.json +1 -0
- package/projects/finance/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
- package/projects/finance/package.json +22 -0
- package/projects/finance/src/lib/finance-amount/finance-amount.component.css +0 -0
- package/projects/finance/src/lib/finance-amount/finance-amount.component.html +18 -0
- package/projects/finance/src/lib/finance-amount/finance-amount.component.spec.ts +38 -0
- package/projects/finance/src/lib/finance-amount/finance-amount.component.ts +68 -0
- package/projects/finance/src/lib/money-handler/money-amount-handler.ts +21 -0
- package/projects/finance/src/lib/money-handler/money-amount.ts +15 -0
- package/projects/finance/src/lib/register.ts +54 -0
- package/projects/finance/src/public-api.ts +6 -0
- package/projects/finance/src/test-setup.ts +18 -0
- package/projects/finance/tsconfig.lib.json +15 -0
- package/projects/finance/tsconfig.lib.prod.json +11 -0
- package/projects/finance/tsconfig.spec.json +18 -0
- package/projects/finance/vitest.config.ts +19 -0
- package/projects/finance-plugin/federation.config.js +43 -0
- package/projects/finance-plugin/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
- package/projects/finance-plugin/public/favicon.ico +0 -0
- package/projects/finance-plugin/public/pluginicon.png +0 -0
- package/projects/finance-plugin/src/app/app.component.css +0 -0
- package/projects/finance-plugin/src/app/app.component.html +3 -0
- package/projects/finance-plugin/src/app/app.component.spec.ts +42 -0
- package/projects/finance-plugin/src/app/app.component.ts +37 -0
- package/projects/finance-plugin/src/app/app.config.ts +21 -0
- package/projects/finance-plugin/src/app/app.routes.ts +6 -0
- package/projects/finance-plugin/src/app/dummy-currency/dummy-currency.component.css +0 -0
- package/projects/finance-plugin/src/app/dummy-currency/dummy-currency.component.html +7 -0
- package/projects/finance-plugin/src/app/dummy-currency/dummy-currency.component.ts +36 -0
- package/projects/finance-plugin/src/app/test-component/test.component.css +0 -0
- package/projects/finance-plugin/src/app/test-component/test.component.html +24 -0
- package/projects/finance-plugin/src/app/test-component/test.component.spec.ts +46 -0
- package/projects/finance-plugin/src/app/test-component/test.component.ts +35 -0
- package/projects/finance-plugin/src/bootstrap.ts +6 -0
- package/projects/finance-plugin/src/index.html +13 -0
- package/projects/finance-plugin/src/main.ts +6 -0
- package/projects/finance-plugin/src/styles.css +12 -0
- package/projects/finance-plugin/src/test-setup.ts +18 -0
- package/projects/finance-plugin/tsconfig.app.json +15 -0
- package/projects/finance-plugin/tsconfig.federation.json +13 -0
- package/projects/finance-plugin/tsconfig.spec.json +18 -0
- package/projects/finance-plugin/vitest.config.ts +19 -0
- package/rush-logs/xt-plugin-finance.build-deploy-latest.error.log +42 -0
- package/rush-logs/xt-plugin-finance.build-deploy-latest.log +79 -0
- package/rush-logs/xt-plugin-finance.build-deploy-next.error.log +10 -0
- package/rush-logs/xt-plugin-finance.build-deploy-next.log +29 -0
- package/rush-logs/xt-plugin-finance.build.error.log +9 -0
- package/rush-logs/xt-plugin-finance.build.log +24 -0
- package/rush-logs/xt-plugin-finance.test.log +36 -0
- package/tsconfig.json +36 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const { withNativeFederation, shareAll, share } = require('@angular-architects/native-federation/config');
|
|
2
|
+
|
|
3
|
+
module.exports = withNativeFederation({
|
|
4
|
+
|
|
5
|
+
name: 'finance-plugin',
|
|
6
|
+
|
|
7
|
+
exposes: {
|
|
8
|
+
'./FinanceAmountComponent': './projects/finance/src/lib/finance-amount/finance-amount.component.ts',
|
|
9
|
+
'./Register': './projects/finance/src/lib/register.ts'
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
shared: {
|
|
13
|
+
...shareAll({ singleton: true, strictVersion: true, requiredVersion: 'auto' }),
|
|
14
|
+
...share({
|
|
15
|
+
"@primeuix/themes/aura": {
|
|
16
|
+
singleton: true,
|
|
17
|
+
strictVersion: true,
|
|
18
|
+
requiredVersion: "auto",
|
|
19
|
+
includeSecondaries: false,
|
|
20
|
+
build: 'separate',
|
|
21
|
+
packageInfo: {
|
|
22
|
+
entryPoint: 'node_modules/@primeuix/themes/dist/aura/index.mjs'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
})},
|
|
26
|
+
features: {
|
|
27
|
+
ignoreUnusedDeps:true
|
|
28
|
+
},
|
|
29
|
+
skip: [
|
|
30
|
+
'rxjs/ajax',
|
|
31
|
+
'rxjs/fetch',
|
|
32
|
+
'rxjs/testing',
|
|
33
|
+
'rxjs/webSocket',
|
|
34
|
+
// Add further packages you don't need at runtime
|
|
35
|
+
'chart.js/auto',
|
|
36
|
+
'primeng/chart',
|
|
37
|
+
'primeicons'
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
// Please read our FAQ about sharing libs:
|
|
41
|
+
// https://shorturl.at/jmzH0
|
|
42
|
+
|
|
43
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"3.2.4","results":[[":src/app/app.component.spec.ts",{"duration":190.44691199999943,"failed":false}],[":src/app/test-component/test.component.spec.ts",{"duration":794.0362139999997,"failed":false}]]}
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { inject, provideZonelessChangeDetection } from '@angular/core';
|
|
2
|
+
import { TestBed } from '@angular/core/testing';
|
|
3
|
+
import { AppComponent } from './app.component';
|
|
4
|
+
import { beforeEach, describe, expect, it } from 'vitest';
|
|
5
|
+
import { provideNoopAnimations } from '@angular/platform-browser/animations';
|
|
6
|
+
import { XtResolverService } from 'xt-components';
|
|
7
|
+
|
|
8
|
+
describe('AppComponent', () => {
|
|
9
|
+
|
|
10
|
+
let resolver:XtResolverService;
|
|
11
|
+
|
|
12
|
+
beforeEach(async () => {
|
|
13
|
+
await TestBed.configureTestingModule({
|
|
14
|
+
imports: [AppComponent],
|
|
15
|
+
providers: [provideNoopAnimations(),provideZonelessChangeDetection()]
|
|
16
|
+
}).compileComponents();
|
|
17
|
+
|
|
18
|
+
resolver = TestBed.inject(XtResolverService);
|
|
19
|
+
resolver.registerTypes({
|
|
20
|
+
currency: 'string'
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
it('should create the app', () => {
|
|
25
|
+
const fixture = TestBed.createComponent(AppComponent);
|
|
26
|
+
const app = fixture.componentInstance;
|
|
27
|
+
expect(app).toBeTruthy();
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it(`should have the 'Finance Tester' title`, () => {
|
|
31
|
+
const fixture = TestBed.createComponent(AppComponent);
|
|
32
|
+
const app = fixture.componentInstance;
|
|
33
|
+
expect(app.title).toEqual('Finance Tester');
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
it('should render title', () => {
|
|
37
|
+
const fixture = TestBed.createComponent(AppComponent);
|
|
38
|
+
fixture.detectChanges();
|
|
39
|
+
const compiled = fixture.nativeElement as HTMLElement;
|
|
40
|
+
expect(compiled.querySelector('h1')?.textContent).toContain('Finance Plugin Testing app');
|
|
41
|
+
});
|
|
42
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Component, inject } from '@angular/core';
|
|
2
|
+
import { RouterOutlet } from '@angular/router';
|
|
3
|
+
import { StoreTestHelper, XtResolverService } from 'xt-components';
|
|
4
|
+
import { registerFinancePlugin } from '../../../finance/src/lib/register';
|
|
5
|
+
import { DummyCurrencyComponent } from './dummy-currency/dummy-currency.component';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'app-root',
|
|
9
|
+
imports: [RouterOutlet],
|
|
10
|
+
templateUrl: './app.component.html',
|
|
11
|
+
styleUrl: './app.component.css'
|
|
12
|
+
})
|
|
13
|
+
export class AppComponent {
|
|
14
|
+
title = 'Finance Tester';
|
|
15
|
+
|
|
16
|
+
protected resolverService = inject (XtResolverService);
|
|
17
|
+
|
|
18
|
+
constructor () {
|
|
19
|
+
// Let's use the Test Store Helper for Web Images
|
|
20
|
+
StoreTestHelper.ensureTestProviderOnly();
|
|
21
|
+
// Add the currency plugin to allow test
|
|
22
|
+
this.resolverService.registerPlugin({
|
|
23
|
+
name:'dummy-currency',
|
|
24
|
+
components:[{
|
|
25
|
+
componentName:'DummyCurrency',
|
|
26
|
+
componentClass: DummyCurrencyComponent,
|
|
27
|
+
typesHandled:['currency']
|
|
28
|
+
}],
|
|
29
|
+
types: {
|
|
30
|
+
currency: 'string'
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
registerFinancePlugin(this.resolverService);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ApplicationConfig, provideZonelessChangeDetection } from '@angular/core';
|
|
2
|
+
import { provideRouter } from '@angular/router';
|
|
3
|
+
|
|
4
|
+
import { routes } from './app.routes';
|
|
5
|
+
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
|
6
|
+
import { providePrimeNG } from 'primeng/config';
|
|
7
|
+
import Aura from '@primeuix/themes/aura';
|
|
8
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
9
|
+
|
|
10
|
+
export const appConfig: ApplicationConfig = {
|
|
11
|
+
providers: [
|
|
12
|
+
provideZonelessChangeDetection(),
|
|
13
|
+
provideHttpClient(),
|
|
14
|
+
provideAnimationsAsync(),
|
|
15
|
+
providePrimeNG({
|
|
16
|
+
theme: {
|
|
17
|
+
preset: Aura
|
|
18
|
+
}
|
|
19
|
+
}),
|
|
20
|
+
provideRouter(routes)]
|
|
21
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@if (isInForm() ) {
|
|
2
|
+
<ng-container [formGroup]="formGroup()">
|
|
3
|
+
<p-select [options]="currencies" [name]="componentNameInForm ()" [formControlName]="formControlName()" [checkmark]="true" [showClear]="true" (onChange)="selectionChange($event)" (onClear)="selectionCanceled()" placeholder="Select a Currency" class="w-full md:w-36" />
|
|
4
|
+
</ng-container>
|
|
5
|
+
} @else {
|
|
6
|
+
{{ context().displayValue() }}
|
|
7
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, output } from '@angular/core';
|
|
2
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
3
|
+
import { InputNumberModule } from 'primeng/inputnumber';
|
|
4
|
+
import { XtSimpleComponent } from 'xt-components';
|
|
5
|
+
import { CommonModule } from '@angular/common';
|
|
6
|
+
import { InputTextModule } from 'primeng/inputtext';
|
|
7
|
+
import { Select, SelectChangeEvent } from 'primeng/select';
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: 'xt-dummy-currency',
|
|
11
|
+
standalone: true,
|
|
12
|
+
imports: [CommonModule, InputNumberModule, ReactiveFormsModule, InputTextModule, Select],
|
|
13
|
+
templateUrl: './dummy-currency.component.html',
|
|
14
|
+
styleUrl: './dummy-currency.component.css',
|
|
15
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
16
|
+
})
|
|
17
|
+
export class DummyCurrencyComponent extends XtSimpleComponent {
|
|
18
|
+
currency= output<string|undefined>();
|
|
19
|
+
|
|
20
|
+
currencies= [
|
|
21
|
+
'EUR','USD','GBP','CHF','CAD','AUD','JPY'
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
selectionChange($event: SelectChangeEvent) {
|
|
25
|
+
this.currency.emit($event.value);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
selectionCanceled() {
|
|
29
|
+
this.currency.emit(undefined);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
override setupInputOutput () {
|
|
33
|
+
this.outputsObject.valueSelected=this.currency;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<h1 class="text-2xl">Testing Finance Types</h1>
|
|
2
|
+
|
|
3
|
+
<form class="m-3" id="editView" [formGroup]="mainForm">
|
|
4
|
+
<div class="grid grid-cols-3 gap-4">
|
|
5
|
+
<div>
|
|
6
|
+
<p-card header="Euro">
|
|
7
|
+
<xt-render valueType="eur-amount" displayMode="FULL_EDITABLE" subName="Euro" [formGroup]="mainForm"></xt-render>
|
|
8
|
+
</p-card>
|
|
9
|
+
</div>
|
|
10
|
+
<div>
|
|
11
|
+
<p-card header="US Dollar">
|
|
12
|
+
<xt-render valueType="usd-amount" displayMode="FULL_EDITABLE" subName="Dollar" [formGroup]="mainForm"></xt-render>
|
|
13
|
+
</p-card>
|
|
14
|
+
</div>
|
|
15
|
+
<div>
|
|
16
|
+
<p-card header="Other currency">
|
|
17
|
+
<xt-render valueType="money-amount" displayMode="FULL_EDITABLE" subName="Other" [formGroup]="mainForm"></xt-render>
|
|
18
|
+
</p-card>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</form>
|
|
22
|
+
<pre>
|
|
23
|
+
<span class="m-3 mt-6">Form Value is {{mainForm.value | json}}, Form is {{mainForm.pristine?"pristine":"Dirty"}}</span>
|
|
24
|
+
</pre>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { TestComponent } from './test.component';
|
|
4
|
+
import { beforeEach, describe, expect, it } from 'vitest';
|
|
5
|
+
import { provideZonelessChangeDetection } from '@angular/core';
|
|
6
|
+
import { registerFinancePlugin } from '../../../../finance/src/lib/register';
|
|
7
|
+
import { XtResolverService } from 'xt-components';
|
|
8
|
+
import { provideNoopAnimations } from '@angular/platform-browser/animations';
|
|
9
|
+
import { DummyCurrencyComponent } from '../dummy-currency/dummy-currency.component';
|
|
10
|
+
|
|
11
|
+
describe('TestComponent', () => {
|
|
12
|
+
let component: TestComponent;
|
|
13
|
+
let fixture: ComponentFixture<TestComponent>;
|
|
14
|
+
let resolver:XtResolverService;
|
|
15
|
+
|
|
16
|
+
beforeEach(async () => {
|
|
17
|
+
await TestBed.configureTestingModule({
|
|
18
|
+
imports: [TestComponent],
|
|
19
|
+
providers: [provideNoopAnimations(), provideZonelessChangeDetection()]
|
|
20
|
+
})
|
|
21
|
+
.compileComponents();
|
|
22
|
+
|
|
23
|
+
resolver = TestBed.inject(XtResolverService);
|
|
24
|
+
// Add the currency plugin to allow test
|
|
25
|
+
resolver.registerPlugin({
|
|
26
|
+
name:'dummy-currency',
|
|
27
|
+
components:[{
|
|
28
|
+
componentName:'DummyCurrency',
|
|
29
|
+
componentClass: DummyCurrencyComponent,
|
|
30
|
+
typesHandled:['currency']
|
|
31
|
+
}],
|
|
32
|
+
types: {
|
|
33
|
+
currency: 'string'
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
registerFinancePlugin(TestBed.inject(XtResolverService));
|
|
38
|
+
fixture = TestBed.createComponent(TestComponent);
|
|
39
|
+
component = fixture.componentInstance;
|
|
40
|
+
fixture.detectChanges();
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
it('should create', () => {
|
|
44
|
+
expect(component).toBeTruthy();
|
|
45
|
+
});
|
|
46
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Component, inject } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
3
|
+
import { JsonPipe } from '@angular/common';
|
|
4
|
+
import { XtRenderComponent } from 'xt-components';
|
|
5
|
+
import { Card } from 'primeng/card';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'app-test',
|
|
9
|
+
imports: [
|
|
10
|
+
FormsModule,
|
|
11
|
+
ReactiveFormsModule,
|
|
12
|
+
JsonPipe, XtRenderComponent, Card
|
|
13
|
+
],
|
|
14
|
+
templateUrl: './test.component.html',
|
|
15
|
+
styleUrl: './test.component.css'
|
|
16
|
+
})
|
|
17
|
+
export class TestComponent {
|
|
18
|
+
|
|
19
|
+
protected builder = inject(FormBuilder);
|
|
20
|
+
|
|
21
|
+
mainForm :FormGroup =this.builder.group ({
|
|
22
|
+
Euro:this.builder.group({
|
|
23
|
+
currency:[null],
|
|
24
|
+
amount:[null]
|
|
25
|
+
}),
|
|
26
|
+
Dollar:this.builder.group({
|
|
27
|
+
currency:[null],
|
|
28
|
+
amount:[null]
|
|
29
|
+
}),
|
|
30
|
+
Other:this.builder.group({
|
|
31
|
+
currency:[null],
|
|
32
|
+
amount:[null]
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>Finance Tester</title>
|
|
6
|
+
<base href="/">
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
|
+
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<app-root></app-root>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "@angular/compiler";
|
|
2
|
+
|
|
3
|
+
import { BrowserTestingModule, platformBrowserTesting } from '@angular/platform-browser/testing';
|
|
4
|
+
|
|
5
|
+
import { getTestBed } from '@angular/core/testing';
|
|
6
|
+
import { NgModule, provideZonelessChangeDetection } from '@angular/core';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@NgModule({
|
|
10
|
+
imports: [BrowserTestingModule],
|
|
11
|
+
providers: [provideZonelessChangeDetection()],
|
|
12
|
+
})
|
|
13
|
+
export class TestingModule {}
|
|
14
|
+
|
|
15
|
+
getTestBed().initTestEnvironment(
|
|
16
|
+
[TestingModule],
|
|
17
|
+
platformBrowserTesting()
|
|
18
|
+
);
|
|
@@ -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/app",
|
|
7
|
+
"types": []
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"src/main.ts"
|
|
11
|
+
],
|
|
12
|
+
"include": [
|
|
13
|
+
"src/**/*.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
"target": "es2016",
|
|
8
|
+
"types": [
|
|
9
|
+
"vitest/globals","node"
|
|
10
|
+
],
|
|
11
|
+
"emitDecoratorMetadata": true
|
|
12
|
+
},
|
|
13
|
+
"files": ["src/test-setup.ts"],
|
|
14
|
+
"include": [
|
|
15
|
+
"src/**/*.spec.ts",
|
|
16
|
+
"src/**/*.d.ts"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="vitest" />
|
|
2
|
+
import { defineConfig } from 'vite';
|
|
3
|
+
|
|
4
|
+
import angular from '@analogjs/vite-plugin-angular';
|
|
5
|
+
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
6
|
+
|
|
7
|
+
export default defineConfig(({ mode }) => ({
|
|
8
|
+
plugins: [angular(), tsconfigPaths()],
|
|
9
|
+
test: {
|
|
10
|
+
globals: true,
|
|
11
|
+
setupFiles: ['src/test-setup.ts'],
|
|
12
|
+
environment: 'jsdom',
|
|
13
|
+
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
14
|
+
reporters: ['default']
|
|
15
|
+
},
|
|
16
|
+
define: {
|
|
17
|
+
'import.meta.vitest': mode !== 'production',
|
|
18
|
+
},
|
|
19
|
+
}));
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
- Compiling with Angular sources in partial compilation mode.
|
|
2
|
+
✔ Compiling with Angular sources in partial compilation mode.
|
|
3
|
+
- Writing FESM and DTS bundles
|
|
4
|
+
✔ Writing FESM and DTS bundles
|
|
5
|
+
- Copying assets
|
|
6
|
+
✔ Copying assets
|
|
7
|
+
- Writing package manifest
|
|
8
|
+
✔ Writing package manifest
|
|
9
|
+
✔ Built xt-plugin-finance
|
|
10
|
+
WARN No meta data found for shared lib @primeuix/styles/base
|
|
11
|
+
WARN No entry point found for @primeuix/utils/eventbus
|
|
12
|
+
WARN If you don't need this package, skip it in your federation.config.js or consider moving it into depDependencies in your package.json
|
|
13
|
+
WARN No meta data found for shared lib @primeuix/utils/eventbus
|
|
14
|
+
WARN No entry point found for @primeuix/utils/object
|
|
15
|
+
WARN If you don't need this package, skip it in your federation.config.js or consider moving it into depDependencies in your package.json
|
|
16
|
+
WARN No meta data found for shared lib @primeuix/utils/object
|
|
17
|
+
WARN No meta data found for shared lib @primeuix/styles/select
|
|
18
|
+
WARN No meta data found for shared lib @primeuix/styles/tooltip
|
|
19
|
+
WARN No meta data found for shared lib @primeuix/styles/ripple
|
|
20
|
+
WARN No meta data found for shared lib @primeuix/styles/iconfield
|
|
21
|
+
WARN No entry point found for @primeuix/utils/zindex
|
|
22
|
+
WARN If you don't need this package, skip it in your federation.config.js or consider moving it into depDependencies in your package.json
|
|
23
|
+
WARN No meta data found for shared lib @primeuix/utils/zindex
|
|
24
|
+
WARN No entry point found for @primeuix/utils/uuid
|
|
25
|
+
WARN If you don't need this package, skip it in your federation.config.js or consider moving it into depDependencies in your package.json
|
|
26
|
+
WARN No meta data found for shared lib @primeuix/utils/uuid
|
|
27
|
+
WARN No entry point found for @primeuix/utils/mergeprops
|
|
28
|
+
WARN If you don't need this package, skip it in your federation.config.js or consider moving it into depDependencies in your package.json
|
|
29
|
+
WARN No meta data found for shared lib @primeuix/utils/mergeprops
|
|
30
|
+
WARN No entry point found for @primeuix/utils/dom
|
|
31
|
+
WARN If you don't need this package, skip it in your federation.config.js or consider moving it into depDependencies in your package.json
|
|
32
|
+
WARN No meta data found for shared lib @primeuix/utils/dom
|
|
33
|
+
WARN No entry point found for @primeuix/utils/classnames
|
|
34
|
+
WARN If you don't need this package, skip it in your federation.config.js or consider moving it into depDependencies in your package.json
|
|
35
|
+
WARN No meta data found for shared lib @primeuix/utils/classnames
|
|
36
|
+
WARN No meta data found for shared lib @primeuix/styles/inputtext
|
|
37
|
+
WARN No meta data found for shared lib @primeuix/styles/inputnumber
|
|
38
|
+
WARN No meta data found for shared lib eta/core
|
|
39
|
+
WARN No meta data found for shared lib @primeuix/styles/card
|
|
40
|
+
WARN No entry point found for @primeuix/themes/aura
|
|
41
|
+
WARN If you don't need this package, skip it in your federation.config.js or consider moving it into depDependencies in your package.json
|
|
42
|
+
WARN No meta data found for shared lib @primeuix/themes/aura
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
Invoking: BUILD=production STAGE=latest npm run build-deploy
|
|
2
|
+
|
|
3
|
+
> xt-plugin-finance@0.5.5 build-deploy
|
|
4
|
+
> APP=finance-plugin && MAIN_LIB=finance && ng build $MAIN_LIB --configuration=$BUILD && ng build $APP --configuration=$BUILD --output-path="../../dist/$STAGE/$APP" --base-href="https://test.dont-code.net/apps/$STAGE/$APP/"
|
|
5
|
+
|
|
6
|
+
Building Angular Package
|
|
7
|
+
|
|
8
|
+
------------------------------------------------------------------------------
|
|
9
|
+
Building entry point 'xt-plugin-finance'
|
|
10
|
+
------------------------------------------------------------------------------
|
|
11
|
+
- Compiling with Angular sources in partial compilation mode.
|
|
12
|
+
✔ Compiling with Angular sources in partial compilation mode.
|
|
13
|
+
- Writing FESM and DTS bundles
|
|
14
|
+
✔ Writing FESM and DTS bundles
|
|
15
|
+
- Copying assets
|
|
16
|
+
✔ Copying assets
|
|
17
|
+
- Writing package manifest
|
|
18
|
+
✔ Writing package manifest
|
|
19
|
+
✔ Built xt-plugin-finance
|
|
20
|
+
|
|
21
|
+
------------------------------------------------------------------------------
|
|
22
|
+
Built Angular Package
|
|
23
|
+
- from: /home/gc-garunda/devs/dont-code/github/ng-xtend/plugins/xt-finance/projects/finance
|
|
24
|
+
- to: /home/gc-garunda/devs/dont-code/github/ng-xtend/plugins/xt-finance/dist/xt-plugin-finance
|
|
25
|
+
------------------------------------------------------------------------------
|
|
26
|
+
|
|
27
|
+
Build at: 2026-01-07T09:09:09.979Z - Time: 5472ms
|
|
28
|
+
|
|
29
|
+
WARN No meta data found for shared lib @primeuix/styles/base
|
|
30
|
+
WARN No entry point found for @primeuix/utils/eventbus
|
|
31
|
+
WARN If you don't need this package, skip it in your federation.config.js or consider moving it into depDependencies in your package.json
|
|
32
|
+
WARN No meta data found for shared lib @primeuix/utils/eventbus
|
|
33
|
+
WARN No entry point found for @primeuix/utils/object
|
|
34
|
+
WARN If you don't need this package, skip it in your federation.config.js or consider moving it into depDependencies in your package.json
|
|
35
|
+
WARN No meta data found for shared lib @primeuix/utils/object
|
|
36
|
+
WARN No meta data found for shared lib @primeuix/styles/select
|
|
37
|
+
WARN No meta data found for shared lib @primeuix/styles/tooltip
|
|
38
|
+
WARN No meta data found for shared lib @primeuix/styles/ripple
|
|
39
|
+
WARN No meta data found for shared lib @primeuix/styles/iconfield
|
|
40
|
+
WARN No entry point found for @primeuix/utils/zindex
|
|
41
|
+
WARN If you don't need this package, skip it in your federation.config.js or consider moving it into depDependencies in your package.json
|
|
42
|
+
WARN No meta data found for shared lib @primeuix/utils/zindex
|
|
43
|
+
WARN No entry point found for @primeuix/utils/uuid
|
|
44
|
+
WARN If you don't need this package, skip it in your federation.config.js or consider moving it into depDependencies in your package.json
|
|
45
|
+
WARN No meta data found for shared lib @primeuix/utils/uuid
|
|
46
|
+
WARN No entry point found for @primeuix/utils/mergeprops
|
|
47
|
+
WARN If you don't need this package, skip it in your federation.config.js or consider moving it into depDependencies in your package.json
|
|
48
|
+
WARN No meta data found for shared lib @primeuix/utils/mergeprops
|
|
49
|
+
WARN No entry point found for @primeuix/utils/dom
|
|
50
|
+
WARN If you don't need this package, skip it in your federation.config.js or consider moving it into depDependencies in your package.json
|
|
51
|
+
WARN No meta data found for shared lib @primeuix/utils/dom
|
|
52
|
+
WARN No entry point found for @primeuix/utils/classnames
|
|
53
|
+
WARN If you don't need this package, skip it in your federation.config.js or consider moving it into depDependencies in your package.json
|
|
54
|
+
WARN No meta data found for shared lib @primeuix/utils/classnames
|
|
55
|
+
WARN No meta data found for shared lib @primeuix/styles/inputtext
|
|
56
|
+
WARN No meta data found for shared lib @primeuix/styles/inputnumber
|
|
57
|
+
WARN No meta data found for shared lib eta/core
|
|
58
|
+
WARN No meta data found for shared lib @primeuix/styles/card
|
|
59
|
+
WARN No entry point found for @primeuix/themes/aura
|
|
60
|
+
WARN If you don't need this package, skip it in your federation.config.js or consider moving it into depDependencies in your package.json
|
|
61
|
+
WARN No meta data found for shared lib @primeuix/themes/aura
|
|
62
|
+
INFO Building federation artefacts
|
|
63
|
+
❯ Building...
|
|
64
|
+
✔ Building...
|
|
65
|
+
Initial chunk files | Names | Raw size | Estimated transfer size
|
|
66
|
+
polyfills-XUYJO5JA.js | polyfills | 39.91 kB | 13.52 kB
|
|
67
|
+
styles-52F5AIP2.css | styles | 17.25 kB | 3.63 kB
|
|
68
|
+
main-JARDJ2C5.js | main | 2.74 kB | 1.15 kB
|
|
69
|
+
chunk-2NFLSA4Y.js | - | 449 bytes | 449 bytes
|
|
70
|
+
|
|
71
|
+
| Initial total | 60.35 kB | 18.76 kB
|
|
72
|
+
|
|
73
|
+
Lazy chunk files | Names | Raw size | Estimated transfer size
|
|
74
|
+
chunk-IUMFQXFG.js | bootstrap | 10.95 kB | 2.74 kB
|
|
75
|
+
|
|
76
|
+
Application bundle generation complete. [12.824 seconds] - 2026-01-07T09:10:05.109Z
|
|
77
|
+
|
|
78
|
+
Output location: /home/gc-garunda/devs/dont-code/github/ng-xtend/dist/latest/finance-plugin
|
|
79
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
- Compiling with Angular sources in full compilation mode.
|
|
2
|
+
✔ Compiling with Angular sources in full compilation mode.
|
|
3
|
+
✔ Generating FESM and DTS bundles
|
|
4
|
+
- Copying assets
|
|
5
|
+
✔ Copying assets
|
|
6
|
+
- Writing package manifest
|
|
7
|
+
✔ Writing package manifest
|
|
8
|
+
✔ Built xt-plugin-finance
|
|
9
|
+
An unhandled exception occurred: Cannot read properties of undefined (reading 'split')
|
|
10
|
+
See "/tmp/ng-qLTrbq/angular-errors.log" for further details.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Invoking: BUILD=development STAGE=next npm run build-deploy
|
|
2
|
+
|
|
3
|
+
> xt-plugin-finance@0.0.0 build-deploy
|
|
4
|
+
> APP=finance-plugin && MAIN_LIB=finance && ng build $MAIN_LIB --configuration=$BUILD && ng build $APP --configuration=$BUILD --output-path="../../dist/$STAGE/$APP" --base-href="https://test.dont-code.net/apps/$STAGE/$APP/" && rm -f ../../dist/$STAGE/$APP/*.* && mv ../../dist/$STAGE/$APP/browser/* ../../dist/$STAGE/$APP
|
|
5
|
+
|
|
6
|
+
Building Angular Package
|
|
7
|
+
|
|
8
|
+
------------------------------------------------------------------------------
|
|
9
|
+
Building entry point 'xt-plugin-finance'
|
|
10
|
+
------------------------------------------------------------------------------
|
|
11
|
+
- Compiling with Angular sources in full compilation mode.
|
|
12
|
+
✔ Compiling with Angular sources in full compilation mode.
|
|
13
|
+
✔ Generating FESM and DTS bundles
|
|
14
|
+
- Copying assets
|
|
15
|
+
✔ Copying assets
|
|
16
|
+
- Writing package manifest
|
|
17
|
+
✔ Writing package manifest
|
|
18
|
+
✔ Built xt-plugin-finance
|
|
19
|
+
|
|
20
|
+
------------------------------------------------------------------------------
|
|
21
|
+
Built Angular Package
|
|
22
|
+
- from: /home/gc-garunda/devs/dont-code/github/ng-xtend/plugins/xt-finance/projects/finance
|
|
23
|
+
- to: /home/gc-garunda/devs/dont-code/github/ng-xtend/plugins/xt-finance/dist/xt-plugin-finance
|
|
24
|
+
------------------------------------------------------------------------------
|
|
25
|
+
|
|
26
|
+
Build at: 2025-09-04T10:04:23.871Z - Time: 5799ms
|
|
27
|
+
|
|
28
|
+
An unhandled exception occurred: Cannot read properties of undefined (reading 'split')
|
|
29
|
+
See "/tmp/ng-qLTrbq/angular-errors.log" for further details.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
- Compiling with Angular sources in full compilation mode.
|
|
2
|
+
✔ Compiling with Angular sources in full compilation mode.
|
|
3
|
+
- Writing FESM and DTS bundles
|
|
4
|
+
✔ Writing FESM and DTS bundles
|
|
5
|
+
- Copying assets
|
|
6
|
+
✔ Copying assets
|
|
7
|
+
- Writing package manifest
|
|
8
|
+
✔ Writing package manifest
|
|
9
|
+
✔ Built xt-plugin-finance
|