@mescius/wijmo.react.grid 5.20252.44 → 5.20261.45-nightly.d20260105.t014601

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20252.44
3
+ * Wijmo Library 5.20261.45-nightly.d20260105.t014601
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -11,4 +11,4 @@
11
11
  *
12
12
  */
13
13
 
14
- "use strict";var __importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});const wijmo_react_base_1=require("@mescius/wijmo.react.base"),wijmo_1=require("@mescius/wijmo"),React=__importStar(require("react")),wjcGrid=__importStar(require("@mescius/wijmo.grid")),wjcInteropGrid=__importStar(require("@mescius/wijmo.interop.grid"));exports.CellTemplateType=wjcInteropGrid.GridCellTemplateType;exports.FlexGridMeta={inputs:[...wijmo_react_base_1.ControlBaseMeta.inputs,"allowAddNew","allowDelete","allowDragging","allowMerging","allowPinning","allowResizing","allowSorting","alternatingRowStep","anchorCursor","ariaLabel","autoClipboard","autoGenerateColumns","autoRowHeights","autoScroll","autoSearch","autoSizeMode","bigCheckboxes","caseSensitiveSearch","cellFactory","childItemsPath","cloneFrozenCells","columns","columnGroups","columnLayout","commitEmptyEdits","copyHeaders","deferResizing","editColumnIndex","errorTip","expandSelectionOnCopyPaste","frozenCells","frozenColumns","frozenRows","groupHeaderFormat","groupSummaryPosition","headersFocusability","headersVisibility","imeEnabled","isReadOnly","itemFormatter","itemValidator","itemsSource","keyActionEnter","keyActionTab","lazyRender","maxContent","mergeManager","newRowAtTop","pasteEmptyCells","preserveOutlineState","preserveSelectedState","preserveWhiteSpace","quickAutoSize","refreshOnEdit","rowHeaderPath","scrollPosition","scrollSize","selectedItems","selectedRanges","selectedRows","selection","selectionMode","showDropDown","showErrors","showGroups","showMarquee","showPlaceholders","showSelectedHeaders","showSort","skipMerged","sortOrder","sortRowIndex","stickyHeaders","treeIndent","validateEdits","virtualizationThreshold","noDataOverlayContent"],events:[...wijmo_react_base_1.ControlBaseMeta.events,"autoSizedColumn","autoSizedRow","autoSizingColumn","autoSizingRow","beginningEdit","cellEditEnded","cellEditEnding","columnGroupCollapsedChanged","columnGroupCollapsedChanging","copied","copying","deletedRow","deletingRow","draggedColumn","draggedRow","draggingColumn","draggingColumnOver","draggingRow","draggingRowOver","formatItem","groupCollapsedChanged","groupCollapsedChanging","itemsSourceChanged","itemsSourceChanging","loadedRows","loadingRows","pasted","pastedCell","pasting","pastingCell","pinnedColumn","pinningColumn","prepareCellForEdit","resizedColumn","resizedRow","resizingColumn","resizingRow","rowAdded","rowEditEnded","rowEditEnding","rowEditStarted","rowEditStarting","scrollPositionChanged","selectionChanged","selectionChanging","sortedColumn","sortingColumn","starSizedColumns","updatedLayout","updatedView","updatingLayout","updatingView","gettingCellClipString"]};exports.FlexGrid=wijmo_react_base_1.wjForwardRef((function(e,t){return wijmo_react_base_1.useWjComponentBase({ref:t,properties:exports.FlexGridMeta.inputs,events:exports.FlexGridMeta.events,props:e,constructor:wjcGrid.FlexGrid,initControl:e=>{e.cellFactory=new DirectiveCellFactory(e)}}).renderResult}));exports.RowColMeta={inputs:["align","allowDragging","allowMerging","allowResizing","binding","cssClass","cssClassAll","dataMap","dataMapEditor","dataType","dropDownCssClass","format","inputType","isContentHtml","isReadOnly","isRequired","isSelected","isVisible","mask","maxLength","multiLine","size","sortMemberPath","visible","wordWrap","placeholder"],events:["gridChanged"]};exports.FlexGridColumnMeta={inputs:[...exports.RowColMeta.inputs,"aggregate","allowSorting","cellTemplate","describedById","editor","header","maxWidth","minWidth","name","quickAutoSize","sortOrder","width"],events:[...exports.RowColMeta.events]};exports.FlexGridColumn=wijmo_react_base_1.wjForwardRef((function(e,t){const r=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.FlexGridColumnMeta.inputs,events:exports.FlexGridColumnMeta.events,props:e,constructor:wjcGrid.Column,customConstructor:(e,t)=>{e.autoGenerateColumns=!1;return new wjcGrid.Column(t)},needParentInstance:!1,parentProp:"columns",isParentPropArray:!0,assignedToParent:!0});return Object.assign({$_wjComponent:!0},r)}));exports.FlexGridColumnGroupMeta={inputs:[...exports.FlexGridColumnMeta.inputs,"collapseTo","columns","height","isCollapsed"],events:[...exports.FlexGridColumnMeta.events]};exports.FlexGridColumnGroup=wijmo_react_base_1.wjForwardRef((function(e,t){const r=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.FlexGridColumnGroupMeta.inputs,events:exports.FlexGridColumnGroupMeta.events,props:e,constructor:wjcGrid.ColumnGroup,customConstructor:(e,t)=>{e.autoGenerateColumns=!1;return new wjcGrid.ColumnGroup(t)},needParentInstance:!1,parentProp:"columnGroups",isParentPropArray:!0,assignedToParent:!0});return Object.assign({$_wjComponent:!0},r)}));exports.FlexGridCellTemplateMeta={inputs:["cellType","template","autoSizeRows"],events:[]};exports.FlexGridCellTemplate=wijmo_react_base_1.wjForwardRef((function(e,t){const r=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.FlexGridCellTemplateMeta.inputs,events:exports.FlexGridCellTemplateMeta.events,props:e,constructor:ReactFlexGridCellTemplate,needParentInstance:!0,parentProp:"",isParentPropArray:!1,assignedToParent:!1});return Object.assign({$_wjComponent:!0},r)}));class ReactFlexGridCellTemplate{constructor(e,t){this.autoSizeRows=!0;this.parent=e;this.cellType=wijmo_1.asEnum(t.cellType,wjcInteropGrid.GridCellTemplateType,!1);const r=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);this.template=wijmo_1.asFunction(t.template,!0);e[r]=this}initialize(e){this.removeBinding();this.cellType=wijmo_1.asEnum(null==e.cellType?this.cellType:e.cellType,wjcInteropGrid.GridCellTemplateType,!1);this.template=void 0===e.template?this.template:wijmo_1.asFunction(e.template,!0);const t=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);this.parent[t]=this;this.autoSizeRows=void 0===e.autoSizeRows?this.autoSizeRows:wijmo_1.asBoolean(e.autoSizeRows,!0)||!1;void 0!==e.template&&this.parent&&(this.parent.grid?this.parent.grid.invalidate():this.parent.invalidate&&this.parent.invalidate());this.parent&&this.parent instanceof wjcGrid.Column&&this.parent._setFlag(wjcGrid.RowColFlags.HasTemplate,!0,!0)}removeBinding(){const e=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);delete this.parent[e];this.parent&&this.parent instanceof wjcGrid.Column&&this.parent._setFlag(wjcGrid.RowColFlags.HasTemplate,!1,!0)}dispose(){this.removeBinding();this.parent&&this.parent.grid?this.parent.grid.invalidate():this.parent&&this.parent.invalidate&&this.parent.invalidate()}}exports.ReactFlexGridCellTemplate=ReactFlexGridCellTemplate;class DirectiveCellFactory extends wjcInteropGrid.DirectiveCellFactoryBase{constructor(e){super(e);this._renderedCells=[];e.updatedView.addHandler(e=>{queueMicrotask(()=>this._reRenderCells())},this)}shouldInstantiate(e){const t=e.templateCache;return null==t||t.column!==e.column||t.templateContextProperty!==e.templateContextProperty||e.cell.firstChild!=t.rootElement}renderTemplate(e,t){let r=e.row,i=e.templateContext,o=e.cell;e.cellBindingsData=this.setBindingsData({},r,e.column,r.dataItem,e.cellValue,i.valuePaths);e.cellBindingsData.localVars.valueFormatted=e.cellValueFormatted;this._renderCell(o,e);if(t){this._addRenderedCell(o);let t=e.templateCache={column:e.column,rootElement:o.firstElementChild,templateContextProperty:e.templateContextProperty};o[e.templateContextProperty]=t}}flushPendingUpdates(){wijmo_react_base_1.baseFlushSync()}applyImmediately(e){}flushPendingEvents(e){}getEditorFocusFlag(){return!0}setEditorFocusFlag(e){}disposeTemplate(e,t,r){if(t){wijmo_react_base_1.selectiveDomUnmount(e);this._removeRenderedCell(e);super.disposeTemplate(e,t,r)}}clearCell(e){wijmo_react_base_1.selectiveDomUnmount(e)}canRender(e){return!(!e||!e.template)}_renderCell(e,t){var r=t||e.__wjCellLastRenderedProp;if(r){let t=r&&r.templateContext.template,i=r.cellBindingsData.localVars;i.row&&!i.row.grid&&(i.row=r.panel.grid.rows[i.row.index]);if(!i.row)return;wijmo_react_base_1.selectiveDomRender(React.createElement("div",{},t&&t(i)),e);e.__wjCellLastRenderedProp=r}}_addRenderedCell(e){let t=this._renderedCells;t.indexOf(e)<0&&t.push(e)}_removeRenderedCell(e){let t=this._renderedCells,r=t.indexOf(e);r>-1&&t.splice(r,1)}_reRenderCells(){this._renderedCells.forEach(e=>this._renderCell(e))}checkHeight(e){"$__cellTemplGroupHeader"!==e.templateContextProperty&&(this._isCheckingHeight||setTimeout(()=>{if(this._isCheckingHeight)return;var t=e.panel.rows,r=e.row.index;if(!t[r])return;let i=e.cell;const o=i.style.height;i.style.height="0";let l=i.scrollHeight>7?i.scrollHeight:t[r].renderHeight;i.style.height=o;if(e.cellStamp===i[wjcInteropGrid.DirectiveCellFactoryBase._cellStampProp]){var n=e.rng,a=n&&n.rowSpan||1,s=e.isEdit;null!=t.maxSize&&(l=Math.min(l,t.maxSize));if(r<t.length&&t[r].renderHeight<l-1||t[r].renderHeight>l+1&&!s&&e.panel.cellType===wjcGrid.CellType.Cell&&1===a){const t=l/a;!e.row.resizedManually&&(null==e.row.height||e.row.height<t)&&(e.row.height=t);if(s){let r=this._isFullEdit(),i=this.grid;this._backupHeight=e.row.height;e.row.height=t;this._cacheRow=e.row;this._isCheckingHeight=!0;i.refresh();i.startEditing(r);this._isCheckingHeight=!1;e.isImeInput?this._initImeEditInput(e.cell,e.templateContext):this._initEditInput(e.cell,e.templateContext,null);return}}else s&&(e.isImeInput?this._initImeEditInput(e.cell,e.templateContext):this._initEditInput(e.cell,e.templateContext,null))}},2))}}exports.DirectiveCellFactory=DirectiveCellFactory;
14
+ "use strict";var __importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});const wijmo_react_base_1=require("@mescius/wijmo.react.base"),wijmo_1=require("@mescius/wijmo"),React=__importStar(require("react")),wjcGrid=__importStar(require("@mescius/wijmo.grid")),wjcInteropGrid=__importStar(require("@mescius/wijmo.interop.grid"));exports.CellTemplateType=wjcInteropGrid.GridCellTemplateType;exports.FlexGridMeta={inputs:[...wijmo_react_base_1.ControlBaseMeta.inputs,"allowAddNew","allowDelete","allowDragging","allowMerging","allowPinning","allowResizing","allowSorting","alternatingRowStep","anchorCursor","ariaLabel","autoClipboard","autoGenerateColumns","autoRowHeights","autoScroll","autoSearch","autoSizeMode","bigCheckboxes","caseSensitiveSearch","cellFactory","childItemsPath","cloneFrozenCells","columns","columnGroups","columnLayout","commitEmptyEdits","copyHeaders","deferResizing","editColumnIndex","errorTip","expandSelectionOnCopyPaste","frozenCells","frozenColumns","frozenRows","groupHeaderFormat","groupSummaryPosition","headersFocusability","headersVisibility","imeEnabled","isReadOnly","itemFormatter","itemValidator","itemsSource","keyActionEnter","keyActionTab","lazyRender","maxContent","mergeManager","newRowAtTop","pasteEmptyCells","preserveOutlineState","preserveSelectedState","preserveWhiteSpace","quickAutoSize","refreshOnEdit","rowHeaderPath","scrollPosition","scrollSize","selectedItems","selectedRanges","selectedRows","selection","selectionMode","showDropDown","showErrors","showGroups","showMarquee","showPlaceholders","showSelectedHeaders","showSort","skipMerged","sortOrder","sortRowIndex","stickyHeaders","treeIndent","validateEdits","virtualizationThreshold","noDataOverlayContent"],events:[...wijmo_react_base_1.ControlBaseMeta.events,"autoSizedColumn","autoSizedRow","autoSizingColumn","autoSizingRow","beginningEdit","cellEditEnded","cellEditEnding","columnGroupCollapsedChanged","columnGroupCollapsedChanging","copied","copying","deletedRow","deletingRow","draggedColumn","draggedRow","draggingColumn","draggingColumnOver","draggingRow","draggingRowOver","formatItem","groupCollapsedChanged","groupCollapsedChanging","itemsSourceChanged","itemsSourceChanging","loadedRows","loadingRows","pasted","pastedCell","pasting","pastingCell","pinnedColumn","pinningColumn","prepareCellForEdit","resizedColumn","resizedRow","resizingColumn","resizingRow","rowAdded","rowEditEnded","rowEditEnding","rowEditStarted","rowEditStarting","scrollPositionChanged","selectionChanged","selectionChanging","sortedColumn","sortingColumn","starSizedColumns","updatedLayout","updatedView","updatingLayout","updatingView","gettingCellClipString"]};exports.FlexGrid=wijmo_react_base_1.wjForwardRef((e,t)=>wijmo_react_base_1.useWjComponentBase({ref:t,properties:exports.FlexGridMeta.inputs,events:exports.FlexGridMeta.events,props:e,constructor:wjcGrid.FlexGrid,initControl:e=>{e.cellFactory=new DirectiveCellFactory(e)}}).renderResult);exports.RowColMeta={inputs:["align","allowDragging","allowMerging","allowResizing","binding","cssClass","cssClassAll","dataMap","dataMapEditor","dataType","dropDownCssClass","format","inputType","isContentHtml","isReadOnly","isRequired","isSelected","isVisible","mask","maxLength","multiLine","size","sortMemberPath","visible","wordWrap","placeholder"],events:["gridChanged"]};exports.FlexGridColumnMeta={inputs:[...exports.RowColMeta.inputs,"aggregate","allowSorting","cellTemplate","describedById","editor","header","maxWidth","minWidth","name","quickAutoSize","sortOrder","width"],events:[...exports.RowColMeta.events]};exports.FlexGridColumn=wijmo_react_base_1.wjForwardRef((e,t)=>{const r=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.FlexGridColumnMeta.inputs,events:exports.FlexGridColumnMeta.events,props:e,constructor:wjcGrid.Column,customConstructor:(e,t)=>{e.autoGenerateColumns=!1;return new wjcGrid.Column(t)},needParentInstance:!1,parentProp:"columns",isParentPropArray:!0,assignedToParent:!0});return Object.assign({$_wjComponent:!0},r)});exports.FlexGridColumnGroupMeta={inputs:[...exports.FlexGridColumnMeta.inputs,"collapseTo","columns","height","isCollapsed"],events:[...exports.FlexGridColumnMeta.events]};exports.FlexGridColumnGroup=wijmo_react_base_1.wjForwardRef((e,t)=>{const r=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.FlexGridColumnGroupMeta.inputs,events:exports.FlexGridColumnGroupMeta.events,props:e,constructor:wjcGrid.ColumnGroup,customConstructor:(e,t)=>{e.autoGenerateColumns=!1;return new wjcGrid.ColumnGroup(t)},needParentInstance:!1,parentProp:"columnGroups",isParentPropArray:!0,assignedToParent:!0});return Object.assign({$_wjComponent:!0},r)});exports.FlexGridCellTemplateMeta={inputs:["cellType","template","autoSizeRows"],events:[]};exports.FlexGridCellTemplate=wijmo_react_base_1.wjForwardRef((e,t)=>{const r=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.FlexGridCellTemplateMeta.inputs,events:exports.FlexGridCellTemplateMeta.events,props:e,constructor:ReactFlexGridCellTemplate,needParentInstance:!0,parentProp:"",isParentPropArray:!1,assignedToParent:!1});return Object.assign({$_wjComponent:!0},r)});class ReactFlexGridCellTemplate{constructor(e,t){this.autoSizeRows=!0;this.parent=e;this.cellType=wijmo_1.asEnum(t.cellType,wjcInteropGrid.GridCellTemplateType,!1);const r=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);this.template=wijmo_1.asFunction(t.template,!0);e[r]=this}initialize(e){this.removeBinding();this.cellType=wijmo_1.asEnum(null==e.cellType?this.cellType:e.cellType,wjcInteropGrid.GridCellTemplateType,!1);this.template=void 0===e.template?this.template:wijmo_1.asFunction(e.template,!0);const t=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);this.parent[t]=this;this.autoSizeRows=void 0===e.autoSizeRows?this.autoSizeRows:wijmo_1.asBoolean(e.autoSizeRows,!0)||!1;void 0!==e.template&&this.parent&&(this.parent.grid?this.parent.grid.invalidate():this.parent.invalidate&&this.parent.invalidate());this.parent&&this.parent instanceof wjcGrid.Column&&this.parent._setFlag(wjcGrid.RowColFlags.HasTemplate,!0,!0)}removeBinding(){const e=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);delete this.parent[e];this.parent&&this.parent instanceof wjcGrid.Column&&this.parent._setFlag(wjcGrid.RowColFlags.HasTemplate,!1,!0)}dispose(){this.removeBinding();this.parent&&this.parent.grid?this.parent.grid.invalidate():this.parent&&this.parent.invalidate&&this.parent.invalidate()}}exports.ReactFlexGridCellTemplate=ReactFlexGridCellTemplate;class DirectiveCellFactory extends wjcInteropGrid.DirectiveCellFactoryBase{constructor(e){super(e);this._renderedCells=[];e.updatedView.addHandler(()=>{queueMicrotask(()=>this._reRenderCells())},this)}shouldInstantiate(e){const t=e.templateCache;return null==t||t.column!==e.column||t.templateContextProperty!==e.templateContextProperty||e.cell.firstChild!=t.rootElement}renderTemplate(e,t){const r=e.row,i=e.templateContext,o=e.cell;e.cellBindingsData=this.setBindingsData({},r,e.column,r.dataItem,e.cellValue,i.valuePaths);e.cellBindingsData.localVars.valueFormatted=e.cellValueFormatted;this._renderCell(o,e);if(t){this._addRenderedCell(o);const t={column:e.column,rootElement:o.firstElementChild,templateContextProperty:e.templateContextProperty};e.templateCache=t;o[e.templateContextProperty]=t}}flushPendingUpdates(){wijmo_react_base_1.baseFlushSync()}applyImmediately(e){}flushPendingEvents(e){}getEditorFocusFlag(){return!0}setEditorFocusFlag(e){}disposeTemplate(e,t,r){if(t){wijmo_react_base_1.selectiveDomUnmount(e);this._removeRenderedCell(e);super.disposeTemplate(e,t,r)}}clearCell(e){wijmo_react_base_1.selectiveDomUnmount(e)}canRender(e){return!(!e||!e.template)}_renderCell(e,t){var r=t||e.__wjCellLastRenderedProp;if(r){const t=r&&r.templateContext.template,i=r.cellBindingsData.localVars;i.row&&!i.row.grid&&(i.row=r.panel.grid.rows[i.row.index]);if(!i.row)return;wijmo_react_base_1.selectiveDomRender(React.createElement("div",{},t&&t(i)),e);e.__wjCellLastRenderedProp=r}}_addRenderedCell(e){const t=this._renderedCells;t.indexOf(e)<0&&t.push(e)}_removeRenderedCell(e){const t=this._renderedCells,r=t.indexOf(e);r>-1&&t.splice(r,1)}_reRenderCells(){this._renderedCells.forEach(e=>{this._renderCell(e)})}checkHeight(e){"$__cellTemplGroupHeader"!==e.templateContextProperty&&(this._isCheckingHeight||setTimeout(()=>{if(this._isCheckingHeight)return;var t=e.panel.rows,r=e.row.index;if(!t[r])return;const i=e.cell,o=i.style.height;i.style.height="0";let l=i.scrollHeight>7?i.scrollHeight:t[r].renderHeight;i.style.height=o;if(e.cellStamp===i[wjcInteropGrid.DirectiveCellFactoryBase._cellStampProp]){var n=e.rng,a=n&&n.rowSpan||1,s=e.isEdit;null!=t.maxSize&&(l=Math.min(l,t.maxSize));if(r<t.length&&t[r].renderHeight<l-1||t[r].renderHeight>l+1&&!s&&e.panel.cellType===wjcGrid.CellType.Cell&&1===a){const t=l/a;!e.row.resizedManually&&(null==e.row.height||e.row.height<t)&&(e.row.height=t);if(s){const r=this._isFullEdit(),i=this.grid;this._backupHeight=e.row.height;e.row.height=t;this._cacheRow=e.row;this._isCheckingHeight=!0;i.refresh();i.startEditing(r);this._isCheckingHeight=!1;e.isImeInput?this._initImeEditInput(e.cell,e.templateContext):this._initEditInput(e.cell,e.templateContext,null);return}}else s&&(e.isImeInput?this._initImeEditInput(e.cell,e.templateContext):this._initEditInput(e.cell,e.templateContext,null))}},2))}}exports.DirectiveCellFactory=DirectiveCellFactory;
package/es2015-esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20252.44
3
+ * Wijmo Library 5.20261.45-nightly.d20260105.t014601
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -11,4 +11,4 @@
11
11
  *
