Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit e06e32b

Browse files
Ghislain BeaulacGhislain Beaulac
authored andcommitted
prepare release 1.0.19
1 parent b9d1d3b commit e06e32b

22 files changed

+606
-349
lines changed

dist.tgz

10 KB
Binary file not shown.

dist/angular-slickgrid.metadata.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export declare class Constants {
2+
static TEXT_CLEAR_ALL_FILTERS: string;
3+
static TEXT_CLEAR_ALL_SORTING: string;
4+
static TEXT_COLUMNS: string;
5+
static TEXT_COMMANDS: string;
6+
static TEXT_EXPORT_IN_CSV_FORMAT: string;
7+
static TEXT_EXPORT_IN_TEXT_FORMAT: string;
8+
static TEXT_FORCE_FIT_COLUMNS: string;
9+
static TEXT_HIDE_COLUMN: string;
10+
static TEXT_REFRESH_DATASET: string;
11+
static TEXT_SYNCHRONOUS_RESIZE: string;
12+
static TEXT_SORT_ASCENDING: string;
13+
static TEXT_SORT_DESCENDING: string;
14+
static TEXT_TOGGLE_FILTER_ROW: string;
15+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Column, OperatorString, SearchTerm } from './../models/index';
1+
import { Column, OperatorString, OperatorType, SearchTerm } from './../models/index';
22
export interface FilterCallbackArg {
33
clearFilterTriggered?: boolean;
44
columnDef: Column;
5-
operator?: OperatorString;
5+
operator?: OperatorType | OperatorString;
66
searchTerms?: SearchTerm[];
77
}
88
export declare type FilterCallback = (e: Event | undefined, args: FilterCallbackArg) => void;

