Skip to content

Commit c522776

Browse files
authored
Merge pull request #160 from netgrif/dev
Release/6.2.6
2 parents 741ed3c + 96eb8e3 commit c522776

File tree

10 files changed

+24
-14
lines changed

10 files changed

+24
-14
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
66
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
Full Changelog: [https://github.com/netgrif/components/commits/v6.2.5](https://github.com/netgrif/components/commits/v6.2.5)
8+
Full Changelog: [https://github.com/netgrif/components/commits/v6.2.6](https://github.com/netgrif/components/commits/v6.2.6)
9+
10+
## [6.2.6](https://github.com/netgrif/components/releases/tag/v6.2.6) (2022-12-12)
11+
12+
### Fixed
13+
14+
- [NAE-1799] Multilevel process identifier handling in 6.2.x for public view
15+
- [NAE-1800] Operations on date fields in advanced search are not rendered correctly
916

1017
## [6.2.5](https://github.com/netgrif/components/releases/tag/v6.2.5) (2022-12-05)
1118

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netgrif/components-project",
3-
"version": "6.2.5",
3+
"version": "6.2.6",
44
"description": "Netgrif Application Engine Frontend project. Project includes angular libraries as base for NAE applications.",
55
"homepage": "https://components.netgrif.com",
66
"license": "SEE LICENSE IN LICENSE",

projects/nae-example-app/src/app/doc/public-workflow-view/public-workflow-view.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export class PublicWorkflowViewComponent extends AbstractWorkflowViewComponent {
6666
}
6767

6868
handleClick(workflow: Net) {
69-
this._router.navigate([this._route.snapshot.url.join('/') + '/' + workflow.identifier]);
69+
this._router.navigate([this._route.snapshot.url.join('/') + '/' + btoa(workflow.identifier)]);
70+
7071
}
7172
}

projects/netgrif-components-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netgrif/components-core",
3-
"version": "6.2.5",
3+
"version": "6.2.6",
44
"description": "Netgrif Application engine frontend core Angular library",
55
"homepage": "https://components.netgrif.com",
66
"license": "SEE LICENSE IN LICENSE",

projects/netgrif-components-core/src/lib/public/factories/get-net-and-create-case.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const getNetAndCreateCase = (router: Router,
1414
snackBarService: SnackBarService,
1515
translate: TranslateService,
1616
publicTaskLoadingService: PublicTaskLoadingService) => {
17-
process.getNet(route.snapshot.paramMap.get('petriNetId')).pipe(mergeMap(net => {
17+
process.getNet(atob(route.snapshot.paramMap.get('petriNetId'))).pipe(mergeMap(net => {
1818
if (net) {
1919
publicTaskLoadingService.setLoading$(true);
2020
const newCase = {

projects/netgrif-components-core/src/lib/resources/engine-endpoint/public/public-petri-net-resource.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class PublicPetriNetResourceService extends PetriNetResourceService {
4242
* **Request URL:** {{baseUrl}}/api/public/petrinet/{identifier}/{version}
4343
*/
4444
public getOne(identifier: string, version: string, params?: Params): Observable<PetriNetReference> {
45-
return this.provider.get$('public/petrinet/' + identifier + '/' + version, this.SERVER_URL, params)
45+
return this.provider.get$('public/petrinet/' + btoa(identifier) + '/' + version, this.SERVER_URL, params)
4646
.pipe(map(r => this.changeType(r, 'petriNetReferences')));
4747
}
4848

projects/netgrif-components-core/src/lib/view/task-view/abstract-single-task-view.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export abstract class AbstractSingleTaskViewComponent extends AbstractViewWithHe
2121
public loading$: Observable<boolean>;
2222
private transitionId: string;
2323
private subRoute: Subscription | undefined;
24-
protected subPanelData: Subscription;
24+
protected subPanelData: Subscription | undefined;
2525

2626
protected constructor(protected taskViewService: TaskViewService,
2727
activatedRoute: ActivatedRoute) {
@@ -30,7 +30,6 @@ export abstract class AbstractSingleTaskViewComponent extends AbstractViewWithHe
3030
this.subRoute = this._activatedRoute.paramMap.subscribe(paramMap => {
3131
if (!!(paramMap?.['params']?.[TaskConst.TRANSITION_ID])) {
3232
this.transitionId = paramMap['params'][TaskConst.TRANSITION_ID];
33-
this.subPanelData.unsubscribe();
3433
this.subPanelData = this.taskViewService.tasks$.subscribe(tasks => {
3534
if (!!tasks && tasks.length > 0) {
3635
this.taskPanelData.next(this.resolveTransitionTask(tasks));
@@ -43,7 +42,9 @@ export abstract class AbstractSingleTaskViewComponent extends AbstractViewWithHe
4342

4443
ngOnDestroy() {
4544
super.ngOnDestroy();
46-
this.subRoute.unsubscribe();
45+
if (!!this.subRoute) {
46+
this.subRoute.unsubscribe();
47+
}
4748
if (!!this.subPanelData) {
4849
this.subPanelData.unsubscribe();
4950
}

projects/netgrif-components/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netgrif/components",
3-
"version": "6.2.5",
3+
"version": "6.2.6",
44
"description": "Netgrif Application Engine frontend Angular components",
55
"homepage": "https://components.netgrif.com",
66
"license": "SEE LICENSE IN LICENSE",
@@ -29,7 +29,7 @@
2929
"nae frontend"
3030
],
3131
"peerDependencies": {
32-
"@netgrif/components-core": "6.2.5",
32+
"@netgrif/components-core": "6.2.6",
3333
"@angular-material-components/datetime-picker": "~7.0.1",
3434
"@angular-material-components/moment-adapter": "~7.0.0",
3535
"@angular/animations": "~13.3.1",

projects/netgrif-components/schematics/view/create-view-prompt/views/public-workflow-view/files/common/__className@dasherize__.component.ts.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ export class <%= classify(className) %>Component extends AbstractWorkflowViewCom
6767
}
6868

6969
handleClick(workflow: Net) {
70-
this._router.navigate([this._route.snapshot.url.join('/') + '/' + workflow.identifier]);
70+
this._router.navigate([this._route.snapshot.url.join('/') + '/' + btoa(workflow.identifier)]);
7171
}
7272
}

projects/netgrif-components/src/lib/search/advanced-search/search-operand-input-component/search-operand-input.component.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@
4343
[disabled]="!editable"
4444
(keydown.enter)="searchDatepicker.close()"
4545
(focus)="editInput(); searchDatepicker.open()"
46-
(blur)="confirmInput()"
4746
#operandInput>
4847
<mat-datepicker-toggle matPrefix [for]="searchDatepicker"></mat-datepicker-toggle>
49-
<mat-datepicker #searchDatepicker></mat-datepicker>
48+
<mat-datepicker
49+
#searchDatepicker
50+
(closed)="confirmInput()"></mat-datepicker>
5051
</mat-form-field>
5152
</ng-template>
5253

0 commit comments

Comments
 (0)