@slickgrid-universal/vanilla-bundle 2.4.1 → 2.6.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/dist/commonjs/components/slick-vanilla-grid-bundle.js +1201 -1201
- package/dist/commonjs/index.js +55 -55
- package/dist/commonjs/interfaces/index.js +17 -17
- package/dist/commonjs/interfaces/slickerGridInstance.interface.js +2 -2
- package/dist/commonjs/services/index.js +17 -17
- package/dist/commonjs/services/universalContainer.service.js +25 -25
- package/dist/esm/components/slick-vanilla-grid-bundle.js +1201 -1201
- package/dist/esm/index.js +28 -28
- package/dist/esm/interfaces/index.js +1 -1
- package/dist/esm/interfaces/slickerGridInstance.interface.js +1 -1
- package/dist/esm/services/index.js +1 -1
- package/dist/esm/services/universalContainer.service.js +21 -21
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/{commonjs → types}/components/slick-vanilla-grid-bundle.d.ts +328 -327
- package/dist/types/components/slick-vanilla-grid-bundle.d.ts.map +1 -0
- package/dist/{commonjs → types}/index.d.ts +249 -247
- package/dist/types/index.d.ts.map +1 -0
- package/dist/{esm → types}/interfaces/index.d.ts +2 -1
- package/dist/types/interfaces/index.d.ts.map +1 -0
- package/dist/{esm → types}/interfaces/slickerGridInstance.interface.d.ts +37 -36
- package/dist/types/interfaces/slickerGridInstance.interface.d.ts.map +1 -0
- package/dist/{commonjs → types}/services/index.d.ts +2 -1
- package/dist/types/services/index.d.ts.map +1 -0
- package/dist/{commonjs → types}/services/universalContainer.service.d.ts +8 -7
- package/dist/types/services/universalContainer.service.d.ts.map +1 -0
- package/package.json +15 -15
- package/dist/commonjs/interfaces/index.d.ts +0 -1
- package/dist/commonjs/interfaces/slickerGridInstance.interface.d.ts +0 -36
- package/dist/esm/components/slick-vanilla-grid-bundle.d.ts +0 -327
- package/dist/esm/index.d.ts +0 -247
- package/dist/esm/services/index.d.ts +0 -1
- package/dist/esm/services/universalContainer.service.d.ts +0 -7
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { BackendService, ExtensionService, ExtensionUtility, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, SlickDataView, SlickGrid, SortService, TreeDataService } from '@slickgrid-universal/common';
|
|
2
|
-
import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
|
|
3
|
-
export interface SlickerGridInstance {
|
|
4
|
-
/** Slick DataView object */
|
|
5
|
-
dataView: SlickDataView;
|
|
6
|
-
/** Slick Grid object */
|
|
7
|
-
slickGrid: SlickGrid;
|
|
8
|
-
/** Dispose of the grid and optionally empty the DOM element grid container as well */
|
|
9
|
-
dispose: (emptyDomElementContainer?: boolean) => void;
|
|
10
|
-
/** Backend Service, when available */
|
|
11
|
-
backendService?: BackendService;
|
|
12
|
-
/** EventPubSub Service instance that is used internal by the lib and could be used externally to subscribe to Slickgrid-Universal events */
|
|
13
|
-
eventPubSubService?: EventPubSubService;
|
|
14
|
-
/** Extension (Controls & Plugins) Service */
|
|
15
|
-
extensionService: ExtensionService;
|
|
16
|
-
/** Extension Utilities */
|
|
17
|
-
extensionUtility: ExtensionUtility;
|
|
18
|
-
/** Filter Service */
|
|
19
|
-
filterService: FilterService;
|
|
20
|
-
/** Grid Service (grid extra functionalities) */
|
|
21
|
-
gridService: GridService;
|
|
22
|
-
/** Grid Events Service */
|
|
23
|
-
gridEventService: GridEventService;
|
|
24
|
-
/** Grid State Service */
|
|
25
|
-
gridStateService: GridStateService;
|
|
26
|
-
/** Grouping (and colspan) Service */
|
|
27
|
-
groupingService: GroupingAndColspanService;
|
|
28
|
-
/** Pagination Service (allows you to programmatically go to first/last page, etc...) */
|
|
29
|
-
paginationService: PaginationService;
|
|
30
|
-
/** Resizer Service (including auto-resize) */
|
|
31
|
-
resizerService: ResizerService;
|
|
32
|
-
/** Sort Service */
|
|
33
|
-
sortService: SortService;
|
|
34
|
-
/** Tree Data View Service */
|
|
35
|
-
treeDataService: TreeDataService;
|
|
36
|
-
}
|
|
1
|
+
import { BackendService, ExtensionService, ExtensionUtility, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, SlickDataView, SlickGrid, SortService, TreeDataService } from '@slickgrid-universal/common';
|
|
2
|
+
import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
|
|
3
|
+
export interface SlickerGridInstance {
|
|
4
|
+
/** Slick DataView object */
|
|
5
|
+
dataView: SlickDataView;
|
|
6
|
+
/** Slick Grid object */
|
|
7
|
+
slickGrid: SlickGrid;
|
|
8
|
+
/** Dispose of the grid and optionally empty the DOM element grid container as well */
|
|
9
|
+
dispose: (emptyDomElementContainer?: boolean) => void;
|
|
10
|
+
/** Backend Service, when available */
|
|
11
|
+
backendService?: BackendService;
|
|
12
|
+
/** EventPubSub Service instance that is used internal by the lib and could be used externally to subscribe to Slickgrid-Universal events */
|
|
13
|
+
eventPubSubService?: EventPubSubService;
|
|
14
|
+
/** Extension (Controls & Plugins) Service */
|
|
15
|
+
extensionService: ExtensionService;
|
|
16
|
+
/** Extension Utilities */
|
|
17
|
+
extensionUtility: ExtensionUtility;
|
|
18
|
+
/** Filter Service */
|
|
19
|
+
filterService: FilterService;
|
|
20
|
+
/** Grid Service (grid extra functionalities) */
|
|
21
|
+
gridService: GridService;
|
|
22
|
+
/** Grid Events Service */
|
|
23
|
+
gridEventService: GridEventService;
|
|
24
|
+
/** Grid State Service */
|
|
25
|
+
gridStateService: GridStateService;
|
|
26
|
+
/** Grouping (and colspan) Service */
|
|
27
|
+
groupingService: GroupingAndColspanService;
|
|
28
|
+
/** Pagination Service (allows you to programmatically go to first/last page, etc...) */
|
|
29
|
+
paginationService: PaginationService;
|
|
30
|
+
/** Resizer Service (including auto-resize) */
|
|
31
|
+
resizerService: ResizerService;
|
|
32
|
+
/** Sort Service */
|
|
33
|
+
sortService: SortService;
|
|
34
|
+
/** Tree Data View Service */
|
|
35
|
+
treeDataService: TreeDataService;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=slickerGridInstance.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slickerGridInstance.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/slickerGridInstance.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,yBAAyB,EACzB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,SAAS,EACT,WAAW,EACX,eAAe,EAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,MAAM,WAAW,mBAAmB;IAClC,4BAA4B;IAC5B,QAAQ,EAAE,aAAa,CAAC;IAExB,wBAAwB;IACxB,SAAS,EAAE,SAAS,CAAC;IAKrB,sFAAsF;IACtF,OAAO,EAAE,CAAC,wBAAwB,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAKtD,sCAAsC;IACtC,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC,4IAA4I;IAC5I,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC,6CAA6C;IAC7C,gBAAgB,EAAE,gBAAgB,CAAC;IAEnC,0BAA0B;IAC1B,gBAAgB,EAAE,gBAAgB,CAAC;IAEnC,qBAAqB;IACrB,aAAa,EAAE,aAAa,CAAC;IAE7B,gDAAgD;IAChD,WAAW,EAAE,WAAW,CAAC;IAEzB,0BAA0B;IAC1B,gBAAgB,EAAE,gBAAgB,CAAC;IAEnC,yBAAyB;IACzB,gBAAgB,EAAE,gBAAgB,CAAC;IAEnC,qCAAqC;IACrC,eAAe,EAAE,yBAAyB,CAAC;IAE3C,wFAAwF;IACxF,iBAAiB,EAAE,iBAAiB,CAAC;IAErC,8CAA8C;IAC9C,cAAc,EAAE,cAAc,CAAC;IAE/B,mBAAmB;IACnB,WAAW,EAAE,WAAW,CAAC;IAEzB,6BAA6B;IAC7B,eAAe,EAAE,eAAe,CAAC;CAClC"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from './universalContainer.service';
|
|
1
|
+
export * from './universalContainer.service';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ContainerInstance, ContainerService } from '@slickgrid-universal/common';
|
|
2
|
-
export declare class UniversalContainerService implements ContainerService {
|
|
3
|
-
dependencies: ContainerInstance[];
|
|
4
|
-
get<T = any>(key: string): T | null;
|
|
5
|
-
dispose(): void;
|
|
6
|
-
registerInstance(key: string, instance: any): void;
|
|
7
|
-
}
|
|
1
|
+
import { ContainerInstance, ContainerService } from '@slickgrid-universal/common';
|
|
2
|
+
export declare class UniversalContainerService implements ContainerService {
|
|
3
|
+
dependencies: ContainerInstance[];
|
|
4
|
+
get<T = any>(key: string): T | null;
|
|
5
|
+
dispose(): void;
|
|
6
|
+
registerInstance(key: string, instance: any): void;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=universalContainer.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"universalContainer.service.d.ts","sourceRoot":"","sources":["../../../src/services/universalContainer.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAElF,qBAAa,yBAA0B,YAAW,gBAAgB;IAChE,YAAY,EAAE,iBAAiB,EAAE,CAAM;IAEvC,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI;IAQnC,OAAO;IAIP,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG;CAM5C"}
|
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slickgrid-universal/vanilla-bundle",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Vanilla Slick Grid Bundle - Framework agnostic the output is to be used in vanilla JS/TS - Written in TypeScript and we also use WebPack to bundle everything into 1 JS file.",
|
|
5
5
|
"main": "dist/commonjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
9
|
+
"import": "./dist/esm/index.js",
|
|
10
|
+
"require": "./dist/commonjs/index.js",
|
|
11
|
+
"default": "./dist/esm/index.js"
|
|
12
12
|
},
|
|
13
13
|
"./*": "./*"
|
|
14
14
|
},
|
|
15
15
|
"typesVersions": {
|
|
16
16
|
"*": {
|
|
17
17
|
"*": [
|
|
18
|
-
"./dist/
|
|
18
|
+
"./dist/types/index.d.ts"
|
|
19
19
|
]
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
-
"types": "dist/
|
|
22
|
+
"types": "dist/types/index.d.ts",
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"not dead"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@slickgrid-universal/binding": "~2.
|
|
47
|
-
"@slickgrid-universal/common": "~2.
|
|
48
|
-
"@slickgrid-universal/custom-footer-component": "~2.
|
|
49
|
-
"@slickgrid-universal/empty-warning-component": "~2.
|
|
50
|
-
"@slickgrid-universal/event-pub-sub": "~2.
|
|
51
|
-
"@slickgrid-universal/pagination-component": "~2.
|
|
52
|
-
"@slickgrid-universal/utils": "~2.
|
|
46
|
+
"@slickgrid-universal/binding": "~2.6.0",
|
|
47
|
+
"@slickgrid-universal/common": "~2.6.0",
|
|
48
|
+
"@slickgrid-universal/custom-footer-component": "~2.6.0",
|
|
49
|
+
"@slickgrid-universal/empty-warning-component": "~2.6.0",
|
|
50
|
+
"@slickgrid-universal/event-pub-sub": "~2.6.0",
|
|
51
|
+
"@slickgrid-universal/pagination-component": "~2.6.0",
|
|
52
|
+
"@slickgrid-universal/utils": "~2.6.0",
|
|
53
53
|
"dequal": "^2.0.3",
|
|
54
54
|
"flatpickr": "^4.6.13",
|
|
55
55
|
"jquery": "^3.6.3",
|
|
56
|
-
"slickgrid": "^3.0.
|
|
56
|
+
"slickgrid": "^3.0.4",
|
|
57
57
|
"sortablejs": "^1.15.0",
|
|
58
58
|
"whatwg-fetch": "^3.6.2"
|
|
59
59
|
},
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"type": "ko_fi",
|
|
62
62
|
"url": "https://ko-fi.com/ghiscoding"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "9cddf3ee91a91ca829d0ced99c1f20f6d0e9941f"
|
|
65
65
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './slickerGridInstance.interface';
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { BackendService, ExtensionService, ExtensionUtility, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, SlickDataView, SlickGrid, SortService, TreeDataService } from '@slickgrid-universal/common';
|
|
2
|
-
import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
|
|
3
|
-
export interface SlickerGridInstance {
|
|
4
|
-
/** Slick DataView object */
|
|
5
|
-
dataView: SlickDataView;
|
|
6
|
-
/** Slick Grid object */
|
|
7
|
-
slickGrid: SlickGrid;
|
|
8
|
-
/** Dispose of the grid and optionally empty the DOM element grid container as well */
|
|
9
|
-
dispose: (emptyDomElementContainer?: boolean) => void;
|
|
10
|
-
/** Backend Service, when available */
|
|
11
|
-
backendService?: BackendService;
|
|
12
|
-
/** EventPubSub Service instance that is used internal by the lib and could be used externally to subscribe to Slickgrid-Universal events */
|
|
13
|
-
eventPubSubService?: EventPubSubService;
|
|
14
|
-
/** Extension (Controls & Plugins) Service */
|
|
15
|
-
extensionService: ExtensionService;
|
|
16
|
-
/** Extension Utilities */
|
|
17
|
-
extensionUtility: ExtensionUtility;
|
|
18
|
-
/** Filter Service */
|
|
19
|
-
filterService: FilterService;
|
|
20
|
-
/** Grid Service (grid extra functionalities) */
|
|
21
|
-
gridService: GridService;
|
|
22
|
-
/** Grid Events Service */
|
|
23
|
-
gridEventService: GridEventService;
|
|
24
|
-
/** Grid State Service */
|
|
25
|
-
gridStateService: GridStateService;
|
|
26
|
-
/** Grouping (and colspan) Service */
|
|
27
|
-
groupingService: GroupingAndColspanService;
|
|
28
|
-
/** Pagination Service (allows you to programmatically go to first/last page, etc...) */
|
|
29
|
-
paginationService: PaginationService;
|
|
30
|
-
/** Resizer Service (including auto-resize) */
|
|
31
|
-
resizerService: ResizerService;
|
|
32
|
-
/** Sort Service */
|
|
33
|
-
sortService: SortService;
|
|
34
|
-
/** Tree Data View Service */
|
|
35
|
-
treeDataService: TreeDataService;
|
|
36
|
-
}
|
|
@@ -1,327 +0,0 @@
|
|
|
1
|
-
import 'jquery';
|
|
2
|
-
import 'flatpickr/dist/l10n/fr';
|
|
3
|
-
import 'slickgrid/slick.core';
|
|
4
|
-
import 'slickgrid/slick.interactions';
|
|
5
|
-
import 'slickgrid/slick.grid';
|
|
6
|
-
import 'slickgrid/slick.dataview';
|
|
7
|
-
import { BackendServiceApi, Column, ExtensionList, ExternalResource, GridOption, Metrics, Pagination, ServicePagination, SlickDataView, SlickEventHandler, SlickGrid, SlickGroupItemMetadataProvider, Subscription, BackendUtilityService, CollectionService, ExtensionService, ExtensionUtility, FilterFactory, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, Observable, PaginationService, ResizerService, RxJsFacade, SharedService, SortService, TranslaterService, TreeDataService } from '@slickgrid-universal/common';
|
|
8
|
-
import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
|
|
9
|
-
import { SlickEmptyWarningComponent } from '@slickgrid-universal/empty-warning-component';
|
|
10
|
-
import { SlickFooterComponent } from '@slickgrid-universal/custom-footer-component';
|
|
11
|
-
import { SlickPaginationComponent } from '@slickgrid-universal/pagination-component';
|
|
12
|
-
import { SlickerGridInstance } from '../interfaces/slickerGridInstance.interface';
|
|
13
|
-
import { UniversalContainerService } from '../services/universalContainer.service';
|
|
14
|
-
export declare class SlickVanillaGridBundle {
|
|
15
|
-
protected _currentDatasetLength: number;
|
|
16
|
-
protected _eventPubSubService: EventPubSubService;
|
|
17
|
-
protected _columnDefinitions?: Column[];
|
|
18
|
-
protected _gridOptions?: GridOption;
|
|
19
|
-
protected _gridContainerElm: HTMLElement;
|
|
20
|
-
protected _gridParentContainerElm: HTMLElement;
|
|
21
|
-
protected _hideHeaderRowAfterPageLoad: boolean;
|
|
22
|
-
protected _isDatasetInitialized: boolean;
|
|
23
|
-
protected _isDatasetHierarchicalInitialized: boolean;
|
|
24
|
-
protected _isGridInitialized: boolean;
|
|
25
|
-
protected _isLocalGrid: boolean;
|
|
26
|
-
protected _isPaginationInitialized: boolean;
|
|
27
|
-
protected _eventHandler: SlickEventHandler;
|
|
28
|
-
protected _extensions: ExtensionList<any> | undefined;
|
|
29
|
-
protected _paginationOptions: Pagination | undefined;
|
|
30
|
-
protected _registeredResources: ExternalResource[];
|
|
31
|
-
protected _slickgridInitialized: boolean;
|
|
32
|
-
protected _slickerGridInstances: SlickerGridInstance | undefined;
|
|
33
|
-
backendServiceApi: BackendServiceApi | undefined;
|
|
34
|
-
dataView?: SlickDataView;
|
|
35
|
-
slickGrid?: SlickGrid;
|
|
36
|
-
metrics?: Metrics;
|
|
37
|
-
customDataView: boolean;
|
|
38
|
-
paginationData?: {
|
|
39
|
-
gridOptions: GridOption;
|
|
40
|
-
paginationService: PaginationService;
|
|
41
|
-
};
|
|
42
|
-
totalItems: number;
|
|
43
|
-
groupItemMetadataProvider?: SlickGroupItemMetadataProvider;
|
|
44
|
-
resizerService: ResizerService;
|
|
45
|
-
subscriptions: Subscription[];
|
|
46
|
-
showPagination: boolean;
|
|
47
|
-
extensionUtility: ExtensionUtility;
|
|
48
|
-
backendUtilityService: BackendUtilityService;
|
|
49
|
-
collectionService: CollectionService;
|
|
50
|
-
extensionService: ExtensionService;
|
|
51
|
-
filterFactory: FilterFactory;
|
|
52
|
-
filterService: FilterService;
|
|
53
|
-
gridClass: string;
|
|
54
|
-
gridClassName: string;
|
|
55
|
-
gridEventService: GridEventService;
|
|
56
|
-
gridService: GridService;
|
|
57
|
-
gridStateService: GridStateService;
|
|
58
|
-
groupingService: GroupingAndColspanService;
|
|
59
|
-
paginationService: PaginationService;
|
|
60
|
-
rxjs?: RxJsFacade;
|
|
61
|
-
sharedService: SharedService;
|
|
62
|
-
sortService: SortService;
|
|
63
|
-
translaterService: TranslaterService | undefined;
|
|
64
|
-
treeDataService: TreeDataService;
|
|
65
|
-
universalContainerService: UniversalContainerService;
|
|
66
|
-
slickEmptyWarning: SlickEmptyWarningComponent | undefined;
|
|
67
|
-
slickFooter: SlickFooterComponent | undefined;
|
|
68
|
-
slickPagination: SlickPaginationComponent | undefined;
|
|
69
|
-
get eventHandler(): SlickEventHandler;
|
|
70
|
-
get columnDefinitions(): Column[];
|
|
71
|
-
set columnDefinitions(columnDefinitions: Column[]);
|
|
72
|
-
get dataset(): any[];
|
|
73
|
-
set dataset(newDataset: any[]);
|
|
74
|
-
get datasetHierarchical(): any[] | undefined;
|
|
75
|
-
set datasetHierarchical(newHierarchicalDataset: any[] | undefined);
|
|
76
|
-
set eventPubSubService(pubSub: EventPubSubService);
|
|
77
|
-
get gridOptions(): GridOption;
|
|
78
|
-
set gridOptions(options: GridOption);
|
|
79
|
-
get paginationOptions(): Pagination | undefined;
|
|
80
|
-
set paginationOptions(newPaginationOptions: Pagination | undefined);
|
|
81
|
-
get isDatasetInitialized(): boolean;
|
|
82
|
-
set isDatasetInitialized(isInitialized: boolean);
|
|
83
|
-
get isGridInitialized(): boolean;
|
|
84
|
-
get instances(): SlickerGridInstance | undefined;
|
|
85
|
-
get extensions(): ExtensionList<any> | undefined;
|
|
86
|
-
get registeredResources(): any[];
|
|
87
|
-
/**
|
|
88
|
-
* Slicker Grid Bundle constructor
|
|
89
|
-
* @param {Object} gridParentContainerElm - div HTML DOM element container
|
|
90
|
-
* @param {Array<Column>} columnDefs - Column Definitions
|
|
91
|
-
* @param {Object} options - Grid Options
|
|
92
|
-
* @param {Array<Object>} dataset - Dataset
|
|
93
|
-
* @param {Array<Object>} hierarchicalDataset - Hierarchical Dataset
|
|
94
|
-
* @param {Object} services - Typically only used for Unit Testing when we want to pass Mocked/Stub Services
|
|
95
|
-
*/
|
|
96
|
-
constructor(gridParentContainerElm: HTMLElement, columnDefs?: Column[], options?: GridOption, dataset?: any[], hierarchicalDataset?: any[], services?: {
|
|
97
|
-
backendUtilityService?: BackendUtilityService;
|
|
98
|
-
collectionService?: CollectionService;
|
|
99
|
-
eventPubSubService?: EventPubSubService;
|
|
100
|
-
extensionService?: ExtensionService;
|
|
101
|
-
extensionUtility?: ExtensionUtility;
|
|
102
|
-
filterService?: FilterService;
|
|
103
|
-
gridEventService?: GridEventService;
|
|
104
|
-
gridService?: GridService;
|
|
105
|
-
gridStateService?: GridStateService;
|
|
106
|
-
groupingAndColspanService?: GroupingAndColspanService;
|
|
107
|
-
paginationService?: PaginationService;
|
|
108
|
-
resizerService?: ResizerService;
|
|
109
|
-
rxjs?: RxJsFacade;
|
|
110
|
-
sharedService?: SharedService;
|
|
111
|
-
sortService?: SortService;
|
|
112
|
-
treeDataService?: TreeDataService;
|
|
113
|
-
translaterService?: TranslaterService;
|
|
114
|
-
universalContainerService?: UniversalContainerService;
|
|
115
|
-
});
|
|
116
|
-
emptyGridContainerElm(): void;
|
|
117
|
-
/** Dispose of the Component */
|
|
118
|
-
dispose(shouldEmptyDomElementContainer?: boolean): void;
|
|
119
|
-
initialization(gridContainerElm: HTMLElement, eventHandler: SlickEventHandler): void;
|
|
120
|
-
mergeGridOptions(gridOptions: GridOption): GridOption;
|
|
121
|
-
/**
|
|
122
|
-
* Define our internal Post Process callback, it will execute internally after we get back result from the Process backend call
|
|
123
|
-
* For now, this is GraphQL Service ONLY feature and it will basically
|
|
124
|
-
* refresh the Dataset & Pagination without having the user to create his own PostProcess every time
|
|
125
|
-
*/
|
|
126
|
-
createBackendApiInternalPostProcessCallback(gridOptions: GridOption): void;
|
|
127
|
-
bindDifferentHooks(grid: SlickGrid, gridOptions: GridOption, dataView: SlickDataView): void;
|
|
128
|
-
bindBackendCallbackFunctions(gridOptions: GridOption): void;
|
|
129
|
-
bindResizeHook(grid: SlickGrid, options: GridOption): void;
|
|
130
|
-
executeAfterDataviewCreated(gridOptions: GridOption): void;
|
|
131
|
-
/**
|
|
132
|
-
* On a Pagination changed, we will trigger a Grid State changed with the new pagination info
|
|
133
|
-
* Also if we use Row Selection or the Checkbox Selector with a Backend Service (Odata, GraphQL), we need to reset any selection
|
|
134
|
-
*/
|
|
135
|
-
paginationChanged(pagination: ServicePagination): void;
|
|
136
|
-
/**
|
|
137
|
-
* When dataset changes, we need to refresh the entire grid UI & possibly resize it as well
|
|
138
|
-
* @param dataset
|
|
139
|
-
*/
|
|
140
|
-
refreshGridData(dataset: any[], totalCount?: number): void;
|
|
141
|
-
/**
|
|
142
|
-
* Dynamically change or update the column definitions list.
|
|
143
|
-
* We will re-render the grid so that the new header and data shows up correctly.
|
|
144
|
-
* If using translater, we also need to trigger a re-translate of the column headers
|
|
145
|
-
*/
|
|
146
|
-
updateColumnDefinitionsList(newColumnDefinitions: Column[]): void;
|
|
147
|
-
/**
|
|
148
|
-
* Show the filter row displayed on first row, we can optionally pass false to hide it.
|
|
149
|
-
* @param showing
|
|
150
|
-
*/
|
|
151
|
-
showHeaderRow(showing?: boolean): boolean;
|
|
152
|
-
/**
|
|
153
|
-
* Check if there's any Pagination Presets defined in the Grid Options,
|
|
154
|
-
* if there are then load them in the paginationOptions object
|
|
155
|
-
*/
|
|
156
|
-
setPaginationOptionsWhenPresetDefined(gridOptions: GridOption, paginationOptions: Pagination): Pagination;
|
|
157
|
-
/**
|
|
158
|
-
* Loop through all column definitions and copy the original optional `width` properties optionally provided by the user.
|
|
159
|
-
* We will use this when doing a resize by cell content, if user provided a `width` it won't override it.
|
|
160
|
-
*/
|
|
161
|
-
protected copyColumnWidthsReference(columnDefinitions: Column[]): void;
|
|
162
|
-
protected displayEmptyDataWarning(showWarning?: boolean): void;
|
|
163
|
-
/** When data changes in the DataView, we'll refresh the metrics and/or display a warning if the dataset is empty */
|
|
164
|
-
protected handleOnItemCountChanged(currentPageRowItemCount: number, totalItemCount: number): void;
|
|
165
|
-
/** Initialize the Pagination Service once */
|
|
166
|
-
protected initializePaginationService(paginationOptions: Pagination): void;
|
|
167
|
-
/**
|
|
168
|
-
* Render (or dispose) the Pagination Component, user can optionally provide False (to not show it) which will in term dispose of the Pagination,
|
|
169
|
-
* also while disposing we can choose to omit the disposable of the Pagination Service (if we are simply toggling the Pagination, we want to keep the Service alive)
|
|
170
|
-
* @param {Boolean} showPagination - show (new render) or not (dispose) the Pagination
|
|
171
|
-
* @param {Boolean} shouldDisposePaginationService - when disposing the Pagination, do we also want to dispose of the Pagination Service? (defaults to True)
|
|
172
|
-
*/
|
|
173
|
-
protected renderPagination(showPagination?: boolean): void;
|
|
174
|
-
/** Load the Editor Collection asynchronously and replace the "collection" property when Promise resolves */
|
|
175
|
-
protected loadEditorCollectionAsync(column: Column): void;
|
|
176
|
-
/** Load any possible Columns Grid Presets */
|
|
177
|
-
protected loadColumnPresetsWhenDatasetInitialized(): void;
|
|
178
|
-
/** Load any possible Filters Grid Presets */
|
|
179
|
-
protected loadFilterPresetsWhenDatasetInitialized(): void;
|
|
180
|
-
/**
|
|
181
|
-
* local grid, check if we need to show the Pagination
|
|
182
|
-
* if so then also check if there's any presets and finally initialize the PaginationService
|
|
183
|
-
* a local grid with Pagination presets will potentially have a different total of items, we'll need to get it from the DataView and update our total
|
|
184
|
-
*/
|
|
185
|
-
protected loadLocalGridPagination(dataset?: any[]): void;
|
|
186
|
-
/** Load any Row Selections into the DataView that were presets by the user */
|
|
187
|
-
protected loadRowSelectionPresetWhenExists(): void;
|
|
188
|
-
/** Pre-Register any Resource that don't require SlickGrid to be instantiated (for example RxJS Resource) */
|
|
189
|
-
protected preRegisterResources(): void;
|
|
190
|
-
protected registerResources(): void;
|
|
191
|
-
/** Register the RxJS Resource in all necessary services which uses */
|
|
192
|
-
protected registerRxJsResource(resource: RxJsFacade): void;
|
|
193
|
-
/**
|
|
194
|
-
* Takes a flat dataset with parent/child relationship, sort it (via its tree structure) and return the sorted flat array
|
|
195
|
-
* @returns {Array<Object>} sort flat parent/child dataset
|
|
196
|
-
*/
|
|
197
|
-
protected sortTreeDataset<T>(flatDatasetInput: T[], forceGridRefresh?: boolean): T[];
|
|
198
|
-
/**
|
|
199
|
-
* For convenience to the user, we provide the property "editor" as an Slickgrid-Universal editor complex object
|
|
200
|
-
* however "editor" is used internally by SlickGrid for it's own Editor Factory
|
|
201
|
-
* so in our lib we will swap "editor" and copy it into a new property called "internalColumnEditor"
|
|
202
|
-
* then take back "editor.model" and make it the new "editor" so that SlickGrid Editor Factory still works
|
|
203
|
-
*/
|
|
204
|
-
protected swapInternalEditorToSlickGridFactoryEditor(columnDefinitions: Column[]): {
|
|
205
|
-
editor: any;
|
|
206
|
-
internalColumnEditor: {
|
|
207
|
-
alwaysSaveOnEnterKey?: boolean | undefined;
|
|
208
|
-
ariaLabel?: string | undefined;
|
|
209
|
-
collectionAsync?: Promise<any> | Observable<any> | undefined;
|
|
210
|
-
collection?: any[] | undefined;
|
|
211
|
-
collectionFilterBy?: import("@slickgrid-universal/common").CollectionFilterBy | import("@slickgrid-universal/common").CollectionFilterBy[] | undefined;
|
|
212
|
-
collectionOptions?: import("@slickgrid-universal/common").CollectionOption | undefined;
|
|
213
|
-
collectionOverride?: ((collectionInput: any[], args: import("@slickgrid-universal/common").CollectionOverrideArgs) => any[]) | undefined;
|
|
214
|
-
collectionSortBy?: import("@slickgrid-universal/common").CollectionSortBy | import("@slickgrid-universal/common").CollectionSortBy[] | undefined;
|
|
215
|
-
complexObjectPath?: string | undefined;
|
|
216
|
-
compositeEditorFormOrder?: number | undefined;
|
|
217
|
-
customStructure?: import("@slickgrid-universal/common").CollectionCustomStructure | undefined;
|
|
218
|
-
decimal?: number | undefined;
|
|
219
|
-
disabled?: boolean | undefined;
|
|
220
|
-
editorOptions?: any;
|
|
221
|
-
enableRenderHtml?: boolean | undefined;
|
|
222
|
-
enableTranslateLabel?: boolean | undefined;
|
|
223
|
-
errorMessage?: string | undefined;
|
|
224
|
-
massUpdate?: boolean | undefined;
|
|
225
|
-
maxLength?: number | undefined;
|
|
226
|
-
maxValue?: string | number | undefined;
|
|
227
|
-
minLength?: number | undefined;
|
|
228
|
-
minValue?: string | number | undefined;
|
|
229
|
-
model?: any;
|
|
230
|
-
placeholder?: string | undefined;
|
|
231
|
-
operatorConditionalType?: "inclusive" | "exclusive" | undefined;
|
|
232
|
-
queryField?: string | undefined;
|
|
233
|
-
required?: boolean | undefined;
|
|
234
|
-
serializeComplexValueFormat?: "object" | "flat" | undefined;
|
|
235
|
-
title?: string | undefined;
|
|
236
|
-
type?: "string" | "number" | "boolean" | "object" | "text" | "unknown" | "integer" | "float" | "date" | "dateIso" | "dateUtc" | "dateTime" | "dateTimeIso" | "dateTimeIsoAmPm" | "dateTimeIsoAM_PM" | "dateTimeShortIso" | "dateEuro" | "dateEuroShort" | "dateTimeShortEuro" | "dateTimeEuro" | "dateTimeEuroAmPm" | "dateTimeEuroAM_PM" | "dateTimeEuroShort" | "dateTimeEuroShortAmPm" | "dateTimeEuroShortAM_PM" | "dateUs" | "dateUsShort" | "dateTimeShortUs" | "dateTimeUs" | "dateTimeUsAmPm" | "dateTimeUsAM_PM" | "dateTimeUsShort" | "dateTimeUsShortAmPm" | "dateTimeUsShortAM_PM" | "password" | "readonly" | undefined;
|
|
237
|
-
validator?: import("@slickgrid-universal/common").EditorValidator | undefined;
|
|
238
|
-
valueStep?: string | number | undefined;
|
|
239
|
-
params?: any;
|
|
240
|
-
};
|
|
241
|
-
alwaysRenderColumn?: boolean | undefined;
|
|
242
|
-
asyncPostRender?: ((domCellNode: any, row: number, dataContext: any, columnDef: Column<any>) => void) | undefined;
|
|
243
|
-
autoParseInputFilterOperator?: boolean | undefined;
|
|
244
|
-
behavior?: string | undefined;
|
|
245
|
-
cannotTriggerInsert?: boolean | undefined;
|
|
246
|
-
cellMenu?: import("@slickgrid-universal/common").CellMenu | undefined;
|
|
247
|
-
columnGroup?: string | undefined;
|
|
248
|
-
columnGroupKey?: string | undefined;
|
|
249
|
-
colspan?: number | "*" | undefined;
|
|
250
|
-
cssClass?: string | undefined;
|
|
251
|
-
customTooltip?: import("@slickgrid-universal/common").CustomTooltipOption<any> | undefined;
|
|
252
|
-
dataKey?: string | undefined;
|
|
253
|
-
defaultSortAsc?: boolean | undefined;
|
|
254
|
-
denyPaste?: boolean | undefined;
|
|
255
|
-
disableTooltip?: boolean | undefined;
|
|
256
|
-
excelExportOptions?: import("@slickgrid-universal/common").ColumnExcelExportOption | undefined;
|
|
257
|
-
excludeFromColumnPicker?: boolean | undefined;
|
|
258
|
-
excludeFromExport?: boolean | undefined;
|
|
259
|
-
excludeFromGridMenu?: boolean | undefined;
|
|
260
|
-
excludeFromQuery?: boolean | undefined;
|
|
261
|
-
excludeFromHeaderMenu?: boolean | undefined;
|
|
262
|
-
exportColumnWidth?: number | undefined;
|
|
263
|
-
exportCustomFormatter?: import("@slickgrid-universal/common").Formatter<any> | undefined;
|
|
264
|
-
exportCustomGroupTotalsFormatter?: import("@slickgrid-universal/common").GroupTotalsFormatter | undefined;
|
|
265
|
-
exportWithFormatter?: boolean | undefined;
|
|
266
|
-
exportCsvForceToKeepAsString?: boolean | undefined;
|
|
267
|
-
field: string;
|
|
268
|
-
fields?: string[] | undefined;
|
|
269
|
-
filter?: import("@slickgrid-universal/common").ColumnFilter | undefined;
|
|
270
|
-
filterable?: boolean | undefined;
|
|
271
|
-
filterSearchType?: "string" | "number" | "boolean" | "object" | "text" | "unknown" | "integer" | "float" | "date" | "dateIso" | "dateUtc" | "dateTime" | "dateTimeIso" | "dateTimeIsoAmPm" | "dateTimeIsoAM_PM" | "dateTimeShortIso" | "dateEuro" | "dateEuroShort" | "dateTimeShortEuro" | "dateTimeEuro" | "dateTimeEuroAmPm" | "dateTimeEuroAM_PM" | "dateTimeEuroShort" | "dateTimeEuroShortAmPm" | "dateTimeEuroShortAM_PM" | "dateUs" | "dateUsShort" | "dateTimeShortUs" | "dateTimeUs" | "dateTimeUsAmPm" | "dateTimeUsAM_PM" | "dateTimeUsShort" | "dateTimeUsShortAmPm" | "dateTimeUsShortAM_PM" | "password" | "readonly" | undefined;
|
|
272
|
-
focusable?: boolean | undefined;
|
|
273
|
-
formatter?: import("@slickgrid-universal/common").Formatter<any> | undefined;
|
|
274
|
-
grouping?: import("@slickgrid-universal/common").Grouping<any> | undefined;
|
|
275
|
-
groupTotalsExcelExportOptions?: import("@slickgrid-universal/common").GroupTotalExportOption | undefined;
|
|
276
|
-
groupTotalsFormatter?: import("@slickgrid-universal/common").GroupTotalsFormatter | undefined;
|
|
277
|
-
header?: import("@slickgrid-universal/common").HeaderButtonsOrMenu | undefined;
|
|
278
|
-
headerCssClass?: string | undefined;
|
|
279
|
-
id: string | number;
|
|
280
|
-
labelKey?: string | undefined;
|
|
281
|
-
maxWidth?: number | undefined;
|
|
282
|
-
minWidth?: number | undefined;
|
|
283
|
-
originalWidth?: number | undefined;
|
|
284
|
-
name?: string | undefined;
|
|
285
|
-
nameCompositeEditor?: string | undefined;
|
|
286
|
-
nameKey?: string | undefined;
|
|
287
|
-
nameCompositeEditorKey?: string | undefined;
|
|
288
|
-
onBeforeEditCell?: ((e: import("@slickgrid-universal/common").SlickEventData, args: import("@slickgrid-universal/common").OnEventArgs) => void) | undefined;
|
|
289
|
-
onCellChange?: ((e: import("@slickgrid-universal/common").SlickEventData, args: import("@slickgrid-universal/common").OnEventArgs) => void) | undefined;
|
|
290
|
-
onCellClick?: ((e: import("@slickgrid-universal/common").SlickEventData, args: import("@slickgrid-universal/common").OnEventArgs) => void) | undefined;
|
|
291
|
-
outputType?: "string" | "number" | "boolean" | "object" | "text" | "unknown" | "integer" | "float" | "date" | "dateIso" | "dateUtc" | "dateTime" | "dateTimeIso" | "dateTimeIsoAmPm" | "dateTimeIsoAM_PM" | "dateTimeShortIso" | "dateEuro" | "dateEuroShort" | "dateTimeShortEuro" | "dateTimeEuro" | "dateTimeEuroAmPm" | "dateTimeEuroAM_PM" | "dateTimeEuroShort" | "dateTimeEuroShortAmPm" | "dateTimeEuroShortAM_PM" | "dateUs" | "dateUsShort" | "dateTimeShortUs" | "dateTimeUs" | "dateTimeUsAmPm" | "dateTimeUsAM_PM" | "dateTimeUsShort" | "dateTimeUsShortAmPm" | "dateTimeUsShortAM_PM" | "password" | "readonly" | undefined;
|
|
292
|
-
saveOutputType?: "string" | "number" | "boolean" | "object" | "text" | "unknown" | "integer" | "float" | "date" | "dateIso" | "dateUtc" | "dateTime" | "dateTimeIso" | "dateTimeIsoAmPm" | "dateTimeIsoAM_PM" | "dateTimeShortIso" | "dateEuro" | "dateEuroShort" | "dateTimeShortEuro" | "dateTimeEuro" | "dateTimeEuroAmPm" | "dateTimeEuroAM_PM" | "dateTimeEuroShort" | "dateTimeEuroShortAmPm" | "dateTimeEuroShortAM_PM" | "dateUs" | "dateUsShort" | "dateTimeShortUs" | "dateTimeUs" | "dateTimeUsAmPm" | "dateTimeUsAM_PM" | "dateTimeUsShort" | "dateTimeUsShortAmPm" | "dateTimeUsShortAM_PM" | "password" | "readonly" | undefined;
|
|
293
|
-
params?: any;
|
|
294
|
-
previousWidth?: number | undefined;
|
|
295
|
-
queryField?: string | undefined;
|
|
296
|
-
queryFieldNameGetterFn?: ((dataContext: any) => string) | undefined;
|
|
297
|
-
queryFieldFilter?: string | undefined;
|
|
298
|
-
queryFieldSorter?: string | undefined;
|
|
299
|
-
resizable?: boolean | undefined;
|
|
300
|
-
resizeAlwaysRecalculateWidth?: boolean | undefined;
|
|
301
|
-
resizeCalcWidthRatio?: number | undefined;
|
|
302
|
-
resizeCharWidthInPx?: number | undefined;
|
|
303
|
-
resizeMaxWidthThreshold?: number | undefined;
|
|
304
|
-
resizeExtraWidthPadding?: number | undefined;
|
|
305
|
-
rerenderOnResize?: boolean | undefined;
|
|
306
|
-
sanitizeDataExport?: boolean | undefined;
|
|
307
|
-
selectable?: boolean | undefined;
|
|
308
|
-
sortable?: boolean | undefined;
|
|
309
|
-
sortComparer?: import("@slickgrid-universal/common").SortComparer | undefined;
|
|
310
|
-
toolTip?: string | undefined;
|
|
311
|
-
type?: "string" | "number" | "boolean" | "object" | "text" | "unknown" | "integer" | "float" | "date" | "dateIso" | "dateUtc" | "dateTime" | "dateTimeIso" | "dateTimeIsoAmPm" | "dateTimeIsoAM_PM" | "dateTimeShortIso" | "dateEuro" | "dateEuroShort" | "dateTimeShortEuro" | "dateTimeEuro" | "dateTimeEuroAmPm" | "dateTimeEuroAM_PM" | "dateTimeEuroShort" | "dateTimeEuroShortAmPm" | "dateTimeEuroShortAM_PM" | "dateUs" | "dateUsShort" | "dateTimeShortUs" | "dateTimeUs" | "dateTimeUsAmPm" | "dateTimeUsAM_PM" | "dateTimeUsShort" | "dateTimeUsShortAmPm" | "dateTimeUsShortAM_PM" | "password" | "readonly" | undefined;
|
|
312
|
-
unselectable?: boolean | undefined;
|
|
313
|
-
validator?: import("@slickgrid-universal/common").EditorValidator | undefined;
|
|
314
|
-
valueCouldBeUndefined?: boolean | undefined;
|
|
315
|
-
width?: number | undefined;
|
|
316
|
-
}[];
|
|
317
|
-
/** translate all columns (including hidden columns) */
|
|
318
|
-
protected translateColumnHeaderTitleKeys(): void;
|
|
319
|
-
/** translate all column groups (including hidden columns) */
|
|
320
|
-
protected translateColumnGroupKeys(): void;
|
|
321
|
-
/**
|
|
322
|
-
* Update the "internalColumnEditor.collection" property.
|
|
323
|
-
* Since this is called after the async call resolves, the pointer will not be the same as the "column" argument passed.
|
|
324
|
-
* Once we found the new pointer, we will reassign the "editor" and "collection" to the "internalColumnEditor" so it has newest collection
|
|
325
|
-
*/
|
|
326
|
-
protected updateEditorCollection<T = any>(column: Column<T>, newCollection: T[]): void;
|
|
327
|
-
}
|