oip-common 0.0.31 → 0.0.33

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,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, inject, signal, computed, effect, ChangeDetectorRef, Component, Input, PLATFORM_ID, InjectionToken, HostBinding, EventEmitter, Output, ViewChild, Renderer2, ApplicationRef, Pipe } from '@angular/core';
2
+ import { Injectable, inject, signal, computed, effect, ChangeDetectorRef, Component, Input, PLATFORM_ID, InjectionToken, HostBinding, EventEmitter, Output, ViewChild, Renderer2, Pipe } from '@angular/core';
3
3
  import * as i2$5 from 'primeng/api';
4
4
  import { MessageService, ConfirmationService, PrimeIcons, SharedModule } from 'primeng/api';
5
5
  import { HttpErrorResponse, HttpClient as HttpClient$1, HttpHeaders } from '@angular/common/http';
@@ -1498,7 +1498,7 @@ class UserService {
1498
1498
  */
1499
1499
  get shortLabel() {
1500
1500
  const data = this.securityService.getCurrentUser();
1501
- return data ? data.given_name[0] + data.family_name[0] : '';
1501
+ return data ? data.given_name[0].toUpperCase() + data.family_name[0].toUpperCase() : '';
1502
1502
  }
1503
1503
  get userName() {
1504
1504
  const data = this.securityService.getCurrentUser();
@@ -1894,17 +1894,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
1894
1894
  /* eslint-disable */
1895
1895
  /* tslint:disable */
1896
1896
  // @ts-nocheck
1897
- /*
1898
- * ---------------------------------------------------------------
1899
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1900
- * ## ##
1901
- * ## AUTHOR: acacode ##
1902
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1903
- * ---------------------------------------------------------------
1904
- */
1905
1897
  var ContentType;
1906
1898
  (function (ContentType) {
1907
1899
  ContentType["Json"] = "application/json";
1900
+ ContentType["JsonApi"] = "application/vnd.api+json";
1908
1901
  ContentType["FormData"] = "multipart/form-data";
1909
1902
  ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
1910
1903
  ContentType["Text"] = "text/plain";
@@ -1939,18 +1932,26 @@ class HttpClient {
1939
1932
  [ContentType.Json]: (input) => input !== null && (typeof input === "object" || typeof input === "string")
1940
1933
  ? JSON.stringify(input)
1941
1934
  : input,
1935
+ [ContentType.JsonApi]: (input) => input !== null && (typeof input === "object" || typeof input === "string")
1936
+ ? JSON.stringify(input)
1937
+ : input,
1942
1938
  [ContentType.Text]: (input) => input !== null && typeof input !== "string"
1943
1939
  ? JSON.stringify(input)
1944
1940
  : input,
1945
- [ContentType.FormData]: (input) => Object.keys(input || {}).reduce((formData, key) => {
1946
- const property = input[key];
1947
- formData.append(key, property instanceof Blob
1948
- ? property
1949
- : typeof property === "object" && property !== null
1950
- ? JSON.stringify(property)
1951
- : `${property}`);
1952
- return formData;
1953
- }, new FormData()),
1941
+ [ContentType.FormData]: (input) => {
1942
+ if (input instanceof FormData) {
1943
+ return input;
1944
+ }
1945
+ return Object.keys(input || {}).reduce((formData, key) => {
1946
+ const property = input[key];
1947
+ formData.append(key, property instanceof Blob
1948
+ ? property
1949
+ : typeof property === "object" && property !== null
1950
+ ? JSON.stringify(property)
1951
+ : `${property}`);
1952
+ return formData;
1953
+ }, new FormData());
1954
+ },
1954
1955
  [ContentType.UrlEncoded]: (input) => this.toQueryString(input),
1955
1956
  };
1956
1957
  this.createAbortSignal = (cancelToken) => {
@@ -1996,14 +1997,15 @@ class HttpClient {
1996
1997
  ? null
1997
1998
  : payloadFormatter(body),
1998
1999
  }).then(async (response) => {
1999
- const r = response.clone();
2000
+ const r = response;
2000
2001
  r.data = null;
2001
2002
  r.error = null;
2002
2003
  if (typeof E !== undefined && responseFormat === undefined)
2003
2004
  responseFormat = "json";
2005
+ const responseToParse = responseFormat ? response.clone() : response;
2004
2006
  const data = !responseFormat
2005
2007
  ? r
2006
- : await response[responseFormat]()
2008
+ : await responseToParse[responseFormat]()
2007
2009
  .then((data) => {
2008
2010
  if (r.ok) {
2009
2011
  r.data = data;
@@ -2073,29 +2075,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
2073
2075
  args: [{ providedIn: "root" }]
2074
2076
  }], ctorParameters: () => [] });
2075
2077
 
2076
- /* eslint-disable */
2077
- /* tslint:disable */
2078
- // @ts-nocheck
2079
- /*
2080
- * ---------------------------------------------------------------
2081
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2082
- * ## ##
2083
- * ## AUTHOR: acacode ##
2084
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2085
- * ---------------------------------------------------------------
2086
- */
2087
- class Menu extends HttpClient {
2078
+ class MenuApi extends HttpClient {
2088
2079
  constructor() {
2089
2080
  super(...arguments);
2090
2081
  /**
2091
2082
  * @description Retrieves the menu available to the current authenticated user.
2092
2083
  *
2093
2084
  * @tags Menu
2094
- * @name menuGet
2085
+ * @name get
2086
+ * @summary Retrieves the menu available to the current authenticated user.
2095
2087
  * @request GET:/api/menu/get
2096
2088
  * @secure
2089
+ * @response `200` `(ModuleInstanceDto)[]` OK
2097
2090
  */
2098
- this.menuGet = (params = {}) => this.request({
2091
+ this.get = (params = {}) => this.request({
2099
2092
  path: `/api/menu/get`,
2100
2093
  method: "GET",
2101
2094
  secure: true,
@@ -2106,11 +2099,13 @@ class Menu extends HttpClient {
2106
2099
  * @description Retrieves the admin-specific menu.
2107
2100
  *
2108
2101
  * @tags Menu
2109
- * @name menuGetAdminMenu
2102
+ * @name getAdminMenu
2103
+ * @summary Retrieves the admin-specific menu.
2110
2104
  * @request GET:/api/menu/get-admin-menu
2111
2105
  * @secure
2106
+ * @response `200` `(ModuleInstanceDto)[]` OK
2112
2107
  */
2113
- this.menuGetAdminMenu = (params = {}) => this.request({
2108
+ this.getAdminMenu = (params = {}) => this.request({
2114
2109
  path: `/api/menu/get-admin-menu`,
2115
2110
  method: "GET",
2116
2111
  secure: true,
@@ -2121,11 +2116,13 @@ class Menu extends HttpClient {
2121
2116
  * @description Retrieves all available modules in the system.
2122
2117
  *
2123
2118
  * @tags Menu
2124
- * @name menuGetModules
2119
+ * @name getModules
2120
+ * @summary Retrieves all available modules in the system.
2125
2121
  * @request GET:/api/menu/get-modules
2126
2122
  * @secure
2123
+ * @response `200` `(IntKeyValueDto)[]` OK
2127
2124
  */
2128
- this.menuGetModules = (params = {}) => this.request({
2125
+ this.getModules = (params = {}) => this.request({
2129
2126
  path: `/api/menu/get-modules`,
2130
2127
  method: "GET",
2131
2128
  secure: true,
@@ -2136,11 +2133,14 @@ class Menu extends HttpClient {
2136
2133
  * @description Adds a new module instance to the system.
2137
2134
  *
2138
2135
  * @tags Menu
2139
- * @name menuAddModuleInstance
2136
+ * @name addModuleInstance
2137
+ * @summary Adds a new module instance to the system.
2140
2138
  * @request POST:/api/menu/add-module-instance
2141
2139
  * @secure
2140
+ * @response `200` `void` OK
2141
+ * @response `500` `ApiExceptionResponse` Internal Server Error
2142
2142
  */
2143
- this.menuAddModuleInstance = (data, params = {}) => this.request({
2143
+ this.addModuleInstance = (data, params = {}) => this.request({
2144
2144
  path: `/api/menu/add-module-instance`,
2145
2145
  method: "POST",
2146
2146
  body: data,
@@ -2152,11 +2152,14 @@ class Menu extends HttpClient {
2152
2152
  * @description Edits an existing module instance.
2153
2153
  *
2154
2154
  * @tags Menu
2155
- * @name menuEditModuleInstance
2155
+ * @name editModuleInstance
2156
+ * @summary Edits an existing module instance.
2156
2157
  * @request POST:/api/menu/edit-module-instance
2157
2158
  * @secure
2159
+ * @response `200` `void` OK
2160
+ * @response `500` `ApiExceptionResponse` Internal Server Error
2158
2161
  */
2159
- this.menuEditModuleInstance = (data, params = {}) => this.request({
2162
+ this.editModuleInstance = (data, params = {}) => this.request({
2160
2163
  path: `/api/menu/edit-module-instance`,
2161
2164
  method: "POST",
2162
2165
  body: data,
@@ -2168,11 +2171,14 @@ class Menu extends HttpClient {
2168
2171
  * @description Deletes a module instance by its identifier.
2169
2172
  *
2170
2173
  * @tags Menu
2171
- * @name menuDeleteModuleInstance
2174
+ * @name deleteModuleInstance
2175
+ * @summary Deletes a module instance by its identifier.
2172
2176
  * @request DELETE:/api/menu/delete-module-instance
2173
2177
  * @secure
2178
+ * @response `200` `void` OK
2179
+ * @response `500` `ApiExceptionResponse` Internal Server Error
2174
2180
  */
2175
- this.menuDeleteModuleInstance = (query, params = {}) => this.request({
2181
+ this.deleteModuleInstance = (query, params = {}) => this.request({
2176
2182
  path: `/api/menu/delete-module-instance`,
2177
2183
  method: "DELETE",
2178
2184
  query: query,
@@ -2183,11 +2189,14 @@ class Menu extends HttpClient {
2183
2189
  * @description Swaps the order positions of two modules in the menu structure.
2184
2190
  *
2185
2191
  * @tags Menu
2186
- * @name menuChangeOrder
2192
+ * @name changeOrder
2193
+ * @summary Swaps the order positions of two modules in the menu structure.
2187
2194
  * @request POST:/api/menu/change-order
2188
2195
  * @secure
2196
+ * @response `200` `void` OK
2197
+ * @response `500` `ApiExceptionResponse` Internal Server Error
2189
2198
  */
2190
- this.menuChangeOrder = (query, params = {}) => this.request({
2199
+ this.changeOrder = (query, params = {}) => this.request({
2191
2200
  path: `/api/menu/change-order`,
2192
2201
  method: "POST",
2193
2202
  query: query,
@@ -2195,10 +2204,10 @@ class Menu extends HttpClient {
2195
2204
  ...params,
2196
2205
  });
2197
2206
  }
2198
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Menu, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2199
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Menu }); }
2207
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MenuApi, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2208
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MenuApi }); }
2200
2209
  }
2201
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Menu, decorators: [{
2210
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MenuApi, decorators: [{
2202
2211
  type: Injectable
2203
2212
  }] });
2204
2213
 
@@ -2208,7 +2217,7 @@ class MenuService extends BaseDataService {
2208
2217
  this.menuSource = new Subject();
2209
2218
  this.resetSource = new Subject();
2210
2219
  this.titleService = inject(AppTitleService);
2211
- this.menuDataService = inject(Menu);
2220
+ this.menuDataService = inject(MenuApi);
2212
2221
  this.menuSource$ = this.menuSource.asObservable();
2213
2222
  this.resetSource$ = this.resetSource.asObservable();
2214
2223
  this.menu = [];
@@ -2230,22 +2239,22 @@ class MenuService extends BaseDataService {
2230
2239
  this.resetSource.next(true);
2231
2240
  }
2232
2241
  getMenu() {
2233
- return this.menuDataService.menuGet();
2242
+ return this.menuDataService.get();
2234
2243
  }
2235
2244
  getAdminMenu() {
2236
- return this.menuDataService.menuGetAdminMenu();
2245
+ return this.menuDataService.getAdminMenu();
2237
2246
  }
2238
2247
  getModules() {
2239
- return this.menuDataService.menuGetModules();
2248
+ return this.menuDataService.getModules();
2240
2249
  }
2241
2250
  addModuleInstance(addModuleInstance) {
2242
- return this.menuDataService.menuAddModuleInstance(addModuleInstance);
2251
+ return this.menuDataService.addModuleInstance(addModuleInstance);
2243
2252
  }
2244
2253
  deleteItem(moduleInstanceId) {
2245
- return this.sendRequest(this.baseUrl + 'api/menu/delete-module-instance?id=' + moduleInstanceId, 'DELETE');
2254
+ return this.menuDataService.deleteModuleInstance({ id: moduleInstanceId });
2246
2255
  }
2247
2256
  editModuleInstance(item) {
2248
- return this.sendRequest(this.baseUrl + 'api/menu/edit-module-instance', 'POST', item);
2257
+ return this.menuDataService.editModuleInstance(item);
2249
2258
  }
2250
2259
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MenuService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2251
2260
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MenuService }); }
@@ -2263,7 +2272,7 @@ class MenuItemComponent {
2263
2272
  this.translateService = inject(TranslateService);
2264
2273
  this.confirmationService = inject(ConfirmationService);
2265
2274
  this.msgService = inject(MsgService);
2266
- this.menuDataService = inject(Menu);
2275
+ this.menuDataService = inject(MenuApi);
2267
2276
  this.active = false;
2268
2277
  this.subscriptions = [];
2269
2278
  this.localization = {};
@@ -2397,7 +2406,7 @@ class MenuItemComponent {
2397
2406
  severity: 'danger'
2398
2407
  },
2399
2408
  accept: async () => {
2400
- await this.menuDataService.menuDeleteModuleInstance({
2409
+ await this.menuDataService.deleteModuleInstance({
2401
2410
  id: this.menuService.contextMenuItem?.moduleInstanceId
2402
2411
  });
2403
2412
  this.msgService.success(this.localization.deleteItemSuccessMessage);
@@ -2449,7 +2458,7 @@ class MenuItemComponent {
2449
2458
  const firstIndex = items.findIndex((item) => item.moduleInstanceId === firstModule.moduleInstanceId);
2450
2459
  const secondIndex = items.findIndex((item) => item.moduleInstanceId === secondModule.moduleInstanceId);
2451
2460
  [items[firstIndex], items[secondIndex]] = [items[secondIndex], items[firstIndex]];
2452
- this.menuDataService.menuChangeOrder({
2461
+ this.menuDataService.changeOrder({
2453
2462
  firstModuleId: firstModule.moduleInstanceId,
2454
2463
  secondModuleId: secondModule.moduleInstanceId
2455
2464
  }).then();
@@ -2469,8 +2478,6 @@ class MenuItemComponent {
2469
2478
  const currentIndex = items.findIndex((item) => item.moduleInstanceId == currentItem.moduleInstanceId);
2470
2479
  return currentIndex < items.length - 1;
2471
2480
  }
2472
- swapModulesInBackend(firstModuleId, secondModuleId) {
2473
- }
2474
2481
  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 }); }
2475
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: `
2476
2483
  <ng-container>
@@ -2681,13 +2688,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
2681
2688
  class MenuItemCreateDialogComponent {
2682
2689
  constructor() {
2683
2690
  this.menuService = inject(MenuService);
2684
- this.menu = inject(Menu);
2691
+ this.menu = inject(MenuApi);
2685
2692
  this.visibleChange = new EventEmitter();
2686
2693
  this.modules = [];
2687
2694
  this.selectIcon = 'pi pi-box';
2688
2695
  }
2689
2696
  async ngOnInit() {
2690
- this.modules = await this.menu.menuGetModules();
2697
+ this.modules = await this.menu.getModules();
2691
2698
  }
2692
2699
  changeVisible() {
2693
2700
  this.visible = !this.visible;
@@ -2730,14 +2737,14 @@ class MenuItemCreateDialogComponent {
2730
2737
  id="oip-menu-item-create-dialog-parent-input"
2731
2738
  pInputText
2732
2739
  readonly
2733
- [ngModel]="menuService.contextMenuItem?.label" />
2740
+ [ngModel]="menuService.contextMenuItem?.label"/>
2734
2741
  </div>
2735
2742
  }
2736
2743
  <div class="flex items-center gap-4 mb-4">
2737
2744
  <label class="font-semibold w-1/3" for="oip-menu-item-create-label">
2738
2745
  {{ 'menuItemCreateDialogComponent.label' | translate }}
2739
2746
  </label>
2740
- <input autocomplete="off" class="flex-auto" id="oip-menu-item-create-label" pInputText [(ngModel)]="label" />
2747
+ <input autocomplete="off" class="flex-auto" id="oip-menu-item-create-label" pInputText [(ngModel)]="label"/>
2741
2748
  </div>
2742
2749
  <div class="flex items-center gap-4 mb-4">
2743
2750
  <label class="font-semibold w-1/3" for="oip-menu-item-create-module">
@@ -2751,14 +2758,14 @@ class MenuItemCreateDialogComponent {
2751
2758
  optionValue="key"
2752
2759
  placeholder="{{ 'menuItemCreateDialogComponent.selectModule' | translate }}"
2753
2760
  [options]="modules"
2754
- [(ngModel)]="selectModule" />
2761
+ [(ngModel)]="selectModule"/>
2755
2762
  </div>
2756
2763
  <div class="flex items-center gap-4 mb-4">
2757
2764
  <label class="font-semibold w-1/3" for="oip-menu-item-create-dialog-icon">
2758
2765
  {{ 'menuItemCreateDialogComponent.icon' | translate }}
2759
2766
  </label>
2760
2767
  <i class="{{ selectIcon }}"></i>
2761
- <input class="flex-auto" id="oip-menu-item-create-dialog-icon" pInputText [(ngModel)]="selectIcon" />
2768
+ <input class="flex-auto" id="oip-menu-item-create-dialog-icon" pInputText [(ngModel)]="selectIcon"/>
2762
2769
  </div>
2763
2770
  <div class="flex justify-end gap-2">
2764
2771
  <p-button
@@ -2766,12 +2773,12 @@ class MenuItemCreateDialogComponent {
2766
2773
  label="{{ 'menuItemCreateDialogComponent.cancel' | translate }}"
2767
2774
  severity="secondary"
2768
2775
  (click)="changeVisible()"
2769
- (keydown)="changeVisible()" />
2776
+ (keydown)="changeVisible()"/>
2770
2777
  <p-button
2771
2778
  id="oip-menu-item-create-save"
2772
2779
  label="{{ 'menuItemCreateDialogComponent.save' | translate }}"
2773
2780
  (click)="save()"
2774
- (keydown)="save()" />
2781
+ (keydown)="save()"/>
2775
2782
  </div>
2776
2783
  </p-dialog>
2777
2784
  `, 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" }] }); }
@@ -2799,14 +2806,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
2799
2806
  id="oip-menu-item-create-dialog-parent-input"
2800
2807
  pInputText
2801
2808
  readonly
2802
- [ngModel]="menuService.contextMenuItem?.label" />
2809
+ [ngModel]="menuService.contextMenuItem?.label"/>
2803
2810
  </div>
2804
2811
  }
2805
2812
  <div class="flex items-center gap-4 mb-4">
2806
2813
  <label class="font-semibold w-1/3" for="oip-menu-item-create-label">
2807
2814
  {{ 'menuItemCreateDialogComponent.label' | translate }}
2808
2815
  </label>
2809
- <input autocomplete="off" class="flex-auto" id="oip-menu-item-create-label" pInputText [(ngModel)]="label" />
2816
+ <input autocomplete="off" class="flex-auto" id="oip-menu-item-create-label" pInputText [(ngModel)]="label"/>
2810
2817
  </div>
2811
2818
  <div class="flex items-center gap-4 mb-4">
2812
2819
  <label class="font-semibold w-1/3" for="oip-menu-item-create-module">
@@ -2820,14 +2827,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
2820
2827
  optionValue="key"
2821
2828
  placeholder="{{ 'menuItemCreateDialogComponent.selectModule' | translate }}"
2822
2829
  [options]="modules"
2823
- [(ngModel)]="selectModule" />
2830
+ [(ngModel)]="selectModule"/>
2824
2831
  </div>
2825
2832
  <div class="flex items-center gap-4 mb-4">
2826
2833
  <label class="font-semibold w-1/3" for="oip-menu-item-create-dialog-icon">
2827
2834
  {{ 'menuItemCreateDialogComponent.icon' | translate }}
2828
2835
  </label>
2829
2836
  <i class="{{ selectIcon }}"></i>
2830
- <input class="flex-auto" id="oip-menu-item-create-dialog-icon" pInputText [(ngModel)]="selectIcon" />
2837
+ <input class="flex-auto" id="oip-menu-item-create-dialog-icon" pInputText [(ngModel)]="selectIcon"/>
2831
2838
  </div>
2832
2839
  <div class="flex justify-end gap-2">
2833
2840
  <p-button
@@ -2835,12 +2842,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
2835
2842
  label="{{ 'menuItemCreateDialogComponent.cancel' | translate }}"
2836
2843
  severity="secondary"
2837
2844
  (click)="changeVisible()"
2838
- (keydown)="changeVisible()" />
2845
+ (keydown)="changeVisible()"/>
2839
2846
  <p-button
2840
2847
  id="oip-menu-item-create-save"
2841
2848
  label="{{ 'menuItemCreateDialogComponent.save' | translate }}"
2842
2849
  (click)="save()"
2843
- (keydown)="save()" />
2850
+ (keydown)="save()"/>
2844
2851
  </div>
2845
2852
  </p-dialog>
2846
2853
  `
@@ -3044,7 +3051,7 @@ class MenuComponent {
3044
3051
  ];
3045
3052
  }
3046
3053
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: MenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3047
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: MenuComponent, isStandalone: true, selector: "app-menu", providers: [Menu], viewQueries: [{ propertyName: "menuItemCreateDialogComponent", first: true, predicate: MenuItemCreateDialogComponent, descendants: true }, { propertyName: "menuItemEditDialogComponent", first: true, predicate: MenuItemEditDialogComponent, descendants: true }, { propertyName: "contextMenu", first: true, predicate: ContextMenu, descendants: true }], ngImport: i0, template: ` <div #empty class="layout-sidebar" (contextmenu)="onContextMenu($event)">
3054
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: MenuComponent, isStandalone: true, selector: "app-menu", providers: [MenuApi], viewQueries: [{ propertyName: "menuItemCreateDialogComponent", first: true, predicate: MenuItemCreateDialogComponent, descendants: true }, { propertyName: "menuItemEditDialogComponent", first: true, predicate: MenuItemEditDialogComponent, descendants: true }, { propertyName: "contextMenu", first: true, predicate: ContextMenu, descendants: true }], ngImport: i0, template: ` <div #empty class="layout-sidebar" (contextmenu)="onContextMenu($event)">
3048
3055
  <ul class="layout-menu">
3049
3056
  @for (item of menuService.menu; track item; let i = $index) {
3050
3057
  <ng-container>
@@ -3083,7 +3090,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
3083
3090
  FormsModule,
3084
3091
  MenuItemEditDialogComponent
3085
3092
  ],
3086
- providers: [Menu],
3093
+ providers: [MenuApi],
3087
3094
  selector: 'app-menu',
3088
3095
  standalone: true,
3089
3096
  template: ` <div #empty class="layout-sidebar" (contextmenu)="onContextMenu($event)">
@@ -3216,7 +3223,7 @@ class AppLayoutComponent {
3216
3223
  }
3217
3224
  }
3218
3225
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AppLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3219
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: AppLayoutComponent, isStandalone: true, selector: "app-layout", providers: [MenuService, Menu], viewQueries: [{ propertyName: "appSidebar", first: true, predicate: SidebarComponent, descendants: true }, { propertyName: "appTopBar", first: true, predicate: AppTopbar, descendants: true }], ngImport: i0, template: `
3226
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: AppLayoutComponent, isStandalone: true, selector: "app-layout", providers: [MenuService, MenuApi], viewQueries: [{ propertyName: "appSidebar", first: true, predicate: SidebarComponent, descendants: true }, { propertyName: "appTopBar", first: true, predicate: AppTopbar, descendants: true }], ngImport: i0, template: `
3220
3227
  <div class="layout-wrapper" [ngClass]="containerClass">
3221
3228
  <app-topbar></app-topbar>
3222
3229
  <app-sidebar></app-sidebar>
@@ -3249,7 +3256,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
3249
3256
  <div class="layout-mask animate-fadein"></div>
3250
3257
  </div>
3251
3258
  `,
3252
- providers: [MenuService, Menu]
3259
+ providers: [MenuService, MenuApi]
3253
3260
  }]
3254
3261
  }], ctorParameters: () => [], propDecorators: { appSidebar: [{
3255
3262
  type: ViewChild,
@@ -3340,7 +3347,6 @@ class L10nService {
3340
3347
  this.translateService = inject(TranslateService);
3341
3348
  this.primeNg = inject(PrimeNG);
3342
3349
  this.layoutService = inject(LayoutService);
3343
- this.appRef = inject(ApplicationRef);
3344
3350
  }
3345
3351
  /**
3346
3352
  * Loads translations for a specific component
@@ -4142,29 +4148,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
4142
4148
  }]
4143
4149
  }], ctorParameters: () => [] });
4144
4150
 
4145
- /* eslint-disable */
4146
- /* tslint:disable */
4147
- // @ts-nocheck
4148
- /*
4149
- * ---------------------------------------------------------------
4150
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
4151
- * ## ##
4152
- * ## AUTHOR: acacode ##
4153
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
4154
- * ---------------------------------------------------------------
4155
- */
4156
- class Module extends HttpClient {
4151
+ class ModuleApi extends HttpClient {
4157
4152
  constructor() {
4158
4153
  super(...arguments);
4159
4154
  /**
4160
4155
  * @description Retrieves all modules stored in the system.
4161
4156
  *
4162
4157
  * @tags Module
4163
- * @name moduleGetAll
4158
+ * @name getAll
4159
+ * @summary Retrieves all modules stored in the system.
4164
4160
  * @request GET:/api/module/get-all
4165
4161
  * @secure
4162
+ * @response `200` `(ModuleDto)[]` OK
4163
+ * @response `401` `ApiExceptionResponse` Unauthorized
4164
+ * @response `403` `ApiExceptionResponse` Forbidden
4166
4165
  */
4167
- this.moduleGetAll = (params = {}) => this.request({
4166
+ this.getAll = (params = {}) => this.request({
4168
4167
  path: `/api/module/get-all`,
4169
4168
  method: "GET",
4170
4169
  secure: true,
@@ -4175,11 +4174,15 @@ class Module extends HttpClient {
4175
4174
  * @description Inserts a new module into the system.
4176
4175
  *
4177
4176
  * @tags Module
4178
- * @name moduleInsert
4177
+ * @name insert
4178
+ * @summary Inserts a new module into the system.
4179
4179
  * @request POST:/api/module/insert
4180
4180
  * @secure
4181
+ * @response `200` `void` OK
4182
+ * @response `401` `ApiExceptionResponse` Unauthorized
4183
+ * @response `403` `ApiExceptionResponse` Forbidden
4181
4184
  */
4182
- this.moduleInsert = (data, params = {}) => this.request({
4185
+ this.insert = (data, params = {}) => this.request({
4183
4186
  path: `/api/module/insert`,
4184
4187
  method: "POST",
4185
4188
  body: data,
@@ -4191,11 +4194,15 @@ class Module extends HttpClient {
4191
4194
  * @description Deletes a module by its identifier.
4192
4195
  *
4193
4196
  * @tags Module
4194
- * @name moduleDelete
4197
+ * @name delete
4198
+ * @summary Deletes a module by its identifier.
4195
4199
  * @request DELETE:/api/module/delete
4196
4200
  * @secure
4201
+ * @response `200` `void` OK
4202
+ * @response `401` `ApiExceptionResponse` Unauthorized
4203
+ * @response `403` `ApiExceptionResponse` Forbidden
4197
4204
  */
4198
- this.moduleDelete = (data, params = {}) => this.request({
4205
+ this.delete = (data, params = {}) => this.request({
4199
4206
  path: `/api/module/delete`,
4200
4207
  method: "DELETE",
4201
4208
  body: data,
@@ -4207,11 +4214,15 @@ class Module extends HttpClient {
4207
4214
  * @description Returns all registered modules and indicates whether each one is currently loaded into the application.
4208
4215
  *
4209
4216
  * @tags Module
4210
- * @name moduleGetModulesWithLoadStatus
4217
+ * @name getModulesWithLoadStatus
4218
+ * @summary Returns all registered modules and indicates whether each one is currently loaded into the application.
4211
4219
  * @request GET:/api/module/get-modules-with-load-status
4212
4220
  * @secure
4221
+ * @response `200` `(ExistModuleDto)[]` OK
4222
+ * @response `401` `ApiExceptionResponse` Unauthorized
4223
+ * @response `403` `ApiExceptionResponse` Forbidden
4213
4224
  */
4214
- this.moduleGetModulesWithLoadStatus = (params = {}) => this.request({
4225
+ this.getModulesWithLoadStatus = (params = {}) => this.request({
4215
4226
  path: `/api/module/get-modules-with-load-status`,
4216
4227
  method: "GET",
4217
4228
  secure: true,
@@ -4219,10 +4230,10 @@ class Module extends HttpClient {
4219
4230
  ...params,
4220
4231
  });
4221
4232
  }
4222
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Module, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4223
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Module }); }
4233
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ModuleApi, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
4234
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ModuleApi }); }
4224
4235
  }
4225
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: Module, decorators: [{
4236
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ModuleApi, decorators: [{
4226
4237
  type: Injectable
4227
4238
  }] });
4228
4239
 
@@ -4235,7 +4246,7 @@ class AppModulesComponent {
4235
4246
  this.l10nService = inject(L10nService);
4236
4247
  this.l10n = {};
4237
4248
  this.titleService = inject(AppTitleService);
4238
- this.moduleService = inject(Module);
4249
+ this.moduleService = inject(ModuleApi);
4239
4250
  }
4240
4251
  async ngOnInit() {
4241
4252
  this.l10nService.get('app-modules').subscribe((l10n) => {
@@ -4245,7 +4256,7 @@ class AppModulesComponent {
4245
4256
  await this.refreshAction();
4246
4257
  }
4247
4258
  async refreshAction() {
4248
- this.modules = await this.moduleService.moduleGetModulesWithLoadStatus();
4259
+ this.modules = await this.moduleService.getModulesWithLoadStatus();
4249
4260
  }
4250
4261
  deleteModule(module) {
4251
4262
  this.confirmationService.confirm({
@@ -4273,7 +4284,7 @@ class AppModulesComponent {
4273
4284
  });
4274
4285
  }
4275
4286
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AppModulesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4276
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: AppModulesComponent, isStandalone: true, selector: "app-modules", providers: [ConfirmationService, Module], ngImport: i0, template: `
4287
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: AppModulesComponent, isStandalone: true, selector: "app-modules", providers: [ConfirmationService, ModuleApi], ngImport: i0, template: `
4277
4288
  <p-confirmDialog></p-confirmDialog>
4278
4289
  <div class="flex flex-col md:flex-row gap-4">
4279
4290
  <div class="card w-full">
@@ -4333,7 +4344,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
4333
4344
  type: Component,
4334
4345
  args: [{
4335
4346
  imports: [FormsModule, TableModule, Tag, ButtonModule, ToolbarModule, Tooltip, ConfirmDialog, TranslatePipe],
4336
- providers: [ConfirmationService, Module],
4347
+ providers: [ConfirmationService, ModuleApi],
4337
4348
  selector: 'app-modules',
4338
4349
  template: `
4339
4350
  <p-confirmDialog></p-confirmDialog>
@@ -4632,5 +4643,5 @@ const httpLoaderAuthFactory = (httpClient) => {
4632
4643
  * Generated bundle index. Do not edit.
4633
4644
  */
4634
4645
 
4635
- export { AppConfiguratorComponent, AppFloatingConfiguratorComponent, AppLayoutComponent, AppModulesComponent, AppTopbar, AuthGuardService, BaseDataService, BaseModuleComponent, ConfigComponent, DbMigrationComponent, ErrorComponent, FooterComponent, KeycloakSecurityService, L10nService, LOGO_COMPONENT_TOKEN, LayoutService, LogoComponent, LogoService, MenuComponent, MenuService, MsgService, NotfoundComponent, NotificationService, ProfileComponent, SecurePipe, SecurityComponent, SecurityDataService, SecurityService, SecurityStorageService, SidebarComponent, TableFilterService, TopBarService, UnauthorizedComponent, UserService, httpLoaderAuthFactory, langIntercept, provideLogoComponent };
4646
+ export { AppConfiguratorComponent, AppFloatingConfiguratorComponent, AppLayoutComponent, AppModulesComponent, AppTopbar, AuthGuardService, BaseDataService, BaseModuleComponent, ConfigComponent, ContentType, DbMigrationComponent, ErrorComponent, FooterComponent, HttpClient, KeycloakSecurityService, L10nService, LOGO_COMPONENT_TOKEN, LayoutService, LogoComponent, LogoService, MenuComponent, MenuService, MsgService, NotfoundComponent, NotificationService, ProfileComponent, SecurePipe, SecurityComponent, SecurityDataService, SecurityService, SecurityStorageService, SidebarComponent, TableFilterService, TopBarService, UnauthorizedComponent, UserService, httpLoaderAuthFactory, langIntercept, provideLogoComponent };
4636
4647
  //# sourceMappingURL=oip-common.mjs.map