@syncfusion/ej2-navigations 20.1.48 → 20.1.51-10460
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +243 -243
- package/CHANGELOG.md +1601 -1585
- package/README.md +194 -194
- package/dist/ej2-navigations.min.js +1 -0
- package/dist/ej2-navigations.umd.min.js +1 -10
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +78 -76
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +234 -232
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +1 -10
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/dist/ts/accordion/accordion.ts +1545 -0
- package/dist/ts/breadcrumb/breadcrumb.ts +873 -0
- package/dist/ts/carousel/carousel.ts +1181 -0
- package/dist/ts/common/h-scroll.ts +477 -0
- package/dist/ts/common/menu-base.ts +2357 -0
- package/dist/ts/common/menu-scroll.ts +105 -0
- package/dist/ts/common/v-scroll.ts +454 -0
- package/{src/context-menu/context-menu.d.ts → dist/ts/context-menu/context-menu.ts} +134 -88
- package/dist/ts/menu/menu.ts +302 -0
- package/dist/ts/sidebar/sidebar.ts +874 -0
- package/dist/ts/tab/tab.ts +2637 -0
- package/dist/ts/toolbar/toolbar.ts +2378 -0
- package/dist/ts/treeview/treeview.ts +5768 -0
- package/helpers/e2e/accordionHelper.js +70 -53
- package/helpers/e2e/contextmenuHelper.js +52 -35
- package/helpers/e2e/index.js +14 -12
- package/helpers/e2e/menuHelper.js +52 -35
- package/helpers/e2e/sidebarHelper.js +109 -92
- package/helpers/e2e/tabHelper.js +73 -56
- package/helpers/e2e/toolbarHelper.js +73 -56
- package/helpers/e2e/treeview.js +79 -61
- package/license +10 -10
- package/package.json +164 -164
- package/src/accordion/accordion-model.d.ts +190 -190
- package/src/accordion/accordion.js +19 -19
- package/src/breadcrumb/breadcrumb-model.d.ts +105 -105
- package/src/breadcrumb/breadcrumb.js +19 -19
- package/src/carousel/carousel-model.d.ts +148 -148
- package/src/carousel/carousel.js +19 -19
- package/src/common/h-scroll-model.d.ts +6 -6
- package/src/common/h-scroll.js +19 -19
- package/src/common/menu-base-model.d.ts +206 -206
- package/src/common/menu-base.js +22 -20
- package/src/common/v-scroll-model.d.ts +6 -6
- package/src/common/v-scroll.js +19 -19
- package/src/context-menu/context-menu-model.d.ts +18 -18
- package/src/context-menu/context-menu.js +19 -19
- package/src/menu/menu-model.d.ts +43 -43
- package/src/menu/menu.js +19 -19
- package/src/sidebar/sidebar-model.d.ts +191 -191
- package/src/sidebar/sidebar.js +19 -19
- package/src/tab/tab-model.d.ts +291 -291
- package/src/tab/tab.js +21 -21
- package/src/toolbar/toolbar-model.d.ts +195 -195
- package/src/toolbar/toolbar.js +19 -19
- package/src/treeview/treeview-model.d.ts +411 -411
- package/src/treeview/treeview.js +20 -20
- package/styles/accordion/_bds-definition.scss +167 -0
- package/styles/accordion/_bigger.scss +121 -0
- package/styles/accordion/_bootstrap5.3-definition.scss +168 -0
- package/styles/accordion/_fluent2-definition.scss +167 -0
- package/styles/accordion/_fusionnew-definition.scss +168 -0
- package/styles/accordion/_material3-dark-definition.scss +1 -0
- package/styles/accordion/_material3-definition.scss +168 -0
- package/styles/accordion/fluent2.scss +4 -0
- package/styles/accordion/icons/_bds.scss +15 -0
- package/styles/accordion/icons/_bootstrap5.3.scss +15 -0
- package/styles/accordion/icons/_fluent2.scss +15 -0
- package/styles/accordion/icons/_fusionnew.scss +15 -0
- package/styles/accordion/icons/_material3-dark.scss +1 -0
- package/styles/accordion/icons/_material3.scss +15 -0
- package/styles/accordion/material3-dark.scss +4 -0
- package/styles/accordion/material3.scss +4 -0
- package/styles/appbar/_all.scss +2 -0
- package/styles/appbar/_bds-definition.scss +25 -0
- package/styles/appbar/_bigger.scss +15 -0
- package/styles/appbar/_bootstrap-dark-definition.scss +6 -0
- package/styles/appbar/_bootstrap-definition.scss +6 -0
- package/styles/appbar/_bootstrap4-definition.scss +6 -0
- package/styles/appbar/_bootstrap5-definition.scss +6 -0
- package/styles/appbar/_bootstrap5.3-definition.scss +6 -0
- package/styles/appbar/_fabric-dark-definition.scss +6 -0
- package/styles/appbar/_fabric-definition.scss +6 -0
- package/styles/appbar/_fluent-definition.scss +6 -0
- package/styles/appbar/_fluent2-definition.scss +24 -0
- package/styles/appbar/_fusionnew-definition.scss +6 -0
- package/styles/appbar/_highcontrast-definition.scss +6 -0
- package/styles/appbar/_highcontrast-light-definition.scss +6 -0
- package/styles/appbar/_layout.scss +76 -0
- package/styles/appbar/_material-dark-definition.scss +6 -0
- package/styles/appbar/_material-definition.scss +6 -0
- package/styles/appbar/_material3-definition.scss +6 -0
- package/styles/appbar/_tailwind-definition.scss +6 -0
- package/styles/appbar/_theme.scss +216 -0
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/breadcrumb/_bds-definition.scss +60 -0
- package/styles/breadcrumb/_bigger.scss +160 -0
- package/styles/breadcrumb/_bootstrap5.3-definition.scss +61 -0
- package/styles/breadcrumb/_fluent2-definition.scss +61 -0
- package/styles/breadcrumb/_fusionnew-definition.scss +59 -0
- package/styles/breadcrumb/_layout.scss +1 -1
- package/styles/breadcrumb/_material3-dark-definition.scss +1 -0
- package/styles/breadcrumb/_material3-definition.scss +60 -0
- package/styles/breadcrumb/bootstrap-dark.css +1 -1
- package/styles/breadcrumb/bootstrap.css +1 -1
- package/styles/breadcrumb/bootstrap4.css +1 -1
- package/styles/breadcrumb/bootstrap5-dark.css +1 -1
- package/styles/breadcrumb/bootstrap5.css +1 -1
- package/styles/breadcrumb/fabric-dark.css +1 -1
- package/styles/breadcrumb/fabric.css +1 -1
- package/styles/breadcrumb/fluent-dark.css +1 -1
- package/styles/breadcrumb/fluent.css +1 -1
- package/styles/breadcrumb/fluent2.scss +4 -0
- package/styles/breadcrumb/highcontrast-light.css +1 -1
- package/styles/breadcrumb/highcontrast.css +1 -1
- package/styles/breadcrumb/icons/_bds.scss +23 -0
- package/styles/breadcrumb/icons/_bootstrap5.3.scss +23 -0
- package/styles/breadcrumb/icons/_fluent2.scss +23 -0
- package/styles/breadcrumb/icons/_fusionnew.scss +23 -0
- package/styles/breadcrumb/icons/_material3-dark.scss +1 -0
- package/styles/breadcrumb/icons/_material3.scss +12 -0
- package/styles/breadcrumb/material-dark.css +1 -1
- package/styles/breadcrumb/material.css +1 -1
- package/styles/breadcrumb/material3-dark.scss +4 -0
- package/styles/breadcrumb/material3.scss +4 -0
- package/styles/breadcrumb/tailwind-dark.css +1 -1
- package/styles/breadcrumb/tailwind.css +1 -1
- package/styles/carousel/_bds-definition.scss +20 -0
- package/styles/carousel/_bootstrap5.3-definition.scss +20 -0
- package/styles/carousel/_fluent2-definition.scss +23 -0
- package/styles/carousel/_fusionnew-definition.scss +20 -0
- package/styles/carousel/_material3-dark-definition.scss +1 -0
- package/styles/carousel/_material3-definition.scss +21 -0
- package/styles/carousel/fluent2.scss +4 -0
- package/styles/carousel/icons/_bds.scss +30 -0
- package/styles/carousel/icons/_bootstrap5.3.scss +30 -0
- package/styles/carousel/icons/_fluent2.scss +30 -0
- package/styles/carousel/icons/_fusionnew.scss +30 -0
- package/styles/carousel/icons/_material3-dark.scss +1 -0
- package/styles/carousel/icons/_material3.scss +30 -0
- package/styles/carousel/material3-dark.scss +4 -0
- package/styles/carousel/material3.scss +4 -0
- package/styles/context-menu/_bds-definition.scss +68 -0
- package/styles/context-menu/_bigger.scss +96 -0
- package/styles/context-menu/_bootstrap5.3-definition.scss +52 -0
- package/styles/context-menu/_fluent2-definition.scss +52 -0
- package/styles/context-menu/_fusionnew-definition.scss +51 -0
- package/styles/context-menu/_material3-dark-definition.scss +1 -0
- package/styles/context-menu/_material3-definition.scss +51 -0
- package/styles/context-menu/fluent2.scss +4 -0
- package/styles/context-menu/icons/_bds.scss +31 -0
- package/styles/context-menu/icons/_bootstrap5.3.scss +31 -0
- package/styles/context-menu/icons/_fluent2.scss +31 -0
- package/styles/context-menu/icons/_fusionnew.scss +31 -0
- package/styles/context-menu/icons/_material3-dark.scss +1 -0
- package/styles/context-menu/icons/_material3.scss +31 -0
- package/styles/context-menu/material3-dark.scss +4 -0
- package/styles/context-menu/material3.scss +4 -0
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/fluent2.scss +34 -0
- package/styles/h-scroll/_bds-definition.scss +83 -0
- package/styles/h-scroll/_bigger.scss +39 -0
- package/styles/h-scroll/_bootstrap5.3-definition.scss +83 -0
- package/styles/h-scroll/_fluent2-definition.scss +83 -0
- package/styles/h-scroll/_fusionnew-definition.scss +83 -0
- package/styles/h-scroll/_material3-dark-definition.scss +1 -0
- package/styles/h-scroll/_material3-definition.scss +83 -0
- package/styles/h-scroll/fluent2.scss +4 -0
- package/styles/h-scroll/icons/_bds.scss +49 -0
- package/styles/h-scroll/icons/_bootstrap5.3.scss +49 -0
- package/styles/h-scroll/icons/_fluent2.scss +49 -0
- package/styles/h-scroll/icons/_fusionnew.scss +49 -0
- package/styles/h-scroll/icons/_material3-dark.scss +1 -0
- package/styles/h-scroll/icons/_material3.scss +49 -0
- package/styles/h-scroll/material3-dark.scss +4 -0
- package/styles/h-scroll/material3.scss +4 -0
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material.css +1 -1
- package/styles/material3-dark.scss +34 -0
- package/styles/material3.scss +34 -0
- package/styles/menu/_bds-definition.scss +65 -0
- package/styles/menu/_bigger.scss +355 -0
- package/styles/menu/_bootstrap5.3-definition.scss +66 -0
- package/styles/menu/_fluent2-definition.scss +67 -0
- package/styles/menu/_fusionnew-definition.scss +66 -0
- package/styles/menu/_material3-dark-definition.scss +1 -0
- package/styles/menu/_material3-definition.scss +66 -0
- package/styles/menu/fluent2.scss +7 -0
- package/styles/menu/icons/_bds.scss +104 -0
- package/styles/menu/icons/_bootstrap5.3.scss +104 -0
- package/styles/menu/icons/_fluent2.scss +104 -0
- package/styles/menu/icons/_fusionnew.scss +104 -0
- package/styles/menu/icons/_material3-dark.scss +1 -0
- package/styles/menu/icons/_material3.scss +104 -0
- package/styles/menu/material3-dark.scss +7 -0
- package/styles/menu/material3.scss +7 -0
- package/styles/pager/_all.scss +2 -0
- package/styles/pager/_bds-definition.scss +152 -0
- package/styles/pager/_bigger.scss +311 -0
- package/styles/pager/_bootstrap-dark-definition.scss +151 -0
- package/styles/pager/_bootstrap-definition.scss +151 -0
- package/styles/pager/_bootstrap4-definition.scss +151 -0
- package/styles/pager/_bootstrap5-definition.scss +166 -0
- package/styles/pager/_bootstrap5.3-definition.scss +166 -0
- package/styles/pager/_fabric-dark-definition.scss +149 -0
- package/styles/pager/_fabric-definition.scss +149 -0
- package/styles/pager/_fluent-definition.scss +153 -0
- package/styles/pager/_fluent2-definition.scss +152 -0
- package/styles/pager/_fusionnew-definition.scss +166 -0
- package/styles/pager/_highcontrast-definition.scss +149 -0
- package/styles/pager/_highcontrast-light-definition.scss +149 -0
- package/styles/pager/_layout.scss +742 -0
- package/styles/pager/_material-dark-definition.scss +150 -0
- package/styles/pager/_material-definition.scss +150 -0
- package/styles/pager/_material3-definition.scss +166 -0
- package/styles/pager/_tailwind-definition.scss +152 -0
- package/styles/pager/_theme.scss +189 -0
- package/styles/pager/icons/_bds.scss +50 -0
- package/styles/pager/icons/_bootstrap-dark.scss +50 -0
- package/styles/pager/icons/_bootstrap.scss +50 -0
- package/styles/pager/icons/_bootstrap4.scss +50 -0
- package/styles/pager/icons/_bootstrap5.3.scss +50 -0
- package/styles/pager/icons/_bootstrap5.scss +50 -0
- package/styles/pager/icons/_fabric-dark.scss +50 -0
- package/styles/pager/icons/_fabric.scss +50 -0
- package/styles/pager/icons/_fluent.scss +50 -0
- package/styles/pager/icons/_fluent2.scss +50 -0
- package/styles/pager/icons/_fusionnew.scss +50 -0
- package/styles/pager/icons/_highcontrast-light.scss +50 -0
- package/styles/pager/icons/_highcontrast.scss +46 -0
- package/styles/pager/icons/_material-dark.scss +50 -0
- package/styles/pager/icons/_material.scss +46 -0
- package/styles/pager/icons/_material3.scss +50 -0
- package/styles/pager/icons/_tailwind.scss +50 -0
- package/styles/sidebar/_bds-definition.scss +53 -0
- package/styles/sidebar/_bootstrap5.3-definition.scss +6 -0
- package/styles/sidebar/_fluent2-definition.scss +8 -0
- package/styles/sidebar/_fusionnew-definition.scss +6 -0
- package/styles/sidebar/_material3-dark-definition.scss +1 -0
- package/styles/sidebar/_material3-definition.scss +4 -0
- package/styles/sidebar/fluent2.scss +3 -0
- package/styles/sidebar/material3-dark.scss +3 -0
- package/styles/sidebar/material3.scss +3 -0
- package/styles/stepper/_all.scss +2 -0
- package/styles/stepper/_bds-definition.scss +72 -0
- package/styles/stepper/_bigger.scss +53 -0
- package/styles/stepper/_bootstrap-dark-definition.scss +72 -0
- package/styles/stepper/_bootstrap-definition.scss +72 -0
- package/styles/stepper/_bootstrap4-definition.scss +72 -0
- package/styles/stepper/_bootstrap5-definition.scss +73 -0
- package/styles/stepper/_bootstrap5.3-definition.scss +72 -0
- package/styles/stepper/_fabric-dark-definition.scss +72 -0
- package/styles/stepper/_fabric-definition.scss +72 -0
- package/styles/stepper/_fluent-definition.scss +72 -0
- package/styles/stepper/_fluent2-definition.scss +72 -0
- package/styles/stepper/_fusionnew-definition.scss +72 -0
- package/styles/stepper/_highcontrast-definition.scss +72 -0
- package/styles/stepper/_highcontrast-light-definition.scss +72 -0
- package/styles/stepper/_layout.scss +431 -0
- package/styles/stepper/_material-dark-definition.scss +72 -0
- package/styles/stepper/_material-definition.scss +72 -0
- package/styles/stepper/_material3-definition.scss +72 -0
- package/styles/stepper/_tailwind-definition.scss +72 -0
- package/styles/stepper/_theme.scss +195 -0
- package/styles/stepper/icons/_bds.scss +5 -0
- package/styles/stepper/icons/_bootstrap-dark.scss +5 -0
- package/styles/stepper/icons/_bootstrap.scss +5 -0
- package/styles/stepper/icons/_bootstrap4.scss +5 -0
- package/styles/stepper/icons/_bootstrap5.3.scss +5 -0
- package/styles/stepper/icons/_bootstrap5.scss +5 -0
- package/styles/stepper/icons/_fabric-dark.scss +5 -0
- package/styles/stepper/icons/_fabric.scss +5 -0
- package/styles/stepper/icons/_fluent.scss +5 -0
- package/styles/stepper/icons/_fluent2.scss +5 -0
- package/styles/stepper/icons/_fusionnew.scss +5 -0
- package/styles/stepper/icons/_highcontrast-light.scss +5 -0
- package/styles/stepper/icons/_highcontrast.scss +5 -0
- package/styles/stepper/icons/_material-dark.scss +5 -0
- package/styles/stepper/icons/_material.scss +5 -0
- package/styles/stepper/icons/_material3.scss +5 -0
- package/styles/stepper/icons/_tailwind.scss +5 -0
- package/styles/tab/_bds-definition.scss +661 -0
- package/styles/tab/_bigger.scss +1270 -0
- package/styles/tab/_bootstrap5.3-definition.scss +636 -0
- package/styles/tab/_fluent2-definition.scss +667 -0
- package/styles/tab/_fusionnew-definition.scss +634 -0
- package/styles/tab/_material3-dark-definition.scss +1 -0
- package/styles/tab/_material3-definition.scss +636 -0
- package/styles/tab/fluent2.scss +5 -0
- package/styles/tab/icons/_bds.scss +90 -0
- package/styles/tab/icons/_bootstrap5.3.scss +90 -0
- package/styles/tab/icons/_fluent2.scss +98 -0
- package/styles/tab/icons/_fusionnew.scss +90 -0
- package/styles/tab/icons/_material3-dark.scss +1 -0
- package/styles/tab/icons/_material3.scss +90 -0
- package/styles/tab/material3-dark.scss +5 -0
- package/styles/tab/material3.scss +5 -0
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind.css +1 -1
- package/styles/toolbar/_bds-definition.scss +197 -0
- package/styles/toolbar/_bigger.scss +309 -0
- package/styles/toolbar/_bootstrap5.3-definition.scss +198 -0
- package/styles/toolbar/_fluent2-definition.scss +198 -0
- package/styles/toolbar/_fusionnew-definition.scss +198 -0
- package/styles/toolbar/_material3-dark-definition.scss +1 -0
- package/styles/toolbar/_material3-definition.scss +199 -0
- package/styles/toolbar/fluent2.scss +6 -0
- package/styles/toolbar/icons/_bds.scss +14 -0
- package/styles/toolbar/icons/_bootstrap5.3.scss +14 -0
- package/styles/toolbar/icons/_fluent2.scss +14 -0
- package/styles/toolbar/icons/_fusionnew.scss +14 -0
- package/styles/toolbar/icons/_material3-dark.scss +1 -0
- package/styles/toolbar/icons/_material3.scss +14 -0
- package/styles/toolbar/material3-dark.scss +6 -0
- package/styles/toolbar/material3.scss +6 -0
- package/styles/treeview/_bds-definition.scss +132 -0
- package/styles/treeview/_bigger.scss +393 -0
- package/styles/treeview/_bootstrap5.3-definition.scss +119 -0
- package/styles/treeview/_fluent2-definition.scss +128 -0
- package/styles/treeview/_fusionnew-definition.scss +120 -0
- package/styles/treeview/_material3-dark-definition.scss +1 -0
- package/styles/treeview/_material3-definition.scss +110 -0
- package/styles/treeview/fluent2.scss +4 -0
- package/styles/treeview/icons/_bds.scss +44 -0
- package/styles/treeview/icons/_bootstrap5.3.scss +44 -0
- package/styles/treeview/icons/_fluent2.scss +44 -0
- package/styles/treeview/icons/_fusionnew.scss +44 -0
- package/styles/treeview/icons/_material3-dark.scss +1 -0
- package/styles/treeview/icons/_material3.scss +44 -0
- package/styles/treeview/material3-dark.scss +4 -0
- package/styles/treeview/material3.scss +4 -0
- package/styles/v-scroll/_bds-definition.scss +49 -0
- package/styles/v-scroll/_bigger.scss +28 -0
- package/styles/v-scroll/_bootstrap5.3-definition.scss +49 -0
- package/styles/v-scroll/_fluent2-definition.scss +49 -0
- package/styles/v-scroll/_fusionnew-definition.scss +49 -0
- package/styles/v-scroll/_material3-dark-definition.scss +1 -0
- package/styles/v-scroll/_material3-definition.scss +49 -0
- package/styles/v-scroll/fluent2.scss +4 -0
- package/styles/v-scroll/icons/_bds.scss +27 -0
- package/styles/v-scroll/icons/_bootstrap5.3.scss +27 -0
- package/styles/v-scroll/icons/_fluent2.scss +27 -0
- package/styles/v-scroll/icons/_fusionnew.scss +27 -0
- package/styles/v-scroll/icons/_material3-dark.scss +1 -0
- package/styles/v-scroll/icons/_material3.scss +27 -0
- package/styles/v-scroll/material3-dark.scss +4 -0
- package/styles/v-scroll/material3.scss +4 -0
- package/tslint.json +111 -111
- package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -63
- package/.github/PULL_REQUEST_TEMPLATE/feature.md +0 -39
- package/accordion.d.ts +0 -4
- package/accordion.js +0 -4
- package/breadcrumb.d.ts +0 -4
- package/breadcrumb.js +0 -4
- package/carousel.d.ts +0 -4
- package/carousel.js +0 -4
- package/common.d.ts +0 -4
- package/common.js +0 -4
- package/context-menu.d.ts +0 -4
- package/context-menu.js +0 -4
- package/helpers/e2e/accordionHelper.d.ts +0 -56
- package/helpers/e2e/contextmenuHelper.d.ts +0 -37
- package/helpers/e2e/index.d.ts +0 -7
- package/helpers/e2e/menuHelper.d.ts +0 -37
- package/helpers/e2e/sidebarHelper.d.ts +0 -94
- package/helpers/e2e/tabHelper.d.ts +0 -60
- package/helpers/e2e/toolbarHelper.d.ts +0 -60
- package/helpers/e2e/treeview.d.ts +0 -50
- package/index.d.ts +0 -4
- package/index.js +0 -4
- package/menu.d.ts +0 -4
- package/menu.js +0 -4
- package/sidebar.d.ts +0 -4
- package/sidebar.js +0 -4
- package/src/accordion/accordion.d.ts +0 -440
- package/src/accordion/index.d.ts +0 -5
- package/src/breadcrumb/breadcrumb.d.ts +0 -255
- package/src/breadcrumb/index.d.ts +0 -5
- package/src/carousel/carousel.d.ts +0 -338
- package/src/carousel/index.d.ts +0 -3
- package/src/common/h-scroll.d.ts +0 -105
- package/src/common/index.d.ts +0 -9
- package/src/common/menu-base.d.ts +0 -526
- package/src/common/menu-scroll.d.ts +0 -29
- package/src/common/v-scroll.d.ts +0 -106
- package/src/context-menu/index.d.ts +0 -5
- package/src/index.d.ts +0 -13
- package/src/menu/index.d.ts +0 -5
- package/src/menu/menu.d.ts +0 -121
- package/src/sidebar/index.d.ts +0 -5
- package/src/sidebar/sidebar.d.ts +0 -321
- package/src/tab/index.d.ts +0 -5
- package/src/tab/tab.d.ts +0 -650
- package/src/toolbar/index.d.ts +0 -5
- package/src/toolbar/toolbar.d.ts +0 -470
- package/src/treeview/index.d.ts +0 -5
- package/src/treeview/treeview.d.ts +0 -1256
- package/tab.d.ts +0 -4
- package/tab.js +0 -4
- package/toolbar.d.ts +0 -4
- package/toolbar.js +0 -4
- package/treeview.d.ts +0 -4
- package/treeview.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, EmitType, isUndefined, Browser, compile, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Component, EmitType, isUndefined, Browser, compile, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
2
2
|
import {ExpandOnSettings,SortOrder,FailureEventArgs,DataBoundEventArgs,DataSourceChangedEventArgs,DrawNodeEventArgs,NodeKeyPressEventArgs,NodeCheckEventArgs,NodeClickEventArgs,NodeExpandEventArgs,DragAndDropEventArgs,NodeEditEventArgs,NodeSelectEventArgs} from "./treeview";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -8,92 +8,92 @@ import {ComponentModel} from '@syncfusion/ej2-base';
|
|
|
8
8
|
export interface FieldsSettingsModel {
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Binds the field settings for child nodes or mapping field for nested nodes objects that contain array of JSON objects.
|
|
12
|
-
*/
|
|
13
|
-
child?: string | FieldsSettingsModel;
|
|
11
|
+
* Binds the field settings for child nodes or mapping field for nested nodes objects that contain array of JSON objects.
|
|
12
|
+
*/
|
|
13
|
+
child?: string | FieldsSettingsModel;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Specifies the array of JavaScript objects or instance of DataManager to populate the nodes.
|
|
17
|
-
*
|
|
18
|
-
* @default []
|
|
19
|
-
* @aspDatasourceNullIgnore
|
|
20
|
-
* @isGenericType true
|
|
21
|
-
*/
|
|
22
|
-
/* eslint-disable */
|
|
23
|
-
dataSource?: DataManager | { [key: string]: Object }[];
|
|
16
|
+
* Specifies the array of JavaScript objects or instance of DataManager to populate the nodes.
|
|
17
|
+
*
|
|
18
|
+
* @default []
|
|
19
|
+
* @aspDatasourceNullIgnore
|
|
20
|
+
* @isGenericType true
|
|
21
|
+
*/
|
|
22
|
+
/* eslint-disable */
|
|
23
|
+
dataSource?: DataManager | { [key: string]: Object }[];
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
* Specifies the mapping field for expand state of the TreeView node.
|
|
27
|
-
*/
|
|
28
|
-
expanded?: string;
|
|
26
|
+
* Specifies the mapping field for expand state of the TreeView node.
|
|
27
|
+
*/
|
|
28
|
+
expanded?: string;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Specifies the mapping field for hasChildren to check whether a node has child nodes or not.
|
|
32
|
-
*/
|
|
33
|
-
hasChildren?: string;
|
|
31
|
+
* Specifies the mapping field for hasChildren to check whether a node has child nodes or not.
|
|
32
|
+
*/
|
|
33
|
+
hasChildren?: string;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* Specifies the mapping field for htmlAttributes to be added to the TreeView node.
|
|
37
|
-
*/
|
|
38
|
-
htmlAttributes?: string;
|
|
36
|
+
* Specifies the mapping field for htmlAttributes to be added to the TreeView node.
|
|
37
|
+
*/
|
|
38
|
+
htmlAttributes?: string;
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
* Specifies the mapping field for icon class of each TreeView node that will be added before the text.
|
|
42
|
-
*/
|
|
43
|
-
iconCss?: string;
|
|
41
|
+
* Specifies the mapping field for icon class of each TreeView node that will be added before the text.
|
|
42
|
+
*/
|
|
43
|
+
iconCss?: string;
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Specifies the ID field mapped in dataSource.
|
|
47
|
-
*/
|
|
48
|
-
id?: string;
|
|
46
|
+
* Specifies the ID field mapped in dataSource.
|
|
47
|
+
*/
|
|
48
|
+
id?: string;
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Specifies the mapping field for image URL of each TreeView node where image will be added before the text.
|
|
52
|
-
*/
|
|
53
|
-
imageUrl?: string;
|
|
51
|
+
* Specifies the mapping field for image URL of each TreeView node where image will be added before the text.
|
|
52
|
+
*/
|
|
53
|
+
imageUrl?: string;
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* Specifies the field for checked state of the TreeView node.
|
|
57
|
-
*/
|
|
58
|
-
isChecked?: string;
|
|
56
|
+
* Specifies the field for checked state of the TreeView node.
|
|
57
|
+
*/
|
|
58
|
+
isChecked?: string;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
* Specifies the parent ID field mapped in dataSource.
|
|
62
|
-
*/
|
|
63
|
-
parentID?: string;
|
|
61
|
+
* Specifies the parent ID field mapped in dataSource.
|
|
62
|
+
*/
|
|
63
|
+
parentID?: string;
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
* Defines the external [`Query`](https://ej2.syncfusion.com/documentation/api/data/query/)
|
|
67
|
-
* that will execute along with data processing.
|
|
68
|
-
*
|
|
69
|
-
* @default null
|
|
70
|
-
*/
|
|
71
|
-
query?: Query;
|
|
66
|
+
* Defines the external [`Query`](https://ej2.syncfusion.com/documentation/api/data/query/)
|
|
67
|
+
* that will execute along with data processing.
|
|
68
|
+
*
|
|
69
|
+
* @default null
|
|
70
|
+
*/
|
|
71
|
+
query?: Query;
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* Specifies the mapping field for selected state of the TreeView node.
|
|
75
|
-
*/
|
|
76
|
-
selected?: string;
|
|
74
|
+
* Specifies the mapping field for selected state of the TreeView node.
|
|
75
|
+
*/
|
|
76
|
+
selected?: string;
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
|
-
* Specifies the table name used to fetch data from a specific table in the server.
|
|
80
|
-
*/
|
|
81
|
-
tableName?: string;
|
|
79
|
+
* Specifies the table name used to fetch data from a specific table in the server.
|
|
80
|
+
*/
|
|
81
|
+
tableName?: string;
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
* Specifies the mapping field for text displayed as TreeView node's display text.
|
|
85
|
-
*/
|
|
86
|
-
text?: string;
|
|
84
|
+
* Specifies the mapping field for text displayed as TreeView node's display text.
|
|
85
|
+
*/
|
|
86
|
+
text?: string;
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
* Specifies the mapping field for tooltip that will be displayed as hovering text of the TreeView node.
|
|
90
|
-
*/
|
|
91
|
-
tooltip?: string;
|
|
89
|
+
* Specifies the mapping field for tooltip that will be displayed as hovering text of the TreeView node.
|
|
90
|
+
*/
|
|
91
|
+
tooltip?: string;
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
* Specifies the mapping field for navigateUrl to be added as hyper-link of the TreeView node.
|
|
95
|
-
*/
|
|
96
|
-
navigateUrl?: string;
|
|
94
|
+
* Specifies the mapping field for navigateUrl to be added as hyper-link of the TreeView node.
|
|
95
|
+
*/
|
|
96
|
+
navigateUrl?: string;
|
|
97
97
|
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -103,25 +103,25 @@ export interface FieldsSettingsModel {
|
|
|
103
103
|
export interface ActionSettingsModel {
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* Specifies the type of animation.
|
|
107
|
-
*
|
|
108
|
-
* @default 'SlideDown'
|
|
109
|
-
*/
|
|
110
|
-
effect?: Effect;
|
|
106
|
+
* Specifies the type of animation.
|
|
107
|
+
*
|
|
108
|
+
* @default 'SlideDown'
|
|
109
|
+
*/
|
|
110
|
+
effect?: Effect;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
|
-
* Specifies the duration to animate.
|
|
114
|
-
*
|
|
115
|
-
* @default 400
|
|
116
|
-
*/
|
|
117
|
-
duration?: number;
|
|
113
|
+
* Specifies the duration to animate.
|
|
114
|
+
*
|
|
115
|
+
* @default 400
|
|
116
|
+
*/
|
|
117
|
+
duration?: number;
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Specifies the animation timing function.
|
|
121
|
-
*
|
|
122
|
-
* @default 'linear'
|
|
123
|
-
*/
|
|
124
|
-
easing?: string;
|
|
120
|
+
* Specifies the animation timing function.
|
|
121
|
+
*
|
|
122
|
+
* @default 'linear'
|
|
123
|
+
*/
|
|
124
|
+
easing?: string;
|
|
125
125
|
|
|
126
126
|
}
|
|
127
127
|
|
|
@@ -131,18 +131,18 @@ export interface ActionSettingsModel {
|
|
|
131
131
|
export interface NodeAnimationSettingsModel {
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
|
-
* Specifies the animation that applies on collapsing the nodes.
|
|
135
|
-
*
|
|
136
|
-
* @default { effect: 'SlideUp', duration: 400, easing: 'linear' }
|
|
137
|
-
*/
|
|
138
|
-
collapse?: ActionSettingsModel;
|
|
134
|
+
* Specifies the animation that applies on collapsing the nodes.
|
|
135
|
+
*
|
|
136
|
+
* @default { effect: 'SlideUp', duration: 400, easing: 'linear' }
|
|
137
|
+
*/
|
|
138
|
+
collapse?: ActionSettingsModel;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
|
-
* Specifies the animation that applies on expanding the nodes.
|
|
142
|
-
*
|
|
143
|
-
* @default { effect: 'SlideDown', duration: 400, easing: 'linear' }
|
|
144
|
-
*/
|
|
145
|
-
expand?: ActionSettingsModel;
|
|
141
|
+
* Specifies the animation that applies on expanding the nodes.
|
|
142
|
+
*
|
|
143
|
+
* @default { effect: 'SlideDown', duration: 400, easing: 'linear' }
|
|
144
|
+
*/
|
|
145
|
+
expand?: ActionSettingsModel;
|
|
146
146
|
|
|
147
147
|
}
|
|
148
148
|
|
|
@@ -152,376 +152,376 @@ export interface NodeAnimationSettingsModel {
|
|
|
152
152
|
export interface TreeViewModel extends ComponentModel{
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
|
-
* Indicates whether the TreeView allows drag and drop of nodes. To drag and drop a node in
|
|
156
|
-
* desktop, hold the mouse on the node, drag it to the target node and drop the node by releasing
|
|
157
|
-
* the mouse. For touch devices, drag and drop operation is performed by touch, touch move
|
|
158
|
-
* and touch end. For more information on drag and drop nodes concept, refer to
|
|
159
|
-
* [Drag and Drop](../../treeview/drag-and-drop/).
|
|
160
|
-
*
|
|
161
|
-
* @default false
|
|
162
|
-
*/
|
|
163
|
-
allowDragAndDrop?: boolean;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Enables or disables editing of the text in the TreeView node. When `allowEditing` property is set
|
|
167
|
-
* to true, the TreeView allows you to edit the node by double clicking the node or by navigating to
|
|
168
|
-
* the node and pressing **F2** key. For more information on node editing, refer
|
|
169
|
-
* to [Node Editing](../../treeview/node-editing/).
|
|
170
|
-
*
|
|
171
|
-
* @default false
|
|
172
|
-
*/
|
|
173
|
-
allowEditing?: boolean;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Enables or disables multi-selection of nodes. To select multiple nodes:
|
|
177
|
-
* * Select the nodes by holding down the CTRL key while clicking on the nodes.
|
|
178
|
-
* * Select consecutive nodes by clicking the first node to select and hold down the **SHIFT** key
|
|
179
|
-
* and click the last node to select.
|
|
180
|
-
*
|
|
181
|
-
* For more information on multi-selection, refer to
|
|
182
|
-
* [Multi-Selection](../../treeview/multiple-selection/).
|
|
183
|
-
*
|
|
184
|
-
* @default false
|
|
185
|
-
*/
|
|
186
|
-
allowMultiSelection?: boolean;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Enables or disables text wrapping when text exceeds the bounds in the TreeView node.
|
|
190
|
-
* When the allowTextWrap property is set to true, the TreeView node text content will wrap to the next line
|
|
191
|
-
* when it exceeds the width of the TreeView node.
|
|
192
|
-
* The TreeView node height will be adjusted automatically based on the TreeView node content.
|
|
193
|
-
*
|
|
194
|
-
* @default false
|
|
195
|
-
*/
|
|
196
|
-
allowTextWrap?: boolean;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Specifies the type of animation applied on expanding and collapsing the nodes along with duration.
|
|
200
|
-
*
|
|
201
|
-
* @default {expand: { effect: 'SlideDown', duration: 400, easing: 'linear' },
|
|
202
|
-
* collapse: { effect: 'SlideUp', duration: 400, easing: 'linear' }}
|
|
203
|
-
*/
|
|
204
|
-
animation?: NodeAnimationSettingsModel;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* The `checkedNodes` property is used to set the nodes that need to be checked or
|
|
208
|
-
* get the ID of nodes that are currently checked in the TreeView component.
|
|
209
|
-
* The `checkedNodes` property depends upon the value of `showCheckBox` property.
|
|
210
|
-
* For more information on checkedNodes, refer to
|
|
211
|
-
* [checkedNodes](../../treeview/check-box#checked-nodes).
|
|
212
|
-
*
|
|
213
|
-
* @default []
|
|
214
|
-
*/
|
|
215
|
-
checkedNodes?: string[];
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Specifies the CSS classes to be added with root element of the TreeView to help customize the appearance of the component.
|
|
219
|
-
*
|
|
220
|
-
* @default ''
|
|
221
|
-
*/
|
|
222
|
-
cssClass?: string;
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Specifies a value that indicates whether the TreeView component is disabled or not.
|
|
226
|
-
* When set to true, user interaction will not be occurred in TreeView.
|
|
227
|
-
*
|
|
228
|
-
* @default false
|
|
229
|
-
*/
|
|
230
|
-
disabled?: boolean;
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Defines the area in which the draggable element movement will be occurring. Outside that area will be restricted
|
|
234
|
-
* for the draggable element movement. By default, the draggable element movement occurs in the entire page.
|
|
235
|
-
*
|
|
236
|
-
* @default null
|
|
237
|
-
*/
|
|
238
|
-
dragArea?: HTMLElement | string;
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Defines whether to allow the cross-scripting site or not.
|
|
242
|
-
*
|
|
243
|
-
* @default false
|
|
244
|
-
*/
|
|
245
|
-
enableHtmlSanitizer?: boolean;
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Enables or disables persisting TreeView state between page reloads. If enabled, following APIs will persist.
|
|
249
|
-
* 1. `selectedNodes` - Represents the nodes that are selected in the TreeView component.
|
|
250
|
-
* 2. `checkedNodes` - Represents the nodes that are checked in the TreeView component.
|
|
251
|
-
* 3. `expandedNodes` - Represents the nodes that are expanded in the TreeView component.
|
|
252
|
-
*
|
|
253
|
-
* @default false
|
|
254
|
-
*/
|
|
255
|
-
enablePersistence?: boolean;
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* Represents the expanded nodes in the TreeView component. We can set the nodes that need to be
|
|
259
|
-
* expanded or get the ID of the nodes that are currently expanded by using this property.
|
|
260
|
-
*
|
|
261
|
-
* @default []
|
|
262
|
-
*/
|
|
263
|
-
expandedNodes?: string[];
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Specifies the action on which the node expands or collapses. The available actions are,
|
|
267
|
-
* * `Auto` - In desktop, the expand/collapse operation happens when you double-click the node, and in mobile devices it
|
|
268
|
-
* happens on single-click.
|
|
269
|
-
* * `Click` - The expand/collapse operation happens when you single-click the node in both desktop and mobile devices.
|
|
270
|
-
* * `DblClick` - The expand/collapse operation happens when you double-click the node in both desktop and mobile devices.
|
|
271
|
-
* * `None` - The expand/collapse operation will not happen when you single-click or double-click the node in both desktop
|
|
272
|
-
* and mobile devices.
|
|
273
|
-
*
|
|
274
|
-
* @default 'Auto'
|
|
275
|
-
*/
|
|
276
|
-
expandOn?: ExpandOnSettings;
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Specifies the data source and mapping fields to render TreeView nodes.
|
|
280
|
-
*
|
|
281
|
-
* @default {id: 'id', text: 'text', dataSource: [], child: 'child', parentID: 'parentID', hasChildren: 'hasChildren',
|
|
282
|
-
* expanded: 'expanded', htmlAttributes: 'htmlAttributes', iconCss: 'iconCss', imageUrl: 'imageUrl', isChecked: 'isChecked',
|
|
283
|
-
* query: null, selected: 'selected', tableName: null, tooltip: 'tooltip', navigateUrl: 'navigateUrl'}
|
|
284
|
-
*/
|
|
285
|
-
fields?: FieldsSettingsModel;
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* On enabling this property, the entire row of the TreeView node gets selected by clicking a node.
|
|
289
|
-
* When disabled only the corresponding node's text gets selected.
|
|
290
|
-
* For more information on Fields concept, refer to
|
|
291
|
-
* [Fields](../../treeview/data-binding#local-data).
|
|
292
|
-
*
|
|
293
|
-
* @default true
|
|
294
|
-
*/
|
|
295
|
-
fullRowSelect?: boolean;
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* By default, the load on demand (Lazy load) is set to true. By disabling this property, all the tree nodes are rendered at the
|
|
299
|
-
* beginning itself.
|
|
300
|
-
*
|
|
301
|
-
* @default true
|
|
302
|
-
*/
|
|
303
|
-
loadOnDemand?: boolean;
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
|
|
307
|
-
*
|
|
308
|
-
* @private
|
|
309
|
-
*/
|
|
310
|
-
locale?: string;
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Specifies a template to render customized content for all the nodes. If the `nodeTemplate` property
|
|
314
|
-
* is set, the template content overrides the displayed node text. The property accepts template string
|
|
315
|
-
* [template string](https://ej2.syncfusion.com/documentation/common/template-engine/)
|
|
316
|
-
* or HTML element ID holding the content. For more information on template concept, refer to
|
|
317
|
-
* [Template](../../treeview/template/).
|
|
318
|
-
*
|
|
319
|
-
* @default null
|
|
320
|
-
*/
|
|
321
|
-
nodeTemplate?: string;
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* Represents the selected nodes in the TreeView component. We can set the nodes that need to be
|
|
325
|
-
* selected or get the ID of the nodes that are currently selected by using this property.
|
|
326
|
-
* On enabling `allowMultiSelection` property we can select multiple nodes and on disabling
|
|
327
|
-
* it we can select only a single node.
|
|
328
|
-
* For more information on selectedNodes, refer to
|
|
329
|
-
* [selectedNodes](../../treeview/multiple-selection#selected-nodes).
|
|
330
|
-
*
|
|
331
|
-
* @default []
|
|
332
|
-
*/
|
|
333
|
-
selectedNodes?: string[];
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* Specifies a value that indicates whether the nodes are sorted in the ascending or descending order,
|
|
337
|
-
* or are not sorted at all. The available types of sort order are,
|
|
338
|
-
* * `None` - The nodes are not sorted.
|
|
339
|
-
* * `Ascending` - The nodes are sorted in the ascending order.
|
|
340
|
-
* * `Descending` - The nodes are sorted in the ascending order.
|
|
341
|
-
*
|
|
342
|
-
* @default 'None'
|
|
343
|
-
*/
|
|
344
|
-
sortOrder?: SortOrder;
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Indicates that the nodes will display CheckBoxes in the TreeView.
|
|
348
|
-
* The CheckBox will be displayed next to the expand/collapse icon of the node. For more information on CheckBoxes, refer to
|
|
349
|
-
* [CheckBox](../../treeview/check-box/).
|
|
350
|
-
*
|
|
351
|
-
* @default false
|
|
352
|
-
*/
|
|
353
|
-
showCheckBox?: boolean;
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* Allow us to specify the parent and child nodes to get auto check while we check or uncheck a node.
|
|
357
|
-
*
|
|
358
|
-
* @default true
|
|
359
|
-
*/
|
|
360
|
-
autoCheck?: boolean;
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* If this property is set to true, then the entire TreeView node will be navigate-able instead of text element.
|
|
364
|
-
*
|
|
365
|
-
* @default false
|
|
366
|
-
*/
|
|
367
|
-
fullRowNavigable?: boolean;
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* Triggers when any TreeView action failed to fetch the desired results.
|
|
371
|
-
*
|
|
372
|
-
* @event
|
|
373
|
-
*/
|
|
374
|
-
actionFailure?: EmitType<FailureEventArgs>;
|
|
155
|
+
* Indicates whether the TreeView allows drag and drop of nodes. To drag and drop a node in
|
|
156
|
+
* desktop, hold the mouse on the node, drag it to the target node and drop the node by releasing
|
|
157
|
+
* the mouse. For touch devices, drag and drop operation is performed by touch, touch move
|
|
158
|
+
* and touch end. For more information on drag and drop nodes concept, refer to
|
|
159
|
+
* [Drag and Drop](../../treeview/drag-and-drop/).
|
|
160
|
+
*
|
|
161
|
+
* @default false
|
|
162
|
+
*/
|
|
163
|
+
allowDragAndDrop?: boolean;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Enables or disables editing of the text in the TreeView node. When `allowEditing` property is set
|
|
167
|
+
* to true, the TreeView allows you to edit the node by double clicking the node or by navigating to
|
|
168
|
+
* the node and pressing **F2** key. For more information on node editing, refer
|
|
169
|
+
* to [Node Editing](../../treeview/node-editing/).
|
|
170
|
+
*
|
|
171
|
+
* @default false
|
|
172
|
+
*/
|
|
173
|
+
allowEditing?: boolean;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Enables or disables multi-selection of nodes. To select multiple nodes:
|
|
177
|
+
* * Select the nodes by holding down the CTRL key while clicking on the nodes.
|
|
178
|
+
* * Select consecutive nodes by clicking the first node to select and hold down the **SHIFT** key
|
|
179
|
+
* and click the last node to select.
|
|
180
|
+
*
|
|
181
|
+
* For more information on multi-selection, refer to
|
|
182
|
+
* [Multi-Selection](../../treeview/multiple-selection/).
|
|
183
|
+
*
|
|
184
|
+
* @default false
|
|
185
|
+
*/
|
|
186
|
+
allowMultiSelection?: boolean;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Enables or disables text wrapping when text exceeds the bounds in the TreeView node.
|
|
190
|
+
* When the allowTextWrap property is set to true, the TreeView node text content will wrap to the next line
|
|
191
|
+
* when it exceeds the width of the TreeView node.
|
|
192
|
+
* The TreeView node height will be adjusted automatically based on the TreeView node content.
|
|
193
|
+
*
|
|
194
|
+
* @default false
|
|
195
|
+
*/
|
|
196
|
+
allowTextWrap?: boolean;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Specifies the type of animation applied on expanding and collapsing the nodes along with duration.
|
|
200
|
+
*
|
|
201
|
+
* @default {expand: { effect: 'SlideDown', duration: 400, easing: 'linear' },
|
|
202
|
+
* collapse: { effect: 'SlideUp', duration: 400, easing: 'linear' }}
|
|
203
|
+
*/
|
|
204
|
+
animation?: NodeAnimationSettingsModel;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* The `checkedNodes` property is used to set the nodes that need to be checked or
|
|
208
|
+
* get the ID of nodes that are currently checked in the TreeView component.
|
|
209
|
+
* The `checkedNodes` property depends upon the value of `showCheckBox` property.
|
|
210
|
+
* For more information on checkedNodes, refer to
|
|
211
|
+
* [checkedNodes](../../treeview/check-box#checked-nodes).
|
|
212
|
+
*
|
|
213
|
+
* @default []
|
|
214
|
+
*/
|
|
215
|
+
checkedNodes?: string[];
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Specifies the CSS classes to be added with root element of the TreeView to help customize the appearance of the component.
|
|
219
|
+
*
|
|
220
|
+
* @default ''
|
|
221
|
+
*/
|
|
222
|
+
cssClass?: string;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Specifies a value that indicates whether the TreeView component is disabled or not.
|
|
226
|
+
* When set to true, user interaction will not be occurred in TreeView.
|
|
227
|
+
*
|
|
228
|
+
* @default false
|
|
229
|
+
*/
|
|
230
|
+
disabled?: boolean;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Defines the area in which the draggable element movement will be occurring. Outside that area will be restricted
|
|
234
|
+
* for the draggable element movement. By default, the draggable element movement occurs in the entire page.
|
|
235
|
+
*
|
|
236
|
+
* @default null
|
|
237
|
+
*/
|
|
238
|
+
dragArea?: HTMLElement | string;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Defines whether to allow the cross-scripting site or not.
|
|
242
|
+
*
|
|
243
|
+
* @default false
|
|
244
|
+
*/
|
|
245
|
+
enableHtmlSanitizer?: boolean;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Enables or disables persisting TreeView state between page reloads. If enabled, following APIs will persist.
|
|
249
|
+
* 1. `selectedNodes` - Represents the nodes that are selected in the TreeView component.
|
|
250
|
+
* 2. `checkedNodes` - Represents the nodes that are checked in the TreeView component.
|
|
251
|
+
* 3. `expandedNodes` - Represents the nodes that are expanded in the TreeView component.
|
|
252
|
+
*
|
|
253
|
+
* @default false
|
|
254
|
+
*/
|
|
255
|
+
enablePersistence?: boolean;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Represents the expanded nodes in the TreeView component. We can set the nodes that need to be
|
|
259
|
+
* expanded or get the ID of the nodes that are currently expanded by using this property.
|
|
260
|
+
*
|
|
261
|
+
* @default []
|
|
262
|
+
*/
|
|
263
|
+
expandedNodes?: string[];
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Specifies the action on which the node expands or collapses. The available actions are,
|
|
267
|
+
* * `Auto` - In desktop, the expand/collapse operation happens when you double-click the node, and in mobile devices it
|
|
268
|
+
* happens on single-click.
|
|
269
|
+
* * `Click` - The expand/collapse operation happens when you single-click the node in both desktop and mobile devices.
|
|
270
|
+
* * `DblClick` - The expand/collapse operation happens when you double-click the node in both desktop and mobile devices.
|
|
271
|
+
* * `None` - The expand/collapse operation will not happen when you single-click or double-click the node in both desktop
|
|
272
|
+
* and mobile devices.
|
|
273
|
+
*
|
|
274
|
+
* @default 'Auto'
|
|
275
|
+
*/
|
|
276
|
+
expandOn?: ExpandOnSettings;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Specifies the data source and mapping fields to render TreeView nodes.
|
|
280
|
+
*
|
|
281
|
+
* @default {id: 'id', text: 'text', dataSource: [], child: 'child', parentID: 'parentID', hasChildren: 'hasChildren',
|
|
282
|
+
* expanded: 'expanded', htmlAttributes: 'htmlAttributes', iconCss: 'iconCss', imageUrl: 'imageUrl', isChecked: 'isChecked',
|
|
283
|
+
* query: null, selected: 'selected', tableName: null, tooltip: 'tooltip', navigateUrl: 'navigateUrl'}
|
|
284
|
+
*/
|
|
285
|
+
fields?: FieldsSettingsModel;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* On enabling this property, the entire row of the TreeView node gets selected by clicking a node.
|
|
289
|
+
* When disabled only the corresponding node's text gets selected.
|
|
290
|
+
* For more information on Fields concept, refer to
|
|
291
|
+
* [Fields](../../treeview/data-binding#local-data).
|
|
292
|
+
*
|
|
293
|
+
* @default true
|
|
294
|
+
*/
|
|
295
|
+
fullRowSelect?: boolean;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* By default, the load on demand (Lazy load) is set to true. By disabling this property, all the tree nodes are rendered at the
|
|
299
|
+
* beginning itself.
|
|
300
|
+
*
|
|
301
|
+
* @default true
|
|
302
|
+
*/
|
|
303
|
+
loadOnDemand?: boolean;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
|
|
307
|
+
*
|
|
308
|
+
* @private
|
|
309
|
+
*/
|
|
310
|
+
locale?: string;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Specifies a template to render customized content for all the nodes. If the `nodeTemplate` property
|
|
314
|
+
* is set, the template content overrides the displayed node text. The property accepts template string
|
|
315
|
+
* [template string](https://ej2.syncfusion.com/documentation/common/template-engine/)
|
|
316
|
+
* or HTML element ID holding the content. For more information on template concept, refer to
|
|
317
|
+
* [Template](../../treeview/template/).
|
|
318
|
+
*
|
|
319
|
+
* @default null
|
|
320
|
+
*/
|
|
321
|
+
nodeTemplate?: string;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Represents the selected nodes in the TreeView component. We can set the nodes that need to be
|
|
325
|
+
* selected or get the ID of the nodes that are currently selected by using this property.
|
|
326
|
+
* On enabling `allowMultiSelection` property we can select multiple nodes and on disabling
|
|
327
|
+
* it we can select only a single node.
|
|
328
|
+
* For more information on selectedNodes, refer to
|
|
329
|
+
* [selectedNodes](../../treeview/multiple-selection#selected-nodes).
|
|
330
|
+
*
|
|
331
|
+
* @default []
|
|
332
|
+
*/
|
|
333
|
+
selectedNodes?: string[];
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Specifies a value that indicates whether the nodes are sorted in the ascending or descending order,
|
|
337
|
+
* or are not sorted at all. The available types of sort order are,
|
|
338
|
+
* * `None` - The nodes are not sorted.
|
|
339
|
+
* * `Ascending` - The nodes are sorted in the ascending order.
|
|
340
|
+
* * `Descending` - The nodes are sorted in the ascending order.
|
|
341
|
+
*
|
|
342
|
+
* @default 'None'
|
|
343
|
+
*/
|
|
344
|
+
sortOrder?: SortOrder;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Indicates that the nodes will display CheckBoxes in the TreeView.
|
|
348
|
+
* The CheckBox will be displayed next to the expand/collapse icon of the node. For more information on CheckBoxes, refer to
|
|
349
|
+
* [CheckBox](../../treeview/check-box/).
|
|
350
|
+
*
|
|
351
|
+
* @default false
|
|
352
|
+
*/
|
|
353
|
+
showCheckBox?: boolean;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Allow us to specify the parent and child nodes to get auto check while we check or uncheck a node.
|
|
357
|
+
*
|
|
358
|
+
* @default true
|
|
359
|
+
*/
|
|
360
|
+
autoCheck?: boolean;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* If this property is set to true, then the entire TreeView node will be navigate-able instead of text element.
|
|
364
|
+
*
|
|
365
|
+
* @default false
|
|
366
|
+
*/
|
|
367
|
+
fullRowNavigable?: boolean;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Triggers when any TreeView action failed to fetch the desired results.
|
|
371
|
+
*
|
|
372
|
+
* @event
|
|
373
|
+
*/
|
|
374
|
+
actionFailure?: EmitType<FailureEventArgs>;
|
|
375
375
|
|
|
376
376
|
/**
|
|
377
|
-
* Triggers when the TreeView control is created successfully.
|
|
378
|
-
*
|
|
379
|
-
* @event
|
|
380
|
-
*/
|
|
381
|
-
/* eslint-disable */
|
|
382
|
-
created?: EmitType<Object>;
|
|
377
|
+
* Triggers when the TreeView control is created successfully.
|
|
378
|
+
*
|
|
379
|
+
* @event
|
|
380
|
+
*/
|
|
381
|
+
/* eslint-disable */
|
|
382
|
+
created?: EmitType<Object>;
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
|
-
* Triggers when data source is populated in the TreeView.
|
|
386
|
-
*
|
|
387
|
-
* @event
|
|
388
|
-
*/
|
|
389
|
-
dataBound?: EmitType<DataBoundEventArgs>;
|
|
385
|
+
* Triggers when data source is populated in the TreeView.
|
|
386
|
+
*
|
|
387
|
+
* @event
|
|
388
|
+
*/
|
|
389
|
+
dataBound?: EmitType<DataBoundEventArgs>;
|
|
390
390
|
|
|
391
391
|
/**
|
|
392
|
-
* Triggers when data source is changed in the TreeView. The data source will be changed after performing some operation like
|
|
393
|
-
* drag and drop, node editing, adding and removing node.
|
|
394
|
-
*
|
|
395
|
-
* @event
|
|
396
|
-
*/
|
|
397
|
-
dataSourceChanged?: EmitType<DataSourceChangedEventArgs>;
|
|
392
|
+
* Triggers when data source is changed in the TreeView. The data source will be changed after performing some operation like
|
|
393
|
+
* drag and drop, node editing, adding and removing node.
|
|
394
|
+
*
|
|
395
|
+
* @event
|
|
396
|
+
*/
|
|
397
|
+
dataSourceChanged?: EmitType<DataSourceChangedEventArgs>;
|
|
398
398
|
|
|
399
399
|
/**
|
|
400
|
-
* Triggers before the TreeView node is appended to the TreeView element. It helps to customize specific nodes.
|
|
401
|
-
*
|
|
402
|
-
* @event
|
|
403
|
-
*/
|
|
404
|
-
drawNode?: EmitType<DrawNodeEventArgs>;
|
|
400
|
+
* Triggers before the TreeView node is appended to the TreeView element. It helps to customize specific nodes.
|
|
401
|
+
*
|
|
402
|
+
* @event
|
|
403
|
+
*/
|
|
404
|
+
drawNode?: EmitType<DrawNodeEventArgs>;
|
|
405
405
|
|
|
406
406
|
/**
|
|
407
|
-
* Triggers when the TreeView control is destroyed successfully.
|
|
408
|
-
*
|
|
409
|
-
* @event
|
|
410
|
-
*/
|
|
411
|
-
/* eslint-disable */
|
|
412
|
-
destroyed?: EmitType<Object>;
|
|
407
|
+
* Triggers when the TreeView control is destroyed successfully.
|
|
408
|
+
*
|
|
409
|
+
* @event
|
|
410
|
+
*/
|
|
411
|
+
/* eslint-disable */
|
|
412
|
+
destroyed?: EmitType<Object>;
|
|
413
413
|
|
|
414
414
|
/**
|
|
415
|
-
* Triggers when key press is successful. It helps to customize the operations at key press.
|
|
416
|
-
*
|
|
417
|
-
* @event
|
|
418
|
-
*/
|
|
419
|
-
keyPress?: EmitType<NodeKeyPressEventArgs>;
|
|
415
|
+
* Triggers when key press is successful. It helps to customize the operations at key press.
|
|
416
|
+
*
|
|
417
|
+
* @event
|
|
418
|
+
*/
|
|
419
|
+
keyPress?: EmitType<NodeKeyPressEventArgs>;
|
|
420
420
|
|
|
421
421
|
/**
|
|
422
|
-
* Triggers when the TreeView node is checked/unchecked successfully.
|
|
423
|
-
*
|
|
424
|
-
* @event
|
|
425
|
-
*/
|
|
426
|
-
nodeChecked?: EmitType<NodeCheckEventArgs>;
|
|
422
|
+
* Triggers when the TreeView node is checked/unchecked successfully.
|
|
423
|
+
*
|
|
424
|
+
* @event
|
|
425
|
+
*/
|
|
426
|
+
nodeChecked?: EmitType<NodeCheckEventArgs>;
|
|
427
427
|
|
|
428
428
|
/**
|
|
429
|
-
* Triggers before the TreeView node is to be checked/unchecked.
|
|
430
|
-
*
|
|
431
|
-
* @event
|
|
432
|
-
*/
|
|
433
|
-
nodeChecking?: EmitType<NodeCheckEventArgs>;
|
|
429
|
+
* Triggers before the TreeView node is to be checked/unchecked.
|
|
430
|
+
*
|
|
431
|
+
* @event
|
|
432
|
+
*/
|
|
433
|
+
nodeChecking?: EmitType<NodeCheckEventArgs>;
|
|
434
434
|
|
|
435
435
|
/**
|
|
436
|
-
* Triggers when the TreeView node is clicked successfully.
|
|
437
|
-
*
|
|
438
|
-
* @event
|
|
439
|
-
*/
|
|
440
|
-
nodeClicked?: EmitType<NodeClickEventArgs>;
|
|
436
|
+
* Triggers when the TreeView node is clicked successfully.
|
|
437
|
+
*
|
|
438
|
+
* @event
|
|
439
|
+
*/
|
|
440
|
+
nodeClicked?: EmitType<NodeClickEventArgs>;
|
|
441
441
|
|
|
442
442
|
/**
|
|
443
|
-
* Triggers when the TreeView node collapses successfully.
|
|
444
|
-
*
|
|
445
|
-
* @event
|
|
446
|
-
*/
|
|
447
|
-
nodeCollapsed?: EmitType<NodeExpandEventArgs>;
|
|
443
|
+
* Triggers when the TreeView node collapses successfully.
|
|
444
|
+
*
|
|
445
|
+
* @event
|
|
446
|
+
*/
|
|
447
|
+
nodeCollapsed?: EmitType<NodeExpandEventArgs>;
|
|
448
448
|
|
|
449
449
|
/**
|
|
450
|
-
* Triggers before the TreeView node collapses.
|
|
451
|
-
*
|
|
452
|
-
* @event
|
|
453
|
-
*/
|
|
454
|
-
nodeCollapsing?: EmitType<NodeExpandEventArgs>;
|
|
450
|
+
* Triggers before the TreeView node collapses.
|
|
451
|
+
*
|
|
452
|
+
* @event
|
|
453
|
+
*/
|
|
454
|
+
nodeCollapsing?: EmitType<NodeExpandEventArgs>;
|
|
455
455
|
|
|
456
456
|
/**
|
|
457
|
-
* Triggers when the TreeView node is dragged (moved) continuously.
|
|
458
|
-
*
|
|
459
|
-
|
|
460
|
-
* @event
|
|
461
|
-
*/
|
|
462
|
-
nodeDragging?: EmitType<DragAndDropEventArgs>;
|
|
457
|
+
* Triggers when the TreeView node is dragged (moved) continuously.
|
|
458
|
+
*
|
|
459
|
+
* @deprecated
|
|
460
|
+
* @event
|
|
461
|
+
*/
|
|
462
|
+
nodeDragging?: EmitType<DragAndDropEventArgs>;
|
|
463
463
|
|
|
464
464
|
/**
|
|
465
|
-
* Triggers when the TreeView node drag (move) starts.
|
|
466
|
-
*
|
|
467
|
-
* @event
|
|
468
|
-
*/
|
|
469
|
-
nodeDragStart?: EmitType<DragAndDropEventArgs>;
|
|
465
|
+
* Triggers when the TreeView node drag (move) starts.
|
|
466
|
+
*
|
|
467
|
+
* @event
|
|
468
|
+
*/
|
|
469
|
+
nodeDragStart?: EmitType<DragAndDropEventArgs>;
|
|
470
470
|
|
|
471
471
|
/**
|
|
472
|
-
* Triggers when the TreeView node drag (move) is stopped.
|
|
473
|
-
*
|
|
474
|
-
* @event
|
|
475
|
-
*/
|
|
476
|
-
nodeDragStop?: EmitType<DragAndDropEventArgs>;
|
|
472
|
+
* Triggers when the TreeView node drag (move) is stopped.
|
|
473
|
+
*
|
|
474
|
+
* @event
|
|
475
|
+
*/
|
|
476
|
+
nodeDragStop?: EmitType<DragAndDropEventArgs>;
|
|
477
477
|
|
|
478
478
|
/**
|
|
479
|
-
* Triggers when the TreeView node is dropped on target element successfully.
|
|
480
|
-
*
|
|
481
|
-
* @event
|
|
482
|
-
*/
|
|
483
|
-
nodeDropped?: EmitType<DragAndDropEventArgs>;
|
|
479
|
+
* Triggers when the TreeView node is dropped on target element successfully.
|
|
480
|
+
*
|
|
481
|
+
* @event
|
|
482
|
+
*/
|
|
483
|
+
nodeDropped?: EmitType<DragAndDropEventArgs>;
|
|
484
484
|
|
|
485
485
|
/**
|
|
486
|
-
* Triggers when the TreeView node is renamed successfully.
|
|
487
|
-
*
|
|
488
|
-
* @event
|
|
489
|
-
*/
|
|
490
|
-
nodeEdited?: EmitType<NodeEditEventArgs>;
|
|
486
|
+
* Triggers when the TreeView node is renamed successfully.
|
|
487
|
+
*
|
|
488
|
+
* @event
|
|
489
|
+
*/
|
|
490
|
+
nodeEdited?: EmitType<NodeEditEventArgs>;
|
|
491
491
|
|
|
492
492
|
/**
|
|
493
|
-
* Triggers before the TreeView node is renamed.
|
|
494
|
-
*
|
|
495
|
-
* @event
|
|
496
|
-
*/
|
|
497
|
-
nodeEditing?: EmitType<NodeEditEventArgs>;
|
|
493
|
+
* Triggers before the TreeView node is renamed.
|
|
494
|
+
*
|
|
495
|
+
* @event
|
|
496
|
+
*/
|
|
497
|
+
nodeEditing?: EmitType<NodeEditEventArgs>;
|
|
498
498
|
|
|
499
499
|
/**
|
|
500
|
-
* Triggers when the TreeView node expands successfully.
|
|
501
|
-
*
|
|
502
|
-
* @event
|
|
503
|
-
*/
|
|
504
|
-
nodeExpanded?: EmitType<NodeExpandEventArgs>;
|
|
500
|
+
* Triggers when the TreeView node expands successfully.
|
|
501
|
+
*
|
|
502
|
+
* @event
|
|
503
|
+
*/
|
|
504
|
+
nodeExpanded?: EmitType<NodeExpandEventArgs>;
|
|
505
505
|
|
|
506
506
|
/**
|
|
507
|
-
* Triggers before the TreeView node is to be expanded.
|
|
508
|
-
*
|
|
509
|
-
* @event
|
|
510
|
-
*/
|
|
511
|
-
nodeExpanding?: EmitType<NodeExpandEventArgs>;
|
|
507
|
+
* Triggers before the TreeView node is to be expanded.
|
|
508
|
+
*
|
|
509
|
+
* @event
|
|
510
|
+
*/
|
|
511
|
+
nodeExpanding?: EmitType<NodeExpandEventArgs>;
|
|
512
512
|
|
|
513
513
|
/**
|
|
514
|
-
* Triggers when the TreeView node is selected/unselected successfully.
|
|
515
|
-
*
|
|
516
|
-
* @event
|
|
517
|
-
*/
|
|
518
|
-
nodeSelected?: EmitType<NodeSelectEventArgs>;
|
|
514
|
+
* Triggers when the TreeView node is selected/unselected successfully.
|
|
515
|
+
*
|
|
516
|
+
* @event
|
|
517
|
+
*/
|
|
518
|
+
nodeSelected?: EmitType<NodeSelectEventArgs>;
|
|
519
519
|
|
|
520
520
|
/**
|
|
521
|
-
* Triggers before the TreeView node is selected/unselected.
|
|
522
|
-
*
|
|
523
|
-
* @event
|
|
524
|
-
*/
|
|
525
|
-
nodeSelecting?: EmitType<NodeSelectEventArgs>;
|
|
521
|
+
* Triggers before the TreeView node is selected/unselected.
|
|
522
|
+
*
|
|
523
|
+
* @event
|
|
524
|
+
*/
|
|
525
|
+
nodeSelecting?: EmitType<NodeSelectEventArgs>;
|
|
526
526
|
|
|
527
527
|
}
|