@ngx-smz/layout 21.0.0 → 21.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { signal, Injectable, InjectionToken, provideAppInitializer, inject, makeEnvironmentProviders, computed, effect, PLATFORM_ID, Component, EventEmitter, Output, Input, Directive, HostBinding, ViewChild } from '@angular/core';
|
|
3
|
-
import * as
|
|
3
|
+
import * as i3 from '@angular/common';
|
|
4
4
|
import { CommonModule, Location } from '@angular/common';
|
|
5
|
-
import * as i1
|
|
5
|
+
import * as i1 from '@angular/router';
|
|
6
6
|
import { Router, NavigationEnd, RouterModule } from '@angular/router';
|
|
7
7
|
import { Subject, filter as filter$1 } from 'rxjs';
|
|
8
|
-
import * as i3$
|
|
8
|
+
import * as i3$2 from 'primeng/styleclass';
|
|
9
9
|
import { StyleClassModule } from 'primeng/styleclass';
|
|
10
10
|
import * as i2 from '@angular/forms';
|
|
11
11
|
import { FormsModule } from '@angular/forms';
|
|
@@ -14,14 +14,14 @@ import Aura from '@primeuix/themes/aura';
|
|
|
14
14
|
import Lara from '@primeuix/themes/lara';
|
|
15
15
|
import Nora from '@primeuix/themes/nora';
|
|
16
16
|
import { PrimeNG } from 'primeng/config';
|
|
17
|
-
import * as i3 from 'primeng/selectbutton';
|
|
17
|
+
import * as i3$1 from 'primeng/selectbutton';
|
|
18
18
|
import { SelectButtonModule } from 'primeng/selectbutton';
|
|
19
19
|
import { takeWhile, filter } from 'rxjs/operators';
|
|
20
20
|
import * as i4 from 'primeng/tooltip';
|
|
21
21
|
import { TooltipModule } from 'primeng/tooltip';
|
|
22
22
|
import * as i5 from 'primeng/menu';
|
|
23
23
|
import { MenuModule } from 'primeng/menu';
|
|
24
|
-
import * as
|
|
24
|
+
import * as i1$1 from 'primeng/button';
|
|
25
25
|
import { ButtonModule } from 'primeng/button';
|
|
26
26
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
27
27
|
import * as i4$1 from 'primeng/ripple';
|
|
@@ -587,7 +587,7 @@ class AppConfigurator {
|
|
|
587
587
|
</div>
|
|
588
588
|
}
|
|
589
589
|
</div>
|
|
590
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type:
|
|
590
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SelectButtonModule }, { kind: "component", type: i3$1.SelectButton, selector: "p-selectButton, p-selectbutton, p-select-button", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "unselectable", "tabindex", "multiple", "allowEmpty", "styleClass", "ariaLabelledBy", "dataKey", "autofocus", "size", "fluid"], outputs: ["onOptionClick", "onChange"] }] });
|
|
591
591
|
}
|
|
592
592
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppConfigurator, decorators: [{
|
|
593
593
|
type: Component,
|
|
@@ -1102,7 +1102,7 @@ class AppTopbar {
|
|
|
1102
1102
|
</div>
|
|
1103
1103
|
</div>
|
|
1104
1104
|
</div>
|
|
1105
|
-
}`, isInline: true, dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1
|
|
1105
|
+
}`, isInline: true, dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: StyleClassModule }, { kind: "directive", type: i3$2.StyleClass, selector: "[pStyleClass]", inputs: ["pStyleClass", "enterFromClass", "enterActiveClass", "enterToClass", "leaveFromClass", "leaveActiveClass", "leaveToClass", "hideOnOutsideClick", "toggleClass", "hideOnEscape", "hideOnResize", "resizeSelector"] }, { kind: "component", type: AppConfigurator, selector: "app-configurator" }, { kind: "directive", type: ComponentInjectorDirective, selector: "ng-template[componentInjector]", inputs: ["componentInjector", "context"], outputs: ["componentCreated"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "ngmodule", type: MenuModule }, { kind: "component", type: i5.Menu, selector: "p-menu", inputs: ["model", "popup", "style", "styleClass", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex", "appendTo", "motionOptions"], outputs: ["onShow", "onHide", "onBlur", "onFocus"] }, { kind: "ngmodule", type: ButtonModule }] });
|
|
1106
1106
|
}
|
|
1107
1107
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppTopbar, decorators: [{
|
|
1108
1108
|
type: Component,
|
|
@@ -1275,7 +1275,7 @@ class AppMenuitem {
|
|
|
1275
1275
|
this.menuResetSubscription.unsubscribe();
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppMenuitem, deps: [{ token: i1
|
|
1278
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppMenuitem, deps: [{ token: i1.Router }, { token: LayoutService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1279
1279
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AppMenuitem, isStandalone: true, selector: "[app-menuitem]", inputs: { item: "item", index: "index", root: "root", parentKey: "parentKey" }, host: { properties: { "class.layout-root-menuitem": "this.root", "class.active-menuitem": "this.activeClass" } }, ngImport: i0, template: `
|
|
1280
1280
|
<ng-container>
|
|
1281
1281
|
@if (root && item.visible !== false) {
|
|
@@ -1326,7 +1326,7 @@ class AppMenuitem {
|
|
|
1326
1326
|
</ul>
|
|
1327
1327
|
}
|
|
1328
1328
|
</ng-container>
|
|
1329
|
-
`, isInline: true, dependencies: [{ kind: "component", type: AppMenuitem, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type:
|
|
1329
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AppMenuitem, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "ngmodule", type: RippleModule }, { kind: "directive", type: i4$1.Ripple, selector: "[pRipple]" }], animations: [
|
|
1330
1330
|
trigger('children', [
|
|
1331
1331
|
state('collapsed', style({
|
|
1332
1332
|
height: '0'
|
|
@@ -1408,7 +1408,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1408
1408
|
],
|
|
1409
1409
|
// providers: [LayoutService]
|
|
1410
1410
|
}]
|
|
1411
|
-
}], ctorParameters: () => [{ type: i1
|
|
1411
|
+
}], ctorParameters: () => [{ type: i1.Router }, { type: LayoutService }], propDecorators: { item: [{
|
|
1412
1412
|
type: Input
|
|
1413
1413
|
}], index: [{
|
|
1414
1414
|
type: Input
|
|
@@ -1429,15 +1429,15 @@ class AppMenu {
|
|
|
1429
1429
|
hasClaim = inject(SMZ_UI_LAYOUT_CONFIG).hasClaim;
|
|
1430
1430
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1431
1431
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AppMenu, isStandalone: true, selector: "app-menu", ngImport: i0, template: `<ul class="layout-menu">
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1432
|
+
@for (item of model(); track item; let i = $index) {
|
|
1433
|
+
@if (!item.separator && hasClaim(item['claims'])) {
|
|
1434
|
+
<li app-menuitem [item]="item" [index]="i" [root]="true"></li>
|
|
1435
|
+
}
|
|
1436
|
+
@if (item.separator) {
|
|
1437
|
+
<li class="menu-separator"></li>
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
</ul>`, isInline: true, dependencies: [{ kind: "component", type: AppMenuitem, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey"] }, { kind: "ngmodule", type: RouterModule }] });
|
|
1441
1441
|
}
|
|
1442
1442
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppMenu, decorators: [{
|
|
1443
1443
|
type: Component,
|
|
@@ -1446,15 +1446,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1446
1446
|
standalone: true,
|
|
1447
1447
|
imports: [AppMenuitem, RouterModule],
|
|
1448
1448
|
template: `<ul class="layout-menu">
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1449
|
+
@for (item of model(); track item; let i = $index) {
|
|
1450
|
+
@if (!item.separator && hasClaim(item['claims'])) {
|
|
1451
|
+
<li app-menuitem [item]="item" [index]="i" [root]="true"></li>
|
|
1452
|
+
}
|
|
1453
|
+
@if (item.separator) {
|
|
1454
|
+
<li class="menu-separator"></li>
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
</ul>`
|
|
1458
1458
|
}]
|
|
1459
1459
|
}] });
|
|
1460
1460
|
|
|
@@ -1619,7 +1619,7 @@ class AppLayout {
|
|
|
1619
1619
|
this.menuOutsideClickListener();
|
|
1620
1620
|
}
|
|
1621
1621
|
}
|
|
1622
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppLayout, deps: [{ token: LayoutService }, { token: i0.Renderer2 }, { token: i1
|
|
1622
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppLayout, deps: [{ token: LayoutService }, { token: i0.Renderer2 }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
1623
1623
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.1", type: AppLayout, isStandalone: true, selector: "app-layout", viewQueries: [{ propertyName: "appSidebar", first: true, predicate: AppSidebar, descendants: true }, { propertyName: "appTopBar", first: true, predicate: AppTopbar, descendants: true }], ngImport: i0, template: `<div class="layout-wrapper" [ngClass]="containerClass">
|
|
1624
1624
|
<app-topbar></app-topbar>
|
|
1625
1625
|
<app-sidebar></app-sidebar>
|
|
@@ -1630,7 +1630,7 @@ class AppLayout {
|
|
|
1630
1630
|
<app-footer></app-footer>
|
|
1631
1631
|
</div>
|
|
1632
1632
|
<div class="layout-mask animate-fadein"></div>
|
|
1633
|
-
</div> `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type:
|
|
1633
|
+
</div> `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: AppTopbar, selector: "app-topbar" }, { kind: "component", type: AppSidebar, selector: "app-sidebar" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: AppFooter, selector: "app-footer" }] });
|
|
1634
1634
|
}
|
|
1635
1635
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppLayout, decorators: [{
|
|
1636
1636
|
type: Component,
|
|
@@ -1650,7 +1650,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1650
1650
|
<div class="layout-mask animate-fadein"></div>
|
|
1651
1651
|
</div> `
|
|
1652
1652
|
}]
|
|
1653
|
-
}], ctorParameters: () => [{ type: LayoutService }, { type: i0.Renderer2 }, { type: i1
|
|
1653
|
+
}], ctorParameters: () => [{ type: LayoutService }, { type: i0.Renderer2 }, { type: i1.Router }], propDecorators: { appSidebar: [{
|
|
1654
1654
|
type: ViewChild,
|
|
1655
1655
|
args: [AppSidebar]
|
|
1656
1656
|
}], appTopBar: [{
|
|
@@ -1673,7 +1673,7 @@ class AppFloatingConfigurator {
|
|
|
1673
1673
|
<app-configurator />
|
|
1674
1674
|
</div>
|
|
1675
1675
|
</div>
|
|
1676
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type:
|
|
1676
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: StyleClassModule }, { kind: "directive", type: i3$2.StyleClass, selector: "[pStyleClass]", inputs: ["pStyleClass", "enterFromClass", "enterActiveClass", "enterToClass", "leaveFromClass", "leaveActiveClass", "leaveToClass", "hideOnOutsideClick", "toggleClass", "hideOnEscape", "hideOnResize", "resizeSelector"] }, { kind: "component", type: AppConfigurator, selector: "app-configurator" }] });
|
|
1677
1677
|
}
|
|
1678
1678
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AppFloatingConfigurator, decorators: [{
|
|
1679
1679
|
type: Component,
|
|
@@ -1699,6 +1699,7 @@ class ErrorPagesConfigService {
|
|
|
1699
1699
|
code: 404,
|
|
1700
1700
|
title: 'Página não encontrada',
|
|
1701
1701
|
message: 'A página que você está procurando não foi encontrada.',
|
|
1702
|
+
backgroundPath: 'assets/images/pages/bg-404.jpg',
|
|
1702
1703
|
links: [],
|
|
1703
1704
|
buttons: [
|
|
1704
1705
|
{
|
|
@@ -1713,7 +1714,8 @@ class ErrorPagesConfigService {
|
|
|
1713
1714
|
icon: 'pi pi-fw pi-lock',
|
|
1714
1715
|
title: 'Acesso restrito',
|
|
1715
1716
|
message: 'Acesso restrito',
|
|
1716
|
-
imagePath: 'asset-access.svg',
|
|
1717
|
+
imagePath: 'assets/images/asset-access.svg',
|
|
1718
|
+
backgroundPath: 'assets/images/pages/bg-access.jpg',
|
|
1717
1719
|
buttons: [
|
|
1718
1720
|
{
|
|
1719
1721
|
label: 'Voltar para a home',
|
|
@@ -1727,7 +1729,8 @@ class ErrorPagesConfigService {
|
|
|
1727
1729
|
icon: 'pi pi-fw pi-exclamation-circle',
|
|
1728
1730
|
title: 'Ocorreu um erro',
|
|
1729
1731
|
message: 'Ocorreu um erro ao carregar a página.',
|
|
1730
|
-
imagePath: 'asset-error.svg',
|
|
1732
|
+
imagePath: 'assets/images/asset-error.svg',
|
|
1733
|
+
backgroundPath: 'assets/images/pages/bg-error.jpg',
|
|
1731
1734
|
buttons: [
|
|
1732
1735
|
{
|
|
1733
1736
|
label: 'Voltar para a home',
|
|
@@ -1761,27 +1764,26 @@ class AccessPageComponent {
|
|
|
1761
1764
|
config = inject(ErrorPagesConfigService).config();
|
|
1762
1765
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AccessPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1763
1766
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: AccessPageComponent, isStandalone: true, selector: "app-access", ngImport: i0, template: `
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: RippleModule }] });
|
|
1767
|
+
<div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
|
|
1768
|
+
|
|
1769
|
+
<div class="grid justify-center items-center col-12 lg:col-6 grid-nogutter h-full bg-surface-ground">
|
|
1770
|
+
<div class="grid col-8 items-center">
|
|
1771
|
+
<div class="col-12 p-0 text-[5em] font-bold leading-tight text-text-color">{{ config.access.title }}</div>
|
|
1772
|
+
<div class="col-4 mb-[2em] w-[30%] rounded border-b-4 border-solid border-b-[#f44336] p-0"></div>
|
|
1773
|
+
<div class="col-12 mb-[2em] max-w-prose p-0 text-[1.4em] font-medium leading-relaxed text-text-color">{{ config.access.message }}</div>
|
|
1774
|
+
<div class="grid grid-nogutter items-center justify-start gap-2">
|
|
1775
|
+
@for (button of config.access.buttons; track button) {
|
|
1776
|
+
<p-button [label]="button.label" [routerLink]="button.url" (onClick)="button.command()" class="mt-8" [severity]="button.severity" />
|
|
1777
|
+
}
|
|
1778
|
+
</div>
|
|
1779
|
+
</div>
|
|
1780
|
+
</div>
|
|
1781
|
+
|
|
1782
|
+
<div class="col-12 m-0 p-0 lg:col-6">
|
|
1783
|
+
<img class="m-0 h-screen w-full object-cover p-0" [src]="config.access.backgroundPath" alt="" />
|
|
1784
|
+
</div>
|
|
1785
|
+
</div>
|
|
1786
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: RippleModule }] });
|
|
1785
1787
|
}
|
|
1786
1788
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: AccessPageComponent, decorators: [{
|
|
1787
1789
|
type: Component,
|
|
@@ -1790,27 +1792,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1790
1792
|
standalone: true,
|
|
1791
1793
|
imports: [CommonModule, ButtonModule, RouterModule, RippleModule, ButtonModule],
|
|
1792
1794
|
template: `
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
</div>`
|
|
1795
|
+
<div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
|
|
1796
|
+
|
|
1797
|
+
<div class="grid justify-center items-center col-12 lg:col-6 grid-nogutter h-full bg-surface-ground">
|
|
1798
|
+
<div class="grid col-8 items-center">
|
|
1799
|
+
<div class="col-12 p-0 text-[5em] font-bold leading-tight text-text-color">{{ config.access.title }}</div>
|
|
1800
|
+
<div class="col-4 mb-[2em] w-[30%] rounded border-b-4 border-solid border-b-[#f44336] p-0"></div>
|
|
1801
|
+
<div class="col-12 mb-[2em] max-w-prose p-0 text-[1.4em] font-medium leading-relaxed text-text-color">{{ config.access.message }}</div>
|
|
1802
|
+
<div class="grid grid-nogutter items-center justify-start gap-2">
|
|
1803
|
+
@for (button of config.access.buttons; track button) {
|
|
1804
|
+
<p-button [label]="button.label" [routerLink]="button.url" (onClick)="button.command()" class="mt-8" [severity]="button.severity" />
|
|
1805
|
+
}
|
|
1806
|
+
</div>
|
|
1807
|
+
</div>
|
|
1808
|
+
</div>
|
|
1809
|
+
|
|
1810
|
+
<div class="col-12 m-0 p-0 lg:col-6">
|
|
1811
|
+
<img class="m-0 h-screen w-full object-cover p-0" [src]="config.access.backgroundPath" alt="" />
|
|
1812
|
+
</div>
|
|
1813
|
+
</div>
|
|
1814
|
+
`
|
|
1814
1815
|
}]
|
|
1815
1816
|
}] });
|
|
1816
1817
|
|
|
@@ -1818,27 +1819,26 @@ class ErrorPageComponent {
|
|
|
1818
1819
|
config = inject(ErrorPagesConfigService).config();
|
|
1819
1820
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ErrorPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1820
1821
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: ErrorPageComponent, isStandalone: true, selector: "app-error", ngImport: i0, template: `
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i2$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: RippleModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
|
1822
|
+
<div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
|
|
1823
|
+
|
|
1824
|
+
<div class="grid justify-center items-center col-12 lg:col-6 grid-nogutter h-full bg-surface-ground">
|
|
1825
|
+
<div class="grid col-8 items-center">
|
|
1826
|
+
<div class="col-12 p-0 text-[5em] font-bold leading-tight text-text-color">{{ config.error.title }}</div>
|
|
1827
|
+
<div class="col-4 mb-[2em] w-[30%] rounded border-b-4 border-solid border-b-[#f44336] p-0"></div>
|
|
1828
|
+
<div class="col-12 mb-[2em] max-w-prose p-0 text-[1.4em] font-medium leading-relaxed text-text-color">{{ config.error.message }}</div>
|
|
1829
|
+
<div class="grid grid-nogutter items-center justify-start gap-2">
|
|
1830
|
+
@for (button of config.error.buttons; track button) {
|
|
1831
|
+
<p-button [label]="button.label" [routerLink]="button.url" (onClick)="button.command()" class="mt-8" [severity]="button.severity" />
|
|
1832
|
+
}
|
|
1833
|
+
</div>
|
|
1834
|
+
</div>
|
|
1835
|
+
</div>
|
|
1836
|
+
|
|
1837
|
+
<div class="col-12 m-0 p-0 lg:col-6">
|
|
1838
|
+
<img class="m-0 h-screen w-full object-cover p-0" [src]="config.error.backgroundPath" alt="" />
|
|
1839
|
+
</div>
|
|
1840
|
+
</div>
|
|
1841
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: RippleModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
|
1842
1842
|
}
|
|
1843
1843
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ErrorPageComponent, decorators: [{
|
|
1844
1844
|
type: Component,
|
|
@@ -1847,27 +1847,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
1847
1847
|
imports: [CommonModule, ButtonModule, RippleModule, RouterModule, ButtonModule],
|
|
1848
1848
|
standalone: true,
|
|
1849
1849
|
template: `
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
</div>`
|
|
1850
|
+
<div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
|
|
1851
|
+
|
|
1852
|
+
<div class="grid justify-center items-center col-12 lg:col-6 grid-nogutter h-full bg-surface-ground">
|
|
1853
|
+
<div class="grid col-8 items-center">
|
|
1854
|
+
<div class="col-12 p-0 text-[5em] font-bold leading-tight text-text-color">{{ config.error.title }}</div>
|
|
1855
|
+
<div class="col-4 mb-[2em] w-[30%] rounded border-b-4 border-solid border-b-[#f44336] p-0"></div>
|
|
1856
|
+
<div class="col-12 mb-[2em] max-w-prose p-0 text-[1.4em] font-medium leading-relaxed text-text-color">{{ config.error.message }}</div>
|
|
1857
|
+
<div class="grid grid-nogutter items-center justify-start gap-2">
|
|
1858
|
+
@for (button of config.error.buttons; track button) {
|
|
1859
|
+
<p-button [label]="button.label" [routerLink]="button.url" (onClick)="button.command()" class="mt-8" [severity]="button.severity" />
|
|
1860
|
+
}
|
|
1861
|
+
</div>
|
|
1862
|
+
</div>
|
|
1863
|
+
</div>
|
|
1864
|
+
|
|
1865
|
+
<div class="col-12 m-0 p-0 lg:col-6">
|
|
1866
|
+
<img class="m-0 h-screen w-full object-cover p-0" [src]="config.error.backgroundPath" alt="" />
|
|
1867
|
+
</div>
|
|
1868
|
+
</div>
|
|
1869
|
+
`
|
|
1871
1870
|
}]
|
|
1872
1871
|
}] });
|
|
1873
1872
|
|
|
@@ -1875,75 +1874,121 @@ class NotfoundPageComponent {
|
|
|
1875
1874
|
config = inject(ErrorPagesConfigService).config();
|
|
1876
1875
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: NotfoundPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1877
1876
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: NotfoundPageComponent, isStandalone: true, selector: "app-notfound", ngImport: i0, template: `
|
|
1878
|
-
|
|
1879
|
-
<div class="flex flex-col items-center justify-center">
|
|
1880
|
-
<div style="border-radius: 56px; padding: 0.3rem; background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color), transparent 60%) 10%, var(--surface-ground) 30%)">
|
|
1881
|
-
<div class="w-full bg-surface-0 dark:bg-surface-900 py-20 px-8 sm:px-20 flex flex-col items-center" style="border-radius: 53px">
|
|
1882
|
-
<span class="text-primary font-bold text-3xl">{{ config.notfound.code }}</span>
|
|
1883
|
-
<h1 class="text-surface-900 dark:text-surface-0 font-bold text-3xl lg:text-5xl mb-2">{{ config.notfound.title }}</h1>
|
|
1884
|
-
<div class="text-surface-600 dark:text-surface-200 mb-8">{{ config.notfound.message }}</div>
|
|
1877
|
+
<div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
|
|
1885
1878
|
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
<span class="text-surface-900 dark:text-surface-0 lg:text-xl font-medium mb-0 block">{{ link.title }}</span>
|
|
1893
|
-
<span class="text-surface-600 dark:text-surface-200 lg:text-xl">{{ link.description }}</span>
|
|
1894
|
-
</span>
|
|
1895
|
-
</a>
|
|
1896
|
-
}
|
|
1879
|
+
<div class="grid justify-center items-center col-12 lg:col-6 grid-nogutter h-full bg-surface-ground">
|
|
1880
|
+
<div class="grid col-8 items-center">
|
|
1881
|
+
<div class="col-12 p-0 text-[5em] font-bold leading-tight text-text-color">{{ config.notfound.code }}</div>
|
|
1882
|
+
<div class="col-4 mb-[2em] w-[30%] rounded border-b-4 border-solid border-b-[#f44336] p-0"></div>
|
|
1883
|
+
<div class="col-12 mb-2 p-0 text-[1.4em] font-medium leading-relaxed text-text-color">{{ config.notfound.title }}</div>
|
|
1884
|
+
<div class="col-12 mb-8 max-w-prose p-0 text-base font-medium leading-relaxed text-text-color">{{ config.notfound.message }}</div>
|
|
1897
1885
|
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1886
|
+
@for (link of config.notfound.links; track link.url) {
|
|
1887
|
+
<a
|
|
1888
|
+
[routerLink]="link.url"
|
|
1889
|
+
class="col-12 flex w-full items-center border-0 border-b border-solid border-surface-border py-6 last:border-b-0 no-underline"
|
|
1890
|
+
>
|
|
1891
|
+
<span
|
|
1892
|
+
class="flex h-14 w-14 shrink-0 items-center justify-center rounded-lg border-2 border-solid border-primary-color text-primary-color"
|
|
1893
|
+
>
|
|
1894
|
+
<i class="text-2xl" [class]="link.icon"></i>
|
|
1895
|
+
</span>
|
|
1896
|
+
|
|
1897
|
+
<span class="ml-6 flex min-w-0 flex-col">
|
|
1898
|
+
<span class="mb-0 block font-medium text-text-color lg:text-xl">{{ link.title }}</span>
|
|
1899
|
+
<span class="text-text-color-secondary lg:text-xl">{{ link.description }}</span>
|
|
1900
|
+
</span>
|
|
1901
|
+
</a>
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
<div class="col-12 grid grid-nogutter items-center justify-start gap-2">
|
|
1905
|
+
@for (button of config.notfound.buttons; track button.url) {
|
|
1906
|
+
<p-button
|
|
1907
|
+
[label]="button.label"
|
|
1908
|
+
[routerLink]="button.url"
|
|
1909
|
+
(onClick)="button.command()"
|
|
1910
|
+
class="mt-8"
|
|
1911
|
+
[severity]="button.severity"
|
|
1912
|
+
/>
|
|
1913
|
+
}
|
|
1914
|
+
</div>
|
|
1915
|
+
</div>
|
|
1916
|
+
</div>
|
|
1917
|
+
|
|
1918
|
+
<div class="col-12 m-0 p-0 lg:col-6">
|
|
1919
|
+
<img
|
|
1920
|
+
class="m-0 h-screen w-full object-cover p-0"
|
|
1921
|
+
[src]="config.notfound.backgroundPath"
|
|
1922
|
+
alt=""
|
|
1923
|
+
/>
|
|
1924
|
+
</div>
|
|
1925
|
+
</div>
|
|
1926
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: RippleModule }] });
|
|
1905
1927
|
}
|
|
1906
1928
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: NotfoundPageComponent, decorators: [{
|
|
1907
1929
|
type: Component,
|
|
1908
1930
|
args: [{
|
|
1909
1931
|
selector: 'app-notfound',
|
|
1910
1932
|
standalone: true,
|
|
1911
|
-
imports: [CommonModule, RouterModule, ButtonModule],
|
|
1933
|
+
imports: [CommonModule, RouterModule, ButtonModule, RippleModule],
|
|
1912
1934
|
template: `
|
|
1913
|
-
|
|
1914
|
-
<div class="flex flex-col items-center justify-center">
|
|
1915
|
-
<div style="border-radius: 56px; padding: 0.3rem; background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color), transparent 60%) 10%, var(--surface-ground) 30%)">
|
|
1916
|
-
<div class="w-full bg-surface-0 dark:bg-surface-900 py-20 px-8 sm:px-20 flex flex-col items-center" style="border-radius: 53px">
|
|
1917
|
-
<span class="text-primary font-bold text-3xl">{{ config.notfound.code }}</span>
|
|
1918
|
-
<h1 class="text-surface-900 dark:text-surface-0 font-bold text-3xl lg:text-5xl mb-2">{{ config.notfound.title }}</h1>
|
|
1919
|
-
<div class="text-surface-600 dark:text-surface-200 mb-8">{{ config.notfound.message }}</div>
|
|
1935
|
+
<div class="relative m-0 grid h-screen w-screen items-center justify-center overflow-hidden p-0">
|
|
1920
1936
|
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
<span class="text-surface-900 dark:text-surface-0 lg:text-xl font-medium mb-0 block">{{ link.title }}</span>
|
|
1928
|
-
<span class="text-surface-600 dark:text-surface-200 lg:text-xl">{{ link.description }}</span>
|
|
1929
|
-
</span>
|
|
1930
|
-
</a>
|
|
1931
|
-
}
|
|
1937
|
+
<div class="grid justify-center items-center col-12 lg:col-6 grid-nogutter h-full bg-surface-ground">
|
|
1938
|
+
<div class="grid col-8 items-center">
|
|
1939
|
+
<div class="col-12 p-0 text-[5em] font-bold leading-tight text-text-color">{{ config.notfound.code }}</div>
|
|
1940
|
+
<div class="col-4 mb-[2em] w-[30%] rounded border-b-4 border-solid border-b-[#f44336] p-0"></div>
|
|
1941
|
+
<div class="col-12 mb-2 p-0 text-[1.4em] font-medium leading-relaxed text-text-color">{{ config.notfound.title }}</div>
|
|
1942
|
+
<div class="col-12 mb-8 max-w-prose p-0 text-base font-medium leading-relaxed text-text-color">{{ config.notfound.message }}</div>
|
|
1932
1943
|
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1944
|
+
@for (link of config.notfound.links; track link.url) {
|
|
1945
|
+
<a
|
|
1946
|
+
[routerLink]="link.url"
|
|
1947
|
+
class="col-12 flex w-full items-center border-0 border-b border-solid border-surface-border py-6 last:border-b-0 no-underline"
|
|
1948
|
+
>
|
|
1949
|
+
<span
|
|
1950
|
+
class="flex h-14 w-14 shrink-0 items-center justify-center rounded-lg border-2 border-solid border-primary-color text-primary-color"
|
|
1951
|
+
>
|
|
1952
|
+
<i class="text-2xl" [class]="link.icon"></i>
|
|
1953
|
+
</span>
|
|
1954
|
+
|
|
1955
|
+
<span class="ml-6 flex min-w-0 flex-col">
|
|
1956
|
+
<span class="mb-0 block font-medium text-text-color lg:text-xl">{{ link.title }}</span>
|
|
1957
|
+
<span class="text-text-color-secondary lg:text-xl">{{ link.description }}</span>
|
|
1958
|
+
</span>
|
|
1959
|
+
</a>
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
<div class="col-12 grid grid-nogutter items-center justify-start gap-2">
|
|
1963
|
+
@for (button of config.notfound.buttons; track button.url) {
|
|
1964
|
+
<p-button
|
|
1965
|
+
[label]="button.label"
|
|
1966
|
+
[routerLink]="button.url"
|
|
1967
|
+
(onClick)="button.command()"
|
|
1968
|
+
class="mt-8"
|
|
1969
|
+
[severity]="button.severity"
|
|
1970
|
+
/>
|
|
1971
|
+
}
|
|
1972
|
+
</div>
|
|
1973
|
+
</div>
|
|
1974
|
+
</div>
|
|
1975
|
+
|
|
1976
|
+
<div class="col-12 m-0 p-0 lg:col-6">
|
|
1977
|
+
<img
|
|
1978
|
+
class="m-0 h-screen w-full object-cover p-0"
|
|
1979
|
+
[src]="config.notfound.backgroundPath"
|
|
1980
|
+
alt=""
|
|
1981
|
+
/>
|
|
1982
|
+
</div>
|
|
1983
|
+
</div>
|
|
1984
|
+
`
|
|
1940
1985
|
}]
|
|
1941
1986
|
}] });
|
|
1942
1987
|
|
|
1943
1988
|
const ErrorsRoutes = [
|
|
1944
|
-
{ path: 'access', component: AccessPageComponent },
|
|
1945
|
-
{ path: 'error', component: ErrorPageComponent },
|
|
1946
|
-
{ path: 'notfound', component: NotfoundPageComponent }
|
|
1989
|
+
{ path: 'access', data: { layout: { mode: 'none', contentPadding: '0em' } }, component: AccessPageComponent },
|
|
1990
|
+
{ path: 'error', data: { layout: { mode: 'none', contentPadding: '0em' } }, component: ErrorPageComponent },
|
|
1991
|
+
{ path: 'notfound', data: { layout: { mode: 'none', contentPadding: '0em' } }, component: NotfoundPageComponent }
|
|
1947
1992
|
];
|
|
1948
1993
|
|
|
1949
1994
|
/*
|