12
12
  */
13
13
 
14
- import{ControlBaseMeta,baseFlushSync,selectiveDomRender,selectiveDomUnmount,useWjComponentBase,useWjComponentChildBase,wjForwardRef}from"@mescius/wijmo.react.base";import{asBoolean,asEnum,asFunction}from"@mescius/wijmo";import*as React from"react";import*as wjcGrid from"@mescius/wijmo.grid";import*as wjcInteropGrid from"@mescius/wijmo.interop.grid";export var CellTemplateType=wjcInteropGrid.GridCellTemplateType;export const FlexGridMeta={inputs:[...ControlBaseMeta.inputs,"allowAddNew","allowDelete","allowDragging","allowMerging","allowPinning","allowResizing","allowSorting","alternatingRowStep","anchorCursor","ariaLabel","autoClipboard","autoGenerateColumns","autoRowHeights","autoScroll","autoSearch","autoSizeMode","bigCheckboxes","caseSensitiveSearch","cellFactory","childItemsPath","cloneFrozenCells","columns","columnGroups","columnLayout","commitEmptyEdits","copyHeaders","deferResizing","editColumnIndex","errorTip","expandSelectionOnCopyPaste","frozenCells","frozenColumns","frozenRows","groupHeaderFormat","groupSummaryPosition","headersFocusability","headersVisibility","imeEnabled","isReadOnly","itemFormatter","itemValidator","itemsSource","keyActionEnter","keyActionTab","lazyRender","maxContent","mergeManager","newRowAtTop","pasteEmptyCells","preserveOutlineState","preserveSelectedState","preserveWhiteSpace","quickAutoSize","refreshOnEdit","rowHeaderPath","scrollPosition","scrollSize","selectedItems","selectedRanges","selectedRows","selection","selectionMode","showDropDown","showErrors","showGroups","showMarquee","showPlaceholders","showSelectedHeaders","showSort","skipMerged","sortOrder","sortRowIndex","stickyHeaders","treeIndent","validateEdits","virtualizationThreshold","noDataOverlayContent"],events:[...ControlBaseMeta.events,"autoSizedColumn","autoSizedRow","autoSizingColumn","autoSizingRow","beginningEdit","cellEditEnded","cellEditEnding","columnGroupCollapsedChanged","columnGroupCollapsedChanging","copied","copying","deletedRow","deletingRow","draggedColumn","draggedRow","draggingColumn","draggingColumnOver","draggingRow","draggingRowOver","formatItem","groupCollapsedChanged","groupCollapsedChanging","itemsSourceChanged","itemsSourceChanging","loadedRows","loadingRows","pasted","pastedCell","pasting","pastingCell","pinnedColumn","pinningColumn","prepareCellForEdit","resizedColumn","resizedRow","resizingColumn","resizingRow","rowAdded","rowEditEnded","rowEditEnding","rowEditStarted","rowEditStarting","scrollPositionChanged","selectionChanged","selectionChanging","sortedColumn","sortingColumn","starSizedColumns","updatedLayout","updatedView","updatingLayout","updatingView","gettingCellClipString"]};export const FlexGrid=wjForwardRef((function(e,t){return useWjComponentBase({ref:t,properties:FlexGridMeta.inputs,events:FlexGridMeta.events,props:e,constructor:wjcGrid.FlexGrid,initControl:e=>{e.cellFactory=new DirectiveCellFactory(e)}}).renderResult}));export const RowColMeta={inputs:["align","allowDragging","allowMerging","allowResizing","binding","cssClass","cssClassAll","dataMap","dataMapEditor","dataType","dropDownCssClass","format","inputType","isContentHtml","isReadOnly","isRequired","isSelected","isVisible","mask","maxLength","multiLine","size","sortMemberPath","visible","wordWrap","placeholder"],events:["gridChanged"]};export const FlexGridColumnMeta={inputs:[...RowColMeta.inputs,"aggregate","allowSorting","cellTemplate","describedById","editor","header","maxWidth","minWidth","name","quickAutoSize","sortOrder","width"],events:[...RowColMeta.events]};export const FlexGridColumn=wjForwardRef((function(e,t){const r=useWjComponentChildBase({ref:t,properties:FlexGridColumnMeta.inputs,events:FlexGridColumnMeta.events,props:e,constructor:wjcGrid.Column,customConstructor:(e,t)=>{e.autoGenerateColumns=!1;return new wjcGrid.Column(t)},needParentInstance:!1,parentProp:"columns",isParentPropArray:!0,assignedToParent:!0});return Object.assign({$_wjComponent:!0},r)}));export const FlexGridColumnGroupMeta={inputs:[...FlexGridColumnMeta.inputs,"collapseTo","columns","height","isCollapsed"],events:[...FlexGridColumnMeta.events]};export const FlexGridColumnGroup=wjForwardRef((function(e,t){const r=useWjComponentChildBase({ref:t,properties:FlexGridColumnGroupMeta.inputs,events:FlexGridColumnGroupMeta.events,props:e,constructor:wjcGrid.ColumnGroup,customConstructor:(e,t)=>{e.autoGenerateColumns=!1;return new wjcGrid.ColumnGroup(t)},needParentInstance:!1,parentProp:"columnGroups",isParentPropArray:!0,assignedToParent:!0});return Object.assign({$_wjComponent:!0},r)}));export const FlexGridCellTemplateMeta={inputs:["cellType","template","autoSizeRows"],events:[]};export const FlexGridCellTemplate=wjForwardRef((function(e,t){const r=useWjComponentChildBase({ref:t,properties:FlexGridCellTemplateMeta.inputs,events:FlexGridCellTemplateMeta.events,props:e,constructor:ReactFlexGridCellTemplate,needParentInstance:!0,parentProp:"",isParentPropArray:!1,assignedToParent:!1});return Object.assign({$_wjComponent:!0},r)}));export class ReactFlexGridCellTemplate{constructor(e,t){this.autoSizeRows=!0;this.parent=e;this.cellType=asEnum(t.cellType,wjcInteropGrid.GridCellTemplateType,!1);const r=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);this.template=asFunction(t.template,!0);e[r]=this}initialize(e){this.removeBinding();this.cellType=asEnum(null==e.cellType?this.cellType:e.cellType,wjcInteropGrid.GridCellTemplateType,!1);this.template=void 0===e.template?this.template:asFunction(e.template,!0);const t=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);this.parent[t]=this;this.autoSizeRows=void 0===e.autoSizeRows?this.autoSizeRows:asBoolean(e.autoSizeRows,!0)||!1;void 0!==e.template&&this.parent&&(this.parent.grid?this.parent.grid.invalidate():this.parent.invalidate&&this.parent.invalidate());this.parent&&this.parent instanceof wjcGrid.Column&&this.parent._setFlag(wjcGrid.RowColFlags.HasTemplate,!0,!0)}removeBinding(){const e=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);delete this.parent[e];this.parent&&this.parent instanceof wjcGrid.Column&&this.parent._setFlag(wjcGrid.RowColFlags.HasTemplate,!1,!0)}dispose(){this.removeBinding();this.parent&&this.parent.grid?this.parent.grid.invalidate():this.parent&&this.parent.invalidate&&this.parent.invalidate()}}export class DirectiveCellFactory extends wjcInteropGrid.DirectiveCellFactoryBase{constructor(e){super(e);this._renderedCells=[];e.updatedView.addHandler(e=>{queueMicrotask(()=>this._reRenderCells())},this)}shouldInstantiate(e){const t=e.templateCache;return null==t||t.column!==e.column||t.templateContextProperty!==e.templateContextProperty||e.cell.firstChild!=t.rootElement}renderTemplate(e,t){let r=e.row,i=e.templateContext,n=e.cell;e.cellBindingsData=this.setBindingsData({},r,e.column,r.dataItem,e.cellValue,i.valuePaths);e.cellBindingsData.localVars.valueFormatted=e.cellValueFormatted;this._renderCell(n,e);if(t){this._addRenderedCell(n);let t=e.templateCache={column:e.column,rootElement:n.firstElementChild,templateContextProperty:e.templateContextProperty};n[e.templateContextProperty]=t}}flushPendingUpdates(){baseFlushSync()}applyImmediately(e){}flushPendingEvents(e){}getEditorFocusFlag(){return!0}setEditorFocusFlag(e){}disposeTemplate(e,t,r){if(t){selectiveDomUnmount(e);this._removeRenderedCell(e);super.disposeTemplate(e,t,r)}}clearCell(e){selectiveDomUnmount(e)}canRender(e){return!(!e||!e.template)}_renderCell(e,t){var r=t||e.__wjCellLastRenderedProp;if(r){let t=r&&r.templateContext.template,i=r.cellBindingsData.localVars;i.row&&!i.row.grid&&(i.row=r.panel.grid.rows[i.row.index]);if(!i.row)return;selectiveDomRender(React.createElement("div",{},t&&t(i)),e);e.__wjCellLastRenderedProp=r}}_addRenderedCell(e){let t=this._renderedCells;t.indexOf(e)<0&&t.push(e)}_removeRenderedCell(e){let t=this._renderedCells,r=t.indexOf(e);r>-1&&t.splice(r,1)}_reRenderCells(){this._renderedCells.forEach(e=>this._renderCell(e))}checkHeight(e){"$__cellTemplGroupHeader"!==e.templateContextProperty&&(this._isCheckingHeight||setTimeout(()=>{if(this._isCheckingHeight)return;var t=e.panel.rows,r=e.row.index;if(!t[r])return;let i=e.cell;const n=i.style.height;i.style.height="0";let o=i.scrollHeight>7?i.scrollHeight:t[r].renderHeight;i.style.height=n;if(e.cellStamp===i[wjcInteropGrid.DirectiveCellFactoryBase._cellStampProp]){var l=e.rng,s=l&&l.rowSpan||1,a=e.isEdit;null!=t.maxSize&&(o=Math.min(o,t.maxSize));if(r<t.length&&t[r].renderHeight<o-1||t[r].renderHeight>o+1&&!a&&e.panel.cellType===wjcGrid.CellType.Cell&&1===s){const t=o/s;!e.row.resizedManually&&(null==e.row.height||e.row.height<t)&&(e.row.height=t);if(a){let r=this._isFullEdit(),i=this.grid;this._backupHeight=e.row.height;e.row.height=t;this._cacheRow=e.row;this._isCheckingHeight=!0;i.refresh();i.startEditing(r);this._isCheckingHeight=!1;e.isImeInput?this._initImeEditInput(e.cell,e.templateContext):this._initEditInput(e.cell,e.templateContext,null);return}}else a&&(e.isImeInput?this._initImeEditInput(e.cell,e.templateContext):this._initEditInput(e.cell,e.templateContext,null))}},2))}}
14
+ import{ControlBaseMeta,baseFlushSync,selectiveDomRender,selectiveDomUnmount,useWjComponentBase,useWjComponentChildBase,wjForwardRef}from"@mescius/wijmo.react.base";import{asBoolean,asEnum,asFunction}from"@mescius/wijmo";import*as React from"react";import*as wjcGrid from"@mescius/wijmo.grid";import*as wjcInteropGrid from"@mescius/wijmo.interop.grid";export var CellTemplateType=wjcInteropGrid.GridCellTemplateType;export const FlexGridMeta={inputs:[...ControlBaseMeta.inputs,"allowAddNew","allowDelete","allowDragging","allowMerging","allowPinning","allowResizing","allowSorting","alternatingRowStep","anchorCursor","ariaLabel","autoClipboard","autoGenerateColumns","autoRowHeights","autoScroll","autoSearch","autoSizeMode","bigCheckboxes","caseSensitiveSearch","cellFactory","childItemsPath","cloneFrozenCells","columns","columnGroups","columnLayout","commitEmptyEdits","copyHeaders","deferResizing","editColumnIndex","errorTip","expandSelectionOnCopyPaste","frozenCells","frozenColumns","frozenRows","groupHeaderFormat","groupSummaryPosition","headersFocusability","headersVisibility","imeEnabled","isReadOnly","itemFormatter","itemValidator","itemsSource","keyActionEnter","keyActionTab","lazyRender","maxContent","mergeManager","newRowAtTop","pasteEmptyCells","preserveOutlineState","preserveSelectedState","preserveWhiteSpace","quickAutoSize","refreshOnEdit","rowHeaderPath","scrollPosition","scrollSize","selectedItems","selectedRanges","selectedRows","selection","selectionMode","showDropDown","showErrors","showGroups","showMarquee","showPlaceholders","showSelectedHeaders","showSort","skipMerged","sortOrder","sortRowIndex","stickyHeaders","treeIndent","validateEdits","virtualizationThreshold","noDataOverlayContent"],events:[...ControlBaseMeta.events,"autoSizedColumn","autoSizedRow","autoSizingColumn","autoSizingRow","beginningEdit","cellEditEnded","cellEditEnding","columnGroupCollapsedChanged","columnGroupCollapsedChanging","copied","copying","deletedRow","deletingRow","draggedColumn","draggedRow","draggingColumn","draggingColumnOver","draggingRow","draggingRowOver","formatItem","groupCollapsedChanged","groupCollapsedChanging","itemsSourceChanged","itemsSourceChanging","loadedRows","loadingRows","pasted","pastedCell","pasting","pastingCell","pinnedColumn","pinningColumn","prepareCellForEdit","resizedColumn","resizedRow","resizingColumn","resizingRow","rowAdded","rowEditEnded","rowEditEnding","rowEditStarted","rowEditStarting","scrollPositionChanged","selectionChanged","selectionChanging","sortedColumn","sortingColumn","starSizedColumns","updatedLayout","updatedView","updatingLayout","updatingView","gettingCellClipString"]};export const FlexGrid=wjForwardRef((e,t)=>useWjComponentBase({ref:t,properties:FlexGridMeta.inputs,events:FlexGridMeta.events,props:e,constructor:wjcGrid.FlexGrid,initControl:e=>{e.cellFactory=new DirectiveCellFactory(e)}}).renderResult);export const RowColMeta={inputs:["align","allowDragging","allowMerging","allowResizing","binding","cssClass","cssClassAll","dataMap","dataMapEditor","dataType","dropDownCssClass","format","inputType","isContentHtml","isReadOnly","isRequired","isSelected","isVisible","mask","maxLength","multiLine","size","sortMemberPath","visible","wordWrap","placeholder"],events:["gridChanged"]};export const FlexGridColumnMeta={inputs:[...RowColMeta.inputs,"aggregate","allowSorting","cellTemplate","describedById","editor","header","maxWidth","minWidth","name","quickAutoSize","sortOrder","width"],events:[...RowColMeta.events]};export const FlexGridColumn=wjForwardRef((e,t)=>{const r=useWjComponentChildBase({ref:t,properties:FlexGridColumnMeta.inputs,events:FlexGridColumnMeta.events,props:e,constructor:wjcGrid.Column,customConstructor:(e,t)=>{e.autoGenerateColumns=!1;return new wjcGrid.Column(t)},needParentInstance:!1,parentProp:"columns",isParentPropArray:!0,assignedToParent:!0});return Object.assign({$_wjComponent:!0},r)});export const FlexGridColumnGroupMeta={inputs:[...FlexGridColumnMeta.inputs,"collapseTo","columns","height","isCollapsed"],events:[...FlexGridColumnMeta.events]};export const FlexGridColumnGroup=wjForwardRef((e,t)=>{const r=useWjComponentChildBase({ref:t,properties:FlexGridColumnGroupMeta.inputs,events:FlexGridColumnGroupMeta.events,props:e,constructor:wjcGrid.ColumnGroup,customConstructor:(e,t)=>{e.autoGenerateColumns=!1;return new wjcGrid.ColumnGroup(t)},needParentInstance:!1,parentProp:"columnGroups",isParentPropArray:!0,assignedToParent:!0});return Object.assign({$_wjComponent:!0},r)});export const FlexGridCellTemplateMeta={inputs:["cellType","template","autoSizeRows"],events:[]};export const FlexGridCellTemplate=wjForwardRef((e,t)=>{const r=useWjComponentChildBase({ref:t,properties:FlexGridCellTemplateMeta.inputs,events:FlexGridCellTemplateMeta.events,props:e,constructor:ReactFlexGridCellTemplate,needParentInstance:!0,parentProp:"",isParentPropArray:!1,assignedToParent:!1});return Object.assign({$_wjComponent:!0},r)});export class ReactFlexGridCellTemplate{constructor(e,t){this.autoSizeRows=!0;this.parent=e;this.cellType=asEnum(t.cellType,wjcInteropGrid.GridCellTemplateType,!1);const r=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);this.template=asFunction(t.template,!0);e[r]=this}initialize(e){this.removeBinding();this.cellType=asEnum(null==e.cellType?this.cellType:e.cellType,wjcInteropGrid.GridCellTemplateType,!1);this.template=void 0===e.template?this.template:asFunction(e.template,!0);const t=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);this.parent[t]=this;this.autoSizeRows=void 0===e.autoSizeRows?this.autoSizeRows:asBoolean(e.autoSizeRows,!0)||!1;void 0!==e.template&&this.parent&&(this.parent.grid?this.parent.grid.invalidate():this.parent.invalidate&&this.parent.invalidate());this.parent&&this.parent instanceof wjcGrid.Column&&this.parent._setFlag(wjcGrid.RowColFlags.HasTemplate,!0,!0)}removeBinding(){const e=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);delete this.parent[e];this.parent&&this.parent instanceof wjcGrid.Column&&this.parent._setFlag(wjcGrid.RowColFlags.HasTemplate,!1,!0)}dispose(){this.removeBinding();this.parent&&this.parent.grid?this.parent.grid.invalidate():this.parent&&this.parent.invalidate&&this.parent.invalidate()}}export class DirectiveCellFactory extends wjcInteropGrid.DirectiveCellFactoryBase{constructor(e){super(e);this._renderedCells=[];e.updatedView.addHandler(()=>{queueMicrotask(()=>this._reRenderCells())},this)}shouldInstantiate(e){const t=e.templateCache;return null==t||t.column!==e.column||t.templateContextProperty!==e.templateContextProperty||e.cell.firstChild!=t.rootElement}renderTemplate(e,t){const r=e.row,i=e.templateContext,o=e.cell;e.cellBindingsData=this.setBindingsData({},r,e.column,r.dataItem,e.cellValue,i.valuePaths);e.cellBindingsData.localVars.valueFormatted=e.cellValueFormatted;this._renderCell(o,e);if(t){this._addRenderedCell(o);const t={column:e.column,rootElement:o.firstElementChild,templateContextProperty:e.templateContextProperty};e.templateCache=t;o[e.templateContextProperty]=t}}flushPendingUpdates(){baseFlushSync()}applyImmediately(e){}flushPendingEvents(e){}getEditorFocusFlag(){return!0}setEditorFocusFlag(e){}disposeTemplate(e,t,r){if(t){selectiveDomUnmount(e);this._removeRenderedCell(e);super.disposeTemplate(e,t,r)}}clearCell(e){selectiveDomUnmount(e)}canRender(e){return!(!e||!e.template)}_renderCell(e,t){var r=t||e.__wjCellLastRenderedProp;if(r){const t=r&&r.templateContext.template,i=r.cellBindingsData.localVars;i.row&&!i.row.grid&&(i.row=r.panel.grid.rows[i.row.index]);if(!i.row)return;selectiveDomRender(React.createElement("div",{},t&&t(i)),e);e.__wjCellLastRenderedProp=r}}_addRenderedCell(e){const t=this._renderedCells;t.indexOf(e)<0&&t.push(e)}_removeRenderedCell(e){const t=this._renderedCells,r=t.indexOf(e);r>-1&&t.splice(r,1)}_reRenderCells(){this._renderedCells.forEach(e=>{this._renderCell(e)})}checkHeight(e){"$__cellTemplGroupHeader"!==e.templateContextProperty&&(this._isCheckingHeight||setTimeout(()=>{if(this._isCheckingHeight)return;var t=e.panel.rows,r=e.row.index;if(!t[r])return;const i=e.cell,o=i.style.height;i.style.height="0";let n=i.scrollHeight>7?i.scrollHeight:t[r].renderHeight;i.style.height=o;if(e.cellStamp===i[wjcInteropGrid.DirectiveCellFactoryBase._cellStampProp]){var l=e.rng,s=l&&l.rowSpan||1,a=e.isEdit;null!=t.maxSize&&(n=Math.min(n,t.maxSize));if(r<t.length&&t[r].renderHeight<n-1||t[r].renderHeight>n+1&&!a&&e.panel.cellType===wjcGrid.CellType.Cell&&1===s){const t=n/s;!e.row.resizedManually&&(null==e.row.height||e.row.height<t)&&(e.row.height=t);if(a){const r=this._isFullEdit(),i=this.grid;this._backupHeight=e.row.height;e.row.height=t;this._cacheRow=e.row;this._isCheckingHeight=!0;i.refresh();i.startEditing(r);this._isCheckingHeight=!1;e.isImeInput?this._initImeEditInput(e.cell,e.templateContext):this._initEditInput(e.cell,e.templateContext,null);return}}else a&&(e.isImeInput?this._initImeEditInput(e.cell,e.templateContext):this._initEditInput(e.cell,e.templateContext,null))}},2))}}
package/es5-esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20252.44
3
+ * Wijmo Library 5.20261.45-nightly.d20260105.t014601
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -11,4 +11,4 @@
11
11
  *
