cax-design-system 1.0.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/README.md +47 -0
- package/accordion/accordion.d.ts +220 -0
- package/accordion/accordion.interface.d.ts +49 -0
- package/accordion/accordion.module.d.ts +13 -0
- package/accordion/index.d.ts +5 -0
- package/accordion/public_api.d.ts +3 -0
- package/animate/animate.d.ts +40 -0
- package/animate/index.d.ts +5 -0
- package/animate/public_api.d.ts +1 -0
- package/animateonscroll/animateonscroll.d.ts +75 -0
- package/animateonscroll/index.d.ts +5 -0
- package/animateonscroll/public_api.d.ts +1 -0
- package/api/blockableui.d.ts +10 -0
- package/api/caxconfig.d.ts +24 -0
- package/api/confirmaeventtype.d.ts +8 -0
- package/api/confirmation.d.ts +91 -0
- package/api/confirmationservice.d.ts +30 -0
- package/api/contextmenuservice.d.ts +11 -0
- package/api/filtermatchmode.d.ts +22 -0
- package/api/filtermetadata.d.ts +18 -0
- package/api/filteroperator.d.ts +4 -0
- package/api/filterservice.d.ts +10 -0
- package/api/index.d.ts +5 -0
- package/api/lazyloadevent.d.ts +47 -0
- package/api/lazyloadmeta.d.ts +19 -0
- package/api/megamenuitem.d.ts +130 -0
- package/api/menuitem.d.ts +176 -0
- package/api/message.d.ts +30 -0
- package/api/messageservice.d.ts +32 -0
- package/api/overlayoptions.d.ts +188 -0
- package/api/overlayservice.d.ts +9 -0
- package/api/primeicons.d.ts +313 -0
- package/api/public_api.d.ts +33 -0
- package/api/scrolleroptions.d.ts +116 -0
- package/api/selectitem.d.ts +12 -0
- package/api/selectitemgroup.d.ts +10 -0
- package/api/shared.d.ts +24 -0
- package/api/sortevent.d.ts +12 -0
- package/api/sortmeta.d.ts +8 -0
- package/api/tablestate.d.ts +60 -0
- package/api/tooltipoptions.d.ts +69 -0
- package/api/translation.d.ts +135 -0
- package/api/translationkeys.d.ts +50 -0
- package/api/treedragdropservice.d.ts +12 -0
- package/api/treenode.d.ts +86 -0
- package/api/treenodedragevent.d.ts +27 -0
- package/api/treetablenode.d.ts +36 -0
- package/autocomplete/autocomplete.d.ts +629 -0
- package/autocomplete/autocomplete.interface.d.ts +164 -0
- package/autocomplete/index.d.ts +5 -0
- package/autocomplete/public_api.d.ts +2 -0
- package/autofocus/autofocus.d.ts +28 -0
- package/autofocus/index.d.ts +5 -0
- package/autofocus/public_api.d.ts +1 -0
- package/avatar/avatar.d.ts +73 -0
- package/avatar/avatar.module.d.ts +7 -0
- package/avatar/index.d.ts +5 -0
- package/avatar/public_api.d.ts +2 -0
- package/avatargroup/avatargroup.d.ts +27 -0
- package/avatargroup/index.d.ts +5 -0
- package/avatargroup/public_api.d.ts +1 -0
- package/badge/badge.d.ts +23 -0
- package/badge/badge.directive.d.ts +33 -0
- package/badge/badge.module.d.ts +10 -0
- package/badge/index.d.ts +5 -0
- package/badge/public_api.d.ts +3 -0
- package/baseicon/baseicon.d.ts +15 -0
- package/baseicon/index.d.ts +5 -0
- package/baseicon/public_api.d.ts +1 -0
- package/blockui/blockui.d.ts +64 -0
- package/blockui/blockui.interface.d.ts +11 -0
- package/blockui/index.d.ts +5 -0
- package/blockui/public_api.d.ts +2 -0
- package/breadcrumb/breadcrumb.d.ts +55 -0
- package/breadcrumb/breadcrumb.interface.d.ts +38 -0
- package/breadcrumb/breadcrumb.module.d.ts +13 -0
- package/breadcrumb/index.d.ts +5 -0
- package/breadcrumb/public_api.d.ts +3 -0
- package/button/button.d.ts +84 -0
- package/button/button.directive.d.ts +46 -0
- package/button/button.interface.d.ts +30 -0
- package/button/button.module.d.ts +9 -0
- package/button/index.d.ts +5 -0
- package/button/public_api.d.ts +4 -0
- package/buttongroup/buttongroup.d.ts +11 -0
- package/buttongroup/index.d.ts +5 -0
- package/buttongroup/public_api.d.ts +1 -0
- package/calendar/calendar.d.ts +712 -0
- package/calendar/calendar.interface.d.ts +204 -0
- package/calendar/calendar.module.d.ts +9 -0
- package/calendar/index.d.ts +5 -0
- package/calendar/public_api.d.ts +3 -0
- package/card/card.d.ts +53 -0
- package/card/card.interface.d.ts +27 -0
- package/card/card.module.d.ts +11 -0
- package/card/index.d.ts +5 -0
- package/card/public_api.d.ts +3 -0
- package/carousel/carousel.d.ts +227 -0
- package/carousel/carousel.interface.d.ts +63 -0
- package/carousel/index.d.ts +5 -0
- package/carousel/public_api.d.ts +2 -0
- package/cascadeselect/cascadeselect.d.ts +435 -0
- package/cascadeselect/cascadeselect.interface.d.ts +115 -0
- package/cascadeselect/cascadeselect.module.d.ts +15 -0
- package/cascadeselect/index.d.ts +5 -0
- package/cascadeselect/public_api.d.ts +3 -0
- package/chart/chart.d.ts +87 -0
- package/chart/index.d.ts +5 -0
- package/chart/public_api.d.ts +1 -0
- package/checkbox/checkbox.d.ts +164 -0
- package/checkbox/checkbox.interface.d.ts +26 -0
- package/checkbox/checkbox.module.d.ts +10 -0
- package/checkbox/index.d.ts +5 -0
- package/checkbox/public_api.d.ts +3 -0
- package/chip/chip.d.ts +37 -0
- package/chip/chip.interface.d.ts +15 -0
- package/chip/chip.module.d.ts +10 -0
- package/chip/index.d.ts +5 -0
- package/chip/public_api.d.ts +3 -0
- package/chips/chips.d.ts +221 -0
- package/chips/chips.interface.d.ts +58 -0
- package/chips/chips.module.d.ts +13 -0
- package/chips/index.d.ts +5 -0
- package/chips/public_api.d.ts +3 -0
- package/colorpicker/colorpicker.d.ts +247 -0
- package/colorpicker/colorpicker.interface.d.ts +15 -0
- package/colorpicker/index.d.ts +5 -0
- package/colorpicker/public_api.d.ts +2 -0
- package/confirmdialog/confirmdialog.d.ts +273 -0
- package/confirmdialog/confirmdialog.interface.d.ts +39 -0
- package/confirmdialog/index.d.ts +5 -0
- package/confirmdialog/public_api.d.ts +2 -0
- package/confirmpopup/confirmpopup.d.ts +119 -0
- package/confirmpopup/confirmpopup.interface.d.ts +27 -0
- package/confirmpopup/index.d.ts +5 -0
- package/confirmpopup/public_api.d.ts +2 -0
- package/contextmenu/contextmenu.d.ts +260 -0
- package/contextmenu/index.d.ts +5 -0
- package/contextmenu/public_api.d.ts +1 -0
- package/dataview/dataview.d.ts +274 -0
- package/dataview/dataview.interface.d.ts +183 -0
- package/dataview/index.d.ts +5 -0
- package/dataview/public_api.d.ts +2 -0
- package/defer/defer.d.ts +39 -0
- package/defer/index.d.ts +5 -0
- package/defer/public_api.d.ts +1 -0
- package/dialog/dialog.d.ts +373 -0
- package/dialog/dialog.interface.d.ts +31 -0
- package/dialog/index.d.ts +5 -0
- package/dialog/public_api.d.ts +2 -0
- package/divider/divider.d.ts +49 -0
- package/divider/divider.module.d.ts +7 -0
- package/divider/index.d.ts +5 -0
- package/divider/public_api.d.ts +2 -0
- package/dock/dock.d.ts +115 -0
- package/dock/dock.interface.d.ts +19 -0
- package/dock/index.d.ts +5 -0
- package/dock/public_api.d.ts +2 -0
- package/dom/connectedoverlayscrollhandler.d.ts +9 -0
- package/dom/domhandler.d.ts +95 -0
- package/dom/index.d.ts +5 -0
- package/dom/public_api.d.ts +2 -0
- package/dragdrop/dragdrop.d.ts +112 -0
- package/dragdrop/dragdrop.module.d.ts +8 -0
- package/dragdrop/index.d.ts +5 -0
- package/dragdrop/public_api.d.ts +2 -0
- package/dropdown/dropdown-item.d.ts +30 -0
- package/dropdown/dropdown.d.ts +627 -0
- package/dropdown/dropdown.interface.d.ts +154 -0
- package/dropdown/dropdown.module.d.ts +11 -0
- package/dropdown/index.d.ts +5 -0
- package/dropdown/public_api.d.ts +4 -0
- package/dynamicdialog/dialogservice.d.ts +35 -0
- package/dynamicdialog/dynamicdialog-config.d.ts +221 -0
- package/dynamicdialog/dynamicdialog-injector.d.ts +7 -0
- package/dynamicdialog/dynamicdialog-ref.d.ts +101 -0
- package/dynamicdialog/dynamicdialog.d.ts +124 -0
- package/dynamicdialog/dynamicdialogcontent.d.ts +8 -0
- package/dynamicdialog/index.d.ts +5 -0
- package/dynamicdialog/public_api.d.ts +6 -0
- package/editor/editor.d.ts +111 -0
- package/editor/editor.interface.d.ts +64 -0
- package/editor/index.d.ts +5 -0
- package/editor/public_api.d.ts +2 -0
- package/esm2022/accordion/accordion.interface.mjs +2 -0
- package/esm2022/accordion/accordion.mjs +591 -0
- package/esm2022/accordion/accordion.module.mjs +23 -0
- package/esm2022/accordion/cax-design-system-accordion.mjs +5 -0
- package/esm2022/accordion/public_api.mjs +4 -0
- package/esm2022/animate/animate.mjs +101 -0
- package/esm2022/animate/cax-design-system-animate.mjs +5 -0
- package/esm2022/animate/public_api.mjs +2 -0
- package/esm2022/animateonscroll/animateonscroll.mjs +185 -0
- package/esm2022/animateonscroll/cax-design-system-animateonscroll.mjs +5 -0
- package/esm2022/animateonscroll/public_api.mjs +2 -0
- package/esm2022/api/blockableui.mjs +2 -0
- package/esm2022/api/cax-design-system-api.mjs +5 -0
- package/esm2022/api/caxconfig.mjs +163 -0
- package/esm2022/api/confirmaeventtype.mjs +10 -0
- package/esm2022/api/confirmation.mjs +2 -0
- package/esm2022/api/confirmationservice.mjs +43 -0
- package/esm2022/api/contextmenuservice.mjs +22 -0
- package/esm2022/api/filtermatchmode.mjs +23 -0
- package/esm2022/api/filtermetadata.mjs +2 -0
- package/esm2022/api/filteroperator.mjs +5 -0
- package/esm2022/api/filterservice.mjs +225 -0
- package/esm2022/api/lazyloadevent.mjs +2 -0
- package/esm2022/api/lazyloadmeta.mjs +2 -0
- package/esm2022/api/megamenuitem.mjs +2 -0
- package/esm2022/api/menuitem.mjs +2 -0
- package/esm2022/api/message.mjs +2 -0
- package/esm2022/api/messageservice.mjs +47 -0
- package/esm2022/api/overlayoptions.mjs +2 -0
- package/esm2022/api/overlayservice.mjs +19 -0
- package/esm2022/api/primeicons.mjs +314 -0
- package/esm2022/api/public_api.mjs +34 -0
- package/esm2022/api/scrolleroptions.mjs +2 -0
- package/esm2022/api/selectitem.mjs +2 -0
- package/esm2022/api/selectitemgroup.mjs +2 -0
- package/esm2022/api/shared.mjs +65 -0
- package/esm2022/api/sortevent.mjs +2 -0
- package/esm2022/api/sortmeta.mjs +2 -0
- package/esm2022/api/tablestate.mjs +2 -0
- package/esm2022/api/tooltipoptions.mjs +2 -0
- package/esm2022/api/translation.mjs +2 -0
- package/esm2022/api/translationkeys.mjs +51 -0
- package/esm2022/api/treedragdropservice.mjs +21 -0
- package/esm2022/api/treenode.mjs +2 -0
- package/esm2022/api/treenodedragevent.mjs +2 -0
- package/esm2022/api/treetablenode.mjs +2 -0
- package/esm2022/autocomplete/autocomplete.interface.mjs +2 -0
- package/esm2022/autocomplete/autocomplete.mjs +1880 -0
- package/esm2022/autocomplete/cax-design-system-autocomplete.mjs +5 -0
- package/esm2022/autocomplete/public_api.mjs +3 -0
- package/esm2022/autofocus/autofocus.mjs +78 -0
- package/esm2022/autofocus/cax-design-system-autofocus.mjs +5 -0
- package/esm2022/autofocus/public_api.mjs +2 -0
- package/esm2022/avatar/avatar.mjs +104 -0
- package/esm2022/avatar/avatar.module.mjs +16 -0
- package/esm2022/avatar/cax-design-system-avatar.mjs +5 -0
- package/esm2022/avatar/public_api.mjs +3 -0
- package/esm2022/avatargroup/avatargroup.mjs +54 -0
- package/esm2022/avatargroup/cax-design-system-avatargroup.mjs +5 -0
- package/esm2022/avatargroup/public_api.mjs +2 -0
- package/esm2022/badge/badge.directive.mjs +199 -0
- package/esm2022/badge/badge.mjs +51 -0
- package/esm2022/badge/badge.module.mjs +20 -0
- package/esm2022/badge/cax-design-system-badge.mjs +5 -0
- package/esm2022/badge/public_api.mjs +4 -0
- package/esm2022/baseicon/baseicon.mjs +45 -0
- package/esm2022/baseicon/cax-design-system-baseicon.mjs +5 -0
- package/esm2022/baseicon/public_api.mjs +2 -0
- package/esm2022/blockui/blockui.interface.mjs +2 -0
- package/esm2022/blockui/blockui.mjs +206 -0
- package/esm2022/blockui/cax-design-system-blockui.mjs +5 -0
- package/esm2022/blockui/public_api.mjs +3 -0
- package/esm2022/breadcrumb/breadcrumb.interface.mjs +2 -0
- package/esm2022/breadcrumb/breadcrumb.mjs +120 -0
- package/esm2022/breadcrumb/breadcrumb.module.mjs +23 -0
- package/esm2022/breadcrumb/cax-design-system-breadcrumb.mjs +5 -0
- package/esm2022/breadcrumb/public_api.mjs +4 -0
- package/esm2022/button/button.directive.mjs +227 -0
- package/esm2022/button/button.interface.mjs +2 -0
- package/esm2022/button/button.mjs +189 -0
- package/esm2022/button/button.module.mjs +18 -0
- package/esm2022/button/cax-design-system-button.mjs +5 -0
- package/esm2022/button/public_api.mjs +5 -0
- package/esm2022/buttongroup/buttongroup.mjs +38 -0
- package/esm2022/buttongroup/cax-design-system-buttongroup.mjs +5 -0
- package/esm2022/buttongroup/public_api.mjs +2 -0
- package/esm2022/calendar/calendar.interface.mjs +2 -0
- package/esm2022/calendar/calendar.mjs +3192 -0
- package/esm2022/calendar/calendar.module.mjs +18 -0
- package/esm2022/calendar/cax-design-system-calendar.mjs +5 -0
- package/esm2022/calendar/public_api.mjs +4 -0
- package/esm2022/card/card.interface.mjs +2 -0
- package/esm2022/card/card.mjs +117 -0
- package/esm2022/card/card.module.mjs +21 -0
- package/esm2022/card/cax-design-system-card.mjs +5 -0
- package/esm2022/card/public_api.mjs +4 -0
- package/esm2022/carousel/carousel.interface.mjs +2 -0
- package/esm2022/carousel/carousel.mjs +968 -0
- package/esm2022/carousel/cax-design-system-carousel.mjs +5 -0
- package/esm2022/carousel/public_api.mjs +3 -0
- package/esm2022/cascadeselect/cascadeselect.interface.mjs +2 -0
- package/esm2022/cascadeselect/cascadeselect.mjs +1135 -0
- package/esm2022/cascadeselect/cascadeselect.module.mjs +25 -0
- package/esm2022/cascadeselect/cax-design-system-cascadeselect.mjs +5 -0
- package/esm2022/cascadeselect/public_api.mjs +4 -0
- package/esm2022/cax-design-system.mjs +5 -0
- package/esm2022/chart/cax-design-system-chart.mjs +5 -0
- package/esm2022/chart/chart.mjs +236 -0
- package/esm2022/chart/public_api.mjs +2 -0
- package/esm2022/checkbox/cax-design-system-checkbox.mjs +5 -0
- package/esm2022/checkbox/checkbox.interface.mjs +2 -0
- package/esm2022/checkbox/checkbox.mjs +303 -0
- package/esm2022/checkbox/checkbox.module.mjs +20 -0
- package/esm2022/checkbox/public_api.mjs +4 -0
- package/esm2022/chip/cax-design-system-chip.mjs +5 -0
- package/esm2022/chip/chip.interface.mjs +2 -0
- package/esm2022/chip/chip.mjs +86 -0
- package/esm2022/chip/chip.module.mjs +20 -0
- package/esm2022/chip/public_api.mjs +4 -0
- package/esm2022/chips/cax-design-system-chips.mjs +5 -0
- package/esm2022/chips/chips.interface.mjs +2 -0
- package/esm2022/chips/chips.mjs +568 -0
- package/esm2022/chips/chips.module.mjs +22 -0
- package/esm2022/chips/public_api.mjs +4 -0
- package/esm2022/colorpicker/cax-design-system-colorpicker.mjs +5 -0
- package/esm2022/colorpicker/colorpicker.interface.mjs +2 -0
- package/esm2022/colorpicker/colorpicker.mjs +829 -0
- package/esm2022/colorpicker/public_api.mjs +3 -0
- package/esm2022/confirmdialog/cax-design-system-confirmdialog.mjs +5 -0
- package/esm2022/confirmdialog/confirmdialog.interface.mjs +2 -0
- package/esm2022/confirmdialog/confirmdialog.mjs +689 -0
- package/esm2022/confirmdialog/public_api.mjs +3 -0
- package/esm2022/confirmpopup/cax-design-system-confirmpopup.mjs +5 -0
- package/esm2022/confirmpopup/confirmpopup.interface.mjs +2 -0
- package/esm2022/confirmpopup/confirmpopup.mjs +499 -0
- package/esm2022/confirmpopup/public_api.mjs +3 -0
- package/esm2022/contextmenu/cax-design-system-contextmenu.mjs +5 -0
- package/esm2022/contextmenu/contextmenu.mjs +1304 -0
- package/esm2022/contextmenu/public_api.mjs +2 -0
- package/esm2022/dataview/cax-design-system-dataview.mjs +5 -0
- package/esm2022/dataview/dataview.interface.mjs +2 -0
- package/esm2022/dataview/dataview.mjs +723 -0
- package/esm2022/dataview/public_api.mjs +3 -0
- package/esm2022/defer/cax-design-system-defer.mjs +5 -0
- package/esm2022/defer/defer.mjs +111 -0
- package/esm2022/defer/public_api.mjs +2 -0
- package/esm2022/dialog/cax-design-system-dialog.mjs +5 -0
- package/esm2022/dialog/dialog.interface.mjs +2 -0
- package/esm2022/dialog/dialog.mjs +1168 -0
- package/esm2022/dialog/public_api.mjs +3 -0
- package/esm2022/divider/cax-design-system-divider.mjs +5 -0
- package/esm2022/divider/divider.mjs +69 -0
- package/esm2022/divider/divider.module.mjs +16 -0
- package/esm2022/divider/public_api.mjs +3 -0
- package/esm2022/dock/cax-design-system-dock.mjs +5 -0
- package/esm2022/dock/dock.interface.mjs +2 -0
- package/esm2022/dock/dock.mjs +431 -0
- package/esm2022/dock/public_api.mjs +3 -0
- package/esm2022/dom/cax-design-system-dom.mjs +5 -0
- package/esm2022/dom/connectedoverlayscrollhandler.mjs +30 -0
- package/esm2022/dom/domhandler.mjs +722 -0
- package/esm2022/dom/public_api.mjs +3 -0
- package/esm2022/dragdrop/cax-design-system-dragdrop.mjs +5 -0
- package/esm2022/dragdrop/dragdrop.mjs +309 -0
- package/esm2022/dragdrop/dragdrop.module.mjs +18 -0
- package/esm2022/dragdrop/public_api.mjs +3 -0
- package/esm2022/dropdown/cax-design-system-dropdown.mjs +5 -0
- package/esm2022/dropdown/dropdown-item.mjs +72 -0
- package/esm2022/dropdown/dropdown.interface.mjs +2 -0
- package/esm2022/dropdown/dropdown.mjs +1597 -0
- package/esm2022/dropdown/dropdown.module.mjs +20 -0
- package/esm2022/dropdown/public_api.mjs +5 -0
- package/esm2022/dynamicdialog/cax-design-system-dynamicdialog.mjs +5 -0
- package/esm2022/dynamicdialog/dialogservice.mjs +102 -0
- package/esm2022/dynamicdialog/dynamicdialog-config.mjs +187 -0
- package/esm2022/dynamicdialog/dynamicdialog-injector.mjs +15 -0
- package/esm2022/dynamicdialog/dynamicdialog-ref.mjs +119 -0
- package/esm2022/dynamicdialog/dynamicdialog.mjs +696 -0
- package/esm2022/dynamicdialog/dynamicdialogcontent.mjs +20 -0
- package/esm2022/dynamicdialog/public_api.mjs +7 -0
- package/esm2022/editor/cax-design-system-editor.mjs +5 -0
- package/esm2022/editor/editor.interface.mjs +2 -0
- package/esm2022/editor/editor.mjs +392 -0
- package/esm2022/editor/public_api.mjs +3 -0
- package/esm2022/fieldset/cax-design-system-fieldset.mjs +5 -0
- package/esm2022/fieldset/fieldset.interface.mjs +2 -0
- package/esm2022/fieldset/fieldset.mjs +297 -0
- package/esm2022/fieldset/public_api.mjs +3 -0
- package/esm2022/fileupload/cax-design-system-fileupload.mjs +5 -0
- package/esm2022/fileupload/fileupload.interface.mjs +2 -0
- package/esm2022/fileupload/fileupload.mjs +1188 -0
- package/esm2022/fileupload/public_api.mjs +3 -0
- package/esm2022/floatlabel/cax-design-system-floatlabel.mjs +5 -0
- package/esm2022/floatlabel/floatlabel.mjs +44 -0
- package/esm2022/floatlabel/public_api.mjs +2 -0
- package/esm2022/focustrap/cax-design-system-focustrap.mjs +5 -0
- package/esm2022/focustrap/focustrap.mjs +103 -0
- package/esm2022/focustrap/public_api.mjs +2 -0
- package/esm2022/galleria/cax-design-system-galleria.mjs +5 -0
- package/esm2022/galleria/galleria.interface.mjs +2 -0
- package/esm2022/galleria/galleria.mjs +1668 -0
- package/esm2022/galleria/public_api.mjs +3 -0
- package/esm2022/iconfield/cax-design-system-iconfield.mjs +5 -0
- package/esm2022/iconfield/iconfield.mjs +44 -0
- package/esm2022/iconfield/public_api.mjs +2 -0
- package/esm2022/icons/angledoubledown/angledoubledown.mjs +35 -0
- package/esm2022/icons/angledoubledown/cax-design-system-icons-angledoubledown.mjs +5 -0
- package/esm2022/icons/angledoubledown/public_api.mjs +2 -0
- package/esm2022/icons/angledoubleleft/angledoubleleft.mjs +35 -0
- package/esm2022/icons/angledoubleleft/cax-design-system-icons-angledoubleleft.mjs +5 -0
- package/esm2022/icons/angledoubleleft/public_api.mjs +2 -0
- package/esm2022/icons/angledoubleright/angledoubleright.mjs +35 -0
- package/esm2022/icons/angledoubleright/cax-design-system-icons-angledoubleright.mjs +5 -0
- package/esm2022/icons/angledoubleright/public_api.mjs +2 -0
- package/esm2022/icons/angledoubleup/angledoubleup.mjs +35 -0
- package/esm2022/icons/angledoubleup/cax-design-system-icons-angledoubleup.mjs +5 -0
- package/esm2022/icons/angledoubleup/public_api.mjs +2 -0
- package/esm2022/icons/angledown/angledown.mjs +31 -0
- package/esm2022/icons/angledown/cax-design-system-icons-angledown.mjs +5 -0
- package/esm2022/icons/angledown/public_api.mjs +2 -0
- package/esm2022/icons/angleleft/angleleft.mjs +31 -0
- package/esm2022/icons/angleleft/cax-design-system-icons-angleleft.mjs +5 -0
- package/esm2022/icons/angleleft/public_api.mjs +2 -0
- package/esm2022/icons/angleright/angleright.mjs +31 -0
- package/esm2022/icons/angleright/cax-design-system-icons-angleright.mjs +5 -0
- package/esm2022/icons/angleright/public_api.mjs +2 -0
- package/esm2022/icons/angleup/angleup.mjs +31 -0
- package/esm2022/icons/angleup/cax-design-system-icons-angleup.mjs +5 -0
- package/esm2022/icons/angleup/public_api.mjs +2 -0
- package/esm2022/icons/arrowdown/arrowdown.mjs +54 -0
- package/esm2022/icons/arrowdown/cax-design-system-icons-arrowdown.mjs +5 -0
- package/esm2022/icons/arrowdown/public_api.mjs +2 -0
- package/esm2022/icons/arrowdownleft/arrowdownleft.mjs +31 -0
- package/esm2022/icons/arrowdownleft/cax-design-system-icons-arrowdownleft.mjs +5 -0
- package/esm2022/icons/arrowdownleft/public_api.mjs +2 -0
- package/esm2022/icons/arrowdownright/arrowdownright.mjs +31 -0
- package/esm2022/icons/arrowdownright/cax-design-system-icons-arrowdownright.mjs +5 -0
- package/esm2022/icons/arrowdownright/public_api.mjs +2 -0
- package/esm2022/icons/arrowleft/arrowleft.mjs +54 -0
- package/esm2022/icons/arrowleft/cax-design-system-icons-arrowleft.mjs +5 -0
- package/esm2022/icons/arrowleft/public_api.mjs +2 -0
- package/esm2022/icons/arrowright/arrowright.mjs +35 -0
- package/esm2022/icons/arrowright/cax-design-system-icons-arrowright.mjs +5 -0
- package/esm2022/icons/arrowright/public_api.mjs +2 -0
- package/esm2022/icons/arrowup/arrowup.mjs +54 -0
- package/esm2022/icons/arrowup/cax-design-system-icons-arrowup.mjs +5 -0
- package/esm2022/icons/arrowup/public_api.mjs +2 -0
- package/esm2022/icons/ban/ban.mjs +50 -0
- package/esm2022/icons/ban/cax-design-system-icons-ban.mjs +5 -0
- package/esm2022/icons/ban/public_api.mjs +2 -0
- package/esm2022/icons/bars/bars.mjs +35 -0
- package/esm2022/icons/bars/cax-design-system-icons-bars.mjs +5 -0
- package/esm2022/icons/bars/public_api.mjs +2 -0
- package/esm2022/icons/blank/blank.mjs +25 -0
- package/esm2022/icons/blank/cax-design-system-icons-blank.mjs +5 -0
- package/esm2022/icons/blank/public_api.mjs +2 -0
- package/esm2022/icons/calendar/calendar.mjs +31 -0
- package/esm2022/icons/calendar/cax-design-system-icons-calendar.mjs +5 -0
- package/esm2022/icons/calendar/public_api.mjs +2 -0
- package/esm2022/icons/caretleft/caretleft.mjs +31 -0
- package/esm2022/icons/caretleft/cax-design-system-icons-caretleft.mjs +5 -0
- package/esm2022/icons/caretleft/public_api.mjs +2 -0
- package/esm2022/icons/caretright/caretright.mjs +31 -0
- package/esm2022/icons/caretright/cax-design-system-icons-caretright.mjs +5 -0
- package/esm2022/icons/caretright/public_api.mjs +2 -0
- package/esm2022/icons/check/cax-design-system-icons-check.mjs +5 -0
- package/esm2022/icons/check/check.mjs +31 -0
- package/esm2022/icons/check/public_api.mjs +2 -0
- package/esm2022/icons/chevrondown/cax-design-system-icons-chevrondown.mjs +5 -0
- package/esm2022/icons/chevrondown/chevrondown.mjs +31 -0
- package/esm2022/icons/chevrondown/public_api.mjs +2 -0
- package/esm2022/icons/chevronleft/cax-design-system-icons-chevronleft.mjs +5 -0
- package/esm2022/icons/chevronleft/chevronleft.mjs +31 -0
- package/esm2022/icons/chevronleft/public_api.mjs +2 -0
- package/esm2022/icons/chevronright/cax-design-system-icons-chevronright.mjs +5 -0
- package/esm2022/icons/chevronright/chevronright.mjs +31 -0
- package/esm2022/icons/chevronright/public_api.mjs +2 -0
- package/esm2022/icons/chevronup/cax-design-system-icons-chevronup.mjs +5 -0
- package/esm2022/icons/chevronup/chevronup.mjs +31 -0
- package/esm2022/icons/chevronup/public_api.mjs +2 -0
- package/esm2022/icons/exclamationtriangle/cax-design-system-icons-exclamationtriangle.mjs +5 -0
- package/esm2022/icons/exclamationtriangle/exclamationtriangle.mjs +66 -0
- package/esm2022/icons/exclamationtriangle/public_api.mjs +2 -0
- package/esm2022/icons/eye/cax-design-system-icons-eye.mjs +5 -0
- package/esm2022/icons/eye/eye.mjs +35 -0
- package/esm2022/icons/eye/public_api.mjs +2 -0
- package/esm2022/icons/eyeslash/cax-design-system-icons-eyeslash.mjs +5 -0
- package/esm2022/icons/eyeslash/eyeslash.mjs +54 -0
- package/esm2022/icons/eyeslash/public_api.mjs +2 -0
- package/esm2022/icons/filter/cax-design-system-icons-filter.mjs +5 -0
- package/esm2022/icons/filter/filter.mjs +50 -0
- package/esm2022/icons/filter/public_api.mjs +2 -0
- package/esm2022/icons/filterslash/cax-design-system-icons-filterslash.mjs +5 -0
- package/esm2022/icons/filterslash/filterslash.mjs +54 -0
- package/esm2022/icons/filterslash/public_api.mjs +2 -0
- package/esm2022/icons/home/cax-design-system-icons-home.mjs +5 -0
- package/esm2022/icons/home/home.mjs +54 -0
- package/esm2022/icons/home/public_api.mjs +2 -0
- package/esm2022/icons/infocircle/cax-design-system-icons-infocircle.mjs +5 -0
- package/esm2022/icons/infocircle/infocircle.mjs +54 -0
- package/esm2022/icons/infocircle/public_api.mjs +2 -0
- package/esm2022/icons/minus/cax-design-system-icons-minus.mjs +5 -0
- package/esm2022/icons/minus/minus.mjs +32 -0
- package/esm2022/icons/minus/public_api.mjs +2 -0
- package/esm2022/icons/pencil/cax-design-system-icons-pencil.mjs +5 -0
- package/esm2022/icons/pencil/pencil.mjs +50 -0
- package/esm2022/icons/pencil/public_api.mjs +2 -0
- package/esm2022/icons/plus/cax-design-system-icons-plus.mjs +5 -0
- package/esm2022/icons/plus/plus.mjs +50 -0
- package/esm2022/icons/plus/public_api.mjs +2 -0
- package/esm2022/icons/refresh/cax-design-system-icons-refresh.mjs +5 -0
- package/esm2022/icons/refresh/public_api.mjs +2 -0
- package/esm2022/icons/refresh/refresh.mjs +54 -0
- package/esm2022/icons/search/cax-design-system-icons-search.mjs +5 -0
- package/esm2022/icons/search/public_api.mjs +2 -0
- package/esm2022/icons/search/search.mjs +54 -0
- package/esm2022/icons/searchminus/cax-design-system-icons-searchminus.mjs +5 -0
- package/esm2022/icons/searchminus/public_api.mjs +2 -0
- package/esm2022/icons/searchminus/searchminus.mjs +54 -0
- package/esm2022/icons/searchplus/cax-design-system-icons-searchplus.mjs +5 -0
- package/esm2022/icons/searchplus/public_api.mjs +2 -0
- package/esm2022/icons/searchplus/searchplus.mjs +54 -0
- package/esm2022/icons/sortalt/cax-design-system-icons-sortalt.mjs +5 -0
- package/esm2022/icons/sortalt/public_api.mjs +2 -0
- package/esm2022/icons/sortalt/sortalt.mjs +62 -0
- package/esm2022/icons/sortamountdown/cax-design-system-icons-sortamountdown.mjs +5 -0
- package/esm2022/icons/sortamountdown/public_api.mjs +2 -0
- package/esm2022/icons/sortamountdown/sortamountdown.mjs +50 -0
- package/esm2022/icons/sortamountupalt/cax-design-system-icons-sortamountupalt.mjs +5 -0
- package/esm2022/icons/sortamountupalt/public_api.mjs +2 -0
- package/esm2022/icons/sortamountupalt/sortamountupalt.mjs +50 -0
- package/esm2022/icons/spinner/cax-design-system-icons-spinner.mjs +5 -0
- package/esm2022/icons/spinner/public_api.mjs +2 -0
- package/esm2022/icons/spinner/spinner.mjs +50 -0
- package/esm2022/icons/star/cax-design-system-icons-star.mjs +5 -0
- package/esm2022/icons/star/public_api.mjs +2 -0
- package/esm2022/icons/star/star.mjs +50 -0
- package/esm2022/icons/starfill/cax-design-system-icons-starfill.mjs +5 -0
- package/esm2022/icons/starfill/public_api.mjs +2 -0
- package/esm2022/icons/starfill/starfill.mjs +50 -0
- package/esm2022/icons/thlarge/cax-design-system-icons-thlarge.mjs +5 -0
- package/esm2022/icons/thlarge/public_api.mjs +2 -0
- package/esm2022/icons/thlarge/thlarge.mjs +54 -0
- package/esm2022/icons/times/cax-design-system-icons-times.mjs +5 -0
- package/esm2022/icons/times/public_api.mjs +2 -0
- package/esm2022/icons/times/times.mjs +31 -0
- package/esm2022/icons/timescircle/cax-design-system-icons-timescircle.mjs +5 -0
- package/esm2022/icons/timescircle/public_api.mjs +2 -0
- package/esm2022/icons/timescircle/timescircle.mjs +54 -0
- package/esm2022/icons/trash/cax-design-system-icons-trash.mjs +5 -0
- package/esm2022/icons/trash/public_api.mjs +2 -0
- package/esm2022/icons/trash/trash.mjs +54 -0
- package/esm2022/icons/undo/cax-design-system-icons-undo.mjs +5 -0
- package/esm2022/icons/undo/public_api.mjs +2 -0
- package/esm2022/icons/undo/undo.mjs +54 -0
- package/esm2022/icons/upload/cax-design-system-icons-upload.mjs +5 -0
- package/esm2022/icons/upload/public_api.mjs +2 -0
- package/esm2022/icons/upload/upload.mjs +54 -0
- package/esm2022/icons/windowmaximize/cax-design-system-icons-windowmaximize.mjs +5 -0
- package/esm2022/icons/windowmaximize/public_api.mjs +2 -0
- package/esm2022/icons/windowmaximize/windowmaximize.mjs +54 -0
- package/esm2022/icons/windowminimize/cax-design-system-icons-windowminimize.mjs +5 -0
- package/esm2022/icons/windowminimize/public_api.mjs +2 -0
- package/esm2022/icons/windowminimize/windowminimize.mjs +54 -0
- package/esm2022/image/cax-design-system-image.mjs +5 -0
- package/esm2022/image/image.interface.mjs +2 -0
- package/esm2022/image/image.mjs +418 -0
- package/esm2022/image/image.module.mjs +17 -0
- package/esm2022/image/public_api.mjs +4 -0
- package/esm2022/inplace/cax-design-system-inplace.mjs +5 -0
- package/esm2022/inplace/inplace.interface.mjs +2 -0
- package/esm2022/inplace/inplace.mjs +243 -0
- package/esm2022/inplace/public_api.mjs +3 -0
- package/esm2022/inputgroup/cax-design-system-inputgroup.mjs +5 -0
- package/esm2022/inputgroup/inputgroup.mjs +48 -0
- package/esm2022/inputgroup/inputgroup.module.mjs +25 -0
- package/esm2022/inputgroup/public_api.mjs +3 -0
- package/esm2022/inputgroupaddon/cax-design-system-inputgroupaddon.mjs +5 -0
- package/esm2022/inputgroupaddon/inputgroupaddon.mjs +32 -0
- package/esm2022/inputgroupaddon/inputgroupaddon.module.mjs +24 -0
- package/esm2022/inputgroupaddon/public_api.mjs +3 -0
- package/esm2022/inputicon/cax-design-system-inputicon.mjs +5 -0
- package/esm2022/inputicon/inputicon.mjs +38 -0
- package/esm2022/inputicon/public_api.mjs +2 -0
- package/esm2022/inputmask/cax-design-system-inputmask.mjs +5 -0
- package/esm2022/inputmask/inputmask.interface.mjs +2 -0
- package/esm2022/inputmask/inputmask.mjs +914 -0
- package/esm2022/inputmask/public_api.mjs +3 -0
- package/esm2022/inputnumber/cax-design-system-inputnumber.mjs +5 -0
- package/esm2022/inputnumber/inputnumber.interface.mjs +2 -0
- package/esm2022/inputnumber/inputnumber.mjs +1290 -0
- package/esm2022/inputnumber/inputnumber.module.mjs +17 -0
- package/esm2022/inputnumber/public_api.mjs +4 -0
- package/esm2022/inputotp/cax-design-system-inputotp.mjs +5 -0
- package/esm2022/inputotp/inputotp.interface.mjs +2 -0
- package/esm2022/inputotp/inputotp.mjs +381 -0
- package/esm2022/inputotp/public_api.mjs +3 -0
- package/esm2022/inputswitch/cax-design-system-inputswitch.mjs +5 -0
- package/esm2022/inputswitch/inputswitch.interface.mjs +2 -0
- package/esm2022/inputswitch/inputswitch.mjs +244 -0
- package/esm2022/inputswitch/public_api.mjs +3 -0
- package/esm2022/inputtext/cax-design-system-inputtext.mjs +5 -0
- package/esm2022/inputtext/inputtext.component.mjs +74 -0
- package/esm2022/inputtext/inputtext.directive.mjs +52 -0
- package/esm2022/inputtext/inputtext.module.mjs +20 -0
- package/esm2022/inputtext/public_api.mjs +4 -0
- package/esm2022/inputtextarea/cax-design-system-inputtextarea.mjs +5 -0
- package/esm2022/inputtextarea/inputtextarea.mjs +135 -0
- package/esm2022/inputtextarea/public_api.mjs +2 -0
- package/esm2022/keyfilter/cax-design-system-keyfilter.mjs +5 -0
- package/esm2022/keyfilter/keyfilter.interface.mjs +2 -0
- package/esm2022/keyfilter/keyfilter.mjs +265 -0
- package/esm2022/keyfilter/public_api.mjs +3 -0
- package/esm2022/knob/cax-design-system-knob.mjs +5 -0
- package/esm2022/knob/knob.mjs +464 -0
- package/esm2022/knob/public_api.mjs +2 -0
- package/esm2022/listbox/cax-design-system-listbox.mjs +5 -0
- package/esm2022/listbox/listbox.interface.mjs +2 -0
- package/esm2022/listbox/listbox.mjs +1555 -0
- package/esm2022/listbox/public_api.mjs +3 -0
- package/esm2022/logo/cax-design-system-logo.mjs +5 -0
- package/esm2022/logo/logo.mjs +45 -0
- package/esm2022/logo/logo.module.mjs +16 -0
- package/esm2022/logo/public_api.mjs +3 -0
- package/esm2022/megamenu/cax-design-system-megamenu.mjs +5 -0
- package/esm2022/megamenu/megamenu.interface.mjs +2 -0
- package/esm2022/megamenu/megamenu.mjs +1190 -0
- package/esm2022/megamenu/public_api.mjs +3 -0
- package/esm2022/menu/cax-design-system-menu.mjs +5 -0
- package/esm2022/menu/menu.mjs +953 -0
- package/esm2022/menu/public_api.mjs +2 -0
- package/esm2022/menubar/cax-design-system-menubar.mjs +5 -0
- package/esm2022/menubar/menubar.interface.mjs +2 -0
- package/esm2022/menubar/menubar.mjs +1249 -0
- package/esm2022/menubar/public_api.mjs +3 -0
- package/esm2022/message/cax-design-system-message.mjs +5 -0
- package/esm2022/message/message.mjs +112 -0
- package/esm2022/message/public_api.mjs +2 -0
- package/esm2022/messages/cax-design-system-messages.mjs +5 -0
- package/esm2022/messages/messages.interface.mjs +2 -0
- package/esm2022/messages/messages.mjs +283 -0
- package/esm2022/messages/messages.module.mjs +17 -0
- package/esm2022/messages/public_api.mjs +4 -0
- package/esm2022/metergroup/cax-design-system-metergroup.mjs +5 -0
- package/esm2022/metergroup/metergroup.interface.mjs +2 -0
- package/esm2022/metergroup/metergroup.mjs +280 -0
- package/esm2022/metergroup/public_api.mjs +3 -0
- package/esm2022/multiselect/cax-design-system-multiselect.mjs +5 -0
- package/esm2022/multiselect/multiselect.interface.mjs +2 -0
- package/esm2022/multiselect/multiselect.mjs +2525 -0
- package/esm2022/multiselect/public_api.mjs +3 -0
- package/esm2022/navigation/cax-design-system-navigation.mjs +5 -0
- package/esm2022/navigation/navigation.interface.mjs +2 -0
- package/esm2022/navigation/navigation.mjs +261 -0
- package/esm2022/navigation/navigation.module.mjs +16 -0
- package/esm2022/navigation/public_api.mjs +3 -0
- package/esm2022/orderlist/cax-design-system-orderlist.mjs +5 -0
- package/esm2022/orderlist/orderlist.interface.mjs +2 -0
- package/esm2022/orderlist/orderlist.mjs +993 -0
- package/esm2022/orderlist/public_api.mjs +3 -0
- package/esm2022/organizationchart/cax-design-system-organizationchart.mjs +5 -0
- package/esm2022/organizationchart/organizationchart.interface.mjs +2 -0
- package/esm2022/organizationchart/organizationchart.mjs +416 -0
- package/esm2022/organizationchart/public_api.mjs +3 -0
- package/esm2022/overlay/cax-design-system-overlay.mjs +5 -0
- package/esm2022/overlay/overlay.mjs +579 -0
- package/esm2022/overlay/overlay.module.mjs +17 -0
- package/esm2022/overlay/public_api.mjs +3 -0
- package/esm2022/overlaypanel/cax-design-system-overlaypanel.mjs +5 -0
- package/esm2022/overlaypanel/overlaypanel.mjs +470 -0
- package/esm2022/overlaypanel/overlaypanel.module.mjs +17 -0
- package/esm2022/overlaypanel/public_api.mjs +3 -0
- package/esm2022/paginator/cax-design-system-paginator.mjs +5 -0
- package/esm2022/paginator/paginator.interface.mjs +2 -0
- package/esm2022/paginator/paginator.mjs +424 -0
- package/esm2022/paginator/paginator.module.mjs +27 -0
- package/esm2022/paginator/public_api.mjs +4 -0
- package/esm2022/panel/cax-design-system-panel.mjs +5 -0
- package/esm2022/panel/panel.interface.mjs +2 -0
- package/esm2022/panel/panel.mjs +393 -0
- package/esm2022/panel/public_api.mjs +3 -0
- package/esm2022/panelmenu/cax-design-system-panelmenu.mjs +5 -0
- package/esm2022/panelmenu/panelmenu.interface.mjs +2 -0
- package/esm2022/panelmenu/panelmenu.mjs +1276 -0
- package/esm2022/panelmenu/public_api.mjs +3 -0
- package/esm2022/password/cax-design-system-password.mjs +5 -0
- package/esm2022/password/password.mjs +1017 -0
- package/esm2022/password/public_api.mjs +2 -0
- package/esm2022/picklist/cax-design-system-picklist.mjs +5 -0
- package/esm2022/picklist/picklist.interface.mjs +2 -0
- package/esm2022/picklist/picklist.mjs +1909 -0
- package/esm2022/picklist/public_api.mjs +3 -0
- package/esm2022/progressbar/cax-design-system-progressbar.mjs +5 -0
- package/esm2022/progressbar/progressbar.mjs +86 -0
- package/esm2022/progressbar/progressbar.module.mjs +18 -0
- package/esm2022/progressbar/public_api.mjs +3 -0
- package/esm2022/progressspinner/cax-design-system-progressspinner.mjs +5 -0
- package/esm2022/progressspinner/progressspinner.mjs +112 -0
- package/esm2022/progressspinner/progressspinner.module.mjs +18 -0
- package/esm2022/progressspinner/public_api.mjs +3 -0
- package/esm2022/public_api.mjs +2 -0
- package/esm2022/radiobutton/cax-design-system-radiobutton.mjs +5 -0
- package/esm2022/radiobutton/public_api.mjs +4 -0
- package/esm2022/radiobutton/radiobutton.interface.mjs +2 -0
- package/esm2022/radiobutton/radiobutton.mjs +277 -0
- package/esm2022/radiobutton/radiobutton.module.mjs +16 -0
- package/esm2022/rating/cax-design-system-rating.mjs +5 -0
- package/esm2022/rating/public_api.mjs +3 -0
- package/esm2022/rating/rating.interface.mjs +2 -0
- package/esm2022/rating/rating.mjs +388 -0
- package/esm2022/ripple/cax-design-system-ripple.mjs +5 -0
- package/esm2022/ripple/public_api.mjs +3 -0
- package/esm2022/ripple/ripple.mjs +129 -0
- package/esm2022/ripple/ripple.module.mjs +16 -0
- package/esm2022/scroller/cax-design-system-scroller.mjs +5 -0
- package/esm2022/scroller/public_api.mjs +4 -0
- package/esm2022/scroller/scroller.interface.mjs +2 -0
- package/esm2022/scroller/scroller.mjs +981 -0
- package/esm2022/scroller/scroller.module.mjs +17 -0
- package/esm2022/scrollpanel/cax-design-system-scrollpanel.mjs +5 -0
- package/esm2022/scrollpanel/public_api.mjs +3 -0
- package/esm2022/scrollpanel/scrollpanel.interface.mjs +2 -0
- package/esm2022/scrollpanel/scrollpanel.mjs +501 -0
- package/esm2022/scrolltop/cax-design-system-scrolltop.mjs +5 -0
- package/esm2022/scrolltop/public_api.mjs +3 -0
- package/esm2022/scrolltop/scrolltop.interface.mjs +2 -0
- package/esm2022/scrolltop/scrolltop.mjs +282 -0
- package/esm2022/selectbutton/cax-design-system-selectbutton.mjs +5 -0
- package/esm2022/selectbutton/public_api.mjs +3 -0
- package/esm2022/selectbutton/selectbutton.interface.mjs +2 -0
- package/esm2022/selectbutton/selectbutton.mjs +378 -0
- package/esm2022/sidebar/cax-design-system-sidebar.mjs +5 -0
- package/esm2022/sidebar/public_api.mjs +4 -0
- package/esm2022/sidebar/sidebar.interface.mjs +2 -0
- package/esm2022/sidebar/sidebar.mjs +419 -0
- package/esm2022/sidebar/sidebar.module.mjs +21 -0
- package/esm2022/skeleton/cax-design-system-skeleton.mjs +5 -0
- package/esm2022/skeleton/public_api.mjs +3 -0
- package/esm2022/skeleton/skeleton.mjs +87 -0
- package/esm2022/skeleton/skeleton.module.mjs +18 -0
- package/esm2022/slidemenu/cax-design-system-slidemenu.mjs +5 -0
- package/esm2022/slidemenu/public_api.mjs +3 -0
- package/esm2022/slidemenu/slidemenu.interface.mjs +2 -0
- package/esm2022/slidemenu/slidemenu.mjs +1501 -0
- package/esm2022/slider/cax-design-system-slider.mjs +5 -0
- package/esm2022/slider/public_api.mjs +3 -0
- package/esm2022/slider/slider.interface.mjs +2 -0
- package/esm2022/slider/slider.mjs +796 -0
- package/esm2022/speeddial/cax-design-system-speeddial.mjs +5 -0
- package/esm2022/speeddial/public_api.mjs +4 -0
- package/esm2022/speeddial/speeddial.interface.mjs +2 -0
- package/esm2022/speeddial/speeddial.mjs +611 -0
- package/esm2022/speeddial/speeddial.module.mjs +24 -0
- package/esm2022/spinner/cax-design-system-spinner.mjs +5 -0
- package/esm2022/spinner/public_api.mjs +2 -0
- package/esm2022/spinner/spinner.mjs +447 -0
- package/esm2022/splitbutton/cax-design-system-splitbutton.mjs +5 -0
- package/esm2022/splitbutton/public_api.mjs +4 -0
- package/esm2022/splitbutton/splitbutton.interface.mjs +2 -0
- package/esm2022/splitbutton/splitbutton.mjs +364 -0
- package/esm2022/splitbutton/splitbutton.module.mjs +22 -0
- package/esm2022/splitter/cax-design-system-splitter.mjs +5 -0
- package/esm2022/splitter/public_api.mjs +3 -0
- package/esm2022/splitter/splitter.interface.mjs +2 -0
- package/esm2022/splitter/splitter.mjs +562 -0
- package/esm2022/stepper/cax-design-system-stepper.mjs +5 -0
- package/esm2022/stepper/public_api.mjs +3 -0
- package/esm2022/stepper/stepper.interface.mjs +2 -0
- package/esm2022/stepper/stepper.mjs +677 -0
- package/esm2022/steps/cax-design-system-steps.mjs +5 -0
- package/esm2022/steps/public_api.mjs +2 -0
- package/esm2022/steps/steps.mjs +345 -0
- package/esm2022/styleclass/cax-design-system-styleclass.mjs +5 -0
- package/esm2022/styleclass/public_api.mjs +2 -0
- package/esm2022/styleclass/styleclass.mjs +316 -0
- package/esm2022/table/cax-design-system-table.mjs +5 -0
- package/esm2022/table/columnfilter.interface.mjs +2 -0
- package/esm2022/table/components/cell-editor/cell-editor.mjs +52 -0
- package/esm2022/table/components/column-filter/column-filter.mjs +685 -0
- package/esm2022/table/components/column-filter-form-element/column-filter-form-element.mjs +106 -0
- package/esm2022/table/components/sort-icon/sort-icon.mjs +75 -0
- package/esm2022/table/components/table-body/table-body.mjs +152 -0
- package/esm2022/table/components/table-checkbox/table-checkbox.mjs +82 -0
- package/esm2022/table/components/table-header-checkbox/table-header-checkbox.mjs +92 -0
- package/esm2022/table/components/table-radio-button/table-radio-button.mjs +79 -0
- package/esm2022/table/directives/cancel-editable-row.directive.mjs +32 -0
- package/esm2022/table/directives/content-menu-row.directive.mjs +70 -0
- package/esm2022/table/directives/editable-column.directive.mjs +344 -0
- package/esm2022/table/directives/editable-row.directive.mjs +32 -0
- package/esm2022/table/directives/frozen-column.directive.mjs +77 -0
- package/esm2022/table/directives/init-editable-row.directive.mjs +32 -0
- package/esm2022/table/directives/reorderable-column.directive.mjs +115 -0
- package/esm2022/table/directives/reorderable-row-handle.directive.mjs +25 -0
- package/esm2022/table/directives/reorderable-row.directive.mjs +122 -0
- package/esm2022/table/directives/resizable-column.directive.mjs +123 -0
- package/esm2022/table/directives/row-group-header.directive.mjs +26 -0
- package/esm2022/table/directives/row-toggler.directive.mjs +42 -0
- package/esm2022/table/directives/save-editable-row.directive.mjs +32 -0
- package/esm2022/table/directives/selectable-row-double-click.directive.mjs +71 -0
- package/esm2022/table/directives/selectable-row.directive.mjs +243 -0
- package/esm2022/table/directives/sortable-column.directive.mjs +90 -0
- package/esm2022/table/public_api.mjs +29 -0
- package/esm2022/table/table.interface.mjs +2 -0
- package/esm2022/table/table.mjs +2721 -0
- package/esm2022/table/table.module.mjs +147 -0
- package/esm2022/table/table.service.mjs +42 -0
- package/esm2022/tabmenu/cax-design-system-tabmenu.mjs +5 -0
- package/esm2022/tabmenu/public_api.mjs +3 -0
- package/esm2022/tabmenu/tabmenu.interface.mjs +2 -0
- package/esm2022/tabmenu/tabmenu.mjs +576 -0
- package/esm2022/tabview/cax-design-system-tabview.mjs +5 -0
- package/esm2022/tabview/public_api.mjs +4 -0
- package/esm2022/tabview/tabview.interface.mjs +2 -0
- package/esm2022/tabview/tabview.mjs +824 -0
- package/esm2022/tabview/tabview.module.mjs +24 -0
- package/esm2022/tag/cax-design-system-tag.mjs +5 -0
- package/esm2022/tag/public_api.mjs +4 -0
- package/esm2022/tag/tag.interface.mjs +2 -0
- package/esm2022/tag/tag.mjs +95 -0
- package/esm2022/tag/tag.module.mjs +19 -0
- package/esm2022/terminal/cax-design-system-terminal.mjs +5 -0
- package/esm2022/terminal/public_api.mjs +3 -0
- package/esm2022/terminal/terminal.mjs +143 -0
- package/esm2022/terminal/terminalservice.mjs +25 -0
- package/esm2022/tieredmenu/cax-design-system-tieredmenu.mjs +5 -0
- package/esm2022/tieredmenu/public_api.mjs +4 -0
- package/esm2022/tieredmenu/tieredmenu.interface.mjs +2 -0
- package/esm2022/tieredmenu/tieredmenu.mjs +1289 -0
- package/esm2022/tieredmenu/tiredmenu.module.mjs +23 -0
- package/esm2022/timeline/cax-design-system-timeline.mjs +5 -0
- package/esm2022/timeline/public_api.mjs +3 -0
- package/esm2022/timeline/timeline.interface.mjs +2 -0
- package/esm2022/timeline/timeline.mjs +167 -0
- package/esm2022/toast/cax-design-system-toast.mjs +5 -0
- package/esm2022/toast/public_api.mjs +4 -0
- package/esm2022/toast/toast.interface.mjs +2 -0
- package/esm2022/toast/toast.mjs +324 -0
- package/esm2022/toast/toast.module.mjs +18 -0
- package/esm2022/toast/toastitem.mjs +170 -0
- package/esm2022/togglebutton/cax-design-system-togglebutton.mjs +5 -0
- package/esm2022/togglebutton/public_api.mjs +3 -0
- package/esm2022/togglebutton/togglebutton.interface.mjs +2 -0
- package/esm2022/togglebutton/togglebutton.mjs +274 -0
- package/esm2022/toggleswitch/cax-design-system-toggleswitch.mjs +5 -0
- package/esm2022/toggleswitch/public_api.mjs +3 -0
- package/esm2022/toggleswitch/toggleswitch.mjs +34 -0
- package/esm2022/toggleswitch/toggleswitch.module.mjs +19 -0
- package/esm2022/toolbar/cax-design-system-toolbar.mjs +5 -0
- package/esm2022/toolbar/public_api.mjs +3 -0
- package/esm2022/toolbar/toolbar.interface.mjs +2 -0
- package/esm2022/toolbar/toolbar.mjs +111 -0
- package/esm2022/tooltip/cax-design-system-tooltip.mjs +5 -0
- package/esm2022/tooltip/public_api.mjs +3 -0
- package/esm2022/tooltip/tooltip.mjs +889 -0
- package/esm2022/tooltip/tooltip.module.mjs +18 -0
- package/esm2022/tree/cax-design-system-tree.mjs +5 -0
- package/esm2022/tree/public_api.mjs +4 -0
- package/esm2022/tree/tree.interface.mjs +2 -0
- package/esm2022/tree/tree.mjs +1495 -0
- package/esm2022/tree/tree.module.mjs +29 -0
- package/esm2022/treeselect/cax-design-system-treeselect.mjs +5 -0
- package/esm2022/treeselect/public_api.mjs +3 -0
- package/esm2022/treeselect/treeselect.interface.mjs +2 -0
- package/esm2022/treeselect/treeselect.mjs +1193 -0
- package/esm2022/treetable/cax-design-system-treetable.mjs +5 -0
- package/esm2022/treetable/public_api.mjs +3 -0
- package/esm2022/treetable/treetable.interface.mjs +2 -0
- package/esm2022/treetable/treetable.mjs +4111 -0
- package/esm2022/tristatecheckbox/cax-design-system-tristatecheckbox.mjs +5 -0
- package/esm2022/tristatecheckbox/public_api.mjs +4 -0
- package/esm2022/tristatecheckbox/tristatecheckbox.interface.mjs +2 -0
- package/esm2022/tristatecheckbox/tristatecheckbox.mjs +215 -0
- package/esm2022/tristatecheckbox/tristatecheckbox.module.mjs +17 -0
- package/esm2022/ts-helpers/cax-design-system-ts-helpers.mjs +5 -0
- package/esm2022/ts-helpers/public_api.mjs +2 -0
- package/esm2022/ts-helpers/ts-helpers.mjs +2 -0
- package/esm2022/utils/cax-design-system-utils.mjs +5 -0
- package/esm2022/utils/objectutils.mjs +258 -0
- package/esm2022/utils/public_api.mjs +5 -0
- package/esm2022/utils/uniquecomponentid.mjs +6 -0
- package/esm2022/utils/zindexutils.mjs +35 -0
- package/esm2022/virtualscroller/cax-design-system-virtualscroller.mjs +5 -0
- package/esm2022/virtualscroller/public_api.mjs +3 -0
- package/esm2022/virtualscroller/virtualscroller.interface.mjs +2 -0
- package/esm2022/virtualscroller/virtualscroller.mjs +215 -0
- package/fesm2022/cax-design-system-accordion.mjs +617 -0
- package/fesm2022/cax-design-system-accordion.mjs.map +1 -0
- package/fesm2022/cax-design-system-animate.mjs +108 -0
- package/fesm2022/cax-design-system-animate.mjs.map +1 -0
- package/fesm2022/cax-design-system-animateonscroll.mjs +192 -0
- package/fesm2022/cax-design-system-animateonscroll.mjs.map +1 -0
- package/fesm2022/cax-design-system-api.mjs +995 -0
- package/fesm2022/cax-design-system-api.mjs.map +1 -0
- package/fesm2022/cax-design-system-autocomplete.mjs +1887 -0
- package/fesm2022/cax-design-system-autocomplete.mjs.map +1 -0
- package/fesm2022/cax-design-system-autofocus.mjs +85 -0
- package/fesm2022/cax-design-system-autofocus.mjs.map +1 -0
- package/fesm2022/cax-design-system-avatar.mjs +124 -0
- package/fesm2022/cax-design-system-avatar.mjs.map +1 -0
- package/fesm2022/cax-design-system-avatargroup.mjs +61 -0
- package/fesm2022/cax-design-system-avatargroup.mjs.map +1 -0
- package/fesm2022/cax-design-system-badge.mjs +270 -0
- package/fesm2022/cax-design-system-badge.mjs.map +1 -0
- package/fesm2022/cax-design-system-baseicon.mjs +52 -0
- package/fesm2022/cax-design-system-baseicon.mjs.map +1 -0
- package/fesm2022/cax-design-system-blockui.mjs +213 -0
- package/fesm2022/cax-design-system-blockui.mjs.map +1 -0
- package/fesm2022/cax-design-system-breadcrumb.mjs +146 -0
- package/fesm2022/cax-design-system-breadcrumb.mjs.map +1 -0
- package/fesm2022/cax-design-system-button.mjs +431 -0
- package/fesm2022/cax-design-system-button.mjs.map +1 -0
- package/fesm2022/cax-design-system-buttongroup.mjs +45 -0
- package/fesm2022/cax-design-system-buttongroup.mjs.map +1 -0
- package/fesm2022/cax-design-system-calendar.mjs +3212 -0
- package/fesm2022/cax-design-system-calendar.mjs.map +1 -0
- package/fesm2022/cax-design-system-card.mjs +141 -0
- package/fesm2022/cax-design-system-card.mjs.map +1 -0
- package/fesm2022/cax-design-system-carousel.mjs +975 -0
- package/fesm2022/cax-design-system-carousel.mjs.map +1 -0
- package/fesm2022/cax-design-system-cascadeselect.mjs +1163 -0
- package/fesm2022/cax-design-system-cascadeselect.mjs.map +1 -0
- package/fesm2022/cax-design-system-chart.mjs +243 -0
- package/fesm2022/cax-design-system-chart.mjs.map +1 -0
- package/fesm2022/cax-design-system-checkbox.mjs +326 -0
- package/fesm2022/cax-design-system-checkbox.mjs.map +1 -0
- package/fesm2022/cax-design-system-chip.mjs +109 -0
- package/fesm2022/cax-design-system-chip.mjs.map +1 -0
- package/fesm2022/cax-design-system-chips.mjs +588 -0
- package/fesm2022/cax-design-system-chips.mjs.map +1 -0
- package/fesm2022/cax-design-system-colorpicker.mjs +836 -0
- package/fesm2022/cax-design-system-colorpicker.mjs.map +1 -0
- package/fesm2022/cax-design-system-confirmdialog.mjs +696 -0
- package/fesm2022/cax-design-system-confirmdialog.mjs.map +1 -0
- package/fesm2022/cax-design-system-confirmpopup.mjs +506 -0
- package/fesm2022/cax-design-system-confirmpopup.mjs.map +1 -0
- package/fesm2022/cax-design-system-contextmenu.mjs +1311 -0
- package/fesm2022/cax-design-system-contextmenu.mjs.map +1 -0
- package/fesm2022/cax-design-system-dataview.mjs +730 -0
- package/fesm2022/cax-design-system-dataview.mjs.map +1 -0
- package/fesm2022/cax-design-system-defer.mjs +118 -0
- package/fesm2022/cax-design-system-defer.mjs.map +1 -0
- package/fesm2022/cax-design-system-dialog.mjs +1175 -0
- package/fesm2022/cax-design-system-dialog.mjs.map +1 -0
- package/fesm2022/cax-design-system-divider.mjs +89 -0
- package/fesm2022/cax-design-system-divider.mjs.map +1 -0
- package/fesm2022/cax-design-system-dock.mjs +438 -0
- package/fesm2022/cax-design-system-dock.mjs.map +1 -0
- package/fesm2022/cax-design-system-dom.mjs +757 -0
- package/fesm2022/cax-design-system-dom.mjs.map +1 -0
- package/fesm2022/cax-design-system-dragdrop.mjs +331 -0
- package/fesm2022/cax-design-system-dragdrop.mjs.map +1 -0
- package/fesm2022/cax-design-system-dropdown.mjs +1684 -0
- package/fesm2022/cax-design-system-dropdown.mjs.map +1 -0
- package/fesm2022/cax-design-system-dynamicdialog.mjs +1133 -0
- package/fesm2022/cax-design-system-dynamicdialog.mjs.map +1 -0
- package/fesm2022/cax-design-system-editor.mjs +399 -0
- package/fesm2022/cax-design-system-editor.mjs.map +1 -0
- package/fesm2022/cax-design-system-fieldset.mjs +304 -0
- package/fesm2022/cax-design-system-fieldset.mjs.map +1 -0
- package/fesm2022/cax-design-system-fileupload.mjs +1195 -0
- package/fesm2022/cax-design-system-fileupload.mjs.map +1 -0
- package/fesm2022/cax-design-system-floatlabel.mjs +51 -0
- package/fesm2022/cax-design-system-floatlabel.mjs.map +1 -0
- package/fesm2022/cax-design-system-focustrap.mjs +110 -0
- package/fesm2022/cax-design-system-focustrap.mjs.map +1 -0
- package/fesm2022/cax-design-system-galleria.mjs +1675 -0
- package/fesm2022/cax-design-system-galleria.mjs.map +1 -0
- package/fesm2022/cax-design-system-iconfield.mjs +51 -0
- package/fesm2022/cax-design-system-iconfield.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-angledoubledown.mjs +42 -0
- package/fesm2022/cax-design-system-icons-angledoubledown.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-angledoubleleft.mjs +42 -0
- package/fesm2022/cax-design-system-icons-angledoubleleft.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-angledoubleright.mjs +42 -0
- package/fesm2022/cax-design-system-icons-angledoubleright.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-angledoubleup.mjs +42 -0
- package/fesm2022/cax-design-system-icons-angledoubleup.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-angledown.mjs +38 -0
- package/fesm2022/cax-design-system-icons-angledown.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-angleleft.mjs +38 -0
- package/fesm2022/cax-design-system-icons-angleleft.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-angleright.mjs +38 -0
- package/fesm2022/cax-design-system-icons-angleright.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-angleup.mjs +38 -0
- package/fesm2022/cax-design-system-icons-angleup.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-arrowdown.mjs +61 -0
- package/fesm2022/cax-design-system-icons-arrowdown.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-arrowdownleft.mjs +38 -0
- package/fesm2022/cax-design-system-icons-arrowdownleft.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-arrowdownright.mjs +38 -0
- package/fesm2022/cax-design-system-icons-arrowdownright.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-arrowleft.mjs +61 -0
- package/fesm2022/cax-design-system-icons-arrowleft.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-arrowright.mjs +42 -0
- package/fesm2022/cax-design-system-icons-arrowright.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-arrowup.mjs +61 -0
- package/fesm2022/cax-design-system-icons-arrowup.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-ban.mjs +57 -0
- package/fesm2022/cax-design-system-icons-ban.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-bars.mjs +42 -0
- package/fesm2022/cax-design-system-icons-bars.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-blank.mjs +32 -0
- package/fesm2022/cax-design-system-icons-blank.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-calendar.mjs +38 -0
- package/fesm2022/cax-design-system-icons-calendar.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-caretleft.mjs +38 -0
- package/fesm2022/cax-design-system-icons-caretleft.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-caretright.mjs +38 -0
- package/fesm2022/cax-design-system-icons-caretright.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-check.mjs +38 -0
- package/fesm2022/cax-design-system-icons-check.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-chevrondown.mjs +38 -0
- package/fesm2022/cax-design-system-icons-chevrondown.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-chevronleft.mjs +38 -0
- package/fesm2022/cax-design-system-icons-chevronleft.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-chevronright.mjs +38 -0
- package/fesm2022/cax-design-system-icons-chevronright.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-chevronup.mjs +38 -0
- package/fesm2022/cax-design-system-icons-chevronup.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-exclamationtriangle.mjs +73 -0
- package/fesm2022/cax-design-system-icons-exclamationtriangle.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-eye.mjs +42 -0
- package/fesm2022/cax-design-system-icons-eye.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-eyeslash.mjs +61 -0
- package/fesm2022/cax-design-system-icons-eyeslash.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-filter.mjs +57 -0
- package/fesm2022/cax-design-system-icons-filter.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-filterslash.mjs +61 -0
- package/fesm2022/cax-design-system-icons-filterslash.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-home.mjs +61 -0
- package/fesm2022/cax-design-system-icons-home.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-infocircle.mjs +61 -0
- package/fesm2022/cax-design-system-icons-infocircle.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-minus.mjs +39 -0
- package/fesm2022/cax-design-system-icons-minus.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-pencil.mjs +57 -0
- package/fesm2022/cax-design-system-icons-pencil.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-plus.mjs +57 -0
- package/fesm2022/cax-design-system-icons-plus.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-refresh.mjs +61 -0
- package/fesm2022/cax-design-system-icons-refresh.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-search.mjs +61 -0
- package/fesm2022/cax-design-system-icons-search.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-searchminus.mjs +61 -0
- package/fesm2022/cax-design-system-icons-searchminus.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-searchplus.mjs +61 -0
- package/fesm2022/cax-design-system-icons-searchplus.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-sortalt.mjs +69 -0
- package/fesm2022/cax-design-system-icons-sortalt.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-sortamountdown.mjs +57 -0
- package/fesm2022/cax-design-system-icons-sortamountdown.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-sortamountupalt.mjs +57 -0
- package/fesm2022/cax-design-system-icons-sortamountupalt.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-spinner.mjs +57 -0
- package/fesm2022/cax-design-system-icons-spinner.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-star.mjs +57 -0
- package/fesm2022/cax-design-system-icons-star.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-starfill.mjs +57 -0
- package/fesm2022/cax-design-system-icons-starfill.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-thlarge.mjs +61 -0
- package/fesm2022/cax-design-system-icons-thlarge.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-times.mjs +38 -0
- package/fesm2022/cax-design-system-icons-times.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-timescircle.mjs +61 -0
- package/fesm2022/cax-design-system-icons-timescircle.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-trash.mjs +61 -0
- package/fesm2022/cax-design-system-icons-trash.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-undo.mjs +61 -0
- package/fesm2022/cax-design-system-icons-undo.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-upload.mjs +61 -0
- package/fesm2022/cax-design-system-icons-upload.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-windowmaximize.mjs +61 -0
- package/fesm2022/cax-design-system-icons-windowmaximize.mjs.map +1 -0
- package/fesm2022/cax-design-system-icons-windowminimize.mjs +61 -0
- package/fesm2022/cax-design-system-icons-windowminimize.mjs.map +1 -0
- package/fesm2022/cax-design-system-image.mjs +438 -0
- package/fesm2022/cax-design-system-image.mjs.map +1 -0
- package/fesm2022/cax-design-system-inplace.mjs +250 -0
- package/fesm2022/cax-design-system-inplace.mjs.map +1 -0
- package/fesm2022/cax-design-system-inputgroup.mjs +77 -0
- package/fesm2022/cax-design-system-inputgroup.mjs.map +1 -0
- package/fesm2022/cax-design-system-inputgroupaddon.mjs +60 -0
- package/fesm2022/cax-design-system-inputgroupaddon.mjs.map +1 -0
- package/fesm2022/cax-design-system-inputicon.mjs +45 -0
- package/fesm2022/cax-design-system-inputicon.mjs.map +1 -0
- package/fesm2022/cax-design-system-inputmask.mjs +921 -0
- package/fesm2022/cax-design-system-inputmask.mjs.map +1 -0
- package/fesm2022/cax-design-system-inputnumber.mjs +1310 -0
- package/fesm2022/cax-design-system-inputnumber.mjs.map +1 -0
- package/fesm2022/cax-design-system-inputotp.mjs +388 -0
- package/fesm2022/cax-design-system-inputotp.mjs.map +1 -0
- package/fesm2022/cax-design-system-inputswitch.mjs +251 -0
- package/fesm2022/cax-design-system-inputswitch.mjs.map +1 -0
- package/fesm2022/cax-design-system-inputtext.mjs +145 -0
- package/fesm2022/cax-design-system-inputtext.mjs.map +1 -0
- package/fesm2022/cax-design-system-inputtextarea.mjs +142 -0
- package/fesm2022/cax-design-system-inputtextarea.mjs.map +1 -0
- package/fesm2022/cax-design-system-keyfilter.mjs +272 -0
- package/fesm2022/cax-design-system-keyfilter.mjs.map +1 -0
- package/fesm2022/cax-design-system-knob.mjs +471 -0
- package/fesm2022/cax-design-system-knob.mjs.map +1 -0
- package/fesm2022/cax-design-system-listbox.mjs +1562 -0
- package/fesm2022/cax-design-system-listbox.mjs.map +1 -0
- package/fesm2022/cax-design-system-logo.mjs +65 -0
- package/fesm2022/cax-design-system-logo.mjs.map +1 -0
- package/fesm2022/cax-design-system-megamenu.mjs +1197 -0
- package/fesm2022/cax-design-system-megamenu.mjs.map +1 -0
- package/fesm2022/cax-design-system-menu.mjs +960 -0
- package/fesm2022/cax-design-system-menu.mjs.map +1 -0
- package/fesm2022/cax-design-system-menubar.mjs +1256 -0
- package/fesm2022/cax-design-system-menubar.mjs.map +1 -0
- package/fesm2022/cax-design-system-message.mjs +119 -0
- package/fesm2022/cax-design-system-message.mjs.map +1 -0
- package/fesm2022/cax-design-system-messages.mjs +303 -0
- package/fesm2022/cax-design-system-messages.mjs.map +1 -0
- package/fesm2022/cax-design-system-metergroup.mjs +287 -0
- package/fesm2022/cax-design-system-metergroup.mjs.map +1 -0
- package/fesm2022/cax-design-system-multiselect.mjs +2532 -0
- package/fesm2022/cax-design-system-multiselect.mjs.map +1 -0
- package/fesm2022/cax-design-system-navigation.mjs +281 -0
- package/fesm2022/cax-design-system-navigation.mjs.map +1 -0
- package/fesm2022/cax-design-system-orderlist.mjs +1000 -0
- package/fesm2022/cax-design-system-orderlist.mjs.map +1 -0
- package/fesm2022/cax-design-system-organizationchart.mjs +423 -0
- package/fesm2022/cax-design-system-organizationchart.mjs.map +1 -0
- package/fesm2022/cax-design-system-overlay.mjs +599 -0
- package/fesm2022/cax-design-system-overlay.mjs.map +1 -0
- package/fesm2022/cax-design-system-overlaypanel.mjs +490 -0
- package/fesm2022/cax-design-system-overlaypanel.mjs.map +1 -0
- package/fesm2022/cax-design-system-paginator.mjs +454 -0
- package/fesm2022/cax-design-system-paginator.mjs.map +1 -0
- package/fesm2022/cax-design-system-panel.mjs +400 -0
- package/fesm2022/cax-design-system-panel.mjs.map +1 -0
- package/fesm2022/cax-design-system-panelmenu.mjs +1283 -0
- package/fesm2022/cax-design-system-panelmenu.mjs.map +1 -0
- package/fesm2022/cax-design-system-password.mjs +1024 -0
- package/fesm2022/cax-design-system-password.mjs.map +1 -0
- package/fesm2022/cax-design-system-picklist.mjs +1916 -0
- package/fesm2022/cax-design-system-picklist.mjs.map +1 -0
- package/fesm2022/cax-design-system-progressbar.mjs +108 -0
- package/fesm2022/cax-design-system-progressbar.mjs.map +1 -0
- package/fesm2022/cax-design-system-progressspinner.mjs +134 -0
- package/fesm2022/cax-design-system-progressspinner.mjs.map +1 -0
- package/fesm2022/cax-design-system-radiobutton.mjs +297 -0
- package/fesm2022/cax-design-system-radiobutton.mjs.map +1 -0
- package/fesm2022/cax-design-system-rating.mjs +395 -0
- package/fesm2022/cax-design-system-rating.mjs.map +1 -0
- package/fesm2022/cax-design-system-ripple.mjs +149 -0
- package/fesm2022/cax-design-system-ripple.mjs.map +1 -0
- package/fesm2022/cax-design-system-scroller.mjs +1001 -0
- package/fesm2022/cax-design-system-scroller.mjs.map +1 -0
- package/fesm2022/cax-design-system-scrollpanel.mjs +508 -0
- package/fesm2022/cax-design-system-scrollpanel.mjs.map +1 -0
- package/fesm2022/cax-design-system-scrolltop.mjs +289 -0
- package/fesm2022/cax-design-system-scrolltop.mjs.map +1 -0
- package/fesm2022/cax-design-system-selectbutton.mjs +385 -0
- package/fesm2022/cax-design-system-selectbutton.mjs.map +1 -0
- package/fesm2022/cax-design-system-sidebar.mjs +439 -0
- package/fesm2022/cax-design-system-sidebar.mjs.map +1 -0
- package/fesm2022/cax-design-system-skeleton.mjs +109 -0
- package/fesm2022/cax-design-system-skeleton.mjs.map +1 -0
- package/fesm2022/cax-design-system-slidemenu.mjs +1508 -0
- package/fesm2022/cax-design-system-slidemenu.mjs.map +1 -0
- package/fesm2022/cax-design-system-slider.mjs +803 -0
- package/fesm2022/cax-design-system-slider.mjs.map +1 -0
- package/fesm2022/cax-design-system-speeddial.mjs +637 -0
- package/fesm2022/cax-design-system-speeddial.mjs.map +1 -0
- package/fesm2022/cax-design-system-spinner.mjs +454 -0
- package/fesm2022/cax-design-system-spinner.mjs.map +1 -0
- package/fesm2022/cax-design-system-splitbutton.mjs +390 -0
- package/fesm2022/cax-design-system-splitbutton.mjs.map +1 -0
- package/fesm2022/cax-design-system-splitter.mjs +569 -0
- package/fesm2022/cax-design-system-splitter.mjs.map +1 -0
- package/fesm2022/cax-design-system-stepper.mjs +684 -0
- package/fesm2022/cax-design-system-stepper.mjs.map +1 -0
- package/fesm2022/cax-design-system-steps.mjs +352 -0
- package/fesm2022/cax-design-system-steps.mjs.map +1 -0
- package/fesm2022/cax-design-system-styleclass.mjs +323 -0
- package/fesm2022/cax-design-system-styleclass.mjs.map +1 -0
- package/fesm2022/cax-design-system-table.mjs +5562 -0
- package/fesm2022/cax-design-system-table.mjs.map +1 -0
- package/fesm2022/cax-design-system-tabmenu.mjs +583 -0
- package/fesm2022/cax-design-system-tabmenu.mjs.map +1 -0
- package/fesm2022/cax-design-system-tabview.mjs +850 -0
- package/fesm2022/cax-design-system-tabview.mjs.map +1 -0
- package/fesm2022/cax-design-system-tag.mjs +117 -0
- package/fesm2022/cax-design-system-tag.mjs.map +1 -0
- package/fesm2022/cax-design-system-terminal.mjs +172 -0
- package/fesm2022/cax-design-system-terminal.mjs.map +1 -0
- package/fesm2022/cax-design-system-tieredmenu.mjs +1314 -0
- package/fesm2022/cax-design-system-tieredmenu.mjs.map +1 -0
- package/fesm2022/cax-design-system-timeline.mjs +174 -0
- package/fesm2022/cax-design-system-timeline.mjs.map +1 -0
- package/fesm2022/cax-design-system-toast.mjs +507 -0
- package/fesm2022/cax-design-system-toast.mjs.map +1 -0
- package/fesm2022/cax-design-system-togglebutton.mjs +281 -0
- package/fesm2022/cax-design-system-togglebutton.mjs.map +1 -0
- package/fesm2022/cax-design-system-toggleswitch.mjs +57 -0
- package/fesm2022/cax-design-system-toggleswitch.mjs.map +1 -0
- package/fesm2022/cax-design-system-toolbar.mjs +118 -0
- package/fesm2022/cax-design-system-toolbar.mjs.map +1 -0
- package/fesm2022/cax-design-system-tooltip.mjs +910 -0
- package/fesm2022/cax-design-system-tooltip.mjs.map +1 -0
- package/fesm2022/cax-design-system-tree.mjs +1527 -0
- package/fesm2022/cax-design-system-tree.mjs.map +1 -0
- package/fesm2022/cax-design-system-treeselect.mjs +1200 -0
- package/fesm2022/cax-design-system-treeselect.mjs.map +1 -0
- package/fesm2022/cax-design-system-treetable.mjs +4118 -0
- package/fesm2022/cax-design-system-treetable.mjs.map +1 -0
- package/fesm2022/cax-design-system-tristatecheckbox.mjs +235 -0
- package/fesm2022/cax-design-system-tristatecheckbox.mjs.map +1 -0
- package/fesm2022/cax-design-system-ts-helpers.mjs +4 -0
- package/fesm2022/cax-design-system-ts-helpers.mjs.map +1 -0
- package/fesm2022/cax-design-system-utils.mjs +305 -0
- package/fesm2022/cax-design-system-utils.mjs.map +1 -0
- package/fesm2022/cax-design-system-virtualscroller.mjs +222 -0
- package/fesm2022/cax-design-system-virtualscroller.mjs.map +1 -0
- package/fesm2022/cax-design-system.mjs +6 -0
- package/fesm2022/cax-design-system.mjs.map +1 -0
- package/fieldset/fieldset.d.ts +93 -0
- package/fieldset/fieldset.interface.d.ts +46 -0
- package/fieldset/index.d.ts +5 -0
- package/fieldset/public_api.d.ts +2 -0
- package/fileupload/fileupload.d.ts +380 -0
- package/fileupload/fileupload.interface.d.ts +226 -0
- package/fileupload/index.d.ts +5 -0
- package/fileupload/public_api.d.ts +2 -0
- package/floatlabel/floatlabel.d.ts +17 -0
- package/floatlabel/index.d.ts +5 -0
- package/floatlabel/public_api.d.ts +1 -0
- package/focustrap/focustrap.d.ts +34 -0
- package/focustrap/index.d.ts +5 -0
- package/focustrap/public_api.d.ts +1 -0
- package/galleria/galleria.d.ts +404 -0
- package/galleria/galleria.interface.d.ts +97 -0
- package/galleria/index.d.ts +5 -0
- package/galleria/public_api.d.ts +2 -0
- package/iconfield/iconfield.d.ts +25 -0
- package/iconfield/index.d.ts +5 -0
- package/iconfield/public_api.d.ts +1 -0
- package/icons/angledoubledown/angledoubledown.d.ts +6 -0
- package/icons/angledoubledown/index.d.ts +5 -0
- package/icons/angledoubledown/public_api.d.ts +1 -0
- package/icons/angledoubleleft/angledoubleleft.d.ts +6 -0
- package/icons/angledoubleleft/index.d.ts +5 -0
- package/icons/angledoubleleft/public_api.d.ts +1 -0
- package/icons/angledoubleright/angledoubleright.d.ts +6 -0
- package/icons/angledoubleright/index.d.ts +5 -0
- package/icons/angledoubleright/public_api.d.ts +1 -0
- package/icons/angledoubleup/angledoubleup.d.ts +6 -0
- package/icons/angledoubleup/index.d.ts +5 -0
- package/icons/angledoubleup/public_api.d.ts +1 -0
- package/icons/angledown/angledown.d.ts +6 -0
- package/icons/angledown/index.d.ts +5 -0
- package/icons/angledown/public_api.d.ts +1 -0
- package/icons/angleleft/angleleft.d.ts +6 -0
- package/icons/angleleft/index.d.ts +5 -0
- package/icons/angleleft/public_api.d.ts +1 -0
- package/icons/angleright/angleright.d.ts +6 -0
- package/icons/angleright/index.d.ts +5 -0
- package/icons/angleright/public_api.d.ts +1 -0
- package/icons/angleup/angleup.d.ts +6 -0
- package/icons/angleup/index.d.ts +5 -0
- package/icons/angleup/public_api.d.ts +1 -0
- package/icons/arrowdown/arrowdown.d.ts +9 -0
- package/icons/arrowdown/index.d.ts +5 -0
- package/icons/arrowdown/public_api.d.ts +1 -0
- package/icons/arrowdownleft/arrowdownleft.d.ts +6 -0
- package/icons/arrowdownleft/index.d.ts +5 -0
- package/icons/arrowdownleft/public_api.d.ts +1 -0
- package/icons/arrowdownright/arrowdownright.d.ts +6 -0
- package/icons/arrowdownright/index.d.ts +5 -0
- package/icons/arrowdownright/public_api.d.ts +1 -0
- package/icons/arrowleft/arrowleft.d.ts +8 -0
- package/icons/arrowleft/index.d.ts +5 -0
- package/icons/arrowleft/public_api.d.ts +1 -0
- package/icons/arrowright/arrowright.d.ts +6 -0
- package/icons/arrowright/index.d.ts +5 -0
- package/icons/arrowright/public_api.d.ts +1 -0
- package/icons/arrowup/arrowup.d.ts +8 -0
- package/icons/arrowup/index.d.ts +5 -0
- package/icons/arrowup/public_api.d.ts +1 -0
- package/icons/ban/ban.d.ts +8 -0
- package/icons/ban/index.d.ts +5 -0
- package/icons/ban/public_api.d.ts +1 -0
- package/icons/bars/bars.d.ts +6 -0
- package/icons/bars/index.d.ts +5 -0
- package/icons/bars/public_api.d.ts +1 -0
- package/icons/blank/blank.d.ts +6 -0
- package/icons/blank/index.d.ts +5 -0
- package/icons/blank/public_api.d.ts +1 -0
- package/icons/calendar/calendar.d.ts +6 -0
- package/icons/calendar/index.d.ts +5 -0
- package/icons/calendar/public_api.d.ts +1 -0
- package/icons/caretleft/caretleft.d.ts +6 -0
- package/icons/caretleft/index.d.ts +5 -0
- package/icons/caretleft/public_api.d.ts +1 -0
- package/icons/caretright/caretright.d.ts +6 -0
- package/icons/caretright/index.d.ts +5 -0
- package/icons/caretright/public_api.d.ts +1 -0
- package/icons/check/check.d.ts +6 -0
- package/icons/check/index.d.ts +5 -0
- package/icons/check/public_api.d.ts +1 -0
- package/icons/chevrondown/chevrondown.d.ts +6 -0
- package/icons/chevrondown/index.d.ts +5 -0
- package/icons/chevrondown/public_api.d.ts +1 -0
- package/icons/chevronleft/chevronleft.d.ts +6 -0
- package/icons/chevronleft/index.d.ts +5 -0
- package/icons/chevronleft/public_api.d.ts +1 -0
- package/icons/chevronright/chevronright.d.ts +6 -0
- package/icons/chevronright/index.d.ts +5 -0
- package/icons/chevronright/public_api.d.ts +1 -0
- package/icons/chevronup/chevronup.d.ts +6 -0
- package/icons/chevronup/index.d.ts +5 -0
- package/icons/chevronup/public_api.d.ts +1 -0
- package/icons/exclamationtriangle/exclamationtriangle.d.ts +9 -0
- package/icons/exclamationtriangle/index.d.ts +5 -0
- package/icons/exclamationtriangle/public_api.d.ts +1 -0
- package/icons/eye/eye.d.ts +6 -0
- package/icons/eye/index.d.ts +5 -0
- package/icons/eye/public_api.d.ts +1 -0
- package/icons/eyeslash/eyeslash.d.ts +8 -0
- package/icons/eyeslash/index.d.ts +5 -0
- package/icons/eyeslash/public_api.d.ts +1 -0
- package/icons/filter/filter.d.ts +8 -0
- package/icons/filter/index.d.ts +5 -0
- package/icons/filter/public_api.d.ts +1 -0
- package/icons/filterslash/filterslash.d.ts +8 -0
- package/icons/filterslash/index.d.ts +5 -0
- package/icons/filterslash/public_api.d.ts +1 -0
- package/icons/home/home.d.ts +8 -0
- package/icons/home/index.d.ts +5 -0
- package/icons/home/public_api.d.ts +1 -0
- package/icons/infocircle/index.d.ts +5 -0
- package/icons/infocircle/infocircle.d.ts +8 -0
- package/icons/infocircle/public_api.d.ts +1 -0
- package/icons/minus/index.d.ts +5 -0
- package/icons/minus/minus.d.ts +6 -0
- package/icons/minus/public_api.d.ts +1 -0
- package/icons/pencil/index.d.ts +5 -0
- package/icons/pencil/pencil.d.ts +8 -0
- package/icons/pencil/public_api.d.ts +1 -0
- package/icons/plus/index.d.ts +5 -0
- package/icons/plus/plus.d.ts +8 -0
- package/icons/plus/public_api.d.ts +1 -0
- package/icons/refresh/index.d.ts +5 -0
- package/icons/refresh/public_api.d.ts +1 -0
- package/icons/refresh/refresh.d.ts +8 -0
- package/icons/search/index.d.ts +5 -0
- package/icons/search/public_api.d.ts +1 -0
- package/icons/search/search.d.ts +8 -0
- package/icons/searchminus/index.d.ts +5 -0
- package/icons/searchminus/public_api.d.ts +1 -0
- package/icons/searchminus/searchminus.d.ts +8 -0
- package/icons/searchplus/index.d.ts +5 -0
- package/icons/searchplus/public_api.d.ts +1 -0
- package/icons/searchplus/searchplus.d.ts +8 -0
- package/icons/sortalt/index.d.ts +5 -0
- package/icons/sortalt/public_api.d.ts +1 -0
- package/icons/sortalt/sortalt.d.ts +8 -0
- package/icons/sortamountdown/index.d.ts +5 -0
- package/icons/sortamountdown/public_api.d.ts +1 -0
- package/icons/sortamountdown/sortamountdown.d.ts +8 -0
- package/icons/sortamountupalt/index.d.ts +5 -0
- package/icons/sortamountupalt/public_api.d.ts +1 -0
- package/icons/sortamountupalt/sortamountupalt.d.ts +8 -0
- package/icons/spinner/index.d.ts +5 -0
- package/icons/spinner/public_api.d.ts +1 -0
- package/icons/spinner/spinner.d.ts +8 -0
- package/icons/star/index.d.ts +5 -0
- package/icons/star/public_api.d.ts +1 -0
- package/icons/star/star.d.ts +8 -0
- package/icons/starfill/index.d.ts +5 -0
- package/icons/starfill/public_api.d.ts +1 -0
- package/icons/starfill/starfill.d.ts +8 -0
- package/icons/thlarge/index.d.ts +5 -0
- package/icons/thlarge/public_api.d.ts +1 -0
- package/icons/thlarge/thlarge.d.ts +8 -0
- package/icons/times/index.d.ts +5 -0
- package/icons/times/public_api.d.ts +1 -0
- package/icons/times/times.d.ts +6 -0
- package/icons/timescircle/index.d.ts +5 -0
- package/icons/timescircle/public_api.d.ts +1 -0
- package/icons/timescircle/timescircle.d.ts +8 -0
- package/icons/trash/index.d.ts +5 -0
- package/icons/trash/public_api.d.ts +1 -0
- package/icons/trash/trash.d.ts +8 -0
- package/icons/undo/index.d.ts +5 -0
- package/icons/undo/public_api.d.ts +1 -0
- package/icons/undo/undo.d.ts +8 -0
- package/icons/upload/index.d.ts +5 -0
- package/icons/upload/public_api.d.ts +1 -0
- package/icons/upload/upload.d.ts +8 -0
- package/icons/windowmaximize/index.d.ts +5 -0
- package/icons/windowmaximize/public_api.d.ts +1 -0
- package/icons/windowmaximize/windowmaximize.d.ts +8 -0
- package/icons/windowminimize/index.d.ts +5 -0
- package/icons/windowminimize/public_api.d.ts +1 -0
- package/icons/windowminimize/windowminimize.d.ts +8 -0
- package/image/image.d.ts +188 -0
- package/image/image.interface.d.ts +31 -0
- package/image/image.module.d.ts +8 -0
- package/image/index.d.ts +5 -0
- package/image/public_api.d.ts +3 -0
- package/index.d.ts +5 -0
- package/inplace/index.d.ts +5 -0
- package/inplace/inplace.d.ts +109 -0
- package/inplace/inplace.interface.d.ts +19 -0
- package/inplace/public_api.d.ts +2 -0
- package/inputgroup/index.d.ts +5 -0
- package/inputgroup/inputgroup.d.ts +28 -0
- package/inputgroup/inputgroup.module.d.ts +15 -0
- package/inputgroup/public_api.d.ts +2 -0
- package/inputgroupaddon/index.d.ts +5 -0
- package/inputgroupaddon/inputgroupaddon.d.ts +21 -0
- package/inputgroupaddon/inputgroupaddon.module.d.ts +14 -0
- package/inputgroupaddon/public_api.d.ts +2 -0
- package/inputicon/index.d.ts +5 -0
- package/inputicon/inputicon.d.ts +21 -0
- package/inputicon/public_api.d.ts +1 -0
- package/inputmask/index.d.ts +5 -0
- package/inputmask/inputmask.d.ts +273 -0
- package/inputmask/inputmask.interface.d.ts +19 -0
- package/inputmask/public_api.d.ts +2 -0
- package/inputnumber/index.d.ts +5 -0
- package/inputnumber/inputnumber.d.ts +392 -0
- package/inputnumber/inputnumber.interface.d.ts +38 -0
- package/inputnumber/inputnumber.module.d.ts +8 -0
- package/inputnumber/public_api.d.ts +3 -0
- package/inputotp/index.d.ts +5 -0
- package/inputotp/inputotp.d.ts +123 -0
- package/inputotp/inputotp.interface.d.ts +65 -0
- package/inputotp/public_api.d.ts +2 -0
- package/inputswitch/index.d.ts +5 -0
- package/inputswitch/inputswitch.d.ts +106 -0
- package/inputswitch/inputswitch.interface.d.ts +15 -0
- package/inputswitch/public_api.d.ts +2 -0
- package/inputtext/index.d.ts +5 -0
- package/inputtext/inputtext.component.d.ts +25 -0
- package/inputtext/inputtext.directive.d.ts +20 -0
- package/inputtext/inputtext.module.d.ts +10 -0
- package/inputtext/public_api.d.ts +3 -0
- package/inputtextarea/index.d.ts +5 -0
- package/inputtextarea/inputtextarea.d.ts +53 -0
- package/inputtextarea/public_api.d.ts +1 -0
- package/keyfilter/index.d.ts +5 -0
- package/keyfilter/keyfilter.d.ts +58 -0
- package/keyfilter/keyfilter.interface.d.ts +5 -0
- package/keyfilter/public_api.d.ts +2 -0
- package/knob/index.d.ts +5 -0
- package/knob/knob.d.ts +178 -0
- package/knob/public_api.d.ts +1 -0
- package/listbox/index.d.ts +5 -0
- package/listbox/listbox.d.ts +463 -0
- package/listbox/listbox.interface.d.ts +156 -0
- package/listbox/public_api.d.ts +2 -0
- package/logo/index.d.ts +5 -0
- package/logo/logo.d.ts +11 -0
- package/logo/logo.module.d.ts +7 -0
- package/logo/public_api.d.ts +2 -0
- package/megamenu/index.d.ts +5 -0
- package/megamenu/megamenu.d.ts +198 -0
- package/megamenu/megamenu.interface.d.ts +31 -0
- package/megamenu/public_api.d.ts +2 -0
- package/menu/index.d.ts +5 -0
- package/menu/menu.d.ts +220 -0
- package/menu/public_api.d.ts +1 -0
- package/menubar/index.d.ts +5 -0
- package/menubar/menubar.d.ts +248 -0
- package/menubar/menubar.interface.d.ts +40 -0
- package/menubar/public_api.d.ts +2 -0
- package/message/index.d.ts +5 -0
- package/message/message.d.ts +52 -0
- package/message/public_api.d.ts +1 -0
- package/messages/index.d.ts +5 -0
- package/messages/messages.d.ts +115 -0
- package/messages/messages.interface.d.ts +18 -0
- package/messages/messages.module.d.ts +8 -0
- package/messages/public_api.d.ts +3 -0
- package/metergroup/index.d.ts +5 -0
- package/metergroup/metergroup.d.ts +101 -0
- package/metergroup/metergroup.interface.d.ts +122 -0
- package/metergroup/public_api.d.ts +2 -0
- package/multiselect/index.d.ts +5 -0
- package/multiselect/multiselect.d.ts +724 -0
- package/multiselect/multiselect.interface.d.ts +247 -0
- package/multiselect/public_api.d.ts +2 -0
- package/navigation/index.d.ts +5 -0
- package/navigation/navigation.d.ts +54 -0
- package/navigation/navigation.interface.d.ts +23 -0
- package/navigation/navigation.module.d.ts +7 -0
- package/navigation/public_api.d.ts +2 -0
- package/orderlist/index.d.ts +5 -0
- package/orderlist/orderlist.d.ts +270 -0
- package/orderlist/orderlist.interface.d.ts +110 -0
- package/orderlist/public_api.d.ts +2 -0
- package/organizationchart/index.d.ts +5 -0
- package/organizationchart/organizationchart.d.ts +132 -0
- package/organizationchart/organizationchart.interface.d.ts +59 -0
- package/organizationchart/public_api.d.ts +2 -0
- package/overlay/index.d.ts +5 -0
- package/overlay/overlay.d.ts +238 -0
- package/overlay/overlay.module.d.ts +8 -0
- package/overlay/public_api.d.ts +2 -0
- package/overlaypanel/index.d.ts +5 -0
- package/overlaypanel/overlaypanel.d.ts +162 -0
- package/overlaypanel/overlaypanel.module.d.ts +8 -0
- package/overlaypanel/public_api.d.ts +2 -0
- package/package.json +1033 -0
- package/paginator/index.d.ts +5 -0
- package/paginator/paginator.d.ts +192 -0
- package/paginator/paginator.interface.d.ts +37 -0
- package/paginator/paginator.module.d.ts +17 -0
- package/paginator/public_api.d.ts +3 -0
- package/panel/index.d.ts +5 -0
- package/panel/panel.d.ts +126 -0
- package/panel/panel.interface.d.ts +58 -0
- package/panel/public_api.d.ts +2 -0
- package/panelmenu/index.d.ts +5 -0
- package/panelmenu/panelmenu.d.ts +225 -0
- package/panelmenu/panelmenu.interface.d.ts +23 -0
- package/panelmenu/public_api.d.ts +2 -0
- package/password/index.d.ts +5 -0
- package/password/password.d.ts +342 -0
- package/password/public_api.d.ts +1 -0
- package/picklist/index.d.ts +5 -0
- package/picklist/picklist.d.ts +453 -0
- package/picklist/picklist.interface.d.ts +242 -0
- package/picklist/public_api.d.ts +2 -0
- package/progressbar/index.d.ts +5 -0
- package/progressbar/progressbar.d.ts +54 -0
- package/progressbar/progressbar.module.d.ts +8 -0
- package/progressbar/public_api.d.ts +2 -0
- package/progressspinner/index.d.ts +5 -0
- package/progressspinner/progressspinner.d.ts +50 -0
- package/progressspinner/progressspinner.module.d.ts +8 -0
- package/progressspinner/public_api.d.ts +2 -0
- package/public_api.d.ts +2 -0
- package/radiobutton/index.d.ts +5 -0
- package/radiobutton/public_api.d.ts +3 -0
- package/radiobutton/radiobutton.d.ts +145 -0
- package/radiobutton/radiobutton.interface.d.ts +15 -0
- package/radiobutton/radiobutton.module.d.ts +7 -0
- package/rating/index.d.ts +5 -0
- package/rating/public_api.d.ts +2 -0
- package/rating/rating.d.ts +146 -0
- package/rating/rating.interface.d.ts +34 -0
- package/resources/cax.min.scss +1 -0
- package/resources/cax.scss +784 -0
- package/resources/components/accordion/accordion.scss +44 -0
- package/resources/components/autocomplete/autocomplete.css +104 -0
- package/resources/components/avatar/avatar.scss +33 -0
- package/resources/components/avatargroup/avatargroup.css +10 -0
- package/resources/components/badge/badge.scss +34 -0
- package/resources/components/blockui/blockui.css +26 -0
- package/resources/components/breadcrumb/breadcrumb.scss +33 -0
- package/resources/components/button/button.scss +117 -0
- package/resources/components/calendar/calendar.scss +177 -0
- package/resources/components/card/card.scss +50 -0
- package/resources/components/carousel/carousel.css +71 -0
- package/resources/components/cascadeselect/cascadeselect.scss +99 -0
- package/resources/components/checkbox/checkbox.scss +30 -0
- package/resources/components/chip/chip.scss +63 -0
- package/resources/components/chips/chips.scss +156 -0
- package/resources/components/colorpicker/colorpicker-images.css +7 -0
- package/resources/components/colorpicker/colorpicker.css +83 -0
- package/resources/components/colorpicker/images/color.png +0 -0
- package/resources/components/colorpicker/images/hue.png +0 -0
- package/resources/components/common/common.scss +182 -0
- package/resources/components/confirmpopup/confirmpopup.css +53 -0
- package/resources/components/contextmenu/contextmenu.css +42 -0
- package/resources/components/dataview/dataview.css +13 -0
- package/resources/components/dialog/dialog.scss +164 -0
- package/resources/components/divider/divider.scss +86 -0
- package/resources/components/dock/dock.css +107 -0
- package/resources/components/dropdown/dropdown.scss +92 -0
- package/resources/components/editor/editor.css +4 -0
- package/resources/components/fieldset/fieldset.css +30 -0
- package/resources/components/fileupload/fileupload.css +47 -0
- package/resources/components/galleria/galleria.css +281 -0
- package/resources/components/iconfield/iconfield.css +5 -0
- package/resources/components/image/image.scss +97 -0
- package/resources/components/inplace/inplace.css +19 -0
- package/resources/components/inputicon/inputicon.css +6 -0
- package/resources/components/inputmask/inputmask.css +12 -0
- package/resources/components/inputnumber/inputnumber.scss +116 -0
- package/resources/components/inputotp/inputotp.css +2 -0
- package/resources/components/inputswitch/inputswitch.css +23 -0
- package/resources/components/inputtext/inputtext.scss +150 -0
- package/resources/components/inputtextarea/inputtextarea.css +10 -0
- package/resources/components/knob/knob.css +20 -0
- package/resources/components/listbox/listbox.css +40 -0
- package/resources/components/logo/logo.scss +0 -0
- package/resources/components/megamenu/megamenu.css +108 -0
- package/resources/components/menu/menu.css +30 -0
- package/resources/components/menubar/menubar.css +81 -0
- package/resources/components/message/message.css +17 -0
- package/resources/components/messages/messages.scss +55 -0
- package/resources/components/multiselect/multiselect.css +116 -0
- package/resources/components/navigation/navigation.scss +217 -0
- package/resources/components/orderlist/orderlist.css +78 -0
- package/resources/components/organizationchart/organizationchart.css +62 -0
- package/resources/components/overlay/overlay.scss +80 -0
- package/resources/components/overlaypanel/overlaypanel.scss +63 -0
- package/resources/components/paginator/paginator.scss +37 -0
- package/resources/components/panel/panel.css +29 -0
- package/resources/components/panelmenu/panelmenu.css +45 -0
- package/resources/components/password/images/password-meter.png +0 -0
- package/resources/components/password/password.css +54 -0
- package/resources/components/picklist/picklist.css +60 -0
- package/resources/components/progressbar/progressbar.scss +122 -0
- package/resources/components/progressspinner/progressspinner.scss +94 -0
- package/resources/components/radiobutton/radiobutton.scss +38 -0
- package/resources/components/rating/rating.css +15 -0
- package/resources/components/ripple/ripple.scss +29 -0
- package/resources/components/scroller/scroller.scss +58 -0
- package/resources/components/scrollpanel/scrollpanel.css +50 -0
- package/resources/components/scrolltop/scrolltop.css +18 -0
- package/resources/components/sidebar/sidebar.scss +114 -0
- package/resources/components/skeleton/skeleton.scss +25 -0
- package/resources/components/slidemenu/slidemenu.css +100 -0
- package/resources/components/slider/slider.css +41 -0
- package/resources/components/speeddial/speeddial.scss +122 -0
- package/resources/components/spinner/spinner.css +63 -0
- package/resources/components/splitbutton/splitbutton.scss +48 -0
- package/resources/components/splitter/splitter.css +70 -0
- package/resources/components/stepper/stepper.css +9 -0
- package/resources/components/steps/steps.css +49 -0
- package/resources/components/table/table.scss +249 -0
- package/resources/components/tabmenu/tabmenu.css +80 -0
- package/resources/components/tabview/tabview.scss +163 -0
- package/resources/components/tag/tag.scss +17 -0
- package/resources/components/terminal/terminal.css +24 -0
- package/resources/components/tieredmenu/tieredmenu.scss +55 -0
- package/resources/components/timeline/timeline.css +114 -0
- package/resources/components/toast/toast.scss +83 -0
- package/resources/components/toggleswitch/toggleswitch.scss +30 -0
- package/resources/components/toolbar/toolbar.css +19 -0
- package/resources/components/tooltip/tooltip.scss +124 -0
- package/resources/components/tree/images/line.gif +0 -0
- package/resources/components/tree/tree.scss +158 -0
- package/resources/components/treeselect/treeselect.css +98 -0
- package/resources/components/treetable/treetable.css +205 -0
- package/resources/images/color.png +0 -0
- package/resources/images/hue.png +0 -0
- package/resources/images/line.gif +0 -0
- package/resources/images/password-meter.png +0 -0
- package/resources/logo/dataX-dark.svg +12 -0
- package/resources/logo/dataX-icon-dark.svg +6 -0
- package/resources/logo/dataX-icon.svg +6 -0
- package/resources/logo/dataX.svg +12 -0
- package/resources/logo/usercard.png +0 -0
- package/resources/themes/cax-theme.scss +9272 -0
- package/ripple/index.d.ts +5 -0
- package/ripple/public_api.d.ts +2 -0
- package/ripple/ripple.d.ts +30 -0
- package/ripple/ripple.module.d.ts +7 -0
- package/scroller/index.d.ts +5 -0
- package/scroller/public_api.d.ts +3 -0
- package/scroller/scroller.d.ts +343 -0
- package/scroller/scroller.interface.d.ts +177 -0
- package/scroller/scroller.module.d.ts +8 -0
- package/scrollpanel/index.d.ts +5 -0
- package/scrollpanel/public_api.d.ts +2 -0
- package/scrollpanel/scrollpanel.d.ts +103 -0
- package/scrollpanel/scrollpanel.interface.d.ts +11 -0
- package/scrolltop/index.d.ts +5 -0
- package/scrolltop/public_api.d.ts +2 -0
- package/scrolltop/scrolltop.d.ts +97 -0
- package/scrolltop/scrolltop.interface.d.ts +18 -0
- package/selectbutton/index.d.ts +5 -0
- package/selectbutton/public_api.d.ts +2 -0
- package/selectbutton/selectbutton.d.ts +136 -0
- package/selectbutton/selectbutton.interface.d.ts +45 -0
- package/sidebar/index.d.ts +5 -0
- package/sidebar/public_api.d.ts +3 -0
- package/sidebar/sidebar.d.ts +158 -0
- package/sidebar/sidebar.interface.d.ts +27 -0
- package/sidebar/sidebar.module.d.ts +12 -0
- package/skeleton/index.d.ts +5 -0
- package/skeleton/public_api.d.ts +2 -0
- package/skeleton/skeleton.d.ts +61 -0
- package/skeleton/skeleton.module.d.ts +8 -0
- package/slidemenu/index.d.ts +5 -0
- package/slidemenu/public_api.d.ts +2 -0
- package/slidemenu/slidemenu.d.ts +322 -0
- package/slidemenu/slidemenu.interface.d.ts +15 -0
- package/slider/index.d.ts +5 -0
- package/slider/public_api.d.ts +2 -0
- package/slider/slider.d.ts +174 -0
- package/slider/slider.interface.d.ts +38 -0
- package/speeddial/index.d.ts +5 -0
- package/speeddial/public_api.d.ts +3 -0
- package/speeddial/speeddial.d.ts +277 -0
- package/speeddial/speeddial.interface.d.ts +28 -0
- package/speeddial/speeddial.module.d.ts +14 -0
- package/spinner/index.d.ts +5 -0
- package/spinner/public_api.d.ts +1 -0
- package/spinner/spinner.d.ts +90 -0
- package/splitbutton/index.d.ts +5 -0
- package/splitbutton/public_api.d.ts +3 -0
- package/splitbutton/splitbutton.d.ts +221 -0
- package/splitbutton/splitbutton.interface.d.ts +30 -0
- package/splitbutton/splitbutton.module.d.ts +12 -0
- package/splitter/index.d.ts +5 -0
- package/splitter/public_api.d.ts +2 -0
- package/splitter/splitter.d.ts +164 -0
- package/splitter/splitter.interface.d.ts +34 -0
- package/stepper/index.d.ts +5 -0
- package/stepper/public_api.d.ts +2 -0
- package/stepper/stepper.d.ts +117 -0
- package/stepper/stepper.interface.d.ts +26 -0
- package/steps/index.d.ts +5 -0
- package/steps/public_api.d.ts +1 -0
- package/steps/steps.d.ts +85 -0
- package/styleclass/index.d.ts +5 -0
- package/styleclass/public_api.d.ts +1 -0
- package/styleclass/styleclass.d.ts +108 -0
- package/table/columnfilter.interface.d.ts +247 -0
- package/table/components/cell-editor/cell-editor.d.ts +20 -0
- package/table/components/column-filter/column-filter.d.ts +256 -0
- package/table/components/column-filter-form-element/column-filter-form-element.d.ts +37 -0
- package/table/components/sort-icon/sort-icon.d.ts +21 -0
- package/table/components/table-body/table-body.d.ts +36 -0
- package/table/components/table-checkbox/table-checkbox.d.ts +31 -0
- package/table/components/table-header-checkbox/table-header-checkbox.d.ts +29 -0
- package/table/components/table-radio-button/table-radio-button.d.ts +29 -0
- package/table/directives/cancel-editable-row.directive.d.ts +11 -0
- package/table/directives/content-menu-row.directive.d.ts +22 -0
- package/table/directives/editable-column.directive.d.ts +40 -0
- package/table/directives/editable-row.directive.d.ts +12 -0
- package/table/directives/frozen-column.directive.d.ts +16 -0
- package/table/directives/init-editable-row.directive.d.ts +11 -0
- package/table/directives/reorderable-column.directive.d.ts +32 -0
- package/table/directives/reorderable-row-handle.directive.d.ts +9 -0
- package/table/directives/reorderable-row.directive.d.ts +34 -0
- package/table/directives/resizable-column.directive.d.ts +35 -0
- package/table/directives/row-group-header.directive.d.ts +9 -0
- package/table/directives/row-toggler.directive.d.ts +13 -0
- package/table/directives/save-editable-row.directive.d.ts +11 -0
- package/table/directives/selectable-row-double-click.directive.d.ts +22 -0
- package/table/directives/selectable-row.directive.d.ts +37 -0
- package/table/directives/sortable-column.directive.d.ts +24 -0
- package/table/index.d.ts +5 -0
- package/table/public_api.d.ts +28 -0
- package/table/table.d.ts +859 -0
- package/table/table.interface.d.ts +623 -0
- package/table/table.module.d.ts +32 -0
- package/table/table.service.d.ts +24 -0
- package/tabmenu/index.d.ts +5 -0
- package/tabmenu/public_api.d.ts +2 -0
- package/tabmenu/tabmenu.d.ts +126 -0
- package/tabmenu/tabmenu.interface.d.ts +32 -0
- package/tabview/index.d.ts +5 -0
- package/tabview/public_api.d.ts +3 -0
- package/tabview/tabview.d.ts +281 -0
- package/tabview/tabview.interface.d.ts +49 -0
- package/tabview/tabview.module.d.ts +14 -0
- package/tag/index.d.ts +5 -0
- package/tag/public_api.d.ts +3 -0
- package/tag/tag.d.ts +61 -0
- package/tag/tag.interface.d.ts +11 -0
- package/tag/tag.module.d.ts +9 -0
- package/terminal/index.d.ts +5 -0
- package/terminal/public_api.d.ts +2 -0
- package/terminal/terminal.d.ts +56 -0
- package/terminal/terminalservice.d.ts +11 -0
- package/tieredmenu/index.d.ts +5 -0
- package/tieredmenu/public_api.d.ts +3 -0
- package/tieredmenu/tieredmenu.d.ts +266 -0
- package/tieredmenu/tieredmenu.interface.d.ts +27 -0
- package/tieredmenu/tiredmenu.module.d.ts +13 -0
- package/timeline/index.d.ts +5 -0
- package/timeline/public_api.d.ts +2 -0
- package/timeline/timeline.d.ts +54 -0
- package/timeline/timeline.interface.d.ts +43 -0
- package/toast/index.d.ts +5 -0
- package/toast/public_api.d.ts +3 -0
- package/toast/toast.d.ts +142 -0
- package/toast/toast.interface.d.ts +52 -0
- package/toast/toast.module.d.ts +9 -0
- package/toast/toastitem.d.ts +37 -0
- package/togglebutton/index.d.ts +5 -0
- package/togglebutton/public_api.d.ts +2 -0
- package/togglebutton/togglebutton.d.ts +115 -0
- package/togglebutton/togglebutton.interface.d.ts +34 -0
- package/toggleswitch/index.d.ts +5 -0
- package/toggleswitch/public_api.d.ts +2 -0
- package/toggleswitch/toggleswitch.d.ts +13 -0
- package/toggleswitch/toggleswitch.module.d.ts +9 -0
- package/toolbar/index.d.ts +5 -0
- package/toolbar/public_api.d.ts +2 -0
- package/toolbar/toolbar.d.ts +43 -0
- package/toolbar/toolbar.interface.d.ts +19 -0
- package/tooltip/index.d.ts +5 -0
- package/tooltip/public_api.d.ts +2 -0
- package/tooltip/tooltip.d.ts +208 -0
- package/tooltip/tooltip.module.d.ts +8 -0
- package/tree/index.d.ts +5 -0
- package/tree/public_api.d.ts +3 -0
- package/tree/tree.d.ts +449 -0
- package/tree/tree.interface.d.ts +193 -0
- package/tree/tree.module.d.ts +19 -0
- package/treeselect/index.d.ts +5 -0
- package/treeselect/public_api.d.ts +2 -0
- package/treeselect/treeselect.d.ts +405 -0
- package/treeselect/treeselect.interface.d.ts +108 -0
- package/treetable/index.d.ts +5 -0
- package/treetable/public_api.d.ts +2 -0
- package/treetable/treetable.d.ts +988 -0
- package/treetable/treetable.interface.d.ts +472 -0
- package/tristatecheckbox/index.d.ts +5 -0
- package/tristatecheckbox/public_api.d.ts +3 -0
- package/tristatecheckbox/tristatecheckbox.d.ts +117 -0
- package/tristatecheckbox/tristatecheckbox.interface.d.ts +30 -0
- package/tristatecheckbox/tristatecheckbox.module.d.ts +8 -0
- package/ts-helpers/index.d.ts +5 -0
- package/ts-helpers/public_api.d.ts +1 -0
- package/ts-helpers/ts-helpers.d.ts +4 -0
- package/utils/index.d.ts +5 -0
- package/utils/objectutils.d.ts +24 -0
- package/utils/public_api.d.ts +4 -0
- package/utils/uniquecomponentid.d.ts +2 -0
- package/utils/zindexutils.d.ts +7 -0
- package/virtualscroller/index.d.ts +5 -0
- package/virtualscroller/public_api.d.ts +2 -0
- package/virtualscroller/virtualscroller.d.ts +89 -0
- package/virtualscroller/virtualscroller.interface.d.ts +72 -0
|
@@ -0,0 +1,4118 @@
|
|
|
1
|
+
import * as i2 from '@angular/common';
|
|
2
|
+
import { DOCUMENT, isPlatformBrowser, CommonModule } from '@angular/common';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Injectable, EventEmitter, booleanAttribute, numberAttribute, Component, ViewEncapsulation, Inject, Input, Output, ViewChild, ContentChildren, PLATFORM_ID, Directive, HostListener, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
|
5
|
+
import * as i1 from 'cax-design-system/api';
|
|
6
|
+
import { CaxTemplate, SharedModule } from 'cax-design-system/api';
|
|
7
|
+
import { DomHandler } from 'cax-design-system/dom';
|
|
8
|
+
import { ArrowDownIcon } from 'cax-design-system/icons/arrowdown';
|
|
9
|
+
import { ArrowUpIcon } from 'cax-design-system/icons/arrowup';
|
|
10
|
+
import { CheckIcon } from 'cax-design-system/icons/check';
|
|
11
|
+
import { ChevronDownIcon } from 'cax-design-system/icons/chevrondown';
|
|
12
|
+
import { ChevronRightIcon } from 'cax-design-system/icons/chevronright';
|
|
13
|
+
import { MinusIcon } from 'cax-design-system/icons/minus';
|
|
14
|
+
import { SortAltIcon } from 'cax-design-system/icons/sortalt';
|
|
15
|
+
import { SortAmountDownIcon } from 'cax-design-system/icons/sortamountdown';
|
|
16
|
+
import { SortAmountUpAltIcon } from 'cax-design-system/icons/sortamountupalt';
|
|
17
|
+
import { SpinnerIcon } from 'cax-design-system/icons/spinner';
|
|
18
|
+
import { PaginatorModule } from 'cax-design-system/paginator';
|
|
19
|
+
import { RippleModule } from 'cax-design-system/ripple';
|
|
20
|
+
import * as i3 from 'cax-design-system/scroller';
|
|
21
|
+
import { ScrollerModule } from 'cax-design-system/scroller';
|
|
22
|
+
import { ObjectUtils } from 'cax-design-system/utils';
|
|
23
|
+
import { Subject } from 'rxjs';
|
|
24
|
+
|
|
25
|
+
class TreeTableService {
|
|
26
|
+
sortSource = new Subject();
|
|
27
|
+
selectionSource = new Subject();
|
|
28
|
+
contextMenuSource = new Subject();
|
|
29
|
+
uiUpdateSource = new Subject();
|
|
30
|
+
totalRecordsSource = new Subject();
|
|
31
|
+
sortSource$ = this.sortSource.asObservable();
|
|
32
|
+
selectionSource$ = this.selectionSource.asObservable();
|
|
33
|
+
contextMenuSource$ = this.contextMenuSource.asObservable();
|
|
34
|
+
uiUpdateSource$ = this.uiUpdateSource.asObservable();
|
|
35
|
+
totalRecordsSource$ = this.totalRecordsSource.asObservable();
|
|
36
|
+
onSort(sortMeta) {
|
|
37
|
+
this.sortSource.next(sortMeta);
|
|
38
|
+
}
|
|
39
|
+
onSelectionChange() {
|
|
40
|
+
this.selectionSource.next(null);
|
|
41
|
+
}
|
|
42
|
+
onContextMenu(node) {
|
|
43
|
+
this.contextMenuSource.next(node);
|
|
44
|
+
}
|
|
45
|
+
onUIUpdate(value) {
|
|
46
|
+
this.uiUpdateSource.next(value);
|
|
47
|
+
}
|
|
48
|
+
onTotalRecordsChange(value) {
|
|
49
|
+
this.totalRecordsSource.next(value);
|
|
50
|
+
}
|
|
51
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TreeTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
52
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TreeTableService });
|
|
53
|
+
}
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TreeTableService, decorators: [{
|
|
55
|
+
type: Injectable
|
|
56
|
+
}] });
|
|
57
|
+
/**
|
|
58
|
+
* TreeTable is used to display hierarchical data in tabular format.
|
|
59
|
+
* @group Components
|
|
60
|
+
*/
|
|
61
|
+
class TreeTable {
|
|
62
|
+
document;
|
|
63
|
+
renderer;
|
|
64
|
+
el;
|
|
65
|
+
cd;
|
|
66
|
+
zone;
|
|
67
|
+
tableService;
|
|
68
|
+
filterService;
|
|
69
|
+
config;
|
|
70
|
+
/**
|
|
71
|
+
* An array of objects to represent dynamic columns.
|
|
72
|
+
* @group Props
|
|
73
|
+
*/
|
|
74
|
+
columns;
|
|
75
|
+
/**
|
|
76
|
+
* Inline style of the component.
|
|
77
|
+
* @group Props
|
|
78
|
+
*/
|
|
79
|
+
style;
|
|
80
|
+
/**
|
|
81
|
+
* Style class of the component.
|
|
82
|
+
* @group Props
|
|
83
|
+
*/
|
|
84
|
+
styleClass;
|
|
85
|
+
/**
|
|
86
|
+
* Inline style of the table.
|
|
87
|
+
* @group Props
|
|
88
|
+
*/
|
|
89
|
+
tableStyle;
|
|
90
|
+
/**
|
|
91
|
+
* Style class of the table.
|
|
92
|
+
* @group Props
|
|
93
|
+
*/
|
|
94
|
+
tableStyleClass;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the cell widths scale according to their content or not.
|
|
97
|
+
* @group Props
|
|
98
|
+
*/
|
|
99
|
+
autoLayout;
|
|
100
|
+
/**
|
|
101
|
+
* Defines if data is loaded and interacted with in lazy manner.
|
|
102
|
+
* @group Props
|
|
103
|
+
*/
|
|
104
|
+
lazy = false;
|
|
105
|
+
/**
|
|
106
|
+
* Whether to call lazy loading on initialization.
|
|
107
|
+
* @group Props
|
|
108
|
+
*/
|
|
109
|
+
lazyLoadOnInit = true;
|
|
110
|
+
/**
|
|
111
|
+
* When specified as true, enables the pagination.
|
|
112
|
+
* @group Props
|
|
113
|
+
*/
|
|
114
|
+
paginator;
|
|
115
|
+
/**
|
|
116
|
+
* Number of rows to display per page.
|
|
117
|
+
* @group Props
|
|
118
|
+
*/
|
|
119
|
+
rows;
|
|
120
|
+
/**
|
|
121
|
+
* Index of the first row to be displayed.
|
|
122
|
+
* @group Props
|
|
123
|
+
*/
|
|
124
|
+
first = 0;
|
|
125
|
+
/**
|
|
126
|
+
* Number of page links to display in paginator.
|
|
127
|
+
* @group Props
|
|
128
|
+
*/
|
|
129
|
+
pageLinks = 5;
|
|
130
|
+
/**
|
|
131
|
+
* Array of integer/object values to display inside rows per page dropdown of paginator
|
|
132
|
+
* @group Props
|
|
133
|
+
*/
|
|
134
|
+
rowsPerPageOptions;
|
|
135
|
+
/**
|
|
136
|
+
* Whether to show it even there is only one page.
|
|
137
|
+
* @group Props
|
|
138
|
+
*/
|
|
139
|
+
alwaysShowPaginator = true;
|
|
140
|
+
/**
|
|
141
|
+
* Position of the paginator.
|
|
142
|
+
* @group Props
|
|
143
|
+
*/
|
|
144
|
+
paginatorPosition = 'bottom';
|
|
145
|
+
/**
|
|
146
|
+
* Custom style class for paginator
|
|
147
|
+
* @group Props
|
|
148
|
+
*/
|
|
149
|
+
paginatorStyleClass;
|
|
150
|
+
/**
|
|
151
|
+
* Target element to attach the paginator dropdown overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
|
|
152
|
+
* @group Props
|
|
153
|
+
*/
|
|
154
|
+
paginatorDropdownAppendTo;
|
|
155
|
+
/**
|
|
156
|
+
* Template of the current page report element. Available placeholders are {currentPage},{totalPages},{rows},{first},{last} and {totalRecords}
|
|
157
|
+
* @group Props
|
|
158
|
+
*/
|
|
159
|
+
currentPageReportTemplate = '{currentPage} of {totalPages}';
|
|
160
|
+
/**
|
|
161
|
+
* Whether to display current page report.
|
|
162
|
+
* @group Props
|
|
163
|
+
*/
|
|
164
|
+
showCurrentPageReport;
|
|
165
|
+
/**
|
|
166
|
+
* Whether to display a dropdown to navigate to any page.
|
|
167
|
+
* @group Props
|
|
168
|
+
*/
|
|
169
|
+
showJumpToPageDropdown;
|
|
170
|
+
/**
|
|
171
|
+
* When enabled, icons are displayed on paginator to go first and last page.
|
|
172
|
+
* @group Props
|
|
173
|
+
*/
|
|
174
|
+
showFirstLastIcon = true;
|
|
175
|
+
/**
|
|
176
|
+
* Whether to show page links.
|
|
177
|
+
* @group Props
|
|
178
|
+
*/
|
|
179
|
+
showPageLinks = true;
|
|
180
|
+
/**
|
|
181
|
+
* Sort order to use when an unsorted column gets sorted by user interaction.
|
|
182
|
+
* @group Props
|
|
183
|
+
*/
|
|
184
|
+
defaultSortOrder = 1;
|
|
185
|
+
/**
|
|
186
|
+
* Defines whether sorting works on single column or on multiple columns.
|
|
187
|
+
* @group Props
|
|
188
|
+
*/
|
|
189
|
+
sortMode = 'single';
|
|
190
|
+
/**
|
|
191
|
+
* When true, resets paginator to first page after sorting.
|
|
192
|
+
* @group Props
|
|
193
|
+
*/
|
|
194
|
+
resetPageOnSort = true;
|
|
195
|
+
/**
|
|
196
|
+
* Whether to use the default sorting or a custom one using sortFunction.
|
|
197
|
+
* @group Props
|
|
198
|
+
*/
|
|
199
|
+
customSort;
|
|
200
|
+
/**
|
|
201
|
+
* Specifies the selection mode, valid values are "single" and "multiple".
|
|
202
|
+
* @group Props
|
|
203
|
+
*/
|
|
204
|
+
selectionMode;
|
|
205
|
+
/**
|
|
206
|
+
* Selected row with a context menu.
|
|
207
|
+
* @group Props
|
|
208
|
+
*/
|
|
209
|
+
contextMenuSelection;
|
|
210
|
+
/**
|
|
211
|
+
* Mode of the contet menu selection.
|
|
212
|
+
* @group Props
|
|
213
|
+
*/
|
|
214
|
+
contextMenuSelectionMode = 'separate';
|
|
215
|
+
/**
|
|
216
|
+
* A property to uniquely identify a record in data.
|
|
217
|
+
* @group Props
|
|
218
|
+
*/
|
|
219
|
+
dataKey;
|
|
220
|
+
/**
|
|
221
|
+
* Defines whether metaKey is should be considered for the selection. On touch enabled devices, metaKeySelection is turned off automatically.
|
|
222
|
+
* @group Props
|
|
223
|
+
*/
|
|
224
|
+
metaKeySelection = false;
|
|
225
|
+
/**
|
|
226
|
+
* Algorithm to define if a row is selected, valid values are "equals" that compares by reference and "deepEquals" that compares all fields.
|
|
227
|
+
* @group Props
|
|
228
|
+
*/
|
|
229
|
+
compareSelectionBy = 'deepEquals';
|
|
230
|
+
/**
|
|
231
|
+
* Adds hover effect to rows without the need for selectionMode.
|
|
232
|
+
* @group Props
|
|
233
|
+
*/
|
|
234
|
+
rowHover;
|
|
235
|
+
/**
|
|
236
|
+
* Displays a loader to indicate data load is in progress.
|
|
237
|
+
* @group Props
|
|
238
|
+
*/
|
|
239
|
+
loading;
|
|
240
|
+
/**
|
|
241
|
+
* The icon to show while indicating data load is in progress.
|
|
242
|
+
* @group Props
|
|
243
|
+
*/
|
|
244
|
+
loadingIcon;
|
|
245
|
+
/**
|
|
246
|
+
* Whether to show the loading mask when loading property is true.
|
|
247
|
+
* @group Props
|
|
248
|
+
*/
|
|
249
|
+
showLoader = true;
|
|
250
|
+
/**
|
|
251
|
+
* When specifies, enables horizontal and/or vertical scrolling.
|
|
252
|
+
* @group Props
|
|
253
|
+
*/
|
|
254
|
+
scrollable;
|
|
255
|
+
/**
|
|
256
|
+
* Height of the scroll viewport in fixed pixels or the "flex" keyword for a dynamic size.
|
|
257
|
+
* @group Props
|
|
258
|
+
*/
|
|
259
|
+
scrollHeight;
|
|
260
|
+
/**
|
|
261
|
+
* Whether the data should be loaded on demand during scroll.
|
|
262
|
+
* @group Props
|
|
263
|
+
*/
|
|
264
|
+
virtualScroll;
|
|
265
|
+
/**
|
|
266
|
+
* Height of a row to use in calculations of virtual scrolling.
|
|
267
|
+
* @group Props
|
|
268
|
+
*/
|
|
269
|
+
virtualScrollItemSize;
|
|
270
|
+
/**
|
|
271
|
+
* Whether to use the scroller feature. The properties of scroller component can be used like an object in it.
|
|
272
|
+
* @group Props
|
|
273
|
+
*/
|
|
274
|
+
virtualScrollOptions;
|
|
275
|
+
/**
|
|
276
|
+
* The delay (in milliseconds) before triggering the virtual scroll. This determines the time gap between the user's scroll action and the actual rendering of the next set of items in the virtual scroll.
|
|
277
|
+
* @group Props
|
|
278
|
+
*/
|
|
279
|
+
virtualScrollDelay = 150;
|
|
280
|
+
/**
|
|
281
|
+
* Width of the frozen columns container.
|
|
282
|
+
* @group Props
|
|
283
|
+
*/
|
|
284
|
+
frozenWidth;
|
|
285
|
+
/**
|
|
286
|
+
* An array of objects to represent dynamic columns that are frozen.
|
|
287
|
+
* @group Props
|
|
288
|
+
*/
|
|
289
|
+
frozenColumns;
|
|
290
|
+
/**
|
|
291
|
+
* When enabled, columns can be resized using drag and drop.
|
|
292
|
+
* @group Props
|
|
293
|
+
*/
|
|
294
|
+
resizableColumns;
|
|
295
|
+
/**
|
|
296
|
+
* Defines whether the overall table width should change on column resize, valid values are "fit" and "expand".
|
|
297
|
+
* @group Props
|
|
298
|
+
*/
|
|
299
|
+
columnResizeMode = 'fit';
|
|
300
|
+
/**
|
|
301
|
+
* When enabled, columns can be reordered using drag and drop.
|
|
302
|
+
* @group Props
|
|
303
|
+
*/
|
|
304
|
+
reorderableColumns;
|
|
305
|
+
/**
|
|
306
|
+
* Local ng-template varilable of a ContextMenu.
|
|
307
|
+
* @group Props
|
|
308
|
+
*/
|
|
309
|
+
contextMenu;
|
|
310
|
+
/**
|
|
311
|
+
* Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for object identity.
|
|
312
|
+
* @group Props
|
|
313
|
+
*/
|
|
314
|
+
rowTrackBy = (index, item) => item;
|
|
315
|
+
/**
|
|
316
|
+
* An array of FilterMetadata objects to provide external filters.
|
|
317
|
+
* @group Props
|
|
318
|
+
*/
|
|
319
|
+
filters = {};
|
|
320
|
+
/**
|
|
321
|
+
* An array of fields as string to use in global filtering.
|
|
322
|
+
* @group Props
|
|
323
|
+
*/
|
|
324
|
+
globalFilterFields;
|
|
325
|
+
/**
|
|
326
|
+
* Delay in milliseconds before filtering the data.
|
|
327
|
+
* @group Props
|
|
328
|
+
*/
|
|
329
|
+
filterDelay = 300;
|
|
330
|
+
/**
|
|
331
|
+
* Mode for filtering valid values are "lenient" and "strict". Default is lenient.
|
|
332
|
+
* @group Props
|
|
333
|
+
*/
|
|
334
|
+
filterMode = 'lenient';
|
|
335
|
+
/**
|
|
336
|
+
* Locale to use in filtering. The default locale is the host environment's current locale.
|
|
337
|
+
* @group Props
|
|
338
|
+
*/
|
|
339
|
+
filterLocale;
|
|
340
|
+
/**
|
|
341
|
+
* Locale to be used in paginator formatting.
|
|
342
|
+
* @group Props
|
|
343
|
+
*/
|
|
344
|
+
paginatorLocale;
|
|
345
|
+
/**
|
|
346
|
+
* Number of total records, defaults to length of value when not defined.
|
|
347
|
+
* @group Props
|
|
348
|
+
*/
|
|
349
|
+
get totalRecords() {
|
|
350
|
+
return this._totalRecords;
|
|
351
|
+
}
|
|
352
|
+
set totalRecords(val) {
|
|
353
|
+
this._totalRecords = val;
|
|
354
|
+
this.tableService.onTotalRecordsChange(this._totalRecords);
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Name of the field to sort data by default.
|
|
358
|
+
* @group Props
|
|
359
|
+
*/
|
|
360
|
+
get sortField() {
|
|
361
|
+
return this._sortField;
|
|
362
|
+
}
|
|
363
|
+
set sortField(val) {
|
|
364
|
+
this._sortField = val;
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* Order to sort when default sorting is enabled.
|
|
368
|
+
* @defaultValue 1
|
|
369
|
+
* @group Props
|
|
370
|
+
*/
|
|
371
|
+
get sortOrder() {
|
|
372
|
+
return this._sortOrder;
|
|
373
|
+
}
|
|
374
|
+
set sortOrder(val) {
|
|
375
|
+
this._sortOrder = val;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* An array of SortMeta objects to sort the data by default in multiple sort mode.
|
|
379
|
+
* @defaultValue null
|
|
380
|
+
* @group Props
|
|
381
|
+
*/
|
|
382
|
+
get multiSortMeta() {
|
|
383
|
+
return this._multiSortMeta;
|
|
384
|
+
}
|
|
385
|
+
set multiSortMeta(val) {
|
|
386
|
+
this._multiSortMeta = val;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Selected row in single mode or an array of values in multiple mode.
|
|
390
|
+
* @defaultValue null
|
|
391
|
+
* @group Props
|
|
392
|
+
*/
|
|
393
|
+
get selection() {
|
|
394
|
+
return this._selection;
|
|
395
|
+
}
|
|
396
|
+
set selection(val) {
|
|
397
|
+
this._selection = val;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* An array of objects to display.
|
|
401
|
+
* @defaultValue null
|
|
402
|
+
* @group Props
|
|
403
|
+
*/
|
|
404
|
+
get value() {
|
|
405
|
+
return this._value;
|
|
406
|
+
}
|
|
407
|
+
set value(val) {
|
|
408
|
+
this._value = val;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Indicates the height of rows to be scrolled.
|
|
412
|
+
* @defaultValue 28
|
|
413
|
+
* @group Props
|
|
414
|
+
* @deprecated use virtualScrollItemSize property instead.
|
|
415
|
+
*/
|
|
416
|
+
get virtualRowHeight() {
|
|
417
|
+
return this._virtualRowHeight;
|
|
418
|
+
}
|
|
419
|
+
set virtualRowHeight(val) {
|
|
420
|
+
this._virtualRowHeight = val;
|
|
421
|
+
console.warn('The virtualRowHeight property is deprecated, use virtualScrollItemSize property instead.');
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* A map of keys to control the selection state.
|
|
425
|
+
* @group Props
|
|
426
|
+
*/
|
|
427
|
+
get selectionKeys() {
|
|
428
|
+
return this._selectionKeys;
|
|
429
|
+
}
|
|
430
|
+
set selectionKeys(value) {
|
|
431
|
+
this._selectionKeys = value;
|
|
432
|
+
this.selectionKeysChange.emit(this._selectionKeys);
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Callback to invoke on selected node change.
|
|
436
|
+
* @param {TreeTableNode} object - Node instance.
|
|
437
|
+
* @group Emits
|
|
438
|
+
*/
|
|
439
|
+
selectionChange = new EventEmitter();
|
|
440
|
+
/**
|
|
441
|
+
* Callback to invoke on context menu selection change.
|
|
442
|
+
* @param {TreeTableNode} object - Node instance.
|
|
443
|
+
* @group Emits
|
|
444
|
+
*/
|
|
445
|
+
contextMenuSelectionChange = new EventEmitter();
|
|
446
|
+
/**
|
|
447
|
+
* Callback to invoke when data is filtered.
|
|
448
|
+
* @param {TreeTableFilterEvent} event - Custom filter event.
|
|
449
|
+
* @group Emits
|
|
450
|
+
*/
|
|
451
|
+
onFilter = new EventEmitter();
|
|
452
|
+
/**
|
|
453
|
+
* Callback to invoke when a node is expanded.
|
|
454
|
+
* @param {TreeTableNodeExpandEvent} event - Node expand event.
|
|
455
|
+
* @group Emits
|
|
456
|
+
*/
|
|
457
|
+
onNodeExpand = new EventEmitter();
|
|
458
|
+
/**
|
|
459
|
+
* Callback to invoke when a node is collapsed.
|
|
460
|
+
* @param {TreeTableNodeCollapseEvent} event - Node collapse event.
|
|
461
|
+
* @group Emits
|
|
462
|
+
*/
|
|
463
|
+
onNodeCollapse = new EventEmitter();
|
|
464
|
+
/**
|
|
465
|
+
* Callback to invoke when pagination occurs.
|
|
466
|
+
* @param {TreeTablePaginatorState} object - Paginator state.
|
|
467
|
+
* @group Emits
|
|
468
|
+
*/
|
|
469
|
+
onPage = new EventEmitter();
|
|
470
|
+
/**
|
|
471
|
+
* Callback to invoke when a column gets sorted.
|
|
472
|
+
* @param {Object} Object - Sort data.
|
|
473
|
+
* @group Emits
|
|
474
|
+
*/
|
|
475
|
+
onSort = new EventEmitter();
|
|
476
|
+
/**
|
|
477
|
+
* Callback to invoke when paging, sorting or filtering happens in lazy mode.
|
|
478
|
+
* @param {TreeTableLazyLoadEvent} event - Custom lazy load event.
|
|
479
|
+
* @group Emits
|
|
480
|
+
*/
|
|
481
|
+
onLazyLoad = new EventEmitter();
|
|
482
|
+
/**
|
|
483
|
+
* An event emitter to invoke on custom sorting, refer to sorting section for details.
|
|
484
|
+
* @param {TreeTableSortEvent} event - Custom sort event.
|
|
485
|
+
* @group Emits
|
|
486
|
+
*/
|
|
487
|
+
sortFunction = new EventEmitter();
|
|
488
|
+
/**
|
|
489
|
+
* Callback to invoke when a column is resized.
|
|
490
|
+
* @param {TreeTableColResizeEvent} event - Custom column resize event.
|
|
491
|
+
* @group Emits
|
|
492
|
+
*/
|
|
493
|
+
onColResize = new EventEmitter();
|
|
494
|
+
/**
|
|
495
|
+
* Callback to invoke when a column is reordered.
|
|
496
|
+
* @param {TreeTableColumnReorderEvent} event - Custom column reorder.
|
|
497
|
+
* @group Emits
|
|
498
|
+
*/
|
|
499
|
+
onColReorder = new EventEmitter();
|
|
500
|
+
/**
|
|
501
|
+
* Callback to invoke when a node is selected.
|
|
502
|
+
* @param {TreeTableNode} object - Node instance.
|
|
503
|
+
* @group Emits
|
|
504
|
+
*/
|
|
505
|
+
onNodeSelect = new EventEmitter();
|
|
506
|
+
/**
|
|
507
|
+
* Callback to invoke when a node is unselected.
|
|
508
|
+
* @param {TreeTableNodeUnSelectEvent} event - Custom node unselect event.
|
|
509
|
+
* @group Emits
|
|
510
|
+
*/
|
|
511
|
+
onNodeUnselect = new EventEmitter();
|
|
512
|
+
/**
|
|
513
|
+
* Callback to invoke when a node is selected with right click.
|
|
514
|
+
* @param {TreeTableContextMenuSelectEvent} event - Custom context menu select event.
|
|
515
|
+
* @group Emits
|
|
516
|
+
*/
|
|
517
|
+
onContextMenuSelect = new EventEmitter();
|
|
518
|
+
/**
|
|
519
|
+
* Callback to invoke when state of header checkbox changes.
|
|
520
|
+
* @param {TreeTableHeaderCheckboxToggleEvent} event - Custom checkbox toggle event.
|
|
521
|
+
* @group Emits
|
|
522
|
+
*/
|
|
523
|
+
onHeaderCheckboxToggle = new EventEmitter();
|
|
524
|
+
/**
|
|
525
|
+
* Callback to invoke when a cell switches to edit mode.
|
|
526
|
+
* @param {TreeTableEditEvent} event - Custom edit event.
|
|
527
|
+
* @group Emits
|
|
528
|
+
*/
|
|
529
|
+
onEditInit = new EventEmitter();
|
|
530
|
+
/**
|
|
531
|
+
* Callback to invoke when cell edit is completed.
|
|
532
|
+
* @param {TreeTableEditEvent} event - Custom edit event.
|
|
533
|
+
* @group Emits
|
|
534
|
+
*/
|
|
535
|
+
onEditComplete = new EventEmitter();
|
|
536
|
+
/**
|
|
537
|
+
* Callback to invoke when cell edit is cancelled with escape key.
|
|
538
|
+
* @param {TreeTableEditEvent} event - Custom edit event.
|
|
539
|
+
* @group Emits
|
|
540
|
+
*/
|
|
541
|
+
onEditCancel = new EventEmitter();
|
|
542
|
+
/**
|
|
543
|
+
* Callback to invoke when selectionKeys are changed.
|
|
544
|
+
* @param {Object} object - updated value of the selectionKeys.
|
|
545
|
+
* @group Emits
|
|
546
|
+
*/
|
|
547
|
+
selectionKeysChange = new EventEmitter();
|
|
548
|
+
containerViewChild;
|
|
549
|
+
resizeHelperViewChild;
|
|
550
|
+
reorderIndicatorUpViewChild;
|
|
551
|
+
reorderIndicatorDownViewChild;
|
|
552
|
+
tableViewChild;
|
|
553
|
+
scrollableViewChild;
|
|
554
|
+
scrollableFrozenViewChild;
|
|
555
|
+
templates;
|
|
556
|
+
_value = [];
|
|
557
|
+
_virtualRowHeight = 28;
|
|
558
|
+
_selectionKeys;
|
|
559
|
+
serializedValue;
|
|
560
|
+
_totalRecords = 0;
|
|
561
|
+
_multiSortMeta;
|
|
562
|
+
_sortField;
|
|
563
|
+
_sortOrder = 1;
|
|
564
|
+
filteredNodes;
|
|
565
|
+
filterTimeout;
|
|
566
|
+
colGroupTemplate;
|
|
567
|
+
captionTemplate;
|
|
568
|
+
headerTemplate;
|
|
569
|
+
bodyTemplate;
|
|
570
|
+
footerTemplate;
|
|
571
|
+
summaryTemplate;
|
|
572
|
+
emptyMessageTemplate;
|
|
573
|
+
paginatorLeftTemplate;
|
|
574
|
+
paginatorRightTemplate;
|
|
575
|
+
paginatorDropdownItemTemplate;
|
|
576
|
+
frozenHeaderTemplate;
|
|
577
|
+
frozenBodyTemplate;
|
|
578
|
+
frozenFooterTemplate;
|
|
579
|
+
frozenColGroupTemplate;
|
|
580
|
+
loadingIconTemplate;
|
|
581
|
+
reorderIndicatorUpIconTemplate;
|
|
582
|
+
reorderIndicatorDownIconTemplate;
|
|
583
|
+
sortIconTemplate;
|
|
584
|
+
checkboxIconTemplate;
|
|
585
|
+
headerCheckboxIconTemplate;
|
|
586
|
+
togglerIconTemplate;
|
|
587
|
+
paginatorFirstPageLinkIconTemplate;
|
|
588
|
+
paginatorLastPageLinkIconTemplate;
|
|
589
|
+
paginatorPreviousPageLinkIconTemplate;
|
|
590
|
+
paginatorNextPageLinkIconTemplate;
|
|
591
|
+
lastResizerHelperX;
|
|
592
|
+
reorderIconWidth;
|
|
593
|
+
reorderIconHeight;
|
|
594
|
+
draggedColumn;
|
|
595
|
+
dropPosition;
|
|
596
|
+
preventSelectionSetterPropagation;
|
|
597
|
+
_selection;
|
|
598
|
+
selectedKeys = {};
|
|
599
|
+
rowTouched;
|
|
600
|
+
editingCell;
|
|
601
|
+
editingCellData;
|
|
602
|
+
editingCellField;
|
|
603
|
+
editingCellClick;
|
|
604
|
+
documentEditListener;
|
|
605
|
+
initialized;
|
|
606
|
+
toggleRowIndex;
|
|
607
|
+
ngOnInit() {
|
|
608
|
+
if (this.lazy && this.lazyLoadOnInit && !this.virtualScroll) {
|
|
609
|
+
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
610
|
+
}
|
|
611
|
+
this.initialized = true;
|
|
612
|
+
}
|
|
613
|
+
ngAfterContentInit() {
|
|
614
|
+
this.templates.forEach((item) => {
|
|
615
|
+
switch (item.getType()) {
|
|
616
|
+
case 'caption':
|
|
617
|
+
this.captionTemplate = item.template;
|
|
618
|
+
break;
|
|
619
|
+
case 'header':
|
|
620
|
+
this.headerTemplate = item.template;
|
|
621
|
+
break;
|
|
622
|
+
case 'body':
|
|
623
|
+
this.bodyTemplate = item.template;
|
|
624
|
+
break;
|
|
625
|
+
case 'footer':
|
|
626
|
+
this.footerTemplate = item.template;
|
|
627
|
+
break;
|
|
628
|
+
case 'summary':
|
|
629
|
+
this.summaryTemplate = item.template;
|
|
630
|
+
break;
|
|
631
|
+
case 'colgroup':
|
|
632
|
+
this.colGroupTemplate = item.template;
|
|
633
|
+
break;
|
|
634
|
+
case 'emptymessage':
|
|
635
|
+
this.emptyMessageTemplate = item.template;
|
|
636
|
+
break;
|
|
637
|
+
case 'paginatorleft':
|
|
638
|
+
this.paginatorLeftTemplate = item.template;
|
|
639
|
+
break;
|
|
640
|
+
case 'paginatorright':
|
|
641
|
+
this.paginatorRightTemplate = item.template;
|
|
642
|
+
break;
|
|
643
|
+
case 'paginatordropdownitem':
|
|
644
|
+
this.paginatorDropdownItemTemplate = item.template;
|
|
645
|
+
break;
|
|
646
|
+
case 'frozenheader':
|
|
647
|
+
this.frozenHeaderTemplate = item.template;
|
|
648
|
+
break;
|
|
649
|
+
case 'frozenbody':
|
|
650
|
+
this.frozenBodyTemplate = item.template;
|
|
651
|
+
break;
|
|
652
|
+
case 'frozenfooter':
|
|
653
|
+
this.frozenFooterTemplate = item.template;
|
|
654
|
+
break;
|
|
655
|
+
case 'frozencolgroup':
|
|
656
|
+
this.frozenColGroupTemplate = item.template;
|
|
657
|
+
break;
|
|
658
|
+
case 'loadingicon':
|
|
659
|
+
this.loadingIconTemplate = item.template;
|
|
660
|
+
break;
|
|
661
|
+
case 'reorderindicatorupicon':
|
|
662
|
+
this.reorderIndicatorUpIconTemplate = item.template;
|
|
663
|
+
break;
|
|
664
|
+
case 'reorderindicatordownicon':
|
|
665
|
+
this.reorderIndicatorDownIconTemplate = item.template;
|
|
666
|
+
break;
|
|
667
|
+
case 'sorticon':
|
|
668
|
+
this.sortIconTemplate = item.template;
|
|
669
|
+
break;
|
|
670
|
+
case 'checkboxicon':
|
|
671
|
+
this.checkboxIconTemplate = item.template;
|
|
672
|
+
break;
|
|
673
|
+
case 'headercheckboxicon':
|
|
674
|
+
this.headerCheckboxIconTemplate = item.template;
|
|
675
|
+
break;
|
|
676
|
+
case 'togglericon':
|
|
677
|
+
this.togglerIconTemplate = item.template;
|
|
678
|
+
break;
|
|
679
|
+
case 'paginatorfirstpagelinkicon':
|
|
680
|
+
this.paginatorFirstPageLinkIconTemplate = item.template;
|
|
681
|
+
break;
|
|
682
|
+
case 'paginatorlastpagelinkicon':
|
|
683
|
+
this.paginatorLastPageLinkIconTemplate = item.template;
|
|
684
|
+
break;
|
|
685
|
+
case 'paginatorpreviouspagelinkicon':
|
|
686
|
+
this.paginatorPreviousPageLinkIconTemplate = item.template;
|
|
687
|
+
break;
|
|
688
|
+
case 'paginatornextpagelinkicon':
|
|
689
|
+
this.paginatorNextPageLinkIconTemplate = item.template;
|
|
690
|
+
break;
|
|
691
|
+
}
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
constructor(document, renderer, el, cd, zone, tableService, filterService, config) {
|
|
695
|
+
this.document = document;
|
|
696
|
+
this.renderer = renderer;
|
|
697
|
+
this.el = el;
|
|
698
|
+
this.cd = cd;
|
|
699
|
+
this.zone = zone;
|
|
700
|
+
this.tableService = tableService;
|
|
701
|
+
this.filterService = filterService;
|
|
702
|
+
this.config = config;
|
|
703
|
+
}
|
|
704
|
+
ngOnChanges(simpleChange) {
|
|
705
|
+
if (simpleChange.value) {
|
|
706
|
+
this._value = simpleChange.value.currentValue;
|
|
707
|
+
if (!this.lazy) {
|
|
708
|
+
this.totalRecords = this._value ? this._value.length : 0;
|
|
709
|
+
if (this.sortMode == 'single' && this.sortField)
|
|
710
|
+
this.sortSingle();
|
|
711
|
+
else if (this.sortMode == 'multiple' && this.multiSortMeta)
|
|
712
|
+
this.sortMultiple();
|
|
713
|
+
else if (this.hasFilter())
|
|
714
|
+
//sort already filters
|
|
715
|
+
this._filter();
|
|
716
|
+
}
|
|
717
|
+
this.updateSerializedValue();
|
|
718
|
+
this.tableService.onUIUpdate(this.value);
|
|
719
|
+
}
|
|
720
|
+
if (simpleChange.sortField) {
|
|
721
|
+
this._sortField = simpleChange.sortField.currentValue;
|
|
722
|
+
//avoid triggering lazy load prior to lazy initialization at onInit
|
|
723
|
+
if (!this.lazy || this.initialized) {
|
|
724
|
+
if (this.sortMode === 'single') {
|
|
725
|
+
this.sortSingle();
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
if (simpleChange.sortOrder) {
|
|
730
|
+
this._sortOrder = simpleChange.sortOrder.currentValue;
|
|
731
|
+
//avoid triggering lazy load prior to lazy initialization at onInit
|
|
732
|
+
if (!this.lazy || this.initialized) {
|
|
733
|
+
if (this.sortMode === 'single') {
|
|
734
|
+
this.sortSingle();
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
if (simpleChange.multiSortMeta) {
|
|
739
|
+
this._multiSortMeta = simpleChange.multiSortMeta.currentValue;
|
|
740
|
+
if (this.sortMode === 'multiple') {
|
|
741
|
+
this.sortMultiple();
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
if (simpleChange.selection) {
|
|
745
|
+
this._selection = simpleChange.selection.currentValue;
|
|
746
|
+
if (!this.preventSelectionSetterPropagation) {
|
|
747
|
+
this.updateselectedKeys();
|
|
748
|
+
this.tableService.onSelectionChange();
|
|
749
|
+
}
|
|
750
|
+
this.preventSelectionSetterPropagation = false;
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
updateSerializedValue() {
|
|
754
|
+
this.serializedValue = [];
|
|
755
|
+
if (this.paginator)
|
|
756
|
+
this.serializePageNodes();
|
|
757
|
+
else
|
|
758
|
+
this.serializeNodes(null, this.filteredNodes || this.value, 0, true);
|
|
759
|
+
}
|
|
760
|
+
serializeNodes(parent, nodes, level, visible) {
|
|
761
|
+
if (nodes && nodes.length) {
|
|
762
|
+
for (let node of nodes) {
|
|
763
|
+
node.parent = parent;
|
|
764
|
+
const rowNode = {
|
|
765
|
+
node: node,
|
|
766
|
+
parent: parent,
|
|
767
|
+
level: level,
|
|
768
|
+
visible: visible && (parent ? parent.expanded : true)
|
|
769
|
+
};
|
|
770
|
+
this.serializedValue.push(rowNode);
|
|
771
|
+
if (rowNode.visible && node.expanded) {
|
|
772
|
+
this.serializeNodes(node, node.children, level + 1, rowNode.visible);
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
serializePageNodes() {
|
|
778
|
+
let data = this.filteredNodes || this.value;
|
|
779
|
+
this.serializedValue = [];
|
|
780
|
+
if (data && data.length) {
|
|
781
|
+
const first = this.lazy ? 0 : this.first;
|
|
782
|
+
for (let i = first; i < first + this.rows; i++) {
|
|
783
|
+
let node = data[i];
|
|
784
|
+
if (node) {
|
|
785
|
+
this.serializedValue.push({
|
|
786
|
+
node: node,
|
|
787
|
+
parent: null,
|
|
788
|
+
level: 0,
|
|
789
|
+
visible: true
|
|
790
|
+
});
|
|
791
|
+
this.serializeNodes(node, node.children, 1, true);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
updateselectedKeys() {
|
|
797
|
+
if (this.dataKey && this._selection) {
|
|
798
|
+
this.selectedKeys = {};
|
|
799
|
+
if (Array.isArray(this._selection)) {
|
|
800
|
+
for (let node of this._selection) {
|
|
801
|
+
this.selectedKeys[String(ObjectUtils.resolveFieldData(node.data, this.dataKey))] = 1;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
else {
|
|
805
|
+
this.selectedKeys[String(ObjectUtils.resolveFieldData(this._selection.data, this.dataKey))] = 1;
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
onPageChange(event) {
|
|
810
|
+
this.first = event.first;
|
|
811
|
+
this.rows = event.rows;
|
|
812
|
+
if (this.lazy)
|
|
813
|
+
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
814
|
+
else
|
|
815
|
+
this.serializePageNodes();
|
|
816
|
+
this.onPage.emit({
|
|
817
|
+
first: this.first,
|
|
818
|
+
rows: this.rows
|
|
819
|
+
});
|
|
820
|
+
this.tableService.onUIUpdate(this.value);
|
|
821
|
+
if (this.scrollable) {
|
|
822
|
+
this.resetScrollTop();
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
sort(event) {
|
|
826
|
+
let originalEvent = event.originalEvent;
|
|
827
|
+
if (this.sortMode === 'single') {
|
|
828
|
+
this._sortOrder = this.sortField === event.field ? this.sortOrder * -1 : this.defaultSortOrder;
|
|
829
|
+
this._sortField = event.field;
|
|
830
|
+
this.sortSingle();
|
|
831
|
+
if (this.resetPageOnSort && this.scrollable) {
|
|
832
|
+
this.resetScrollTop();
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
if (this.sortMode === 'multiple') {
|
|
836
|
+
let metaKey = originalEvent.metaKey || originalEvent.ctrlKey;
|
|
837
|
+
let sortMeta = this.getSortMeta(event.field);
|
|
838
|
+
if (sortMeta) {
|
|
839
|
+
if (!metaKey) {
|
|
840
|
+
this._multiSortMeta = [{ field: event.field, order: sortMeta.order * -1 }];
|
|
841
|
+
if (this.resetPageOnSort && this.scrollable) {
|
|
842
|
+
this.resetScrollTop();
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
else {
|
|
846
|
+
sortMeta.order = sortMeta.order * -1;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
else {
|
|
850
|
+
if (!metaKey || !this.multiSortMeta) {
|
|
851
|
+
this._multiSortMeta = [];
|
|
852
|
+
if (this.resetPageOnSort && this.scrollable) {
|
|
853
|
+
this.resetScrollTop();
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
this.multiSortMeta.push({ field: event.field, order: this.defaultSortOrder });
|
|
857
|
+
}
|
|
858
|
+
this.sortMultiple();
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
sortSingle() {
|
|
862
|
+
if (this.sortField && this.sortOrder) {
|
|
863
|
+
if (this.lazy) {
|
|
864
|
+
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
865
|
+
}
|
|
866
|
+
else if (this.value) {
|
|
867
|
+
this.sortNodes(this.value);
|
|
868
|
+
if (this.hasFilter()) {
|
|
869
|
+
this._filter();
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
let sortMeta = {
|
|
873
|
+
field: this.sortField,
|
|
874
|
+
order: this.sortOrder
|
|
875
|
+
};
|
|
876
|
+
this.onSort.emit(sortMeta);
|
|
877
|
+
this.tableService.onSort(sortMeta);
|
|
878
|
+
this.updateSerializedValue();
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
sortNodes(nodes) {
|
|
882
|
+
if (!nodes || nodes.length === 0) {
|
|
883
|
+
return;
|
|
884
|
+
}
|
|
885
|
+
if (this.customSort) {
|
|
886
|
+
this.sortFunction.emit({
|
|
887
|
+
data: nodes,
|
|
888
|
+
mode: this.sortMode,
|
|
889
|
+
field: this.sortField,
|
|
890
|
+
order: this.sortOrder
|
|
891
|
+
});
|
|
892
|
+
}
|
|
893
|
+
else {
|
|
894
|
+
nodes.sort((node1, node2) => {
|
|
895
|
+
let value1 = ObjectUtils.resolveFieldData(node1.data, this.sortField);
|
|
896
|
+
let value2 = ObjectUtils.resolveFieldData(node2.data, this.sortField);
|
|
897
|
+
let result = null;
|
|
898
|
+
if (value1 == null && value2 != null)
|
|
899
|
+
result = -1;
|
|
900
|
+
else if (value1 != null && value2 == null)
|
|
901
|
+
result = 1;
|
|
902
|
+
else if (value1 == null && value2 == null)
|
|
903
|
+
result = 0;
|
|
904
|
+
else if (typeof value1 === 'string' && typeof value2 === 'string')
|
|
905
|
+
result = value1.localeCompare(value2, undefined, { numeric: true });
|
|
906
|
+
else
|
|
907
|
+
result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
908
|
+
return this.sortOrder * result;
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
for (let node of nodes) {
|
|
912
|
+
this.sortNodes(node.children);
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
sortMultiple() {
|
|
916
|
+
if (this.multiSortMeta) {
|
|
917
|
+
if (this.lazy) {
|
|
918
|
+
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
919
|
+
}
|
|
920
|
+
else if (this.value) {
|
|
921
|
+
this.sortMultipleNodes(this.value);
|
|
922
|
+
if (this.hasFilter()) {
|
|
923
|
+
this._filter();
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
this.onSort.emit({
|
|
927
|
+
multisortmeta: this.multiSortMeta
|
|
928
|
+
});
|
|
929
|
+
this.updateSerializedValue();
|
|
930
|
+
this.tableService.onSort(this.multiSortMeta);
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
sortMultipleNodes(nodes) {
|
|
934
|
+
if (!nodes || nodes.length === 0) {
|
|
935
|
+
return;
|
|
936
|
+
}
|
|
937
|
+
if (this.customSort) {
|
|
938
|
+
this.sortFunction.emit({
|
|
939
|
+
data: this.value,
|
|
940
|
+
mode: this.sortMode,
|
|
941
|
+
multiSortMeta: this.multiSortMeta
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
else {
|
|
945
|
+
nodes.sort((node1, node2) => {
|
|
946
|
+
return this.multisortField(node1, node2, this.multiSortMeta, 0);
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
for (let node of nodes) {
|
|
950
|
+
this.sortMultipleNodes(node.children);
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
multisortField(node1, node2, multiSortMeta, index) {
|
|
954
|
+
if (ObjectUtils.isEmpty(this.multiSortMeta) || ObjectUtils.isEmpty(multiSortMeta[index])) {
|
|
955
|
+
return 0;
|
|
956
|
+
}
|
|
957
|
+
let value1 = ObjectUtils.resolveFieldData(node1.data, multiSortMeta[index].field);
|
|
958
|
+
let value2 = ObjectUtils.resolveFieldData(node2.data, multiSortMeta[index].field);
|
|
959
|
+
let result = null;
|
|
960
|
+
if (value1 == null && value2 != null)
|
|
961
|
+
result = -1;
|
|
962
|
+
else if (value1 != null && value2 == null)
|
|
963
|
+
result = 1;
|
|
964
|
+
else if (value1 == null && value2 == null)
|
|
965
|
+
result = 0;
|
|
966
|
+
if (typeof value1 == 'string' || value1 instanceof String) {
|
|
967
|
+
if (value1.localeCompare && value1 != value2) {
|
|
968
|
+
return multiSortMeta[index].order * value1.localeCompare(value2, undefined, { numeric: true });
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
else {
|
|
972
|
+
result = value1 < value2 ? -1 : 1;
|
|
973
|
+
}
|
|
974
|
+
if (value1 == value2) {
|
|
975
|
+
return multiSortMeta.length - 1 > index ? this.multisortField(node1, node2, multiSortMeta, index + 1) : 0;
|
|
976
|
+
}
|
|
977
|
+
return multiSortMeta[index].order * result;
|
|
978
|
+
}
|
|
979
|
+
getSortMeta(field) {
|
|
980
|
+
if (this.multiSortMeta && this.multiSortMeta.length) {
|
|
981
|
+
for (let i = 0; i < this.multiSortMeta.length; i++) {
|
|
982
|
+
if (this.multiSortMeta[i].field === field) {
|
|
983
|
+
return this.multiSortMeta[i];
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
return null;
|
|
988
|
+
}
|
|
989
|
+
isSorted(field) {
|
|
990
|
+
if (this.sortMode === 'single') {
|
|
991
|
+
return this.sortField && this.sortField === field;
|
|
992
|
+
}
|
|
993
|
+
else if (this.sortMode === 'multiple') {
|
|
994
|
+
let sorted = false;
|
|
995
|
+
if (this.multiSortMeta) {
|
|
996
|
+
for (let i = 0; i < this.multiSortMeta.length; i++) {
|
|
997
|
+
if (this.multiSortMeta[i].field == field) {
|
|
998
|
+
sorted = true;
|
|
999
|
+
break;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
return sorted;
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
createLazyLoadMetadata() {
|
|
1007
|
+
return {
|
|
1008
|
+
first: this.first,
|
|
1009
|
+
rows: this.rows,
|
|
1010
|
+
sortField: this.sortField,
|
|
1011
|
+
sortOrder: this.sortOrder,
|
|
1012
|
+
filters: this.filters,
|
|
1013
|
+
globalFilter: this.filters && this.filters['global'] ? this.filters['global'].value : null,
|
|
1014
|
+
multiSortMeta: this.multiSortMeta,
|
|
1015
|
+
forceUpdate: () => this.cd.detectChanges()
|
|
1016
|
+
};
|
|
1017
|
+
}
|
|
1018
|
+
onLazyItemLoad(event) {
|
|
1019
|
+
this.onLazyLoad.emit({
|
|
1020
|
+
...this.createLazyLoadMetadata(),
|
|
1021
|
+
...event,
|
|
1022
|
+
rows: event.last - event.first
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Resets scroll to top.
|
|
1027
|
+
* @group Method
|
|
1028
|
+
*/
|
|
1029
|
+
resetScrollTop() {
|
|
1030
|
+
if (this.virtualScroll)
|
|
1031
|
+
this.scrollToVirtualIndex(0);
|
|
1032
|
+
else
|
|
1033
|
+
this.scrollTo({ top: 0 });
|
|
1034
|
+
}
|
|
1035
|
+
/**
|
|
1036
|
+
* Scrolls to given index when using virtual scroll.
|
|
1037
|
+
* @param {number} index - index of the element.
|
|
1038
|
+
* @group Method
|
|
1039
|
+
*/
|
|
1040
|
+
scrollToVirtualIndex(index) {
|
|
1041
|
+
if (this.scrollableViewChild) {
|
|
1042
|
+
this.scrollableViewChild.scrollToVirtualIndex(index);
|
|
1043
|
+
}
|
|
1044
|
+
if (this.scrollableFrozenViewChild) {
|
|
1045
|
+
this.scrollableViewChild.scrollToVirtualIndex(index);
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
/**
|
|
1049
|
+
* Scrolls to given index.
|
|
1050
|
+
* @param {ScrollToOptions} options - Scroll options.
|
|
1051
|
+
* @group Method
|
|
1052
|
+
*/
|
|
1053
|
+
scrollTo(options) {
|
|
1054
|
+
if (this.scrollableViewChild) {
|
|
1055
|
+
this.scrollableViewChild.scrollTo(options);
|
|
1056
|
+
}
|
|
1057
|
+
if (this.scrollableFrozenViewChild) {
|
|
1058
|
+
this.scrollableViewChild.scrollTo(options);
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
isEmpty() {
|
|
1062
|
+
let data = this.filteredNodes || this.value;
|
|
1063
|
+
return data == null || data.length == 0;
|
|
1064
|
+
}
|
|
1065
|
+
getBlockableElement() {
|
|
1066
|
+
return this.el.nativeElement.children[0];
|
|
1067
|
+
}
|
|
1068
|
+
onColumnResizeBegin(event) {
|
|
1069
|
+
let containerLeft = DomHandler.getOffset(this.containerViewChild?.nativeElement).left;
|
|
1070
|
+
this.lastResizerHelperX = event.pageX - containerLeft + this.containerViewChild?.nativeElement.scrollLeft;
|
|
1071
|
+
event.preventDefault();
|
|
1072
|
+
}
|
|
1073
|
+
onColumnResize(event) {
|
|
1074
|
+
let containerLeft = DomHandler.getOffset(this.containerViewChild?.nativeElement).left;
|
|
1075
|
+
DomHandler.addClass(this.containerViewChild?.nativeElement, 'p-unselectable-text');
|
|
1076
|
+
this.resizeHelperViewChild.nativeElement.style.height = this.containerViewChild?.nativeElement.offsetHeight + 'px';
|
|
1077
|
+
this.resizeHelperViewChild.nativeElement.style.top = 0 + 'px';
|
|
1078
|
+
this.resizeHelperViewChild.nativeElement.style.left = event.pageX - containerLeft + this.containerViewChild?.nativeElement.scrollLeft + 'px';
|
|
1079
|
+
this.resizeHelperViewChild.nativeElement.style.display = 'block';
|
|
1080
|
+
}
|
|
1081
|
+
onColumnResizeEnd(event, column) {
|
|
1082
|
+
let delta = this.resizeHelperViewChild.nativeElement.offsetLeft - this.lastResizerHelperX;
|
|
1083
|
+
let columnWidth = column.offsetWidth;
|
|
1084
|
+
let newColumnWidth = columnWidth + delta;
|
|
1085
|
+
let minWidth = column.style.minWidth || 15;
|
|
1086
|
+
if (columnWidth + delta > parseInt(minWidth)) {
|
|
1087
|
+
if (this.columnResizeMode === 'fit') {
|
|
1088
|
+
let nextColumn = column.nextElementSibling;
|
|
1089
|
+
while (!nextColumn.offsetParent) {
|
|
1090
|
+
nextColumn = nextColumn.nextElementSibling;
|
|
1091
|
+
}
|
|
1092
|
+
if (nextColumn) {
|
|
1093
|
+
let nextColumnWidth = nextColumn.offsetWidth - delta;
|
|
1094
|
+
let nextColumnMinWidth = nextColumn.style.minWidth || 15;
|
|
1095
|
+
if (newColumnWidth > 15 && nextColumnWidth > parseInt(nextColumnMinWidth)) {
|
|
1096
|
+
if (this.scrollable) {
|
|
1097
|
+
let scrollableView = this.findParentScrollableView(column);
|
|
1098
|
+
let scrollableBodyTable = DomHandler.findSingle(scrollableView, '.p-treetable-scrollable-body table') || DomHandler.findSingle(scrollableView, '.p-scroller-viewport table');
|
|
1099
|
+
let scrollableHeaderTable = DomHandler.findSingle(scrollableView, 'table.p-treetable-scrollable-header-table');
|
|
1100
|
+
let scrollableFooterTable = DomHandler.findSingle(scrollableView, 'table.p-treetable-scrollable-footer-table');
|
|
1101
|
+
let resizeColumnIndex = DomHandler.index(column);
|
|
1102
|
+
this.resizeColGroup(scrollableHeaderTable, resizeColumnIndex, newColumnWidth, nextColumnWidth);
|
|
1103
|
+
this.resizeColGroup(scrollableBodyTable, resizeColumnIndex, newColumnWidth, nextColumnWidth);
|
|
1104
|
+
this.resizeColGroup(scrollableFooterTable, resizeColumnIndex, newColumnWidth, nextColumnWidth);
|
|
1105
|
+
}
|
|
1106
|
+
else {
|
|
1107
|
+
column.style.width = newColumnWidth + 'px';
|
|
1108
|
+
if (nextColumn) {
|
|
1109
|
+
nextColumn.style.width = nextColumnWidth + 'px';
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
else if (this.columnResizeMode === 'expand') {
|
|
1116
|
+
if (this.scrollable) {
|
|
1117
|
+
let scrollableView = this.findParentScrollableView(column);
|
|
1118
|
+
let scrollableBody = DomHandler.findSingle(scrollableView, '.p-treetable-scrollable-body') || DomHandler.findSingle(scrollableView, '.p-scroller-viewport');
|
|
1119
|
+
let scrollableHeader = DomHandler.findSingle(scrollableView, '.p-treetable-scrollable-header');
|
|
1120
|
+
let scrollableFooter = DomHandler.findSingle(scrollableView, '.p-treetable-scrollable-footer');
|
|
1121
|
+
let scrollableBodyTable = DomHandler.findSingle(scrollableView, '.p-treetable-scrollable-body table') || DomHandler.findSingle(scrollableView, '.p-scroller-viewport table');
|
|
1122
|
+
let scrollableHeaderTable = DomHandler.findSingle(scrollableView, 'table.p-treetable-scrollable-header-table');
|
|
1123
|
+
let scrollableFooterTable = DomHandler.findSingle(scrollableView, 'table.p-treetable-scrollable-footer-table');
|
|
1124
|
+
let resizeColumnIndex = DomHandler.index(column);
|
|
1125
|
+
const scrollableBodyTableWidth = column ? scrollableBodyTable.offsetWidth + delta : newColumnWidth;
|
|
1126
|
+
const scrollableHeaderTableWidth = column ? scrollableHeaderTable.offsetWidth + delta : newColumnWidth;
|
|
1127
|
+
const isContainerInViewport = this.containerViewChild?.nativeElement.offsetWidth >= scrollableBodyTableWidth;
|
|
1128
|
+
let setWidth = (container, table, width, isContainerInViewport) => {
|
|
1129
|
+
if (container && table) {
|
|
1130
|
+
container.style.width = isContainerInViewport ? width + DomHandler.calculateScrollbarWidth(scrollableBody) + 'px' : 'auto';
|
|
1131
|
+
table.style.width = width + 'px';
|
|
1132
|
+
}
|
|
1133
|
+
};
|
|
1134
|
+
setWidth(scrollableBody, scrollableBodyTable, scrollableBodyTableWidth, isContainerInViewport);
|
|
1135
|
+
setWidth(scrollableHeader, scrollableHeaderTable, scrollableHeaderTableWidth, isContainerInViewport);
|
|
1136
|
+
setWidth(scrollableFooter, scrollableFooterTable, scrollableHeaderTableWidth, isContainerInViewport);
|
|
1137
|
+
this.resizeColGroup(scrollableHeaderTable, resizeColumnIndex, newColumnWidth, null);
|
|
1138
|
+
this.resizeColGroup(scrollableBodyTable, resizeColumnIndex, newColumnWidth, null);
|
|
1139
|
+
this.resizeColGroup(scrollableFooterTable, resizeColumnIndex, newColumnWidth, null);
|
|
1140
|
+
}
|
|
1141
|
+
else {
|
|
1142
|
+
this.tableViewChild.nativeElement.style.width = this.tableViewChild?.nativeElement.offsetWidth + delta + 'px';
|
|
1143
|
+
column.style.width = newColumnWidth + 'px';
|
|
1144
|
+
let containerWidth = this.tableViewChild?.nativeElement.style.width;
|
|
1145
|
+
this.containerViewChild.nativeElement.style.width = containerWidth + 'px';
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
this.onColResize.emit({
|
|
1149
|
+
element: column,
|
|
1150
|
+
delta: delta
|
|
1151
|
+
});
|
|
1152
|
+
}
|
|
1153
|
+
this.resizeHelperViewChild.nativeElement.style.display = 'none';
|
|
1154
|
+
DomHandler.removeClass(this.containerViewChild?.nativeElement, 'p-unselectable-text');
|
|
1155
|
+
}
|
|
1156
|
+
findParentScrollableView(column) {
|
|
1157
|
+
if (column) {
|
|
1158
|
+
let parent = column.parentElement;
|
|
1159
|
+
while (parent && !DomHandler.hasClass(parent, 'p-treetable-scrollable-view')) {
|
|
1160
|
+
parent = parent.parentElement;
|
|
1161
|
+
}
|
|
1162
|
+
return parent;
|
|
1163
|
+
}
|
|
1164
|
+
else {
|
|
1165
|
+
return null;
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
resizeColGroup(table, resizeColumnIndex, newColumnWidth, nextColumnWidth) {
|
|
1169
|
+
if (table) {
|
|
1170
|
+
let colGroup = table.children[0].nodeName === 'COLGROUP' ? table.children[0] : null;
|
|
1171
|
+
if (colGroup) {
|
|
1172
|
+
let col = colGroup.children[resizeColumnIndex];
|
|
1173
|
+
let nextCol = col.nextElementSibling;
|
|
1174
|
+
col.style.width = newColumnWidth + 'px';
|
|
1175
|
+
if (nextCol && nextColumnWidth) {
|
|
1176
|
+
nextCol.style.width = nextColumnWidth + 'px';
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
else {
|
|
1180
|
+
throw 'Scrollable tables require a colgroup to support resizable columns';
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
onColumnDragStart(event, columnElement) {
|
|
1185
|
+
this.reorderIconWidth = DomHandler.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement);
|
|
1186
|
+
this.reorderIconHeight = DomHandler.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement);
|
|
1187
|
+
this.draggedColumn = columnElement;
|
|
1188
|
+
event.dataTransfer.setData('text', 'b'); // For firefox
|
|
1189
|
+
}
|
|
1190
|
+
onColumnDragEnter(event, dropHeader) {
|
|
1191
|
+
if (this.reorderableColumns && this.draggedColumn && dropHeader) {
|
|
1192
|
+
event.preventDefault();
|
|
1193
|
+
let containerOffset = DomHandler.getOffset(this.containerViewChild?.nativeElement);
|
|
1194
|
+
let dropHeaderOffset = DomHandler.getOffset(dropHeader);
|
|
1195
|
+
if (this.draggedColumn != dropHeader) {
|
|
1196
|
+
let targetLeft = dropHeaderOffset.left - containerOffset.left;
|
|
1197
|
+
let targetTop = containerOffset.top - dropHeaderOffset.top;
|
|
1198
|
+
let columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
|
|
1199
|
+
this.reorderIndicatorUpViewChild.nativeElement.style.top = dropHeaderOffset.top - containerOffset.top - (this.reorderIconHeight - 1) + 'px';
|
|
1200
|
+
this.reorderIndicatorDownViewChild.nativeElement.style.top = dropHeaderOffset.top - containerOffset.top + dropHeader.offsetHeight + 'px';
|
|
1201
|
+
if (event.pageX > columnCenter) {
|
|
1202
|
+
this.reorderIndicatorUpViewChild.nativeElement.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(this.reorderIconWidth / 2) + 'px';
|
|
1203
|
+
this.reorderIndicatorDownViewChild.nativeElement.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(this.reorderIconWidth / 2) + 'px';
|
|
1204
|
+
this.dropPosition = 1;
|
|
1205
|
+
}
|
|
1206
|
+
else {
|
|
1207
|
+
this.reorderIndicatorUpViewChild.nativeElement.style.left = targetLeft - Math.ceil(this.reorderIconWidth / 2) + 'px';
|
|
1208
|
+
this.reorderIndicatorDownViewChild.nativeElement.style.left = targetLeft - Math.ceil(this.reorderIconWidth / 2) + 'px';
|
|
1209
|
+
this.dropPosition = -1;
|
|
1210
|
+
}
|
|
1211
|
+
this.reorderIndicatorUpViewChild.nativeElement.style.display = 'block';
|
|
1212
|
+
this.reorderIndicatorDownViewChild.nativeElement.style.display = 'block';
|
|
1213
|
+
}
|
|
1214
|
+
else {
|
|
1215
|
+
event.dataTransfer.dropEffect = 'none';
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
onColumnDragLeave(event) {
|
|
1220
|
+
if (this.reorderableColumns && this.draggedColumn) {
|
|
1221
|
+
event.preventDefault();
|
|
1222
|
+
this.reorderIndicatorUpViewChild.nativeElement.style.display = 'none';
|
|
1223
|
+
this.reorderIndicatorDownViewChild.nativeElement.style.display = 'none';
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
onColumnDrop(event, dropColumn) {
|
|
1227
|
+
event.preventDefault();
|
|
1228
|
+
if (this.draggedColumn) {
|
|
1229
|
+
let dragIndex = DomHandler.indexWithinGroup(this.draggedColumn, 'ttreorderablecolumn');
|
|
1230
|
+
let dropIndex = DomHandler.indexWithinGroup(dropColumn, 'ttreorderablecolumn');
|
|
1231
|
+
let allowDrop = dragIndex != dropIndex;
|
|
1232
|
+
if (allowDrop && ((dropIndex - dragIndex == 1 && this.dropPosition === -1) || (dragIndex - dropIndex == 1 && this.dropPosition === 1))) {
|
|
1233
|
+
allowDrop = false;
|
|
1234
|
+
}
|
|
1235
|
+
if (allowDrop && dropIndex < dragIndex && this.dropPosition === 1) {
|
|
1236
|
+
dropIndex = dropIndex + 1;
|
|
1237
|
+
}
|
|
1238
|
+
if (allowDrop && dropIndex > dragIndex && this.dropPosition === -1) {
|
|
1239
|
+
dropIndex = dropIndex - 1;
|
|
1240
|
+
}
|
|
1241
|
+
if (allowDrop) {
|
|
1242
|
+
ObjectUtils.reorderArray(this.columns, dragIndex, dropIndex);
|
|
1243
|
+
this.onColReorder.emit({
|
|
1244
|
+
dragIndex: dragIndex,
|
|
1245
|
+
dropIndex: dropIndex,
|
|
1246
|
+
columns: this.columns
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
this.reorderIndicatorUpViewChild.nativeElement.style.display = 'none';
|
|
1250
|
+
this.reorderIndicatorDownViewChild.nativeElement.style.display = 'none';
|
|
1251
|
+
this.draggedColumn.draggable = false;
|
|
1252
|
+
this.draggedColumn = null;
|
|
1253
|
+
this.dropPosition = null;
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
handleRowClick(event) {
|
|
1257
|
+
let targetNode = event.originalEvent.target.nodeName;
|
|
1258
|
+
if (targetNode == 'INPUT' || targetNode == 'BUTTON' || targetNode == 'A' || DomHandler.hasClass(event.originalEvent.target, 'p-clickable')) {
|
|
1259
|
+
return;
|
|
1260
|
+
}
|
|
1261
|
+
if (this.selectionMode) {
|
|
1262
|
+
this.preventSelectionSetterPropagation = true;
|
|
1263
|
+
let rowNode = event.rowNode;
|
|
1264
|
+
let selected = this.isSelected(rowNode.node);
|
|
1265
|
+
let metaSelection = this.rowTouched ? false : this.metaKeySelection;
|
|
1266
|
+
let dataKeyValue = this.dataKey ? String(ObjectUtils.resolveFieldData(rowNode.node.data, this.dataKey)) : null;
|
|
1267
|
+
if (metaSelection) {
|
|
1268
|
+
let keyboardEvent = event.originalEvent;
|
|
1269
|
+
let metaKey = keyboardEvent.metaKey || keyboardEvent.ctrlKey;
|
|
1270
|
+
if (selected && metaKey) {
|
|
1271
|
+
if (this.isSingleSelectionMode()) {
|
|
1272
|
+
this._selection = null;
|
|
1273
|
+
this.selectedKeys = {};
|
|
1274
|
+
this.selectionChange.emit(null);
|
|
1275
|
+
}
|
|
1276
|
+
else {
|
|
1277
|
+
let selectionIndex = this.findIndexInSelection(rowNode.node);
|
|
1278
|
+
this._selection = this.selection.filter((val, i) => i != selectionIndex);
|
|
1279
|
+
this.selectionChange.emit(this.selection);
|
|
1280
|
+
if (dataKeyValue) {
|
|
1281
|
+
delete this.selectedKeys[dataKeyValue];
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
this.onNodeUnselect.emit({ originalEvent: event.originalEvent, node: rowNode.node, type: 'row' });
|
|
1285
|
+
}
|
|
1286
|
+
else {
|
|
1287
|
+
if (this.isSingleSelectionMode()) {
|
|
1288
|
+
this._selection = rowNode.node;
|
|
1289
|
+
this.selectionChange.emit(rowNode.node);
|
|
1290
|
+
if (dataKeyValue) {
|
|
1291
|
+
this.selectedKeys = {};
|
|
1292
|
+
this.selectedKeys[dataKeyValue] = 1;
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
else if (this.isMultipleSelectionMode()) {
|
|
1296
|
+
if (metaKey) {
|
|
1297
|
+
this._selection = this.selection || [];
|
|
1298
|
+
}
|
|
1299
|
+
else {
|
|
1300
|
+
this._selection = [];
|
|
1301
|
+
this.selectedKeys = {};
|
|
1302
|
+
}
|
|
1303
|
+
this._selection = [...this.selection, rowNode.node];
|
|
1304
|
+
this.selectionChange.emit(this.selection);
|
|
1305
|
+
if (dataKeyValue) {
|
|
1306
|
+
this.selectedKeys[dataKeyValue] = 1;
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
this.onNodeSelect.emit({ originalEvent: event.originalEvent, node: rowNode.node, type: 'row', index: event.rowIndex });
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
else {
|
|
1313
|
+
if (this.selectionMode === 'single') {
|
|
1314
|
+
if (selected) {
|
|
1315
|
+
this._selection = null;
|
|
1316
|
+
this.selectedKeys = {};
|
|
1317
|
+
this.selectionChange.emit(this.selection);
|
|
1318
|
+
this.onNodeUnselect.emit({ originalEvent: event.originalEvent, node: rowNode.node, type: 'row' });
|
|
1319
|
+
}
|
|
1320
|
+
else {
|
|
1321
|
+
this._selection = rowNode.node;
|
|
1322
|
+
this.selectionChange.emit(this.selection);
|
|
1323
|
+
this.onNodeSelect.emit({ originalEvent: event.originalEvent, node: rowNode.node, type: 'row', index: event.rowIndex });
|
|
1324
|
+
if (dataKeyValue) {
|
|
1325
|
+
this.selectedKeys = {};
|
|
1326
|
+
this.selectedKeys[dataKeyValue] = 1;
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
else if (this.selectionMode === 'multiple') {
|
|
1331
|
+
if (selected) {
|
|
1332
|
+
let selectionIndex = this.findIndexInSelection(rowNode.node);
|
|
1333
|
+
this._selection = this.selection.filter((val, i) => i != selectionIndex);
|
|
1334
|
+
this.selectionChange.emit(this.selection);
|
|
1335
|
+
this.onNodeUnselect.emit({ originalEvent: event.originalEvent, node: rowNode.node, type: 'row' });
|
|
1336
|
+
if (dataKeyValue) {
|
|
1337
|
+
delete this.selectedKeys[dataKeyValue];
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
else {
|
|
1341
|
+
this._selection = this.selection ? [...this.selection, rowNode.node] : [rowNode.node];
|
|
1342
|
+
this.selectionChange.emit(this.selection);
|
|
1343
|
+
this.onNodeSelect.emit({ originalEvent: event.originalEvent, node: rowNode.node, type: 'row', index: event.rowIndex });
|
|
1344
|
+
if (dataKeyValue) {
|
|
1345
|
+
this.selectedKeys[dataKeyValue] = 1;
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
this.tableService.onSelectionChange();
|
|
1351
|
+
}
|
|
1352
|
+
this.rowTouched = false;
|
|
1353
|
+
}
|
|
1354
|
+
handleRowTouchEnd(event) {
|
|
1355
|
+
this.rowTouched = true;
|
|
1356
|
+
}
|
|
1357
|
+
handleRowRightClick(event) {
|
|
1358
|
+
if (this.contextMenu) {
|
|
1359
|
+
const node = event.rowNode.node;
|
|
1360
|
+
if (this.contextMenuSelectionMode === 'separate') {
|
|
1361
|
+
this.contextMenuSelection = node;
|
|
1362
|
+
this.contextMenuSelectionChange.emit(node);
|
|
1363
|
+
this.onContextMenuSelect.emit({ originalEvent: event.originalEvent, node: node });
|
|
1364
|
+
this.contextMenu.show(event.originalEvent);
|
|
1365
|
+
this.tableService.onContextMenu(node);
|
|
1366
|
+
}
|
|
1367
|
+
else if (this.contextMenuSelectionMode === 'joint') {
|
|
1368
|
+
this.preventSelectionSetterPropagation = true;
|
|
1369
|
+
let selected = this.isSelected(node);
|
|
1370
|
+
let dataKeyValue = this.dataKey ? String(ObjectUtils.resolveFieldData(node.data, this.dataKey)) : null;
|
|
1371
|
+
if (!selected) {
|
|
1372
|
+
if (this.isSingleSelectionMode()) {
|
|
1373
|
+
this.selection = node;
|
|
1374
|
+
this.selectionChange.emit(node);
|
|
1375
|
+
}
|
|
1376
|
+
else if (this.isMultipleSelectionMode()) {
|
|
1377
|
+
this.selection = [node];
|
|
1378
|
+
this.selectionChange.emit(this.selection);
|
|
1379
|
+
}
|
|
1380
|
+
if (dataKeyValue) {
|
|
1381
|
+
this.selectedKeys[dataKeyValue] = 1;
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
this.contextMenu.show(event.originalEvent);
|
|
1385
|
+
this.onContextMenuSelect.emit({ originalEvent: event.originalEvent, node: node });
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
toggleNodeWithCheckbox(event) {
|
|
1390
|
+
// legacy selection support, will be removed in v18
|
|
1391
|
+
this.selection = this.selection || [];
|
|
1392
|
+
this.preventSelectionSetterPropagation = true;
|
|
1393
|
+
let node = event.rowNode.node;
|
|
1394
|
+
let selected = this.isSelected(node);
|
|
1395
|
+
if (selected) {
|
|
1396
|
+
this.propagateSelectionDown(node, false);
|
|
1397
|
+
if (event.rowNode.parent) {
|
|
1398
|
+
this.propagateSelectionUp(node.parent, false);
|
|
1399
|
+
}
|
|
1400
|
+
this.selectionChange.emit(this.selection);
|
|
1401
|
+
this.onNodeUnselect.emit({ originalEvent: event, node: node });
|
|
1402
|
+
}
|
|
1403
|
+
else {
|
|
1404
|
+
this.propagateSelectionDown(node, true);
|
|
1405
|
+
if (event.rowNode.parent) {
|
|
1406
|
+
this.propagateSelectionUp(node.parent, true);
|
|
1407
|
+
}
|
|
1408
|
+
this.selectionChange.emit(this.selection);
|
|
1409
|
+
this.onNodeSelect.emit({ originalEvent: event, node: node });
|
|
1410
|
+
}
|
|
1411
|
+
this.tableService.onSelectionChange();
|
|
1412
|
+
}
|
|
1413
|
+
toggleNodesWithCheckbox(event, check) {
|
|
1414
|
+
// legacy selection support, will be removed in v18
|
|
1415
|
+
let data = this.filteredNodes || this.value;
|
|
1416
|
+
this._selection = check && data ? data.slice() : [];
|
|
1417
|
+
this.toggleAll(check);
|
|
1418
|
+
if (!check) {
|
|
1419
|
+
this._selection = [];
|
|
1420
|
+
this.selectedKeys = {};
|
|
1421
|
+
}
|
|
1422
|
+
this.preventSelectionSetterPropagation = true;
|
|
1423
|
+
this.selectionChange.emit(this._selection);
|
|
1424
|
+
this.tableService.onSelectionChange();
|
|
1425
|
+
this.onHeaderCheckboxToggle.emit({ originalEvent: event, checked: check });
|
|
1426
|
+
}
|
|
1427
|
+
toggleAll(checked) {
|
|
1428
|
+
let data = this.filteredNodes || this.value;
|
|
1429
|
+
if (!this.selectionKeys) {
|
|
1430
|
+
if (data && data.length) {
|
|
1431
|
+
for (let node of data) {
|
|
1432
|
+
this.propagateSelectionDown(node, checked);
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
else {
|
|
1437
|
+
// legacy selection support, will be removed in v18
|
|
1438
|
+
if (data && data.length) {
|
|
1439
|
+
for (let node of data) {
|
|
1440
|
+
this.propagateDown(node, checked);
|
|
1441
|
+
}
|
|
1442
|
+
this.selectionKeysChange.emit(this.selectionKeys);
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
propagateSelectionUp(node, select) {
|
|
1447
|
+
// legacy selection support, will be removed in v18
|
|
1448
|
+
if (node.children && node.children.length) {
|
|
1449
|
+
let selectedChildCount = 0;
|
|
1450
|
+
let childPartialSelected = false;
|
|
1451
|
+
let dataKeyValue = this.dataKey ? String(ObjectUtils.resolveFieldData(node.data, this.dataKey)) : null;
|
|
1452
|
+
for (let child of node.children) {
|
|
1453
|
+
if (this.isSelected(child))
|
|
1454
|
+
selectedChildCount++;
|
|
1455
|
+
else if (child.partialSelected)
|
|
1456
|
+
childPartialSelected = true;
|
|
1457
|
+
}
|
|
1458
|
+
if (select && selectedChildCount == node.children.length) {
|
|
1459
|
+
this._selection = [...(this.selection || []), node];
|
|
1460
|
+
node.partialSelected = false;
|
|
1461
|
+
if (dataKeyValue) {
|
|
1462
|
+
this.selectedKeys[dataKeyValue] = 1;
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
else {
|
|
1466
|
+
if (!select) {
|
|
1467
|
+
let index = this.findIndexInSelection(node);
|
|
1468
|
+
if (index >= 0) {
|
|
1469
|
+
this._selection = this.selection.filter((val, i) => i != index);
|
|
1470
|
+
if (dataKeyValue) {
|
|
1471
|
+
delete this.selectedKeys[dataKeyValue];
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
if (childPartialSelected || (selectedChildCount > 0 && selectedChildCount != node.children.length))
|
|
1476
|
+
node.partialSelected = true;
|
|
1477
|
+
else
|
|
1478
|
+
node.partialSelected = false;
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
let parent = node.parent;
|
|
1482
|
+
node.checked = select;
|
|
1483
|
+
if (parent) {
|
|
1484
|
+
this.propagateSelectionUp(parent, select);
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
propagateSelectionDown(node, select) {
|
|
1488
|
+
// legacy selection support, will be removed in v18
|
|
1489
|
+
let index = this.findIndexInSelection(node);
|
|
1490
|
+
let dataKeyValue = this.dataKey ? String(ObjectUtils.resolveFieldData(node.data, this.dataKey)) : null;
|
|
1491
|
+
if (select && index == -1) {
|
|
1492
|
+
this._selection = [...(this.selection || []), node];
|
|
1493
|
+
if (dataKeyValue) {
|
|
1494
|
+
this.selectedKeys[dataKeyValue] = 1;
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
else if (!select && index > -1) {
|
|
1498
|
+
this._selection = this.selection.filter((val, i) => i != index);
|
|
1499
|
+
if (dataKeyValue) {
|
|
1500
|
+
delete this.selectedKeys[dataKeyValue];
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
node.partialSelected = false;
|
|
1504
|
+
node.checked = select;
|
|
1505
|
+
if (node.children && node.children.length) {
|
|
1506
|
+
for (let child of node.children) {
|
|
1507
|
+
this.propagateSelectionDown(child, select);
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
isSelected(node) {
|
|
1512
|
+
// legacy selection support, will be removed in v18
|
|
1513
|
+
if (node && this.selection) {
|
|
1514
|
+
if (this.dataKey) {
|
|
1515
|
+
if (node.hasOwnProperty('checked')) {
|
|
1516
|
+
return node['checked'];
|
|
1517
|
+
}
|
|
1518
|
+
else {
|
|
1519
|
+
return this.selectedKeys[ObjectUtils.resolveFieldData(node.data, this.dataKey)] !== undefined;
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
else {
|
|
1523
|
+
if (Array.isArray(this.selection))
|
|
1524
|
+
return this.findIndexInSelection(node) > -1;
|
|
1525
|
+
else
|
|
1526
|
+
return this.equals(node, this.selection);
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
return false;
|
|
1530
|
+
}
|
|
1531
|
+
isNodeSelected(node) {
|
|
1532
|
+
return this.selectionMode && this.selectionKeys ? this.selectionKeys[this.nodeKey(node)]?.checked === true : false;
|
|
1533
|
+
}
|
|
1534
|
+
isNodePartialSelected(node) {
|
|
1535
|
+
return this.selectionMode && this.selectionKeys ? this.selectionKeys[this.nodeKey(node)]?.partialChecked === true : false;
|
|
1536
|
+
}
|
|
1537
|
+
nodeKey(node) {
|
|
1538
|
+
return ObjectUtils.resolveFieldData(node, this.dataKey) || ObjectUtils.resolveFieldData(node?.data, this.dataKey);
|
|
1539
|
+
}
|
|
1540
|
+
toggleCheckbox(event) {
|
|
1541
|
+
let { rowNode, check, originalEvent } = event;
|
|
1542
|
+
let node = rowNode.node;
|
|
1543
|
+
if (this.selectionKeys) {
|
|
1544
|
+
this.propagateDown(node, check);
|
|
1545
|
+
if (node.parent) {
|
|
1546
|
+
this.propagateUp(node.parent, check);
|
|
1547
|
+
}
|
|
1548
|
+
this.selectionKeysChange.emit(this.selectionKeys);
|
|
1549
|
+
}
|
|
1550
|
+
else {
|
|
1551
|
+
this.toggleNodeWithCheckbox({ originalEvent, rowNode });
|
|
1552
|
+
}
|
|
1553
|
+
this.tableService.onSelectionChange();
|
|
1554
|
+
}
|
|
1555
|
+
propagateDown(node, check) {
|
|
1556
|
+
if (check) {
|
|
1557
|
+
this.selectionKeys[this.nodeKey(node)] = { checked: true, partialChecked: false };
|
|
1558
|
+
}
|
|
1559
|
+
else {
|
|
1560
|
+
delete this.selectionKeys[this.nodeKey(node)];
|
|
1561
|
+
}
|
|
1562
|
+
if (node.children && node.children.length) {
|
|
1563
|
+
for (let child of node.children) {
|
|
1564
|
+
this.propagateDown(child, check);
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
propagateUp(node, check) {
|
|
1569
|
+
let checkedChildCount = 0;
|
|
1570
|
+
let childPartialSelected = false;
|
|
1571
|
+
for (let child of node.children) {
|
|
1572
|
+
if (this.selectionKeys[this.nodeKey(child)] && this.selectionKeys[this.nodeKey(child)].checked)
|
|
1573
|
+
checkedChildCount++;
|
|
1574
|
+
else if (this.selectionKeys[this.nodeKey(child)] && this.selectionKeys[this.nodeKey(child)].partialChecked)
|
|
1575
|
+
childPartialSelected = true;
|
|
1576
|
+
}
|
|
1577
|
+
if (check && checkedChildCount === node.children.length) {
|
|
1578
|
+
this.selectionKeys[this.nodeKey(node)] = { checked: true, partialChecked: false };
|
|
1579
|
+
}
|
|
1580
|
+
else {
|
|
1581
|
+
if (!check) {
|
|
1582
|
+
delete this.selectionKeys[this.nodeKey(node)];
|
|
1583
|
+
}
|
|
1584
|
+
if (childPartialSelected || (checkedChildCount > 0 && checkedChildCount !== node.children.length))
|
|
1585
|
+
this.selectionKeys[this.nodeKey(node)] = { checked: false, partialChecked: true };
|
|
1586
|
+
else
|
|
1587
|
+
this.selectionKeys[this.nodeKey(node)] = { checked: false, partialChecked: false };
|
|
1588
|
+
}
|
|
1589
|
+
let parent = node.parent;
|
|
1590
|
+
if (parent) {
|
|
1591
|
+
this.propagateUp(parent, check);
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
findIndexInSelection(node) {
|
|
1595
|
+
let index = -1;
|
|
1596
|
+
if (this.selection && this.selection.length) {
|
|
1597
|
+
for (let i = 0; i < this.selection.length; i++) {
|
|
1598
|
+
if (this.equals(node, this.selection[i])) {
|
|
1599
|
+
index = i;
|
|
1600
|
+
break;
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
return index;
|
|
1605
|
+
}
|
|
1606
|
+
isSingleSelectionMode() {
|
|
1607
|
+
return this.selectionMode === 'single';
|
|
1608
|
+
}
|
|
1609
|
+
isMultipleSelectionMode() {
|
|
1610
|
+
return this.selectionMode === 'multiple';
|
|
1611
|
+
}
|
|
1612
|
+
equals(node1, node2) {
|
|
1613
|
+
return this.compareSelectionBy === 'equals' ? ObjectUtils.equals(node1, node2) : ObjectUtils.equals(node1.data, node2.data, this.dataKey);
|
|
1614
|
+
}
|
|
1615
|
+
filter(value, field, matchMode) {
|
|
1616
|
+
if (this.filterTimeout) {
|
|
1617
|
+
clearTimeout(this.filterTimeout);
|
|
1618
|
+
}
|
|
1619
|
+
if (!this.isFilterBlank(value)) {
|
|
1620
|
+
this.filters[field] = { value: value, matchMode: matchMode };
|
|
1621
|
+
}
|
|
1622
|
+
else if (this.filters[field]) {
|
|
1623
|
+
delete this.filters[field];
|
|
1624
|
+
}
|
|
1625
|
+
this.filterTimeout = setTimeout(() => {
|
|
1626
|
+
this._filter();
|
|
1627
|
+
this.filterTimeout = null;
|
|
1628
|
+
}, this.filterDelay);
|
|
1629
|
+
}
|
|
1630
|
+
filterGlobal(value, matchMode) {
|
|
1631
|
+
this.filter(value, 'global', matchMode);
|
|
1632
|
+
}
|
|
1633
|
+
isFilterBlank(filter) {
|
|
1634
|
+
if (filter !== null && filter !== undefined) {
|
|
1635
|
+
if ((typeof filter === 'string' && filter.trim().length == 0) || (Array.isArray(filter) && filter.length == 0))
|
|
1636
|
+
return true;
|
|
1637
|
+
else
|
|
1638
|
+
return false;
|
|
1639
|
+
}
|
|
1640
|
+
return true;
|
|
1641
|
+
}
|
|
1642
|
+
_filter() {
|
|
1643
|
+
if (this.lazy) {
|
|
1644
|
+
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
1645
|
+
}
|
|
1646
|
+
else {
|
|
1647
|
+
if (!this.value) {
|
|
1648
|
+
return;
|
|
1649
|
+
}
|
|
1650
|
+
if (!this.hasFilter()) {
|
|
1651
|
+
this.filteredNodes = null;
|
|
1652
|
+
if (this.paginator) {
|
|
1653
|
+
this.totalRecords = this.value ? this.value.length : 0;
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
else {
|
|
1657
|
+
let globalFilterFieldsArray;
|
|
1658
|
+
if (this.filters['global']) {
|
|
1659
|
+
if (!this.columns && !this.globalFilterFields)
|
|
1660
|
+
throw new Error('Global filtering requires dynamic columns or globalFilterFields to be defined.');
|
|
1661
|
+
else
|
|
1662
|
+
globalFilterFieldsArray = this.globalFilterFields || this.columns;
|
|
1663
|
+
}
|
|
1664
|
+
this.filteredNodes = [];
|
|
1665
|
+
const isStrictMode = this.filterMode === 'strict';
|
|
1666
|
+
let isValueChanged = false;
|
|
1667
|
+
for (let node of this.value) {
|
|
1668
|
+
let copyNode = { ...node };
|
|
1669
|
+
let localMatch = true;
|
|
1670
|
+
let globalMatch = false;
|
|
1671
|
+
let paramsWithoutNode;
|
|
1672
|
+
for (let prop in this.filters) {
|
|
1673
|
+
if (this.filters.hasOwnProperty(prop) && prop !== 'global') {
|
|
1674
|
+
let filterMeta = this.filters[prop];
|
|
1675
|
+
let filterField = prop;
|
|
1676
|
+
let filterValue = filterMeta.value;
|
|
1677
|
+
let filterMatchMode = filterMeta.matchMode || 'startsWith';
|
|
1678
|
+
let filterConstraint = this.filterService.filters[filterMatchMode];
|
|
1679
|
+
paramsWithoutNode = { filterField, filterValue, filterConstraint, isStrictMode };
|
|
1680
|
+
if ((isStrictMode && !(this.findFilteredNodes(copyNode, paramsWithoutNode) || this.isFilterMatched(copyNode, paramsWithoutNode))) ||
|
|
1681
|
+
(!isStrictMode && !(this.isFilterMatched(copyNode, paramsWithoutNode) || this.findFilteredNodes(copyNode, paramsWithoutNode)))) {
|
|
1682
|
+
localMatch = false;
|
|
1683
|
+
}
|
|
1684
|
+
if (!localMatch) {
|
|
1685
|
+
break;
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
if (this.filters['global'] && !globalMatch && globalFilterFieldsArray) {
|
|
1690
|
+
let copyNodeForGlobal = { ...copyNode };
|
|
1691
|
+
let filterField = undefined;
|
|
1692
|
+
let filterValue = this.filters['global'].value;
|
|
1693
|
+
let filterConstraint = this.filterService.filters[this.filters['global'].matchMode];
|
|
1694
|
+
paramsWithoutNode = { filterField, filterValue, filterConstraint, isStrictMode, globalFilterFieldsArray };
|
|
1695
|
+
if ((isStrictMode && (this.findFilteredNodes(copyNodeForGlobal, paramsWithoutNode) || this.isFilterMatched(copyNodeForGlobal, paramsWithoutNode))) ||
|
|
1696
|
+
(!isStrictMode && (this.isFilterMatched(copyNodeForGlobal, paramsWithoutNode) || this.findFilteredNodes(copyNodeForGlobal, paramsWithoutNode)))) {
|
|
1697
|
+
globalMatch = true;
|
|
1698
|
+
copyNode = copyNodeForGlobal;
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
let matches = localMatch;
|
|
1702
|
+
if (this.filters['global']) {
|
|
1703
|
+
matches = localMatch && globalMatch;
|
|
1704
|
+
}
|
|
1705
|
+
if (matches) {
|
|
1706
|
+
this.filteredNodes.push(copyNode);
|
|
1707
|
+
}
|
|
1708
|
+
isValueChanged = isValueChanged || !localMatch || globalMatch || (localMatch && this.filteredNodes.length > 0) || (!globalMatch && this.filteredNodes.length === 0);
|
|
1709
|
+
}
|
|
1710
|
+
if (!isValueChanged) {
|
|
1711
|
+
this.filteredNodes = null;
|
|
1712
|
+
}
|
|
1713
|
+
if (this.paginator) {
|
|
1714
|
+
this.totalRecords = this.filteredNodes ? this.filteredNodes.length : this.value ? this.value.length : 0;
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
this.cd.markForCheck();
|
|
1718
|
+
}
|
|
1719
|
+
this.first = 0;
|
|
1720
|
+
const filteredValue = this.filteredNodes || this.value;
|
|
1721
|
+
this.onFilter.emit({
|
|
1722
|
+
filters: this.filters,
|
|
1723
|
+
filteredValue: filteredValue
|
|
1724
|
+
});
|
|
1725
|
+
this.tableService.onUIUpdate(filteredValue);
|
|
1726
|
+
this.updateSerializedValue();
|
|
1727
|
+
if (this.scrollable) {
|
|
1728
|
+
this.resetScrollTop();
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
findFilteredNodes(node, paramsWithoutNode) {
|
|
1732
|
+
if (node) {
|
|
1733
|
+
let matched = false;
|
|
1734
|
+
if (node.children) {
|
|
1735
|
+
let childNodes = [...node.children];
|
|
1736
|
+
node.children = [];
|
|
1737
|
+
for (let childNode of childNodes) {
|
|
1738
|
+
let copyChildNode = { ...childNode };
|
|
1739
|
+
if (this.isFilterMatched(copyChildNode, paramsWithoutNode)) {
|
|
1740
|
+
matched = true;
|
|
1741
|
+
node.children.push(copyChildNode);
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
if (matched) {
|
|
1746
|
+
return true;
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
isFilterMatched(node, filterOptions) {
|
|
1751
|
+
let { filterField, filterValue, filterConstraint, isStrictMode, globalFilterFieldsArray } = filterOptions;
|
|
1752
|
+
let matched = false;
|
|
1753
|
+
const isMatched = (field) => filterConstraint(ObjectUtils.resolveFieldData(node.data, field), filterValue, this.filterLocale);
|
|
1754
|
+
matched = globalFilterFieldsArray?.length ? globalFilterFieldsArray.some((globalFilterField) => isMatched(globalFilterField.field || globalFilterField)) : isMatched(filterField);
|
|
1755
|
+
if (!matched || (isStrictMode && !this.isNodeLeaf(node))) {
|
|
1756
|
+
matched = this.findFilteredNodes(node, { filterField, filterValue, filterConstraint, isStrictMode, globalFilterFieldsArray }) || matched;
|
|
1757
|
+
}
|
|
1758
|
+
return matched;
|
|
1759
|
+
}
|
|
1760
|
+
isNodeLeaf(node) {
|
|
1761
|
+
return node.leaf === false ? false : !(node.children && node.children.length);
|
|
1762
|
+
}
|
|
1763
|
+
hasFilter() {
|
|
1764
|
+
let empty = true;
|
|
1765
|
+
for (let prop in this.filters) {
|
|
1766
|
+
if (this.filters.hasOwnProperty(prop)) {
|
|
1767
|
+
empty = false;
|
|
1768
|
+
break;
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
return !empty;
|
|
1772
|
+
}
|
|
1773
|
+
/**
|
|
1774
|
+
* Clears the sort and paginator state.
|
|
1775
|
+
* @group Method
|
|
1776
|
+
*/
|
|
1777
|
+
reset() {
|
|
1778
|
+
this._sortField = null;
|
|
1779
|
+
this._sortOrder = 1;
|
|
1780
|
+
this._multiSortMeta = null;
|
|
1781
|
+
this.tableService.onSort(null);
|
|
1782
|
+
this.filteredNodes = null;
|
|
1783
|
+
this.filters = {};
|
|
1784
|
+
this.first = 0;
|
|
1785
|
+
if (this.lazy) {
|
|
1786
|
+
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
1787
|
+
}
|
|
1788
|
+
else {
|
|
1789
|
+
this.totalRecords = this._value ? this._value.length : 0;
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
updateEditingCell(cell, data, field) {
|
|
1793
|
+
this.editingCell = cell;
|
|
1794
|
+
this.editingCellData = data;
|
|
1795
|
+
this.editingCellField = field;
|
|
1796
|
+
this.bindDocumentEditListener();
|
|
1797
|
+
}
|
|
1798
|
+
isEditingCellValid() {
|
|
1799
|
+
return this.editingCell && DomHandler.find(this.editingCell, '.ng-invalid.ng-dirty').length === 0;
|
|
1800
|
+
}
|
|
1801
|
+
bindDocumentEditListener() {
|
|
1802
|
+
if (!this.documentEditListener) {
|
|
1803
|
+
this.documentEditListener = this.renderer.listen(this.document, 'click', (event) => {
|
|
1804
|
+
if (this.editingCell && !this.editingCellClick && this.isEditingCellValid()) {
|
|
1805
|
+
DomHandler.removeClass(this.editingCell, 'p-cell-editing');
|
|
1806
|
+
this.editingCell = null;
|
|
1807
|
+
this.onEditComplete.emit({ field: this.editingCellField, data: this.editingCellData });
|
|
1808
|
+
this.editingCellField = null;
|
|
1809
|
+
this.editingCellData = null;
|
|
1810
|
+
this.unbindDocumentEditListener();
|
|
1811
|
+
}
|
|
1812
|
+
this.editingCellClick = false;
|
|
1813
|
+
});
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
unbindDocumentEditListener() {
|
|
1817
|
+
if (this.documentEditListener) {
|
|
1818
|
+
this.documentEditListener();
|
|
1819
|
+
this.documentEditListener = null;
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
ngOnDestroy() {
|
|
1823
|
+
this.unbindDocumentEditListener();
|
|
1824
|
+
this.editingCell = null;
|
|
1825
|
+
this.editingCellField = null;
|
|
1826
|
+
this.editingCellData = null;
|
|
1827
|
+
this.initialized = null;
|
|
1828
|
+
}
|
|
1829
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TreeTable, deps: [{ token: DOCUMENT }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: TreeTableService }, { token: i1.FilterService }, { token: i1.caxConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
1830
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.2.9", type: TreeTable, selector: "p-treeTable", inputs: { columns: "columns", style: "style", styleClass: "styleClass", tableStyle: "tableStyle", tableStyleClass: "tableStyleClass", autoLayout: ["autoLayout", "autoLayout", booleanAttribute], lazy: ["lazy", "lazy", booleanAttribute], lazyLoadOnInit: ["lazyLoadOnInit", "lazyLoadOnInit", booleanAttribute], paginator: ["paginator", "paginator", booleanAttribute], rows: ["rows", "rows", numberAttribute], first: ["first", "first", numberAttribute], pageLinks: ["pageLinks", "pageLinks", numberAttribute], rowsPerPageOptions: "rowsPerPageOptions", alwaysShowPaginator: ["alwaysShowPaginator", "alwaysShowPaginator", booleanAttribute], paginatorPosition: "paginatorPosition", paginatorStyleClass: "paginatorStyleClass", paginatorDropdownAppendTo: "paginatorDropdownAppendTo", currentPageReportTemplate: "currentPageReportTemplate", showCurrentPageReport: ["showCurrentPageReport", "showCurrentPageReport", booleanAttribute], showJumpToPageDropdown: ["showJumpToPageDropdown", "showJumpToPageDropdown", booleanAttribute], showFirstLastIcon: ["showFirstLastIcon", "showFirstLastIcon", booleanAttribute], showPageLinks: ["showPageLinks", "showPageLinks", booleanAttribute], defaultSortOrder: ["defaultSortOrder", "defaultSortOrder", numberAttribute], sortMode: "sortMode", resetPageOnSort: ["resetPageOnSort", "resetPageOnSort", booleanAttribute], customSort: ["customSort", "customSort", booleanAttribute], selectionMode: "selectionMode", contextMenuSelection: "contextMenuSelection", contextMenuSelectionMode: "contextMenuSelectionMode", dataKey: "dataKey", metaKeySelection: ["metaKeySelection", "metaKeySelection", booleanAttribute], compareSelectionBy: "compareSelectionBy", rowHover: ["rowHover", "rowHover", booleanAttribute], loading: ["loading", "loading", booleanAttribute], loadingIcon: "loadingIcon", showLoader: ["showLoader", "showLoader", booleanAttribute], scrollable: ["scrollable", "scrollable", booleanAttribute], scrollHeight: "scrollHeight", virtualScroll: ["virtualScroll", "virtualScroll", booleanAttribute], virtualScrollItemSize: ["virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], virtualScrollOptions: "virtualScrollOptions", virtualScrollDelay: ["virtualScrollDelay", "virtualScrollDelay", numberAttribute], frozenWidth: "frozenWidth", frozenColumns: "frozenColumns", resizableColumns: ["resizableColumns", "resizableColumns", booleanAttribute], columnResizeMode: "columnResizeMode", reorderableColumns: ["reorderableColumns", "reorderableColumns", booleanAttribute], contextMenu: "contextMenu", rowTrackBy: "rowTrackBy", filters: "filters", globalFilterFields: "globalFilterFields", filterDelay: ["filterDelay", "filterDelay", numberAttribute], filterMode: "filterMode", filterLocale: "filterLocale", paginatorLocale: "paginatorLocale", totalRecords: "totalRecords", sortField: "sortField", sortOrder: "sortOrder", multiSortMeta: "multiSortMeta", selection: "selection", value: "value", virtualRowHeight: "virtualRowHeight", selectionKeys: "selectionKeys" }, outputs: { selectionChange: "selectionChange", contextMenuSelectionChange: "contextMenuSelectionChange", onFilter: "onFilter", onNodeExpand: "onNodeExpand", onNodeCollapse: "onNodeCollapse", onPage: "onPage", onSort: "onSort", onLazyLoad: "onLazyLoad", sortFunction: "sortFunction", onColResize: "onColResize", onColReorder: "onColReorder", onNodeSelect: "onNodeSelect", onNodeUnselect: "onNodeUnselect", onContextMenuSelect: "onContextMenuSelect", onHeaderCheckboxToggle: "onHeaderCheckboxToggle", onEditInit: "onEditInit", onEditComplete: "onEditComplete", onEditCancel: "onEditCancel", selectionKeysChange: "selectionKeysChange" }, host: { classAttribute: "cax-element" }, providers: [TreeTableService], queries: [{ propertyName: "templates", predicate: CaxTemplate }], viewQueries: [{ propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }, { propertyName: "resizeHelperViewChild", first: true, predicate: ["resizeHelper"], descendants: true }, { propertyName: "reorderIndicatorUpViewChild", first: true, predicate: ["reorderIndicatorUp"], descendants: true }, { propertyName: "reorderIndicatorDownViewChild", first: true, predicate: ["reorderIndicatorDown"], descendants: true }, { propertyName: "tableViewChild", first: true, predicate: ["table"], descendants: true }, { propertyName: "scrollableViewChild", first: true, predicate: ["scrollableView"], descendants: true }, { propertyName: "scrollableFrozenViewChild", first: true, predicate: ["scrollableFrozenView"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
1831
|
+
<div
|
|
1832
|
+
#container
|
|
1833
|
+
[ngStyle]="style"
|
|
1834
|
+
[class]="styleClass"
|
|
1835
|
+
data-scrollselectors=".p-treetable-scrollable-body"
|
|
1836
|
+
[ngClass]="{
|
|
1837
|
+
'p-treetable p-component': true,
|
|
1838
|
+
'p-treetable-hoverable-rows': rowHover || selectionMode === 'single' || selectionMode === 'multiple',
|
|
1839
|
+
'p-treetable-auto-layout': autoLayout,
|
|
1840
|
+
'p-treetable-resizable': resizableColumns,
|
|
1841
|
+
'p-treetable-resizable-fit': resizableColumns && columnResizeMode === 'fit',
|
|
1842
|
+
'p-treetable-flex-scrollable': scrollable && scrollHeight === 'flex'
|
|
1843
|
+
}"
|
|
1844
|
+
>
|
|
1845
|
+
<div class="p-treetable-loading" *ngIf="loading && showLoader">
|
|
1846
|
+
<div class="p-treetable-loading-overlay p-component-overlay">
|
|
1847
|
+
<i *ngIf="loadingIcon" [class]="'p-treetable-loading-icon pi-spin ' + loadingIcon"></i>
|
|
1848
|
+
<ng-container *ngIf="!loadingIcon">
|
|
1849
|
+
<SpinnerIcon *ngIf="!loadingIconTemplate" [spin]="true" [styleClass]="'p-treetable-loading-icon'" />
|
|
1850
|
+
<span *ngIf="loadingIconTemplate" class="p-treetable-loading-icon">
|
|
1851
|
+
<ng-template *ngTemplateOutlet="loadingIconTemplate"></ng-template>
|
|
1852
|
+
</span>
|
|
1853
|
+
</ng-container>
|
|
1854
|
+
</div>
|
|
1855
|
+
</div>
|
|
1856
|
+
<div *ngIf="captionTemplate" class="p-treetable-header">
|
|
1857
|
+
<ng-container *ngTemplateOutlet="captionTemplate"></ng-container>
|
|
1858
|
+
</div>
|
|
1859
|
+
<p-paginator
|
|
1860
|
+
[rows]="rows"
|
|
1861
|
+
[first]="first"
|
|
1862
|
+
[totalRecords]="totalRecords"
|
|
1863
|
+
[pageLinkSize]="pageLinks"
|
|
1864
|
+
styleClass="p-paginator-top"
|
|
1865
|
+
[alwaysShow]="alwaysShowPaginator"
|
|
1866
|
+
(onPageChange)="onPageChange($event)"
|
|
1867
|
+
[rowsPerPageOptions]="rowsPerPageOptions"
|
|
1868
|
+
*ngIf="paginator && (paginatorPosition === 'top' || paginatorPosition == 'both')"
|
|
1869
|
+
[templateLeft]="paginatorLeftTemplate"
|
|
1870
|
+
[templateRight]="paginatorRightTemplate"
|
|
1871
|
+
[dropdownAppendTo]="paginatorDropdownAppendTo"
|
|
1872
|
+
[currentPageReportTemplate]="currentPageReportTemplate"
|
|
1873
|
+
[showFirstLastIcon]="showFirstLastIcon"
|
|
1874
|
+
[dropdownItemTemplate]="paginatorDropdownItemTemplate"
|
|
1875
|
+
[showCurrentPageReport]="showCurrentPageReport"
|
|
1876
|
+
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
|
1877
|
+
[showPageLinks]="showPageLinks"
|
|
1878
|
+
[styleClass]="paginatorStyleClass"
|
|
1879
|
+
[locale]="paginatorLocale"
|
|
1880
|
+
>
|
|
1881
|
+
<ng-template caxTemplate="firstpagelinkicon" *ngIf="paginatorFirstPageLinkIconTemplate">
|
|
1882
|
+
<ng-container *ngTemplateOutlet="paginatorFirstPageLinkIconTemplate"></ng-container>
|
|
1883
|
+
</ng-template>
|
|
1884
|
+
|
|
1885
|
+
<ng-template caxTemplate="previouspagelinkicon" *ngIf="paginatorPreviousPageLinkIconTemplate">
|
|
1886
|
+
<ng-container *ngTemplateOutlet="paginatorPreviousPageLinkIconTemplate"></ng-container>
|
|
1887
|
+
</ng-template>
|
|
1888
|
+
|
|
1889
|
+
<ng-template caxTemplate="lastpagelinkicon" *ngIf="paginatorLastPageLinkIconTemplate">
|
|
1890
|
+
<ng-container *ngTemplateOutlet="paginatorLastPageLinkIconTemplate"></ng-container>
|
|
1891
|
+
</ng-template>
|
|
1892
|
+
|
|
1893
|
+
<ng-template caxTemplate="nextpagelinkicon" *ngIf="paginatorNextPageLinkIconTemplate">
|
|
1894
|
+
<ng-container *ngTemplateOutlet="paginatorNextPageLinkIconTemplate"></ng-container>
|
|
1895
|
+
</ng-template>
|
|
1896
|
+
</p-paginator>
|
|
1897
|
+
|
|
1898
|
+
<div class="p-treetable-wrapper" *ngIf="!scrollable">
|
|
1899
|
+
<table role="table" #table [ngClass]="tableStyleClass" [ngStyle]="tableStyle">
|
|
1900
|
+
<ng-container *ngTemplateOutlet="colGroupTemplate; context: { $implicit: columns }"></ng-container>
|
|
1901
|
+
<thead role="rowgroup" class="p-treetable-thead">
|
|
1902
|
+
<ng-container *ngTemplateOutlet="headerTemplate; context: { $implicit: columns }"></ng-container>
|
|
1903
|
+
</thead>
|
|
1904
|
+
<tbody class="p-treetable-tbody" role="rowgroup" [pTreeTableBody]="columns" [pTreeTableBodyTemplate]="bodyTemplate"></tbody>
|
|
1905
|
+
<tfoot class="p-treetable-tfoot" role="rowgroup">
|
|
1906
|
+
<ng-container *ngTemplateOutlet="footerTemplate; context: { $implicit: columns }"></ng-container>
|
|
1907
|
+
</tfoot>
|
|
1908
|
+
</table>
|
|
1909
|
+
</div>
|
|
1910
|
+
|
|
1911
|
+
<div class="p-treetable-scrollable-wrapper" *ngIf="scrollable">
|
|
1912
|
+
<div
|
|
1913
|
+
class="p-treetable-scrollable-view p-treetable-frozen-view"
|
|
1914
|
+
*ngIf="frozenColumns || frozenBodyTemplate"
|
|
1915
|
+
#scrollableFrozenView
|
|
1916
|
+
[ttScrollableView]="frozenColumns"
|
|
1917
|
+
[frozen]="true"
|
|
1918
|
+
[ngStyle]="{ width: frozenWidth }"
|
|
1919
|
+
[scrollHeight]="scrollHeight"
|
|
1920
|
+
></div>
|
|
1921
|
+
<div class="p-treetable-scrollable-view" #scrollableView [ttScrollableView]="columns" [frozen]="false" [scrollHeight]="scrollHeight" [ngStyle]="{ left: frozenWidth, width: 'calc(100% - ' + frozenWidth + ')' }"></div>
|
|
1922
|
+
</div>
|
|
1923
|
+
|
|
1924
|
+
<p-paginator
|
|
1925
|
+
[rows]="rows"
|
|
1926
|
+
[first]="first"
|
|
1927
|
+
[totalRecords]="totalRecords"
|
|
1928
|
+
[pageLinkSize]="pageLinks"
|
|
1929
|
+
styleClass="p-paginator-bottom"
|
|
1930
|
+
[alwaysShow]="alwaysShowPaginator"
|
|
1931
|
+
(onPageChange)="onPageChange($event)"
|
|
1932
|
+
[rowsPerPageOptions]="rowsPerPageOptions"
|
|
1933
|
+
*ngIf="paginator && (paginatorPosition === 'bottom' || paginatorPosition == 'both')"
|
|
1934
|
+
[templateLeft]="paginatorLeftTemplate"
|
|
1935
|
+
[templateRight]="paginatorRightTemplate"
|
|
1936
|
+
[dropdownAppendTo]="paginatorDropdownAppendTo"
|
|
1937
|
+
[currentPageReportTemplate]="currentPageReportTemplate"
|
|
1938
|
+
[showFirstLastIcon]="showFirstLastIcon"
|
|
1939
|
+
[dropdownItemTemplate]="paginatorDropdownItemTemplate"
|
|
1940
|
+
[showCurrentPageReport]="showCurrentPageReport"
|
|
1941
|
+
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
|
1942
|
+
[showPageLinks]="showPageLinks"
|
|
1943
|
+
[styleClass]="paginatorStyleClass"
|
|
1944
|
+
[locale]="paginatorLocale"
|
|
1945
|
+
>
|
|
1946
|
+
<ng-template caxTemplate="firstpagelinkicon" *ngIf="paginatorFirstPageLinkIconTemplate">
|
|
1947
|
+
<ng-container *ngTemplateOutlet="paginatorFirstPageLinkIconTemplate"></ng-container>
|
|
1948
|
+
</ng-template>
|
|
1949
|
+
|
|
1950
|
+
<ng-template caxTemplate="previouspagelinkicon" *ngIf="paginatorPreviousPageLinkIconTemplate">
|
|
1951
|
+
<ng-container *ngTemplateOutlet="paginatorPreviousPageLinkIconTemplate"></ng-container>
|
|
1952
|
+
</ng-template>
|
|
1953
|
+
|
|
1954
|
+
<ng-template caxTemplate="lastpagelinkicon" *ngIf="paginatorLastPageLinkIconTemplate">
|
|
1955
|
+
<ng-container *ngTemplateOutlet="paginatorLastPageLinkIconTemplate"></ng-container>
|
|
1956
|
+
</ng-template>
|
|
1957
|
+
|
|
1958
|
+
<ng-template caxTemplate="nextpagelinkicon" *ngIf="paginatorNextPageLinkIconTemplate">
|
|
1959
|
+
<ng-container *ngTemplateOutlet="paginatorNextPageLinkIconTemplate"></ng-container>
|
|
1960
|
+
</ng-template>
|
|
1961
|
+
</p-paginator>
|
|
1962
|
+
<div *ngIf="summaryTemplate" class="p-treetable-footer">
|
|
1963
|
+
<ng-container *ngTemplateOutlet="summaryTemplate"></ng-container>
|
|
1964
|
+
</div>
|
|
1965
|
+
|
|
1966
|
+
<div #resizeHelper class="p-column-resizer-helper" [ngStyle]="{ display: 'none' }" *ngIf="resizableColumns"></div>
|
|
1967
|
+
<span #reorderIndicatorUp class="p-treetable-reorder-indicator-up" [ngStyle]="{ display: 'none' }" *ngIf="reorderableColumns">
|
|
1968
|
+
<ArrowDownIcon *ngIf="!reorderIndicatorUpIconTemplate" />
|
|
1969
|
+
<ng-template *ngTemplateOutlet="reorderIndicatorUpIconTemplate"></ng-template>
|
|
1970
|
+
</span>
|
|
1971
|
+
<span #reorderIndicatorDown class="p-treetable-reorder-indicator-down" [ngStyle]="{ display: 'none' }" *ngIf="reorderableColumns">
|
|
1972
|
+
<ArrowUpIcon *ngIf="!reorderIndicatorDownIconTemplate" />
|
|
1973
|
+
<ng-template *ngTemplateOutlet="reorderIndicatorDownIconTemplate"></ng-template>
|
|
1974
|
+
</span>
|
|
1975
|
+
</div>
|
|
1976
|
+
`, isInline: true, styles: ["@layer cax{.p-treetable{position:relative}.p-treetable table{border-collapse:collapse;width:100%;table-layout:fixed}.p-treetable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-treetable .p-sortable-column .p-column-title,.p-treetable .p-sortable-column .p-sortable-column-icon,.p-treetable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-treetable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-treetable-auto-layout>.p-treetable-wrapper{overflow-x:auto}.p-treetable-auto-layout>.p-treetable-wrapper>table{table-layout:auto}.p-treetable-hoverable-rows .p-treetable-tbody>tr{cursor:pointer}.p-treetable-toggler{cursor:pointer;-webkit-user-select:none;user-select:none;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;overflow:hidden;position:relative}p-treetabletoggler+p-treetablecheckbox .p-checkbox{vertical-align:middle}p-treetabletoggler+p-treetablecheckbox+span{vertical-align:middle}.p-treetable-scrollable-wrapper{position:relative}.p-treetable-scrollable-header,.p-treetable-scrollable-footer{overflow:hidden;flex-shrink:0}.p-treetable-scrollable-body{overflow:auto;position:relative}.p-treetable-scrollable-body>table>.p-treetable-tbody>tr:first-child>td{border-top:0 none}.p-treetable-virtual-table{position:absolute}.p-treetable-frozen-view .p-treetable-scrollable-body{overflow:hidden}.p-treetable-frozen-view>.p-treetable-scrollable-body>table>.p-treetable-tbody>tr>td:last-child{border-right:0 none}.p-treetable-unfrozen-view{position:absolute;top:0}.p-treetable-flex-scrollable,.p-treetable-flex-scrollable .p-treetable-scrollable-wrapper,.p-treetable-flex-scrollable .p-treetable-scrollable-view{display:flex;flex-direction:column;flex:1;height:100%}.p-treetable-flex-scrollable .p-treetable-virtual-scrollable-body{flex:1}.p-treetable-resizable>.p-treetable-wrapper{overflow-x:auto}.p-treetable-resizable .p-treetable-thead>tr>th,.p-treetable-resizable .p-treetable-tfoot>tr>td,.p-treetable-resizable .p-treetable-tbody>tr>td{overflow:hidden}.p-treetable-resizable .p-resizable-column{background-clip:padding-box;position:relative}.p-treetable-resizable-fit .p-resizable-column:last-child .p-column-resizer{display:none}.p-treetable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-treetable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-treetable .p-row-editor-init,.p-treetable .p-row-editor-save,.p-treetable .p-row-editor-cancel,.p-treetable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-treetable-reorder-indicator-up,.p-treetable-reorder-indicator-down{position:absolute;display:none}[ttReorderableColumn]{cursor:move}.p-treetable .p-treetable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-treetable .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i0.forwardRef(() => i1.CaxTemplate), selector: "[caxTemplate]", inputs: ["type", "caxTemplate"] }, { kind: "component", type: i0.forwardRef(() => SpinnerIcon), selector: "SpinnerIcon" }, { kind: "component", type: i0.forwardRef(() => ArrowDownIcon), selector: "ArrowDownIcon" }, { kind: "component", type: i0.forwardRef(() => ArrowUpIcon), selector: "ArrowUpIcon" }, { kind: "component", type: i0.forwardRef(() => TTScrollableView), selector: "[ttScrollableView]", inputs: ["ttScrollableView", "frozen", "scrollHeight"] }, { kind: "component", type: i0.forwardRef(() => TTBody), selector: "[pTreeTableBody]", inputs: ["pTreeTableBody", "pTreeTableBodyTemplate", "frozen", "serializedNodes", "scrollerOptions"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1977
|
+
}
|
|
1978
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TreeTable, decorators: [{
|
|
1979
|
+
type: Component,
|
|
1980
|
+
args: [{ selector: 'p-treeTable', template: `
|
|
1981
|
+
<div
|
|
1982
|
+
#container
|
|
1983
|
+
[ngStyle]="style"
|
|
1984
|
+
[class]="styleClass"
|
|
1985
|
+
data-scrollselectors=".p-treetable-scrollable-body"
|
|
1986
|
+
[ngClass]="{
|
|
1987
|
+
'p-treetable p-component': true,
|
|
1988
|
+
'p-treetable-hoverable-rows': rowHover || selectionMode === 'single' || selectionMode === 'multiple',
|
|
1989
|
+
'p-treetable-auto-layout': autoLayout,
|
|
1990
|
+
'p-treetable-resizable': resizableColumns,
|
|
1991
|
+
'p-treetable-resizable-fit': resizableColumns && columnResizeMode === 'fit',
|
|
1992
|
+
'p-treetable-flex-scrollable': scrollable && scrollHeight === 'flex'
|
|
1993
|
+
}"
|
|
1994
|
+
>
|
|
1995
|
+
<div class="p-treetable-loading" *ngIf="loading && showLoader">
|
|
1996
|
+
<div class="p-treetable-loading-overlay p-component-overlay">
|
|
1997
|
+
<i *ngIf="loadingIcon" [class]="'p-treetable-loading-icon pi-spin ' + loadingIcon"></i>
|
|
1998
|
+
<ng-container *ngIf="!loadingIcon">
|
|
1999
|
+
<SpinnerIcon *ngIf="!loadingIconTemplate" [spin]="true" [styleClass]="'p-treetable-loading-icon'" />
|
|
2000
|
+
<span *ngIf="loadingIconTemplate" class="p-treetable-loading-icon">
|
|
2001
|
+
<ng-template *ngTemplateOutlet="loadingIconTemplate"></ng-template>
|
|
2002
|
+
</span>
|
|
2003
|
+
</ng-container>
|
|
2004
|
+
</div>
|
|
2005
|
+
</div>
|
|
2006
|
+
<div *ngIf="captionTemplate" class="p-treetable-header">
|
|
2007
|
+
<ng-container *ngTemplateOutlet="captionTemplate"></ng-container>
|
|
2008
|
+
</div>
|
|
2009
|
+
<p-paginator
|
|
2010
|
+
[rows]="rows"
|
|
2011
|
+
[first]="first"
|
|
2012
|
+
[totalRecords]="totalRecords"
|
|
2013
|
+
[pageLinkSize]="pageLinks"
|
|
2014
|
+
styleClass="p-paginator-top"
|
|
2015
|
+
[alwaysShow]="alwaysShowPaginator"
|
|
2016
|
+
(onPageChange)="onPageChange($event)"
|
|
2017
|
+
[rowsPerPageOptions]="rowsPerPageOptions"
|
|
2018
|
+
*ngIf="paginator && (paginatorPosition === 'top' || paginatorPosition == 'both')"
|
|
2019
|
+
[templateLeft]="paginatorLeftTemplate"
|
|
2020
|
+
[templateRight]="paginatorRightTemplate"
|
|
2021
|
+
[dropdownAppendTo]="paginatorDropdownAppendTo"
|
|
2022
|
+
[currentPageReportTemplate]="currentPageReportTemplate"
|
|
2023
|
+
[showFirstLastIcon]="showFirstLastIcon"
|
|
2024
|
+
[dropdownItemTemplate]="paginatorDropdownItemTemplate"
|
|
2025
|
+
[showCurrentPageReport]="showCurrentPageReport"
|
|
2026
|
+
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
|
2027
|
+
[showPageLinks]="showPageLinks"
|
|
2028
|
+
[styleClass]="paginatorStyleClass"
|
|
2029
|
+
[locale]="paginatorLocale"
|
|
2030
|
+
>
|
|
2031
|
+
<ng-template caxTemplate="firstpagelinkicon" *ngIf="paginatorFirstPageLinkIconTemplate">
|
|
2032
|
+
<ng-container *ngTemplateOutlet="paginatorFirstPageLinkIconTemplate"></ng-container>
|
|
2033
|
+
</ng-template>
|
|
2034
|
+
|
|
2035
|
+
<ng-template caxTemplate="previouspagelinkicon" *ngIf="paginatorPreviousPageLinkIconTemplate">
|
|
2036
|
+
<ng-container *ngTemplateOutlet="paginatorPreviousPageLinkIconTemplate"></ng-container>
|
|
2037
|
+
</ng-template>
|
|
2038
|
+
|
|
2039
|
+
<ng-template caxTemplate="lastpagelinkicon" *ngIf="paginatorLastPageLinkIconTemplate">
|
|
2040
|
+
<ng-container *ngTemplateOutlet="paginatorLastPageLinkIconTemplate"></ng-container>
|
|
2041
|
+
</ng-template>
|
|
2042
|
+
|
|
2043
|
+
<ng-template caxTemplate="nextpagelinkicon" *ngIf="paginatorNextPageLinkIconTemplate">
|
|
2044
|
+
<ng-container *ngTemplateOutlet="paginatorNextPageLinkIconTemplate"></ng-container>
|
|
2045
|
+
</ng-template>
|
|
2046
|
+
</p-paginator>
|
|
2047
|
+
|
|
2048
|
+
<div class="p-treetable-wrapper" *ngIf="!scrollable">
|
|
2049
|
+
<table role="table" #table [ngClass]="tableStyleClass" [ngStyle]="tableStyle">
|
|
2050
|
+
<ng-container *ngTemplateOutlet="colGroupTemplate; context: { $implicit: columns }"></ng-container>
|
|
2051
|
+
<thead role="rowgroup" class="p-treetable-thead">
|
|
2052
|
+
<ng-container *ngTemplateOutlet="headerTemplate; context: { $implicit: columns }"></ng-container>
|
|
2053
|
+
</thead>
|
|
2054
|
+
<tbody class="p-treetable-tbody" role="rowgroup" [pTreeTableBody]="columns" [pTreeTableBodyTemplate]="bodyTemplate"></tbody>
|
|
2055
|
+
<tfoot class="p-treetable-tfoot" role="rowgroup">
|
|
2056
|
+
<ng-container *ngTemplateOutlet="footerTemplate; context: { $implicit: columns }"></ng-container>
|
|
2057
|
+
</tfoot>
|
|
2058
|
+
</table>
|
|
2059
|
+
</div>
|
|
2060
|
+
|
|
2061
|
+
<div class="p-treetable-scrollable-wrapper" *ngIf="scrollable">
|
|
2062
|
+
<div
|
|
2063
|
+
class="p-treetable-scrollable-view p-treetable-frozen-view"
|
|
2064
|
+
*ngIf="frozenColumns || frozenBodyTemplate"
|
|
2065
|
+
#scrollableFrozenView
|
|
2066
|
+
[ttScrollableView]="frozenColumns"
|
|
2067
|
+
[frozen]="true"
|
|
2068
|
+
[ngStyle]="{ width: frozenWidth }"
|
|
2069
|
+
[scrollHeight]="scrollHeight"
|
|
2070
|
+
></div>
|
|
2071
|
+
<div class="p-treetable-scrollable-view" #scrollableView [ttScrollableView]="columns" [frozen]="false" [scrollHeight]="scrollHeight" [ngStyle]="{ left: frozenWidth, width: 'calc(100% - ' + frozenWidth + ')' }"></div>
|
|
2072
|
+
</div>
|
|
2073
|
+
|
|
2074
|
+
<p-paginator
|
|
2075
|
+
[rows]="rows"
|
|
2076
|
+
[first]="first"
|
|
2077
|
+
[totalRecords]="totalRecords"
|
|
2078
|
+
[pageLinkSize]="pageLinks"
|
|
2079
|
+
styleClass="p-paginator-bottom"
|
|
2080
|
+
[alwaysShow]="alwaysShowPaginator"
|
|
2081
|
+
(onPageChange)="onPageChange($event)"
|
|
2082
|
+
[rowsPerPageOptions]="rowsPerPageOptions"
|
|
2083
|
+
*ngIf="paginator && (paginatorPosition === 'bottom' || paginatorPosition == 'both')"
|
|
2084
|
+
[templateLeft]="paginatorLeftTemplate"
|
|
2085
|
+
[templateRight]="paginatorRightTemplate"
|
|
2086
|
+
[dropdownAppendTo]="paginatorDropdownAppendTo"
|
|
2087
|
+
[currentPageReportTemplate]="currentPageReportTemplate"
|
|
2088
|
+
[showFirstLastIcon]="showFirstLastIcon"
|
|
2089
|
+
[dropdownItemTemplate]="paginatorDropdownItemTemplate"
|
|
2090
|
+
[showCurrentPageReport]="showCurrentPageReport"
|
|
2091
|
+
[showJumpToPageDropdown]="showJumpToPageDropdown"
|
|
2092
|
+
[showPageLinks]="showPageLinks"
|
|
2093
|
+
[styleClass]="paginatorStyleClass"
|
|
2094
|
+
[locale]="paginatorLocale"
|
|
2095
|
+
>
|
|
2096
|
+
<ng-template caxTemplate="firstpagelinkicon" *ngIf="paginatorFirstPageLinkIconTemplate">
|
|
2097
|
+
<ng-container *ngTemplateOutlet="paginatorFirstPageLinkIconTemplate"></ng-container>
|
|
2098
|
+
</ng-template>
|
|
2099
|
+
|
|
2100
|
+
<ng-template caxTemplate="previouspagelinkicon" *ngIf="paginatorPreviousPageLinkIconTemplate">
|
|
2101
|
+
<ng-container *ngTemplateOutlet="paginatorPreviousPageLinkIconTemplate"></ng-container>
|
|
2102
|
+
</ng-template>
|
|
2103
|
+
|
|
2104
|
+
<ng-template caxTemplate="lastpagelinkicon" *ngIf="paginatorLastPageLinkIconTemplate">
|
|
2105
|
+
<ng-container *ngTemplateOutlet="paginatorLastPageLinkIconTemplate"></ng-container>
|
|
2106
|
+
</ng-template>
|
|
2107
|
+
|
|
2108
|
+
<ng-template caxTemplate="nextpagelinkicon" *ngIf="paginatorNextPageLinkIconTemplate">
|
|
2109
|
+
<ng-container *ngTemplateOutlet="paginatorNextPageLinkIconTemplate"></ng-container>
|
|
2110
|
+
</ng-template>
|
|
2111
|
+
</p-paginator>
|
|
2112
|
+
<div *ngIf="summaryTemplate" class="p-treetable-footer">
|
|
2113
|
+
<ng-container *ngTemplateOutlet="summaryTemplate"></ng-container>
|
|
2114
|
+
</div>
|
|
2115
|
+
|
|
2116
|
+
<div #resizeHelper class="p-column-resizer-helper" [ngStyle]="{ display: 'none' }" *ngIf="resizableColumns"></div>
|
|
2117
|
+
<span #reorderIndicatorUp class="p-treetable-reorder-indicator-up" [ngStyle]="{ display: 'none' }" *ngIf="reorderableColumns">
|
|
2118
|
+
<ArrowDownIcon *ngIf="!reorderIndicatorUpIconTemplate" />
|
|
2119
|
+
<ng-template *ngTemplateOutlet="reorderIndicatorUpIconTemplate"></ng-template>
|
|
2120
|
+
</span>
|
|
2121
|
+
<span #reorderIndicatorDown class="p-treetable-reorder-indicator-down" [ngStyle]="{ display: 'none' }" *ngIf="reorderableColumns">
|
|
2122
|
+
<ArrowUpIcon *ngIf="!reorderIndicatorDownIconTemplate" />
|
|
2123
|
+
<ng-template *ngTemplateOutlet="reorderIndicatorDownIconTemplate"></ng-template>
|
|
2124
|
+
</span>
|
|
2125
|
+
</div>
|
|
2126
|
+
`, providers: [TreeTableService], encapsulation: ViewEncapsulation.None, host: {
|
|
2127
|
+
class: 'cax-element'
|
|
2128
|
+
}, styles: ["@layer cax{.p-treetable{position:relative}.p-treetable table{border-collapse:collapse;width:100%;table-layout:fixed}.p-treetable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-treetable .p-sortable-column .p-column-title,.p-treetable .p-sortable-column .p-sortable-column-icon,.p-treetable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-treetable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-treetable-auto-layout>.p-treetable-wrapper{overflow-x:auto}.p-treetable-auto-layout>.p-treetable-wrapper>table{table-layout:auto}.p-treetable-hoverable-rows .p-treetable-tbody>tr{cursor:pointer}.p-treetable-toggler{cursor:pointer;-webkit-user-select:none;user-select:none;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;overflow:hidden;position:relative}p-treetabletoggler+p-treetablecheckbox .p-checkbox{vertical-align:middle}p-treetabletoggler+p-treetablecheckbox+span{vertical-align:middle}.p-treetable-scrollable-wrapper{position:relative}.p-treetable-scrollable-header,.p-treetable-scrollable-footer{overflow:hidden;flex-shrink:0}.p-treetable-scrollable-body{overflow:auto;position:relative}.p-treetable-scrollable-body>table>.p-treetable-tbody>tr:first-child>td{border-top:0 none}.p-treetable-virtual-table{position:absolute}.p-treetable-frozen-view .p-treetable-scrollable-body{overflow:hidden}.p-treetable-frozen-view>.p-treetable-scrollable-body>table>.p-treetable-tbody>tr>td:last-child{border-right:0 none}.p-treetable-unfrozen-view{position:absolute;top:0}.p-treetable-flex-scrollable,.p-treetable-flex-scrollable .p-treetable-scrollable-wrapper,.p-treetable-flex-scrollable .p-treetable-scrollable-view{display:flex;flex-direction:column;flex:1;height:100%}.p-treetable-flex-scrollable .p-treetable-virtual-scrollable-body{flex:1}.p-treetable-resizable>.p-treetable-wrapper{overflow-x:auto}.p-treetable-resizable .p-treetable-thead>tr>th,.p-treetable-resizable .p-treetable-tfoot>tr>td,.p-treetable-resizable .p-treetable-tbody>tr>td{overflow:hidden}.p-treetable-resizable .p-resizable-column{background-clip:padding-box;position:relative}.p-treetable-resizable-fit .p-resizable-column:last-child .p-column-resizer{display:none}.p-treetable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-treetable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-treetable .p-row-editor-init,.p-treetable .p-row-editor-save,.p-treetable .p-row-editor-cancel,.p-treetable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-treetable-reorder-indicator-up,.p-treetable-reorder-indicator-down{position:absolute;display:none}[ttReorderableColumn]{cursor:move}.p-treetable .p-treetable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-treetable .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}\n"] }]
|
|
2129
|
+
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
2130
|
+
type: Inject,
|
|
2131
|
+
args: [DOCUMENT]
|
|
2132
|
+
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: TreeTableService }, { type: i1.FilterService }, { type: i1.caxConfig }], propDecorators: { columns: [{
|
|
2133
|
+
type: Input
|
|
2134
|
+
}], style: [{
|
|
2135
|
+
type: Input
|
|
2136
|
+
}], styleClass: [{
|
|
2137
|
+
type: Input
|
|
2138
|
+
}], tableStyle: [{
|
|
2139
|
+
type: Input
|
|
2140
|
+
}], tableStyleClass: [{
|
|
2141
|
+
type: Input
|
|
2142
|
+
}], autoLayout: [{
|
|
2143
|
+
type: Input,
|
|
2144
|
+
args: [{ transform: booleanAttribute }]
|
|
2145
|
+
}], lazy: [{
|
|
2146
|
+
type: Input,
|
|
2147
|
+
args: [{ transform: booleanAttribute }]
|
|
2148
|
+
}], lazyLoadOnInit: [{
|
|
2149
|
+
type: Input,
|
|
2150
|
+
args: [{ transform: booleanAttribute }]
|
|
2151
|
+
}], paginator: [{
|
|
2152
|
+
type: Input,
|
|
2153
|
+
args: [{ transform: booleanAttribute }]
|
|
2154
|
+
}], rows: [{
|
|
2155
|
+
type: Input,
|
|
2156
|
+
args: [{ transform: numberAttribute }]
|
|
2157
|
+
}], first: [{
|
|
2158
|
+
type: Input,
|
|
2159
|
+
args: [{ transform: numberAttribute }]
|
|
2160
|
+
}], pageLinks: [{
|
|
2161
|
+
type: Input,
|
|
2162
|
+
args: [{ transform: numberAttribute }]
|
|
2163
|
+
}], rowsPerPageOptions: [{
|
|
2164
|
+
type: Input
|
|
2165
|
+
}], alwaysShowPaginator: [{
|
|
2166
|
+
type: Input,
|
|
2167
|
+
args: [{ transform: booleanAttribute }]
|
|
2168
|
+
}], paginatorPosition: [{
|
|
2169
|
+
type: Input
|
|
2170
|
+
}], paginatorStyleClass: [{
|
|
2171
|
+
type: Input
|
|
2172
|
+
}], paginatorDropdownAppendTo: [{
|
|
2173
|
+
type: Input
|
|
2174
|
+
}], currentPageReportTemplate: [{
|
|
2175
|
+
type: Input
|
|
2176
|
+
}], showCurrentPageReport: [{
|
|
2177
|
+
type: Input,
|
|
2178
|
+
args: [{ transform: booleanAttribute }]
|
|
2179
|
+
}], showJumpToPageDropdown: [{
|
|
2180
|
+
type: Input,
|
|
2181
|
+
args: [{ transform: booleanAttribute }]
|
|
2182
|
+
}], showFirstLastIcon: [{
|
|
2183
|
+
type: Input,
|
|
2184
|
+
args: [{ transform: booleanAttribute }]
|
|
2185
|
+
}], showPageLinks: [{
|
|
2186
|
+
type: Input,
|
|
2187
|
+
args: [{ transform: booleanAttribute }]
|
|
2188
|
+
}], defaultSortOrder: [{
|
|
2189
|
+
type: Input,
|
|
2190
|
+
args: [{ transform: numberAttribute }]
|
|
2191
|
+
}], sortMode: [{
|
|
2192
|
+
type: Input
|
|
2193
|
+
}], resetPageOnSort: [{
|
|
2194
|
+
type: Input,
|
|
2195
|
+
args: [{ transform: booleanAttribute }]
|
|
2196
|
+
}], customSort: [{
|
|
2197
|
+
type: Input,
|
|
2198
|
+
args: [{ transform: booleanAttribute }]
|
|
2199
|
+
}], selectionMode: [{
|
|
2200
|
+
type: Input
|
|
2201
|
+
}], contextMenuSelection: [{
|
|
2202
|
+
type: Input
|
|
2203
|
+
}], contextMenuSelectionMode: [{
|
|
2204
|
+
type: Input
|
|
2205
|
+
}], dataKey: [{
|
|
2206
|
+
type: Input
|
|
2207
|
+
}], metaKeySelection: [{
|
|
2208
|
+
type: Input,
|
|
2209
|
+
args: [{ transform: booleanAttribute }]
|
|
2210
|
+
}], compareSelectionBy: [{
|
|
2211
|
+
type: Input
|
|
2212
|
+
}], rowHover: [{
|
|
2213
|
+
type: Input,
|
|
2214
|
+
args: [{ transform: booleanAttribute }]
|
|
2215
|
+
}], loading: [{
|
|
2216
|
+
type: Input,
|
|
2217
|
+
args: [{ transform: booleanAttribute }]
|
|
2218
|
+
}], loadingIcon: [{
|
|
2219
|
+
type: Input
|
|
2220
|
+
}], showLoader: [{
|
|
2221
|
+
type: Input,
|
|
2222
|
+
args: [{ transform: booleanAttribute }]
|
|
2223
|
+
}], scrollable: [{
|
|
2224
|
+
type: Input,
|
|
2225
|
+
args: [{ transform: booleanAttribute }]
|
|
2226
|
+
}], scrollHeight: [{
|
|
2227
|
+
type: Input
|
|
2228
|
+
}], virtualScroll: [{
|
|
2229
|
+
type: Input,
|
|
2230
|
+
args: [{ transform: booleanAttribute }]
|
|
2231
|
+
}], virtualScrollItemSize: [{
|
|
2232
|
+
type: Input,
|
|
2233
|
+
args: [{ transform: numberAttribute }]
|
|
2234
|
+
}], virtualScrollOptions: [{
|
|
2235
|
+
type: Input
|
|
2236
|
+
}], virtualScrollDelay: [{
|
|
2237
|
+
type: Input,
|
|
2238
|
+
args: [{ transform: numberAttribute }]
|
|
2239
|
+
}], frozenWidth: [{
|
|
2240
|
+
type: Input
|
|
2241
|
+
}], frozenColumns: [{
|
|
2242
|
+
type: Input
|
|
2243
|
+
}], resizableColumns: [{
|
|
2244
|
+
type: Input,
|
|
2245
|
+
args: [{ transform: booleanAttribute }]
|
|
2246
|
+
}], columnResizeMode: [{
|
|
2247
|
+
type: Input
|
|
2248
|
+
}], reorderableColumns: [{
|
|
2249
|
+
type: Input,
|
|
2250
|
+
args: [{ transform: booleanAttribute }]
|
|
2251
|
+
}], contextMenu: [{
|
|
2252
|
+
type: Input
|
|
2253
|
+
}], rowTrackBy: [{
|
|
2254
|
+
type: Input
|
|
2255
|
+
}], filters: [{
|
|
2256
|
+
type: Input
|
|
2257
|
+
}], globalFilterFields: [{
|
|
2258
|
+
type: Input
|
|
2259
|
+
}], filterDelay: [{
|
|
2260
|
+
type: Input,
|
|
2261
|
+
args: [{ transform: numberAttribute }]
|
|
2262
|
+
}], filterMode: [{
|
|
2263
|
+
type: Input
|
|
2264
|
+
}], filterLocale: [{
|
|
2265
|
+
type: Input
|
|
2266
|
+
}], paginatorLocale: [{
|
|
2267
|
+
type: Input
|
|
2268
|
+
}], totalRecords: [{
|
|
2269
|
+
type: Input
|
|
2270
|
+
}], sortField: [{
|
|
2271
|
+
type: Input
|
|
2272
|
+
}], sortOrder: [{
|
|
2273
|
+
type: Input
|
|
2274
|
+
}], multiSortMeta: [{
|
|
2275
|
+
type: Input
|
|
2276
|
+
}], selection: [{
|
|
2277
|
+
type: Input
|
|
2278
|
+
}], value: [{
|
|
2279
|
+
type: Input
|
|
2280
|
+
}], virtualRowHeight: [{
|
|
2281
|
+
type: Input
|
|
2282
|
+
}], selectionKeys: [{
|
|
2283
|
+
type: Input
|
|
2284
|
+
}], selectionChange: [{
|
|
2285
|
+
type: Output
|
|
2286
|
+
}], contextMenuSelectionChange: [{
|
|
2287
|
+
type: Output
|
|
2288
|
+
}], onFilter: [{
|
|
2289
|
+
type: Output
|
|
2290
|
+
}], onNodeExpand: [{
|
|
2291
|
+
type: Output
|
|
2292
|
+
}], onNodeCollapse: [{
|
|
2293
|
+
type: Output
|
|
2294
|
+
}], onPage: [{
|
|
2295
|
+
type: Output
|
|
2296
|
+
}], onSort: [{
|
|
2297
|
+
type: Output
|
|
2298
|
+
}], onLazyLoad: [{
|
|
2299
|
+
type: Output
|
|
2300
|
+
}], sortFunction: [{
|
|
2301
|
+
type: Output
|
|
2302
|
+
}], onColResize: [{
|
|
2303
|
+
type: Output
|
|
2304
|
+
}], onColReorder: [{
|
|
2305
|
+
type: Output
|
|
2306
|
+
}], onNodeSelect: [{
|
|
2307
|
+
type: Output
|
|
2308
|
+
}], onNodeUnselect: [{
|
|
2309
|
+
type: Output
|
|
2310
|
+
}], onContextMenuSelect: [{
|
|
2311
|
+
type: Output
|
|
2312
|
+
}], onHeaderCheckboxToggle: [{
|
|
2313
|
+
type: Output
|
|
2314
|
+
}], onEditInit: [{
|
|
2315
|
+
type: Output
|
|
2316
|
+
}], onEditComplete: [{
|
|
2317
|
+
type: Output
|
|
2318
|
+
}], onEditCancel: [{
|
|
2319
|
+
type: Output
|
|
2320
|
+
}], selectionKeysChange: [{
|
|
2321
|
+
type: Output
|
|
2322
|
+
}], containerViewChild: [{
|
|
2323
|
+
type: ViewChild,
|
|
2324
|
+
args: ['container']
|
|
2325
|
+
}], resizeHelperViewChild: [{
|
|
2326
|
+
type: ViewChild,
|
|
2327
|
+
args: ['resizeHelper']
|
|
2328
|
+
}], reorderIndicatorUpViewChild: [{
|
|
2329
|
+
type: ViewChild,
|
|
2330
|
+
args: ['reorderIndicatorUp']
|
|
2331
|
+
}], reorderIndicatorDownViewChild: [{
|
|
2332
|
+
type: ViewChild,
|
|
2333
|
+
args: ['reorderIndicatorDown']
|
|
2334
|
+
}], tableViewChild: [{
|
|
2335
|
+
type: ViewChild,
|
|
2336
|
+
args: ['table']
|
|
2337
|
+
}], scrollableViewChild: [{
|
|
2338
|
+
type: ViewChild,
|
|
2339
|
+
args: ['scrollableView']
|
|
2340
|
+
}], scrollableFrozenViewChild: [{
|
|
2341
|
+
type: ViewChild,
|
|
2342
|
+
args: ['scrollableFrozenView']
|
|
2343
|
+
}], templates: [{
|
|
2344
|
+
type: ContentChildren,
|
|
2345
|
+
args: [CaxTemplate]
|
|
2346
|
+
}] } });
|
|
2347
|
+
class TTBody {
|
|
2348
|
+
tt;
|
|
2349
|
+
treeTableService;
|
|
2350
|
+
cd;
|
|
2351
|
+
columns;
|
|
2352
|
+
template;
|
|
2353
|
+
frozen;
|
|
2354
|
+
serializedNodes;
|
|
2355
|
+
scrollerOptions;
|
|
2356
|
+
subscription;
|
|
2357
|
+
constructor(tt, treeTableService, cd) {
|
|
2358
|
+
this.tt = tt;
|
|
2359
|
+
this.treeTableService = treeTableService;
|
|
2360
|
+
this.cd = cd;
|
|
2361
|
+
this.subscription = this.tt.tableService.uiUpdateSource$.subscribe(() => {
|
|
2362
|
+
if (this.tt.virtualScroll) {
|
|
2363
|
+
this.cd.detectChanges();
|
|
2364
|
+
}
|
|
2365
|
+
});
|
|
2366
|
+
}
|
|
2367
|
+
getScrollerOption(option, options) {
|
|
2368
|
+
if (this.tt.virtualScroll) {
|
|
2369
|
+
options = options || this.scrollerOptions;
|
|
2370
|
+
return options ? options[option] : null;
|
|
2371
|
+
}
|
|
2372
|
+
return null;
|
|
2373
|
+
}
|
|
2374
|
+
getRowIndex(rowIndex) {
|
|
2375
|
+
const getItemOptions = this.getScrollerOption('getItemOptions');
|
|
2376
|
+
return getItemOptions ? getItemOptions(rowIndex).index : rowIndex;
|
|
2377
|
+
}
|
|
2378
|
+
ngOnDestroy() {
|
|
2379
|
+
if (this.subscription) {
|
|
2380
|
+
this.subscription.unsubscribe();
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTBody, deps: [{ token: TreeTable }, { token: TreeTableService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2384
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.2.9", type: TTBody, selector: "[pTreeTableBody]", inputs: { columns: ["pTreeTableBody", "columns"], template: ["pTreeTableBodyTemplate", "template"], frozen: ["frozen", "frozen", booleanAttribute], serializedNodes: "serializedNodes", scrollerOptions: "scrollerOptions" }, host: { classAttribute: "cax-element" }, ngImport: i0, template: `
|
|
2385
|
+
<ng-template ngFor let-serializedNode let-rowIndex="index" [ngForOf]="serializedNodes || tt.serializedValue" [ngForTrackBy]="tt.rowTrackBy">
|
|
2386
|
+
<ng-container *ngIf="serializedNode.visible">
|
|
2387
|
+
<ng-container *ngTemplateOutlet="template; context: { $implicit: serializedNode, node: serializedNode.node, rowData: serializedNode.node.data, columns: columns }"></ng-container>
|
|
2388
|
+
</ng-container>
|
|
2389
|
+
</ng-template>
|
|
2390
|
+
<ng-container *ngIf="tt.isEmpty()">
|
|
2391
|
+
<ng-container *ngTemplateOutlet="tt.emptyMessageTemplate; context: { $implicit: columns, frozen: frozen }"></ng-container>
|
|
2392
|
+
</ng-container>
|
|
2393
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2394
|
+
}
|
|
2395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTBody, decorators: [{
|
|
2396
|
+
type: Component,
|
|
2397
|
+
args: [{
|
|
2398
|
+
selector: '[pTreeTableBody]',
|
|
2399
|
+
template: `
|
|
2400
|
+
<ng-template ngFor let-serializedNode let-rowIndex="index" [ngForOf]="serializedNodes || tt.serializedValue" [ngForTrackBy]="tt.rowTrackBy">
|
|
2401
|
+
<ng-container *ngIf="serializedNode.visible">
|
|
2402
|
+
<ng-container *ngTemplateOutlet="template; context: { $implicit: serializedNode, node: serializedNode.node, rowData: serializedNode.node.data, columns: columns }"></ng-container>
|
|
2403
|
+
</ng-container>
|
|
2404
|
+
</ng-template>
|
|
2405
|
+
<ng-container *ngIf="tt.isEmpty()">
|
|
2406
|
+
<ng-container *ngTemplateOutlet="tt.emptyMessageTemplate; context: { $implicit: columns, frozen: frozen }"></ng-container>
|
|
2407
|
+
</ng-container>
|
|
2408
|
+
`,
|
|
2409
|
+
encapsulation: ViewEncapsulation.None,
|
|
2410
|
+
host: {
|
|
2411
|
+
class: 'cax-element'
|
|
2412
|
+
}
|
|
2413
|
+
}]
|
|
2414
|
+
}], ctorParameters: () => [{ type: TreeTable }, { type: TreeTableService }, { type: i0.ChangeDetectorRef }], propDecorators: { columns: [{
|
|
2415
|
+
type: Input,
|
|
2416
|
+
args: ['pTreeTableBody']
|
|
2417
|
+
}], template: [{
|
|
2418
|
+
type: Input,
|
|
2419
|
+
args: ['pTreeTableBodyTemplate']
|
|
2420
|
+
}], frozen: [{
|
|
2421
|
+
type: Input,
|
|
2422
|
+
args: [{ transform: booleanAttribute }]
|
|
2423
|
+
}], serializedNodes: [{
|
|
2424
|
+
type: Input
|
|
2425
|
+
}], scrollerOptions: [{
|
|
2426
|
+
type: Input
|
|
2427
|
+
}] } });
|
|
2428
|
+
class TTScrollableView {
|
|
2429
|
+
platformId;
|
|
2430
|
+
renderer;
|
|
2431
|
+
tt;
|
|
2432
|
+
el;
|
|
2433
|
+
zone;
|
|
2434
|
+
columns;
|
|
2435
|
+
frozen;
|
|
2436
|
+
scrollHeaderViewChild;
|
|
2437
|
+
scrollHeaderBoxViewChild;
|
|
2438
|
+
scrollBodyViewChild;
|
|
2439
|
+
scrollTableViewChild;
|
|
2440
|
+
scrollLoadingTableViewChild;
|
|
2441
|
+
scrollFooterViewChild;
|
|
2442
|
+
scrollFooterBoxViewChild;
|
|
2443
|
+
scrollableAlignerViewChild;
|
|
2444
|
+
scroller;
|
|
2445
|
+
headerScrollListener;
|
|
2446
|
+
bodyScrollListener;
|
|
2447
|
+
footerScrollListener;
|
|
2448
|
+
frozenSiblingBody;
|
|
2449
|
+
totalRecordsSubscription;
|
|
2450
|
+
_scrollHeight;
|
|
2451
|
+
preventBodyScrollPropagation;
|
|
2452
|
+
getMergedTableStyles(contentStyle) {
|
|
2453
|
+
return {
|
|
2454
|
+
...this.tt.tableStyle,
|
|
2455
|
+
...contentStyle
|
|
2456
|
+
};
|
|
2457
|
+
}
|
|
2458
|
+
get scrollHeight() {
|
|
2459
|
+
return this._scrollHeight;
|
|
2460
|
+
}
|
|
2461
|
+
set scrollHeight(val) {
|
|
2462
|
+
this._scrollHeight = val;
|
|
2463
|
+
if (val != null && (val.includes('%') || val.includes('calc'))) {
|
|
2464
|
+
console.log('Percentage scroll height calculation is removed in favor of the more performant CSS based flex mode, use scrollHeight="flex" instead.');
|
|
2465
|
+
}
|
|
2466
|
+
}
|
|
2467
|
+
constructor(platformId, renderer, tt, el, zone) {
|
|
2468
|
+
this.platformId = platformId;
|
|
2469
|
+
this.renderer = renderer;
|
|
2470
|
+
this.tt = tt;
|
|
2471
|
+
this.el = el;
|
|
2472
|
+
this.zone = zone;
|
|
2473
|
+
}
|
|
2474
|
+
ngAfterViewInit() {
|
|
2475
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
2476
|
+
if (!this.frozen) {
|
|
2477
|
+
if (this.tt.frozenColumns || this.tt.frozenBodyTemplate) {
|
|
2478
|
+
DomHandler.addClass(this.el.nativeElement, 'p-treetable-unfrozen-view');
|
|
2479
|
+
}
|
|
2480
|
+
let frozenView = this.el.nativeElement.previousElementSibling;
|
|
2481
|
+
if (frozenView) {
|
|
2482
|
+
if (this.tt.virtualScroll)
|
|
2483
|
+
this.frozenSiblingBody = DomHandler.findSingle(frozenView, '.p-scroller-viewport');
|
|
2484
|
+
else
|
|
2485
|
+
this.frozenSiblingBody = DomHandler.findSingle(frozenView, '.p-treetable-scrollable-body');
|
|
2486
|
+
}
|
|
2487
|
+
let scrollBarWidth = DomHandler.calculateScrollbarWidth();
|
|
2488
|
+
this.scrollHeaderBoxViewChild.nativeElement.style.paddingRight = scrollBarWidth + 'px';
|
|
2489
|
+
if (this.scrollFooterBoxViewChild && this.scrollFooterBoxViewChild.nativeElement) {
|
|
2490
|
+
this.scrollFooterBoxViewChild.nativeElement.style.paddingRight = scrollBarWidth + 'px';
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
else {
|
|
2494
|
+
if (this.scrollableAlignerViewChild && this.scrollableAlignerViewChild.nativeElement) {
|
|
2495
|
+
this.scrollableAlignerViewChild.nativeElement.style.height = DomHandler.calculateScrollbarHeight() + 'px';
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
this.bindEvents();
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2501
|
+
bindEvents() {
|
|
2502
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
2503
|
+
this.zone.runOutsideAngular(() => {
|
|
2504
|
+
if (this.scrollHeaderViewChild && this.scrollHeaderViewChild.nativeElement) {
|
|
2505
|
+
this.headerScrollListener = this.renderer.listen(this.scrollHeaderBoxViewChild?.nativeElement, 'scroll', this.onHeaderScroll.bind(this));
|
|
2506
|
+
}
|
|
2507
|
+
if (this.scrollFooterViewChild && this.scrollFooterViewChild.nativeElement) {
|
|
2508
|
+
this.footerScrollListener = this.renderer.listen(this.scrollFooterViewChild.nativeElement, 'scroll', this.onFooterScroll.bind(this));
|
|
2509
|
+
}
|
|
2510
|
+
if (!this.frozen) {
|
|
2511
|
+
if (this.tt.virtualScroll) {
|
|
2512
|
+
this.bodyScrollListener = this.renderer.listen((this.scroller?.getElementRef()).nativeElement, 'scroll', this.onBodyScroll.bind(this));
|
|
2513
|
+
}
|
|
2514
|
+
else {
|
|
2515
|
+
this.bodyScrollListener = this.renderer.listen(this.scrollBodyViewChild?.nativeElement, 'scroll', this.onBodyScroll.bind(this));
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2518
|
+
});
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
unbindEvents() {
|
|
2522
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
2523
|
+
if (this.scrollHeaderViewChild && this.scrollHeaderViewChild.nativeElement) {
|
|
2524
|
+
if (this.headerScrollListener) {
|
|
2525
|
+
this.headerScrollListener();
|
|
2526
|
+
this.headerScrollListener = null;
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
if (this.scrollFooterViewChild && this.scrollFooterViewChild.nativeElement) {
|
|
2530
|
+
if (this.footerScrollListener) {
|
|
2531
|
+
this.footerScrollListener();
|
|
2532
|
+
this.footerScrollListener = null;
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2535
|
+
if (this.scrollBodyViewChild && this.scrollBodyViewChild.nativeElement) {
|
|
2536
|
+
if (this.bodyScrollListener) {
|
|
2537
|
+
this.bodyScrollListener();
|
|
2538
|
+
this.bodyScrollListener = null;
|
|
2539
|
+
}
|
|
2540
|
+
}
|
|
2541
|
+
if (this.scroller && this.scroller.getElementRef()) {
|
|
2542
|
+
if (this.bodyScrollListener) {
|
|
2543
|
+
this.bodyScrollListener();
|
|
2544
|
+
this.bodyScrollListener = null;
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
onHeaderScroll() {
|
|
2550
|
+
const scrollLeft = this.scrollHeaderViewChild?.nativeElement.scrollLeft;
|
|
2551
|
+
this.scrollBodyViewChild.nativeElement.scrollLeft = scrollLeft;
|
|
2552
|
+
if (this.scrollFooterViewChild && this.scrollFooterViewChild.nativeElement) {
|
|
2553
|
+
this.scrollFooterViewChild.nativeElement.scrollLeft = scrollLeft;
|
|
2554
|
+
}
|
|
2555
|
+
this.preventBodyScrollPropagation = true;
|
|
2556
|
+
}
|
|
2557
|
+
onFooterScroll() {
|
|
2558
|
+
const scrollLeft = this.scrollFooterViewChild?.nativeElement.scrollLeft;
|
|
2559
|
+
this.scrollBodyViewChild.nativeElement.scrollLeft = scrollLeft;
|
|
2560
|
+
if (this.scrollHeaderViewChild && this.scrollHeaderViewChild.nativeElement) {
|
|
2561
|
+
this.scrollHeaderViewChild.nativeElement.scrollLeft = scrollLeft;
|
|
2562
|
+
}
|
|
2563
|
+
this.preventBodyScrollPropagation = true;
|
|
2564
|
+
}
|
|
2565
|
+
onBodyScroll(event) {
|
|
2566
|
+
if (this.preventBodyScrollPropagation) {
|
|
2567
|
+
this.preventBodyScrollPropagation = false;
|
|
2568
|
+
return;
|
|
2569
|
+
}
|
|
2570
|
+
if (this.scrollHeaderViewChild && this.scrollHeaderViewChild.nativeElement) {
|
|
2571
|
+
this.scrollHeaderBoxViewChild.nativeElement.style.marginLeft = -1 * event.target.scrollLeft + 'px';
|
|
2572
|
+
}
|
|
2573
|
+
if (this.scrollFooterViewChild && this.scrollFooterViewChild.nativeElement) {
|
|
2574
|
+
this.scrollFooterBoxViewChild.nativeElement.style.marginLeft = -1 * event.target.scrollLeft + 'px';
|
|
2575
|
+
}
|
|
2576
|
+
if (this.frozenSiblingBody) {
|
|
2577
|
+
this.frozenSiblingBody.scrollTop = event.target.scrollTop;
|
|
2578
|
+
}
|
|
2579
|
+
}
|
|
2580
|
+
scrollToVirtualIndex(index) {
|
|
2581
|
+
if (this.scroller) {
|
|
2582
|
+
this.scroller.scrollToIndex(index);
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
scrollTo(options) {
|
|
2586
|
+
if (this.scroller) {
|
|
2587
|
+
this.scroller.scrollTo(options);
|
|
2588
|
+
}
|
|
2589
|
+
else {
|
|
2590
|
+
if (this.scrollBodyViewChild?.nativeElement.scrollTo) {
|
|
2591
|
+
this.scrollBodyViewChild.nativeElement.scrollTo(options);
|
|
2592
|
+
}
|
|
2593
|
+
else {
|
|
2594
|
+
this.scrollBodyViewChild.nativeElement.scrollLeft = options.left;
|
|
2595
|
+
this.scrollBodyViewChild.nativeElement.scrollTop = options.top;
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
ngOnDestroy() {
|
|
2600
|
+
this.unbindEvents();
|
|
2601
|
+
this.frozenSiblingBody = null;
|
|
2602
|
+
}
|
|
2603
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTScrollableView, deps: [{ token: PLATFORM_ID }, { token: i0.Renderer2 }, { token: TreeTable }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2604
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.2.9", type: TTScrollableView, selector: "[ttScrollableView]", inputs: { columns: ["ttScrollableView", "columns"], frozen: ["frozen", "frozen", booleanAttribute], scrollHeight: "scrollHeight" }, host: { classAttribute: "cax-element" }, viewQueries: [{ propertyName: "scrollHeaderViewChild", first: true, predicate: ["scrollHeader"], descendants: true }, { propertyName: "scrollHeaderBoxViewChild", first: true, predicate: ["scrollHeaderBox"], descendants: true }, { propertyName: "scrollBodyViewChild", first: true, predicate: ["scrollBody"], descendants: true }, { propertyName: "scrollTableViewChild", first: true, predicate: ["scrollTable"], descendants: true }, { propertyName: "scrollLoadingTableViewChild", first: true, predicate: ["loadingTable"], descendants: true }, { propertyName: "scrollFooterViewChild", first: true, predicate: ["scrollFooter"], descendants: true }, { propertyName: "scrollFooterBoxViewChild", first: true, predicate: ["scrollFooterBox"], descendants: true }, { propertyName: "scrollableAlignerViewChild", first: true, predicate: ["scrollableAligner"], descendants: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true }], ngImport: i0, template: `
|
|
2605
|
+
<div #scrollHeader class="p-treetable-scrollable-header">
|
|
2606
|
+
<div #scrollHeaderBox class="p-treetable-scrollable-header-box">
|
|
2607
|
+
<table class="p-treetable-scrollable-header-table" [ngClass]="tt.tableStyleClass" [ngStyle]="tt.tableStyle">
|
|
2608
|
+
<ng-container *ngTemplateOutlet="frozen ? tt.frozenColGroupTemplate || tt.colGroupTemplate : tt.colGroupTemplate; context: { $implicit: columns }"></ng-container>
|
|
2609
|
+
<thead role="rowgroup" class="p-treetable-thead">
|
|
2610
|
+
<ng-container *ngTemplateOutlet="frozen ? tt.frozenHeaderTemplate || tt.headerTemplate : tt.headerTemplate; context: { $implicit: columns }"></ng-container>
|
|
2611
|
+
</thead>
|
|
2612
|
+
</table>
|
|
2613
|
+
</div>
|
|
2614
|
+
</div>
|
|
2615
|
+
|
|
2616
|
+
<cax-scroller
|
|
2617
|
+
*ngIf="tt.virtualScroll"
|
|
2618
|
+
#scroller
|
|
2619
|
+
[items]="tt.serializedValue"
|
|
2620
|
+
styleClass="p-treetable-scrollable-body"
|
|
2621
|
+
[style]="{ height: tt.scrollHeight !== 'flex' ? tt.scrollHeight : undefined }"
|
|
2622
|
+
[scrollHeight]="scrollHeight !== 'flex' ? undefined : '100%'"
|
|
2623
|
+
[itemSize]="tt.virtualScrollItemSize || tt._virtualRowHeight"
|
|
2624
|
+
[lazy]="tt.lazy"
|
|
2625
|
+
(onLazyLoad)="tt.onLazyItemLoad($event)"
|
|
2626
|
+
[options]="tt.virtualScrollOptions"
|
|
2627
|
+
>
|
|
2628
|
+
<ng-template caxTemplate="content" let-items let-scrollerOptions="options">
|
|
2629
|
+
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
|
2630
|
+
</ng-template>
|
|
2631
|
+
<ng-container *ngIf="loaderTemplate">
|
|
2632
|
+
<ng-template caxTemplate="loader" let-scrollerOptions="options">
|
|
2633
|
+
<ng-container *ngTemplateOutlet="loaderTemplate; context: { options: scrollerOptions }"></ng-container>
|
|
2634
|
+
</ng-template>
|
|
2635
|
+
</ng-container>
|
|
2636
|
+
</cax-scroller>
|
|
2637
|
+
<ng-container *ngIf="!tt.virtualScroll">
|
|
2638
|
+
<div #scrollBody class="p-treetable-scrollable-body" [ngStyle]="{ 'max-height': tt.scrollHeight !== 'flex' ? scrollHeight : undefined, 'overflow-y': !frozen && tt.scrollHeight ? 'scroll' : undefined }">
|
|
2639
|
+
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: serializedValue, options: {} }"></ng-container>
|
|
2640
|
+
</div>
|
|
2641
|
+
</ng-container>
|
|
2642
|
+
|
|
2643
|
+
<ng-template #buildInItems let-items let-scrollerOptions="options">
|
|
2644
|
+
<table role="table" #scrollTable [class]="tt.tableStyleClass" [ngClass]="scrollerOptions.contentStyleClass" [ngStyle]="getMergedTableStyles(scrollerOptions.contentStyle)">
|
|
2645
|
+
<ng-container *ngTemplateOutlet="frozen ? tt.frozenColGroupTemplate || tt.colGroupTemplate : tt.colGroupTemplate; context: { $implicit: columns }"></ng-container>
|
|
2646
|
+
<tbody role="rowgroup" class="p-treetable-tbody" [pTreeTableBody]="columns" [pTreeTableBodyTemplate]="frozen ? tt.frozenBodyTemplate || tt.bodyTemplate : tt.bodyTemplate" [serializedNodes]="items" [frozen]="frozen"></tbody>
|
|
2647
|
+
</table>
|
|
2648
|
+
<div #scrollableAligner [ngStyle]="{ 'background-color': 'transparent' }" *ngIf="frozen"></div>
|
|
2649
|
+
</ng-template>
|
|
2650
|
+
|
|
2651
|
+
<div #scrollFooter *ngIf="tt.footerTemplate" class="p-treetable-scrollable-footer">
|
|
2652
|
+
<div #scrollFooterBox class="p-treetable-scrollable-footer-box">
|
|
2653
|
+
<table class="p-treetable-scrollable-footer-table" [ngClass]="tt.tableStyleClass" [ngStyle]="tt.tableStyle">
|
|
2654
|
+
<ng-container *ngTemplateOutlet="frozen ? tt.frozenColGroupTemplate || tt.colGroupTemplate : tt.colGroupTemplate; context: { $implicit: columns }"></ng-container>
|
|
2655
|
+
<tfoot role="rowgroup" class="p-treetable-tfoot">
|
|
2656
|
+
<ng-container *ngTemplateOutlet="frozen ? tt.frozenFooterTemplate || tt.footerTemplate : tt.footerTemplate; context: { $implicit: columns }"></ng-container>
|
|
2657
|
+
</tfoot>
|
|
2658
|
+
</table>
|
|
2659
|
+
</div>
|
|
2660
|
+
</div>
|
|
2661
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1.CaxTemplate, selector: "[caxTemplate]", inputs: ["type", "caxTemplate"] }, { kind: "component", type: i3.Scroller, selector: "cax-scroller", inputs: ["id", "style", "styleClass", "tabindex", "items", "itemSize", "scrollHeight", "scrollWidth", "orientation", "step", "delay", "resizeDelay", "appendOnly", "inline", "lazy", "disabled", "loaderDisabled", "columns", "showSpacer", "showLoader", "numToleratedItems", "loading", "autoSize", "trackBy", "options"], outputs: ["onLazyLoad", "onScroll", "onScrollIndexChange"] }, { kind: "component", type: TTBody, selector: "[pTreeTableBody]", inputs: ["pTreeTableBody", "pTreeTableBodyTemplate", "frozen", "serializedNodes", "scrollerOptions"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2662
|
+
}
|
|
2663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTScrollableView, decorators: [{
|
|
2664
|
+
type: Component,
|
|
2665
|
+
args: [{
|
|
2666
|
+
selector: '[ttScrollableView]',
|
|
2667
|
+
template: `
|
|
2668
|
+
<div #scrollHeader class="p-treetable-scrollable-header">
|
|
2669
|
+
<div #scrollHeaderBox class="p-treetable-scrollable-header-box">
|
|
2670
|
+
<table class="p-treetable-scrollable-header-table" [ngClass]="tt.tableStyleClass" [ngStyle]="tt.tableStyle">
|
|
2671
|
+
<ng-container *ngTemplateOutlet="frozen ? tt.frozenColGroupTemplate || tt.colGroupTemplate : tt.colGroupTemplate; context: { $implicit: columns }"></ng-container>
|
|
2672
|
+
<thead role="rowgroup" class="p-treetable-thead">
|
|
2673
|
+
<ng-container *ngTemplateOutlet="frozen ? tt.frozenHeaderTemplate || tt.headerTemplate : tt.headerTemplate; context: { $implicit: columns }"></ng-container>
|
|
2674
|
+
</thead>
|
|
2675
|
+
</table>
|
|
2676
|
+
</div>
|
|
2677
|
+
</div>
|
|
2678
|
+
|
|
2679
|
+
<cax-scroller
|
|
2680
|
+
*ngIf="tt.virtualScroll"
|
|
2681
|
+
#scroller
|
|
2682
|
+
[items]="tt.serializedValue"
|
|
2683
|
+
styleClass="p-treetable-scrollable-body"
|
|
2684
|
+
[style]="{ height: tt.scrollHeight !== 'flex' ? tt.scrollHeight : undefined }"
|
|
2685
|
+
[scrollHeight]="scrollHeight !== 'flex' ? undefined : '100%'"
|
|
2686
|
+
[itemSize]="tt.virtualScrollItemSize || tt._virtualRowHeight"
|
|
2687
|
+
[lazy]="tt.lazy"
|
|
2688
|
+
(onLazyLoad)="tt.onLazyItemLoad($event)"
|
|
2689
|
+
[options]="tt.virtualScrollOptions"
|
|
2690
|
+
>
|
|
2691
|
+
<ng-template caxTemplate="content" let-items let-scrollerOptions="options">
|
|
2692
|
+
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
|
2693
|
+
</ng-template>
|
|
2694
|
+
<ng-container *ngIf="loaderTemplate">
|
|
2695
|
+
<ng-template caxTemplate="loader" let-scrollerOptions="options">
|
|
2696
|
+
<ng-container *ngTemplateOutlet="loaderTemplate; context: { options: scrollerOptions }"></ng-container>
|
|
2697
|
+
</ng-template>
|
|
2698
|
+
</ng-container>
|
|
2699
|
+
</cax-scroller>
|
|
2700
|
+
<ng-container *ngIf="!tt.virtualScroll">
|
|
2701
|
+
<div #scrollBody class="p-treetable-scrollable-body" [ngStyle]="{ 'max-height': tt.scrollHeight !== 'flex' ? scrollHeight : undefined, 'overflow-y': !frozen && tt.scrollHeight ? 'scroll' : undefined }">
|
|
2702
|
+
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: serializedValue, options: {} }"></ng-container>
|
|
2703
|
+
</div>
|
|
2704
|
+
</ng-container>
|
|
2705
|
+
|
|
2706
|
+
<ng-template #buildInItems let-items let-scrollerOptions="options">
|
|
2707
|
+
<table role="table" #scrollTable [class]="tt.tableStyleClass" [ngClass]="scrollerOptions.contentStyleClass" [ngStyle]="getMergedTableStyles(scrollerOptions.contentStyle)">
|
|
2708
|
+
<ng-container *ngTemplateOutlet="frozen ? tt.frozenColGroupTemplate || tt.colGroupTemplate : tt.colGroupTemplate; context: { $implicit: columns }"></ng-container>
|
|
2709
|
+
<tbody role="rowgroup" class="p-treetable-tbody" [pTreeTableBody]="columns" [pTreeTableBodyTemplate]="frozen ? tt.frozenBodyTemplate || tt.bodyTemplate : tt.bodyTemplate" [serializedNodes]="items" [frozen]="frozen"></tbody>
|
|
2710
|
+
</table>
|
|
2711
|
+
<div #scrollableAligner [ngStyle]="{ 'background-color': 'transparent' }" *ngIf="frozen"></div>
|
|
2712
|
+
</ng-template>
|
|
2713
|
+
|
|
2714
|
+
<div #scrollFooter *ngIf="tt.footerTemplate" class="p-treetable-scrollable-footer">
|
|
2715
|
+
<div #scrollFooterBox class="p-treetable-scrollable-footer-box">
|
|
2716
|
+
<table class="p-treetable-scrollable-footer-table" [ngClass]="tt.tableStyleClass" [ngStyle]="tt.tableStyle">
|
|
2717
|
+
<ng-container *ngTemplateOutlet="frozen ? tt.frozenColGroupTemplate || tt.colGroupTemplate : tt.colGroupTemplate; context: { $implicit: columns }"></ng-container>
|
|
2718
|
+
<tfoot role="rowgroup" class="p-treetable-tfoot">
|
|
2719
|
+
<ng-container *ngTemplateOutlet="frozen ? tt.frozenFooterTemplate || tt.footerTemplate : tt.footerTemplate; context: { $implicit: columns }"></ng-container>
|
|
2720
|
+
</tfoot>
|
|
2721
|
+
</table>
|
|
2722
|
+
</div>
|
|
2723
|
+
</div>
|
|
2724
|
+
`,
|
|
2725
|
+
encapsulation: ViewEncapsulation.None,
|
|
2726
|
+
host: {
|
|
2727
|
+
class: 'cax-element'
|
|
2728
|
+
}
|
|
2729
|
+
}]
|
|
2730
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2731
|
+
type: Inject,
|
|
2732
|
+
args: [PLATFORM_ID]
|
|
2733
|
+
}] }, { type: i0.Renderer2 }, { type: TreeTable }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { columns: [{
|
|
2734
|
+
type: Input,
|
|
2735
|
+
args: ['ttScrollableView']
|
|
2736
|
+
}], frozen: [{
|
|
2737
|
+
type: Input,
|
|
2738
|
+
args: [{ transform: booleanAttribute }]
|
|
2739
|
+
}], scrollHeaderViewChild: [{
|
|
2740
|
+
type: ViewChild,
|
|
2741
|
+
args: ['scrollHeader']
|
|
2742
|
+
}], scrollHeaderBoxViewChild: [{
|
|
2743
|
+
type: ViewChild,
|
|
2744
|
+
args: ['scrollHeaderBox']
|
|
2745
|
+
}], scrollBodyViewChild: [{
|
|
2746
|
+
type: ViewChild,
|
|
2747
|
+
args: ['scrollBody']
|
|
2748
|
+
}], scrollTableViewChild: [{
|
|
2749
|
+
type: ViewChild,
|
|
2750
|
+
args: ['scrollTable']
|
|
2751
|
+
}], scrollLoadingTableViewChild: [{
|
|
2752
|
+
type: ViewChild,
|
|
2753
|
+
args: ['loadingTable']
|
|
2754
|
+
}], scrollFooterViewChild: [{
|
|
2755
|
+
type: ViewChild,
|
|
2756
|
+
args: ['scrollFooter']
|
|
2757
|
+
}], scrollFooterBoxViewChild: [{
|
|
2758
|
+
type: ViewChild,
|
|
2759
|
+
args: ['scrollFooterBox']
|
|
2760
|
+
}], scrollableAlignerViewChild: [{
|
|
2761
|
+
type: ViewChild,
|
|
2762
|
+
args: ['scrollableAligner']
|
|
2763
|
+
}], scroller: [{
|
|
2764
|
+
type: ViewChild,
|
|
2765
|
+
args: ['scroller']
|
|
2766
|
+
}], scrollHeight: [{
|
|
2767
|
+
type: Input
|
|
2768
|
+
}] } });
|
|
2769
|
+
class TTSortableColumn {
|
|
2770
|
+
tt;
|
|
2771
|
+
field;
|
|
2772
|
+
ttSortableColumnDisabled;
|
|
2773
|
+
sorted;
|
|
2774
|
+
subscription;
|
|
2775
|
+
get ariaSorted() {
|
|
2776
|
+
if (this.sorted && this.tt.sortOrder < 0)
|
|
2777
|
+
return 'descending';
|
|
2778
|
+
else if (this.sorted && this.tt.sortOrder > 0)
|
|
2779
|
+
return 'ascending';
|
|
2780
|
+
else
|
|
2781
|
+
return 'none';
|
|
2782
|
+
}
|
|
2783
|
+
constructor(tt) {
|
|
2784
|
+
this.tt = tt;
|
|
2785
|
+
if (this.isEnabled()) {
|
|
2786
|
+
this.subscription = this.tt.tableService.sortSource$.subscribe((sortMeta) => {
|
|
2787
|
+
this.updateSortState();
|
|
2788
|
+
});
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
ngOnInit() {
|
|
2792
|
+
if (this.isEnabled()) {
|
|
2793
|
+
this.updateSortState();
|
|
2794
|
+
}
|
|
2795
|
+
}
|
|
2796
|
+
updateSortState() {
|
|
2797
|
+
this.sorted = this.tt.isSorted(this.field);
|
|
2798
|
+
}
|
|
2799
|
+
onClick(event) {
|
|
2800
|
+
if (this.isEnabled()) {
|
|
2801
|
+
this.updateSortState();
|
|
2802
|
+
this.tt.sort({
|
|
2803
|
+
originalEvent: event,
|
|
2804
|
+
field: this.field
|
|
2805
|
+
});
|
|
2806
|
+
DomHandler.clearSelection();
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
onEnterKey(event) {
|
|
2810
|
+
this.onClick(event);
|
|
2811
|
+
}
|
|
2812
|
+
isEnabled() {
|
|
2813
|
+
return this.ttSortableColumnDisabled !== true;
|
|
2814
|
+
}
|
|
2815
|
+
ngOnDestroy() {
|
|
2816
|
+
if (this.subscription) {
|
|
2817
|
+
this.subscription.unsubscribe();
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTSortableColumn, deps: [{ token: TreeTable }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2821
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.9", type: TTSortableColumn, selector: "[ttSortableColumn]", inputs: { field: ["ttSortableColumn", "field"], ttSortableColumnDisabled: ["ttSortableColumnDisabled", "ttSortableColumnDisabled", booleanAttribute] }, host: { listeners: { "click": "onClick($event)", "keydown.enter": "onEnterKey($event)" }, properties: { "class.p-sortable-column": "isEnabled()", "class.p-highlight": "sorted", "attr.tabindex": "isEnabled() ? \"0\" : null", "attr.role": "\"columnheader\"", "attr.aria-sort": "ariaSorted" }, classAttribute: "cax-element" }, ngImport: i0 });
|
|
2822
|
+
}
|
|
2823
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTSortableColumn, decorators: [{
|
|
2824
|
+
type: Directive,
|
|
2825
|
+
args: [{
|
|
2826
|
+
selector: '[ttSortableColumn]',
|
|
2827
|
+
host: {
|
|
2828
|
+
class: 'cax-element',
|
|
2829
|
+
'[class.p-sortable-column]': 'isEnabled()',
|
|
2830
|
+
'[class.p-highlight]': 'sorted',
|
|
2831
|
+
'[attr.tabindex]': 'isEnabled() ? "0" : null',
|
|
2832
|
+
'[attr.role]': '"columnheader"',
|
|
2833
|
+
'[attr.aria-sort]': 'ariaSorted'
|
|
2834
|
+
}
|
|
2835
|
+
}]
|
|
2836
|
+
}], ctorParameters: () => [{ type: TreeTable }], propDecorators: { field: [{
|
|
2837
|
+
type: Input,
|
|
2838
|
+
args: ['ttSortableColumn']
|
|
2839
|
+
}], ttSortableColumnDisabled: [{
|
|
2840
|
+
type: Input,
|
|
2841
|
+
args: [{ transform: booleanAttribute }]
|
|
2842
|
+
}], onClick: [{
|
|
2843
|
+
type: HostListener,
|
|
2844
|
+
args: ['click', ['$event']]
|
|
2845
|
+
}], onEnterKey: [{
|
|
2846
|
+
type: HostListener,
|
|
2847
|
+
args: ['keydown.enter', ['$event']]
|
|
2848
|
+
}] } });
|
|
2849
|
+
class TTSortIcon {
|
|
2850
|
+
tt;
|
|
2851
|
+
cd;
|
|
2852
|
+
field;
|
|
2853
|
+
ariaLabelDesc;
|
|
2854
|
+
ariaLabelAsc;
|
|
2855
|
+
subscription;
|
|
2856
|
+
sortOrder;
|
|
2857
|
+
constructor(tt, cd) {
|
|
2858
|
+
this.tt = tt;
|
|
2859
|
+
this.cd = cd;
|
|
2860
|
+
this.subscription = this.tt.tableService.sortSource$.subscribe((sortMeta) => {
|
|
2861
|
+
this.updateSortState();
|
|
2862
|
+
this.cd.markForCheck();
|
|
2863
|
+
});
|
|
2864
|
+
}
|
|
2865
|
+
ngOnInit() {
|
|
2866
|
+
this.updateSortState();
|
|
2867
|
+
}
|
|
2868
|
+
onClick(event) {
|
|
2869
|
+
event.preventDefault();
|
|
2870
|
+
}
|
|
2871
|
+
updateSortState() {
|
|
2872
|
+
if (this.tt.sortMode === 'single') {
|
|
2873
|
+
this.sortOrder = this.tt.isSorted(this.field) ? this.tt.sortOrder : 0;
|
|
2874
|
+
}
|
|
2875
|
+
else if (this.tt.sortMode === 'multiple') {
|
|
2876
|
+
let sortMeta = this.tt.getSortMeta(this.field);
|
|
2877
|
+
this.sortOrder = sortMeta ? sortMeta.order : 0;
|
|
2878
|
+
}
|
|
2879
|
+
}
|
|
2880
|
+
ngOnDestroy() {
|
|
2881
|
+
if (this.subscription) {
|
|
2882
|
+
this.subscription.unsubscribe();
|
|
2883
|
+
}
|
|
2884
|
+
}
|
|
2885
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTSortIcon, deps: [{ token: TreeTable }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2886
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: TTSortIcon, selector: "p-treeTableSortIcon", inputs: { field: "field", ariaLabelDesc: "ariaLabelDesc", ariaLabelAsc: "ariaLabelAsc" }, host: { classAttribute: "cax-element" }, ngImport: i0, template: ` <ng-container *ngIf="!tt.sortIconTemplate">
|
|
2887
|
+
<SortAltIcon [styleClass]="'p-sortable-column-icon'" *ngIf="sortOrder === 0" />
|
|
2888
|
+
<SortAmountUpAltIcon [styleClass]="'p-sortable-column-icon'" *ngIf="sortOrder === 1" />
|
|
2889
|
+
<SortAmountDownIcon [styleClass]="'p-sortable-column-icon'" *ngIf="sortOrder === -1" />
|
|
2890
|
+
</ng-container>
|
|
2891
|
+
<span *ngIf="tt.sortIconTemplate" class="p-sortable-column-icon">
|
|
2892
|
+
<ng-template *ngTemplateOutlet="tt.sortIconTemplate; context: { $implicit: sortOrder }"></ng-template>
|
|
2893
|
+
</span>`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => SortAltIcon), selector: "SortAltIcon" }, { kind: "component", type: i0.forwardRef(() => SortAmountUpAltIcon), selector: "SortAmountUpAltIcon" }, { kind: "component", type: i0.forwardRef(() => SortAmountDownIcon), selector: "SortAmountDownIcon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2894
|
+
}
|
|
2895
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTSortIcon, decorators: [{
|
|
2896
|
+
type: Component,
|
|
2897
|
+
args: [{
|
|
2898
|
+
selector: 'p-treeTableSortIcon',
|
|
2899
|
+
template: ` <ng-container *ngIf="!tt.sortIconTemplate">
|
|
2900
|
+
<SortAltIcon [styleClass]="'p-sortable-column-icon'" *ngIf="sortOrder === 0" />
|
|
2901
|
+
<SortAmountUpAltIcon [styleClass]="'p-sortable-column-icon'" *ngIf="sortOrder === 1" />
|
|
2902
|
+
<SortAmountDownIcon [styleClass]="'p-sortable-column-icon'" *ngIf="sortOrder === -1" />
|
|
2903
|
+
</ng-container>
|
|
2904
|
+
<span *ngIf="tt.sortIconTemplate" class="p-sortable-column-icon">
|
|
2905
|
+
<ng-template *ngTemplateOutlet="tt.sortIconTemplate; context: { $implicit: sortOrder }"></ng-template>
|
|
2906
|
+
</span>`,
|
|
2907
|
+
encapsulation: ViewEncapsulation.None,
|
|
2908
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2909
|
+
host: {
|
|
2910
|
+
class: 'cax-element'
|
|
2911
|
+
}
|
|
2912
|
+
}]
|
|
2913
|
+
}], ctorParameters: () => [{ type: TreeTable }, { type: i0.ChangeDetectorRef }], propDecorators: { field: [{
|
|
2914
|
+
type: Input
|
|
2915
|
+
}], ariaLabelDesc: [{
|
|
2916
|
+
type: Input
|
|
2917
|
+
}], ariaLabelAsc: [{
|
|
2918
|
+
type: Input
|
|
2919
|
+
}] } });
|
|
2920
|
+
class TTResizableColumn {
|
|
2921
|
+
document;
|
|
2922
|
+
platformId;
|
|
2923
|
+
renderer;
|
|
2924
|
+
tt;
|
|
2925
|
+
el;
|
|
2926
|
+
zone;
|
|
2927
|
+
ttResizableColumnDisabled;
|
|
2928
|
+
resizer;
|
|
2929
|
+
resizerMouseDownListener;
|
|
2930
|
+
documentMouseMoveListener;
|
|
2931
|
+
documentMouseUpListener;
|
|
2932
|
+
constructor(document, platformId, renderer, tt, el, zone) {
|
|
2933
|
+
this.document = document;
|
|
2934
|
+
this.platformId = platformId;
|
|
2935
|
+
this.renderer = renderer;
|
|
2936
|
+
this.tt = tt;
|
|
2937
|
+
this.el = el;
|
|
2938
|
+
this.zone = zone;
|
|
2939
|
+
}
|
|
2940
|
+
ngAfterViewInit() {
|
|
2941
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
2942
|
+
if (this.isEnabled()) {
|
|
2943
|
+
DomHandler.addClass(this.el.nativeElement, 'p-resizable-column');
|
|
2944
|
+
this.resizer = this.renderer.createElement('span');
|
|
2945
|
+
this.renderer.addClass(this.resizer, 'p-column-resizer');
|
|
2946
|
+
this.renderer.appendChild(this.el.nativeElement, this.resizer);
|
|
2947
|
+
this.zone.runOutsideAngular(() => {
|
|
2948
|
+
this.resizerMouseDownListener = this.renderer.listen(this.resizer, 'mousedown', this.onMouseDown.bind(this));
|
|
2949
|
+
});
|
|
2950
|
+
}
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
bindDocumentEvents() {
|
|
2954
|
+
this.zone.runOutsideAngular(() => {
|
|
2955
|
+
this.documentMouseMoveListener = this.renderer.listen(this.document, 'mousemove', this.onDocumentMouseMove.bind(this));
|
|
2956
|
+
this.documentMouseUpListener = this.renderer.listen(this.document, 'mouseup', this.onDocumentMouseUp.bind(this));
|
|
2957
|
+
});
|
|
2958
|
+
}
|
|
2959
|
+
unbindDocumentEvents() {
|
|
2960
|
+
if (this.documentMouseMoveListener) {
|
|
2961
|
+
this.documentMouseMoveListener();
|
|
2962
|
+
this.documentMouseMoveListener = null;
|
|
2963
|
+
}
|
|
2964
|
+
if (this.documentMouseUpListener) {
|
|
2965
|
+
this.documentMouseUpListener();
|
|
2966
|
+
this.documentMouseUpListener = null;
|
|
2967
|
+
}
|
|
2968
|
+
}
|
|
2969
|
+
onMouseDown(event) {
|
|
2970
|
+
this.tt.onColumnResizeBegin(event);
|
|
2971
|
+
this.bindDocumentEvents();
|
|
2972
|
+
}
|
|
2973
|
+
onDocumentMouseMove(event) {
|
|
2974
|
+
this.tt.onColumnResize(event);
|
|
2975
|
+
}
|
|
2976
|
+
onDocumentMouseUp(event) {
|
|
2977
|
+
this.tt.onColumnResizeEnd(event, this.el.nativeElement);
|
|
2978
|
+
this.unbindDocumentEvents();
|
|
2979
|
+
}
|
|
2980
|
+
isEnabled() {
|
|
2981
|
+
return this.ttResizableColumnDisabled !== true;
|
|
2982
|
+
}
|
|
2983
|
+
ngOnDestroy() {
|
|
2984
|
+
if (this.resizerMouseDownListener) {
|
|
2985
|
+
this.resizerMouseDownListener();
|
|
2986
|
+
this.resizerMouseDownListener = null;
|
|
2987
|
+
}
|
|
2988
|
+
this.unbindDocumentEvents();
|
|
2989
|
+
}
|
|
2990
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTResizableColumn, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.Renderer2 }, { token: TreeTable }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2991
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.9", type: TTResizableColumn, selector: "[ttResizableColumn]", inputs: { ttResizableColumnDisabled: ["ttResizableColumnDisabled", "ttResizableColumnDisabled", booleanAttribute] }, host: { classAttribute: "cax-element" }, ngImport: i0 });
|
|
2992
|
+
}
|
|
2993
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTResizableColumn, decorators: [{
|
|
2994
|
+
type: Directive,
|
|
2995
|
+
args: [{
|
|
2996
|
+
selector: '[ttResizableColumn]',
|
|
2997
|
+
host: {
|
|
2998
|
+
class: 'cax-element'
|
|
2999
|
+
}
|
|
3000
|
+
}]
|
|
3001
|
+
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
3002
|
+
type: Inject,
|
|
3003
|
+
args: [DOCUMENT]
|
|
3004
|
+
}] }, { type: undefined, decorators: [{
|
|
3005
|
+
type: Inject,
|
|
3006
|
+
args: [PLATFORM_ID]
|
|
3007
|
+
}] }, { type: i0.Renderer2 }, { type: TreeTable }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { ttResizableColumnDisabled: [{
|
|
3008
|
+
type: Input,
|
|
3009
|
+
args: [{ transform: booleanAttribute }]
|
|
3010
|
+
}] } });
|
|
3011
|
+
class TTReorderableColumn {
|
|
3012
|
+
document;
|
|
3013
|
+
platformId;
|
|
3014
|
+
renderer;
|
|
3015
|
+
tt;
|
|
3016
|
+
el;
|
|
3017
|
+
zone;
|
|
3018
|
+
ttReorderableColumnDisabled;
|
|
3019
|
+
dragStartListener;
|
|
3020
|
+
dragOverListener;
|
|
3021
|
+
dragEnterListener;
|
|
3022
|
+
dragLeaveListener;
|
|
3023
|
+
mouseDownListener;
|
|
3024
|
+
constructor(document, platformId, renderer, tt, el, zone) {
|
|
3025
|
+
this.document = document;
|
|
3026
|
+
this.platformId = platformId;
|
|
3027
|
+
this.renderer = renderer;
|
|
3028
|
+
this.tt = tt;
|
|
3029
|
+
this.el = el;
|
|
3030
|
+
this.zone = zone;
|
|
3031
|
+
}
|
|
3032
|
+
ngAfterViewInit() {
|
|
3033
|
+
if (this.isEnabled()) {
|
|
3034
|
+
this.bindEvents();
|
|
3035
|
+
}
|
|
3036
|
+
}
|
|
3037
|
+
bindEvents() {
|
|
3038
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
3039
|
+
this.zone.runOutsideAngular(() => {
|
|
3040
|
+
this.mouseDownListener = this.renderer.listen(this.el.nativeElement, 'mousedown', this.onMouseDown.bind(this));
|
|
3041
|
+
this.dragStartListener = this.renderer.listen(this.el.nativeElement, 'dragstart', this.onDragStart.bind(this));
|
|
3042
|
+
this.dragOverListener = this.renderer.listen(this.el.nativeElement, 'dragover', this.onDragEnter.bind(this));
|
|
3043
|
+
this.dragEnterListener = this.renderer.listen(this.el.nativeElement, 'dragenter', this.onDragEnter.bind(this));
|
|
3044
|
+
this.dragLeaveListener = this.renderer.listen(this.el.nativeElement, 'dragleave', this.onDragLeave.bind(this));
|
|
3045
|
+
});
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
3048
|
+
unbindEvents() {
|
|
3049
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
3050
|
+
if (this.mouseDownListener) {
|
|
3051
|
+
this.mouseDownListener();
|
|
3052
|
+
this.mouseDownListener = null;
|
|
3053
|
+
}
|
|
3054
|
+
if (this.dragOverListener) {
|
|
3055
|
+
this.dragOverListener();
|
|
3056
|
+
this.dragOverListener = null;
|
|
3057
|
+
}
|
|
3058
|
+
if (this.dragEnterListener) {
|
|
3059
|
+
this.dragEnterListener();
|
|
3060
|
+
this.dragEnterListener = null;
|
|
3061
|
+
}
|
|
3062
|
+
if (this.dragLeaveListener) {
|
|
3063
|
+
this.dragLeaveListener();
|
|
3064
|
+
this.dragLeaveListener = null;
|
|
3065
|
+
}
|
|
3066
|
+
}
|
|
3067
|
+
}
|
|
3068
|
+
onMouseDown(event) {
|
|
3069
|
+
if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || DomHandler.hasClass(event.target, 'p-column-resizer'))
|
|
3070
|
+
this.el.nativeElement.draggable = false;
|
|
3071
|
+
else
|
|
3072
|
+
this.el.nativeElement.draggable = true;
|
|
3073
|
+
}
|
|
3074
|
+
onDragStart(event) {
|
|
3075
|
+
this.tt.onColumnDragStart(event, this.el.nativeElement);
|
|
3076
|
+
}
|
|
3077
|
+
onDragOver(event) {
|
|
3078
|
+
event.preventDefault();
|
|
3079
|
+
}
|
|
3080
|
+
onDragEnter(event) {
|
|
3081
|
+
this.tt.onColumnDragEnter(event, this.el.nativeElement);
|
|
3082
|
+
}
|
|
3083
|
+
onDragLeave(event) {
|
|
3084
|
+
this.tt.onColumnDragLeave(event);
|
|
3085
|
+
}
|
|
3086
|
+
onDrop(event) {
|
|
3087
|
+
if (this.isEnabled()) {
|
|
3088
|
+
this.tt.onColumnDrop(event, this.el.nativeElement);
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
isEnabled() {
|
|
3092
|
+
return this.ttReorderableColumnDisabled !== true;
|
|
3093
|
+
}
|
|
3094
|
+
ngOnDestroy() {
|
|
3095
|
+
this.unbindEvents();
|
|
3096
|
+
}
|
|
3097
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTReorderableColumn, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.Renderer2 }, { token: TreeTable }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3098
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.9", type: TTReorderableColumn, selector: "[ttReorderableColumn]", inputs: { ttReorderableColumnDisabled: ["ttReorderableColumnDisabled", "ttReorderableColumnDisabled", booleanAttribute] }, host: { listeners: { "drop": "onDrop($event)" }, classAttribute: "cax-element" }, ngImport: i0 });
|
|
3099
|
+
}
|
|
3100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTReorderableColumn, decorators: [{
|
|
3101
|
+
type: Directive,
|
|
3102
|
+
args: [{
|
|
3103
|
+
selector: '[ttReorderableColumn]',
|
|
3104
|
+
host: {
|
|
3105
|
+
class: 'cax-element'
|
|
3106
|
+
}
|
|
3107
|
+
}]
|
|
3108
|
+
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
3109
|
+
type: Inject,
|
|
3110
|
+
args: [DOCUMENT]
|
|
3111
|
+
}] }, { type: undefined, decorators: [{
|
|
3112
|
+
type: Inject,
|
|
3113
|
+
args: [PLATFORM_ID]
|
|
3114
|
+
}] }, { type: i0.Renderer2 }, { type: TreeTable }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { ttReorderableColumnDisabled: [{
|
|
3115
|
+
type: Input,
|
|
3116
|
+
args: [{ transform: booleanAttribute }]
|
|
3117
|
+
}], onDrop: [{
|
|
3118
|
+
type: HostListener,
|
|
3119
|
+
args: ['drop', ['$event']]
|
|
3120
|
+
}] } });
|
|
3121
|
+
class TTSelectableRow {
|
|
3122
|
+
tt;
|
|
3123
|
+
tableService;
|
|
3124
|
+
rowNode;
|
|
3125
|
+
ttSelectableRowDisabled;
|
|
3126
|
+
selected;
|
|
3127
|
+
subscription;
|
|
3128
|
+
constructor(tt, tableService) {
|
|
3129
|
+
this.tt = tt;
|
|
3130
|
+
this.tableService = tableService;
|
|
3131
|
+
if (this.isEnabled()) {
|
|
3132
|
+
this.subscription = this.tt.tableService.selectionSource$.subscribe(() => {
|
|
3133
|
+
this.selected = this.tt.isSelected(this.rowNode.node);
|
|
3134
|
+
});
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
ngOnInit() {
|
|
3138
|
+
if (this.isEnabled()) {
|
|
3139
|
+
this.selected = this.tt.isSelected(this.rowNode.node);
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
onClick(event) {
|
|
3143
|
+
if (this.isEnabled()) {
|
|
3144
|
+
this.tt.handleRowClick({
|
|
3145
|
+
originalEvent: event,
|
|
3146
|
+
rowNode: this.rowNode
|
|
3147
|
+
});
|
|
3148
|
+
}
|
|
3149
|
+
}
|
|
3150
|
+
onKeyDown(event) {
|
|
3151
|
+
switch (event.code) {
|
|
3152
|
+
case 'Enter':
|
|
3153
|
+
case 'Space':
|
|
3154
|
+
this.onEnterKey(event);
|
|
3155
|
+
break;
|
|
3156
|
+
default:
|
|
3157
|
+
break;
|
|
3158
|
+
}
|
|
3159
|
+
}
|
|
3160
|
+
onTouchEnd(event) {
|
|
3161
|
+
if (this.isEnabled()) {
|
|
3162
|
+
this.tt.handleRowTouchEnd(event);
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
onEnterKey(event) {
|
|
3166
|
+
if (this.tt.selectionMode === 'checkbox') {
|
|
3167
|
+
this.tt.toggleNodeWithCheckbox({
|
|
3168
|
+
originalEvent: event,
|
|
3169
|
+
rowNode: this.rowNode
|
|
3170
|
+
});
|
|
3171
|
+
}
|
|
3172
|
+
else {
|
|
3173
|
+
this.onClick(event);
|
|
3174
|
+
}
|
|
3175
|
+
event.preventDefault();
|
|
3176
|
+
}
|
|
3177
|
+
isEnabled() {
|
|
3178
|
+
return this.ttSelectableRowDisabled !== true;
|
|
3179
|
+
}
|
|
3180
|
+
ngOnDestroy() {
|
|
3181
|
+
if (this.subscription) {
|
|
3182
|
+
this.subscription.unsubscribe();
|
|
3183
|
+
}
|
|
3184
|
+
}
|
|
3185
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTSelectableRow, deps: [{ token: TreeTable }, { token: TreeTableService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3186
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.9", type: TTSelectableRow, selector: "[ttSelectableRow]", inputs: { rowNode: ["ttSelectableRow", "rowNode"], ttSelectableRowDisabled: ["ttSelectableRowDisabled", "ttSelectableRowDisabled", booleanAttribute] }, host: { listeners: { "click": "onClick($event)", "keydown": "onKeyDown($event)", "touchend": "onTouchEnd($event)" }, properties: { "class.p-highlight": "selected", "attr.data-p-highlight": "selected", "attr.aria-checked": "selected" }, classAttribute: "cax-element" }, ngImport: i0 });
|
|
3187
|
+
}
|
|
3188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTSelectableRow, decorators: [{
|
|
3189
|
+
type: Directive,
|
|
3190
|
+
args: [{
|
|
3191
|
+
selector: '[ttSelectableRow]',
|
|
3192
|
+
host: {
|
|
3193
|
+
class: 'cax-element',
|
|
3194
|
+
'[class.p-highlight]': 'selected',
|
|
3195
|
+
'[attr.data-p-highlight]': 'selected',
|
|
3196
|
+
'[attr.aria-checked]': 'selected'
|
|
3197
|
+
}
|
|
3198
|
+
}]
|
|
3199
|
+
}], ctorParameters: () => [{ type: TreeTable }, { type: TreeTableService }], propDecorators: { rowNode: [{
|
|
3200
|
+
type: Input,
|
|
3201
|
+
args: ['ttSelectableRow']
|
|
3202
|
+
}], ttSelectableRowDisabled: [{
|
|
3203
|
+
type: Input,
|
|
3204
|
+
args: [{ transform: booleanAttribute }]
|
|
3205
|
+
}], onClick: [{
|
|
3206
|
+
type: HostListener,
|
|
3207
|
+
args: ['click', ['$event']]
|
|
3208
|
+
}], onKeyDown: [{
|
|
3209
|
+
type: HostListener,
|
|
3210
|
+
args: ['keydown', ['$event']]
|
|
3211
|
+
}], onTouchEnd: [{
|
|
3212
|
+
type: HostListener,
|
|
3213
|
+
args: ['touchend', ['$event']]
|
|
3214
|
+
}] } });
|
|
3215
|
+
class TTSelectableRowDblClick {
|
|
3216
|
+
tt;
|
|
3217
|
+
tableService;
|
|
3218
|
+
rowNode;
|
|
3219
|
+
ttSelectableRowDisabled;
|
|
3220
|
+
selected;
|
|
3221
|
+
subscription;
|
|
3222
|
+
constructor(tt, tableService) {
|
|
3223
|
+
this.tt = tt;
|
|
3224
|
+
this.tableService = tableService;
|
|
3225
|
+
if (this.isEnabled()) {
|
|
3226
|
+
this.subscription = this.tt.tableService.selectionSource$.subscribe(() => {
|
|
3227
|
+
this.selected = this.tt.isSelected(this.rowNode.node);
|
|
3228
|
+
});
|
|
3229
|
+
}
|
|
3230
|
+
}
|
|
3231
|
+
ngOnInit() {
|
|
3232
|
+
if (this.isEnabled()) {
|
|
3233
|
+
this.selected = this.tt.isSelected(this.rowNode.node);
|
|
3234
|
+
}
|
|
3235
|
+
}
|
|
3236
|
+
onClick(event) {
|
|
3237
|
+
if (this.isEnabled()) {
|
|
3238
|
+
this.tt.handleRowClick({
|
|
3239
|
+
originalEvent: event,
|
|
3240
|
+
rowNode: this.rowNode
|
|
3241
|
+
});
|
|
3242
|
+
}
|
|
3243
|
+
}
|
|
3244
|
+
isEnabled() {
|
|
3245
|
+
return this.ttSelectableRowDisabled !== true;
|
|
3246
|
+
}
|
|
3247
|
+
ngOnDestroy() {
|
|
3248
|
+
if (this.subscription) {
|
|
3249
|
+
this.subscription.unsubscribe();
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTSelectableRowDblClick, deps: [{ token: TreeTable }, { token: TreeTableService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3253
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.9", type: TTSelectableRowDblClick, selector: "[ttSelectableRowDblClick]", inputs: { rowNode: ["ttSelectableRowDblClick", "rowNode"], ttSelectableRowDisabled: ["ttSelectableRowDisabled", "ttSelectableRowDisabled", booleanAttribute] }, host: { listeners: { "dblclick": "onClick($event)" }, properties: { "class.p-highlight": "selected" }, classAttribute: "cax-element" }, ngImport: i0 });
|
|
3254
|
+
}
|
|
3255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTSelectableRowDblClick, decorators: [{
|
|
3256
|
+
type: Directive,
|
|
3257
|
+
args: [{
|
|
3258
|
+
selector: '[ttSelectableRowDblClick]',
|
|
3259
|
+
host: {
|
|
3260
|
+
class: 'cax-element',
|
|
3261
|
+
'[class.p-highlight]': 'selected'
|
|
3262
|
+
}
|
|
3263
|
+
}]
|
|
3264
|
+
}], ctorParameters: () => [{ type: TreeTable }, { type: TreeTableService }], propDecorators: { rowNode: [{
|
|
3265
|
+
type: Input,
|
|
3266
|
+
args: ['ttSelectableRowDblClick']
|
|
3267
|
+
}], ttSelectableRowDisabled: [{
|
|
3268
|
+
type: Input,
|
|
3269
|
+
args: [{ transform: booleanAttribute }]
|
|
3270
|
+
}], onClick: [{
|
|
3271
|
+
type: HostListener,
|
|
3272
|
+
args: ['dblclick', ['$event']]
|
|
3273
|
+
}] } });
|
|
3274
|
+
class TTContextMenuRow {
|
|
3275
|
+
tt;
|
|
3276
|
+
tableService;
|
|
3277
|
+
el;
|
|
3278
|
+
rowNode;
|
|
3279
|
+
ttContextMenuRowDisabled;
|
|
3280
|
+
selected;
|
|
3281
|
+
subscription;
|
|
3282
|
+
constructor(tt, tableService, el) {
|
|
3283
|
+
this.tt = tt;
|
|
3284
|
+
this.tableService = tableService;
|
|
3285
|
+
this.el = el;
|
|
3286
|
+
if (this.isEnabled()) {
|
|
3287
|
+
this.subscription = this.tt.tableService.contextMenuSource$.subscribe((node) => {
|
|
3288
|
+
this.selected = this.tt.equals(this.rowNode.node, node);
|
|
3289
|
+
});
|
|
3290
|
+
}
|
|
3291
|
+
}
|
|
3292
|
+
onContextMenu(event) {
|
|
3293
|
+
if (this.isEnabled()) {
|
|
3294
|
+
this.tt.handleRowRightClick({
|
|
3295
|
+
originalEvent: event,
|
|
3296
|
+
rowNode: this.rowNode
|
|
3297
|
+
});
|
|
3298
|
+
this.el.nativeElement.focus();
|
|
3299
|
+
event.preventDefault();
|
|
3300
|
+
}
|
|
3301
|
+
}
|
|
3302
|
+
isEnabled() {
|
|
3303
|
+
return this.ttContextMenuRowDisabled !== true;
|
|
3304
|
+
}
|
|
3305
|
+
ngOnDestroy() {
|
|
3306
|
+
if (this.subscription) {
|
|
3307
|
+
this.subscription.unsubscribe();
|
|
3308
|
+
}
|
|
3309
|
+
}
|
|
3310
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTContextMenuRow, deps: [{ token: TreeTable }, { token: TreeTableService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3311
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.9", type: TTContextMenuRow, selector: "[ttContextMenuRow]", inputs: { rowNode: ["ttContextMenuRow", "rowNode"], ttContextMenuRowDisabled: ["ttContextMenuRowDisabled", "ttContextMenuRowDisabled", booleanAttribute] }, host: { listeners: { "contextmenu": "onContextMenu($event)" }, properties: { "class.p-highlight-contextmenu": "selected", "attr.tabindex": "isEnabled() ? 0 : undefined" }, classAttribute: "cax-element" }, ngImport: i0 });
|
|
3312
|
+
}
|
|
3313
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTContextMenuRow, decorators: [{
|
|
3314
|
+
type: Directive,
|
|
3315
|
+
args: [{
|
|
3316
|
+
selector: '[ttContextMenuRow]',
|
|
3317
|
+
host: {
|
|
3318
|
+
class: 'cax-element',
|
|
3319
|
+
'[class.p-highlight-contextmenu]': 'selected',
|
|
3320
|
+
'[attr.tabindex]': 'isEnabled() ? 0 : undefined'
|
|
3321
|
+
}
|
|
3322
|
+
}]
|
|
3323
|
+
}], ctorParameters: () => [{ type: TreeTable }, { type: TreeTableService }, { type: i0.ElementRef }], propDecorators: { rowNode: [{
|
|
3324
|
+
type: Input,
|
|
3325
|
+
args: ['ttContextMenuRow']
|
|
3326
|
+
}], ttContextMenuRowDisabled: [{
|
|
3327
|
+
type: Input,
|
|
3328
|
+
args: [{ transform: booleanAttribute }]
|
|
3329
|
+
}], onContextMenu: [{
|
|
3330
|
+
type: HostListener,
|
|
3331
|
+
args: ['contextmenu', ['$event']]
|
|
3332
|
+
}] } });
|
|
3333
|
+
class TTCheckbox {
|
|
3334
|
+
tt;
|
|
3335
|
+
tableService;
|
|
3336
|
+
cd;
|
|
3337
|
+
disabled;
|
|
3338
|
+
rowNode;
|
|
3339
|
+
checked;
|
|
3340
|
+
partialChecked;
|
|
3341
|
+
focused;
|
|
3342
|
+
subscription;
|
|
3343
|
+
constructor(tt, tableService, cd) {
|
|
3344
|
+
this.tt = tt;
|
|
3345
|
+
this.tableService = tableService;
|
|
3346
|
+
this.cd = cd;
|
|
3347
|
+
this.subscription = this.tt.tableService.selectionSource$.subscribe(() => {
|
|
3348
|
+
if (this.tt.selectionKeys) {
|
|
3349
|
+
this.checked = this.tt.isNodeSelected(this.rowNode.node);
|
|
3350
|
+
this.partialChecked = this.tt.isNodePartialSelected(this.rowNode.node);
|
|
3351
|
+
}
|
|
3352
|
+
else {
|
|
3353
|
+
this.checked = this.tt.isSelected(this.rowNode.node);
|
|
3354
|
+
this.partialChecked = this.rowNode.node.partialSelected;
|
|
3355
|
+
}
|
|
3356
|
+
this.cd.markForCheck();
|
|
3357
|
+
});
|
|
3358
|
+
}
|
|
3359
|
+
ngOnInit() {
|
|
3360
|
+
if (this.tt.selectionKeys) {
|
|
3361
|
+
this.checked = this.tt.isNodeSelected(this.rowNode.node);
|
|
3362
|
+
this.partialChecked = this.tt.isNodePartialSelected(this.rowNode.node);
|
|
3363
|
+
}
|
|
3364
|
+
else {
|
|
3365
|
+
// for backward compatibility
|
|
3366
|
+
this.checked = this.tt.isSelected(this.rowNode.node);
|
|
3367
|
+
this.partialChecked = this.rowNode.node.partialSelected;
|
|
3368
|
+
}
|
|
3369
|
+
}
|
|
3370
|
+
onClick(event) {
|
|
3371
|
+
if (!this.disabled) {
|
|
3372
|
+
if (this.tt.selectionKeys) {
|
|
3373
|
+
const _check = !this.checked;
|
|
3374
|
+
this.tt.toggleCheckbox({
|
|
3375
|
+
originalEvent: event,
|
|
3376
|
+
check: _check,
|
|
3377
|
+
rowNode: this.rowNode
|
|
3378
|
+
});
|
|
3379
|
+
}
|
|
3380
|
+
else {
|
|
3381
|
+
this.tt.toggleNodeWithCheckbox({
|
|
3382
|
+
originalEvent: event,
|
|
3383
|
+
rowNode: this.rowNode
|
|
3384
|
+
});
|
|
3385
|
+
}
|
|
3386
|
+
}
|
|
3387
|
+
DomHandler.clearSelection();
|
|
3388
|
+
}
|
|
3389
|
+
onFocus() {
|
|
3390
|
+
this.focused = true;
|
|
3391
|
+
}
|
|
3392
|
+
onBlur() {
|
|
3393
|
+
this.focused = false;
|
|
3394
|
+
}
|
|
3395
|
+
ngOnDestroy() {
|
|
3396
|
+
if (this.subscription) {
|
|
3397
|
+
this.subscription.unsubscribe();
|
|
3398
|
+
}
|
|
3399
|
+
}
|
|
3400
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTCheckbox, deps: [{ token: TreeTable }, { token: TreeTableService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3401
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.2.9", type: TTCheckbox, selector: "p-treeTableCheckbox", inputs: { disabled: ["disabled", "disabled", booleanAttribute], rowNode: ["value", "rowNode"] }, host: { classAttribute: "cax-element" }, ngImport: i0, template: `
|
|
3402
|
+
<div class="p-checkbox p-component" [ngClass]="{ 'p-checkbox-focused': focused, 'p-variant-filled': tt.config.inputStyle() === 'filled' }" (click)="onClick($event)">
|
|
3403
|
+
<div class="p-hidden-accessible">
|
|
3404
|
+
<input type="checkbox" [checked]="checked" (focus)="onFocus()" (blur)="onBlur()" tabindex="-1" />
|
|
3405
|
+
</div>
|
|
3406
|
+
<div #box [ngClass]="{ 'p-checkbox-box': true, 'p-highlight': checked, 'p-focus': focused, 'p-indeterminate': partialChecked, 'p-disabled': disabled }" role="checkbox" [attr.aria-checked]="checked">
|
|
3407
|
+
<ng-container *ngIf="!tt.checkboxIconTemplate">
|
|
3408
|
+
<CheckIcon [styleClass]="'p-checkbox-icon'" *ngIf="checked" />
|
|
3409
|
+
<MinusIcon [styleClass]="'p-checkbox-icon'" *ngIf="partialChecked" />
|
|
3410
|
+
</ng-container>
|
|
3411
|
+
<span *ngIf="tt.checkboxIconTemplate">
|
|
3412
|
+
<ng-template *ngTemplateOutlet="tt.checkboxIconTemplate; context: { $implicit: checked, partialSelected: partialChecked }"></ng-template>
|
|
3413
|
+
</span>
|
|
3414
|
+
</div>
|
|
3415
|
+
</div>
|
|
3416
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => CheckIcon), selector: "CheckIcon" }, { kind: "component", type: i0.forwardRef(() => MinusIcon), selector: "MinusIcon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3417
|
+
}
|
|
3418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTCheckbox, decorators: [{
|
|
3419
|
+
type: Component,
|
|
3420
|
+
args: [{
|
|
3421
|
+
selector: 'p-treeTableCheckbox',
|
|
3422
|
+
template: `
|
|
3423
|
+
<div class="p-checkbox p-component" [ngClass]="{ 'p-checkbox-focused': focused, 'p-variant-filled': tt.config.inputStyle() === 'filled' }" (click)="onClick($event)">
|
|
3424
|
+
<div class="p-hidden-accessible">
|
|
3425
|
+
<input type="checkbox" [checked]="checked" (focus)="onFocus()" (blur)="onBlur()" tabindex="-1" />
|
|
3426
|
+
</div>
|
|
3427
|
+
<div #box [ngClass]="{ 'p-checkbox-box': true, 'p-highlight': checked, 'p-focus': focused, 'p-indeterminate': partialChecked, 'p-disabled': disabled }" role="checkbox" [attr.aria-checked]="checked">
|
|
3428
|
+
<ng-container *ngIf="!tt.checkboxIconTemplate">
|
|
3429
|
+
<CheckIcon [styleClass]="'p-checkbox-icon'" *ngIf="checked" />
|
|
3430
|
+
<MinusIcon [styleClass]="'p-checkbox-icon'" *ngIf="partialChecked" />
|
|
3431
|
+
</ng-container>
|
|
3432
|
+
<span *ngIf="tt.checkboxIconTemplate">
|
|
3433
|
+
<ng-template *ngTemplateOutlet="tt.checkboxIconTemplate; context: { $implicit: checked, partialSelected: partialChecked }"></ng-template>
|
|
3434
|
+
</span>
|
|
3435
|
+
</div>
|
|
3436
|
+
</div>
|
|
3437
|
+
`,
|
|
3438
|
+
encapsulation: ViewEncapsulation.None,
|
|
3439
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3440
|
+
host: {
|
|
3441
|
+
class: 'cax-element'
|
|
3442
|
+
}
|
|
3443
|
+
}]
|
|
3444
|
+
}], ctorParameters: () => [{ type: TreeTable }, { type: TreeTableService }, { type: i0.ChangeDetectorRef }], propDecorators: { disabled: [{
|
|
3445
|
+
type: Input,
|
|
3446
|
+
args: [{ transform: booleanAttribute }]
|
|
3447
|
+
}], rowNode: [{
|
|
3448
|
+
type: Input,
|
|
3449
|
+
args: ['value']
|
|
3450
|
+
}] } });
|
|
3451
|
+
class TTHeaderCheckbox {
|
|
3452
|
+
tt;
|
|
3453
|
+
tableService;
|
|
3454
|
+
cd;
|
|
3455
|
+
boxViewChild;
|
|
3456
|
+
checked;
|
|
3457
|
+
focused;
|
|
3458
|
+
disabled;
|
|
3459
|
+
selectionChangeSubscription;
|
|
3460
|
+
valueChangeSubscription;
|
|
3461
|
+
constructor(tt, tableService, cd) {
|
|
3462
|
+
this.tt = tt;
|
|
3463
|
+
this.tableService = tableService;
|
|
3464
|
+
this.cd = cd;
|
|
3465
|
+
this.valueChangeSubscription = this.tt.tableService.uiUpdateSource$.subscribe(() => {
|
|
3466
|
+
this.checked = this.updateCheckedState();
|
|
3467
|
+
});
|
|
3468
|
+
this.selectionChangeSubscription = this.tt.tableService.selectionSource$.subscribe(() => {
|
|
3469
|
+
this.checked = this.updateCheckedState();
|
|
3470
|
+
});
|
|
3471
|
+
}
|
|
3472
|
+
ngOnInit() {
|
|
3473
|
+
this.checked = this.updateCheckedState();
|
|
3474
|
+
}
|
|
3475
|
+
onClick(event, checked) {
|
|
3476
|
+
if ((this.tt.value || this.tt.filteredNodes) && (this.tt.value.length > 0 || this.tt.filteredNodes.length > 0)) {
|
|
3477
|
+
this.tt.toggleNodesWithCheckbox(event, !checked);
|
|
3478
|
+
}
|
|
3479
|
+
DomHandler.clearSelection();
|
|
3480
|
+
}
|
|
3481
|
+
onFocus() {
|
|
3482
|
+
this.focused = true;
|
|
3483
|
+
}
|
|
3484
|
+
onBlur() {
|
|
3485
|
+
this.focused = false;
|
|
3486
|
+
}
|
|
3487
|
+
ngOnDestroy() {
|
|
3488
|
+
if (this.selectionChangeSubscription) {
|
|
3489
|
+
this.selectionChangeSubscription.unsubscribe();
|
|
3490
|
+
}
|
|
3491
|
+
if (this.valueChangeSubscription) {
|
|
3492
|
+
this.valueChangeSubscription.unsubscribe();
|
|
3493
|
+
}
|
|
3494
|
+
}
|
|
3495
|
+
updateCheckedState() {
|
|
3496
|
+
this.cd.markForCheck();
|
|
3497
|
+
let checked;
|
|
3498
|
+
const data = this.tt.filteredNodes || this.tt.value;
|
|
3499
|
+
if (data) {
|
|
3500
|
+
if (this.tt.selectionKeys) {
|
|
3501
|
+
for (let node of data) {
|
|
3502
|
+
if (this.tt.isNodeSelected(node)) {
|
|
3503
|
+
checked = true;
|
|
3504
|
+
}
|
|
3505
|
+
else {
|
|
3506
|
+
checked = false;
|
|
3507
|
+
break;
|
|
3508
|
+
}
|
|
3509
|
+
}
|
|
3510
|
+
}
|
|
3511
|
+
if (!this.tt.selectionKeys) {
|
|
3512
|
+
// legacy selection support, will be removed in v18
|
|
3513
|
+
for (let node of data) {
|
|
3514
|
+
if (this.tt.isSelected(node)) {
|
|
3515
|
+
checked = true;
|
|
3516
|
+
}
|
|
3517
|
+
else {
|
|
3518
|
+
checked = false;
|
|
3519
|
+
break;
|
|
3520
|
+
}
|
|
3521
|
+
}
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3524
|
+
else {
|
|
3525
|
+
checked = false;
|
|
3526
|
+
}
|
|
3527
|
+
return checked;
|
|
3528
|
+
}
|
|
3529
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTHeaderCheckbox, deps: [{ token: TreeTable }, { token: TreeTableService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3530
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: TTHeaderCheckbox, selector: "p-treeTableHeaderCheckbox", host: { classAttribute: "cax-element" }, viewQueries: [{ propertyName: "boxViewChild", first: true, predicate: ["box"], descendants: true }], ngImport: i0, template: `
|
|
3531
|
+
<div class="p-checkbox p-component" [ngClass]="{ 'p-checkbox-focused': focused }" (click)="onClick($event, cb.checked)">
|
|
3532
|
+
<div class="p-hidden-accessible">
|
|
3533
|
+
<input #cb type="checkbox" [checked]="checked" (focus)="onFocus()" (blur)="onBlur()" [disabled]="!tt.value || tt.value.length === 0" />
|
|
3534
|
+
</div>
|
|
3535
|
+
<div #box [ngClass]="{ 'p-checkbox-box': true, 'p-highlight': checked, 'p-focus': focused, 'p-disabled': !tt.value || tt.value.length === 0 }" role="checkbox" [attr.aria-checked]="checked">
|
|
3536
|
+
<ng-container *ngIf="!tt.headerCheckboxIconTemplate">
|
|
3537
|
+
<CheckIcon *ngIf="checked" [styleClass]="'p-checkbox-icon'" />
|
|
3538
|
+
</ng-container>
|
|
3539
|
+
<span class="p-checkbox-icon" *ngIf="tt.headerCheckboxIconTemplate">
|
|
3540
|
+
<ng-template *ngTemplateOutlet="tt.headerCheckboxIconTemplate; context: { $implicit: checked }"></ng-template>
|
|
3541
|
+
</span>
|
|
3542
|
+
</div>
|
|
3543
|
+
</div>
|
|
3544
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => CheckIcon), selector: "CheckIcon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3545
|
+
}
|
|
3546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTHeaderCheckbox, decorators: [{
|
|
3547
|
+
type: Component,
|
|
3548
|
+
args: [{
|
|
3549
|
+
selector: 'p-treeTableHeaderCheckbox',
|
|
3550
|
+
template: `
|
|
3551
|
+
<div class="p-checkbox p-component" [ngClass]="{ 'p-checkbox-focused': focused }" (click)="onClick($event, cb.checked)">
|
|
3552
|
+
<div class="p-hidden-accessible">
|
|
3553
|
+
<input #cb type="checkbox" [checked]="checked" (focus)="onFocus()" (blur)="onBlur()" [disabled]="!tt.value || tt.value.length === 0" />
|
|
3554
|
+
</div>
|
|
3555
|
+
<div #box [ngClass]="{ 'p-checkbox-box': true, 'p-highlight': checked, 'p-focus': focused, 'p-disabled': !tt.value || tt.value.length === 0 }" role="checkbox" [attr.aria-checked]="checked">
|
|
3556
|
+
<ng-container *ngIf="!tt.headerCheckboxIconTemplate">
|
|
3557
|
+
<CheckIcon *ngIf="checked" [styleClass]="'p-checkbox-icon'" />
|
|
3558
|
+
</ng-container>
|
|
3559
|
+
<span class="p-checkbox-icon" *ngIf="tt.headerCheckboxIconTemplate">
|
|
3560
|
+
<ng-template *ngTemplateOutlet="tt.headerCheckboxIconTemplate; context: { $implicit: checked }"></ng-template>
|
|
3561
|
+
</span>
|
|
3562
|
+
</div>
|
|
3563
|
+
</div>
|
|
3564
|
+
`,
|
|
3565
|
+
encapsulation: ViewEncapsulation.None,
|
|
3566
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3567
|
+
host: {
|
|
3568
|
+
class: 'cax-element'
|
|
3569
|
+
}
|
|
3570
|
+
}]
|
|
3571
|
+
}], ctorParameters: () => [{ type: TreeTable }, { type: TreeTableService }, { type: i0.ChangeDetectorRef }], propDecorators: { boxViewChild: [{
|
|
3572
|
+
type: ViewChild,
|
|
3573
|
+
args: ['box']
|
|
3574
|
+
}] } });
|
|
3575
|
+
class TTEditableColumn {
|
|
3576
|
+
tt;
|
|
3577
|
+
el;
|
|
3578
|
+
zone;
|
|
3579
|
+
data;
|
|
3580
|
+
field;
|
|
3581
|
+
ttEditableColumnDisabled;
|
|
3582
|
+
constructor(tt, el, zone) {
|
|
3583
|
+
this.tt = tt;
|
|
3584
|
+
this.el = el;
|
|
3585
|
+
this.zone = zone;
|
|
3586
|
+
}
|
|
3587
|
+
ngAfterViewInit() {
|
|
3588
|
+
if (this.isEnabled()) {
|
|
3589
|
+
DomHandler.addClass(this.el.nativeElement, 'p-editable-column');
|
|
3590
|
+
}
|
|
3591
|
+
}
|
|
3592
|
+
onClick(event) {
|
|
3593
|
+
if (this.isEnabled()) {
|
|
3594
|
+
this.tt.editingCellClick = true;
|
|
3595
|
+
if (this.tt.editingCell) {
|
|
3596
|
+
if (this.tt.editingCell !== this.el.nativeElement) {
|
|
3597
|
+
if (!this.tt.isEditingCellValid()) {
|
|
3598
|
+
return;
|
|
3599
|
+
}
|
|
3600
|
+
DomHandler.removeClass(this.tt.editingCell, 'p-cell-editing');
|
|
3601
|
+
this.openCell();
|
|
3602
|
+
}
|
|
3603
|
+
}
|
|
3604
|
+
else {
|
|
3605
|
+
this.openCell();
|
|
3606
|
+
}
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
openCell() {
|
|
3610
|
+
this.tt.updateEditingCell(this.el.nativeElement, this.data, this.field);
|
|
3611
|
+
DomHandler.addClass(this.el.nativeElement, 'p-cell-editing');
|
|
3612
|
+
this.tt.onEditInit.emit({ field: this.field, data: this.data });
|
|
3613
|
+
this.tt.editingCellClick = true;
|
|
3614
|
+
this.zone.runOutsideAngular(() => {
|
|
3615
|
+
setTimeout(() => {
|
|
3616
|
+
let focusable = DomHandler.findSingle(this.el.nativeElement, 'input, textarea');
|
|
3617
|
+
if (focusable) {
|
|
3618
|
+
focusable.focus();
|
|
3619
|
+
}
|
|
3620
|
+
}, 50);
|
|
3621
|
+
});
|
|
3622
|
+
}
|
|
3623
|
+
closeEditingCell() {
|
|
3624
|
+
DomHandler.removeClass(this.tt.editingCell, 'p-checkbox-icon');
|
|
3625
|
+
this.tt.editingCell = null;
|
|
3626
|
+
this.tt.unbindDocumentEditListener();
|
|
3627
|
+
}
|
|
3628
|
+
onKeyDown(event) {
|
|
3629
|
+
if (this.isEnabled()) {
|
|
3630
|
+
if (event.code == 'Enter' && !event.shiftKey) {
|
|
3631
|
+
if (this.tt.isEditingCellValid()) {
|
|
3632
|
+
DomHandler.removeClass(this.tt.editingCell, 'p-cell-editing');
|
|
3633
|
+
this.closeEditingCell();
|
|
3634
|
+
this.tt.onEditComplete.emit({ field: this.field, data: this.data });
|
|
3635
|
+
}
|
|
3636
|
+
event.preventDefault();
|
|
3637
|
+
}
|
|
3638
|
+
else if (event.code == 'Escape') {
|
|
3639
|
+
if (this.tt.isEditingCellValid()) {
|
|
3640
|
+
DomHandler.removeClass(this.tt.editingCell, 'p-cell-editing');
|
|
3641
|
+
this.closeEditingCell();
|
|
3642
|
+
this.tt.onEditCancel.emit({ field: this.field, data: this.data });
|
|
3643
|
+
}
|
|
3644
|
+
event.preventDefault();
|
|
3645
|
+
}
|
|
3646
|
+
else if (event.code == 'Tab') {
|
|
3647
|
+
this.tt.onEditComplete.emit({ field: this.field, data: this.data });
|
|
3648
|
+
if (event.shiftKey)
|
|
3649
|
+
this.moveToPreviousCell(event);
|
|
3650
|
+
else
|
|
3651
|
+
this.moveToNextCell(event);
|
|
3652
|
+
}
|
|
3653
|
+
}
|
|
3654
|
+
}
|
|
3655
|
+
findCell(element) {
|
|
3656
|
+
if (element) {
|
|
3657
|
+
let cell = element;
|
|
3658
|
+
while (cell && !DomHandler.hasClass(cell, 'p-cell-editing')) {
|
|
3659
|
+
cell = cell.parentElement;
|
|
3660
|
+
}
|
|
3661
|
+
return cell;
|
|
3662
|
+
}
|
|
3663
|
+
else {
|
|
3664
|
+
return null;
|
|
3665
|
+
}
|
|
3666
|
+
}
|
|
3667
|
+
moveToPreviousCell(event) {
|
|
3668
|
+
let currentCell = this.findCell(event.target);
|
|
3669
|
+
let row = currentCell.parentElement;
|
|
3670
|
+
let targetCell = this.findPreviousEditableColumn(currentCell);
|
|
3671
|
+
if (targetCell) {
|
|
3672
|
+
DomHandler.invokeElementMethod(targetCell, 'click');
|
|
3673
|
+
event.preventDefault();
|
|
3674
|
+
}
|
|
3675
|
+
}
|
|
3676
|
+
moveToNextCell(event) {
|
|
3677
|
+
let currentCell = this.findCell(event.target);
|
|
3678
|
+
let row = currentCell.parentElement;
|
|
3679
|
+
let targetCell = this.findNextEditableColumn(currentCell);
|
|
3680
|
+
if (targetCell) {
|
|
3681
|
+
DomHandler.invokeElementMethod(targetCell, 'click');
|
|
3682
|
+
event.preventDefault();
|
|
3683
|
+
}
|
|
3684
|
+
}
|
|
3685
|
+
findPreviousEditableColumn(cell) {
|
|
3686
|
+
let prevCell = cell.previousElementSibling;
|
|
3687
|
+
if (!prevCell) {
|
|
3688
|
+
let previousRow = cell.parentElement ? cell.parentElement.previousElementSibling : null;
|
|
3689
|
+
if (previousRow) {
|
|
3690
|
+
prevCell = previousRow.lastElementChild;
|
|
3691
|
+
}
|
|
3692
|
+
}
|
|
3693
|
+
if (prevCell) {
|
|
3694
|
+
if (DomHandler.hasClass(prevCell, 'p-editable-column'))
|
|
3695
|
+
return prevCell;
|
|
3696
|
+
else
|
|
3697
|
+
return this.findPreviousEditableColumn(prevCell);
|
|
3698
|
+
}
|
|
3699
|
+
else {
|
|
3700
|
+
return null;
|
|
3701
|
+
}
|
|
3702
|
+
}
|
|
3703
|
+
findNextEditableColumn(cell) {
|
|
3704
|
+
let nextCell = cell.nextElementSibling;
|
|
3705
|
+
if (!nextCell) {
|
|
3706
|
+
let nextRow = cell.parentElement ? cell.parentElement.nextElementSibling : null;
|
|
3707
|
+
if (nextRow) {
|
|
3708
|
+
nextCell = nextRow.firstElementChild;
|
|
3709
|
+
}
|
|
3710
|
+
}
|
|
3711
|
+
if (nextCell) {
|
|
3712
|
+
if (DomHandler.hasClass(nextCell, 'p-editable-column'))
|
|
3713
|
+
return nextCell;
|
|
3714
|
+
else
|
|
3715
|
+
return this.findNextEditableColumn(nextCell);
|
|
3716
|
+
}
|
|
3717
|
+
else {
|
|
3718
|
+
return null;
|
|
3719
|
+
}
|
|
3720
|
+
}
|
|
3721
|
+
isEnabled() {
|
|
3722
|
+
return this.ttEditableColumnDisabled !== true;
|
|
3723
|
+
}
|
|
3724
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTEditableColumn, deps: [{ token: TreeTable }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3725
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.9", type: TTEditableColumn, selector: "[ttEditableColumn]", inputs: { data: ["ttEditableColumn", "data"], field: ["ttEditableColumnField", "field"], ttEditableColumnDisabled: ["ttEditableColumnDisabled", "ttEditableColumnDisabled", booleanAttribute] }, host: { listeners: { "click": "onClick($event)", "keydown": "onKeyDown($event)" }, classAttribute: "cax-element" }, ngImport: i0 });
|
|
3726
|
+
}
|
|
3727
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTEditableColumn, decorators: [{
|
|
3728
|
+
type: Directive,
|
|
3729
|
+
args: [{
|
|
3730
|
+
selector: '[ttEditableColumn]',
|
|
3731
|
+
host: {
|
|
3732
|
+
class: 'cax-element'
|
|
3733
|
+
}
|
|
3734
|
+
}]
|
|
3735
|
+
}], ctorParameters: () => [{ type: TreeTable }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { data: [{
|
|
3736
|
+
type: Input,
|
|
3737
|
+
args: ['ttEditableColumn']
|
|
3738
|
+
}], field: [{
|
|
3739
|
+
type: Input,
|
|
3740
|
+
args: ['ttEditableColumnField']
|
|
3741
|
+
}], ttEditableColumnDisabled: [{
|
|
3742
|
+
type: Input,
|
|
3743
|
+
args: [{ transform: booleanAttribute }]
|
|
3744
|
+
}], onClick: [{
|
|
3745
|
+
type: HostListener,
|
|
3746
|
+
args: ['click', ['$event']]
|
|
3747
|
+
}], onKeyDown: [{
|
|
3748
|
+
type: HostListener,
|
|
3749
|
+
args: ['keydown', ['$event']]
|
|
3750
|
+
}] } });
|
|
3751
|
+
class TreeTableCellEditor {
|
|
3752
|
+
tt;
|
|
3753
|
+
editableColumn;
|
|
3754
|
+
templates;
|
|
3755
|
+
inputTemplate;
|
|
3756
|
+
outputTemplate;
|
|
3757
|
+
constructor(tt, editableColumn) {
|
|
3758
|
+
this.tt = tt;
|
|
3759
|
+
this.editableColumn = editableColumn;
|
|
3760
|
+
}
|
|
3761
|
+
ngAfterContentInit() {
|
|
3762
|
+
this.templates.forEach((item) => {
|
|
3763
|
+
switch (item.getType()) {
|
|
3764
|
+
case 'input':
|
|
3765
|
+
this.inputTemplate = item.template;
|
|
3766
|
+
break;
|
|
3767
|
+
case 'output':
|
|
3768
|
+
this.outputTemplate = item.template;
|
|
3769
|
+
break;
|
|
3770
|
+
}
|
|
3771
|
+
});
|
|
3772
|
+
}
|
|
3773
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TreeTableCellEditor, deps: [{ token: TreeTable }, { token: TTEditableColumn }], target: i0.ɵɵFactoryTarget.Component });
|
|
3774
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: TreeTableCellEditor, selector: "p-treeTableCellEditor", host: { classAttribute: "cax-element" }, queries: [{ propertyName: "templates", predicate: CaxTemplate }], ngImport: i0, template: `
|
|
3775
|
+
<ng-container *ngIf="tt.editingCell === editableColumn.el.nativeElement">
|
|
3776
|
+
<ng-container *ngTemplateOutlet="inputTemplate"></ng-container>
|
|
3777
|
+
</ng-container>
|
|
3778
|
+
<ng-container *ngIf="!tt.editingCell || tt.editingCell !== editableColumn.el.nativeElement">
|
|
3779
|
+
<ng-container *ngTemplateOutlet="outputTemplate"></ng-container>
|
|
3780
|
+
</ng-container>
|
|
3781
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
3782
|
+
}
|
|
3783
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TreeTableCellEditor, decorators: [{
|
|
3784
|
+
type: Component,
|
|
3785
|
+
args: [{
|
|
3786
|
+
selector: 'p-treeTableCellEditor',
|
|
3787
|
+
template: `
|
|
3788
|
+
<ng-container *ngIf="tt.editingCell === editableColumn.el.nativeElement">
|
|
3789
|
+
<ng-container *ngTemplateOutlet="inputTemplate"></ng-container>
|
|
3790
|
+
</ng-container>
|
|
3791
|
+
<ng-container *ngIf="!tt.editingCell || tt.editingCell !== editableColumn.el.nativeElement">
|
|
3792
|
+
<ng-container *ngTemplateOutlet="outputTemplate"></ng-container>
|
|
3793
|
+
</ng-container>
|
|
3794
|
+
`,
|
|
3795
|
+
encapsulation: ViewEncapsulation.None,
|
|
3796
|
+
host: {
|
|
3797
|
+
class: 'cax-element'
|
|
3798
|
+
}
|
|
3799
|
+
}]
|
|
3800
|
+
}], ctorParameters: () => [{ type: TreeTable }, { type: TTEditableColumn }], propDecorators: { templates: [{
|
|
3801
|
+
type: ContentChildren,
|
|
3802
|
+
args: [CaxTemplate]
|
|
3803
|
+
}] } });
|
|
3804
|
+
class TTRow {
|
|
3805
|
+
tt;
|
|
3806
|
+
el;
|
|
3807
|
+
zone;
|
|
3808
|
+
get level() {
|
|
3809
|
+
return this.rowNode?.['level'] + 1;
|
|
3810
|
+
}
|
|
3811
|
+
get styleClass() {
|
|
3812
|
+
return this.rowNode?.node['styleClass'] || '';
|
|
3813
|
+
}
|
|
3814
|
+
get expanded() {
|
|
3815
|
+
return this.rowNode?.node['expanded'];
|
|
3816
|
+
}
|
|
3817
|
+
rowNode;
|
|
3818
|
+
constructor(tt, el, zone) {
|
|
3819
|
+
this.tt = tt;
|
|
3820
|
+
this.el = el;
|
|
3821
|
+
this.zone = zone;
|
|
3822
|
+
}
|
|
3823
|
+
onKeyDown(event) {
|
|
3824
|
+
switch (event.code) {
|
|
3825
|
+
case 'ArrowDown':
|
|
3826
|
+
this.onArrowDownKey(event);
|
|
3827
|
+
break;
|
|
3828
|
+
case 'ArrowUp':
|
|
3829
|
+
this.onArrowUpKey(event);
|
|
3830
|
+
break;
|
|
3831
|
+
case 'ArrowRight':
|
|
3832
|
+
this.onArrowRightKey(event);
|
|
3833
|
+
break;
|
|
3834
|
+
case 'ArrowLeft':
|
|
3835
|
+
this.onArrowLeftKey(event);
|
|
3836
|
+
break;
|
|
3837
|
+
case 'Tab':
|
|
3838
|
+
this.onTabKey(event);
|
|
3839
|
+
break;
|
|
3840
|
+
case 'Home':
|
|
3841
|
+
this.onHomeKey(event);
|
|
3842
|
+
break;
|
|
3843
|
+
case 'End':
|
|
3844
|
+
this.onEndKey(event);
|
|
3845
|
+
break;
|
|
3846
|
+
default:
|
|
3847
|
+
break;
|
|
3848
|
+
}
|
|
3849
|
+
}
|
|
3850
|
+
onArrowDownKey(event) {
|
|
3851
|
+
let nextRow = this.el?.nativeElement?.nextElementSibling;
|
|
3852
|
+
if (nextRow) {
|
|
3853
|
+
this.focusRowChange(event.currentTarget, nextRow);
|
|
3854
|
+
}
|
|
3855
|
+
event.preventDefault();
|
|
3856
|
+
}
|
|
3857
|
+
onArrowUpKey(event) {
|
|
3858
|
+
let prevRow = this.el?.nativeElement?.previousElementSibling;
|
|
3859
|
+
if (prevRow) {
|
|
3860
|
+
this.focusRowChange(event.currentTarget, prevRow);
|
|
3861
|
+
}
|
|
3862
|
+
event.preventDefault();
|
|
3863
|
+
}
|
|
3864
|
+
onArrowRightKey(event) {
|
|
3865
|
+
const currentTarget = event.currentTarget;
|
|
3866
|
+
const isHiddenIcon = DomHandler.findSingle(currentTarget, 'button').style.visibility === 'hidden';
|
|
3867
|
+
if (!isHiddenIcon && !this.expanded && this.rowNode.node['children']) {
|
|
3868
|
+
this.expand(event);
|
|
3869
|
+
currentTarget.tabIndex = -1;
|
|
3870
|
+
}
|
|
3871
|
+
event.preventDefault();
|
|
3872
|
+
}
|
|
3873
|
+
onArrowLeftKey(event) {
|
|
3874
|
+
const container = this.tt.containerViewChild?.nativeElement;
|
|
3875
|
+
const expandedRows = DomHandler.find(container, '[aria-expanded="true"]');
|
|
3876
|
+
const lastExpandedRow = expandedRows[expandedRows.length - 1];
|
|
3877
|
+
if (this.expanded) {
|
|
3878
|
+
this.collapse(event);
|
|
3879
|
+
}
|
|
3880
|
+
if (lastExpandedRow) {
|
|
3881
|
+
this.tt.toggleRowIndex = DomHandler.index(lastExpandedRow);
|
|
3882
|
+
}
|
|
3883
|
+
this.restoreFocus();
|
|
3884
|
+
event.preventDefault();
|
|
3885
|
+
}
|
|
3886
|
+
onHomeKey(event) {
|
|
3887
|
+
const firstElement = DomHandler.findSingle(this.tt.containerViewChild?.nativeElement, `tr[aria-level="${this.level}"]`);
|
|
3888
|
+
firstElement && DomHandler.focus(firstElement);
|
|
3889
|
+
event.preventDefault();
|
|
3890
|
+
}
|
|
3891
|
+
onEndKey(event) {
|
|
3892
|
+
const nodes = DomHandler.find(this.tt.containerViewChild?.nativeElement, `tr[aria-level="${this.level}"]`);
|
|
3893
|
+
const lastElement = nodes[nodes.length - 1];
|
|
3894
|
+
DomHandler.focus(lastElement);
|
|
3895
|
+
event.preventDefault();
|
|
3896
|
+
}
|
|
3897
|
+
onTabKey(event) {
|
|
3898
|
+
const rows = this.el.nativeElement ? [...DomHandler.find(this.el.nativeElement.parentNode, 'tr')] : undefined;
|
|
3899
|
+
if (rows && ObjectUtils.isNotEmpty(rows)) {
|
|
3900
|
+
const hasSelectedRow = rows.some((row) => DomHandler.getAttribute(row, 'data-p-highlight') || row.getAttribute('aria-checked') === 'true');
|
|
3901
|
+
rows.forEach((row) => {
|
|
3902
|
+
row.tabIndex = -1;
|
|
3903
|
+
});
|
|
3904
|
+
if (hasSelectedRow) {
|
|
3905
|
+
const selectedNodes = rows.filter((node) => DomHandler.getAttribute(node, 'data-p-highlight') || node.getAttribute('aria-checked') === 'true');
|
|
3906
|
+
selectedNodes[0].tabIndex = 0;
|
|
3907
|
+
return;
|
|
3908
|
+
}
|
|
3909
|
+
rows[0].tabIndex = 0;
|
|
3910
|
+
}
|
|
3911
|
+
}
|
|
3912
|
+
expand(event) {
|
|
3913
|
+
this.tt.toggleRowIndex = DomHandler.index(this.el.nativeElement);
|
|
3914
|
+
this.rowNode.node['expanded'] = true;
|
|
3915
|
+
this.tt.updateSerializedValue();
|
|
3916
|
+
this.tt.tableService.onUIUpdate(this.tt.value);
|
|
3917
|
+
this.rowNode.node['children'] ? this.restoreFocus(this.tt.toggleRowIndex + 1) : this.restoreFocus();
|
|
3918
|
+
this.tt.onNodeExpand.emit({
|
|
3919
|
+
originalEvent: event,
|
|
3920
|
+
node: this.rowNode.node
|
|
3921
|
+
});
|
|
3922
|
+
}
|
|
3923
|
+
collapse(event) {
|
|
3924
|
+
this.rowNode.node['expanded'] = false;
|
|
3925
|
+
this.tt.updateSerializedValue();
|
|
3926
|
+
this.tt.tableService.onUIUpdate(this.tt.value);
|
|
3927
|
+
this.tt.onNodeCollapse.emit({ originalEvent: event, node: this.rowNode.node });
|
|
3928
|
+
}
|
|
3929
|
+
focusRowChange(firstFocusableRow, currentFocusedRow, lastVisibleDescendant) {
|
|
3930
|
+
firstFocusableRow.tabIndex = '-1';
|
|
3931
|
+
currentFocusedRow.tabIndex = '0';
|
|
3932
|
+
DomHandler.focus(currentFocusedRow);
|
|
3933
|
+
}
|
|
3934
|
+
restoreFocus(index) {
|
|
3935
|
+
this.zone.runOutsideAngular(() => {
|
|
3936
|
+
setTimeout(() => {
|
|
3937
|
+
const container = this.tt.containerViewChild?.nativeElement;
|
|
3938
|
+
const row = DomHandler.findSingle(container, '.p-treetable-tbody').children[index || this.tt.toggleRowIndex];
|
|
3939
|
+
const rows = [...DomHandler.find(container, 'tr')];
|
|
3940
|
+
rows &&
|
|
3941
|
+
rows.forEach((r) => {
|
|
3942
|
+
if (!row.isSameNode(r)) {
|
|
3943
|
+
r.tabIndex = -1;
|
|
3944
|
+
}
|
|
3945
|
+
});
|
|
3946
|
+
if (row) {
|
|
3947
|
+
row.tabIndex = 0;
|
|
3948
|
+
row.focus();
|
|
3949
|
+
}
|
|
3950
|
+
}, 25);
|
|
3951
|
+
});
|
|
3952
|
+
}
|
|
3953
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTRow, deps: [{ token: TreeTable }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3954
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.9", type: TTRow, selector: "[ttRow]", inputs: { rowNode: ["ttRow", "rowNode"] }, host: { listeners: { "keydown": "onKeyDown($event)" }, properties: { "class": "'cax-element ' + styleClass", "attr.tabindex": "'0'", "attr.aria-expanded": "expanded", "attr.aria-level": "level", "attr.data-pc-section": "row", "attr.role": "row" }, classAttribute: "cax-element" }, ngImport: i0 });
|
|
3955
|
+
}
|
|
3956
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TTRow, decorators: [{
|
|
3957
|
+
type: Directive,
|
|
3958
|
+
args: [{
|
|
3959
|
+
selector: '[ttRow]',
|
|
3960
|
+
host: {
|
|
3961
|
+
class: 'cax-element',
|
|
3962
|
+
'[class]': `'cax-element ' + styleClass`,
|
|
3963
|
+
'[attr.tabindex]': "'0'",
|
|
3964
|
+
'[attr.aria-expanded]': 'expanded',
|
|
3965
|
+
'[attr.aria-level]': 'level',
|
|
3966
|
+
'[attr.data-pc-section]': 'row',
|
|
3967
|
+
'[attr.role]': 'row'
|
|
3968
|
+
}
|
|
3969
|
+
}]
|
|
3970
|
+
}], ctorParameters: () => [{ type: TreeTable }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { rowNode: [{
|
|
3971
|
+
type: Input,
|
|
3972
|
+
args: ['ttRow']
|
|
3973
|
+
}], onKeyDown: [{
|
|
3974
|
+
type: HostListener,
|
|
3975
|
+
args: ['keydown', ['$event']]
|
|
3976
|
+
}] } });
|
|
3977
|
+
class TreeTableToggler {
|
|
3978
|
+
tt;
|
|
3979
|
+
config;
|
|
3980
|
+
rowNode;
|
|
3981
|
+
constructor(tt, config) {
|
|
3982
|
+
this.tt = tt;
|
|
3983
|
+
this.config = config;
|
|
3984
|
+
}
|
|
3985
|
+
get toggleButtonAriaLabel() {
|
|
3986
|
+
return this.config.translation ? (this.rowNode.expanded ? this.config.translation.aria.collapseRow : this.config.translation.aria.expandRow) : undefined;
|
|
3987
|
+
}
|
|
3988
|
+
onClick(event) {
|
|
3989
|
+
this.rowNode.node.expanded = !this.rowNode.node.expanded;
|
|
3990
|
+
if (this.rowNode.node.expanded) {
|
|
3991
|
+
this.tt.onNodeExpand.emit({
|
|
3992
|
+
originalEvent: event,
|
|
3993
|
+
node: this.rowNode.node
|
|
3994
|
+
});
|
|
3995
|
+
}
|
|
3996
|
+
else {
|
|
3997
|
+
this.tt.onNodeCollapse.emit({
|
|
3998
|
+
originalEvent: event,
|
|
3999
|
+
node: this.rowNode.node
|
|
4000
|
+
});
|
|
4001
|
+
}
|
|
4002
|
+
this.tt.updateSerializedValue();
|
|
4003
|
+
this.tt.tableService.onUIUpdate(this.tt.value);
|
|
4004
|
+
event.preventDefault();
|
|
4005
|
+
}
|
|
4006
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TreeTableToggler, deps: [{ token: TreeTable }, { token: i1.caxConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
4007
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: TreeTableToggler, selector: "p-treeTableToggler", inputs: { rowNode: "rowNode" }, host: { classAttribute: "cax-element" }, ngImport: i0, template: `
|
|
4008
|
+
<button
|
|
4009
|
+
type="button"
|
|
4010
|
+
class="p-treetable-toggler p-link"
|
|
4011
|
+
(click)="onClick($event)"
|
|
4012
|
+
tabindex="-1"
|
|
4013
|
+
pRipple
|
|
4014
|
+
[ngStyle]="{
|
|
4015
|
+
visibility: rowNode.node.leaf === false || (rowNode.node.children && rowNode.node.children.length) ? 'visible' : 'hidden',
|
|
4016
|
+
'margin-left': rowNode.level * 16 + 'px'
|
|
4017
|
+
}"
|
|
4018
|
+
[attr.data-pc-section]="'rowtoggler'"
|
|
4019
|
+
[attr.data-pc-group-section]="'rowactionbutton'"
|
|
4020
|
+
[attr.aria-label]="toggleButtonAriaLabel"
|
|
4021
|
+
>
|
|
4022
|
+
<ng-container *ngIf="!tt.togglerIconTemplate">
|
|
4023
|
+
<ChevronDownIcon *ngIf="rowNode.node.expanded" [attr.aria-hidden]="true" />
|
|
4024
|
+
<ChevronRightIcon *ngIf="!rowNode.node.expanded" [attr.aria-hidden]="true" />
|
|
4025
|
+
</ng-container>
|
|
4026
|
+
<ng-template *ngTemplateOutlet="tt.togglerIconTemplate; context: { $implicit: rowNode.node.expanded }"></ng-template>
|
|
4027
|
+
</button>
|
|
4028
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i0.forwardRef(() => ChevronDownIcon), selector: "ChevronDownIcon" }, { kind: "component", type: i0.forwardRef(() => ChevronRightIcon), selector: "ChevronRightIcon" }], encapsulation: i0.ViewEncapsulation.None });
|
|
4029
|
+
}
|
|
4030
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TreeTableToggler, decorators: [{
|
|
4031
|
+
type: Component,
|
|
4032
|
+
args: [{
|
|
4033
|
+
selector: 'p-treeTableToggler',
|
|
4034
|
+
template: `
|
|
4035
|
+
<button
|
|
4036
|
+
type="button"
|
|
4037
|
+
class="p-treetable-toggler p-link"
|
|
4038
|
+
(click)="onClick($event)"
|
|
4039
|
+
tabindex="-1"
|
|
4040
|
+
pRipple
|
|
4041
|
+
[ngStyle]="{
|
|
4042
|
+
visibility: rowNode.node.leaf === false || (rowNode.node.children && rowNode.node.children.length) ? 'visible' : 'hidden',
|
|
4043
|
+
'margin-left': rowNode.level * 16 + 'px'
|
|
4044
|
+
}"
|
|
4045
|
+
[attr.data-pc-section]="'rowtoggler'"
|
|
4046
|
+
[attr.data-pc-group-section]="'rowactionbutton'"
|
|
4047
|
+
[attr.aria-label]="toggleButtonAriaLabel"
|
|
4048
|
+
>
|
|
4049
|
+
<ng-container *ngIf="!tt.togglerIconTemplate">
|
|
4050
|
+
<ChevronDownIcon *ngIf="rowNode.node.expanded" [attr.aria-hidden]="true" />
|
|
4051
|
+
<ChevronRightIcon *ngIf="!rowNode.node.expanded" [attr.aria-hidden]="true" />
|
|
4052
|
+
</ng-container>
|
|
4053
|
+
<ng-template *ngTemplateOutlet="tt.togglerIconTemplate; context: { $implicit: rowNode.node.expanded }"></ng-template>
|
|
4054
|
+
</button>
|
|
4055
|
+
`,
|
|
4056
|
+
encapsulation: ViewEncapsulation.None,
|
|
4057
|
+
host: {
|
|
4058
|
+
class: 'cax-element'
|
|
4059
|
+
}
|
|
4060
|
+
}]
|
|
4061
|
+
}], ctorParameters: () => [{ type: TreeTable }, { type: i1.caxConfig }], propDecorators: { rowNode: [{
|
|
4062
|
+
type: Input
|
|
4063
|
+
}] } });
|
|
4064
|
+
class TreeTableModule {
|
|
4065
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TreeTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4066
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: TreeTableModule, declarations: [TreeTable, TreeTableToggler, TTScrollableView, TTBody, TTSortableColumn, TTSortIcon, TTResizableColumn, TTRow, TTReorderableColumn, TTSelectableRow, TTSelectableRowDblClick, TTContextMenuRow, TTCheckbox, TTHeaderCheckbox, TTEditableColumn, TreeTableCellEditor], imports: [CommonModule, PaginatorModule, RippleModule, ScrollerModule, SpinnerIcon, ArrowDownIcon, ArrowUpIcon, SortAltIcon, SortAmountUpAltIcon, SortAmountDownIcon, CheckIcon, MinusIcon, ChevronDownIcon, ChevronRightIcon], exports: [TreeTable, SharedModule, TreeTableToggler, TTSortableColumn, TTSortIcon, TTResizableColumn, TTRow, TTReorderableColumn, TTSelectableRow, TTSelectableRowDblClick, TTContextMenuRow, TTCheckbox, TTHeaderCheckbox, TTEditableColumn, TreeTableCellEditor, ScrollerModule] });
|
|
4067
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TreeTableModule, imports: [CommonModule, PaginatorModule, RippleModule, ScrollerModule, SpinnerIcon, ArrowDownIcon, ArrowUpIcon, SortAltIcon, SortAmountUpAltIcon, SortAmountDownIcon, CheckIcon, MinusIcon, ChevronDownIcon, ChevronRightIcon, SharedModule,
|
|
4068
|
+
ScrollerModule] });
|
|
4069
|
+
}
|
|
4070
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TreeTableModule, decorators: [{
|
|
4071
|
+
type: NgModule,
|
|
4072
|
+
args: [{
|
|
4073
|
+
imports: [CommonModule, PaginatorModule, RippleModule, ScrollerModule, SpinnerIcon, ArrowDownIcon, ArrowUpIcon, SortAltIcon, SortAmountUpAltIcon, SortAmountDownIcon, CheckIcon, MinusIcon, ChevronDownIcon, ChevronRightIcon],
|
|
4074
|
+
exports: [
|
|
4075
|
+
TreeTable,
|
|
4076
|
+
SharedModule,
|
|
4077
|
+
TreeTableToggler,
|
|
4078
|
+
TTSortableColumn,
|
|
4079
|
+
TTSortIcon,
|
|
4080
|
+
TTResizableColumn,
|
|
4081
|
+
TTRow,
|
|
4082
|
+
TTReorderableColumn,
|
|
4083
|
+
TTSelectableRow,
|
|
4084
|
+
TTSelectableRowDblClick,
|
|
4085
|
+
TTContextMenuRow,
|
|
4086
|
+
TTCheckbox,
|
|
4087
|
+
TTHeaderCheckbox,
|
|
4088
|
+
TTEditableColumn,
|
|
4089
|
+
TreeTableCellEditor,
|
|
4090
|
+
ScrollerModule
|
|
4091
|
+
],
|
|
4092
|
+
declarations: [
|
|
4093
|
+
TreeTable,
|
|
4094
|
+
TreeTableToggler,
|
|
4095
|
+
TTScrollableView,
|
|
4096
|
+
TTBody,
|
|
4097
|
+
TTSortableColumn,
|
|
4098
|
+
TTSortIcon,
|
|
4099
|
+
TTResizableColumn,
|
|
4100
|
+
TTRow,
|
|
4101
|
+
TTReorderableColumn,
|
|
4102
|
+
TTSelectableRow,
|
|
4103
|
+
TTSelectableRowDblClick,
|
|
4104
|
+
TTContextMenuRow,
|
|
4105
|
+
TTCheckbox,
|
|
4106
|
+
TTHeaderCheckbox,
|
|
4107
|
+
TTEditableColumn,
|
|
4108
|
+
TreeTableCellEditor
|
|
4109
|
+
]
|
|
4110
|
+
}]
|
|
4111
|
+
}] });
|
|
4112
|
+
|
|
4113
|
+
/**
|
|
4114
|
+
* Generated bundle index. Do not edit.
|
|
4115
|
+
*/
|
|
4116
|
+
|
|
4117
|
+
export { TTBody, TTCheckbox, TTContextMenuRow, TTEditableColumn, TTHeaderCheckbox, TTReorderableColumn, TTResizableColumn, TTRow, TTScrollableView, TTSelectableRow, TTSelectableRowDblClick, TTSortIcon, TTSortableColumn, TreeTable, TreeTableCellEditor, TreeTableModule, TreeTableService, TreeTableToggler };
|
|
4118
|
+
//# sourceMappingURL=cax-design-system-treetable.mjs.map
|