@mescius/wijmo.react.nav 5.20241.10-nightly.d20240427.t020122 → 5.20241.10-nightly.d20240430.t020132

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.10-nightly.d20240427.t020122
3
+ * Wijmo Library 5.20241.10-nightly.d20240430.t020132
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 n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});const wijmo_react_base_1=require("@mescius/wijmo.react.base"),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"]};function TreeView(e){return wijmo_react_base_1.useWjComponentBase({properties:exports.TreeViewMeta.inputs,events:exports.TreeViewMeta.events,props:e,constructor:wjcNav.TreeView}).renderResult}exports.TreeView=TreeView;exports.TabPanelMeta={inputs:[...wijmo_react_base_1.ControlBaseMeta.inputs,"autoSwitch","isAnimated","selectedIndex","selectedTab"],events:[...wijmo_react_base_1.ControlBaseMeta.events,"selectedIndexChanged"]};function TabPanel(e){return wijmo_react_base_1.useWjComponentBase({properties:exports.TabPanelMeta.inputs,events:exports.TabPanelMeta.events,props:e,constructor:wjcNav.TabPanel}).renderResult}exports.TabPanel=TabPanel;exports.TabMeta={inputs:["isDisabled","isVisible"],events:[]};function Tab(e){const t=wijmo_react_base_1.useWjComponentChildBase({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},t)}exports.Tab=Tab;exports.AccordionMeta={inputs:[...wijmo_react_base_1.ControlBaseMeta.inputs,"allowCollapseAll","allowExpandMany","autoSwitch","isAnimated","selectedIndex","selectedPane","showIcons"],events:[...wijmo_react_base_1.ControlBaseMeta.events,"selectedIndexChanged"]};function Accordion(e){return wijmo_react_base_1.useWjComponentBase({properties:exports.AccordionMeta.inputs,events:exports.AccordionMeta.events,props:e,constructor:wjcNav.Accordion}).renderResult}exports.Accordion=Accordion;exports.AccordionPaneMeta={inputs:["isCollapsed","isDisabled","isVisible"],events:[]};function AccordionPane(e){const t=wijmo_react_base_1.useWjComponentChildBase({properties:exports.AccordionPaneMeta.inputs,events:exports.AccordionPaneMeta.events,props:e,constructor:wjcNav.AccordionPane,needParentInstance:!1,parentProp:"panes",isParentPropArray:!0,assignedToParent:!0,customConstructor:(e,t)=>new wjcNav.AccordionPane(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.content)}}});return Object.assign({$_wjComponent:!0},t)}exports.AccordionPane=AccordionPane;
package/es2015-esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20241.10-nightly.d20240427.t020122
3
+ * Wijmo Library 5.20241.10-nightly.d20240430.t020132
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{ControlBaseMeta,selectiveDomRender,useWjComponentBase,useWjComponentChildBase}from"@mescius/wijmo.react.base";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 function TreeView(e){return useWjComponentBase({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 function TabPanel(e){return useWjComponentBase({properties:TabPanelMeta.inputs,events:TabPanelMeta.events,props:e,constructor:wjcNav.TabPanel}).renderResult}export const TabMeta={inputs:["isDisabled","isVisible"],events:[]};export function Tab(e){const t=useWjComponentChildBase({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},t)}export const AccordionMeta={inputs:[...ControlBaseMeta.inputs,"allowCollapseAll","allowExpandMany","autoSwitch","isAnimated","selectedIndex","selectedPane","showIcons"],events:[...ControlBaseMeta.events,"selectedIndexChanged"]};export function Accordion(e){return useWjComponentBase({properties:AccordionMeta.inputs,events:AccordionMeta.events,props:e,constructor:wjcNav.Accordion}).renderResult}export const AccordionPaneMeta={inputs:["isCollapsed","isDisabled","isVisible"],events:[]};export function AccordionPane(e){const t=useWjComponentChildBase({properties:AccordionPaneMeta.inputs,events:AccordionPaneMeta.events,props:e,constructor:wjcNav.AccordionPane,needParentInstance:!1,parentProp:"panes",isParentPropArray:!0,assignedToParent:!0,customConstructor:(e,t)=>new wjcNav.AccordionPane(document.createElement("div"),document.createElement("div")),customProps:{children:(e,t)=>{selectiveDomRender(t[0],e.header);selectiveDomRender(t[1],e.content)}}});return Object.assign({$_wjComponent:!0},t)}
package/es5-esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20241.10-nightly.d20240427.t020122
3
+ * Wijmo Library 5.20241.10-nightly.d20240430.t020132
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{ControlBaseMeta,selectiveDomRender,useWjComponentBase,useWjComponentChildBase}from"@mescius/wijmo.react.base";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 function TreeView(e){return useWjComponentBase({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 function TabPanel(e){return useWjComponentBase({properties:TabPanelMeta.inputs,events:TabPanelMeta.events,props:e,constructor:wjcNav.TabPanel}).renderResult}export var TabMeta={inputs:["isDisabled","isVisible"],events:[]};export function Tab(e){var t=useWjComponentChildBase({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},t)}export var AccordionMeta={inputs:ControlBaseMeta.inputs.concat(["allowCollapseAll","allowExpandMany","autoSwitch","isAnimated","selectedIndex","selectedPane","showIcons"]),events:ControlBaseMeta.events.concat(["selectedIndexChanged"])};export function Accordion(e){return useWjComponentBase({properties:AccordionMeta.inputs,events:AccordionMeta.events,props:e,constructor:wjcNav.Accordion}).renderResult}export var AccordionPaneMeta={inputs:["isCollapsed","isDisabled","isVisible"],events:[]};export function AccordionPane(e){var t=useWjComponentChildBase({properties:AccordionPaneMeta.inputs,events:AccordionPaneMeta.events,props:e,constructor:wjcNav.AccordionPane,needParentInstance:!1,parentProp:"panes",isParentPropArray:!0,assignedToParent:!0,customConstructor:function(e,t){return new wjcNav.AccordionPane(document.createElement("div"),document.createElement("div"))},customProps:{children:function(e,t){selectiveDomRender(t[0],e.header);selectiveDomRender(t[1],e.content)}}});return __assign({$_wjComponent:!0},t)}
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20241.10-nightly.d20240427.t020122
3
+ * Wijmo Library 5.20241.10-nightly.d20240430.t020132
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -18,7 +18,56 @@
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 wjcCore from '@mescius/wijmo';
23
+ import * as wjcNav from '@mescius/wijmo.nav';
24
+ export declare type TreeViewProps = ControlBaseProps & {
25
+ allowDragging?: boolean;
26
+ autoCollapse?: boolean;
27
+ checkOnClick?: boolean;
28
+ checkedMemberPath?: string | string[];
29
+ childItemsPath?: string | string[];
30
+ collapseOnClick?: boolean;
31
+ collapseWhenDisabled?: boolean;
32
+ displayMemberPath?: string | string[];
33
+ expandOnClick?: boolean;
34
+ expandOnLoad?: boolean;
35
+ imageMemberPath?: string | string[];
36
+ isAnimated?: boolean;
37
+ isContentHtml?: boolean;
38
+ isReadOnly?: boolean;
39
+ itemsSource?: any[];
40
+ lazyLoadFunction?: wjcNav.ILazyLoad;
41
+ selectedItem?: any;
42
+ selectedNode?: wjcNav.TreeNode;
43
+ showCheckboxes?: boolean;
44
+ totalItemCount?: number;
45
+ };
46
+ export declare type TreeViewEvents<T> = ControlBaseEvents<T> & {
47
+ checkedItemsChanged?: wjcCore.IEventHandler<T, wjcCore.EventArgs>;
48
+ dragEnd?: wjcCore.IEventHandler<T, wjcCore.EventArgs>;
49
+ dragOver?: wjcCore.IEventHandler<T, wjcNav.TreeNodeDragDropEventArgs>;
50
+ dragStart?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
51
+ drop?: wjcCore.IEventHandler<T, wjcNav.TreeNodeDragDropEventArgs>;
52
+ formatItem?: wjcCore.IEventHandler<T, wjcNav.FormatNodeEventArgs>;
53
+ isCheckedChanged?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
54
+ isCheckedChanging?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
55
+ isCollapsedChanged?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
56
+ isCollapsedChanging?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
57
+ itemClicked?: wjcCore.IEventHandler<T, wjcCore.EventArgs>;
58
+ itemsSourceChanged?: wjcCore.IEventHandler<T, wjcCore.EventArgs>;
59
+ loadedItems?: wjcCore.IEventHandler<T, wjcCore.EventArgs>;
60
+ loadingItems?: wjcCore.IEventHandler<T, wjcCore.CancelEventArgs>;
61
+ nodeEditEnded?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
62
+ nodeEditEnding?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
63
+ nodeEditStarted?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
64
+ nodeEditStarting?: wjcCore.IEventHandler<T, wjcNav.TreeNodeEventArgs>;
65
+ selectedItemChanged?: wjcCore.IEventHandler<T, wjcCore.EventArgs>;
66
+ };
67
+ export declare const TreeViewMeta: {
68
+ inputs: string[];
69
+ events: string[];
70
+ };
22
71
  /**
23
72
  * React component for the {@link wijmo.nav.TreeView} control.
24
73
  *
@@ -28,60 +77,20 @@ import { ComponentBase } from '@mescius/wijmo.react.base';
28
77
  * You can use this event to perform further initialization in addition to setting properties in JSX.
29
78
  * The signature of the handler function is the same as any other Wijmo event handlers.
30
79
  */
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
- }
80
+ export declare function TreeView(props: TreeViewProps & TreeViewEvents<wjcNav.TreeView>): any;
81
+ export declare type TabPanelProps = ControlBaseProps & {
82
+ autoSwitch?: boolean;
83
+ isAnimated?: boolean;
84
+ selectedIndex?: number;
85
+ selectedTab?: wjcNav.Tab;
86
+ };
87
+ export declare type TabPanelEvents<T> = ControlBaseEvents<T> & {
88
+ selectedIndexChanged?: wjcCore.IEventHandler<T, wjcCore.EventArgs>;
89
+ };
90
+ export declare const TabPanelMeta: {
91
+ inputs: string[];
92
+ events: string[];
93
+ };
85
94
  /**
86
95
  * React component for the {@link wijmo.nav.TabPanel} control.
87
96
  *
@@ -94,29 +103,16 @@ export declare class TreeView extends ComponentBase {
94
103
  * You can use this event to perform further initialization in addition to setting properties in JSX.
95
104
  * The signature of the handler function is the same as any other Wijmo event handlers.
96
105
  */
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
- }
106
+ export declare function TabPanel(props: TabPanelProps & TabPanelEvents<wjcNav.TabPanel>): any;
107
+ export declare type TabProps = {
108
+ isDisabled?: boolean;
109
+ isVisible?: boolean;
110
+ };
111
+ export declare type TabEvents<T> = {};
112
+ export declare const TabMeta: {
113
+ inputs: string[];
114
+ events: any[];
115
+ };
120
116
  /**
121
117
  * React component for the {@link wijmo.nav.Tab} class.
122
118
  *
@@ -129,20 +125,23 @@ export declare class TabPanel extends ComponentBase {
129
125
  * You can use this event to perform further initialization in addition to setting properties in JSX.
130
126
  * The signature of the handler function is the same as any other Wijmo event handlers.
131
127
  */
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
- }
128
+ export declare function Tab(props: TabProps & TabEvents<wjcNav.Tab>): any;
129
+ export declare type AccordionProps = ControlBaseProps & {
130
+ allowCollapseAll?: boolean;
131
+ allowExpandMany?: boolean;
132
+ autoSwitch?: boolean;
133
+ isAnimated?: boolean;
134
+ selectedIndex?: number;
135
+ selectedPane?: wjcNav.AccordionPane;
136
+ showIcons?: boolean;
137
+ };
138
+ export declare type AccordionEvents<T> = ControlBaseEvents<T> & {
139
+ selectedIndexChanged?: wjcCore.IEventHandler<T, wjcCore.EventArgs>;
140
+ };
141
+ export declare const AccordionMeta: {
142
+ inputs: string[];
143
+ events: string[];
144
+ };
146
145
  /**
147
146
  * React component for the {@link wijmo.nav.Accordion} control.
148
147
  *
@@ -155,32 +154,17 @@ export declare class Tab extends ComponentBase {
155
154
  * You can use this event to perform further initialization in addition to setting properties in JSX.
156
155
  * The signature of the handler function is the same as any other Wijmo event handlers.
157
156
  */
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
- }
157
+ export declare function Accordion(props: AccordionProps & AccordionEvents<wjcNav.Accordion>): any;
158
+ export declare type AccordionPaneProps = {
159
+ isCollapsed?: boolean;
160
+ isDisabled?: boolean;
161
+ isVisible?: boolean;
162
+ };
163
+ export declare type AccordionPaneEvents<T> = {};
164
+ export declare const AccordionPaneMeta: {
165
+ inputs: string[];
166
+ events: any[];
167
+ };
184
168
  /**
185
169
  * React component for the {@link wijmo.nav.AccordionPane} class.
186
170
  *
@@ -193,18 +177,4 @@ export declare class Accordion extends ComponentBase {
193
177
  * You can use this event to perform further initialization in addition to setting properties in JSX.
194
178
  * The signature of the handler function is the same as any other Wijmo event handlers.
195
179
  */
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
- }
180
+ export declare function AccordionPane(props: AccordionPaneProps & AccordionPaneEvents<wjcNav.AccordionPane>): any;
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20241.10-nightly.d20240427.t020122
3
+ * Wijmo Library 5.20241.10-nightly.d20240430.t020132
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,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)},__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"),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"])};function TreeView(e){return wijmo_react_base_1.useWjComponentBase({properties:exports.TreeViewMeta.inputs,events:exports.TreeViewMeta.events,props:e,constructor:wjcNav.TreeView}).renderResult}exports.TreeView=TreeView;exports.TabPanelMeta={inputs:wijmo_react_base_1.ControlBaseMeta.inputs.concat(["autoSwitch","isAnimated","selectedIndex","selectedTab"]),events:wijmo_react_base_1.ControlBaseMeta.events.concat(["selectedIndexChanged"])};function TabPanel(e){return wijmo_react_base_1.useWjComponentBase({properties:exports.TabPanelMeta.inputs,events:exports.TabPanelMeta.events,props:e,constructor:wjcNav.TabPanel}).renderResult}exports.TabPanel=TabPanel;exports.TabMeta={inputs:["isDisabled","isVisible"],events:[]};function Tab(e){var t=wijmo_react_base_1.useWjComponentChildBase({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},t)}exports.Tab=Tab;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"])};function Accordion(e){return wijmo_react_base_1.useWjComponentBase({properties:exports.AccordionMeta.inputs,events:exports.AccordionMeta.events,props:e,constructor:wjcNav.Accordion}).renderResult}exports.Accordion=Accordion;exports.AccordionPaneMeta={inputs:["isCollapsed","isDisabled","isVisible"],events:[]};function AccordionPane(e){var t=wijmo_react_base_1.useWjComponentChildBase({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){return new wjcNav.AccordionPane(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.content)}}});return __assign({$_wjComponent:!0},t)}exports.AccordionPane=AccordionPane;
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@mescius/wijmo.react.nav",
3
- "version": "5.20241.10-nightly.d20240427.t020122",
3
+ "version": "5.20241.10-nightly.d20240430.t020132",
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.10-nightly.d20240427.t020122",
11
- "@mescius/wijmo.nav": "5.20241.10-nightly.d20240427.t020122",
12
- "@mescius/wijmo.react.base": "5.20241.10-nightly.d20240427.t020122"
10
+ "@mescius/wijmo": "5.20241.10-nightly.d20240430.t020132",
11
+ "@mescius/wijmo.nav": "5.20241.10-nightly.d20240430.t020132",
12
+ "@mescius/wijmo.react.base": "5.20241.10-nightly.d20240430.t020132"
13
13
  },
14
14
  "homepage": "https://developer.mescius.com/wijmo",
15
15
  "bugs": {