@yuuvis/client-core 2.1.0 → 2.1.2

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.
@@ -2,8 +2,8 @@ import { Operator } from '../service/search/search.service.interface';
2
2
  /**
3
3
  * Value class to be used with form elements that support ranges
4
4
  */
5
- export interface RangeValue {
5
+ export interface RangeValue<T = unknown> {
6
6
  operator: Operator;
7
- firstValue: unknown;
8
- secondValue?: unknown;
7
+ firstValue: T;
8
+ secondValue?: T;
9
9
  }
@@ -1,12 +1,4 @@
1
1
  import { HttpHeaders, HttpParams } from '@angular/common/http';
2
- export interface OpenIdConfig {
3
- host: string;
4
- tenant: string;
5
- issuer: string;
6
- clientId: string;
7
- redirectUri?: string;
8
- postLogoutRedirectUri?: string;
9
- }
10
2
  /**
11
3
  * HttpOptions for http request
12
4
  * @param observe: 'body' | 'events' | 'response'
@@ -1,4 +1,3 @@
1
- import { OpenIdConfig } from '../backend/backend.interface';
2
1
  import { YuvConfig } from './config.interface';
3
2
  /**
4
3
  * @ignore
@@ -9,6 +8,5 @@ export declare class CoreConfig {
9
8
  environment?: {
10
9
  production: boolean;
11
10
  };
12
- oidc?: OpenIdConfig;
13
11
  constructor(__config: CoreConfig);
14
12
  }
@@ -21,6 +21,7 @@ export declare class ObjectConfigService {
21
21
  */
22
22
  registerDefaults(configs: ObjectConfigRecord, bucket?: string): void;
23
23
  unregisterDefaults(configs: ObjectConfigRecord, bucket?: string): void;
24
+ getRegisteredDefault(objectTypeId: string, bucket?: string): ObjectConfig | undefined;
24
25
  /**
25
26
  * Get object config for an object type.
26
27
  * @param objectTypeId ID of the object type to get the config for
@@ -30,7 +31,8 @@ export declare class ObjectConfigService {
30
31
  * used accross the whole client application.
31
32
  */
32
33
  getObjectConfig(type: VirtualObjectType, bucket?: string): ObjectConfig;
33
- saveObjectConfig(type: VirtualObjectType, config: ObjectConfig, bucket?: string): Observable<any>;
34
+ saveObjectConfig(type: VirtualObjectType, config?: ObjectConfig, bucket?: string): Observable<any>;
35
+ saveObjectConfigs(configs: Record<string, ObjectConfig | undefined>, bucket?: string): Observable<any>;
34
36
  getDefaultConfig(objectTypeID: string): ObjectConfig;
35
37
  getResolvedObjectConfig(data: Record<string, any>, type: VirtualObjectType, bucket?: string, includeDefaults?: boolean): ResolvedObjectConfig;
36
38
  static ɵfac: i0.ɵɵFactoryDeclaration<ObjectConfigService, never>;
@@ -1,7 +1,9 @@
1
1
  import { FormattedMailTo, Sort } from './utils.helper.enum';
2
+ import { RangeValue } from '../model/range-value.interface';
2
3
  export declare class Utils {
3
4
  static readonly DEFAULT_RANGE_TIME_V1 = "T00:00:00.000";
4
5
  static readonly DEFAULT_RANGE_TIME_V2 = "T23:59:59.000";
6
+ static readonly DEFAULT_TIME_OFFSET_V2: number;
5
7
  static optionsToURLParams(options: Record<string, any>): string;
6
8
  /**
7
9
  * Get all focusable child elements of a host element.
@@ -118,4 +120,6 @@ export declare class Utils {
118
120
  };
119
121
  static downloadBlob(content: any, mimeType: string, filename: string): void;
120
122
  static isValidDate(value: any): value is Date;
123
+ static getDateFrom(value?: Date | string | null): Date | undefined;
124
+ static getDateRangeFrom(dateRange: RangeValue<Date | string>): RangeValue<Date> | undefined;
121
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuuvis/client-core",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {