@mescius/wijmo.react.nav 5.20241.9-rc → 5.20241.9-temp1-nightly.d20240524.t154527

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20241.9
3
+ * Wijmo Library 5.20241.9-temp1-nightly.d20240524.t154527
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"),React=__importStar(require("react")),wjcCore=__importStar(require("@mescius/wijmo")),wjcNav=__importStar(require("@mescius/wijmo.nav"));class TreeView extends wijmo_react_base_1.ComponentBase{constructor(e){super(e,wjcNav.TreeView,{objectProps:["childItemsPath","displayMemberPath","imageMemberPath","checkedMemberPath","itemsSource","selectedItem","selectedNode","checkedItems"]})}}exports.TreeView=TreeView;class TabPanel extends wijmo_react_base_1.ComponentBase{constructor(e){super(e,wjcNav.TabPanel,{objectProps:["selectedTab"]})}_createControl(){const e=new wjcNav.TabPanel(this._getElement(),null,!1,!0);e.tabs.beginUpdate();return e}componentDidMount(){super.componentDidMount();setTimeout(()=>{let e=this.control,t=e.selectedIndex,r=e.tabs;if(t>-1&&t<r.length){wjcCore.addClass(r[t].header,"wj-state-active");e.onSelectedIndexChanged()}r.endUpdate()},300)}}exports.TabPanel=TabPanel;class Tab extends wijmo_react_base_1.ComponentBase{constructor(e){super(e,wjcNav.Tab);this._parentProp="tabs"}_createControl(){this._renderImpl();const e=this._getElement().children;return new wjcNav.Tab(e[0],e[1])}_renderImpl(){return React.createElement("div",{ref:this._hostRef},this.props.children)}}exports.Tab=Tab;class Accordion extends wijmo_react_base_1.ComponentBase{constructor(e){super(e,wjcNav.Accordion,{objectProps:["selectedPane"]})}_createControl(){const e=new wjcNav.Accordion(this._getElement(),null,!0);e.panes.beginUpdate();return e}componentDidMount(){super.componentDidMount();setTimeout(()=>{const e=this.control,t=e.panes;e.selectedIndex<0&&t.length&&(e.selectedIndex=0);t.endUpdate()},300)}}exports.Accordion=Accordion;class AccordionPane extends wijmo_react_base_1.ComponentBase{constructor(e){super(e,wjcNav.AccordionPane);this._parentProp="panes"}_createControl(){const e=this._getElement().children;return new wjcNav.AccordionPane(e[0],e[1])}_renderImpl(){return React.createElement("div",{ref:this._hostRef},this.props.children)}}exports.AccordionPane=AccordionPane;
14
+ "use strict";var __importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.hasOwnProperty.call(e,s)&&(t[s]=e[s]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=require("react"),wijmo_react_base_1=require("@mescius/wijmo.react.base"),wjcCore=__importStar(require("@mescius/wijmo")),wjcNav=__importStar(require("@mescius/wijmo.nav"));exports.TreeViewMeta={inputs:[...wijmo_react_base_1.ControlBaseMeta.inputs,"allowDragging","autoCollapse","checkOnClick","checkedMemberPath","childItemsPath","collapseOnClick","collapseWhenDisabled","displayMemberPath","expandOnClick","expandOnLoad","imageMemberPath","isAnimated","isContentHtml","isReadOnly","itemsSource","lazyLoadFunction","selectedItem","selectedNode","showCheckboxes","totalItemCount"],events:[...wijmo_react_base_1.ControlBaseMeta.events,"checkedItemsChanged","dragEnd","dragOver","dragStart","drop","formatItem","isCheckedChanged","isCheckedChanging","isCollapsedChanged","isCollapsedChanging","itemClicked","itemsSourceChanged","loadedItems","loadingItems","nodeEditEnded","nodeEditEnding","nodeEditStarted","nodeEditStarting","selectedItemChanged"]};exports.TreeView=react_1.forwardRef((function(e,t){return wijmo_react_base_1.useWjComponentBase({ref:t,properties:exports.TreeViewMeta.inputs,events:exports.TreeViewMeta.events,props:e,constructor:wjcNav.TreeView}).renderResult}));exports.TabPanelMeta={inputs:[...wijmo_react_base_1.ControlBaseMeta.inputs,"autoSwitch","isAnimated","selectedIndex","selectedTab"],events:[...wijmo_react_base_1.ControlBaseMeta.events,"selectedIndexChanged"]};exports.TabPanel=react_1.forwardRef((function(e,t){return wijmo_react_base_1.useWjComponentBase({ref:t,properties:exports.TabPanelMeta.inputs,events:exports.TabPanelMeta.events,props:e,constructor:wjcNav.TabPanel}).renderResult}));exports.TabMeta={inputs:["isDisabled","isVisible"],events:[]};exports.Tab=react_1.forwardRef((function(e,t){const s=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.TabMeta.inputs,events:exports.TabMeta.events,props:e,constructor:wjcNav.Tab,needParentInstance:!1,parentProp:"tabs",isParentPropArray:!0,assignedToParent:!0,customConstructor:(e,t)=>new wjcNav.Tab(document.createElement("div"),document.createElement("div")),customProps:{children:(e,t)=>{wijmo_react_base_1.selectiveDomRender(t[0],e.header);wijmo_react_base_1.selectiveDomRender(t[1],e.pane)}}});return Object.assign({$_wjComponent:!0},s)}));exports.AccordionMeta={inputs:[...wijmo_react_base_1.ControlBaseMeta.inputs,"allowCollapseAll","allowExpandMany","autoSwitch","isAnimated","selectedIndex","selectedPane","showIcons"],events:[...wijmo_react_base_1.ControlBaseMeta.events,"selectedIndexChanged"]};exports.Accordion=react_1.forwardRef((function(e,t){return wijmo_react_base_1.useWjComponentBase({ref:t,properties:exports.AccordionMeta.inputs,events:exports.AccordionMeta.events,props:e,constructor:wjcNav.Accordion}).renderResult}));exports.AccordionPaneMeta={inputs:["isCollapsed","isDisabled","isVisible"],events:[]};exports.AccordionPane=react_1.forwardRef((function(e,t){const s=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.AccordionPaneMeta.inputs,events:exports.AccordionPaneMeta.events,props:e,constructor:wjcNav.AccordionPane,needParentInstance:!1,parentProp:"panes",isParentPropArray:!0,assignedToParent:!0,customConstructor:(e,t)=>{(null==e.selectedIndex||e.selectedIndex<0)&&(e.selectedIndex=0);return new wjcNav.AccordionPane(document.createElement("div"),document.createElement("div"))},customProps:{children:(e,t)=>{e.header.classList.forEach(t=>{t.startsWith("wj")||e.header.classList.remove(t)});e.content.classList.forEach(t=>{t.startsWith("wj")||e.header.classList.remove(t)});let s="";t[0].props&&t[0].props.className&&(s=t[0].props.className);wjcCore.addClass(e.header,s);t[1].props&&t[1].props.bodyClass&&(s=t[1].props.bodyClass);wjcCore.addClass(e.content,"");wijmo_react_base_1.selectiveDomRender(t[0],e.header);wijmo_react_base_1.selectiveDomRender(t[1],e.content)}}});return Object.assign({$_wjComponent:!0},s)}));
package/es2015-esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20241.9
3
+ * Wijmo Library 5.20241.9-temp1-nightly.d20240524.t154527
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{ComponentBase}from"@mescius/wijmo.react.base";import*as React from"react";import*as wjcCore from"@mescius/wijmo";import*as wjcNav from"@mescius/wijmo.nav";export class TreeView extends ComponentBase{constructor(e){super(e,wjcNav.TreeView,{objectProps:["childItemsPath","displayMemberPath","imageMemberPath","checkedMemberPath","itemsSource","selectedItem","selectedNode","checkedItems"]})}}export class TabPanel extends ComponentBase{constructor(e){super(e,wjcNav.TabPanel,{objectProps:["selectedTab"]})}_createControl(){const e=new wjcNav.TabPanel(this._getElement(),null,!1,!0);e.tabs.beginUpdate();return e}componentDidMount(){super.componentDidMount();setTimeout(()=>{let e=this.control,t=e.selectedIndex,n=e.tabs;if(t>-1&&t<n.length){wjcCore.addClass(n[t].header,"wj-state-active");e.onSelectedIndexChanged()}n.endUpdate()},300)}}export class Tab extends ComponentBase{constructor(e){super(e,wjcNav.Tab);this._parentProp="tabs"}_createControl(){this._renderImpl();const e=this._getElement().children;return new wjcNav.Tab(e[0],e[1])}_renderImpl(){return React.createElement("div",{ref:this._hostRef},this.props.children)}}export class Accordion extends ComponentBase{constructor(e){super(e,wjcNav.Accordion,{objectProps:["selectedPane"]})}_createControl(){const e=new wjcNav.Accordion(this._getElement(),null,!0);e.panes.beginUpdate();return e}componentDidMount(){super.componentDidMount();setTimeout(()=>{const e=this.control,t=e.panes;e.selectedIndex<0&&t.length&&(e.selectedIndex=0);t.endUpdate()},300)}}export class AccordionPane extends ComponentBase{constructor(e){super(e,wjcNav.AccordionPane);this._parentProp="panes"}_createControl(){const e=this._getElement().children;return new wjcNav.AccordionPane(e[0],e[1])}_renderImpl(){return React.createElement("div",{ref:this._hostRef},this.props.children)}}
14
+ import{forwardRef}from"react";import{ControlBaseMeta,selectiveDomRender,useWjComponentBase,useWjComponentChildBase}from"@mescius/wijmo.react.base";import*as wjcCore from"@mescius/wijmo";import*as wjcNav from"@mescius/wijmo.nav";export const TreeViewMeta={inputs:[...ControlBaseMeta.inputs,"allowDragging","autoCollapse","checkOnClick","checkedMemberPath","childItemsPath","collapseOnClick","collapseWhenDisabled","displayMemberPath","expandOnClick","expandOnLoad","imageMemberPath","isAnimated","isContentHtml","isReadOnly","itemsSource","lazyLoadFunction","selectedItem","selectedNode","showCheckboxes","totalItemCount"],events:[...ControlBaseMeta.events,"checkedItemsChanged","dragEnd","dragOver","dragStart","drop","formatItem","isCheckedChanged","isCheckedChanging","isCollapsedChanged","isCollapsedChanging","itemClicked","itemsSourceChanged","loadedItems","loadingItems","nodeEditEnded","nodeEditEnding","nodeEditStarted","nodeEditStarting","selectedItemChanged"]};export const TreeView=forwardRef((function(e,t){return useWjComponentBase({ref:t,properties:TreeViewMeta.inputs,events:TreeViewMeta.events,props:e,constructor:wjcNav.TreeView}).renderResult}));export const TabPanelMeta={inputs:[...ControlBaseMeta.inputs,"autoSwitch","isAnimated","selectedIndex","selectedTab"],events:[...ControlBaseMeta.events,"selectedIndexChanged"]};export const TabPanel=forwardRef((function(e,t){return useWjComponentBase({ref:t,properties:TabPanelMeta.inputs,events:TabPanelMeta.events,props:e,constructor:wjcNav.TabPanel}).renderResult}));export const TabMeta={inputs:["isDisabled","isVisible"],events:[]};export const Tab=forwardRef((function(e,t){const n=useWjComponentChildBase({ref:t,properties:TabMeta.inputs,events:TabMeta.events,props:e,constructor:wjcNav.Tab,needParentInstance:!1,parentProp:"tabs",isParentPropArray:!0,assignedToParent:!0,customConstructor:(e,t)=>new wjcNav.Tab(document.createElement("div"),document.createElement("div")),customProps:{children:(e,t)=>{selectiveDomRender(t[0],e.header);selectiveDomRender(t[1],e.pane)}}});return Object.assign({$_wjComponent:!0},n)}));export const AccordionMeta={inputs:[...ControlBaseMeta.inputs,"allowCollapseAll","allowExpandMany","autoSwitch","isAnimated","selectedIndex","selectedPane","showIcons"],events:[...ControlBaseMeta.events,"selectedIndexChanged"]};export const Accordion=forwardRef((function(e,t){return useWjComponentBase({ref:t,properties:AccordionMeta.inputs,events:AccordionMeta.events,props:e,constructor:wjcNav.Accordion}).renderResult}));export const AccordionPaneMeta={inputs:["isCollapsed","isDisabled","isVisible"],events:[]};export const AccordionPane=forwardRef((function(e,t){const n=useWjComponentChildBase({ref:t,properties:AccordionPaneMeta.inputs,events:AccordionPaneMeta.events,props:e,constructor:wjcNav.AccordionPane,needParentInstance:!1,parentProp:"panes",isParentPropArray:!0,assignedToParent:!0,customConstructor:(e,t)=>{(null==e.selectedIndex||e.selectedIndex<0)&&(e.selectedIndex=0);return new wjcNav.AccordionPane(document.createElement("div"),document.createElement("div"))},customProps:{children:(e,t)=>{e.header.classList.forEach(t=>{t.startsWith("wj")||e.header.classList.remove(t)});e.content.classList.forEach(t=>{t.startsWith("wj")||e.header.classList.remove(t)});let n="";t[0].props&&t[0].props.className&&(n=t[0].props.className);wjcCore.addClass(e.header,n);t[1].props&&t[1].props.bodyClass&&(n=t[1].props.bodyClass);wjcCore.addClass(e.content,"");selectiveDomRender(t[0],e.header);selectiveDomRender(t[1],e.content)}}});return Object.assign({$_wjComponent:!0},n)}));
package/es5-esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20241.9
3
+ * Wijmo Library 5.20241.9-temp1-nightly.d20240524.t154527
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 n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}}();import{ComponentBase}from"@mescius/wijmo.react.base";import*as React from"react";import*as wjcCore from"@mescius/wijmo";import*as wjcNav from"@mescius/wijmo.nav";var TreeView=function(e){__extends(TreeView,e);function TreeView(t){return e.call(this,t,wjcNav.TreeView,{objectProps:["childItemsPath","displayMemberPath","imageMemberPath","checkedMemberPath","itemsSource","selectedItem","selectedNode","checkedItems"]})||this}return TreeView}(ComponentBase);export{TreeView};var TabPanel=function(e){__extends(TabPanel,e);function TabPanel(t){return e.call(this,t,wjcNav.TabPanel,{objectProps:["selectedTab"]})||this}TabPanel.prototype._createControl=function(){var e=new wjcNav.TabPanel(this._getElement(),null,!1,!0);e.tabs.beginUpdate();return e};TabPanel.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this);setTimeout((function(){var e=t.control,n=e.selectedIndex,o=e.tabs;if(n>-1&&n<o.length){wjcCore.addClass(o[n].header,"wj-state-active");e.onSelectedIndexChanged()}o.endUpdate()}),300)};return TabPanel}(ComponentBase);export{TabPanel};var Tab=function(e){__extends(Tab,e);function Tab(t){var n=e.call(this,t,wjcNav.Tab)||this;n._parentProp="tabs";return n}Tab.prototype._createControl=function(){this._renderImpl();var e=this._getElement().children;return new wjcNav.Tab(e[0],e[1])};Tab.prototype._renderImpl=function(){return React.createElement("div",{ref:this._hostRef},this.props.children)};return Tab}(ComponentBase);export{Tab};var Accordion=function(e){__extends(Accordion,e);function Accordion(t){return e.call(this,t,wjcNav.Accordion,{objectProps:["selectedPane"]})||this}Accordion.prototype._createControl=function(){var e=new wjcNav.Accordion(this._getElement(),null,!0);e.panes.beginUpdate();return e};Accordion.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this);setTimeout((function(){var e=t.control,n=e.panes;e.selectedIndex<0&&n.length&&(e.selectedIndex=0);n.endUpdate()}),300)};return Accordion}(ComponentBase);export{Accordion};var AccordionPane=function(e){__extends(AccordionPane,e);function AccordionPane(t){var n=e.call(this,t,wjcNav.AccordionPane)||this;n._parentProp="panes";return n}AccordionPane.prototype._createControl=function(){var e=this._getElement().children;return new wjcNav.AccordionPane(e[0],e[1])};AccordionPane.prototype._renderImpl=function(){return React.createElement("div",{ref:this._hostRef},this.props.children)};return AccordionPane}(ComponentBase);export{AccordionPane};
14
+ var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}).apply(this,arguments)};import{forwardRef}from"react";import{ControlBaseMeta,selectiveDomRender,useWjComponentBase,useWjComponentChildBase}from"@mescius/wijmo.react.base";import*as wjcCore from"@mescius/wijmo";import*as wjcNav from"@mescius/wijmo.nav";export var TreeViewMeta={inputs:ControlBaseMeta.inputs.concat(["allowDragging","autoCollapse","checkOnClick","checkedMemberPath","childItemsPath","collapseOnClick","collapseWhenDisabled","displayMemberPath","expandOnClick","expandOnLoad","imageMemberPath","isAnimated","isContentHtml","isReadOnly","itemsSource","lazyLoadFunction","selectedItem","selectedNode","showCheckboxes","totalItemCount"]),events:ControlBaseMeta.events.concat(["checkedItemsChanged","dragEnd","dragOver","dragStart","drop","formatItem","isCheckedChanged","isCheckedChanging","isCollapsedChanged","isCollapsedChanging","itemClicked","itemsSourceChanged","loadedItems","loadingItems","nodeEditEnded","nodeEditEnding","nodeEditStarted","nodeEditStarting","selectedItemChanged"])};export var TreeView=forwardRef((function(e,t){return useWjComponentBase({ref:t,properties:TreeViewMeta.inputs,events:TreeViewMeta.events,props:e,constructor:wjcNav.TreeView}).renderResult}));export var TabPanelMeta={inputs:ControlBaseMeta.inputs.concat(["autoSwitch","isAnimated","selectedIndex","selectedTab"]),events:ControlBaseMeta.events.concat(["selectedIndexChanged"])};export var TabPanel=forwardRef((function(e,t){return useWjComponentBase({ref:t,properties:TabPanelMeta.inputs,events:TabPanelMeta.events,props:e,constructor:wjcNav.TabPanel}).renderResult}));export var TabMeta={inputs:["isDisabled","isVisible"],events:[]};export var Tab=forwardRef((function(e,t){var n=useWjComponentChildBase({ref:t,properties:TabMeta.inputs,events:TabMeta.events,props:e,constructor:wjcNav.Tab,needParentInstance:!1,parentProp:"tabs",isParentPropArray:!0,assignedToParent:!0,customConstructor:function(e,t){return new wjcNav.Tab(document.createElement("div"),document.createElement("div"))},customProps:{children:function(e,t){selectiveDomRender(t[0],e.header);selectiveDomRender(t[1],e.pane)}}});return __assign({$_wjComponent:!0},n)}));export var AccordionMeta={inputs:ControlBaseMeta.inputs.concat(["allowCollapseAll","allowExpandMany","autoSwitch","isAnimated","selectedIndex","selectedPane","showIcons"]),events:ControlBaseMeta.events.concat(["selectedIndexChanged"])};export var Accordion=forwardRef((function(e,t){return useWjComponentBase({ref:t,properties:AccordionMeta.inputs,events:AccordionMeta.events,props:e,constructor:wjcNav.Accordion}).renderResult}));export var AccordionPaneMeta={inputs:["isCollapsed","isDisabled","isVisible"],events:[]};export var AccordionPane=forwardRef((function(e,t){var n=useWjComponentChildBase({ref:t,properties:AccordionPaneMeta.inputs,events:AccordionPaneMeta.events,props:e,constructor:wjcNav.AccordionPane,needParentInstance:!1,parentProp:"panes",isParentPropArray:!0,assignedToParent:!0,customConstructor:function(e,t){(null==e.selectedIndex||e.selectedIndex<0)&&(e.selectedIndex=0);return new wjcNav.AccordionPane(document.createElement("div"),document.createElement("div"))},customProps:{children:function(e,t){e.header.classList.forEach((function(t){t.startsWith("wj")||e.header.classList.remove(t)}));e.content.classList.forEach((function(t){t.startsWith("wj")||e.header.classList.remove(t)}));var n="";t[0].props&&t[0].props.className&&(n=t[0].props.className);wjcCore.addClass(e.header,n);t[1].props&&t[1].props.bodyClass&&(n=t[1].props.bodyClass);wjcCore.addClass(e.content,"");selectiveDomRender(t[0],e.header);selectiveDomRender(t[1],e.content)}}});return __assign({$_wjComponent:!0},n)}));
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20241.9
3
+ * Wijmo Library 5.20241.9-temp1-nightly.d20240524.t154527
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -18,7 +18,57 @@
18
18
  *
19
19
  */
20
20
  export declare var ___keepComment: any;
21
- import { ComponentBase } from '@mescius/wijmo.react.base';
21
+ import { ControlBaseEvents, ControlBaseProps } from '@mescius/wijmo.react.base';
22
+ import * as React from 'react';
23
+ import * as wjcCore from '@mescius/wijmo';
24
+ import * as wjcNav from '@mescius/wijmo.nav';
25
+ export declare type TreeViewProps = ControlBaseProps & {
26
+ allowDragging?: boolean;
27
+ autoCollapse?: boolean;
28
+ checkOnClick?: boolean;
29
+ checkedMemberPath?: string | string[];
30
+ childItemsPath?: string | string[];
31
+ collapseOnClick?: boolean;
32
+ collapseWhenDisabled?: boolean;
33
+ displayMemberPath?: string | string[];
34
+ expandOnClick?: boolean;
35
+ expandOnLoad?: boolean;
36
+ imageMemberPath?: string | string[];
37
+ isAnimated?: boolean;
38
+ isContentHtml?: boolean;
39
+ isReadOnly?: boolean;
40
+ itemsSource?: any[];
41
+ lazyLoadFunction?: wjcNav.ILazyLoad;
42
+ selectedItem?: any;
43
+ selectedNode?: wjcNav.TreeNode;
44
+ showCheckboxes?: boolean;
45
+ totalItemCount?: number;
46
+ };
47
+ export declare type TreeViewEvents<T> = ControlBaseEvents<T> & {
48
+ checkedItemsChanged?: wjcCore.IEventHandler<T, wjcCore.EventArgs>;
49
+ dragEnd?: wjcCore.IEventHandler<T, wjcCore.EventArgs>;
50
+ dragOver?: wjcCore.IEventHandler<T, wjcNav.TreeNodeDragDropEventArgs>;
51
+ dragStart?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
52
+ drop?: wjcCore.IEventHandler<T, wjcNav.TreeNodeDragDropEventArgs>;
53
+ formatItem?: wjcCore.IEventHandler<T, wjcNav.FormatNodeEventArgs>;
54
+ isCheckedChanged?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
55
+ isCheckedChanging?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
56
+ isCollapsedChanged?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
57
+ isCollapsedChanging?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
58
+ itemClicked?: wjcCore.IEventHandler<T, wjcCore.EventArgs>;
59
+ itemsSourceChanged?: wjcCore.IEventHandler<T, wjcCore.EventArgs>;
60
+ loadedItems?: wjcCore.IEventHandler<T, wjcCore.EventArgs>;
61
+ loadingItems?: wjcCore.IEventHandler<T, wjcCore.CancelEventArgs>;
62
+ nodeEditEnded?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
63
+ nodeEditEnding?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
64
+ nodeEditStarted?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
65
+ nodeEditStarting?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
66
+ selectedItemChanged?: wjcCore.IEventHandler<T, wjcCore.EventArgs>;
67
+ };
68
+ export declare const TreeViewMeta: {
69
+ inputs: string[];
70
+ events: string[];
71
+ };
22
72
  /**
23
73
  * React component for the {@link wijmo.nav.TreeView} control.
24
74
  *
@@ -28,60 +78,20 @@ import { ComponentBase } from '@mescius/wijmo.react.base';
28
78
  * You can use this event to perform further initialization in addition to setting properties in JSX.
29
79
  * The signature of the handler function is the same as any other Wijmo event handlers.
30
80
  */
