Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"projectType": "application",
"root": "projects/wc",
"sourceRoot": "projects/wc/src",
"prefix": "wc",
"prefix": "pm",
"architect": {
"build": {
"builder": "ngx-build-plus:browser",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('DynamicSelectComponent', () => {

fixture.detectChanges();

expect(component.testId()).toBe('dynamic-select-getData');
expect(component.testId()).toBe('pm-dynamic-select-getData');
});

it('should generate default testId without operation name', () => {
Expand All @@ -104,7 +104,7 @@ describe('DynamicSelectComponent', () => {

fixture.detectChanges();

expect(component.testId()).toBe('dynamic-select');
expect(component.testId()).toBe('pm-dynamic-select');
});

it('should generate optionTestId with value', () => {
Expand All @@ -125,7 +125,7 @@ describe('DynamicSelectComponent', () => {
fixture.detectChanges();

expect(component.optionTestId('option1')).toBe(
'dynamic-select-getData-option-option1',
'pm-dynamic-select-getData-option-option1',
);
});

Expand All @@ -147,7 +147,7 @@ describe('DynamicSelectComponent', () => {
fixture.detectChanges();

expect(component.optionTestId('')).toBe(
'dynamic-select-getData-option-empty',
'pm-dynamic-select-getData-option-empty',
);
});

Expand All @@ -169,7 +169,7 @@ describe('DynamicSelectComponent', () => {
fixture.detectChanges();

expect(component.optionTestId(null)).toBe(
'dynamic-select-getData-option-empty',
'pm-dynamic-select-getData-option-empty',
);
});

Expand All @@ -191,7 +191,7 @@ describe('DynamicSelectComponent', () => {
fixture.detectChanges();

expect(component.optionTestId(undefined)).toBe(
'dynamic-select-getData-option-empty',
'pm-dynamic-select-getData-option-empty',
);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { OptionComponent, SelectComponent } from '@ui5/webcomponents-ngx';
import { Observable, map } from 'rxjs';

@Component({
selector: 'dynamic-select',
selector: 'pm-dynamic-select',
imports: [SelectComponent, OptionComponent],
templateUrl: './dynamic-select.component.html',
styleUrl: './dynamic-select.component.scss',
Expand All @@ -45,7 +45,7 @@ export class DynamicSelectComponent {
testId = computed(() => {
const definition = this.dynamicValuesDefinition();
const operation = definition.operation?.trim();
return operation ? `dynamic-select-${operation}` : 'dynamic-select';
return operation ? `pm-dynamic-select-${operation}` : 'pm-dynamic-select';
});

private resourceService = inject(ResourceService);
Expand Down
3 changes: 1 addition & 2 deletions projects/wc/src/app/components/error/error.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { ButtonConfig, ErrorConfig } from './models/error.model';
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
OnInit,
ViewEncapsulation,
Expand All @@ -20,7 +19,7 @@ import {
} from '@ui5/webcomponents-ngx';

@Component({
selector: 'app-error',
selector: 'pm-error',
standalone: true,
templateUrl: './error.component.html',
encapsulation: ViewEncapsulation.ShadowDom,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
@for (field of viewField.group.fields; let last = $last; track field.label) {
<span [class.multiline]="viewField.group.multiline ?? true">
<span>{{ field.label }}: </span>
<value-cell
<pm-value-cell
[fieldDefinition]="field"
[resource]="resource"
[LuigiClient]="LuigiClient()"
Expand All @@ -64,7 +64,7 @@
} @else {
<ui5-label [attr.test-id]="'generic-detail-view-field-' + viewField.property + '-label'">{{ viewField.label }}</ui5-label>
<p [attr.test-id]="'generic-detail-view-field-' + viewField.property + '-value'">
<value-cell
<pm-value-cell
[fieldDefinition]="viewField"
[resource]="resource"
[LuigiClient]="LuigiClient()"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
} from '@ui5/webcomponents-ngx';

@Component({
selector: 'detail-view',
selector: 'pm-detail-view',
standalone: true,
imports: [
DynamicPageComponent,
Expand Down Expand Up @@ -185,4 +185,4 @@ export class DetailViewComponent {

return resourceDefinition;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
}
</ui5-select>
} @else if (field.dynamicValuesDefinition) {
<dynamic-select
<pm-dynamic-select
[attr.test-id]="'create-field-' + fieldProperty"
[context]="context()"
[dynamicValuesDefinition]="field.dynamicValuesDefinition"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {
import { set } from 'lodash';

@Component({
selector: 'create-resource-modal',
selector: 'pm-create-resource-modal',
standalone: true,
imports: [
ReactiveFormsModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
} from '@ui5/webcomponents-ngx';

@Component({
selector: 'delete-resource-modal',
selector: 'pm-delete-resource-modal',
standalone: true,
imports: [
ReactiveFormsModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<ui5-table-header-cell test-id="generic-list-header-actions" class="actions-column">Actions</ui5-table-header-cell>
</ui5-table-header-row>

<ui5-illustrated-message test-id="generic-list-view-nodata" slot="nodata" name="NoData">
<ui5-illustrated-message test-id="generic-list-view-nodata" slot="noData" name="NoData">
<span slot="title">No Resources</span>
<span slot="subtitle">There are currently no items to show.</span>
</ui5-illustrated-message>
Expand Down Expand Up @@ -87,7 +87,7 @@
) {
<div [attr.test-id]="'generic-list-cell-' + i + '-' + column.property + '-' + field.property">
<span>{{ field.label }}: </span>
<value-cell
<pm-value-cell
[fieldDefinition]="field"
[resource]="item"
[LuigiClient]="LuigiClient()"
Expand All @@ -100,11 +100,11 @@
</ui5-table-cell>
} @else {
<ui5-table-cell [attr.test-id]="'generic-list-cell-' + i + '-' + column.property">
<value-cell
<pm-value-cell
[fieldDefinition]="column"
[resource]="item"
[LuigiClient]="LuigiClient()"
/>
/>
</ui5-table-cell>
}
}
Expand All @@ -130,7 +130,7 @@
</ui5-dynamic-page>

@if (hasUiCreateViewFields()) {
<create-resource-modal
<pm-create-resource-modal
#createModal
[fields]="resourceDefinition()?.ui?.createView?.fields ?? []"
(resource)="create($event)"
Expand All @@ -139,7 +139,7 @@
/>
}

<delete-resource-modal
<pm-delete-resource-modal
#deleteModal
(resource)="delete($event)"
[context]="context()"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import {
} from '@ui5/webcomponents-ngx';

@Component({
selector: 'list-view',
selector: 'pm-list-view',
standalone: true,
templateUrl: './list-view.component.html',
styleUrls: ['./list-view.component.scss'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type IconDesignType =
| typeof ICON_DESIGN_NEGATIVE;

@Component({
selector: 'wc-boolean-value',
selector: 'pm-boolean-value',
imports: [IconComponent],
templateUrl: './boolean-value.component.html',
styleUrl: './boolean-value.component.scss',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ChangeDetectionStrategy, Component, input } from '@angular/core';
import { LinkComponent } from '@ui5/webcomponents-ngx';

@Component({
selector: 'wc-link-value',
selector: 'pm-link-value',
imports: [LinkComponent],
templateUrl: './link-value.component.html',
styleUrl: './link-value.component.scss',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';

@Component({
selector: 'wc-secret-value',
selector: 'pm-secret-value',
imports: [],
schemas: [],
templateUrl: './secret-value.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
textTransform: labelDisplay()?.textTransform,
}">
@if (displayType === 'secret') {
<wc-secret-value
<pm-secret-value
[testId]="testId() + '-secret'"
[value]="value()"
[isVisible]="isVisible()"
></wc-secret-value>
></pm-secret-value>
} @else if (displayType === 'boolIcon' && isBoolLike()) {
<wc-boolean-value
<pm-boolean-value
[testId]="testId() + '-boolean'"
[boolValue]="boolValue()!"
></wc-boolean-value>
></pm-boolean-value>
} @else if (displayType === 'link' && isUrlValue()) {
<wc-link-value
<pm-link-value
[testId]="testId() + '-link'"
[urlValue]="stringValue()!"
></wc-link-value>
></pm-link-value>
} @else {
{{ value() }}
}
Expand Down
Loading