@revolist/revogrid 4.8.5 → 4.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/revo-grid.cjs.entry.js +5 -5
- package/dist/cjs/revo-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-attribution_6.cjs.entry.js +4 -1
- package/dist/cjs/revogr-attribution_6.cjs.entry.js.map +1 -1
- package/dist/collection/components/overlay/keyboard.service.js +4 -1
- package/dist/collection/components/overlay/keyboard.service.js.map +1 -1
- package/dist/collection/components/revoGrid/revo-grid.js +6 -6
- package/dist/collection/components/revoGrid/revo-grid.js.map +1 -1
- package/dist/esm/revo-grid.entry.js +5 -5
- package/dist/esm/revo-grid.entry.js.map +1 -1
- package/dist/esm/revogr-attribution_6.entry.js +4 -1
- package/dist/esm/revogr-attribution_6.entry.js.map +1 -1
- package/dist/revo-grid/revo-grid.entry.js +1 -1
- package/dist/revo-grid/revo-grid.entry.js.map +1 -1
- package/dist/revo-grid/revogr-attribution_6.entry.js +1 -1
- package/dist/revo-grid/revogr-attribution_6.entry.js.map +1 -1
- package/dist/types/components/revoGrid/revo-grid.d.ts +1 -1
- package/dist/types/components.d.ts +5 -5
- package/dist/types/plugins/sorting/sorting.plugin.d.ts +1 -0
- package/hydrate/index.js +9 -6
- package/hydrate/index.mjs +9 -6
- package/package.json +2 -2
- package/readme.md +3 -1
- package/standalone/revo-grid.js +5 -5
- package/standalone/revo-grid.js.map +1 -1
- package/standalone/revogr-overlay-selection2.js +4 -1
- package/standalone/revogr-overlay-selection2.js.map +1 -1
|
@@ -361,7 +361,7 @@ export class RevoGridComponent {
|
|
|
361
361
|
this.afteredit.emit(detail);
|
|
362
362
|
}
|
|
363
363
|
onRangeChanged(e) {
|
|
364
|
-
const beforeange = this.
|
|
364
|
+
const beforeange = this.beforerange.emit(e.detail);
|
|
365
365
|
if (beforeange.defaultPrevented) {
|
|
366
366
|
e.preventDefault();
|
|
367
367
|
}
|
|
@@ -699,7 +699,7 @@ export class RevoGridComponent {
|
|
|
699
699
|
const headerProperties = Object.assign(Object.assign({}, view.headerProp), { type: view.type, additionalData: this.additionalData, viewportCol: view.viewportCol, selectionStore: view.columnSelectionStore, canResize: this.resize, readonly: this.readonly, columnFilter: !!this.filter });
|
|
700
700
|
// Column headers
|
|
701
701
|
const dataViews = [
|
|
702
|
-
h("revogr-header", Object.assign({ key: '
|
|
702
|
+
h("revogr-header", Object.assign({ key: '04119785ef18171d13263b5a56a304c05afddee3' }, headerProperties, { slot: HEADER_SLOT })),
|
|
703
703
|
];
|
|
704
704
|
// Render viewport data (vertical sections)
|
|
705
705
|
view.dataPorts.forEach(data => {
|
|
@@ -721,11 +721,11 @@ export class RevoGridComponent {
|
|
|
721
721
|
const typeCol = 'rgCol';
|
|
722
722
|
const viewports = this.viewportProvider.stores;
|
|
723
723
|
const dimensions = this.dimensionProvider.stores;
|
|
724
|
-
return (h(Host, { key: '
|
|
724
|
+
return (h(Host, { key: '2f84ce8fcf803cdad1dc8ce5b798b8d3b9b29aed', [`${UUID}`]: this.uuid }, this.hideAttribution ? null : (h("revogr-attribution", { class: "attribution" })), h("div", { key: '6e3e09f51a6316ecea972f9a5f5789983ff236a9', class: "main-viewport", onClick: (e) => {
|
|
725
725
|
if (e.currentTarget === e.target) {
|
|
726
726
|
this.viewport.clearEdit();
|
|
727
727
|
}
|
|
728
|
-
} }, h("div", { key: '
|
|
728
|
+
} }, h("div", { key: '2588926f18143056dc291c3b0ff3c1f5a23b4f2d', class: "viewports" }, h("slot", { key: '9b67ce2dad0aaebb974c5653581f510c246f0aec', name: "viewport" }), viewportSections, h("revogr-scroll-virtual", { key: '90696a6304b7d9dfc532029d139c198c2cfe3c11', class: "vertical", dimension: typeRow, viewportStore: viewports[typeRow].store, dimensionStore: dimensions[typeRow].store, ref: el => this.scrollingService.registerElement(el, 'rowScroll'), onScrollvirtual: e => this.scrollingService.proxyScroll(e.detail) }), h(OrderRenderer, { key: '51c029fdbd2d22c8e5b538253f0ff4c2b724920c', ref: e => (this.orderService = e) }))), h("revogr-scroll-virtual", { key: '955fa4b29228b7923d198e55b214fc2ad0f2a19f', class: "horizontal", dimension: typeCol, viewportStore: viewports[typeCol].store, dimensionStore: dimensions[typeCol].store, ref: el => this.scrollingService.registerElement(el, 'colScroll'), onScrollvirtual: e => this.scrollingService.proxyScroll(e.detail) }), this.extraElements));
|
|
729
729
|
}
|
|
730
730
|
disconnectedCallback() {
|
|
731
731
|
// Remove all plugins, to avoid memory leaks and unexpected behaviour when the component is removed
|
|
@@ -1540,8 +1540,8 @@ export class RevoGridComponent {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
}
|
|
1542
1542
|
}, {
|
|
1543
|
-
"method": "
|
|
1544
|
-
"name": "
|
|
1543
|
+
"method": "beforerange",
|
|
1544
|
+
"name": "beforerange",
|
|
1545
1545
|
"bubbles": true,
|
|
1546
1546
|
"cancelable": true,
|
|
1547
1547
|
"composed": true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revo-grid.js","sourceRoot":"","sources":["../../../src/components/revoGrid/revo-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,KAAK,EACL,OAAO,EACP,MAAM,EACN,KAAK,EAEL,MAAM,EAEN,IAAI,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,IAAI,MAAM,aAAa,CAAC;AAE/B,OAAO,kBAEN,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAgB,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAC5D,OAAO,iBAAiB,MAAM,mCAAmC,CAAC;AAClE,OAAO,gBAAgB,MAAM,kCAAkC,CAAC;AAChE,OAAO,YAAY,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,QAEN,MAAM,u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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Prop,\n h,\n Watch,\n Element,\n Listen,\n Event,\n EventEmitter,\n Method,\n VNode,\n Host,\n} from '@stencil/core';\nimport each from 'lodash/each';\n\nimport ColumnDataProvider, {\n ColumnCollection,\n} from '../../services/column.data.provider';\nimport { DataProvider } from '../../services/data.provider';\nimport { DSourceState, getVisibleSourceItem } from '@store';\nimport DimensionProvider from '../../services/dimension.provider';\nimport ViewportProvider from '../../services/viewport.provider';\nimport ThemeService from '../../themeManager/theme.service';\nimport { timeout } from '../../utils';\nimport AutoSize, {\n AutoSizeColumnConfig,\n} from '../../plugins/column.auto-size.plugin';\n\nimport {\n FilterPlugin,\n ColumnFilterConfig,\n FilterCollection,\n} from '../../plugins/filter/filter.plugin';\nimport SortingPlugin from '../../plugins/sorting/sorting.plugin';\nimport ExportFilePlugin from '../../plugins/export/export.plugin';\nimport { DataInput } from '../../plugins/export/types';\nimport GroupingRowPlugin from '../../plugins/groupingRow/grouping.row.plugin';\nimport { GroupingOptions } from '../../plugins/groupingRow/grouping.row.types';\nimport ViewportService, { FocusedData } from './viewport.service';\nimport { DATA_SLOT, HEADER_SLOT } from './viewport.helpers';\nimport GridScrollingService from './viewport.scrolling.service';\nimport { UUID } from '../../utils/consts';\nimport SelectionStoreConnector from '../../services/selection.store.connector';\nimport OrderRenderer, { OrdererService } from '../order/order-renderer';\nimport StretchColumn, {\n isStretchPlugin,\n} from '../../plugins/column.stretch.plugin';\nimport { rowDefinitionByType, rowDefinitionRemoveByType } from './grid.helpers';\nimport ColumnPlugin from '../../plugins/moveColumn/column.drag.plugin';\nimport { getPropertyFromEvent } from '../../utils/events';\nimport { isMobileDevice } from '../../utils/mobile';\nimport {\n MultiDimensionType,\n DimensionRows,\n DimensionCols,\n DimensionType,\n DimensionTypeCol,\n RowHeaders,\n ColumnRegular,\n ColumnGrouping,\n DataType,\n RowDefinition,\n ColumnType,\n FocusTemplateFunc,\n PositionItem,\n ColumnProp,\n ViewPortScrollEvent,\n InitialHeaderClick,\n AllDimensionType,\n Editors,\n BeforeSaveDataDetails,\n BeforeRangeSaveDataDetails,\n Cell,\n ChangedRange,\n RangeArea,\n AfterEditEvent,\n Theme,\n PluginBaseComponent,\n PluginExternalConstructor,\n HeaderProperties,\n PluginProviders,\n} from '@type';\nimport { Observable } from '../../utils/store.utils';\n\n/**\n * Revogrid - High-performance, customizable grid library for managing large datasets.\n *\n * :::tip\n * Read [type definition file](https://github.com/revolist/revogrid/blob/master/src/interfaces.d.ts) for the full interface information.\n * All complex property types such as `ColumnRegular`, `ColumnProp`, `ColumnDataSchemaModel` can be found there.\n * :::\n *\n * :::tip\n * For a comprehensive events guide, check the [dependency tree](#Dependencies).\n * All events propagate to the root level of the grid.\n * :::\n *\n * @slot data-{column-type}-{row-type}. @example data-rgCol-rgRow - main data slot. Applies extra elements in <revogr-data />.\n * @slot focus-{column-type}-{row-type}. @example focus-rgCol-rgRow - focus layer for main data. Applies extra elements in <revogr-focus />.\n */\n@Component({\n tag: 'revo-grid',\n styleUrl: 'revo-grid-style.scss',\n})\nexport class RevoGridComponent {\n // #region Properties\n /** Excel like functionality.\n * Show row numbers.\n * Also can be used for custom row header render if object provided.\n */\n @Prop() rowHeaders: RowHeaders | boolean;\n\n /**\n * Defines how many rows/columns should be rendered outside visible area.\n */\n @Prop() frameSize = 1;\n\n /**\n * Indicates default rgRow size.\n * By default 0, means theme package size will be applied\n *\n * Alternatively you can use `rowSize` to reset viewport\n */\n @Prop() rowSize = 0;\n\n /** Indicates default column size. */\n @Prop() colSize = 100;\n\n /** When true, user can range selection. */\n @Prop() range = false;\n\n /** When true, grid in read only mode. */\n @Prop() readonly = false;\n\n /** When true, columns are resizable. */\n @Prop() resize = false;\n\n /** When true cell focus appear. */\n @Prop() canFocus = true;\n\n /** When true enable clipboard. */\n @Prop() useClipboard = true;\n\n /**\n * Columns - defines an array of grid columns.\n * Can be column or grouped column.\n */\n @Prop() columns: (ColumnRegular | ColumnGrouping)[] = [];\n /**\n * Source - defines main data source.\n * Can be an Object or 2 dimensional array([][]);\n * Keys/indexes referenced from columns Prop.\n */\n @Prop() source: DataType[] = [];\n\n /** Pinned top Source: {[T in ColumnProp]: any} - defines pinned top rows data source. */\n @Prop() pinnedTopSource: DataType[] = [];\n\n /** Pinned bottom Source: {[T in ColumnProp]: any} - defines pinned bottom rows data source. */\n @Prop() pinnedBottomSource: DataType[] = [];\n\n /** Custom row properies to be applied. See `RowDefinition` for more info. */\n @Prop() rowDefinitions: RowDefinition[] = [];\n\n /** Custom editors register. */\n @Prop() editors: Editors = {};\n\n /**\n * Apply changes in editor when closed except 'Escape' cases.\n * If custom editor in use method getValue required.\n * Check interfaces.d.ts `EditorBase` for more info.\n */\n @Prop() applyOnClose = false;\n\n /**\n * Custom grid plugins.\n * Has to be predefined during first grid init.\n * Every plugin should be inherited from BasePlugin.\n */\n @Prop() plugins: PluginExternalConstructor[];\n\n /**\n * Column Types Format.\n * Every type represent multiple column properties.\n * Types will be merged but can be replaced with column properties.\n * Types were made as separate objects to be reusable per multiple columns.\n */\n @Prop() columnTypes: { [name: string]: ColumnType } = {};\n\n /** Theme name. */\n @Prop({ reflect: true, mutable: true }) theme: Theme = 'default';\n\n /**\n * Row class property mapping.\n * Map custom classes to rows from row object data.\n * Define this property in rgRow object and this will be mapped as rgRow class.\n */\n @Prop({ reflect: true }) rowClass = '';\n\n /**\n * Autosize config.\n * Enables columns autoSize.\n * For more details check `autoSizeColumn` plugin.\n * By default disabled, hence operation is not performance efficient.\n * `true` to enable with default params (double header separator click for autosize).\n * Or define config. See `AutoSizeColumnConfig` for more details.\n */\n @Prop() autoSizeColumn: boolean | AutoSizeColumnConfig = false;\n\n /**\n * Enables filter plugin.\n * Can be boolean.\n * Or can be filter collection See `FilterCollection` for more info.\n */\n @Prop() filter: boolean | ColumnFilterConfig = false;\n\n /**\n * Apply changes typed in editor on editor close except Escape cases.\n * If custom editor in use method `getValue` required.\n * Check `interfaces.d.ts` `EditorBase` for more info.\n */\n @Prop() focusTemplate: FocusTemplateFunc;\n\n /**\n * Enable column move plugin.\n */\n @Prop() canMoveColumns = false;\n /**\n * Trimmed rows.\n * Functionality which allows to hide rows from main data set.\n * `trimmedRows` are physical `rgRow` indexes to hide.\n */\n @Prop() trimmedRows: Record<number, boolean> = {};\n\n /**\n * Enable export plugin.\n */\n @Prop() exporting = false;\n\n /**\n * Group rows based on this property.\n * Define properties to be groped by grouping plugin See `GroupingOptions`.\n */\n @Prop() grouping: GroupingOptions;\n\n /**\n * Stretch strategy for columns by `StretchColumn` plugin.\n * For example if there are more space on the right last column size would be increased.\n */\n @Prop() stretch: boolean | string = true;\n\n /**\n * Additional data to be passed to plugins, renders or editors.\n * For example if you need to pass Vue component instance.\n */\n @Prop() additionalData: any = {};\n\n /**\n * Disable lazy rendering mode for the `X axis`.\n * Use when not many columns present and you don't need rerenader cells during scroll.\n * Can be used for initial rendering performance improvement.\n */\n @Prop() disableVirtualX = false;\n /**\n * Disable lazy rendering mode for the `Y axis`.\n * Use when not many rows present and you don't need rerenader cells during scroll.\n * Can be used for initial rendering performance improvement.\n */\n @Prop() disableVirtualY = false;\n\n /**\n * Please only hide the attribution if you are subscribed to Pro version\n */\n @Prop() hideAttribution = false;\n\n /**\n * Prevent rendering until job is done.\n * Can be used for initial rendering performance improvement.\n * When several plugins require initial rendering this will prevent double initial rendering.\n */\n @Prop() jobsBeforeRender: Promise<any>[] = [];\n\n /**\n * Register new virtual node inside of grid.\n * Used for additional items creation such as plugin elements.\n * Should be set before grid render inside of plugins.\n */\n @Prop() registerVNode: VNode[] = [];\n\n // #endregion\n\n // #region Events\n /**\n * New content size has been applied. The size excludes the header.\n * Currently, the event responsible for applying the new content size does not provide the actual size.\n * To retrieve the actual content size, you can utilize the `getContentSize` function after the event has been triggered.\n */\n @Event() contentsizechanged: EventEmitter<MultiDimensionType>;\n\n /**\n * This event is triggered before the data is edited.\n * To prevent the default behavior of editing data and use your own implementation, call `e.preventDefault()`.\n * To override the edit result with your own value, set the `e.val` property to your desired value.\n */\n @Event() beforeedit: EventEmitter<BeforeSaveDataDetails>;\n\n /**\n * This event is triggered before applying range data, specifically when a range selection occurs.\n * To customize the data and prevent the default edit data from being set, you can call `e.preventDefault()`.\n */\n @Event() beforerangeedit: EventEmitter<BeforeRangeSaveDataDetails>;\n\n /**\n * Triggered after data applied or range changed.\n */\n @Event() afteredit: EventEmitter<AfterEditEvent>;\n\n /**\n * This event is triggered before autofill is applied.\n * To prevent the default behavior of applying the edit data, you can call `e.preventDefault()`.\n */\n @Event() beforeautofill: EventEmitter<ChangedRange>;\n\n /**\n * Triggered before range applied.\n * Use e.preventDefault() to prevent range.\n */\n @Event() beforeange: EventEmitter<ChangedRange>;\n\n /**\n * Triggered after focus render finished.\n * Can be used to access a focus element through `event.target`\n */\n @Event() afterfocus: EventEmitter<{\n model: any;\n column: ColumnRegular;\n }>;\n\n /**\n * This event is triggered before the order of `rgRow` is applied.\n * To prevent the default behavior of changing the order of `rgRow`, you can call `e.preventDefault()`.\n */\n @Event() roworderchanged: EventEmitter<{ from: number; to: number }>;\n\n /**\n * Triggered by sorting.plugin.ts\n * Before sorting apply.\n * Use e.preventDefault() to prevent sorting data change.\n */\n @Event() beforesortingapply: EventEmitter<{\n column: ColumnRegular;\n order: 'desc' | 'asc';\n additive: boolean;\n }>;\n\n /**\n * Triggered by sorting.plugin.ts\n * Before sorting event.\n * Initial sorting triggered, if this event stops no other event called.\n * Use e.preventDefault() to prevent sorting.\n */\n @Event() beforesorting: EventEmitter<{\n column: ColumnRegular;\n order: 'desc' | 'asc';\n additive: boolean;\n }>;\n\n /**\n * This event is triggered when the row order change is started.\n * To prevent the default behavior of changing the row order, you can call `e.preventDefault()`.\n * To change the item name at the start of the row order change, you can set `e.text` to the desired new name.\n */\n @Event() rowdragstart: EventEmitter<{\n pos: PositionItem;\n text: string;\n }>;\n\n /**\n * On header click.\n */\n @Event() headerclick: EventEmitter<ColumnRegular>;\n\n /**\n * This event is triggered before the cell focus is changed.\n * To prevent the default behavior of changing the cell focus, you can call `e.preventDefault()`.\n */\n @Event() beforecellfocus: EventEmitter<BeforeSaveDataDetails>;\n\n /**\n * This event is triggered before the grid focus is lost.\n * To prevent the default behavior of changing the cell focus, you can call `e.preventDefault()`.\n */\n @Event() beforefocuslost: EventEmitter<FocusedData | null>;\n\n /**\n * Before main source/rows data apply.\n * You can override data source here\n */\n @Event() beforesourceset: EventEmitter<{\n type: DimensionRows;\n source: DataType[];\n }>;\n\n /**\n * Before data apply on any source type. Can be source from pinned and main viewport.\n * You can override data source here\n */\n @Event() beforeanysource: EventEmitter<{\n type: DimensionRows;\n source: DataType[];\n }>;\n\n /**\n * After main source/rows updated\n */\n @Event() aftersourceset: EventEmitter<{\n type: DimensionRows;\n source: DataType[];\n }>;\n\n /**\n * Emitted after each source update, whether from the pinned or main viewport.\n * Useful for tracking all changes originating from sources in both the pinned and main viewports.\n */\n @Event() afteranysource: EventEmitter<{\n type: DimensionRows;\n source: DataType[];\n }>;\n\n /**\n * Emitted before a column update is applied.\n * Listeners can use this event to perform any necessary actions or modifications before the column update is finalized.\n */\n @Event() beforecolumnsset: EventEmitter<ColumnCollection>;\n\n /**\n * Emitted before a column update is applied, after the column set is gathered and the viewport is updated.\n * Useful for performing actions or modifications before the final application of the column update.\n */\n @Event() beforecolumnapplied: EventEmitter<ColumnCollection>;\n\n /** Column updated */\n @Event() aftercolumnsset: EventEmitter<{\n columns: ColumnCollection;\n order: Record<ColumnProp, 'asc' | 'desc'>;\n }>;\n\n /**\n * Emitted before applying a filter to the data source.\n * Use e.preventDefault() to prevent cell focus change.\n * Modify the @collection if you need to change filters.\n */\n @Event() beforefilterapply: EventEmitter<{ collection: FilterCollection }>;\n\n /**\n * Emitted before applying a filter to the data source.\n * Use e.preventDefault() to prevent the default behavior of trimming values and applying the filter.\n * Modify the `collection` property if you want to change the filters.\n * Modify the `itemsToFilter` property if you want to filter the indexes for trimming.\n */\n @Event() beforefiltertrimmed: EventEmitter<{\n collection: FilterCollection;\n itemsToFilter: Record<number, boolean>;\n }>;\n\n /**\n * Emitted before trimming values.\n * Use e.preventDefault() to prevent the default behavior of trimming values.\n * Modify the `trimmed` property if you want to filter the indexes for trimming.\n */\n @Event() beforetrimmed: EventEmitter<{\n trimmed: Record<number, boolean>;\n trimmedType: string;\n type: string;\n }>;\n\n /**\n * Emitted after trimmed values have been applied.\n * Useful for notifying when trimming of values has taken place.\n */\n @Event() aftertrimmed: EventEmitter;\n\n /**\n * Emitted when the viewport is scrolled.\n * Useful for tracking viewport scrolling events.\n */\n @Event() viewportscroll: EventEmitter<ViewPortScrollEvent>;\n\n /**\n * Before export\n * Use e.preventDefault() to prevent export\n * Replace data in Event in case you want to modify it in export\n */\n @Event() beforeexport: EventEmitter<DataInput>;\n\n /**\n * Emitted before editing starts.\n * Use e.preventDefault() to prevent the default edit behavior.\n */\n @Event() beforeeditstart: EventEmitter<BeforeSaveDataDetails>;\n\n /**\n * Emitted after column resizing.\n * Useful for retrieving the resized columns.\n */\n @Event() aftercolumnresize: EventEmitter<{\n [index: number]: ColumnRegular;\n }>;\n\n /**\n * Emitted before the row definition is applied.\n * Useful for modifying or preventing the default row definition behavior.\n */\n @Event() beforerowdefinition: EventEmitter<{ vals: any; oldVals: any }>;\n\n /**\n * Emitted when the filter configuration is changed\n */\n @Event() filterconfigchanged: EventEmitter;\n\n /**\n * Emmited when the row headers are changed.\n */\n @Event() rowheaderschanged: EventEmitter;\n\n /**\n * Emmited before the grid is rendered.\n */\n @Event() beforegridrender: EventEmitter;\n\n /**\n * Emmited after the grid is initialized. Connected to the DOM.\n */\n @Event() aftergridinit: EventEmitter;\n\n // #endregion\n\n // #region Methods\n /**\n * Refreshes data viewport.\n * Can be specific part as rgRow or pinned rgRow or 'all' by default.\n */\n @Method() async refresh(type: DimensionRows | 'all' = 'all') {\n this.dataProvider.refresh(type);\n }\n\n /**\n * Sets data at specified cell.\n * Useful for performance optimization.\n * No viewport update will be triggered.\n */\n @Method() async setDataAt(\n data: {\n row: number;\n col: number;\n } & AllDimensionType,\n ) {\n const dataElement: HTMLRevogrDataElement | null =\n this.element.querySelector(\n `revogr-data[type=\"${data.rowType}\"][col-type=\"${data.colType}\"]`,\n );\n return dataElement?.updateCell({\n row: data.row,\n col: data.col,\n });\n }\n\n /**\n * Scrolls viewport to specified row by index.\n */\n @Method() async scrollToRow(coordinate = 0) {\n const y = this.dimensionProvider.getViewPortPos({\n coordinate,\n dimension: 'rgRow',\n });\n await this.scrollToCoordinate({ y });\n }\n\n /**\n * Scrolls viewport to specified column by index.\n */\n @Method() async scrollToColumnIndex(coordinate = 0) {\n const x = this.dimensionProvider.getViewPortPos({\n coordinate,\n dimension: 'rgCol',\n });\n await this.scrollToCoordinate({ x });\n }\n\n /**\n * Scrolls viewport to specified column by prop\n */\n @Method() async scrollToColumnProp(\n prop: ColumnProp,\n dimension: DimensionTypeCol = 'rgCol',\n ) {\n const coordinate = this.columnProvider.getColumnIndexByProp(\n prop,\n dimension,\n );\n if (coordinate < 0) {\n // already on the screen\n return;\n }\n const x = this.dimensionProvider.getViewPortPos({\n coordinate,\n dimension,\n });\n await this.scrollToCoordinate({ x });\n }\n\n /** Update columns */\n @Method() async updateColumns(cols: ColumnRegular[]) {\n this.columnProvider.updateColumns(cols);\n }\n\n /** Add trimmed by type */\n @Method() async addTrimmed(\n trimmed: Record<number, boolean>,\n trimmedType = 'external',\n type: DimensionRows = 'rgRow',\n ) {\n const event = this.beforetrimmed.emit({\n trimmed,\n trimmedType,\n type,\n });\n if (event.defaultPrevented) {\n return event;\n }\n this.dataProvider.setTrimmed({ [trimmedType]: event.detail.trimmed }, type);\n this.aftertrimmed.emit();\n return event;\n }\n\n /** Scrolls view port to coordinate */\n @Method() async scrollToCoordinate(cell: Partial<Cell>) {\n this.viewport?.scrollToCell(cell);\n }\n\n /** Open editor for cell. */\n @Method() async setCellEdit(\n rgRow: number,\n prop: ColumnProp,\n rowSource: DimensionRows = 'rgRow',\n ) {\n const rgCol = ColumnDataProvider.getColumnByProp(this.columns, prop);\n if (!rgCol) {\n return;\n }\n await timeout();\n const colGroup = rgCol.pin || 'rgCol';\n this.viewport?.setEdit(\n rgRow,\n this.columnProvider.getColumnIndexByProp(prop, colGroup),\n colGroup,\n rowSource,\n );\n }\n\n /** Set focus range. */\n @Method() async setCellsFocus(\n cellStart: Cell = { x: 0, y: 0 },\n cellEnd: Cell = { x: 0, y: 0 },\n colType = 'rgCol',\n rowType = 'rgRow',\n ) {\n this.viewport?.setFocus(colType, rowType, cellStart, cellEnd);\n }\n\n /** Get data from source */\n @Method() async getSource(type: DimensionRows = 'rgRow') {\n return this.dataProvider.stores[type].store.get('source');\n }\n\n /**\n * Get data from visible part of source\n * Trimmed/filtered rows will be excluded\n * @param type - type of source\n */\n @Method() async getVisibleSource(type: DimensionRows = 'rgRow') {\n return getVisibleSourceItem(this.dataProvider.stores[type].store);\n }\n\n /**\n * Provides access to rows internal store observer\n * Can be used for plugin support\n * @param type - type of source\n */\n @Method() async getSourceStore(\n type: DimensionRows = 'rgRow',\n ): Promise<Observable<DSourceState<DataType, DimensionRows>>> {\n return this.dataProvider.stores[type].store;\n }\n /**\n * Provides access to column internal store observer\n * Can be used for plugin support\n * @param type - type of column\n */\n @Method() async getColumnStore(\n type: DimensionCols = 'rgCol',\n ): Promise<Observable<DSourceState<ColumnRegular, DimensionCols>>> {\n return this.columnProvider.stores[type].store;\n }\n\n /**\n * Update column sorting\n * @param column - full column details to update\n * @param index - virtual column index\n * @param order - order to apply\n */\n @Method() async updateColumnSorting(\n column: ColumnRegular,\n index: number,\n order: 'asc' | 'desc',\n additive: boolean,\n ) {\n return this.columnProvider.updateColumnSorting(\n column,\n index,\n order,\n additive,\n );\n }\n\n /**\n * Clears column sorting\n */\n @Method() async clearSorting() {\n this.columnProvider.clearSorting();\n }\n\n /**\n * Receive all columns in data source\n */\n @Method() async getColumns(): Promise<ColumnRegular[]> {\n return this.columnProvider.getColumns();\n }\n\n /**\n * Clear current grid focus. Grid has no longer focus on it.\n */\n @Method() async clearFocus() {\n const focused = this.viewport?.getFocused();\n const event = this.beforefocuslost.emit(focused);\n if (event.defaultPrevented) {\n return;\n }\n this.selectionStoreConnector.clearAll();\n }\n\n /**\n * Get all active plugins instances\n */\n @Method() async getPlugins(): Promise<PluginBaseComponent[]> {\n return [...this.internalPlugins];\n }\n\n /**\n * Get the currently focused cell.\n */\n @Method() async getFocused(): Promise<FocusedData | null> {\n return this.viewport?.getFocused();\n }\n\n /**\n * Get size of content\n * Including all pinned data\n */\n @Method() async getContentSize(): Promise<Cell> {\n return this.dimensionProvider?.getFullSize();\n }\n /**\n * Get the currently selected Range.\n */\n @Method() async getSelectedRange(): Promise<RangeArea | null> {\n return this.viewport?.getSelectedRange();\n }\n\n // #endregion\n\n // #region Listeners outside scope\n private clickTrackForFocusClear: number | null = null;\n @Listen('touchstart', { target: 'document' })\n @Listen('mousedown', { target: 'document' })\n mousedownHandle(event: MouseEvent | TouchEvent) {\n const screenX = getPropertyFromEvent(event, 'screenX');\n const screenY = getPropertyFromEvent(event, 'screenY');\n if (screenX === null || screenY === null) {\n return;\n }\n\n this.clickTrackForFocusClear = screenX + screenY;\n }\n /**\n * To keep your elements from losing focus use mouseup/touchend e.preventDefault();\n */\n @Listen('touchend', { target: 'document' })\n @Listen('mouseup', { target: 'document' })\n mouseupHandle(event: MouseEvent | TouchEvent) {\n const screenX = getPropertyFromEvent(event, 'screenX');\n const screenY = getPropertyFromEvent(event, 'screenY');\n if (screenX === null || screenY === null) {\n return;\n }\n\n if (event.defaultPrevented) {\n return;\n }\n const target = event.target as HTMLElement | null;\n const pos = screenX + screenY;\n // detect if mousemove then do nothing\n if (Math.abs(this.clickTrackForFocusClear - pos) > 10) {\n return;\n }\n\n // check if action finished inside of the document\n // clear data which is outside of grid\n // if event prevented or it is current table don't clear focus\n if (target?.closest(`[${UUID}=\"${this.uuid}\"]`)) {\n return;\n }\n this.clearFocus();\n }\n // #endregion\n\n // #region Listeners\n /** Drag events */\n @Listen('rowdragstartinit') onRowDragStarted(\n e: CustomEvent<{\n pos: PositionItem;\n text: string;\n event: MouseEvent;\n }>,\n ) {\n const dragStart = this.rowdragstart.emit(e.detail);\n if (dragStart.defaultPrevented) {\n e.preventDefault();\n return;\n }\n this.orderService?.start(this.element, {\n ...e.detail,\n ...dragStart.detail,\n });\n }\n\n @Listen('rowdragendinit') onRowDragEnd() {\n this.orderService?.end();\n }\n\n @Listen('rowdragmoveinit') onRowDrag({ detail }: CustomEvent<PositionItem>) {\n this.orderService?.move(detail);\n }\n\n @Listen('rowdragmousemove') onRowMouseMove(e: CustomEvent<Cell>) {\n this.orderService?.moveTip(e.detail);\n }\n\n @Listen('celleditapply') async onCellEdit(\n e: CustomEvent<BeforeSaveDataDetails>,\n ) {\n const { defaultPrevented, detail } = this.beforeedit.emit(e.detail);\n await timeout();\n // apply data\n if (!defaultPrevented) {\n this.dataProvider.setCellData(detail);\n\n // @feature: incrimental update for cells\n // this.dataProvider.setCellData(detail, false);\n // await this.setDataAt({\n // row: detail.rowIndex,\n // col: detail.colIndex,\n // rowType: detail.type,\n // colType: detail.colType,\n // });\n this.afteredit.emit(detail);\n }\n }\n\n @Listen('rangeeditapply') onRangeEdit(\n e: CustomEvent<BeforeRangeSaveDataDetails>,\n ) {\n const { defaultPrevented, detail } = this.beforerangeedit.emit(e.detail);\n if (defaultPrevented) {\n e.preventDefault();\n return;\n }\n this.dataProvider.setRangeData(detail.data, detail.type);\n this.afteredit.emit(detail);\n }\n\n @Listen('selectionchangeinit') onRangeChanged(e: CustomEvent<ChangedRange>) {\n const beforeange = this.beforeange.emit(e.detail);\n if (beforeange.defaultPrevented) {\n e.preventDefault();\n }\n const beforeFill = this.beforeautofill.emit(beforeange.detail);\n if (beforeFill.defaultPrevented) {\n e.preventDefault();\n }\n }\n\n @Listen('rowdropinit') onRowDropped(\n e: CustomEvent<{ from: number; to: number }>,\n ) {\n // e.cancelBubble = true;\n const { defaultPrevented } = this.roworderchanged.emit(e.detail);\n if (defaultPrevented) {\n e.preventDefault();\n }\n }\n\n @Listen('beforeheaderclick') onHeaderClick(\n e: CustomEvent<InitialHeaderClick>,\n ) {\n const { defaultPrevented } = this.headerclick.emit({\n ...e.detail.column,\n originalEvent: e.detail.originalEvent,\n });\n if (defaultPrevented) {\n e.preventDefault();\n }\n }\n\n @Listen('beforecellfocusinit') onCellFocus(\n e: CustomEvent<BeforeSaveDataDetails>,\n ) {\n const { defaultPrevented } = this.beforecellfocus.emit(e.detail);\n if (!this.canFocus || defaultPrevented) {\n e.preventDefault();\n }\n }\n\n // #endregion\n\n // #region Private Properties\n @Element() element: HTMLRevoGridElement;\n private extraElements: VNode[] = [];\n\n // UUID required to support multiple grids in one page and avoid collision\n uuid: string | null = null;\n columnProvider: ColumnDataProvider;\n dataProvider: DataProvider;\n dimensionProvider: DimensionProvider;\n viewportProvider: ViewportProvider;\n private themeService: ThemeService;\n private viewport: ViewportService | null = null;\n private isInited = false;\n\n private orderService: OrdererService;\n private selectionStoreConnector: SelectionStoreConnector;\n private scrollingService: GridScrollingService;\n\n /**\n * Plugins\n * Define plugins collection\n */\n private internalPlugins: PluginBaseComponent[] = [];\n // #endregion\n\n // #region Watchers\n @Watch('columnTypes') columnTypesChanged() {\n // Column format change will trigger column structure update\n this.columnChanged(this.columns);\n }\n @Watch('columns') columnChanged(newVal: (ColumnGrouping | ColumnRegular)[] = []) {\n const columnGather = ColumnDataProvider.getColumns(\n newVal,\n 0,\n this.columnTypes,\n );\n this.beforecolumnsset.emit(columnGather);\n this.dimensionProvider.applyNewColumns(\n columnGather.columns,\n this.disableVirtualX,\n );\n this.beforecolumnapplied.emit(columnGather);\n const columns = this.columnProvider.setColumns(columnGather);\n this.aftercolumnsset.emit({\n columns,\n order: this.columnProvider.order,\n });\n }\n\n @Watch('disableVirtualX') disableVirtualXChanged(\n newVal = false,\n prevVal = false,\n ) {\n if (newVal === prevVal) {\n return;\n }\n this.columnChanged(this.columns);\n }\n\n @Watch('rowSize') rowSizeChanged(s: number) {\n // clear existing data\n this.dimensionProvider.setSettings({ originItemSize: s }, 'rgRow');\n this.rowDefChanged(this.rowDefinitions, this.rowDefinitions);\n }\n\n @Watch('theme') themeChanged(\n t: Theme,\n _?: Theme,\n __ = 'theme',\n init = false,\n ) {\n this.themeService.register(t);\n this.dimensionProvider.setSettings(\n { originItemSize: this.themeService.rowSize },\n 'rgRow',\n );\n this.dimensionProvider.setSettings(\n { originItemSize: this.colSize },\n 'rgCol',\n );\n // if theme change we need to reapply row size and reset viewport\n if (!init) {\n // clear existing data\n this.dimensionProvider.setSettings(\n { originItemSize: this.themeService.rowSize },\n 'rgRow',\n );\n this.rowDefChanged(\n // for cases when some custom size present and not\n this.rowDefinitions.length\n ? this.rowDefinitions\n : [\n {\n type: 'rgRow',\n size: this.themeService.rowSize,\n index: 0,\n },\n ],\n this.rowDefinitions,\n );\n }\n }\n\n @Watch('source')\n @Watch('pinnedBottomSource')\n @Watch('pinnedTopSource')\n dataSourceChanged<T extends DataType>(\n newVal: T[] = [],\n _: T[] | undefined,\n watchName: string,\n ) {\n let type: DimensionRows = 'rgRow';\n switch (watchName) {\n case 'pinnedBottomSource':\n type = 'rowPinEnd';\n break;\n case 'pinnedTopSource':\n type = 'rowPinStart';\n break;\n case 'source':\n type = 'rgRow';\n /** applied for source only for cross compatability between plugins */\n const beforesourceset = this.beforesourceset.emit({\n type,\n source: newVal,\n });\n newVal = beforesourceset.detail.source as T[];\n break;\n }\n const beforesourceset = this.beforeanysource.emit({\n type,\n source: newVal,\n });\n const newSource = [...beforesourceset.detail.source];\n this.dataProvider.setData(newSource, type, this.disableVirtualY);\n\n /** applied for source only for cross compatability between plugins */\n if (watchName === 'source') {\n this.aftersourceset.emit({\n type,\n source: newVal,\n });\n }\n this.afteranysource.emit({\n type,\n source: newVal,\n });\n }\n\n @Watch('disableVirtualY') disableVirtualYChanged(\n newVal = false,\n prevVal = false,\n ) {\n if (newVal === prevVal) {\n return;\n }\n this.dataSourceChanged(this.source, this.source, 'source');\n }\n\n @Watch('rowDefinitions') rowDefChanged(\n after: RowDefinition[],\n before?: RowDefinition[],\n ) {\n const {\n detail: { vals: newVal, oldVals: oldVal },\n } = this.beforerowdefinition.emit({\n vals: after,\n oldVals: before,\n });\n // apply new vals\n const newRows = rowDefinitionByType(newVal);\n // clear current defs\n if (oldVal) {\n const remove = rowDefinitionRemoveByType(oldVal);\n // clear all old data and drop sizes\n each(remove, (_, t: DimensionRows) => {\n this.dimensionProvider.clearSize(\n t,\n this.dataProvider.stores[t].store.get('source').length,\n );\n });\n }\n if (!newVal.length) {\n return;\n }\n each(newRows, (r, k: DimensionRows) =>\n this.dimensionProvider.setCustomSizes(k, r.sizes || {}),\n );\n }\n\n @Watch('trimmedRows') trimmedRowsChanged(\n newVal: Record<number, boolean> = {},\n ) {\n this.addTrimmed(newVal);\n }\n /**\n * Grouping\n */\n @Watch('grouping') groupingChanged(newVal: GroupingOptions = {}) {\n let grPlugin: GroupingRowPlugin | undefined;\n for (let p of this.internalPlugins) {\n const isGrouping = p as unknown as GroupingRowPlugin;\n if (isGrouping.setGrouping) {\n grPlugin = isGrouping;\n break;\n }\n }\n if (!grPlugin) {\n return;\n }\n grPlugin.setGrouping(newVal || {});\n }\n /**\n * Stretch Plugin Apply\n */\n @Watch('stretch') applyStretch(isStretch: boolean | string) {\n if (isStretch === 'false') {\n isStretch = false;\n }\n let stretch = this.internalPlugins.filter(p => isStretchPlugin(p))[0];\n if ((typeof isStretch === 'boolean' && isStretch) || isStretch === 'true') {\n if (!stretch) {\n const pluginData: PluginProviders = {\n data: this.dataProvider,\n column: this.columnProvider,\n dimension: this.dimensionProvider,\n viewport: this.viewportProvider,\n selection: this.selectionStoreConnector,\n };\n this.internalPlugins.push(new StretchColumn(this.element, pluginData));\n } else if (isStretchPlugin(stretch)) {\n stretch.applyStretch(this.columnProvider.getRawColumns());\n }\n } else if (stretch) {\n const index = this.internalPlugins.indexOf(stretch);\n this.internalPlugins.splice(index, 1);\n }\n }\n\n @Watch('filter') applyFilter(cfg: boolean | ColumnFilterConfig) {\n this.filterconfigchanged.emit(cfg);\n }\n\n @Watch('rowHeaders') rowHeadersChange(rowHeaders?: RowHeaders | boolean) {\n this.rowheaderschanged.emit(rowHeaders);\n }\n\n /**\n * Register external VNodes\n */\n @Watch('registerVNode') registerOutsideVNodes(elements: VNode[] = []) {\n this.extraElements = [...this.extraElements, ...elements];\n }\n // #endregion\n\n // #region Plugins\n private setPlugins() {\n // remove old plugins if any\n this.removePlugins();\n\n // pass data provider to plugins\n const pluginData: PluginProviders = {\n data: this.dataProvider,\n column: this.columnProvider,\n dimension: this.dimensionProvider,\n viewport: this.viewportProvider,\n selection: this.selectionStoreConnector,\n };\n\n // register auto size plugin\n if (this.autoSizeColumn) {\n this.internalPlugins.push(\n new AutoSize(\n this.element,\n pluginData,\n typeof this.autoSizeColumn === 'object'\n ? this.autoSizeColumn\n : undefined,\n ),\n );\n }\n\n // register filter plugin\n if (this.filter) {\n this.internalPlugins.push(\n new FilterPlugin(\n this.element,\n pluginData,\n this.uuid,\n typeof this.filter === 'object' ? this.filter : undefined,\n ),\n );\n }\n\n // register export plugin\n if (this.exporting) {\n this.internalPlugins.push(new ExportFilePlugin(this.element, pluginData));\n }\n\n // register sorting plugin\n this.internalPlugins.push(new SortingPlugin(this.element, pluginData));\n\n // register grouping plugin\n this.internalPlugins.push(new GroupingRowPlugin(this.element, pluginData));\n if (this.canMoveColumns) {\n this.internalPlugins.push(new ColumnPlugin(this.element, pluginData));\n }\n\n // register user plugins\n this.plugins?.forEach(p => this.internalPlugins.push(new p(this.element, pluginData)));\n }\n\n private removePlugins() {\n this.internalPlugins.forEach(p => p.destroy());\n this.internalPlugins = [];\n }\n // #endregion\n\n\n // if reconnect to dom we need to set up plugins\n connectedCallback() {\n if (this.isInited) {\n this.setPlugins();\n }\n }\n\n /**\n * Called once just after the component is first connected to the DOM.\n * Since this method is only called once, it's a good place to load data asynchronously and to setup the state\n * without triggering extra re-renders.\n * A promise can be returned, that can be used to wait for the first render().\n */\n componentWillLoad() {\n // #region Setup Providers\n this.viewportProvider = new ViewportProvider();\n this.themeService = new ThemeService({\n rowSize: this.rowSize,\n });\n this.dimensionProvider = new DimensionProvider(this.viewportProvider, {\n realSizeChanged: (k: MultiDimensionType) =>\n this.contentsizechanged.emit(k),\n });\n this.columnProvider = new ColumnDataProvider();\n this.selectionStoreConnector = new SelectionStoreConnector();\n this.dataProvider = new DataProvider(this.dimensionProvider);\n // #endregion\n\n // generate uuid for this grid\n this.uuid = `rv--${Math.random().toString(36).slice(2, 6)}-${Date.now()}`;\n\n this.registerOutsideVNodes(this.registerVNode);\n\n // init plugins\n this.setPlugins();\n\n // set data\n this.applyStretch(this.stretch);\n this.themeChanged(this.theme, undefined, undefined, true);\n this.columnChanged(this.columns);\n this.dataSourceChanged(this.source, undefined, 'source');\n this.dataSourceChanged(this.pinnedTopSource, undefined, 'pinnedTopSource');\n this.dataSourceChanged(\n this.pinnedBottomSource,\n undefined,\n 'pinnedBottomSource',\n );\n this.trimmedRowsChanged(this.trimmedRows);\n this.rowDefChanged(this.rowDefinitions);\n this.groupingChanged(this.grouping);\n\n // init scrolling service\n this.scrollingService = new GridScrollingService(\n (e: ViewPortScrollEvent) => {\n this.dimensionProvider.setViewPortCoordinate({\n coordinate: e.coordinate,\n type: e.dimension,\n });\n this.viewportscroll.emit(e);\n },\n );\n\n this.aftergridinit.emit();\n // set inited flag for connectedCallback\n this.isInited = true;\n }\n\n componentWillRender() {\n const event = this.beforegridrender.emit();\n if (event.defaultPrevented) {\n return false;\n }\n return Promise.all(this.jobsBeforeRender);\n }\n\n render() {\n const contentHeight =\n this.dimensionProvider.stores['rgRow'].store.get('realSize');\n\n // init viewport service helpers\n this.viewport = new ViewportService(\n {\n columnProvider: this.columnProvider,\n dataProvider: this.dataProvider,\n dimensionProvider: this.dimensionProvider,\n viewportProvider: this.viewportProvider,\n scrollingService: this.scrollingService,\n orderService: this.orderService,\n selectionStoreConnector: this.selectionStoreConnector,\n disableVirtualX: this.disableVirtualX,\n disableVirtualY: this.disableVirtualY,\n resize: c => this.aftercolumnresize.emit(c),\n },\n contentHeight,\n );\n\n // #region ViewportSections\n /**\n * The code renders a viewport divided into sections.\n * It starts by rendering the pinned start, data, and pinned end sections.\n * Within each section, it renders columns along with their headers, pinned top, center data, and pinned bottom.\n * The code iterates over the columns and their data to generate the view port's HTML structure.\n */\n\n const viewportSections: (VNode | VNode[])[] = [];\n\n // Row headers setting\n if (this.rowHeaders && this.viewport.columns.length) {\n const anyView = this.viewport.columns[0];\n viewportSections.push(\n <revogr-row-headers\n additionalData={this.additionalData}\n height={contentHeight}\n rowClass={this.rowClass}\n resize={this.resize}\n dataPorts={anyView.dataPorts}\n headerProp={anyView.headerProp}\n jobsBeforeRender={this.jobsBeforeRender}\n rowHeaderColumn={\n typeof this.rowHeaders === 'object' ? this.rowHeaders : undefined\n }\n onScrollview={({ detail: e }: CustomEvent) =>\n this.scrollingService.proxyScroll(e, 'headerRow')\n }\n onRef={({ detail: e }: CustomEvent) =>\n this.scrollingService.registerElement(e, 'headerRow')\n }\n />,\n );\n }\n\n // Viewport section render\n const isMobile = isMobileDevice();\n const viewPortHtml: VNode[] = [];\n\n // Render viewports column(horizontal sections)\n for (let view of this.viewport.columns) {\n const headerProperties: HeaderProperties = {\n ...view.headerProp,\n type: view.type,\n additionalData: this.additionalData,\n viewportCol: view.viewportCol,\n selectionStore: view.columnSelectionStore,\n canResize: this.resize,\n readonly: this.readonly,\n columnFilter: !!this.filter,\n };\n // Column headers\n const dataViews: VNode[] = [\n <revogr-header {...headerProperties} slot={HEADER_SLOT} />,\n ];\n\n // Render viewport data (vertical sections)\n view.dataPorts.forEach(data => {\n const key = `${data.type}_${view.type}`;\n const dataView = (\n <revogr-overlay-selection\n {...data}\n isMobileDevice={isMobile}\n selectionStore={data.segmentSelectionStore}\n onSelectall={() => this.selectionStoreConnector.selectAll()}\n editors={this.editors}\n readonly={this.readonly}\n range={this.range}\n useClipboard={this.useClipboard}\n applyChangesOnClose={this.applyOnClose}\n additionalData={this.additionalData}\n slot={data.slot}\n onBeforenextvpfocus={(e) => this.selectionStoreConnector.beforeNextFocusCell(e.detail)}\n onCanceledit={() => this.selectionStoreConnector.setEdit(false)}\n onSetedit={({ detail }) => {\n const event = this.beforeeditstart.emit(detail);\n if (!event.defaultPrevented) {\n this.selectionStoreConnector.setEdit(detail.val);\n }\n }}\n >\n <revogr-data\n {...data}\n colType={view.type}\n key={key}\n readonly={this.readonly}\n range={this.range}\n rowClass={this.rowClass}\n rowSelectionStore={data.rowSelectionStore}\n additionalData={this.additionalData}\n jobsBeforeRender={this.jobsBeforeRender}\n slot={DATA_SLOT}\n >\n <slot name={`data-${view.type}-${data.type}`} />\n </revogr-data>\n <revogr-temp-range\n selectionStore={data.segmentSelectionStore}\n dimensionRow={data.dimensionRow}\n dimensionCol={data.dimensionCol}\n />\n <revogr-focus\n colData={data.colData}\n dataStore={data.dataStore}\n focusTemplate={this.focusTemplate}\n rowType={data.type}\n colType={view.type}\n selectionStore={data.segmentSelectionStore}\n dimensionRow={data.dimensionRow}\n dimensionCol={data.dimensionCol}\n >\n <slot name={`focus-${view.type}-${data.type}`} />\n </revogr-focus>\n </revogr-overlay-selection>\n );\n\n dataViews.push(dataView);\n });\n\n // Add viewport scroll in the end\n viewPortHtml.push(\n <revogr-viewport-scroll\n {...view.prop}\n ref={el =>\n this.scrollingService.registerElement(el, `${view.prop.key}`)\n }\n onScrollviewport={e =>\n this.scrollingService.proxyScroll(e.detail, `${view.prop.key}`)\n }\n onScrollviewportsilent={e =>\n this.scrollingService.scrollSilentService(\n e.detail,\n `${view.prop.key}`,\n )\n }\n >\n {dataViews}\n </revogr-viewport-scroll>,\n );\n }\n\n viewportSections.push(viewPortHtml);\n // #endregion\n\n const typeRow: DimensionType = 'rgRow';\n const typeCol: DimensionType = 'rgCol';\n\n const viewports = this.viewportProvider.stores;\n const dimensions = this.dimensionProvider.stores;\n\n return (\n <Host {...{ [`${UUID}`]: this.uuid }}>\n {this.hideAttribution ? null : (\n <revogr-attribution class=\"attribution\" />\n )}\n <div\n class=\"main-viewport\"\n onClick={(e: MouseEvent) => {\n if (e.currentTarget === e.target) {\n this.viewport.clearEdit();\n }\n }}\n >\n <div class=\"viewports\">\n <slot name=\"viewport\" />\n {viewportSections}\n <revogr-scroll-virtual\n class=\"vertical\"\n dimension={typeRow}\n viewportStore={viewports[typeRow].store}\n dimensionStore={dimensions[typeRow].store}\n ref={el => this.scrollingService.registerElement(el, 'rowScroll')}\n onScrollvirtual={e => this.scrollingService.proxyScroll(e.detail)}\n />\n <OrderRenderer ref={e => (this.orderService = e)} />\n </div>\n </div>\n <revogr-scroll-virtual\n class=\"horizontal\"\n dimension={typeCol}\n viewportStore={viewports[typeCol].store}\n dimensionStore={dimensions[typeCol].store}\n ref={el => this.scrollingService.registerElement(el, 'colScroll')}\n onScrollvirtual={e => this.scrollingService.proxyScroll(e.detail)}\n />\n {this.extraElements}\n </Host>\n );\n }\n\n disconnectedCallback() {\n // Remove all plugins, to avoid memory leaks and unexpected behaviour when the component is removed\n this.removePlugins();\n }\n}\n"]}
|
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n Method,\n VNode,\n Host,\n} from '@stencil/core';\nimport each from 'lodash/each';\n\nimport ColumnDataProvider, {\n ColumnCollection,\n} from '../../services/column.data.provider';\nimport { DataProvider } from '../../services/data.provider';\nimport { DSourceState, getVisibleSourceItem } from '@store';\nimport DimensionProvider from '../../services/dimension.provider';\nimport ViewportProvider from '../../services/viewport.provider';\nimport ThemeService from '../../themeManager/theme.service';\nimport { timeout } from '../../utils';\nimport AutoSize, {\n AutoSizeColumnConfig,\n} from '../../plugins/column.auto-size.plugin';\n\nimport {\n FilterPlugin,\n ColumnFilterConfig,\n FilterCollection,\n} from '../../plugins/filter/filter.plugin';\nimport SortingPlugin from '../../plugins/sorting/sorting.plugin';\nimport ExportFilePlugin from '../../plugins/export/export.plugin';\nimport { DataInput } from '../../plugins/export/types';\nimport GroupingRowPlugin from '../../plugins/groupingRow/grouping.row.plugin';\nimport { GroupingOptions } from '../../plugins/groupingRow/grouping.row.types';\nimport ViewportService, { FocusedData } from './viewport.service';\nimport { DATA_SLOT, HEADER_SLOT } from './viewport.helpers';\nimport GridScrollingService from './viewport.scrolling.service';\nimport { UUID } from '../../utils/consts';\nimport SelectionStoreConnector from '../../services/selection.store.connector';\nimport OrderRenderer, { OrdererService } from '../order/order-renderer';\nimport StretchColumn, {\n isStretchPlugin,\n} from '../../plugins/column.stretch.plugin';\nimport { rowDefinitionByType, rowDefinitionRemoveByType } from './grid.helpers';\nimport ColumnPlugin from '../../plugins/moveColumn/column.drag.plugin';\nimport { getPropertyFromEvent } from '../../utils/events';\nimport { isMobileDevice } from '../../utils/mobile';\nimport {\n MultiDimensionType,\n DimensionRows,\n DimensionCols,\n DimensionType,\n DimensionTypeCol,\n RowHeaders,\n ColumnRegular,\n ColumnGrouping,\n DataType,\n RowDefinition,\n ColumnType,\n FocusTemplateFunc,\n PositionItem,\n ColumnProp,\n ViewPortScrollEvent,\n InitialHeaderClick,\n AllDimensionType,\n Editors,\n BeforeSaveDataDetails,\n BeforeRangeSaveDataDetails,\n Cell,\n ChangedRange,\n RangeArea,\n AfterEditEvent,\n Theme,\n PluginBaseComponent,\n PluginExternalConstructor,\n HeaderProperties,\n PluginProviders,\n} from '@type';\nimport { Observable } from '../../utils/store.utils';\n\n/**\n * Revogrid - High-performance, customizable grid library for managing large datasets.\n *\n * :::tip\n * Read [type definition file](https://github.com/revolist/revogrid/blob/master/src/interfaces.d.ts) for the full interface information.\n * All complex property types such as `ColumnRegular`, `ColumnProp`, `ColumnDataSchemaModel` can be found there.\n * :::\n *\n * :::tip\n * For a comprehensive events guide, check the [dependency tree](#Dependencies).\n * All events propagate to the root level of the grid.\n * :::\n *\n * @slot data-{column-type}-{row-type}. @example data-rgCol-rgRow - main data slot. Applies extra elements in <revogr-data />.\n * @slot focus-{column-type}-{row-type}. @example focus-rgCol-rgRow - focus layer for main data. Applies extra elements in <revogr-focus />.\n */\n@Component({\n tag: 'revo-grid',\n styleUrl: 'revo-grid-style.scss',\n})\nexport class RevoGridComponent {\n // #region Properties\n /** Excel like functionality.\n * Show row numbers.\n * Also can be used for custom row header render if object provided.\n */\n @Prop() rowHeaders: RowHeaders | boolean;\n\n /**\n * Defines how many rows/columns should be rendered outside visible area.\n */\n @Prop() frameSize = 1;\n\n /**\n * Indicates default rgRow size.\n * By default 0, means theme package size will be applied\n *\n * Alternatively you can use `rowSize` to reset viewport\n */\n @Prop() rowSize = 0;\n\n /** Indicates default column size. */\n @Prop() colSize = 100;\n\n /** When true, user can range selection. */\n @Prop() range = false;\n\n /** When true, grid in read only mode. */\n @Prop() readonly = false;\n\n /** When true, columns are resizable. */\n @Prop() resize = false;\n\n /** When true cell focus appear. */\n @Prop() canFocus = true;\n\n /** When true enable clipboard. */\n @Prop() useClipboard = true;\n\n /**\n * Columns - defines an array of grid columns.\n * Can be column or grouped column.\n */\n @Prop() columns: (ColumnRegular | ColumnGrouping)[] = [];\n /**\n * Source - defines main data source.\n * Can be an Object or 2 dimensional array([][]);\n * Keys/indexes referenced from columns Prop.\n */\n @Prop() source: DataType[] = [];\n\n /** Pinned top Source: {[T in ColumnProp]: any} - defines pinned top rows data source. */\n @Prop() pinnedTopSource: DataType[] = [];\n\n /** Pinned bottom Source: {[T in ColumnProp]: any} - defines pinned bottom rows data source. */\n @Prop() pinnedBottomSource: DataType[] = [];\n\n /** Custom row properies to be applied. See `RowDefinition` for more info. */\n @Prop() rowDefinitions: RowDefinition[] = [];\n\n /** Custom editors register. */\n @Prop() editors: Editors = {};\n\n /**\n * Apply changes in editor when closed except 'Escape' cases.\n * If custom editor in use method getValue required.\n * Check interfaces.d.ts `EditorBase` for more info.\n */\n @Prop() applyOnClose = false;\n\n /**\n * Custom grid plugins.\n * Has to be predefined during first grid init.\n * Every plugin should be inherited from BasePlugin.\n */\n @Prop() plugins: PluginExternalConstructor[];\n\n /**\n * Column Types Format.\n * Every type represent multiple column properties.\n * Types will be merged but can be replaced with column properties.\n * Types were made as separate objects to be reusable per multiple columns.\n */\n @Prop() columnTypes: { [name: string]: ColumnType } = {};\n\n /** Theme name. */\n @Prop({ reflect: true, mutable: true }) theme: Theme = 'default';\n\n /**\n * Row class property mapping.\n * Map custom classes to rows from row object data.\n * Define this property in rgRow object and this will be mapped as rgRow class.\n */\n @Prop({ reflect: true }) rowClass = '';\n\n /**\n * Autosize config.\n * Enables columns autoSize.\n * For more details check `autoSizeColumn` plugin.\n * By default disabled, hence operation is not performance efficient.\n * `true` to enable with default params (double header separator click for autosize).\n * Or define config. See `AutoSizeColumnConfig` for more details.\n */\n @Prop() autoSizeColumn: boolean | AutoSizeColumnConfig = false;\n\n /**\n * Enables filter plugin.\n * Can be boolean.\n * Or can be filter collection See `FilterCollection` for more info.\n */\n @Prop() filter: boolean | ColumnFilterConfig = false;\n\n /**\n * Apply changes typed in editor on editor close except Escape cases.\n * If custom editor in use method `getValue` required.\n * Check `interfaces.d.ts` `EditorBase` for more info.\n */\n @Prop() focusTemplate: FocusTemplateFunc;\n\n /**\n * Enable column move plugin.\n */\n @Prop() canMoveColumns = false;\n /**\n * Trimmed rows.\n * Functionality which allows to hide rows from main data set.\n * `trimmedRows` are physical `rgRow` indexes to hide.\n */\n @Prop() trimmedRows: Record<number, boolean> = {};\n\n /**\n * Enable export plugin.\n */\n @Prop() exporting = false;\n\n /**\n * Group rows based on this property.\n * Define properties to be groped by grouping plugin See `GroupingOptions`.\n */\n @Prop() grouping: GroupingOptions;\n\n /**\n * Stretch strategy for columns by `StretchColumn` plugin.\n * For example if there are more space on the right last column size would be increased.\n */\n @Prop() stretch: boolean | string = true;\n\n /**\n * Additional data to be passed to plugins, renders or editors.\n * For example if you need to pass Vue component instance.\n */\n @Prop() additionalData: any = {};\n\n /**\n * Disable lazy rendering mode for the `X axis`.\n * Use when not many columns present and you don't need rerenader cells during scroll.\n * Can be used for initial rendering performance improvement.\n */\n @Prop() disableVirtualX = false;\n /**\n * Disable lazy rendering mode for the `Y axis`.\n * Use when not many rows present and you don't need rerenader cells during scroll.\n * Can be used for initial rendering performance improvement.\n */\n @Prop() disableVirtualY = false;\n\n /**\n * Please only hide the attribution if you are subscribed to Pro version\n */\n @Prop() hideAttribution = false;\n\n /**\n * Prevent rendering until job is done.\n * Can be used for initial rendering performance improvement.\n * When several plugins require initial rendering this will prevent double initial rendering.\n */\n @Prop() jobsBeforeRender: Promise<any>[] = [];\n\n /**\n * Register new virtual node inside of grid.\n * Used for additional items creation such as plugin elements.\n * Should be set before grid render inside of plugins.\n */\n @Prop() registerVNode: VNode[] = [];\n\n // #endregion\n\n // #region Events\n /**\n * New content size has been applied. The size excludes the header.\n * Currently, the event responsible for applying the new content size does not provide the actual size.\n * To retrieve the actual content size, you can utilize the `getContentSize` function after the event has been triggered.\n */\n @Event() contentsizechanged: EventEmitter<MultiDimensionType>;\n\n /**\n * This event is triggered before the data is edited.\n * To prevent the default behavior of editing data and use your own implementation, call `e.preventDefault()`.\n * To override the edit result with your own value, set the `e.val` property to your desired value.\n */\n @Event() beforeedit: EventEmitter<BeforeSaveDataDetails>;\n\n /**\n * This event is triggered before applying range data, specifically when a range selection occurs.\n * To customize the data and prevent the default edit data from being set, you can call `e.preventDefault()`.\n */\n @Event() beforerangeedit: EventEmitter<BeforeRangeSaveDataDetails>;\n\n /**\n * Triggered after data applied or range changed.\n */\n @Event() afteredit: EventEmitter<AfterEditEvent>;\n\n /**\n * This event is triggered before autofill is applied.\n * To prevent the default behavior of applying the edit data, you can call `e.preventDefault()`.\n */\n @Event() beforeautofill: EventEmitter<ChangedRange>;\n\n /**\n * Triggered before range applied.\n * Use e.preventDefault() to prevent range.\n */\n @Event() beforerange: EventEmitter<ChangedRange>;\n\n /**\n * Triggered after focus render finished.\n * Can be used to access a focus element through `event.target`\n */\n @Event() afterfocus: EventEmitter<{\n model: any;\n column: ColumnRegular;\n }>;\n\n /**\n * This event is triggered before the order of `rgRow` is applied.\n * To prevent the default behavior of changing the order of `rgRow`, you can call `e.preventDefault()`.\n */\n @Event() roworderchanged: EventEmitter<{ from: number; to: number }>;\n\n /**\n * Triggered by sorting.plugin.ts\n * Before sorting apply.\n * Use e.preventDefault() to prevent sorting data change.\n */\n @Event() beforesortingapply: EventEmitter<{\n column: ColumnRegular;\n order: 'desc' | 'asc';\n additive: boolean;\n }>;\n\n /**\n * Triggered by sorting.plugin.ts\n * Before sorting event.\n * Initial sorting triggered, if this event stops no other event called.\n * Use e.preventDefault() to prevent sorting.\n */\n @Event() beforesorting: EventEmitter<{\n column: ColumnRegular;\n order: 'desc' | 'asc';\n additive: boolean;\n }>;\n\n /**\n * This event is triggered when the row order change is started.\n * To prevent the default behavior of changing the row order, you can call `e.preventDefault()`.\n * To change the item name at the start of the row order change, you can set `e.text` to the desired new name.\n */\n @Event() rowdragstart: EventEmitter<{\n pos: PositionItem;\n text: string;\n }>;\n\n /**\n * On header click.\n */\n @Event() headerclick: EventEmitter<ColumnRegular>;\n\n /**\n * This event is triggered before the cell focus is changed.\n * To prevent the default behavior of changing the cell focus, you can call `e.preventDefault()`.\n */\n @Event() beforecellfocus: EventEmitter<BeforeSaveDataDetails>;\n\n /**\n * This event is triggered before the grid focus is lost.\n * To prevent the default behavior of changing the cell focus, you can call `e.preventDefault()`.\n */\n @Event() beforefocuslost: EventEmitter<FocusedData | null>;\n\n /**\n * Before main source/rows data apply.\n * You can override data source here\n */\n @Event() beforesourceset: EventEmitter<{\n type: DimensionRows;\n source: DataType[];\n }>;\n\n /**\n * Before data apply on any source type. Can be source from pinned and main viewport.\n * You can override data source here\n */\n @Event() beforeanysource: EventEmitter<{\n type: DimensionRows;\n source: DataType[];\n }>;\n\n /**\n * After main source/rows updated\n */\n @Event() aftersourceset: EventEmitter<{\n type: DimensionRows;\n source: DataType[];\n }>;\n\n /**\n * Emitted after each source update, whether from the pinned or main viewport.\n * Useful for tracking all changes originating from sources in both the pinned and main viewports.\n */\n @Event() afteranysource: EventEmitter<{\n type: DimensionRows;\n source: DataType[];\n }>;\n\n /**\n * Emitted before a column update is applied.\n * Listeners can use this event to perform any necessary actions or modifications before the column update is finalized.\n */\n @Event() beforecolumnsset: EventEmitter<ColumnCollection>;\n\n /**\n * Emitted before a column update is applied, after the column set is gathered and the viewport is updated.\n * Useful for performing actions or modifications before the final application of the column update.\n */\n @Event() beforecolumnapplied: EventEmitter<ColumnCollection>;\n\n /** Column updated */\n @Event() aftercolumnsset: EventEmitter<{\n columns: ColumnCollection;\n order: Record<ColumnProp, 'asc' | 'desc'>;\n }>;\n\n /**\n * Emitted before applying a filter to the data source.\n * Use e.preventDefault() to prevent cell focus change.\n * Modify the @collection if you need to change filters.\n */\n @Event() beforefilterapply: EventEmitter<{ collection: FilterCollection }>;\n\n /**\n * Emitted before applying a filter to the data source.\n * Use e.preventDefault() to prevent the default behavior of trimming values and applying the filter.\n * Modify the `collection` property if you want to change the filters.\n * Modify the `itemsToFilter` property if you want to filter the indexes for trimming.\n */\n @Event() beforefiltertrimmed: EventEmitter<{\n collection: FilterCollection;\n itemsToFilter: Record<number, boolean>;\n }>;\n\n /**\n * Emitted before trimming values.\n * Use e.preventDefault() to prevent the default behavior of trimming values.\n * Modify the `trimmed` property if you want to filter the indexes for trimming.\n */\n @Event() beforetrimmed: EventEmitter<{\n trimmed: Record<number, boolean>;\n trimmedType: string;\n type: string;\n }>;\n\n /**\n * Emitted after trimmed values have been applied.\n * Useful for notifying when trimming of values has taken place.\n */\n @Event() aftertrimmed: EventEmitter;\n\n /**\n * Emitted when the viewport is scrolled.\n * Useful for tracking viewport scrolling events.\n */\n @Event() viewportscroll: EventEmitter<ViewPortScrollEvent>;\n\n /**\n * Before export\n * Use e.preventDefault() to prevent export\n * Replace data in Event in case you want to modify it in export\n */\n @Event() beforeexport: EventEmitter<DataInput>;\n\n /**\n * Emitted before editing starts.\n * Use e.preventDefault() to prevent the default edit behavior.\n */\n @Event() beforeeditstart: EventEmitter<BeforeSaveDataDetails>;\n\n /**\n * Emitted after column resizing.\n * Useful for retrieving the resized columns.\n */\n @Event() aftercolumnresize: EventEmitter<{\n [index: number]: ColumnRegular;\n }>;\n\n /**\n * Emitted before the row definition is applied.\n * Useful for modifying or preventing the default row definition behavior.\n */\n @Event() beforerowdefinition: EventEmitter<{ vals: any; oldVals: any }>;\n\n /**\n * Emitted when the filter configuration is changed\n */\n @Event() filterconfigchanged: EventEmitter;\n\n /**\n * Emmited when the row headers are changed.\n */\n @Event() rowheaderschanged: EventEmitter;\n\n /**\n * Emmited before the grid is rendered.\n */\n @Event() beforegridrender: EventEmitter;\n\n /**\n * Emmited after the grid is initialized. Connected to the DOM.\n */\n @Event() aftergridinit: EventEmitter;\n\n // #endregion\n\n // #region Methods\n /**\n * Refreshes data viewport.\n * Can be specific part as rgRow or pinned rgRow or 'all' by default.\n */\n @Method() async refresh(type: DimensionRows | 'all' = 'all') {\n this.dataProvider.refresh(type);\n }\n\n /**\n * Sets data at specified cell.\n * Useful for performance optimization.\n * No viewport update will be triggered.\n */\n @Method() async setDataAt(\n data: {\n row: number;\n col: number;\n } & AllDimensionType,\n ) {\n const dataElement: HTMLRevogrDataElement | null =\n this.element.querySelector(\n `revogr-data[type=\"${data.rowType}\"][col-type=\"${data.colType}\"]`,\n );\n return dataElement?.updateCell({\n row: data.row,\n col: data.col,\n });\n }\n\n /**\n * Scrolls viewport to specified row by index.\n */\n @Method() async scrollToRow(coordinate = 0) {\n const y = this.dimensionProvider.getViewPortPos({\n coordinate,\n dimension: 'rgRow',\n });\n await this.scrollToCoordinate({ y });\n }\n\n /**\n * Scrolls viewport to specified column by index.\n */\n @Method() async scrollToColumnIndex(coordinate = 0) {\n const x = this.dimensionProvider.getViewPortPos({\n coordinate,\n dimension: 'rgCol',\n });\n await this.scrollToCoordinate({ x });\n }\n\n /**\n * Scrolls viewport to specified column by prop\n */\n @Method() async scrollToColumnProp(\n prop: ColumnProp,\n dimension: DimensionTypeCol = 'rgCol',\n ) {\n const coordinate = this.columnProvider.getColumnIndexByProp(\n prop,\n dimension,\n );\n if (coordinate < 0) {\n // already on the screen\n return;\n }\n const x = this.dimensionProvider.getViewPortPos({\n coordinate,\n dimension,\n });\n await this.scrollToCoordinate({ x });\n }\n\n /** Update columns */\n @Method() async updateColumns(cols: ColumnRegular[]) {\n this.columnProvider.updateColumns(cols);\n }\n\n /** Add trimmed by type */\n @Method() async addTrimmed(\n trimmed: Record<number, boolean>,\n trimmedType = 'external',\n type: DimensionRows = 'rgRow',\n ) {\n const event = this.beforetrimmed.emit({\n trimmed,\n trimmedType,\n type,\n });\n if (event.defaultPrevented) {\n return event;\n }\n this.dataProvider.setTrimmed({ [trimmedType]: event.detail.trimmed }, type);\n this.aftertrimmed.emit();\n return event;\n }\n\n /** Scrolls view port to coordinate */\n @Method() async scrollToCoordinate(cell: Partial<Cell>) {\n this.viewport?.scrollToCell(cell);\n }\n\n /** Open editor for cell. */\n @Method() async setCellEdit(\n rgRow: number,\n prop: ColumnProp,\n rowSource: DimensionRows = 'rgRow',\n ) {\n const rgCol = ColumnDataProvider.getColumnByProp(this.columns, prop);\n if (!rgCol) {\n return;\n }\n await timeout();\n const colGroup = rgCol.pin || 'rgCol';\n this.viewport?.setEdit(\n rgRow,\n this.columnProvider.getColumnIndexByProp(prop, colGroup),\n colGroup,\n rowSource,\n );\n }\n\n /** Set focus range. */\n @Method() async setCellsFocus(\n cellStart: Cell = { x: 0, y: 0 },\n cellEnd: Cell = { x: 0, y: 0 },\n colType = 'rgCol',\n rowType = 'rgRow',\n ) {\n this.viewport?.setFocus(colType, rowType, cellStart, cellEnd);\n }\n\n /** Get data from source */\n @Method() async getSource(type: DimensionRows = 'rgRow') {\n return this.dataProvider.stores[type].store.get('source');\n }\n\n /**\n * Get data from visible part of source\n * Trimmed/filtered rows will be excluded\n * @param type - type of source\n */\n @Method() async getVisibleSource(type: DimensionRows = 'rgRow') {\n return getVisibleSourceItem(this.dataProvider.stores[type].store);\n }\n\n /**\n * Provides access to rows internal store observer\n * Can be used for plugin support\n * @param type - type of source\n */\n @Method() async getSourceStore(\n type: DimensionRows = 'rgRow',\n ): Promise<Observable<DSourceState<DataType, DimensionRows>>> {\n return this.dataProvider.stores[type].store;\n }\n /**\n * Provides access to column internal store observer\n * Can be used for plugin support\n * @param type - type of column\n */\n @Method() async getColumnStore(\n type: DimensionCols = 'rgCol',\n ): Promise<Observable<DSourceState<ColumnRegular, DimensionCols>>> {\n return this.columnProvider.stores[type].store;\n }\n\n /**\n * Update column sorting\n * @param column - full column details to update\n * @param index - virtual column index\n * @param order - order to apply\n */\n @Method() async updateColumnSorting(\n column: ColumnRegular,\n index: number,\n order: 'asc' | 'desc',\n additive: boolean,\n ) {\n return this.columnProvider.updateColumnSorting(\n column,\n index,\n order,\n additive,\n );\n }\n\n /**\n * Clears column sorting\n */\n @Method() async clearSorting() {\n this.columnProvider.clearSorting();\n }\n\n /**\n * Receive all columns in data source\n */\n @Method() async getColumns(): Promise<ColumnRegular[]> {\n return this.columnProvider.getColumns();\n }\n\n /**\n * Clear current grid focus. Grid has no longer focus on it.\n */\n @Method() async clearFocus() {\n const focused = this.viewport?.getFocused();\n const event = this.beforefocuslost.emit(focused);\n if (event.defaultPrevented) {\n return;\n }\n this.selectionStoreConnector.clearAll();\n }\n\n /**\n * Get all active plugins instances\n */\n @Method() async getPlugins(): Promise<PluginBaseComponent[]> {\n return [...this.internalPlugins];\n }\n\n /**\n * Get the currently focused cell.\n */\n @Method() async getFocused(): Promise<FocusedData | null> {\n return this.viewport?.getFocused();\n }\n\n /**\n * Get size of content\n * Including all pinned data\n */\n @Method() async getContentSize(): Promise<Cell> {\n return this.dimensionProvider?.getFullSize();\n }\n /**\n * Get the currently selected Range.\n */\n @Method() async getSelectedRange(): Promise<RangeArea | null> {\n return this.viewport?.getSelectedRange();\n }\n\n // #endregion\n\n // #region Listeners outside scope\n private clickTrackForFocusClear: number | null = null;\n @Listen('touchstart', { target: 'document' })\n @Listen('mousedown', { target: 'document' })\n mousedownHandle(event: MouseEvent | TouchEvent) {\n const screenX = getPropertyFromEvent(event, 'screenX');\n const screenY = getPropertyFromEvent(event, 'screenY');\n if (screenX === null || screenY === null) {\n return;\n }\n\n this.clickTrackForFocusClear = screenX + screenY;\n }\n /**\n * To keep your elements from losing focus use mouseup/touchend e.preventDefault();\n */\n @Listen('touchend', { target: 'document' })\n @Listen('mouseup', { target: 'document' })\n mouseupHandle(event: MouseEvent | TouchEvent) {\n const screenX = getPropertyFromEvent(event, 'screenX');\n const screenY = getPropertyFromEvent(event, 'screenY');\n if (screenX === null || screenY === null) {\n return;\n }\n\n if (event.defaultPrevented) {\n return;\n }\n const target = event.target as HTMLElement | null;\n const pos = screenX + screenY;\n // detect if mousemove then do nothing\n if (Math.abs(this.clickTrackForFocusClear - pos) > 10) {\n return;\n }\n\n // check if action finished inside of the document\n // clear data which is outside of grid\n // if event prevented or it is current table don't clear focus\n if (target?.closest(`[${UUID}=\"${this.uuid}\"]`)) {\n return;\n }\n this.clearFocus();\n }\n // #endregion\n\n // #region Listeners\n /** Drag events */\n @Listen('rowdragstartinit') onRowDragStarted(\n e: CustomEvent<{\n pos: PositionItem;\n text: string;\n event: MouseEvent;\n }>,\n ) {\n const dragStart = this.rowdragstart.emit(e.detail);\n if (dragStart.defaultPrevented) {\n e.preventDefault();\n return;\n }\n this.orderService?.start(this.element, {\n ...e.detail,\n ...dragStart.detail,\n });\n }\n\n @Listen('rowdragendinit') onRowDragEnd() {\n this.orderService?.end();\n }\n\n @Listen('rowdragmoveinit') onRowDrag({ detail }: CustomEvent<PositionItem>) {\n this.orderService?.move(detail);\n }\n\n @Listen('rowdragmousemove') onRowMouseMove(e: CustomEvent<Cell>) {\n this.orderService?.moveTip(e.detail);\n }\n\n @Listen('celleditapply') async onCellEdit(\n e: CustomEvent<BeforeSaveDataDetails>,\n ) {\n const { defaultPrevented, detail } = this.beforeedit.emit(e.detail);\n await timeout();\n // apply data\n if (!defaultPrevented) {\n this.dataProvider.setCellData(detail);\n\n // @feature: incrimental update for cells\n // this.dataProvider.setCellData(detail, false);\n // await this.setDataAt({\n // row: detail.rowIndex,\n // col: detail.colIndex,\n // rowType: detail.type,\n // colType: detail.colType,\n // });\n this.afteredit.emit(detail);\n }\n }\n\n @Listen('rangeeditapply') onRangeEdit(\n e: CustomEvent<BeforeRangeSaveDataDetails>,\n ) {\n const { defaultPrevented, detail } = this.beforerangeedit.emit(e.detail);\n if (defaultPrevented) {\n e.preventDefault();\n return;\n }\n this.dataProvider.setRangeData(detail.data, detail.type);\n this.afteredit.emit(detail);\n }\n\n @Listen('selectionchangeinit') onRangeChanged(e: CustomEvent<ChangedRange>) {\n const beforeange = this.beforerange.emit(e.detail);\n if (beforeange.defaultPrevented) {\n e.preventDefault();\n }\n const beforeFill = this.beforeautofill.emit(beforeange.detail);\n if (beforeFill.defaultPrevented) {\n e.preventDefault();\n }\n }\n\n @Listen('rowdropinit') onRowDropped(\n e: CustomEvent<{ from: number; to: number }>,\n ) {\n // e.cancelBubble = true;\n const { defaultPrevented } = this.roworderchanged.emit(e.detail);\n if (defaultPrevented) {\n e.preventDefault();\n }\n }\n\n @Listen('beforeheaderclick') onHeaderClick(\n e: CustomEvent<InitialHeaderClick>,\n ) {\n const { defaultPrevented } = this.headerclick.emit({\n ...e.detail.column,\n originalEvent: e.detail.originalEvent,\n });\n if (defaultPrevented) {\n e.preventDefault();\n }\n }\n\n @Listen('beforecellfocusinit') onCellFocus(\n e: CustomEvent<BeforeSaveDataDetails>,\n ) {\n const { defaultPrevented } = this.beforecellfocus.emit(e.detail);\n if (!this.canFocus || defaultPrevented) {\n e.preventDefault();\n }\n }\n\n // #endregion\n\n // #region Private Properties\n @Element() element: HTMLRevoGridElement;\n private extraElements: VNode[] = [];\n\n // UUID required to support multiple grids in one page and avoid collision\n uuid: string | null = null;\n columnProvider: ColumnDataProvider;\n dataProvider: DataProvider;\n dimensionProvider: DimensionProvider;\n viewportProvider: ViewportProvider;\n private themeService: ThemeService;\n private viewport: ViewportService | null = null;\n private isInited = false;\n\n private orderService: OrdererService;\n private selectionStoreConnector: SelectionStoreConnector;\n private scrollingService: GridScrollingService;\n\n /**\n * Plugins\n * Define plugins collection\n */\n private internalPlugins: PluginBaseComponent[] = [];\n // #endregion\n\n // #region Watchers\n @Watch('columnTypes') columnTypesChanged() {\n // Column format change will trigger column structure update\n this.columnChanged(this.columns);\n }\n @Watch('columns') columnChanged(newVal: (ColumnGrouping | ColumnRegular)[] = []) {\n const columnGather = ColumnDataProvider.getColumns(\n newVal,\n 0,\n this.columnTypes,\n );\n this.beforecolumnsset.emit(columnGather);\n this.dimensionProvider.applyNewColumns(\n columnGather.columns,\n this.disableVirtualX,\n );\n this.beforecolumnapplied.emit(columnGather);\n const columns = this.columnProvider.setColumns(columnGather);\n this.aftercolumnsset.emit({\n columns,\n order: this.columnProvider.order,\n });\n }\n\n @Watch('disableVirtualX') disableVirtualXChanged(\n newVal = false,\n prevVal = false,\n ) {\n if (newVal === prevVal) {\n return;\n }\n this.columnChanged(this.columns);\n }\n\n @Watch('rowSize') rowSizeChanged(s: number) {\n // clear existing data\n this.dimensionProvider.setSettings({ originItemSize: s }, 'rgRow');\n this.rowDefChanged(this.rowDefinitions, this.rowDefinitions);\n }\n\n @Watch('theme') themeChanged(\n t: Theme,\n _?: Theme,\n __ = 'theme',\n init = false,\n ) {\n this.themeService.register(t);\n this.dimensionProvider.setSettings(\n { originItemSize: this.themeService.rowSize },\n 'rgRow',\n );\n this.dimensionProvider.setSettings(\n { originItemSize: this.colSize },\n 'rgCol',\n );\n // if theme change we need to reapply row size and reset viewport\n if (!init) {\n // clear existing data\n this.dimensionProvider.setSettings(\n { originItemSize: this.themeService.rowSize },\n 'rgRow',\n );\n this.rowDefChanged(\n // for cases when some custom size present and not\n this.rowDefinitions.length\n ? this.rowDefinitions\n : [\n {\n type: 'rgRow',\n size: this.themeService.rowSize,\n index: 0,\n },\n ],\n this.rowDefinitions,\n );\n }\n }\n\n @Watch('source')\n @Watch('pinnedBottomSource')\n @Watch('pinnedTopSource')\n dataSourceChanged<T extends DataType>(\n newVal: T[] = [],\n _: T[] | undefined,\n watchName: string,\n ) {\n let type: DimensionRows = 'rgRow';\n switch (watchName) {\n case 'pinnedBottomSource':\n type = 'rowPinEnd';\n break;\n case 'pinnedTopSource':\n type = 'rowPinStart';\n break;\n case 'source':\n type = 'rgRow';\n /** applied for source only for cross compatability between plugins */\n const beforesourceset = this.beforesourceset.emit({\n type,\n source: newVal,\n });\n newVal = beforesourceset.detail.source as T[];\n break;\n }\n const beforesourceset = this.beforeanysource.emit({\n type,\n source: newVal,\n });\n const newSource = [...beforesourceset.detail.source];\n this.dataProvider.setData(newSource, type, this.disableVirtualY);\n\n /** applied for source only for cross compatability between plugins */\n if (watchName === 'source') {\n this.aftersourceset.emit({\n type,\n source: newVal,\n });\n }\n this.afteranysource.emit({\n type,\n source: newVal,\n });\n }\n\n @Watch('disableVirtualY') disableVirtualYChanged(\n newVal = false,\n prevVal = false,\n ) {\n if (newVal === prevVal) {\n return;\n }\n this.dataSourceChanged(this.source, this.source, 'source');\n }\n\n @Watch('rowDefinitions') rowDefChanged(\n after: RowDefinition[],\n before?: RowDefinition[],\n ) {\n const {\n detail: { vals: newVal, oldVals: oldVal },\n } = this.beforerowdefinition.emit({\n vals: after,\n oldVals: before,\n });\n // apply new vals\n const newRows = rowDefinitionByType(newVal);\n // clear current defs\n if (oldVal) {\n const remove = rowDefinitionRemoveByType(oldVal);\n // clear all old data and drop sizes\n each(remove, (_, t: DimensionRows) => {\n this.dimensionProvider.clearSize(\n t,\n this.dataProvider.stores[t].store.get('source').length,\n );\n });\n }\n if (!newVal.length) {\n return;\n }\n each(newRows, (r, k: DimensionRows) =>\n this.dimensionProvider.setCustomSizes(k, r.sizes || {}),\n );\n }\n\n @Watch('trimmedRows') trimmedRowsChanged(\n newVal: Record<number, boolean> = {},\n ) {\n this.addTrimmed(newVal);\n }\n /**\n * Grouping\n */\n @Watch('grouping') groupingChanged(newVal: GroupingOptions = {}) {\n let grPlugin: GroupingRowPlugin | undefined;\n for (let p of this.internalPlugins) {\n const isGrouping = p as unknown as GroupingRowPlugin;\n if (isGrouping.setGrouping) {\n grPlugin = isGrouping;\n break;\n }\n }\n if (!grPlugin) {\n return;\n }\n grPlugin.setGrouping(newVal || {});\n }\n /**\n * Stretch Plugin Apply\n */\n @Watch('stretch') applyStretch(isStretch: boolean | string) {\n if (isStretch === 'false') {\n isStretch = false;\n }\n let stretch = this.internalPlugins.filter(p => isStretchPlugin(p))[0];\n if ((typeof isStretch === 'boolean' && isStretch) || isStretch === 'true') {\n if (!stretch) {\n const pluginData: PluginProviders = {\n data: this.dataProvider,\n column: this.columnProvider,\n dimension: this.dimensionProvider,\n viewport: this.viewportProvider,\n selection: this.selectionStoreConnector,\n };\n this.internalPlugins.push(new StretchColumn(this.element, pluginData));\n } else if (isStretchPlugin(stretch)) {\n stretch.applyStretch(this.columnProvider.getRawColumns());\n }\n } else if (stretch) {\n const index = this.internalPlugins.indexOf(stretch);\n this.internalPlugins.splice(index, 1);\n }\n }\n\n @Watch('filter') applyFilter(cfg: boolean | ColumnFilterConfig) {\n this.filterconfigchanged.emit(cfg);\n }\n\n @Watch('rowHeaders') rowHeadersChange(rowHeaders?: RowHeaders | boolean) {\n this.rowheaderschanged.emit(rowHeaders);\n }\n\n /**\n * Register external VNodes\n */\n @Watch('registerVNode') registerOutsideVNodes(elements: VNode[] = []) {\n this.extraElements = [...this.extraElements, ...elements];\n }\n // #endregion\n\n // #region Plugins\n private setPlugins() {\n // remove old plugins if any\n this.removePlugins();\n\n // pass data provider to plugins\n const pluginData: PluginProviders = {\n data: this.dataProvider,\n column: this.columnProvider,\n dimension: this.dimensionProvider,\n viewport: this.viewportProvider,\n selection: this.selectionStoreConnector,\n };\n\n // register auto size plugin\n if (this.autoSizeColumn) {\n this.internalPlugins.push(\n new AutoSize(\n this.element,\n pluginData,\n typeof this.autoSizeColumn === 'object'\n ? this.autoSizeColumn\n : undefined,\n ),\n );\n }\n\n // register filter plugin\n if (this.filter) {\n this.internalPlugins.push(\n new FilterPlugin(\n this.element,\n pluginData,\n this.uuid,\n typeof this.filter === 'object' ? this.filter : undefined,\n ),\n );\n }\n\n // register export plugin\n if (this.exporting) {\n this.internalPlugins.push(new ExportFilePlugin(this.element, pluginData));\n }\n\n // register sorting plugin\n this.internalPlugins.push(new SortingPlugin(this.element, pluginData));\n\n // register grouping plugin\n this.internalPlugins.push(new GroupingRowPlugin(this.element, pluginData));\n if (this.canMoveColumns) {\n this.internalPlugins.push(new ColumnPlugin(this.element, pluginData));\n }\n\n // register user plugins\n this.plugins?.forEach(p => this.internalPlugins.push(new p(this.element, pluginData)));\n }\n\n private removePlugins() {\n this.internalPlugins.forEach(p => p.destroy());\n this.internalPlugins = [];\n }\n // #endregion\n\n\n // if reconnect to dom we need to set up plugins\n connectedCallback() {\n if (this.isInited) {\n this.setPlugins();\n }\n }\n\n /**\n * Called once just after the component is first connected to the DOM.\n * Since this method is only called once, it's a good place to load data asynchronously and to setup the state\n * without triggering extra re-renders.\n * A promise can be returned, that can be used to wait for the first render().\n */\n componentWillLoad() {\n // #region Setup Providers\n this.viewportProvider = new ViewportProvider();\n this.themeService = new ThemeService({\n rowSize: this.rowSize,\n });\n this.dimensionProvider = new DimensionProvider(this.viewportProvider, {\n realSizeChanged: (k: MultiDimensionType) =>\n this.contentsizechanged.emit(k),\n });\n this.columnProvider = new ColumnDataProvider();\n this.selectionStoreConnector = new SelectionStoreConnector();\n this.dataProvider = new DataProvider(this.dimensionProvider);\n // #endregion\n\n // generate uuid for this grid\n this.uuid = `rv--${Math.random().toString(36).slice(2, 6)}-${Date.now()}`;\n\n this.registerOutsideVNodes(this.registerVNode);\n\n // init plugins\n this.setPlugins();\n\n // set data\n this.applyStretch(this.stretch);\n this.themeChanged(this.theme, undefined, undefined, true);\n this.columnChanged(this.columns);\n this.dataSourceChanged(this.source, undefined, 'source');\n this.dataSourceChanged(this.pinnedTopSource, undefined, 'pinnedTopSource');\n this.dataSourceChanged(\n this.pinnedBottomSource,\n undefined,\n 'pinnedBottomSource',\n );\n this.trimmedRowsChanged(this.trimmedRows);\n this.rowDefChanged(this.rowDefinitions);\n this.groupingChanged(this.grouping);\n\n // init scrolling service\n this.scrollingService = new GridScrollingService(\n (e: ViewPortScrollEvent) => {\n this.dimensionProvider.setViewPortCoordinate({\n coordinate: e.coordinate,\n type: e.dimension,\n });\n this.viewportscroll.emit(e);\n },\n );\n\n this.aftergridinit.emit();\n // set inited flag for connectedCallback\n this.isInited = true;\n }\n\n componentWillRender() {\n const event = this.beforegridrender.emit();\n if (event.defaultPrevented) {\n return false;\n }\n return Promise.all(this.jobsBeforeRender);\n }\n\n render() {\n const contentHeight =\n this.dimensionProvider.stores['rgRow'].store.get('realSize');\n\n // init viewport service helpers\n this.viewport = new ViewportService(\n {\n columnProvider: this.columnProvider,\n dataProvider: this.dataProvider,\n dimensionProvider: this.dimensionProvider,\n viewportProvider: this.viewportProvider,\n scrollingService: this.scrollingService,\n orderService: this.orderService,\n selectionStoreConnector: this.selectionStoreConnector,\n disableVirtualX: this.disableVirtualX,\n disableVirtualY: this.disableVirtualY,\n resize: c => this.aftercolumnresize.emit(c),\n },\n contentHeight,\n );\n\n // #region ViewportSections\n /**\n * The code renders a viewport divided into sections.\n * It starts by rendering the pinned start, data, and pinned end sections.\n * Within each section, it renders columns along with their headers, pinned top, center data, and pinned bottom.\n * The code iterates over the columns and their data to generate the view port's HTML structure.\n */\n\n const viewportSections: (VNode | VNode[])[] = [];\n\n // Row headers setting\n if (this.rowHeaders && this.viewport.columns.length) {\n const anyView = this.viewport.columns[0];\n viewportSections.push(\n <revogr-row-headers\n additionalData={this.additionalData}\n height={contentHeight}\n rowClass={this.rowClass}\n resize={this.resize}\n dataPorts={anyView.dataPorts}\n headerProp={anyView.headerProp}\n jobsBeforeRender={this.jobsBeforeRender}\n rowHeaderColumn={\n typeof this.rowHeaders === 'object' ? this.rowHeaders : undefined\n }\n onScrollview={({ detail: e }: CustomEvent) =>\n this.scrollingService.proxyScroll(e, 'headerRow')\n }\n onRef={({ detail: e }: CustomEvent) =>\n this.scrollingService.registerElement(e, 'headerRow')\n }\n />,\n );\n }\n\n // Viewport section render\n const isMobile = isMobileDevice();\n const viewPortHtml: VNode[] = [];\n\n // Render viewports column(horizontal sections)\n for (let view of this.viewport.columns) {\n const headerProperties: HeaderProperties = {\n ...view.headerProp,\n type: view.type,\n additionalData: this.additionalData,\n viewportCol: view.viewportCol,\n selectionStore: view.columnSelectionStore,\n canResize: this.resize,\n readonly: this.readonly,\n columnFilter: !!this.filter,\n };\n // Column headers\n const dataViews: VNode[] = [\n <revogr-header {...headerProperties} slot={HEADER_SLOT} />,\n ];\n\n // Render viewport data (vertical sections)\n view.dataPorts.forEach(data => {\n const key = `${data.type}_${view.type}`;\n const dataView = (\n <revogr-overlay-selection\n {...data}\n isMobileDevice={isMobile}\n selectionStore={data.segmentSelectionStore}\n onSelectall={() => this.selectionStoreConnector.selectAll()}\n editors={this.editors}\n readonly={this.readonly}\n range={this.range}\n useClipboard={this.useClipboard}\n applyChangesOnClose={this.applyOnClose}\n additionalData={this.additionalData}\n slot={data.slot}\n onBeforenextvpfocus={(e) => this.selectionStoreConnector.beforeNextFocusCell(e.detail)}\n onCanceledit={() => this.selectionStoreConnector.setEdit(false)}\n onSetedit={({ detail }) => {\n const event = this.beforeeditstart.emit(detail);\n if (!event.defaultPrevented) {\n this.selectionStoreConnector.setEdit(detail.val);\n }\n }}\n >\n <revogr-data\n {...data}\n colType={view.type}\n key={key}\n readonly={this.readonly}\n range={this.range}\n rowClass={this.rowClass}\n rowSelectionStore={data.rowSelectionStore}\n additionalData={this.additionalData}\n jobsBeforeRender={this.jobsBeforeRender}\n slot={DATA_SLOT}\n >\n <slot name={`data-${view.type}-${data.type}`} />\n </revogr-data>\n <revogr-temp-range\n selectionStore={data.segmentSelectionStore}\n dimensionRow={data.dimensionRow}\n dimensionCol={data.dimensionCol}\n />\n <revogr-focus\n colData={data.colData}\n dataStore={data.dataStore}\n focusTemplate={this.focusTemplate}\n rowType={data.type}\n colType={view.type}\n selectionStore={data.segmentSelectionStore}\n dimensionRow={data.dimensionRow}\n dimensionCol={data.dimensionCol}\n >\n <slot name={`focus-${view.type}-${data.type}`} />\n </revogr-focus>\n </revogr-overlay-selection>\n );\n\n dataViews.push(dataView);\n });\n\n // Add viewport scroll in the end\n viewPortHtml.push(\n <revogr-viewport-scroll\n {...view.prop}\n ref={el =>\n this.scrollingService.registerElement(el, `${view.prop.key}`)\n }\n onScrollviewport={e =>\n this.scrollingService.proxyScroll(e.detail, `${view.prop.key}`)\n }\n onScrollviewportsilent={e =>\n this.scrollingService.scrollSilentService(\n e.detail,\n `${view.prop.key}`,\n )\n }\n >\n {dataViews}\n </revogr-viewport-scroll>,\n );\n }\n\n viewportSections.push(viewPortHtml);\n // #endregion\n\n const typeRow: DimensionType = 'rgRow';\n const typeCol: DimensionType = 'rgCol';\n\n const viewports = this.viewportProvider.stores;\n const dimensions = this.dimensionProvider.stores;\n\n return (\n <Host {...{ [`${UUID}`]: this.uuid }}>\n {this.hideAttribution ? null : (\n <revogr-attribution class=\"attribution\" />\n )}\n <div\n class=\"main-viewport\"\n onClick={(e: MouseEvent) => {\n if (e.currentTarget === e.target) {\n this.viewport.clearEdit();\n }\n }}\n >\n <div class=\"viewports\">\n <slot name=\"viewport\" />\n {viewportSections}\n <revogr-scroll-virtual\n class=\"vertical\"\n dimension={typeRow}\n viewportStore={viewports[typeRow].store}\n dimensionStore={dimensions[typeRow].store}\n ref={el => this.scrollingService.registerElement(el, 'rowScroll')}\n onScrollvirtual={e => this.scrollingService.proxyScroll(e.detail)}\n />\n <OrderRenderer ref={e => (this.orderService = e)} />\n </div>\n </div>\n <revogr-scroll-virtual\n class=\"horizontal\"\n dimension={typeCol}\n viewportStore={viewports[typeCol].store}\n dimensionStore={dimensions[typeCol].store}\n ref={el => this.scrollingService.registerElement(el, 'colScroll')}\n onScrollvirtual={e => this.scrollingService.proxyScroll(e.detail)}\n />\n {this.extraElements}\n </Host>\n );\n }\n\n disconnectedCallback() {\n // Remove all plugins, to avoid memory leaks and unexpected behaviour when the component is removed\n this.removePlugins();\n }\n}\n"]}
|
|
@@ -3181,7 +3181,7 @@ const RevoGridComponent = class {
|
|
|
3181
3181
|
this.beforerangeedit = createEvent(this, "beforerangeedit", 7);
|
|
3182
3182
|
this.afteredit = createEvent(this, "afteredit", 7);
|
|
3183
3183
|
this.beforeautofill = createEvent(this, "beforeautofill", 7);
|
|
3184
|
-
this.
|
|
3184
|
+
this.beforerange = createEvent(this, "beforerange", 7);
|
|
3185
3185
|
this.afterfocus = createEvent(this, "afterfocus", 7);
|
|
3186
3186
|
this.roworderchanged = createEvent(this, "roworderchanged", 7);
|
|
3187
3187
|
this.beforesortingapply = createEvent(this, "beforesortingapply", 7);
|
|
@@ -3527,7 +3527,7 @@ const RevoGridComponent = class {
|
|
|
3527
3527
|
this.afteredit.emit(detail);
|
|
3528
3528
|
}
|
|
3529
3529
|
onRangeChanged(e) {
|
|
3530
|
-
const beforeange = this.
|
|
3530
|
+
const beforeange = this.beforerange.emit(e.detail);
|
|
3531
3531
|
if (beforeange.defaultPrevented) {
|
|
3532
3532
|
e.preventDefault();
|
|
3533
3533
|
}
|
|
@@ -3865,7 +3865,7 @@ const RevoGridComponent = class {
|
|
|
3865
3865
|
const headerProperties = Object.assign(Object.assign({}, view.headerProp), { type: view.type, additionalData: this.additionalData, viewportCol: view.viewportCol, selectionStore: view.columnSelectionStore, canResize: this.resize, readonly: this.readonly, columnFilter: !!this.filter });
|
|
3866
3866
|
// Column headers
|
|
3867
3867
|
const dataViews = [
|
|
3868
|
-
h("revogr-header", Object.assign({ key: '
|
|
3868
|
+
h("revogr-header", Object.assign({ key: '04119785ef18171d13263b5a56a304c05afddee3' }, headerProperties, { slot: HEADER_SLOT })),
|
|
3869
3869
|
];
|
|
3870
3870
|
// Render viewport data (vertical sections)
|
|
3871
3871
|
view.dataPorts.forEach(data => {
|
|
@@ -3887,11 +3887,11 @@ const RevoGridComponent = class {
|
|
|
3887
3887
|
const typeCol = 'rgCol';
|
|
3888
3888
|
const viewports = this.viewportProvider.stores;
|
|
3889
3889
|
const dimensions = this.dimensionProvider.stores;
|
|
3890
|
-
return (h(Host, { key: '
|
|
3890
|
+
return (h(Host, { key: '2f84ce8fcf803cdad1dc8ce5b798b8d3b9b29aed', [`${UUID}`]: this.uuid }, this.hideAttribution ? null : (h("revogr-attribution", { class: "attribution" })), h("div", { key: '6e3e09f51a6316ecea972f9a5f5789983ff236a9', class: "main-viewport", onClick: (e) => {
|
|
3891
3891
|
if (e.currentTarget === e.target) {
|
|
3892
3892
|
this.viewport.clearEdit();
|
|
3893
3893
|
}
|
|
3894
|
-
} }, h("div", { key: '
|
|
3894
|
+
} }, h("div", { key: '2588926f18143056dc291c3b0ff3c1f5a23b4f2d', class: "viewports" }, h("slot", { key: '9b67ce2dad0aaebb974c5653581f510c246f0aec', name: "viewport" }), viewportSections, h("revogr-scroll-virtual", { key: '90696a6304b7d9dfc532029d139c198c2cfe3c11', class: "vertical", dimension: typeRow, viewportStore: viewports[typeRow].store, dimensionStore: dimensions[typeRow].store, ref: el => this.scrollingService.registerElement(el, 'rowScroll'), onScrollvirtual: e => this.scrollingService.proxyScroll(e.detail) }), h(OrderRenderer, { key: '51c029fdbd2d22c8e5b538253f0ff4c2b724920c', ref: e => (this.orderService = e) }))), h("revogr-scroll-virtual", { key: '955fa4b29228b7923d198e55b214fc2ad0f2a19f', class: "horizontal", dimension: typeCol, viewportStore: viewports[typeCol].store, dimensionStore: dimensions[typeCol].store, ref: el => this.scrollingService.registerElement(el, 'colScroll'), onScrollvirtual: e => this.scrollingService.proxyScroll(e.detail) }), this.extraElements));
|
|
3895
3895
|
}
|
|
3896
3896
|
disconnectedCallback() {
|
|
3897
3897
|
// Remove all plugins, to avoid memory leaks and unexpected behaviour when the component is removed
|