31
- export declare class TreeView extends ComponentBase {
32
- props: {
33
- template?: any;
34
- children?: any;
35
- isDisabled?: any;
36
- tabOrder?: any;
37
- childItemsPath?: any;
38
- displayMemberPath?: any;
39
- imageMemberPath?: any;
40
- checkedMemberPath?: any;
41
- isContentHtml?: any;
42
- showCheckboxes?: any;
43
- autoCollapse?: any;
44
- isAnimated?: any;
45
- isReadOnly?: any;
46
- allowDragging?: any;
47
- checkOnClick?: any;
48
- expandOnClick?: any;
49
- collapseOnClick?: any;
50
- expandOnLoad?: any;
51
- lazyLoadFunction?: any;
52
- itemsSource?: any;
53
- selectedItem?: any;
54
- selectedNode?: any;
55
- checkedItems?: any;
56
- initialized?: any;
57
- gotFocus?: any;
58
- lostFocus?: any;
59
- refreshing?: any;
60
- refreshed?: any;
61
- invalidInput?: any;
62
- itemsSourceChanged?: any;
63
- loadingItems?: any;
64
- loadedItems?: any;
65
- itemClicked?: any;
66
- isCollapsedChanging?: any;
67
- isCollapsedChanged?: any;
68
- isCheckedChanging?: any;
69
- isCheckedChanged?: any;
70
- formatItem?: any;
71
- dragStart?: any;
72
- dragOver?: any;
73
- drop?: any;
74
- dragEnd?: any;
75
- nodeEditStarting?: any;
76
- nodeEditStarted?: any;
77
- nodeEditEnding?: any;
78
- nodeEditEnded?: any;
79
- selectedItemChanged?: any;
80
- checkedItemsChanged?: any;
81
- [key: string]: any;
82
- };
83
- constructor(props: any);
84
- }
81
+ export declare const TreeView: React.ForwardRefExoticComponent<TreeViewProps & TreeViewEvents<wjcNav.TreeView>>;
82
+ export declare type TabPanelProps = ControlBaseProps & {
83
+ autoSwitch?: boolean;
84
+ isAnimated?: boolean;
85
+ selectedIndex?: number;
86
+ selectedTab?: wjcNav.Tab;
87
+ };
88
+ export declare type TabPanelEvents<T> = ControlBaseEvents<T> & {
89
+ selectedIndexChanged?: wjcCore.IEventHandler<T, wjcCore.EventArgs>;
90
+ };
91
+ export declare const TabPanelMeta: {
92
+ inputs: string[];
93
+ events: string[];
94
+ };
85
95
  /**
86
96
  * React component for the {@link wijmo.nav.TabPanel} control.
87
97
  *
@@ -94,29 +104,17 @@ export declare class TreeView extends ComponentBase {
94
104
  * You can use this event to perform further initialization in addition to setting properties in JSX.
95
105
  * The signature of the handler function is the same as any other Wijmo event handlers.
96
106
  */
