angular-slickgrid 8.13.0 → 8.13.1
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/README.md +1 -1
- package/app/modules/angular-slickgrid/extensions/slickRowDetailView.d.ts +6 -5
- package/app/modules/angular-slickgrid/services/angularUtil.service.d.ts +1 -0
- package/esm2022/app/modules/angular-slickgrid/components/angular-slickgrid.component.mjs +9 -3
- package/esm2022/app/modules/angular-slickgrid/extensions/slickRowDetailView.mjs +46 -27
- package/esm2022/app/modules/angular-slickgrid/global-grid-options.mjs +1 -2
- package/esm2022/app/modules/angular-slickgrid/services/angularUtil.service.mjs +5 -2
- package/fesm2022/angular-slickgrid.mjs +58 -31
- package/fesm2022/angular-slickgrid.mjs.map +1 -1
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -100,7 +100,7 @@ npm start
|
|
|
100
100
|
### Like it? ⭐ it
|
|
101
101
|
You like to use **Angular-Slickgrid**? Be sure to upvote ⭐ and perhaps support me with caffeine [☕](https://ko-fi.com/ghiscoding) or GitHub sponsoring and feel free to contribute.
|
|
102
102
|
|
|
103
|
-
<a href='https://ko-fi.com/
|
|
103
|
+
<a href='https://ko-fi.com/N4N679OT' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi3.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
|
104
104
|
|
|
105
105
|
### Contributions
|
|
106
106
|
If you wish to contribute, please make sure to follow the steps shown in the [CONTRIBUTING](https://github.com/ghiscoding/Angular-Slickgrid/blob/master/CONTRIBUTING.md) guide.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ApplicationRef, ComponentRef, Type, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import type { EventSubscription, OnBeforeRowDetailToggleArgs, OnRowBackToViewportRangeArgs, RxJsFacade,
|
|
3
|
-
import { SlickRowSelectionModel } from '@slickgrid-universal/common';
|
|
2
|
+
import type { EventSubscription, OnBeforeRowDetailToggleArgs, OnRowBackToViewportRangeArgs, RxJsFacade, SlickEventHandler, SlickGrid } from '@slickgrid-universal/common';
|
|
3
|
+
import { SlickEventData, SlickRowSelectionModel } from '@slickgrid-universal/common';
|
|
4
4
|
import type { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
|
|
5
5
|
import { SlickRowDetailView as UniversalSlickRowDetailView } from '@slickgrid-universal/row-detail-view-plugin';
|
|
6
6
|
import { Observable, type Subject } from 'rxjs';
|
|
@@ -10,6 +10,7 @@ export interface CreatedView {
|
|
|
10
10
|
id: string | number;
|
|
11
11
|
dataContext: any;
|
|
12
12
|
componentRef?: ComponentRef<any>;
|
|
13
|
+
rendered?: boolean;
|
|
13
14
|
}
|
|
14
15
|
export declare class SlickRowDetailView extends UniversalSlickRowDetailView {
|
|
15
16
|
protected readonly angularUtilService: AngularUtilService;
|
|
@@ -19,6 +20,7 @@ export declare class SlickRowDetailView extends UniversalSlickRowDetailView {
|
|
|
19
20
|
protected rxjs?: RxJsFacade | undefined;
|
|
20
21
|
rowDetailContainer: ViewContainerRef;
|
|
21
22
|
protected _preloadComponent: Type<object> | undefined;
|
|
23
|
+
protected _preloadCompRef?: ComponentRef<any>;
|
|
22
24
|
protected _views: CreatedView[];
|
|
23
25
|
protected _viewComponent: Type<object>;
|
|
24
26
|
protected _subscriptions: EventSubscription[];
|
|
@@ -46,15 +48,14 @@ export declare class SlickRowDetailView extends UniversalSlickRowDetailView {
|
|
|
46
48
|
register(rowSelectionPlugin?: SlickRowSelectionModel): this;
|
|
47
49
|
/** Redraw (re-render) all the expanded row detail View Components */
|
|
48
50
|
redrawAllViewComponents(): void;
|
|
49
|
-
/** Render all the expanded row detail View Components */
|
|
50
|
-
renderAllViewComponents(): void;
|
|
51
51
|
/** Redraw the necessary View Component */
|
|
52
52
|
redrawViewComponent(createdView: CreatedView): void;
|
|
53
53
|
/** Render (or re-render) the View Component (Row Detail) */
|
|
54
54
|
renderPreloadView(): void;
|
|
55
55
|
/** Render (or re-render) the View Component (Row Detail) */
|
|
56
56
|
renderViewModel(item: any): CreatedView | undefined;
|
|
57
|
-
protected
|
|
57
|
+
protected disposeViewByItem(item: any, removeFromArray?: boolean): void;
|
|
58
|
+
protected disposeView(expandedView: CreatedView): CreatedView | void;
|
|
58
59
|
/**
|
|
59
60
|
* notify the onAsyncResponse with the "args.item" (required property)
|
|
60
61
|
* the plugin will then use item to populate the row detail panel with the "postTemplate"
|
|
@@ -8,6 +8,7 @@ interface CreateComponentOption {
|
|
|
8
8
|
ngModuleRef?: NgModuleRef<unknown>;
|
|
9
9
|
environmentInjector?: EnvironmentInjector | NgModuleRef<unknown>;
|
|
10
10
|
projectableNodes?: Node[][];
|
|
11
|
+
sanitizer?: (dirtyHtml: string) => string;
|
|
11
12
|
}
|
|
12
13
|
export declare class AngularUtilService {
|
|
13
14
|
private vcr;
|