dist/app/modules/angular-slickgrid/models/gridMenu.interface.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ export interface GridMenu {
44
customItems?: GridMenuItem[];
55
/** Defaults to "Commands" which is the title that shows up over the custom commands list */
66
customTitle?: string;
7+
/** Same as "customTitle", except that it's a translation key which can be used on page load and/or when switching locale */
8+
customTitleKey?: string;
79
/** Defaults to "Columns" which is the title that shows up over the columns */
810
columnTitle?: string;
11+
/** Same as "columnTitle", except that it's a translation key which can be used on page load and/or when switching locale */
12+
columnTitleKey?: string;
913
/** Defaults to "Force fit columns" which is 1 of the last 2 checkbox title shown at the end of the picker list */
1014
forceFitTitle?: string;
15+
/** Same as "forceFitTitle", except that it's a translation key which can be used on page load and/or when switching locale */
16+
forceFitTitleKey?: string;
1117
/** Defaults to false, which will hide the "Clear All Filters" command in the Grid Menu (Grid Option "enableFiltering: true" has to be enabled) */
1218
hideClearAllFiltersCommand?: boolean;
1319
/** Defaults to false, which will hide the "Clear All Sorting" command in the Grid Menu (Grid Option "enableSorting: true" has to be enabled) */
@@ -48,6 +54,8 @@ export interface GridMenu {
4854
resizeOnShowHeaderRow?: boolean;
4955
/** Defaults to "Synchronous resize" which is 1 of the last 2 checkbox title shown at the end of the picker list */
5056
syncResizeTitle?: string;
57+
/** Same as "syncResizeTitle", except that it's a translation key which can be used on page load and/or when switching locale */
58+
syncResizeTitleKey?: string;
5159
/** SlickGrid Event fired before the menu is shown. */
5260
onBeforeMenuShow?: (e: Event, args: any) => void;
5361
/** SlickGrid Event fired when any of the columns checkbox selection changes. */

dist/app/modules/angular-slickgrid/models/gridMenuItem.interface.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
export interface GridMenuItem {
22
/** Menu item text to show in the list. */
3-
title: string;
3+
title?: string;
4+
/** Same as "title", except that it's a translation key which can be used on page load and/or when switching locale */
5+
titleKey?: string;
46
/** A command identifier to be passed to the onCommand event callback handlers. */
57
command: string;
68
/** Defaults to false, whether the item is disabled. */

dist/app/modules/angular-slickgrid/models/headerMenuItem.interface.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ export interface HeaderMenuItem {
1010
/** position order in the list, a lower number will make it on top of the list. Internal commands starts at 50. */
1111
positionOrder?: number;
1212
/** Menu item text to show in the list. */
13-
title: string;
13+
title?: string;
14+
/** Same as "title", except that it's a translation key which can be used on page load and/or when switching locale */
15+
titleKey?: string;
1416
/** Item tooltip to show while hovering the command. */
1517
tooltip?: string;
1618
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export declare type OperatorString = '' | '<>' | '!=' | '=' | '==' | '>' | '>=' | '<' | '<=' | '*' | 'EQ' | 'GE' | 'GT' | 'NE' | 'LE' | 'LT' | 'IN' | 'NIN' | 'NOT_IN';
1+
export declare type OperatorString = '' | '<>' | '!=' | '=' | '==' | '>' | '>=' | '<' | '<=' | '*' | 'a*' | '*z' | 'EQ' | 'GE' | 'GT' | 'NE' | 'LE' | 'LT' | 'IN' | 'NIN' | 'NOT_IN' | 'IN_CONTAINS' | 'NIN_CONTAINS' | 'NOT_IN_CONTAINS';
Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,34 @@
11
export declare enum OperatorType {
2+
/** value is empty */
23
empty = "",
4+
/** value contains x */
35
contains = "Contains",
6+
/** value less than x */
47
lessThan = "LT",
8+
/** value less than or equal to x */
59
lessThanOrEqual = "LE",
10+
/** value greater than x */
611
greaterThan = "GT",
12+
/** value great than or equal to x */
713
greaterThanOrEqual = "GE",
14+
/** value not equal to x */
815
notEqual = "NE",
16+
/** value equal to x */
917
equal = "EQ",
18+
/** String ends with value */
1019
endsWith = "EndsWith",
20+
/** String starts with value */
1121
startsWith = "StartsWith",
22+
/** Find an equal match inside a collection */
1223
in = "IN",
13-
notIn = "NIN",
24+
/** Inverse (Not In) of an equal match inside a collection */
25+
notIn = "NOT_IN",
26+
/**
27+
* Find a substring contained inside a collection
28+
* For example, this condition would return True with "IN_CONTAINS":: value='Task2,Task3', collection=['Task2','Task3']
29+
* This would have returned False with "IN" because 'Task2' does not equal 'Task2,Task3'. However 'Task2' is contained in 'Task2,Task3'
30+
*/
31+
inContains = "IN_CONTAINS",
32+
/** Inversed (Not In) of substring contained inside a collection */
33+
notInContains = "NOT_IN_CONTAINS",
1434
}

dist/app/modules/angular-slickgrid/services/controlAndPlugin.service.d.ts

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,11 @@ export declare class ControlAndPluginService {
9090
private addGridMenuCustomCommands();
9191
/**
9292
* Create Header Menu with Custom Commands if user has enabled Header Menu
93-
* @param grid
94-
* @param dataView
9593
* @param options
9694
* @param columnDefinitions
9795
* @return header menu
9896
*/
99-
private addHeaderMenuCustomCommands(grid, dataView, options, columnDefinitions);
97+
private addHeaderMenuCustomCommands(options, columnDefinitions);
10098
/** Execute the Header Menu Commands that was triggered by the onCommand subscribe */
10199
executeHeaderMenuInternalCommands(e: Event, args: HeaderMenuOnCommandArgs): void;
102100
/**
@@ -134,6 +132,7 @@ export declare class ControlAndPluginService {
134132
* calling setColumns() will trigger a grid re-render
135133
*/
136134
renderColumnHeaders(newColumnDefinitions?: Column[]): void;
135+
private emptyGridMenuTitles();
137136
/**
138137
* @return default Grid Menu options
139138
*/
@@ -142,12 +141,13 @@ export declare class ControlAndPluginService {
142141
* @return default Header Menu options
143142
*/
144143
private getDefaultHeaderMenuOptions();
145-
private getDefaultTranslationByKey(key);
146144
/**
147-
* Reset all the Grid Menu options which have text to translate
148-
* @param grid menu object
145+
* From a Grid Menu object property name, we will return the correct title output string following this order
146+
* 1- if user provided a title, use it as the output title
147+
* 2- else if user provided a title key, use it to translate the output title
148+
* 3- else if nothing is provided use
149149
*/
150-
private resetGridMenuTranslations(gridMenu);
150+
private getGridMenuTitleOutputString(propName);
151151
/**
152152
* Reset all the Grid Menu options which have text to translate
153153
* @param grid menu object
@@ -160,9 +160,6 @@ export declare class ControlAndPluginService {
160160
* @return sorted array
161161
*/
162162
private sortItems(items, propertyName);
163-
/**
164-
* Translate the columns headerKey
165-
* Note that this is done through pointers so we don't need to return anything to see them translated
166-
*/
167-
private translateHeaderKeys(columns);
163+
/** Translate the an array of items from an input key and assign to the output key */
164+
private translateItems(items, inputKey, outputKey);
168165
}

0 commit comments

Comments
 (0)