12
12
  */
13
13
 
14
- var __extends=this&&this.__extends||function(){var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};return function(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)};import{ControlBaseMeta,baseFlushSync,selectiveDomRender,selectiveDomUnmount,useWjComponentBase,useWjComponentChildBase,wjForwardRef}from"@mescius/wijmo.react.base";import{asBoolean,asEnum,asFunction}from"@mescius/wijmo";import*as React from"react";import*as wjcGrid from"@mescius/wijmo.grid";import*as wjcInteropGrid from"@mescius/wijmo.interop.grid";export var CellTemplateType=wjcInteropGrid.GridCellTemplateType;export var FlexGridMeta={inputs:ControlBaseMeta.inputs.concat(["allowAddNew","allowDelete","allowDragging","allowMerging","allowPinning","allowResizing","allowSorting","alternatingRowStep","anchorCursor","ariaLabel","autoClipboard","autoGenerateColumns","autoRowHeights","autoScroll","autoSearch","autoSizeMode","bigCheckboxes","caseSensitiveSearch","cellFactory","childItemsPath","cloneFrozenCells","columns","columnGroups","columnLayout","commitEmptyEdits","copyHeaders","deferResizing","editColumnIndex","errorTip","expandSelectionOnCopyPaste","frozenCells","frozenColumns","frozenRows","groupHeaderFormat","groupSummaryPosition","headersFocusability","headersVisibility","imeEnabled","isReadOnly","itemFormatter","itemValidator","itemsSource","keyActionEnter","keyActionTab","lazyRender","maxContent","mergeManager","newRowAtTop","pasteEmptyCells","preserveOutlineState","preserveSelectedState","preserveWhiteSpace","quickAutoSize","refreshOnEdit","rowHeaderPath","scrollPosition","scrollSize","selectedItems","selectedRanges","selectedRows","selection","selectionMode","showDropDown","showErrors","showGroups","showMarquee","showPlaceholders","showSelectedHeaders","showSort","skipMerged","sortOrder","sortRowIndex","stickyHeaders","treeIndent","validateEdits","virtualizationThreshold","noDataOverlayContent"]),events:ControlBaseMeta.events.concat(["autoSizedColumn","autoSizedRow","autoSizingColumn","autoSizingRow","beginningEdit","cellEditEnded","cellEditEnding","columnGroupCollapsedChanged","columnGroupCollapsedChanging","copied","copying","deletedRow","deletingRow","draggedColumn","draggedRow","draggingColumn","draggingColumnOver","draggingRow","draggingRowOver","formatItem","groupCollapsedChanged","groupCollapsedChanging","itemsSourceChanged","itemsSourceChanging","loadedRows","loadingRows","pasted","pastedCell","pasting","pastingCell","pinnedColumn","pinningColumn","prepareCellForEdit","resizedColumn","resizedRow","resizingColumn","resizingRow","rowAdded","rowEditEnded","rowEditEnding","rowEditStarted","rowEditStarting","scrollPositionChanged","selectionChanged","selectionChanging","sortedColumn","sortingColumn","starSizedColumns","updatedLayout","updatedView","updatingLayout","updatingView","gettingCellClipString"])};export var FlexGrid=wjForwardRef((function(e,t){return useWjComponentBase({ref:t,properties:FlexGridMeta.inputs,events:FlexGridMeta.events,props:e,constructor:wjcGrid.FlexGrid,initControl:function(e){e.cellFactory=new DirectiveCellFactory(e)}}).renderResult}));export var RowColMeta={inputs:["align","allowDragging","allowMerging","allowResizing","binding","cssClass","cssClassAll","dataMap","dataMapEditor","dataType","dropDownCssClass","format","inputType","isContentHtml","isReadOnly","isRequired","isSelected","isVisible","mask","maxLength","multiLine","size","sortMemberPath","visible","wordWrap","placeholder"],events:["gridChanged"]};export var FlexGridColumnMeta={inputs:RowColMeta.inputs.concat(["aggregate","allowSorting","cellTemplate","describedById","editor","header","maxWidth","minWidth","name","quickAutoSize","sortOrder","width"]),events:RowColMeta.events.slice()};export var FlexGridColumn=wjForwardRef((function(e,t){var r=useWjComponentChildBase({ref:t,properties:FlexGridColumnMeta.inputs,events:FlexGridColumnMeta.events,props:e,constructor:wjcGrid.Column,customConstructor:function(e,t){e.autoGenerateColumns=!1;return new wjcGrid.Column(t)},needParentInstance:!1,parentProp:"columns",isParentPropArray:!0,assignedToParent:!0});return __assign({$_wjComponent:!0},r)}));export var FlexGridColumnGroupMeta={inputs:FlexGridColumnMeta.inputs.concat(["collapseTo","columns","height","isCollapsed"]),events:FlexGridColumnMeta.events.slice()};export var FlexGridColumnGroup=wjForwardRef((function(e,t){var r=useWjComponentChildBase({ref:t,properties:FlexGridColumnGroupMeta.inputs,events:FlexGridColumnGroupMeta.events,props:e,constructor:wjcGrid.ColumnGroup,customConstructor:function(e,t){e.autoGenerateColumns=!1;return new wjcGrid.ColumnGroup(t)},needParentInstance:!1,parentProp:"columnGroups",isParentPropArray:!0,assignedToParent:!0});return __assign({$_wjComponent:!0},r)}));export var FlexGridCellTemplateMeta={inputs:["cellType","template","autoSizeRows"],events:[]};export var FlexGridCellTemplate=wjForwardRef((function(e,t){var r=useWjComponentChildBase({ref:t,properties:FlexGridCellTemplateMeta.inputs,events:FlexGridCellTemplateMeta.events,props:e,constructor:ReactFlexGridCellTemplate,needParentInstance:!0,parentProp:"",isParentPropArray:!1,assignedToParent:!1});return __assign({$_wjComponent:!0},r)}));var ReactFlexGridCellTemplate=function(){function ReactFlexGridCellTemplate(e,t){this.autoSizeRows=!0;this.parent=e;this.cellType=asEnum(t.cellType,wjcInteropGrid.GridCellTemplateType,!1);var r=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);this.template=asFunction(t.template,!0);e[r]=this}ReactFlexGridCellTemplate.prototype.initialize=function(e){this.removeBinding();this.cellType=asEnum(null==e.cellType?this.cellType:e.cellType,wjcInteropGrid.GridCellTemplateType,!1);this.template=void 0===e.template?this.template:asFunction(e.template,!0);var t=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);this.parent[t]=this;this.autoSizeRows=void 0===e.autoSizeRows?this.autoSizeRows:asBoolean(e.autoSizeRows,!0)||!1;void 0!==e.template&&this.parent&&(this.parent.grid?this.parent.grid.invalidate():this.parent.invalidate&&this.parent.invalidate());this.parent&&this.parent instanceof wjcGrid.Column&&this.parent._setFlag(wjcGrid.RowColFlags.HasTemplate,!0,!0)};ReactFlexGridCellTemplate.prototype.removeBinding=function(){var e=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);delete this.parent[e];this.parent&&this.parent instanceof wjcGrid.Column&&this.parent._setFlag(wjcGrid.RowColFlags.HasTemplate,!1,!0)};ReactFlexGridCellTemplate.prototype.dispose=function(){this.removeBinding();this.parent&&this.parent.grid?this.parent.grid.invalidate():this.parent&&this.parent.invalidate&&this.parent.invalidate()};return ReactFlexGridCellTemplate}();export{ReactFlexGridCellTemplate};var DirectiveCellFactory=function(e){__extends(DirectiveCellFactory,e);function DirectiveCellFactory(t){var r=e.call(this,t)||this;r._renderedCells=[];t.updatedView.addHandler((function(e){queueMicrotask((function(){return r._reRenderCells()}))}),r);return r}DirectiveCellFactory.prototype.shouldInstantiate=function(e){var t=e.templateCache;return null==t||t.column!==e.column||t.templateContextProperty!==e.templateContextProperty||e.cell.firstChild!=t.rootElement};DirectiveCellFactory.prototype.renderTemplate=function(e,t){var r=e.row,o=e.templateContext,i=e.cell;e.cellBindingsData=this.setBindingsData({},r,e.column,r.dataItem,e.cellValue,o.valuePaths);e.cellBindingsData.localVars.valueFormatted=e.cellValueFormatted;this._renderCell(i,e);if(t){this._addRenderedCell(i);var n=e.templateCache={column:e.column,rootElement:i.firstElementChild,templateContextProperty:e.templateContextProperty};i[e.templateContextProperty]=n}};DirectiveCellFactory.prototype.flushPendingUpdates=function(){baseFlushSync()};DirectiveCellFactory.prototype.applyImmediately=function(e){};DirectiveCellFactory.prototype.flushPendingEvents=function(e){};DirectiveCellFactory.prototype.getEditorFocusFlag=function(){return!0};DirectiveCellFactory.prototype.setEditorFocusFlag=function(e){};DirectiveCellFactory.prototype.disposeTemplate=function(t,r,o){if(r){selectiveDomUnmount(t);this._removeRenderedCell(t);e.prototype.disposeTemplate.call(this,t,r,o)}};DirectiveCellFactory.prototype.clearCell=function(e){selectiveDomUnmount(e)};DirectiveCellFactory.prototype.canRender=function(e){return!(!e||!e.template)};DirectiveCellFactory.prototype._renderCell=function(e,t){var r=t||e.__wjCellLastRenderedProp;if(r){var o=r&&r.templateContext.template,i=r.cellBindingsData.localVars;i.row&&!i.row.grid&&(i.row=r.panel.grid.rows[i.row.index]);if(!i.row)return;selectiveDomRender(React.createElement("div",{},o&&o(i)),e);e.__wjCellLastRenderedProp=r}};DirectiveCellFactory.prototype._addRenderedCell=function(e){var t=this._renderedCells;t.indexOf(e)<0&&t.push(e)};DirectiveCellFactory.prototype._removeRenderedCell=function(e){var t=this._renderedCells,r=t.indexOf(e);r>-1&&t.splice(r,1)};DirectiveCellFactory.prototype._reRenderCells=function(){var e=this;this._renderedCells.forEach((function(t){return e._renderCell(t)}))};DirectiveCellFactory.prototype.checkHeight=function(e){var t=this;"$__cellTemplGroupHeader"!==e.templateContextProperty&&(this._isCheckingHeight||setTimeout((function(){if(!t._isCheckingHeight){var r=e.panel.rows,o=e.row.index;if(r[o]){var i=e.cell,n=i.style.height;i.style.height="0";var l=i.scrollHeight>7?i.scrollHeight:r[o].renderHeight;i.style.height=n;if(e.cellStamp===i[wjcInteropGrid.DirectiveCellFactoryBase._cellStampProp]){var a=e.rng,s=a&&a.rowSpan||1,p=e.isEdit;null!=r.maxSize&&(l=Math.min(l,r.maxSize));if(o<r.length&&r[o].renderHeight<l-1||r[o].renderHeight>l+1&&!p&&e.panel.cellType===wjcGrid.CellType.Cell&&1===s){var c=l/s;!e.row.resizedManually&&(null==e.row.height||e.row.height<c)&&(e.row.height=c);if(p){var d=t._isFullEdit(),u=t.grid;t._backupHeight=e.row.height;e.row.height=c;t._cacheRow=e.row;t._isCheckingHeight=!0;u.refresh();u.startEditing(d);t._isCheckingHeight=!1;e.isImeInput?t._initImeEditInput(e.cell,e.templateContext):t._initEditInput(e.cell,e.templateContext,null);return}}else p&&(e.isImeInput?t._initImeEditInput(e.cell,e.templateContext):t._initEditInput(e.cell,e.templateContext,null))}}}}),2))};return DirectiveCellFactory}(wjcInteropGrid.DirectiveCellFactoryBase);export{DirectiveCellFactory};
14
+ var __extends=this&&this.__extends||function(){var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};return function(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)};import{ControlBaseMeta,baseFlushSync,selectiveDomRender,selectiveDomUnmount,useWjComponentBase,useWjComponentChildBase,wjForwardRef}from"@mescius/wijmo.react.base";import{asBoolean,asEnum,asFunction}from"@mescius/wijmo";import*as React from"react";import*as wjcGrid from"@mescius/wijmo.grid";import*as wjcInteropGrid from"@mescius/wijmo.interop.grid";export var CellTemplateType=wjcInteropGrid.GridCellTemplateType;export var FlexGridMeta={inputs:ControlBaseMeta.inputs.concat(["allowAddNew","allowDelete","allowDragging","allowMerging","allowPinning","allowResizing","allowSorting","alternatingRowStep","anchorCursor","ariaLabel","autoClipboard","autoGenerateColumns","autoRowHeights","autoScroll","autoSearch","autoSizeMode","bigCheckboxes","caseSensitiveSearch","cellFactory","childItemsPath","cloneFrozenCells","columns","columnGroups","columnLayout","commitEmptyEdits","copyHeaders","deferResizing","editColumnIndex","errorTip","expandSelectionOnCopyPaste","frozenCells","frozenColumns","frozenRows","groupHeaderFormat","groupSummaryPosition","headersFocusability","headersVisibility","imeEnabled","isReadOnly","itemFormatter","itemValidator","itemsSource","keyActionEnter","keyActionTab","lazyRender","maxContent","mergeManager","newRowAtTop","pasteEmptyCells","preserveOutlineState","preserveSelectedState","preserveWhiteSpace","quickAutoSize","refreshOnEdit","rowHeaderPath","scrollPosition","scrollSize","selectedItems","selectedRanges","selectedRows","selection","selectionMode","showDropDown","showErrors","showGroups","showMarquee","showPlaceholders","showSelectedHeaders","showSort","skipMerged","sortOrder","sortRowIndex","stickyHeaders","treeIndent","validateEdits","virtualizationThreshold","noDataOverlayContent"]),events:ControlBaseMeta.events.concat(["autoSizedColumn","autoSizedRow","autoSizingColumn","autoSizingRow","beginningEdit","cellEditEnded","cellEditEnding","columnGroupCollapsedChanged","columnGroupCollapsedChanging","copied","copying","deletedRow","deletingRow","draggedColumn","draggedRow","draggingColumn","draggingColumnOver","draggingRow","draggingRowOver","formatItem","groupCollapsedChanged","groupCollapsedChanging","itemsSourceChanged","itemsSourceChanging","loadedRows","loadingRows","pasted","pastedCell","pasting","pastingCell","pinnedColumn","pinningColumn","prepareCellForEdit","resizedColumn","resizedRow","resizingColumn","resizingRow","rowAdded","rowEditEnded","rowEditEnding","rowEditStarted","rowEditStarting","scrollPositionChanged","selectionChanged","selectionChanging","sortedColumn","sortingColumn","starSizedColumns","updatedLayout","updatedView","updatingLayout","updatingView","gettingCellClipString"])};export var FlexGrid=wjForwardRef((function(e,t){return useWjComponentBase({ref:t,properties:FlexGridMeta.inputs,events:FlexGridMeta.events,props:e,constructor:wjcGrid.FlexGrid,initControl:function(e){e.cellFactory=new DirectiveCellFactory(e)}}).renderResult}));export var RowColMeta={inputs:["align","allowDragging","allowMerging","allowResizing","binding","cssClass","cssClassAll","dataMap","dataMapEditor","dataType","dropDownCssClass","format","inputType","isContentHtml","isReadOnly","isRequired","isSelected","isVisible","mask","maxLength","multiLine","size","sortMemberPath","visible","wordWrap","placeholder"],events:["gridChanged"]};export var FlexGridColumnMeta={inputs:RowColMeta.inputs.concat(["aggregate","allowSorting","cellTemplate","describedById","editor","header","maxWidth","minWidth","name","quickAutoSize","sortOrder","width"]),events:RowColMeta.events.slice()};export var FlexGridColumn=wjForwardRef((function(e,t){var r=useWjComponentChildBase({ref:t,properties:FlexGridColumnMeta.inputs,events:FlexGridColumnMeta.events,props:e,constructor:wjcGrid.Column,customConstructor:function(e,t){e.autoGenerateColumns=!1;return new wjcGrid.Column(t)},needParentInstance:!1,parentProp:"columns",isParentPropArray:!0,assignedToParent:!0});return __assign({$_wjComponent:!0},r)}));export var FlexGridColumnGroupMeta={inputs:FlexGridColumnMeta.inputs.concat(["collapseTo","columns","height","isCollapsed"]),events:FlexGridColumnMeta.events.slice()};export var FlexGridColumnGroup=wjForwardRef((function(e,t){var r=useWjComponentChildBase({ref:t,properties:FlexGridColumnGroupMeta.inputs,events:FlexGridColumnGroupMeta.events,props:e,constructor:wjcGrid.ColumnGroup,customConstructor:function(e,t){e.autoGenerateColumns=!1;return new wjcGrid.ColumnGroup(t)},needParentInstance:!1,parentProp:"columnGroups",isParentPropArray:!0,assignedToParent:!0});return __assign({$_wjComponent:!0},r)}));export var FlexGridCellTemplateMeta={inputs:["cellType","template","autoSizeRows"],events:[]};export var FlexGridCellTemplate=wjForwardRef((function(e,t){var r=useWjComponentChildBase({ref:t,properties:FlexGridCellTemplateMeta.inputs,events:FlexGridCellTemplateMeta.events,props:e,constructor:ReactFlexGridCellTemplate,needParentInstance:!0,parentProp:"",isParentPropArray:!1,assignedToParent:!1});return __assign({$_wjComponent:!0},r)}));var ReactFlexGridCellTemplate=function(){function ReactFlexGridCellTemplate(e,t){this.autoSizeRows=!0;this.parent=e;this.cellType=asEnum(t.cellType,wjcInteropGrid.GridCellTemplateType,!1);var r=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);this.template=asFunction(t.template,!0);e[r]=this}ReactFlexGridCellTemplate.prototype.initialize=function(e){this.removeBinding();this.cellType=asEnum(null==e.cellType?this.cellType:e.cellType,wjcInteropGrid.GridCellTemplateType,!1);this.template=void 0===e.template?this.template:asFunction(e.template,!0);var t=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);this.parent[t]=this;this.autoSizeRows=void 0===e.autoSizeRows?this.autoSizeRows:asBoolean(e.autoSizeRows,!0)||!1;void 0!==e.template&&this.parent&&(this.parent.grid?this.parent.grid.invalidate():this.parent.invalidate&&this.parent.invalidate());this.parent&&this.parent instanceof wjcGrid.Column&&this.parent._setFlag(wjcGrid.RowColFlags.HasTemplate,!0,!0)};ReactFlexGridCellTemplate.prototype.removeBinding=function(){var e=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);delete this.parent[e];this.parent&&this.parent instanceof wjcGrid.Column&&this.parent._setFlag(wjcGrid.RowColFlags.HasTemplate,!1,!0)};ReactFlexGridCellTemplate.prototype.dispose=function(){this.removeBinding();this.parent&&this.parent.grid?this.parent.grid.invalidate():this.parent&&this.parent.invalidate&&this.parent.invalidate()};return ReactFlexGridCellTemplate}();export{ReactFlexGridCellTemplate};var DirectiveCellFactory=function(e){__extends(DirectiveCellFactory,e);function DirectiveCellFactory(t){var r=e.call(this,t)||this;r._renderedCells=[];t.updatedView.addHandler((function(){queueMicrotask((function(){return r._reRenderCells()}))}),r);return r}DirectiveCellFactory.prototype.shouldInstantiate=function(e){var t=e.templateCache;return null==t||t.column!==e.column||t.templateContextProperty!==e.templateContextProperty||e.cell.firstChild!=t.rootElement};DirectiveCellFactory.prototype.renderTemplate=function(e,t){var r=e.row,o=e.templateContext,i=e.cell;e.cellBindingsData=this.setBindingsData({},r,e.column,r.dataItem,e.cellValue,o.valuePaths);e.cellBindingsData.localVars.valueFormatted=e.cellValueFormatted;this._renderCell(i,e);if(t){this._addRenderedCell(i);var n={column:e.column,rootElement:i.firstElementChild,templateContextProperty:e.templateContextProperty};e.templateCache=n;i[e.templateContextProperty]=n}};DirectiveCellFactory.prototype.flushPendingUpdates=function(){baseFlushSync()};DirectiveCellFactory.prototype.applyImmediately=function(e){};DirectiveCellFactory.prototype.flushPendingEvents=function(e){};DirectiveCellFactory.prototype.getEditorFocusFlag=function(){return!0};DirectiveCellFactory.prototype.setEditorFocusFlag=function(e){};DirectiveCellFactory.prototype.disposeTemplate=function(t,r,o){if(r){selectiveDomUnmount(t);this._removeRenderedCell(t);e.prototype.disposeTemplate.call(this,t,r,o)}};DirectiveCellFactory.prototype.clearCell=function(e){selectiveDomUnmount(e)};DirectiveCellFactory.prototype.canRender=function(e){return!(!e||!e.template)};DirectiveCellFactory.prototype._renderCell=function(e,t){var r=t||e.__wjCellLastRenderedProp;if(r){var o=r&&r.templateContext.template,i=r.cellBindingsData.localVars;i.row&&!i.row.grid&&(i.row=r.panel.grid.rows[i.row.index]);if(!i.row)return;selectiveDomRender(React.createElement("div",{},o&&o(i)),e);e.__wjCellLastRenderedProp=r}};DirectiveCellFactory.prototype._addRenderedCell=function(e){var t=this._renderedCells;t.indexOf(e)<0&&t.push(e)};DirectiveCellFactory.prototype._removeRenderedCell=function(e){var t=this._renderedCells,r=t.indexOf(e);r>-1&&t.splice(r,1)};DirectiveCellFactory.prototype._reRenderCells=function(){var e=this;this._renderedCells.forEach((function(t){e._renderCell(t)}))};DirectiveCellFactory.prototype.checkHeight=function(e){var t=this;"$__cellTemplGroupHeader"!==e.templateContextProperty&&(this._isCheckingHeight||setTimeout((function(){if(!t._isCheckingHeight){var r=e.panel.rows,o=e.row.index;if(r[o]){var i=e.cell,n=i.style.height;i.style.height="0";var l=i.scrollHeight>7?i.scrollHeight:r[o].renderHeight;i.style.height=n;if(e.cellStamp===i[wjcInteropGrid.DirectiveCellFactoryBase._cellStampProp]){var a=e.rng,s=a&&a.rowSpan||1,p=e.isEdit;null!=r.maxSize&&(l=Math.min(l,r.maxSize));if(o<r.length&&r[o].renderHeight<l-1||r[o].renderHeight>l+1&&!p&&e.panel.cellType===wjcGrid.CellType.Cell&&1===s){var c=l/s;!e.row.resizedManually&&(null==e.row.height||e.row.height<c)&&(e.row.height=c);if(p){var d=t._isFullEdit(),u=t.grid;t._backupHeight=e.row.height;e.row.height=c;t._cacheRow=e.row;t._isCheckingHeight=!0;u.refresh();u.startEditing(d);t._isCheckingHeight=!1;e.isImeInput?t._initImeEditInput(e.cell,e.templateContext):t._initEditInput(e.cell,e.templateContext,null);return}}else p&&(e.isImeInput?t._initImeEditInput(e.cell,e.templateContext):t._initEditInput(e.cell,e.templateContext,null))}}}}),2))};return DirectiveCellFactory}(wjcInteropGrid.DirectiveCellFactoryBase);export{DirectiveCellFactory};
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20252.44
3
+ * Wijmo Library 5.20261.45-nightly.d20260105.t014601
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -315,7 +315,7 @@ export declare type FlexGridCellTemplateInputs = BaseInputs & {
315
315
  template?: CellTemplateRender;
316
316
  autoSizeRows?: boolean;
317
317
  };
