primeng 17.12.0 → 17.14.0
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/accordion/accordion.d.ts +5 -0
- package/animateonscroll/animateonscroll.d.ts +2 -0
- package/api/messageservice.d.ts +1 -1
- package/api/translation.d.ts +2 -0
- package/api/translationkeys.d.ts +1 -0
- package/api/treenode.d.ts +1 -0
- package/autocomplete/autocomplete.d.ts +27 -0
- package/autocomplete/autocomplete.interface.d.ts +1 -1
- package/autofocus/autofocus.d.ts +2 -1
- package/badge/badge.d.ts +34 -23
- package/baseicon/baseicon.d.ts +1 -0
- package/blockui/blockui.d.ts +2 -0
- package/button/button.d.ts +67 -6
- package/calendar/calendar.d.ts +47 -9
- package/carousel/carousel.d.ts +4 -0
- package/cascadeselect/cascadeselect.d.ts +23 -8
- package/chart/chart.d.ts +1 -0
- package/checkbox/checkbox.d.ts +16 -4
- package/chip/chip.d.ts +1 -0
- package/chips/chips.d.ts +19 -4
- package/colorpicker/colorpicker.d.ts +13 -2
- package/confirmdialog/confirmdialog.d.ts +10 -0
- package/confirmpopup/confirmpopup.d.ts +2 -0
- package/contextmenu/contextmenu.d.ts +11 -0
- package/dataview/dataview.d.ts +15 -0
- package/dialog/dialog.d.ts +20 -3
- package/dom/domhandler.d.ts +2 -0
- package/dragdrop/dragdrop.d.ts +1 -0
- package/dropdown/dropdown.d.ts +23 -0
- package/dynamicdialog/dialogservice.d.ts +3 -3
- package/dynamicdialog/dynamicdialog-config.d.ts +5 -0
- package/dynamicdialog/dynamicdialog-ref.d.ts +8 -2
- package/dynamicdialog/dynamicdialog.d.ts +6 -5
- package/editor/editor.d.ts +8 -8
- package/esm2022/accordion/accordion.mjs +14 -9
- package/esm2022/animateonscroll/animateonscroll.mjs +7 -5
- package/esm2022/api/messageservice.mjs +2 -2
- package/esm2022/api/primengconfig.mjs +4 -2
- package/esm2022/api/translation.mjs +1 -1
- package/esm2022/api/translationkeys.mjs +2 -1
- package/esm2022/api/treenode.mjs +1 -1
- package/esm2022/autocomplete/autocomplete.interface.mjs +1 -1
- package/esm2022/autocomplete/autocomplete.mjs +65 -38
- package/esm2022/autofocus/autofocus.mjs +13 -5
- package/esm2022/badge/badge.mjs +128 -82
- package/esm2022/baseicon/baseicon.mjs +5 -4
- package/esm2022/blockui/blockui.mjs +7 -5
- package/esm2022/button/button.mjs +130 -17
- package/esm2022/calendar/calendar.mjs +137 -106
- package/esm2022/carousel/carousel.mjs +11 -7
- package/esm2022/cascadeselect/cascadeselect.mjs +50 -27
- package/esm2022/chart/chart.mjs +5 -4
- package/esm2022/checkbox/checkbox.mjs +31 -12
- package/esm2022/chip/chip.mjs +5 -4
- package/esm2022/chips/chips.mjs +37 -15
- package/esm2022/colorpicker/colorpicker.mjs +29 -11
- package/esm2022/confirmdialog/confirmdialog.mjs +24 -14
- package/esm2022/confirmpopup/confirmpopup.mjs +8 -6
- package/esm2022/contextmenu/contextmenu.mjs +26 -15
- package/esm2022/dataview/dataview.mjs +34 -19
- package/esm2022/dialog/dialog.mjs +59 -56
- package/esm2022/dom/domhandler.mjs +22 -8
- package/esm2022/dragdrop/dragdrop.mjs +5 -4
- package/esm2022/dropdown/dropdown.mjs +69 -39
- package/esm2022/dynamicdialog/dialogservice.mjs +3 -3
- package/esm2022/dynamicdialog/dynamicdialog-config.mjs +6 -1
- package/esm2022/dynamicdialog/dynamicdialog-ref.mjs +7 -1
- package/esm2022/dynamicdialog/dynamicdialog.mjs +46 -70
- package/esm2022/editor/editor.mjs +49 -45
- package/esm2022/fieldset/fieldset.mjs +7 -5
- package/esm2022/fileupload/fileupload.mjs +76 -19
- package/esm2022/focustrap/focustrap.mjs +5 -4
- package/esm2022/galleria/galleria.mjs +57 -32
- package/esm2022/image/image.mjs +5 -4
- package/esm2022/inplace/inplace.mjs +12 -8
- package/esm2022/inputmask/inputmask.mjs +40 -17
- package/esm2022/inputnumber/inputnumber.interface.mjs +1 -1
- package/esm2022/inputnumber/inputnumber.mjs +63 -23
- package/esm2022/inputotp/inputotp.mjs +35 -16
- package/esm2022/inputswitch/inputswitch.mjs +27 -10
- package/esm2022/inputtextarea/inputtextarea.mjs +5 -4
- package/esm2022/keyfilter/keyfilter.mjs +16 -6
- package/esm2022/knob/knob.mjs +21 -12
- package/esm2022/listbox/listbox.mjs +41 -19
- package/esm2022/megamenu/megamenu.mjs +16 -10
- package/esm2022/menu/menu.mjs +11 -17
- package/esm2022/menubar/menubar.mjs +26 -15
- package/esm2022/message/message.mjs +5 -4
- package/esm2022/messages/messages.mjs +15 -11
- package/esm2022/metergroup/metergroup.interface.mjs +1 -1
- package/esm2022/metergroup/metergroup.mjs +12 -9
- package/esm2022/multiselect/multiselect.mjs +107 -54
- package/esm2022/orderlist/orderlist.mjs +16 -10
- package/esm2022/organizationchart/organizationchart.mjs +12 -8
- package/esm2022/overlaypanel/overlaypanel.mjs +13 -8
- package/esm2022/paginator/paginator.mjs +43 -13
- package/esm2022/panel/panel.mjs +9 -6
- package/esm2022/panelmenu/panelmenu.mjs +33 -16
- package/esm2022/password/password.mjs +34 -14
- package/esm2022/picklist/picklist.mjs +34 -19
- package/esm2022/progressbar/progressbar.mjs +7 -5
- package/esm2022/radiobutton/radiobutton.mjs +25 -9
- package/esm2022/rating/rating.mjs +38 -16
- package/esm2022/scroller/scroller.mjs +2 -2
- package/esm2022/scrollpanel/scrollpanel.mjs +5 -4
- package/esm2022/scrolltop/scrolltop.mjs +5 -4
- package/esm2022/selectbutton/selectbutton.mjs +31 -12
- package/esm2022/sidebar/sidebar.mjs +17 -10
- package/esm2022/slidemenu/slidemenu.mjs +40 -22
- package/esm2022/slider/slider.mjs +39 -14
- package/esm2022/speeddial/speeddial.interface.mjs +1 -1
- package/esm2022/speeddial/speeddial.mjs +94 -74
- package/esm2022/spinner/spinner.mjs +23 -13
- package/esm2022/splitbutton/splitbutton.mjs +173 -21
- package/esm2022/splitter/splitter.mjs +9 -6
- package/esm2022/steps/steps.mjs +13 -10
- package/esm2022/styleclass/styleclass.mjs +7 -5
- package/esm2022/table/table.mjs +146 -84
- package/esm2022/tabmenu/tabmenu.mjs +8 -6
- package/esm2022/tabview/tabview.mjs +18 -11
- package/esm2022/tag/tag.mjs +19 -7
- package/esm2022/tieredmenu/tieredmenu.mjs +35 -29
- package/esm2022/toast/toast.mjs +18 -11
- package/esm2022/togglebutton/togglebutton.mjs +27 -11
- package/esm2022/tooltip/tooltip.mjs +21 -12
- package/esm2022/tree/tree.mjs +42 -23
- package/esm2022/treeselect/treeselect.mjs +63 -18
- package/esm2022/treetable/treetable.mjs +288 -102
- package/esm2022/tristatecheckbox/tristatecheckbox.mjs +27 -10
- package/esm2022/virtualscroller/virtualscroller.mjs +9 -6
- package/fesm2022/primeng-accordion.mjs +13 -8
- package/fesm2022/primeng-accordion.mjs.map +1 -1
- package/fesm2022/primeng-animateonscroll.mjs +6 -4
- package/fesm2022/primeng-animateonscroll.mjs.map +1 -1
- package/fesm2022/primeng-api.mjs +5 -2
- package/fesm2022/primeng-api.mjs.map +1 -1
- package/fesm2022/primeng-autocomplete.mjs +64 -37
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-autofocus.mjs +12 -4
- package/fesm2022/primeng-autofocus.mjs.map +1 -1
- package/fesm2022/primeng-badge.mjs +127 -81
- package/fesm2022/primeng-badge.mjs.map +1 -1
- package/fesm2022/primeng-baseicon.mjs +4 -3
- package/fesm2022/primeng-baseicon.mjs.map +1 -1
- package/fesm2022/primeng-blockui.mjs +6 -4
- package/fesm2022/primeng-blockui.mjs.map +1 -1
- package/fesm2022/primeng-button.mjs +129 -16
- package/fesm2022/primeng-button.mjs.map +1 -1
- package/fesm2022/primeng-calendar.mjs +136 -105
- package/fesm2022/primeng-calendar.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +10 -6
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +49 -26
- package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
- package/fesm2022/primeng-chart.mjs +4 -3
- package/fesm2022/primeng-chart.mjs.map +1 -1
- package/fesm2022/primeng-checkbox.mjs +30 -11
- package/fesm2022/primeng-checkbox.mjs.map +1 -1
- package/fesm2022/primeng-chip.mjs +4 -3
- package/fesm2022/primeng-chip.mjs.map +1 -1
- package/fesm2022/primeng-chips.mjs +36 -14
- package/fesm2022/primeng-chips.mjs.map +1 -1
- package/fesm2022/primeng-colorpicker.mjs +28 -10
- package/fesm2022/primeng-colorpicker.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +23 -13
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-confirmpopup.mjs +7 -5
- package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
- package/fesm2022/primeng-contextmenu.mjs +25 -14
- package/fesm2022/primeng-contextmenu.mjs.map +1 -1
- package/fesm2022/primeng-dataview.mjs +33 -18
- package/fesm2022/primeng-dataview.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +58 -55
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-dom.mjs +21 -7
- package/fesm2022/primeng-dom.mjs.map +1 -1
- package/fesm2022/primeng-dragdrop.mjs +4 -3
- package/fesm2022/primeng-dragdrop.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +68 -38
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +58 -71
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
- package/fesm2022/primeng-editor.mjs +48 -43
- package/fesm2022/primeng-editor.mjs.map +1 -1
- package/fesm2022/primeng-fieldset.mjs +6 -4
- package/fesm2022/primeng-fieldset.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +75 -18
- package/fesm2022/primeng-fileupload.mjs.map +1 -1
- package/fesm2022/primeng-focustrap.mjs +4 -3
- package/fesm2022/primeng-focustrap.mjs.map +1 -1
- package/fesm2022/primeng-galleria.mjs +56 -31
- package/fesm2022/primeng-galleria.mjs.map +1 -1
- package/fesm2022/primeng-image.mjs +4 -3
- package/fesm2022/primeng-image.mjs.map +1 -1
- package/fesm2022/primeng-inplace.mjs +11 -7
- package/fesm2022/primeng-inplace.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +39 -16
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +62 -22
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +34 -15
- package/fesm2022/primeng-inputotp.mjs.map +1 -1
- package/fesm2022/primeng-inputswitch.mjs +26 -9
- package/fesm2022/primeng-inputswitch.mjs.map +1 -1
- package/fesm2022/primeng-inputtextarea.mjs +4 -3
- package/fesm2022/primeng-inputtextarea.mjs.map +1 -1
- package/fesm2022/primeng-keyfilter.mjs +15 -5
- package/fesm2022/primeng-keyfilter.mjs.map +1 -1
- package/fesm2022/primeng-knob.mjs +20 -11
- package/fesm2022/primeng-knob.mjs.map +1 -1
- package/fesm2022/primeng-listbox.mjs +40 -18
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-megamenu.mjs +15 -9
- package/fesm2022/primeng-megamenu.mjs.map +1 -1
- package/fesm2022/primeng-menu.mjs +10 -16
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-menubar.mjs +25 -14
- package/fesm2022/primeng-menubar.mjs.map +1 -1
- package/fesm2022/primeng-message.mjs +4 -3
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-messages.mjs +14 -10
- package/fesm2022/primeng-messages.mjs.map +1 -1
- package/fesm2022/primeng-metergroup.mjs +11 -8
- package/fesm2022/primeng-metergroup.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +106 -53
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-orderlist.mjs +15 -9
- package/fesm2022/primeng-orderlist.mjs.map +1 -1
- package/fesm2022/primeng-organizationchart.mjs +11 -7
- package/fesm2022/primeng-organizationchart.mjs.map +1 -1
- package/fesm2022/primeng-overlaypanel.mjs +12 -7
- package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
- package/fesm2022/primeng-paginator.mjs +42 -12
- package/fesm2022/primeng-paginator.mjs.map +1 -1
- package/fesm2022/primeng-panel.mjs +8 -5
- package/fesm2022/primeng-panel.mjs.map +1 -1
- package/fesm2022/primeng-panelmenu.mjs +32 -15
- package/fesm2022/primeng-panelmenu.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +33 -13
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +33 -18
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-progressbar.mjs +6 -4
- package/fesm2022/primeng-progressbar.mjs.map +1 -1
- package/fesm2022/primeng-radiobutton.mjs +24 -8
- package/fesm2022/primeng-radiobutton.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +37 -15
- package/fesm2022/primeng-rating.mjs.map +1 -1
- package/fesm2022/primeng-scroller.mjs +1 -1
- package/fesm2022/primeng-scroller.mjs.map +1 -1
- package/fesm2022/primeng-scrollpanel.mjs +4 -3
- package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
- package/fesm2022/primeng-scrolltop.mjs +4 -3
- package/fesm2022/primeng-scrolltop.mjs.map +1 -1
- package/fesm2022/primeng-selectbutton.mjs +30 -11
- package/fesm2022/primeng-selectbutton.mjs.map +1 -1
- package/fesm2022/primeng-sidebar.mjs +16 -9
- package/fesm2022/primeng-sidebar.mjs.map +1 -1
- package/fesm2022/primeng-slidemenu.mjs +39 -21
- package/fesm2022/primeng-slidemenu.mjs.map +1 -1
- package/fesm2022/primeng-slider.mjs +38 -13
- package/fesm2022/primeng-slider.mjs.map +1 -1
- package/fesm2022/primeng-speeddial.mjs +93 -73
- package/fesm2022/primeng-speeddial.mjs.map +1 -1
- package/fesm2022/primeng-spinner.mjs +22 -12
- package/fesm2022/primeng-spinner.mjs.map +1 -1
- package/fesm2022/primeng-splitbutton.mjs +172 -20
- package/fesm2022/primeng-splitbutton.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +8 -5
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-steps.mjs +12 -9
- package/fesm2022/primeng-steps.mjs.map +1 -1
- package/fesm2022/primeng-styleclass.mjs +6 -4
- package/fesm2022/primeng-styleclass.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +145 -83
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabmenu.mjs +7 -5
- package/fesm2022/primeng-tabmenu.mjs.map +1 -1
- package/fesm2022/primeng-tabview.mjs +17 -10
- package/fesm2022/primeng-tabview.mjs.map +1 -1
- package/fesm2022/primeng-tag.mjs +18 -6
- package/fesm2022/primeng-tag.mjs.map +1 -1
- package/fesm2022/primeng-tieredmenu.mjs +34 -28
- package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
- package/fesm2022/primeng-toast.mjs +17 -10
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +26 -10
- package/fesm2022/primeng-togglebutton.mjs.map +1 -1
- package/fesm2022/primeng-tooltip.mjs +20 -11
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +41 -22
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +62 -17
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +287 -101
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/fesm2022/primeng-tristatecheckbox.mjs +26 -9
- package/fesm2022/primeng-tristatecheckbox.mjs.map +1 -1
- package/fesm2022/primeng-virtualscroller.mjs +8 -5
- package/fesm2022/primeng-virtualscroller.mjs.map +1 -1
- package/fieldset/fieldset.d.ts +2 -0
- package/fileupload/fileupload.d.ts +11 -0
- package/focustrap/focustrap.d.ts +1 -0
- package/galleria/galleria.d.ts +25 -0
- package/image/image.d.ts +1 -0
- package/inplace/inplace.d.ts +4 -0
- package/inputmask/inputmask.d.ts +20 -2
- package/inputnumber/inputnumber.d.ts +30 -6
- package/inputnumber/inputnumber.interface.d.ts +1 -1
- package/inputotp/inputotp.d.ts +10 -2
- package/inputswitch/inputswitch.d.ts +12 -2
- package/inputtextarea/inputtextarea.d.ts +1 -0
- package/keyfilter/keyfilter.d.ts +1 -0
- package/knob/knob.d.ts +9 -0
- package/listbox/listbox.d.ts +22 -2
- package/megamenu/megamenu.d.ts +6 -0
- package/menu/menu.d.ts +4 -0
- package/menubar/menubar.d.ts +11 -0
- package/message/message.d.ts +1 -0
- package/messages/messages.d.ts +3 -0
- package/metergroup/metergroup.d.ts +2 -2
- package/metergroup/metergroup.interface.d.ts +16 -0
- package/multiselect/multiselect.d.ts +37 -8
- package/orderlist/orderlist.d.ts +6 -0
- package/organizationchart/organizationchart.d.ts +4 -0
- package/overlaypanel/overlaypanel.d.ts +5 -0
- package/package.json +134 -134
- package/paginator/paginator.d.ts +19 -2
- package/panel/panel.d.ts +3 -0
- package/panelmenu/panelmenu.d.ts +11 -0
- package/password/password.d.ts +19 -6
- package/picklist/picklist.d.ts +11 -0
- package/progressbar/progressbar.d.ts +2 -0
- package/radiobutton/radiobutton.d.ts +11 -2
- package/rating/rating.d.ts +17 -6
- package/resources/components/calendar/calendar.css +1 -0
- package/resources/components/cascadeselect/cascadeselect.css +1 -0
- package/resources/components/rating/rating.css +2 -0
- package/resources/themes/arya-blue/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/arya-blue/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/arya-blue/theme.css +420 -584
- package/resources/themes/arya-green/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/arya-green/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/arya-green/theme.css +420 -584
- package/resources/themes/arya-orange/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/arya-orange/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/arya-orange/theme.css +420 -584
- package/resources/themes/arya-purple/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/arya-purple/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/arya-purple/theme.css +420 -584
- package/resources/themes/aura-dark-amber/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-amber/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-amber/theme.css +7658 -0
- package/resources/themes/aura-dark-blue/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-blue/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-blue/theme.css +7658 -0
- package/resources/themes/aura-dark-cyan/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-cyan/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-cyan/theme.css +7658 -0
- package/resources/themes/aura-dark-green/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-green/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-green/theme.css +7658 -0
- package/resources/themes/aura-dark-indigo/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-indigo/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-indigo/theme.css +7658 -0
- package/resources/themes/aura-dark-lime/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-lime/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-lime/theme.css +7658 -0
- package/resources/themes/aura-dark-noir/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-noir/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-noir/theme.css +7658 -0
- package/resources/themes/aura-dark-pink/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-pink/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-pink/theme.css +7658 -0
- package/resources/themes/aura-dark-purple/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-purple/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-purple/theme.css +7658 -0
- package/resources/themes/aura-dark-teal/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-dark-teal/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-dark-teal/theme.css +7658 -0
- package/resources/themes/aura-light-amber/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-amber/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-amber/theme.css +7660 -0
- package/resources/themes/aura-light-blue/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-blue/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-blue/theme.css +7660 -0
- package/resources/themes/aura-light-cyan/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-cyan/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-cyan/theme.css +7660 -0
- package/resources/themes/aura-light-green/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-green/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-green/theme.css +7660 -0
- package/resources/themes/aura-light-indigo/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-indigo/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-indigo/theme.css +7660 -0
- package/resources/themes/aura-light-lime/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-lime/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-lime/theme.css +7660 -0
- package/resources/themes/aura-light-noir/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-noir/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-noir/theme.css +7668 -0
- package/resources/themes/aura-light-pink/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-pink/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-pink/theme.css +7660 -0
- package/resources/themes/aura-light-purple/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-purple/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-purple/theme.css +7660 -0
- package/resources/themes/aura-light-teal/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/aura-light-teal/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/aura-light-teal/theme.css +7660 -0
- package/resources/themes/bootstrap4-dark-blue/theme.css +421 -584
- package/resources/themes/bootstrap4-dark-purple/theme.css +421 -584
- package/resources/themes/bootstrap4-light-blue/theme.css +421 -584
- package/resources/themes/bootstrap4-light-purple/theme.css +421 -584
- package/resources/themes/fluent-light/theme.css +447 -595
- package/resources/themes/lara-dark-amber/theme.css +649 -448
- package/resources/themes/lara-dark-blue/theme.css +485 -586
- package/resources/themes/lara-dark-cyan/theme.css +649 -448
- package/resources/themes/lara-dark-green/theme.css +649 -448
- package/resources/themes/lara-dark-indigo/theme.css +485 -586
- package/resources/themes/lara-dark-pink/theme.css +649 -448
- package/resources/themes/lara-dark-purple/theme.css +485 -586
- package/resources/themes/lara-dark-teal/theme.css +485 -586
- package/resources/themes/lara-light-amber/theme.css +619 -467
- package/resources/themes/lara-light-blue/theme.css +441 -594
- package/resources/themes/lara-light-cyan/theme.css +619 -467
- package/resources/themes/lara-light-green/theme.css +619 -467
- package/resources/themes/lara-light-indigo/theme.css +441 -594
- package/resources/themes/lara-light-pink/theme.css +619 -467
- package/resources/themes/lara-light-purple/theme.css +441 -594
- package/resources/themes/lara-light-teal/theme.css +441 -594
- package/resources/themes/luna-amber/theme.css +434 -597
- package/resources/themes/luna-blue/theme.css +434 -597
- package/resources/themes/luna-green/theme.css +434 -597
- package/resources/themes/luna-pink/theme.css +434 -597
- package/resources/themes/md-dark-deeppurple/theme.css +760 -742
- package/resources/themes/md-dark-indigo/theme.css +760 -742
- package/resources/themes/md-light-deeppurple/theme.css +635 -617
- package/resources/themes/md-light-indigo/theme.css +635 -617
- package/resources/themes/mdc-dark-deeppurple/theme.css +760 -742
- package/resources/themes/mdc-dark-indigo/theme.css +760 -742
- package/resources/themes/mdc-light-deeppurple/theme.css +635 -617
- package/resources/themes/mdc-light-indigo/theme.css +635 -617
- package/resources/themes/mira/theme.css +458 -591
- package/resources/themes/nano/theme.css +418 -584
- package/resources/themes/nova/theme.css +422 -584
- package/resources/themes/nova-accent/theme.css +419 -584
- package/resources/themes/nova-alt/theme.css +422 -584
- package/resources/themes/rhea/theme.css +419 -584
- package/resources/themes/saga-blue/theme.css +420 -584
- package/resources/themes/saga-green/theme.css +420 -584
- package/resources/themes/saga-orange/theme.css +420 -584
- package/resources/themes/saga-purple/theme.css +420 -584
- package/resources/themes/soho-dark/theme.css +454 -615
- package/resources/themes/soho-light/theme.css +430 -589
- package/resources/themes/tailwind-light/theme.css +463 -614
- package/resources/themes/vela-blue/theme.css +420 -584
- package/resources/themes/vela-green/theme.css +420 -584
- package/resources/themes/vela-orange/theme.css +420 -584
- package/resources/themes/vela-purple/theme.css +420 -584
- package/resources/themes/viva-dark/theme.css +444 -589
- package/resources/themes/viva-light/theme.css +444 -589
- package/scrollpanel/scrollpanel.d.ts +1 -0
- package/scrolltop/scrolltop.d.ts +1 -0
- package/selectbutton/selectbutton.d.ts +14 -2
- package/sidebar/sidebar.d.ts +7 -0
- package/slidemenu/slidemenu.d.ts +20 -2
- package/slider/slider.d.ts +16 -2
- package/speeddial/speeddial.d.ts +7 -0
- package/speeddial/speeddial.interface.d.ts +17 -0
- package/spinner/spinner.d.ts +10 -0
- package/splitbutton/splitbutton.d.ts +81 -8
- package/splitter/splitter.d.ts +3 -0
- package/steps/steps.d.ts +3 -0
- package/styleclass/styleclass.d.ts +2 -0
- package/table/table.d.ts +65 -1
- package/tabmenu/tabmenu.d.ts +2 -0
- package/tabview/tabview.d.ts +7 -0
- package/tag/tag.d.ts +11 -2
- package/tieredmenu/tieredmenu.d.ts +14 -3
- package/toast/toast.d.ts +7 -0
- package/togglebutton/togglebutton.d.ts +11 -2
- package/tooltip/tooltip.d.ts +9 -0
- package/tree/tree.d.ts +19 -0
- package/treeselect/treeselect.d.ts +36 -6
- package/treetable/treetable.d.ts +61 -4
- package/tristatecheckbox/tristatecheckbox.d.ts +14 -4
- package/virtualscroller/virtualscroller.d.ts +3 -0
@@ -1,11 +1,13 @@
|
|
1
1
|
import * as i1 from '@angular/common';
|
2
2
|
import { CommonModule } from '@angular/common';
|
3
3
|
import * as i0 from '@angular/core';
|
4
|
-
import { forwardRef, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ContentChildren, NgModule } from '@angular/core';
|
4
|
+
import { forwardRef, EventEmitter, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ContentChildren, NgModule } from '@angular/core';
|
5
5
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
6
6
|
import { PrimeTemplate, SharedModule } from 'primeng/api';
|
7
7
|
import { CheckIcon } from 'primeng/icons/check';
|
8
8
|
import { TimesIcon } from 'primeng/icons/times';
|
9
|
+
import * as i2 from 'primeng/autofocus';
|
10
|
+
import { AutoFocusModule } from 'primeng/autofocus';
|
9
11
|
|
10
12
|
const TRISTATECHECKBOX_VALUE_ACCESSOR = {
|
11
13
|
provide: NG_VALUE_ACCESSOR,
|
@@ -81,6 +83,11 @@ class TriStateCheckbox {
|
|
81
83
|
* @group Props
|
82
84
|
*/
|
83
85
|
checkboxFalseIcon;
|
86
|
+
/**
|
87
|
+
* When present, it specifies that the component should automatically get focus on load.
|
88
|
+
* @group Props
|
89
|
+
*/
|
90
|
+
autofocus;
|
84
91
|
/**
|
85
92
|
* Callback to invoke on value change.
|
86
93
|
* @param {TriStateCheckboxChangeEvent} event - Custom change event.
|
@@ -154,7 +161,7 @@ class TriStateCheckbox {
|
|
154
161
|
this.cd.markForCheck();
|
155
162
|
}
|
156
163
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: TriStateCheckbox, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
157
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
164
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.3.1", type: TriStateCheckbox, selector: "p-triStateCheckbox", inputs: { disabled: ["disabled", "disabled", booleanAttribute], name: "name", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", tabindex: ["tabindex", "tabindex", numberAttribute], inputId: "inputId", style: "style", styleClass: "styleClass", label: "label", readonly: ["readonly", "readonly", booleanAttribute], checkboxTrueIcon: "checkboxTrueIcon", checkboxFalseIcon: "checkboxFalseIcon", autofocus: ["autofocus", "autofocus", booleanAttribute] }, outputs: { onChange: "onChange" }, host: { classAttribute: "p-element" }, providers: [TRISTATECHECKBOX_VALUE_ACCESSOR], queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: `
|
158
165
|
<div
|
159
166
|
[ngStyle]="style"
|
160
167
|
[ngClass]="{ 'p-checkbox p-component': true, 'p-checkbox-disabled': disabled, 'p-checkbox-focused': focused }"
|
@@ -179,6 +186,8 @@ class TriStateCheckbox {
|
|
179
186
|
[attr.aria-label]="ariaLabel"
|
180
187
|
inputmode="none"
|
181
188
|
[attr.data-pc-section]="'hiddenInput'"
|
189
|
+
pAutoFocus
|
190
|
+
[autofocus]="autofocus"
|
182
191
|
/>
|
183
192
|
</div>
|
184
193
|
<div class="p-checkbox-box" role="checkbox" [attr.aria-checked]="value === true" [ngClass]="{ 'p-highlight': value != null, 'p-disabled': disabled, 'p-focus': focused }">
|
@@ -203,7 +212,7 @@ class TriStateCheckbox {
|
|
203
212
|
</div>
|
204
213
|
</div>
|
205
214
|
<label class="p-checkbox-label" (click)="onClick($event, input)" [ngClass]="{ 'p-checkbox-label-active': value != null, 'p-disabled': disabled, 'p-checkbox-label-focus': focused }" *ngIf="label" [attr.for]="inputId">{{ label }}</label>
|
206
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i1.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i0.forwardRef(() => CheckIcon), selector: "CheckIcon" }, { kind: "component", type: i0.forwardRef(() => TimesIcon), selector: "TimesIcon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
215
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i1.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i0.forwardRef(() => i2.AutoFocus), selector: "[pAutoFocus]", inputs: ["autofocus"] }, { kind: "component", type: i0.forwardRef(() => CheckIcon), selector: "CheckIcon" }, { kind: "component", type: i0.forwardRef(() => TimesIcon), selector: "TimesIcon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
207
216
|
}
|
208
217
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: TriStateCheckbox, decorators: [{
|
209
218
|
type: Component,
|
@@ -234,6 +243,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImpor
|
|
234
243
|
[attr.aria-label]="ariaLabel"
|
235
244
|
inputmode="none"
|
236
245
|
[attr.data-pc-section]="'hiddenInput'"
|
246
|
+
pAutoFocus
|
247
|
+
[autofocus]="autofocus"
|
237
248
|
/>
|
238
249
|
</div>
|
239
250
|
<div class="p-checkbox-box" role="checkbox" [attr.aria-checked]="value === true" [ngClass]="{ 'p-highlight': value != null, 'p-disabled': disabled, 'p-focus': focused }">
|
@@ -267,7 +278,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImpor
|
|
267
278
|
}
|
268
279
|
}]
|
269
280
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { disabled: [{
|
270
|
-
type: Input
|
281
|
+
type: Input,
|
282
|
+
args: [{ transform: booleanAttribute }]
|
271
283
|
}], name: [{
|
272
284
|
type: Input
|
273
285
|
}], ariaLabel: [{
|
@@ -275,7 +287,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImpor
|
|
275
287
|
}], ariaLabelledBy: [{
|
276
288
|
type: Input
|
277
289
|
}], tabindex: [{
|
278
|
-
type: Input
|
290
|
+
type: Input,
|
291
|
+
args: [{ transform: numberAttribute }]
|
279
292
|
}], inputId: [{
|
280
293
|
type: Input
|
281
294
|
}], style: [{
|
@@ -285,11 +298,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImpor
|
|
285
298
|
}], label: [{
|
286
299
|
type: Input
|
287
300
|
}], readonly: [{
|
288
|
-
type: Input
|
301
|
+
type: Input,
|
302
|
+
args: [{ transform: booleanAttribute }]
|
289
303
|
}], checkboxTrueIcon: [{
|
290
304
|
type: Input
|
291
305
|
}], checkboxFalseIcon: [{
|
292
306
|
type: Input
|
307
|
+
}], autofocus: [{
|
308
|
+
type: Input,
|
309
|
+
args: [{ transform: booleanAttribute }]
|
293
310
|
}], onChange: [{
|
294
311
|
type: Output
|
295
312
|
}], templates: [{
|
@@ -298,13 +315,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImpor
|
|
298
315
|
}] } });
|
299
316
|
class TriStateCheckboxModule {
|
300
317
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: TriStateCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
301
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.1", ngImport: i0, type: TriStateCheckboxModule, declarations: [TriStateCheckbox], imports: [CommonModule, SharedModule, CheckIcon, TimesIcon], exports: [TriStateCheckbox, SharedModule] });
|
302
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: TriStateCheckboxModule, imports: [CommonModule, SharedModule, CheckIcon, TimesIcon, SharedModule] });
|
318
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.1", ngImport: i0, type: TriStateCheckboxModule, declarations: [TriStateCheckbox], imports: [CommonModule, SharedModule, AutoFocusModule, CheckIcon, TimesIcon], exports: [TriStateCheckbox, SharedModule] });
|
319
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: TriStateCheckboxModule, imports: [CommonModule, SharedModule, AutoFocusModule, CheckIcon, TimesIcon, SharedModule] });
|
303
320
|
}
|
304
321
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: TriStateCheckboxModule, decorators: [{
|
305
322
|
type: NgModule,
|
306
323
|
args: [{
|
307
|
-
imports: [CommonModule, SharedModule, CheckIcon, TimesIcon],
|
324
|
+
imports: [CommonModule, SharedModule, AutoFocusModule, CheckIcon, TimesIcon],
|
308
325
|
exports: [TriStateCheckbox, SharedModule],
|
309
326
|
declarations: [TriStateCheckbox]
|
310
327
|
}]
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"primeng-tristatecheckbox.mjs","sources":["../../src/app/components/tristatecheckbox/tristatecheckbox.ts","../../src/app/components/tristatecheckbox/primeng-tristatecheckbox.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, EventEmitter, Input, NgModule, Output, QueryList, TemplateRef, ViewEncapsulation, forwardRef } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { PrimeTemplate, SharedModule } from 'primeng/api';\nimport { CheckIcon } from 'primeng/icons/check';\nimport { TimesIcon } from 'primeng/icons/times';\nimport { Nullable } from 'primeng/ts-helpers';\nimport { TriStateCheckboxChangeEvent } from './tristatecheckbox.interface';\n\nexport const TRISTATECHECKBOX_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TriStateCheckbox),\n multi: true\n};\n/**\n * TriStateCheckbox is used to select either 'true', 'false' or 'null' as the value.\n * @group Components\n */\n@Component({\n selector: 'p-triStateCheckbox',\n template: `\n <div\n [ngStyle]=\"style\"\n [ngClass]=\"{ 'p-checkbox p-component': true, 'p-checkbox-disabled': disabled, 'p-checkbox-focused': focused }\"\n [class]=\"styleClass\"\n (click)=\"onClick($event, input)\"\n [attr.data-pc-name]=\"'tristatecheckbox'\"\n [attr.data-pc-section]=\"'root'\"\n >\n <div class=\"p-hidden-accessible\">\n <input\n #input\n [attr.id]=\"inputId\"\n type=\"checkbox\"\n [name]=\"name\"\n [attr.tabindex]=\"tabindex\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n (keydown)=\"onKeyDown($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.aria-label]=\"ariaLabel\"\n inputmode=\"none\"\n [attr.data-pc-section]=\"'hiddenInput'\"\n />\n </div>\n <div class=\"p-checkbox-box\" role=\"checkbox\" [attr.aria-checked]=\"value === true\" [ngClass]=\"{ 'p-highlight': value != null, 'p-disabled': disabled, 'p-focus': focused }\">\n <ng-container *ngIf=\"value === true\">\n <span *ngIf=\"checkboxTrueIcon\" [ngClass]=\"checkboxTrueIcon\" class=\"p-checkbox-icon\" [attr.data-pc-section]=\"'checkIcon'\"></span>\n <ng-container *ngIf=\"!checkboxTrueIcon\">\n <CheckIcon [styleClass]=\"'p-checkbox-icon'\" *ngIf=\"!checkIconTemplate\" [attr.data-pc-section]=\"'checkIcon'\" />\n <span *ngIf=\"checkIconTemplate\" class=\"p-checkbox-icon\" [attr.data-pc-section]=\"'checkIcon'\">\n <ng-template *ngTemplateOutlet=\"checkIconTemplate\"></ng-template>\n </span>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"value === false\">\n <span *ngIf=\"checkboxFalseIcon\" [ngClass]=\"checkboxFalseIcon\" class=\"p-checkbox-icon\" [attr.data-pc-section]=\"'uncheckIcon'\"></span>\n <ng-container *ngIf=\"!checkboxFalseIcon\">\n <TimesIcon [styleClass]=\"'p-checkbox-icon'\" *ngIf=\"!uncheckIconTemplate\" [attr.data-pc-section]=\"'uncheckIcon'\" />\n <span class=\"p-checkbox-icon\" *ngIf=\"uncheckIconTemplate\" [attr.data-pc-section]=\"'uncheckIcon'\">\n <ng-template *ngTemplateOutlet=\"uncheckIconTemplate\"></ng-template>\n </span>\n </ng-container>\n </ng-container>\n </div>\n </div>\n <label class=\"p-checkbox-label\" (click)=\"onClick($event, input)\" [ngClass]=\"{ 'p-checkbox-label-active': value != null, 'p-disabled': disabled, 'p-checkbox-label-focus': focused }\" *ngIf=\"label\" [attr.for]=\"inputId\">{{ label }}</label>\n `,\n providers: [TRISTATECHECKBOX_VALUE_ACCESSOR],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'p-element'\n }\n})\nexport class TriStateCheckbox implements ControlValueAccessor {\n constructor(private cd: ChangeDetectorRef) {}\n /**\n * When present, it specifies that the element should be disabled.\n * @group Props\n */\n @Input() disabled: boolean | undefined;\n /**\n * Name of the component.\n * @group Props\n */\n @Input() name: string | undefined;\n /**\n * Defines a string that labels the input for accessibility.\n * @group Props\n */\n @Input() ariaLabel: string | undefined;\n /**\n * Establishes relationships between the component and label(s) where its value should be one or more element IDs.\n * @group Props\n */\n @Input() ariaLabelledBy: string | undefined;\n /**\n * Index of the element in tabbing order.\n * @group Props\n */\n @Input() tabindex: number | undefined;\n /**\n * Identifier of the focus input to match a label defined for the component.\n * @group Props\n */\n @Input() inputId: string | undefined;\n /**\n * Inline style of the component.\n * @group Props\n */\n @Input() style: { [klass: string]: any } | null | undefined;\n /**\n * Style class of the component.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Label of the checkbox.\n * @group Props\n */\n @Input() label: string | undefined;\n /**\n * When present, it specifies that the component cannot be edited.\n * @group Props\n */\n @Input() readonly: boolean | undefined;\n /**\n * Specifies the icon for checkbox true value.\n * @group Props\n */\n @Input() checkboxTrueIcon: string | undefined;\n /**\n * Specifies the icon for checkbox false value.\n * @group Props\n */\n @Input() checkboxFalseIcon: string | undefined;\n /**\n * Callback to invoke on value change.\n * @param {TriStateCheckboxChangeEvent} event - Custom change event.\n * @group Emits\n */\n @Output() onChange: EventEmitter<TriStateCheckboxChangeEvent> = new EventEmitter<TriStateCheckboxChangeEvent>();\n\n @ContentChildren(PrimeTemplate) templates!: QueryList<PrimeTemplate>;\n\n checkIconTemplate: Nullable<TemplateRef<any>>;\n\n uncheckIconTemplate: Nullable<TemplateRef<any>>;\n\n focused: Nullable<boolean>;\n\n value: Nullable<boolean>;\n\n onModelChange: Function = () => {};\n\n onModelTouched: Function = () => {};\n\n onClick(event: Event, input: HTMLInputElement) {\n if (!this.disabled && !this.readonly) {\n this.toggle(event);\n this.focused = true;\n input.focus();\n }\n }\n\n onKeyDown(event: KeyboardEvent) {\n if (event.key === 'Enter') {\n this.toggle(event);\n event.preventDefault();\n }\n }\n\n toggle(event: Event) {\n if (this.value == null || this.value == undefined) this.value = true;\n else if (this.value == true) this.value = false;\n else if (this.value == false) this.value = null;\n\n this.onModelChange(this.value);\n this.onChange.emit({\n originalEvent: event,\n value: this.value\n });\n }\n\n ngAfterContentInit() {\n this.templates.forEach((item) => {\n switch (item.getType()) {\n case 'checkicon':\n this.checkIconTemplate = item.template;\n break;\n\n case 'uncheckicon':\n this.uncheckIconTemplate = item.template;\n break;\n }\n });\n }\n\n onFocus() {\n this.focused = true;\n }\n\n onBlur() {\n this.focused = false;\n this.onModelTouched();\n }\n\n registerOnChange(fn: Function): void {\n this.onModelChange = fn;\n }\n\n registerOnTouched(fn: Function): void {\n this.onModelTouched = fn;\n }\n\n writeValue(value: any): void {\n this.value = value;\n this.cd.markForCheck();\n }\n\n setDisabledState(disabled: boolean): void {\n this.disabled = disabled;\n this.cd.markForCheck();\n }\n}\n\n@NgModule({\n imports: [CommonModule, SharedModule, CheckIcon, TimesIcon],\n exports: [TriStateCheckbox, SharedModule],\n declarations: [TriStateCheckbox]\n})\nexport class TriStateCheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;AASa,MAAA,+BAA+B,GAAQ;AAChD,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,WAAW,EAAE,UAAU,CAAC,MAAM,gBAAgB,CAAC;AAC/C,IAAA,KAAK,EAAE,IAAI;EACb;AACF;;;AAGG;MA4DU,gBAAgB,CAAA;AACL,IAAA,EAAA,CAAA;AAApB,IAAA,WAAA,CAAoB,EAAqB,EAAA;QAArB,IAAE,CA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EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,CAAC;AAC3D,oBAAA,OAAO,EAAE,CAAC,gBAAgB,EAAE,YAAY,CAAC;oBACzC,YAAY,EAAE,CAAC,gBAAgB,CAAC;AACnC,iBAAA,CAAA;;;ACzOD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"primeng-tristatecheckbox.mjs","sources":["../../src/app/components/tristatecheckbox/tristatecheckbox.ts","../../src/app/components/tristatecheckbox/primeng-tristatecheckbox.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, EventEmitter, Input, NgModule, Output, QueryList, TemplateRef, ViewEncapsulation, booleanAttribute, forwardRef, numberAttribute } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { PrimeTemplate, SharedModule } from 'primeng/api';\nimport { CheckIcon } from 'primeng/icons/check';\nimport { TimesIcon } from 'primeng/icons/times';\nimport { Nullable } from 'primeng/ts-helpers';\nimport { AutoFocusModule } from 'primeng/autofocus';\nimport { TriStateCheckboxChangeEvent } from './tristatecheckbox.interface';\n\nexport const TRISTATECHECKBOX_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TriStateCheckbox),\n multi: true\n};\n/**\n * TriStateCheckbox is used to select either 'true', 'false' or 'null' as the value.\n * @group Components\n */\n@Component({\n selector: 'p-triStateCheckbox',\n template: `\n <div\n [ngStyle]=\"style\"\n [ngClass]=\"{ 'p-checkbox p-component': true, 'p-checkbox-disabled': disabled, 'p-checkbox-focused': focused }\"\n [class]=\"styleClass\"\n (click)=\"onClick($event, input)\"\n [attr.data-pc-name]=\"'tristatecheckbox'\"\n [attr.data-pc-section]=\"'root'\"\n >\n <div class=\"p-hidden-accessible\">\n <input\n #input\n [attr.id]=\"inputId\"\n type=\"checkbox\"\n [name]=\"name\"\n [attr.tabindex]=\"tabindex\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n (keydown)=\"onKeyDown($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.aria-label]=\"ariaLabel\"\n inputmode=\"none\"\n [attr.data-pc-section]=\"'hiddenInput'\"\n pAutoFocus\n [autofocus]=\"autofocus\"\n />\n </div>\n <div class=\"p-checkbox-box\" role=\"checkbox\" [attr.aria-checked]=\"value === true\" [ngClass]=\"{ 'p-highlight': value != null, 'p-disabled': disabled, 'p-focus': focused }\">\n <ng-container *ngIf=\"value === true\">\n <span *ngIf=\"checkboxTrueIcon\" [ngClass]=\"checkboxTrueIcon\" class=\"p-checkbox-icon\" [attr.data-pc-section]=\"'checkIcon'\"></span>\n <ng-container *ngIf=\"!checkboxTrueIcon\">\n <CheckIcon [styleClass]=\"'p-checkbox-icon'\" *ngIf=\"!checkIconTemplate\" [attr.data-pc-section]=\"'checkIcon'\" />\n <span *ngIf=\"checkIconTemplate\" class=\"p-checkbox-icon\" [attr.data-pc-section]=\"'checkIcon'\">\n <ng-template *ngTemplateOutlet=\"checkIconTemplate\"></ng-template>\n </span>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"value === false\">\n <span *ngIf=\"checkboxFalseIcon\" [ngClass]=\"checkboxFalseIcon\" class=\"p-checkbox-icon\" [attr.data-pc-section]=\"'uncheckIcon'\"></span>\n <ng-container *ngIf=\"!checkboxFalseIcon\">\n <TimesIcon [styleClass]=\"'p-checkbox-icon'\" *ngIf=\"!uncheckIconTemplate\" [attr.data-pc-section]=\"'uncheckIcon'\" />\n <span class=\"p-checkbox-icon\" *ngIf=\"uncheckIconTemplate\" [attr.data-pc-section]=\"'uncheckIcon'\">\n <ng-template *ngTemplateOutlet=\"uncheckIconTemplate\"></ng-template>\n </span>\n </ng-container>\n </ng-container>\n </div>\n </div>\n <label class=\"p-checkbox-label\" (click)=\"onClick($event, input)\" [ngClass]=\"{ 'p-checkbox-label-active': value != null, 'p-disabled': disabled, 'p-checkbox-label-focus': focused }\" *ngIf=\"label\" [attr.for]=\"inputId\">{{ label }}</label>\n `,\n providers: [TRISTATECHECKBOX_VALUE_ACCESSOR],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'p-element'\n }\n})\nexport class TriStateCheckbox implements ControlValueAccessor {\n constructor(private cd: ChangeDetectorRef) {}\n /**\n * When present, it specifies that the element should be disabled.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) disabled: boolean | undefined;\n /**\n * Name of the component.\n * @group Props\n */\n @Input() name: string | undefined;\n /**\n * Defines a string that labels the input for accessibility.\n * @group Props\n */\n @Input() ariaLabel: string | undefined;\n /**\n * Establishes relationships between the component and label(s) where its value should be one or more element IDs.\n * @group Props\n */\n @Input() ariaLabelledBy: string | undefined;\n /**\n * Index of the element in tabbing order.\n * @group Props\n */\n @Input({ transform: numberAttribute }) tabindex: number | undefined;\n /**\n * Identifier of the focus input to match a label defined for the component.\n * @group Props\n */\n @Input() inputId: string | undefined;\n /**\n * Inline style of the component.\n * @group Props\n */\n @Input() style: { [klass: string]: any } | null | undefined;\n /**\n * Style class of the component.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Label of the checkbox.\n * @group Props\n */\n @Input() label: string | undefined;\n /**\n * When present, it specifies that the component cannot be edited.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) readonly: boolean | undefined;\n /**\n * Specifies the icon for checkbox true value.\n * @group Props\n */\n @Input() checkboxTrueIcon: string | undefined;\n /**\n * Specifies the icon for checkbox false value.\n * @group Props\n */\n @Input() checkboxFalseIcon: string | undefined;\n /**\n * When present, it specifies that the component should automatically get focus on load.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) autofocus: boolean | undefined;\n /**\n * Callback to invoke on value change.\n * @param {TriStateCheckboxChangeEvent} event - Custom change event.\n * @group Emits\n */\n @Output() onChange: EventEmitter<TriStateCheckboxChangeEvent> = new EventEmitter<TriStateCheckboxChangeEvent>();\n\n @ContentChildren(PrimeTemplate) templates!: QueryList<PrimeTemplate>;\n\n checkIconTemplate: Nullable<TemplateRef<any>>;\n\n uncheckIconTemplate: Nullable<TemplateRef<any>>;\n\n focused: Nullable<boolean>;\n\n value: Nullable<boolean>;\n\n onModelChange: Function = () => {};\n\n onModelTouched: Function = () => {};\n\n onClick(event: Event, input: HTMLInputElement) {\n if (!this.disabled && !this.readonly) {\n this.toggle(event);\n this.focused = true;\n input.focus();\n }\n }\n\n onKeyDown(event: KeyboardEvent) {\n if (event.key === 'Enter') {\n this.toggle(event);\n event.preventDefault();\n }\n }\n\n toggle(event: Event) {\n if (this.value == null || this.value == undefined) this.value = true;\n else if (this.value == true) this.value = false;\n else if (this.value == false) this.value = null;\n\n this.onModelChange(this.value);\n this.onChange.emit({\n originalEvent: event,\n value: this.value\n });\n }\n\n ngAfterContentInit() {\n this.templates.forEach((item) => {\n switch (item.getType()) {\n case 'checkicon':\n this.checkIconTemplate = item.template;\n break;\n\n case 'uncheckicon':\n this.uncheckIconTemplate = item.template;\n break;\n }\n });\n }\n\n onFocus() {\n this.focused = true;\n }\n\n onBlur() {\n this.focused = false;\n this.onModelTouched();\n }\n\n registerOnChange(fn: Function): void {\n this.onModelChange = fn;\n }\n\n registerOnTouched(fn: Function): void {\n this.onModelTouched = fn;\n }\n\n writeValue(value: any): void {\n this.value = value;\n this.cd.markForCheck();\n }\n\n setDisabledState(disabled: boolean): void {\n this.disabled = disabled;\n this.cd.markForCheck();\n }\n}\n\n@NgModule({\n imports: [CommonModule, SharedModule, AutoFocusModule, CheckIcon, TimesIcon],\n exports: [TriStateCheckbox, SharedModule],\n declarations: [TriStateCheckbox]\n})\nexport class TriStateCheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;AAUa,MAAA,+BAA+B,GAAQ;AAChD,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,WAAW,EAAE,UA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EAAE,YAAY,CAAC;oBACzC,YAAY,EAAE,CAAC,gBAAgB,CAAC;AACnC,iBAAA,CAAA;;;ACjPD;;AAEG;;;;"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as i1 from '@angular/common';
|
2
2
|
import { CommonModule } from '@angular/common';
|
3
3
|
import * as i0 from '@angular/core';
|
4
|
-
import { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ContentChild, ContentChildren, ViewChild, NgModule } from '@angular/core';
|
4
|
+
import { EventEmitter, numberAttribute, booleanAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ContentChild, ContentChildren, ViewChild, NgModule } from '@angular/core';
|
5
5
|
import * as i2 from 'primeng/api';
|
6
6
|
import { Header, Footer, PrimeTemplate, SharedModule } from 'primeng/api';
|
7
7
|
import * as i3 from 'primeng/scroller';
|
@@ -113,7 +113,7 @@ class VirtualScroller {
|
|
113
113
|
this.scroller?.scrollToIndex(index, mode);
|
114
114
|
}
|
115
115
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.1", ngImport: i0, type: VirtualScroller, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
116
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
116
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.3.1", type: VirtualScroller, selector: "p-virtualScroller", inputs: { value: "value", itemSize: ["itemSize", "itemSize", numberAttribute], style: "style", styleClass: "styleClass", scrollHeight: "scrollHeight", lazy: ["lazy", "lazy", booleanAttribute], options: "options", delay: ["delay", "delay", numberAttribute] }, outputs: { onLazyLoad: "onLazyLoad" }, host: { classAttribute: "p-element" }, queries: [{ propertyName: "header", first: true, predicate: Header, descendants: true }, { propertyName: "footer", first: true, predicate: Footer, descendants: true }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true }], ngImport: i0, template: `
|
117
117
|
<div [ngClass]="'p-virtualscroller p-component'" [ngStyle]="style" [class]="styleClass" [attr.data-pc-name]="'virtualscroller'" [attr.data-pc-section]="'root'">
|
118
118
|
<div class="p-virtualscroller-header" *ngIf="header || headerTemplate">
|
119
119
|
<ng-content select="p-header"></ng-content>
|
@@ -169,7 +169,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImpor
|
|
169
169
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { value: [{
|
170
170
|
type: Input
|
171
171
|
}], itemSize: [{
|
172
|
-
type: Input
|
172
|
+
type: Input,
|
173
|
+
args: [{ transform: numberAttribute }]
|
173
174
|
}], style: [{
|
174
175
|
type: Input
|
175
176
|
}], styleClass: [{
|
@@ -177,11 +178,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.1", ngImpor
|
|
177
178
|
}], scrollHeight: [{
|
178
179
|
type: Input
|
179
180
|
}], lazy: [{
|
180
|
-
type: Input
|
181
|
+
type: Input,
|
182
|
+
args: [{ transform: booleanAttribute }]
|
181
183
|
}], options: [{
|
182
184
|
type: Input
|
183
185
|
}], delay: [{
|
184
|
-
type: Input
|
186
|
+
type: Input,
|
187
|
+
args: [{ transform: numberAttribute }]
|
185
188
|
}], onLazyLoad: [{
|
186
189
|
type: Output
|
187
190
|
}], header: [{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"primeng-virtualscroller.mjs","sources":["../../src/app/components/virtualscroller/virtualscroller.ts","../../src/app/components/virtualscroller/primeng-virtualscroller.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ContentChildren, ElementRef, EventEmitter, Input, NgModule, Output, QueryList, TemplateRef, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { BlockableUI, Footer, Header, PrimeTemplate, ScrollerOptions, SharedModule } from 'primeng/api';\nimport { Scroller, ScrollerModule } from 'primeng/scroller';\nimport { Nullable } from 'primeng/ts-helpers';\nimport { VirtualScrollerLazyLoadEvent } from './virtualscroller.interface';\n/**\n * VirtualScroller is a performant approach to handle huge data efficiently.\n * @group Components\n */\n@Component({\n selector: 'p-virtualScroller',\n template: `\n <div [ngClass]=\"'p-virtualscroller p-component'\" [ngStyle]=\"style\" [class]=\"styleClass\" [attr.data-pc-name]=\"'virtualscroller'\" [attr.data-pc-section]=\"'root'\">\n <div class=\"p-virtualscroller-header\" *ngIf=\"header || headerTemplate\">\n <ng-content select=\"p-header\"></ng-content>\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </div>\n <div #content class=\"p-virtualscroller-content\" [attr.data-pc-section]=\"'content'\">\n <p-scroller #scroller [items]=\"value\" styleClass=\"p-virtualscroller-list\" [style]=\"{ height: scrollHeight }\" [itemSize]=\"itemSize\" [lazy]=\"lazy\" (onLazyLoad)=\"onLazyItemLoad($event)\" [options]=\"options\">\n <ng-template pTemplate=\"item\" let-item let-scrollerOptions=\"options\">\n <div [ngStyle]=\"{ height: itemSize + 'px' }\" class=\"p-virtualscroller-item\">\n <ng-container *ngTemplateOutlet=\"item ? itemTemplate : loadingItemTemplate; context: { $implicit: item, options: scrollerOptions }\"></ng-container>\n </div>\n </ng-template>\n </p-scroller>\n </div>\n <div class=\"p-virtualscroller-footer\" *ngIf=\"footer || footerTemplate\" [attr.data-pc-section]=\"'footer'\">\n <ng-content select=\"p-footer\"></ng-content>\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'p-element'\n }\n})\nexport class VirtualScroller implements AfterContentInit, BlockableUI {\n /**\n * An array of objects to display.\n * @group Props\n */\n @Input() value: any[] | undefined;\n /**\n * Height of an item in the list.\n * @group Props\n */\n @Input() itemSize: number | undefined;\n /**\n * Inline style of the component.\n * @group Props\n */\n @Input() style: { [klass: string]: any } | null | undefined;\n /**\n * Style class of the component.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Max height of the content area in inline mode.\n * @group Props\n */\n @Input() scrollHeight: any;\n /**\n * Defines if data is loaded and interacted with in lazy manner.\n * @group Props\n */\n @Input() lazy: boolean | undefined;\n /**\n * Whether to use the scroller feature. The properties of scroller component can be used like an object in it.\n * @group Props\n */\n @Input() options: ScrollerOptions | undefined;\n /**\n * Threshold in milliseconds to delay lazy loading during scrolling.\n * @group Props\n */\n @Input() delay: number = 250;\n /**\n * Callback to invoke in lazy mode to load new data.\n * @param {VirtualScrollerLazyLoadEvent} event - custom lazy load event.\n * @group Emits\n */\n @Output() onLazyLoad: EventEmitter<VirtualScrollerLazyLoadEvent> = new EventEmitter<VirtualScrollerLazyLoadEvent>();\n\n @ContentChild(Header) header: Header | undefined;\n\n @ContentChild(Footer) footer: Footer | undefined;\n\n @ContentChildren(PrimeTemplate) templates: Nullable<QueryList<PrimeTemplate>>;\n\n @ViewChild('scroller') scroller: Nullable<Scroller>;\n\n itemTemplate: Nullable<TemplateRef<any>>;\n\n headerTemplate: Nullable<TemplateRef<any>>;\n\n footerTemplate: Nullable<TemplateRef<any>>;\n\n loadingItemTemplate: Nullable<TemplateRef<any>>;\n\n virtualScrollTimeout: any;\n\n constructor(public el: ElementRef, public cd: ChangeDetectorRef) {}\n\n ngAfterContentInit() {\n (this.templates as QueryList<PrimeTemplate>).forEach((item) => {\n switch (item.getType()) {\n case 'item':\n this.itemTemplate = item.template;\n break;\n\n case 'loadingItem':\n this.loadingItemTemplate = item.template;\n break;\n\n case 'header':\n this.headerTemplate = item.template;\n break;\n\n case 'footer':\n this.footerTemplate = item.template;\n break;\n\n default:\n this.itemTemplate = item.template;\n break;\n }\n });\n }\n\n onLazyItemLoad(event: VirtualScrollerLazyLoadEvent) {\n if (this.virtualScrollTimeout) {\n clearTimeout(this.virtualScrollTimeout);\n }\n\n this.virtualScrollTimeout = setTimeout(() => {\n this.onLazyLoad.emit({\n ...event,\n rows: <number>event.last - <number>event.first,\n forceUpdate: () => this.cd.detectChanges()\n });\n }, this.delay);\n }\n\n getBlockableElement(): HTMLElement {\n return this.el.nativeElement.children[0];\n }\n\n scrollToIndex(index: number, mode?: ScrollBehavior): void {\n this.scroller?.scrollToIndex(index, mode);\n }\n}\n\n@NgModule({\n imports: [CommonModule, SharedModule, ScrollerModule],\n exports: [VirtualScroller, SharedModule, ScrollerModule],\n declarations: [VirtualScroller]\n})\nexport class VirtualScrollerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;AAMA;;;AAGG;MA8BU,eAAe,CAAA;AAkEL,IAAA,EAAA,CAAA;AAAuB,IAAA,EAAA,CAAA;AAjE1C;;;AAGG;AACM,IAAA,KAAK,CAAoB;AAClC;;;AAGG;AACM,IAAA,QAAQ,CAAqB;AACtC;;;AAGG;AACM,IAAA,KAAK,CAA8C;AAC5D;;;AAGG;AACM,IAAA,UAAU,CAAqB;AACxC;;;AAGG;AACM,IAAA,YAAY,CAAM;AAC3B;;;AAGG;AACM,IAAA,IAAI,CAAsB;AACnC;;;AAGG;AACM,IAAA,OAAO,CAA8B;AAC9C;;;AAGG;IACM,KAAK,GAAW,GAAG,CAAC;AAC7B;;;;AAIG;AACO,IAAA,UAAU,GAA+C,IAAI,YAAY,EAAgC,CAAC;AAE9F,IAAA,MAAM,CAAqB;AAE3B,IAAA,MAAM,CAAqB;AAEjB,IAAA,SAAS,CAAqC;AAEvD,IAAA,QAAQ,CAAqB;AAEpD,IAAA,YAAY,CAA6B;AAEzC,IAAA,cAAc,CAA6B;AAE3C,IAAA,cAAc,CAA6B;AAE3C,IAAA,mBAAmB,CAA6B;AAEhD,IAAA,oBAAoB,CAAM;IAE1B,WAAmB,CAAA,EAAc,EAAS,EAAqB,EAAA;QAA5C,IAAE,CAAA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,YAAY,EAAE,cAAc,CAtH3C,EAAA,OAAA,EAAA,CAAA,eAAe,EAuHG,YAAY,EAAE,cAAc,CAAA,EAAA,CAAA,CAAA;wGAG9C,qBAAqB,EAAA,OAAA,EAAA,CAJpB,YAAY,EAAE,YAAY,EAAE,cAAc,EACzB,YAAY,EAAE,cAAc,CAAA,EAAA,CAAA,CAAA;;2FAG9C,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBALjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,cAAc,CAAC;AACrD,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,YAAY,EAAE,cAAc,CAAC;oBACxD,YAAY,EAAE,CAAC,eAAe,CAAC;AAClC,iBAAA,CAAA;;;AChKD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"primeng-virtualscroller.mjs","sources":["../../src/app/components/virtualscroller/virtualscroller.ts","../../src/app/components/virtualscroller/primeng-virtualscroller.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport {\n AfterContentInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n ElementRef,\n EventEmitter,\n Input,\n NgModule,\n Output,\n QueryList,\n TemplateRef,\n ViewChild,\n ViewEncapsulation,\n booleanAttribute,\n numberAttribute\n} from '@angular/core';\nimport { BlockableUI, Footer, Header, PrimeTemplate, ScrollerOptions, SharedModule } from 'primeng/api';\nimport { Scroller, ScrollerModule } from 'primeng/scroller';\nimport { Nullable } from 'primeng/ts-helpers';\nimport { VirtualScrollerLazyLoadEvent } from './virtualscroller.interface';\n/**\n * VirtualScroller is a performant approach to handle huge data efficiently.\n * @group Components\n */\n@Component({\n selector: 'p-virtualScroller',\n template: `\n <div [ngClass]=\"'p-virtualscroller p-component'\" [ngStyle]=\"style\" [class]=\"styleClass\" [attr.data-pc-name]=\"'virtualscroller'\" [attr.data-pc-section]=\"'root'\">\n <div class=\"p-virtualscroller-header\" *ngIf=\"header || headerTemplate\">\n <ng-content select=\"p-header\"></ng-content>\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </div>\n <div #content class=\"p-virtualscroller-content\" [attr.data-pc-section]=\"'content'\">\n <p-scroller #scroller [items]=\"value\" styleClass=\"p-virtualscroller-list\" [style]=\"{ height: scrollHeight }\" [itemSize]=\"itemSize\" [lazy]=\"lazy\" (onLazyLoad)=\"onLazyItemLoad($event)\" [options]=\"options\">\n <ng-template pTemplate=\"item\" let-item let-scrollerOptions=\"options\">\n <div [ngStyle]=\"{ height: itemSize + 'px' }\" class=\"p-virtualscroller-item\">\n <ng-container *ngTemplateOutlet=\"item ? itemTemplate : loadingItemTemplate; context: { $implicit: item, options: scrollerOptions }\"></ng-container>\n </div>\n </ng-template>\n </p-scroller>\n </div>\n <div class=\"p-virtualscroller-footer\" *ngIf=\"footer || footerTemplate\" [attr.data-pc-section]=\"'footer'\">\n <ng-content select=\"p-footer\"></ng-content>\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'p-element'\n }\n})\nexport class VirtualScroller implements AfterContentInit, BlockableUI {\n /**\n * An array of objects to display.\n * @group Props\n */\n @Input() value: any[] | undefined;\n /**\n * Height of an item in the list.\n * @group Props\n */\n @Input({ transform: numberAttribute }) itemSize: number | undefined;\n /**\n * Inline style of the component.\n * @group Props\n */\n @Input() style: { [klass: string]: any } | null | undefined;\n /**\n * Style class of the component.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Max height of the content area in inline mode.\n * @group Props\n */\n @Input() scrollHeight: any;\n /**\n * Defines if data is loaded and interacted with in lazy manner.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) lazy: boolean | undefined;\n /**\n * Whether to use the scroller feature. The properties of scroller component can be used like an object in it.\n * @group Props\n */\n @Input() options: ScrollerOptions | undefined;\n /**\n * Threshold in milliseconds to delay lazy loading during scrolling.\n * @group Props\n */\n @Input({ transform: numberAttribute }) delay: number = 250;\n /**\n * Callback to invoke in lazy mode to load new data.\n * @param {VirtualScrollerLazyLoadEvent} event - custom lazy load event.\n * @group Emits\n */\n @Output() onLazyLoad: EventEmitter<VirtualScrollerLazyLoadEvent> = new EventEmitter<VirtualScrollerLazyLoadEvent>();\n\n @ContentChild(Header) header: Header | undefined;\n\n @ContentChild(Footer) footer: Footer | undefined;\n\n @ContentChildren(PrimeTemplate) templates: Nullable<QueryList<PrimeTemplate>>;\n\n @ViewChild('scroller') scroller: Nullable<Scroller>;\n\n itemTemplate: Nullable<TemplateRef<any>>;\n\n headerTemplate: Nullable<TemplateRef<any>>;\n\n footerTemplate: Nullable<TemplateRef<any>>;\n\n loadingItemTemplate: Nullable<TemplateRef<any>>;\n\n virtualScrollTimeout: any;\n\n constructor(public el: ElementRef, public cd: ChangeDetectorRef) {}\n\n ngAfterContentInit() {\n (this.templates as QueryList<PrimeTemplate>).forEach((item) => {\n switch (item.getType()) {\n case 'item':\n this.itemTemplate = item.template;\n break;\n\n case 'loadingItem':\n this.loadingItemTemplate = item.template;\n break;\n\n case 'header':\n this.headerTemplate = item.template;\n break;\n\n case 'footer':\n this.footerTemplate = item.template;\n break;\n\n default:\n this.itemTemplate = item.template;\n break;\n }\n });\n }\n\n onLazyItemLoad(event: VirtualScrollerLazyLoadEvent) {\n if (this.virtualScrollTimeout) {\n clearTimeout(this.virtualScrollTimeout);\n }\n\n this.virtualScrollTimeout = setTimeout(() => {\n this.onLazyLoad.emit({\n ...event,\n rows: <number>event.last - <number>event.first,\n forceUpdate: () => this.cd.detectChanges()\n });\n }, this.delay);\n }\n\n getBlockableElement(): HTMLElement {\n return this.el.nativeElement.children[0];\n }\n\n scrollToIndex(index: number, mode?: ScrollBehavior): void {\n this.scroller?.scrollToIndex(index, mode);\n }\n}\n\n@NgModule({\n imports: [CommonModule, SharedModule, ScrollerModule],\n exports: [VirtualScroller, SharedModule, ScrollerModule],\n declarations: [VirtualScroller]\n})\nexport class VirtualScrollerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;AAwBA;;;AAGG;MA8BU,eAAe,CAAA;AAkEL,IAAA,EAAA,CAAA;AAAuB,IAAA,EAAA,CAAA;AAjE1C;;;AAGG;AACM,IAAA,KAAK,CAAoB;AAClC;;;AAGG;AACoC,IAAA,QAAQ,CAAqB;AACpE;;;AAGG;AACM,IAAA,KAAK,CAA8C;AAC5D;;;AAGG;AACM,IAAA,UAAU,CAAqB;AACxC;;;AAGG;AACM,IAAA,YAAY,CAAM;AAC3B;;;AAGG;AACqC,IAAA,IAAI,CAAsB;AAClE;;;AAGG;AACM,IAAA,OAAO,CAA8B;AAC9C;;;AAGG;IACoC,KAAK,GAAW,GAAG,CAAC;AAC3D;;;;AAIG;AACO,IAAA,UAAU,GAA+C,IAAI,YAAY,EAAgC,CAAC;AAE9F,IAAA,MAAM,CAAqB;AAE3B,IAAA,MAAM,CAAqB;AAEjB,IAAA,SAAS,CAAqC;AAEvD,IAAA,QAAQ,CAAqB;AAEpD,IAAA,YAAY,CAA6B;AAEzC,IAAA,cAAc,CAA6B;AAE3C,IAAA,cAAc,CAA6B;AAE3C,IAAA,mBAAmB,CAA6B;AAEhD,IAAA,oBAAoB,CAAM;IAE1B,WAAmB,CAAA,EAAc,EAAS,EAAqB,EAAA;QAA5C,IAAE,CAAA,EAAA,GAAF,EAAE,CAAY;QAAS,IAAE,CAAA,EAAA,GAAF,EAAE,CAAmB;KAAI;IAEnE,kBAAkB,GAAA;QACb,IAAI,CAAC,SAAsC,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AAC1D,YAAA,QAAQ,IAAI,CAAC,OAAO,EAAE;AAClB,gBAAA,KAAK,MAAM;AACP,oBAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC;oBAClC,MAAM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BAAC,UAAU,CAAA;;MAoEZ,qBAAqB,CAAA;uGAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAArB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,EA1HrB,YAAA,EAAA,CAAA,eAAe,CAsHd,EAAA,OAAA,EAAA,CAAA,YAAY,EAAE,YAAY,EAAE,cAAc,CAtH3C,EAAA,OAAA,EAAA,CAAA,eAAe,EAuHG,YAAY,EAAE,cAAc,CAAA,EAAA,CAAA,CAAA;wGAG9C,qBAAqB,EAAA,OAAA,EAAA,CAJpB,YAAY,EAAE,YAAY,EAAE,cAAc,EACzB,YAAY,EAAE,cAAc,CAAA,EAAA,CAAA,CAAA;;2FAG9C,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBALjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,cAAc,CAAC;AACrD,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,YAAY,EAAE,cAAc,CAAC;oBACxD,YAAY,EAAE,CAAC,eAAe,CAAC;AAClC,iBAAA,CAAA;;;AClLD;;AAEG;;;;"}
|
package/fieldset/fieldset.d.ts
CHANGED
@@ -83,6 +83,8 @@ export declare class Fieldset implements AfterContentInit, BlockableUI {
|
|
83
83
|
onToggleDone(): void;
|
84
84
|
static ɵfac: i0.ɵɵFactoryDeclaration<Fieldset, never>;
|
85
85
|
static ɵcmp: i0.ɵɵComponentDeclaration<Fieldset, "p-fieldset", never, { "legend": { "alias": "legend"; "required": false; }; "toggleable": { "alias": "toggleable"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; "style": { "alias": "style"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "transitionOptions": { "alias": "transitionOptions"; "required": false; }; }, { "collapsedChange": "collapsedChange"; "onBeforeToggle": "onBeforeToggle"; "onAfterToggle": "onAfterToggle"; }, ["templates"], ["p-header", "*"], false, never>;
|
86
|
+
static ngAcceptInputType_toggleable: unknown;
|
87
|
+
static ngAcceptInputType_collapsed: unknown;
|
86
88
|
}
|
87
89
|
export declare class FieldsetModule {
|
88
90
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldsetModule, never>;
|
@@ -332,9 +332,20 @@ export declare class FileUpload implements AfterViewInit, AfterContentInit, OnIn
|
|
332
332
|
get chooseButtonLabel(): string;
|
333
333
|
get uploadButtonLabel(): string;
|
334
334
|
get cancelButtonLabel(): string;
|
335
|
+
get browseFilesLabel(): string;
|
335
336
|
ngOnDestroy(): void;
|
336
337
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUpload, never>;
|
337
338
|
static ɵcmp: i0.ɵɵComponentDeclaration<FileUpload, "p-fileUpload", never, { "name": { "alias": "name"; "required": false; }; "url": { "alias": "url"; "required": false; }; "method": { "alias": "method"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "auto": { "alias": "auto"; "required": false; }; "withCredentials": { "alias": "withCredentials"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "invalidFileSizeMessageSummary": { "alias": "invalidFileSizeMessageSummary"; "required": false; }; "invalidFileSizeMessageDetail": { "alias": "invalidFileSizeMessageDetail"; "required": false; }; "invalidFileTypeMessageSummary": { "alias": "invalidFileTypeMessageSummary"; "required": false; }; "invalidFileTypeMessageDetail": { "alias": "invalidFileTypeMessageDetail"; "required": false; }; "invalidFileLimitMessageDetail": { "alias": "invalidFileLimitMessageDetail"; "required": false; }; "invalidFileLimitMessageSummary": { "alias": "invalidFileLimitMessageSummary"; "required": false; }; "style": { "alias": "style"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "previewWidth": { "alias": "previewWidth"; "required": false; }; "chooseLabel": { "alias": "chooseLabel"; "required": false; }; "uploadLabel": { "alias": "uploadLabel"; "required": false; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; }; "chooseIcon": { "alias": "chooseIcon"; "required": false; }; "uploadIcon": { "alias": "uploadIcon"; "required": false; }; "cancelIcon": { "alias": "cancelIcon"; "required": false; }; "showUploadButton": { "alias": "showUploadButton"; "required": false; }; "showCancelButton": { "alias": "showCancelButton"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "headers": { "alias": "headers"; "required": false; }; "customUpload": { "alias": "customUpload"; "required": false; }; "fileLimit": { "alias": "fileLimit"; "required": false; }; "uploadStyleClass": { "alias": "uploadStyleClass"; "required": false; }; "cancelStyleClass": { "alias": "cancelStyleClass"; "required": false; }; "removeStyleClass": { "alias": "removeStyleClass"; "required": false; }; "chooseStyleClass": { "alias": "chooseStyleClass"; "required": false; }; "files": { "alias": "files"; "required": false; }; }, { "onBeforeUpload": "onBeforeUpload"; "onSend": "onSend"; "onUpload": "onUpload"; "onError": "onError"; "onClear": "onClear"; "onRemove": "onRemove"; "onSelect": "onSelect"; "onProgress": "onProgress"; "uploadHandler": "uploadHandler"; "onImageError": "onImageError"; }, ["templates"], never, false, never>;
|
339
|
+
static ngAcceptInputType_multiple: unknown;
|
340
|
+
static ngAcceptInputType_disabled: unknown;
|
341
|
+
static ngAcceptInputType_auto: unknown;
|
342
|
+
static ngAcceptInputType_withCredentials: unknown;
|
343
|
+
static ngAcceptInputType_maxFileSize: unknown;
|
344
|
+
static ngAcceptInputType_previewWidth: unknown;
|
345
|
+
static ngAcceptInputType_showUploadButton: unknown;
|
346
|
+
static ngAcceptInputType_showCancelButton: unknown;
|
347
|
+
static ngAcceptInputType_customUpload: unknown;
|
348
|
+
static ngAcceptInputType_fileLimit: unknown;
|
338
349
|
}
|
339
350
|
export declare class FileUploadModule {
|
340
351
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadModule, never>;
|
package/focustrap/focustrap.d.ts
CHANGED
@@ -15,6 +15,7 @@ export declare class FocusTrap {
|
|
15
15
|
onkeydown(e: KeyboardEvent): void;
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<FocusTrap, never>;
|
17
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FocusTrap, "[pFocusTrap]", never, { "pFocusTrapDisabled": { "alias": "pFocusTrapDisabled"; "required": false; }; }, {}, never, never, false, never>;
|
18
|
+
static ngAcceptInputType_pFocusTrapDisabled: unknown;
|
18
19
|
}
|
19
20
|
export declare class FocusTrapModule {
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<FocusTrapModule, never>;
|
package/galleria/galleria.d.ts
CHANGED
@@ -203,6 +203,20 @@ export declare class Galleria implements OnChanges, OnDestroy {
|
|
203
203
|
ngOnDestroy(): void;
|
204
204
|
static ɵfac: i0.ɵɵFactoryDeclaration<Galleria, never>;
|
205
205
|
static ɵcmp: i0.ɵɵComponentDeclaration<Galleria, "p-galleria", never, { "activeIndex": { "alias": "activeIndex"; "required": false; }; "fullScreen": { "alias": "fullScreen"; "required": false; }; "id": { "alias": "id"; "required": false; }; "value": { "alias": "value"; "required": false; }; "numVisible": { "alias": "numVisible"; "required": false; }; "responsiveOptions": { "alias": "responsiveOptions"; "required": false; }; "showItemNavigators": { "alias": "showItemNavigators"; "required": false; }; "showThumbnailNavigators": { "alias": "showThumbnailNavigators"; "required": false; }; "showItemNavigatorsOnHover": { "alias": "showItemNavigatorsOnHover"; "required": false; }; "changeItemOnIndicatorHover": { "alias": "changeItemOnIndicatorHover"; "required": false; }; "circular": { "alias": "circular"; "required": false; }; "autoPlay": { "alias": "autoPlay"; "required": false; }; "shouldStopAutoplayByClick": { "alias": "shouldStopAutoplayByClick"; "required": false; }; "transitionInterval": { "alias": "transitionInterval"; "required": false; }; "showThumbnails": { "alias": "showThumbnails"; "required": false; }; "thumbnailsPosition": { "alias": "thumbnailsPosition"; "required": false; }; "verticalThumbnailViewPortHeight": { "alias": "verticalThumbnailViewPortHeight"; "required": false; }; "showIndicators": { "alias": "showIndicators"; "required": false; }; "showIndicatorsOnItem": { "alias": "showIndicatorsOnItem"; "required": false; }; "indicatorsPosition": { "alias": "indicatorsPosition"; "required": false; }; "baseZIndex": { "alias": "baseZIndex"; "required": false; }; "maskClass": { "alias": "maskClass"; "required": false; }; "containerClass": { "alias": "containerClass"; "required": false; }; "containerStyle": { "alias": "containerStyle"; "required": false; }; "showTransitionOptions": { "alias": "showTransitionOptions"; "required": false; }; "hideTransitionOptions": { "alias": "hideTransitionOptions"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "activeIndexChange": "activeIndexChange"; "visibleChange": "visibleChange"; }, ["templates"], never, false, never>;
|
206
|
+
static ngAcceptInputType_fullScreen: unknown;
|
207
|
+
static ngAcceptInputType_numVisible: unknown;
|
208
|
+
static ngAcceptInputType_showItemNavigators: unknown;
|
209
|
+
static ngAcceptInputType_showThumbnailNavigators: unknown;
|
210
|
+
static ngAcceptInputType_showItemNavigatorsOnHover: unknown;
|
211
|
+
static ngAcceptInputType_changeItemOnIndicatorHover: unknown;
|
212
|
+
static ngAcceptInputType_circular: unknown;
|
213
|
+
static ngAcceptInputType_autoPlay: unknown;
|
214
|
+
static ngAcceptInputType_shouldStopAutoplayByClick: unknown;
|
215
|
+
static ngAcceptInputType_transitionInterval: unknown;
|
216
|
+
static ngAcceptInputType_showThumbnails: unknown;
|
217
|
+
static ngAcceptInputType_showIndicators: unknown;
|
218
|
+
static ngAcceptInputType_showIndicatorsOnItem: unknown;
|
219
|
+
static ngAcceptInputType_baseZIndex: unknown;
|
206
220
|
}
|
207
221
|
export declare class GalleriaContent implements DoCheck {
|
208
222
|
galleria: Galleria;
|
@@ -233,6 +247,7 @@ export declare class GalleriaContent implements DoCheck {
|
|
233
247
|
closeAriaLabel(): string;
|
234
248
|
static ɵfac: i0.ɵɵFactoryDeclaration<GalleriaContent, never>;
|
235
249
|
static ɵcmp: i0.ɵɵComponentDeclaration<GalleriaContent, "p-galleriaContent", never, { "activeIndex": { "alias": "activeIndex"; "required": false; }; "value": { "alias": "value"; "required": false; }; "numVisible": { "alias": "numVisible"; "required": false; }; }, { "maskHide": "maskHide"; "activeItemChange": "activeItemChange"; }, never, never, false, never>;
|
250
|
+
static ngAcceptInputType_numVisible: unknown;
|
236
251
|
}
|
237
252
|
export declare class GalleriaItemSlot {
|
238
253
|
templates: QueryList<PrimeTemplate> | undefined;
|
@@ -246,6 +261,7 @@ export declare class GalleriaItemSlot {
|
|
246
261
|
ngAfterContentInit(): void;
|
247
262
|
static ɵfac: i0.ɵɵFactoryDeclaration<GalleriaItemSlot, never>;
|
248
263
|
static ɵcmp: i0.ɵɵComponentDeclaration<GalleriaItemSlot, "p-galleriaItemSlot", never, { "templates": { "alias": "templates"; "required": false; }; "index": { "alias": "index"; "required": false; }; "item": { "alias": "item"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
|
264
|
+
static ngAcceptInputType_index: unknown;
|
249
265
|
}
|
250
266
|
export declare class GalleriaItem implements OnChanges {
|
251
267
|
galleria: Galleria;
|
@@ -285,6 +301,12 @@ export declare class GalleriaItem implements OnChanges {
|
|
285
301
|
ariaPageLabel(value: any): string;
|
286
302
|
static ɵfac: i0.ɵɵFactoryDeclaration<GalleriaItem, never>;
|
287
303
|
static ɵcmp: i0.ɵɵComponentDeclaration<GalleriaItem, "p-galleriaItem", never, { "id": { "alias": "id"; "required": false; }; "circular": { "alias": "circular"; "required": false; }; "value": { "alias": "value"; "required": false; }; "showItemNavigators": { "alias": "showItemNavigators"; "required": false; }; "showIndicators": { "alias": "showIndicators"; "required": false; }; "slideShowActive": { "alias": "slideShowActive"; "required": false; }; "changeItemOnIndicatorHover": { "alias": "changeItemOnIndicatorHover"; "required": false; }; "autoPlay": { "alias": "autoPlay"; "required": false; }; "templates": { "alias": "templates"; "required": false; }; "indicatorFacet": { "alias": "indicatorFacet"; "required": false; }; "captionFacet": { "alias": "captionFacet"; "required": false; }; "activeIndex": { "alias": "activeIndex"; "required": false; }; }, { "startSlideShow": "startSlideShow"; "stopSlideShow": "stopSlideShow"; "onActiveIndexChange": "onActiveIndexChange"; }, never, never, false, never>;
|
304
|
+
static ngAcceptInputType_circular: unknown;
|
305
|
+
static ngAcceptInputType_showItemNavigators: unknown;
|
306
|
+
static ngAcceptInputType_showIndicators: unknown;
|
307
|
+
static ngAcceptInputType_slideShowActive: unknown;
|
308
|
+
static ngAcceptInputType_changeItemOnIndicatorHover: unknown;
|
309
|
+
static ngAcceptInputType_autoPlay: unknown;
|
288
310
|
}
|
289
311
|
export declare class GalleriaThumbnails implements OnInit, AfterContentChecked, AfterViewInit, OnDestroy {
|
290
312
|
galleria: Galleria;
|
@@ -363,6 +385,9 @@ export declare class GalleriaThumbnails implements OnInit, AfterContentChecked,
|
|
363
385
|
ariaPageLabel(value: any): string;
|
364
386
|
static ɵfac: i0.ɵɵFactoryDeclaration<GalleriaThumbnails, never>;
|
365
387
|
static ɵcmp: i0.ɵɵComponentDeclaration<GalleriaThumbnails, "p-galleriaThumbnails", never, { "containerId": { "alias": "containerId"; "required": false; }; "value": { "alias": "value"; "required": false; }; "isVertical": { "alias": "isVertical"; "required": false; }; "slideShowActive": { "alias": "slideShowActive"; "required": false; }; "circular": { "alias": "circular"; "required": false; }; "responsiveOptions": { "alias": "responsiveOptions"; "required": false; }; "contentHeight": { "alias": "contentHeight"; "required": false; }; "showThumbnailNavigators": { "alias": "showThumbnailNavigators"; "required": false; }; "templates": { "alias": "templates"; "required": false; }; "numVisible": { "alias": "numVisible"; "required": false; }; "activeIndex": { "alias": "activeIndex"; "required": false; }; }, { "onActiveIndexChange": "onActiveIndexChange"; "stopSlideShow": "stopSlideShow"; }, never, never, false, never>;
|
388
|
+
static ngAcceptInputType_isVertical: unknown;
|
389
|
+
static ngAcceptInputType_slideShowActive: unknown;
|
390
|
+
static ngAcceptInputType_circular: unknown;
|
366
391
|
}
|
367
392
|
export declare class GalleriaModule {
|
368
393
|
static ɵfac: i0.ɵɵFactoryDeclaration<GalleriaModule, never>;
|
package/image/image.d.ts
CHANGED
@@ -185,6 +185,7 @@ export declare class Image implements AfterContentInit {
|
|
185
185
|
onKeydownHandler(event: KeyboardEvent): void;
|
186
186
|
static ɵfac: i0.ɵɵFactoryDeclaration<Image, never>;
|
187
187
|
static ɵcmp: i0.ɵɵComponentDeclaration<Image, "p-image", never, { "imageClass": { "alias": "imageClass"; "required": false; }; "imageStyle": { "alias": "imageStyle"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "style": { "alias": "style"; "required": false; }; "src": { "alias": "src"; "required": false; }; "srcSet": { "alias": "srcSet"; "required": false; }; "sizes": { "alias": "sizes"; "required": false; }; "previewImageSrc": { "alias": "previewImageSrc"; "required": false; }; "previewImageSrcSet": { "alias": "previewImageSrcSet"; "required": false; }; "previewImageSizes": { "alias": "previewImageSizes"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "preview": { "alias": "preview"; "required": false; }; "showTransitionOptions": { "alias": "showTransitionOptions"; "required": false; }; "hideTransitionOptions": { "alias": "hideTransitionOptions"; "required": false; }; }, { "onShow": "onShow"; "onHide": "onHide"; "onImageError": "onImageError"; }, ["templates"], never, false, never>;
|
188
|
+
static ngAcceptInputType_preview: unknown;
|
188
189
|
}
|
189
190
|
export declare class ImageModule {
|
190
191
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageModule, never>;
|
package/inplace/inplace.d.ts
CHANGED
@@ -97,6 +97,10 @@ export declare class Inplace implements AfterContentInit {
|
|
97
97
|
onKeydown(event: KeyboardEvent): void;
|
98
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<Inplace, never>;
|
99
99
|
static ɵcmp: i0.ɵɵComponentDeclaration<Inplace, "p-inplace", never, { "active": { "alias": "active"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "preventClick": { "alias": "preventClick"; "required": false; }; "style": { "alias": "style"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "closeIcon": { "alias": "closeIcon"; "required": false; }; "closeAriaLabel": { "alias": "closeAriaLabel"; "required": false; }; }, { "onActivate": "onActivate"; "onDeactivate": "onDeactivate"; }, ["templates"], ["[pInplaceDisplay]", "[pInplaceContent]"], false, never>;
|
100
|
+
static ngAcceptInputType_active: unknown;
|
101
|
+
static ngAcceptInputType_closable: unknown;
|
102
|
+
static ngAcceptInputType_disabled: unknown;
|
103
|
+
static ngAcceptInputType_preventClick: unknown;
|
100
104
|
}
|
101
105
|
export declare class InplaceModule {
|
102
106
|
static ɵfac: i0.ɵɵFactoryDeclaration<InplaceModule, never>;
|
package/inputmask/inputmask.d.ts
CHANGED
@@ -130,7 +130,13 @@ export declare class InputMask implements OnInit, ControlValueAccessor {
|
|
130
130
|
* When present, the input gets a focus automatically on load.
|
131
131
|
* @group Props
|
132
132
|
*/
|
133
|
-
|
133
|
+
autofocus: boolean | undefined;
|
134
|
+
/**
|
135
|
+
* When present, the input gets a focus automatically on load.
|
136
|
+
* @group Props
|
137
|
+
* @deprecated Use autofocus property instead.
|
138
|
+
*/
|
139
|
+
set autoFocus(value: boolean | undefined);
|
134
140
|
/**
|
135
141
|
* Used to define a string that autocomplete attribute the current element.
|
136
142
|
* @group Props
|
@@ -236,7 +242,19 @@ export declare class InputMask implements OnInit, ControlValueAccessor {
|
|
236
242
|
focus(): void;
|
237
243
|
clear(): void;
|
238
244
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputMask, never>;
|
239
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputMask, "p-inputMask", never, { "type": { "alias": "type"; "required": false; }; "slotChar": { "alias": "slotChar"; "required": false; }; "autoClear": { "alias": "autoClear"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "style": { "alias": "style"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "title": { "alias": "title"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaRequired": { "alias": "ariaRequired"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "unmask": { "alias": "unmask"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "characterPattern": { "alias": "characterPattern"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "keepBuffer": { "alias": "keepBuffer"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; }, { "onComplete": "onComplete"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onInput": "onInput"; "onKeydown": "onKeydown"; "onClear": "onClear"; }, ["templates"], never, false, never>;
|
245
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputMask, "p-inputMask", never, { "type": { "alias": "type"; "required": false; }; "slotChar": { "alias": "slotChar"; "required": false; }; "autoClear": { "alias": "autoClear"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "style": { "alias": "style"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "title": { "alias": "title"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaRequired": { "alias": "ariaRequired"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "unmask": { "alias": "unmask"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "characterPattern": { "alias": "characterPattern"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "keepBuffer": { "alias": "keepBuffer"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; }, { "onComplete": "onComplete"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onInput": "onInput"; "onKeydown": "onKeydown"; "onClear": "onClear"; }, ["templates"], never, false, never>;
|
246
|
+
static ngAcceptInputType_autoClear: unknown;
|
247
|
+
static ngAcceptInputType_showClear: unknown;
|
248
|
+
static ngAcceptInputType_size: unknown;
|
249
|
+
static ngAcceptInputType_maxlength: unknown;
|
250
|
+
static ngAcceptInputType_ariaRequired: unknown;
|
251
|
+
static ngAcceptInputType_disabled: unknown;
|
252
|
+
static ngAcceptInputType_readonly: unknown;
|
253
|
+
static ngAcceptInputType_unmask: unknown;
|
254
|
+
static ngAcceptInputType_required: unknown;
|
255
|
+
static ngAcceptInputType_autofocus: unknown;
|
256
|
+
static ngAcceptInputType_autoFocus: unknown;
|
257
|
+
static ngAcceptInputType_keepBuffer: unknown;
|
240
258
|
}
|
241
259
|
export declare class InputMaskModule {
|
242
260
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputMaskModule, never>;
|
@@ -7,10 +7,11 @@ import * as i0 from "@angular/core";
|
|
7
7
|
import * as i1 from "@angular/common";
|
8
8
|
import * as i2 from "primeng/inputtext";
|
9
9
|
import * as i3 from "primeng/button";
|
10
|
-
import * as i4 from "primeng/
|
11
|
-
import * as i5 from "primeng/icons/
|
12
|
-
import * as i6 from "primeng/icons/
|
13
|
-
import * as i7 from "primeng/
|
10
|
+
import * as i4 from "primeng/autofocus";
|
11
|
+
import * as i5 from "primeng/icons/times";
|
12
|
+
import * as i6 from "primeng/icons/angleup";
|
13
|
+
import * as i7 from "primeng/icons/angledown";
|
14
|
+
import * as i8 from "primeng/api";
|
14
15
|
export declare const INPUTNUMBER_VALUE_ACCESSOR: any;
|
15
16
|
/**
|
16
17
|
* InputNumber is an input component to provide numerical input.
|
@@ -218,6 +219,11 @@ export declare class InputNumber implements OnInit, AfterContentInit, OnChanges,
|
|
218
219
|
* @group Props
|
219
220
|
*/
|
220
221
|
showClear: boolean;
|
222
|
+
/**
|
223
|
+
* When present, it specifies that the component should automatically get focus on load.
|
224
|
+
* @group Props
|
225
|
+
*/
|
226
|
+
autofocus: boolean | undefined;
|
221
227
|
/**
|
222
228
|
* When present, it specifies that the element should be disabled.
|
223
229
|
* @group Props
|
@@ -322,6 +328,7 @@ export declare class InputNumber implements OnInit, AfterContentInit, OnChanges,
|
|
322
328
|
onUserInput(event: Event): void;
|
323
329
|
onInputKeyDown(event: KeyboardEvent): void;
|
324
330
|
onInputKeyPress(event: KeyboardEvent): void;
|
331
|
+
private getSelectedText;
|
325
332
|
onPaste(event: ClipboardEvent): void;
|
326
333
|
allowMinusSign(): boolean;
|
327
334
|
isMinusSign(char: string): boolean;
|
@@ -365,10 +372,27 @@ export declare class InputNumber implements OnInit, AfterContentInit, OnChanges,
|
|
365
372
|
get filled(): boolean;
|
366
373
|
clearTimer(): void;
|
367
374
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputNumber, never>;
|
368
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputNumber, "p-inputNumber", never, { "showButtons": { "alias": "showButtons"; "required": false; }; "format": { "alias": "format"; "required": false; }; "buttonLayout": { "alias": "buttonLayout"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "style": { "alias": "style"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "title": { "alias": "title"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaRequired": { "alias": "ariaRequired"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "incrementButtonClass": { "alias": "incrementButtonClass"; "required": false; }; "decrementButtonClass": { "alias": "decrementButtonClass"; "required": false; }; "incrementButtonIcon": { "alias": "incrementButtonIcon"; "required": false; }; "decrementButtonIcon": { "alias": "decrementButtonIcon"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "step": { "alias": "step"; "required": false; }; "allowEmpty": { "alias": "allowEmpty"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "localeMatcher": { "alias": "localeMatcher"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "currency": { "alias": "currency"; "required": false; }; "currencyDisplay": { "alias": "currencyDisplay"; "required": false; }; "useGrouping": { "alias": "useGrouping"; "required": false; }; "minFractionDigits": { "alias": "minFractionDigits"; "required": false; }; "maxFractionDigits": { "alias": "maxFractionDigits"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "inputStyle": { "alias": "inputStyle"; "required": false; }; "inputStyleClass": { "alias": "inputStyleClass"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onInput": "onInput"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onKeyDown": "onKeyDown"; "onClear": "onClear"; }, ["templates"], never, false, never>;
|
375
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputNumber, "p-inputNumber", never, { "showButtons": { "alias": "showButtons"; "required": false; }; "format": { "alias": "format"; "required": false; }; "buttonLayout": { "alias": "buttonLayout"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "style": { "alias": "style"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "title": { "alias": "title"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaRequired": { "alias": "ariaRequired"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "incrementButtonClass": { "alias": "incrementButtonClass"; "required": false; }; "decrementButtonClass": { "alias": "decrementButtonClass"; "required": false; }; "incrementButtonIcon": { "alias": "incrementButtonIcon"; "required": false; }; "decrementButtonIcon": { "alias": "decrementButtonIcon"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "step": { "alias": "step"; "required": false; }; "allowEmpty": { "alias": "allowEmpty"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "localeMatcher": { "alias": "localeMatcher"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "currency": { "alias": "currency"; "required": false; }; "currencyDisplay": { "alias": "currencyDisplay"; "required": false; }; "useGrouping": { "alias": "useGrouping"; "required": false; }; "minFractionDigits": { "alias": "minFractionDigits"; "required": false; }; "maxFractionDigits": { "alias": "maxFractionDigits"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "inputStyle": { "alias": "inputStyle"; "required": false; }; "inputStyleClass": { "alias": "inputStyleClass"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onInput": "onInput"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onKeyDown": "onKeyDown"; "onClear": "onClear"; }, ["templates"], never, false, never>;
|
376
|
+
static ngAcceptInputType_showButtons: unknown;
|
377
|
+
static ngAcceptInputType_format: unknown;
|
378
|
+
static ngAcceptInputType_size: unknown;
|
379
|
+
static ngAcceptInputType_maxlength: unknown;
|
380
|
+
static ngAcceptInputType_tabindex: unknown;
|
381
|
+
static ngAcceptInputType_ariaRequired: unknown;
|
382
|
+
static ngAcceptInputType_required: unknown;
|
383
|
+
static ngAcceptInputType_min: unknown;
|
384
|
+
static ngAcceptInputType_max: unknown;
|
385
|
+
static ngAcceptInputType_readonly: unknown;
|
386
|
+
static ngAcceptInputType_step: unknown;
|
387
|
+
static ngAcceptInputType_allowEmpty: unknown;
|
388
|
+
static ngAcceptInputType_useGrouping: unknown;
|
389
|
+
static ngAcceptInputType_minFractionDigits: unknown;
|
390
|
+
static ngAcceptInputType_maxFractionDigits: unknown;
|
391
|
+
static ngAcceptInputType_showClear: unknown;
|
392
|
+
static ngAcceptInputType_autofocus: unknown;
|
369
393
|
}
|
370
394
|
export declare class InputNumberModule {
|
371
395
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputNumberModule, never>;
|
372
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InputNumberModule, [typeof InputNumber], [typeof i1.CommonModule, typeof i2.InputTextModule, typeof i3.ButtonModule, typeof i4.
|
396
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InputNumberModule, [typeof InputNumber], [typeof i1.CommonModule, typeof i2.InputTextModule, typeof i3.ButtonModule, typeof i4.AutoFocusModule, typeof i5.TimesIcon, typeof i6.AngleUpIcon, typeof i7.AngleDownIcon], [typeof InputNumber, typeof i8.SharedModule]>;
|
373
397
|
static ɵinj: i0.ɵɵInjectorDeclaration<InputNumberModule>;
|
374
398
|
}
|