oip-common 0.0.32 → 0.0.36
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/ru.json +223 -223
- package/assets/layout/_core.scss +30 -30
- package/fesm2022/oip-common.mjs +171 -184
- package/fesm2022/oip-common.mjs.map +1 -1
- package/index.d.ts +7 -3
- package/package.json +1 -4
- package/scripts/generate-api.mjs +147 -163
- package/templates/api.ejs +4 -0
- package/templates/http-client.ejs +4 -0
package/fesm2022/oip-common.mjs
CHANGED
|
@@ -1903,20 +1903,9 @@ var ContentType;
|
|
|
1903
1903
|
ContentType["Text"] = "text/plain";
|
|
1904
1904
|
})(ContentType || (ContentType = {}));
|
|
1905
1905
|
class HttpClient {
|
|
1906
|
-
constructor() {
|
|
1907
|
-
this.securityService = inject(SecurityService);
|
|
1908
|
-
this.layoutService = inject(LayoutService);
|
|
1906
|
+
constructor(apiConfig = {}) {
|
|
1909
1907
|
this.baseUrl = "";
|
|
1910
1908
|
this.securityData = null;
|
|
1911
|
-
this.securityWorker = (securityData) => ({
|
|
1912
|
-
headers: {
|
|
1913
|
-
"Accept-language": this.layoutService.language()
|
|
1914
|
-
? this.layoutService.language()
|
|
1915
|
-
: "en",
|
|
1916
|
-
"X-Timezone": this.layoutService.timeZone(),
|
|
1917
|
-
Authorization: `Bearer ${securityData}`,
|
|
1918
|
-
},
|
|
1919
|
-
});
|
|
1920
1909
|
this.abortControllers = new Map();
|
|
1921
1910
|
this.customFetch = (...fetchParams) => fetch(...fetchParams);
|
|
1922
1911
|
this.baseApiParams = {
|
|
@@ -1981,7 +1970,7 @@ class HttpClient {
|
|
|
1981
1970
|
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
1982
1971
|
const queryString = query && this.toQueryString(query);
|
|
1983
1972
|
const payloadFormatter = this.contentFormatters[type || ContentType.Json];
|
|
1984
|
-
|
|
1973
|
+
const responseFormat = format || requestParams.format;
|
|
1985
1974
|
return this.customFetch(`${baseUrl || this.baseUrl || ""}${path}${queryString ? `?${queryString}` : ""}`, {
|
|
1986
1975
|
...requestParams,
|
|
1987
1976
|
headers: {
|
|
@@ -2027,9 +2016,7 @@ class HttpClient {
|
|
|
2027
2016
|
return data.data;
|
|
2028
2017
|
});
|
|
2029
2018
|
};
|
|
2030
|
-
|
|
2031
|
-
this.securityData = token;
|
|
2032
|
-
});
|
|
2019
|
+
Object.assign(this, apiConfig);
|
|
2033
2020
|
}
|
|
2034
2021
|
encodeQueryParam(key, value) {
|
|
2035
2022
|
const encodedKey = encodeURIComponent(key);
|
|
@@ -2067,14 +2054,17 @@ class HttpClient {
|
|
|
2067
2054
|
},
|
|
2068
2055
|
};
|
|
2069
2056
|
}
|
|
2070
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HttpClient, deps:
|
|
2057
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HttpClient, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2071
2058
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HttpClient, providedIn: "root" }); }
|
|
2072
2059
|
}
|
|
2073
2060
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: HttpClient, decorators: [{
|
|
2074
2061
|
type: Injectable,
|
|
2075
2062
|
args: [{ providedIn: "root" }]
|
|
2076
|
-
}], ctorParameters: () => [] });
|
|
2063
|
+
}], ctorParameters: () => [{ type: undefined }] });
|
|
2077
2064
|
|
|
2065
|
+
/* eslint-disable */
|
|
2066
|
+
/* tslint:disable */
|
|
2067
|
+
// @ts-nocheck
|
|
2078
2068
|
class MenuApi extends HttpClient {
|
|
2079
2069
|
constructor() {
|
|
2080
2070
|
super(...arguments);
|
|
@@ -2458,10 +2448,12 @@ class MenuItemComponent {
|
|
|
2458
2448
|
const firstIndex = items.findIndex((item) => item.moduleInstanceId === firstModule.moduleInstanceId);
|
|
2459
2449
|
const secondIndex = items.findIndex((item) => item.moduleInstanceId === secondModule.moduleInstanceId);
|
|
2460
2450
|
[items[firstIndex], items[secondIndex]] = [items[secondIndex], items[firstIndex]];
|
|
2461
|
-
this.menuDataService
|
|
2451
|
+
this.menuDataService
|
|
2452
|
+
.changeOrder({
|
|
2462
2453
|
firstModuleId: firstModule.moduleInstanceId,
|
|
2463
2454
|
secondModuleId: secondModule.moduleInstanceId
|
|
2464
|
-
})
|
|
2455
|
+
})
|
|
2456
|
+
.then();
|
|
2465
2457
|
}
|
|
2466
2458
|
hasVisiblePrev(currentItem) {
|
|
2467
2459
|
const items = this.getItems(currentItem);
|
|
@@ -2479,82 +2471,78 @@ class MenuItemComponent {
|
|
|
2479
2471
|
return currentIndex < items.length - 1;
|
|
2480
2472
|
}
|
|
2481
2473
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MenuItemComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.Router }, { token: MenuService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2482
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: MenuItemComponent, isStandalone: true, selector: "[app-menuitem]", inputs: { item: "item", index: "index", root: "root", parentKey: "parentKey", menuItemCreateDialogComponent: "menuItemCreateDialogComponent", menuItemEditDialogComponent: "menuItemEditDialogComponent", contextMenu: "contextMenu" }, host: { properties: { "class.layout-root-menuitem": "this.root", "class.active-menuitem": "this.activeClass" } }, providers: [ConfirmationService], ngImport: i0, template: `
|
|
2483
|
-
<ng-container>
|
|
2484
|
-
<p-confirm-dialog/>
|
|
2485
|
-
@if (root && item.visible !== false) {
|
|
2486
|
-
<div
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
[
|
|
2497
|
-
|
|
2498
|
-
[ngClass]="item.
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
[
|
|
2513
|
-
[
|
|
2514
|
-
[
|
|
2515
|
-
[
|
|
2516
|
-
[
|
|
2517
|
-
[
|
|
2518
|
-
[
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
[
|
|
2548
|
-
[
|
|
2549
|
-
[
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
}
|
|
2555
|
-
</ul>
|
|
2556
|
-
}
|
|
2557
|
-
</ng-container>
|
|
2474
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: MenuItemComponent, isStandalone: true, selector: "[app-menuitem]", inputs: { item: "item", index: "index", root: "root", parentKey: "parentKey", menuItemCreateDialogComponent: "menuItemCreateDialogComponent", menuItemEditDialogComponent: "menuItemEditDialogComponent", contextMenu: "contextMenu" }, host: { properties: { "class.layout-root-menuitem": "this.root", "class.active-menuitem": "this.activeClass" } }, providers: [ConfirmationService], ngImport: i0, template: `
|
|
2475
|
+
<ng-container>
|
|
2476
|
+
<p-confirm-dialog />
|
|
2477
|
+
@if (root && item.visible !== false) {
|
|
2478
|
+
<div class="layout-menuitem-root-text" (contextmenu)="onContextMenu($event, item)">
|
|
2479
|
+
{{ item.label }}
|
|
2480
|
+
</div>
|
|
2481
|
+
}
|
|
2482
|
+
@if ((!item.routerLink || item.items) && item.visible !== false) {
|
|
2483
|
+
<a
|
|
2484
|
+
pRipple
|
|
2485
|
+
tabindex="0"
|
|
2486
|
+
[attr.href]="item.url"
|
|
2487
|
+
[attr.target]="item.target"
|
|
2488
|
+
[ngClass]="item.class"
|
|
2489
|
+
(click)="itemClick($event)">
|
|
2490
|
+
<i class="layout-menuitem-icon" [ngClass]="item.icon"></i>
|
|
2491
|
+
<span class="layout-menuitem-text">{{ item.label }}</span>
|
|
2492
|
+
@if (item.items) {
|
|
2493
|
+
<i class="pi pi-fw pi-angle-down layout-submenu-toggler"></i>
|
|
2494
|
+
}
|
|
2495
|
+
</a>
|
|
2496
|
+
}
|
|
2497
|
+
@if (item.routerLink && !item.items && item.visible !== false) {
|
|
2498
|
+
<a
|
|
2499
|
+
pRipple
|
|
2500
|
+
routerLinkActive="active-route"
|
|
2501
|
+
tabindex="0"
|
|
2502
|
+
[attr.target]="item.target"
|
|
2503
|
+
[fragment]="item.fragment"
|
|
2504
|
+
[ngClass]="item.class"
|
|
2505
|
+
[preserveFragment]="item.preserveFragment"
|
|
2506
|
+
[queryParams]="item.queryParams"
|
|
2507
|
+
[queryParamsHandling]="item.queryParamsHandling"
|
|
2508
|
+
[replaceUrl]="item.replaceUrl"
|
|
2509
|
+
[routerLink]="item.routerLink"
|
|
2510
|
+
[routerLinkActiveOptions]="
|
|
2511
|
+
item.routerLinkActiveOptions || {
|
|
2512
|
+
paths: 'exact',
|
|
2513
|
+
queryParams: 'ignored',
|
|
2514
|
+
matrixParams: 'ignored',
|
|
2515
|
+
fragment: 'ignored'
|
|
2516
|
+
}
|
|
2517
|
+
"
|
|
2518
|
+
[skipLocationChange]="item.skipLocationChange"
|
|
2519
|
+
[state]="item.state"
|
|
2520
|
+
(click)="itemClick($event)"
|
|
2521
|
+
(contextmenu)="onContextMenu($event, item)">
|
|
2522
|
+
<i class="layout-menuitem-icon" [ngClass]="item.icon"></i>
|
|
2523
|
+
<span class="layout-menuitem-text">{{ item.label }}</span>
|
|
2524
|
+
@if (item.items) {
|
|
2525
|
+
<i class="pi pi-fw pi-angle-down layout-submenu-toggler"></i>
|
|
2526
|
+
}
|
|
2527
|
+
</a>
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2530
|
+
@if (item.items && item.visible !== false) {
|
|
2531
|
+
<ul [@children]="submenuAnimation" (contextmenu)="onContextMenu($event, item)">
|
|
2532
|
+
@for (child of item.items; track child; let i = $index) {
|
|
2533
|
+
<li
|
|
2534
|
+
app-menuitem
|
|
2535
|
+
[class]="child.badgeClass"
|
|
2536
|
+
[contextMenu]="contextMenu"
|
|
2537
|
+
[index]="i"
|
|
2538
|
+
[item]="child"
|
|
2539
|
+
[menuItemCreateDialogComponent]="menuItemCreateDialogComponent"
|
|
2540
|
+
[menuItemEditDialogComponent]="menuItemEditDialogComponent"
|
|
2541
|
+
[parentKey]="key"></li>
|
|
2542
|
+
}
|
|
2543
|
+
</ul>
|
|
2544
|
+
}
|
|
2545
|
+
</ng-container>
|
|
2558
2546
|
`, isInline: true, dependencies: [{ kind: "component", type: MenuItemComponent, selector: "[app-menuitem]", inputs: ["item", "index", "root", "parentKey", "menuItemCreateDialogComponent", "menuItemEditDialogComponent", "contextMenu"] }, { 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: "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", "modal", "visible", "position", "draggable"], outputs: ["onHide"] }], animations: [
|
|
2559
2547
|
trigger('children', [
|
|
2560
2548
|
state('collapsed', style({
|
|
@@ -2572,82 +2560,78 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2572
2560
|
args: [{
|
|
2573
2561
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
2574
2562
|
selector: '[app-menuitem]',
|
|
2575
|
-
template: `
|
|
2576
|
-
<ng-container>
|
|
2577
|
-
<p-confirm-dialog/>
|
|
2578
|
-
@if (root && item.visible !== false) {
|
|
2579
|
-
<div
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
[
|
|
2590
|
-
|
|
2591
|
-
[ngClass]="item.
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
[
|
|
2606
|
-
[
|
|
2607
|
-
[
|
|
2608
|
-
[
|
|
2609
|
-
[
|
|
2610
|
-
[
|
|
2611
|
-
[
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
[
|
|
2641
|
-
[
|
|
2642
|
-
[
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
}
|
|
2648
|
-
</ul>
|
|
2649
|
-
}
|
|
2650
|
-
</ng-container>
|
|
2563
|
+
template: `
|
|
2564
|
+
<ng-container>
|
|
2565
|
+
<p-confirm-dialog />
|
|
2566
|
+
@if (root && item.visible !== false) {
|
|
2567
|
+
<div class="layout-menuitem-root-text" (contextmenu)="onContextMenu($event, item)">
|
|
2568
|
+
{{ item.label }}
|
|
2569
|
+
</div>
|
|
2570
|
+
}
|
|
2571
|
+
@if ((!item.routerLink || item.items) && item.visible !== false) {
|
|
2572
|
+
<a
|
|
2573
|
+
pRipple
|
|
2574
|
+
tabindex="0"
|
|
2575
|
+
[attr.href]="item.url"
|
|
2576
|
+
[attr.target]="item.target"
|
|
2577
|
+
[ngClass]="item.class"
|
|
2578
|
+
(click)="itemClick($event)">
|
|
2579
|
+
<i class="layout-menuitem-icon" [ngClass]="item.icon"></i>
|
|
2580
|
+
<span class="layout-menuitem-text">{{ item.label }}</span>
|
|
2581
|
+
@if (item.items) {
|
|
2582
|
+
<i class="pi pi-fw pi-angle-down layout-submenu-toggler"></i>
|
|
2583
|
+
}
|
|
2584
|
+
</a>
|
|
2585
|
+
}
|
|
2586
|
+
@if (item.routerLink && !item.items && item.visible !== false) {
|
|
2587
|
+
<a
|
|
2588
|
+
pRipple
|
|
2589
|
+
routerLinkActive="active-route"
|
|
2590
|
+
tabindex="0"
|
|
2591
|
+
[attr.target]="item.target"
|
|
2592
|
+
[fragment]="item.fragment"
|
|
2593
|
+
[ngClass]="item.class"
|
|
2594
|
+
[preserveFragment]="item.preserveFragment"
|
|
2595
|
+
[queryParams]="item.queryParams"
|
|
2596
|
+
[queryParamsHandling]="item.queryParamsHandling"
|
|
2597
|
+
[replaceUrl]="item.replaceUrl"
|
|
2598
|
+
[routerLink]="item.routerLink"
|
|
2599
|
+
[routerLinkActiveOptions]="
|
|
2600
|
+
item.routerLinkActiveOptions || {
|
|
2601
|
+
paths: 'exact',
|
|
2602
|
+
queryParams: 'ignored',
|
|
2603
|
+
matrixParams: 'ignored',
|
|
2604
|
+
fragment: 'ignored'
|
|
2605
|
+
}
|
|
2606
|
+
"
|
|
2607
|
+
[skipLocationChange]="item.skipLocationChange"
|
|
2608
|
+
[state]="item.state"
|
|
2609
|
+
(click)="itemClick($event)"
|
|
2610
|
+
(contextmenu)="onContextMenu($event, item)">
|
|
2611
|
+
<i class="layout-menuitem-icon" [ngClass]="item.icon"></i>
|
|
2612
|
+
<span class="layout-menuitem-text">{{ item.label }}</span>
|
|
2613
|
+
@if (item.items) {
|
|
2614
|
+
<i class="pi pi-fw pi-angle-down layout-submenu-toggler"></i>
|
|
2615
|
+
}
|
|
2616
|
+
</a>
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
@if (item.items && item.visible !== false) {
|
|
2620
|
+
<ul [@children]="submenuAnimation" (contextmenu)="onContextMenu($event, item)">
|
|
2621
|
+
@for (child of item.items; track child; let i = $index) {
|
|
2622
|
+
<li
|
|
2623
|
+
app-menuitem
|
|
2624
|
+
[class]="child.badgeClass"
|
|
2625
|
+
[contextMenu]="contextMenu"
|
|
2626
|
+
[index]="i"
|
|
2627
|
+
[item]="child"
|
|
2628
|
+
[menuItemCreateDialogComponent]="menuItemCreateDialogComponent"
|
|
2629
|
+
[menuItemEditDialogComponent]="menuItemEditDialogComponent"
|
|
2630
|
+
[parentKey]="key"></li>
|
|
2631
|
+
}
|
|
2632
|
+
</ul>
|
|
2633
|
+
}
|
|
2634
|
+
</ng-container>
|
|
2651
2635
|
`,
|
|
2652
2636
|
animations: [
|
|
2653
2637
|
trigger('children', [
|
|
@@ -2737,14 +2721,14 @@ class MenuItemCreateDialogComponent {
|
|
|
2737
2721
|
id="oip-menu-item-create-dialog-parent-input"
|
|
2738
2722
|
pInputText
|
|
2739
2723
|
readonly
|
|
2740
|
-
[ngModel]="menuService.contextMenuItem?.label"/>
|
|
2724
|
+
[ngModel]="menuService.contextMenuItem?.label" />
|
|
2741
2725
|
</div>
|
|
2742
2726
|
}
|
|
2743
2727
|
<div class="flex items-center gap-4 mb-4">
|
|
2744
2728
|
<label class="font-semibold w-1/3" for="oip-menu-item-create-label">
|
|
2745
2729
|
{{ 'menuItemCreateDialogComponent.label' | translate }}
|
|
2746
2730
|
</label>
|
|
2747
|
-
<input autocomplete="off" class="flex-auto" id="oip-menu-item-create-label" pInputText [(ngModel)]="label"/>
|
|
2731
|
+
<input autocomplete="off" class="flex-auto" id="oip-menu-item-create-label" pInputText [(ngModel)]="label" />
|
|
2748
2732
|
</div>
|
|
2749
2733
|
<div class="flex items-center gap-4 mb-4">
|
|
2750
2734
|
<label class="font-semibold w-1/3" for="oip-menu-item-create-module">
|
|
@@ -2758,14 +2742,14 @@ class MenuItemCreateDialogComponent {
|
|
|
2758
2742
|
optionValue="key"
|
|
2759
2743
|
placeholder="{{ 'menuItemCreateDialogComponent.selectModule' | translate }}"
|
|
2760
2744
|
[options]="modules"
|
|
2761
|
-
[(ngModel)]="selectModule"/>
|
|
2745
|
+
[(ngModel)]="selectModule" />
|
|
2762
2746
|
</div>
|
|
2763
2747
|
<div class="flex items-center gap-4 mb-4">
|
|
2764
2748
|
<label class="font-semibold w-1/3" for="oip-menu-item-create-dialog-icon">
|
|
2765
2749
|
{{ 'menuItemCreateDialogComponent.icon' | translate }}
|
|
2766
2750
|
</label>
|
|
2767
2751
|
<i class="{{ selectIcon }}"></i>
|
|
2768
|
-
<input class="flex-auto" id="oip-menu-item-create-dialog-icon" pInputText [(ngModel)]="selectIcon"/>
|
|
2752
|
+
<input class="flex-auto" id="oip-menu-item-create-dialog-icon" pInputText [(ngModel)]="selectIcon" />
|
|
2769
2753
|
</div>
|
|
2770
2754
|
<div class="flex justify-end gap-2">
|
|
2771
2755
|
<p-button
|
|
@@ -2773,12 +2757,12 @@ class MenuItemCreateDialogComponent {
|
|
|
2773
2757
|
label="{{ 'menuItemCreateDialogComponent.cancel' | translate }}"
|
|
2774
2758
|
severity="secondary"
|
|
2775
2759
|
(click)="changeVisible()"
|
|
2776
|
-
(keydown)="changeVisible()"/>
|
|
2760
|
+
(keydown)="changeVisible()" />
|
|
2777
2761
|
<p-button
|
|
2778
2762
|
id="oip-menu-item-create-save"
|
|
2779
2763
|
label="{{ 'menuItemCreateDialogComponent.save' | translate }}"
|
|
2780
2764
|
(click)="save()"
|
|
2781
|
-
(keydown)="save()"/>
|
|
2765
|
+
(keydown)="save()" />
|
|
2782
2766
|
</div>
|
|
2783
2767
|
</p-dialog>
|
|
2784
2768
|
`, 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: DialogModule }, { kind: "component", type: i2$2.Dialog, selector: "p-dialog", inputs: ["hostName", "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: ["hostName", "ptInputText", "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" }] }); }
|
|
@@ -2806,14 +2790,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2806
2790
|
id="oip-menu-item-create-dialog-parent-input"
|
|
2807
2791
|
pInputText
|
|
2808
2792
|
readonly
|
|
2809
|
-
[ngModel]="menuService.contextMenuItem?.label"/>
|
|
2793
|
+
[ngModel]="menuService.contextMenuItem?.label" />
|
|
2810
2794
|
</div>
|
|
2811
2795
|
}
|
|
2812
2796
|
<div class="flex items-center gap-4 mb-4">
|
|
2813
2797
|
<label class="font-semibold w-1/3" for="oip-menu-item-create-label">
|
|
2814
2798
|
{{ 'menuItemCreateDialogComponent.label' | translate }}
|
|
2815
2799
|
</label>
|
|
2816
|
-
<input autocomplete="off" class="flex-auto" id="oip-menu-item-create-label" pInputText [(ngModel)]="label"/>
|
|
2800
|
+
<input autocomplete="off" class="flex-auto" id="oip-menu-item-create-label" pInputText [(ngModel)]="label" />
|
|
2817
2801
|
</div>
|
|
2818
2802
|
<div class="flex items-center gap-4 mb-4">
|
|
2819
2803
|
<label class="font-semibold w-1/3" for="oip-menu-item-create-module">
|
|
@@ -2827,14 +2811,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2827
2811
|
optionValue="key"
|
|
2828
2812
|
placeholder="{{ 'menuItemCreateDialogComponent.selectModule' | translate }}"
|
|
2829
2813
|
[options]="modules"
|
|
2830
|
-
[(ngModel)]="selectModule"/>
|
|
2814
|
+
[(ngModel)]="selectModule" />
|
|
2831
2815
|
</div>
|
|
2832
2816
|
<div class="flex items-center gap-4 mb-4">
|
|
2833
2817
|
<label class="font-semibold w-1/3" for="oip-menu-item-create-dialog-icon">
|
|
2834
2818
|
{{ 'menuItemCreateDialogComponent.icon' | translate }}
|
|
2835
2819
|
</label>
|
|
2836
2820
|
<i class="{{ selectIcon }}"></i>
|
|
2837
|
-
<input class="flex-auto" id="oip-menu-item-create-dialog-icon" pInputText [(ngModel)]="selectIcon"/>
|
|
2821
|
+
<input class="flex-auto" id="oip-menu-item-create-dialog-icon" pInputText [(ngModel)]="selectIcon" />
|
|
2838
2822
|
</div>
|
|
2839
2823
|
<div class="flex justify-end gap-2">
|
|
2840
2824
|
<p-button
|
|
@@ -2842,12 +2826,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2842
2826
|
label="{{ 'menuItemCreateDialogComponent.cancel' | translate }}"
|
|
2843
2827
|
severity="secondary"
|
|
2844
2828
|
(click)="changeVisible()"
|
|
2845
|
-
(keydown)="changeVisible()"/>
|
|
2829
|
+
(keydown)="changeVisible()" />
|
|
2846
2830
|
<p-button
|
|
2847
2831
|
id="oip-menu-item-create-save"
|
|
2848
2832
|
label="{{ 'menuItemCreateDialogComponent.save' | translate }}"
|
|
2849
2833
|
(click)="save()"
|
|
2850
|
-
(keydown)="save()"/>
|
|
2834
|
+
(keydown)="save()" />
|
|
2851
2835
|
</div>
|
|
2852
2836
|
</p-dialog>
|
|
2853
2837
|
`
|
|
@@ -4148,6 +4132,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4148
4132
|
}]
|
|
4149
4133
|
}], ctorParameters: () => [] });
|
|
4150
4134
|
|
|
4135
|
+
/* eslint-disable */
|
|
4136
|
+
/* tslint:disable */
|
|
4137
|
+
// @ts-nocheck
|
|
4151
4138
|
class ModuleApi extends HttpClient {
|
|
4152
4139
|
constructor() {
|
|
4153
4140
|
super(...arguments);
|