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

Commit f4993e5

Browse files
Ghislain BeaulacGhislain Beaulac
Ghislain Beaulac
authored and
Ghislain Beaulac
committed
prepare release 1.5.0
1 parent fca43e8 commit f4993e5

20 files changed

+170
-143
lines changed

dist.tgz

1.42 KB
Binary file not shown.

dist/angular-slickgrid.metadata.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/app/modules/angular-slickgrid/editors/selectEditor.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { TranslateService } from '@ngx-translate/core';
2-
import { Column, Editor, EditorCustomStructure, EditorValidator, EditorValidatorOutput, GridOption, MultipleSelectOption } from './../models/index';
2+
import { CollectionCustomStructure, CollectionOption, Column, Editor, EditorValidator, EditorValidatorOutput, GridOption, MultipleSelectOption } from './../models/index';
33
import { CollectionService } from '../services/index';
44
import { Subscription } from 'rxjs/Subscription';
55
/**
@@ -37,12 +37,14 @@ export declare class SelectEditor implements Editor {
3737
constructor(args: any, isMultipleSelect: any);
3838
/** Get the Collection */
3939
readonly collection: any[];
40+
/** Getter for the Collection Options */
41+
readonly collectionOptions: CollectionOption;
4042
/** Get Column Definition object */
4143
readonly columnDef: Column;
4244
/** Get Column Editor object */
4345
readonly columnEditor: any;
4446
/** Getter for the Custom Structure if exist */
45-
protected readonly customStructure: EditorCustomStructure;
47+
protected readonly customStructure: CollectionCustomStructure;
4648
/**
4749
* The current selected values (multiple select) from the collection
4850
*/

dist/app/modules/angular-slickgrid/filters/selectFilter.d.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { TranslateService } from '@ngx-translate/core';
2-
import { Column, ColumnFilter, Filter, FilterArguments, FilterCallback, FilterCustomStructure, GridOption, MultipleSelectOption, OperatorType, OperatorString, SearchTerm } from './../models/index';
2+
import { CollectionCustomStructure, CollectionOption, Column, ColumnFilter, Filter, FilterArguments, FilterCallback, GridOption, MultipleSelectOption, OperatorType, OperatorString, SearchTerm } from './../models/index';
33
import { CollectionService } from './../services/collection.service';
44
import { Observable } from 'rxjs/Observable';
55
import { Subject } from 'rxjs/Subject';
@@ -25,12 +25,14 @@ export declare class SelectFilter implements Filter {
2525
* Initialize the Filter
2626
*/
2727
constructor(translate: TranslateService, collectionService: CollectionService, isMultipleSelect?: boolean);
28-
/** Getter for the Grid Options pulled through the Grid Object */
29-
protected readonly gridOptions: GridOption;
3028
/** Getter for the Column Filter itself */
3129
protected readonly columnFilter: ColumnFilter;
30+
/** Getter for the Collection Options */
31+
protected readonly collectionOptions: CollectionOption;
3232
/** Getter for the Custom Structure if exist */
33-
protected readonly customStructure: FilterCustomStructure;
33+
protected readonly customStructure: CollectionCustomStructure;
34+
/** Getter for the Grid Options pulled through the Grid Object */
35+
protected readonly gridOptions: GridOption;
3436
/** Getter for the filter operator */
3537
readonly operator: OperatorType | OperatorString;
3638
/**
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export interface CollectionCustomStructure {
2+
/** your custom property name to for the "label" (text displayed in the select dropdown UI) */
3+
label: string;
4+
/** your custom property name to use for the "value" (equals of the "option" in a select dropdown) */
5+
value: string;
6+
/** an optional prefix that will be prepended before the label text */
7+
labelPrefix?: string;
8+
/** an optional suffix that will be appended to the label text */
9+
labelSuffix?: string;
10+
}

