oip-common 0.0.15 → 0.0.16
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.
- package/assets/i18n/db-migration.en.json +19 -0
- package/assets/i18n/db-migration.ru.json +19 -0
- package/assets/i18n/en.json +10 -0
- package/assets/i18n/ru.json +155 -22
- package/fesm2022/oip-common.mjs +87 -75
- package/fesm2022/oip-common.mjs.map +1 -1
- package/index.d.ts +5 -4
- package/package.json +1 -1
package/fesm2022/oip-common.mjs
CHANGED
|
@@ -19,7 +19,7 @@ import * as i5 from '@angular/forms';
|
|
|
19
19
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
20
20
|
import * as i1$2 from '@angular/common';
|
|
21
21
|
import { isPlatformBrowser, CommonModule, NgIf, NgClass, NgFor } from '@angular/common';
|
|
22
|
-
import * as
|
|
22
|
+
import * as i3$1 from 'primeng/styleclass';
|
|
23
23
|
import { StyleClassModule } from 'primeng/styleclass';
|
|
24
24
|
import { updatePreset, updateSurfacePalette, $t } from '@primeng/themes';
|
|
25
25
|
import Aura from '@primeng/themes/aura';
|
|
@@ -31,16 +31,16 @@ import { SelectButtonModule } from 'primeng/selectbutton';
|
|
|
31
31
|
import { OidcSecurityService, PublicEventsService, EventTypes, StsConfigHttpLoader } from 'angular-auth-oidc-client';
|
|
32
32
|
import { filter, map, switchMap, catchError } from 'rxjs/operators';
|
|
33
33
|
import { Tabs, TabList, Tab } from 'primeng/tabs';
|
|
34
|
-
import * as
|
|
34
|
+
import * as i4 from 'primeng/avatar';
|
|
35
35
|
import { AvatarModule } from 'primeng/avatar';
|
|
36
36
|
import * as i1$4 from 'primeng/contextmenu';
|
|
37
37
|
import { ContextMenuModule, ContextMenu } from 'primeng/contextmenu';
|
|
38
38
|
import * as i2$1 from 'primeng/dialog';
|
|
39
39
|
import { DialogModule } from 'primeng/dialog';
|
|
40
|
-
import * as i3$
|
|
40
|
+
import * as i3$3 from 'primeng/inputtext';
|
|
41
41
|
import { InputTextModule } from 'primeng/inputtext';
|
|
42
42
|
import { trigger, state, transition, style, animate } from '@angular/animations';
|
|
43
|
-
import * as i3$
|
|
43
|
+
import * as i3$2 from 'primeng/ripple';
|
|
44
44
|
import { RippleModule } from 'primeng/ripple';
|
|
45
45
|
import { ConfirmDialog } from 'primeng/confirmdialog';
|
|
46
46
|
import * as i4$1 from 'primeng/select';
|
|
@@ -1227,7 +1227,7 @@ class AppConfiguratorComponent {
|
|
|
1227
1227
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.2", type: AppConfiguratorComponent, isStandalone: true, selector: "app-configurator", host: { classAttribute: "hidden absolute top-[3.25rem] right-0 w-72 p-4 bg-surface-0 dark:bg-surface-900 border border-surface rounded-border origin-top shadow-[0px_3px_5px_rgba(0,0,0,0.02),0px_0px_2px_rgba(0,0,0,0.05),0px_1px_4px_rgba(0,0,0,0.08)]" }, ngImport: i0, template: `
|
|
1228
1228
|
<div class="flex flex-col gap-4">
|
|
1229
1229
|
<div>
|
|
1230
|
-
<span class="text-sm text-muted-color font-semibold">
|
|
1230
|
+
<span class="text-sm text-muted-color font-semibold">{{ 'app-configurator.primary' | translate }}</span>
|
|
1231
1231
|
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
1232
1232
|
@for (primaryColor of primaryColors(); track primaryColor.name) {
|
|
1233
1233
|
<button
|
|
@@ -1246,7 +1246,7 @@ class AppConfiguratorComponent {
|
|
|
1246
1246
|
</div>
|
|
1247
1247
|
</div>
|
|
1248
1248
|
<div>
|
|
1249
|
-
<span class="text-sm text-muted-color font-semibold">
|
|
1249
|
+
<span class="text-sm text-muted-color font-semibold">{{ 'app-configurator.surface' | translate }}</span>
|
|
1250
1250
|
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
1251
1251
|
@for (surface of surfaces; track surface.name) {
|
|
1252
1252
|
<button
|
|
@@ -1269,7 +1269,7 @@ class AppConfiguratorComponent {
|
|
|
1269
1269
|
</div>
|
|
1270
1270
|
</div>
|
|
1271
1271
|
<div class="flex flex-col gap-2">
|
|
1272
|
-
<span class="text-sm text-muted-color font-semibold">
|
|
1272
|
+
<span class="text-sm text-muted-color font-semibold">{{ 'app-configurator.presets' | translate }}</span>
|
|
1273
1273
|
<p-selectButton
|
|
1274
1274
|
id="oip-app-configurator-preset-select-button"
|
|
1275
1275
|
size="small"
|
|
@@ -1280,7 +1280,7 @@ class AppConfiguratorComponent {
|
|
|
1280
1280
|
</div>
|
|
1281
1281
|
@if (showMenuModeButton()) {
|
|
1282
1282
|
<div class="flex flex-col gap-2">
|
|
1283
|
-
<span class="text-sm text-muted-color font-semibold">
|
|
1283
|
+
<span class="text-sm text-muted-color font-semibold">{{ 'app-configurator.menuMode' | translate }}</span>
|
|
1284
1284
|
<p-selectButton
|
|
1285
1285
|
id="oip-app-configurator-menu-mode-select-button"
|
|
1286
1286
|
size="small"
|
|
@@ -1291,18 +1291,18 @@ class AppConfiguratorComponent {
|
|
|
1291
1291
|
</div>
|
|
1292
1292
|
}
|
|
1293
1293
|
</div>
|
|
1294
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SelectButtonModule }, { kind: "component", type: i3.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"] }] }); }
|
|
1294
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SelectButtonModule }, { kind: "component", type: i3.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"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
|
|
1295
1295
|
}
|
|
1296
1296
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AppConfiguratorComponent, decorators: [{
|
|
1297
1297
|
type: Component,
|
|
1298
1298
|
args: [{
|
|
1299
1299
|
selector: 'app-configurator',
|
|
1300
1300
|
standalone: true,
|
|
1301
|
-
imports: [CommonModule, FormsModule, SelectButtonModule],
|
|
1301
|
+
imports: [CommonModule, FormsModule, SelectButtonModule, TranslatePipe],
|
|
1302
1302
|
template: `
|
|
1303
1303
|
<div class="flex flex-col gap-4">
|
|
1304
1304
|
<div>
|
|
1305
|
-
<span class="text-sm text-muted-color font-semibold">
|
|
1305
|
+
<span class="text-sm text-muted-color font-semibold">{{ 'app-configurator.primary' | translate }}</span>
|
|
1306
1306
|
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
1307
1307
|
@for (primaryColor of primaryColors(); track primaryColor.name) {
|
|
1308
1308
|
<button
|
|
@@ -1321,7 +1321,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
1321
1321
|
</div>
|
|
1322
1322
|
</div>
|
|
1323
1323
|
<div>
|
|
1324
|
-
<span class="text-sm text-muted-color font-semibold">
|
|
1324
|
+
<span class="text-sm text-muted-color font-semibold">{{ 'app-configurator.surface' | translate }}</span>
|
|
1325
1325
|
<div class="pt-2 flex gap-2 flex-wrap justify-start">
|
|
1326
1326
|
@for (surface of surfaces; track surface.name) {
|
|
1327
1327
|
<button
|
|
@@ -1344,7 +1344,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
1344
1344
|
</div>
|
|
1345
1345
|
</div>
|
|
1346
1346
|
<div class="flex flex-col gap-2">
|
|
1347
|
-
<span class="text-sm text-muted-color font-semibold">
|
|
1347
|
+
<span class="text-sm text-muted-color font-semibold">{{ 'app-configurator.presets' | translate }}</span>
|
|
1348
1348
|
<p-selectButton
|
|
1349
1349
|
id="oip-app-configurator-preset-select-button"
|
|
1350
1350
|
size="small"
|
|
@@ -1355,7 +1355,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
1355
1355
|
</div>
|
|
1356
1356
|
@if (showMenuModeButton()) {
|
|
1357
1357
|
<div class="flex flex-col gap-2">
|
|
1358
|
-
<span class="text-sm text-muted-color font-semibold">
|
|
1358
|
+
<span class="text-sm text-muted-color font-semibold">{{ 'app-configurator.menuMode' | translate }}</span>
|
|
1359
1359
|
<p-selectButton
|
|
1360
1360
|
id="oip-app-configurator-menu-mode-select-button"
|
|
1361
1361
|
size="small"
|
|
@@ -1596,11 +1596,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
1596
1596
|
}], ctorParameters: () => [] });
|
|
1597
1597
|
|
|
1598
1598
|
class AppTopbar {
|
|
1599
|
-
constructor(
|
|
1600
|
-
this.layoutService = layoutService;
|
|
1599
|
+
constructor() {
|
|
1601
1600
|
this.securityService = inject(SecurityService);
|
|
1602
1601
|
this.topBarService = inject(TopBarService);
|
|
1603
1602
|
this.userService = inject(UserService);
|
|
1603
|
+
this.layoutService = inject(LayoutService);
|
|
1604
1604
|
}
|
|
1605
1605
|
toggleDarkMode() {
|
|
1606
1606
|
this.layoutService.layoutConfig.update((state) => ({
|
|
@@ -1613,7 +1613,7 @@ class AppTopbar {
|
|
|
1613
1613
|
this.securityService.logout();
|
|
1614
1614
|
}
|
|
1615
1615
|
}
|
|
1616
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AppTopbar, deps: [
|
|
1616
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AppTopbar, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1617
1617
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.2", type: AppTopbar, isStandalone: true, selector: "app-topbar", ngImport: i0, template: `
|
|
1618
1618
|
<div class="layout-topbar">
|
|
1619
1619
|
<div class="layout-topbar-logo-container">
|
|
@@ -1693,7 +1693,7 @@ class AppTopbar {
|
|
|
1693
1693
|
(click)="securityService.logout()"
|
|
1694
1694
|
(keydown)="logoutKeyDown($event)">
|
|
1695
1695
|
<i class="pi pi-sign-out"></i>
|
|
1696
|
-
<span>
|
|
1696
|
+
<span>{{ 'topbar.logout' | translate }}</span>
|
|
1697
1697
|
</button>
|
|
1698
1698
|
<button class="layout-topbar-action" routerLink="config">
|
|
1699
1699
|
<p-avatar
|
|
@@ -1704,16 +1704,19 @@ class AppTopbar {
|
|
|
1704
1704
|
[image]="userService.photoLoaded ? userService.photo : null"
|
|
1705
1705
|
>{{ !userService.photoLoaded ? userService.shortLabel : null }}
|
|
1706
1706
|
</p-avatar>
|
|
1707
|
-
<span class="ml-2">
|
|
1707
|
+
<span class="ml-2">{{ 'topbar.profile' | translate }}</span>
|
|
1708
1708
|
</button>
|
|
1709
1709
|
</div>
|
|
1710
1710
|
</div>
|
|
1711
1711
|
</div>
|
|
1712
|
-
</div>`, isInline: true,
|
|
1712
|
+
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: StyleClassModule }, { kind: "directive", type: i3$1.StyleClass, selector: "[pStyleClass]", inputs: ["pStyleClass", "enterFromClass", "enterActiveClass", "enterToClass", "leaveFromClass", "leaveActiveClass", "leaveToClass", "hideOnOutsideClick", "toggleClass", "hideOnEscape", "hideOnResize", "resizeSelector"] }, { kind: "component", type: AppConfiguratorComponent, selector: "app-configurator" }, { kind: "component", type: LogoComponent, selector: "logo", inputs: ["width", "height"] }, { kind: "component", type: Tabs, selector: "p-tabs", inputs: ["value", "scrollable", "lazy", "selectOnFocus", "showNavigators", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: TabList, selector: "p-tablist" }, { kind: "component", type: Tab, selector: "p-tab", inputs: ["value", "disabled"], outputs: ["valueChange"] }, { kind: "ngmodule", type: AvatarModule }, { kind: "component", type: i4.Avatar, selector: "p-avatar", inputs: ["label", "icon", "image", "size", "shape", "styleClass", "ariaLabel", "ariaLabelledBy"], outputs: ["onImageError"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
|
|
1713
1713
|
}
|
|
1714
1714
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AppTopbar, decorators: [{
|
|
1715
1715
|
type: Component,
|
|
1716
|
-
args: [{
|
|
1716
|
+
args: [{
|
|
1717
|
+
selector: 'app-topbar',
|
|
1718
|
+
standalone: true,
|
|
1719
|
+
imports: [
|
|
1717
1720
|
RouterModule,
|
|
1718
1721
|
CommonModule,
|
|
1719
1722
|
StyleClassModule,
|
|
@@ -1725,7 +1728,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
1725
1728
|
AvatarModule,
|
|
1726
1729
|
ButtonModule,
|
|
1727
1730
|
TranslatePipe
|
|
1728
|
-
],
|
|
1731
|
+
],
|
|
1732
|
+
template: `
|
|
1729
1733
|
<div class="layout-topbar">
|
|
1730
1734
|
<div class="layout-topbar-logo-container">
|
|
1731
1735
|
<button class="layout-menu-button layout-topbar-action" (click)="layoutService.onMenuToggle()">
|
|
@@ -1804,7 +1808,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
1804
1808
|
(click)="securityService.logout()"
|
|
1805
1809
|
(keydown)="logoutKeyDown($event)">
|
|
1806
1810
|
<i class="pi pi-sign-out"></i>
|
|
1807
|
-
<span>
|
|
1811
|
+
<span>{{ 'topbar.logout' | translate }}</span>
|
|
1808
1812
|
</button>
|
|
1809
1813
|
<button class="layout-topbar-action" routerLink="config">
|
|
1810
1814
|
<p-avatar
|
|
@@ -1815,17 +1819,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
1815
1819
|
[image]="userService.photoLoaded ? userService.photo : null"
|
|
1816
1820
|
>{{ !userService.photoLoaded ? userService.shortLabel : null }}
|
|
1817
1821
|
</p-avatar>
|
|
1818
|
-
<span class="ml-2">
|
|
1822
|
+
<span class="ml-2">{{ 'topbar.profile' | translate }}</span>
|
|
1819
1823
|
</button>
|
|
1820
1824
|
</div>
|
|
1821
1825
|
</div>
|
|
1822
1826
|
</div>
|
|
1823
|
-
</div>`
|
|
1824
|
-
|
|
1827
|
+
</div>`
|
|
1828
|
+
}]
|
|
1829
|
+
}] });
|
|
1825
1830
|
|
|
1826
1831
|
class FooterComponent {
|
|
1827
|
-
constructor() {
|
|
1828
|
-
}
|
|
1829
1832
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1830
1833
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.2", type: FooterComponent, isStandalone: true, selector: "app-footer", ngImport: i0, template: `
|
|
1831
1834
|
<div class="layout-footer">
|
|
@@ -1853,7 +1856,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
1853
1856
|
standalone: true,
|
|
1854
1857
|
imports: [LogoComponent, TranslatePipe]
|
|
1855
1858
|
}]
|
|
1856
|
-
}]
|
|
1859
|
+
}] });
|
|
1857
1860
|
|
|
1858
1861
|
/* eslint-disable */
|
|
1859
1862
|
/* tslint:disable */
|
|
@@ -2405,7 +2408,7 @@ class MenuItemComponent {
|
|
|
2405
2408
|
</ng-template>
|
|
2406
2409
|
</ul>
|
|
2407
2410
|
</ng-container>
|
|
2408
|
-
`, isInline: true, dependencies: [{ kind: "component", type: MenuItemComponent, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey", "menuItemCreateDialogComponent", "menuItemEditDialogComponent", "contextMenu"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: RippleModule }, { kind: "directive", type: i3$
|
|
2411
|
+
`, isInline: true, dependencies: [{ kind: "component", type: MenuItemComponent, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey", "menuItemCreateDialogComponent", "menuItemEditDialogComponent", "contextMenu"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: RippleModule }, { kind: "directive", type: i3$2.Ripple, selector: "[pRipple]" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: ContextMenuModule }, { kind: "component", type: ConfirmDialog, selector: "p-confirmDialog, p-confirmdialog, p-confirm-dialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "closeAriaLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position", "draggable"], outputs: ["onHide"] }], animations: [
|
|
2409
2412
|
trigger('children', [
|
|
2410
2413
|
state('collapsed', style({
|
|
2411
2414
|
height: '0'
|
|
@@ -2623,7 +2626,7 @@ class MenuItemCreateDialogComponent {
|
|
|
2623
2626
|
(keydown)="save()" />
|
|
2624
2627
|
</div>
|
|
2625
2628
|
</p-dialog>
|
|
2626
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: i2$1.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3$
|
|
2629
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: i2$1.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3$3.InputText, selector: "[pInputText]", inputs: ["pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i4$1.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
|
|
2627
2630
|
}
|
|
2628
2631
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: MenuItemCreateDialogComponent, decorators: [{
|
|
2629
2632
|
type: Component,
|
|
@@ -2800,7 +2803,7 @@ class MenuItemEditDialogComponent {
|
|
|
2800
2803
|
(keydown)="save()" />
|
|
2801
2804
|
</div>
|
|
2802
2805
|
</p-dialog>
|
|
2803
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: i2$1.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3$
|
|
2806
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: i2$1.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3$3.InputText, selector: "[pInputText]", inputs: ["pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MultiSelectModule }, { kind: "component", type: i1.MultiSelect, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: ["id", "ariaLabel", "styleClass", "panelStyle", "panelStyleClass", "inputId", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "dataKey", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "chipIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "filterBy", "scrollHeight", "lazy", "virtualScroll", "loading", "virtualScrollItemSize", "loadingIcon", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "autofocus", "placeholder", "options", "filterValue", "selectAll", "focusOnHover", "filterFields", "selectOnFocus", "autoOptionFocus", "highlightOnSelect", "size", "variant", "fluid", "appendTo"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad", "onRemove", "onSelectAllChange"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
|
|
2804
2807
|
}
|
|
2805
2808
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: MenuItemEditDialogComponent, decorators: [{
|
|
2806
2809
|
type: Component,
|
|
@@ -3146,7 +3149,7 @@ class AppFloatingConfiguratorComponent {
|
|
|
3146
3149
|
<app-configurator />
|
|
3147
3150
|
</div>
|
|
3148
3151
|
</div>
|
|
3149
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: StyleClassModule }, { kind: "directive", type:
|
|
3152
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: StyleClassModule }, { kind: "directive", type: i3$1.StyleClass, selector: "[pStyleClass]", inputs: ["pStyleClass", "enterFromClass", "enterActiveClass", "enterToClass", "leaveFromClass", "leaveActiveClass", "leaveToClass", "hideOnOutsideClick", "toggleClass", "hideOnEscape", "hideOnResize", "resizeSelector"] }, { kind: "component", type: AppConfiguratorComponent, selector: "app-configurator" }] }); }
|
|
3150
3153
|
}
|
|
3151
3154
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AppFloatingConfiguratorComponent, decorators: [{
|
|
3152
3155
|
type: Component,
|
|
@@ -3205,7 +3208,7 @@ class L10nService {
|
|
|
3205
3208
|
* @returns the translated key, or an object of translated keys
|
|
3206
3209
|
*/
|
|
3207
3210
|
get(key) {
|
|
3208
|
-
this.loadComponentTranslations(key);
|
|
3211
|
+
this.loadComponentTranslations(key.split('.')[0]);
|
|
3209
3212
|
return this.translateService.get(key);
|
|
3210
3213
|
}
|
|
3211
3214
|
/**
|
|
@@ -3253,6 +3256,9 @@ class L10nService {
|
|
|
3253
3256
|
this.loadComponentTranslations('app-info');
|
|
3254
3257
|
this.translateService.get('primeng').subscribe((res) => this.primeNg.setTranslation(res));
|
|
3255
3258
|
}
|
|
3259
|
+
instant(key, interpolateParams) {
|
|
3260
|
+
return this.translateService.instant(key, interpolateParams);
|
|
3261
|
+
}
|
|
3256
3262
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: L10nService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3257
3263
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: L10nService, providedIn: 'root' }); }
|
|
3258
3264
|
}
|
|
@@ -3426,7 +3432,7 @@ class ErrorComponent {
|
|
|
3426
3432
|
</div>
|
|
3427
3433
|
</div>
|
|
3428
3434
|
</div>
|
|
3429
|
-
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain", "fluid", "label", "icon", "buttonProps"] }, { kind: "ngmodule", type: RippleModule }, { kind: "directive", type: i3$
|
|
3435
|
+
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain", "fluid", "label", "icon", "buttonProps"] }, { kind: "ngmodule", type: RippleModule }, { kind: "directive", type: i3$2.Ripple, selector: "[pRipple]" }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
|
|
3430
3436
|
}
|
|
3431
3437
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ErrorComponent, decorators: [{
|
|
3432
3438
|
type: Component,
|
|
@@ -3499,7 +3505,7 @@ class ProfileComponent {
|
|
|
3499
3505
|
[auto]="true"
|
|
3500
3506
|
(onUpload)="onBasicUploadAuto($event)" />
|
|
3501
3507
|
</div>
|
|
3502
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FileUploadModule }, { kind: "component", type: i1$5.FileUpload, selector: "p-fileupload, p-fileUpload", inputs: ["name", "url", "method", "multiple", "accept", "disabled", "auto", "withCredentials", "maxFileSize", "invalidFileSizeMessageSummary", "invalidFileSizeMessageDetail", "invalidFileTypeMessageSummary", "invalidFileTypeMessageDetail", "invalidFileLimitMessageDetail", "invalidFileLimitMessageSummary", "style", "styleClass", "previewWidth", "chooseLabel", "uploadLabel", "cancelLabel", "chooseIcon", "uploadIcon", "cancelIcon", "showUploadButton", "showCancelButton", "mode", "headers", "customUpload", "fileLimit", "uploadStyleClass", "cancelStyleClass", "removeStyleClass", "chooseStyleClass", "chooseButtonProps", "uploadButtonProps", "cancelButtonProps", "files"], outputs: ["onBeforeUpload", "onSend", "onUpload", "onError", "onClear", "onRemove", "onSelect", "onProgress", "uploadHandler", "onImageError", "onRemoveUploadedFile"] }, { kind: "ngmodule", type: ImageModule }, { kind: "ngmodule", type: AvatarModule }, { kind: "component", type:
|
|
3508
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FileUploadModule }, { kind: "component", type: i1$5.FileUpload, selector: "p-fileupload, p-fileUpload", inputs: ["name", "url", "method", "multiple", "accept", "disabled", "auto", "withCredentials", "maxFileSize", "invalidFileSizeMessageSummary", "invalidFileSizeMessageDetail", "invalidFileTypeMessageSummary", "invalidFileTypeMessageDetail", "invalidFileLimitMessageDetail", "invalidFileLimitMessageSummary", "style", "styleClass", "previewWidth", "chooseLabel", "uploadLabel", "cancelLabel", "chooseIcon", "uploadIcon", "cancelIcon", "showUploadButton", "showCancelButton", "mode", "headers", "customUpload", "fileLimit", "uploadStyleClass", "cancelStyleClass", "removeStyleClass", "chooseStyleClass", "chooseButtonProps", "uploadButtonProps", "cancelButtonProps", "files"], outputs: ["onBeforeUpload", "onSend", "onUpload", "onError", "onClear", "onRemove", "onSelect", "onProgress", "uploadHandler", "onImageError", "onRemoveUploadedFile"] }, { kind: "ngmodule", type: ImageModule }, { kind: "ngmodule", type: AvatarModule }, { kind: "component", type: i4.Avatar, selector: "p-avatar", inputs: ["label", "icon", "image", "size", "shape", "styleClass", "ariaLabel", "ariaLabelledBy"], outputs: ["onImageError"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
|
|
3503
3509
|
}
|
|
3504
3510
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: ProfileComponent, decorators: [{
|
|
3505
3511
|
type: Component,
|
|
@@ -3690,6 +3696,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3690
3696
|
}], ctorParameters: () => [] });
|
|
3691
3697
|
|
|
3692
3698
|
class DbMigrationComponent extends BaseModuleComponent {
|
|
3699
|
+
constructor() {
|
|
3700
|
+
super();
|
|
3701
|
+
this.l10nService = inject(L10nService);
|
|
3702
|
+
this.l10nService.loadComponentTranslations('db-migration');
|
|
3703
|
+
}
|
|
3693
3704
|
async ngOnInit() {
|
|
3694
3705
|
await super.ngOnInit();
|
|
3695
3706
|
await this.refreshAction();
|
|
@@ -3701,7 +3712,7 @@ class DbMigrationComponent extends BaseModuleComponent {
|
|
|
3701
3712
|
})
|
|
3702
3713
|
.catch((error) => {
|
|
3703
3714
|
console.log(error);
|
|
3704
|
-
this.msgService.error('
|
|
3715
|
+
this.msgService.error(this.l10nService.instant('db-migration.messages.errorRefreshing'));
|
|
3705
3716
|
});
|
|
3706
3717
|
}
|
|
3707
3718
|
async getData() {
|
|
@@ -3711,25 +3722,24 @@ class DbMigrationComponent extends BaseModuleComponent {
|
|
|
3711
3722
|
const request = { name: rowData.name };
|
|
3712
3723
|
return this.baseDataService.sendRequest(`api/${this.controller}/apply-migration`, 'POST', request);
|
|
3713
3724
|
}
|
|
3714
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: DbMigrationComponent, deps:
|
|
3725
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: DbMigrationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3715
3726
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.2", type: DbMigrationComponent, isStandalone: true, selector: "db-migration", providers: [ConfirmationService], usesInheritance: true, ngImport: i0, template: `
|
|
3716
3727
|
@if (isContent) {
|
|
3717
|
-
|
|
3718
3728
|
<div class="card" style="height: 100%">
|
|
3719
3729
|
<p-confirmDialog/>
|
|
3720
3730
|
<div>
|
|
3721
|
-
<h5>
|
|
3731
|
+
<h5>{{ 'db-migration.migrationManager' | translate }}</h5>
|
|
3722
3732
|
<div class="flex flex-row gap-2">
|
|
3723
3733
|
<p-button
|
|
3724
3734
|
icon="pi pi-refresh"
|
|
3725
|
-
pTooltip="
|
|
3735
|
+
[pTooltip]="'db-migration.actions.refresh' | translate"
|
|
3726
3736
|
severity="secondary"
|
|
3727
3737
|
tooltipPosition="bottom"
|
|
3728
3738
|
[outlined]="true"
|
|
3729
3739
|
(click)="refreshAction()"/>
|
|
3730
3740
|
<p-button
|
|
3731
3741
|
icon="pi pi-filter-slash"
|
|
3732
|
-
pTooltip="
|
|
3742
|
+
[pTooltip]="'db-migration.actions.cleanFilter' | translate"
|
|
3733
3743
|
severity="secondary"
|
|
3734
3744
|
tooltipPosition="bottom"
|
|
3735
3745
|
[outlined]="true"
|
|
@@ -3740,12 +3750,12 @@ class DbMigrationComponent extends BaseModuleComponent {
|
|
|
3740
3750
|
<ng-template let-columns pTemplate="header">
|
|
3741
3751
|
<tr>
|
|
3742
3752
|
<th pSortableColumn="name" scope="col">
|
|
3743
|
-
|
|
3753
|
+
{{ 'db-migration.columns.name' | translate }}
|
|
3744
3754
|
<p-columnFilter display="menu" field="name" type="text"/>
|
|
3745
3755
|
</th>
|
|
3746
|
-
<th scope="col">
|
|
3747
|
-
<th scope="col">
|
|
3748
|
-
<th>
|
|
3756
|
+
<th scope="col">{{ 'db-migration.columns.applied' | translate }}</th>
|
|
3757
|
+
<th scope="col">{{ 'db-migration.columns.exist' | translate }}</th>
|
|
3758
|
+
<th scope="col">{{ 'db-migration.columns.pending' | translate }}</th>
|
|
3749
3759
|
<th scope="col"></th>
|
|
3750
3760
|
</tr>
|
|
3751
3761
|
</ng-template>
|
|
@@ -3756,13 +3766,14 @@ class DbMigrationComponent extends BaseModuleComponent {
|
|
|
3756
3766
|
{{ rowData.name }}
|
|
3757
3767
|
</td>
|
|
3758
3768
|
<td>
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3769
|
+
@if (rowData.applied) {
|
|
3770
|
+
<p-button
|
|
3771
|
+
icon="pi pi-check"
|
|
3772
|
+
severity="success"
|
|
3773
|
+
[rounded]="true"
|
|
3774
|
+
[text]="true">
|
|
3775
|
+
</p-button>
|
|
3776
|
+
}
|
|
3766
3777
|
</td>
|
|
3767
3778
|
<td>
|
|
3768
3779
|
@if (rowData.exist) {
|
|
@@ -3778,7 +3789,7 @@ class DbMigrationComponent extends BaseModuleComponent {
|
|
|
3778
3789
|
<p-button
|
|
3779
3790
|
icon="pi pi-bolt"
|
|
3780
3791
|
pCancelEditableRow
|
|
3781
|
-
pTooltip="
|
|
3792
|
+
pTooltip="{{'db-migration.actions.applyMigration' | translate}}"
|
|
3782
3793
|
severity="secondary"
|
|
3783
3794
|
tooltipPosition="left"
|
|
3784
3795
|
[rounded]="true"
|
|
@@ -3795,7 +3806,7 @@ class DbMigrationComponent extends BaseModuleComponent {
|
|
|
3795
3806
|
} @else if (isSecurity) {
|
|
3796
3807
|
<security [controller]="controller" [id]="id"/>
|
|
3797
3808
|
}
|
|
3798
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: TableModule }, { kind: "component", type: i1$6.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i2$4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i1$6.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "directive", type: i1$6.EditableRow, selector: "[pEditableRow]", inputs: ["pEditableRow", "pEditableRowDisabled"] }, { kind: "directive", type: i1$6.CancelEditableRow, selector: "[pCancelEditableRow]" }, { kind: "component", type: i1$6.ColumnFilter, selector: "p-columnFilter, p-column-filter, p-columnfilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "filterOn", "useGrouping", "showButtons", "ariaLabel", "filterButtonProps"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: TagModule }, { kind: "ngmodule", type: InputTextModule }, { kind: "ngmodule", type: TextareaModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: ConfirmDialog, selector: "p-confirmDialog, p-confirmdialog, p-confirm-dialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "closeAriaLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position", "draggable"], outputs: ["onHide"] }, { kind: "component", type: SecurityComponent, selector: "security", inputs: ["id", "controller"] }, { kind: "directive", type: Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo"] }] }); }
|
|
3809
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: TableModule }, { kind: "component", type: i1$6.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i2$4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i1$6.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "directive", type: i1$6.EditableRow, selector: "[pEditableRow]", inputs: ["pEditableRow", "pEditableRowDisabled"] }, { kind: "directive", type: i1$6.CancelEditableRow, selector: "[pCancelEditableRow]" }, { kind: "component", type: i1$6.ColumnFilter, selector: "p-columnFilter, p-column-filter, p-columnfilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "filterOn", "useGrouping", "showButtons", "ariaLabel", "filterButtonProps"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: TagModule }, { kind: "ngmodule", type: InputTextModule }, { kind: "ngmodule", type: TextareaModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: ConfirmDialog, selector: "p-confirmDialog, p-confirmdialog, p-confirm-dialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "closeAriaLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position", "draggable"], outputs: ["onHide"] }, { kind: "component", type: SecurityComponent, selector: "security", inputs: ["id", "controller"] }, { kind: "directive", type: Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
|
|
3799
3810
|
}
|
|
3800
3811
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: DbMigrationComponent, decorators: [{
|
|
3801
3812
|
type: Component,
|
|
@@ -3810,27 +3821,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3810
3821
|
FormsModule,
|
|
3811
3822
|
ConfirmDialog,
|
|
3812
3823
|
SecurityComponent,
|
|
3813
|
-
Tooltip
|
|
3824
|
+
Tooltip,
|
|
3825
|
+
TranslatePipe
|
|
3814
3826
|
],
|
|
3815
3827
|
selector: 'db-migration',
|
|
3816
3828
|
template: `
|
|
3817
3829
|
@if (isContent) {
|
|
3818
|
-
|
|
3819
3830
|
<div class="card" style="height: 100%">
|
|
3820
3831
|
<p-confirmDialog/>
|
|
3821
3832
|
<div>
|
|
3822
|
-
<h5>
|
|
3833
|
+
<h5>{{ 'db-migration.migrationManager' | translate }}</h5>
|
|
3823
3834
|
<div class="flex flex-row gap-2">
|
|
3824
3835
|
<p-button
|
|
3825
3836
|
icon="pi pi-refresh"
|
|
3826
|
-
pTooltip="
|
|
3837
|
+
[pTooltip]="'db-migration.actions.refresh' | translate"
|
|
3827
3838
|
severity="secondary"
|
|
3828
3839
|
tooltipPosition="bottom"
|
|
3829
3840
|
[outlined]="true"
|
|
3830
3841
|
(click)="refreshAction()"/>
|
|
3831
3842
|
<p-button
|
|
3832
3843
|
icon="pi pi-filter-slash"
|
|
3833
|
-
pTooltip="
|
|
3844
|
+
[pTooltip]="'db-migration.actions.cleanFilter' | translate"
|
|
3834
3845
|
severity="secondary"
|
|
3835
3846
|
tooltipPosition="bottom"
|
|
3836
3847
|
[outlined]="true"
|
|
@@ -3841,12 +3852,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3841
3852
|
<ng-template let-columns pTemplate="header">
|
|
3842
3853
|
<tr>
|
|
3843
3854
|
<th pSortableColumn="name" scope="col">
|
|
3844
|
-
|
|
3855
|
+
{{ 'db-migration.columns.name' | translate }}
|
|
3845
3856
|
<p-columnFilter display="menu" field="name" type="text"/>
|
|
3846
3857
|
</th>
|
|
3847
|
-
<th scope="col">
|
|
3848
|
-
<th scope="col">
|
|
3849
|
-
<th>
|
|
3858
|
+
<th scope="col">{{ 'db-migration.columns.applied' | translate }}</th>
|
|
3859
|
+
<th scope="col">{{ 'db-migration.columns.exist' | translate }}</th>
|
|
3860
|
+
<th scope="col">{{ 'db-migration.columns.pending' | translate }}</th>
|
|
3850
3861
|
<th scope="col"></th>
|
|
3851
3862
|
</tr>
|
|
3852
3863
|
</ng-template>
|
|
@@ -3857,13 +3868,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3857
3868
|
{{ rowData.name }}
|
|
3858
3869
|
</td>
|
|
3859
3870
|
<td>
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3871
|
+
@if (rowData.applied) {
|
|
3872
|
+
<p-button
|
|
3873
|
+
icon="pi pi-check"
|
|
3874
|
+
severity="success"
|
|
3875
|
+
[rounded]="true"
|
|
3876
|
+
[text]="true">
|
|
3877
|
+
</p-button>
|
|
3878
|
+
}
|
|
3867
3879
|
</td>
|
|
3868
3880
|
<td>
|
|
3869
3881
|
@if (rowData.exist) {
|
|
@@ -3879,7 +3891,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3879
3891
|
<p-button
|
|
3880
3892
|
icon="pi pi-bolt"
|
|
3881
3893
|
pCancelEditableRow
|
|
3882
|
-
pTooltip="
|
|
3894
|
+
pTooltip="{{'db-migration.actions.applyMigration' | translate}}"
|
|
3883
3895
|
severity="secondary"
|
|
3884
3896
|
tooltipPosition="left"
|
|
3885
3897
|
[rounded]="true"
|
|
@@ -3899,7 +3911,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
3899
3911
|
`,
|
|
3900
3912
|
providers: [ConfirmationService]
|
|
3901
3913
|
}]
|
|
3902
|
-
}] });
|
|
3914
|
+
}], ctorParameters: () => [] });
|
|
3903
3915
|
|
|
3904
3916
|
/* eslint-disable */
|
|
3905
3917
|
/* tslint:disable */
|
|
@@ -4056,7 +4068,7 @@ class AppModulesComponent {
|
|
|
4056
4068
|
<tr>
|
|
4057
4069
|
<th>{{ 'app-modules.table.moduleId' | translate }}</th>
|
|
4058
4070
|
<th>{{ 'app-modules.table.name' | translate }}</th>
|
|
4059
|
-
<th>{{ 'app-modules.table.currentlyLoaded'
|
|
4071
|
+
<th>{{ 'app-modules.table.currentlyLoaded' | translate }}</th>
|
|
4060
4072
|
<th style="width: 4rem"></th>
|
|
4061
4073
|
</tr>
|
|
4062
4074
|
</ng-template>
|
|
@@ -4116,7 +4128,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
4116
4128
|
<tr>
|
|
4117
4129
|
<th>{{ 'app-modules.table.moduleId' | translate }}</th>
|
|
4118
4130
|
<th>{{ 'app-modules.table.name' | translate }}</th>
|
|
4119
|
-
<th>{{ 'app-modules.table.currentlyLoaded'
|
|
4131
|
+
<th>{{ 'app-modules.table.currentlyLoaded' | translate }}</th>
|
|
4120
4132
|
<th style="width: 4rem"></th>
|
|
4121
4133
|
</tr>
|
|
4122
4134
|
</ng-template>
|