97
- export declare class TabPanel extends ComponentBase {
98
- props: {
99
- template?: any;
100
- children?: any;
101
- isDisabled?: any;
102
- tabOrder?: any;
103
- isAnimated?: any;
104
- autoSwitch?: any;
105
- selectedIndex?: any;
106
- selectedTab?: any;
107
- initialized?: any;
108
- gotFocus?: any;
109
- lostFocus?: any;
110
- refreshing?: any;
111
- refreshed?: any;
112
- invalidInput?: any;
113
- selectedIndexChanged?: any;
114
- [key: string]: any;
115
- };
116
- constructor(props: any);
117
- protected _createControl(): any;
118
- componentDidMount(): void;
119
- }
107
+ export declare const TabPanel: React.ForwardRefExoticComponent<TabPanelProps & TabPanelEvents<wjcNav.TabPanel>>;
108
+ export declare type TabProps = {
109
+ isDisabled?: boolean;
110
+ isVisible?: boolean;
111
+ children?: any;
112
+ };
113
+ export declare type TabEvents<T> = {};
114
+ export declare const TabMeta: {
115
+ inputs: string[];
116
+ events: any[];
117
+ };
120
118
  /**
121
119
  * React component for the {@link wijmo.nav.Tab} class.
122
120
  *
@@ -129,20 +127,23 @@ export declare class TabPanel extends ComponentBase {
129
127
  * You can use this event to perform further initialization in addition to setting properties in JSX.
130
128
  * The signature of the handler function is the same as any other Wijmo event handlers.
131
129
  */