318
- export declare type FlexGridCellTemplateEvents<T> = {};
318
+ export declare type FlexGridCellTemplateEvents<_T> = {};
319
319
  export declare const FlexGridCellTemplateMeta: {
320
320
  inputs: string[];
321
321
  events: any[];
@@ -665,10 +665,10 @@ export declare class DirectiveCellFactory extends wjcInteropGrid.DirectiveCellFa
665
665
  protected shouldInstantiate(cellInfo: wjcInteropGrid.ICellRenderingInfo): boolean;
666
666
  protected renderTemplate(cellInfo: ICellRenderingInfoReact, initNew: boolean): void;
667
667
  protected flushPendingUpdates(): void;
668
- protected applyImmediately(cellInfo: wjcInteropGrid.ICellRenderingInfo): void;
669
- protected flushPendingEvents(control: Control): void;
668
+ protected applyImmediately(_cellInfo: wjcInteropGrid.ICellRenderingInfo): void;
669
+ protected flushPendingEvents(_control: Control): void;
670
670
  protected getEditorFocusFlag(): boolean;
671
- protected setEditorFocusFlag(value: boolean): void;
671
+ protected setEditorFocusFlag(_value: boolean): void;
672
672
  protected disposeTemplate(cell: HTMLElement, templateCache: wjcInteropGrid.ICellTemplateCache, templateContext: ICellTemplateInfoReact): void;
673
673
  protected clearCell(cell: HTMLElement): void;
674
674
  protected canRender(tplCtx: any): boolean;
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20252.44
3
+ * Wijmo Library 5.20261.45-nightly.d20260105.t014601
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -11,4 +11,4 @@
11
11
  *
12
12
  */
13
13
 
14
- "use strict";var __extends=this&&this.__extends||function(){var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};return function(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}).apply(this,arguments)},__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});var wijmo_react_base_1=require("@mescius/wijmo.react.base"),wijmo_1=require("@mescius/wijmo"),React=__importStar(require("react")),wjcGrid=__importStar(require("@mescius/wijmo.grid")),wjcInteropGrid=__importStar(require("@mescius/wijmo.interop.grid"));exports.CellTemplateType=wjcInteropGrid.GridCellTemplateType;exports.FlexGridMeta={inputs:wijmo_react_base_1.ControlBaseMeta.inputs.concat(["allowAddNew","allowDelete","allowDragging","allowMerging","allowPinning","allowResizing","allowSorting","alternatingRowStep","anchorCursor","ariaLabel","autoClipboard","autoGenerateColumns","autoRowHeights","autoScroll","autoSearch","autoSizeMode","bigCheckboxes","caseSensitiveSearch","cellFactory","childItemsPath","cloneFrozenCells","columns","columnGroups","columnLayout","commitEmptyEdits","copyHeaders","deferResizing","editColumnIndex","errorTip","expandSelectionOnCopyPaste","frozenCells","frozenColumns","frozenRows","groupHeaderFormat","groupSummaryPosition","headersFocusability","headersVisibility","imeEnabled","isReadOnly","itemFormatter","itemValidator","itemsSource","keyActionEnter","keyActionTab","lazyRender","maxContent","mergeManager","newRowAtTop","pasteEmptyCells","preserveOutlineState","preserveSelectedState","preserveWhiteSpace","quickAutoSize","refreshOnEdit","rowHeaderPath","scrollPosition","scrollSize","selectedItems","selectedRanges","selectedRows","selection","selectionMode","showDropDown","showErrors","showGroups","showMarquee","showPlaceholders","showSelectedHeaders","showSort","skipMerged","sortOrder","sortRowIndex","stickyHeaders","treeIndent","validateEdits","virtualizationThreshold","noDataOverlayContent"]),events:wijmo_react_base_1.ControlBaseMeta.events.concat(["autoSizedColumn","autoSizedRow","autoSizingColumn","autoSizingRow","beginningEdit","cellEditEnded","cellEditEnding","columnGroupCollapsedChanged","columnGroupCollapsedChanging","copied","copying","deletedRow","deletingRow","draggedColumn","draggedRow","draggingColumn","draggingColumnOver","draggingRow","draggingRowOver","formatItem","groupCollapsedChanged","groupCollapsedChanging","itemsSourceChanged","itemsSourceChanging","loadedRows","loadingRows","pasted","pastedCell","pasting","pastingCell","pinnedColumn","pinningColumn","prepareCellForEdit","resizedColumn","resizedRow","resizingColumn","resizingRow","rowAdded","rowEditEnded","rowEditEnding","rowEditStarted","rowEditStarting","scrollPositionChanged","selectionChanged","selectionChanging","sortedColumn","sortingColumn","starSizedColumns","updatedLayout","updatedView","updatingLayout","updatingView","gettingCellClipString"])};exports.FlexGrid=wijmo_react_base_1.wjForwardRef((function(e,t){return wijmo_react_base_1.useWjComponentBase({ref:t,properties:exports.FlexGridMeta.inputs,events:exports.FlexGridMeta.events,props:e,constructor:wjcGrid.FlexGrid,initControl:function(e){e.cellFactory=new DirectiveCellFactory(e)}}).renderResult}));exports.RowColMeta={inputs:["align","allowDragging","allowMerging","allowResizing","binding","cssClass","cssClassAll","dataMap","dataMapEditor","dataType","dropDownCssClass","format","inputType","isContentHtml","isReadOnly","isRequired","isSelected","isVisible","mask","maxLength","multiLine","size","sortMemberPath","visible","wordWrap","placeholder"],events:["gridChanged"]};exports.FlexGridColumnMeta={inputs:exports.RowColMeta.inputs.concat(["aggregate","allowSorting","cellTemplate","describedById","editor","header","maxWidth","minWidth","name","quickAutoSize","sortOrder","width"]),events:exports.RowColMeta.events.slice()};exports.FlexGridColumn=wijmo_react_base_1.wjForwardRef((function(e,t){var r=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.FlexGridColumnMeta.inputs,events:exports.FlexGridColumnMeta.events,props:e,constructor:wjcGrid.Column,customConstructor:function(e,t){e.autoGenerateColumns=!1;return new wjcGrid.Column(t)},needParentInstance:!1,parentProp:"columns",isParentPropArray:!0,assignedToParent:!0});return __assign({$_wjComponent:!0},r)}));exports.FlexGridColumnGroupMeta={inputs:exports.FlexGridColumnMeta.inputs.concat(["collapseTo","columns","height","isCollapsed"]),events:exports.FlexGridColumnMeta.events.slice()};exports.FlexGridColumnGroup=wijmo_react_base_1.wjForwardRef((function(e,t){var r=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.FlexGridColumnGroupMeta.inputs,events:exports.FlexGridColumnGroupMeta.events,props:e,constructor:wjcGrid.ColumnGroup,customConstructor:function(e,t){e.autoGenerateColumns=!1;return new wjcGrid.ColumnGroup(t)},needParentInstance:!1,parentProp:"columnGroups",isParentPropArray:!0,assignedToParent:!0});return __assign({$_wjComponent:!0},r)}));exports.FlexGridCellTemplateMeta={inputs:["cellType","template","autoSizeRows"],events:[]};exports.FlexGridCellTemplate=wijmo_react_base_1.wjForwardRef((function(e,t){var r=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.FlexGridCellTemplateMeta.inputs,events:exports.FlexGridCellTemplateMeta.events,props:e,constructor:ReactFlexGridCellTemplate,needParentInstance:!0,parentProp:"",isParentPropArray:!1,assignedToParent:!1});return __assign({$_wjComponent:!0},r)}));var ReactFlexGridCellTemplate=function(){function ReactFlexGridCellTemplate(e,t){this.autoSizeRows=!0;this.parent=e;this.cellType=wijmo_1.asEnum(t.cellType,wjcInteropGrid.GridCellTemplateType,!1);var r=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);this.template=wijmo_1.asFunction(t.template,!0);e[r]=this}ReactFlexGridCellTemplate.prototype.initialize=function(e){this.removeBinding();this.cellType=wijmo_1.asEnum(null==e.cellType?this.cellType:e.cellType,wjcInteropGrid.GridCellTemplateType,!1);this.template=void 0===e.template?this.template:wijmo_1.asFunction(e.template,!0);var t=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);this.parent[t]=this;this.autoSizeRows=void 0===e.autoSizeRows?this.autoSizeRows:wijmo_1.asBoolean(e.autoSizeRows,!0)||!1;void 0!==e.template&&this.parent&&(this.parent.grid?this.parent.grid.invalidate():this.parent.invalidate&&this.parent.invalidate());this.parent&&this.parent instanceof wjcGrid.Column&&this.parent._setFlag(wjcGrid.RowColFlags.HasTemplate,!0,!0)};ReactFlexGridCellTemplate.prototype.removeBinding=function(){var e=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);delete this.parent[e];this.parent&&this.parent instanceof wjcGrid.Column&&this.parent._setFlag(wjcGrid.RowColFlags.HasTemplate,!1,!0)};ReactFlexGridCellTemplate.prototype.dispose=function(){this.removeBinding();this.parent&&this.parent.grid?this.parent.grid.invalidate():this.parent&&this.parent.invalidate&&this.parent.invalidate()};return ReactFlexGridCellTemplate}();exports.ReactFlexGridCellTemplate=ReactFlexGridCellTemplate;var DirectiveCellFactory=function(e){__extends(DirectiveCellFactory,e);function DirectiveCellFactory(t){var r=e.call(this,t)||this;r._renderedCells=[];t.updatedView.addHandler((function(e){queueMicrotask((function(){return r._reRenderCells()}))}),r);return r}DirectiveCellFactory.prototype.shouldInstantiate=function(e){var t=e.templateCache;return null==t||t.column!==e.column||t.templateContextProperty!==e.templateContextProperty||e.cell.firstChild!=t.rootElement};DirectiveCellFactory.prototype.renderTemplate=function(e,t){var r=e.row,i=e.templateContext,o=e.cell;e.cellBindingsData=this.setBindingsData({},r,e.column,r.dataItem,e.cellValue,i.valuePaths);e.cellBindingsData.localVars.valueFormatted=e.cellValueFormatted;this._renderCell(o,e);if(t){this._addRenderedCell(o);var n=e.templateCache={column:e.column,rootElement:o.firstElementChild,templateContextProperty:e.templateContextProperty};o[e.templateContextProperty]=n}};DirectiveCellFactory.prototype.flushPendingUpdates=function(){wijmo_react_base_1.baseFlushSync()};DirectiveCellFactory.prototype.applyImmediately=function(e){};DirectiveCellFactory.prototype.flushPendingEvents=function(e){};DirectiveCellFactory.prototype.getEditorFocusFlag=function(){return!0};DirectiveCellFactory.prototype.setEditorFocusFlag=function(e){};DirectiveCellFactory.prototype.disposeTemplate=function(t,r,i){if(r){wijmo_react_base_1.selectiveDomUnmount(t);this._removeRenderedCell(t);e.prototype.disposeTemplate.call(this,t,r,i)}};DirectiveCellFactory.prototype.clearCell=function(e){wijmo_react_base_1.selectiveDomUnmount(e)};DirectiveCellFactory.prototype.canRender=function(e){return!(!e||!e.template)};DirectiveCellFactory.prototype._renderCell=function(e,t){var r=t||e.__wjCellLastRenderedProp;if(r){var i=r&&r.templateContext.template,o=r.cellBindingsData.localVars;o.row&&!o.row.grid&&(o.row=r.panel.grid.rows[o.row.index]);if(!o.row)return;wijmo_react_base_1.selectiveDomRender(React.createElement("div",{},i&&i(o)),e);e.__wjCellLastRenderedProp=r}};DirectiveCellFactory.prototype._addRenderedCell=function(e){var t=this._renderedCells;t.indexOf(e)<0&&t.push(e)};DirectiveCellFactory.prototype._removeRenderedCell=function(e){var t=this._renderedCells,r=t.indexOf(e);r>-1&&t.splice(r,1)};DirectiveCellFactory.prototype._reRenderCells=function(){var e=this;this._renderedCells.forEach((function(t){return e._renderCell(t)}))};DirectiveCellFactory.prototype.checkHeight=function(e){var t=this;"$__cellTemplGroupHeader"!==e.templateContextProperty&&(this._isCheckingHeight||setTimeout((function(){if(!t._isCheckingHeight){var r=e.panel.rows,i=e.row.index;if(r[i]){var o=e.cell,n=o.style.height;o.style.height="0";var l=o.scrollHeight>7?o.scrollHeight:r[i].renderHeight;o.style.height=n;if(e.cellStamp===o[wjcInteropGrid.DirectiveCellFactoryBase._cellStampProp]){var a=e.rng,s=a&&a.rowSpan||1,p=e.isEdit;null!=r.maxSize&&(l=Math.min(l,r.maxSize));if(i<r.length&&r[i].renderHeight<l-1||r[i].renderHeight>l+1&&!p&&e.panel.cellType===wjcGrid.CellType.Cell&&1===s){var c=l/s;!e.row.resizedManually&&(null==e.row.height||e.row.height<c)&&(e.row.height=c);if(p){var d=t._isFullEdit(),u=t.grid;t._backupHeight=e.row.height;e.row.height=c;t._cacheRow=e.row;t._isCheckingHeight=!0;u.refresh();u.startEditing(d);t._isCheckingHeight=!1;e.isImeInput?t._initImeEditInput(e.cell,e.templateContext):t._initEditInput(e.cell,e.templateContext,null);return}}else p&&(e.isImeInput?t._initImeEditInput(e.cell,e.templateContext):t._initEditInput(e.cell,e.templateContext,null))}}}}),2))};return DirectiveCellFactory}(wjcInteropGrid.DirectiveCellFactoryBase);exports.DirectiveCellFactory=DirectiveCellFactory;
14
+ "use strict";var __extends=this&&this.__extends||function(){var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};return function(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}).apply(this,arguments)},__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});var wijmo_react_base_1=require("@mescius/wijmo.react.base"),wijmo_1=require("@mescius/wijmo"),React=__importStar(require("react")),wjcGrid=__importStar(require("@mescius/wijmo.grid")),wjcInteropGrid=__importStar(require("@mescius/wijmo.interop.grid"));exports.CellTemplateType=wjcInteropGrid.GridCellTemplateType;exports.FlexGridMeta={inputs:wijmo_react_base_1.ControlBaseMeta.inputs.concat(["allowAddNew","allowDelete","allowDragging","allowMerging","allowPinning","allowResizing","allowSorting","alternatingRowStep","anchorCursor","ariaLabel","autoClipboard","autoGenerateColumns","autoRowHeights","autoScroll","autoSearch","autoSizeMode","bigCheckboxes","caseSensitiveSearch","cellFactory","childItemsPath","cloneFrozenCells","columns","columnGroups","columnLayout","commitEmptyEdits","copyHeaders","deferResizing","editColumnIndex","errorTip","expandSelectionOnCopyPaste","frozenCells","frozenColumns","frozenRows","groupHeaderFormat","groupSummaryPosition","headersFocusability","headersVisibility","imeEnabled","isReadOnly","itemFormatter","itemValidator","itemsSource","keyActionEnter","keyActionTab","lazyRender","maxContent","mergeManager","newRowAtTop","pasteEmptyCells","preserveOutlineState","preserveSelectedState","preserveWhiteSpace","quickAutoSize","refreshOnEdit","rowHeaderPath","scrollPosition","scrollSize","selectedItems","selectedRanges","selectedRows","selection","selectionMode","showDropDown","showErrors","showGroups","showMarquee","showPlaceholders","showSelectedHeaders","showSort","skipMerged","sortOrder","sortRowIndex","stickyHeaders","treeIndent","validateEdits","virtualizationThreshold","noDataOverlayContent"]),events:wijmo_react_base_1.ControlBaseMeta.events.concat(["autoSizedColumn","autoSizedRow","autoSizingColumn","autoSizingRow","beginningEdit","cellEditEnded","cellEditEnding","columnGroupCollapsedChanged","columnGroupCollapsedChanging","copied","copying","deletedRow","deletingRow","draggedColumn","draggedRow","draggingColumn","draggingColumnOver","draggingRow","draggingRowOver","formatItem","groupCollapsedChanged","groupCollapsedChanging","itemsSourceChanged","itemsSourceChanging","loadedRows","loadingRows","pasted","pastedCell","pasting","pastingCell","pinnedColumn","pinningColumn","prepareCellForEdit","resizedColumn","resizedRow","resizingColumn","resizingRow","rowAdded","rowEditEnded","rowEditEnding","rowEditStarted","rowEditStarting","scrollPositionChanged","selectionChanged","selectionChanging","sortedColumn","sortingColumn","starSizedColumns","updatedLayout","updatedView","updatingLayout","updatingView","gettingCellClipString"])};exports.FlexGrid=wijmo_react_base_1.wjForwardRef((function(e,t){return wijmo_react_base_1.useWjComponentBase({ref:t,properties:exports.FlexGridMeta.inputs,events:exports.FlexGridMeta.events,props:e,constructor:wjcGrid.FlexGrid,initControl:function(e){e.cellFactory=new DirectiveCellFactory(e)}}).renderResult}));exports.RowColMeta={inputs:["align","allowDragging","allowMerging","allowResizing","binding","cssClass","cssClassAll","dataMap","dataMapEditor","dataType","dropDownCssClass","format","inputType","isContentHtml","isReadOnly","isRequired","isSelected","isVisible","mask","maxLength","multiLine","size","sortMemberPath","visible","wordWrap","placeholder"],events:["gridChanged"]};exports.FlexGridColumnMeta={inputs:exports.RowColMeta.inputs.concat(["aggregate","allowSorting","cellTemplate","describedById","editor","header","maxWidth","minWidth","name","quickAutoSize","sortOrder","width"]),events:exports.RowColMeta.events.slice()};exports.FlexGridColumn=wijmo_react_base_1.wjForwardRef((function(e,t){var r=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.FlexGridColumnMeta.inputs,events:exports.FlexGridColumnMeta.events,props:e,constructor:wjcGrid.Column,customConstructor:function(e,t){e.autoGenerateColumns=!1;return new wjcGrid.Column(t)},needParentInstance:!1,parentProp:"columns",isParentPropArray:!0,assignedToParent:!0});return __assign({$_wjComponent:!0},r)}));exports.FlexGridColumnGroupMeta={inputs:exports.FlexGridColumnMeta.inputs.concat(["collapseTo","columns","height","isCollapsed"]),events:exports.FlexGridColumnMeta.events.slice()};exports.FlexGridColumnGroup=wijmo_react_base_1.wjForwardRef((function(e,t){var r=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.FlexGridColumnGroupMeta.inputs,events:exports.FlexGridColumnGroupMeta.events,props:e,constructor:wjcGrid.ColumnGroup,customConstructor:function(e,t){e.autoGenerateColumns=!1;return new wjcGrid.ColumnGroup(t)},needParentInstance:!1,parentProp:"columnGroups",isParentPropArray:!0,assignedToParent:!0});return __assign({$_wjComponent:!0},r)}));exports.FlexGridCellTemplateMeta={inputs:["cellType","template","autoSizeRows"],events:[]};exports.FlexGridCellTemplate=wijmo_react_base_1.wjForwardRef((function(e,t){var r=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.FlexGridCellTemplateMeta.inputs,events:exports.FlexGridCellTemplateMeta.events,props:e,constructor:ReactFlexGridCellTemplate,needParentInstance:!0,parentProp:"",isParentPropArray:!1,assignedToParent:!1});return __assign({$_wjComponent:!0},r)}));var ReactFlexGridCellTemplate=function(){function ReactFlexGridCellTemplate(e,t){this.autoSizeRows=!0;this.parent=e;this.cellType=wijmo_1.asEnum(t.cellType,wjcInteropGrid.GridCellTemplateType,!1);var r=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);this.template=wijmo_1.asFunction(t.template,!0);e[r]=this}ReactFlexGridCellTemplate.prototype.initialize=function(e){this.removeBinding();this.cellType=wijmo_1.asEnum(null==e.cellType?this.cellType:e.cellType,wjcInteropGrid.GridCellTemplateType,!1);this.template=void 0===e.template?this.template:wijmo_1.asFunction(e.template,!0);var t=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);this.parent[t]=this;this.autoSizeRows=void 0===e.autoSizeRows?this.autoSizeRows:wijmo_1.asBoolean(e.autoSizeRows,!0)||!1;void 0!==e.template&&this.parent&&(this.parent.grid?this.parent.grid.invalidate():this.parent.invalidate&&this.parent.invalidate());this.parent&&this.parent instanceof wjcGrid.Column&&this.parent._setFlag(wjcGrid.RowColFlags.HasTemplate,!0,!0)};ReactFlexGridCellTemplate.prototype.removeBinding=function(){var e=wjcInteropGrid.DirectiveCellFactoryBase.getTemplContextProp(this.cellType);delete this.parent[e];this.parent&&this.parent instanceof wjcGrid.Column&&this.parent._setFlag(wjcGrid.RowColFlags.HasTemplate,!1,!0)};ReactFlexGridCellTemplate.prototype.dispose=function(){this.removeBinding();this.parent&&this.parent.grid?this.parent.grid.invalidate():this.parent&&this.parent.invalidate&&this.parent.invalidate()};return ReactFlexGridCellTemplate}();exports.ReactFlexGridCellTemplate=ReactFlexGridCellTemplate;var DirectiveCellFactory=function(e){__extends(DirectiveCellFactory,e);function DirectiveCellFactory(t){var r=e.call(this,t)||this;r._renderedCells=[];t.updatedView.addHandler((function(){queueMicrotask((function(){return r._reRenderCells()}))}),r);return r}DirectiveCellFactory.prototype.shouldInstantiate=function(e){var t=e.templateCache;return null==t||t.column!==e.column||t.templateContextProperty!==e.templateContextProperty||e.cell.firstChild!=t.rootElement};DirectiveCellFactory.prototype.renderTemplate=function(e,t){var r=e.row,i=e.templateContext,o=e.cell;e.cellBindingsData=this.setBindingsData({},r,e.column,r.dataItem,e.cellValue,i.valuePaths);e.cellBindingsData.localVars.valueFormatted=e.cellValueFormatted;this._renderCell(o,e);if(t){this._addRenderedCell(o);var n={column:e.column,rootElement:o.firstElementChild,templateContextProperty:e.templateContextProperty};e.templateCache=n;o[e.templateContextProperty]=n}};DirectiveCellFactory.prototype.flushPendingUpdates=function(){wijmo_react_base_1.baseFlushSync()};DirectiveCellFactory.prototype.applyImmediately=function(e){};DirectiveCellFactory.prototype.flushPendingEvents=function(e){};DirectiveCellFactory.prototype.getEditorFocusFlag=function(){return!0};DirectiveCellFactory.prototype.setEditorFocusFlag=function(e){};DirectiveCellFactory.prototype.disposeTemplate=function(t,r,i){if(r){wijmo_react_base_1.selectiveDomUnmount(t);this._removeRenderedCell(t);e.prototype.disposeTemplate.call(this,t,r,i)}};DirectiveCellFactory.prototype.clearCell=function(e){wijmo_react_base_1.selectiveDomUnmount(e)};DirectiveCellFactory.prototype.canRender=function(e){return!(!e||!e.template)};DirectiveCellFactory.prototype._renderCell=function(e,t){var r=t||e.__wjCellLastRenderedProp;if(r){var i=r&&r.templateContext.template,o=r.cellBindingsData.localVars;o.row&&!o.row.grid&&(o.row=r.panel.grid.rows[o.row.index]);if(!o.row)return;wijmo_react_base_1.selectiveDomRender(React.createElement("div",{},i&&i(o)),e);e.__wjCellLastRenderedProp=r}};DirectiveCellFactory.prototype._addRenderedCell=function(e){var t=this._renderedCells;t.indexOf(e)<0&&t.push(e)};DirectiveCellFactory.prototype._removeRenderedCell=function(e){var t=this._renderedCells,r=t.indexOf(e);r>-1&&t.splice(r,1)};DirectiveCellFactory.prototype._reRenderCells=function(){var e=this;this._renderedCells.forEach((function(t){e._renderCell(t)}))};DirectiveCellFactory.prototype.checkHeight=function(e){var t=this;"$__cellTemplGroupHeader"!==e.templateContextProperty&&(this._isCheckingHeight||setTimeout((function(){if(!t._isCheckingHeight){var r=e.panel.rows,i=e.row.index;if(r[i]){var o=e.cell,n=o.style.height;o.style.height="0";var l=o.scrollHeight>7?o.scrollHeight:r[i].renderHeight;o.style.height=n;if(e.cellStamp===o[wjcInteropGrid.DirectiveCellFactoryBase._cellStampProp]){var a=e.rng,s=a&&a.rowSpan||1,p=e.isEdit;null!=r.maxSize&&(l=Math.min(l,r.maxSize));if(i<r.length&&r[i].renderHeight<l-1||r[i].renderHeight>l+1&&!p&&e.panel.cellType===wjcGrid.CellType.Cell&&1===s){var c=l/s;!e.row.resizedManually&&(null==e.row.height||e.row.height<c)&&(e.row.height=c);if(p){var d=t._isFullEdit(),u=t.grid;t._backupHeight=e.row.height;e.row.height=c;t._cacheRow=e.row;t._isCheckingHeight=!0;u.refresh();u.startEditing(d);t._isCheckingHeight=!1;e.isImeInput?t._initImeEditInput(e.cell,e.templateContext):t._initEditInput(e.cell,e.templateContext,null);return}}else p&&(e.isImeInput?t._initImeEditInput(e.cell,e.templateContext):t._initEditInput(e.cell,e.templateContext,null))}}}}),2))};return DirectiveCellFactory}(wjcInteropGrid.DirectiveCellFactoryBase);exports.DirectiveCellFactory=DirectiveCellFactory;
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@mescius/wijmo.react.grid",
3
- "version": "5.20252.44",
3
+ "version": "5.20261.45-nightly.d20260105.t014601",
4
4
  "description": "UI library for pure JS, Angular, React, Vue and more...",
5
5
  "author": "MESCIUS inc",
6
6
  "license": "Commercial",
7
7
  "main": "./index.js",
8
8
  "types": "./index.d.ts",
9
9
  "dependencies": {
10
- "@mescius/wijmo": "5.20252.44",
11
- "@mescius/wijmo.grid": "5.20252.44",
12
- "@mescius/wijmo.interop.grid": "5.20252.44",
13
- "@mescius/wijmo.react.base": "5.20252.44"
10
+ "@mescius/wijmo": "5.20261.45-nightly.d20260105.t014601",
11
+ "@mescius/wijmo.grid": "5.20261.45-nightly.d20260105.t014601",
12
+ "@mescius/wijmo.interop.grid": "5.20261.45-nightly.d20260105.t014601",
13
+ "@mescius/wijmo.react.base": "5.20261.45-nightly.d20260105.t014601"
14
14
  },
15
15
  "homepage": "https://developer.mescius.com/wijmo",
16
16
  "bugs": {