@revolist/revogrid 4.12.4 → 4.12.5

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.
@@ -1363,7 +1363,7 @@ export class RevoGridComponent {
1363
1363
  "mutable": false,
1364
1364
  "complexType": {
1365
1365
  "original": "boolean | ColumnFilterConfig",
1366
- "resolved": "boolean | { collection?: Record<ColumnProp, FilterCollectionItem> | undefined; include?: string[] | undefined; customFilters?: Record<string, CustomFilter<any, LogicFunctionExtraParam>> | undefined; filterProp?: string | undefined; localization?: FilterLocalization | undefined; multiFilterItems?: MultiFilterItem | undefined; disableDynamicFiltering?: boolean | undefined; }",
1366
+ "resolved": "ColumnFilterConfig | boolean",
1367
1367
  "references": {
1368
1368
  "ColumnFilterConfig": {
1369
1369
  "location": "import",
@@ -1 +1 @@
1
- {"version":3,"file":"filter.types.js","sourceRoot":"","sources":["../../../src/plugins/filter/filter.types.ts"],"names":[],"mappings":"AAAA,kBAAkB","sourcesContent":["// filter.types.ts\n\nimport type { ColumnProp, ColumnRegular } from '@type';\nimport type { FilterType } from './filter.indexed';\n\nexport type DateEnum =\n | 'today'\n | 'yesterday'\n | 'tomorrow'\n | 'thisweek'\n | 'lastweek'\n | 'nextweek'\n | 'thismonth'\n | 'lastmonth'\n | 'nextmonth'\n | 'thisyear'\n | 'lastyear'\n | 'nextyear';\n\nexport type ExtraField = 'input' | 'select' | 'multi' | 'datepicker';\n\nexport type LogicFunctionParam = any;\nexport type LogicFunctionExtraParam =\n | 'select'\n | 'input'\n | 'multi'\n | 'datepicker'\n | number\n | Date\n | DateEnum\n | null\n | undefined\n | string\n | string[]\n | number[];\nexport type LogicFunction<T1 = LogicFunctionParam, T2 = LogicFunctionExtraParam> = {\n (value: T1, extra?: T2): boolean;\n extra?: ExtraField;\n};\n\nexport type CustomFilter<T1 = LogicFunctionParam, T2 = LogicFunctionExtraParam> = {\n /**\n * Property defined in column { filter: string/number/abstract/enum...etc }\n */\n columnFilterType: string;\n /**\n * Filter name\n */\n name: string;\n /**\n * Function to apply the filter\n */\n func: LogicFunction<T1, T2>;\n};\n\nexport type FilterCaptions = {\n title: string;\n save: string;\n reset: string;\n ok: string;\n cancel: string;\n add: string;\n placeholder: string;\n and: string;\n or: string;\n};\n\nexport type FilterLocalization = {\n captions: FilterCaptions;\n filterNames: Record<FilterType, string>;\n};\n/**\n * Filter configuration for a column. This is the type of the `filter` property on a column.\n */\nexport type ColumnFilterConfig = {\n /**\n * The collection of filters to be applied to the column.\n */\n collection?: Record<ColumnProp, FilterCollectionItem>;\n /**\n * The names of the filters to be included in the filter dropdown.\n */\n include?: string[];\n /**\n * A mapping of custom filter names to custom filter functions.\n */\n customFilters?: Record<string, CustomFilter>;\n /**\n * The property on the column idintifying which has the filter is applied.\n */\n filterProp?: string;\n /**\n * The localization for the filter dropdown.\n */\n localization?: FilterLocalization;\n /**\n * Information about the multi-filter items.\n */\n multiFilterItems?: MultiFilterItem;\n /**\n * Whether or not to disable dynamic filtering. If set to true, the filter will only be applied\n * when the user clicks on the filter button.\n */\n disableDynamicFiltering?: boolean;\n};\nexport type FilterCollectionItem = {\n type: FilterType;\n value?: any;\n};\n\n\nexport type FilterItem = {\n // column id\n prop?: ColumnProp;\n // filter type definition\n type?: FilterType;\n // value for additional filtering, text value or some id\n value?: any;\n};\n\nexport type FilterData = {\n id: number;\n /**\n * Filter type\n */\n type: FilterType;\n /**\n * Filter value\n */\n value?: any;\n /**\n * Filter invisible in filter panel\n */\n hidden?: boolean;\n /**\n * Filter relation\n */\n relation?: 'and' | 'or';\n};\n\nexport type MultiFilterItem = {\n [prop: string]: FilterData[];\n};\n\nexport type ShowData = {\n x: number;\n y: number;\n /**\n * Auto correct position if it is out of document bounds\n */\n autoCorrect?: boolean;\n filterTypes?: Record<string, string[]>;\n filterItems?: MultiFilterItem;\n // hide default filters\n hideDefaultFilters?: boolean;\n // pass vnodes from plugins\n extraContent?: (data: ShowData) => any;\n} & FilterItem & Omit<ColumnRegular, 'filter'>;\n"]}
1
+ {"version":3,"file":"filter.types.js","sourceRoot":"","sources":["../../../src/plugins/filter/filter.types.ts"],"names":[],"mappings":"AAAA,kBAAkB","sourcesContent":["// filter.types.ts\n\nimport type { ColumnProp, ColumnRegular } from '@type';\nimport type { FilterType } from './filter.indexed';\n\nexport type DateEnum =\n | 'today'\n | 'yesterday'\n | 'tomorrow'\n | 'thisweek'\n | 'lastweek'\n | 'nextweek'\n | 'thismonth'\n | 'lastmonth'\n | 'nextmonth'\n | 'thisyear'\n | 'lastyear'\n | 'nextyear';\n\nexport type ExtraField = 'input' | 'select' | 'multi' | 'datepicker';\n\nexport type LogicFunctionParam = any;\nexport type LogicFunctionExtraParam =\n | 'select'\n | 'input'\n | 'multi'\n | 'datepicker'\n | number\n | Date\n | DateEnum\n | null\n | undefined\n | string\n | string[]\n | number[];\nexport type LogicFunction<T1 = LogicFunctionParam, T2 = LogicFunctionExtraParam> = {\n (value: T1, extra?: T2): boolean;\n extra?: ExtraField;\n};\n\nexport type CustomFilter<T1 = LogicFunctionParam, T2 = LogicFunctionExtraParam> = {\n /**\n * Property defined in column { filter: string/number/abstract/enum...etc }\n */\n columnFilterType: string;\n /**\n * Filter name\n */\n name: string;\n /**\n * Function to apply the filter\n */\n func: LogicFunction<T1, T2>;\n};\n\nexport type FilterCaptions = {\n title: string;\n save: string;\n reset: string;\n ok: string;\n cancel: string;\n add: string;\n placeholder: string;\n and: string;\n or: string;\n};\n\nexport interface FilterLocalization {\n captions: FilterCaptions;\n filterNames: Record<FilterType, string>;\n}\n/**\n * Filter configuration for a column. This is the type of the `filter` property on a column.\n */\nexport interface ColumnFilterConfig {\n /**\n * The collection of filters to be applied to the column.\n */\n collection?: Record<ColumnProp, FilterCollectionItem>;\n /**\n * The names of the filters to be included in the filter dropdown.\n */\n include?: string[];\n /**\n * A mapping of custom filter names to custom filter functions.\n */\n customFilters?: Record<string, CustomFilter>;\n /**\n * The property on the column idintifying which has the filter is applied.\n */\n filterProp?: string;\n /**\n * The localization for the filter dropdown.\n */\n localization?: FilterLocalization;\n /**\n * Information about the multi-filter items.\n */\n multiFilterItems?: MultiFilterItem;\n /**\n * Whether or not to disable dynamic filtering. If set to true, the filter will only be applied\n * when the user clicks on the filter button.\n */\n disableDynamicFiltering?: boolean;\n}\n\nexport type FilterCollectionItem = {\n type: FilterType;\n value?: any;\n};\n\n\nexport type FilterItem = {\n // column id\n prop?: ColumnProp;\n // filter type definition\n type?: FilterType;\n // value for additional filtering, text value or some id\n value?: any;\n};\n\nexport type FilterData = {\n id: number;\n /**\n * Filter type\n */\n type: FilterType;\n /**\n * Filter value\n */\n value?: any;\n /**\n * Filter invisible in filter panel\n */\n hidden?: boolean;\n /**\n * Filter relation\n */\n relation?: 'and' | 'or';\n};\n\nexport type MultiFilterItem = {\n [prop: string]: FilterData[];\n};\n\nexport type ShowData = {\n x: number;\n y: number;\n /**\n * Auto correct position if it is out of document bounds\n */\n autoCorrect?: boolean;\n filterTypes?: Record<string, string[]>;\n filterItems?: MultiFilterItem;\n // hide default filters\n hideDefaultFilters?: boolean;\n // pass vnodes from plugins\n extraContent?: (data: ShowData) => any;\n} & FilterItem & Omit<ColumnRegular, 'filter'>;\n"]}
@@ -33,14 +33,14 @@ export type FilterCaptions = {
33
33
  and: string;
34
34
  or: string;
35
35
  };
36
- export type FilterLocalization = {
36
+ export interface FilterLocalization {
37
37
  captions: FilterCaptions;
38
38
  filterNames: Record<FilterType, string>;
39
- };
39
+ }
40
40
  /**
41
41
  * Filter configuration for a column. This is the type of the `filter` property on a column.
42
42
  */
43
- export type ColumnFilterConfig = {
43
+ export interface ColumnFilterConfig {
44
44
  /**
45
45
  * The collection of filters to be applied to the column.
46
46
  */
@@ -70,7 +70,7 @@ export type ColumnFilterConfig = {
70
70
  * when the user clicks on the filter button.
71
71
  */
72
72
  disableDynamicFiltering?: boolean;
73
- };
73
+ }
74
74
  export type FilterCollectionItem = {
75
75
  type: FilterType;
76
76
  value?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revolist/revogrid",
3
- "version": "4.12.4",
3
+ "version": "4.12.5",
4
4
  "type": "module",
5
5
  "description": "Virtual reactive data grid spreadsheet component - RevoGrid.",
6
6
  "license": "MIT",