@mediusinc/mng-commons 7.0.0-rc.2 → 7.0.0-rc.4
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 +62 -74
- package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form-api.mjs +30 -149
- package/fesm2022/mediusinc-mng-commons-form-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form.mjs +103 -102
- package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-Bhs_bBBv.mjs +30 -0
- package/fesm2022/{mediusinc-mng-commons-table-column-toggle.component-BQ99oqWO.mjs.map → mediusinc-mng-commons-table-column-toggle.component-Bhs_bBBv.mjs.map} +1 -1
- package/fesm2022/{mediusinc-mng-commons-table-mediusinc-mng-commons-table-BLuM5Kpu.mjs → mediusinc-mng-commons-table-mediusinc-mng-commons-table-CY5FbLvW.mjs} +116 -95
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-CY5FbLvW.mjs.map +1 -0
- package/fesm2022/mediusinc-mng-commons-table.mjs +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +14 -17
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview.mjs +159 -170
- package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
- package/package.json +22 -22
- package/{core/index.d.ts → types/mediusinc-mng-commons-core.d.ts} +1 -12
- package/{form/api/index.d.ts → types/mediusinc-mng-commons-form-api.d.ts} +12 -58
- package/{form/index.d.ts → types/mediusinc-mng-commons-form.d.ts} +2 -0
- package/{table/index.d.ts → types/mediusinc-mng-commons-table.d.ts} +20 -2
- package/{tableview/api/index.d.ts → types/mediusinc-mng-commons-tableview-api.d.ts} +4 -4
- package/{tableview/index.d.ts → types/mediusinc-mng-commons-tableview.d.ts} +9 -11
- package/version-info.json +3 -3
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-BQ99oqWO.mjs +0 -30
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-BLuM5Kpu.mjs.map +0 -1
- /package/{filter/index.d.ts → types/mediusinc-mng-commons-filter.d.ts} +0 -0
- /package/{model/class/index.d.ts → types/mediusinc-mng-commons-model-class.d.ts} +0 -0
- /package/{model/index.d.ts → types/mediusinc-mng-commons-model.d.ts} +0 -0
- /package/{table/api/class/index.d.ts → types/mediusinc-mng-commons-table-api-class.d.ts} +0 -0
- /package/{table/api/index.d.ts → types/mediusinc-mng-commons-table-api.d.ts} +0 -0
- /package/{tableview/api/class/index.d.ts → types/mediusinc-mng-commons-tableview-api-class.d.ts} +0 -0
- /package/{index.d.ts → types/mediusinc-mng-commons.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "7.0.0-rc.
|
|
3
|
+
"version": "7.0.0-rc.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/animations": "
|
|
6
|
-
"@angular/common": "
|
|
7
|
-
"@angular/core": "
|
|
8
|
-
"@angular/forms": "
|
|
9
|
-
"@angular/platform-browser": "
|
|
10
|
-
"@angular/router": "
|
|
5
|
+
"@angular/animations": "^21.0.0",
|
|
6
|
+
"@angular/common": "^21.0.0",
|
|
7
|
+
"@angular/core": "^21.0.0",
|
|
8
|
+
"@angular/forms": "^21.0.0",
|
|
9
|
+
"@angular/platform-browser": "^21.0.0",
|
|
10
|
+
"@angular/router": "^21.0.0",
|
|
11
11
|
"@ngx-formly/core": "~7.0.0",
|
|
12
12
|
"@ngx-translate/core": "^17.0.0",
|
|
13
|
-
"primeng": "~
|
|
13
|
+
"primeng": "~21.0.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"reflect-metadata": "^0.2.2",
|
|
@@ -21,61 +21,61 @@
|
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"module": "fesm2022/mediusinc-mng-commons.mjs",
|
|
24
|
-
"typings": "
|
|
24
|
+
"typings": "types/mediusinc-mng-commons.d.ts",
|
|
25
25
|
"exports": {
|
|
26
26
|
"./package.json": {
|
|
27
27
|
"default": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
".": {
|
|
30
|
-
"types": "./
|
|
30
|
+
"types": "./types/mediusinc-mng-commons.d.ts",
|
|
31
31
|
"default": "./fesm2022/mediusinc-mng-commons.mjs"
|
|
32
32
|
},
|
|
33
33
|
"./core": {
|
|
34
|
-
"types": "./core
|
|
34
|
+
"types": "./types/mediusinc-mng-commons-core.d.ts",
|
|
35
35
|
"default": "./fesm2022/mediusinc-mng-commons-core.mjs"
|
|
36
36
|
},
|
|
37
37
|
"./filter": {
|
|
38
|
-
"types": "./filter
|
|
38
|
+
"types": "./types/mediusinc-mng-commons-filter.d.ts",
|
|
39
39
|
"default": "./fesm2022/mediusinc-mng-commons-filter.mjs"
|
|
40
40
|
},
|
|
41
41
|
"./form": {
|
|
42
|
-
"types": "./form
|
|
42
|
+
"types": "./types/mediusinc-mng-commons-form.d.ts",
|
|
43
43
|
"default": "./fesm2022/mediusinc-mng-commons-form.mjs"
|
|
44
44
|
},
|
|
45
45
|
"./form/api": {
|
|
46
|
-
"types": "./form
|
|
46
|
+
"types": "./types/mediusinc-mng-commons-form-api.d.ts",
|
|
47
47
|
"default": "./fesm2022/mediusinc-mng-commons-form-api.mjs"
|
|
48
48
|
},
|
|
49
49
|
"./model": {
|
|
50
|
-
"types": "./model
|
|
50
|
+
"types": "./types/mediusinc-mng-commons-model.d.ts",
|
|
51
51
|
"default": "./fesm2022/mediusinc-mng-commons-model.mjs"
|
|
52
52
|
},
|
|
53
53
|
"./model/class": {
|
|
54
|
-
"types": "./model
|
|
54
|
+
"types": "./types/mediusinc-mng-commons-model-class.d.ts",
|
|
55
55
|
"default": "./fesm2022/mediusinc-mng-commons-model-class.mjs"
|
|
56
56
|
},
|
|
57
57
|
"./table": {
|
|
58
|
-
"types": "./table
|
|
58
|
+
"types": "./types/mediusinc-mng-commons-table.d.ts",
|
|
59
59
|
"default": "./fesm2022/mediusinc-mng-commons-table.mjs"
|
|
60
60
|
},
|
|
61
61
|
"./table/api": {
|
|
62
|
-
"types": "./table
|
|
62
|
+
"types": "./types/mediusinc-mng-commons-table-api.d.ts",
|
|
63
63
|
"default": "./fesm2022/mediusinc-mng-commons-table-api.mjs"
|
|
64
64
|
},
|
|
65
65
|
"./table/api/class": {
|
|
66
|
-
"types": "./table
|
|
66
|
+
"types": "./types/mediusinc-mng-commons-table-api-class.d.ts",
|
|
67
67
|
"default": "./fesm2022/mediusinc-mng-commons-table-api-class.mjs"
|
|
68
68
|
},
|
|
69
69
|
"./tableview": {
|
|
70
|
-
"types": "./tableview
|
|
70
|
+
"types": "./types/mediusinc-mng-commons-tableview.d.ts",
|
|
71
71
|
"default": "./fesm2022/mediusinc-mng-commons-tableview.mjs"
|
|
72
72
|
},
|
|
73
73
|
"./tableview/api": {
|
|
74
|
-
"types": "./tableview
|
|
74
|
+
"types": "./types/mediusinc-mng-commons-tableview-api.d.ts",
|
|
75
75
|
"default": "./fesm2022/mediusinc-mng-commons-tableview-api.mjs"
|
|
76
76
|
},
|
|
77
77
|
"./tableview/api/class": {
|
|
78
|
-
"types": "./tableview
|
|
78
|
+
"types": "./types/mediusinc-mng-commons-tableview-api-class.d.ts",
|
|
79
79
|
"default": "./fesm2022/mediusinc-mng-commons-tableview-api-class.mjs"
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -1723,17 +1723,6 @@ declare enum StyleSizeEnum {
|
|
|
1723
1723
|
Large = 3,
|
|
1724
1724
|
ExtraLarge = 4
|
|
1725
1725
|
}
|
|
1726
|
-
declare enum StyleLevelEnum {
|
|
1727
|
-
Default = 0,
|
|
1728
|
-
Primary = 1,
|
|
1729
|
-
Secondary = 2,
|
|
1730
|
-
Info = 3,
|
|
1731
|
-
Help = 4,
|
|
1732
|
-
Success = 5,
|
|
1733
|
-
Warning = 6,
|
|
1734
|
-
Danger = 7,
|
|
1735
|
-
Contrast = 8
|
|
1736
|
-
}
|
|
1737
1726
|
|
|
1738
1727
|
declare class Styles {
|
|
1739
1728
|
static readonly BUTTON_ROUNDED_WIDTH_XS = 28;
|
|
@@ -1759,5 +1748,5 @@ interface CommonsFeature {
|
|
|
1759
1748
|
}
|
|
1760
1749
|
declare function provideCommons(config?: CommonsModuleConfig, ...features: CommonsFeature[]): (Provider | EnvironmentProviders)[];
|
|
1761
1750
|
|
|
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,
|
|
1751
|
+
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 };
|
|
1763
1752
|
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 };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ServiceClassOptType, DataProviderInst, ILookupDataProvider, LookupDataProviderLookupFnType, ServiceClassType, StyleSizeEnum
|
|
1
|
+
import { ServiceClassOptType, DataProviderInst, ILookupDataProvider, LookupDataProviderLookupFnType, ServiceClassType, StyleSizeEnum } from '@mediusinc/mng-commons/core';
|
|
2
2
|
import { TypeDescriptor, ModelDescriptor } from '@mediusinc/mng-commons/model';
|
|
3
|
+
import { ButtonSeverity } from 'primeng/button';
|
|
3
4
|
|
|
4
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> {
|
|
5
6
|
protected _lookup: LookupDataProviderLookupFnType<Model, Service, Sorts, Filters>;
|
|
@@ -36,13 +37,17 @@ interface IActionButtonDescriptor {
|
|
|
36
37
|
}
|
|
37
38
|
interface IButtonStyleDescriptor {
|
|
38
39
|
size?: StyleSizeEnum;
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
severity?: ButtonSeverity;
|
|
41
|
+
text?: boolean;
|
|
41
42
|
outlined?: boolean;
|
|
42
43
|
raised?: boolean;
|
|
43
44
|
rounded?: boolean;
|
|
44
45
|
class?: string;
|
|
45
46
|
}
|
|
47
|
+
type PrimeButtonSize = 'small' | 'large' | undefined;
|
|
48
|
+
type PrimeButtonStyleProps = Omit<IButtonStyleDescriptor, 'size'> & {
|
|
49
|
+
size?: PrimeButtonSize;
|
|
50
|
+
};
|
|
46
51
|
|
|
47
52
|
declare class ActionButtonDescriptor implements IActionButtonDescriptor {
|
|
48
53
|
private _label?;
|
|
@@ -67,59 +72,6 @@ declare class ActionButtonDescriptor implements IActionButtonDescriptor {
|
|
|
67
72
|
copy(): ActionButtonDescriptor;
|
|
68
73
|
}
|
|
69
74
|
|
|
70
|
-
declare class ButtonStyleBuilder implements IButtonStyleDescriptor {
|
|
71
|
-
private _level?;
|
|
72
|
-
private _size?;
|
|
73
|
-
private _textButton?;
|
|
74
|
-
private _outlined?;
|
|
75
|
-
private _raised?;
|
|
76
|
-
private _rounded?;
|
|
77
|
-
private _class?;
|
|
78
|
-
static from(opts?: IButtonStyleDescriptor): ButtonStyleBuilder;
|
|
79
|
-
get level(): StyleLevelEnum | undefined;
|
|
80
|
-
get size(): StyleSizeEnum | undefined;
|
|
81
|
-
get textButton(): boolean | undefined;
|
|
82
|
-
get outlined(): boolean | undefined;
|
|
83
|
-
get raised(): boolean | undefined;
|
|
84
|
-
get rounded(): boolean | undefined;
|
|
85
|
-
get class(): string | undefined;
|
|
86
|
-
/**
|
|
87
|
-
* sets custom action level and returns this object
|
|
88
|
-
* @param level
|
|
89
|
-
*/
|
|
90
|
-
withLevel(level: StyleLevelEnum): ButtonStyleBuilder;
|
|
91
|
-
/**
|
|
92
|
-
* sets custom size and return this object
|
|
93
|
-
* @param size
|
|
94
|
-
*/
|
|
95
|
-
withSize(size: StyleSizeEnum): ButtonStyleBuilder;
|
|
96
|
-
/**
|
|
97
|
-
* sets text button property
|
|
98
|
-
* @param text default true
|
|
99
|
-
*/
|
|
100
|
-
withTextButton(text?: boolean): ButtonStyleBuilder;
|
|
101
|
-
/**
|
|
102
|
-
* sets outline button property
|
|
103
|
-
* @param outlined default true
|
|
104
|
-
*/
|
|
105
|
-
withOutlined(outlined?: boolean): ButtonStyleBuilder;
|
|
106
|
-
/**
|
|
107
|
-
* sets raised button property
|
|
108
|
-
* @param raised default true
|
|
109
|
-
*/
|
|
110
|
-
withRaised(raised?: boolean): ButtonStyleBuilder;
|
|
111
|
-
withRounded(rounded?: boolean): ButtonStyleBuilder;
|
|
112
|
-
/**
|
|
113
|
-
* sets custom style class
|
|
114
|
-
* @param customClass
|
|
115
|
-
*/
|
|
116
|
-
withClass(customClass: string): ButtonStyleBuilder;
|
|
117
|
-
build(hasNoTitle?: boolean): string;
|
|
118
|
-
copy(): ButtonStyleBuilder;
|
|
119
|
-
private levelToStyleClass;
|
|
120
|
-
private sizeToStyleClass;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
75
|
/**
|
|
124
76
|
* Type definition for specifying how empty string values should be handled.
|
|
125
77
|
*
|
|
@@ -130,5 +82,7 @@ type EmptyValueType = 'undefined' | 'null' | 'none';
|
|
|
130
82
|
|
|
131
83
|
type InputTrimType = 'both' | 'start' | 'end' | 'none';
|
|
132
84
|
|
|
133
|
-
|
|
134
|
-
|
|
85
|
+
declare function buttonStyleToPrimeStyles(descriptor: IButtonStyleDescriptor | undefined, hasNoTitle?: boolean): PrimeButtonStyleProps;
|
|
86
|
+
|
|
87
|
+
export { ActionButtonDescriptor, LookupDataProviderInst, buttonStyleToPrimeStyles, lookupDataProvider };
|
|
88
|
+
export type { EmptyValueType, IActionButtonDescriptor, IButtonStyleDescriptor, InputTrimType, PrimeButtonSize, PrimeButtonStyleProps };
|
|
@@ -409,6 +409,7 @@ declare class InputEmptyValueDirective {
|
|
|
409
409
|
* @default 'undefined'
|
|
410
410
|
*/
|
|
411
411
|
mngInputEmptyValue: _angular_core.InputSignal<EmptyValueType>;
|
|
412
|
+
constructor();
|
|
412
413
|
/**
|
|
413
414
|
* Handler for the blur event.
|
|
414
415
|
* Checks if the input value is an empty string and converts it to undefined, null, or leaves it as is
|
|
@@ -422,6 +423,7 @@ declare class InputEmptyValueDirective {
|
|
|
422
423
|
declare class InputTrimDirective {
|
|
423
424
|
#private;
|
|
424
425
|
readonly mngInputTrim: _angular_core.InputSignal<InputTrimType | undefined>;
|
|
426
|
+
constructor();
|
|
425
427
|
protected onBlur(): void;
|
|
426
428
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputTrimDirective, never>;
|
|
427
429
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<InputTrimDirective, "[mngInputTrim]", never, { "mngInputTrim": { "alias": "mngInputTrim"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -411,7 +411,7 @@ declare class TableMetadataService {
|
|
|
411
411
|
constructor();
|
|
412
412
|
setSignalSources(descriptor: Signal<TableDescriptorInst<any, any>>, searchFields: Signal<string[] | undefined>): void;
|
|
413
413
|
setDescriptor(descriptor: TableDescriptorInst<any, any, any>): void;
|
|
414
|
-
private
|
|
414
|
+
private mapFilterDescriptorToConfig;
|
|
415
415
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableMetadataService, never>;
|
|
416
416
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TableMetadataService>;
|
|
417
417
|
}
|
|
@@ -588,6 +588,24 @@ declare function isFilterValueBlank(value: any): boolean;
|
|
|
588
588
|
*/
|
|
589
589
|
declare function tableNotificationError(translate: TranslateService, messageService: MessageService, table: TableDescriptorInst<any>, error: Error): ToastMessageOptions | null;
|
|
590
590
|
|
|
591
|
+
/**
|
|
592
|
+
* Creates and returns a filter state map based on the provided parameters.
|
|
593
|
+
*
|
|
594
|
+
* @param {DataListParams} [paramsWithDefaults] - An optional object containing default parameters and filters for the table. The `filters` property includes filter configurations, such as value, match mode, case sensitivity, and disabled state.
|
|
595
|
+
* @return {Record<string, FilterState>} A mapping of filter keys to their corresponding filter states, constructed from the provided parameters or defaults.
|
|
596
|
+
*/
|
|
597
|
+
declare function tableCreateFilterState(paramsWithDefaults?: DataListParams): Record<string, FilterState>;
|
|
598
|
+
/**
|
|
599
|
+
* Creates a sort state for a data table based on the provided parameters.
|
|
600
|
+
*
|
|
601
|
+
* @param {DataListParams} [paramsWithDefaults] - An object containing sorting parameters. The `sort` property is expected
|
|
602
|
+
* to be an array of objects with `property` and `ascending` attributes.
|
|
603
|
+
* @return {SortMeta[] | undefined} - Returns an array of sort metadata objects if the `sort` property is valid and contains
|
|
604
|
+
* at least one entry. Each object includes the field to sort by and the sort order. Returns `undefined` if no valid sort
|
|
605
|
+
* parameters are provided.
|
|
606
|
+
*/
|
|
607
|
+
declare function tableCreateSortState(paramsWithDefaults?: DataListParams): SortMeta[] | undefined;
|
|
608
|
+
|
|
591
609
|
/**
|
|
592
610
|
* generates table layout preferences key used when saving preferences to localstorage
|
|
593
611
|
* @param typeName string, required
|
|
@@ -644,5 +662,5 @@ declare function withTable(config?: TableFeatureConfig): CommonsFeature;
|
|
|
644
662
|
*/
|
|
645
663
|
declare function provideTableChild(config?: TableFeatureConfig): Provider[];
|
|
646
664
|
|
|
647
|
-
export { ADataListService, COMMONS_TABLE_FEATURE_CONFIG_IT, FilterService, FilterValuePipe, LocaleDefaultRowClassPipe, TableColumnValueComponent, TableComponent, TableDataService, TableFilterActiveTagComponent, TableFilterClassPipe, TableFilterComponent, TableFilterFormComponent, TableHeaderWithFiltersComponent, TableTemplateDirective, createFilterDescriptorsFromGeneric, filterAdjustDisplayValueOnMatchModeChange, filterApplySerializationConfigToCmp, filterAreDatesEqual, filterGenerateMatchModeOptions, filterGetDateConfig, filterGetDefaultMatchMode, filterGetNumberConfig, filterSetStateOnChange, filterSetStateOnDisplayChange, generateTableLayoutPrefsKey, isFilterValueBlank, provideTableChild, tableNotificationError, withTable };
|
|
665
|
+
export { ADataListService, COMMONS_TABLE_FEATURE_CONFIG_IT, FilterService, FilterValuePipe, LocaleDefaultRowClassPipe, TableColumnValueComponent, TableComponent, TableDataService, TableFilterActiveTagComponent, TableFilterClassPipe, TableFilterComponent, TableFilterFormComponent, TableHeaderWithFiltersComponent, TableHeaderWithFiltersTemplateDirective, TableTemplateDirective, createFilterDescriptorsFromGeneric, filterAdjustDisplayValueOnMatchModeChange, filterApplySerializationConfigToCmp, filterAreDatesEqual, filterGenerateMatchModeOptions, filterGetDateConfig, filterGetDefaultMatchMode, filterGetNumberConfig, filterSetStateOnChange, filterSetStateOnDisplayChange, generateTableLayoutPrefsKey, isFilterValueBlank, provideTableChild, tableCreateFilterState, tableCreateSortState, tableNotificationError, withTable };
|
|
648
666
|
export type { ColumnWithPreferences, FilterActiveTagEvent, FilterConfig, FilterDateConfig, FilterFormEmitEvent, FilterNumberConfig, FilterStateWithConfig, ITable, SearchState, TableFeatureConfig };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InputSignal, OutputEmitterRef, Type, InputSignalWithTransform, WritableSignal, Injector, InjectionToken } from '@angular/core';
|
|
3
|
+
import { ButtonSeverity } from 'primeng/button';
|
|
3
4
|
import * as _mediusinc_mng_commons_core from '@mediusinc/mng-commons/core';
|
|
4
|
-
import { IdType, ActionData, ActionParameters, GetterFn, PrimeMessageSeverityType,
|
|
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
6
|
import { IActionButtonDescriptor, InputTrimType, EmptyValueType } from '@mediusinc/mng-commons/form/api';
|
|
6
7
|
import { EnumDescriptor, TypeDescriptor, ModelDescriptor, ModelDescriptorCreateOpts } from '@mediusinc/mng-commons/model';
|
|
7
8
|
import { ToastMessageOptions, Confirmation } from 'primeng/api';
|
|
@@ -463,7 +464,7 @@ declare class FieldActionDescriptor<EditorModel, ParentEditorModel = undefined>
|
|
|
463
464
|
get button(): IActionButtonDescriptor | undefined;
|
|
464
465
|
get runFunction(): FieldActionRunFnType<EditorModel, undefined> | undefined;
|
|
465
466
|
get wrappers(): string[];
|
|
466
|
-
withButton(label?: string | null, icon?: string | null,
|
|
467
|
+
withButton(label?: string | null, icon?: string | null, severity?: ButtonSeverity): this;
|
|
467
468
|
withButtonOpts(button?: IActionButtonDescriptor): this;
|
|
468
469
|
withRunFunction(fn: FieldActionRunFnType<EditorModel>): this;
|
|
469
470
|
withWrappers(wrappers: string[]): this;
|
|
@@ -1549,7 +1550,6 @@ declare class ActionDescriptorInst<Item, Service = any, RunInputItem = Item, Run
|
|
|
1549
1550
|
protected _type: ActionTypeEnum;
|
|
1550
1551
|
protected _activationTrigger: ActionActivationTriggerEnum;
|
|
1551
1552
|
protected _position: ActionPositionEnum;
|
|
1552
|
-
protected _level: StyleLevelEnum;
|
|
1553
1553
|
private _positionTableviewCategories?;
|
|
1554
1554
|
protected _tableviewCategory?: string;
|
|
1555
1555
|
protected _routeUrl: string | null;
|
|
@@ -1622,7 +1622,7 @@ declare class ActionDescriptorInst<Item, Service = any, RunInputItem = Item, Run
|
|
|
1622
1622
|
withPermissions(permissions: APermissions): this;
|
|
1623
1623
|
withTableviewCategory(category: string): this;
|
|
1624
1624
|
withButtonOpts(button?: IActionButtonDescriptor): this;
|
|
1625
|
-
withButton(label?: string | null, icon?: string | null,
|
|
1625
|
+
withButton(label?: string | null, icon?: string | null, severity?: ButtonSeverity): this;
|
|
1626
1626
|
withItemsSelection(hasSelection?: boolean): this;
|
|
1627
1627
|
withComponent(component: Type<IActionComponent<Item>>): this;
|
|
1628
1628
|
withComponentFromDi(injectionToken: InjectionToken<Type<any>>): this;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _mediusinc_mng_commons_form_api from '@mediusinc/mng-commons/form/api';
|
|
2
|
+
import { LookupDataProviderInst, PrimeButtonStyleProps } from '@mediusinc/mng-commons/form/api';
|
|
1
3
|
import * as _angular_router from '@angular/router';
|
|
2
4
|
import { ActivatedRoute, CanDeactivateFn, Router, DefaultExport, Route } from '@angular/router';
|
|
3
5
|
import * as _angular_core from '@angular/core';
|
|
@@ -16,7 +18,6 @@ import * as _mediusinc_mng_commons_tableview from '@mediusinc/mng-commons/tablev
|
|
|
16
18
|
import * as _ngx_formly_core from '@ngx-formly/core';
|
|
17
19
|
import { FormlyFormOptions, FormlyFieldConfig, FieldType, FieldWrapper, FormlyConfig, ConfigOption } from '@ngx-formly/core';
|
|
18
20
|
import { FormGroup, AbstractControl, UntypedFormGroup, FormControl, FormArray, ValidationErrors } from '@angular/forms';
|
|
19
|
-
import { LookupDataProviderInst } from '@mediusinc/mng-commons/form/api';
|
|
20
21
|
import { TableRowReorderEvent } from 'primeng/table';
|
|
21
22
|
import { TableTemplateDirective, TableComponent } from '@mediusinc/mng-commons/table';
|
|
22
23
|
import { TranslateService } from '@ngx-translate/core';
|
|
@@ -174,7 +175,7 @@ declare class ActionComponent<Item = any, Service = undefined> implements OnDest
|
|
|
174
175
|
route: _angular_core.Signal<ActivatedRoute>;
|
|
175
176
|
routeData: _angular_core.Signal<_angular_router.Data | undefined>;
|
|
176
177
|
private routePermissions;
|
|
177
|
-
|
|
178
|
+
buttonStyles: _angular_core.Signal<_mediusinc_mng_commons_form_api.PrimeButtonStyleProps>;
|
|
178
179
|
subactions: _angular_core.WritableSignal<MenuItem[]>;
|
|
179
180
|
private subactionSubscriptions;
|
|
180
181
|
private instance?;
|
|
@@ -234,7 +235,6 @@ declare class FormEditorService<Item, ParentItem = any> implements IFormEditorCo
|
|
|
234
235
|
declare function provideFormComponent(): Provider;
|
|
235
236
|
|
|
236
237
|
declare class FormEditorComponent<Item = any, ParentItem = any> implements IFormEditorComponent<Item, ParentItem>, OnInit, AfterViewInit, OnDestroy {
|
|
237
|
-
#private;
|
|
238
238
|
private readonly destroyRef;
|
|
239
239
|
private readonly elementRef;
|
|
240
240
|
private readonly formlyConfig;
|
|
@@ -274,9 +274,6 @@ declare class FormEditorComponent<Item = any, ParentItem = any> implements IForm
|
|
|
274
274
|
text: string | undefined;
|
|
275
275
|
icon: string | undefined;
|
|
276
276
|
}[]>;
|
|
277
|
-
readonly restoreLocalStateButtonStyle: string;
|
|
278
|
-
readonly previewLocalStateButtonStyle: string;
|
|
279
|
-
readonly clearLocalStateButtonStyle: string;
|
|
280
277
|
autoSaveRestore: _angular_core.WritableSignal<EditorAutoSavePreviewModel<Item> | null>;
|
|
281
278
|
autoSave: _angular_core.Signal<EditorAutoSaveStatus | undefined>;
|
|
282
279
|
autoSavePreviewButtonLabel: _angular_core.Signal<"mngEditor.autoSave.restore.previewCurrent" | "mngEditor.autoSave.restore.previewAutosaved" | "mngEditor.autoSave.restore.preview">;
|
|
@@ -385,6 +382,7 @@ declare class ActionEditorInjectorContextComponent<Item = any, Service = any> im
|
|
|
385
382
|
autoSaveStatus: _angular_core.WritableSignal<EditorAutoSaveStatus | undefined>;
|
|
386
383
|
private submitExecutionSubscription?;
|
|
387
384
|
private lastSubmitItem?;
|
|
385
|
+
constructor();
|
|
388
386
|
ngOnDestroy(): void;
|
|
389
387
|
onSubmit(event: FormEditorSubmitEvent<Item>): void;
|
|
390
388
|
cancel(): void;
|
|
@@ -398,8 +396,8 @@ declare class ActionEditorInjectorContextComponent<Item = any, Service = any> im
|
|
|
398
396
|
private processActionInstance;
|
|
399
397
|
private unsetInstance;
|
|
400
398
|
private isActionMainTwEditor;
|
|
401
|
-
|
|
402
|
-
|
|
399
|
+
protected beforeWindowUnload(): boolean;
|
|
400
|
+
protected onEscapePressed(): void;
|
|
403
401
|
closeWithUnsavedChangesConfirmation(callFromGuard?: boolean): Observable<boolean>;
|
|
404
402
|
private showUnsavedChangesConfirmationDialog;
|
|
405
403
|
private onEditorReset;
|
|
@@ -456,7 +454,7 @@ declare class DataLanguageDropdownComponent<T = any> implements IActionComponent
|
|
|
456
454
|
enabled: _angular_core.InputSignal<boolean>;
|
|
457
455
|
loading: _angular_core.InputSignal<boolean>;
|
|
458
456
|
trigger: _angular_core.OutputEmitterRef<ActionParameters<T, T, T, T>>;
|
|
459
|
-
selectionItemsDataProvider: _angular_core.Signal<LookupDataProviderInst<string, any, number | typeof Symbol.iterator | "length" | "toString" | "concat" | "slice" | "indexOf" | "lastIndexOf" | "includes" | "at" | "valueOf" | "replace" | "charAt" | "charCodeAt" | "localeCompare" | "match" | "search" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "substr" | "codePointAt" | "endsWith" | "normalize" | "repeat" | "startsWith" | "anchor" | "big" | "blink" | "bold" | "fixed" | "fontcolor" | "fontsize" | "italics" | "link" | "
|
|
457
|
+
selectionItemsDataProvider: _angular_core.Signal<LookupDataProviderInst<string, any, number | typeof Symbol.iterator | "small" | "length" | "toString" | "concat" | "slice" | "indexOf" | "lastIndexOf" | "includes" | "at" | "valueOf" | "replace" | "charAt" | "charCodeAt" | "localeCompare" | "match" | "search" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "substr" | "codePointAt" | "endsWith" | "normalize" | "repeat" | "startsWith" | "anchor" | "big" | "blink" | "bold" | "fixed" | "fontcolor" | "fontsize" | "italics" | "link" | "strike" | "sub" | "sup" | "padStart" | "padEnd" | "trimEnd" | "trimStart" | "trimLeft" | "trimRight" | "matchAll" | "replaceAll", number | typeof Symbol.iterator | "small" | "length" | "toString" | "concat" | "slice" | "indexOf" | "lastIndexOf" | "includes" | "at" | "valueOf" | "replace" | "charAt" | "charCodeAt" | "localeCompare" | "match" | "search" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "substr" | "codePointAt" | "endsWith" | "normalize" | "repeat" | "startsWith" | "anchor" | "big" | "blink" | "bold" | "fixed" | "fontcolor" | "fontsize" | "italics" | "link" | "strike" | "sub" | "sup" | "padStart" | "padEnd" | "trimEnd" | "trimStart" | "trimLeft" | "trimRight" | "matchAll" | "replaceAll", _mediusinc_mng_commons_core.ServiceClassOptType<any>>>;
|
|
460
458
|
updateDataLocale(dataLang: string): void;
|
|
461
459
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataLanguageDropdownComponent<any>, never>;
|
|
462
460
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataLanguageDropdownComponent<any>, "mng-data-language-dropdown", never, { "action": { "alias": "action"; "required": true; "isSignal": true; }; "actionData": { "alias": "actionData"; "required": true; "isSignal": true; }; "item": { "alias": "item"; "required": true; "isSignal": true; }; "itemId": { "alias": "itemId"; "required": true; "isSignal": true; }; "enabled": { "alias": "enabled"; "required": true; "isSignal": true; }; "loading": { "alias": "loading"; "required": true; "isSignal": true; }; }, { "trigger": "trigger"; }, never, never, true, never>;
|
|
@@ -901,8 +899,8 @@ declare abstract class ACommonsFormlyFieldType<Model, EditorModel, Descriptor ex
|
|
|
901
899
|
}
|
|
902
900
|
|
|
903
901
|
declare class FormlyFieldActionComponent<EditorModel> extends ACommonsFormlyFieldType<void, EditorModel, FieldActionDescriptor<EditorModel>> implements OnInit, OnDestroy {
|
|
904
|
-
|
|
905
|
-
actionMessage
|
|
902
|
+
protected buttonStyle: _angular_core.WritableSignal<PrimeButtonStyleProps>;
|
|
903
|
+
protected actionMessage: _angular_core.WritableSignal<FieldActionResultMessage | undefined>;
|
|
906
904
|
private resultSubscription?;
|
|
907
905
|
ngOnInit(): void;
|
|
908
906
|
ngOnDestroy(): void;
|
package/version-info.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "7.0.0-rc.
|
|
3
|
+
"version": "7.0.0-rc.4",
|
|
4
4
|
"tag": null,
|
|
5
5
|
"distance": null,
|
|
6
|
-
"hash": "
|
|
6
|
+
"hash": "7da8e0e",
|
|
7
7
|
"dirty": true,
|
|
8
8
|
"semver": null,
|
|
9
9
|
"buildTimestamp": null,
|
|
10
|
-
"raw": "7.0.0-rc.
|
|
10
|
+
"raw": "7.0.0-rc.4-7da8e0e-dirty"
|
|
11
11
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { NgClass } from '@angular/common';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
-
import * as i1 from '@angular/forms';
|
|
5
|
-
import { FormsModule } from '@angular/forms';
|
|
6
|
-
import { TranslatePipe } from '@ngx-translate/core';
|
|
7
|
-
import { Button } from 'primeng/button';
|
|
8
|
-
import { MultiSelect } from 'primeng/multiselect';
|
|
9
|
-
import { Tooltip } from 'primeng/tooltip';
|
|
10
|
-
import { I18nPropertyPipe } from '@mediusinc/mng-commons/core';
|
|
11
|
-
import { T as TableMetadataService, a as TablePreferencesService } from './mediusinc-mng-commons-table-mediusinc-mng-commons-table-BLuM5Kpu.mjs';
|
|
12
|
-
|
|
13
|
-
class TableColumnToggleComponent {
|
|
14
|
-
constructor() {
|
|
15
|
-
this.metadata = inject(TableMetadataService);
|
|
16
|
-
this.prefs = inject(TablePreferencesService);
|
|
17
|
-
// data source inputs
|
|
18
|
-
this.columns = input.required(...(ngDevMode ? [{ debugName: "columns" }] : []));
|
|
19
|
-
this.anyColumnVisible = computed(() => this.columns().length > 0, ...(ngDevMode ? [{ debugName: "anyColumnVisible" }] : []));
|
|
20
|
-
}
|
|
21
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TableColumnToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.15", type: TableColumnToggleComponent, isStandalone: true, selector: "mng-table-column-toggle", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<p-multiSelect\n #columnToggleMultiselect\n styleClass=\"p-button-primary mng-table-columns-multiselect\"\n appendTo=\"body\"\n dataKey=\"id\"\n tooltipPosition=\"left\"\n placeholder=\"\"\n dropdownIcon=\"pi pi-sliders-h\"\n [filter]=\"false\"\n [options]=\"prefs.columnsWithPrefs()\"\n [ngModel]=\"columns()\"\n [pTooltip]=\"'mngTable.adjustTable' | translate\"\n [displaySelectedLabel]=\"false\"\n (onChange)=\"prefs.onColumnToggle($event)\">\n <ng-template #filter>\n <div class=\"flex w-full justify-between items-center\">\n <div class=\"p-checkbox\">\n <div class=\"p-hidden-accessible\">\n <input type=\"checkbox\" readonly=\"readonly\" [checked]=\"columnToggleMultiselect.allSelected\" (keydown.space)=\"columnToggleMultiselect.onToggleAll($event)\" />\n </div>\n <div\n class=\"p-checkbox-box cursor-pointer\"\n role=\"checkbox\"\n [attr.aria-checked]=\"columnToggleMultiselect.allSelected\"\n [class.p-select-option-selected]=\"anyColumnVisible()\"\n (click)=\"prefs.onColumnToggleAll()\">\n <span class=\"p-checkbox-icon\" [ngClass]=\"{'pi pi-check': anyColumnVisible()}\"></span>\n </div>\n </div>\n <p-button\n icon=\"pi pi-replay\"\n severity=\"secondary\"\n text=\"true\"\n tooltipPosition=\"left\"\n [pTooltip]=\"'mngTable.resetLayout' | translate\"\n (click)=\"prefs.clearLayoutPreferences()\"></p-button>\n </div>\n </ng-template>\n <ng-template #item let-item>\n {{\n (item.descriptor.title && !item.descriptor.titleUseModelBase\n ? item.descriptor.title\n : (item.descriptor.title ?? item.descriptor.property | mngI18nProperty: metadata.descriptor().model)\n ) | translate\n }}\n </ng-template>\n</p-multiSelect>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: 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: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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", "ptTooltip"] }, { kind: "component", type: 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: "pipe", type: I18nPropertyPipe, name: "mngI18nProperty" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
23
|
-
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TableColumnToggleComponent, decorators: [{
|
|
25
|
-
type: Component,
|
|
26
|
-
args: [{ selector: 'mng-table-column-toggle', imports: [I18nPropertyPipe, NgClass, MultiSelect, FormsModule, TranslatePipe, Tooltip, Button], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-multiSelect\n #columnToggleMultiselect\n styleClass=\"p-button-primary mng-table-columns-multiselect\"\n appendTo=\"body\"\n dataKey=\"id\"\n tooltipPosition=\"left\"\n placeholder=\"\"\n dropdownIcon=\"pi pi-sliders-h\"\n [filter]=\"false\"\n [options]=\"prefs.columnsWithPrefs()\"\n [ngModel]=\"columns()\"\n [pTooltip]=\"'mngTable.adjustTable' | translate\"\n [displaySelectedLabel]=\"false\"\n (onChange)=\"prefs.onColumnToggle($event)\">\n <ng-template #filter>\n <div class=\"flex w-full justify-between items-center\">\n <div class=\"p-checkbox\">\n <div class=\"p-hidden-accessible\">\n <input type=\"checkbox\" readonly=\"readonly\" [checked]=\"columnToggleMultiselect.allSelected\" (keydown.space)=\"columnToggleMultiselect.onToggleAll($event)\" />\n </div>\n <div\n class=\"p-checkbox-box cursor-pointer\"\n role=\"checkbox\"\n [attr.aria-checked]=\"columnToggleMultiselect.allSelected\"\n [class.p-select-option-selected]=\"anyColumnVisible()\"\n (click)=\"prefs.onColumnToggleAll()\">\n <span class=\"p-checkbox-icon\" [ngClass]=\"{'pi pi-check': anyColumnVisible()}\"></span>\n </div>\n </div>\n <p-button\n icon=\"pi pi-replay\"\n severity=\"secondary\"\n text=\"true\"\n tooltipPosition=\"left\"\n [pTooltip]=\"'mngTable.resetLayout' | translate\"\n (click)=\"prefs.clearLayoutPreferences()\"></p-button>\n </div>\n </ng-template>\n <ng-template #item let-item>\n {{\n (item.descriptor.title && !item.descriptor.titleUseModelBase\n ? item.descriptor.title\n : (item.descriptor.title ?? item.descriptor.property | mngI18nProperty: metadata.descriptor().model)\n ) | translate\n }}\n </ng-template>\n</p-multiSelect>\n" }]
|
|
27
|
-
}], propDecorators: { columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: true }] }] } });
|
|
28
|
-
|
|
29
|
-
export { TableColumnToggleComponent };
|
|
30
|
-
//# sourceMappingURL=mediusinc-mng-commons-table-column-toggle.component-BQ99oqWO.mjs.map
|