@mescius/wijmo.react.grid.detail 5.20261.45-nightly.d20251218.t163151 → 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.
- package/es2015-commonjs.js +2 -2
- package/es2015-esm.js +2 -2
- package/es5-esm.js +2 -2
- package/index.d.ts +2 -3
- package/index.js +2 -2
- package/package.json +5 -5
package/es2015-commonjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.20261.45-nightly.
|
|
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 i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});const wijmo_react_base_1=require("@mescius/wijmo.react.base"),wjcCore=__importStar(require("@mescius/wijmo")),wjcGridDetail=__importStar(require("@mescius/wijmo.grid.detail"));exports.FlexGridDetailMeta={inputs:["detailVisibilityMode","isAnimated","keyActionEnter","maxHeight","rowHasDetail","template"],events:[]};const lastDetailContextKey="$_templateFnLastCtx";exports.FlexGridDetail=wijmo_react_base_1.wjForwardRef((
|
|
14
|
+
"use strict";var __importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});const wijmo_react_base_1=require("@mescius/wijmo.react.base"),wjcCore=__importStar(require("@mescius/wijmo")),wjcGridDetail=__importStar(require("@mescius/wijmo.grid.detail"));exports.FlexGridDetailMeta={inputs:["detailVisibilityMode","isAnimated","keyActionEnter","maxHeight","rowHasDetail","template"],events:[]};const lastDetailContextKey="$_templateFnLastCtx";exports.FlexGridDetail=wijmo_react_base_1.wjForwardRef((e,t)=>{const i=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.FlexGridDetailMeta.inputs,events:exports.FlexGridDetailMeta.events,props:e,constructor:DirectiveFlexGridDetail,needParentInstance:!0,parentProp:"",isParentPropArray:!1,assignedToParent:!1});return Object.assign({$_wjComponent:!0},i)});class DirectiveFlexGridDetail extends wjcGridDetail.FlexGridDetailProvider{constructor(){super(...arguments);this.renderedCellsCache=[];this._createDetailCellFn=e=>{const t={row:e,item:e.dataItem,provider:this},i=this._templateFn;if(!i)return;const r=document.createElement("div"),s=i(t);r.$_templateFnLastCtx=t;wijmo_react_base_1.selectiveDomRender(s,r);this.renderedCellsCache.push(r);return r};this._disposeDetailCellFn=e=>{const t=e.detail;wijmo_react_base_1.selectiveDomUnmount(t);let i=-1;for(let e=0;e<this.renderedCellsCache.length;e++)if(this.renderedCellsCache[e]==t){i=e;break}i>-1&&this.renderedCellsCache.splice(i,1)}}get template(){return this._templateFn}set template(e){this._templateFn!=e&&(this._templateFn=wjcCore.asFunction(e,!0))}initialize(e){wjcCore.copy(this,e,!1);this.updateTemplate()}updateTemplate(){if(this._templateFn)for(const e of this.renderedCellsCache){const t=e.$_templateFnLastCtx;wijmo_react_base_1.selectiveDomRender(this._templateFn(t),e,!0)}}}exports.DirectiveFlexGridDetail=DirectiveFlexGridDetail;
|
package/es2015-esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.20261.45-nightly.
|
|
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{selectiveDomRender,selectiveDomUnmount,useWjComponentChildBase,wjForwardRef}from"@mescius/wijmo.react.base";import*as wjcCore from"@mescius/wijmo";import*as wjcGridDetail from"@mescius/wijmo.grid.detail";export const FlexGridDetailMeta={inputs:["detailVisibilityMode","isAnimated","keyActionEnter","maxHeight","rowHasDetail","template"],events:[]};const lastDetailContextKey="$_templateFnLastCtx";export const FlexGridDetail=wjForwardRef((
|
|
14
|
+
import{selectiveDomRender,selectiveDomUnmount,useWjComponentChildBase,wjForwardRef}from"@mescius/wijmo.react.base";import*as wjcCore from"@mescius/wijmo";import*as wjcGridDetail from"@mescius/wijmo.grid.detail";export const FlexGridDetailMeta={inputs:["detailVisibilityMode","isAnimated","keyActionEnter","maxHeight","rowHasDetail","template"],events:[]};const lastDetailContextKey="$_templateFnLastCtx";export const FlexGridDetail=wjForwardRef((e,t)=>{const i=useWjComponentChildBase({ref:t,properties:FlexGridDetailMeta.inputs,events:FlexGridDetailMeta.events,props:e,constructor:DirectiveFlexGridDetail,needParentInstance:!0,parentProp:"",isParentPropArray:!1,assignedToParent:!1});return Object.assign({$_wjComponent:!0},i)});export class DirectiveFlexGridDetail extends wjcGridDetail.FlexGridDetailProvider{constructor(){super(...arguments);this.renderedCellsCache=[];this._createDetailCellFn=e=>{const t={row:e,item:e.dataItem,provider:this},i=this._templateFn;if(!i)return;const s=document.createElement("div"),r=i(t);s.$_templateFnLastCtx=t;selectiveDomRender(r,s);this.renderedCellsCache.push(s);return s};this._disposeDetailCellFn=e=>{const t=e.detail;selectiveDomUnmount(t);let i=-1;for(let e=0;e<this.renderedCellsCache.length;e++)if(this.renderedCellsCache[e]==t){i=e;break}i>-1&&this.renderedCellsCache.splice(i,1)}}get template(){return this._templateFn}set template(e){this._templateFn!=e&&(this._templateFn=wjcCore.asFunction(e,!0))}initialize(e){wjcCore.copy(this,e,!1);this.updateTemplate()}updateTemplate(){if(this._templateFn)for(const e of this.renderedCellsCache){const t=e.$_templateFnLastCtx;selectiveDomRender(this._templateFn(t),e,!0)}}}
|
package/es5-esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.20261.45-nightly.
|
|
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 i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(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,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)};import{selectiveDomRender,selectiveDomUnmount,useWjComponentChildBase,wjForwardRef}from"@mescius/wijmo.react.base";import*as wjcCore from"@mescius/wijmo";import*as wjcGridDetail from"@mescius/wijmo.grid.detail";export var FlexGridDetailMeta={inputs:["detailVisibilityMode","isAnimated","keyActionEnter","maxHeight","rowHasDetail","template"],events:[]};var lastDetailContextKey="$_templateFnLastCtx";export var FlexGridDetail=wjForwardRef((function(e,t){var i=useWjComponentChildBase({ref:t,properties:FlexGridDetailMeta.inputs,events:FlexGridDetailMeta.events,props:e,constructor:DirectiveFlexGridDetail,needParentInstance:!0,parentProp:"",isParentPropArray:!1,assignedToParent:!1});return __assign({$_wjComponent:!0},i)}));var DirectiveFlexGridDetail=function(e){__extends(DirectiveFlexGridDetail,e);function DirectiveFlexGridDetail(
|
|
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 i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(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,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)};import{selectiveDomRender,selectiveDomUnmount,useWjComponentChildBase,wjForwardRef}from"@mescius/wijmo.react.base";import*as wjcCore from"@mescius/wijmo";import*as wjcGridDetail from"@mescius/wijmo.grid.detail";export var FlexGridDetailMeta={inputs:["detailVisibilityMode","isAnimated","keyActionEnter","maxHeight","rowHasDetail","template"],events:[]};var lastDetailContextKey="$_templateFnLastCtx";export var FlexGridDetail=wjForwardRef((function(e,t){var i=useWjComponentChildBase({ref:t,properties:FlexGridDetailMeta.inputs,events:FlexGridDetailMeta.events,props:e,constructor:DirectiveFlexGridDetail,needParentInstance:!0,parentProp:"",isParentPropArray:!1,assignedToParent:!1});return __assign({$_wjComponent:!0},i)}));var DirectiveFlexGridDetail=function(e){__extends(DirectiveFlexGridDetail,e);function DirectiveFlexGridDetail(){var t=null!==e&&e.apply(this,arguments)||this;t.renderedCellsCache=[];t._createDetailCellFn=function(e){var i={row:e,item:e.dataItem,provider:t},r=t._templateFn;if(r){var n=document.createElement("div"),a=r(i);n[lastDetailContextKey]=i;selectiveDomRender(a,n);t.renderedCellsCache.push(n);return n}};t._disposeDetailCellFn=function(e){var i=e.detail;selectiveDomUnmount(i);for(var r=-1,n=0;n<t.renderedCellsCache.length;n++)if(t.renderedCellsCache[n]==i){r=n;break}r>-1&&t.renderedCellsCache.splice(r,1)};return t}Object.defineProperty(DirectiveFlexGridDetail.prototype,"template",{get:function(){return this._templateFn},set:function(e){this._templateFn!=e&&(this._templateFn=wjcCore.asFunction(e,!0))},enumerable:!0,configurable:!0});DirectiveFlexGridDetail.prototype.initialize=function(e){wjcCore.copy(this,e,!1);this.updateTemplate()};DirectiveFlexGridDetail.prototype.updateTemplate=function(){if(this._templateFn)for(var e=0,t=this.renderedCellsCache;e<t.length;e++){var i=t[e],r=i[lastDetailContextKey];selectiveDomRender(this._templateFn(r),i,!0)}};return DirectiveFlexGridDetail}(wjcGridDetail.FlexGridDetailProvider);export{DirectiveFlexGridDetail};
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.20261.45-nightly.
|
|
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.
|
|
@@ -28,7 +28,7 @@ export declare type FlexGridDetailInputs = BaseInputs & {
|
|
|
28
28
|
rowHasDetail?: wjcGridDetail.IRowHasDetail;
|
|
29
29
|
template?: any;
|
|
30
30
|
};
|
|
31
|
-
export declare type FlexGridDetailEvents<
|
|
31
|
+
export declare type FlexGridDetailEvents<_T> = {};
|
|
32
32
|
export declare const FlexGridDetailMeta: {
|
|
33
33
|
inputs: string[];
|
|
34
34
|
events: any[];
|
|
@@ -58,7 +58,6 @@ export declare class DirectiveFlexGridDetail extends wjcGridDetail.FlexGridDetai
|
|
|
58
58
|
_templateFn: any;
|
|
59
59
|
renderedCellsCache: any[];
|
|
60
60
|
template: any;
|
|
61
|
-
constructor(grid: any, options: any);
|
|
62
61
|
initialize(props: any): void;
|
|
63
62
|
updateTemplate(): void;
|
|
64
63
|
_createDetailCellFn: (row: any) => HTMLDivElement;
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* Wijmo Library 5.20261.45-nightly.
|
|
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 a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}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"),wjcCore=__importStar(require("@mescius/wijmo")),wjcGridDetail=__importStar(require("@mescius/wijmo.grid.detail"));exports.FlexGridDetailMeta={inputs:["detailVisibilityMode","isAnimated","keyActionEnter","maxHeight","rowHasDetail","template"],events:[]};var lastDetailContextKey="$_templateFnLastCtx";exports.FlexGridDetail=wijmo_react_base_1.wjForwardRef((function(e,t){var r=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.FlexGridDetailMeta.inputs,events:exports.FlexGridDetailMeta.events,props:e,constructor:DirectiveFlexGridDetail,needParentInstance:!0,parentProp:"",isParentPropArray:!1,assignedToParent:!1});return __assign({$_wjComponent:!0},r)}));var DirectiveFlexGridDetail=function(e){__extends(DirectiveFlexGridDetail,e);function DirectiveFlexGridDetail(
|
|
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 a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}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"),wjcCore=__importStar(require("@mescius/wijmo")),wjcGridDetail=__importStar(require("@mescius/wijmo.grid.detail"));exports.FlexGridDetailMeta={inputs:["detailVisibilityMode","isAnimated","keyActionEnter","maxHeight","rowHasDetail","template"],events:[]};var lastDetailContextKey="$_templateFnLastCtx";exports.FlexGridDetail=wijmo_react_base_1.wjForwardRef((function(e,t){var r=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.FlexGridDetailMeta.inputs,events:exports.FlexGridDetailMeta.events,props:e,constructor:DirectiveFlexGridDetail,needParentInstance:!0,parentProp:"",isParentPropArray:!1,assignedToParent:!1});return __assign({$_wjComponent:!0},r)}));var DirectiveFlexGridDetail=function(e){__extends(DirectiveFlexGridDetail,e);function DirectiveFlexGridDetail(){var t=null!==e&&e.apply(this,arguments)||this;t.renderedCellsCache=[];t._createDetailCellFn=function(e){var r={row:e,item:e.dataItem,provider:t},i=t._templateFn;if(i){var a=document.createElement("div"),n=i(r);a[lastDetailContextKey]=r;wijmo_react_base_1.selectiveDomRender(n,a);t.renderedCellsCache.push(a);return a}};t._disposeDetailCellFn=function(e){var r=e.detail;wijmo_react_base_1.selectiveDomUnmount(r);for(var i=-1,a=0;a<t.renderedCellsCache.length;a++)if(t.renderedCellsCache[a]==r){i=a;break}i>-1&&t.renderedCellsCache.splice(i,1)};return t}Object.defineProperty(DirectiveFlexGridDetail.prototype,"template",{get:function(){return this._templateFn},set:function(e){this._templateFn!=e&&(this._templateFn=wjcCore.asFunction(e,!0))},enumerable:!0,configurable:!0});DirectiveFlexGridDetail.prototype.initialize=function(e){wjcCore.copy(this,e,!1);this.updateTemplate()};DirectiveFlexGridDetail.prototype.updateTemplate=function(){if(this._templateFn)for(var e=0,t=this.renderedCellsCache;e<t.length;e++){var r=t[e],i=r[lastDetailContextKey];wijmo_react_base_1.selectiveDomRender(this._templateFn(i),r,!0)}};return DirectiveFlexGridDetail}(wjcGridDetail.FlexGridDetailProvider);exports.DirectiveFlexGridDetail=DirectiveFlexGridDetail;
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mescius/wijmo.react.grid.detail",
|
|
3
|
-
"version": "5.20261.45-nightly.
|
|
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.20261.45-nightly.
|
|
11
|
-
"@mescius/wijmo.grid.detail": "5.20261.45-nightly.
|
|
12
|
-
"@mescius/wijmo.grid": "5.20261.45-nightly.
|
|
13
|
-
"@mescius/wijmo.react.base": "5.20261.45-nightly.
|
|
10
|
+
"@mescius/wijmo": "5.20261.45-nightly.d20260105.t014601",
|
|
11
|
+
"@mescius/wijmo.grid.detail": "5.20261.45-nightly.d20260105.t014601",
|
|
12
|
+
"@mescius/wijmo.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": {
|