dist/app/modules/angular-slickgrid/models/editorCustomStructure.interface.d.ts renamed to dist/app/modules/angular-slickgrid/models/collectionOption.interface.d.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
export interface EditorCustomStructure {
2-
/** your custom property name to for the "label" (text displayed in the select dropdown UI) */
3-
label: string;
4-
/** your custom property name to use for the "value" (equals of the "option" in a select dropdown) */
5-
value: string;
6-
/** an optional prefix that will be prepended before the label text */
7-
labelPrefix?: string;
8-
/** an optional suffix that will be appended to the label text */
9-
labelSuffix?: string;
1+
export interface CollectionOption {
102
/**
113
* Optionally add a blank entry to the beginning of the collection.
124
* Useful when we want to return all data by setting an empty filter that might not exist in the original collection

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CollectionFilterBy, CollectionSortBy, EditorCustomStructure, EditorValidator, MultipleSelectOption } from './../models/index';
1+
import { CollectionCustomStructure, CollectionFilterBy, CollectionOption, CollectionSortBy, EditorValidator, MultipleSelectOption } from './../models/index';
22
import { Observable } from 'rxjs/Observable';
33
export interface ColumnEditor {
44
/** A collection of items/options that will be loaded asynchronously (commonly used with a Select/Multi-Select Editor) */
@@ -7,8 +7,12 @@ export interface ColumnEditor {
77
collection?: any[];
88
/** We could filter some items from the collection */
99
collectionFilterBy?: CollectionFilterBy;
10+
/** Options to change the behavior of the "collection" */
11+
collectionOptions?: CollectionOption;
1012
/** We could sort the collection by their value, or by translated value when enableTranslateLabel is True */
1113
collectionSortBy?: CollectionSortBy;
14+
/** A custom structure can be used instead of the default label/value pair. Commonly used with Select/Multi-Select Editor */
15+
customStructure?: CollectionCustomStructure;
1216
/** Options that could be provided to the Editor, example: { container: 'body', maxHeight: 250} */
1317
editorOptions?: MultipleSelectOption | any;
1418
/**
@@ -30,8 +34,6 @@ export interface ColumnEditor {
3034
validator?: EditorValidator;
3135
/** Step value of the filter, works only with Filters supporting it (input text, number, float, range, slider) */
3236
valueStep?: number | string;
33-
/** A custom structure can be used instead of the default label/value pair. Commonly used with Select/Multi-Select Editor */
34-
customStructure?: EditorCustomStructure;
3537
/** DOM element extra options */
3638
elementOptions?: any;
3739
/**

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CollectionFilterBy, CollectionSortBy, Column, Filter, FilterCustomStructure, MultipleSelectOption, OperatorString, OperatorType, SearchTerm } from './../models/index';
1+
import { CollectionCustomStructure, CollectionFilterBy, CollectionOption, CollectionSortBy, Column, Filter, MultipleSelectOption, OperatorString, OperatorType, SearchTerm } from './../models/index';
22
import { Observable } from 'rxjs/Observable';
33
import { Subject } from 'rxjs/Subject';
44
export interface ColumnFilter {
@@ -24,10 +24,14 @@ export interface ColumnFilter {
2424
collectionAsync?: Promise<any> | Observable<any> | Subject<any>;
2525
/** A collection of items/options (commonly used with a Select/Multi-Select Filter) */
2626
collection?: any[];
27+
/** Options to change the behavior of the "collection" */
28+
collectionOptions?: CollectionOption;
2729
/** We could filter some items from the collection */
2830
collectionFilterBy?: CollectionFilterBy;
2931
/** We could sort the collection by their value, or by translated value when enableTranslateLabel is True */
3032
collectionSortBy?: CollectionSortBy;
33+
/** A custom structure can be used instead of the default label/value pair. Commonly used with Select/Multi-Select Filter */
34+
customStructure?: CollectionCustomStructure;
3135
/** Options that could be provided to the Filter, example: { container: 'body', maxHeight: 250} */
3236
filterOptions?: MultipleSelectOption | any;
3337
/**
@@ -37,8 +41,6 @@ export interface ColumnFilter {
3741
enableRenderHtml?: boolean;
3842
/** Do we want the Filter to handle translation (localization)? */
3943
enableTranslateLabel?: boolean;
40-
/** A custom structure can be used instead of the default label/value pair. Commonly used with Select/Multi-Select Filter */
41-
customStructure?: FilterCustomStructure;
4244
/**
4345
* Use "params" to pass any type of arguments to your Custom Filter
4446
* for example, to pass a second collection to a select Filter we can type this:

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

Lines changed: 0 additions & 26 deletions
This file was deleted.

dist/app/modules/angular-slickgrid/models/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ export * from './backendServiceOption.interface';
88
export * from './caseType';
99
export * from './cellArgs.interface';
1010
export * from './checkboxSelector.interface';
11+
export * from './collectionCustomStructure.interface';
1112
export * from './collectionFilterBy.interface';
13+
export * from './collectionOption.interface';
1214
export * from './collectionSortBy.interface';
1315
export * from './column.interface';
1416
export * from './columnEditor.interface';
@@ -23,7 +25,6 @@ export * from './currentSorter.interface';
2325
export * from './delimiterType.enum';
2426
export * from './editCommand.interface';
2527
export * from './editor.interface';
26-
export * from './editorCustomStructure.interface';
2728
export * from './editorValidator.interface';
2829
export * from './editorValidatorOutput.interface';
2930
export * from './exportOption.interface';
@@ -36,7 +37,6 @@ export * from './filterCallback.interface';
3637
export * from './filterChangedArgs.interface';
3738
export * from './filterCondition.interface';
3839
export * from './filterConditionOption.interface';
39-
export * from './filterCustomStructure.interface';
4040
export * from './formatter.interface';
4141
export * from './graphqlDatasetFilter.interface';
4242
export * from './graphqlCursorPaginationOption.interface';

dist/bundles/angular-slickgrid.umd.js

Lines changed: 34 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)