UNPKG

@syncfusion/ej2-react-navigations

Version:

A package of Essential JS 2 navigation components such as Tree-view, Tab, Toolbar, Context-menu, and Accordion which is used to navigate from one page to another for React

10 lines 18.3 kB
/*! * filename: ej2-react-navigations.min.js * version : 31.2.3 * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing * licensing@syncfusion.com. Any infringement will be prosecuted under * applicable laws. */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionReactBase"),require("React"),require("SyncfusionNavigations")):"function"==typeof define&&define.amd?define(["SyncfusionReactBase","React","SyncfusionNavigations"],e):"object"==typeof exports?exports.SyncfusionReactNavigations=e(require("SyncfusionReactBase"),require("React"),require("SyncfusionNavigations")):t.SyncfusionReactNavigations=e(t.SyncfusionReactBase,t.React,t.SyncfusionNavigations)}(self,(t,e,n)=>(()=>{"use strict";var r={459:(t,e,n)=>{n.d(e,{Zf:()=>l,uQ:()=>c,xG:()=>s});var r,o=n(705),i=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.moduleName="accordionItem",e}(o.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="items",e.moduleName="accordionItems",e}(o.ComplexBase),p=n(24),a=n(215),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.directivekeys={accordionItems:"accordionItem"},n.statelessTemplateProps=["itemTemplate","headerTemplate"],n.templateProps=null,n.immediateRender=!1,n.isReactMock=!0,n.portals=[],n}return u(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return p.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(a.Accordion);(0,o.applyMixins)(l,[o.ComponentBase,p.Component])},598:(t,e,n)=>{n.d(e,{b:()=>p});var r,o=n(24),i=n(215),c=n(705),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!0,n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!0,n.isReactMock=!0,n.portals=[],n}return s(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement("header",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.AppBar);(0,c.applyMixins)(p,[c.ComponentBase,o.Component])},806:(t,e,n)=>{n.d(e,{LI:()=>l,Of:()=>c,kx:()=>s});var r,o=n(705),i=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.moduleName="breadcrumbItem",e}(o.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="items",e.moduleName="breadcrumbItems",e}(o.ComplexBase),p=n(24),a=n(215),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.directivekeys={breadcrumbItems:"breadcrumbItem"},n.statelessTemplateProps=["itemTemplate"],n.templateProps=null,n.immediateRender=!1,n.isReactMock=!0,n.portals=[],n}return u(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return p.createElement("nav",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(a.Breadcrumb);(0,o.applyMixins)(l,[o.ComponentBase,p.Component])},370:(t,e,n)=>{n.d(e,{Fy:()=>l,DM:()=>c,n9:()=>s});var r,o=n(705),i=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.moduleName="carouselItem",e}(o.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="items",e.moduleName="carouselItems",e}(o.ComplexBase),p=n(24),a=n(215),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.directivekeys={carouselItems:"carouselItem"},n.statelessTemplateProps=["itemTemplate"],n.templateProps=null,n.immediateRender=!1,n.isReactMock=!0,n.portals=[],n}return u(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return p.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(a.Carousel);(0,o.applyMixins)(l,[o.ComponentBase,p.Component])},326:(t,e,n)=>{n.d(e,{G:()=>p});var r,o=n(24),i=n(215),c=n(705),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!0,n.isReactMock=!0,n.portals=[],n}return s(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement("ul",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.ContextMenu);(0,c.applyMixins)(p,[c.ComponentBase,o.Component])},830:(t,e,n)=>{n.d(e,{Mn:()=>l,e6:()=>c,MJ:()=>s});var r,o=n(705),i=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.moduleName="menuItem",e}(o.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="items",e.moduleName="menuItems",e}(o.ComplexBase),p=n(24),a=n(215),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.directivekeys={menuItems:"menuItem"},n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!1,n.isReactMock=!0,n.portals=[],n}return u(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return p.createElement("ul",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(a.Menu);(0,o.applyMixins)(l,[o.ComponentBase,p.Component])},796:(t,e,n)=>{n.d(e,{k:()=>p});var r,o=n(24),i=n(215),c=n(705),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!0,n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!0,n.isReactMock=!0,n.portals=[],n}return s(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.Sidebar);(0,c.applyMixins)(p,[c.ComponentBase,o.Component])},393:(t,e,n)=>{n.d(e,{E5:()=>c,vO:()=>l,dz:()=>s});var r,o=n(705),i=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.moduleName="step",e}(o.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="steps",e.moduleName="steps",e}(o.ComplexBase),p=n(24),a=n(215),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.directivekeys={steps:"step"},n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!1,n.isReactMock=!0,n.portals=[],n}return u(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return p.createElement("nav",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(a.Stepper);(0,o.applyMixins)(l,[o.ComponentBase,p.Component])},950:(t,e,n)=>{n.d(e,{id:()=>l,wv:()=>c,dO:()=>s});var r,o=n(705),i=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.moduleName="tabItem",e.complexTemplate={"header.text":"header.text"},e}(o.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="items",e.moduleName="tabItems",e}(o.ComplexBase),p=n(24),a=n(215),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.directivekeys={tabItems:"tabItem"},n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!1,n.isReactMock=!0,n.portals=[],n}return u(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return p.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(a.Tab);(0,o.applyMixins)(l,[o.ComponentBase,p.Component])},526:(t,e,n)=>{n.d(e,{y4:()=>c,xZ:()=>s,nV:()=>l});var r,o=n(705),i=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.moduleName="item",e}(o.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="items",e.moduleName="items",e}(o.ComplexBase),p=n(24),a=n(215),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.directivekeys={items:"item"},n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!1,n.isReactMock=!0,n.portals=[],n}return u(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return p.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(a.Toolbar);(0,o.applyMixins)(l,[o.ComponentBase,p.Component])},667:(t,e,n)=>{n.d(e,{k:()=>p});var r,o=n(24),i=n(215),c=n(705),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!0,n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!1,n.isReactMock=!0,n.portals=[],n}return s(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.TreeView);(0,c.applyMixins)(p,[c.ComponentBase,o.Component])},24:t=>{t.exports=e},215:t=>{t.exports=n},705:e=>{e.exports=t}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={exports:{}};return r[t](n,n.exports,i),n.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var c={};return(()=>{i.r(c),i.d(c,{AccordionComponent:()=>t.Zf,AccordionItemDirective:()=>t.uQ,AccordionItemsDirective:()=>t.xG,AppBarComponent:()=>l.b,BreadcrumbComponent:()=>r.LI,BreadcrumbItemDirective:()=>r.Of,BreadcrumbItemsDirective:()=>r.kx,CarouselComponent:()=>o.Fy,CarouselItemDirective:()=>o.DM,CarouselItemsDirective:()=>o.n9,ContextMenuComponent:()=>n.G,Inject:()=>d.Inject,ItemDirective:()=>e.y4,ItemsDirective:()=>e.xZ,MenuComponent:()=>u.Mn,MenuItemDirective:()=>u.e6,MenuItemsDirective:()=>u.MJ,SidebarComponent:()=>a.k,StepDirective:()=>f.E5,StepperComponent:()=>f.vO,StepsDirective:()=>f.dz,TabComponent:()=>s.id,TabItemDirective:()=>s.wv,TabItemsDirective:()=>s.dO,ToolbarComponent:()=>e.nV,TreeViewComponent:()=>p.k});var t=i(459),e=i(526),n=i(326),r=i(806),o=i(370),s=i(950),p=i(667),a=i(796),u=i(830),l=i(598),f=i(393),d=i(705),m=i(215),h={};for(const t in m)["default","Inject","AccordionComponent","AccordionItemDirective","AccordionItemsDirective","ItemDirective","ItemsDirective","ToolbarComponent","ContextMenuComponent","BreadcrumbComponent","BreadcrumbItemDirective","BreadcrumbItemsDirective","CarouselComponent","CarouselItemDirective","CarouselItemsDirective","TabComponent","TabItemDirective","TabItemsDirective","TreeViewComponent","SidebarComponent","MenuComponent","MenuItemDirective","MenuItemsDirective","AppBarComponent","StepDirective","StepperComponent","StepsDirective"].indexOf(t)<0&&(h[t]=()=>m[t]);i.d(c,h)})(),c})());