Skip to content

Commit 19972cc

Browse files
committed
fix: Add translation
1 parent 562f942 commit 19972cc

File tree

7 files changed

+13
-50
lines changed

7 files changed

+13
-50
lines changed

Diff for: src/ng-generate/components/shared/generators/language/files/__name@dasherize__.translation.json.template

+1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
"restoreDefaults": "Restore Defaults",
163163
"columns": "Columns",
164164
"export": "Export",
165+
"noLink": "No link",
165166
"toolbar": {
166167
"sorted_tooltip": "Sort data by property",
167168
"sort_dir_tooltip": "Sort data direction",

Diff for: src/ng-generate/components/table/generators/components/table-cell-link/files/__name@dasherize__.component.html.template

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
<!--
2-
* Copyright (c) 2024 Robert Bosch Manufacturing Solutions GmbH
3-
*
4-
* See the AUTHORS file(s) distributed with this work for
5-
* additional information regarding authorship.
6-
*
7-
* This Source Code Form is subject to the terms of the Mozilla Public
8-
* License, v. 2.0. If a copy of the MPL was not distributed with this
9-
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
10-
*
11-
* SPDX-License-Identifier: MPL-2.0
12-
-->
1+
<!-- <%= options.generationDisclaimerText %> -->
132

143
@let isDisabled = value === null || value === undefined;
154
<button (click)="openExternalLink()"
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/** <%= options.generationDisclaimerText %> **/
22

33
.button-disabled {
4+
pointer-events:none;
45
cursor: not-allowed;
56
opacity: 0.4;
6-
}
7-
8-
.button-disabled {
9-
cursor: not-allowed;
10-
opacity: 0.4;
11-
}
7+
}

Diff for: src/ng-generate/components/table/generators/components/table-cell-link/files/__name@dasherize__.component.ts.template

+6-7
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
import {Component, EventEmitter, Input} from '@angular/core';
44

55
@Component({
6+
standalone: true,
67
selector: '<%= dasherize(name) %>',
78
templateUrl: './<%= dasherize(name) %>.component.html',
8-
styleUrls: ['./<%= dasherize(name) %>.component.<%= options.style %>']
9+
styleUrls: ['./<%= dasherize(name) %>.component.<%= options.style %>'],
10+
changeDetection: ChangeDetectionStrategy.OnPush
911
})
1012
export class EsmfTableCellLinkComponent {
11-
@Input() value: any;
12-
@Input() tooltipMessage: string;
13+
value = input.required<string | null>();
14+
tooltipMessage = input.required<string>();
1315

1416
openExternalLink() {
15-
if (!this.value) {
16-
return;
17+
window.open(this.value, '_blank');
1718
}
18-
window.open(this.value, '_blank');
19-
}
2019
}

Diff for: src/ng-generate/components/table/generators/components/table-cell-link/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024 Robert Bosch Manufacturing Solutions GmbH
2+
* Copyright Robert Bosch Manufacturing Solutions GmbH, Germany. All rights reserved.
33
*
44
* See the AUTHORS file(s) distributed with this work for
55
* additional information regarding authorship.

Diff for: src/ng-generate/components/table/generators/components/table-cell/files/__name@dasherize__.component.html.template

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
<!--
2-
* Copyright (c) 2024 Robert Bosch Manufacturing Solutions GmbH
3-
*
4-
* See the AUTHORS file(s) distributed with this work for
5-
* additional information regarding authorship.
6-
*
7-
* This Source Code Form is subject to the terms of the Mozilla Public
8-
* License, v. 2.0. If a copy of the MPL was not distributed with this
9-
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
10-
*
11-
* SPDX-License-Identifier: MPL-2.0
12-
-->
1+
<!-- <%= options.generationDisclaimerText %> -->
132

143
<span
154
[tableCellTooltip]="value"

Diff for: src/ng-generate/components/table/generators/components/table/files/__name@dasherize__.component.html.template

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
<!--
2-
* Copyright (c) 2024 Robert Bosch Manufacturing Solutions GmbH
3-
*
4-
* See the AUTHORS file(s) distributed with this work for
5-
* additional information regarding authorship.
6-
*
7-
* This Source Code Form is subject to the terms of the Mozilla Public
8-
* License, v. 2.0. If a copy of the MPL was not distributed with this
9-
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
10-
*
11-
* SPDX-License-Identifier: MPL-2.0
12-
-->
1+
<!-- <%= options.generationDisclaimerText %> -->
132

143
<div class="js-sdk-component-container">
154
<% if (options.addCommandBar) { %>

0 commit comments

Comments
 (0)