@mediusinc/mng-commons 7.3.0 → 7.4.0-rc.0
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/fesm2022/mediusinc-mng-commons-core.mjs +4 -3
- package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-filter.mjs +10 -0
- package/fesm2022/mediusinc-mng-commons-filter.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form-api.mjs +21 -0
- package/fesm2022/mediusinc-mng-commons-form-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form.mjs +181 -23
- package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
- package/fesm2022/{mediusinc-mng-commons-table-column-toggle.component-4BDcYyDd.mjs → mediusinc-mng-commons-table-column-toggle.component-D7fm83ug.mjs} +2 -2
- package/fesm2022/{mediusinc-mng-commons-table-column-toggle.component-4BDcYyDd.mjs.map → mediusinc-mng-commons-table-column-toggle.component-D7fm83ug.mjs.map} +1 -1
- package/fesm2022/{mediusinc-mng-commons-table-mediusinc-mng-commons-table-DoXp48ZT.mjs → mediusinc-mng-commons-table-mediusinc-mng-commons-table-Czmm5fLT.mjs} +45 -9
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-Czmm5fLT.mjs.map +1 -0
- package/fesm2022/mediusinc-mng-commons-table.mjs +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +10 -0
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
- package/package.json +1 -1
- package/types/mediusinc-mng-commons-core.d.ts +14 -4
- package/types/mediusinc-mng-commons-filter.d.ts +8 -1
- package/types/mediusinc-mng-commons-form-api.d.ts +14 -1
- package/types/mediusinc-mng-commons-form.d.ts +36 -3
- package/types/mediusinc-mng-commons-table.d.ts +2 -0
- package/types/mediusinc-mng-commons-tableview-api.d.ts +8 -1
- package/version-info.json +6 -6
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-DoXp48ZT.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -309,10 +309,18 @@ declare class DataProviderInst<Model, Service = any, ServiceClass = ServiceClass
|
|
|
309
309
|
get isDataProvider(): boolean;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
+
type LookupDataProviderCacheOpts = {
|
|
313
|
+
ttl?: number;
|
|
314
|
+
key?: string;
|
|
315
|
+
};
|
|
312
316
|
type LookupDataProviderLookupFnType<Model = any, Service = undefined, Sorts = keyof Model, Filters extends keyof any = keyof Model, ReturnType = ItemOrObservable<Array<Model>>> = (params: DataListParams<Sorts, Filters> | undefined, service: Service, search?: string) => ReturnType;
|
|
313
317
|
interface ILookupDataProviderLookup<Model, Service, Sorts = keyof Model, Filters extends keyof any = keyof Model> {
|
|
314
318
|
lookup: LookupDataProviderLookupFnType<Model, Service, Sorts, Filters>;
|
|
319
|
+
cacheEnabled?: boolean;
|
|
320
|
+
cacheKey?: string;
|
|
321
|
+
cacheTtl?: number;
|
|
315
322
|
withLookup(fn?: LookupDataProviderLookupFnType<Model, Service, Sorts, Filters>): this;
|
|
323
|
+
withCache(enabled?: boolean, opts?: LookupDataProviderCacheOpts): this;
|
|
316
324
|
}
|
|
317
325
|
type ILookupDataProvider<Model = any, Service = any, Sorts = keyof Model, Filters extends keyof any = keyof Model, ServiceClass = ServiceClassOptType<Service>> = IDataProvider<Model, Service, ServiceClass> & ILookupDataProviderLookup<Model, Service, Sorts, Filters>;
|
|
318
326
|
|
|
@@ -366,6 +374,7 @@ interface ILookupDescriptor<Model, Service = any, Sorts = keyof Model, Filters e
|
|
|
366
374
|
withOptionsTrackProperty(property: keyof Model): this;
|
|
367
375
|
withOptionsTrackPropertyUnsafe(property: string): this;
|
|
368
376
|
withLookup(lookup: LookupDataProviderLookupFnType<Model, Service, Sorts, Filters>): this;
|
|
377
|
+
withCache(enabled?: boolean, opts?: LookupDataProviderCacheOpts): this;
|
|
369
378
|
}
|
|
370
379
|
|
|
371
380
|
interface ITableDescriptor<TableModel, Sorts, Filters> {
|
|
@@ -1739,9 +1748,10 @@ declare class Styles {
|
|
|
1739
1748
|
|
|
1740
1749
|
declare enum CommonsFeatureTypeEnum {
|
|
1741
1750
|
Layout = 0,
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1751
|
+
Form = 1,
|
|
1752
|
+
Table = 2,
|
|
1753
|
+
Tableview = 3,
|
|
1754
|
+
DataApiAsClassV1 = 4
|
|
1745
1755
|
}
|
|
1746
1756
|
interface CommonsFeature {
|
|
1747
1757
|
type: CommonsFeatureTypeEnum;
|
|
@@ -1750,4 +1760,4 @@ interface CommonsFeature {
|
|
|
1750
1760
|
declare function provideCommons(config?: CommonsModuleConfig, ...features: CommonsFeature[]): (Provider | EnvironmentProviders)[];
|
|
1751
1761
|
|
|
1752
1762
|
export { ACommonsErrorBase, APermissions, BROWSER_STORAGE_IT, BooleanPipe, COMMONS_INITIALIZER_IT, COMMONS_MODULE_CONFIG_IT, ClassMapPipe, CommonsConfigurationService, CommonsErrorHandler, CommonsFeatureTypeEnum, CommonsHttpError, CommonsInitEventEnum, CommonsInitService, CommonsInternalError, CommonsRouterService, CommonsService, CommonsStorageService, ComponentDirective, DataProviderInst, EnumName, EnumPipe, EnumerateAsyncPipe, EnumeratePipe, FilterMatchMode, GetterPipe, I18nPropertyPipe, JsonPathPipe, LOG_PUBLISHERS, LogLevelEnum, LogPublisherConsoleService, LoggerService, NotificationWrapperComponent, ParametrizePipe, PermissionService, PermissionTypeEnum, Permissions, RerenderDirective, RouteBuilder, RoutesBuilder, StyleSizeEnum, Styles, TemplateDirective, TemplatePipe, TypeName, TypeRegistry, adjustRouteMenuLazyChildrenRouterLinks, angularDateFormatHasSeconds, angularDateFormatHasTime, appendRoutePathToBasePath, booleanOrUndefinedAttribute, booleanWithDefaultAttribute, commonsActionErrorContextToString, commonsErrorToString, commonsInitializerProvider, copyDataListParams, createChildrenLazyRoute, createLazyRoute, createRoute, createRouteRedirect, createRoutes, dataListParamsFilterToUrlQuery, dataListParamsFilterValueToUrlString, dataListParamsFiltersToUrlQuery, dataListParamsSortToUrlQuery, dataListParamsToUrlQuery, dateToIsoString, defineReflectEnumName, defineReflectTypeName, doesUrlMatchRouterLink, effectWithDeps, errorCauseToString, errorToString, escapeHtml, escapeHtmlAny, findReflectEnumName, findReflectTypeName, findTemplateByName, flattenObjectKeys, fromAngularDateFormatToPrime, fromAngularNumberFormatToFractions, fromEnumConstantsAsValueArray, fromEnumValuesAsValueArray, fromSubscribeError, fromTableLoadToDataListParams, fromUrlQueryToDataListParams, getEnumConstantName, getEnumConstantNameFromObject, getEnumConstantNames, getEnumConstantNamesFromObject, getEnumConstantValues, getEnumConstantValuesAsNumber, getEnumConstantValuesAsString, getEnumerationI18nBaseKey, getErrorLogLevel, getErrorName, getHttpErrorResponse, getHttpErrorResponseStatus, getHttpErrorResponseStatusText, getI18n, getI18nAsync, getI18nErrorParams, getI18nForError, getI18nTypeGroupKey, getI18nTypeKeyBasePath, getI18nTypeName, getI18nTypeNameAsync, getI18nTypeParams, getI18nTypeParamsAsync, getI18nTypePropertyKey, getI18nTypeTabKey, getObjectGetters, getObjectProperties, getObjectPropertyByPath, httpErrorResponseToString, isHttpErrorResponse, isMac, isPermitted, isRbacPermitted, itemIdToDefined, itemIdToNumber, itemIdToString, mapToDataList, mergeDataListParamsWithDefaults, narrowI18nToTranslation, narrowPrimeMessageSeverity, objectDeepCopy, objectDeepMerge, permissionGuard, populateI18nParams, populateI18nTypeParams, provideCommons, reflectEnumNameKey, reflectTypeNameExists, reflectTypeNameKey, removeRouteEmptyPathSegments, selectEnumerationI18n, selectI18n, stringify, throwError, toEnumerationI18nEnumerate, toObservable, toastMessage, valueToDefined };
|
|
1753
|
-
export type { ActionData, ActionErrorContextToStringOptionsType, ActionParameters, ArrayItemType, BreadcrumbMenuItem, BreadcrumbType, ClassAttributeDef, ClassFunctionKeyParam1ObjKeyExtendsOfTargetType, ClassFunctionKeysType, ClassFunctionKeysWithAnyArgsAndReturnType, ClassFunctionKeysWithParamAndReturnType, ClassFunctionKeysWithReturnType, ClassOptType, ClassType, ColorScheme, CommonKeyof3, CommonPropsObjType3, CommonsErrorBaseOptions, CommonsFeature, CommonsMenuItem, CommonsModuleConfig, CommonsRouteData, CommonsSerializationConfig, DataListFilter, DataListFilterBaseValueType, DataListFilterFromUrlValueType, DataListFilterValueType, DataListFiltersType, DataListParams, DataListResult, DataListSort, DeepCopyOptions, EnumConstantType, EnumFromProperty, EnumType, EnumValue, EnumeratePipeI18nInternal, ErrorCauseToStringOptionsType, ErrorToStringOptionsBaseType, ErrorToStringOptionsType, ErrorTypes, FilterMatchModeExtendedType, FilterMatchModeType, FilterState, GetterFn, HttpErrorResponseToStringOptionsType, I18nMissingTranslationStrategy, IActionContextValidation, IActionDescriptor, IColumnDescriptor, ICommonsActionError, ICommonsActionErrorContext, ICommonsError, IDataProvider, IEditorDescriptor, IEnumDescriptor, IFilterDescriptor, ILogPublisher, ILoggerService, ILookupDataProvider, ILookupDataProviderLookup, ILookupDescriptor, IModelDescriptor, IPermissionService, ITableDescriptor, ITableviewDescriptor, IUser, IdType, InternalCommonsMenuItem, ItemOrObservable, KeyOfType, KeyofAndOfType, LocalstorageConfigValueType, LogConfig, LogEntry, LookupDataProviderLookupFnType, Nullable, ObjectOptPropType, PrimeMessageSeverityType, PrimitiveType, PropertyType, RegistryEnumMap, RegistryTypeMap, RouteBuilderAdjustFnType, ServiceClassOptType, ServiceClassType, SingleOrArrayType, Undefined, VersionConfig, VersionConfigFromConfiguration, VersionConfigFromHttpResource, VersionConfigFromInfo, VersionConfigType, VersionInfo, toIsoStringDateTimeOptsType, toIsoStringTypeOptType };
|
|
1763
|
+
export type { ActionData, ActionErrorContextToStringOptionsType, ActionParameters, ArrayItemType, BreadcrumbMenuItem, BreadcrumbType, ClassAttributeDef, ClassFunctionKeyParam1ObjKeyExtendsOfTargetType, ClassFunctionKeysType, ClassFunctionKeysWithAnyArgsAndReturnType, ClassFunctionKeysWithParamAndReturnType, ClassFunctionKeysWithReturnType, ClassOptType, ClassType, ColorScheme, CommonKeyof3, CommonPropsObjType3, CommonsErrorBaseOptions, CommonsFeature, CommonsMenuItem, CommonsModuleConfig, CommonsRouteData, CommonsSerializationConfig, DataListFilter, DataListFilterBaseValueType, DataListFilterFromUrlValueType, DataListFilterValueType, DataListFiltersType, DataListParams, DataListResult, DataListSort, DeepCopyOptions, EnumConstantType, EnumFromProperty, EnumType, EnumValue, EnumeratePipeI18nInternal, ErrorCauseToStringOptionsType, ErrorToStringOptionsBaseType, ErrorToStringOptionsType, ErrorTypes, FilterMatchModeExtendedType, FilterMatchModeType, FilterState, GetterFn, HttpErrorResponseToStringOptionsType, I18nMissingTranslationStrategy, IActionContextValidation, IActionDescriptor, IColumnDescriptor, ICommonsActionError, ICommonsActionErrorContext, ICommonsError, IDataProvider, IEditorDescriptor, IEnumDescriptor, IFilterDescriptor, ILogPublisher, ILoggerService, ILookupDataProvider, ILookupDataProviderLookup, ILookupDescriptor, IModelDescriptor, IPermissionService, ITableDescriptor, ITableviewDescriptor, IUser, IdType, InternalCommonsMenuItem, ItemOrObservable, KeyOfType, KeyofAndOfType, LocalstorageConfigValueType, LogConfig, LogEntry, LookupDataProviderCacheOpts, LookupDataProviderLookupFnType, Nullable, ObjectOptPropType, PrimeMessageSeverityType, PrimitiveType, PropertyType, RegistryEnumMap, RegistryTypeMap, RouteBuilderAdjustFnType, ServiceClassOptType, ServiceClassType, SingleOrArrayType, Undefined, VersionConfig, VersionConfigFromConfiguration, VersionConfigFromHttpResource, VersionConfigFromInfo, VersionConfigType, VersionInfo, toIsoStringDateTimeOptsType, toIsoStringTypeOptType };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputSignal, Type } from '@angular/core';
|
|
2
|
-
import { IFilterDescriptor, FilterMatchModeExtendedType, ILookupDataProvider, ServiceClassType, ILookupDescriptor, LookupDataProviderLookupFnType, EnumValue, EnumConstantType } from '@mediusinc/mng-commons/core';
|
|
2
|
+
import { IFilterDescriptor, FilterMatchModeExtendedType, ILookupDataProvider, ServiceClassType, ILookupDescriptor, LookupDataProviderLookupFnType, LookupDataProviderCacheOpts, EnumValue, EnumConstantType } from '@mediusinc/mng-commons/core';
|
|
3
3
|
import { InputTrimType, LookupDataProviderInst } from '@mediusinc/mng-commons/form/api';
|
|
4
4
|
import { EnumDescriptor } from '@mediusinc/mng-commons/model';
|
|
5
5
|
|
|
@@ -377,6 +377,13 @@ declare class FilterLookupDescriptor<FilterModel, TableModel, Service = any, Fil
|
|
|
377
377
|
*/
|
|
378
378
|
withOptionsTrackPropertyUnsafe(): this;
|
|
379
379
|
withLookup(lookup?: LookupDataProviderLookupFnType<FilterModel, Service, Sorts, Filters>): this;
|
|
380
|
+
/**
|
|
381
|
+
* Sets the cache configuration.
|
|
382
|
+
* @param enabled If cache is enabled. Defaults to true.
|
|
383
|
+
* @param opts.ttl Time-to-live in seconds.
|
|
384
|
+
* @param opts.key Key to use for caching. Defaults to data provider instance.
|
|
385
|
+
*/
|
|
386
|
+
withCache(enabled?: boolean, opts?: LookupDataProviderCacheOpts): this;
|
|
380
387
|
/**
|
|
381
388
|
* Sets the dropdown class name.
|
|
382
389
|
* @param dropdownClassName Class name for dropdown.
|
|
@@ -1,12 +1,25 @@
|
|
|
1
|
-
import { ServiceClassOptType, DataProviderInst, ILookupDataProvider, LookupDataProviderLookupFnType, ServiceClassType, StyleSizeEnum } from '@mediusinc/mng-commons/core';
|
|
1
|
+
import { ServiceClassOptType, DataProviderInst, ILookupDataProvider, LookupDataProviderLookupFnType, LookupDataProviderCacheOpts, ServiceClassType, StyleSizeEnum } from '@mediusinc/mng-commons/core';
|
|
2
2
|
import { TypeDescriptor, ModelDescriptor } from '@mediusinc/mng-commons/model';
|
|
3
3
|
import { ButtonSeverity } from 'primeng/button';
|
|
4
4
|
|
|
5
5
|
declare class LookupDataProviderInst<Model, Service = any, Sorts = keyof Model, Filters extends keyof any = keyof Model, ServiceClass = ServiceClassOptType<Service>> extends DataProviderInst<Model, Service, ServiceClass> implements ILookupDataProvider<Model, Service, Sorts, Filters, ServiceClass> {
|
|
6
6
|
protected _lookup: LookupDataProviderLookupFnType<Model, Service, Sorts, Filters>;
|
|
7
|
+
protected _cacheKey?: string;
|
|
8
|
+
protected _cacheEnabled?: boolean;
|
|
9
|
+
protected _cacheTtl?: number;
|
|
7
10
|
constructor(serviceType: ServiceClass);
|
|
8
11
|
get lookup(): LookupDataProviderLookupFnType<Model, Service, Sorts, Filters>;
|
|
12
|
+
get cacheKey(): string | undefined;
|
|
13
|
+
get cacheEnabled(): boolean | undefined;
|
|
14
|
+
get cacheTtl(): number | undefined;
|
|
9
15
|
withLookup(fn: LookupDataProviderLookupFnType<Model, Service, Sorts, Filters>): this;
|
|
16
|
+
/**
|
|
17
|
+
* Sets the cache configuration.
|
|
18
|
+
* @param enabled If cache is enabled. Defaults to true.
|
|
19
|
+
* @param opts.ttl Time-to-live in seconds.
|
|
20
|
+
* @param opts.key Key to use for caching. Defaults to data provider instance.
|
|
21
|
+
*/
|
|
22
|
+
withCache(enabled?: boolean, opts?: LookupDataProviderCacheOpts): this;
|
|
10
23
|
}
|
|
11
24
|
|
|
12
25
|
/**
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ExistingProvider, OnInit } from '@angular/core';
|
|
2
|
+
import { ExistingProvider, OnInit, Provider } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, Validator, FormControl, ValidationErrors } from '@angular/forms';
|
|
4
4
|
import { AutoCompleteCompleteEvent, AutoCompleteSelectEvent, AutoCompleteUnselectEvent } from 'primeng/autocomplete';
|
|
5
|
-
import { TemplateDirective, ILookupDataProvider } from '@mediusinc/mng-commons/core';
|
|
5
|
+
import { TemplateDirective, ILookupDataProvider, CommonsFeature } from '@mediusinc/mng-commons/core';
|
|
6
6
|
import { InputTrimType, EmptyValueType } from '@mediusinc/mng-commons/form/api';
|
|
7
7
|
import { MultiSelect, MultiSelectChangeEvent, MultiSelectBlurEvent } from 'primeng/multiselect';
|
|
8
8
|
import { Select, SelectChangeEvent } from 'primeng/select';
|
|
9
9
|
import { InputMask } from 'primeng/inputmask';
|
|
10
|
+
import { Observable } from 'rxjs';
|
|
10
11
|
|
|
11
12
|
type NameType$4 = 'prepend' | 'append';
|
|
12
13
|
declare class AutocompleteTemplateDirective extends TemplateDirective<NameType$4> {
|
|
@@ -21,6 +22,7 @@ declare class AutocompleteComponent implements ControlValueAccessor, OnInit {
|
|
|
21
22
|
private readonly injector;
|
|
22
23
|
private readonly destroyRef;
|
|
23
24
|
private readonly translate;
|
|
25
|
+
private readonly labelLookupService;
|
|
24
26
|
private readonly logger;
|
|
25
27
|
dataProvider: _angular_core.InputSignal<ILookupDataProvider<any, any, any, any>>;
|
|
26
28
|
optionsTrackProperty: _angular_core.InputSignal<string | undefined>;
|
|
@@ -176,6 +178,7 @@ declare class DropdownComponent implements ControlValueAccessor {
|
|
|
176
178
|
private readonly injector;
|
|
177
179
|
private readonly destroyRef;
|
|
178
180
|
private readonly translate;
|
|
181
|
+
private readonly labelLookupService;
|
|
179
182
|
dataProvider: _angular_core.InputSignal<ILookupDataProvider<any, any, any, any> | undefined>;
|
|
180
183
|
options: _angular_core.InputSignal<any[]>;
|
|
181
184
|
optionsTrackProperty: _angular_core.InputSignal<string | undefined>;
|
|
@@ -427,4 +430,34 @@ declare class InputTrimDirective {
|
|
|
427
430
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<InputTrimDirective, "[mngInputTrim]", never, { "mngInputTrim": { "alias": "mngInputTrim"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
428
431
|
}
|
|
429
432
|
|
|
430
|
-
|
|
433
|
+
declare class LookupLabelResolutionService {
|
|
434
|
+
#private;
|
|
435
|
+
private static readonly IDLE_CLEANUP_TIMEOUT_MS;
|
|
436
|
+
storeEntry(dataProvider: ILookupDataProvider<any, any, any, any>, valueProperty: string, propertyValue: any, item: any): void;
|
|
437
|
+
getEntries(dataProvider: ILookupDataProvider<any, any, any, any>, dataProviderService: any, valueProperty: string, propertyValues: any[]): Observable<Array<any>>;
|
|
438
|
+
clear(opts?: {
|
|
439
|
+
providerKey?: string;
|
|
440
|
+
}): void;
|
|
441
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LookupLabelResolutionService, never>;
|
|
442
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<LookupLabelResolutionService>;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
interface FormFeatureConfig {
|
|
446
|
+
lookupNameResolutionConfigEnabled?: boolean;
|
|
447
|
+
lookupNameResolutionCleanupInterval?: number;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Prepares providers for usage of the tableview functionalities.
|
|
452
|
+
*
|
|
453
|
+
* @returns {CommonsFeature} The `CommonsFeature` object with the layout configuration.
|
|
454
|
+
*/
|
|
455
|
+
declare function withForm(config?: FormFeatureConfig): CommonsFeature;
|
|
456
|
+
/**
|
|
457
|
+
* Provides a list of providers for configuring a form feature. Useful for lazy-loading form chunk in child (lazy loaded routes).
|
|
458
|
+
*
|
|
459
|
+
* @param {FormFeatureConfig} [config] - An optional configuration object for the form feature.
|
|
460
|
+
*/
|
|
461
|
+
declare function provideFormChild(config?: FormFeatureConfig): Provider[];
|
|
462
|
+
|
|
463
|
+
export { AUTOCOMPLETE_VALUE_ACCESSOR, AutocompleteComponent, AutocompleteTemplateDirective, DATETIME_PICKER_VALIDATOR, DATETIME_PICKER_VALUE_ACCESSOR, DATE_RANGE_VALIDATOR, DATE_RANGE_VALUE_ACCESSOR, DROPDOWN_VALUE_ACCESSOR, DateRangeComponent, DateRangeTemplateDirective, DatetimePickerComponent, DatetimePickerTemplateDirective, DropdownComponent, DropdownTemplateDirective, InputEmptyValueDirective, InputTrimDirective, LookupLabelResolutionService, NUMBER_RANGE_VALIDATOR, NUMBER_RANGE_VALUE_ACCESSOR, NumberRangeComponent, NumberRangeTemplateDirective, provideFormChild, withForm };
|
|
@@ -658,6 +658,8 @@ declare function generateTableLayoutPrefsKey(typeName: string, url: string, trac
|
|
|
658
658
|
declare class FilterValuePipe implements PipeTransform, OnDestroy {
|
|
659
659
|
private readonly locale;
|
|
660
660
|
private readonly translate;
|
|
661
|
+
private readonly labelLookupService;
|
|
662
|
+
private readonly injector;
|
|
661
663
|
private readonly enumPipe;
|
|
662
664
|
private subscription?;
|
|
663
665
|
subject: ReplaySubject<any>;
|
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { InputSignal, OutputEmitterRef, Type, InputSignalWithTransform, WritableSignal, Injector, InjectionToken } from '@angular/core';
|
|
3
3
|
import { ButtonSeverity } from 'primeng/button';
|
|
4
4
|
import * as _mediusinc_mng_commons_core from '@mediusinc/mng-commons/core';
|
|
5
|
-
import { IdType, ActionData, ActionParameters, GetterFn, PrimeMessageSeverityType, ServiceClassType, ILookupDataProvider, ILookupDescriptor, LookupDataProviderLookupFnType, EnumValue, EnumConstantType, ItemOrObservable, ArrayItemType, ITableviewDescriptor, ITableDescriptor, CommonPropsObjType3, IEditorDescriptor, IDataProvider, Nullable, IActionDescriptor, APermissions, ClassType, ServiceClassOptType, Undefined, DataProviderInst, StyleSizeEnum, DataListResult, CommonsErrorBaseOptions, ACommonsErrorBase, ICommonsActionError, ClassFunctionKeysWithParamAndReturnType, ClassFunctionKeyParam1ObjKeyExtendsOfTargetType, CommonsRouteData } from '@mediusinc/mng-commons/core';
|
|
5
|
+
import { IdType, ActionData, ActionParameters, GetterFn, PrimeMessageSeverityType, ServiceClassType, ILookupDataProvider, ILookupDescriptor, LookupDataProviderLookupFnType, LookupDataProviderCacheOpts, EnumValue, EnumConstantType, ItemOrObservable, ArrayItemType, ITableviewDescriptor, ITableDescriptor, CommonPropsObjType3, IEditorDescriptor, IDataProvider, Nullable, IActionDescriptor, APermissions, ClassType, ServiceClassOptType, Undefined, DataProviderInst, StyleSizeEnum, DataListResult, CommonsErrorBaseOptions, ACommonsErrorBase, ICommonsActionError, ClassFunctionKeysWithParamAndReturnType, ClassFunctionKeyParam1ObjKeyExtendsOfTargetType, CommonsRouteData } from '@mediusinc/mng-commons/core';
|
|
6
6
|
import { IActionButtonDescriptor, InputTrimType, EmptyValueType } from '@mediusinc/mng-commons/form/api';
|
|
7
7
|
import { EnumDescriptor, TypeDescriptor, ModelDescriptor, ModelDescriptorCreateOpts } from '@mediusinc/mng-commons/model';
|
|
8
8
|
import { ToastMessageOptions, Confirmation } from 'primeng/api';
|
|
@@ -545,6 +545,13 @@ declare class FieldLookupDescriptor<FieldModel, EditorModel, Service = any, Fiel
|
|
|
545
545
|
withOptionsTrackProperty(property: keyof FieldModel): this;
|
|
546
546
|
withOptionsTrackPropertyUnsafe(property: string): this;
|
|
547
547
|
withLookup(lookup?: LookupDataProviderLookupFnType<FieldModel, Service, Sorts, Filters>): this;
|
|
548
|
+
/**
|
|
549
|
+
* Sets the cache configuration.
|
|
550
|
+
* @param enabled If cache is enabled. Defaults to true.
|
|
551
|
+
* @param opts.ttl Time-to-live in seconds.
|
|
552
|
+
* @param opts.key Key to use for caching. Defaults to data provider instance.
|
|
553
|
+
*/
|
|
554
|
+
withCache(enabled?: boolean, opts?: LookupDataProviderCacheOpts): this;
|
|
548
555
|
withInputTrim(trimOption?: InputTrimType): this;
|
|
549
556
|
withConfig(config: FieldLookupConfig): this;
|
|
550
557
|
withDialogTitle(title: string | null): this;
|
package/version-info.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "7.
|
|
4
|
-
"tag": "v7.3.0",
|
|
5
|
-
"distance":
|
|
6
|
-
"hash": "
|
|
3
|
+
"version": "7.4.0-rc.0",
|
|
4
|
+
"tag": "v7.3.0-rc.6",
|
|
5
|
+
"distance": 7,
|
|
6
|
+
"hash": "20052183",
|
|
7
7
|
"dirty": true,
|
|
8
|
-
"semver": "7.3.0+
|
|
8
|
+
"semver": "7.3.0-rc.6+7.g20052183.dirty",
|
|
9
9
|
"buildTimestamp": null,
|
|
10
|
-
"raw": "v7.3.0-
|
|
10
|
+
"raw": "v7.3.0-rc.6-7-20052183-dirty"
|
|
11
11
|
}
|