primevue-mirror/src/AppMenu.vue

286 lines
16 KiB
Vue
Raw Normal View History

<template>
<div :class="['layout-sidebar', {'active': active}]">
2018-12-06 19:23:02 +00:00
<div class="layout-menu">
2020-06-17 19:21:22 +00:00
<div class="menu-category">General</div>
<div class="menu-items">
2020-07-12 20:23:53 +00:00
<router-link to="/setup">Get Started</router-link>
2020-08-04 11:48:44 +00:00
<a href="https://forum.primefaces.org/viewforum.php?f=110" target="_blank">Community Forum</a>
<a href="https://github.com/primefaces/primevue" target="_blank">Source Code</a>
2020-07-12 20:21:17 +00:00
<router-link to="/support">Support</router-link>
2020-08-04 11:48:44 +00:00
<a href="https://www.primefaces.org/store" target="_blank">Store</a>
2020-07-12 20:21:17 +00:00
</div>
<div class="menu-category">Theming</div>
<div class="menu-items">
2020-08-04 11:48:44 +00:00
<router-link to="/theming">Guide</router-link>
2020-07-12 20:21:17 +00:00
<a href="https://www.primefaces.org/designer/primevue">Theme Designer</a>
<a href="https://www.primefaces.org/designer-vue">Visual Editor</a>
2020-08-05 07:52:31 +00:00
<a href="https://www.primefaces.org/designer/api/primevue/2.0.1">SASS API</a>
</div>
2020-07-02 11:36:26 +00:00
<div class="menu-category">PrimeFlex</div>
2020-06-17 19:21:22 +00:00
<div class="menu-items">
2020-08-27 08:52:20 +00:00
<router-link to="/primeflex">Setup</router-link>
2020-07-02 11:14:06 +00:00
<router-link to="/display">Display</router-link>
2020-06-16 20:14:57 +00:00
<router-link to="/elevation">Elevation</router-link>
2020-07-02 11:14:06 +00:00
<router-link to="/flexbox">FlexBox</router-link>
2020-08-04 11:38:58 +00:00
<router-link to="/formlayout">Form Layout</router-link>
2020-07-02 11:43:02 +00:00
<router-link to="/grid">Grid System</router-link>
2020-06-16 20:14:57 +00:00
<router-link to="/spacing">Spacing</router-link>
2020-07-02 11:14:06 +00:00
<router-link to="/text">Text</router-link>
2020-05-12 08:31:09 +00:00
</div>
2020-07-02 11:36:26 +00:00
<div class="menu-category">PrimeIcons</div>
<div class="menu-items">
<router-link to="/icons">Icons v4.0</router-link>
</div>
2020-06-17 19:21:22 +00:00
<div class="menu-category">Form</div>
<div class="menu-items">
2019-12-10 08:26:05 +00:00
<router-link to="/autocomplete">AutoComplete</router-link>
<router-link to="/calendar">Calendar</router-link>
<router-link to="/checkbox">Checkbox</router-link>
<router-link to="/chips">Chips</router-link>
2020-01-13 07:46:42 +00:00
<router-link to="/colorpicker">ColorPicker</router-link>
2019-12-10 08:26:05 +00:00
<router-link to="/dropdown">Dropdown</router-link>
<router-link to="/editor">Editor</router-link>
<router-link to="/inputgroup">InputGroup</router-link>
<router-link to="/inputmask">InputMask</router-link>
2020-04-18 10:11:58 +00:00
<router-link to="/inputnumber">InputNumber</router-link>
2019-12-10 08:26:05 +00:00
<router-link to="/inputswitch">InputSwitch</router-link>
<router-link to="/inputtext">InputText</router-link>
<router-link to="/floatlabel">FloatLabel</router-link>
2019-12-10 08:26:05 +00:00
<router-link to="/listbox">Listbox</router-link>
<router-link to="/multiselect">MultiSelect</router-link>
<router-link to="/password">Password</router-link>
<router-link to="/radiobutton">RadioButton</router-link>
<router-link to="/rating">Rating</router-link>
<router-link to="/selectbutton">SelectButton</router-link>
<router-link to="/slider">Slider</router-link>
<router-link to="/textarea">Textarea</router-link>
<router-link to="/togglebutton">ToggleButton</router-link>
2020-05-27 06:59:59 +00:00
<router-link to="/tristatecheckbox">TriStateCheckbox</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:23:02 +00:00
2020-06-17 19:21:22 +00:00
<div class="menu-category">Button</div>
<div class="menu-items">
2019-12-10 08:26:05 +00:00
<router-link to="/button">Button</router-link>
<router-link to="/splitbutton">SplitButton</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:33:54 +00:00
2020-06-17 19:21:22 +00:00
<div class="menu-category">Data</div>
<div class="menu-items">
2020-05-15 15:43:15 +00:00
<router-link to="/datatable" v-slot="{ href, route, navigate, isActive }">
2020-05-22 10:46:15 +00:00
<div>
<a tabindex="0" @click="toggleSubmenu($event, 'datatable')">DataTable</a>
<transition name="p-toggleable-content">
<div class="p-toggleable-content" v-show="isSubmenuActive('datatable', isActive)">
<ul>
<li><router-link to="/datatable">Documentation</router-link></li>
<li><router-link to="/datatable/basic">Basic</router-link></li>
<li><router-link to="/datatable/dynamiccolumns">Dynamic</router-link></li>
<li><router-link to="/datatable/templating">Templating</router-link></li>
<li><router-link to="/datatable/size">Size</router-link></li>
2020-06-17 13:57:27 +00:00
<li><router-link to="/datatable/gridlines">GridLines</router-link></li>
<li><router-link to="/datatable/striped">Striped</router-link></li>
2020-05-22 10:46:15 +00:00
<li><router-link to="/datatable/colgroup">ColGroup</router-link></li>
<li><router-link to="/datatable/paginator">Paginator</router-link></li>
<li><router-link to="/datatable/sort">Sort</router-link></li>
<li><router-link to="/datatable/filter">Filter</router-link></li>
<li><router-link to="/datatable/selection">Selection</router-link></li>
<li><router-link to="/datatable/lazy">Lazy</router-link></li>
<li><router-link to="/datatable/scroll">Scroll</router-link></li>
<li><router-link to="/datatable/flexscroll">FlexScroll</router-link></li>
2020-05-22 10:46:15 +00:00
<li><router-link to="/datatable/rowexpand">Expand</router-link></li>
<li><router-link to="/datatable/edit">Edit</router-link></li>
<li><router-link to="/datatable/coltoggle">ColToggle</router-link></li>
<li><router-link to="/datatable/colresize">ColResize</router-link></li>
<li><router-link to="/datatable/reorder">Reorder</router-link></li>
<li><router-link to="/datatable/rowgroup">RowGroup</router-link></li>
<li><router-link to="/datatable/contextmenu">ContextMenu</router-link></li>
<li><router-link to="/datatable/responsive">Responsive</router-link></li>
<li><router-link to="/datatable/export">Export</router-link></li>
<li><router-link to="/datatable/state">State</router-link></li>
<li><router-link to="/datatable/style">Style</router-link></li>
<li><router-link to="/datatable/crud">Crud</router-link></li>
</ul>
</div>
</transition>
</div>
2020-05-15 15:43:15 +00:00
</router-link>
2020-05-13 07:58:42 +00:00
2019-12-10 08:26:05 +00:00
<router-link to="/dataview">DataView</router-link>
<router-link to="/fullcalendar">FullCalendar</router-link>
<router-link to="/orderlist">OrderList</router-link>
2019-12-26 18:32:05 +00:00
<router-link to="/organizationchart">OrganizationChart</router-link>
2019-12-10 08:26:05 +00:00
<router-link to="/paginator">Paginator</router-link>
<router-link to="/picklist">PickList</router-link>
2020-05-15 15:43:15 +00:00
<router-link to="/tree" v-slot="{ href, route, navigate, isActive }">
2020-05-22 10:46:15 +00:00
<div>
<a tabindex="0" @click="toggleSubmenu($event, 'tree')">Tree</a>
<transition name="p-toggleable-content">
<div class="p-toggleable-content" v-show="isSubmenuActive('tree', isActive)">
<ul>
<li><router-link to="/tree">Documentation</router-link></li>
<li><router-link to="/tree/selection">Selection</router-link></li>
<li><router-link to="/tree/lazy">Lazy</router-link></li>
<li><router-link to="/tree/templating">Templating</router-link></li>
<li><router-link to="/tree/filter">Filter</router-link></li>
</ul>
</div>
</transition>
</div>
2020-05-15 15:43:15 +00:00
</router-link>
<router-link to="/treetable" v-slot="{ href, route, navigate, isActive }">
2020-05-22 10:46:15 +00:00
<div>
<a tabindex="0" @click="toggleSubmenu($event, 'treetable')">TreeTable</a>
<transition name="p-toggleable-content">
<div class="p-toggleable-content" v-show="isSubmenuActive('treetable', isActive)">
<ul>
<li><router-link to="/treetable">Documentation</router-link></li>
<li><router-link to="/treetable/templating">Templating</router-link></li>
<li><router-link to="/treetable/size">Size</router-link></li>
<li><router-link to="/treetable/paginator">Paginator</router-link></li>
<li><router-link to="/treetable/sort">Sort</router-link></li>
<li><router-link to="/treetable/filter">Filter</router-link></li>
<li><router-link to="/treetable/selection">Selection</router-link></li>
<li><router-link to="/treetable/lazy">Lazy</router-link></li>
<li><router-link to="/treetable/coltoggle">ColToggle</router-link></li>
<li><router-link to="/treetable/colresize">Resize</router-link></li>
<li><router-link to="/treetable/responsive">Responsive</router-link></li>
</ul>
</div>
</transition>
</div>
2020-05-15 15:43:15 +00:00
</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:33:54 +00:00
2020-06-17 19:21:22 +00:00
<div class="menu-category">Panel</div>
<div class="menu-items">
2019-12-10 08:26:05 +00:00
<router-link to="/accordion">Accordion</router-link>
<router-link to="/card">Card</router-link>
<router-link to="/deferredcontent">Deferred</router-link>
<router-link to="/fieldset">Fieldset</router-link>
<router-link to="/panel">Panel</router-link>
<router-link to="/scrollpanel">ScrollPanel</router-link>
2019-12-10 08:26:05 +00:00
<router-link to="/tabview">TabView</router-link>
<router-link to="/toolbar">Toolbar</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:33:54 +00:00
2020-06-17 19:21:22 +00:00
<div class="menu-category">Overlay</div>
<div class="menu-items">
2019-12-10 08:26:05 +00:00
<router-link to="/dialog">Dialog</router-link>
<router-link to="/overlaypanel">OverlayPanel</router-link>
<router-link to="/sidebar">Sidebar</router-link>
2020-05-22 10:46:15 +00:00
<router-link to="/tooltip">Tooltip</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:33:54 +00:00
2020-06-17 19:21:22 +00:00
<div class="menu-category">File</div>
<div class="menu-items">
2019-12-10 08:26:05 +00:00
<router-link to="/fileupload">Upload</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:33:54 +00:00
2020-06-17 19:21:22 +00:00
<div class="menu-category">Menu</div>
<div class="menu-items">
2019-12-10 08:26:05 +00:00
<router-link to="/menumodel">MenuModel</router-link>
<router-link to="/breadcrumb">Breadcrumb</router-link>
<router-link to="/contextmenu">ContextMenu</router-link>
<router-link to="/megamenu">MegaMenu</router-link>
<router-link to="/menu">Menu</router-link>
<router-link to="/menubar">Menubar</router-link>
<router-link to="/panelmenu">PanelMenu</router-link>
<router-link to="/steps">Steps</router-link>
<router-link to="/tabmenu">TabMenu</router-link>
<router-link to="/tieredmenu">TieredMenu</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:33:54 +00:00
2020-06-17 19:21:22 +00:00
<div class="menu-category">Chart</div>
<div class="menu-items">
2019-12-10 08:26:05 +00:00
<router-link to="/chart">ChartModel</router-link>
<router-link to="/chart/pie">Pie</router-link>
<router-link to="/chart/doughnut">Doughnut</router-link>
<router-link to="/chart/bar">Bar</router-link>
<router-link to="/chart/line">Line</router-link>
<router-link to="/chart/polararea">PolarArea</router-link>
<router-link to="/chart/radar">Radar</router-link>
<router-link to="/chart/combo">Combo</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:33:54 +00:00
2020-06-17 19:21:22 +00:00
<div class="menu-category">Messages</div>
<div class="menu-items">
2019-12-10 08:26:05 +00:00
<router-link to="/message">Message</router-link>
<router-link to="/toast">Toast</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:33:54 +00:00
2020-06-17 19:21:22 +00:00
<div class="menu-category">Media</div>
<div class="menu-items">
2020-06-27 09:36:55 +00:00
<router-link to="/carousel">Carousel</router-link>
2020-05-15 15:43:15 +00:00
<router-link to="/galleria" v-slot="{ href, route, navigate, isActive }">
2020-05-22 10:46:15 +00:00
<div>
<a tabindex="0" @click="toggleSubmenu($event, 'galleria')">Galleria</a>
<transition name="p-toggleable-content">
<div class="p-toggleable-content" v-show="isSubmenuActive('galleria', isActive)">
<ul>
<li><router-link to="/galleria">Documentation</router-link></li>
<li><router-link to="/galleria/programmatic">Programmatic</router-link></li>
<li><router-link to="/galleria/indicator">Indicator</router-link></li>
<li><router-link to="/galleria/thumbnail">Thumbnail</router-link></li>
<li><router-link to="/galleria/navigator">Navigator</router-link></li>
<li><router-link to="/galleria/responsive">Responsive</router-link></li>
<li><router-link to="/galleria/fullscreen">FullScreen</router-link></li>
<li><router-link to="/galleria/autoplay">AutoPlay</router-link></li>
<li><router-link to="/galleria/caption">Caption</router-link></li>
<li><router-link to="/galleria/advanced">Advanced</router-link></li>
</ul>
</div>
</transition>
</div>
2020-05-15 15:43:15 +00:00
</router-link>
2020-03-31 13:27:54 +00:00
</div>
2020-06-17 19:21:22 +00:00
<div class="menu-category">Misc</div>
<div class="menu-items">
2020-07-12 20:21:17 +00:00
<router-link to="/accessibility">Accessibility</router-link>
2020-05-08 23:19:35 +00:00
<router-link to="/badge">Badge</router-link>
2020-03-16 11:18:22 +00:00
<router-link to="/blockui">BlockUI</router-link>
2019-12-10 08:26:05 +00:00
<router-link to="/inplace">Inplace</router-link>
<router-link to="/progressbar">ProgressBar</router-link>
<router-link to="/progressspinner">ProgressSpinner</router-link>
2020-07-04 19:13:12 +00:00
<router-link to="/ripple">Ripple</router-link>
2020-03-16 14:09:38 +00:00
<router-link to="/terminal">Terminal</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:23:02 +00:00
</div>
</div>
</template>
<script>
export default {
2018-12-26 09:36:00 +00:00
props: {
2018-12-26 12:24:18 +00:00
active: Boolean
2018-12-26 09:36:00 +00:00
},
2018-12-06 19:23:02 +00:00
data() {
return {
2020-05-14 07:27:08 +00:00
activeSubmenus: {}
2018-12-06 19:23:02 +00:00
}
},
methods: {
2020-05-14 07:27:08 +00:00
toggleSubmenu(event, name) {
this.activeSubmenus[name] = this.activeSubmenus[name] ? false: true;
this.activeSubmenus = {...this.activeSubmenus};
event.preventDefault();
2020-05-15 15:43:15 +00:00
},
isSubmenuActive(name, routerIsActive) {
2020-05-27 06:55:53 +00:00
if (this.activeSubmenus.hasOwnProperty(name)) {
return this.activeSubmenus[name];
}
else if (routerIsActive) {
this.activeSubmenus[name] = true;
return true;
}
return false;
2018-12-06 19:23:02 +00:00
}
}
}
2020-03-31 13:27:54 +00:00
</script>