132
- export declare class Tab extends ComponentBase {
133
- props: {
134
- template?: any;
135
- children?: any;
136
- isDisabled?: any;
137
- isVisible?: any;
138
- initialized?: any;
139
- [key: string]: any;
140
- };
141
- _parentProp: string;
142
- constructor(props: any);
143
- protected _createControl(): any;
144
- protected _renderImpl(): any;
145
- }
130
+ export declare const Tab: React.ForwardRefExoticComponent<TabProps & TabEvents<wjcNav.Tab>>;
131
+ export declare type AccordionProps = ControlBaseProps & {
132
+ allowCollapseAll?: boolean;
133
+ allowExpandMany?: boolean;
134
+ autoSwitch?: boolean;
135
+ isAnimated?: boolean;
136
+ selectedIndex?: number;
137
+ selectedPane?: wjcNav.AccordionPane;
138
+ showIcons?: boolean;
139
+ };
140
+ export declare type AccordionEvents<T> = ControlBaseEvents<T> & {
141
+ selectedIndexChanged?: wjcCore.IEventHandler<T, wjcCore.EventArgs>;
142
+ };
143
+ export declare const AccordionMeta: {
144
+ inputs: string[];
145
+ events: string[];
146
+ };
146
147
  /**
147
148
  * React component for the {@link wijmo.nav.Accordion} control.
148
149
  *
@@ -155,32 +156,18 @@ export declare class Tab extends ComponentBase {
155
156
  * You can use this event to perform further initialization in addition to setting properties in JSX.
156
157
  * The signature of the handler function is the same as any other Wijmo event handlers.
157
158
  */
