Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | 1x 2x 2x 2x 2x 2x | /**
* Copyright (c) Siemens 2016 - 2025
* SPDX-License-Identifier: MIT
*/
import { ChangeDetectionStrategy, Component, input } from '@angular/core';
import { SiIconComponent } from '@siemens/element-ng/icon';
import { Link, SiLinkDirective } from '@siemens/element-ng/link';
import { SiTranslatePipe, TranslatableString } from '@siemens/element-translate-ng/translate';
/**
* The component shall be use to indicate that an authenticated
* user does not have the required permissions.
*
* @deprecated This component is deprecated and will be removed in the future.
* Use the `SiInfoPageComponent` component with the `si-info-page` element instead.
* The `SiInfoPageComponent` is a superset of this component and supports the same use cases
* and more.
*/
@Component({
selector: 'si-unauthorized-page',
imports: [SiLinkDirective, SiIconComponent, SiTranslatePipe],
templateUrl: './si-unauthorized-page.component.html',
styleUrl: './si-unauthorized-page.component.scss',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class SiUnauthorizedPageComponent {
/**
* The element warning icon.
*
* @defaultValue 'element-warning-filled'
*/
readonly icon = input('element-warning-filled');
/** The main heading indicating the problem. */
readonly heading = input<TranslatableString>();
/** A sub heading is a sentence summarizing the problem. */
readonly subHeading = input<TranslatableString>();
/** May be a longer description explaining the problem. */
readonly description = input<TranslatableString>();
/**
* Use the link object if you have one option to follow. A link object
* has a title to be displayed and can be configured with an external link,
* a router link, or a custom action. If you want to provide multiple options,
* add your own content into the component.
*/
readonly link = input<Link>();
}
|