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,165 @@
|
|
|
1
|
+
import { BootstrapCheckBox } from './../index';
|
|
2
|
+
import { BootstrapCheckBoxStyleMode, ElementRenderMode} from './../index';
|
|
3
|
+
import { Component, Directive, AfterViewInit, ElementRef, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, Output, EventEmitter } from '@angular/core';
|
|
4
|
+
import { BaseElement, Smart } from './smart.element';
|
|
5
|
+
export { BootstrapCheckBoxStyleMode, ElementRenderMode} from './../index';
|
|
6
|
+
export { Smart } from './smart.element';
|
|
7
|
+
export { BootstrapCheckBox } from './../index';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@Directive({
|
|
11
|
+
exportAs: 'bootstrap-check-box', selector: 'bootstrap-check-box, [bootstrap-check-box]'
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
export class BootstrapCheckBoxComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges {
|
|
15
|
+
constructor(ref: ElementRef<BootstrapCheckBox>) {
|
|
16
|
+
super(ref);
|
|
17
|
+
this.nativeElement = ref.nativeElement as BootstrapCheckBox;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
private eventHandlers: any[] = [];
|
|
21
|
+
|
|
22
|
+
public declare nativeElement: BootstrapCheckBox;
|
|
23
|
+
/** @description Creates the component on demand.
|
|
24
|
+
* @param properties An optional object of properties, which will be added to the template binded ones.
|
|
25
|
+
*/
|
|
26
|
+
public createComponent(properties = {}): any {
|
|
27
|
+
this.nativeElement = <BootstrapCheckBox>document.createElement('bootstrap-check-box');
|
|
28
|
+
for (let propertyName in properties) {
|
|
29
|
+
this.nativeElement[propertyName] = properties[propertyName];
|
|
30
|
+
}
|
|
31
|
+
return this.nativeElement;
|
|
32
|
+
}
|
|
33
|
+
/** @description Gets or sets the checked state of the element. */
|
|
34
|
+
@Input()
|
|
35
|
+
get checked(): boolean {
|
|
36
|
+
return this.nativeElement ? this.nativeElement.checked : undefined;
|
|
37
|
+
}
|
|
38
|
+
set checked(value: boolean) {
|
|
39
|
+
this.nativeElement ? this.nativeElement.checked = value : undefined;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** @description Enables or disables the element. */
|
|
43
|
+
@Input()
|
|
44
|
+
get disabled(): boolean {
|
|
45
|
+
return this.nativeElement ? this.nativeElement.disabled : undefined;
|
|
46
|
+
}
|
|
47
|
+
set disabled(value: boolean) {
|
|
48
|
+
this.nativeElement ? this.nativeElement.disabled = value : undefined;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** @description Gets or sets whether the element is in indeterminate state. */
|
|
52
|
+
@Input()
|
|
53
|
+
get indeterminate(): boolean {
|
|
54
|
+
return this.nativeElement ? this.nativeElement.indeterminate : undefined;
|
|
55
|
+
}
|
|
56
|
+
set indeterminate(value: boolean) {
|
|
57
|
+
this.nativeElement ? this.nativeElement.indeterminate = value : undefined;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** @description Sets the inner HTML of the element. */
|
|
61
|
+
@Input()
|
|
62
|
+
get innerHTML(): string {
|
|
63
|
+
return this.nativeElement ? this.nativeElement.innerHTML : undefined;
|
|
64
|
+
}
|
|
65
|
+
set innerHTML(value: string) {
|
|
66
|
+
this.nativeElement ? this.nativeElement.innerHTML = value : undefined;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** @description Sets or gets the name attribute for the element. Name is used when submiting HTML forms. */
|
|
70
|
+
@Input()
|
|
71
|
+
get name(): string {
|
|
72
|
+
return this.nativeElement ? this.nativeElement.name : undefined;
|
|
73
|
+
}
|
|
74
|
+
set name(value: string) {
|
|
75
|
+
this.nativeElement ? this.nativeElement.name = value : undefined;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** @description Gets or sets whether the element is required. */
|
|
79
|
+
@Input()
|
|
80
|
+
get required(): boolean {
|
|
81
|
+
return this.nativeElement ? this.nativeElement.required : undefined;
|
|
82
|
+
}
|
|
83
|
+
set required(value: boolean) {
|
|
84
|
+
this.nativeElement ? this.nativeElement.required = value : undefined;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** @description Sets or gets the style mode of the element. */
|
|
88
|
+
@Input()
|
|
89
|
+
get styleMode(): BootstrapCheckBoxStyleMode | string {
|
|
90
|
+
return this.nativeElement ? this.nativeElement.styleMode : undefined;
|
|
91
|
+
}
|
|
92
|
+
set styleMode(value: BootstrapCheckBoxStyleMode | string) {
|
|
93
|
+
this.nativeElement ? this.nativeElement.styleMode = value : undefined;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** @description Change event is triggered when the value of the checkbox is changed.
|
|
97
|
+
* @param event. The custom event. */
|
|
98
|
+
@Output() onChange: EventEmitter<CustomEvent> = new EventEmitter();
|
|
99
|
+
|
|
100
|
+
/** @description Toggles the checkbox
|
|
101
|
+
*/
|
|
102
|
+
public toggle(): void {
|
|
103
|
+
if (this.nativeElement.isRendered) {
|
|
104
|
+
this.nativeElement.toggle();
|
|
105
|
+
}
|
|
106
|
+
else
|
|
107
|
+
{
|
|
108
|
+
this.nativeElement.whenRendered(() => {
|
|
109
|
+
this.nativeElement.toggle();
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
get isRendered(): boolean {
|
|
116
|
+
return this.nativeElement ? this.nativeElement.isRendered : false;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
ngOnInit() {
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
ngAfterViewInit() {
|
|
123
|
+
const that = this;
|
|
124
|
+
|
|
125
|
+
that.onCreate.emit(that.nativeElement);
|
|
126
|
+
|
|
127
|
+
Smart.Render();
|
|
128
|
+
|
|
129
|
+
this.nativeElement.classList.add('smart-angular');
|
|
130
|
+
|
|
131
|
+
this.nativeElement.whenRendered(() => { that.onReady.emit(that.nativeElement); });
|
|
132
|
+
this.listen();
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
ngOnDestroy() {
|
|
136
|
+
this.unlisten();
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
ngOnChanges(changes: SimpleChanges) {
|
|
140
|
+
if (this.nativeElement && this.nativeElement.isRendered) {
|
|
141
|
+
for (const propName in changes) {
|
|
142
|
+
if (changes.hasOwnProperty(propName)) {
|
|
143
|
+
this.nativeElement[propName] = changes[propName].currentValue;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** @description Add event listeners. */
|
|
150
|
+
private listen(): void {
|
|
151
|
+
const that = this;
|
|
152
|
+
that.eventHandlers['changeHandler'] = (event: CustomEvent) => { that.onChange.emit(event); }
|
|
153
|
+
that.nativeElement.addEventListener('change', that.eventHandlers['changeHandler']);
|
|
154
|
+
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/** @description Remove event listeners. */
|
|
158
|
+
private unlisten(): void {
|
|
159
|
+
const that = this;
|
|
160
|
+
if (that.eventHandlers['changeHandler']) {
|
|
161
|
+
that.nativeElement.removeEventListener('change', that.eventHandlers['changeHandler']);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { BootstrapCircular } from './../index';
|
|
2
|
+
import { BootstrapCircularStyleMode, ElementRenderMode} from './../index';
|
|
3
|
+
import { Component, Directive, AfterViewInit, ElementRef, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, Output, EventEmitter } from '@angular/core';
|
|
4
|
+
import { BaseElement, Smart } from './smart.element';
|
|
5
|
+
export { BootstrapCircularStyleMode, ElementRenderMode} from './../index';
|
|
6
|
+
export { Smart } from './smart.element';
|
|
7
|
+
export { BootstrapCircular } from './../index';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@Directive({
|
|
11
|
+
exportAs: 'bootstrap-circular', selector: 'bootstrap-circular, [bootstrap-circular]'
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
export class BootstrapCircularComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges {
|
|
15
|
+
constructor(ref: ElementRef<BootstrapCircular>) {
|
|
16
|
+
super(ref);
|
|
17
|
+
this.nativeElement = ref.nativeElement as BootstrapCircular;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
private eventHandlers: any[] = [];
|
|
21
|
+
|
|
22
|
+
public declare nativeElement: BootstrapCircular;
|
|
23
|
+
/** @description Creates the component on demand.
|
|
24
|
+
* @param properties An optional object of properties, which will be added to the template binded ones.
|
|
25
|
+
*/
|
|
26
|
+
public createComponent(properties = {}): any {
|
|
27
|
+
this.nativeElement = <BootstrapCircular>document.createElement('bootstrap-circular');
|
|
28
|
+
for (let propertyName in properties) {
|
|
29
|
+
this.nativeElement[propertyName] = properties[propertyName];
|
|
30
|
+
}
|
|
31
|
+
return this.nativeElement;
|
|
32
|
+
}
|
|
33
|
+
/** @description Enables or disables the element. */
|
|
34
|
+
@Input()
|
|
35
|
+
get disabled(): boolean {
|
|
36
|
+
return this.nativeElement ? this.nativeElement.disabled : undefined;
|
|
37
|
+
}
|
|
38
|
+
set disabled(value: boolean) {
|
|
39
|
+
this.nativeElement ? this.nativeElement.disabled = value : undefined;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** @description Sets the name of the element. */
|
|
43
|
+
@Input()
|
|
44
|
+
get name(): string {
|
|
45
|
+
return this.nativeElement ? this.nativeElement.name : undefined;
|
|
46
|
+
}
|
|
47
|
+
set name(value: string) {
|
|
48
|
+
this.nativeElement ? this.nativeElement.name = value : undefined;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** @description Sets or gets the min value */
|
|
52
|
+
@Input()
|
|
53
|
+
get min(): number {
|
|
54
|
+
return this.nativeElement ? this.nativeElement.min : undefined;
|
|
55
|
+
}
|
|
56
|
+
set min(value: number) {
|
|
57
|
+
this.nativeElement ? this.nativeElement.min = value : undefined;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** @description Sets or gets the max value */
|
|
61
|
+
@Input()
|
|
62
|
+
get max(): number {
|
|
63
|
+
return this.nativeElement ? this.nativeElement.max : undefined;
|
|
64
|
+
}
|
|
65
|
+
set max(value: number) {
|
|
66
|
+
this.nativeElement ? this.nativeElement.max = value : undefined;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** @description Sets whether stripes are displayed in the progress. */
|
|
70
|
+
@Input()
|
|
71
|
+
get striped(): boolean {
|
|
72
|
+
return this.nativeElement ? this.nativeElement.striped : undefined;
|
|
73
|
+
}
|
|
74
|
+
set striped(value: boolean) {
|
|
75
|
+
this.nativeElement ? this.nativeElement.striped = value : undefined;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** @description Sets or gets the style mode of the button. */
|
|
79
|
+
@Input()
|
|
80
|
+
get styleMode(): BootstrapCircularStyleMode | string {
|
|
81
|
+
return this.nativeElement ? this.nativeElement.styleMode : undefined;
|
|
82
|
+
}
|
|
83
|
+
set styleMode(value: BootstrapCircularStyleMode | string) {
|
|
84
|
+
this.nativeElement ? this.nativeElement.styleMode = value : undefined;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** @description Sets or gets the value */
|
|
88
|
+
@Input()
|
|
89
|
+
get value(): number {
|
|
90
|
+
return this.nativeElement ? this.nativeElement.value : undefined;
|
|
91
|
+
}
|
|
92
|
+
set value(value: number) {
|
|
93
|
+
this.nativeElement ? this.nativeElement.value = value : undefined;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** @description Change event is triggered when the value of the element is changed.
|
|
97
|
+
* @param event. The custom event. */
|
|
98
|
+
@Output() onChange: EventEmitter<CustomEvent> = new EventEmitter();
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
get isRendered(): boolean {
|
|
102
|
+
return this.nativeElement ? this.nativeElement.isRendered : false;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
ngOnInit() {
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
ngAfterViewInit() {
|
|
109
|
+
const that = this;
|
|
110
|
+
|
|
111
|
+
that.onCreate.emit(that.nativeElement);
|
|
112
|
+
|
|
113
|
+
Smart.Render();
|
|
114
|
+
|
|
115
|
+
this.nativeElement.classList.add('smart-angular');
|
|
116
|
+
|
|
117
|
+
this.nativeElement.whenRendered(() => { that.onReady.emit(that.nativeElement); });
|
|
118
|
+
this.listen();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
ngOnDestroy() {
|
|
122
|
+
this.unlisten();
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
ngOnChanges(changes: SimpleChanges) {
|
|
126
|
+
if (this.nativeElement && this.nativeElement.isRendered) {
|
|
127
|
+
for (const propName in changes) {
|
|
128
|
+
if (changes.hasOwnProperty(propName)) {
|
|
129
|
+
this.nativeElement[propName] = changes[propName].currentValue;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/** @description Add event listeners. */
|
|
136
|
+
private listen(): void {
|
|
137
|
+
const that = this;
|
|
138
|
+
that.eventHandlers['changeHandler'] = (event: CustomEvent) => { that.onChange.emit(event); }
|
|
139
|
+
that.nativeElement.addEventListener('change', that.eventHandlers['changeHandler']);
|
|
140
|
+
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/** @description Remove event listeners. */
|
|
144
|
+
private unlisten(): void {
|
|
145
|
+
const that = this;
|
|
146
|
+
if (that.eventHandlers['changeHandler']) {
|
|
147
|
+
that.nativeElement.removeEventListener('change', that.eventHandlers['changeHandler']);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { BootstrapDropDown } from './../index';
|
|
2
|
+
import { BootstrapDropDownDropDownPosition, BootstrapDropDownLabelType, BootstrapDropDownStyleMode, ElementRenderMode} from './../index';
|
|
3
|
+
import { Component, Directive, AfterViewInit, ElementRef, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, Output, EventEmitter } from '@angular/core';
|
|
4
|
+
import { BaseElement, Smart } from './smart.element';
|
|
5
|
+
export { BootstrapDropDownDropDownPosition, BootstrapDropDownLabelType, BootstrapDropDownStyleMode, ElementRenderMode} from './../index';
|
|
6
|
+
export { Smart } from './smart.element';
|
|
7
|
+
export { BootstrapDropDown } from './../index';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@Directive({
|
|
11
|
+
exportAs: 'bootstrap-drop-down', selector: 'bootstrap-drop-down, [bootstrap-drop-down]'
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
export class BootstrapDropDownComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges {
|
|
15
|
+
constructor(ref: ElementRef<BootstrapDropDown>) {
|
|
16
|
+
super(ref);
|
|
17
|
+
this.nativeElement = ref.nativeElement as BootstrapDropDown;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
private eventHandlers: any[] = [];
|
|
21
|
+
|
|
22
|
+
public declare nativeElement: BootstrapDropDown;
|
|
23
|
+
/** @description Creates the component on demand.
|
|
24
|
+
* @param properties An optional object of properties, which will be added to the template binded ones.
|
|
25
|
+
*/
|
|
26
|
+
public createComponent(properties = {}): any {
|
|
27
|
+
this.nativeElement = <BootstrapDropDown>document.createElement('bootstrap-drop-down');
|
|
28
|
+
for (let propertyName in properties) {
|
|
29
|
+
this.nativeElement[propertyName] = properties[propertyName];
|
|
30
|
+
}
|
|
31
|
+
return this.nativeElement;
|
|
32
|
+
}
|
|
33
|
+
/** @description Enables or disables the element. */
|
|
34
|
+
@Input()
|
|
35
|
+
get disabled(): boolean {
|
|
36
|
+
return this.nativeElement ? this.nativeElement.disabled : undefined;
|
|
37
|
+
}
|
|
38
|
+
set disabled(value: boolean) {
|
|
39
|
+
this.nativeElement ? this.nativeElement.disabled = value : undefined;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** @description Sets or gets the drop down position of the element. */
|
|
43
|
+
@Input()
|
|
44
|
+
get dropDownPosition(): BootstrapDropDownDropDownPosition | string {
|
|
45
|
+
return this.nativeElement ? this.nativeElement.dropDownPosition : undefined;
|
|
46
|
+
}
|
|
47
|
+
set dropDownPosition(value: BootstrapDropDownDropDownPosition | string) {
|
|
48
|
+
this.nativeElement ? this.nativeElement.dropDownPosition = value : undefined;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** @description Sets or gets the Label of the element. */
|
|
52
|
+
@Input()
|
|
53
|
+
get label(): string {
|
|
54
|
+
return this.nativeElement ? this.nativeElement.label : undefined;
|
|
55
|
+
}
|
|
56
|
+
set label(value: string) {
|
|
57
|
+
this.nativeElement ? this.nativeElement.label = value : undefined;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** @description Sets or gets the Label type of the element. */
|
|
61
|
+
@Input()
|
|
62
|
+
get labelType(): BootstrapDropDownLabelType | string {
|
|
63
|
+
return this.nativeElement ? this.nativeElement.labelType : undefined;
|
|
64
|
+
}
|
|
65
|
+
set labelType(value: BootstrapDropDownLabelType | string) {
|
|
66
|
+
this.nativeElement ? this.nativeElement.labelType = value : undefined;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** @description Sets or gets the Href of the element. */
|
|
70
|
+
@Input()
|
|
71
|
+
get href(): string {
|
|
72
|
+
return this.nativeElement ? this.nativeElement.href : undefined;
|
|
73
|
+
}
|
|
74
|
+
set href(value: string) {
|
|
75
|
+
this.nativeElement ? this.nativeElement.href = value : undefined;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** @description Sets or gets the name attribute for the element. Name is used when submiting HTML forms. */
|
|
79
|
+
@Input()
|
|
80
|
+
get name(): string {
|
|
81
|
+
return this.nativeElement ? this.nativeElement.name : undefined;
|
|
82
|
+
}
|
|
83
|
+
set name(value: string) {
|
|
84
|
+
this.nativeElement ? this.nativeElement.name = value : undefined;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** @description Gets or sets whether the dropdown is opened. */
|
|
88
|
+
@Input()
|
|
89
|
+
get opened(): boolean {
|
|
90
|
+
return this.nativeElement ? this.nativeElement.opened : undefined;
|
|
91
|
+
}
|
|
92
|
+
set opened(value: boolean) {
|
|
93
|
+
this.nativeElement ? this.nativeElement.opened = value : undefined;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** @description Gets or sets whether the dropdown is outlined. */
|
|
97
|
+
@Input()
|
|
98
|
+
get outlined(): boolean {
|
|
99
|
+
return this.nativeElement ? this.nativeElement.outlined : undefined;
|
|
100
|
+
}
|
|
101
|
+
set outlined(value: boolean) {
|
|
102
|
+
this.nativeElement ? this.nativeElement.outlined = value : undefined;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/** @description Sets or gets the style mode of the element. */
|
|
106
|
+
@Input()
|
|
107
|
+
get styleMode(): BootstrapDropDownStyleMode | string {
|
|
108
|
+
return this.nativeElement ? this.nativeElement.styleMode : undefined;
|
|
109
|
+
}
|
|
110
|
+
set styleMode(value: BootstrapDropDownStyleMode | string) {
|
|
111
|
+
this.nativeElement ? this.nativeElement.styleMode = value : undefined;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** @description Sets or gets the size mode of the element. */
|
|
115
|
+
@Input()
|
|
116
|
+
get sizeMode(): string {
|
|
117
|
+
return this.nativeElement ? this.nativeElement.sizeMode : undefined;
|
|
118
|
+
}
|
|
119
|
+
set sizeMode(value: string) {
|
|
120
|
+
this.nativeElement ? this.nativeElement.sizeMode = value : undefined;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** @description Show event is triggered when the dropdown is going to show.
|
|
124
|
+
* @param event. The custom event. */
|
|
125
|
+
@Output() onShow: EventEmitter<CustomEvent> = new EventEmitter();
|
|
126
|
+
|
|
127
|
+
/** @description Shown event is triggered when the dropdown is shown.
|
|
128
|
+
* @param event. The custom event. */
|
|
129
|
+
@Output() onShown: EventEmitter<CustomEvent> = new EventEmitter();
|
|
130
|
+
|
|
131
|
+
/** @description Hide event is triggered when the dropdown is going to be hidden.
|
|
132
|
+
* @param event. The custom event. */
|
|
133
|
+
@Output() onHide: EventEmitter<CustomEvent> = new EventEmitter();
|
|
134
|
+
|
|
135
|
+
/** @description Hidden event is triggered when the dropdown is hidden
|
|
136
|
+
* @param event. The custom event. */
|
|
137
|
+
@Output() onHidden: EventEmitter<CustomEvent> = new EventEmitter();
|
|
138
|
+
|
|
139
|
+
/** @description Toggles the dropdown visibility
|
|
140
|
+
*/
|
|
141
|
+
public toggle(): void {
|
|
142
|
+
if (this.nativeElement.isRendered) {
|
|
143
|
+
this.nativeElement.toggle();
|
|
144
|
+
}
|
|
145
|
+
else
|
|
146
|
+
{
|
|
147
|
+
this.nativeElement.whenRendered(() => {
|
|
148
|
+
this.nativeElement.toggle();
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/** @description Shows the dropdown
|
|
154
|
+
*/
|
|
155
|
+
public show(): void {
|
|
156
|
+
if (this.nativeElement.isRendered) {
|
|
157
|
+
this.nativeElement.show();
|
|
158
|
+
}
|
|
159
|
+
else
|
|
160
|
+
{
|
|
161
|
+
this.nativeElement.whenRendered(() => {
|
|
162
|
+
this.nativeElement.show();
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/** @description Hides the dropdown
|
|
168
|
+
*/
|
|
169
|
+
public hide(): void {
|
|
170
|
+
if (this.nativeElement.isRendered) {
|
|
171
|
+
this.nativeElement.hide();
|
|
172
|
+
}
|
|
173
|
+
else
|
|
174
|
+
{
|
|
175
|
+
this.nativeElement.whenRendered(() => {
|
|
176
|
+
this.nativeElement.hide();
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
get isRendered(): boolean {
|
|
183
|
+
return this.nativeElement ? this.nativeElement.isRendered : false;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
ngOnInit() {
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
ngAfterViewInit() {
|
|
190
|
+
const that = this;
|
|
191
|
+
|
|
192
|
+
that.onCreate.emit(that.nativeElement);
|
|
193
|
+
|
|
194
|
+
Smart.Render();
|
|
195
|
+
|
|
196
|
+
this.nativeElement.classList.add('smart-angular');
|
|
197
|
+
|
|
198
|
+
this.nativeElement.whenRendered(() => { that.onReady.emit(that.nativeElement); });
|
|
199
|
+
this.listen();
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
ngOnDestroy() {
|
|
203
|
+
this.unlisten();
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
ngOnChanges(changes: SimpleChanges) {
|
|
207
|
+
if (this.nativeElement && this.nativeElement.isRendered) {
|
|
208
|
+
for (const propName in changes) {
|
|
209
|
+
if (changes.hasOwnProperty(propName)) {
|
|
210
|
+
this.nativeElement[propName] = changes[propName].currentValue;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/** @description Add event listeners. */
|
|
217
|
+
private listen(): void {
|
|
218
|
+
const that = this;
|
|
219
|
+
that.eventHandlers['showHandler'] = (event: CustomEvent) => { that.onShow.emit(event); }
|
|
220
|
+
that.nativeElement.addEventListener('show', that.eventHandlers['showHandler']);
|
|
221
|
+
|
|
222
|
+
that.eventHandlers['shownHandler'] = (event: CustomEvent) => { that.onShown.emit(event); }
|
|
223
|
+
that.nativeElement.addEventListener('shown', that.eventHandlers['shownHandler']);
|
|
224
|
+
|
|
225
|
+
that.eventHandlers['hideHandler'] = (event: CustomEvent) => { that.onHide.emit(event); }
|
|
226
|
+
that.nativeElement.addEventListener('hide', that.eventHandlers['hideHandler']);
|
|
227
|
+
|
|
228
|
+
that.eventHandlers['hiddenHandler'] = (event: CustomEvent) => { that.onHidden.emit(event); }
|
|
229
|
+
that.nativeElement.addEventListener('hidden', that.eventHandlers['hiddenHandler']);
|
|
230
|
+
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/** @description Remove event listeners. */
|
|
234
|
+
private unlisten(): void {
|
|
235
|
+
const that = this;
|
|
236
|
+
if (that.eventHandlers['showHandler']) {
|
|
237
|
+
that.nativeElement.removeEventListener('show', that.eventHandlers['showHandler']);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (that.eventHandlers['shownHandler']) {
|
|
241
|
+
that.nativeElement.removeEventListener('shown', that.eventHandlers['shownHandler']);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
if (that.eventHandlers['hideHandler']) {
|
|
245
|
+
that.nativeElement.removeEventListener('hide', that.eventHandlers['hideHandler']);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
if (that.eventHandlers['hiddenHandler']) {
|
|
249
|
+
that.nativeElement.removeEventListener('hidden', that.eventHandlers['hiddenHandler']);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
}
|
|
253
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { BootstrapFileInput } from './../index';
|
|
2
|
+
import { BootstrapFileInputStyleMode, ElementRenderMode} from './../index';
|
|
3
|
+
import { Component, Directive, AfterViewInit, ElementRef, Input, OnInit, OnChanges, OnDestroy, SimpleChanges, Output, EventEmitter } from '@angular/core';
|
|
4
|
+
import { BaseElement, Smart } from './smart.element';
|
|
5
|
+
export { BootstrapFileInputStyleMode, ElementRenderMode} from './../index';
|
|
6
|
+
export { Smart } from './smart.element';
|
|
7
|
+
export { BootstrapFileInput } from './../index';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@Directive({
|
|
11
|
+
exportAs: 'bootstrap-file-input', selector: 'bootstrap-file-input, [bootstrap-file-input]'
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
export class BootstrapFileInputComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges {
|
|
15
|
+
constructor(ref: ElementRef<BootstrapFileInput>) {
|
|
16
|
+
super(ref);
|
|
17
|
+
this.nativeElement = ref.nativeElement as BootstrapFileInput;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
private eventHandlers: any[] = [];
|
|
21
|
+
|
|
22
|
+
public declare nativeElement: BootstrapFileInput;
|
|
23
|
+
/** @description Creates the component on demand.
|
|
24
|
+
* @param properties An optional object of properties, which will be added to the template binded ones.
|
|
25
|
+
*/
|
|
26
|
+
public createComponent(properties = {}): any {
|
|
27
|
+
this.nativeElement = <BootstrapFileInput>document.createElement('bootstrap-file-input');
|
|
28
|
+
for (let propertyName in properties) {
|
|
29
|
+
this.nativeElement[propertyName] = properties[propertyName];
|
|
30
|
+
}
|
|
31
|
+
return this.nativeElement;
|
|
32
|
+
}
|
|
33
|
+
/** @description Enables or disables the element. */
|
|
34
|
+
@Input()
|
|
35
|
+
get disabled(): boolean {
|
|
36
|
+
return this.nativeElement ? this.nativeElement.disabled : undefined;
|
|
37
|
+
}
|
|
38
|
+
set disabled(value: boolean) {
|
|
39
|
+
this.nativeElement ? this.nativeElement.disabled = value : undefined;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** @description Sets or gets the name attribute for the element. Name is used when submiting HTML forms. */
|
|
43
|
+
@Input()
|
|
44
|
+
get name(): string {
|
|
45
|
+
return this.nativeElement ? this.nativeElement.name : undefined;
|
|
46
|
+
}
|
|
47
|
+
set name(value: string) {
|
|
48
|
+
this.nativeElement ? this.nativeElement.name = value : undefined;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** @description Gets or sets the placeholder of the element. */
|
|
52
|
+
@Input()
|
|
53
|
+
get placeholder(): string {
|
|
54
|
+
return this.nativeElement ? this.nativeElement.placeholder : undefined;
|
|
55
|
+
}
|
|
56
|
+
set placeholder(value: string) {
|
|
57
|
+
this.nativeElement ? this.nativeElement.placeholder = value : undefined;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** @description Sets or gets the style mode of the element. */
|
|
61
|
+
@Input()
|
|
62
|
+
get styleMode(): BootstrapFileInputStyleMode | string {
|
|
63
|
+
return this.nativeElement ? this.nativeElement.styleMode : undefined;
|
|
64
|
+
}
|
|
65
|
+
set styleMode(value: BootstrapFileInputStyleMode | string) {
|
|
66
|
+
this.nativeElement ? this.nativeElement.styleMode = value : undefined;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** @description Gets or sets the value of the element. */
|
|
70
|
+
@Input()
|
|
71
|
+
get value(): string {
|
|
72
|
+
return this.nativeElement ? this.nativeElement.value : undefined;
|
|
73
|
+
}
|
|
74
|
+
set value(value: string) {
|
|
75
|
+
this.nativeElement ? this.nativeElement.value = value : undefined;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** @description Change event is triggered when the value of the element is changed.
|
|
79
|
+
* @param event. The custom event. */
|
|
80
|
+
@Output() onChange: EventEmitter<CustomEvent> = new EventEmitter();
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
get isRendered(): boolean {
|
|
84
|
+
return this.nativeElement ? this.nativeElement.isRendered : false;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
ngOnInit() {
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
ngAfterViewInit() {
|
|
91
|
+
const that = this;
|
|
92
|
+
|
|
93
|
+
that.onCreate.emit(that.nativeElement);
|
|
94
|
+
|
|
95
|
+
Smart.Render();
|
|
96
|
+
|
|
97
|
+
this.nativeElement.classList.add('smart-angular');
|
|
98
|
+
|
|
99
|
+
this.nativeElement.whenRendered(() => { that.onReady.emit(that.nativeElement); });
|
|
100
|
+
this.listen();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
ngOnDestroy() {
|
|
104
|
+
this.unlisten();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
ngOnChanges(changes: SimpleChanges) {
|
|
108
|
+
if (this.nativeElement && this.nativeElement.isRendered) {
|
|
109
|
+
for (const propName in changes) {
|
|
110
|
+
if (changes.hasOwnProperty(propName)) {
|
|
111
|
+
this.nativeElement[propName] = changes[propName].currentValue;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** @description Add event listeners. */
|
|
118
|
+
private listen(): void {
|
|
119
|
+
const that = this;
|
|
120
|
+
that.eventHandlers['changeHandler'] = (event: CustomEvent) => { that.onChange.emit(event); }
|
|
121
|
+
that.nativeElement.addEventListener('change', that.eventHandlers['changeHandler']);
|
|
122
|
+
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** @description Remove event listeners. */
|
|
126
|
+
private unlisten(): void {
|
|
127
|
+
const that = this;
|
|
128
|
+
if (that.eventHandlers['changeHandler']) {
|
|
129
|
+
that.nativeElement.removeEventListener('change', that.eventHandlers['changeHandler']);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
}
|
|
133
|
+
}
|