158
- export declare class Accordion extends ComponentBase {
159
- props: {
160
- template?: any;
161
- children?: any;
162
- isDisabled?: any;
163
- tabOrder?: any;
164
- isAnimated?: any;
165
- autoSwitch?: any;
166
- selectedIndex?: any;
167
- selectedPane?: any;
168
- showIcons?: any;
169
- allowCollapseAll?: any;
170
- allowExpandMany?: any;
171
- initialized?: any;
172
- gotFocus?: any;
173
- lostFocus?: any;
174
- refreshing?: any;
175
- refreshed?: any;
176
- invalidInput?: any;
177
- selectedIndexChanged?: any;
178
- [key: string]: any;
179
- };
180
- constructor(props: any);
181
- protected _createControl(): any;
182
- componentDidMount(): void;
183
- }
159
+ export declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & AccordionEvents<wjcNav.Accordion>>;
160
+ export declare type AccordionPaneProps = {
161
+ isCollapsed?: boolean;
162
+ isDisabled?: boolean;
163
+ isVisible?: boolean;
164
+ children?: any;
165
+ };
166
+ export declare type AccordionPaneEvents<T> = {};
167
+ export declare const AccordionPaneMeta: {
168
+ inputs: string[];
169
+ events: any[];
170
+ };
184
171
  /**
185
172
  * React component for the {@link wijmo.nav.AccordionPane} class.
186
173
  *
@@ -193,18 +180,4 @@ export declare class Accordion extends ComponentBase {
193
180
  * You can use this event to perform further initialization in addition to setting properties in JSX.
194
181
  * The signature of the handler function is the same as any other Wijmo event handlers.
195
182
  */
