smart-webcomponents 18.0.0 → 18.0.1
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/package.json +1 -1
- package/source/angular/accordion/index.ts +1 -0
- package/source/angular/accordion/public_api.ts +5 -0
- package/source/angular/accordion/smart.accordion.module.ts +13 -0
- package/source/angular/accordion/smart.accordion.ts +370 -0
- package/source/angular/accordion/smart.accordionitem.ts +142 -0
- package/source/angular/accordion/smart.element.ts +104 -0
- package/source/angular/array/index.ts +1 -0
- package/source/angular/array/public_api.ts +3 -0
- package/source/angular/array/smart.array.module.ts +12 -0
- package/source/angular/array/smart.array.ts +817 -0
- package/source/angular/array/smart.element.ts +104 -0
- package/source/angular/barcode/index.ts +1 -0
- package/source/angular/barcode/public_api.ts +3 -0
- package/source/angular/barcode/smart.barcode.module.ts +12 -0
- package/source/angular/barcode/smart.barcode.ts +306 -0
- package/source/angular/barcode/smart.element.ts +104 -0
- package/source/angular/bootstrap/bootstrap.button.ts +160 -0
- package/source/angular/bootstrap/bootstrap.checkbox.ts +165 -0
- package/source/angular/bootstrap/bootstrap.circular.ts +151 -0
- package/source/angular/bootstrap/bootstrap.dropdown.ts +253 -0
- package/source/angular/bootstrap/bootstrap.fileinput.ts +133 -0
- package/source/angular/bootstrap/bootstrap.input.ts +160 -0
- package/source/angular/bootstrap/bootstrap.inputgroup.ts +178 -0
- package/source/angular/bootstrap/bootstrap.modal.ts +204 -0
- package/source/angular/bootstrap/bootstrap.progressbar.ts +151 -0
- package/source/angular/bootstrap/bootstrap.radiobutton.ts +156 -0
- package/source/angular/bootstrap/bootstrap.range.ts +133 -0
- package/source/angular/bootstrap/bootstrap.splitbutton.ts +253 -0
- package/source/angular/bootstrap/bootstrap.switchbutton.ts +165 -0
- package/source/angular/bootstrap/bootstrap.tabs.ts +175 -0
- package/source/angular/bootstrap/bootstrap.textarea.ts +160 -0
- package/source/angular/bootstrap/bootstrap.togglebutton.ts +156 -0
- package/source/angular/bootstrap/index.ts +1 -0
- package/source/angular/bootstrap/public_api.ts +17 -0
- package/source/angular/bootstrap/smart.element.ts +104 -0
- package/source/angular/breadcrumb/index.ts +1 -0
- package/source/angular/breadcrumb/public_api.ts +3 -0
- package/source/angular/breadcrumb/smart.breadcrumb.module.ts +12 -0
- package/source/angular/breadcrumb/smart.breadcrumb.ts +306 -0
- package/source/angular/breadcrumb/smart.element.ts +104 -0
- package/source/angular/button/index.ts +1 -0
- package/source/angular/button/public_api.ts +9 -0
- package/source/angular/button/smart.button.module.ts +15 -0
- package/source/angular/button/smart.button.ts +230 -0
- package/source/angular/button/smart.element.ts +104 -0
- package/source/angular/button/smart.powerbutton.ts +283 -0
- package/source/angular/button/smart.repeatbutton.ts +214 -0
- package/source/angular/button/smart.togglebutton.ts +235 -0
- package/source/angular/buttongroup/index.ts +1 -0
- package/source/angular/buttongroup/public_api.ts +3 -0
- package/source/angular/buttongroup/smart.buttongroup.module.ts +12 -0
- package/source/angular/buttongroup/smart.buttongroup.ts +229 -0
- package/source/angular/buttongroup/smart.element.ts +104 -0
- package/source/angular/calendar/index.ts +1 -0
- package/source/angular/calendar/public_api.ts +3 -0
- package/source/angular/calendar/smart.calendar.module.ts +12 -0
- package/source/angular/calendar/smart.calendar.ts +787 -0
- package/source/angular/calendar/smart.element.ts +104 -0
- package/source/angular/card/index.ts +1 -0
- package/source/angular/card/public_api.ts +3 -0
- package/source/angular/card/smart.card.module.ts +12 -0
- package/source/angular/card/smart.card.ts +220 -0
- package/source/angular/card/smart.element.ts +104 -0
- package/source/angular/cardview/index.ts +1 -0
- package/source/angular/cardview/public_api.ts +3 -0
- package/source/angular/cardview/smart.cardview.module.ts +12 -0
- package/source/angular/cardview/smart.cardview.ts +573 -0
- package/source/angular/cardview/smart.element.ts +104 -0
- package/source/angular/carousel/index.ts +1 -0
- package/source/angular/carousel/public_api.ts +3 -0
- package/source/angular/carousel/smart.carousel.module.ts +12 -0
- package/source/angular/carousel/smart.carousel.ts +414 -0
- package/source/angular/carousel/smart.element.ts +104 -0
- package/source/angular/chart/index.ts +1 -0
- package/source/angular/chart/public_api.ts +3 -0
- package/source/angular/chart/smart.chart.module.ts +12 -0
- package/source/angular/chart/smart.chart.ts +930 -0
- package/source/angular/chart/smart.element.ts +104 -0
- package/source/angular/checkbox/index.ts +1 -0
- package/source/angular/checkbox/public_api.ts +3 -0
- package/source/angular/checkbox/smart.checkbox.module.ts +12 -0
- package/source/angular/checkbox/smart.checkbox.ts +341 -0
- package/source/angular/checkbox/smart.element.ts +104 -0
- package/source/angular/checkinput/index.ts +1 -0
- package/source/angular/checkinput/public_api.ts +3 -0
- package/source/angular/checkinput/smart.checkinput.module.ts +12 -0
- package/source/angular/checkinput/smart.checkinput.ts +497 -0
- package/source/angular/checkinput/smart.element.ts +104 -0
- package/source/angular/chip/index.ts +1 -0
- package/source/angular/chip/public_api.ts +3 -0
- package/source/angular/chip/smart.chip.module.ts +12 -0
- package/source/angular/chip/smart.chip.ts +221 -0
- package/source/angular/chip/smart.element.ts +104 -0
- package/source/angular/colorinput/index.ts +1 -0
- package/source/angular/colorinput/public_api.ts +3 -0
- package/source/angular/colorinput/smart.colorinput.module.ts +12 -0
- package/source/angular/colorinput/smart.colorinput.ts +456 -0
- package/source/angular/colorinput/smart.element.ts +104 -0
- package/source/angular/colorpanel/index.ts +1 -0
- package/source/angular/colorpanel/public_api.ts +3 -0
- package/source/angular/colorpanel/smart.colorpanel.module.ts +12 -0
- package/source/angular/colorpanel/smart.colorpanel.ts +501 -0
- package/source/angular/colorpanel/smart.element.ts +104 -0
- package/source/angular/colorpicker/index.ts +1 -0
- package/source/angular/colorpicker/public_api.ts +3 -0
- package/source/angular/colorpicker/smart.colorpicker.module.ts +12 -0
- package/source/angular/colorpicker/smart.colorpicker.ts +756 -0
- package/source/angular/colorpicker/smart.element.ts +104 -0
- package/source/angular/columnpanel/index.ts +1 -0
- package/source/angular/columnpanel/public_api.ts +3 -0
- package/source/angular/columnpanel/smart.columnpanel.module.ts +12 -0
- package/source/angular/columnpanel/smart.columnpanel.ts +183 -0
- package/source/angular/columnpanel/smart.element.ts +104 -0
- package/source/angular/combobox/index.ts +1 -0
- package/source/angular/combobox/public_api.ts +7 -0
- package/source/angular/combobox/smart.combobox.module.ts +14 -0
- package/source/angular/combobox/smart.combobox.ts +1154 -0
- package/source/angular/combobox/smart.element.ts +104 -0
- package/source/angular/combobox/smart.listitem.ts +162 -0
- package/source/angular/combobox/smart.listitemsgroup.ts +72 -0
- package/source/angular/countryinput/index.ts +1 -0
- package/source/angular/countryinput/public_api.ts +3 -0
- package/source/angular/countryinput/smart.countryinput.module.ts +12 -0
- package/source/angular/countryinput/smart.countryinput.ts +391 -0
- package/source/angular/countryinput/smart.element.ts +104 -0
- package/source/angular/customizationdialog/index.ts +1 -0
- package/source/angular/customizationdialog/public_api.ts +3 -0
- package/source/angular/customizationdialog/smart.customizationdialog.module.ts +12 -0
- package/source/angular/customizationdialog/smart.customizationdialog.ts +311 -0
- package/source/angular/customizationdialog/smart.element.ts +104 -0
- package/source/angular/dateinput/index.ts +1 -0
- package/source/angular/dateinput/public_api.ts +3 -0
- package/source/angular/dateinput/smart.dateinput.module.ts +12 -0
- package/source/angular/dateinput/smart.dateinput.ts +465 -0
- package/source/angular/dateinput/smart.element.ts +104 -0
- package/source/angular/daterangeinput/index.ts +1 -0
- package/source/angular/daterangeinput/public_api.ts +3 -0
- package/source/angular/daterangeinput/smart.daterangeinput.module.ts +12 -0
- package/source/angular/daterangeinput/smart.daterangeinput.ts +456 -0
- package/source/angular/daterangeinput/smart.element.ts +104 -0
- package/source/angular/datetimepicker/index.ts +1 -0
- package/source/angular/datetimepicker/public_api.ts +3 -0
- package/source/angular/datetimepicker/smart.datetimepicker.module.ts +12 -0
- package/source/angular/datetimepicker/smart.datetimepicker.ts +835 -0
- package/source/angular/datetimepicker/smart.element.ts +104 -0
- package/source/angular/dockinglayout/index.ts +1 -0
- package/source/angular/dockinglayout/public_api.ts +3 -0
- package/source/angular/dockinglayout/smart.dockinglayout.module.ts +12 -0
- package/source/angular/dockinglayout/smart.dockinglayout.ts +866 -0
- package/source/angular/dockinglayout/smart.element.ts +104 -0
- package/source/angular/dropdownbutton/index.ts +1 -0
- package/source/angular/dropdownbutton/public_api.ts +3 -0
- package/source/angular/dropdownbutton/smart.dropdownbutton.module.ts +12 -0
- package/source/angular/dropdownbutton/smart.dropdownbutton.ts +542 -0
- package/source/angular/dropdownbutton/smart.element.ts +104 -0
- package/source/angular/dropdownlist/index.ts +1 -0
- package/source/angular/dropdownlist/public_api.ts +7 -0
- package/source/angular/dropdownlist/smart.dropdownlist.module.ts +14 -0
- package/source/angular/dropdownlist/smart.dropdownlist.ts +1111 -0
- package/source/angular/dropdownlist/smart.element.ts +104 -0
- package/source/angular/dropdownlist/smart.listitem.ts +162 -0
- package/source/angular/dropdownlist/smart.listitemsgroup.ts +72 -0
- package/source/angular/editor/index.ts +1 -0
- package/source/angular/editor/public_api.ts +3 -0
- package/source/angular/editor/smart.editor.module.ts +12 -0
- package/source/angular/editor/smart.editor.ts +1353 -0
- package/source/angular/editor/smart.element.ts +104 -0
- package/source/angular/element/index.ts +1 -0
- package/source/angular/element/public_api.ts +3 -0
- package/source/angular/element/smart.element.module.ts +10 -0
- package/source/angular/element/smart.element.ts +104 -0
- package/source/angular/fileupload/index.ts +1 -0
- package/source/angular/fileupload/public_api.ts +3 -0
- package/source/angular/fileupload/smart.element.ts +104 -0
- package/source/angular/fileupload/smart.fileupload.module.ts +12 -0
- package/source/angular/fileupload/smart.fileupload.ts +517 -0
- package/source/angular/filterbuilder/index.ts +1 -0
- package/source/angular/filterbuilder/public_api.ts +3 -0
- package/source/angular/filterbuilder/smart.element.ts +104 -0
- package/source/angular/filterbuilder/smart.filterbuilder.module.ts +12 -0
- package/source/angular/filterbuilder/smart.filterbuilder.ts +506 -0
- package/source/angular/filterpanel/index.ts +1 -0
- package/source/angular/filterpanel/public_api.ts +3 -0
- package/source/angular/filterpanel/smart.element.ts +104 -0
- package/source/angular/filterpanel/smart.filterpanel.module.ts +12 -0
- package/source/angular/filterpanel/smart.filterpanel.ts +334 -0
- package/source/angular/form/index.ts +1 -0
- package/source/angular/form/public_api.ts +7 -0
- package/source/angular/form/smart.element.ts +104 -0
- package/source/angular/form/smart.form.module.ts +14 -0
- package/source/angular/form/smart.form.ts +288 -0
- package/source/angular/form/smart.formcontrol.ts +336 -0
- package/source/angular/form/smart.formgroup.ts +238 -0
- package/source/angular/ganttchart/index.ts +1 -0
- package/source/angular/ganttchart/public_api.ts +3 -0
- package/source/angular/ganttchart/smart.element.ts +104 -0
- package/source/angular/ganttchart/smart.ganttchart.module.ts +12 -0
- package/source/angular/ganttchart/smart.ganttchart.ts +2214 -0
- package/source/angular/gauge/index.ts +1 -0
- package/source/angular/gauge/public_api.ts +3 -0
- package/source/angular/gauge/smart.element.ts +104 -0
- package/source/angular/gauge/smart.gauge.module.ts +12 -0
- package/source/angular/gauge/smart.gauge.ts +650 -0
- package/source/angular/grid/index.ts +1 -0
- package/source/angular/grid/public_api.ts +3 -0
- package/source/angular/grid/smart.element.ts +104 -0
- package/source/angular/grid/smart.grid.module.ts +12 -0
- package/source/angular/grid/smart.grid.ts +3154 -0
- package/source/angular/grouppanel/index.ts +1 -0
- package/source/angular/grouppanel/public_api.ts +3 -0
- package/source/angular/grouppanel/smart.element.ts +104 -0
- package/source/angular/grouppanel/smart.grouppanel.module.ts +12 -0
- package/source/angular/grouppanel/smart.grouppanel.ts +220 -0
- package/source/angular/index.d.ts +33688 -0
- package/source/angular/input/index.ts +1 -0
- package/source/angular/input/public_api.ts +3 -0
- package/source/angular/input/smart.element.ts +104 -0
- package/source/angular/input/smart.input.module.ts +12 -0
- package/source/angular/input/smart.input.ts +590 -0
- package/source/angular/kanban/index.ts +1 -0
- package/source/angular/kanban/public_api.ts +3 -0
- package/source/angular/kanban/smart.element.ts +104 -0
- package/source/angular/kanban/smart.kanban.module.ts +12 -0
- package/source/angular/kanban/smart.kanban.ts +1700 -0
- package/source/angular/layout/index.ts +1 -0
- package/source/angular/layout/public_api.ts +11 -0
- package/source/angular/layout/smart.element.ts +104 -0
- package/source/angular/layout/smart.layout.module.ts +16 -0
- package/source/angular/layout/smart.layout.ts +363 -0
- package/source/angular/layout/smart.layoutgroup.ts +140 -0
- package/source/angular/layout/smart.layoutitem.ts +129 -0
- package/source/angular/layout/smart.tablayoutgroup.ts +147 -0
- package/source/angular/layout/smart.tablayoutitem.ts +138 -0
- package/source/angular/led/index.ts +1 -0
- package/source/angular/led/public_api.ts +3 -0
- package/source/angular/led/smart.element.ts +104 -0
- package/source/angular/led/smart.led.module.ts +12 -0
- package/source/angular/led/smart.led.ts +280 -0
- package/source/angular/listbox/index.ts +1 -0
- package/source/angular/listbox/public_api.ts +7 -0
- package/source/angular/listbox/smart.element.ts +104 -0
- package/source/angular/listbox/smart.listbox.module.ts +14 -0
- package/source/angular/listbox/smart.listbox.ts +1036 -0
- package/source/angular/listbox/smart.listitem.ts +162 -0
- package/source/angular/listbox/smart.listitemsgroup.ts +72 -0
- package/source/angular/listmenu/index.ts +1 -0
- package/source/angular/listmenu/public_api.ts +7 -0
- package/source/angular/listmenu/smart.element.ts +104 -0
- package/source/angular/listmenu/smart.listmenu.module.ts +14 -0
- package/source/angular/listmenu/smart.listmenu.ts +597 -0
- package/source/angular/listmenu/smart.menuitem.ts +126 -0
- package/source/angular/listmenu/smart.menuitemsgroup.ts +153 -0
- package/source/angular/map/index.ts +1 -0
- package/source/angular/map/public_api.ts +3 -0
- package/source/angular/map/smart.element.ts +104 -0
- package/source/angular/map/smart.map.module.ts +12 -0
- package/source/angular/map/smart.map.ts +128 -0
- package/source/angular/maskedtextbox/index.ts +1 -0
- package/source/angular/maskedtextbox/public_api.ts +3 -0
- package/source/angular/maskedtextbox/smart.element.ts +104 -0
- package/source/angular/maskedtextbox/smart.maskedtextbox.module.ts +12 -0
- package/source/angular/maskedtextbox/smart.maskedtextbox.ts +539 -0
- package/source/angular/menu/index.ts +1 -0
- package/source/angular/menu/public_api.ts +7 -0
- package/source/angular/menu/smart.element.ts +104 -0
- package/source/angular/menu/smart.menu.module.ts +14 -0
- package/source/angular/menu/smart.menu.ts +695 -0
- package/source/angular/menu/smart.menuitem.ts +126 -0
- package/source/angular/menu/smart.menuitemsgroup.ts +153 -0
- package/source/angular/multicolumnfilterpanel/index.ts +1 -0
- package/source/angular/multicolumnfilterpanel/public_api.ts +3 -0
- package/source/angular/multicolumnfilterpanel/smart.element.ts +104 -0
- package/source/angular/multicolumnfilterpanel/smart.multicolumnfilterpanel.module.ts +12 -0
- package/source/angular/multicolumnfilterpanel/smart.multicolumnfilterpanel.ts +256 -0
- package/source/angular/multicomboinput/index.ts +1 -0
- package/source/angular/multicomboinput/public_api.ts +3 -0
- package/source/angular/multicomboinput/smart.element.ts +104 -0
- package/source/angular/multicomboinput/smart.multicomboinput.module.ts +12 -0
- package/source/angular/multicomboinput/smart.multicomboinput.ts +542 -0
- package/source/angular/multiinput/index.ts +1 -0
- package/source/angular/multiinput/public_api.ts +3 -0
- package/source/angular/multiinput/smart.element.ts +104 -0
- package/source/angular/multiinput/smart.multiinput.module.ts +12 -0
- package/source/angular/multiinput/smart.multiinput.ts +497 -0
- package/source/angular/multilinetextbox/index.ts +1 -0
- package/source/angular/multilinetextbox/public_api.ts +7 -0
- package/source/angular/multilinetextbox/smart.element.ts +104 -0
- package/source/angular/multilinetextbox/smart.listitem.ts +162 -0
- package/source/angular/multilinetextbox/smart.listitemsgroup.ts +72 -0
- package/source/angular/multilinetextbox/smart.multilinetextbox.module.ts +14 -0
- package/source/angular/multilinetextbox/smart.multilinetextbox.ts +561 -0
- package/source/angular/multisplitbutton/index.ts +1 -0
- package/source/angular/multisplitbutton/public_api.ts +7 -0
- package/source/angular/multisplitbutton/smart.element.ts +104 -0
- package/source/angular/multisplitbutton/smart.listitem.ts +162 -0
- package/source/angular/multisplitbutton/smart.listitemsgroup.ts +72 -0
- package/source/angular/multisplitbutton/smart.multisplitbutton.module.ts +14 -0
- package/source/angular/multisplitbutton/smart.multisplitbutton.ts +620 -0
- package/source/angular/numberinput/index.ts +1 -0
- package/source/angular/numberinput/public_api.ts +3 -0
- package/source/angular/numberinput/smart.element.ts +104 -0
- package/source/angular/numberinput/smart.numberinput.module.ts +12 -0
- package/source/angular/numberinput/smart.numberinput.ts +398 -0
- package/source/angular/numerictextbox/index.ts +1 -0
- package/source/angular/numerictextbox/public_api.ts +3 -0
- package/source/angular/numerictextbox/smart.element.ts +104 -0
- package/source/angular/numerictextbox/smart.numerictextbox.module.ts +12 -0
- package/source/angular/numerictextbox/smart.numerictextbox.ts +648 -0
- package/source/angular/pager/index.ts +1 -0
- package/source/angular/pager/public_api.ts +3 -0
- package/source/angular/pager/smart.element.ts +104 -0
- package/source/angular/pager/smart.pager.module.ts +12 -0
- package/source/angular/pager/smart.pager.ts +386 -0
- package/source/angular/passwordinput/index.ts +1 -0
- package/source/angular/passwordinput/public_api.ts +3 -0
- package/source/angular/passwordinput/smart.element.ts +104 -0
- package/source/angular/passwordinput/smart.passwordinput.module.ts +12 -0
- package/source/angular/passwordinput/smart.passwordinput.ts +218 -0
- package/source/angular/passwordtextbox/index.ts +1 -0
- package/source/angular/passwordtextbox/public_api.ts +3 -0
- package/source/angular/passwordtextbox/smart.element.ts +104 -0
- package/source/angular/passwordtextbox/smart.passwordtextbox.module.ts +12 -0
- package/source/angular/passwordtextbox/smart.passwordtextbox.ts +463 -0
- package/source/angular/path/index.ts +1 -0
- package/source/angular/path/public_api.ts +3 -0
- package/source/angular/path/smart.element.ts +104 -0
- package/source/angular/path/smart.path.module.ts +12 -0
- package/source/angular/path/smart.path.ts +491 -0
- package/source/angular/phoneinput/index.ts +1 -0
- package/source/angular/phoneinput/public_api.ts +3 -0
- package/source/angular/phoneinput/smart.element.ts +104 -0
- package/source/angular/phoneinput/smart.phoneinput.module.ts +12 -0
- package/source/angular/phoneinput/smart.phoneinput.ts +493 -0
- package/source/angular/pivottable/index.ts +1 -0
- package/source/angular/pivottable/public_api.ts +3 -0
- package/source/angular/pivottable/smart.element.ts +104 -0
- package/source/angular/pivottable/smart.pivottable.module.ts +12 -0
- package/source/angular/pivottable/smart.pivottable.ts +840 -0
- package/source/angular/progressbar/index.ts +1 -0
- package/source/angular/progressbar/public_api.ts +5 -0
- package/source/angular/progressbar/smart.circularprogressbar.ts +223 -0
- package/source/angular/progressbar/smart.element.ts +104 -0
- package/source/angular/progressbar/smart.progressbar.module.ts +13 -0
- package/source/angular/progressbar/smart.progressbar.ts +235 -0
- package/source/angular/qrcode/index.ts +1 -0
- package/source/angular/qrcode/public_api.ts +3 -0
- package/source/angular/qrcode/smart.element.ts +104 -0
- package/source/angular/qrcode/smart.qrcode.module.ts +12 -0
- package/source/angular/qrcode/smart.qrcode.ts +333 -0
- package/source/angular/querybuilder/index.ts +1 -0
- package/source/angular/querybuilder/public_api.ts +3 -0
- package/source/angular/querybuilder/smart.element.ts +104 -0
- package/source/angular/querybuilder/smart.querybuilder.module.ts +12 -0
- package/source/angular/querybuilder/smart.querybuilder.ts +460 -0
- package/source/angular/radiobutton/index.ts +1 -0
- package/source/angular/radiobutton/public_api.ts +3 -0
- package/source/angular/radiobutton/smart.element.ts +104 -0
- package/source/angular/radiobutton/smart.radiobutton.module.ts +12 -0
- package/source/angular/radiobutton/smart.radiobutton.ts +350 -0
- package/source/angular/rating/index.ts +1 -0
- package/source/angular/rating/public_api.ts +3 -0
- package/source/angular/rating/smart.element.ts +104 -0
- package/source/angular/rating/smart.rating.module.ts +12 -0
- package/source/angular/rating/smart.rating.ts +309 -0
- package/source/angular/ribbon/index.ts +1 -0
- package/source/angular/ribbon/public_api.ts +9 -0
- package/source/angular/ribbon/smart.element.ts +104 -0
- package/source/angular/ribbon/smart.ribbon.module.ts +15 -0
- package/source/angular/ribbon/smart.ribbon.ts +427 -0
- package/source/angular/ribbon/smart.ribbongroup.ts +126 -0
- package/source/angular/ribbon/smart.ribbonitem.ts +180 -0
- package/source/angular/ribbon/smart.ribbontab.ts +99 -0
- package/source/angular/scheduler/index.ts +1 -0
- package/source/angular/scheduler/public_api.ts +3 -0
- package/source/angular/scheduler/smart.element.ts +104 -0
- package/source/angular/scheduler/smart.scheduler.module.ts +12 -0
- package/source/angular/scheduler/smart.scheduler.ts +2337 -0
- package/source/angular/scrollbar/index.ts +1 -0
- package/source/angular/scrollbar/public_api.ts +3 -0
- package/source/angular/scrollbar/smart.element.ts +104 -0
- package/source/angular/scrollbar/smart.scrollbar.module.ts +12 -0
- package/source/angular/scrollbar/smart.scrollbar.ts +260 -0
- package/source/angular/slider/index.ts +1 -0
- package/source/angular/slider/public_api.ts +3 -0
- package/source/angular/slider/smart.element.ts +104 -0
- package/source/angular/slider/smart.slider.module.ts +12 -0
- package/source/angular/slider/smart.slider.ts +632 -0
- package/source/angular/sortable/index.ts +1 -0
- package/source/angular/sortable/public_api.ts +3 -0
- package/source/angular/sortable/smart.element.ts +104 -0
- package/source/angular/sortable/smart.sortable.module.ts +12 -0
- package/source/angular/sortable/smart.sortable.ts +217 -0
- package/source/angular/sortpanel/index.ts +1 -0
- package/source/angular/sortpanel/public_api.ts +3 -0
- package/source/angular/sortpanel/smart.element.ts +104 -0
- package/source/angular/sortpanel/smart.sortpanel.module.ts +12 -0
- package/source/angular/sortpanel/smart.sortpanel.ts +180 -0
- package/source/angular/splitter/index.ts +1 -0
- package/source/angular/splitter/public_api.ts +7 -0
- package/source/angular/splitter/smart.element.ts +104 -0
- package/source/angular/splitter/smart.splitter.module.ts +14 -0
- package/source/angular/splitter/smart.splitter.ts +530 -0
- package/source/angular/splitter/smart.splitterbar.ts +121 -0
- package/source/angular/splitter/smart.splitteritem.ts +192 -0
- package/source/angular/switchbutton/index.ts +1 -0
- package/source/angular/switchbutton/public_api.ts +3 -0
- package/source/angular/switchbutton/smart.element.ts +104 -0
- package/source/angular/switchbutton/smart.switchbutton.module.ts +12 -0
- package/source/angular/switchbutton/smart.switchbutton.ts +386 -0
- package/source/angular/table/index.ts +1 -0
- package/source/angular/table/public_api.ts +3 -0
- package/source/angular/table/smart.element.ts +104 -0
- package/source/angular/table/smart.table.module.ts +12 -0
- package/source/angular/table/smart.table.ts +1507 -0
- package/source/angular/tabs/index.ts +1 -0
- package/source/angular/tabs/public_api.ts +7 -0
- package/source/angular/tabs/smart.element.ts +104 -0
- package/source/angular/tabs/smart.tabitem.ts +126 -0
- package/source/angular/tabs/smart.tabitemsgroup.ts +81 -0
- package/source/angular/tabs/smart.tabs.module.ts +14 -0
- package/source/angular/tabs/smart.tabs.ts +622 -0
- package/source/angular/tank/index.ts +1 -0
- package/source/angular/tank/public_api.ts +3 -0
- package/source/angular/tank/smart.element.ts +104 -0
- package/source/angular/tank/smart.tank.module.ts +12 -0
- package/source/angular/tank/smart.tank.ts +593 -0
- package/source/angular/textarea/index.ts +1 -0
- package/source/angular/textarea/public_api.ts +3 -0
- package/source/angular/textarea/smart.element.ts +104 -0
- package/source/angular/textarea/smart.textarea.module.ts +12 -0
- package/source/angular/textarea/smart.textarea.ts +519 -0
- package/source/angular/textbox/index.ts +1 -0
- package/source/angular/textbox/public_api.ts +7 -0
- package/source/angular/textbox/smart.element.ts +104 -0
- package/source/angular/textbox/smart.listitem.ts +162 -0
- package/source/angular/textbox/smart.listitemsgroup.ts +72 -0
- package/source/angular/textbox/smart.textbox.module.ts +14 -0
- package/source/angular/textbox/smart.textbox.ts +708 -0
- package/source/angular/threedchart/index.ts +1 -0
- package/source/angular/threedchart/public_api.ts +3 -0
- package/source/angular/threedchart/smart.element.ts +104 -0
- package/source/angular/threedchart/smart.threedchart.module.ts +12 -0
- package/source/angular/threedchart/smart.threedchart.ts +1052 -0
- package/source/angular/timeinput/index.ts +1 -0
- package/source/angular/timeinput/public_api.ts +3 -0
- package/source/angular/timeinput/smart.element.ts +104 -0
- package/source/angular/timeinput/smart.timeinput.module.ts +12 -0
- package/source/angular/timeinput/smart.timeinput.ts +427 -0
- package/source/angular/timepicker/index.ts +1 -0
- package/source/angular/timepicker/public_api.ts +3 -0
- package/source/angular/timepicker/smart.element.ts +104 -0
- package/source/angular/timepicker/smart.timepicker.module.ts +12 -0
- package/source/angular/timepicker/smart.timepicker.ts +370 -0
- package/source/angular/toast/index.ts +1 -0
- package/source/angular/toast/public_api.ts +3 -0
- package/source/angular/toast/smart.element.ts +104 -0
- package/source/angular/toast/smart.toast.module.ts +12 -0
- package/source/angular/toast/smart.toast.ts +405 -0
- package/source/angular/tooltip/index.ts +1 -0
- package/source/angular/tooltip/public_api.ts +3 -0
- package/source/angular/tooltip/smart.element.ts +104 -0
- package/source/angular/tooltip/smart.tooltip.module.ts +12 -0
- package/source/angular/tooltip/smart.tooltip.ts +339 -0
- package/source/angular/tree/index.ts +1 -0
- package/source/angular/tree/public_api.ts +7 -0
- package/source/angular/tree/smart.element.ts +104 -0
- package/source/angular/tree/smart.tree.module.ts +14 -0
- package/source/angular/tree/smart.tree.ts +1042 -0
- package/source/angular/tree/smart.treeitem.ts +135 -0
- package/source/angular/tree/smart.treeitemsgroup.ts +135 -0
- package/source/angular/validator/index.ts +1 -0
- package/source/angular/validator/public_api.ts +3 -0
- package/source/angular/validator/smart.element.ts +104 -0
- package/source/angular/validator/smart.validator.module.ts +12 -0
- package/source/angular/validator/smart.validator.ts +124 -0
- package/source/angular/window/index.ts +1 -0
- package/source/angular/window/public_api.ts +3 -0
- package/source/angular/window/smart.element.ts +104 -0
- package/source/angular/window/smart.window.module.ts +12 -0
- package/source/angular/window/smart.window.ts +1180 -0
- package/source/react/accordion/accordion.jsx +508 -0
- package/source/react/accordion/accordion.tsx +516 -0
- package/source/react/accordion/accordionitem.jsx +257 -0
- package/source/react/accordion/accordionitem.tsx +279 -0
- package/source/react/alertwindow/alertwindow.jsx +1437 -0
- package/source/react/alertwindow/alertwindow.tsx +1399 -0
- package/source/react/array/array.jsx +953 -0
- package/source/react/array/array.tsx +959 -0
- package/source/react/barcode/barcode.jsx +442 -0
- package/source/react/barcode/barcode.tsx +468 -0
- package/source/react/breadcrumb/breadcrumb.jsx +445 -0
- package/source/react/breadcrumb/breadcrumb.tsx +455 -0
- package/source/react/button/button.jsx +377 -0
- package/source/react/button/button.tsx +409 -0
- package/source/react/button/powerbutton.jsx +347 -0
- package/source/react/button/powerbutton.tsx +373 -0
- package/source/react/button/repeatbutton.jsx +371 -0
- package/source/react/button/repeatbutton.tsx +397 -0
- package/source/react/button/togglebutton.jsx +383 -0
- package/source/react/button/togglebutton.tsx +401 -0
- package/source/react/buttongroup/buttongroup.jsx +386 -0
- package/source/react/buttongroup/buttongroup.tsx +412 -0
- package/source/react/calendar/calendar.jsx +914 -0
- package/source/react/calendar/calendar.tsx +916 -0
- package/source/react/card/card.jsx +359 -0
- package/source/react/card/card.tsx +373 -0
- package/source/react/cardview/cardview.jsx +710 -0
- package/source/react/cardview/cardview.tsx +706 -0
- package/source/react/carousel/carousel.jsx +592 -0
- package/source/react/carousel/carousel.tsx +606 -0
- package/source/react/chart/chart.jsx +1060 -0
- package/source/react/chart/chart.tsx +1046 -0
- package/source/react/checkbox/checkbox.jsx +407 -0
- package/source/react/checkbox/checkbox.tsx +425 -0
- package/source/react/checkinput/checkinput.jsx +612 -0
- package/source/react/checkinput/checkinput.tsx +638 -0
- package/source/react/chip/chip.jsx +375 -0
- package/source/react/chip/chip.tsx +401 -0
- package/source/react/colorinput/colorinput.jsx +562 -0
- package/source/react/colorinput/colorinput.tsx +588 -0
- package/source/react/colorpanel/colorpanel.jsx +616 -0
- package/source/react/colorpanel/colorpanel.tsx +630 -0
- package/source/react/colorpicker/colorpicker.jsx +892 -0
- package/source/react/colorpicker/colorpicker.tsx +874 -0
- package/source/react/columnpanel/columnpanel.jsx +322 -0
- package/source/react/columnpanel/columnpanel.tsx +344 -0
- package/source/react/combobox/combobox.jsx +1287 -0
- package/source/react/combobox/combobox.tsx +1277 -0
- package/source/react/combobox/listitem.jsx +325 -0
- package/source/react/combobox/listitem.tsx +355 -0
- package/source/react/combobox/listitemsgroup.jsx +205 -0
- package/source/react/combobox/listitemsgroup.tsx +235 -0
- package/source/react/countryinput/countryinput.jsx +455 -0
- package/source/react/countryinput/countryinput.tsx +473 -0
- package/source/react/customizationdialog/customizationdialog.jsx +471 -0
- package/source/react/customizationdialog/customizationdialog.tsx +485 -0
- package/source/react/dateinput/dateinput.jsx +559 -0
- package/source/react/dateinput/dateinput.tsx +585 -0
- package/source/react/daterangeinput/daterangeinput.jsx +562 -0
- package/source/react/daterangeinput/daterangeinput.tsx +588 -0
- package/source/react/datetimepicker/datetimepicker.jsx +1013 -0
- package/source/react/datetimepicker/datetimepicker.tsx +1023 -0
- package/source/react/dialogwindow/dialogwindow.jsx +1437 -0
- package/source/react/dialogwindow/dialogwindow.tsx +1399 -0
- package/source/react/dockinglayout/dockinglayout.jsx +969 -0
- package/source/react/dockinglayout/dockinglayout.tsx +975 -0
- package/source/react/dropdownbutton/dropdownbutton.jsx +711 -0
- package/source/react/dropdownbutton/dropdownbutton.tsx +709 -0
- package/source/react/dropdownlist/dropdownlist.jsx +1223 -0
- package/source/react/dropdownlist/dropdownlist.tsx +1209 -0
- package/source/react/dropdownlist/listitem.jsx +325 -0
- package/source/react/dropdownlist/listitem.tsx +355 -0
- package/source/react/dropdownlist/listitemsgroup.jsx +205 -0
- package/source/react/dropdownlist/listitemsgroup.tsx +235 -0
- package/source/react/editor/editor.jsx +1465 -0
- package/source/react/editor/editor.tsx +1383 -0
- package/source/react/element/element.jsx +438 -0
- package/source/react/element/element.tsx +460 -0
- package/source/react/fileupload/fileupload.jsx +689 -0
- package/source/react/fileupload/fileupload.tsx +691 -0
- package/source/react/filterbuilder/filterbuilder.jsx +654 -0
- package/source/react/filterbuilder/filterbuilder.tsx +644 -0
- package/source/react/filterpanel/filterpanel.jsx +479 -0
- package/source/react/filterpanel/filterpanel.tsx +497 -0
- package/source/react/form/form.jsx +429 -0
- package/source/react/form/form.tsx +463 -0
- package/source/react/form/formcontrol.jsx +541 -0
- package/source/react/form/formcontrol.tsx +571 -0
- package/source/react/form/formgroup.jsx +380 -0
- package/source/react/form/formgroup.tsx +410 -0
- package/source/react/ganttchart/ganttchart.jsx +2344 -0
- package/source/react/ganttchart/ganttchart.tsx +2262 -0
- package/source/react/gauge/gauge.jsx +801 -0
- package/source/react/gauge/gauge.tsx +827 -0
- package/source/react/grid/grid.jsx +3021 -0
- package/source/react/grid/grid.tsx +2897 -0
- package/source/react/grouppanel/grouppanel.jsx +359 -0
- package/source/react/grouppanel/grouppanel.tsx +373 -0
- package/source/react/input/input.jsx +672 -0
- package/source/react/input/input.tsx +682 -0
- package/source/react/kanban/kanban.jsx +1894 -0
- package/source/react/kanban/kanban.tsx +1810 -0
- package/source/react/layout/layout.jsx +495 -0
- package/source/react/layout/layout.tsx +501 -0
- package/source/react/layout/layoutgroup.jsx +279 -0
- package/source/react/layout/layoutgroup.tsx +309 -0
- package/source/react/layout/layoutitem.jsx +265 -0
- package/source/react/layout/layoutitem.tsx +295 -0
- package/source/react/layout/tablayoutgroup.jsx +289 -0
- package/source/react/layout/tablayoutgroup.tsx +319 -0
- package/source/react/layout/tablayoutitem.jsx +277 -0
- package/source/react/layout/tablayoutitem.tsx +307 -0
- package/source/react/led/led.jsx +458 -0
- package/source/react/led/led.tsx +484 -0
- package/source/react/listbox/listbox.jsx +1119 -0
- package/source/react/listbox/listbox.tsx +1109 -0
- package/source/react/listbox/listitem.jsx +325 -0
- package/source/react/listbox/listitem.tsx +355 -0
- package/source/react/listbox/listitemsgroup.jsx +205 -0
- package/source/react/listbox/listitemsgroup.tsx +235 -0
- package/source/react/listmenu/listmenu.jsx +786 -0
- package/source/react/listmenu/listmenu.tsx +796 -0
- package/source/react/listmenu/menuitem.jsx +277 -0
- package/source/react/listmenu/menuitem.tsx +307 -0
- package/source/react/listmenu/menuitemsgroup.jsx +313 -0
- package/source/react/listmenu/menuitemsgroup.tsx +343 -0
- package/source/react/map/map.jsx +279 -0
- package/source/react/map/map.tsx +309 -0
- package/source/react/maskedtextbox/maskedtextbox.jsx +663 -0
- package/source/react/maskedtextbox/maskedtextbox.tsx +681 -0
- package/source/react/menu/menu.jsx +863 -0
- package/source/react/menu/menu.tsx +857 -0
- package/source/react/menu/menuitem.jsx +277 -0
- package/source/react/menu/menuitem.tsx +307 -0
- package/source/react/menu/menuitemsgroup.jsx +313 -0
- package/source/react/menu/menuitemsgroup.tsx +343 -0
- package/source/react/multicolumnfilterpanel/multicolumnfilterpanel.jsx +407 -0
- package/source/react/multicolumnfilterpanel/multicolumnfilterpanel.tsx +421 -0
- package/source/react/multicomboinput/multicomboinput.jsx +672 -0
- package/source/react/multicomboinput/multicomboinput.tsx +698 -0
- package/source/react/multiinput/multiinput.jsx +612 -0
- package/source/react/multiinput/multiinput.tsx +638 -0
- package/source/react/multilinetextbox/listitem.jsx +325 -0
- package/source/react/multilinetextbox/listitem.tsx +355 -0
- package/source/react/multilinetextbox/listitemsgroup.jsx +205 -0
- package/source/react/multilinetextbox/listitemsgroup.tsx +235 -0
- package/source/react/multilinetextbox/multilinetextbox.jsx +684 -0
- package/source/react/multilinetextbox/multilinetextbox.tsx +714 -0
- package/source/react/multilinewindow/multilinewindow.jsx +1437 -0
- package/source/react/multilinewindow/multilinewindow.tsx +1399 -0
- package/source/react/multisplitbutton/listitem.jsx +325 -0
- package/source/react/multisplitbutton/listitem.tsx +355 -0
- package/source/react/multisplitbutton/listitemsgroup.jsx +205 -0
- package/source/react/multisplitbutton/listitemsgroup.tsx +235 -0
- package/source/react/multisplitbutton/multisplitbutton.jsx +797 -0
- package/source/react/multisplitbutton/multisplitbutton.tsx +795 -0
- package/source/react/numberinput/numberinput.jsx +459 -0
- package/source/react/numberinput/numberinput.tsx +485 -0
- package/source/react/numerictextbox/numerictextbox.jsx +767 -0
- package/source/react/numerictextbox/numerictextbox.tsx +769 -0
- package/source/react/pager/pager.jsx +570 -0
- package/source/react/pager/pager.tsx +592 -0
- package/source/react/passwordinput/passwordinput.jsx +363 -0
- package/source/react/passwordinput/passwordinput.tsx +385 -0
- package/source/react/passwordtextbox/passwordtextbox.jsx +569 -0
- package/source/react/passwordtextbox/passwordtextbox.tsx +591 -0
- package/source/react/path/path.jsx +675 -0
- package/source/react/path/path.tsx +673 -0
- package/source/react/phoneinput/phoneinput.jsx +527 -0
- package/source/react/phoneinput/phoneinput.tsx +545 -0
- package/source/react/pivottable/pivottable.jsx +1036 -0
- package/source/react/pivottable/pivottable.tsx +1030 -0
- package/source/react/progressbar/circularprogressbar.jsx +383 -0
- package/source/react/progressbar/circularprogressbar.tsx +409 -0
- package/source/react/progressbar/progressbar.jsx +397 -0
- package/source/react/progressbar/progressbar.tsx +425 -0
- package/source/react/progresswindow/progresswindow.jsx +1437 -0
- package/source/react/progresswindow/progresswindow.tsx +1399 -0
- package/source/react/promptwindow/promptwindow.jsx +1437 -0
- package/source/react/promptwindow/promptwindow.tsx +1399 -0
- package/source/react/qrcode/qrcode.jsx +478 -0
- package/source/react/qrcode/qrcode.tsx +504 -0
- package/source/react/querybuilder/querybuilder.jsx +635 -0
- package/source/react/querybuilder/querybuilder.tsx +637 -0
- package/source/react/radiobutton/radiobutton.jsx +419 -0
- package/source/react/radiobutton/radiobutton.tsx +437 -0
- package/source/react/rating/rating.jsx +361 -0
- package/source/react/rating/rating.tsx +387 -0
- package/source/react/ribbon/ribbon.jsx +535 -0
- package/source/react/ribbon/ribbon.tsx +527 -0
- package/source/react/ribbon/ribbongroup.jsx +277 -0
- package/source/react/ribbon/ribbongroup.tsx +307 -0
- package/source/react/ribbon/ribbonitem.jsx +349 -0
- package/source/react/ribbon/ribbonitem.tsx +379 -0
- package/source/react/ribbon/ribbontab.jsx +241 -0
- package/source/react/ribbon/ribbontab.tsx +271 -0
- package/source/react/scheduler/scheduler.jsx +2510 -0
- package/source/react/scheduler/scheduler.tsx +2398 -0
- package/source/react/scrollbar/scrollbar.jsx +426 -0
- package/source/react/scrollbar/scrollbar.tsx +452 -0
- package/source/react/slider/slider.jsx +777 -0
- package/source/react/slider/slider.tsx +803 -0
- package/source/react/sortable/sortable.jsx +365 -0
- package/source/react/sortable/sortable.tsx +391 -0
- package/source/react/sortpanel/sortpanel.jsx +319 -0
- package/source/react/sortpanel/sortpanel.tsx +341 -0
- package/source/react/splitter/splitter.jsx +659 -0
- package/source/react/splitter/splitter.tsx +677 -0
- package/source/react/splitter/splitterbar.jsx +251 -0
- package/source/react/splitter/splitterbar.tsx +281 -0
- package/source/react/splitter/splitteritem.jsx +334 -0
- package/source/react/splitter/splitteritem.tsx +364 -0
- package/source/react/switchbutton/switchbutton.jsx +467 -0
- package/source/react/switchbutton/switchbutton.tsx +485 -0
- package/source/react/table/table.jsx +1688 -0
- package/source/react/table/table.tsx +1654 -0
- package/source/react/tabs/tabitem.jsx +265 -0
- package/source/react/tabs/tabitem.tsx +295 -0
- package/source/react/tabs/tabitemsgroup.jsx +217 -0
- package/source/react/tabs/tabitemsgroup.tsx +247 -0
- package/source/react/tabs/tabs.jsx +766 -0
- package/source/react/tabs/tabs.tsx +772 -0
- package/source/react/tabswindow/tabswindow.jsx +1437 -0
- package/source/react/tabswindow/tabswindow.tsx +1399 -0
- package/source/react/tank/tank.jsx +726 -0
- package/source/react/tank/tank.tsx +752 -0
- package/source/react/textarea/textarea.jsx +619 -0
- package/source/react/textarea/textarea.tsx +641 -0
- package/source/react/textbox/listitem.jsx +325 -0
- package/source/react/textbox/listitem.tsx +355 -0
- package/source/react/textbox/listitemsgroup.jsx +205 -0
- package/source/react/textbox/listitemsgroup.tsx +235 -0
- package/source/react/textbox/textbox.jsx +888 -0
- package/source/react/textbox/textbox.tsx +914 -0
- package/source/react/threedchart/threedchart.jsx +1182 -0
- package/source/react/threedchart/threedchart.tsx +1168 -0
- package/source/react/timeinput/timeinput.jsx +509 -0
- package/source/react/timeinput/timeinput.tsx +535 -0
- package/source/react/timepicker/timepicker.jsx +452 -0
- package/source/react/timepicker/timepicker.tsx +478 -0
- package/source/react/toast/toast.jsx +556 -0
- package/source/react/toast/toast.tsx +558 -0
- package/source/react/tooltip/tooltip.jsx +499 -0
- package/source/react/tooltip/tooltip.tsx +513 -0
- package/source/react/tree/tree.jsx +1222 -0
- package/source/react/tree/tree.tsx +1208 -0
- package/source/react/tree/treeitem.jsx +289 -0
- package/source/react/tree/treeitem.tsx +319 -0
- package/source/react/tree/treeitemsgroup.jsx +289 -0
- package/source/react/tree/treeitemsgroup.tsx +319 -0
- package/source/react/validator/validator.jsx +248 -0
- package/source/react/validator/validator.tsx +278 -0
- package/source/react/waitwindow/waitwindow.jsx +1437 -0
- package/source/react/waitwindow/waitwindow.tsx +1399 -0
- package/source/react/window/window.jsx +1421 -0
- package/source/react/window/window.tsx +1399 -0
|
@@ -0,0 +1,1208 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TreeProperties } from "./../../index";
|
|
3
|
+
import { Animation, TreeExpandMode, FilterMode, VerticalAlignment, Overflow, TreeScrollMode, TreeSelectionDisplayMode, TreeSelectionMode, TreeSelectionTarget, TreeSortDirection, Position, TreeToggleMode} from './../../index';
|
|
4
|
+
import { TreeItemProperties } from './../../index';
|
|
5
|
+
import { TreeItem } from './treeitem';
|
|
6
|
+
import { TreeItemsGroupProperties } from './../../index';
|
|
7
|
+
import { TreeItemsGroup } from './treeitemsgroup';
|
|
8
|
+
export { TreeProperties } from "./../../index";
|
|
9
|
+
export { Animation, TreeExpandMode, FilterMode, VerticalAlignment, Overflow, TreeScrollMode, TreeSelectionDisplayMode, TreeSelectionMode, TreeSelectionTarget, TreeSortDirection, Position, TreeToggleMode} from './../../index';
|
|
10
|
+
export { TreeItem } from './treeitem';
|
|
11
|
+
export { TreeItemProperties } from "./../../index";
|
|
12
|
+
export { TreeItemsGroup } from './treeitemsgroup';
|
|
13
|
+
export { TreeItemsGroupProperties } from "./../../index";
|
|
14
|
+
|
|
15
|
+
interface IWindow { Smart: any; }
|
|
16
|
+
declare const window: IWindow;
|
|
17
|
+
let Smart: any;
|
|
18
|
+
if (typeof window !== "undefined") {
|
|
19
|
+
Smart = window.Smart;
|
|
20
|
+
}
|
|
21
|
+
export interface TreeProps extends TreeProperties {
|
|
22
|
+
className?: string;
|
|
23
|
+
style?: React.CSSProperties;
|
|
24
|
+
|
|
25
|
+
onChange?: ((event?: Event) => void) | undefined;
|
|
26
|
+
onCollapse?: ((event?: Event) => void) | undefined;
|
|
27
|
+
onCollapsing?: ((event?: Event) => void) | undefined;
|
|
28
|
+
onDragEnd?: ((event?: Event) => void) | undefined;
|
|
29
|
+
onDragging?: ((event?: Event) => void) | undefined;
|
|
30
|
+
onDragStart?: ((event?: Event) => void) | undefined;
|
|
31
|
+
onExpand?: ((event?: Event) => void) | undefined;
|
|
32
|
+
onExpanding?: ((event?: Event) => void) | undefined;
|
|
33
|
+
onScrollBottomReached?: ((event?: Event) => void) | undefined;
|
|
34
|
+
onScrollTopReached?: ((event?: Event) => void) | undefined;
|
|
35
|
+
onSwipeleft?: ((event?: Event) => void) | undefined;
|
|
36
|
+
onSwiperight?: ((event?: Event) => void) | undefined;
|
|
37
|
+
onCreate?: ((event?: Event) => void) | undefined;
|
|
38
|
+
onReady?: ((event?: Event) => void) | undefined;
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
Treeview component is a user interface that is used to represent hierarchical data in a tree structure.
|
|
43
|
+
*/
|
|
44
|
+
export class Tree extends React.Component<React.HTMLAttributes<Element> & TreeProps, any> {
|
|
45
|
+
private _id: string;
|
|
46
|
+
private nativeElement: any;
|
|
47
|
+
private componentRef: any;
|
|
48
|
+
|
|
49
|
+
// Gets the id of the React component.
|
|
50
|
+
get id() {
|
|
51
|
+
if (!this._id) {
|
|
52
|
+
this._id = 'Tree' + Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return this._id;
|
|
56
|
+
}
|
|
57
|
+
/** Allows drag operation in current tree. When enabled, items can be dragged and dropped to a tree with enabled allowDrop.
|
|
58
|
+
* Property type: boolean
|
|
59
|
+
*/
|
|
60
|
+
get allowDrag(): boolean {
|
|
61
|
+
return this.nativeElement ? this.nativeElement.allowDrag : undefined;
|
|
62
|
+
}
|
|
63
|
+
set allowDrag(value: boolean) {
|
|
64
|
+
if (this.nativeElement) {
|
|
65
|
+
this.nativeElement.allowDrag = value;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** Allows drop operation. Dropped items could originate from the current tree or another tree.
|
|
70
|
+
* Property type: boolean
|
|
71
|
+
*/
|
|
72
|
+
get allowDrop(): boolean {
|
|
73
|
+
return this.nativeElement ? this.nativeElement.allowDrop : undefined;
|
|
74
|
+
}
|
|
75
|
+
set allowDrop(value: boolean) {
|
|
76
|
+
if (this.nativeElement) {
|
|
77
|
+
this.nativeElement.allowDrop = value;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** Sets or gets the animation mode. Animation is disabled when the property is set to 'none'
|
|
82
|
+
* Property type: Animation | string
|
|
83
|
+
*/
|
|
84
|
+
get animation(): Animation | string {
|
|
85
|
+
return this.nativeElement ? this.nativeElement.animation : undefined;
|
|
86
|
+
}
|
|
87
|
+
set animation(value: Animation | string) {
|
|
88
|
+
if (this.nativeElement) {
|
|
89
|
+
this.nativeElement.animation = value;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** Automatically hides the tree's toggle element (arrow) on mouseleave and shows it on mouseenter.
|
|
94
|
+
* Property type: boolean
|
|
95
|
+
*/
|
|
96
|
+
get autoHideToggleElement(): boolean {
|
|
97
|
+
return this.nativeElement ? this.nativeElement.autoHideToggleElement : undefined;
|
|
98
|
+
}
|
|
99
|
+
set autoHideToggleElement(value: boolean) {
|
|
100
|
+
if (this.nativeElement) {
|
|
101
|
+
this.nativeElement.autoHideToggleElement = value;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/** Enables or disables auto load state from the browser's localStorage. Information about filtering, sorting, expanded and selected items is loaded.
|
|
106
|
+
* Property type: boolean
|
|
107
|
+
*/
|
|
108
|
+
get autoLoadState(): boolean {
|
|
109
|
+
return this.nativeElement ? this.nativeElement.autoLoadState : undefined;
|
|
110
|
+
}
|
|
111
|
+
set autoLoadState(value: boolean) {
|
|
112
|
+
if (this.nativeElement) {
|
|
113
|
+
this.nativeElement.autoLoadState = value;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** Enables or disables auto save state to the browser's localStorage. Information about filtering, sorting, expanded and selected items is saved.
|
|
118
|
+
* Property type: boolean
|
|
119
|
+
*/
|
|
120
|
+
get autoSaveState(): boolean {
|
|
121
|
+
return this.nativeElement ? this.nativeElement.autoSaveState : undefined;
|
|
122
|
+
}
|
|
123
|
+
set autoSaveState(value: boolean) {
|
|
124
|
+
if (this.nativeElement) {
|
|
125
|
+
this.nativeElement.autoSaveState = value;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/** Enables or disables auto sorting. If modifications are made to a sorted tree, but autoSort is false, the tree will not be re-sorted automatically.
|
|
130
|
+
* Property type: boolean
|
|
131
|
+
*/
|
|
132
|
+
get autoSort(): boolean {
|
|
133
|
+
return this.nativeElement ? this.nativeElement.autoSort : undefined;
|
|
134
|
+
}
|
|
135
|
+
set autoSort(value: boolean) {
|
|
136
|
+
if (this.nativeElement) {
|
|
137
|
+
this.nativeElement.autoSort = value;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/** Determines the data source that will be loaded to the Tree.
|
|
142
|
+
* Property type: any
|
|
143
|
+
*/
|
|
144
|
+
get dataSource(): any {
|
|
145
|
+
return this.nativeElement ? this.nativeElement.dataSource : undefined;
|
|
146
|
+
}
|
|
147
|
+
set dataSource(value: any) {
|
|
148
|
+
if (this.nativeElement) {
|
|
149
|
+
this.nativeElement.dataSource = value;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/** Enables or disables jqxTree.
|
|
154
|
+
* Property type: boolean
|
|
155
|
+
*/
|
|
156
|
+
get disabled(): boolean {
|
|
157
|
+
return this.nativeElement ? this.nativeElement.disabled : undefined;
|
|
158
|
+
}
|
|
159
|
+
set disabled(value: boolean) {
|
|
160
|
+
if (this.nativeElement) {
|
|
161
|
+
this.nativeElement.disabled = value;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/** Shows or hides loading indicator.
|
|
166
|
+
* Property type: boolean
|
|
167
|
+
*/
|
|
168
|
+
get displayLoadingIndicator(): boolean {
|
|
169
|
+
return this.nativeElement ? this.nativeElement.displayLoadingIndicator : undefined;
|
|
170
|
+
}
|
|
171
|
+
set displayLoadingIndicator(value: boolean) {
|
|
172
|
+
if (this.nativeElement) {
|
|
173
|
+
this.nativeElement.displayLoadingIndicator = value;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/** Determines the field in the data source that corresponds to an item's label.
|
|
178
|
+
* Property type: string
|
|
179
|
+
*/
|
|
180
|
+
get displayMember(): string {
|
|
181
|
+
return this.nativeElement ? this.nativeElement.displayMember : undefined;
|
|
182
|
+
}
|
|
183
|
+
set displayMember(value: string) {
|
|
184
|
+
if (this.nativeElement) {
|
|
185
|
+
this.nativeElement.displayMember = value;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/** A callback function for customizing the HTML of the drag feedback. It receives one parameter - an array of the currently dragged items.
|
|
190
|
+
* Property type: any
|
|
191
|
+
*/
|
|
192
|
+
get dragFeedbackFormatFunction(): any {
|
|
193
|
+
return this.nativeElement ? this.nativeElement.dragFeedbackFormatFunction : undefined;
|
|
194
|
+
}
|
|
195
|
+
set dragFeedbackFormatFunction(value: any) {
|
|
196
|
+
if (this.nativeElement) {
|
|
197
|
+
this.nativeElement.dragFeedbackFormatFunction = value;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/** Determines the offset of the drag feedback element from the mouse cursor when dragging items. The first member of the array is the horizontal offset and the second one - the vertical offset.
|
|
202
|
+
* Property type: number[]
|
|
203
|
+
*/
|
|
204
|
+
get dragOffset(): number[] {
|
|
205
|
+
return this.nativeElement ? this.nativeElement.dragOffset : undefined;
|
|
206
|
+
}
|
|
207
|
+
set dragOffset(value: number[]) {
|
|
208
|
+
if (this.nativeElement) {
|
|
209
|
+
this.nativeElement.dragOffset = value;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/** Enables or disables item's editting. An edit operation can be initiated by double-clicking a tree item or pressing F2 while an item is selected.
|
|
214
|
+
* Property type: boolean
|
|
215
|
+
*/
|
|
216
|
+
get editable(): boolean {
|
|
217
|
+
return this.nativeElement ? this.nativeElement.editable : undefined;
|
|
218
|
+
}
|
|
219
|
+
set editable(value: boolean) {
|
|
220
|
+
if (this.nativeElement) {
|
|
221
|
+
this.nativeElement.editable = value;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/** Determines the expand behavior of TreeItemsGroups in the Tree.
|
|
226
|
+
* Property type: TreeExpandMode | string
|
|
227
|
+
*/
|
|
228
|
+
get expandMode(): TreeExpandMode | string {
|
|
229
|
+
return this.nativeElement ? this.nativeElement.expandMode : undefined;
|
|
230
|
+
}
|
|
231
|
+
set expandMode(value: TreeExpandMode | string) {
|
|
232
|
+
if (this.nativeElement) {
|
|
233
|
+
this.nativeElement.expandMode = value;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/** Enables or disables filtering. Shows or hides filter input.
|
|
238
|
+
* Property type: boolean
|
|
239
|
+
*/
|
|
240
|
+
get filterable(): boolean {
|
|
241
|
+
return this.nativeElement ? this.nativeElement.filterable : undefined;
|
|
242
|
+
}
|
|
243
|
+
set filterable(value: boolean) {
|
|
244
|
+
if (this.nativeElement) {
|
|
245
|
+
this.nativeElement.filterable = value;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/** Applies a filter only after the 'Enter' key is pressed.
|
|
250
|
+
* Property type: boolean
|
|
251
|
+
*/
|
|
252
|
+
get filterOnEnter(): boolean {
|
|
253
|
+
return this.nativeElement ? this.nativeElement.filterOnEnter : undefined;
|
|
254
|
+
}
|
|
255
|
+
set filterOnEnter(value: boolean) {
|
|
256
|
+
if (this.nativeElement) {
|
|
257
|
+
this.nativeElement.filterOnEnter = value;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/** Sets custom text for placeholder in the filter input.
|
|
262
|
+
* Property type: string
|
|
263
|
+
*/
|
|
264
|
+
get filterInputPlaceholder(): string {
|
|
265
|
+
return this.nativeElement ? this.nativeElement.filterInputPlaceholder : undefined;
|
|
266
|
+
}
|
|
267
|
+
set filterInputPlaceholder(value: string) {
|
|
268
|
+
if (this.nativeElement) {
|
|
269
|
+
this.nativeElement.filterInputPlaceholder = value;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/** Determines the TreeItem property that will be used as a filtering criteria. By default the label property is used. It can be set to 'value' if the user wants to filter by the value property or 'textContent' if the user wants to filter by text inside the TreeItem's content or any other property.
|
|
274
|
+
* Property type: string
|
|
275
|
+
*/
|
|
276
|
+
get filterMember(): string {
|
|
277
|
+
return this.nativeElement ? this.nativeElement.filterMember : undefined;
|
|
278
|
+
}
|
|
279
|
+
set filterMember(value: string) {
|
|
280
|
+
if (this.nativeElement) {
|
|
281
|
+
this.nativeElement.filterMember = value;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/** Sets filter mode.
|
|
286
|
+
* Property type: FilterMode | string
|
|
287
|
+
*/
|
|
288
|
+
get filterMode(): FilterMode | string {
|
|
289
|
+
return this.nativeElement ? this.nativeElement.filterMode : undefined;
|
|
290
|
+
}
|
|
291
|
+
set filterMode(value: FilterMode | string) {
|
|
292
|
+
if (this.nativeElement) {
|
|
293
|
+
this.nativeElement.filterMode = value;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/** Sets or gets whether the tree checkboxes have three states - checked, unchecked and indeterminate. Whorks on selectionMode: 'checkBox'
|
|
298
|
+
* Property type: boolean
|
|
299
|
+
*/
|
|
300
|
+
get hasThreeStates(): boolean {
|
|
301
|
+
return this.nativeElement ? this.nativeElement.hasThreeStates : undefined;
|
|
302
|
+
}
|
|
303
|
+
set hasThreeStates(value: boolean) {
|
|
304
|
+
if (this.nativeElement) {
|
|
305
|
+
this.nativeElement.hasThreeStates = value;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/** Determines the field in the data source that corresponds to an item group's subitems collection.
|
|
310
|
+
* Property type: string
|
|
311
|
+
*/
|
|
312
|
+
get itemsMember(): string {
|
|
313
|
+
return this.nativeElement ? this.nativeElement.itemsMember : undefined;
|
|
314
|
+
}
|
|
315
|
+
set itemsMember(value: string) {
|
|
316
|
+
if (this.nativeElement) {
|
|
317
|
+
this.nativeElement.itemsMember = value;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/** Sets custom text for placeholder in the loading indicator if loadingIndicatorPosition is set to 'top' or 'bottom'.
|
|
322
|
+
* Property type: string
|
|
323
|
+
*/
|
|
324
|
+
get loadingIndicatorPlaceholder(): string {
|
|
325
|
+
return this.nativeElement ? this.nativeElement.loadingIndicatorPlaceholder : undefined;
|
|
326
|
+
}
|
|
327
|
+
set loadingIndicatorPlaceholder(value: string) {
|
|
328
|
+
if (this.nativeElement) {
|
|
329
|
+
this.nativeElement.loadingIndicatorPlaceholder = value;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/** Sets the position of the loading indicator.
|
|
334
|
+
* Property type: VerticalAlignment | string
|
|
335
|
+
*/
|
|
336
|
+
get loadingIndicatorPosition(): VerticalAlignment | string {
|
|
337
|
+
return this.nativeElement ? this.nativeElement.loadingIndicatorPosition : undefined;
|
|
338
|
+
}
|
|
339
|
+
set loadingIndicatorPosition(value: VerticalAlignment | string) {
|
|
340
|
+
if (this.nativeElement) {
|
|
341
|
+
this.nativeElement.loadingIndicatorPosition = value;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/** Sets or gets the locale. Used in conjunction with the property messages.
|
|
346
|
+
* Property type: string
|
|
347
|
+
*/
|
|
348
|
+
get locale(): string {
|
|
349
|
+
return this.nativeElement ? this.nativeElement.locale : undefined;
|
|
350
|
+
}
|
|
351
|
+
set locale(value: string) {
|
|
352
|
+
if (this.nativeElement) {
|
|
353
|
+
this.nativeElement.locale = value;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/** Callback, related to localization module.
|
|
358
|
+
* Property type: any
|
|
359
|
+
*/
|
|
360
|
+
get localizeFormatFunction(): any {
|
|
361
|
+
return this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;
|
|
362
|
+
}
|
|
363
|
+
set localizeFormatFunction(value: any) {
|
|
364
|
+
if (this.nativeElement) {
|
|
365
|
+
this.nativeElement.localizeFormatFunction = value;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/** Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale.
|
|
370
|
+
* Property type: any
|
|
371
|
+
*/
|
|
372
|
+
get messages(): any {
|
|
373
|
+
return this.nativeElement ? this.nativeElement.messages : undefined;
|
|
374
|
+
}
|
|
375
|
+
set messages(value: any) {
|
|
376
|
+
if (this.nativeElement) {
|
|
377
|
+
this.nativeElement.messages = value;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/** Specifies what should happen with the scrollbar (or scroll buttons in scrollMode: 'scrollButtons') if content overflows the element's box.
|
|
382
|
+
* Property type: Overflow | string
|
|
383
|
+
*/
|
|
384
|
+
get overflow(): Overflow | string {
|
|
385
|
+
return this.nativeElement ? this.nativeElement.overflow : undefined;
|
|
386
|
+
}
|
|
387
|
+
set overflow(value: Overflow | string) {
|
|
388
|
+
if (this.nativeElement) {
|
|
389
|
+
this.nativeElement.overflow = value;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/** If the element is readonly, users cannot interact with it.
|
|
394
|
+
* Property type: boolean
|
|
395
|
+
*/
|
|
396
|
+
get readonly(): boolean {
|
|
397
|
+
return this.nativeElement ? this.nativeElement.readonly : undefined;
|
|
398
|
+
}
|
|
399
|
+
set readonly(value: boolean) {
|
|
400
|
+
if (this.nativeElement) {
|
|
401
|
+
this.nativeElement.readonly = value;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/** Determines whether the right-to-left support is enabled.
|
|
406
|
+
* Property type: boolean
|
|
407
|
+
*/
|
|
408
|
+
get rightToLeft(): boolean {
|
|
409
|
+
return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
|
|
410
|
+
}
|
|
411
|
+
set rightToLeft(value: boolean) {
|
|
412
|
+
if (this.nativeElement) {
|
|
413
|
+
this.nativeElement.rightToLeft = value;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/** Determines whether to use scrollbar or scrollButtons when content overflows an element's box.
|
|
418
|
+
* Property type: TreeScrollMode | string
|
|
419
|
+
*/
|
|
420
|
+
get scrollMode(): TreeScrollMode | string {
|
|
421
|
+
return this.nativeElement ? this.nativeElement.scrollMode : undefined;
|
|
422
|
+
}
|
|
423
|
+
set scrollMode(value: TreeScrollMode | string) {
|
|
424
|
+
if (this.nativeElement) {
|
|
425
|
+
this.nativeElement.scrollMode = value;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/** An array with indexes (paths) of the selected items.
|
|
430
|
+
* Property type: string[]
|
|
431
|
+
*/
|
|
432
|
+
get selectedIndexes(): string[] {
|
|
433
|
+
return this.nativeElement ? this.nativeElement.selectedIndexes : undefined;
|
|
434
|
+
}
|
|
435
|
+
set selectedIndexes(value: string[]) {
|
|
436
|
+
if (this.nativeElement) {
|
|
437
|
+
this.nativeElement.selectedIndexes = value;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/** Determines the way selected items are highlighted.
|
|
442
|
+
* Property type: TreeSelectionDisplayMode | string
|
|
443
|
+
*/
|
|
444
|
+
get selectionDisplayMode(): TreeSelectionDisplayMode | string {
|
|
445
|
+
return this.nativeElement ? this.nativeElement.selectionDisplayMode : undefined;
|
|
446
|
+
}
|
|
447
|
+
set selectionDisplayMode(value: TreeSelectionDisplayMode | string) {
|
|
448
|
+
if (this.nativeElement) {
|
|
449
|
+
this.nativeElement.selectionDisplayMode = value;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/** Determines selection mode.
|
|
454
|
+
* Property type: TreeSelectionMode | string
|
|
455
|
+
*/
|
|
456
|
+
get selectionMode(): TreeSelectionMode | string {
|
|
457
|
+
return this.nativeElement ? this.nativeElement.selectionMode : undefined;
|
|
458
|
+
}
|
|
459
|
+
set selectionMode(value: TreeSelectionMode | string) {
|
|
460
|
+
if (this.nativeElement) {
|
|
461
|
+
this.nativeElement.selectionMode = value;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/** Determines whether smart-tree-items-groups can be selected.
|
|
466
|
+
* Property type: TreeSelectionTarget | string
|
|
467
|
+
*/
|
|
468
|
+
get selectionTarget(): TreeSelectionTarget | string {
|
|
469
|
+
return this.nativeElement ? this.nativeElement.selectionTarget : undefined;
|
|
470
|
+
}
|
|
471
|
+
set selectionTarget(value: TreeSelectionTarget | string) {
|
|
472
|
+
if (this.nativeElement) {
|
|
473
|
+
this.nativeElement.selectionTarget = value;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/** Shows or hides lines, displaying the relation between elements in group.
|
|
478
|
+
* Property type: boolean
|
|
479
|
+
*/
|
|
480
|
+
get showLines(): boolean {
|
|
481
|
+
return this.nativeElement ? this.nativeElement.showLines : undefined;
|
|
482
|
+
}
|
|
483
|
+
set showLines(value: boolean) {
|
|
484
|
+
if (this.nativeElement) {
|
|
485
|
+
this.nativeElement.showLines = value;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/** Shows or hides lines starting from the root node. Enabled when 'showLines' is set to true.
|
|
490
|
+
* Property type: boolean
|
|
491
|
+
*/
|
|
492
|
+
get showRootLines(): boolean {
|
|
493
|
+
return this.nativeElement ? this.nativeElement.showRootLines : undefined;
|
|
494
|
+
}
|
|
495
|
+
set showRootLines(value: boolean) {
|
|
496
|
+
if (this.nativeElement) {
|
|
497
|
+
this.nativeElement.showRootLines = value;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/** Sets user-defined function about custom sorting.
|
|
502
|
+
* Property type: any
|
|
503
|
+
*/
|
|
504
|
+
get sort(): any {
|
|
505
|
+
return this.nativeElement ? this.nativeElement.sort : undefined;
|
|
506
|
+
}
|
|
507
|
+
set sort(value: any) {
|
|
508
|
+
if (this.nativeElement) {
|
|
509
|
+
this.nativeElement.sort = value;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/** Determines sort direction - ascending or descending.
|
|
514
|
+
* Property type: TreeSortDirection | string
|
|
515
|
+
*/
|
|
516
|
+
get sortDirection(): TreeSortDirection | string {
|
|
517
|
+
return this.nativeElement ? this.nativeElement.sortDirection : undefined;
|
|
518
|
+
}
|
|
519
|
+
set sortDirection(value: TreeSortDirection | string) {
|
|
520
|
+
if (this.nativeElement) {
|
|
521
|
+
this.nativeElement.sortDirection = value;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/** Enables or disables sorting.
|
|
526
|
+
* Property type: boolean
|
|
527
|
+
*/
|
|
528
|
+
get sorted(): boolean {
|
|
529
|
+
return this.nativeElement ? this.nativeElement.sorted : undefined;
|
|
530
|
+
}
|
|
531
|
+
set sorted(value: boolean) {
|
|
532
|
+
if (this.nativeElement) {
|
|
533
|
+
this.nativeElement.sorted = value;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/** Sets or gets the element's visual theme.
|
|
538
|
+
* Property type: string
|
|
539
|
+
*/
|
|
540
|
+
get theme(): string {
|
|
541
|
+
return this.nativeElement ? this.nativeElement.theme : undefined;
|
|
542
|
+
}
|
|
543
|
+
set theme(value: string) {
|
|
544
|
+
if (this.nativeElement) {
|
|
545
|
+
this.nativeElement.theme = value;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/** Determines togle element (arrow) position.
|
|
550
|
+
* Property type: Position | string
|
|
551
|
+
*/
|
|
552
|
+
get toggleElementPosition(): Position | string {
|
|
553
|
+
return this.nativeElement ? this.nativeElement.toggleElementPosition : undefined;
|
|
554
|
+
}
|
|
555
|
+
set toggleElementPosition(value: Position | string) {
|
|
556
|
+
if (this.nativeElement) {
|
|
557
|
+
this.nativeElement.toggleElementPosition = value;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/** Determines the way to toggle smart-tree-items-groups.
|
|
562
|
+
* Property type: TreeToggleMode | string
|
|
563
|
+
*/
|
|
564
|
+
get toggleMode(): TreeToggleMode | string {
|
|
565
|
+
return this.nativeElement ? this.nativeElement.toggleMode : undefined;
|
|
566
|
+
}
|
|
567
|
+
set toggleMode(value: TreeToggleMode | string) {
|
|
568
|
+
if (this.nativeElement) {
|
|
569
|
+
this.nativeElement.toggleMode = value;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/** Sets or gets if the element can be focused.
|
|
574
|
+
* Property type: boolean
|
|
575
|
+
*/
|
|
576
|
+
get unfocusable(): boolean {
|
|
577
|
+
return this.nativeElement ? this.nativeElement.unfocusable : undefined;
|
|
578
|
+
}
|
|
579
|
+
set unfocusable(value: boolean) {
|
|
580
|
+
if (this.nativeElement) {
|
|
581
|
+
this.nativeElement.unfocusable = value;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/** Determines the field in the data source that corresponds to an item's value.
|
|
586
|
+
* Property type: string
|
|
587
|
+
*/
|
|
588
|
+
get valueMember(): string {
|
|
589
|
+
return this.nativeElement ? this.nativeElement.valueMember : undefined;
|
|
590
|
+
}
|
|
591
|
+
set valueMember(value: string) {
|
|
592
|
+
if (this.nativeElement) {
|
|
593
|
+
this.nativeElement.valueMember = value;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
// Gets the properties of the React component.
|
|
599
|
+
get properties(): string[] {
|
|
600
|
+
return ["allowDrag","allowDrop","animation","autoHideToggleElement","autoLoadState","autoSaveState","autoSort","dataSource","disabled","displayLoadingIndicator","displayMember","dragFeedbackFormatFunction","dragOffset","editable","expandMode","filterable","filterOnEnter","filterInputPlaceholder","filterMember","filterMode","hasThreeStates","itemsMember","loadingIndicatorPlaceholder","loadingIndicatorPosition","locale","localizeFormatFunction","messages","overflow","readonly","rightToLeft","scrollMode","selectedIndexes","selectionDisplayMode","selectionMode","selectionTarget","showLines","showRootLines","sort","sortDirection","sorted","theme","toggleElementPosition","toggleMode","unfocusable","valueMember"];
|
|
601
|
+
}
|
|
602
|
+
/** This event is triggered when selection in jqx-tree is changed.
|
|
603
|
+
* @param event. The custom event. Custom event was created with: event.detail( item, oldSelectedIndexes, selectedIndexes)
|
|
604
|
+
* item - The item the user has interacted with to change the selection (only when applicable).
|
|
605
|
+
* oldSelectedIndexes - The selected indexes before the selection is changed.
|
|
606
|
+
* selectedIndexes - The selected indexes after the selection is changed.
|
|
607
|
+
*/
|
|
608
|
+
onChange?: ((event?: Event) => void) | undefined
|
|
609
|
+
/** This event is triggered when a jqx-tree-items-group is collapsed.
|
|
610
|
+
* @param event. The custom event. Custom event was created with: event.detail( item, label, path, value, children)
|
|
611
|
+
* item - the collapsed jqx-tree-items-group
|
|
612
|
+
* label - the label of the collapsed jqx-tree-items-group
|
|
613
|
+
* path - the path of the collapsed jqx-tree-items-group
|
|
614
|
+
* value - the value of the collapsed jqx-tree-items-group
|
|
615
|
+
* children - the children of the collapsed jqx-tree-items-group
|
|
616
|
+
*/
|
|
617
|
+
onCollapse?: ((event?: Event) => void) | undefined
|
|
618
|
+
/** This event is triggered when a jqx-tree-items-group is about to be collapsed. The collapsing operation can be canceled by calling event.preventDefault() in the event handler function.
|
|
619
|
+
* @param event. The custom event. Custom event was created with: event.detail( item, label, path, value, children)
|
|
620
|
+
* item - the jqx-tree-items-group to be collapsed
|
|
621
|
+
* label - the label of the jqx-tree-items-group to be collapsed
|
|
622
|
+
* path - the path of the jqx-tree-items-group to be collapsed
|
|
623
|
+
* value - the value of the jqx-tree-items-group to be collapsed
|
|
624
|
+
* children - the children of the jqx-tree-items-group to be collapsed
|
|
625
|
+
*/
|
|
626
|
+
onCollapsing?: ((event?: Event) => void) | undefined
|
|
627
|
+
/** This event is triggered when a jqx-tree-item/jqx-tree-items-group is dropped somewhere in the DOM. The dragging operation can be canceled by calling event.preventDefault() in the event handler function.
|
|
628
|
+
* @param event. The custom event. Custom event was created with: event.detail( container, data, item, items, originalEvent, previousContainer, target)
|
|
629
|
+
* container - the tree the dragged item(s) is dropped to
|
|
630
|
+
* data - an object with additional drag details
|
|
631
|
+
* item - the item that is dragged; if multiple items are dragged, this is the item that has been clicked when initiating the drag operation
|
|
632
|
+
* items - an array with all dragged items
|
|
633
|
+
* originalEvent - the original, browser, event that initiates the drop operation
|
|
634
|
+
* previousContainer - the tree the dragged item(s) is dragged from
|
|
635
|
+
* target - the element the dragged items are dropped to
|
|
636
|
+
*/
|
|
637
|
+
onDragEnd?: ((event?: Event) => void) | undefined
|
|
638
|
+
/** This event is triggered when a jqx-tree-item/jqx-tree-items-group is being dragged.
|
|
639
|
+
* @param event. The custom event. Custom event was created with: event.detail( data, item, items, originalEvent)
|
|
640
|
+
* data - an object with additional drag details
|
|
641
|
+
* item - the item that is dragged; if multiple items are dragged, this is the item that has been clicked when initiating the drag operation
|
|
642
|
+
* items - an array with all dragged items
|
|
643
|
+
* originalEvent - the original, browser, event that initiates the dragging operation
|
|
644
|
+
*/
|
|
645
|
+
onDragging?: ((event?: Event) => void) | undefined
|
|
646
|
+
/** This event is triggered when a dragging operation is started in jqx-tree. The dragging operation can be canceled by calling event.preventDefault() in the event handler function.
|
|
647
|
+
* @param event. The custom event. Custom event was created with: event.detail( container, data, item, items, originalEvent, previousContainer)
|
|
648
|
+
* container - the tree the dragged item(s) is dragged from
|
|
649
|
+
* data - an object with additional drag details
|
|
650
|
+
* item - the item that is dragged; if multiple items are dragged, this is the item that has been clicked when initiating the drag operation
|
|
651
|
+
* items - an array with all dragged items
|
|
652
|
+
* originalEvent - the original, browser, event that initiates the drag operation
|
|
653
|
+
* previousContainer - the tree the dragged item(s) is dragged from
|
|
654
|
+
*/
|
|
655
|
+
onDragStart?: ((event?: Event) => void) | undefined
|
|
656
|
+
/** This event is triggered when a jqx-tree-items-group is expanded.
|
|
657
|
+
* @param event. The custom event. Custom event was created with: event.detail( item, label, path, value, children)
|
|
658
|
+
* item - the expanded jqx-tree-items-group
|
|
659
|
+
* label - the label of the expanded jqx-tree-items-group
|
|
660
|
+
* path - the path of the expanded jqx-tree-items-group
|
|
661
|
+
* value - the value of the expanded jqx-tree-items-group
|
|
662
|
+
* children - the children of the expanded jqx-tree-items-group
|
|
663
|
+
*/
|
|
664
|
+
onExpand?: ((event?: Event) => void) | undefined
|
|
665
|
+
/** This event is triggered when a jqx-tree-items-group is about to be expanded. The expanding operation can be canceled by calling event.preventDefault() in the event handler function.
|
|
666
|
+
* @param event. The custom event. Custom event was created with: event.detail( item, label, path, value, children)
|
|
667
|
+
* item - the jqx-tree-items-group to be expanded
|
|
668
|
+
* label - the label of the jqx-tree-items-group to be expanded
|
|
669
|
+
* path - the path of the jqx-tree-items-group to be expanded
|
|
670
|
+
* value - the value of the jqx-tree-items-group to be expanded
|
|
671
|
+
* children - the children of the jqx-tree-items-group to be expanded
|
|
672
|
+
*/
|
|
673
|
+
onExpanding?: ((event?: Event) => void) | undefined
|
|
674
|
+
/** This event is triggered when the Tree has been scrolled to the bottom.
|
|
675
|
+
* @param event. The custom event. */
|
|
676
|
+
onScrollBottomReached?: ((event?: Event) => void) | undefined
|
|
677
|
+
/** This event is triggered when the Tree has been scrolled to the top.
|
|
678
|
+
* @param event. The custom event. */
|
|
679
|
+
onScrollTopReached?: ((event?: Event) => void) | undefined
|
|
680
|
+
/** This event is triggered when the user swipes to the left inside the Tree.
|
|
681
|
+
* @param event. The custom event. */
|
|
682
|
+
onSwipeleft?: ((event?: Event) => void) | undefined
|
|
683
|
+
/** This event is triggered when the user swipes to the right inside the Tree.
|
|
684
|
+
* @param event. The custom event. */
|
|
685
|
+
onSwiperight?: ((event?: Event) => void) | undefined
|
|
686
|
+
/** This event occurs, when the React component is created.
|
|
687
|
+
* @param event. The custom event. */
|
|
688
|
+
onCreate?: ((event?: Event) => void) | undefined
|
|
689
|
+
/** This event occurs, when the React component is completely rendered.
|
|
690
|
+
* @param event. The custom event. */
|
|
691
|
+
onReady?: ((event?: Event) => void) | undefined
|
|
692
|
+
|
|
693
|
+
// Gets the events of the React component.
|
|
694
|
+
get eventListeners(): string[] {
|
|
695
|
+
return ["onChange","onCollapse","onCollapsing","onDragEnd","onDragging","onDragStart","onExpand","onExpanding","onScrollBottomReached","onScrollTopReached","onSwipeleft","onSwiperight","onCreate","onReady"];
|
|
696
|
+
}
|
|
697
|
+
/** Adds an item after another item as a sibling.
|
|
698
|
+
* @param {HTMLElement} item. A jqx-tree-item/jqx-tree-items-group to add to the Tree
|
|
699
|
+
* @param {string | HTMLElement} sibling. The jqx-tree-item/jqx-tree-items-group (or its id or numeric path) to add the item after.
|
|
700
|
+
*/
|
|
701
|
+
public addAfter(item: HTMLElement, sibling: string | HTMLElement): void {
|
|
702
|
+
if (this.nativeElement.isRendered) {
|
|
703
|
+
this.nativeElement.addAfter(item, sibling);
|
|
704
|
+
}
|
|
705
|
+
else
|
|
706
|
+
{
|
|
707
|
+
this.nativeElement.whenRendered(() => {
|
|
708
|
+
this.nativeElement.addAfter(item, sibling);
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
/** Adds an item before another item as a sibling.
|
|
714
|
+
* @param {HTMLElement} item. A jqx-tree-item/jqx-tree-items-group to add to the Tree
|
|
715
|
+
* @param {string | HTMLElement} sibling. The jqx-tree-item/jqx-tree-items-group (or its id or numeric path) to add the item before.
|
|
716
|
+
*/
|
|
717
|
+
public addBefore(item: HTMLElement, sibling: string | HTMLElement): void {
|
|
718
|
+
if (this.nativeElement.isRendered) {
|
|
719
|
+
this.nativeElement.addBefore(item, sibling);
|
|
720
|
+
}
|
|
721
|
+
else
|
|
722
|
+
{
|
|
723
|
+
this.nativeElement.whenRendered(() => {
|
|
724
|
+
this.nativeElement.addBefore(item, sibling);
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
/** Adds an item as the last child of a parent item.
|
|
730
|
+
* @param {HTMLElement} item. A jqx-tree-item/jqx-tree-items-group to add to the Tree
|
|
731
|
+
* @param {string | HTMLElement} parent?. The jqx-tree-items-group (or its id or numeric path) to add the item to.
|
|
732
|
+
*/
|
|
733
|
+
public addTo(item: HTMLElement, parent?: string | HTMLElement): void {
|
|
734
|
+
if (this.nativeElement.isRendered) {
|
|
735
|
+
this.nativeElement.addTo(item, parent);
|
|
736
|
+
}
|
|
737
|
+
else
|
|
738
|
+
{
|
|
739
|
+
this.nativeElement.whenRendered(() => {
|
|
740
|
+
this.nativeElement.addTo(item, parent);
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
/** Clears selection.
|
|
746
|
+
*/
|
|
747
|
+
public clearSelection(): void {
|
|
748
|
+
if (this.nativeElement.isRendered) {
|
|
749
|
+
this.nativeElement.clearSelection();
|
|
750
|
+
}
|
|
751
|
+
else
|
|
752
|
+
{
|
|
753
|
+
this.nativeElement.whenRendered(() => {
|
|
754
|
+
this.nativeElement.clearSelection();
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
/** Collapses all smart-tree-items-groups.
|
|
760
|
+
* @param {boolean} animation?. If set to false, disables collapse animation even if animation is enabled for the element.
|
|
761
|
+
*/
|
|
762
|
+
public collapseAll(animation?: boolean): void {
|
|
763
|
+
if (this.nativeElement.isRendered) {
|
|
764
|
+
this.nativeElement.collapseAll(animation);
|
|
765
|
+
}
|
|
766
|
+
else
|
|
767
|
+
{
|
|
768
|
+
this.nativeElement.whenRendered(() => {
|
|
769
|
+
this.nativeElement.collapseAll(animation);
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/** Collapses a smart-tree-items-group.
|
|
775
|
+
* @param {HTMLElement | string} item. jqx-tree-items-group (or its id or numeric path).
|
|
776
|
+
* @param {boolean} animation?. If set to false, disables collapse animation even if animation is enabled for the element.
|
|
777
|
+
*/
|
|
778
|
+
public collapseItem(item: HTMLElement | string, animation?: boolean): void {
|
|
779
|
+
if (this.nativeElement.isRendered) {
|
|
780
|
+
this.nativeElement.collapseItem(item, animation);
|
|
781
|
+
}
|
|
782
|
+
else
|
|
783
|
+
{
|
|
784
|
+
this.nativeElement.whenRendered(() => {
|
|
785
|
+
this.nativeElement.collapseItem(item, animation);
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/** Makes sure an item is visible by scrolling to it.
|
|
791
|
+
* @param {HTMLElement | string} item. The id or numeric path of an item
|
|
792
|
+
*/
|
|
793
|
+
public ensureVisible(item: HTMLElement | string): void {
|
|
794
|
+
if (this.nativeElement.isRendered) {
|
|
795
|
+
this.nativeElement.ensureVisible(item);
|
|
796
|
+
}
|
|
797
|
+
else
|
|
798
|
+
{
|
|
799
|
+
this.nativeElement.whenRendered(() => {
|
|
800
|
+
this.nativeElement.ensureVisible(item);
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
/** Expands all smart-tree-items-groups.
|
|
806
|
+
* @param {string} animation?. If set to false, disables expand animation even if animation is enabled for the element.
|
|
807
|
+
*/
|
|
808
|
+
public expandAll(animation?: string): void {
|
|
809
|
+
if (this.nativeElement.isRendered) {
|
|
810
|
+
this.nativeElement.expandAll(animation);
|
|
811
|
+
}
|
|
812
|
+
else
|
|
813
|
+
{
|
|
814
|
+
this.nativeElement.whenRendered(() => {
|
|
815
|
+
this.nativeElement.expandAll(animation);
|
|
816
|
+
});
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/** Expands single smart-tree-items-group.
|
|
821
|
+
* @param {HTMLElement | string} item. jqx-tree-items-group (or its id or numeric path).
|
|
822
|
+
* @param {boolean} animation?. If set to false, disables expand animation even if animation is enabled for the element.
|
|
823
|
+
*/
|
|
824
|
+
public expandItem(item: HTMLElement | string, animation?: boolean): void {
|
|
825
|
+
if (this.nativeElement.isRendered) {
|
|
826
|
+
this.nativeElement.expandItem(item, animation);
|
|
827
|
+
}
|
|
828
|
+
else
|
|
829
|
+
{
|
|
830
|
+
this.nativeElement.whenRendered(() => {
|
|
831
|
+
this.nativeElement.expandItem(item, animation);
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/** Applies filter to the Tree.
|
|
837
|
+
* @param {string} filterQuery. Filter query.
|
|
838
|
+
*/
|
|
839
|
+
public filter(filterQuery: string): void {
|
|
840
|
+
if (this.nativeElement.isRendered) {
|
|
841
|
+
this.nativeElement.filter(filterQuery);
|
|
842
|
+
}
|
|
843
|
+
else
|
|
844
|
+
{
|
|
845
|
+
this.nativeElement.whenRendered(() => {
|
|
846
|
+
this.nativeElement.filter(filterQuery);
|
|
847
|
+
});
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
/** Gets an item by its id or numeric path.
|
|
852
|
+
* @param {string} id. The id or numeric path of an item.
|
|
853
|
+
* @returns {HTMLElement}
|
|
854
|
+
*/
|
|
855
|
+
public getItem(id:string) : any {
|
|
856
|
+
const result: any = this.nativeElement.getItem(id);
|
|
857
|
+
return result;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
/** Gets the selected values. If value is not defined, returns the selected labels.
|
|
861
|
+
* @returns {string[]}
|
|
862
|
+
*/
|
|
863
|
+
public getSelectedValues() : any {
|
|
864
|
+
const result: any = this.nativeElement.getSelectedValues();
|
|
865
|
+
return result;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/** Returns SmartTree's state
|
|
869
|
+
* @returns {any}
|
|
870
|
+
*/
|
|
871
|
+
public getState() : any {
|
|
872
|
+
const result: any = this.nativeElement.getState();
|
|
873
|
+
return result;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
/** Inserts an item at the given position.
|
|
877
|
+
* @param {any} item. A jqx-tree-item/jqx-tree-items-group (or an Object to create an item from) to add to the Tree. If an Object is passed, the available fields are <strong>tagName</strong> (<em>'jqx-tree-item'</em> - default - or <em>'jqx-tree-items-group'</em>), <strong>disabled</strong>, <strong>expanded</strong> (only if <strong>tagName</strong> is <em>'jqx-tree-items-group'</em>), <strong>(items)</strong> (only if <strong>tagName</strong> is <em>'jqx-tree-items-group'</em>), <strong>(label)</strong>, <strong>separator</strong>, <strong>shortcut</strong> (only if <strong>tagName</strong> is <em>'jqx-tree-item'</em>), and <strong>(value)</strong>. (items), (label), and (value) have to correspond to the values of <strong>itemsMember</strong>, <strong>displayMember</strong>, and <strong>valueMember</strong> respectively.
|
|
878
|
+
* @param {string} path?. The path to insert the item at.
|
|
879
|
+
*/
|
|
880
|
+
public insert(item: any, path?: string): void {
|
|
881
|
+
if (this.nativeElement.isRendered) {
|
|
882
|
+
this.nativeElement.insert(item, path);
|
|
883
|
+
}
|
|
884
|
+
else
|
|
885
|
+
{
|
|
886
|
+
this.nativeElement.whenRendered(() => {
|
|
887
|
+
this.nativeElement.insert(item, path);
|
|
888
|
+
});
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
/** Loads the Tree's state.
|
|
893
|
+
* @param {any} state?. An object returned by one of the methods <strong>getState</strong> or <strong>saveState</strong>. If a state is not passed, the method tries to load the state from the browser's localStorage.
|
|
894
|
+
*/
|
|
895
|
+
public loadState(state?: any): void {
|
|
896
|
+
if (this.nativeElement.isRendered) {
|
|
897
|
+
this.nativeElement.loadState(state);
|
|
898
|
+
}
|
|
899
|
+
else
|
|
900
|
+
{
|
|
901
|
+
this.nativeElement.whenRendered(() => {
|
|
902
|
+
this.nativeElement.loadState(state);
|
|
903
|
+
});
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
/** Moves an item down relative to its siblings.
|
|
908
|
+
* @param {HTMLElement | string} item. The jqx-tree-item/jqx-tree-items-group (or its id or numeric path) to remove.
|
|
909
|
+
*/
|
|
910
|
+
public moveDown(item: HTMLElement | string): void {
|
|
911
|
+
if (this.nativeElement.isRendered) {
|
|
912
|
+
this.nativeElement.moveDown(item);
|
|
913
|
+
}
|
|
914
|
+
else
|
|
915
|
+
{
|
|
916
|
+
this.nativeElement.whenRendered(() => {
|
|
917
|
+
this.nativeElement.moveDown(item);
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
/** Moves an item up relative to its siblings.
|
|
923
|
+
* @param {HTMLElement | string} item. The jqx-tree-item/jqx-tree-items-group (or its id or numeric path) to remove.
|
|
924
|
+
*/
|
|
925
|
+
public moveUp(item: HTMLElement | string): void {
|
|
926
|
+
if (this.nativeElement.isRendered) {
|
|
927
|
+
this.nativeElement.moveUp(item);
|
|
928
|
+
}
|
|
929
|
+
else
|
|
930
|
+
{
|
|
931
|
+
this.nativeElement.whenRendered(() => {
|
|
932
|
+
this.nativeElement.moveUp(item);
|
|
933
|
+
});
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
/** Removes an item.
|
|
938
|
+
* @param {HTMLElement | string} item. The jqx-tree-item/jqx-tree-items-group (or its id or numeric path) to remove.
|
|
939
|
+
*/
|
|
940
|
+
public removeItem(item: HTMLElement | string): void {
|
|
941
|
+
if (this.nativeElement.isRendered) {
|
|
942
|
+
this.nativeElement.removeItem(item);
|
|
943
|
+
}
|
|
944
|
+
else
|
|
945
|
+
{
|
|
946
|
+
this.nativeElement.whenRendered(() => {
|
|
947
|
+
this.nativeElement.removeItem(item);
|
|
948
|
+
});
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
/** Saves the Tree's state.
|
|
953
|
+
* @returns {any}
|
|
954
|
+
*/
|
|
955
|
+
public saveState() : any {
|
|
956
|
+
const result: any = this.nativeElement.saveState();
|
|
957
|
+
return result;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
/** Selects an item by its index or by HTMLElement id.
|
|
961
|
+
* @param {HTMLElement | string} item. The jqx-tree-item/jqx-tree-items-group (or its id or numeric path) to remove.
|
|
962
|
+
*/
|
|
963
|
+
public select(item: HTMLElement | string): void {
|
|
964
|
+
if (this.nativeElement.isRendered) {
|
|
965
|
+
this.nativeElement.select(item);
|
|
966
|
+
}
|
|
967
|
+
else
|
|
968
|
+
{
|
|
969
|
+
this.nativeElement.whenRendered(() => {
|
|
970
|
+
this.nativeElement.select(item);
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
/** Selects an item or items by values.
|
|
976
|
+
* @param {string | string[]} items. The jqx-tree-item/jqx-tree-items-group values or labels, if values are not defined.
|
|
977
|
+
*/
|
|
978
|
+
public setSelectedValues(items: string | string[]): void {
|
|
979
|
+
if (this.nativeElement.isRendered) {
|
|
980
|
+
this.nativeElement.setSelectedValues(items);
|
|
981
|
+
}
|
|
982
|
+
else
|
|
983
|
+
{
|
|
984
|
+
this.nativeElement.whenRendered(() => {
|
|
985
|
+
this.nativeElement.setSelectedValues(items);
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
/** Unselects an item by its index or by HTMLElement id.
|
|
991
|
+
* @param {HTMLElement | string} item. The jqx-tree-item/jqx-tree-items-group (or its id or numeric path) to remove.
|
|
992
|
+
*/
|
|
993
|
+
public unselect(item: HTMLElement | string): void {
|
|
994
|
+
if (this.nativeElement.isRendered) {
|
|
995
|
+
this.nativeElement.unselect(item);
|
|
996
|
+
}
|
|
997
|
+
else
|
|
998
|
+
{
|
|
999
|
+
this.nativeElement.whenRendered(() => {
|
|
1000
|
+
this.nativeElement.unselect(item);
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
/** Unselects an item or items by values.
|
|
1006
|
+
* @param {string | string[]} items. The jqx-tree-item/jqx-tree-items-group values or labels, if values are not defined.
|
|
1007
|
+
*/
|
|
1008
|
+
public unselectValues(items: string | string[]): void {
|
|
1009
|
+
if (this.nativeElement.isRendered) {
|
|
1010
|
+
this.nativeElement.unselectValues(items);
|
|
1011
|
+
}
|
|
1012
|
+
else
|
|
1013
|
+
{
|
|
1014
|
+
this.nativeElement.whenRendered(() => {
|
|
1015
|
+
this.nativeElement.unselectValues(items);
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
/** Updates an item.
|
|
1021
|
+
* @param {HTMLElement | string} item. jqx-tree-item/jqx-tree-items-group (or its id or numeric path).
|
|
1022
|
+
* @param {any} newItem. An object with updated properties.
|
|
1023
|
+
*/
|
|
1024
|
+
public updateItem(item: HTMLElement | string, newItem: any): void {
|
|
1025
|
+
if (this.nativeElement.isRendered) {
|
|
1026
|
+
this.nativeElement.updateItem(item, newItem);
|
|
1027
|
+
}
|
|
1028
|
+
else
|
|
1029
|
+
{
|
|
1030
|
+
this.nativeElement.whenRendered(() => {
|
|
1031
|
+
this.nativeElement.updateItem(item, newItem);
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
constructor(props: any) {
|
|
1039
|
+
super(props);
|
|
1040
|
+
this.componentRef = React.createRef();
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
componentDidRender(initialize: boolean) {
|
|
1044
|
+
const that = this;
|
|
1045
|
+
const props: any = {};
|
|
1046
|
+
const events: any = {};
|
|
1047
|
+
let styles: any = null;
|
|
1048
|
+
|
|
1049
|
+
const stringifyCircularJSON = (obj: any) => {
|
|
1050
|
+
const seen = new WeakSet();
|
|
1051
|
+
return JSON.stringify(obj, (k, v) => {
|
|
1052
|
+
if (v !== null && typeof v === 'object') {
|
|
1053
|
+
if (seen.has(v)) return;
|
|
1054
|
+
seen.add(v);
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
if (k === 'Smart') {
|
|
1058
|
+
return v;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
return v;
|
|
1062
|
+
});
|
|
1063
|
+
};
|
|
1064
|
+
|
|
1065
|
+
for(let prop in that.props) {
|
|
1066
|
+
if (prop === 'children') {
|
|
1067
|
+
continue;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
if (prop === 'style') {
|
|
1071
|
+
styles = that.props[prop];
|
|
1072
|
+
continue;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
if (prop.startsWith('on') && that.properties.indexOf(prop) === -1) {
|
|
1076
|
+
events[prop] = that.props[prop];
|
|
1077
|
+
continue;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
props[prop] = that.props[prop];
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
if (initialize) {
|
|
1084
|
+
that.nativeElement = this.componentRef.current;
|
|
1085
|
+
if (that.nativeElement && !that.nativeElement.isCompleted) {
|
|
1086
|
+
that.nativeElement.reactStateProps = JSON.parse(stringifyCircularJSON(props));
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
if (initialize && that.nativeElement && that.nativeElement.isCompleted) {
|
|
1091
|
+
// return;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
for(let prop in props) {
|
|
1096
|
+
if (prop === 'class' || prop === 'className') {
|
|
1097
|
+
const classNames = props[prop].trim().split(' ');
|
|
1098
|
+
|
|
1099
|
+
if (that.nativeElement._classNames) {
|
|
1100
|
+
const oldClassNames = that.nativeElement._classNames;
|
|
1101
|
+
for(let className in oldClassNames) {
|
|
1102
|
+
if (that.nativeElement.classList.contains(oldClassNames[className]) && oldClassNames[className] !== "") {
|
|
1103
|
+
that.nativeElement.classList.remove(oldClassNames[className]);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
that.nativeElement._classNames = classNames;
|
|
1109
|
+
|
|
1110
|
+
for(let className in classNames) {
|
|
1111
|
+
if (!that.nativeElement.classList.contains(classNames[className]) && classNames[className] !== "") {
|
|
1112
|
+
that.nativeElement.classList.add(classNames[className]);
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
continue;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
if (props[prop] !== that.nativeElement[prop]) {
|
|
1120
|
+
const normalizeProp = (str: string) => {
|
|
1121
|
+
return str.replace(/-([a-z])/g, function (g) {
|
|
1122
|
+
return g[1].toUpperCase();
|
|
1123
|
+
});
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
if (prop === 'hover' || prop === 'active' || prop === 'focus' || prop === 'selected') {
|
|
1127
|
+
that.nativeElement.setAttribute(prop, '');
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
const normalizedProp = normalizeProp(prop);
|
|
1131
|
+
|
|
1132
|
+
if (that.nativeElement[normalizedProp] === undefined) {
|
|
1133
|
+
that.nativeElement.setAttribute(prop, props[prop]);
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
if (props[prop] !== undefined) {
|
|
1137
|
+
if (typeof props[prop] === 'object' && that.nativeElement.reactStateProps && !initialize) {
|
|
1138
|
+
if (stringifyCircularJSON(props[prop]) === stringifyCircularJSON(that.nativeElement.reactStateProps[normalizedProp])) {
|
|
1139
|
+
continue;
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
that.nativeElement[normalizedProp] = props[prop];
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
for(let eventName in events) {
|
|
1150
|
+
that[eventName] = events[eventName];
|
|
1151
|
+
that.nativeElement[eventName.toLowerCase()] = events[eventName];
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
if (initialize) {
|
|
1155
|
+
Smart.Render();
|
|
1156
|
+
|
|
1157
|
+
if (that.onCreate) {
|
|
1158
|
+
that.onCreate();
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
that.nativeElement.whenRendered(() => {
|
|
1162
|
+
if (that.onReady) {
|
|
1163
|
+
that.onReady();
|
|
1164
|
+
}
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
// setup styles.
|
|
1169
|
+
|
|
1170
|
+
if (styles) {
|
|
1171
|
+
for(let styleName in styles) {
|
|
1172
|
+
that.nativeElement.style[styleName] = styles[styleName];
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
componentDidMount() {
|
|
1178
|
+
this.componentDidRender(true);
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
componentDidUpdate() {
|
|
1182
|
+
this.componentDidRender(false);
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
componentWillUnmount() {
|
|
1186
|
+
const that = this;
|
|
1187
|
+
|
|
1188
|
+
if (!that.nativeElement) {
|
|
1189
|
+
return;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
that.nativeElement.whenRenderedCallbacks = [];
|
|
1193
|
+
|
|
1194
|
+
for(let i = 0; i < that.eventListeners.length; i++){
|
|
1195
|
+
const eventName = that.eventListeners[i];
|
|
1196
|
+
|
|
1197
|
+
that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
render() {
|
|
1202
|
+
return (
|
|
1203
|
+
React.createElement("smart-tree", { ref: this.componentRef }, this.props.children)
|
|
1204
|
+
)
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
export default Tree;
|