@revolist/angular-datagrid 4.19.4 → 4.20.2

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,9 +1,8 @@
1
- import { defineCustomElement as defineCustomElement$2 } from '@revolist/revogrid/standalone/revogr-filter-panel.js';
2
1
  export * from '@revolist/revogrid';
3
2
  import * as i0 from '@angular/core';
4
3
  import { EventEmitter, Output, ChangeDetectionStrategy, Component, ApplicationRef, EnvironmentInjector, createComponent, inject, Injector } from '@angular/core';
5
4
  import { fromEvent } from 'rxjs';
6
- import { defineCustomElement as defineCustomElement$1 } from '@revolist/revogrid/standalone/revo-grid.js';
5
+ import { defineCustomElements } from '@revolist/revogrid/loader';
7
6
 
8
7
  /* eslint-disable */
9
8
  /* tslint:disable */
@@ -115,17 +114,17 @@ let RevoGrid = class RevoGrid {
115
114
  c.detach();
116
115
  this.el = r.nativeElement;
117
116
  }
118
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RevoGrid, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
119
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: RevoGrid, isStandalone: true, selector: "revo-grid", inputs: { accessible: "accessible", additionalData: "additionalData", applyOnClose: "applyOnClose", autoSizeColumn: "autoSizeColumn", canDrag: "canDrag", canFocus: "canFocus", canMoveColumns: "canMoveColumns", colSize: "colSize", columnTypes: "columnTypes", columns: "columns", disableVirtualX: "disableVirtualX", disableVirtualY: "disableVirtualY", editors: "editors", exporting: "exporting", filter: "filter", focusTemplate: "focusTemplate", frameSize: "frameSize", grouping: "grouping", hideAttribution: "hideAttribution", jobsBeforeRender: "jobsBeforeRender", pinnedBottomSource: "pinnedBottomSource", pinnedTopSource: "pinnedTopSource", plugins: "plugins", range: "range", readonly: "readonly", registerVNode: "registerVNode", resize: "resize", rowClass: "rowClass", rowDefinitions: "rowDefinitions", rowHeaders: "rowHeaders", rowSize: "rowSize", rtl: "rtl", sorting: "sorting", source: "source", stretch: "stretch", theme: "theme", trimmedRows: "trimmedRows", useClipboard: "useClipboard" }, outputs: { contentsizechanged: "contentsizechanged", beforeedit: "beforeedit", beforerangeedit: "beforerangeedit", afteredit: "afteredit", beforeautofill: "beforeautofill", beforerange: "beforerange", afterfocus: "afterfocus", roworderchanged: "roworderchanged", beforesorting: "beforesorting", beforesourcesortingapply: "beforesourcesortingapply", beforesortingapply: "beforesortingapply", rowdragstart: "rowdragstart", headerclick: "headerclick", beforecellfocus: "beforecellfocus", beforefocuslost: "beforefocuslost", beforesourceset: "beforesourceset", beforeanysource: "beforeanysource", aftersourceset: "aftersourceset", afteranysource: "afteranysource", beforecolumnsset: "beforecolumnsset", beforecolumnapplied: "beforecolumnapplied", aftercolumnsset: "aftercolumnsset", beforefilterapply: "beforefilterapply", beforefiltertrimmed: "beforefiltertrimmed", beforetrimmed: "beforetrimmed", aftertrimmed: "aftertrimmed", viewportscroll: "viewportscroll", beforeexport: "beforeexport", beforeeditstart: "beforeeditstart", aftercolumnresize: "aftercolumnresize", beforerowdefinition: "beforerowdefinition", filterconfigchanged: "filterconfigchanged", sortingconfigchanged: "sortingconfigchanged", rowheaderschanged: "rowheaderschanged", beforegridrender: "beforegridrender", aftergridrender: "aftergridrender", aftergridinit: "aftergridinit", additionaldatachanged: "additionaldatachanged", afterthemechanged: "afterthemechanged", created: "created" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
117
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: RevoGrid, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
118
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: RevoGrid, isStandalone: true, selector: "revo-grid", inputs: { accessible: "accessible", additionalData: "additionalData", applyOnClose: "applyOnClose", autoSizeColumn: "autoSizeColumn", canDrag: "canDrag", canFocus: "canFocus", canMoveColumns: "canMoveColumns", colSize: "colSize", columnTypes: "columnTypes", columns: "columns", disableVirtualX: "disableVirtualX", disableVirtualY: "disableVirtualY", editors: "editors", exporting: "exporting", filter: "filter", focusTemplate: "focusTemplate", frameSize: "frameSize", grouping: "grouping", hideAttribution: "hideAttribution", jobsBeforeRender: "jobsBeforeRender", pinnedBottomSource: "pinnedBottomSource", pinnedTopSource: "pinnedTopSource", plugins: "plugins", range: "range", readonly: "readonly", registerVNode: "registerVNode", resize: "resize", rowClass: "rowClass", rowDefinitions: "rowDefinitions", rowHeaders: "rowHeaders", rowSize: "rowSize", rtl: "rtl", sorting: "sorting", source: "source", stretch: "stretch", theme: "theme", trimmedRows: "trimmedRows", useClipboard: "useClipboard" }, outputs: { contentsizechanged: "contentsizechanged", beforeedit: "beforeedit", beforerangeedit: "beforerangeedit", afteredit: "afteredit", beforeautofill: "beforeautofill", beforerange: "beforerange", afterfocus: "afterfocus", roworderchanged: "roworderchanged", beforesorting: "beforesorting", beforesourcesortingapply: "beforesourcesortingapply", beforesortingapply: "beforesortingapply", rowdragstart: "rowdragstart", headerclick: "headerclick", beforecellfocus: "beforecellfocus", beforefocuslost: "beforefocuslost", beforesourceset: "beforesourceset", beforeanysource: "beforeanysource", aftersourceset: "aftersourceset", afteranysource: "afteranysource", beforecolumnsset: "beforecolumnsset", beforecolumnapplied: "beforecolumnapplied", aftercolumnsset: "aftercolumnsset", beforefilterapply: "beforefilterapply", beforefiltertrimmed: "beforefiltertrimmed", beforetrimmed: "beforetrimmed", aftertrimmed: "aftertrimmed", viewportscroll: "viewportscroll", beforeexport: "beforeexport", beforeeditstart: "beforeeditstart", aftercolumnresize: "aftercolumnresize", beforerowdefinition: "beforerowdefinition", filterconfigchanged: "filterconfigchanged", sortingconfigchanged: "sortingconfigchanged", rowheaderschanged: "rowheaderschanged", beforegridrender: "beforegridrender", aftergridrender: "aftergridrender", aftergridinit: "aftergridinit", additionaldatachanged: "additionaldatachanged", afterthemechanged: "afterthemechanged", created: "created" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
120
119
  };
121
120
  RevoGrid = __decorate([
122
121
  ProxyCmp({
123
- defineCustomElementFn: defineCustomElement$1,
122
+ defineCustomElementFn: defineCustomElements,
124
123
  inputs: ['accessible', 'additionalData', 'applyOnClose', 'autoSizeColumn', 'canDrag', 'canFocus', 'canMoveColumns', 'colSize', 'columnTypes', 'columns', 'disableVirtualX', 'disableVirtualY', 'editors', 'exporting', 'filter', 'focusTemplate', 'frameSize', 'grouping', 'hideAttribution', 'jobsBeforeRender', 'pinnedBottomSource', 'pinnedTopSource', 'plugins', 'range', 'readonly', 'registerVNode', 'resize', 'rowClass', 'rowDefinitions', 'rowHeaders', 'rowSize', 'rtl', 'sorting', 'source', 'stretch', 'theme', 'trimmedRows', 'useClipboard'],
125
124
  methods: ['refresh', 'setDataAt', 'scrollToRow', 'scrollToColumnIndex', 'scrollToColumnProp', 'updateColumns', 'addTrimmed', 'scrollToCoordinate', 'setCellEdit', 'setCellsFocus', 'getSource', 'getVisibleSource', 'getSourceStore', 'getColumnStore', 'updateColumnSorting', 'clearSorting', 'getColumns', 'clearFocus', 'getPlugins', 'getFocused', 'getContentSize', 'getSelectedRange', 'refreshExtraElements', 'getProviders']
126
125
  })
127
126
  ], RevoGrid);
128
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RevoGrid, decorators: [{
127
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: RevoGrid, decorators: [{
129
128
  type: Component,
130
129
  args: [{
131
130
  selector: 'revo-grid',
@@ -338,8 +337,6 @@ const Editor = (EditorComponent, injector = inject(Injector)) => {
338
337
  /*
339
338
  * Public API Surface of angular-datagrid
340
339
  */
341
- // Filter is defined as a standalone component plugin and should be imported here
342
- defineCustomElement$2?.();
343
340
 
344
341
  /**
345
342
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"revolist-angular-datagrid.mjs","sources":["../../../projects/angular-datagrid/src/lib/angular-component-lib/utils.ts","../../../projects/angular-datagrid/src/lib/components.ts","../../../projects/angular-datagrid/src/lib/renderer.ts","../../../projects/angular-datagrid/src/lib/editor.adapter.ts","../../../projects/angular-datagrid/src/lib/editor.ts","../../../projects/angular-datagrid/src/public-api.ts","../../../projects/angular-datagrid/src/revolist-angular-datagrid.ts"],"sourcesContent":["/* eslint-disable */\n/* tslint:disable */\nimport { fromEvent } from 'rxjs';\n\nexport const proxyInputs = (Cmp: any, inputs: string[]) => {\n const Prototype = Cmp.prototype;\n inputs.forEach((item) => {\n Object.defineProperty(Prototype, item, {\n get() {\n return this.el[item];\n },\n set(val: any) {\n this.z.runOutsideAngular(() => (this.el[item] = val));\n },\n /**\n * In the event that proxyInputs is called\n * multiple times re-defining these inputs\n * will cause an error to be thrown. As a result\n * we set configurable: true to indicate these\n * properties can be changed.\n */\n configurable: true,\n });\n });\n};\n\nexport const proxyMethods = (Cmp: any, methods: string[]) => {\n const Prototype = Cmp.prototype;\n methods.forEach((methodName) => {\n Prototype[methodName] = function () {\n const args = arguments;\n return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));\n };\n });\n};\n\nexport const proxyOutputs = (instance: any, el: any, events: string[]) => {\n events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));\n};\n\nexport const defineCustomElement = (tagName: string, customElement: any) => {\n if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {\n customElements.define(tagName, customElement);\n }\n};\n\n// tslint:disable-next-line: only-arrow-functions\nexport function ProxyCmp(opts: { defineCustomElementFn?: () => void; inputs?: any; methods?: any }) {\n const decorator = function (cls: any) {\n const { defineCustomElementFn, inputs, methods } = opts;\n\n if (defineCustomElementFn !== undefined) {\n defineCustomElementFn();\n }\n\n if (inputs) {\n proxyInputs(cls, inputs);\n }\n if (methods) {\n proxyMethods(cls, methods);\n }\n return cls;\n };\n return decorator;\n}\n","/* tslint:disable */\n/* auto-generated angular directive proxies */\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, Output, NgZone } from '@angular/core';\n\nimport { ProxyCmp } from './angular-component-lib/utils';\n\nimport type { Components } from '@revolist/revogrid/standalone';\n\nimport { defineCustomElement as defineRevoGrid } from '@revolist/revogrid/standalone/revo-grid.js';\n@ProxyCmp({\n defineCustomElementFn: defineRevoGrid,\n inputs: ['accessible', 'additionalData', 'applyOnClose', 'autoSizeColumn', 'canDrag', 'canFocus', 'canMoveColumns', 'colSize', 'columnTypes', 'columns', 'disableVirtualX', 'disableVirtualY', 'editors', 'exporting', 'filter', 'focusTemplate', 'frameSize', 'grouping', 'hideAttribution', 'jobsBeforeRender', 'pinnedBottomSource', 'pinnedTopSource', 'plugins', 'range', 'readonly', 'registerVNode', 'resize', 'rowClass', 'rowDefinitions', 'rowHeaders', 'rowSize', 'rtl', 'sorting', 'source', 'stretch', 'theme', 'trimmedRows', 'useClipboard'],\n methods: ['refresh', 'setDataAt', 'scrollToRow', 'scrollToColumnIndex', 'scrollToColumnProp', 'updateColumns', 'addTrimmed', 'scrollToCoordinate', 'setCellEdit', 'setCellsFocus', 'getSource', 'getVisibleSource', 'getSourceStore', 'getColumnStore', 'updateColumnSorting', 'clearSorting', 'getColumns', 'clearFocus', 'getPlugins', 'getFocused', 'getContentSize', 'getSelectedRange', 'refreshExtraElements', 'getProviders']\n})\n@Component({\n selector: 'revo-grid',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['accessible', 'additionalData', 'applyOnClose', 'autoSizeColumn', 'canDrag', 'canFocus', 'canMoveColumns', 'colSize', 'columnTypes', 'columns', 'disableVirtualX', 'disableVirtualY', 'editors', 'exporting', 'filter', 'focusTemplate', 'frameSize', 'grouping', 'hideAttribution', 'jobsBeforeRender', 'pinnedBottomSource', 'pinnedTopSource', 'plugins', 'range', 'readonly', 'registerVNode', 'resize', 'rowClass', 'rowDefinitions', 'rowHeaders', 'rowSize', 'rtl', 'sorting', 'source', 'stretch', 'theme', 'trimmedRows', 'useClipboard'],\n outputs: ['contentsizechanged', 'beforeedit', 'beforerangeedit', 'afteredit', 'beforeautofill', 'beforerange', 'afterfocus', 'roworderchanged', 'beforesorting', 'beforesourcesortingapply', 'beforesortingapply', 'rowdragstart', 'headerclick', 'beforecellfocus', 'beforefocuslost', 'beforesourceset', 'beforeanysource', 'aftersourceset', 'afteranysource', 'beforecolumnsset', 'beforecolumnapplied', 'aftercolumnsset', 'beforefilterapply', 'beforefiltertrimmed', 'beforetrimmed', 'aftertrimmed', 'viewportscroll', 'beforeexport', 'beforeeditstart', 'aftercolumnresize', 'beforerowdefinition', 'filterconfigchanged', 'sortingconfigchanged', 'rowheaderschanged', 'beforegridrender', 'aftergridrender', 'aftergridinit', 'additionaldatachanged', 'afterthemechanged', 'created'],\n})\nexport class RevoGrid {\n protected el: HTMLRevoGridElement;\n @Output() contentsizechanged = new EventEmitter<CustomEvent<IRevoGridMultiDimensionType>>();\n @Output() beforeedit = new EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>();\n @Output() beforerangeedit = new EventEmitter<CustomEvent<IRevoGridBeforeRangeSaveDataDetails>>();\n @Output() afteredit = new EventEmitter<CustomEvent<IRevoGridAfterEditEvent>>();\n @Output() beforeautofill = new EventEmitter<CustomEvent<IRevoGridChangedRange>>();\n @Output() beforerange = new EventEmitter<CustomEvent<IRevoGridChangedRange>>();\n @Output() afterfocus = new EventEmitter<CustomEvent<IRevoGridFocusAfterRenderEvent>>();\n @Output() roworderchanged = new EventEmitter<CustomEvent<{ from: number; to: number }>>();\n @Output() beforesorting = new EventEmitter<CustomEvent<{ column: IRevoGridColumnRegular; order: 'desc' | 'asc'; additive: boolean; }>>();\n @Output() beforesourcesortingapply = new EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; sorting?: IRevoGridSortingOrder; }>>();\n @Output() beforesortingapply = new EventEmitter<CustomEvent<{ column: IRevoGridColumnRegular; order: 'desc' | 'asc'; additive: boolean; }>>();\n @Output() rowdragstart = new EventEmitter<CustomEvent<IRevoGridRowDragStartDetails>>();\n @Output() headerclick = new EventEmitter<CustomEvent<IRevoGridColumnRegular>>();\n @Output() beforecellfocus = new EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>();\n @Output() beforefocuslost = new EventEmitter<CustomEvent<IRevoGridFocusedData | null>>();\n @Output() beforesourceset = new EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; source: IRevoGridDataType[]; }>>();\n @Output() beforeanysource = new EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; source: IRevoGridDataType[]; }>>();\n @Output() aftersourceset = new EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; source: IRevoGridDataType[]; }>>();\n @Output() afteranysource = new EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; source: IRevoGridDataType[]; }>>();\n @Output() beforecolumnsset = new EventEmitter<CustomEvent<IRevoGridColumnCollection>>();\n @Output() beforecolumnapplied = new EventEmitter<CustomEvent<IRevoGridColumnCollection>>();\n @Output() aftercolumnsset = new EventEmitter<CustomEvent<{ columns: IRevoGridColumnCollection; order: IRevoGridSortingOrder; }>>();\n @Output() beforefilterapply = new EventEmitter<CustomEvent<{ collection: Record<IRevoGridColumnProp, IRevoGridFilterCollectionItem> }>>();\n @Output() beforefiltertrimmed = new EventEmitter<CustomEvent<{ collection: Record<IRevoGridColumnProp, IRevoGridFilterCollectionItem>; itemsToFilter: Record<number, boolean>; }>>();\n @Output() beforetrimmed = new EventEmitter<CustomEvent<{ trimmed: Record<number, boolean>; trimmedType: string; type: string; }>>();\n @Output() aftertrimmed = new EventEmitter<CustomEvent<any>>();\n @Output() viewportscroll = new EventEmitter<CustomEvent<IRevoGridViewPortScrollEvent>>();\n @Output() beforeexport = new EventEmitter<CustomEvent<IRevoGridDataInput>>();\n @Output() beforeeditstart = new EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>();\n @Output() aftercolumnresize = new EventEmitter<CustomEvent<{ [index: number]: IRevoGridColumnRegular; }>>();\n @Output() beforerowdefinition = new EventEmitter<CustomEvent<{ vals: any; oldVals: any }>>();\n @Output() filterconfigchanged = new EventEmitter<CustomEvent<any>>();\n @Output() sortingconfigchanged = new EventEmitter<CustomEvent<IRevoGridSortingConfig>>();\n @Output() rowheaderschanged = new EventEmitter<CustomEvent<any>>();\n @Output() beforegridrender = new EventEmitter<CustomEvent<any>>();\n @Output() aftergridrender = new EventEmitter<CustomEvent<any>>();\n @Output() aftergridinit = new EventEmitter<CustomEvent<any>>();\n @Output() additionaldatachanged = new EventEmitter<CustomEvent<any>>();\n @Output() afterthemechanged = new EventEmitter<CustomEvent<IRevoGridTheme>>();\n @Output() created = new EventEmitter<CustomEvent<any>>();\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n }\n}\n\n\nimport type { MultiDimensionType as IRevoGridMultiDimensionType } from '@revolist/revogrid/standalone';\nimport type { BeforeSaveDataDetails as IRevoGridBeforeSaveDataDetails } from '@revolist/revogrid/standalone';\nimport type { BeforeRangeSaveDataDetails as IRevoGridBeforeRangeSaveDataDetails } from '@revolist/revogrid/standalone';\nimport type { AfterEditEvent as IRevoGridAfterEditEvent } from '@revolist/revogrid/standalone';\nimport type { ChangedRange as IRevoGridChangedRange } from '@revolist/revogrid/standalone';\nimport type { FocusAfterRenderEvent as IRevoGridFocusAfterRenderEvent } from '@revolist/revogrid/standalone';\nimport type { ColumnRegular as IRevoGridColumnRegular } from '@revolist/revogrid/standalone';\nimport type { DimensionRows as IRevoGridDimensionRows } from '@revolist/revogrid/standalone';\nimport type { SortingOrder as IRevoGridSortingOrder } from '@revolist/revogrid/standalone';\nimport type { RowDragStartDetails as IRevoGridRowDragStartDetails } from '@revolist/revogrid/standalone';\nimport type { FocusedData as IRevoGridFocusedData } from '@revolist/revogrid/standalone';\nimport type { DataType as IRevoGridDataType } from '@revolist/revogrid/standalone';\nimport type { ColumnCollection as IRevoGridColumnCollection } from '@revolist/revogrid/standalone';\nimport type { ColumnProp as IRevoGridColumnProp } from '@revolist/revogrid/standalone';\nimport type { FilterCollectionItem as IRevoGridFilterCollectionItem } from '@revolist/revogrid/standalone';\nimport type { ViewPortScrollEvent as IRevoGridViewPortScrollEvent } from '@revolist/revogrid/standalone';\nimport type { DataInput as IRevoGridDataInput } from '@revolist/revogrid/standalone';\nimport type { SortingConfig as IRevoGridSortingConfig } from '@revolist/revogrid/standalone';\nimport type { Theme as IRevoGridTheme } from '@revolist/revogrid/standalone';\n\nexport declare interface RevoGrid extends Components.RevoGrid {\n /**\n * New content size has been applied. The size excludes the header.\nCurrently, the event responsible for applying the new content size does not provide the actual size.\nTo retrieve the actual content size, you can utilize the `getContentSize` function after the event has been triggered.\n */\n contentsizechanged: EventEmitter<CustomEvent<IRevoGridMultiDimensionType>>;\n /**\n * Before the data is edited.\nTo prevent the default behavior of editing data and use your own implementation, call `e.preventDefault()`.\nTo override the edit result with your own value, set the `e.val` property to your desired value.\n */\n beforeedit: EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>;\n /**\n * Before applying range data, specifically when a range selection occurs.\nTo customize the data and prevent the default edit data from being set, you can call `e.preventDefault()`.\n */\n beforerangeedit: EventEmitter<CustomEvent<IRevoGridBeforeRangeSaveDataDetails>>;\n /**\n * After data applied or range changed.\n */\n afteredit: EventEmitter<CustomEvent<IRevoGridAfterEditEvent>>;\n /**\n * Before autofill is applied.\nTo prevent the default behavior of applying the edit data, you can call `e.preventDefault()`.\n */\n beforeautofill: EventEmitter<CustomEvent<IRevoGridChangedRange>>;\n /**\n * Before autofill is applied. Runs before beforeautofill event.\nUse e.preventDefault() to prevent range.\n */\n beforerange: EventEmitter<CustomEvent<IRevoGridChangedRange>>;\n /**\n * After focus render finished.\nCan be used to access a focus element through `event.target`.\nThis is just a duplicate of `afterfocus` from `revogr-focus.tsx`.\n */\n afterfocus: EventEmitter<CustomEvent<IRevoGridFocusAfterRenderEvent>>;\n /**\n * Before the order of `rgRow` is applied.\nTo prevent the default behavior of changing the order of `rgRow`, you can call `e.preventDefault()`.\n */\n roworderchanged: EventEmitter<CustomEvent<{ from: number; to: number }>>;\n /**\n * By `SortingPlugin`\n<br>Triggered immediately after header click.\n<br>First in sorting event sequence. Ff this event stops no other event called.\n<br>Use `e.preventDefault()` to prevent sorting.\n */\n beforesorting: EventEmitter<CustomEvent<{ column: IRevoGridColumnRegular; order: 'desc' | 'asc'; additive: boolean; }>>;\n /**\n * By `SortingPlugin`\n<br>Same as `beforesorting` but triggered after `beforeanysource` (when source is changed).\n<br>Use `e.preventDefault()` to prevent sorting data change.\n */\n beforesourcesortingapply: EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; sorting?: IRevoGridSortingOrder; }>>;\n /**\n * By `SortingPlugin`\n<br> After `beforesorting`\n<br>Triggered after column data updated with new sorting order.\n<br>Use `e.preventDefault()` to prevent sorting data change.\n */\n beforesortingapply: EventEmitter<CustomEvent<{ column: IRevoGridColumnRegular; order: 'desc' | 'asc'; additive: boolean; }>>;\n /**\n * This event is triggered when the row order change is started.\nTo prevent the default behavior of changing the row order, you can call `e.preventDefault()`.\nTo change the item name at the start of the row order change, you can set `e.text` to the desired new name.\n */\n rowdragstart: EventEmitter<CustomEvent<IRevoGridRowDragStartDetails>>;\n /**\n * On header click.\n */\n headerclick: EventEmitter<CustomEvent<IRevoGridColumnRegular>>;\n /**\n * Before the cell focus is changed.\nTo prevent the default behavior of changing the cell focus, you can call `e.preventDefault()`.\n */\n beforecellfocus: EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>;\n /**\n * Before the grid focus is lost.\nTo prevent the default behavior of changing the cell focus, you can call `e.preventDefault()`.\n */\n beforefocuslost: EventEmitter<CustomEvent<IRevoGridFocusedData | null>>;\n /**\n * Before main source/rows data apply.\nYou can override data source here\n */\n beforesourceset: EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; source: IRevoGridDataType[]; }>>;\n /**\n * Before data apply on any source type. Can be source from pinned and main viewport.\nYou can override data source here\n */\n beforeanysource: EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; source: IRevoGridDataType[]; }>>;\n /**\n * After main source/rows updated\n */\n aftersourceset: EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; source: IRevoGridDataType[]; }>>;\n /**\n * Emitted after each source update, whether from the pinned or main viewport.\nUseful for tracking all changes originating from sources in both the pinned and main viewports.\n */\n afteranysource: EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; source: IRevoGridDataType[]; }>>;\n /**\n * Emitted before a column update is applied.\nListeners can use this event to perform any necessary actions or modifications before the column update is finalized.\n */\n beforecolumnsset: EventEmitter<CustomEvent<IRevoGridColumnCollection>>;\n /**\n * Emitted before a column update is applied, after the column set is gathered and the viewport is updated.\nUseful for performing actions or modifications before the final application of the column update.\n */\n beforecolumnapplied: EventEmitter<CustomEvent<IRevoGridColumnCollection>>;\n /**\n * Column updated\n */\n aftercolumnsset: EventEmitter<CustomEvent<{ columns: IRevoGridColumnCollection; order: IRevoGridSortingOrder; }>>;\n /**\n * Emitted before applying a filter to the data source.\nUse e.preventDefault() to prevent cell focus change.\nModify if you need to change filters.\n */\n beforefilterapply: EventEmitter<CustomEvent<{ collection: Record<IRevoGridColumnProp, IRevoGridFilterCollectionItem> }>>;\n /**\n * Emitted before applying a filter to the data source.\nUse e.preventDefault() to prevent the default behavior of trimming values and applying the filter.\nModify the `collection` property if you want to change the filters.\nModify the `itemsToFilter` property if you want to filter the indexes for trimming.\n */\n beforefiltertrimmed: EventEmitter<CustomEvent<{ collection: Record<IRevoGridColumnProp, IRevoGridFilterCollectionItem>; itemsToFilter: Record<number, boolean>; }>>;\n /**\n * Emitted before trimming values.\nUse e.preventDefault() to prevent the default behavior of trimming values.\nModify the `trimmed` property if you want to filter the indexes for trimming.\n */\n beforetrimmed: EventEmitter<CustomEvent<{ trimmed: Record<number, boolean>; trimmedType: string; type: string; }>>;\n /**\n * Emitted after trimmed values have been applied.\nUseful for notifying when trimming of values has taken place.\n */\n aftertrimmed: EventEmitter<CustomEvent<any>>;\n /**\n * Emitted when the viewport is scrolled.\nUseful for tracking viewport scrolling events.\n */\n viewportscroll: EventEmitter<CustomEvent<IRevoGridViewPortScrollEvent>>;\n /**\n * Before export\nUse e.preventDefault() to prevent export\nReplace data in Event in case you want to modify it in export\n */\n beforeexport: EventEmitter<CustomEvent<IRevoGridDataInput>>;\n /**\n * Emitted before editing starts.\nUse e.preventDefault() to prevent the default edit behavior.\n */\n beforeeditstart: EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>;\n /**\n * Emitted after column resizing.\nUseful for retrieving the resized columns.\n */\n aftercolumnresize: EventEmitter<CustomEvent<{ [index: number]: IRevoGridColumnRegular; }>>;\n /**\n * Emitted before the row definition is applied.\nUseful for modifying or preventing the default row definition behavior.\n */\n beforerowdefinition: EventEmitter<CustomEvent<{ vals: any; oldVals: any }>>;\n /**\n * Emitted when the filter configuration is changed\n */\n filterconfigchanged: EventEmitter<CustomEvent<any>>;\n /**\n * Emitted when the sorting configuration is changed\nSortingPlugin subsribed to this event\n */\n sortingconfigchanged: EventEmitter<CustomEvent<IRevoGridSortingConfig>>;\n /**\n * Emmited when the row headers are changed.\n */\n rowheaderschanged: EventEmitter<CustomEvent<any>>;\n /**\n * Emmited before the grid is rendered.\n */\n beforegridrender: EventEmitter<CustomEvent<any>>;\n /**\n * Emmited after the grid is rendered.\n */\n aftergridrender: EventEmitter<CustomEvent<any>>;\n /**\n * Emmited after the grid is initialized. Connected to the DOM.\n */\n aftergridinit: EventEmitter<CustomEvent<any>>;\n /**\n * Emmited after the additional data is changed\n */\n additionaldatachanged: EventEmitter<CustomEvent<any>>;\n /**\n * Emmited after the theme is changed\n */\n afterthemechanged: EventEmitter<CustomEvent<IRevoGridTheme>>;\n /**\n * Emmited after grid created\n */\n created: EventEmitter<CustomEvent<any>>;\n}\n\n\n","/**\n * Angular Adapter Function:\n * Handles the rendering and lifecycle of Angular components within StencilJS using updated Angular APIs.\n */\nimport { Injector, ComponentRef, Type, ApplicationRef, createComponent, EnvironmentInjector, inject } from '@angular/core';\nimport { ColumnDataSchemaModel, ColumnTemplateProp } from '@revolist/revogrid';\n\nexport interface AngularElement extends HTMLElement {\n componentRef?: ComponentRef<any>; // Reference to the Angular component\n}\n\nexport interface RenderedComponent<T> {\n update: (newProps: T) => void; // Function to update component with new props\n destroy: () => void; // Function to destroy the component\n}\n\nfunction updateProps<T extends object>(el: AngularElement, newProps: T) {\n if (!el.componentRef?.instance) {\n return;\n }\n \n \n // Update both ways to ensure it works with different component implementations\n el.componentRef.instance.props = newProps;\n el.componentRef.setInput('props', newProps);\n \n // Handle ngOnChanges if component implements it\n if (el.componentRef.instance.ngOnChanges) {\n const previousValue = el.componentRef.instance.props;\n const simpleChanges = {\n props: {\n previousValue,\n currentValue: newProps,\n firstChange: previousValue === undefined,\n isFirstChange: () => previousValue === undefined\n }\n };\n el.componentRef.instance.ngOnChanges(simpleChanges);\n }\n \n // Force component to check for updates\n el.componentRef.changeDetectorRef.markForCheck();\n el.componentRef.changeDetectorRef.detectChanges();\n}\n\nexport function TemplateConstructor<T extends Object>(\n el: AngularElement | null,\n AngularComponent: Type<any>,\n initialProps: T = {} as T,\n injector: Injector,\n lastEl: RenderedComponent<T> | null = null,\n): RenderedComponent<T> | null {\n if (!el) {\n lastEl?.destroy?.(); // Destroy last component if element is null\n return null;\n }\n\n if (!el.componentRef) {\n const applicationRef = injector.get(ApplicationRef);\n const environmentInjector = injector.get(EnvironmentInjector);\n const componentRef = createComponent(AngularComponent, { environmentInjector });\n applicationRef.attachView(componentRef.hostView);\n componentRef.instance.props = initialProps;\n componentRef.changeDetectorRef.detectChanges();\n el.componentRef = componentRef; // Store the component reference\n el.appendChild(componentRef.location.nativeElement);\n } else if (el.componentRef.instance) {\n updateProps(el, initialProps);\n }\n\n // Function to update component props\n const update = (newProps: T) => updateProps(el, newProps);\n\n // Function to destroy the component\n const destroy = () => {\n el.componentRef?.destroy();\n el.componentRef = undefined;\n };\n\n return { update, destroy };\n}\n\n// Function to create template for Angular component\nexport const Template = (\n AngularComponent: Type<any>,\n customProps?: any,\n injector = inject(Injector)\n) => {\n return (h: any, p: ColumnDataSchemaModel | ColumnTemplateProp, addition?: any) => {\n const props = customProps ? { ...customProps, ...p } : p;\n props.addition = addition;\n let lastEl: RenderedComponent<any> | null = null;\n return h('span', {\n key: `${p.prop}-${p.rowIndex || 0}`,\n ref: (el: AngularElement | null) => {\n lastEl = TemplateConstructor(el, AngularComponent, props, injector, lastEl);\n }\n });\n };\n};\n","import type { EditCell, ColumnDataSchemaModel, HyperFunc, VNode, EditorBase } from '@revolist/revogrid';\nimport { Injector, Type } from '@angular/core';\nimport { TemplateConstructor, RenderedComponent, AngularElement } from './renderer';\n/**\n * Data passed to editor\n */\nexport type EditorType = {\n column: ColumnDataSchemaModel;\n save: (value: any, preventFocus?: boolean) => void;\n close: (focusNext?: boolean) => void;\n} & Partial<EditCell>;\n\nexport class EditorAdapter implements EditorBase {\n public element: AngularElement | null = null;\n public editCell?: EditCell;\n private renderedComponent: RenderedComponent<any> | null = null;\n\n constructor(\n private EditorComponent: Type<any>,\n private injector: Injector,\n public column: ColumnDataSchemaModel,\n private save: (value: any, preventFocus?: boolean) => void,\n private close: (focusNext?: boolean) => void,\n ) {}\n\n // optional, called after editor rendered\n componentDidRender() {}\n\n // optional, called after editor destroyed\n disconnectedCallback() {\n this.renderedComponent?.destroy();\n this.renderedComponent = null;\n }\n\n render(h: HyperFunc<VNode>) {\n return h('span', {\n key: `${this.column.prop}-${this.editCell?.rowIndex || 0}`,\n ref: (el: AngularElement) => \n this.renderedComponent = TemplateConstructor(\n el,\n this.EditorComponent,\n {\n ...this.editCell,\n column: this.column,\n save: this.save,\n close: this.close,\n },\n this.injector,\n ),\n });\n }\n}\n","import type { ColumnDataSchemaModel, EditorCtr } from '@revolist/revogrid';\nimport { Injector, Type, inject } from '@angular/core';\nimport { EditorAdapter } from './editor.adapter';\n/**\n * Create editor constructor.\n * This function creates editor constructor by wrapping it with EditorAdapter\n * which is responsible for connecting editor with grid.\n */\nexport const Editor = (\n EditorComponent: Type<any>,\n injector = inject(Injector),\n): EditorCtr => {\n /**\n * Editor constructor wrapper\n * @param column column data to which editor is bound\n * @param save function to save data\n * @param close function to close editor\n * @returns editor instance\n */\n return function (\n column: ColumnDataSchemaModel,\n save: (value: any, preventFocus?: boolean) => void,\n close: (focusNext?: boolean) => void,\n ) {\n return new EditorAdapter(EditorComponent, injector, column, save, close);\n };\n};\n","/*\n * Public API Surface of angular-datagrid\n */\nimport { defineCustomElement as defineFilterPanel } from '@revolist/revogrid/standalone/revogr-filter-panel.js';\n// Filter is defined as a standalone component plugin and should be imported here\ndefineFilterPanel?.();\n\nexport * from '@revolist/revogrid';\nexport * from './lib/components';\nexport * from './lib/editor.adapter';\nexport * from './lib/editor';\nexport * from './lib/renderer';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["defineRevoGrid","defineFilterPanel"],"mappings":";;;;;;;AAAA;AACA;AAGO,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAE,MAAgB,KAAI;AACxD,IAAA,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS;AAC/B,IAAA,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AACtB,QAAA,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,IAAI,EAAE;YACrC,GAAG,GAAA;AACD,gBAAA,OAAO,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;aACrB;AACD,YAAA,GAAG,CAAC,GAAQ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,GAA0B,IAAI;QAEpC,IAAiB,CAAA,iBAAA,GAAkC,IAAI;;;AAW/D,IAAA,kBAAkB;;IAGlB,oBAAoB,GAAA;AAClB,QAAA,IAAI,CAAC,iBAAiB,EAAE,OAAO,EAAE;AACjC,QAAA,IAAI,CAAC,iBAAiB,GAAG,IAAI;;AAG/B,IAAA,MAAM,CAAC,CAAmB,EAAA;QACxB,OAAO,CAAC,CAAC,MAAM,EAAE;AACf,YAAA,GAAG,EAAE,CAAA,EAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAI,CAAA,EAAA,IAAI,CAAC,QAAQ,EAAE,QAAQ,IAAI,CAAC,CAAE,CAAA;AAC1D,YAAA,GAAG,EAAE,CAAC,EAAkB,KACtB,IAAI,CAAC,iBAAiB,GAAG,mBAAmB,CAC1C,EAAE,EACF,IAAI,CAAC,eAAe,EACpB;gBACE,GAAG,IAAI,CAAC,QAAQ;gBAChB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,KAAK,EAAE,IAAI,CAAC,KAAK;aAClB,EACD,IAAI,CAAC,QAAQ,CACd;AACF,SAAA,CAAC;;AAEP;;AChDD;;;;AAIG;AACI,MAAM,MAAM,GAAG,CACpB,eAA0B,EAC1B,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,KACd;AACb;;;;;;AAMG;AACH,IAAA,OAAO,UACL,MAA6B,EAC7B,IAAkD,EAClD,KAAoC,EAAA;AAEpC,QAAA,OAAO,IAAI,aAAa,CAAC,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC;AAC1E,KAAC;AACH;;AC1BA;;AAEG;AAEH;AACAC,qBAAiB,IAAI;;ACLrB;;AAEG;;;;"}
1
+ {"version":3,"file":"revolist-angular-datagrid.mjs","sources":["../../../projects/angular-datagrid/src/lib/angular-component-lib/utils.ts","../../../projects/angular-datagrid/src/lib/components.ts","../../../projects/angular-datagrid/src/lib/renderer.ts","../../../projects/angular-datagrid/src/lib/editor.adapter.ts","../../../projects/angular-datagrid/src/lib/editor.ts","../../../projects/angular-datagrid/src/public-api.ts","../../../projects/angular-datagrid/src/revolist-angular-datagrid.ts"],"sourcesContent":["/* eslint-disable */\n/* tslint:disable */\nimport { fromEvent } from 'rxjs';\n\nexport const proxyInputs = (Cmp: any, inputs: string[]) => {\n const Prototype = Cmp.prototype;\n inputs.forEach((item) => {\n Object.defineProperty(Prototype, item, {\n get() {\n return this.el[item];\n },\n set(val: any) {\n this.z.runOutsideAngular(() => (this.el[item] = val));\n },\n /**\n * In the event that proxyInputs is called\n * multiple times re-defining these inputs\n * will cause an error to be thrown. As a result\n * we set configurable: true to indicate these\n * properties can be changed.\n */\n configurable: true,\n });\n });\n};\n\nexport const proxyMethods = (Cmp: any, methods: string[]) => {\n const Prototype = Cmp.prototype;\n methods.forEach((methodName) => {\n Prototype[methodName] = function () {\n const args = arguments;\n return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));\n };\n });\n};\n\nexport const proxyOutputs = (instance: any, el: any, events: string[]) => {\n events.forEach((eventName) => (instance[eventName] = fromEvent(el, eventName)));\n};\n\nexport const defineCustomElement = (tagName: string, customElement: any) => {\n if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {\n customElements.define(tagName, customElement);\n }\n};\n\n// tslint:disable-next-line: only-arrow-functions\nexport function ProxyCmp(opts: { defineCustomElementFn?: () => void; inputs?: any; methods?: any }) {\n const decorator = function (cls: any) {\n const { defineCustomElementFn, inputs, methods } = opts;\n\n if (defineCustomElementFn !== undefined) {\n defineCustomElementFn();\n }\n\n if (inputs) {\n proxyInputs(cls, inputs);\n }\n if (methods) {\n proxyMethods(cls, methods);\n }\n return cls;\n };\n return decorator;\n}\n","/* tslint:disable */\n/* auto-generated angular directive proxies */\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, Output, NgZone } from '@angular/core';\n\nimport { ProxyCmp } from './angular-component-lib/utils';\n\nimport type { Components } from '@revolist/revogrid/standalone';\n\nimport { defineCustomElements } from '@revolist/revogrid/loader';\n@ProxyCmp({\n defineCustomElementFn: defineCustomElements,\n inputs: ['accessible', 'additionalData', 'applyOnClose', 'autoSizeColumn', 'canDrag', 'canFocus', 'canMoveColumns', 'colSize', 'columnTypes', 'columns', 'disableVirtualX', 'disableVirtualY', 'editors', 'exporting', 'filter', 'focusTemplate', 'frameSize', 'grouping', 'hideAttribution', 'jobsBeforeRender', 'pinnedBottomSource', 'pinnedTopSource', 'plugins', 'range', 'readonly', 'registerVNode', 'resize', 'rowClass', 'rowDefinitions', 'rowHeaders', 'rowSize', 'rtl', 'sorting', 'source', 'stretch', 'theme', 'trimmedRows', 'useClipboard'],\n methods: ['refresh', 'setDataAt', 'scrollToRow', 'scrollToColumnIndex', 'scrollToColumnProp', 'updateColumns', 'addTrimmed', 'scrollToCoordinate', 'setCellEdit', 'setCellsFocus', 'getSource', 'getVisibleSource', 'getSourceStore', 'getColumnStore', 'updateColumnSorting', 'clearSorting', 'getColumns', 'clearFocus', 'getPlugins', 'getFocused', 'getContentSize', 'getSelectedRange', 'refreshExtraElements', 'getProviders']\n})\n@Component({\n selector: 'revo-grid',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<ng-content></ng-content>',\n // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property\n inputs: ['accessible', 'additionalData', 'applyOnClose', 'autoSizeColumn', 'canDrag', 'canFocus', 'canMoveColumns', 'colSize', 'columnTypes', 'columns', 'disableVirtualX', 'disableVirtualY', 'editors', 'exporting', 'filter', 'focusTemplate', 'frameSize', 'grouping', 'hideAttribution', 'jobsBeforeRender', 'pinnedBottomSource', 'pinnedTopSource', 'plugins', 'range', 'readonly', 'registerVNode', 'resize', 'rowClass', 'rowDefinitions', 'rowHeaders', 'rowSize', 'rtl', 'sorting', 'source', 'stretch', 'theme', 'trimmedRows', 'useClipboard'],\n outputs: ['contentsizechanged', 'beforeedit', 'beforerangeedit', 'afteredit', 'beforeautofill', 'beforerange', 'afterfocus', 'roworderchanged', 'beforesorting', 'beforesourcesortingapply', 'beforesortingapply', 'rowdragstart', 'headerclick', 'beforecellfocus', 'beforefocuslost', 'beforesourceset', 'beforeanysource', 'aftersourceset', 'afteranysource', 'beforecolumnsset', 'beforecolumnapplied', 'aftercolumnsset', 'beforefilterapply', 'beforefiltertrimmed', 'beforetrimmed', 'aftertrimmed', 'viewportscroll', 'beforeexport', 'beforeeditstart', 'aftercolumnresize', 'beforerowdefinition', 'filterconfigchanged', 'sortingconfigchanged', 'rowheaderschanged', 'beforegridrender', 'aftergridrender', 'aftergridinit', 'additionaldatachanged', 'afterthemechanged', 'created'],\n})\nexport class RevoGrid {\n protected el: HTMLRevoGridElement;\n @Output() contentsizechanged = new EventEmitter<CustomEvent<IRevoGridMultiDimensionType>>();\n @Output() beforeedit = new EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>();\n @Output() beforerangeedit = new EventEmitter<CustomEvent<IRevoGridBeforeRangeSaveDataDetails>>();\n @Output() afteredit = new EventEmitter<CustomEvent<IRevoGridAfterEditEvent>>();\n @Output() beforeautofill = new EventEmitter<CustomEvent<IRevoGridChangedRange>>();\n @Output() beforerange = new EventEmitter<CustomEvent<IRevoGridChangedRange>>();\n @Output() afterfocus = new EventEmitter<CustomEvent<IRevoGridFocusAfterRenderEvent>>();\n @Output() roworderchanged = new EventEmitter<CustomEvent<{ from: number; to: number }>>();\n @Output() beforesorting = new EventEmitter<CustomEvent<{ column: IRevoGridColumnRegular; order: 'desc' | 'asc'; additive: boolean; }>>();\n @Output() beforesourcesortingapply = new EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; sorting?: IRevoGridSortingOrder; }>>();\n @Output() beforesortingapply = new EventEmitter<CustomEvent<{ column: IRevoGridColumnRegular; order: 'desc' | 'asc'; additive: boolean; }>>();\n @Output() rowdragstart = new EventEmitter<CustomEvent<IRevoGridRowDragStartDetails>>();\n @Output() headerclick = new EventEmitter<CustomEvent<IRevoGridColumnRegular>>();\n @Output() beforecellfocus = new EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>();\n @Output() beforefocuslost = new EventEmitter<CustomEvent<IRevoGridFocusedData | null>>();\n @Output() beforesourceset = new EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; source: IRevoGridDataType[]; }>>();\n @Output() beforeanysource = new EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; source: IRevoGridDataType[]; }>>();\n @Output() aftersourceset = new EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; source: IRevoGridDataType[]; }>>();\n @Output() afteranysource = new EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; source: IRevoGridDataType[]; }>>();\n @Output() beforecolumnsset = new EventEmitter<CustomEvent<IRevoGridColumnCollection>>();\n @Output() beforecolumnapplied = new EventEmitter<CustomEvent<IRevoGridColumnCollection>>();\n @Output() aftercolumnsset = new EventEmitter<CustomEvent<{ columns: IRevoGridColumnCollection; order: IRevoGridSortingOrder; }>>();\n @Output() beforefilterapply = new EventEmitter<CustomEvent<{ collection: Record<IRevoGridColumnProp, IRevoGridFilterCollectionItem> }>>();\n @Output() beforefiltertrimmed = new EventEmitter<CustomEvent<{ collection: Record<IRevoGridColumnProp, IRevoGridFilterCollectionItem>; itemsToFilter: Record<number, boolean>; }>>();\n @Output() beforetrimmed = new EventEmitter<CustomEvent<{ trimmed: Record<number, boolean>; trimmedType: string; type: string; }>>();\n @Output() aftertrimmed = new EventEmitter<CustomEvent<any>>();\n @Output() viewportscroll = new EventEmitter<CustomEvent<IRevoGridViewPortScrollEvent>>();\n @Output() beforeexport = new EventEmitter<CustomEvent<IRevoGridDataInput>>();\n @Output() beforeeditstart = new EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>();\n @Output() aftercolumnresize = new EventEmitter<CustomEvent<{ [index: number]: IRevoGridColumnRegular; }>>();\n @Output() beforerowdefinition = new EventEmitter<CustomEvent<{ vals: any; oldVals: any }>>();\n @Output() filterconfigchanged = new EventEmitter<CustomEvent<any>>();\n @Output() sortingconfigchanged = new EventEmitter<CustomEvent<IRevoGridSortingConfig>>();\n @Output() rowheaderschanged = new EventEmitter<CustomEvent<any>>();\n @Output() beforegridrender = new EventEmitter<CustomEvent<any>>();\n @Output() aftergridrender = new EventEmitter<CustomEvent<any>>();\n @Output() aftergridinit = new EventEmitter<CustomEvent<any>>();\n @Output() additionaldatachanged = new EventEmitter<CustomEvent<any>>();\n @Output() afterthemechanged = new EventEmitter<CustomEvent<IRevoGridTheme>>();\n @Output() created = new EventEmitter<CustomEvent<any>>();\n constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {\n c.detach();\n this.el = r.nativeElement;\n }\n}\n\n\nimport type { MultiDimensionType as IRevoGridMultiDimensionType } from '@revolist/revogrid/standalone';\nimport type { BeforeSaveDataDetails as IRevoGridBeforeSaveDataDetails } from '@revolist/revogrid/standalone';\nimport type { BeforeRangeSaveDataDetails as IRevoGridBeforeRangeSaveDataDetails } from '@revolist/revogrid/standalone';\nimport type { AfterEditEvent as IRevoGridAfterEditEvent } from '@revolist/revogrid/standalone';\nimport type { ChangedRange as IRevoGridChangedRange } from '@revolist/revogrid/standalone';\nimport type { FocusAfterRenderEvent as IRevoGridFocusAfterRenderEvent } from '@revolist/revogrid/standalone';\nimport type { ColumnRegular as IRevoGridColumnRegular } from '@revolist/revogrid/standalone';\nimport type { DimensionRows as IRevoGridDimensionRows } from '@revolist/revogrid/standalone';\nimport type { SortingOrder as IRevoGridSortingOrder } from '@revolist/revogrid/standalone';\nimport type { RowDragStartDetails as IRevoGridRowDragStartDetails } from '@revolist/revogrid/standalone';\nimport type { FocusedData as IRevoGridFocusedData } from '@revolist/revogrid/standalone';\nimport type { DataType as IRevoGridDataType } from '@revolist/revogrid/standalone';\nimport type { ColumnCollection as IRevoGridColumnCollection } from '@revolist/revogrid/standalone';\nimport type { ColumnProp as IRevoGridColumnProp } from '@revolist/revogrid/standalone';\nimport type { FilterCollectionItem as IRevoGridFilterCollectionItem } from '@revolist/revogrid/standalone';\nimport type { ViewPortScrollEvent as IRevoGridViewPortScrollEvent } from '@revolist/revogrid/standalone';\nimport type { DataInput as IRevoGridDataInput } from '@revolist/revogrid/standalone';\nimport type { SortingConfig as IRevoGridSortingConfig } from '@revolist/revogrid/standalone';\nimport type { Theme as IRevoGridTheme } from '@revolist/revogrid/standalone';\n\nexport declare interface RevoGrid extends Components.RevoGrid {\n /**\n * New content size has been applied. The size excludes the header.\nCurrently, the event responsible for applying the new content size does not provide the actual size.\nTo retrieve the actual content size, you can utilize the `getContentSize` function after the event has been triggered.\n */\n contentsizechanged: EventEmitter<CustomEvent<IRevoGridMultiDimensionType>>;\n /**\n * Before the data is edited.\nTo prevent the default behavior of editing data and use your own implementation, call `e.preventDefault()`.\nTo override the edit result with your own value, set the `e.val` property to your desired value.\n */\n beforeedit: EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>;\n /**\n * Before applying range data, specifically when a range selection occurs.\nTo customize the data and prevent the default edit data from being set, you can call `e.preventDefault()`.\n */\n beforerangeedit: EventEmitter<CustomEvent<IRevoGridBeforeRangeSaveDataDetails>>;\n /**\n * After data applied or range changed.\n */\n afteredit: EventEmitter<CustomEvent<IRevoGridAfterEditEvent>>;\n /**\n * Before autofill is applied.\nTo prevent the default behavior of applying the edit data, you can call `e.preventDefault()`.\n */\n beforeautofill: EventEmitter<CustomEvent<IRevoGridChangedRange>>;\n /**\n * Before autofill is applied. Runs before beforeautofill event.\nUse e.preventDefault() to prevent range.\n */\n beforerange: EventEmitter<CustomEvent<IRevoGridChangedRange>>;\n /**\n * After focus render finished.\nCan be used to access a focus element through `event.target`.\nThis is just a duplicate of `afterfocus` from `revogr-focus.tsx`.\n */\n afterfocus: EventEmitter<CustomEvent<IRevoGridFocusAfterRenderEvent>>;\n /**\n * Before the order of `rgRow` is applied.\nTo prevent the default behavior of changing the order of `rgRow`, you can call `e.preventDefault()`.\n */\n roworderchanged: EventEmitter<CustomEvent<{ from: number; to: number }>>;\n /**\n * By `SortingPlugin`\n<br>Triggered immediately after header click.\n<br>First in sorting event sequence. Ff this event stops no other event called.\n<br>Use `e.preventDefault()` to prevent sorting.\n */\n beforesorting: EventEmitter<CustomEvent<{ column: IRevoGridColumnRegular; order: 'desc' | 'asc'; additive: boolean; }>>;\n /**\n * By `SortingPlugin`\n<br>Same as `beforesorting` but triggered after `beforeanysource` (when source is changed).\n<br>Use `e.preventDefault()` to prevent sorting data change.\n */\n beforesourcesortingapply: EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; sorting?: IRevoGridSortingOrder; }>>;\n /**\n * By `SortingPlugin`\n<br> After `beforesorting`\n<br>Triggered after column data updated with new sorting order.\n<br>Use `e.preventDefault()` to prevent sorting data change.\n */\n beforesortingapply: EventEmitter<CustomEvent<{ column: IRevoGridColumnRegular; order: 'desc' | 'asc'; additive: boolean; }>>;\n /**\n * This event is triggered when the row order change is started.\nTo prevent the default behavior of changing the row order, you can call `e.preventDefault()`.\nTo change the item name at the start of the row order change, you can set `e.text` to the desired new name.\n */\n rowdragstart: EventEmitter<CustomEvent<IRevoGridRowDragStartDetails>>;\n /**\n * On header click.\n */\n headerclick: EventEmitter<CustomEvent<IRevoGridColumnRegular>>;\n /**\n * Before the cell focus is changed.\nTo prevent the default behavior of changing the cell focus, you can call `e.preventDefault()`.\n */\n beforecellfocus: EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>;\n /**\n * Before the grid focus is lost.\nTo prevent the default behavior of changing the cell focus, you can call `e.preventDefault()`.\n */\n beforefocuslost: EventEmitter<CustomEvent<IRevoGridFocusedData | null>>;\n /**\n * Before main source/rows data apply.\nYou can override data source here\n */\n beforesourceset: EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; source: IRevoGridDataType[]; }>>;\n /**\n * Before data apply on any source type. Can be source from pinned and main viewport.\nYou can override data source here\n */\n beforeanysource: EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; source: IRevoGridDataType[]; }>>;\n /**\n * After main source/rows updated\n */\n aftersourceset: EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; source: IRevoGridDataType[]; }>>;\n /**\n * Emitted after each source update, whether from the pinned or main viewport.\nUseful for tracking all changes originating from sources in both the pinned and main viewports.\n */\n afteranysource: EventEmitter<CustomEvent<{ type: IRevoGridDimensionRows; source: IRevoGridDataType[]; }>>;\n /**\n * Emitted before a column update is applied.\nListeners can use this event to perform any necessary actions or modifications before the column update is finalized.\n */\n beforecolumnsset: EventEmitter<CustomEvent<IRevoGridColumnCollection>>;\n /**\n * Emitted before a column update is applied, after the column set is gathered and the viewport is updated.\nUseful for performing actions or modifications before the final application of the column update.\n */\n beforecolumnapplied: EventEmitter<CustomEvent<IRevoGridColumnCollection>>;\n /**\n * Column updated\n */\n aftercolumnsset: EventEmitter<CustomEvent<{ columns: IRevoGridColumnCollection; order: IRevoGridSortingOrder; }>>;\n /**\n * Emitted before applying a filter to the data source.\nUse e.preventDefault() to prevent cell focus change.\nModify if you need to change filters.\n */\n beforefilterapply: EventEmitter<CustomEvent<{ collection: Record<IRevoGridColumnProp, IRevoGridFilterCollectionItem> }>>;\n /**\n * Emitted before applying a filter to the data source.\nUse e.preventDefault() to prevent the default behavior of trimming values and applying the filter.\nModify the `collection` property if you want to change the filters.\nModify the `itemsToFilter` property if you want to filter the indexes for trimming.\n */\n beforefiltertrimmed: EventEmitter<CustomEvent<{ collection: Record<IRevoGridColumnProp, IRevoGridFilterCollectionItem>; itemsToFilter: Record<number, boolean>; }>>;\n /**\n * Emitted before trimming values.\nUse e.preventDefault() to prevent the default behavior of trimming values.\nModify the `trimmed` property if you want to filter the indexes for trimming.\n */\n beforetrimmed: EventEmitter<CustomEvent<{ trimmed: Record<number, boolean>; trimmedType: string; type: string; }>>;\n /**\n * Emitted after trimmed values have been applied.\nUseful for notifying when trimming of values has taken place.\n */\n aftertrimmed: EventEmitter<CustomEvent<any>>;\n /**\n * Emitted when the viewport is scrolled.\nUseful for tracking viewport scrolling events.\n */\n viewportscroll: EventEmitter<CustomEvent<IRevoGridViewPortScrollEvent>>;\n /**\n * Before export\nUse e.preventDefault() to prevent export\nReplace data in Event in case you want to modify it in export\n */\n beforeexport: EventEmitter<CustomEvent<IRevoGridDataInput>>;\n /**\n * Emitted before editing starts.\nUse e.preventDefault() to prevent the default edit behavior.\n */\n beforeeditstart: EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>;\n /**\n * Emitted after column resizing.\nUseful for retrieving the resized columns.\n */\n aftercolumnresize: EventEmitter<CustomEvent<{ [index: number]: IRevoGridColumnRegular; }>>;\n /**\n * Emitted before the row definition is applied.\nUseful for modifying or preventing the default row definition behavior.\n */\n beforerowdefinition: EventEmitter<CustomEvent<{ vals: any; oldVals: any }>>;\n /**\n * Emitted when the filter configuration is changed\n */\n filterconfigchanged: EventEmitter<CustomEvent<any>>;\n /**\n * Emitted when the sorting configuration is changed\nSortingPlugin subsribed to this event\n */\n sortingconfigchanged: EventEmitter<CustomEvent<IRevoGridSortingConfig>>;\n /**\n * Emmited when the row headers are changed.\n */\n rowheaderschanged: EventEmitter<CustomEvent<any>>;\n /**\n * Emmited before the grid is rendered.\n */\n beforegridrender: EventEmitter<CustomEvent<any>>;\n /**\n * Emmited after the grid is rendered.\n */\n aftergridrender: EventEmitter<CustomEvent<any>>;\n /**\n * Emmited after the grid is initialized. Connected to the DOM.\n */\n aftergridinit: EventEmitter<CustomEvent<any>>;\n /**\n * Emmited after the additional data is changed\n */\n additionaldatachanged: EventEmitter<CustomEvent<any>>;\n /**\n * Emmited after the theme is changed\n */\n afterthemechanged: EventEmitter<CustomEvent<IRevoGridTheme>>;\n /**\n * Emmited after grid created\n */\n created: EventEmitter<CustomEvent<any>>;\n}\n\n\n","/**\n * Angular Adapter Function:\n * Handles the rendering and lifecycle of Angular components within StencilJS using updated Angular APIs.\n */\nimport { Injector, ComponentRef, Type, ApplicationRef, createComponent, EnvironmentInjector, inject } from '@angular/core';\nimport { ColumnDataSchemaModel, ColumnTemplateProp } from '@revolist/revogrid';\n\nexport interface AngularElement extends HTMLElement {\n componentRef?: ComponentRef<any>; // Reference to the Angular component\n}\n\nexport interface RenderedComponent<T> {\n update: (newProps: T) => void; // Function to update component with new props\n destroy: () => void; // Function to destroy the component\n}\n\nfunction updateProps<T extends object>(el: AngularElement, newProps: T) {\n if (!el.componentRef?.instance) {\n return;\n }\n \n \n // Update both ways to ensure it works with different component implementations\n el.componentRef.instance.props = newProps;\n el.componentRef.setInput('props', newProps);\n \n // Handle ngOnChanges if component implements it\n if (el.componentRef.instance.ngOnChanges) {\n const previousValue = el.componentRef.instance.props;\n const simpleChanges = {\n props: {\n previousValue,\n currentValue: newProps,\n firstChange: previousValue === undefined,\n isFirstChange: () => previousValue === undefined\n }\n };\n el.componentRef.instance.ngOnChanges(simpleChanges);\n }\n \n // Force component to check for updates\n el.componentRef.changeDetectorRef.markForCheck();\n el.componentRef.changeDetectorRef.detectChanges();\n}\n\nexport function TemplateConstructor<T extends Object>(\n el: AngularElement | null,\n AngularComponent: Type<any>,\n initialProps: T = {} as T,\n injector: Injector,\n lastEl: RenderedComponent<T> | null = null,\n): RenderedComponent<T> | null {\n if (!el) {\n lastEl?.destroy?.(); // Destroy last component if element is null\n return null;\n }\n\n if (!el.componentRef) {\n const applicationRef = injector.get(ApplicationRef);\n const environmentInjector = injector.get(EnvironmentInjector);\n const componentRef = createComponent(AngularComponent, { environmentInjector });\n applicationRef.attachView(componentRef.hostView);\n componentRef.instance.props = initialProps;\n componentRef.changeDetectorRef.detectChanges();\n el.componentRef = componentRef; // Store the component reference\n el.appendChild(componentRef.location.nativeElement);\n } else if (el.componentRef.instance) {\n updateProps(el, initialProps);\n }\n\n // Function to update component props\n const update = (newProps: T) => updateProps(el, newProps);\n\n // Function to destroy the component\n const destroy = () => {\n el.componentRef?.destroy();\n el.componentRef = undefined;\n };\n\n return { update, destroy };\n}\n\n// Function to create template for Angular component\nexport const Template = (\n AngularComponent: Type<any>,\n customProps?: any,\n injector = inject(Injector)\n) => {\n return (h: any, p: ColumnDataSchemaModel | ColumnTemplateProp, addition?: any) => {\n const props = customProps ? { ...customProps, ...p } : p;\n props.addition = addition;\n let lastEl: RenderedComponent<any> | null = null;\n return h('span', {\n key: `${p.prop}-${p.rowIndex || 0}`,\n ref: (el: AngularElement | null) => {\n lastEl = TemplateConstructor(el, AngularComponent, props, injector, lastEl);\n }\n });\n };\n};\n","import type { EditCell, ColumnDataSchemaModel, HyperFunc, VNode, EditorBase } from '@revolist/revogrid';\nimport { Injector, Type } from '@angular/core';\nimport { TemplateConstructor, RenderedComponent, AngularElement } from './renderer';\n/**\n * Data passed to editor\n */\nexport type EditorType = {\n column: ColumnDataSchemaModel;\n save: (value: any, preventFocus?: boolean) => void;\n close: (focusNext?: boolean) => void;\n} & Partial<EditCell>;\n\nexport class EditorAdapter implements EditorBase {\n public element: AngularElement | null = null;\n public editCell?: EditCell;\n private renderedComponent: RenderedComponent<any> | null = null;\n\n constructor(\n private EditorComponent: Type<any>,\n private injector: Injector,\n public column: ColumnDataSchemaModel,\n private save: (value: any, preventFocus?: boolean) => void,\n private close: (focusNext?: boolean) => void,\n ) {}\n\n // optional, called after editor rendered\n componentDidRender() {}\n\n // optional, called after editor destroyed\n disconnectedCallback() {\n this.renderedComponent?.destroy();\n this.renderedComponent = null;\n }\n\n render(h: HyperFunc<VNode>) {\n return h('span', {\n key: `${this.column.prop}-${this.editCell?.rowIndex || 0}`,\n ref: (el: AngularElement) => \n this.renderedComponent = TemplateConstructor(\n el,\n this.EditorComponent,\n {\n ...this.editCell,\n column: this.column,\n save: this.save,\n close: this.close,\n },\n this.injector,\n ),\n });\n }\n}\n","import type { ColumnDataSchemaModel, EditorCtr } from '@revolist/revogrid';\nimport { Injector, Type, inject } from '@angular/core';\nimport { EditorAdapter } from './editor.adapter';\n/**\n * Create editor constructor.\n * This function creates editor constructor by wrapping it with EditorAdapter\n * which is responsible for connecting editor with grid.\n */\nexport const Editor = (\n EditorComponent: Type<any>,\n injector = inject(Injector),\n): EditorCtr => {\n /**\n * Editor constructor wrapper\n * @param column column data to which editor is bound\n * @param save function to save data\n * @param close function to close editor\n * @returns editor instance\n */\n return function (\n column: ColumnDataSchemaModel,\n save: (value: any, preventFocus?: boolean) => void,\n close: (focusNext?: boolean) => void,\n ) {\n return new EditorAdapter(EditorComponent, injector, column, save, close);\n };\n};\n","/*\n * Public API Surface of angular-datagrid\n */\nexport * from '@revolist/revogrid';\nexport * from './lib/components';\nexport * from './lib/editor.adapter';\nexport * from './lib/editor';\nexport * from './lib/renderer';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAAA;AACA;AAGO,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAE,MAAgB,KAAI;AACxD,IAAA,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS;AAC/B,IAAA,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AACtB,QAAA,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,IAAI,EAAE;YACrC,GAAG,GAAA;AACD,gBAAA,OAAO,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC;YACtB,CAAC;AACD,YAAA,GAAG,CAAC,GAAQ,EAAA;AACV,gBAAA,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,OAAO,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;YACvD,CAAC;AACD;;;;;;AAMG;AACH,YAAA,YAAY,EAAE,IAAI;AACnB,SAAA,CAAC;AACJ,IAAA,CAAC,CAAC;AACJ,CAAC;AAEM,MAAM,YAAY,GAAG,CAAC,GAAQ,EAAE,OAAiB,KAAI;AAC1D,IAAA,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS;AAC/B,IAAA,OAAO,CAAC,OAAO,CAAC,CAAC,UAAU,KAAI;QAC7B,SAAS,CAAC,UAAU,CAAC,GAAG,YAAA;YACtB,MAAM,I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AI,CAAC,iBAAiB,GAAG,IAAI;IAC/B;AAEA,IAAA,MAAM,CAAC,CAAmB,EAAA;QACxB,OAAO,CAAC,CAAC,MAAM,EAAE;AACf,YAAA,GAAG,EAAE,CAAA,EAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAA,CAAA,EAAI,IAAI,CAAC,QAAQ,EAAE,QAAQ,IAAI,CAAC,CAAA,CAAE;AAC1D,YAAA,GAAG,EAAE,CAAC,EAAkB,KACtB,IAAI,CAAC,iBAAiB,GAAG,mBAAmB,CAC1C,EAAE,EACF,IAAI,CAAC,eAAe,EACpB;gBACE,GAAG,IAAI,CAAC,QAAQ;gBAChB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,KAAK,EAAE,IAAI,CAAC,KAAK;aAClB,EACD,IAAI,CAAC,QAAQ,CACd;AACF,SAAA,CAAC;IACN;AACD;;AChDD;;;;AAIG;AACI,MAAM,MAAM,GAAG,CACpB,eAA0B,EAC1B,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,KACd;AACb;;;;;;AAMG;AACH,IAAA,OAAO,UACL,MAA6B,EAC7B,IAAkD,EAClD,KAAoC,EAAA;AAEpC,QAAA,OAAO,IAAI,aAAa,CAAC,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC;AAC1E,IAAA,CAAC;AACH;;AC1BA;;AAEG;;ACFH;;AAEG;;;;"}
package/index.d.ts CHANGED
@@ -1,5 +1,391 @@
1
+ import { ColumnDataSchemaModel, ColumnTemplateProp, EditCell, EditorBase, HyperFunc, VNode, EditorCtr } from '@revolist/revogrid';
2
+ export * from '@revolist/revogrid';
3
+ import * as i0 from '@angular/core';
4
+ import { NgZone, EventEmitter, ChangeDetectorRef, ElementRef, ComponentRef, Type, Injector } from '@angular/core';
5
+ import { MultiDimensionType, BeforeSaveDataDetails, BeforeRangeSaveDataDetails, AfterEditEvent, ChangedRange, FocusAfterRenderEvent, ColumnRegular, DimensionRows, SortingOrder, RowDragStartDetails, FocusedData, DataType, ColumnCollection, ColumnProp, FilterCollectionItem, ViewPortScrollEvent, DataInput, SortingConfig, Components, Theme } from '@revolist/revogrid/standalone';
6
+
7
+ declare class RevoGrid {
8
+ protected z: NgZone;
9
+ protected el: HTMLRevoGridElement;
10
+ contentsizechanged: EventEmitter<CustomEvent<MultiDimensionType>>;
11
+ beforeedit: EventEmitter<CustomEvent<BeforeSaveDataDetails>>;
12
+ beforerangeedit: EventEmitter<CustomEvent<BeforeRangeSaveDataDetails>>;
13
+ afteredit: EventEmitter<CustomEvent<AfterEditEvent>>;
14
+ beforeautofill: EventEmitter<CustomEvent<ChangedRange>>;
15
+ beforerange: EventEmitter<CustomEvent<ChangedRange>>;
16
+ afterfocus: EventEmitter<CustomEvent<FocusAfterRenderEvent>>;
17
+ roworderchanged: EventEmitter<CustomEvent<{
18
+ from: number;
19
+ to: number;
20
+ }>>;
21
+ beforesorting: EventEmitter<CustomEvent<{
22
+ column: ColumnRegular;
23
+ order: "desc" | "asc";
24
+ additive: boolean;
25
+ }>>;
26
+ beforesourcesortingapply: EventEmitter<CustomEvent<{
27
+ type: DimensionRows;
28
+ sorting?: SortingOrder;
29
+ }>>;
30
+ beforesortingapply: EventEmitter<CustomEvent<{
31
+ column: ColumnRegular;
32
+ order: "desc" | "asc";
33
+ additive: boolean;
34
+ }>>;
35
+ rowdragstart: EventEmitter<CustomEvent<RowDragStartDetails>>;
36
+ headerclick: EventEmitter<CustomEvent<ColumnRegular>>;
37
+ beforecellfocus: EventEmitter<CustomEvent<BeforeSaveDataDetails>>;
38
+ beforefocuslost: EventEmitter<CustomEvent<FocusedData | null>>;
39
+ beforesourceset: EventEmitter<CustomEvent<{
40
+ type: DimensionRows;
41
+ source: DataType[];
42
+ }>>;
43
+ beforeanysource: EventEmitter<CustomEvent<{
44
+ type: DimensionRows;
45
+ source: DataType[];
46
+ }>>;
47
+ aftersourceset: EventEmitter<CustomEvent<{
48
+ type: DimensionRows;
49
+ source: DataType[];
50
+ }>>;
51
+ afteranysource: EventEmitter<CustomEvent<{
52
+ type: DimensionRows;
53
+ source: DataType[];
54
+ }>>;
55
+ beforecolumnsset: EventEmitter<CustomEvent<ColumnCollection>>;
56
+ beforecolumnapplied: EventEmitter<CustomEvent<ColumnCollection>>;
57
+ aftercolumnsset: EventEmitter<CustomEvent<{
58
+ columns: ColumnCollection;
59
+ order: SortingOrder;
60
+ }>>;
61
+ beforefilterapply: EventEmitter<CustomEvent<{
62
+ collection: Record<ColumnProp, FilterCollectionItem>;
63
+ }>>;
64
+ beforefiltertrimmed: EventEmitter<CustomEvent<{
65
+ collection: Record<ColumnProp, FilterCollectionItem>;
66
+ itemsToFilter: Record<number, boolean>;
67
+ }>>;
68
+ beforetrimmed: EventEmitter<CustomEvent<{
69
+ trimmed: Record<number, boolean>;
70
+ trimmedType: string;
71
+ type: string;
72
+ }>>;
73
+ aftertrimmed: EventEmitter<CustomEvent<any>>;
74
+ viewportscroll: EventEmitter<CustomEvent<ViewPortScrollEvent>>;
75
+ beforeexport: EventEmitter<CustomEvent<DataInput>>;
76
+ beforeeditstart: EventEmitter<CustomEvent<BeforeSaveDataDetails>>;
77
+ aftercolumnresize: EventEmitter<CustomEvent<{
78
+ [index: number]: ColumnRegular;
79
+ }>>;
80
+ beforerowdefinition: EventEmitter<CustomEvent<{
81
+ vals: any;
82
+ oldVals: any;
83
+ }>>;
84
+ filterconfigchanged: EventEmitter<CustomEvent<any>>;
85
+ sortingconfigchanged: EventEmitter<CustomEvent<SortingConfig>>;
86
+ rowheaderschanged: EventEmitter<CustomEvent<any>>;
87
+ beforegridrender: EventEmitter<CustomEvent<any>>;
88
+ aftergridrender: EventEmitter<CustomEvent<any>>;
89
+ aftergridinit: EventEmitter<CustomEvent<any>>;
90
+ additionaldatachanged: EventEmitter<CustomEvent<any>>;
91
+ afterthemechanged: EventEmitter<CustomEvent<string>>;
92
+ created: EventEmitter<CustomEvent<any>>;
93
+ constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
94
+ static ɵfac: i0.ɵɵFactoryDeclaration<RevoGrid, never>;
95
+ static ɵcmp: i0.ɵɵComponentDeclaration<RevoGrid, "revo-grid", never, { "accessible": { "alias": "accessible"; "required": false; }; "additionalData": { "alias": "additionalData"; "required": false; }; "applyOnClose": { "alias": "applyOnClose"; "required": false; }; "autoSizeColumn": { "alias": "autoSizeColumn"; "required": false; }; "canDrag": { "alias": "canDrag"; "required": false; }; "canFocus": { "alias": "canFocus"; "required": false; }; "canMoveColumns": { "alias": "canMoveColumns"; "required": false; }; "colSize": { "alias": "colSize"; "required": false; }; "columnTypes": { "alias": "columnTypes"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "disableVirtualX": { "alias": "disableVirtualX"; "required": false; }; "disableVirtualY": { "alias": "disableVirtualY"; "required": false; }; "editors": { "alias": "editors"; "required": false; }; "exporting": { "alias": "exporting"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "focusTemplate": { "alias": "focusTemplate"; "required": false; }; "frameSize": { "alias": "frameSize"; "required": false; }; "grouping": { "alias": "grouping"; "required": false; }; "hideAttribution": { "alias": "hideAttribution"; "required": false; }; "jobsBeforeRender": { "alias": "jobsBeforeRender"; "required": false; }; "pinnedBottomSource": { "alias": "pinnedBottomSource"; "required": false; }; "pinnedTopSource": { "alias": "pinnedTopSource"; "required": false; }; "plugins": { "alias": "plugins"; "required": false; }; "range": { "alias": "range"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "registerVNode": { "alias": "registerVNode"; "required": false; }; "resize": { "alias": "resize"; "required": false; }; "rowClass": { "alias": "rowClass"; "required": false; }; "rowDefinitions": { "alias": "rowDefinitions"; "required": false; }; "rowHeaders": { "alias": "rowHeaders"; "required": false; }; "rowSize": { "alias": "rowSize"; "required": false; }; "rtl": { "alias": "rtl"; "required": false; }; "sorting": { "alias": "sorting"; "required": false; }; "source": { "alias": "source"; "required": false; }; "stretch": { "alias": "stretch"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "trimmedRows": { "alias": "trimmedRows"; "required": false; }; "useClipboard": { "alias": "useClipboard"; "required": false; }; }, { "contentsizechanged": "contentsizechanged"; "beforeedit": "beforeedit"; "beforerangeedit": "beforerangeedit"; "afteredit": "afteredit"; "beforeautofill": "beforeautofill"; "beforerange": "beforerange"; "afterfocus": "afterfocus"; "roworderchanged": "roworderchanged"; "beforesorting": "beforesorting"; "beforesourcesortingapply": "beforesourcesortingapply"; "beforesortingapply": "beforesortingapply"; "rowdragstart": "rowdragstart"; "headerclick": "headerclick"; "beforecellfocus": "beforecellfocus"; "beforefocuslost": "beforefocuslost"; "beforesourceset": "beforesourceset"; "beforeanysource": "beforeanysource"; "aftersourceset": "aftersourceset"; "afteranysource": "afteranysource"; "beforecolumnsset": "beforecolumnsset"; "beforecolumnapplied": "beforecolumnapplied"; "aftercolumnsset": "aftercolumnsset"; "beforefilterapply": "beforefilterapply"; "beforefiltertrimmed": "beforefiltertrimmed"; "beforetrimmed": "beforetrimmed"; "aftertrimmed": "aftertrimmed"; "viewportscroll": "viewportscroll"; "beforeexport": "beforeexport"; "beforeeditstart": "beforeeditstart"; "aftercolumnresize": "aftercolumnresize"; "beforerowdefinition": "beforerowdefinition"; "filterconfigchanged": "filterconfigchanged"; "sortingconfigchanged": "sortingconfigchanged"; "rowheaderschanged": "rowheaderschanged"; "beforegridrender": "beforegridrender"; "aftergridrender": "aftergridrender"; "aftergridinit": "aftergridinit"; "additionaldatachanged": "additionaldatachanged"; "afterthemechanged": "afterthemechanged"; "created": "created"; }, never, ["*"], true, never>;
96
+ }
97
+ declare interface RevoGrid extends Components.RevoGrid {
98
+ /**
99
+ * New content size has been applied. The size excludes the header.
100
+ Currently, the event responsible for applying the new content size does not provide the actual size.
101
+ To retrieve the actual content size, you can utilize the `getContentSize` function after the event has been triggered.
102
+ */
103
+ contentsizechanged: EventEmitter<CustomEvent<MultiDimensionType>>;
104
+ /**
105
+ * Before the data is edited.
106
+ To prevent the default behavior of editing data and use your own implementation, call `e.preventDefault()`.
107
+ To override the edit result with your own value, set the `e.val` property to your desired value.
108
+ */
109
+ beforeedit: EventEmitter<CustomEvent<BeforeSaveDataDetails>>;
110
+ /**
111
+ * Before applying range data, specifically when a range selection occurs.
112
+ To customize the data and prevent the default edit data from being set, you can call `e.preventDefault()`.
113
+ */
114
+ beforerangeedit: EventEmitter<CustomEvent<BeforeRangeSaveDataDetails>>;
115
+ /**
116
+ * After data applied or range changed.
117
+ */
118
+ afteredit: EventEmitter<CustomEvent<AfterEditEvent>>;
119
+ /**
120
+ * Before autofill is applied.
121
+ To prevent the default behavior of applying the edit data, you can call `e.preventDefault()`.
122
+ */
123
+ beforeautofill: EventEmitter<CustomEvent<ChangedRange>>;
124
+ /**
125
+ * Before autofill is applied. Runs before beforeautofill event.
126
+ Use e.preventDefault() to prevent range.
127
+ */
128
+ beforerange: EventEmitter<CustomEvent<ChangedRange>>;
129
+ /**
130
+ * After focus render finished.
131
+ Can be used to access a focus element through `event.target`.
132
+ This is just a duplicate of `afterfocus` from `revogr-focus.tsx`.
133
+ */
134
+ afterfocus: EventEmitter<CustomEvent<FocusAfterRenderEvent>>;
135
+ /**
136
+ * Before the order of `rgRow` is applied.
137
+ To prevent the default behavior of changing the order of `rgRow`, you can call `e.preventDefault()`.
138
+ */
139
+ roworderchanged: EventEmitter<CustomEvent<{
140
+ from: number;
141
+ to: number;
142
+ }>>;
143
+ /**
144
+ * By `SortingPlugin`
145
+ <br>Triggered immediately after header click.
146
+ <br>First in sorting event sequence. Ff this event stops no other event called.
147
+ <br>Use `e.preventDefault()` to prevent sorting.
148
+ */
149
+ beforesorting: EventEmitter<CustomEvent<{
150
+ column: ColumnRegular;
151
+ order: 'desc' | 'asc';
152
+ additive: boolean;
153
+ }>>;
154
+ /**
155
+ * By `SortingPlugin`
156
+ <br>Same as `beforesorting` but triggered after `beforeanysource` (when source is changed).
157
+ <br>Use `e.preventDefault()` to prevent sorting data change.
158
+ */
159
+ beforesourcesortingapply: EventEmitter<CustomEvent<{
160
+ type: DimensionRows;
161
+ sorting?: SortingOrder;
162
+ }>>;
163
+ /**
164
+ * By `SortingPlugin`
165
+ <br> After `beforesorting`
166
+ <br>Triggered after column data updated with new sorting order.
167
+ <br>Use `e.preventDefault()` to prevent sorting data change.
168
+ */
169
+ beforesortingapply: EventEmitter<CustomEvent<{
170
+ column: ColumnRegular;
171
+ order: 'desc' | 'asc';
172
+ additive: boolean;
173
+ }>>;
174
+ /**
175
+ * This event is triggered when the row order change is started.
176
+ To prevent the default behavior of changing the row order, you can call `e.preventDefault()`.
177
+ To change the item name at the start of the row order change, you can set `e.text` to the desired new name.
178
+ */
179
+ rowdragstart: EventEmitter<CustomEvent<RowDragStartDetails>>;
180
+ /**
181
+ * On header click.
182
+ */
183
+ headerclick: EventEmitter<CustomEvent<ColumnRegular>>;
184
+ /**
185
+ * Before the cell focus is changed.
186
+ To prevent the default behavior of changing the cell focus, you can call `e.preventDefault()`.
187
+ */
188
+ beforecellfocus: EventEmitter<CustomEvent<BeforeSaveDataDetails>>;
189
+ /**
190
+ * Before the grid focus is lost.
191
+ To prevent the default behavior of changing the cell focus, you can call `e.preventDefault()`.
192
+ */
193
+ beforefocuslost: EventEmitter<CustomEvent<FocusedData | null>>;
194
+ /**
195
+ * Before main source/rows data apply.
196
+ You can override data source here
197
+ */
198
+ beforesourceset: EventEmitter<CustomEvent<{
199
+ type: DimensionRows;
200
+ source: DataType[];
201
+ }>>;
202
+ /**
203
+ * Before data apply on any source type. Can be source from pinned and main viewport.
204
+ You can override data source here
205
+ */
206
+ beforeanysource: EventEmitter<CustomEvent<{
207
+ type: DimensionRows;
208
+ source: DataType[];
209
+ }>>;
210
+ /**
211
+ * After main source/rows updated
212
+ */
213
+ aftersourceset: EventEmitter<CustomEvent<{
214
+ type: DimensionRows;
215
+ source: DataType[];
216
+ }>>;
217
+ /**
218
+ * Emitted after each source update, whether from the pinned or main viewport.
219
+ Useful for tracking all changes originating from sources in both the pinned and main viewports.
220
+ */
221
+ afteranysource: EventEmitter<CustomEvent<{
222
+ type: DimensionRows;
223
+ source: DataType[];
224
+ }>>;
225
+ /**
226
+ * Emitted before a column update is applied.
227
+ Listeners can use this event to perform any necessary actions or modifications before the column update is finalized.
228
+ */
229
+ beforecolumnsset: EventEmitter<CustomEvent<ColumnCollection>>;
230
+ /**
231
+ * Emitted before a column update is applied, after the column set is gathered and the viewport is updated.
232
+ Useful for performing actions or modifications before the final application of the column update.
233
+ */
234
+ beforecolumnapplied: EventEmitter<CustomEvent<ColumnCollection>>;
235
+ /**
236
+ * Column updated
237
+ */
238
+ aftercolumnsset: EventEmitter<CustomEvent<{
239
+ columns: ColumnCollection;
240
+ order: SortingOrder;
241
+ }>>;
242
+ /**
243
+ * Emitted before applying a filter to the data source.
244
+ Use e.preventDefault() to prevent cell focus change.
245
+ Modify if you need to change filters.
246
+ */
247
+ beforefilterapply: EventEmitter<CustomEvent<{
248
+ collection: Record<ColumnProp, FilterCollectionItem>;
249
+ }>>;
250
+ /**
251
+ * Emitted before applying a filter to the data source.
252
+ Use e.preventDefault() to prevent the default behavior of trimming values and applying the filter.
253
+ Modify the `collection` property if you want to change the filters.
254
+ Modify the `itemsToFilter` property if you want to filter the indexes for trimming.
255
+ */
256
+ beforefiltertrimmed: EventEmitter<CustomEvent<{
257
+ collection: Record<ColumnProp, FilterCollectionItem>;
258
+ itemsToFilter: Record<number, boolean>;
259
+ }>>;
260
+ /**
261
+ * Emitted before trimming values.
262
+ Use e.preventDefault() to prevent the default behavior of trimming values.
263
+ Modify the `trimmed` property if you want to filter the indexes for trimming.
264
+ */
265
+ beforetrimmed: EventEmitter<CustomEvent<{
266
+ trimmed: Record<number, boolean>;
267
+ trimmedType: string;
268
+ type: string;
269
+ }>>;
270
+ /**
271
+ * Emitted after trimmed values have been applied.
272
+ Useful for notifying when trimming of values has taken place.
273
+ */
274
+ aftertrimmed: EventEmitter<CustomEvent<any>>;
275
+ /**
276
+ * Emitted when the viewport is scrolled.
277
+ Useful for tracking viewport scrolling events.
278
+ */
279
+ viewportscroll: EventEmitter<CustomEvent<ViewPortScrollEvent>>;
280
+ /**
281
+ * Before export
282
+ Use e.preventDefault() to prevent export
283
+ Replace data in Event in case you want to modify it in export
284
+ */
285
+ beforeexport: EventEmitter<CustomEvent<DataInput>>;
286
+ /**
287
+ * Emitted before editing starts.
288
+ Use e.preventDefault() to prevent the default edit behavior.
289
+ */
290
+ beforeeditstart: EventEmitter<CustomEvent<BeforeSaveDataDetails>>;
291
+ /**
292
+ * Emitted after column resizing.
293
+ Useful for retrieving the resized columns.
294
+ */
295
+ aftercolumnresize: EventEmitter<CustomEvent<{
296
+ [index: number]: ColumnRegular;
297
+ }>>;
298
+ /**
299
+ * Emitted before the row definition is applied.
300
+ Useful for modifying or preventing the default row definition behavior.
301
+ */
302
+ beforerowdefinition: EventEmitter<CustomEvent<{
303
+ vals: any;
304
+ oldVals: any;
305
+ }>>;
306
+ /**
307
+ * Emitted when the filter configuration is changed
308
+ */
309
+ filterconfigchanged: EventEmitter<CustomEvent<any>>;
310
+ /**
311
+ * Emitted when the sorting configuration is changed
312
+ SortingPlugin subsribed to this event
313
+ */
314
+ sortingconfigchanged: EventEmitter<CustomEvent<SortingConfig>>;
315
+ /**
316
+ * Emmited when the row headers are changed.
317
+ */
318
+ rowheaderschanged: EventEmitter<CustomEvent<any>>;
319
+ /**
320
+ * Emmited before the grid is rendered.
321
+ */
322
+ beforegridrender: EventEmitter<CustomEvent<any>>;
323
+ /**
324
+ * Emmited after the grid is rendered.
325
+ */
326
+ aftergridrender: EventEmitter<CustomEvent<any>>;
327
+ /**
328
+ * Emmited after the grid is initialized. Connected to the DOM.
329
+ */
330
+ aftergridinit: EventEmitter<CustomEvent<any>>;
331
+ /**
332
+ * Emmited after the additional data is changed
333
+ */
334
+ additionaldatachanged: EventEmitter<CustomEvent<any>>;
335
+ /**
336
+ * Emmited after the theme is changed
337
+ */
338
+ afterthemechanged: EventEmitter<CustomEvent<Theme>>;
339
+ /**
340
+ * Emmited after grid created
341
+ */
342
+ created: EventEmitter<CustomEvent<any>>;
343
+ }
344
+
1
345
  /**
2
- * Generated bundle index. Do not edit.
346
+ * Angular Adapter Function:
347
+ * Handles the rendering and lifecycle of Angular components within StencilJS using updated Angular APIs.
3
348
  */
4
- /// <amd-module name="@revolist/angular-datagrid" />
5
- export * from './public-api';
349
+
350
+ interface AngularElement extends HTMLElement {
351
+ componentRef?: ComponentRef<any>;
352
+ }
353
+ interface RenderedComponent<T> {
354
+ update: (newProps: T) => void;
355
+ destroy: () => void;
356
+ }
357
+ declare function TemplateConstructor<T extends Object>(el: AngularElement | null, AngularComponent: Type<any>, initialProps: T | undefined, injector: Injector, lastEl?: RenderedComponent<T> | null): RenderedComponent<T> | null;
358
+ declare const Template: (AngularComponent: Type<any>, customProps?: any, injector?: Injector) => (h: any, p: ColumnDataSchemaModel | ColumnTemplateProp, addition?: any) => any;
359
+
360
+ /**
361
+ * Data passed to editor
362
+ */
363
+ type EditorType = {
364
+ column: ColumnDataSchemaModel;
365
+ save: (value: any, preventFocus?: boolean) => void;
366
+ close: (focusNext?: boolean) => void;
367
+ } & Partial<EditCell>;
368
+ declare class EditorAdapter implements EditorBase {
369
+ private EditorComponent;
370
+ private injector;
371
+ column: ColumnDataSchemaModel;
372
+ private save;
373
+ private close;
374
+ element: AngularElement | null;
375
+ editCell?: EditCell;
376
+ private renderedComponent;
377
+ constructor(EditorComponent: Type<any>, injector: Injector, column: ColumnDataSchemaModel, save: (value: any, preventFocus?: boolean) => void, close: (focusNext?: boolean) => void);
378
+ componentDidRender(): void;
379
+ disconnectedCallback(): void;
380
+ render(h: HyperFunc<VNode>): VNode;
381
+ }
382
+
383
+ /**
384
+ * Create editor constructor.
385
+ * This function creates editor constructor by wrapping it with EditorAdapter
386
+ * which is responsible for connecting editor with grid.
387
+ */
388
+ declare const Editor: (EditorComponent: Type<any>, injector?: Injector) => EditorCtr;
389
+
390
+ export { Editor, EditorAdapter, RevoGrid, Template, TemplateConstructor };
391
+ export type { AngularElement, EditorType, RenderedComponent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revolist/angular-datagrid",
3
- "version": "4.19.4",
3
+ "version": "4.20.2",
4
4
  "description": "Angular DataGrid Spreadsheet component with native cell render support",
5
5
  "keywords": [
6
6
  "revo-grid",
@@ -43,7 +43,7 @@
43
43
  "homepage": "https://github.com/revolist/revogrid#readme",
44
44
  "license": "MIT",
45
45
  "dependencies": {
46
- "@revolist/revogrid": "4.19.4",
46
+ "@revolist/revogrid": "4.20.2",
47
47
  "@stencil/core": "^4.19.2",
48
48
  "tslib": "^2.6.3"
49
49
  },
@@ -1,9 +0,0 @@
1
- export declare const proxyInputs: (Cmp: any, inputs: string[]) => void;
2
- export declare const proxyMethods: (Cmp: any, methods: string[]) => void;
3
- export declare const proxyOutputs: (instance: any, el: any, events: string[]) => void;
4
- export declare const defineCustomElement: (tagName: string, customElement: any) => void;
5
- export declare function ProxyCmp(opts: {
6
- defineCustomElementFn?: () => void;
7
- inputs?: any;
8
- methods?: any;
9
- }): (cls: any) => any;
@@ -1,359 +0,0 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
2
- import type { Components } from '@revolist/revogrid/standalone';
3
- import type { MultiDimensionType as IRevoGridMultiDimensionType } from '@revolist/revogrid/standalone';
4
- import type { BeforeSaveDataDetails as IRevoGridBeforeSaveDataDetails } from '@revolist/revogrid/standalone';
5
- import type { BeforeRangeSaveDataDetails as IRevoGridBeforeRangeSaveDataDetails } from '@revolist/revogrid/standalone';
6
- import type { AfterEditEvent as IRevoGridAfterEditEvent } from '@revolist/revogrid/standalone';
7
- import type { ChangedRange as IRevoGridChangedRange } from '@revolist/revogrid/standalone';
8
- import type { FocusAfterRenderEvent as IRevoGridFocusAfterRenderEvent } from '@revolist/revogrid/standalone';
9
- import type { ColumnRegular as IRevoGridColumnRegular } from '@revolist/revogrid/standalone';
10
- import type { DimensionRows as IRevoGridDimensionRows } from '@revolist/revogrid/standalone';
11
- import type { SortingOrder as IRevoGridSortingOrder } from '@revolist/revogrid/standalone';
12
- import type { RowDragStartDetails as IRevoGridRowDragStartDetails } from '@revolist/revogrid/standalone';
13
- import type { FocusedData as IRevoGridFocusedData } from '@revolist/revogrid/standalone';
14
- import type { DataType as IRevoGridDataType } from '@revolist/revogrid/standalone';
15
- import type { ColumnCollection as IRevoGridColumnCollection } from '@revolist/revogrid/standalone';
16
- import type { ColumnProp as IRevoGridColumnProp } from '@revolist/revogrid/standalone';
17
- import type { FilterCollectionItem as IRevoGridFilterCollectionItem } from '@revolist/revogrid/standalone';
18
- import type { ViewPortScrollEvent as IRevoGridViewPortScrollEvent } from '@revolist/revogrid/standalone';
19
- import type { DataInput as IRevoGridDataInput } from '@revolist/revogrid/standalone';
20
- import type { SortingConfig as IRevoGridSortingConfig } from '@revolist/revogrid/standalone';
21
- import type { Theme as IRevoGridTheme } from '@revolist/revogrid/standalone';
22
- import * as i0 from "@angular/core";
23
- export declare class RevoGrid {
24
- protected z: NgZone;
25
- protected el: HTMLRevoGridElement;
26
- contentsizechanged: EventEmitter<CustomEvent<IRevoGridMultiDimensionType>>;
27
- beforeedit: EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>;
28
- beforerangeedit: EventEmitter<CustomEvent<IRevoGridBeforeRangeSaveDataDetails>>;
29
- afteredit: EventEmitter<CustomEvent<IRevoGridAfterEditEvent>>;
30
- beforeautofill: EventEmitter<CustomEvent<IRevoGridChangedRange>>;
31
- beforerange: EventEmitter<CustomEvent<IRevoGridChangedRange>>;
32
- afterfocus: EventEmitter<CustomEvent<IRevoGridFocusAfterRenderEvent>>;
33
- roworderchanged: EventEmitter<CustomEvent<{
34
- from: number;
35
- to: number;
36
- }>>;
37
- beforesorting: EventEmitter<CustomEvent<{
38
- column: IRevoGridColumnRegular;
39
- order: "desc" | "asc";
40
- additive: boolean;
41
- }>>;
42
- beforesourcesortingapply: EventEmitter<CustomEvent<{
43
- type: IRevoGridDimensionRows;
44
- sorting?: IRevoGridSortingOrder;
45
- }>>;
46
- beforesortingapply: EventEmitter<CustomEvent<{
47
- column: IRevoGridColumnRegular;
48
- order: "desc" | "asc";
49
- additive: boolean;
50
- }>>;
51
- rowdragstart: EventEmitter<CustomEvent<IRevoGridRowDragStartDetails>>;
52
- headerclick: EventEmitter<CustomEvent<IRevoGridColumnRegular>>;
53
- beforecellfocus: EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>;
54
- beforefocuslost: EventEmitter<CustomEvent<IRevoGridFocusedData | null>>;
55
- beforesourceset: EventEmitter<CustomEvent<{
56
- type: IRevoGridDimensionRows;
57
- source: IRevoGridDataType[];
58
- }>>;
59
- beforeanysource: EventEmitter<CustomEvent<{
60
- type: IRevoGridDimensionRows;
61
- source: IRevoGridDataType[];
62
- }>>;
63
- aftersourceset: EventEmitter<CustomEvent<{
64
- type: IRevoGridDimensionRows;
65
- source: IRevoGridDataType[];
66
- }>>;
67
- afteranysource: EventEmitter<CustomEvent<{
68
- type: IRevoGridDimensionRows;
69
- source: IRevoGridDataType[];
70
- }>>;
71
- beforecolumnsset: EventEmitter<CustomEvent<IRevoGridColumnCollection>>;
72
- beforecolumnapplied: EventEmitter<CustomEvent<IRevoGridColumnCollection>>;
73
- aftercolumnsset: EventEmitter<CustomEvent<{
74
- columns: IRevoGridColumnCollection;
75
- order: IRevoGridSortingOrder;
76
- }>>;
77
- beforefilterapply: EventEmitter<CustomEvent<{
78
- collection: Record<IRevoGridColumnProp, IRevoGridFilterCollectionItem>;
79
- }>>;
80
- beforefiltertrimmed: EventEmitter<CustomEvent<{
81
- collection: Record<IRevoGridColumnProp, IRevoGridFilterCollectionItem>;
82
- itemsToFilter: Record<number, boolean>;
83
- }>>;
84
- beforetrimmed: EventEmitter<CustomEvent<{
85
- trimmed: Record<number, boolean>;
86
- trimmedType: string;
87
- type: string;
88
- }>>;
89
- aftertrimmed: EventEmitter<CustomEvent<any>>;
90
- viewportscroll: EventEmitter<CustomEvent<IRevoGridViewPortScrollEvent>>;
91
- beforeexport: EventEmitter<CustomEvent<IRevoGridDataInput>>;
92
- beforeeditstart: EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>;
93
- aftercolumnresize: EventEmitter<CustomEvent<{
94
- [index: number]: IRevoGridColumnRegular;
95
- }>>;
96
- beforerowdefinition: EventEmitter<CustomEvent<{
97
- vals: any;
98
- oldVals: any;
99
- }>>;
100
- filterconfigchanged: EventEmitter<CustomEvent<any>>;
101
- sortingconfigchanged: EventEmitter<CustomEvent<IRevoGridSortingConfig>>;
102
- rowheaderschanged: EventEmitter<CustomEvent<any>>;
103
- beforegridrender: EventEmitter<CustomEvent<any>>;
104
- aftergridrender: EventEmitter<CustomEvent<any>>;
105
- aftergridinit: EventEmitter<CustomEvent<any>>;
106
- additionaldatachanged: EventEmitter<CustomEvent<any>>;
107
- afterthemechanged: EventEmitter<CustomEvent<IRevoGridTheme>>;
108
- created: EventEmitter<CustomEvent<any>>;
109
- constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
110
- static ɵfac: i0.ɵɵFactoryDeclaration<RevoGrid, never>;
111
- static ɵcmp: i0.ɵɵComponentDeclaration<RevoGrid, "revo-grid", never, { "accessible": { "alias": "accessible"; "required": false; }; "additionalData": { "alias": "additionalData"; "required": false; }; "applyOnClose": { "alias": "applyOnClose"; "required": false; }; "autoSizeColumn": { "alias": "autoSizeColumn"; "required": false; }; "canDrag": { "alias": "canDrag"; "required": false; }; "canFocus": { "alias": "canFocus"; "required": false; }; "canMoveColumns": { "alias": "canMoveColumns"; "required": false; }; "colSize": { "alias": "colSize"; "required": false; }; "columnTypes": { "alias": "columnTypes"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "disableVirtualX": { "alias": "disableVirtualX"; "required": false; }; "disableVirtualY": { "alias": "disableVirtualY"; "required": false; }; "editors": { "alias": "editors"; "required": false; }; "exporting": { "alias": "exporting"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "focusTemplate": { "alias": "focusTemplate"; "required": false; }; "frameSize": { "alias": "frameSize"; "required": false; }; "grouping": { "alias": "grouping"; "required": false; }; "hideAttribution": { "alias": "hideAttribution"; "required": false; }; "jobsBeforeRender": { "alias": "jobsBeforeRender"; "required": false; }; "pinnedBottomSource": { "alias": "pinnedBottomSource"; "required": false; }; "pinnedTopSource": { "alias": "pinnedTopSource"; "required": false; }; "plugins": { "alias": "plugins"; "required": false; }; "range": { "alias": "range"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "registerVNode": { "alias": "registerVNode"; "required": false; }; "resize": { "alias": "resize"; "required": false; }; "rowClass": { "alias": "rowClass"; "required": false; }; "rowDefinitions": { "alias": "rowDefinitions"; "required": false; }; "rowHeaders": { "alias": "rowHeaders"; "required": false; }; "rowSize": { "alias": "rowSize"; "required": false; }; "rtl": { "alias": "rtl"; "required": false; }; "sorting": { "alias": "sorting"; "required": false; }; "source": { "alias": "source"; "required": false; }; "stretch": { "alias": "stretch"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "trimmedRows": { "alias": "trimmedRows"; "required": false; }; "useClipboard": { "alias": "useClipboard"; "required": false; }; }, { "contentsizechanged": "contentsizechanged"; "beforeedit": "beforeedit"; "beforerangeedit": "beforerangeedit"; "afteredit": "afteredit"; "beforeautofill": "beforeautofill"; "beforerange": "beforerange"; "afterfocus": "afterfocus"; "roworderchanged": "roworderchanged"; "beforesorting": "beforesorting"; "beforesourcesortingapply": "beforesourcesortingapply"; "beforesortingapply": "beforesortingapply"; "rowdragstart": "rowdragstart"; "headerclick": "headerclick"; "beforecellfocus": "beforecellfocus"; "beforefocuslost": "beforefocuslost"; "beforesourceset": "beforesourceset"; "beforeanysource": "beforeanysource"; "aftersourceset": "aftersourceset"; "afteranysource": "afteranysource"; "beforecolumnsset": "beforecolumnsset"; "beforecolumnapplied": "beforecolumnapplied"; "aftercolumnsset": "aftercolumnsset"; "beforefilterapply": "beforefilterapply"; "beforefiltertrimmed": "beforefiltertrimmed"; "beforetrimmed": "beforetrimmed"; "aftertrimmed": "aftertrimmed"; "viewportscroll": "viewportscroll"; "beforeexport": "beforeexport"; "beforeeditstart": "beforeeditstart"; "aftercolumnresize": "aftercolumnresize"; "beforerowdefinition": "beforerowdefinition"; "filterconfigchanged": "filterconfigchanged"; "sortingconfigchanged": "sortingconfigchanged"; "rowheaderschanged": "rowheaderschanged"; "beforegridrender": "beforegridrender"; "aftergridrender": "aftergridrender"; "aftergridinit": "aftergridinit"; "additionaldatachanged": "additionaldatachanged"; "afterthemechanged": "afterthemechanged"; "created": "created"; }, never, ["*"], true, never>;
112
- }
113
- export declare interface RevoGrid extends Components.RevoGrid {
114
- /**
115
- * New content size has been applied. The size excludes the header.
116
- Currently, the event responsible for applying the new content size does not provide the actual size.
117
- To retrieve the actual content size, you can utilize the `getContentSize` function after the event has been triggered.
118
- */
119
- contentsizechanged: EventEmitter<CustomEvent<IRevoGridMultiDimensionType>>;
120
- /**
121
- * Before the data is edited.
122
- To prevent the default behavior of editing data and use your own implementation, call `e.preventDefault()`.
123
- To override the edit result with your own value, set the `e.val` property to your desired value.
124
- */
125
- beforeedit: EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>;
126
- /**
127
- * Before applying range data, specifically when a range selection occurs.
128
- To customize the data and prevent the default edit data from being set, you can call `e.preventDefault()`.
129
- */
130
- beforerangeedit: EventEmitter<CustomEvent<IRevoGridBeforeRangeSaveDataDetails>>;
131
- /**
132
- * After data applied or range changed.
133
- */
134
- afteredit: EventEmitter<CustomEvent<IRevoGridAfterEditEvent>>;
135
- /**
136
- * Before autofill is applied.
137
- To prevent the default behavior of applying the edit data, you can call `e.preventDefault()`.
138
- */
139
- beforeautofill: EventEmitter<CustomEvent<IRevoGridChangedRange>>;
140
- /**
141
- * Before autofill is applied. Runs before beforeautofill event.
142
- Use e.preventDefault() to prevent range.
143
- */
144
- beforerange: EventEmitter<CustomEvent<IRevoGridChangedRange>>;
145
- /**
146
- * After focus render finished.
147
- Can be used to access a focus element through `event.target`.
148
- This is just a duplicate of `afterfocus` from `revogr-focus.tsx`.
149
- */
150
- afterfocus: EventEmitter<CustomEvent<IRevoGridFocusAfterRenderEvent>>;
151
- /**
152
- * Before the order of `rgRow` is applied.
153
- To prevent the default behavior of changing the order of `rgRow`, you can call `e.preventDefault()`.
154
- */
155
- roworderchanged: EventEmitter<CustomEvent<{
156
- from: number;
157
- to: number;
158
- }>>;
159
- /**
160
- * By `SortingPlugin`
161
- <br>Triggered immediately after header click.
162
- <br>First in sorting event sequence. Ff this event stops no other event called.
163
- <br>Use `e.preventDefault()` to prevent sorting.
164
- */
165
- beforesorting: EventEmitter<CustomEvent<{
166
- column: IRevoGridColumnRegular;
167
- order: 'desc' | 'asc';
168
- additive: boolean;
169
- }>>;
170
- /**
171
- * By `SortingPlugin`
172
- <br>Same as `beforesorting` but triggered after `beforeanysource` (when source is changed).
173
- <br>Use `e.preventDefault()` to prevent sorting data change.
174
- */
175
- beforesourcesortingapply: EventEmitter<CustomEvent<{
176
- type: IRevoGridDimensionRows;
177
- sorting?: IRevoGridSortingOrder;
178
- }>>;
179
- /**
180
- * By `SortingPlugin`
181
- <br> After `beforesorting`
182
- <br>Triggered after column data updated with new sorting order.
183
- <br>Use `e.preventDefault()` to prevent sorting data change.
184
- */
185
- beforesortingapply: EventEmitter<CustomEvent<{
186
- column: IRevoGridColumnRegular;
187
- order: 'desc' | 'asc';
188
- additive: boolean;
189
- }>>;
190
- /**
191
- * This event is triggered when the row order change is started.
192
- To prevent the default behavior of changing the row order, you can call `e.preventDefault()`.
193
- To change the item name at the start of the row order change, you can set `e.text` to the desired new name.
194
- */
195
- rowdragstart: EventEmitter<CustomEvent<IRevoGridRowDragStartDetails>>;
196
- /**
197
- * On header click.
198
- */
199
- headerclick: EventEmitter<CustomEvent<IRevoGridColumnRegular>>;
200
- /**
201
- * Before the cell focus is changed.
202
- To prevent the default behavior of changing the cell focus, you can call `e.preventDefault()`.
203
- */
204
- beforecellfocus: EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>;
205
- /**
206
- * Before the grid focus is lost.
207
- To prevent the default behavior of changing the cell focus, you can call `e.preventDefault()`.
208
- */
209
- beforefocuslost: EventEmitter<CustomEvent<IRevoGridFocusedData | null>>;
210
- /**
211
- * Before main source/rows data apply.
212
- You can override data source here
213
- */
214
- beforesourceset: EventEmitter<CustomEvent<{
215
- type: IRevoGridDimensionRows;
216
- source: IRevoGridDataType[];
217
- }>>;
218
- /**
219
- * Before data apply on any source type. Can be source from pinned and main viewport.
220
- You can override data source here
221
- */
222
- beforeanysource: EventEmitter<CustomEvent<{
223
- type: IRevoGridDimensionRows;
224
- source: IRevoGridDataType[];
225
- }>>;
226
- /**
227
- * After main source/rows updated
228
- */
229
- aftersourceset: EventEmitter<CustomEvent<{
230
- type: IRevoGridDimensionRows;
231
- source: IRevoGridDataType[];
232
- }>>;
233
- /**
234
- * Emitted after each source update, whether from the pinned or main viewport.
235
- Useful for tracking all changes originating from sources in both the pinned and main viewports.
236
- */
237
- afteranysource: EventEmitter<CustomEvent<{
238
- type: IRevoGridDimensionRows;
239
- source: IRevoGridDataType[];
240
- }>>;
241
- /**
242
- * Emitted before a column update is applied.
243
- Listeners can use this event to perform any necessary actions or modifications before the column update is finalized.
244
- */
245
- beforecolumnsset: EventEmitter<CustomEvent<IRevoGridColumnCollection>>;
246
- /**
247
- * Emitted before a column update is applied, after the column set is gathered and the viewport is updated.
248
- Useful for performing actions or modifications before the final application of the column update.
249
- */
250
- beforecolumnapplied: EventEmitter<CustomEvent<IRevoGridColumnCollection>>;
251
- /**
252
- * Column updated
253
- */
254
- aftercolumnsset: EventEmitter<CustomEvent<{
255
- columns: IRevoGridColumnCollection;
256
- order: IRevoGridSortingOrder;
257
- }>>;
258
- /**
259
- * Emitted before applying a filter to the data source.
260
- Use e.preventDefault() to prevent cell focus change.
261
- Modify if you need to change filters.
262
- */
263
- beforefilterapply: EventEmitter<CustomEvent<{
264
- collection: Record<IRevoGridColumnProp, IRevoGridFilterCollectionItem>;
265
- }>>;
266
- /**
267
- * Emitted before applying a filter to the data source.
268
- Use e.preventDefault() to prevent the default behavior of trimming values and applying the filter.
269
- Modify the `collection` property if you want to change the filters.
270
- Modify the `itemsToFilter` property if you want to filter the indexes for trimming.
271
- */
272
- beforefiltertrimmed: EventEmitter<CustomEvent<{
273
- collection: Record<IRevoGridColumnProp, IRevoGridFilterCollectionItem>;
274
- itemsToFilter: Record<number, boolean>;
275
- }>>;
276
- /**
277
- * Emitted before trimming values.
278
- Use e.preventDefault() to prevent the default behavior of trimming values.
279
- Modify the `trimmed` property if you want to filter the indexes for trimming.
280
- */
281
- beforetrimmed: EventEmitter<CustomEvent<{
282
- trimmed: Record<number, boolean>;
283
- trimmedType: string;
284
- type: string;
285
- }>>;
286
- /**
287
- * Emitted after trimmed values have been applied.
288
- Useful for notifying when trimming of values has taken place.
289
- */
290
- aftertrimmed: EventEmitter<CustomEvent<any>>;
291
- /**
292
- * Emitted when the viewport is scrolled.
293
- Useful for tracking viewport scrolling events.
294
- */
295
- viewportscroll: EventEmitter<CustomEvent<IRevoGridViewPortScrollEvent>>;
296
- /**
297
- * Before export
298
- Use e.preventDefault() to prevent export
299
- Replace data in Event in case you want to modify it in export
300
- */
301
- beforeexport: EventEmitter<CustomEvent<IRevoGridDataInput>>;
302
- /**
303
- * Emitted before editing starts.
304
- Use e.preventDefault() to prevent the default edit behavior.
305
- */
306
- beforeeditstart: EventEmitter<CustomEvent<IRevoGridBeforeSaveDataDetails>>;
307
- /**
308
- * Emitted after column resizing.
309
- Useful for retrieving the resized columns.
310
- */
311
- aftercolumnresize: EventEmitter<CustomEvent<{
312
- [index: number]: IRevoGridColumnRegular;
313
- }>>;
314
- /**
315
- * Emitted before the row definition is applied.
316
- Useful for modifying or preventing the default row definition behavior.
317
- */
318
- beforerowdefinition: EventEmitter<CustomEvent<{
319
- vals: any;
320
- oldVals: any;
321
- }>>;
322
- /**
323
- * Emitted when the filter configuration is changed
324
- */
325
- filterconfigchanged: EventEmitter<CustomEvent<any>>;
326
- /**
327
- * Emitted when the sorting configuration is changed
328
- SortingPlugin subsribed to this event
329
- */
330
- sortingconfigchanged: EventEmitter<CustomEvent<IRevoGridSortingConfig>>;
331
- /**
332
- * Emmited when the row headers are changed.
333
- */
334
- rowheaderschanged: EventEmitter<CustomEvent<any>>;
335
- /**
336
- * Emmited before the grid is rendered.
337
- */
338
- beforegridrender: EventEmitter<CustomEvent<any>>;
339
- /**
340
- * Emmited after the grid is rendered.
341
- */
342
- aftergridrender: EventEmitter<CustomEvent<any>>;
343
- /**
344
- * Emmited after the grid is initialized. Connected to the DOM.
345
- */
346
- aftergridinit: EventEmitter<CustomEvent<any>>;
347
- /**
348
- * Emmited after the additional data is changed
349
- */
350
- additionaldatachanged: EventEmitter<CustomEvent<any>>;
351
- /**
352
- * Emmited after the theme is changed
353
- */
354
- afterthemechanged: EventEmitter<CustomEvent<IRevoGridTheme>>;
355
- /**
356
- * Emmited after grid created
357
- */
358
- created: EventEmitter<CustomEvent<any>>;
359
- }
@@ -1,25 +0,0 @@
1
- import type { EditCell, ColumnDataSchemaModel, HyperFunc, VNode, EditorBase } from '@revolist/revogrid';
2
- import { Injector, Type } from '@angular/core';
3
- import { AngularElement } from './renderer';
4
- /**
5
- * Data passed to editor
6
- */
7
- export type EditorType = {
8
- column: ColumnDataSchemaModel;
9
- save: (value: any, preventFocus?: boolean) => void;
10
- close: (focusNext?: boolean) => void;
11
- } & Partial<EditCell>;
12
- export declare class EditorAdapter implements EditorBase {
13
- private EditorComponent;
14
- private injector;
15
- column: ColumnDataSchemaModel;
16
- private save;
17
- private close;
18
- element: AngularElement | null;
19
- editCell?: EditCell;
20
- private renderedComponent;
21
- constructor(EditorComponent: Type<any>, injector: Injector, column: ColumnDataSchemaModel, save: (value: any, preventFocus?: boolean) => void, close: (focusNext?: boolean) => void);
22
- componentDidRender(): void;
23
- disconnectedCallback(): void;
24
- render(h: HyperFunc<VNode>): VNode;
25
- }
package/lib/editor.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import type { EditorCtr } from '@revolist/revogrid';
2
- import { Injector, Type } from '@angular/core';
3
- /**
4
- * Create editor constructor.
5
- * This function creates editor constructor by wrapping it with EditorAdapter
6
- * which is responsible for connecting editor with grid.
7
- */
8
- export declare const Editor: (EditorComponent: Type<any>, injector?: Injector) => EditorCtr;
package/lib/renderer.d.ts DELETED
@@ -1,15 +0,0 @@
1
- /**
2
- * Angular Adapter Function:
3
- * Handles the rendering and lifecycle of Angular components within StencilJS using updated Angular APIs.
4
- */
5
- import { Injector, ComponentRef, Type } from '@angular/core';
6
- import { ColumnDataSchemaModel, ColumnTemplateProp } from '@revolist/revogrid';
7
- export interface AngularElement extends HTMLElement {
8
- componentRef?: ComponentRef<any>;
9
- }
10
- export interface RenderedComponent<T> {
11
- update: (newProps: T) => void;
12
- destroy: () => void;
13
- }
14
- export declare function TemplateConstructor<T extends Object>(el: AngularElement | null, AngularComponent: Type<any>, initialProps: T | undefined, injector: Injector, lastEl?: RenderedComponent<T> | null): RenderedComponent<T> | null;
15
- export declare const Template: (AngularComponent: Type<any>, customProps?: any, injector?: Injector) => (h: any, p: ColumnDataSchemaModel | ColumnTemplateProp, addition?: any) => any;
package/public-api.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export * from '@revolist/revogrid';
2
- export * from './lib/components';
3
- export * from './lib/editor.adapter';
4
- export * from './lib/editor';
5
- export * from './lib/renderer';