Hello,
Did you update your angular version to 14?
Can you send me the result of the following command?
> yarn why @abp/ng.schematics
Hello,
We fixed the problem, the fix will be available in the next 5.3 version and the next 6.0 version.
You can avoid this problem by the following workaround
import { Component } from '@angular/core';
import { LookupTypeaheadMtmComponent } from '@volo/abp.commercial.ng.ui';
@Component({
selector: 'app-root',
template: `
<abp-loader-bar></abp-loader-bar>
<abp-dynamic-layout></abp-dynamic-layout>
`,
})
export class AppComponent {}
LookupTypeaheadMtmComponent.prototype.ngOnInit = () => {};
Hello,
What is the apiName of generated MyService class? It should be equal to the key in the environment.ts
Example
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root',
})
export class MyService {
apiName = 'MyApi';
}
apis: {
default: {
url: 'https://localhost:44360',
rootNamespace: 'default.namespace',
},
MyApi: {
url: 'http://myapi:1234',
rootNamespace: 'MyProj.myapi',
},
},
Hello,
Please remove the following route configuration from your app-routing.module.ts
. Because IdentityExtendedModule has this logic. And please remove theentity-action-contributors.ts
placed in the app
folder.
{
path: 'identity',
loadChildren: () =>
import('@volo/abp.ng.identity').then(m =>
m.IdentityModule.forLazy({
entityActionContributors: identityEntityActionContributors
})
))
}
You can follow the same steps for "Adding quick view button to actions"
requestMyApi(record: IdentityUserDto) {
this.myService.myRequestMethod().subscribe(res => {
console.log(res)
});
}
const printButtonAction = new EntityAction<IdentityUserDto>({
text: 'PrintButton',
action: data => {
const component = data.getInjected(IdentityExtendedComponent);
component.requestMyApi(data.record);
},
});
Hello,
We have no document for this topic. But we have plans to write a blog post that explains our development experiment and the issues we faced.
In general, you basically need to be aware of the following if you want to create a new theme for ABP.
Hello,
We got the problem fixed. For now, no new 5.3 bug-fix version is scheduled for release. However, the fix will be included in 6.0.0's next version.
With the following workaround, you can avoid the issue
//app.component.ts
import { LookupInputComponent } from '@volo/abp.commercial.ng.ui';
const afterViewInit = LookupInputComponent.prototype.ngAfterViewInit;
LookupInputComponent.prototype.ngAfterViewInit = function () {
afterViewInit.call(this);
this.cdRef.detectChanges();
};
Hello
I am able to reproduce the problem. I'll let you know about the fix.
Hello,
I think it is the same with this issue Can we close the issue?
Hello,
You can download the LeptonX source code with abp get-source Volo.Abp.LeptonXTheme.Pro --preview
in 6.0.0-rc.5 version. You can replace existing style files by copy to the same path in your project.