Skip to content

Commit 0fb295b

Browse files
committed
fixed hyperlinks with composite names
1 parent 70e6a5d commit 0fb295b

File tree

7 files changed

+23
-11
lines changed

7 files changed

+23
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-dynamic-components",
3-
"version": "0.2.5",
3+
"version": "0.2.6",
44
"description": "NGX Dynamic Components is a configuration based dynamic components library for Angular. That allows you to rapidly create dynamic forms or any other mobile-friendly web layouts.",
55
"author": "FalconSoft Ltd",
66
"repository": {

projects/bootstrap/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngx-dynamic-components/bootstrap",
3-
"version": "0.2.5",
3+
"version": "0.2.6",
44
"private": false,
55
"description": "@ngx-dynamic-components/bootstrap is Angular 7+ library what contains a bootstrap interfaces to build a configuration driven web pages and workflows.",
66
"author": "FalconSoft Ltd <[email protected]>",

projects/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngx-dynamic-components/core",
3-
"version": "0.2.5",
3+
"version": "0.2.6",
44
"private": false,
55
"description": "@ngx-dynamic-components/core is Angular 7+ library what contains a core interfaces to build a configuration driven web pages and workflows.",
66
"author": "FalconSoft Ltd <[email protected]>",

projects/core/src/lib/html-elements/a/a.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export class AComponent extends BaseHTMLElement<LinkProperties> { // tslint:disa
4444
routerLink = routerLink.replace(m, res);
4545
});
4646
}
47+
4748
return routerLink;
4849
}
4950
}

projects/core/src/lib/html-elements/ol/ol.element.ts

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,23 @@ export const olDescriptor: ComponentDescriptor<BaseHTMLElementConstructor, HTMLP
1212
component: BaseHTMLElement,
1313
example: {
1414
title: 'HTML <ol> example',
15-
uiModel: `<div>
16-
<ol>
17-
<li>item</li>
18-
<li>item</li>
19-
<li>item</li>
15+
uiModel: `
16+
17+
<nav aria-label="breadcrumb">
18+
<ol class="breadcrumb px-0">
19+
<li class="breadcrumb-item"><a routerLink="app/{$.appInfo/ownerName}/{$.appInfo/appName}">Home</a></li>
20+
<li class="breadcrumb-item"><a routerLink="app/{$.appInfo/ownerName}/{$.appInfo/appName}/orders-list">Orders</a></li>
21+
<li class="breadcrumb-item active" aria-current="page">Details</li>
2022
</ol>
21-
</div>`,
22-
dataModel: {}
23+
</nav>
24+
25+
`,
26+
dataModel: {
27+
appInfo: {
28+
ownerName: 'TestUser',
29+
appName: 'LongAppName'
30+
}
31+
}
2332
},
2433
parseUIModel: parseHTMLUIModel,
2534
defaultModel: '<ol></ol>'

projects/core/src/lib/utils/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export function queryValue(obj: any, path: string, defaultValue: any = null): an
7878
if (path.startsWith('$.')) {
7979
path = path.substring(2);
8080
}
81+
path = path.replace('}', '')
82+
path = path.replace('{', '')
8183

8284
const props = path.indexOf('/') > 0 ? path.split('/') : path.split('.');
8385

projects/tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngx-dynamic-components/tools",
3-
"version": "0.2.5",
3+
"version": "0.2.6",
44
"private": false,
55
"description": "@ngx-dynamic-components/tools is Angular 7+ library what contains a core interfaces to build a configuration driven web pages.",
66
"author": "FalconSoft Ltd <[email protected]>",

0 commit comments

Comments
 (0)