196
- export declare class AccordionPane extends ComponentBase {
197
- props: {
198
- template?: any;
199
- children?: any;
200
- isDisabled?: any;
201
- isVisible?: any;
202
- isCollapsed?: any;
203
- initialized?: any;
204
- [key: string]: any;
205
- };
206
- _parentProp: string;
207
- constructor(props: any);
208
- protected _createControl(): any;
209
- protected _renderImpl(): any;
210
- }
183
+ export declare const AccordionPane: React.ForwardRefExoticComponent<AccordionPaneProps & AccordionPaneEvents<wjcNav.AccordionPane>>;
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20241.9
3
+ * Wijmo Library 5.20241.9-temp1-nightly.d20240524.t154527
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 n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}}(),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});var wijmo_react_base_1=require("@mescius/wijmo.react.base"),React=__importStar(require("react")),wjcCore=__importStar(require("@mescius/wijmo")),wjcNav=__importStar(require("@mescius/wijmo.nav")),TreeView=function(e){__extends(TreeView,e);function TreeView(t){return e.call(this,t,wjcNav.TreeView,{objectProps:["childItemsPath","displayMemberPath","imageMemberPath","checkedMemberPath","itemsSource","selectedItem","selectedNode","checkedItems"]})||this}return TreeView}(wijmo_react_base_1.ComponentBase);exports.TreeView=TreeView;var TabPanel=function(e){__extends(TabPanel,e);function TabPanel(t){return e.call(this,t,wjcNav.TabPanel,{objectProps:["selectedTab"]})||this}TabPanel.prototype._createControl=function(){var e=new wjcNav.TabPanel(this._getElement(),null,!1,!0);e.tabs.beginUpdate();return e};TabPanel.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this);setTimeout((function(){var e=t.control,n=e.selectedIndex,r=e.tabs;if(n>-1&&n<r.length){wjcCore.addClass(r[n].header,"wj-state-active");e.onSelectedIndexChanged()}r.endUpdate()}),300)};return TabPanel}(wijmo_react_base_1.ComponentBase);exports.TabPanel=TabPanel;var Tab=function(e){__extends(Tab,e);function Tab(t){var n=e.call(this,t,wjcNav.Tab)||this;n._parentProp="tabs";return n}Tab.prototype._createControl=function(){this._renderImpl();var e=this._getElement().children;return new wjcNav.Tab(e[0],e[1])};Tab.prototype._renderImpl=function(){return React.createElement("div",{ref:this._hostRef},this.props.children)};return Tab}(wijmo_react_base_1.ComponentBase);exports.Tab=Tab;var Accordion=function(e){__extends(Accordion,e);function Accordion(t){return e.call(this,t,wjcNav.Accordion,{objectProps:["selectedPane"]})||this}Accordion.prototype._createControl=function(){var e=new wjcNav.Accordion(this._getElement(),null,!0);e.panes.beginUpdate();return e};Accordion.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this);setTimeout((function(){var e=t.control,n=e.panes;e.selectedIndex<0&&n.length&&(e.selectedIndex=0);n.endUpdate()}),300)};return Accordion}(wijmo_react_base_1.ComponentBase);exports.Accordion=Accordion;var AccordionPane=function(e){__extends(AccordionPane,e);function AccordionPane(t){var n=e.call(this,t,wjcNav.AccordionPane)||this;n._parentProp="panes";return n}AccordionPane.prototype._createControl=function(){var e=this._getElement().children;return new wjcNav.AccordionPane(e[0],e[1])};AccordionPane.prototype._renderImpl=function(){return React.createElement("div",{ref:this._hostRef},this.props.children)};return AccordionPane}(wijmo_react_base_1.ComponentBase);exports.AccordionPane=AccordionPane;
14
+ "use strict";var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e}).apply(this,arguments)},__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&(t[a]=e[a]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});var react_1=require("react"),wijmo_react_base_1=require("@mescius/wijmo.react.base"),wjcCore=__importStar(require("@mescius/wijmo")),wjcNav=__importStar(require("@mescius/wijmo.nav"));exports.TreeViewMeta={inputs:wijmo_react_base_1.ControlBaseMeta.inputs.concat(["allowDragging","autoCollapse","checkOnClick","checkedMemberPath","childItemsPath","collapseOnClick","collapseWhenDisabled","displayMemberPath","expandOnClick","expandOnLoad","imageMemberPath","isAnimated","isContentHtml","isReadOnly","itemsSource","lazyLoadFunction","selectedItem","selectedNode","showCheckboxes","totalItemCount"]),events:wijmo_react_base_1.ControlBaseMeta.events.concat(["checkedItemsChanged","dragEnd","dragOver","dragStart","drop","formatItem","isCheckedChanged","isCheckedChanging","isCollapsedChanged","isCollapsedChanging","itemClicked","itemsSourceChanged","loadedItems","loadingItems","nodeEditEnded","nodeEditEnding","nodeEditStarted","nodeEditStarting","selectedItemChanged"])};exports.TreeView=react_1.forwardRef((function(e,t){return wijmo_react_base_1.useWjComponentBase({ref:t,properties:exports.TreeViewMeta.inputs,events:exports.TreeViewMeta.events,props:e,constructor:wjcNav.TreeView}).renderResult}));exports.TabPanelMeta={inputs:wijmo_react_base_1.ControlBaseMeta.inputs.concat(["autoSwitch","isAnimated","selectedIndex","selectedTab"]),events:wijmo_react_base_1.ControlBaseMeta.events.concat(["selectedIndexChanged"])};exports.TabPanel=react_1.forwardRef((function(e,t){return wijmo_react_base_1.useWjComponentBase({ref:t,properties:exports.TabPanelMeta.inputs,events:exports.TabPanelMeta.events,props:e,constructor:wjcNav.TabPanel}).renderResult}));exports.TabMeta={inputs:["isDisabled","isVisible"],events:[]};exports.Tab=react_1.forwardRef((function(e,t){var a=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.TabMeta.inputs,events:exports.TabMeta.events,props:e,constructor:wjcNav.Tab,needParentInstance:!1,parentProp:"tabs",isParentPropArray:!0,assignedToParent:!0,customConstructor:function(e,t){return new wjcNav.Tab(document.createElement("div"),document.createElement("div"))},customProps:{children:function(e,t){wijmo_react_base_1.selectiveDomRender(t[0],e.header);wijmo_react_base_1.selectiveDomRender(t[1],e.pane)}}});return __assign({$_wjComponent:!0},a)}));exports.AccordionMeta={inputs:wijmo_react_base_1.ControlBaseMeta.inputs.concat(["allowCollapseAll","allowExpandMany","autoSwitch","isAnimated","selectedIndex","selectedPane","showIcons"]),events:wijmo_react_base_1.ControlBaseMeta.events.concat(["selectedIndexChanged"])};exports.Accordion=react_1.forwardRef((function(e,t){return wijmo_react_base_1.useWjComponentBase({ref:t,properties:exports.AccordionMeta.inputs,events:exports.AccordionMeta.events,props:e,constructor:wjcNav.Accordion}).renderResult}));exports.AccordionPaneMeta={inputs:["isCollapsed","isDisabled","isVisible"],events:[]};exports.AccordionPane=react_1.forwardRef((function(e,t){var a=wijmo_react_base_1.useWjComponentChildBase({ref:t,properties:exports.AccordionPaneMeta.inputs,events:exports.AccordionPaneMeta.events,props:e,constructor:wjcNav.AccordionPane,needParentInstance:!1,parentProp:"panes",isParentPropArray:!0,assignedToParent:!0,customConstructor:function(e,t){(null==e.selectedIndex||e.selectedIndex<0)&&(e.selectedIndex=0);return new wjcNav.AccordionPane(document.createElement("div"),document.createElement("div"))},customProps:{children:function(e,t){e.header.classList.forEach((function(t){t.startsWith("wj")||e.header.classList.remove(t)}));e.content.classList.forEach((function(t){t.startsWith("wj")||e.header.classList.remove(t)}));var a="";t[0].props&&t[0].props.className&&(a=t[0].props.className);wjcCore.addClass(e.header,a);t[1].props&&t[1].props.bodyClass&&(a=t[1].props.bodyClass);wjcCore.addClass(e.content,"");wijmo_react_base_1.selectiveDomRender(t[0],e.header);wijmo_react_base_1.selectiveDomRender(t[1],e.content)}}});return __assign({$_wjComponent:!0},a)}));
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@mescius/wijmo.react.nav",
3
- "version": "5.20241.9-rc",
3
+ "version": "5.20241.9-temp1-nightly.d20240524.t154527",
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.20241.9-rc",
11
- "@mescius/wijmo.nav": "5.20241.9-rc",
12
- "@mescius/wijmo.react.base": "5.20241.9-rc"
10
+ "@mescius/wijmo": "5.20241.9-temp1-nightly.d20240524.t154527",
11
+ "@mescius/wijmo.nav": "5.20241.9-temp1-nightly.d20240524.t154527",
12
+ "@mescius/wijmo.react.base": "5.20241.9-temp1-nightly.d20240524.t154527"
13
13
  },
14
14
  "homepage": "https://developer.mescius.com/wijmo",
15
15
  "bugs": {