angular-slickgrid 9.13.0 → 10.0.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.
@@ -1,31 +0,0 @@
1
- import type { Locale } from '@slickgrid-universal/common';
2
- export declare class Constants {
3
- static readonly locales: Locale;
4
- static readonly treeDataProperties: {
5
- CHILDREN_PROP: string;
6
- COLLAPSED_PROP: string;
7
- HAS_CHILDREN_PROP: string;
8
- LAZY_LOADING_PROP: string;
9
- TREE_LEVEL_PROP: string;
10
- PARENT_PROP: string;
11
- };
12
- static readonly VALIDATION_REQUIRED_FIELD = "Field is required";
13
- static readonly VALIDATION_EDITOR_VALID_NUMBER = "Please enter a valid number";
14
- static readonly VALIDATION_EDITOR_VALID_INTEGER = "Please enter a valid integer number";
15
- static readonly VALIDATION_EDITOR_INTEGER_BETWEEN = "Please enter a valid integer number between {{minValue}} and {{maxValue}}";
16
- static readonly VALIDATION_EDITOR_INTEGER_MAX = "Please enter a valid integer number that is lower than {{maxValue}}";
17
- static readonly VALIDATION_EDITOR_INTEGER_MAX_INCLUSIVE = "Please enter a valid integer number that is lower than or equal to {{maxValue}}";
18
- static readonly VALIDATION_EDITOR_INTEGER_MIN = "Please enter a valid integer number that is greater than {{minValue}}";
19
- static readonly VALIDATION_EDITOR_INTEGER_MIN_INCLUSIVE = "Please enter a valid integer number that is greater than or equal to {{minValue}}";
20
- static readonly VALIDATION_EDITOR_NUMBER_BETWEEN = "Please enter a valid number between {{minValue}} and {{maxValue}}";
21
- static readonly VALIDATION_EDITOR_NUMBER_MAX = "Please enter a valid number that is lower than {{maxValue}}";
22
- static readonly VALIDATION_EDITOR_NUMBER_MAX_INCLUSIVE = "Please enter a valid number that is lower than or equal to {{maxValue}}";
23
- static readonly VALIDATION_EDITOR_NUMBER_MIN = "Please enter a valid number that is greater than {{minValue}}";
24
- static readonly VALIDATION_EDITOR_NUMBER_MIN_INCLUSIVE = "Please enter a valid number that is greater than or equal to {{minValue}}";
25
- static readonly VALIDATION_EDITOR_DECIMAL_BETWEEN = "Please enter a valid number with a maximum of {{maxDecimal}} decimals";
26
- static readonly VALIDATION_EDITOR_TEXT_LENGTH_BETWEEN = "Please make sure your text length is between {{minLength}} and {{maxLength}} characters";
27
- static readonly VALIDATION_EDITOR_TEXT_MAX_LENGTH = "Please make sure your text is less than {{maxLength}} characters";
28
- static readonly VALIDATION_EDITOR_TEXT_MAX_LENGTH_INCLUSIVE = "Please make sure your text is less than or equal to {{maxLength}} characters";
29
- static readonly VALIDATION_EDITOR_TEXT_MIN_LENGTH = "Please make sure your text is more than {{minLength}} character(s)";
30
- static readonly VALIDATION_EDITOR_TEXT_MIN_LENGTH_INCLUSIVE = "Please make sure your text is at least {{minLength}} character(s)";
31
- }
@@ -1 +0,0 @@
1
- export * from './slickRowDetailView';
@@ -1,79 +0,0 @@
1
- import type { ApplicationRef, ComponentRef, Type, ViewContainerRef } from '@angular/core';
2
- import { SlickEventData, type EventSubscription, type OnBeforeRowDetailToggleArgs, type OnRowBackOrOutOfViewportRangeArgs, type RxJsFacade, type SelectionModel, type SlickGrid } from '@slickgrid-universal/common';
3
- import type { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
4
- import { SlickRowDetailView as UniversalSlickRowDetailView } from '@slickgrid-universal/row-detail-view-plugin';
5
- import { Observable, type Subject } from 'rxjs';
6
- import type { GridOption, RowDetailView } from '../models/index.js';
7
- import type { AngularUtilService } from '../services/angularUtil.service.js';
8
- export interface CreatedView {
9
- id: string | number;
10
- dataContext: any;
11
- componentRef?: ComponentRef<any>;
12
- rendered?: boolean;
13
- }
14
- export declare class SlickRowDetailView extends UniversalSlickRowDetailView {
15
- protected readonly angularUtilService: AngularUtilService;
16
- protected readonly appRef: ApplicationRef;
17
- protected readonly eventPubSubService: EventPubSubService;
18
- protected readonly gridContainerElement: HTMLDivElement;
19
- protected rxjs?: RxJsFacade | undefined;
20
- rowDetailContainer: ViewContainerRef;
21
- protected _preloadComponent: Type<object> | undefined;
22
- protected _preloadCompRef?: ComponentRef<any>;
23
- protected _views: CreatedView[];
24
- protected _viewComponent: Type<object>;
25
- protected _subscriptions: EventSubscription[];
26
- protected _userProcessFn: (item: any) => Promise<any> | Observable<any> | Subject<any>;
27
- constructor(angularUtilService: AngularUtilService, appRef: ApplicationRef, eventPubSubService: EventPubSubService, gridContainerElement: HTMLDivElement, rxjs?: RxJsFacade | undefined);
28
- get addonOptions(): import("@slickgrid-universal/common").RowDetailViewOption;
29
- protected get datasetIdPropName(): string;
30
- /** Getter for the Grid Options pulled through the Grid Object */
31
- get gridOptions(): GridOption;
32
- get rowDetailViewOptions(): RowDetailView | undefined;
33
- addRxJsResource(rxjs: RxJsFacade): void;
34
- /** Dispose of the RowDetailView Extension */
35
- dispose(): void;
36
- /** Dispose of all the opened Row Detail Panels Angular View Components */
37
- disposeAllViewComponents(): void;
38
- /** Get the instance of the SlickGrid addon (control or plugin). */
39
- getAddonInstance(): SlickRowDetailView | null;
40
- init(grid: SlickGrid): void;
41
- /**
42
- * Create the plugin before the Grid creation, else it will behave oddly.
43
- * Mostly because the column definitions might change after the grid creation
44
- */
45
- register(rowSelectionPlugin?: SelectionModel): this;
46
- /** Redraw (re-render) all the expanded row detail View Components */
47
- redrawAllViewComponents(forceRedraw?: boolean): void;
48
- /** Redraw the necessary View Component */
49
- redrawViewComponent(createdView: CreatedView): void;
50
- /** Render (or re-render) the View Component (Row Detail) */
51
- renderPreloadView(): void;
52
- /** Render (or re-render) the View Component (Row Detail) */
53
- renderViewModel(item: any): CreatedView | undefined;
54
- protected disposeViewByItem(item: any, removeFromArray?: boolean): void;
55
- protected disposeView(expandedView: CreatedView): CreatedView | void;
56
- /**
57
- * notify the onAsyncResponse with the "args.item" (required property)
58
- * the plugin will then use item to populate the row detail panel with the "postTemplate"
59
- * @param item
60
- */
61
- protected notifyTemplate(item: any): void;
62
- /**
63
- * On Processing, we will notify the plugin with the new item detail once backend server call completes
64
- * @param item
65
- */
66
- protected onProcessing(item: any): Promise<void>;
67
- /**
68
- * Just before the row get expanded or collapsed we will do the following
69
- * First determine if the row is expanding or collapsing,
70
- * if it's expanding we will add it to our View Components reference array if we don't already have it
71
- * or if it's collapsing we will remove it from our View Components reference array
72
- */
73
- protected handleOnBeforeRowDetailToggle(_e: SlickEventData<OnBeforeRowDetailToggleArgs>, args: {
74
- grid: SlickGrid;
75
- item: any;
76
- }): void;
77
- /** When Row comes back to Viewport Range, we need to redraw the View */
78
- protected handleOnRowBackToViewportRange(_e: SlickEventData<OnRowBackOrOutOfViewportRangeArgs>, args: OnRowBackOrOutOfViewportRangeArgs): void;
79
- }
@@ -1,3 +0,0 @@
1
- import type { GridOption } from './models/index';
2
- /** Global Grid Options Defaults */
3
- export declare const GlobalGridOptions: Partial<GridOption>;
@@ -1,8 +0,0 @@
1
- export * from '@slickgrid-universal/common';
2
- export type { AngularComponentOutput, AngularGridInstance, GridOption, RowDetailView } from './models/index';
3
- export { AngularUtilService, unsubscribeAllObservables } from './services/index';
4
- export { SlickRowDetailView } from './extensions/index';
5
- export { SlickgridConfig } from './slickgrid-config';
6
- export type { AngularSlickgridOutputs } from './components/angular-slickgrid-outputs.interface';
7
- export { AngularSlickgridComponent } from './components/angular-slickgrid.component';
8
- export { AngularSlickgridModule } from './modules/angular-slickgrid.module';
@@ -1,5 +0,0 @@
1
- import type { ComponentRef } from '@angular/core';
2
- export interface AngularComponentOutput {
3
- componentRef: ComponentRef<any>;
4
- domElement: HTMLElement;
5
- }
@@ -1,38 +0,0 @@
1
- import type { BackendService, BasePaginationComponent, ExtensionList, ExtensionService, FilterService, GridEventService, GridService, GridStateService, HeaderGroupingService, PaginationService, ResizerService, SlickDataView, SlickGrid, SortService, TreeDataService } from '@slickgrid-universal/common';
2
- import type { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
3
- export interface AngularGridInstance {
4
- /** Slick DataView object */
5
- dataView: SlickDataView;
6
- /** Slick Grid object */
7
- slickGrid: SlickGrid;
8
- /** SlickGrid extensions (external controls/plugins) */
9
- extensions: ExtensionList<any>;
10
- /** Dispose of the grid and optionally empty the DOM element grid container as well */
11
- destroy: (emptyDomElementContainer?: boolean) => void;
12
- /** Backend Service, when available */
13
- backendService?: BackendService;
14
- /** EventPubSub Service instance that is used internal by the lib and could be used externally to subscribe to Angular-Slickgrid events */
15
- eventPubSubService?: EventPubSubService;
16
- /** Extension (Plugins & Controls) Service */
17
- extensionService: ExtensionService;
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
- headerGroupingService: HeaderGroupingService;
28
- /** Pagination Component */
29
- paginationComponent?: BasePaginationComponent;
30
- /** Pagination Service (allows you to programmatically go to first/last page, etc...) */
31
- paginationService?: PaginationService;
32
- /** Resizer Service (including auto-resize) */
33
- resizerService: ResizerService;
34
- /** Sort Service */
35
- sortService: SortService;
36
- /** Tree Data View Service */
37
- treeDataService: TreeDataService;
38
- }
@@ -1,20 +0,0 @@
1
- import type { BackendUtilityService, CollectionService, ExtensionService, ExtensionUtility, FilterService, GridEventService, GridService, GridStateService, HeaderGroupingService, PaginationService, ResizerService, RxJsFacade, SharedService, SortService, TreeDataService } from '@slickgrid-universal/common';
2
- import type { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
3
- export interface ExternalTestingDependencies {
4
- backendUtilityService?: BackendUtilityService;
5
- collectionService?: CollectionService;
6
- eventPubSubService?: EventPubSubService;
7
- extensionService?: ExtensionService;
8
- extensionUtility?: ExtensionUtility;
9
- filterService?: FilterService;
10
- gridEventService?: GridEventService;
11
- gridService?: GridService;
12
- gridStateService?: GridStateService;
13
- headerGroupingService?: HeaderGroupingService;
14
- paginationService?: PaginationService;
15
- resizerService?: ResizerService;
16
- rxjs?: RxJsFacade;
17
- sharedService?: SharedService;
18
- sortService?: SortService;
19
- treeDataService?: TreeDataService;
20
- }
@@ -1,11 +0,0 @@
1
- import { TranslateService } from '@ngx-translate/core';
2
- import type { BasePaginationComponent, Column, GridOption as UniversalGridOption } from '@slickgrid-universal/common';
3
- import type { RowDetailView } from './rowDetailView.interface';
4
- export interface GridOption<C extends Column = Column> extends UniversalGridOption<C> {
5
- /** External Custom Pagination Component that can be provided by the user */
6
- customPaginationComponent?: typeof BasePaginationComponent;
7
- /** ngx-translate i18n translation service instance */
8
- i18n?: TranslateService;
9
- /** Row Detail View Plugin options & events (columnId, cssClass, toolTip, width) */
10
- rowDetailView?: RowDetailView;
11
- }
@@ -1,5 +0,0 @@
1
- export type * from './angularComponentOutput.interface';
2
- export type * from './angularGridInstance.interface';
3
- export type * from './externalTestingDependencies.interface';
4
- export type * from './gridOption.interface';
5
- export type * from './rowDetailView.interface';
@@ -1,13 +0,0 @@
1
- import type { Type } from '@angular/core';
2
- import type { RowDetailView as UniversalRowDetailView } from '@slickgrid-universal/common';
3
- export interface RowDetailView extends UniversalRowDetailView {
4
- /**
5
- * Optionally pass your Parent Component reference to your Child Component (row detail component).
6
- * note:: If anyone finds a better way of passing the parent to the row detail extension, please reach out and/or create a PR
7
- */
8
- parentRef?: any;
9
- /** View Component of the preload template (typically a spinner) which shows after opening on the row detail but before the row detail is ready */
10
- preloadComponent?: Type<object>;
11
- /** View Component that will be loaded in the row detail after the async function completed */
12
- viewComponent: Type<object>;
13
- }
@@ -1,12 +0,0 @@
1
- import { type ModuleWithProviders } from '@angular/core';
2
- import type { GridOption } from '../models/gridOption.interface';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "../components/angular-slickgrid.component";
5
- import * as i2 from "@angular/common";
6
- import * as i3 from "@ngx-translate/core";
7
- export declare class AngularSlickgridModule {
8
- static forRoot(config?: GridOption): ModuleWithProviders<AngularSlickgridModule>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<AngularSlickgridModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<AngularSlickgridModule, [typeof i1.AngularSlickgridComponent], [typeof i2.CommonModule, typeof i3.TranslateModule], [typeof i1.AngularSlickgridComponent]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<AngularSlickgridModule>;
12
- }
@@ -1,39 +0,0 @@
1
- import { ViewContainerRef } from '@angular/core';
2
- import type { EnvironmentInjector, Injector, NgModuleRef, Type } from '@angular/core';
3
- import type { AngularComponentOutput } from '../models/angularComponentOutput.interface';
4
- import * as i0 from "@angular/core";
5
- interface CreateComponentOption {
6
- index?: number;
7
- injector?: Injector;
8
- ngModuleRef?: NgModuleRef<unknown>;
9
- environmentInjector?: EnvironmentInjector | NgModuleRef<unknown>;
10
- projectableNodes?: Node[][];
11
- sanitizer?: (dirtyHtml: string) => string;
12
- }
13
- export declare class AngularUtilService {
14
- private vcr;
15
- constructor(vcr: ViewContainerRef);
16
- createInteractiveAngularComponent<C>(component: Type<C>, targetElement: Element, data?: any, createCompOptions?: CreateComponentOption): AngularComponentOutput;
17
- /**
18
- * Dynamically create an Angular component, user could also provide optional arguments for target, data & createComponent options
19
- * @param {Component} component
20
- * @param {HTMLElement} [targetElement]
21
- * @param {*} [data]
22
- * @param {CreateComponentOption} [createCompOptions]
23
- * @returns
24
- */
25
- createAngularComponent<C>(component: Type<C>, targetElement?: Element, data?: any, createCompOptions?: CreateComponentOption): AngularComponentOutput;
26
- /**
27
- * Dynamically create an Angular component and append it to the DOM unless a target element is provided,
28
- * user could also provide other optional arguments for data & createComponent options.
29
- * @param {Component} component
30
- * @param {HTMLElement} [targetElement]
31
- * @param {*} [data]
32
- * @param {CreateComponentOption} [createCompOptions]
33
- * @returns
34
- */
35
- createAngularComponentAppendToDom<C>(component: Type<C>, targetElement?: Element, data?: any, createCompOptions?: CreateComponentOption): AngularComponentOutput;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<AngularUtilService, never>;
37
- static ɵprov: i0.ɵɵInjectableDeclaration<AngularUtilService>;
38
- }
39
- export {};
@@ -1,10 +0,0 @@
1
- import type { ContainerInstance, ContainerService as UniversalContainerService } from '@slickgrid-universal/common';
2
- import * as i0 from "@angular/core";
3
- export declare class ContainerService implements UniversalContainerService {
4
- dependencies: ContainerInstance[];
5
- get<T = any>(key: string): T | null;
6
- dispose(): void;
7
- registerInstance(key: string, instance: any): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<ContainerService, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<ContainerService>;
10
- }
@@ -1,4 +0,0 @@
1
- export * from './angularUtil.service';
2
- export * from './container.service';
3
- export * from './translater.service';
4
- export * from './utilities';
@@ -1,30 +0,0 @@
1
- import { TranslateService } from '@ngx-translate/core';
2
- import type { TranslaterService as UniversalTranslateService } from '@slickgrid-universal/common';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * This is a Translate Service Wrapper for Slickgrid-Universal monorepo lib to work properly,
6
- * it must implement Slickgrid-Universal TranslaterService interface to work properly
7
- */
8
- export declare class TranslaterService implements UniversalTranslateService {
9
- private readonly translateService;
10
- constructor(translateService: TranslateService);
11
- /**
12
- * Method to return the current language used by the App
13
- * @return {string} current language
14
- */
15
- getCurrentLanguage(): string;
16
- /**
17
- * Method to set the language to use in the App and Translate Service
18
- * @param {string} language
19
- * @return {Promise} output
20
- */
21
- use(newLang: string): Promise<any>;
22
- /**
23
- * Method which receives a translation key and returns the translated value assigned to that key
24
- * @param {string} translation key
25
- * @return {string} translated value
26
- */
27
- translate(translationKey: string): string;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<TranslaterService, [{ optional: true; }]>;
29
- static ɵprov: i0.ɵɵInjectableDeclaration<TranslaterService>;
30
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * Unsubscribe all Observables Subscriptions
3
- * It will return an empty array if it all went well
4
- * @param subscriptions
5
- */
6
- export declare function unsubscribeAllObservables(subscriptions: Array<{
7
- unsubscribe: () => void;
8
- }>): any[];
@@ -1,5 +0,0 @@
1
- import type { GridOption } from './models/gridOption.interface';
2
- export declare class SlickgridConfig {
3
- options: Partial<GridOption>;
4
- constructor();
5
- }
package/public_api.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './library/index';