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,3212 @@
|
|
|
1
|
+
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
2
|
+
import * as i2 from '@angular/common';
|
|
3
|
+
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { forwardRef, EventEmitter, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, Input, Output, ContentChildren, ViewChild, NgModule } from '@angular/core';
|
|
6
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
|
+
import * as i1 from 'cax-design-system/api';
|
|
8
|
+
import { TranslationKeys, CaxTemplate, SharedModule } from 'cax-design-system/api';
|
|
9
|
+
import { ButtonModule } from 'cax-design-system/button';
|
|
10
|
+
import { DomHandler, ConnectedOverlayScrollHandler } from 'cax-design-system/dom';
|
|
11
|
+
import { RippleModule } from 'cax-design-system/ripple';
|
|
12
|
+
import { UniqueComponentId, ObjectUtils, ZIndexUtils } from 'cax-design-system/utils';
|
|
13
|
+
import { ChevronLeftIcon } from 'cax-design-system/icons/chevronleft';
|
|
14
|
+
import { ChevronRightIcon } from 'cax-design-system/icons/chevronright';
|
|
15
|
+
import { ChevronUpIcon } from 'cax-design-system/icons/chevronup';
|
|
16
|
+
import { ChevronDownIcon } from 'cax-design-system/icons/chevrondown';
|
|
17
|
+
import { TimesIcon } from 'cax-design-system/icons/times';
|
|
18
|
+
import { CalendarIcon } from 'cax-design-system/icons/calendar';
|
|
19
|
+
import { AutoFocusModule } from 'cax-design-system/autofocus';
|
|
20
|
+
|
|
21
|
+
const CALENDAR_VALUE_ACCESSOR = {
|
|
22
|
+
provide: NG_VALUE_ACCESSOR,
|
|
23
|
+
useExisting: forwardRef(() => Calendar),
|
|
24
|
+
multi: true
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Calendar also known as DatePicker, is a form component to work with dates.
|
|
28
|
+
* @group Components
|
|
29
|
+
*/
|
|
30
|
+
class Calendar {
|
|
31
|
+
document;
|
|
32
|
+
el;
|
|
33
|
+
renderer;
|
|
34
|
+
cd;
|
|
35
|
+
zone;
|
|
36
|
+
config;
|
|
37
|
+
overlayService;
|
|
38
|
+
iconDisplay = 'button';
|
|
39
|
+
/**
|
|
40
|
+
* Inline style of the component.
|
|
41
|
+
* @group Props
|
|
42
|
+
*/
|
|
43
|
+
style;
|
|
44
|
+
/**
|
|
45
|
+
* Style class of the component.
|
|
46
|
+
* @group Props
|
|
47
|
+
*/
|
|
48
|
+
styleClass;
|
|
49
|
+
/**
|
|
50
|
+
* Inline style of the input field.
|
|
51
|
+
* @group Props
|
|
52
|
+
*/
|
|
53
|
+
inputStyle;
|
|
54
|
+
/**
|
|
55
|
+
* Identifier of the focus input to match a label defined for the component.
|
|
56
|
+
* @group Props
|
|
57
|
+
*/
|
|
58
|
+
inputId;
|
|
59
|
+
/**
|
|
60
|
+
* Name of the input element.
|
|
61
|
+
* @group Props
|
|
62
|
+
*/
|
|
63
|
+
name;
|
|
64
|
+
/**
|
|
65
|
+
* Style class of the input field.
|
|
66
|
+
* @group Props
|
|
67
|
+
*/
|
|
68
|
+
inputStyleClass;
|
|
69
|
+
/**
|
|
70
|
+
* Placeholder text for the input.
|
|
71
|
+
* @group Props
|
|
72
|
+
*/
|
|
73
|
+
placeholder;
|
|
74
|
+
/**
|
|
75
|
+
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
|
|
76
|
+
* @group Props
|
|
77
|
+
*/
|
|
78
|
+
ariaLabelledBy;
|
|
79
|
+
/**
|
|
80
|
+
* Defines a string that labels the input for accessibility.
|
|
81
|
+
* @group Props
|
|
82
|
+
*/
|
|
83
|
+
ariaLabel;
|
|
84
|
+
/**
|
|
85
|
+
* Defines a string that labels the icon button for accessibility.
|
|
86
|
+
* @group Props
|
|
87
|
+
*/
|
|
88
|
+
iconAriaLabel;
|
|
89
|
+
/**
|
|
90
|
+
* When specified, disables the component.
|
|
91
|
+
* @group Props
|
|
92
|
+
*/
|
|
93
|
+
disabled;
|
|
94
|
+
/**
|
|
95
|
+
* Format of the date which can also be defined at locale settings.
|
|
96
|
+
* @group Props
|
|
97
|
+
*/
|
|
98
|
+
dateFormat;
|
|
99
|
+
/**
|
|
100
|
+
* Separator for multiple selection mode.
|
|
101
|
+
* @group Props
|
|
102
|
+
*/
|
|
103
|
+
multipleSeparator = ',';
|
|
104
|
+
/**
|
|
105
|
+
* Separator for joining start and end dates on range selection mode.
|
|
106
|
+
* @group Props
|
|
107
|
+
*/
|
|
108
|
+
rangeSeparator = '-';
|
|
109
|
+
/**
|
|
110
|
+
* When enabled, displays the calendar as inline. Default is false for popup mode.
|
|
111
|
+
* @group Props
|
|
112
|
+
*/
|
|
113
|
+
inline = false;
|
|
114
|
+
/**
|
|
115
|
+
* Whether to display dates in other months (non-selectable) at the start or end of the current month. To make these days selectable use the selectOtherMonths option.
|
|
116
|
+
* @group Props
|
|
117
|
+
*/
|
|
118
|
+
showOtherMonths = true;
|
|
119
|
+
/**
|
|
120
|
+
* Whether days in other months shown before or after the current month are selectable. This only applies if the showOtherMonths option is set to true.
|
|
121
|
+
* @group Props
|
|
122
|
+
*/
|
|
123
|
+
selectOtherMonths;
|
|
124
|
+
/**
|
|
125
|
+
* When enabled, displays a button with icon next to input.
|
|
126
|
+
* @group Props
|
|
127
|
+
*/
|
|
128
|
+
showIcon;
|
|
129
|
+
/**
|
|
130
|
+
* Icon of the calendar button.
|
|
131
|
+
* @group Props
|
|
132
|
+
*/
|
|
133
|
+
icon;
|
|
134
|
+
/**
|
|
135
|
+
* Target element to attach the 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).
|
|
136
|
+
* @group Props
|
|
137
|
+
*/
|
|
138
|
+
appendTo;
|
|
139
|
+
/**
|
|
140
|
+
* When specified, prevents entering the date manually with keyboard.
|
|
141
|
+
* @group Props
|
|
142
|
+
*/
|
|
143
|
+
readonlyInput;
|
|
144
|
+
/**
|
|
145
|
+
* The cutoff year for determining the century for a date.
|
|
146
|
+
* @group Props
|
|
147
|
+
*/
|
|
148
|
+
shortYearCutoff = '+10';
|
|
149
|
+
/**
|
|
150
|
+
* Whether the month should be rendered as a dropdown instead of text.
|
|
151
|
+
* @group Props
|
|
152
|
+
* @deprecated Navigator is always on.
|
|
153
|
+
*/
|
|
154
|
+
monthNavigator;
|
|
155
|
+
/**
|
|
156
|
+
* Whether the year should be rendered as a dropdown instead of text.
|
|
157
|
+
* @group Props
|
|
158
|
+
* @deprecated Navigator is always on.
|
|
159
|
+
*/
|
|
160
|
+
yearNavigator;
|
|
161
|
+
/**
|
|
162
|
+
* Specifies 12 or 24 hour format.
|
|
163
|
+
* @group Props
|
|
164
|
+
*/
|
|
165
|
+
hourFormat = '24';
|
|
166
|
+
/**
|
|
167
|
+
* Whether to display timepicker only.
|
|
168
|
+
* @group Props
|
|
169
|
+
*/
|
|
170
|
+
timeOnly;
|
|
171
|
+
/**
|
|
172
|
+
* Years to change per step in yearpicker.
|
|
173
|
+
* @group Props
|
|
174
|
+
*/
|
|
175
|
+
stepYearPicker = 10;
|
|
176
|
+
/**
|
|
177
|
+
* Hours to change per step.
|
|
178
|
+
* @group Props
|
|
179
|
+
*/
|
|
180
|
+
stepHour = 1;
|
|
181
|
+
/**
|
|
182
|
+
* Minutes to change per step.
|
|
183
|
+
* @group Props
|
|
184
|
+
*/
|
|
185
|
+
stepMinute = 1;
|
|
186
|
+
/**
|
|
187
|
+
* Seconds to change per step.
|
|
188
|
+
* @group Props
|
|
189
|
+
*/
|
|
190
|
+
stepSecond = 1;
|
|
191
|
+
/**
|
|
192
|
+
* Whether to show the seconds in time picker.
|
|
193
|
+
* @group Props
|
|
194
|
+
*/
|
|
195
|
+
showSeconds = false;
|
|
196
|
+
/**
|
|
197
|
+
* When present, it specifies that an input field must be filled out before submitting the form.
|
|
198
|
+
* @group Props
|
|
199
|
+
*/
|
|
200
|
+
required;
|
|
201
|
+
/**
|
|
202
|
+
* When disabled, datepicker will not be visible with input focus.
|
|
203
|
+
* @group Props
|
|
204
|
+
*/
|
|
205
|
+
showOnFocus = true;
|
|
206
|
+
/**
|
|
207
|
+
* When enabled, calendar will show week numbers.
|
|
208
|
+
* @group Props
|
|
209
|
+
*/
|
|
210
|
+
showWeek = false;
|
|
211
|
+
/**
|
|
212
|
+
* When enabled, calendar will start week numbers from first day of the year.
|
|
213
|
+
* @group Props
|
|
214
|
+
*/
|
|
215
|
+
startWeekFromFirstDayOfYear = false;
|
|
216
|
+
/**
|
|
217
|
+
* When enabled, a clear icon is displayed to clear the value.
|
|
218
|
+
* @group Props
|
|
219
|
+
*/
|
|
220
|
+
showClear = false;
|
|
221
|
+
/**
|
|
222
|
+
* Type of the value to write back to ngModel, default is date and alternative is string.
|
|
223
|
+
* @group Props
|
|
224
|
+
*/
|
|
225
|
+
dataType = 'date';
|
|
226
|
+
/**
|
|
227
|
+
* Defines the quantity of the selection, valid values are "single", "multiple" and "range".
|
|
228
|
+
* @group Props
|
|
229
|
+
*/
|
|
230
|
+
selectionMode = 'single';
|
|
231
|
+
/**
|
|
232
|
+
* Maximum number of selectable dates in multiple mode.
|
|
233
|
+
* @group Props
|
|
234
|
+
*/
|
|
235
|
+
maxDateCount;
|
|
236
|
+
/**
|
|
237
|
+
* Whether to display today and clear buttons at the footer
|
|
238
|
+
* @group Props
|
|
239
|
+
*/
|
|
240
|
+
showButtonBar;
|
|
241
|
+
/**
|
|
242
|
+
* Style class of the today button.
|
|
243
|
+
* @group Props
|
|
244
|
+
*/
|
|
245
|
+
todayButtonStyleClass = 'cax-button-text';
|
|
246
|
+
/**
|
|
247
|
+
* Style class of the clear button.
|
|
248
|
+
* @group Props
|
|
249
|
+
*/
|
|
250
|
+
clearButtonStyleClass = 'cax-button-text';
|
|
251
|
+
/**
|
|
252
|
+
* When present, it specifies that the component should automatically get focus on load.
|
|
253
|
+
* @group Props
|
|
254
|
+
*/
|
|
255
|
+
autofocus;
|
|
256
|
+
/**
|
|
257
|
+
* Whether to automatically manage layering.
|
|
258
|
+
* @group Props
|
|
259
|
+
*/
|
|
260
|
+
autoZIndex = true;
|
|
261
|
+
/**
|
|
262
|
+
* Base zIndex value to use in layering.
|
|
263
|
+
* @group Props
|
|
264
|
+
*/
|
|
265
|
+
baseZIndex = 0;
|
|
266
|
+
/**
|
|
267
|
+
* Style class of the datetimepicker container element.
|
|
268
|
+
* @group Props
|
|
269
|
+
*/
|
|
270
|
+
panelStyleClass;
|
|
271
|
+
/**
|
|
272
|
+
* Inline style of the datetimepicker container element.
|
|
273
|
+
* @group Props
|
|
274
|
+
*/
|
|
275
|
+
panelStyle;
|
|
276
|
+
/**
|
|
277
|
+
* Keep invalid value when input blur.
|
|
278
|
+
* @group Props
|
|
279
|
+
*/
|
|
280
|
+
keepInvalid = false;
|
|
281
|
+
/**
|
|
282
|
+
* Whether to hide the overlay on date selection.
|
|
283
|
+
* @group Props
|
|
284
|
+
*/
|
|
285
|
+
hideOnDateTimeSelect = true;
|
|
286
|
+
/**
|
|
287
|
+
* When enabled, calendar overlay is displayed as optimized for touch devices.
|
|
288
|
+
* @group Props
|
|
289
|
+
*/
|
|
290
|
+
touchUI;
|
|
291
|
+
/**
|
|
292
|
+
* Separator of time selector.
|
|
293
|
+
* @group Props
|
|
294
|
+
*/
|
|
295
|
+
timeSeparator = ':';
|
|
296
|
+
/**
|
|
297
|
+
* When enabled, can only focus on elements inside the calendar.
|
|
298
|
+
* @group Props
|
|
299
|
+
*/
|
|
300
|
+
focusTrap = true;
|
|
301
|
+
/**
|
|
302
|
+
* Transition options of the show animation.
|
|
303
|
+
* @group Props
|
|
304
|
+
*/
|
|
305
|
+
showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
|
|
306
|
+
/**
|
|
307
|
+
* Transition options of the hide animation.
|
|
308
|
+
* @group Props
|
|
309
|
+
*/
|
|
310
|
+
hideTransitionOptions = '.1s linear';
|
|
311
|
+
/**
|
|
312
|
+
* Index of the element in tabbing order.
|
|
313
|
+
* @group Props
|
|
314
|
+
*/
|
|
315
|
+
tabindex;
|
|
316
|
+
/**
|
|
317
|
+
* Specifies the input variant of the component.
|
|
318
|
+
* @group Props
|
|
319
|
+
*/
|
|
320
|
+
variant = 'outlined';
|
|
321
|
+
/**
|
|
322
|
+
* The minimum selectable date.
|
|
323
|
+
* @group Props
|
|
324
|
+
*/
|
|
325
|
+
get minDate() {
|
|
326
|
+
return this._minDate;
|
|
327
|
+
}
|
|
328
|
+
set minDate(date) {
|
|
329
|
+
this._minDate = date;
|
|
330
|
+
if (this.currentMonth != undefined && this.currentMonth != null && this.currentYear) {
|
|
331
|
+
this.createMonths(this.currentMonth, this.currentYear);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* The maximum selectable date.
|
|
336
|
+
* @group Props
|
|
337
|
+
*/
|
|
338
|
+
get maxDate() {
|
|
339
|
+
return this._maxDate;
|
|
340
|
+
}
|
|
341
|
+
set maxDate(date) {
|
|
342
|
+
this._maxDate = date;
|
|
343
|
+
if (this.currentMonth != undefined && this.currentMonth != null && this.currentYear) {
|
|
344
|
+
this.createMonths(this.currentMonth, this.currentYear);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Array with dates that should be disabled (not selectable).
|
|
349
|
+
* @group Props
|
|
350
|
+
*/
|
|
351
|
+
get disabledDates() {
|
|
352
|
+
return this._disabledDates;
|
|
353
|
+
}
|
|
354
|
+
set disabledDates(disabledDates) {
|
|
355
|
+
this._disabledDates = disabledDates;
|
|
356
|
+
if (this.currentMonth != undefined && this.currentMonth != null && this.currentYear) {
|
|
357
|
+
this.createMonths(this.currentMonth, this.currentYear);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Array with weekday numbers that should be disabled (not selectable).
|
|
362
|
+
* @group Props
|
|
363
|
+
*/
|
|
364
|
+
get disabledDays() {
|
|
365
|
+
return this._disabledDays;
|
|
366
|
+
}
|
|
367
|
+
set disabledDays(disabledDays) {
|
|
368
|
+
this._disabledDays = disabledDays;
|
|
369
|
+
if (this.currentMonth != undefined && this.currentMonth != null && this.currentYear) {
|
|
370
|
+
this.createMonths(this.currentMonth, this.currentYear);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* The range of years displayed in the year drop-down in (nnnn:nnnn) format such as (2000:2020).
|
|
375
|
+
* @group Props
|
|
376
|
+
* @deprecated Years are based on decades by default.
|
|
377
|
+
*/
|
|
378
|
+
get yearRange() {
|
|
379
|
+
return this._yearRange;
|
|
380
|
+
}
|
|
381
|
+
set yearRange(yearRange) {
|
|
382
|
+
this._yearRange = yearRange;
|
|
383
|
+
if (yearRange) {
|
|
384
|
+
const years = yearRange.split(':');
|
|
385
|
+
const yearStart = parseInt(years[0]);
|
|
386
|
+
const yearEnd = parseInt(years[1]);
|
|
387
|
+
this.populateYearOptions(yearStart, yearEnd);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Whether to display timepicker.
|
|
392
|
+
* @group Props
|
|
393
|
+
*/
|
|
394
|
+
get showTime() {
|
|
395
|
+
return this._showTime;
|
|
396
|
+
}
|
|
397
|
+
set showTime(showTime) {
|
|
398
|
+
this._showTime = showTime;
|
|
399
|
+
if (this.currentHour === undefined) {
|
|
400
|
+
this.initTime(this.value || new Date());
|
|
401
|
+
}
|
|
402
|
+
this.updateInputfield();
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* An array of options for responsive design.
|
|
406
|
+
* @group Props
|
|
407
|
+
*/
|
|
408
|
+
get responsiveOptions() {
|
|
409
|
+
return this._responsiveOptions;
|
|
410
|
+
}
|
|
411
|
+
set responsiveOptions(responsiveOptions) {
|
|
412
|
+
this._responsiveOptions = responsiveOptions;
|
|
413
|
+
this.destroyResponsiveStyleElement();
|
|
414
|
+
this.createResponsiveStyle();
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Number of months to display.
|
|
418
|
+
* @group Props
|
|
419
|
+
*/
|
|
420
|
+
get numberOfMonths() {
|
|
421
|
+
return this._numberOfMonths;
|
|
422
|
+
}
|
|
423
|
+
set numberOfMonths(numberOfMonths) {
|
|
424
|
+
this._numberOfMonths = numberOfMonths;
|
|
425
|
+
this.destroyResponsiveStyleElement();
|
|
426
|
+
this.createResponsiveStyle();
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Defines the first of the week for various date calculations.
|
|
430
|
+
* @group Props
|
|
431
|
+
*/
|
|
432
|
+
get firstDayOfWeek() {
|
|
433
|
+
return this._firstDayOfWeek;
|
|
434
|
+
}
|
|
435
|
+
set firstDayOfWeek(firstDayOfWeek) {
|
|
436
|
+
this._firstDayOfWeek = firstDayOfWeek;
|
|
437
|
+
this.createWeekDays();
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Option to set calendar locale.
|
|
441
|
+
* @group Props
|
|
442
|
+
* @deprecated Locale property has no effect, use new i18n API instead.
|
|
443
|
+
*/
|
|
444
|
+
set locale(newLocale) {
|
|
445
|
+
console.warn('Locale property has no effect, use new i18n API instead.');
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Type of view to display, valid values are "date" for datepicker and "month" for month picker.
|
|
449
|
+
* @group Props
|
|
450
|
+
*/
|
|
451
|
+
get view() {
|
|
452
|
+
return this._view;
|
|
453
|
+
}
|
|
454
|
+
set view(view) {
|
|
455
|
+
this._view = view;
|
|
456
|
+
this.currentView = this._view;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* Set the date to highlight on first opening if the field is blank.
|
|
460
|
+
* @group Props
|
|
461
|
+
*/
|
|
462
|
+
get defaultDate() {
|
|
463
|
+
return this._defaultDate;
|
|
464
|
+
}
|
|
465
|
+
set defaultDate(defaultDate) {
|
|
466
|
+
this._defaultDate = defaultDate;
|
|
467
|
+
if (this.initialized) {
|
|
468
|
+
const date = defaultDate || new Date();
|
|
469
|
+
this.currentMonth = date.getMonth();
|
|
470
|
+
this.currentYear = date.getFullYear();
|
|
471
|
+
this.initTime(date);
|
|
472
|
+
this.createMonths(this.currentMonth, this.currentYear);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
get inputClass() {
|
|
476
|
+
return {
|
|
477
|
+
'cax-inputtext cax-component': true,
|
|
478
|
+
'cax-variant-filled': this.variant === 'filled' || this.config.inputStyle() === 'filled'
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* Callback to invoke on focus of input field.
|
|
483
|
+
* @param {Event} event - browser event.
|
|
484
|
+
* @group Emits
|
|
485
|
+
*/
|
|
486
|
+
onFocus = new EventEmitter();
|
|
487
|
+
/**
|
|
488
|
+
* Callback to invoke on blur of input field.
|
|
489
|
+
* @param {Event} event - browser event.
|
|
490
|
+
* @group Emits
|
|
491
|
+
*/
|
|
492
|
+
onBlur = new EventEmitter();
|
|
493
|
+
/**
|
|
494
|
+
* Callback to invoke when date panel closed.
|
|
495
|
+
* @param {Event} event - Mouse event
|
|
496
|
+
* @group Emits
|
|
497
|
+
*/
|
|
498
|
+
onClose = new EventEmitter();
|
|
499
|
+
/**
|
|
500
|
+
* Callback to invoke on date select.
|
|
501
|
+
* @param {Date} date - date value.
|
|
502
|
+
* @group Emits
|
|
503
|
+
*/
|
|
504
|
+
onSelect = new EventEmitter();
|
|
505
|
+
/**
|
|
506
|
+
* Callback to invoke when input field cleared.
|
|
507
|
+
* @group Emits
|
|
508
|
+
*/
|
|
509
|
+
onClear = new EventEmitter();
|
|
510
|
+
/**
|
|
511
|
+
* Callback to invoke when input field is being typed.
|
|
512
|
+
* @param {Event} event - browser event
|
|
513
|
+
* @group Emits
|
|
514
|
+
*/
|
|
515
|
+
onInput = new EventEmitter();
|
|
516
|
+
/**
|
|
517
|
+
* Callback to invoke when today button is clicked.
|
|
518
|
+
* @param {Date} date - today as a date instance.
|
|
519
|
+
* @group Emits
|
|
520
|
+
*/
|
|
521
|
+
onTodayClick = new EventEmitter();
|
|
522
|
+
/**
|
|
523
|
+
* Callback to invoke when clear button is clicked.
|
|
524
|
+
* @param {Event} event - browser event.
|
|
525
|
+
* @group Emits
|
|
526
|
+
*/
|
|
527
|
+
onClearClick = new EventEmitter();
|
|
528
|
+
/**
|
|
529
|
+
* Callback to invoke when a month is changed using the navigators.
|
|
530
|
+
* @param {CalendarMonthChangeEvent} event - custom month change event.
|
|
531
|
+
* @group Emits
|
|
532
|
+
*/
|
|
533
|
+
onMonthChange = new EventEmitter();
|
|
534
|
+
/**
|
|
535
|
+
* Callback to invoke when a year is changed using the navigators.
|
|
536
|
+
* @param {CalendarYearChangeEvent} event - custom year change event.
|
|
537
|
+
* @group Emits
|
|
538
|
+
*/
|
|
539
|
+
onYearChange = new EventEmitter();
|
|
540
|
+
/**
|
|
541
|
+
* Callback to invoke when clicked outside of the date panel.
|
|
542
|
+
* @group Emits
|
|
543
|
+
*/
|
|
544
|
+
onClickOutside = new EventEmitter();
|
|
545
|
+
/**
|
|
546
|
+
* Callback to invoke when datepicker panel is shown.
|
|
547
|
+
* @group Emits
|
|
548
|
+
*/
|
|
549
|
+
onShow = new EventEmitter();
|
|
550
|
+
templates;
|
|
551
|
+
containerViewChild;
|
|
552
|
+
inputfieldViewChild;
|
|
553
|
+
set content(content) {
|
|
554
|
+
this.contentViewChild = content;
|
|
555
|
+
if (this.contentViewChild) {
|
|
556
|
+
if (this.isMonthNavigate) {
|
|
557
|
+
Promise.resolve(null).then(() => this.updateFocus());
|
|
558
|
+
this.isMonthNavigate = false;
|
|
559
|
+
}
|
|
560
|
+
else {
|
|
561
|
+
if (!this.focus && !this.inline) {
|
|
562
|
+
this.initFocusableCell();
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
contentViewChild;
|
|
568
|
+
value;
|
|
569
|
+
dates;
|
|
570
|
+
months;
|
|
571
|
+
weekDays;
|
|
572
|
+
currentMonth;
|
|
573
|
+
currentYear;
|
|
574
|
+
currentHour;
|
|
575
|
+
currentMinute;
|
|
576
|
+
currentSecond;
|
|
577
|
+
pm;
|
|
578
|
+
mask;
|
|
579
|
+
maskClickListener;
|
|
580
|
+
overlay;
|
|
581
|
+
responsiveStyleElement;
|
|
582
|
+
overlayVisible;
|
|
583
|
+
onModelChange = () => { };
|
|
584
|
+
onModelTouched = () => { };
|
|
585
|
+
calendarElement;
|
|
586
|
+
timePickerTimer;
|
|
587
|
+
documentClickListener;
|
|
588
|
+
animationEndListener;
|
|
589
|
+
ticksTo1970;
|
|
590
|
+
yearOptions;
|
|
591
|
+
focus;
|
|
592
|
+
isKeydown;
|
|
593
|
+
filled;
|
|
594
|
+
inputFieldValue = null;
|
|
595
|
+
_minDate;
|
|
596
|
+
_maxDate;
|
|
597
|
+
_showTime;
|
|
598
|
+
_yearRange;
|
|
599
|
+
preventDocumentListener;
|
|
600
|
+
dateTemplate;
|
|
601
|
+
headerTemplate;
|
|
602
|
+
footerTemplate;
|
|
603
|
+
disabledDateTemplate;
|
|
604
|
+
decadeTemplate;
|
|
605
|
+
previousIconTemplate;
|
|
606
|
+
nextIconTemplate;
|
|
607
|
+
triggerIconTemplate;
|
|
608
|
+
clearIconTemplate;
|
|
609
|
+
decrementIconTemplate;
|
|
610
|
+
incrementIconTemplate;
|
|
611
|
+
inputIconTemplate;
|
|
612
|
+
_disabledDates;
|
|
613
|
+
_disabledDays;
|
|
614
|
+
selectElement;
|
|
615
|
+
todayElement;
|
|
616
|
+
focusElement;
|
|
617
|
+
scrollHandler;
|
|
618
|
+
documentResizeListener;
|
|
619
|
+
navigationState = null;
|
|
620
|
+
isMonthNavigate;
|
|
621
|
+
initialized;
|
|
622
|
+
translationSubscription;
|
|
623
|
+
_locale;
|
|
624
|
+
_responsiveOptions;
|
|
625
|
+
currentView;
|
|
626
|
+
attributeSelector;
|
|
627
|
+
panelId;
|
|
628
|
+
_numberOfMonths = 1;
|
|
629
|
+
_firstDayOfWeek;
|
|
630
|
+
_view = 'date';
|
|
631
|
+
preventFocus;
|
|
632
|
+
_defaultDate;
|
|
633
|
+
_focusKey = null;
|
|
634
|
+
window;
|
|
635
|
+
get locale() {
|
|
636
|
+
return this._locale;
|
|
637
|
+
}
|
|
638
|
+
get iconButtonAriaLabel() {
|
|
639
|
+
return this.iconAriaLabel ? this.iconAriaLabel : this.getTranslation('chooseDate');
|
|
640
|
+
}
|
|
641
|
+
get prevIconAriaLabel() {
|
|
642
|
+
return this.currentView === 'year' ? this.getTranslation('prevDecade') : this.currentView === 'month' ? this.getTranslation('prevYear') : this.getTranslation('prevMonth');
|
|
643
|
+
}
|
|
644
|
+
get nextIconAriaLabel() {
|
|
645
|
+
return this.currentView === 'year' ? this.getTranslation('nextDecade') : this.currentView === 'month' ? this.getTranslation('nextYear') : this.getTranslation('nextMonth');
|
|
646
|
+
}
|
|
647
|
+
constructor(document, el, renderer, cd, zone, config, overlayService) {
|
|
648
|
+
this.document = document;
|
|
649
|
+
this.el = el;
|
|
650
|
+
this.renderer = renderer;
|
|
651
|
+
this.cd = cd;
|
|
652
|
+
this.zone = zone;
|
|
653
|
+
this.config = config;
|
|
654
|
+
this.overlayService = overlayService;
|
|
655
|
+
this.window = this.document.defaultView;
|
|
656
|
+
}
|
|
657
|
+
ngOnInit() {
|
|
658
|
+
this.attributeSelector = UniqueComponentId();
|
|
659
|
+
this.panelId = this.attributeSelector + '_panel';
|
|
660
|
+
const date = this.defaultDate || new Date();
|
|
661
|
+
this.createResponsiveStyle();
|
|
662
|
+
this.currentMonth = date.getMonth();
|
|
663
|
+
this.currentYear = date.getFullYear();
|
|
664
|
+
this.yearOptions = [];
|
|
665
|
+
this.currentView = this.view;
|
|
666
|
+
if (this.view === 'date') {
|
|
667
|
+
this.createWeekDays();
|
|
668
|
+
this.initTime(date);
|
|
669
|
+
this.createMonths(this.currentMonth, this.currentYear);
|
|
670
|
+
this.ticksTo1970 = ((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) + Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000;
|
|
671
|
+
}
|
|
672
|
+
this.translationSubscription = this.config.translationObserver.subscribe(() => {
|
|
673
|
+
this.createWeekDays();
|
|
674
|
+
this.cd.markForCheck();
|
|
675
|
+
});
|
|
676
|
+
this.initialized = true;
|
|
677
|
+
}
|
|
678
|
+
ngAfterContentInit() {
|
|
679
|
+
this.templates.forEach((item) => {
|
|
680
|
+
switch (item.getType()) {
|
|
681
|
+
case 'date':
|
|
682
|
+
this.dateTemplate = item.template;
|
|
683
|
+
break;
|
|
684
|
+
case 'decade':
|
|
685
|
+
this.decadeTemplate = item.template;
|
|
686
|
+
break;
|
|
687
|
+
case 'disabledDate':
|
|
688
|
+
this.disabledDateTemplate = item.template;
|
|
689
|
+
break;
|
|
690
|
+
case 'header':
|
|
691
|
+
this.headerTemplate = item.template;
|
|
692
|
+
break;
|
|
693
|
+
case 'inputicon':
|
|
694
|
+
this.inputIconTemplate = item.template;
|
|
695
|
+
break;
|
|
696
|
+
case 'previousicon':
|
|
697
|
+
this.previousIconTemplate = item.template;
|
|
698
|
+
break;
|
|
699
|
+
case 'nexticon':
|
|
700
|
+
this.nextIconTemplate = item.template;
|
|
701
|
+
break;
|
|
702
|
+
case 'triggericon':
|
|
703
|
+
this.triggerIconTemplate = item.template;
|
|
704
|
+
break;
|
|
705
|
+
case 'clearicon':
|
|
706
|
+
this.clearIconTemplate = item.template;
|
|
707
|
+
break;
|
|
708
|
+
case 'decrementicon':
|
|
709
|
+
this.decrementIconTemplate = item.template;
|
|
710
|
+
break;
|
|
711
|
+
case 'incrementicon':
|
|
712
|
+
this.incrementIconTemplate = item.template;
|
|
713
|
+
break;
|
|
714
|
+
case 'footer':
|
|
715
|
+
this.footerTemplate = item.template;
|
|
716
|
+
break;
|
|
717
|
+
default:
|
|
718
|
+
this.dateTemplate = item.template;
|
|
719
|
+
break;
|
|
720
|
+
}
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
ngAfterViewInit() {
|
|
724
|
+
if (this.inline) {
|
|
725
|
+
this.contentViewChild && this.contentViewChild.nativeElement.setAttribute(this.attributeSelector, '');
|
|
726
|
+
if (!this.disabled && !this.inline) {
|
|
727
|
+
this.initFocusableCell();
|
|
728
|
+
if (this.numberOfMonths === 1) {
|
|
729
|
+
if (this.contentViewChild && this.contentViewChild.nativeElement) {
|
|
730
|
+
this.contentViewChild.nativeElement.style.width = DomHandler.getOuterWidth(this.containerViewChild?.nativeElement) + 'px';
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
getTranslation(option) {
|
|
737
|
+
return this.config.getTranslation(option);
|
|
738
|
+
}
|
|
739
|
+
populateYearOptions(start, end) {
|
|
740
|
+
this.yearOptions = [];
|
|
741
|
+
for (let i = start; i <= end; i++) {
|
|
742
|
+
this.yearOptions.push(i);
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
createWeekDays() {
|
|
746
|
+
this.weekDays = [];
|
|
747
|
+
let dayIndex = this.getFirstDateOfWeek();
|
|
748
|
+
let dayLabels = this.getTranslation(TranslationKeys.DAY_NAMES_MIN);
|
|
749
|
+
for (let i = 0; i < 7; i++) {
|
|
750
|
+
this.weekDays.push(dayLabels[dayIndex]);
|
|
751
|
+
dayIndex = dayIndex == 6 ? 0 : ++dayIndex;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
monthPickerValues() {
|
|
755
|
+
let monthPickerValues = [];
|
|
756
|
+
for (let i = 0; i <= 11; i++) {
|
|
757
|
+
monthPickerValues.push(this.config.getTranslation('monthNamesShort')[i]);
|
|
758
|
+
}
|
|
759
|
+
return monthPickerValues;
|
|
760
|
+
}
|
|
761
|
+
yearPickerValues() {
|
|
762
|
+
let yearPickerValues = [];
|
|
763
|
+
let base = this.currentYear - (this.currentYear % this.stepYearPicker);
|
|
764
|
+
for (let i = 0; i < this.stepYearPicker; i++) {
|
|
765
|
+
yearPickerValues.push(base + i);
|
|
766
|
+
}
|
|
767
|
+
return yearPickerValues;
|
|
768
|
+
}
|
|
769
|
+
createMonths(month, year) {
|
|
770
|
+
this.months = this.months = [];
|
|
771
|
+
for (let i = 0; i < this.numberOfMonths; i++) {
|
|
772
|
+
let m = month + i;
|
|
773
|
+
let y = year;
|
|
774
|
+
if (m > 11) {
|
|
775
|
+
m = (m % 11) - 1;
|
|
776
|
+
y = year + 1;
|
|
777
|
+
}
|
|
778
|
+
this.months.push(this.createMonth(m, y));
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
getWeekNumber(date) {
|
|
782
|
+
let checkDate = new Date(date.getTime());
|
|
783
|
+
if (this.startWeekFromFirstDayOfYear) {
|
|
784
|
+
let firstDayOfWeek = +this.getFirstDateOfWeek();
|
|
785
|
+
checkDate.setDate(checkDate.getDate() + 6 + firstDayOfWeek - checkDate.getDay());
|
|
786
|
+
}
|
|
787
|
+
else {
|
|
788
|
+
checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7));
|
|
789
|
+
}
|
|
790
|
+
let time = checkDate.getTime();
|
|
791
|
+
checkDate.setMonth(0);
|
|
792
|
+
checkDate.setDate(1);
|
|
793
|
+
return Math.floor(Math.round((time - checkDate.getTime()) / 86400000) / 7) + 1;
|
|
794
|
+
}
|
|
795
|
+
createMonth(month, year) {
|
|
796
|
+
let dates = [];
|
|
797
|
+
let firstDay = this.getFirstDayOfMonthIndex(month, year);
|
|
798
|
+
let daysLength = this.getDaysCountInMonth(month, year);
|
|
799
|
+
let prevMonthDaysLength = this.getDaysCountInPrevMonth(month, year);
|
|
800
|
+
let dayNo = 1;
|
|
801
|
+
let today = new Date();
|
|
802
|
+
let weekNumbers = [];
|
|
803
|
+
let monthRows = Math.ceil((daysLength + firstDay) / 7);
|
|
804
|
+
for (let i = 0; i < monthRows; i++) {
|
|
805
|
+
let week = [];
|
|
806
|
+
if (i == 0) {
|
|
807
|
+
for (let j = prevMonthDaysLength - firstDay + 1; j <= prevMonthDaysLength; j++) {
|
|
808
|
+
let prev = this.getPreviousMonthAndYear(month, year);
|
|
809
|
+
week.push({ day: j, month: prev.month, year: prev.year, otherMonth: true, today: this.isToday(today, j, prev.month, prev.year), selectable: this.isSelectable(j, prev.month, prev.year, true) });
|
|
810
|
+
}
|
|
811
|
+
let remainingDaysLength = 7 - week.length;
|
|
812
|
+
for (let j = 0; j < remainingDaysLength; j++) {
|
|
813
|
+
week.push({ day: dayNo, month: month, year: year, today: this.isToday(today, dayNo, month, year), selectable: this.isSelectable(dayNo, month, year, false) });
|
|
814
|
+
dayNo++;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
else {
|
|
818
|
+
for (let j = 0; j < 7; j++) {
|
|
819
|
+
if (dayNo > daysLength) {
|
|
820
|
+
let next = this.getNextMonthAndYear(month, year);
|
|
821
|
+
week.push({
|
|
822
|
+
day: dayNo - daysLength,
|
|
823
|
+
month: next.month,
|
|
824
|
+
year: next.year,
|
|
825
|
+
otherMonth: true,
|
|
826
|
+
today: this.isToday(today, dayNo - daysLength, next.month, next.year),
|
|
827
|
+
selectable: this.isSelectable(dayNo - daysLength, next.month, next.year, true)
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
else {
|
|
831
|
+
week.push({ day: dayNo, month: month, year: year, today: this.isToday(today, dayNo, month, year), selectable: this.isSelectable(dayNo, month, year, false) });
|
|
832
|
+
}
|
|
833
|
+
dayNo++;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
if (this.showWeek) {
|
|
837
|
+
weekNumbers.push(this.getWeekNumber(new Date(week[0].year, week[0].month, week[0].day)));
|
|
838
|
+
}
|
|
839
|
+
dates.push(week);
|
|
840
|
+
}
|
|
841
|
+
return {
|
|
842
|
+
month: month,
|
|
843
|
+
year: year,
|
|
844
|
+
dates: dates,
|
|
845
|
+
weekNumbers: weekNumbers
|
|
846
|
+
};
|
|
847
|
+
}
|
|
848
|
+
initTime(date) {
|
|
849
|
+
this.pm = date.getHours() > 11;
|
|
850
|
+
if (this.showTime) {
|
|
851
|
+
this.currentMinute = date.getMinutes();
|
|
852
|
+
this.currentSecond = date.getSeconds();
|
|
853
|
+
this.setCurrentHourPM(date.getHours());
|
|
854
|
+
}
|
|
855
|
+
else if (this.timeOnly) {
|
|
856
|
+
this.currentMinute = 0;
|
|
857
|
+
this.currentHour = 0;
|
|
858
|
+
this.currentSecond = 0;
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
navBackward(event) {
|
|
862
|
+
if (this.disabled) {
|
|
863
|
+
event.preventDefault();
|
|
864
|
+
return;
|
|
865
|
+
}
|
|
866
|
+
this.isMonthNavigate = true;
|
|
867
|
+
if (this.currentView === 'month') {
|
|
868
|
+
this.decrementYear();
|
|
869
|
+
setTimeout(() => {
|
|
870
|
+
this.updateFocus();
|
|
871
|
+
}, 1);
|
|
872
|
+
}
|
|
873
|
+
else if (this.currentView === 'year') {
|
|
874
|
+
this.decrementYearPickerStep();
|
|
875
|
+
setTimeout(() => {
|
|
876
|
+
this.updateFocus();
|
|
877
|
+
}, 1);
|
|
878
|
+
}
|
|
879
|
+
else {
|
|
880
|
+
if (this.currentMonth === 0) {
|
|
881
|
+
this.currentMonth = 11;
|
|
882
|
+
this.decrementYear();
|
|
883
|
+
}
|
|
884
|
+
else {
|
|
885
|
+
this.currentMonth--;
|
|
886
|
+
}
|
|
887
|
+
this.onMonthChange.emit({ month: this.currentMonth + 1, year: this.currentYear });
|
|
888
|
+
this.createMonths(this.currentMonth, this.currentYear);
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
navForward(event) {
|
|
892
|
+
if (this.disabled) {
|
|
893
|
+
event.preventDefault();
|
|
894
|
+
return;
|
|
895
|
+
}
|
|
896
|
+
this.isMonthNavigate = true;
|
|
897
|
+
if (this.currentView === 'month') {
|
|
898
|
+
this.incrementYear();
|
|
899
|
+
setTimeout(() => {
|
|
900
|
+
this.updateFocus();
|
|
901
|
+
}, 1);
|
|
902
|
+
}
|
|
903
|
+
else if (this.currentView === 'year') {
|
|
904
|
+
this.incrementYearPickerStep();
|
|
905
|
+
setTimeout(() => {
|
|
906
|
+
this.updateFocus();
|
|
907
|
+
}, 1);
|
|
908
|
+
}
|
|
909
|
+
else {
|
|
910
|
+
if (this.currentMonth === 11) {
|
|
911
|
+
this.currentMonth = 0;
|
|
912
|
+
this.incrementYear();
|
|
913
|
+
}
|
|
914
|
+
else {
|
|
915
|
+
this.currentMonth++;
|
|
916
|
+
}
|
|
917
|
+
this.onMonthChange.emit({ month: this.currentMonth + 1, year: this.currentYear });
|
|
918
|
+
this.createMonths(this.currentMonth, this.currentYear);
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
decrementYear() {
|
|
922
|
+
this.currentYear--;
|
|
923
|
+
let _yearOptions = this.yearOptions;
|
|
924
|
+
if (this.yearNavigator && this.currentYear < _yearOptions[0]) {
|
|
925
|
+
let difference = _yearOptions[_yearOptions.length - 1] - _yearOptions[0];
|
|
926
|
+
this.populateYearOptions(_yearOptions[0] - difference, _yearOptions[_yearOptions.length - 1] - difference);
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
decrementYearPickerStep() {
|
|
930
|
+
this.currentYear = this.currentYear - this.stepYearPicker;
|
|
931
|
+
}
|
|
932
|
+
incrementYearPickerStep() {
|
|
933
|
+
this.currentYear = this.currentYear + this.stepYearPicker;
|
|
934
|
+
}
|
|
935
|
+
incrementYear() {
|
|
936
|
+
this.currentYear++;
|
|
937
|
+
let _yearOptions = this.yearOptions;
|
|
938
|
+
if (this.yearNavigator && this.currentYear > _yearOptions[_yearOptions.length - 1]) {
|
|
939
|
+
let difference = _yearOptions[_yearOptions.length - 1] - _yearOptions[0];
|
|
940
|
+
this.populateYearOptions(_yearOptions[0] + difference, _yearOptions[_yearOptions.length - 1] + difference);
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
switchToMonthView(event) {
|
|
944
|
+
this.setCurrentView('month');
|
|
945
|
+
event.preventDefault();
|
|
946
|
+
}
|
|
947
|
+
switchToYearView(event) {
|
|
948
|
+
this.setCurrentView('year');
|
|
949
|
+
event.preventDefault();
|
|
950
|
+
}
|
|
951
|
+
onDateSelect(event, dateMeta) {
|
|
952
|
+
if (this.disabled || !dateMeta.selectable) {
|
|
953
|
+
event.preventDefault();
|
|
954
|
+
return;
|
|
955
|
+
}
|
|
956
|
+
if (this.isMultipleSelection() && this.isSelected(dateMeta)) {
|
|
957
|
+
this.value = this.value.filter((date, i) => {
|
|
958
|
+
return !this.isDateEquals(date, dateMeta);
|
|
959
|
+
});
|
|
960
|
+
if (this.value.length === 0) {
|
|
961
|
+
this.value = null;
|
|
962
|
+
}
|
|
963
|
+
this.updateModel(this.value);
|
|
964
|
+
}
|
|
965
|
+
else {
|
|
966
|
+
if (this.shouldSelectDate(dateMeta)) {
|
|
967
|
+
this.selectDate(dateMeta);
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
if (this.hideOnDateTimeSelect && (this.isSingleSelection() || (this.isRangeSelection() && this.value[1]))) {
|
|
971
|
+
setTimeout(() => {
|
|
972
|
+
event.preventDefault();
|
|
973
|
+
this.hideOverlay();
|
|
974
|
+
if (this.mask) {
|
|
975
|
+
this.disableModality();
|
|
976
|
+
}
|
|
977
|
+
this.cd.markForCheck();
|
|
978
|
+
}, 150);
|
|
979
|
+
}
|
|
980
|
+
this.updateInputfield();
|
|
981
|
+
event.preventDefault();
|
|
982
|
+
}
|
|
983
|
+
shouldSelectDate(dateMeta) {
|
|
984
|
+
if (this.isMultipleSelection())
|
|
985
|
+
return this.maxDateCount != null ? this.maxDateCount > (this.value ? this.value.length : 0) : true;
|
|
986
|
+
else
|
|
987
|
+
return true;
|
|
988
|
+
}
|
|
989
|
+
onMonthSelect(event, index) {
|
|
990
|
+
if (this.view === 'month') {
|
|
991
|
+
this.onDateSelect(event, { year: this.currentYear, month: index, day: 1, selectable: true });
|
|
992
|
+
}
|
|
993
|
+
else {
|
|
994
|
+
this.currentMonth = index;
|
|
995
|
+
this.createMonths(this.currentMonth, this.currentYear);
|
|
996
|
+
this.setCurrentView('date');
|
|
997
|
+
this.onMonthChange.emit({ month: this.currentMonth + 1, year: this.currentYear });
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
onYearSelect(event, year) {
|
|
1001
|
+
if (this.view === 'year') {
|
|
1002
|
+
this.onDateSelect(event, { year: year, month: 0, day: 1, selectable: true });
|
|
1003
|
+
}
|
|
1004
|
+
else {
|
|
1005
|
+
this.currentYear = year;
|
|
1006
|
+
this.setCurrentView('month');
|
|
1007
|
+
this.onYearChange.emit({ month: this.currentMonth + 1, year: this.currentYear });
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
updateInputfield() {
|
|
1011
|
+
let formattedValue = '';
|
|
1012
|
+
if (this.value) {
|
|
1013
|
+
if (this.isSingleSelection()) {
|
|
1014
|
+
formattedValue = this.formatDateTime(this.value);
|
|
1015
|
+
}
|
|
1016
|
+
else if (this.isMultipleSelection()) {
|
|
1017
|
+
for (let i = 0; i < this.value.length; i++) {
|
|
1018
|
+
let dateAsString = this.formatDateTime(this.value[i]);
|
|
1019
|
+
formattedValue += dateAsString;
|
|
1020
|
+
if (i !== this.value.length - 1) {
|
|
1021
|
+
formattedValue += this.multipleSeparator + ' ';
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
else if (this.isRangeSelection()) {
|
|
1026
|
+
if (this.value && this.value.length) {
|
|
1027
|
+
let startDate = this.value[0];
|
|
1028
|
+
let endDate = this.value[1];
|
|
1029
|
+
formattedValue = this.formatDateTime(startDate);
|
|
1030
|
+
if (endDate) {
|
|
1031
|
+
formattedValue += ' ' + this.rangeSeparator + ' ' + this.formatDateTime(endDate);
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
this.inputFieldValue = formattedValue;
|
|
1037
|
+
this.updateFilledState();
|
|
1038
|
+
if (this.inputfieldViewChild && this.inputfieldViewChild.nativeElement) {
|
|
1039
|
+
this.inputfieldViewChild.nativeElement.value = this.inputFieldValue;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
formatDateTime(date) {
|
|
1043
|
+
let formattedValue = this.keepInvalid ? date : null;
|
|
1044
|
+
const isDateValid = this.isValidDateForTimeConstraints(date);
|
|
1045
|
+
if (this.isValidDate(date)) {
|
|
1046
|
+
if (this.timeOnly) {
|
|
1047
|
+
formattedValue = this.formatTime(date);
|
|
1048
|
+
}
|
|
1049
|
+
else {
|
|
1050
|
+
formattedValue = this.formatDate(date, this.getDateFormat());
|
|
1051
|
+
if (this.showTime) {
|
|
1052
|
+
formattedValue += ' ' + this.formatTime(date);
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
else if (this.dataType === 'string') {
|
|
1057
|
+
formattedValue = date;
|
|
1058
|
+
}
|
|
1059
|
+
formattedValue = isDateValid ? formattedValue : '';
|
|
1060
|
+
return formattedValue;
|
|
1061
|
+
}
|
|
1062
|
+
formatDateMetaToDate(dateMeta) {
|
|
1063
|
+
return new Date(dateMeta.year, dateMeta.month, dateMeta.day);
|
|
1064
|
+
}
|
|
1065
|
+
formatDateKey(date) {
|
|
1066
|
+
return `${date.getFullYear()}-${date.getMonth()}-${date.getDate()}`;
|
|
1067
|
+
}
|
|
1068
|
+
setCurrentHourPM(hours) {
|
|
1069
|
+
if (this.hourFormat == '12') {
|
|
1070
|
+
this.pm = hours > 11;
|
|
1071
|
+
if (hours >= 12) {
|
|
1072
|
+
this.currentHour = hours == 12 ? 12 : hours - 12;
|
|
1073
|
+
}
|
|
1074
|
+
else {
|
|
1075
|
+
this.currentHour = hours == 0 ? 12 : hours;
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
else {
|
|
1079
|
+
this.currentHour = hours;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
setCurrentView(currentView) {
|
|
1083
|
+
this.currentView = currentView;
|
|
1084
|
+
this.cd.detectChanges();
|
|
1085
|
+
this.alignOverlay();
|
|
1086
|
+
}
|
|
1087
|
+
selectDate(dateMeta) {
|
|
1088
|
+
let date = this.formatDateMetaToDate(dateMeta);
|
|
1089
|
+
if (this.showTime) {
|
|
1090
|
+
if (this.hourFormat == '12') {
|
|
1091
|
+
if (this.currentHour === 12)
|
|
1092
|
+
date.setHours(this.pm ? 12 : 0);
|
|
1093
|
+
else
|
|
1094
|
+
date.setHours(this.pm ? this.currentHour + 12 : this.currentHour);
|
|
1095
|
+
}
|
|
1096
|
+
else {
|
|
1097
|
+
date.setHours(this.currentHour);
|
|
1098
|
+
}
|
|
1099
|
+
date.setMinutes(this.currentMinute);
|
|
1100
|
+
date.setSeconds(this.currentSecond);
|
|
1101
|
+
}
|
|
1102
|
+
if (this.minDate && this.minDate > date) {
|
|
1103
|
+
date = this.minDate;
|
|
1104
|
+
this.setCurrentHourPM(date.getHours());
|
|
1105
|
+
this.currentMinute = date.getMinutes();
|
|
1106
|
+
this.currentSecond = date.getSeconds();
|
|
1107
|
+
}
|
|
1108
|
+
if (this.maxDate && this.maxDate < date) {
|
|
1109
|
+
date = this.maxDate;
|
|
1110
|
+
this.setCurrentHourPM(date.getHours());
|
|
1111
|
+
this.currentMinute = date.getMinutes();
|
|
1112
|
+
this.currentSecond = date.getSeconds();
|
|
1113
|
+
}
|
|
1114
|
+
if (this.isSingleSelection()) {
|
|
1115
|
+
this.updateModel(date);
|
|
1116
|
+
}
|
|
1117
|
+
else if (this.isMultipleSelection()) {
|
|
1118
|
+
this.updateModel(this.value ? [...this.value, date] : [date]);
|
|
1119
|
+
}
|
|
1120
|
+
else if (this.isRangeSelection()) {
|
|
1121
|
+
if (this.value && this.value.length) {
|
|
1122
|
+
let startDate = this.value[0];
|
|
1123
|
+
let endDate = this.value[1];
|
|
1124
|
+
if (!endDate && date.getTime() >= startDate.getTime()) {
|
|
1125
|
+
endDate = date;
|
|
1126
|
+
}
|
|
1127
|
+
else {
|
|
1128
|
+
startDate = date;
|
|
1129
|
+
endDate = null;
|
|
1130
|
+
}
|
|
1131
|
+
this.updateModel([startDate, endDate]);
|
|
1132
|
+
}
|
|
1133
|
+
else {
|
|
1134
|
+
this.updateModel([date, null]);
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
this.onSelect.emit(date);
|
|
1138
|
+
}
|
|
1139
|
+
updateModel(value) {
|
|
1140
|
+
this.value = value;
|
|
1141
|
+
if (this.dataType == 'date') {
|
|
1142
|
+
this.onModelChange(this.value);
|
|
1143
|
+
}
|
|
1144
|
+
else if (this.dataType == 'string') {
|
|
1145
|
+
if (this.isSingleSelection()) {
|
|
1146
|
+
this.onModelChange(this.formatDateTime(this.value));
|
|
1147
|
+
}
|
|
1148
|
+
else {
|
|
1149
|
+
let stringArrValue = null;
|
|
1150
|
+
if (Array.isArray(this.value)) {
|
|
1151
|
+
stringArrValue = this.value.map((date) => this.formatDateTime(date));
|
|
1152
|
+
}
|
|
1153
|
+
this.onModelChange(stringArrValue);
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
getFirstDayOfMonthIndex(month, year) {
|
|
1158
|
+
let day = new Date();
|
|
1159
|
+
day.setDate(1);
|
|
1160
|
+
day.setMonth(month);
|
|
1161
|
+
day.setFullYear(year);
|
|
1162
|
+
let dayIndex = day.getDay() + this.getSundayIndex();
|
|
1163
|
+
return dayIndex >= 7 ? dayIndex - 7 : dayIndex;
|
|
1164
|
+
}
|
|
1165
|
+
getDaysCountInMonth(month, year) {
|
|
1166
|
+
return 32 - this.daylightSavingAdjust(new Date(year, month, 32)).getDate();
|
|
1167
|
+
}
|
|
1168
|
+
getDaysCountInPrevMonth(month, year) {
|
|
1169
|
+
let prev = this.getPreviousMonthAndYear(month, year);
|
|
1170
|
+
return this.getDaysCountInMonth(prev.month, prev.year);
|
|
1171
|
+
}
|
|
1172
|
+
getPreviousMonthAndYear(month, year) {
|
|
1173
|
+
let m, y;
|
|
1174
|
+
if (month === 0) {
|
|
1175
|
+
m = 11;
|
|
1176
|
+
y = year - 1;
|
|
1177
|
+
}
|
|
1178
|
+
else {
|
|
1179
|
+
m = month - 1;
|
|
1180
|
+
y = year;
|
|
1181
|
+
}
|
|
1182
|
+
return { month: m, year: y };
|
|
1183
|
+
}
|
|
1184
|
+
getNextMonthAndYear(month, year) {
|
|
1185
|
+
let m, y;
|
|
1186
|
+
if (month === 11) {
|
|
1187
|
+
m = 0;
|
|
1188
|
+
y = year + 1;
|
|
1189
|
+
}
|
|
1190
|
+
else {
|
|
1191
|
+
m = month + 1;
|
|
1192
|
+
y = year;
|
|
1193
|
+
}
|
|
1194
|
+
return { month: m, year: y };
|
|
1195
|
+
}
|
|
1196
|
+
getSundayIndex() {
|
|
1197
|
+
let firstDayOfWeek = this.getFirstDateOfWeek();
|
|
1198
|
+
return firstDayOfWeek > 0 ? 7 - firstDayOfWeek : 0;
|
|
1199
|
+
}
|
|
1200
|
+
isSelected(dateMeta) {
|
|
1201
|
+
if (this.value) {
|
|
1202
|
+
if (this.isSingleSelection()) {
|
|
1203
|
+
return this.isDateEquals(this.value, dateMeta);
|
|
1204
|
+
}
|
|
1205
|
+
else if (this.isMultipleSelection()) {
|
|
1206
|
+
let selected = false;
|
|
1207
|
+
for (let date of this.value) {
|
|
1208
|
+
selected = this.isDateEquals(date, dateMeta);
|
|
1209
|
+
if (selected) {
|
|
1210
|
+
break;
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
return selected;
|
|
1214
|
+
}
|
|
1215
|
+
else if (this.isRangeSelection()) {
|
|
1216
|
+
if (this.value[1])
|
|
1217
|
+
return this.isDateEquals(this.value[0], dateMeta) || this.isDateEquals(this.value[1], dateMeta) || this.isDateBetween(this.value[0], this.value[1], dateMeta);
|
|
1218
|
+
else
|
|
1219
|
+
return this.isDateEquals(this.value[0], dateMeta);
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
else {
|
|
1223
|
+
return false;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
isComparable() {
|
|
1227
|
+
return this.value != null && typeof this.value !== 'string';
|
|
1228
|
+
}
|
|
1229
|
+
isMonthSelected(month) {
|
|
1230
|
+
if (this.isComparable() && !this.isMultipleSelection()) {
|
|
1231
|
+
const [start, end] = this.isRangeSelection() ? this.value : [this.value, this.value];
|
|
1232
|
+
const selected = new Date(this.currentYear, month, 1);
|
|
1233
|
+
return selected >= start && selected <= (end ?? start);
|
|
1234
|
+
}
|
|
1235
|
+
return false;
|
|
1236
|
+
}
|
|
1237
|
+
isMonthDisabled(month, year) {
|
|
1238
|
+
const yearToCheck = year ?? this.currentYear;
|
|
1239
|
+
for (let day = 1; day < this.getDaysCountInMonth(month, yearToCheck) + 1; day++) {
|
|
1240
|
+
if (this.isSelectable(day, month, yearToCheck, false)) {
|
|
1241
|
+
return false;
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
return true;
|
|
1245
|
+
}
|
|
1246
|
+
isYearDisabled(year) {
|
|
1247
|
+
return Array(12)
|
|
1248
|
+
.fill(0)
|
|
1249
|
+
.every((v, month) => this.isMonthDisabled(month, year));
|
|
1250
|
+
}
|
|
1251
|
+
isYearSelected(year) {
|
|
1252
|
+
if (!this.isComparable())
|
|
1253
|
+
return false;
|
|
1254
|
+
if (this.isMultipleSelection())
|
|
1255
|
+
return false;
|
|
1256
|
+
let value = this.isRangeSelection() ? this.value[0] : this.value;
|
|
1257
|
+
return value ? value.getFullYear() === year : false;
|
|
1258
|
+
}
|
|
1259
|
+
isDateEquals(value, dateMeta) {
|
|
1260
|
+
if (value && ObjectUtils.isDate(value))
|
|
1261
|
+
return value.getDate() === dateMeta.day && value.getMonth() === dateMeta.month && value.getFullYear() === dateMeta.year;
|
|
1262
|
+
else
|
|
1263
|
+
return false;
|
|
1264
|
+
}
|
|
1265
|
+
isDateBetween(start, end, dateMeta) {
|
|
1266
|
+
let between = false;
|
|
1267
|
+
if (ObjectUtils.isDate(start) && ObjectUtils.isDate(end)) {
|
|
1268
|
+
let date = this.formatDateMetaToDate(dateMeta);
|
|
1269
|
+
return start.getTime() <= date.getTime() && end.getTime() >= date.getTime();
|
|
1270
|
+
}
|
|
1271
|
+
return between;
|
|
1272
|
+
}
|
|
1273
|
+
isSingleSelection() {
|
|
1274
|
+
return this.selectionMode === 'single';
|
|
1275
|
+
}
|
|
1276
|
+
isRangeSelection() {
|
|
1277
|
+
return this.selectionMode === 'range';
|
|
1278
|
+
}
|
|
1279
|
+
isMultipleSelection() {
|
|
1280
|
+
return this.selectionMode === 'multiple';
|
|
1281
|
+
}
|
|
1282
|
+
isToday(today, day, month, year) {
|
|
1283
|
+
return today.getDate() === day && today.getMonth() === month && today.getFullYear() === year;
|
|
1284
|
+
}
|
|
1285
|
+
isSelectable(day, month, year, otherMonth) {
|
|
1286
|
+
let validMin = true;
|
|
1287
|
+
let validMax = true;
|
|
1288
|
+
let validDate = true;
|
|
1289
|
+
let validDay = true;
|
|
1290
|
+
if (otherMonth && !this.selectOtherMonths) {
|
|
1291
|
+
return false;
|
|
1292
|
+
}
|
|
1293
|
+
if (this.minDate) {
|
|
1294
|
+
if (this.minDate.getFullYear() > year) {
|
|
1295
|
+
validMin = false;
|
|
1296
|
+
}
|
|
1297
|
+
else if (this.minDate.getFullYear() === year && this.currentView != 'year') {
|
|
1298
|
+
if (this.minDate.getMonth() > month) {
|
|
1299
|
+
validMin = false;
|
|
1300
|
+
}
|
|
1301
|
+
else if (this.minDate.getMonth() === month) {
|
|
1302
|
+
if (this.minDate.getDate() > day) {
|
|
1303
|
+
validMin = false;
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
if (this.maxDate) {
|
|
1309
|
+
if (this.maxDate.getFullYear() < year) {
|
|
1310
|
+
validMax = false;
|
|
1311
|
+
}
|
|
1312
|
+
else if (this.maxDate.getFullYear() === year) {
|
|
1313
|
+
if (this.maxDate.getMonth() < month) {
|
|
1314
|
+
validMax = false;
|
|
1315
|
+
}
|
|
1316
|
+
else if (this.maxDate.getMonth() === month) {
|
|
1317
|
+
if (this.maxDate.getDate() < day) {
|
|
1318
|
+
validMax = false;
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
if (this.disabledDates) {
|
|
1324
|
+
validDate = !this.isDateDisabled(day, month, year);
|
|
1325
|
+
}
|
|
1326
|
+
if (this.disabledDays) {
|
|
1327
|
+
validDay = !this.isDayDisabled(day, month, year);
|
|
1328
|
+
}
|
|
1329
|
+
return validMin && validMax && validDate && validDay;
|
|
1330
|
+
}
|
|
1331
|
+
isDateDisabled(day, month, year) {
|
|
1332
|
+
if (this.disabledDates) {
|
|
1333
|
+
for (let disabledDate of this.disabledDates) {
|
|
1334
|
+
if (disabledDate.getFullYear() === year && disabledDate.getMonth() === month && disabledDate.getDate() === day) {
|
|
1335
|
+
return true;
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
return false;
|
|
1340
|
+
}
|
|
1341
|
+
isDayDisabled(day, month, year) {
|
|
1342
|
+
if (this.disabledDays) {
|
|
1343
|
+
let weekday = new Date(year, month, day);
|
|
1344
|
+
let weekdayNumber = weekday.getDay();
|
|
1345
|
+
return this.disabledDays.indexOf(weekdayNumber) !== -1;
|
|
1346
|
+
}
|
|
1347
|
+
return false;
|
|
1348
|
+
}
|
|
1349
|
+
onInputFocus(event) {
|
|
1350
|
+
this.focus = true;
|
|
1351
|
+
if (this.showOnFocus) {
|
|
1352
|
+
this.showOverlay();
|
|
1353
|
+
}
|
|
1354
|
+
this.onFocus.emit(event);
|
|
1355
|
+
}
|
|
1356
|
+
onInputClick() {
|
|
1357
|
+
if (this.showOnFocus && !this.overlayVisible) {
|
|
1358
|
+
this.showOverlay();
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
onInputBlur(event) {
|
|
1362
|
+
this.focus = false;
|
|
1363
|
+
this.onBlur.emit(event);
|
|
1364
|
+
if (!this.keepInvalid) {
|
|
1365
|
+
this.updateInputfield();
|
|
1366
|
+
}
|
|
1367
|
+
this.onModelTouched();
|
|
1368
|
+
}
|
|
1369
|
+
onButtonClick(event, inputfield = this.inputfieldViewChild?.nativeElement) {
|
|
1370
|
+
if (!this.overlayVisible) {
|
|
1371
|
+
inputfield.focus();
|
|
1372
|
+
this.showOverlay();
|
|
1373
|
+
}
|
|
1374
|
+
else {
|
|
1375
|
+
this.hideOverlay();
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
clear() {
|
|
1379
|
+
this.inputFieldValue = null;
|
|
1380
|
+
this.value = null;
|
|
1381
|
+
this.onModelChange(this.value);
|
|
1382
|
+
this.onClear.emit();
|
|
1383
|
+
}
|
|
1384
|
+
onOverlayClick(event) {
|
|
1385
|
+
this.overlayService.add({
|
|
1386
|
+
originalEvent: event,
|
|
1387
|
+
target: this.el.nativeElement
|
|
1388
|
+
});
|
|
1389
|
+
}
|
|
1390
|
+
getMonthName(index) {
|
|
1391
|
+
return this.config.getTranslation('monthNames')[index];
|
|
1392
|
+
}
|
|
1393
|
+
getYear(month) {
|
|
1394
|
+
return this.currentView === 'month' ? this.currentYear : month.year;
|
|
1395
|
+
}
|
|
1396
|
+
switchViewButtonDisabled() {
|
|
1397
|
+
return this.numberOfMonths > 1 || this.disabled;
|
|
1398
|
+
}
|
|
1399
|
+
onPrevButtonClick(event) {
|
|
1400
|
+
this.navigationState = { backward: true, button: true };
|
|
1401
|
+
this.navBackward(event);
|
|
1402
|
+
}
|
|
1403
|
+
onNextButtonClick(event) {
|
|
1404
|
+
this.navigationState = { backward: false, button: true };
|
|
1405
|
+
this.navForward(event);
|
|
1406
|
+
}
|
|
1407
|
+
onContainerButtonKeydown(event) {
|
|
1408
|
+
switch (event.which) {
|
|
1409
|
+
//tab
|
|
1410
|
+
case 9:
|
|
1411
|
+
if (!this.inline) {
|
|
1412
|
+
this.trapFocus(event);
|
|
1413
|
+
}
|
|
1414
|
+
if (this.inline) {
|
|
1415
|
+
const headerElements = DomHandler.findSingle(this.containerViewChild?.nativeElement, '.cax-datepicker-header');
|
|
1416
|
+
const element = event.target;
|
|
1417
|
+
if (this.timeOnly) {
|
|
1418
|
+
return;
|
|
1419
|
+
}
|
|
1420
|
+
else {
|
|
1421
|
+
if (element == headerElements.children[headerElements?.children?.length - 1]) {
|
|
1422
|
+
this.initFocusableCell();
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
break;
|
|
1427
|
+
//escape
|
|
1428
|
+
case 27:
|
|
1429
|
+
this.inputfieldViewChild?.nativeElement.focus();
|
|
1430
|
+
this.overlayVisible = false;
|
|
1431
|
+
event.preventDefault();
|
|
1432
|
+
break;
|
|
1433
|
+
default:
|
|
1434
|
+
//Noop
|
|
1435
|
+
break;
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
onInputKeydown(event) {
|
|
1439
|
+
this.isKeydown = true;
|
|
1440
|
+
if (event.keyCode === 40 && this.contentViewChild) {
|
|
1441
|
+
this.trapFocus(event);
|
|
1442
|
+
}
|
|
1443
|
+
else if (event.keyCode === 27) {
|
|
1444
|
+
if (this.overlayVisible) {
|
|
1445
|
+
this.inputfieldViewChild?.nativeElement.focus();
|
|
1446
|
+
this.overlayVisible = false;
|
|
1447
|
+
event.preventDefault();
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
else if (event.keyCode === 13) {
|
|
1451
|
+
if (this.overlayVisible) {
|
|
1452
|
+
this.overlayVisible = false;
|
|
1453
|
+
event.preventDefault();
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
else if (event.keyCode === 9 && this.contentViewChild) {
|
|
1457
|
+
DomHandler.getFocusableElements(this.contentViewChild.nativeElement).forEach((el) => (el.tabIndex = '-1'));
|
|
1458
|
+
if (this.overlayVisible) {
|
|
1459
|
+
this.overlayVisible = false;
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
onDateCellKeydown(event, dateMeta, groupIndex) {
|
|
1464
|
+
const cellContent = event.currentTarget;
|
|
1465
|
+
const cell = cellContent.parentElement;
|
|
1466
|
+
const currentDate = this.formatDateMetaToDate(dateMeta);
|
|
1467
|
+
switch (event.which) {
|
|
1468
|
+
//down arrow
|
|
1469
|
+
case 40: {
|
|
1470
|
+
cellContent.tabIndex = '-1';
|
|
1471
|
+
let cellIndex = DomHandler.index(cell);
|
|
1472
|
+
let nextRow = cell.parentElement.nextElementSibling;
|
|
1473
|
+
if (nextRow) {
|
|
1474
|
+
let focusCell = nextRow.children[cellIndex].children[0];
|
|
1475
|
+
if (DomHandler.hasClass(focusCell, 'cax-disabled')) {
|
|
1476
|
+
this.navigationState = { backward: false };
|
|
1477
|
+
this.navForward(event);
|
|
1478
|
+
}
|
|
1479
|
+
else {
|
|
1480
|
+
nextRow.children[cellIndex].children[0].tabIndex = '0';
|
|
1481
|
+
nextRow.children[cellIndex].children[0].focus();
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
else {
|
|
1485
|
+
this.navigationState = { backward: false };
|
|
1486
|
+
this.navForward(event);
|
|
1487
|
+
}
|
|
1488
|
+
event.preventDefault();
|
|
1489
|
+
break;
|
|
1490
|
+
}
|
|
1491
|
+
//up arrow
|
|
1492
|
+
case 38: {
|
|
1493
|
+
cellContent.tabIndex = '-1';
|
|
1494
|
+
let cellIndex = DomHandler.index(cell);
|
|
1495
|
+
let prevRow = cell.parentElement.previousElementSibling;
|
|
1496
|
+
if (prevRow) {
|
|
1497
|
+
let focusCell = prevRow.children[cellIndex].children[0];
|
|
1498
|
+
if (DomHandler.hasClass(focusCell, 'cax-disabled')) {
|
|
1499
|
+
this.navigationState = { backward: true };
|
|
1500
|
+
this.navBackward(event);
|
|
1501
|
+
}
|
|
1502
|
+
else {
|
|
1503
|
+
focusCell.tabIndex = '0';
|
|
1504
|
+
focusCell.focus();
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
else {
|
|
1508
|
+
this.navigationState = { backward: true };
|
|
1509
|
+
this.navBackward(event);
|
|
1510
|
+
}
|
|
1511
|
+
event.preventDefault();
|
|
1512
|
+
break;
|
|
1513
|
+
}
|
|
1514
|
+
//left arrow
|
|
1515
|
+
case 37: {
|
|
1516
|
+
cellContent.tabIndex = '-1';
|
|
1517
|
+
let prevCell = cell.previousElementSibling;
|
|
1518
|
+
if (prevCell) {
|
|
1519
|
+
let focusCell = prevCell.children[0];
|
|
1520
|
+
if (DomHandler.hasClass(focusCell, 'cax-disabled') || DomHandler.hasClass(focusCell.parentElement, 'cax-datepicker-weeknumber')) {
|
|
1521
|
+
this.navigateToMonth(true, groupIndex);
|
|
1522
|
+
}
|
|
1523
|
+
else {
|
|
1524
|
+
focusCell.tabIndex = '0';
|
|
1525
|
+
focusCell.focus();
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
else {
|
|
1529
|
+
this.navigateToMonth(true, groupIndex);
|
|
1530
|
+
}
|
|
1531
|
+
event.preventDefault();
|
|
1532
|
+
break;
|
|
1533
|
+
}
|
|
1534
|
+
//right arrow
|
|
1535
|
+
case 39: {
|
|
1536
|
+
cellContent.tabIndex = '-1';
|
|
1537
|
+
let nextCell = cell.nextElementSibling;
|
|
1538
|
+
if (nextCell) {
|
|
1539
|
+
let focusCell = nextCell.children[0];
|
|
1540
|
+
if (DomHandler.hasClass(focusCell, 'cax-disabled')) {
|
|
1541
|
+
this.navigateToMonth(false, groupIndex);
|
|
1542
|
+
}
|
|
1543
|
+
else {
|
|
1544
|
+
focusCell.tabIndex = '0';
|
|
1545
|
+
focusCell.focus();
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
else {
|
|
1549
|
+
this.navigateToMonth(false, groupIndex);
|
|
1550
|
+
}
|
|
1551
|
+
event.preventDefault();
|
|
1552
|
+
break;
|
|
1553
|
+
}
|
|
1554
|
+
//enter
|
|
1555
|
+
//space
|
|
1556
|
+
case 13:
|
|
1557
|
+
case 32: {
|
|
1558
|
+
this.onDateSelect(event, dateMeta);
|
|
1559
|
+
event.preventDefault();
|
|
1560
|
+
break;
|
|
1561
|
+
}
|
|
1562
|
+
//escape
|
|
1563
|
+
case 27: {
|
|
1564
|
+
this.inputfieldViewChild?.nativeElement.focus();
|
|
1565
|
+
this.overlayVisible = false;
|
|
1566
|
+
event.preventDefault();
|
|
1567
|
+
break;
|
|
1568
|
+
}
|
|
1569
|
+
//tab
|
|
1570
|
+
case 9: {
|
|
1571
|
+
if (!this.inline) {
|
|
1572
|
+
this.trapFocus(event);
|
|
1573
|
+
}
|
|
1574
|
+
break;
|
|
1575
|
+
}
|
|
1576
|
+
// page up
|
|
1577
|
+
case 33: {
|
|
1578
|
+
cellContent.tabIndex = '-1';
|
|
1579
|
+
const dateToFocus = new Date(currentDate.getFullYear(), currentDate.getMonth() - 1, currentDate.getDate());
|
|
1580
|
+
const focusKey = this.formatDateKey(dateToFocus);
|
|
1581
|
+
this.navigateToMonth(true, groupIndex, `span[data-date='${focusKey}']:not(.cax-disabled):not(.cax-ink)`);
|
|
1582
|
+
event.preventDefault();
|
|
1583
|
+
break;
|
|
1584
|
+
}
|
|
1585
|
+
// page down
|
|
1586
|
+
case 34: {
|
|
1587
|
+
cellContent.tabIndex = '-1';
|
|
1588
|
+
const dateToFocus = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, currentDate.getDate());
|
|
1589
|
+
const focusKey = this.formatDateKey(dateToFocus);
|
|
1590
|
+
this.navigateToMonth(false, groupIndex, `span[data-date='${focusKey}']:not(.cax-disabled):not(.cax-ink)`);
|
|
1591
|
+
event.preventDefault();
|
|
1592
|
+
break;
|
|
1593
|
+
}
|
|
1594
|
+
//home
|
|
1595
|
+
case 36:
|
|
1596
|
+
cellContent.tabIndex = '-1';
|
|
1597
|
+
const firstDayDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1);
|
|
1598
|
+
const firstDayDateKey = this.formatDateKey(firstDayDate);
|
|
1599
|
+
const firstDayCell = DomHandler.findSingle(cellContent.offsetParent, `span[data-date='${firstDayDateKey}']:not(.cax-disabled):not(.cax-ink)`);
|
|
1600
|
+
if (firstDayCell) {
|
|
1601
|
+
firstDayCell.tabIndex = '0';
|
|
1602
|
+
firstDayCell.focus();
|
|
1603
|
+
}
|
|
1604
|
+
event.preventDefault();
|
|
1605
|
+
break;
|
|
1606
|
+
//end
|
|
1607
|
+
case 35:
|
|
1608
|
+
cellContent.tabIndex = '-1';
|
|
1609
|
+
const lastDayDate = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 0);
|
|
1610
|
+
const lastDayDateKey = this.formatDateKey(lastDayDate);
|
|
1611
|
+
const lastDayCell = DomHandler.findSingle(cellContent.offsetParent, `span[data-date='${lastDayDateKey}']:not(.cax-disabled):not(.cax-ink)`);
|
|
1612
|
+
if (lastDayDate) {
|
|
1613
|
+
lastDayCell.tabIndex = '0';
|
|
1614
|
+
lastDayCell.focus();
|
|
1615
|
+
}
|
|
1616
|
+
event.preventDefault();
|
|
1617
|
+
break;
|
|
1618
|
+
default:
|
|
1619
|
+
//no op
|
|
1620
|
+
break;
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
onMonthCellKeydown(event, index) {
|
|
1624
|
+
const cell = event.currentTarget;
|
|
1625
|
+
switch (event.which) {
|
|
1626
|
+
//arrows
|
|
1627
|
+
case 38:
|
|
1628
|
+
case 40: {
|
|
1629
|
+
cell.tabIndex = '-1';
|
|
1630
|
+
var cells = cell.parentElement.children;
|
|
1631
|
+
var cellIndex = DomHandler.index(cell);
|
|
1632
|
+
let nextCell = cells[event.which === 40 ? cellIndex + 3 : cellIndex - 3];
|
|
1633
|
+
if (nextCell) {
|
|
1634
|
+
nextCell.tabIndex = '0';
|
|
1635
|
+
nextCell.focus();
|
|
1636
|
+
}
|
|
1637
|
+
event.preventDefault();
|
|
1638
|
+
break;
|
|
1639
|
+
}
|
|
1640
|
+
//left arrow
|
|
1641
|
+
case 37: {
|
|
1642
|
+
cell.tabIndex = '-1';
|
|
1643
|
+
let prevCell = cell.previousElementSibling;
|
|
1644
|
+
if (prevCell) {
|
|
1645
|
+
prevCell.tabIndex = '0';
|
|
1646
|
+
prevCell.focus();
|
|
1647
|
+
}
|
|
1648
|
+
else {
|
|
1649
|
+
this.navigationState = { backward: true };
|
|
1650
|
+
this.navBackward(event);
|
|
1651
|
+
}
|
|
1652
|
+
event.preventDefault();
|
|
1653
|
+
break;
|
|
1654
|
+
}
|
|
1655
|
+
//right arrow
|
|
1656
|
+
case 39: {
|
|
1657
|
+
cell.tabIndex = '-1';
|
|
1658
|
+
let nextCell = cell.nextElementSibling;
|
|
1659
|
+
if (nextCell) {
|
|
1660
|
+
nextCell.tabIndex = '0';
|
|
1661
|
+
nextCell.focus();
|
|
1662
|
+
}
|
|
1663
|
+
else {
|
|
1664
|
+
this.navigationState = { backward: false };
|
|
1665
|
+
this.navForward(event);
|
|
1666
|
+
}
|
|
1667
|
+
event.preventDefault();
|
|
1668
|
+
break;
|
|
1669
|
+
}
|
|
1670
|
+
//enter
|
|
1671
|
+
//space
|
|
1672
|
+
case 13:
|
|
1673
|
+
case 32: {
|
|
1674
|
+
this.onMonthSelect(event, index);
|
|
1675
|
+
event.preventDefault();
|
|
1676
|
+
break;
|
|
1677
|
+
}
|
|
1678
|
+
//escape
|
|
1679
|
+
case 27: {
|
|
1680
|
+
this.inputfieldViewChild?.nativeElement.focus();
|
|
1681
|
+
this.overlayVisible = false;
|
|
1682
|
+
event.preventDefault();
|
|
1683
|
+
break;
|
|
1684
|
+
}
|
|
1685
|
+
//tab
|
|
1686
|
+
case 9: {
|
|
1687
|
+
if (!this.inline) {
|
|
1688
|
+
this.trapFocus(event);
|
|
1689
|
+
}
|
|
1690
|
+
break;
|
|
1691
|
+
}
|
|
1692
|
+
default:
|
|
1693
|
+
//no op
|
|
1694
|
+
break;
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
onYearCellKeydown(event, index) {
|
|
1698
|
+
const cell = event.currentTarget;
|
|
1699
|
+
switch (event.which) {
|
|
1700
|
+
//arrows
|
|
1701
|
+
case 38:
|
|
1702
|
+
case 40: {
|
|
1703
|
+
cell.tabIndex = '-1';
|
|
1704
|
+
var cells = cell.parentElement.children;
|
|
1705
|
+
var cellIndex = DomHandler.index(cell);
|
|
1706
|
+
let nextCell = cells[event.which === 40 ? cellIndex + 2 : cellIndex - 2];
|
|
1707
|
+
if (nextCell) {
|
|
1708
|
+
nextCell.tabIndex = '0';
|
|
1709
|
+
nextCell.focus();
|
|
1710
|
+
}
|
|
1711
|
+
event.preventDefault();
|
|
1712
|
+
break;
|
|
1713
|
+
}
|
|
1714
|
+
//left arrow
|
|
1715
|
+
case 37: {
|
|
1716
|
+
cell.tabIndex = '-1';
|
|
1717
|
+
let prevCell = cell.previousElementSibling;
|
|
1718
|
+
if (prevCell) {
|
|
1719
|
+
prevCell.tabIndex = '0';
|
|
1720
|
+
prevCell.focus();
|
|
1721
|
+
}
|
|
1722
|
+
else {
|
|
1723
|
+
this.navigationState = { backward: true };
|
|
1724
|
+
this.navBackward(event);
|
|
1725
|
+
}
|
|
1726
|
+
event.preventDefault();
|
|
1727
|
+
break;
|
|
1728
|
+
}
|
|
1729
|
+
//right arrow
|
|
1730
|
+
case 39: {
|
|
1731
|
+
cell.tabIndex = '-1';
|
|
1732
|
+
let nextCell = cell.nextElementSibling;
|
|
1733
|
+
if (nextCell) {
|
|
1734
|
+
nextCell.tabIndex = '0';
|
|
1735
|
+
nextCell.focus();
|
|
1736
|
+
}
|
|
1737
|
+
else {
|
|
1738
|
+
this.navigationState = { backward: false };
|
|
1739
|
+
this.navForward(event);
|
|
1740
|
+
}
|
|
1741
|
+
event.preventDefault();
|
|
1742
|
+
break;
|
|
1743
|
+
}
|
|
1744
|
+
//enter
|
|
1745
|
+
//space
|
|
1746
|
+
case 13:
|
|
1747
|
+
case 32: {
|
|
1748
|
+
this.onYearSelect(event, index);
|
|
1749
|
+
event.preventDefault();
|
|
1750
|
+
break;
|
|
1751
|
+
}
|
|
1752
|
+
//escape
|
|
1753
|
+
case 27: {
|
|
1754
|
+
this.inputfieldViewChild?.nativeElement.focus();
|
|
1755
|
+
this.overlayVisible = false;
|
|
1756
|
+
event.preventDefault();
|
|
1757
|
+
break;
|
|
1758
|
+
}
|
|
1759
|
+
//tab
|
|
1760
|
+
case 9: {
|
|
1761
|
+
this.trapFocus(event);
|
|
1762
|
+
break;
|
|
1763
|
+
}
|
|
1764
|
+
default:
|
|
1765
|
+
//no op
|
|
1766
|
+
break;
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
navigateToMonth(prev, groupIndex, focusKey) {
|
|
1770
|
+
if (prev) {
|
|
1771
|
+
if (this.numberOfMonths === 1 || groupIndex === 0) {
|
|
1772
|
+
this.navigationState = { backward: true };
|
|
1773
|
+
this._focusKey = focusKey;
|
|
1774
|
+
this.navBackward(event);
|
|
1775
|
+
}
|
|
1776
|
+
else {
|
|
1777
|
+
let prevMonthContainer = this.contentViewChild.nativeElement.children[groupIndex - 1];
|
|
1778
|
+
if (focusKey) {
|
|
1779
|
+
const firstDayCell = DomHandler.findSingle(prevMonthContainer, focusKey);
|
|
1780
|
+
firstDayCell.tabIndex = '0';
|
|
1781
|
+
firstDayCell.focus();
|
|
1782
|
+
}
|
|
1783
|
+
else {
|
|
1784
|
+
let cells = DomHandler.find(prevMonthContainer, '.cax-datepicker-calendar td span:not(.cax-disabled):not(.cax-ink)');
|
|
1785
|
+
let focusCell = cells[cells.length - 1];
|
|
1786
|
+
focusCell.tabIndex = '0';
|
|
1787
|
+
focusCell.focus();
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
else {
|
|
1792
|
+
if (this.numberOfMonths === 1 || groupIndex === this.numberOfMonths - 1) {
|
|
1793
|
+
this.navigationState = { backward: false };
|
|
1794
|
+
this._focusKey = focusKey;
|
|
1795
|
+
this.navForward(event);
|
|
1796
|
+
}
|
|
1797
|
+
else {
|
|
1798
|
+
let nextMonthContainer = this.contentViewChild.nativeElement.children[groupIndex + 1];
|
|
1799
|
+
if (focusKey) {
|
|
1800
|
+
const firstDayCell = DomHandler.findSingle(nextMonthContainer, focusKey);
|
|
1801
|
+
firstDayCell.tabIndex = '0';
|
|
1802
|
+
firstDayCell.focus();
|
|
1803
|
+
}
|
|
1804
|
+
else {
|
|
1805
|
+
let focusCell = DomHandler.findSingle(nextMonthContainer, '.cax-datepicker-calendar td span:not(.cax-disabled):not(.cax-ink)');
|
|
1806
|
+
focusCell.tabIndex = '0';
|
|
1807
|
+
focusCell.focus();
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
updateFocus() {
|
|
1813
|
+
let cell;
|
|
1814
|
+
if (this.navigationState) {
|
|
1815
|
+
if (this.navigationState.button) {
|
|
1816
|
+
this.initFocusableCell();
|
|
1817
|
+
if (this.navigationState.backward)
|
|
1818
|
+
DomHandler.findSingle(this.contentViewChild.nativeElement, '.cax-datepicker-prev').focus();
|
|
1819
|
+
else
|
|
1820
|
+
DomHandler.findSingle(this.contentViewChild.nativeElement, '.cax-datepicker-next').focus();
|
|
1821
|
+
}
|
|
1822
|
+
else {
|
|
1823
|
+
if (this.navigationState.backward) {
|
|
1824
|
+
let cells;
|
|
1825
|
+
if (this.currentView === 'month') {
|
|
1826
|
+
cells = DomHandler.find(this.contentViewChild.nativeElement, '.cax-monthpicker .cax-monthpicker-month:not(.cax-disabled)');
|
|
1827
|
+
}
|
|
1828
|
+
else if (this.currentView === 'year') {
|
|
1829
|
+
cells = DomHandler.find(this.contentViewChild.nativeElement, '.cax-yearpicker .cax-yearpicker-year:not(.cax-disabled)');
|
|
1830
|
+
}
|
|
1831
|
+
else {
|
|
1832
|
+
cells = DomHandler.find(this.contentViewChild.nativeElement, this._focusKey || '.cax-datepicker-calendar td span:not(.cax-disabled):not(.cax-ink)');
|
|
1833
|
+
}
|
|
1834
|
+
if (cells && cells.length > 0) {
|
|
1835
|
+
cell = cells[cells.length - 1];
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
else {
|
|
1839
|
+
if (this.currentView === 'month') {
|
|
1840
|
+
cell = DomHandler.findSingle(this.contentViewChild.nativeElement, '.cax-monthpicker .cax-monthpicker-month:not(.cax-disabled)');
|
|
1841
|
+
}
|
|
1842
|
+
else if (this.currentView === 'year') {
|
|
1843
|
+
cell = DomHandler.findSingle(this.contentViewChild.nativeElement, '.cax-yearpicker .cax-yearpicker-year:not(.cax-disabled)');
|
|
1844
|
+
}
|
|
1845
|
+
else {
|
|
1846
|
+
cell = DomHandler.findSingle(this.contentViewChild.nativeElement, this._focusKey || '.cax-datepicker-calendar td span:not(.cax-disabled):not(.cax-ink)');
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
if (cell) {
|
|
1850
|
+
cell.tabIndex = '0';
|
|
1851
|
+
cell.focus();
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
this.navigationState = null;
|
|
1855
|
+
this._focusKey = null;
|
|
1856
|
+
}
|
|
1857
|
+
else {
|
|
1858
|
+
this.initFocusableCell();
|
|
1859
|
+
}
|
|
1860
|
+
this.alignOverlay();
|
|
1861
|
+
}
|
|
1862
|
+
initFocusableCell() {
|
|
1863
|
+
const contentEl = this.contentViewChild?.nativeElement;
|
|
1864
|
+
let cell;
|
|
1865
|
+
if (this.currentView === 'month') {
|
|
1866
|
+
let cells = DomHandler.find(contentEl, '.cax-monthpicker .cax-monthpicker-month:not(.cax-disabled)');
|
|
1867
|
+
let selectedCell = DomHandler.findSingle(contentEl, '.cax-monthpicker .cax-monthpicker-month.cax-highlight');
|
|
1868
|
+
cells.forEach((cell) => (cell.tabIndex = -1));
|
|
1869
|
+
cell = selectedCell || cells[0];
|
|
1870
|
+
if (cells.length === 0) {
|
|
1871
|
+
let disabledCells = DomHandler.find(contentEl, '.cax-monthpicker .cax-monthpicker-month.cax-disabled[tabindex = "0"]');
|
|
1872
|
+
disabledCells.forEach((cell) => (cell.tabIndex = -1));
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
else if (this.currentView === 'year') {
|
|
1876
|
+
let cells = DomHandler.find(contentEl, '.cax-yearpicker .cax-yearpicker-year:not(.cax-disabled)');
|
|
1877
|
+
let selectedCell = DomHandler.findSingle(contentEl, '.cax-yearpicker .cax-yearpicker-year.cax-highlight');
|
|
1878
|
+
cells.forEach((cell) => (cell.tabIndex = -1));
|
|
1879
|
+
cell = selectedCell || cells[0];
|
|
1880
|
+
if (cells.length === 0) {
|
|
1881
|
+
let disabledCells = DomHandler.find(contentEl, '.cax-yearpicker .cax-yearpicker-year.cax-disabled[tabindex = "0"]');
|
|
1882
|
+
disabledCells.forEach((cell) => (cell.tabIndex = -1));
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1885
|
+
else {
|
|
1886
|
+
cell = DomHandler.findSingle(contentEl, 'span.cax-highlight');
|
|
1887
|
+
if (!cell) {
|
|
1888
|
+
let todayCell = DomHandler.findSingle(contentEl, 'td.cax-datepicker-today span:not(.cax-disabled):not(.cax-ink)');
|
|
1889
|
+
if (todayCell)
|
|
1890
|
+
cell = todayCell;
|
|
1891
|
+
else
|
|
1892
|
+
cell = DomHandler.findSingle(contentEl, '.cax-datepicker-calendar td span:not(.cax-disabled):not(.cax-ink)');
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
if (cell) {
|
|
1896
|
+
cell.tabIndex = '0';
|
|
1897
|
+
if (!this.preventFocus && (!this.navigationState || !this.navigationState.button)) {
|
|
1898
|
+
setTimeout(() => {
|
|
1899
|
+
if (!this.disabled) {
|
|
1900
|
+
cell.focus();
|
|
1901
|
+
}
|
|
1902
|
+
}, 1);
|
|
1903
|
+
}
|
|
1904
|
+
this.preventFocus = false;
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
trapFocus(event) {
|
|
1908
|
+
let focusableElements = DomHandler.getFocusableElements(this.contentViewChild.nativeElement);
|
|
1909
|
+
if (focusableElements && focusableElements.length > 0) {
|
|
1910
|
+
if (!focusableElements[0].ownerDocument.activeElement) {
|
|
1911
|
+
focusableElements[0].focus();
|
|
1912
|
+
}
|
|
1913
|
+
else {
|
|
1914
|
+
let focusedIndex = focusableElements.indexOf(focusableElements[0].ownerDocument.activeElement);
|
|
1915
|
+
if (event.shiftKey) {
|
|
1916
|
+
if (focusedIndex == -1 || focusedIndex === 0) {
|
|
1917
|
+
if (this.focusTrap) {
|
|
1918
|
+
focusableElements[focusableElements.length - 1].focus();
|
|
1919
|
+
}
|
|
1920
|
+
else {
|
|
1921
|
+
if (focusedIndex === -1)
|
|
1922
|
+
return this.hideOverlay();
|
|
1923
|
+
else if (focusedIndex === 0)
|
|
1924
|
+
return;
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
else {
|
|
1928
|
+
focusableElements[focusedIndex - 1].focus();
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
else {
|
|
1932
|
+
if (focusedIndex == -1) {
|
|
1933
|
+
if (this.timeOnly) {
|
|
1934
|
+
focusableElements[0].focus();
|
|
1935
|
+
}
|
|
1936
|
+
else {
|
|
1937
|
+
let spanIndex = 0;
|
|
1938
|
+
for (let i = 0; i < focusableElements.length; i++) {
|
|
1939
|
+
if (focusableElements[i].tagName === 'SPAN')
|
|
1940
|
+
spanIndex = i;
|
|
1941
|
+
}
|
|
1942
|
+
focusableElements[spanIndex].focus();
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
else if (focusedIndex === focusableElements.length - 1) {
|
|
1946
|
+
if (!this.focusTrap && focusedIndex != -1)
|
|
1947
|
+
return this.hideOverlay();
|
|
1948
|
+
focusableElements[0].focus();
|
|
1949
|
+
}
|
|
1950
|
+
else {
|
|
1951
|
+
focusableElements[focusedIndex + 1].focus();
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
event.preventDefault();
|
|
1957
|
+
}
|
|
1958
|
+
onMonthDropdownChange(m) {
|
|
1959
|
+
this.currentMonth = parseInt(m);
|
|
1960
|
+
this.onMonthChange.emit({ month: this.currentMonth + 1, year: this.currentYear });
|
|
1961
|
+
this.createMonths(this.currentMonth, this.currentYear);
|
|
1962
|
+
}
|
|
1963
|
+
onYearDropdownChange(y) {
|
|
1964
|
+
this.currentYear = parseInt(y);
|
|
1965
|
+
this.onYearChange.emit({ month: this.currentMonth + 1, year: this.currentYear });
|
|
1966
|
+
this.createMonths(this.currentMonth, this.currentYear);
|
|
1967
|
+
}
|
|
1968
|
+
convertTo24Hour(hours, pm) {
|
|
1969
|
+
//@ts-ignore
|
|
1970
|
+
if (this.hourFormat == '12') {
|
|
1971
|
+
if (hours === 12) {
|
|
1972
|
+
return pm ? 12 : 0;
|
|
1973
|
+
}
|
|
1974
|
+
else {
|
|
1975
|
+
return pm ? hours + 12 : hours;
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
return hours;
|
|
1979
|
+
}
|
|
1980
|
+
constrainTime(hour, minute, second, pm) {
|
|
1981
|
+
let returnTimeTriple = [hour, minute, second];
|
|
1982
|
+
let minHoursExceeds12;
|
|
1983
|
+
let value = this.value;
|
|
1984
|
+
const convertedHour = this.convertTo24Hour(hour, pm);
|
|
1985
|
+
const isRange = this.isRangeSelection(), isMultiple = this.isMultipleSelection(), isMultiValue = isRange || isMultiple;
|
|
1986
|
+
if (isMultiValue) {
|
|
1987
|
+
if (!this.value) {
|
|
1988
|
+
this.value = [new Date(), new Date()];
|
|
1989
|
+
}
|
|
1990
|
+
if (isRange) {
|
|
1991
|
+
value = this.value[1] || this.value[0];
|
|
1992
|
+
}
|
|
1993
|
+
if (isMultiple) {
|
|
1994
|
+
value = this.value[this.value.length - 1];
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
const valueDateString = value ? value.toDateString() : null;
|
|
1998
|
+
let isMinDate = this.minDate && valueDateString && this.minDate.toDateString() === valueDateString;
|
|
1999
|
+
let isMaxDate = this.maxDate && valueDateString && this.maxDate.toDateString() === valueDateString;
|
|
2000
|
+
if (isMinDate) {
|
|
2001
|
+
minHoursExceeds12 = this.minDate.getHours() >= 12;
|
|
2002
|
+
}
|
|
2003
|
+
switch (true // intentional fall through
|
|
2004
|
+
) {
|
|
2005
|
+
case isMinDate && minHoursExceeds12 && this.minDate.getHours() === 12 && this.minDate.getHours() > convertedHour:
|
|
2006
|
+
returnTimeTriple[0] = 11;
|
|
2007
|
+
case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() > minute:
|
|
2008
|
+
returnTimeTriple[1] = this.minDate.getMinutes();
|
|
2009
|
+
case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() === minute && this.minDate.getSeconds() > second:
|
|
2010
|
+
returnTimeTriple[2] = this.minDate.getSeconds();
|
|
2011
|
+
break;
|
|
2012
|
+
case isMinDate && !minHoursExceeds12 && this.minDate.getHours() - 1 === convertedHour && this.minDate.getHours() > convertedHour:
|
|
2013
|
+
returnTimeTriple[0] = 11;
|
|
2014
|
+
this.pm = true;
|
|
2015
|
+
case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() > minute:
|
|
2016
|
+
returnTimeTriple[1] = this.minDate.getMinutes();
|
|
2017
|
+
case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() === minute && this.minDate.getSeconds() > second:
|
|
2018
|
+
returnTimeTriple[2] = this.minDate.getSeconds();
|
|
2019
|
+
break;
|
|
2020
|
+
case isMinDate && minHoursExceeds12 && this.minDate.getHours() > convertedHour && convertedHour !== 12:
|
|
2021
|
+
this.setCurrentHourPM(this.minDate.getHours());
|
|
2022
|
+
returnTimeTriple[0] = this.currentHour;
|
|
2023
|
+
case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() > minute:
|
|
2024
|
+
returnTimeTriple[1] = this.minDate.getMinutes();
|
|
2025
|
+
case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() === minute && this.minDate.getSeconds() > second:
|
|
2026
|
+
returnTimeTriple[2] = this.minDate.getSeconds();
|
|
2027
|
+
break;
|
|
2028
|
+
case isMinDate && this.minDate.getHours() > convertedHour:
|
|
2029
|
+
returnTimeTriple[0] = this.minDate.getHours();
|
|
2030
|
+
case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() > minute:
|
|
2031
|
+
returnTimeTriple[1] = this.minDate.getMinutes();
|
|
2032
|
+
case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() === minute && this.minDate.getSeconds() > second:
|
|
2033
|
+
returnTimeTriple[2] = this.minDate.getSeconds();
|
|
2034
|
+
break;
|
|
2035
|
+
case isMaxDate && this.maxDate.getHours() < convertedHour:
|
|
2036
|
+
returnTimeTriple[0] = this.maxDate.getHours();
|
|
2037
|
+
case isMaxDate && this.maxDate.getHours() === convertedHour && this.maxDate.getMinutes() < minute:
|
|
2038
|
+
returnTimeTriple[1] = this.maxDate.getMinutes();
|
|
2039
|
+
case isMaxDate && this.maxDate.getHours() === convertedHour && this.maxDate.getMinutes() === minute && this.maxDate.getSeconds() < second:
|
|
2040
|
+
returnTimeTriple[2] = this.maxDate.getSeconds();
|
|
2041
|
+
break;
|
|
2042
|
+
}
|
|
2043
|
+
return returnTimeTriple;
|
|
2044
|
+
}
|
|
2045
|
+
incrementHour(event) {
|
|
2046
|
+
const prevHour = this.currentHour ?? 0;
|
|
2047
|
+
let newHour = (this.currentHour ?? 0) + this.stepHour;
|
|
2048
|
+
let newPM = this.pm;
|
|
2049
|
+
if (this.hourFormat == '24')
|
|
2050
|
+
newHour = newHour >= 24 ? newHour - 24 : newHour;
|
|
2051
|
+
else if (this.hourFormat == '12') {
|
|
2052
|
+
// Before the AM/PM break, now after
|
|
2053
|
+
if (prevHour < 12 && newHour > 11) {
|
|
2054
|
+
newPM = !this.pm;
|
|
2055
|
+
}
|
|
2056
|
+
newHour = newHour >= 13 ? newHour - 12 : newHour;
|
|
2057
|
+
}
|
|
2058
|
+
this.toggleAMPMIfNotMinDate(newPM);
|
|
2059
|
+
[this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(newHour, this.currentMinute, this.currentSecond, newPM);
|
|
2060
|
+
event.preventDefault();
|
|
2061
|
+
}
|
|
2062
|
+
toggleAMPMIfNotMinDate(newPM) {
|
|
2063
|
+
let value = this.value;
|
|
2064
|
+
if ((this.selectionMode == 'range' || this.selectionMode == 'multiple') && Array.isArray(value) && value.length > 0) {
|
|
2065
|
+
value = value[value.length - 1];
|
|
2066
|
+
}
|
|
2067
|
+
const valueDateString = value ? value.toDateString() : null;
|
|
2068
|
+
let isMinDate = this.minDate && valueDateString && this.minDate.toDateString() === valueDateString;
|
|
2069
|
+
if (isMinDate && this.minDate.getHours() >= 12) {
|
|
2070
|
+
this.pm = true;
|
|
2071
|
+
}
|
|
2072
|
+
else {
|
|
2073
|
+
this.pm = newPM;
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
onTimePickerElementMouseDown(event, type, direction) {
|
|
2077
|
+
if (!this.disabled) {
|
|
2078
|
+
this.repeat(event, null, type, direction);
|
|
2079
|
+
event.preventDefault();
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
onTimePickerElementMouseUp(event) {
|
|
2083
|
+
if (!this.disabled) {
|
|
2084
|
+
this.clearTimePickerTimer();
|
|
2085
|
+
this.updateTime();
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
onTimePickerElementMouseLeave() {
|
|
2089
|
+
if (!this.disabled && this.timePickerTimer) {
|
|
2090
|
+
this.clearTimePickerTimer();
|
|
2091
|
+
this.updateTime();
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
repeat(event, interval, type, direction) {
|
|
2095
|
+
let i = interval || 500;
|
|
2096
|
+
this.clearTimePickerTimer();
|
|
2097
|
+
this.timePickerTimer = setTimeout(() => {
|
|
2098
|
+
this.repeat(event, 100, type, direction);
|
|
2099
|
+
this.cd.markForCheck();
|
|
2100
|
+
}, i);
|
|
2101
|
+
switch (type) {
|
|
2102
|
+
case 0:
|
|
2103
|
+
if (direction === 1)
|
|
2104
|
+
this.incrementHour(event);
|
|
2105
|
+
else
|
|
2106
|
+
this.decrementHour(event);
|
|
2107
|
+
break;
|
|
2108
|
+
case 1:
|
|
2109
|
+
if (direction === 1)
|
|
2110
|
+
this.incrementMinute(event);
|
|
2111
|
+
else
|
|
2112
|
+
this.decrementMinute(event);
|
|
2113
|
+
break;
|
|
2114
|
+
case 2:
|
|
2115
|
+
if (direction === 1)
|
|
2116
|
+
this.incrementSecond(event);
|
|
2117
|
+
else
|
|
2118
|
+
this.decrementSecond(event);
|
|
2119
|
+
break;
|
|
2120
|
+
}
|
|
2121
|
+
this.updateInputfield();
|
|
2122
|
+
}
|
|
2123
|
+
clearTimePickerTimer() {
|
|
2124
|
+
if (this.timePickerTimer) {
|
|
2125
|
+
clearTimeout(this.timePickerTimer);
|
|
2126
|
+
this.timePickerTimer = null;
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
decrementHour(event) {
|
|
2130
|
+
let newHour = (this.currentHour ?? 0) - this.stepHour;
|
|
2131
|
+
let newPM = this.pm;
|
|
2132
|
+
if (this.hourFormat == '24')
|
|
2133
|
+
newHour = newHour < 0 ? 24 + newHour : newHour;
|
|
2134
|
+
else if (this.hourFormat == '12') {
|
|
2135
|
+
// If we were at noon/midnight, then switch
|
|
2136
|
+
if (this.currentHour === 12) {
|
|
2137
|
+
newPM = !this.pm;
|
|
2138
|
+
}
|
|
2139
|
+
newHour = newHour <= 0 ? 12 + newHour : newHour;
|
|
2140
|
+
}
|
|
2141
|
+
this.toggleAMPMIfNotMinDate(newPM);
|
|
2142
|
+
[this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(newHour, this.currentMinute, this.currentSecond, newPM);
|
|
2143
|
+
event.preventDefault();
|
|
2144
|
+
}
|
|
2145
|
+
incrementMinute(event) {
|
|
2146
|
+
let newMinute = (this.currentMinute ?? 0) + this.stepMinute;
|
|
2147
|
+
newMinute = newMinute > 59 ? newMinute - 60 : newMinute;
|
|
2148
|
+
[this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(this.currentHour, newMinute, this.currentSecond, this.pm);
|
|
2149
|
+
event.preventDefault();
|
|
2150
|
+
}
|
|
2151
|
+
decrementMinute(event) {
|
|
2152
|
+
let newMinute = (this.currentMinute ?? 0) - this.stepMinute;
|
|
2153
|
+
newMinute = newMinute < 0 ? 60 + newMinute : newMinute;
|
|
2154
|
+
[this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(this.currentHour, newMinute, this.currentSecond, this.pm);
|
|
2155
|
+
event.preventDefault();
|
|
2156
|
+
}
|
|
2157
|
+
incrementSecond(event) {
|
|
2158
|
+
let newSecond = this.currentSecond + this.stepSecond;
|
|
2159
|
+
newSecond = newSecond > 59 ? newSecond - 60 : newSecond;
|
|
2160
|
+
[this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(this.currentHour, this.currentMinute, newSecond, this.pm);
|
|
2161
|
+
event.preventDefault();
|
|
2162
|
+
}
|
|
2163
|
+
decrementSecond(event) {
|
|
2164
|
+
let newSecond = this.currentSecond - this.stepSecond;
|
|
2165
|
+
newSecond = newSecond < 0 ? 60 + newSecond : newSecond;
|
|
2166
|
+
[this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(this.currentHour, this.currentMinute, newSecond, this.pm);
|
|
2167
|
+
event.preventDefault();
|
|
2168
|
+
}
|
|
2169
|
+
updateTime() {
|
|
2170
|
+
let value = this.value;
|
|
2171
|
+
if (this.isRangeSelection()) {
|
|
2172
|
+
value = this.value[1] || this.value[0];
|
|
2173
|
+
}
|
|
2174
|
+
if (this.isMultipleSelection()) {
|
|
2175
|
+
value = this.value[this.value.length - 1];
|
|
2176
|
+
}
|
|
2177
|
+
value = value ? new Date(value.getTime()) : new Date();
|
|
2178
|
+
if (this.hourFormat == '12') {
|
|
2179
|
+
if (this.currentHour === 12)
|
|
2180
|
+
value.setHours(this.pm ? 12 : 0);
|
|
2181
|
+
else
|
|
2182
|
+
value.setHours(this.pm ? this.currentHour + 12 : this.currentHour);
|
|
2183
|
+
}
|
|
2184
|
+
else {
|
|
2185
|
+
value.setHours(this.currentHour);
|
|
2186
|
+
}
|
|
2187
|
+
value.setMinutes(this.currentMinute);
|
|
2188
|
+
value.setSeconds(this.currentSecond);
|
|
2189
|
+
if (this.isRangeSelection()) {
|
|
2190
|
+
if (this.value[1])
|
|
2191
|
+
value = [this.value[0], value];
|
|
2192
|
+
else
|
|
2193
|
+
value = [value, null];
|
|
2194
|
+
}
|
|
2195
|
+
if (this.isMultipleSelection()) {
|
|
2196
|
+
value = [...this.value.slice(0, -1), value];
|
|
2197
|
+
}
|
|
2198
|
+
this.updateModel(value);
|
|
2199
|
+
this.onSelect.emit(value);
|
|
2200
|
+
this.updateInputfield();
|
|
2201
|
+
}
|
|
2202
|
+
toggleAMPM(event) {
|
|
2203
|
+
const newPM = !this.pm;
|
|
2204
|
+
this.pm = newPM;
|
|
2205
|
+
[this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(this.currentHour, this.currentMinute, this.currentSecond, newPM);
|
|
2206
|
+
this.updateTime();
|
|
2207
|
+
event.preventDefault();
|
|
2208
|
+
}
|
|
2209
|
+
onUserInput(event) {
|
|
2210
|
+
// IE 11 Workaround for input placeholder : https://github.com/primefaces/cax-design-system/issues/2026
|
|
2211
|
+
if (!this.isKeydown) {
|
|
2212
|
+
return;
|
|
2213
|
+
}
|
|
2214
|
+
this.isKeydown = false;
|
|
2215
|
+
let val = event.target.value;
|
|
2216
|
+
try {
|
|
2217
|
+
let value = this.parseValueFromString(val);
|
|
2218
|
+
if (this.isValidSelection(value)) {
|
|
2219
|
+
this.updateModel(value);
|
|
2220
|
+
this.updateUI();
|
|
2221
|
+
}
|
|
2222
|
+
else if (this.keepInvalid) {
|
|
2223
|
+
this.updateModel(value);
|
|
2224
|
+
}
|
|
2225
|
+
}
|
|
2226
|
+
catch (err) {
|
|
2227
|
+
//invalid date
|
|
2228
|
+
let value = this.keepInvalid ? val : null;
|
|
2229
|
+
this.updateModel(value);
|
|
2230
|
+
}
|
|
2231
|
+
this.filled = (val != null && val.length);
|
|
2232
|
+
this.onInput.emit(event);
|
|
2233
|
+
}
|
|
2234
|
+
isValidSelection(value) {
|
|
2235
|
+
if (this.isSingleSelection()) {
|
|
2236
|
+
return this.isSelectable(value.getDate(), value.getMonth(), value.getFullYear(), false);
|
|
2237
|
+
}
|
|
2238
|
+
let isValid = value.every((v) => this.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false));
|
|
2239
|
+
if (isValid && this.isRangeSelection()) {
|
|
2240
|
+
isValid = value.length === 1 || (value.length > 1 && value[1] >= value[0]);
|
|
2241
|
+
}
|
|
2242
|
+
return isValid;
|
|
2243
|
+
}
|
|
2244
|
+
parseValueFromString(text) {
|
|
2245
|
+
if (!text || text.trim().length === 0) {
|
|
2246
|
+
return null;
|
|
2247
|
+
}
|
|
2248
|
+
let value;
|
|
2249
|
+
if (this.isSingleSelection()) {
|
|
2250
|
+
value = this.parseDateTime(text);
|
|
2251
|
+
}
|
|
2252
|
+
else if (this.isMultipleSelection()) {
|
|
2253
|
+
let tokens = text.split(this.multipleSeparator);
|
|
2254
|
+
value = [];
|
|
2255
|
+
for (let token of tokens) {
|
|
2256
|
+
value.push(this.parseDateTime(token.trim()));
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
else if (this.isRangeSelection()) {
|
|
2260
|
+
let tokens = text.split(' ' + this.rangeSeparator + ' ');
|
|
2261
|
+
value = [];
|
|
2262
|
+
for (let i = 0; i < tokens.length; i++) {
|
|
2263
|
+
value[i] = this.parseDateTime(tokens[i].trim());
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
return value;
|
|
2267
|
+
}
|
|
2268
|
+
parseDateTime(text) {
|
|
2269
|
+
let date;
|
|
2270
|
+
let parts = text.split(' ');
|
|
2271
|
+
if (this.timeOnly) {
|
|
2272
|
+
date = new Date();
|
|
2273
|
+
this.populateTime(date, parts[0], parts[1]);
|
|
2274
|
+
}
|
|
2275
|
+
else {
|
|
2276
|
+
const dateFormat = this.getDateFormat();
|
|
2277
|
+
if (this.showTime) {
|
|
2278
|
+
let ampm = this.hourFormat == '12' ? parts.pop() : null;
|
|
2279
|
+
let timeString = parts.pop();
|
|
2280
|
+
date = this.parseDate(parts.join(' '), dateFormat);
|
|
2281
|
+
this.populateTime(date, timeString, ampm);
|
|
2282
|
+
}
|
|
2283
|
+
else {
|
|
2284
|
+
date = this.parseDate(text, dateFormat);
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
return date;
|
|
2288
|
+
}
|
|
2289
|
+
populateTime(value, timeString, ampm) {
|
|
2290
|
+
if (this.hourFormat == '12' && !ampm) {
|
|
2291
|
+
throw 'Invalid Time';
|
|
2292
|
+
}
|
|
2293
|
+
this.pm = ampm === 'PM' || ampm === 'pm';
|
|
2294
|
+
let time = this.parseTime(timeString);
|
|
2295
|
+
value.setHours(time.hour);
|
|
2296
|
+
value.setMinutes(time.minute);
|
|
2297
|
+
value.setSeconds(time.second);
|
|
2298
|
+
}
|
|
2299
|
+
isValidDate(date) {
|
|
2300
|
+
return ObjectUtils.isDate(date) && ObjectUtils.isNotEmpty(date);
|
|
2301
|
+
}
|
|
2302
|
+
updateUI() {
|
|
2303
|
+
let propValue = this.value;
|
|
2304
|
+
if (Array.isArray(propValue)) {
|
|
2305
|
+
propValue = propValue[1] || propValue[0];
|
|
2306
|
+
}
|
|
2307
|
+
let val = this.defaultDate && this.isValidDate(this.defaultDate) && !this.value ? this.defaultDate : propValue && this.isValidDate(propValue) ? propValue : new Date();
|
|
2308
|
+
this.currentMonth = val.getMonth();
|
|
2309
|
+
this.currentYear = val.getFullYear();
|
|
2310
|
+
this.createMonths(this.currentMonth, this.currentYear);
|
|
2311
|
+
if (this.showTime || this.timeOnly) {
|
|
2312
|
+
this.setCurrentHourPM(val.getHours());
|
|
2313
|
+
this.currentMinute = val.getMinutes();
|
|
2314
|
+
this.currentSecond = val.getSeconds();
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
showOverlay() {
|
|
2318
|
+
if (!this.overlayVisible) {
|
|
2319
|
+
this.updateUI();
|
|
2320
|
+
if (!this.touchUI) {
|
|
2321
|
+
this.preventFocus = true;
|
|
2322
|
+
}
|
|
2323
|
+
this.overlayVisible = true;
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
hideOverlay() {
|
|
2327
|
+
this.inputfieldViewChild?.nativeElement.focus();
|
|
2328
|
+
this.overlayVisible = false;
|
|
2329
|
+
this.clearTimePickerTimer();
|
|
2330
|
+
if (this.touchUI) {
|
|
2331
|
+
this.disableModality();
|
|
2332
|
+
}
|
|
2333
|
+
this.cd.markForCheck();
|
|
2334
|
+
}
|
|
2335
|
+
toggle() {
|
|
2336
|
+
if (!this.inline) {
|
|
2337
|
+
if (!this.overlayVisible) {
|
|
2338
|
+
this.showOverlay();
|
|
2339
|
+
this.inputfieldViewChild?.nativeElement.focus();
|
|
2340
|
+
}
|
|
2341
|
+
else {
|
|
2342
|
+
this.hideOverlay();
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
onOverlayAnimationStart(event) {
|
|
2347
|
+
switch (event.toState) {
|
|
2348
|
+
case 'visible':
|
|
2349
|
+
case 'visibleTouchUI':
|
|
2350
|
+
if (!this.inline) {
|
|
2351
|
+
this.overlay = event.element;
|
|
2352
|
+
this.overlay?.setAttribute(this.attributeSelector, '');
|
|
2353
|
+
this.appendOverlay();
|
|
2354
|
+
this.updateFocus();
|
|
2355
|
+
if (this.autoZIndex) {
|
|
2356
|
+
if (this.touchUI)
|
|
2357
|
+
ZIndexUtils.set('modal', this.overlay, this.baseZIndex || this.config.zIndex.modal);
|
|
2358
|
+
else
|
|
2359
|
+
ZIndexUtils.set('overlay', this.overlay, this.baseZIndex || this.config.zIndex.overlay);
|
|
2360
|
+
}
|
|
2361
|
+
this.alignOverlay();
|
|
2362
|
+
this.onShow.emit(event);
|
|
2363
|
+
}
|
|
2364
|
+
break;
|
|
2365
|
+
case 'void':
|
|
2366
|
+
this.onOverlayHide();
|
|
2367
|
+
this.onClose.emit(event);
|
|
2368
|
+
break;
|
|
2369
|
+
}
|
|
2370
|
+
}
|
|
2371
|
+
onOverlayAnimationDone(event) {
|
|
2372
|
+
switch (event.toState) {
|
|
2373
|
+
case 'visible':
|
|
2374
|
+
case 'visibleTouchUI':
|
|
2375
|
+
if (!this.inline) {
|
|
2376
|
+
this.bindDocumentClickListener();
|
|
2377
|
+
this.bindDocumentResizeListener();
|
|
2378
|
+
this.bindScrollListener();
|
|
2379
|
+
}
|
|
2380
|
+
break;
|
|
2381
|
+
case 'void':
|
|
2382
|
+
if (this.autoZIndex) {
|
|
2383
|
+
ZIndexUtils.clear(event.element);
|
|
2384
|
+
}
|
|
2385
|
+
break;
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
appendOverlay() {
|
|
2389
|
+
if (this.appendTo) {
|
|
2390
|
+
if (this.appendTo === 'body')
|
|
2391
|
+
this.document.body.appendChild(this.overlay);
|
|
2392
|
+
else
|
|
2393
|
+
DomHandler.appendChild(this.overlay, this.appendTo);
|
|
2394
|
+
}
|
|
2395
|
+
}
|
|
2396
|
+
restoreOverlayAppend() {
|
|
2397
|
+
if (this.overlay && this.appendTo) {
|
|
2398
|
+
this.el.nativeElement.appendChild(this.overlay);
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
alignOverlay() {
|
|
2402
|
+
if (this.touchUI) {
|
|
2403
|
+
this.enableModality(this.overlay);
|
|
2404
|
+
}
|
|
2405
|
+
else if (this.overlay) {
|
|
2406
|
+
if (this.appendTo) {
|
|
2407
|
+
if (this.view === 'date') {
|
|
2408
|
+
if (!this.overlay.style.width) {
|
|
2409
|
+
this.overlay.style.width = DomHandler.getOuterWidth(this.overlay) + 'px';
|
|
2410
|
+
}
|
|
2411
|
+
if (!this.overlay.style.minWidth) {
|
|
2412
|
+
this.overlay.style.minWidth = DomHandler.getOuterWidth(this.inputfieldViewChild?.nativeElement) + 'px';
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
else {
|
|
2416
|
+
if (!this.overlay.style.width) {
|
|
2417
|
+
this.overlay.style.width = DomHandler.getOuterWidth(this.inputfieldViewChild?.nativeElement) + 'px';
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
DomHandler.absolutePosition(this.overlay, this.inputfieldViewChild?.nativeElement);
|
|
2421
|
+
}
|
|
2422
|
+
else {
|
|
2423
|
+
DomHandler.relativePosition(this.overlay, this.inputfieldViewChild?.nativeElement);
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
enableModality(element) {
|
|
2428
|
+
if (!this.mask && this.touchUI) {
|
|
2429
|
+
this.mask = this.renderer.createElement('div');
|
|
2430
|
+
this.renderer.setStyle(this.mask, 'zIndex', String(parseInt(element.style.zIndex) - 1));
|
|
2431
|
+
let maskStyleClass = 'cax-component-overlay cax-datepicker-mask cax-datepicker-mask-scrollblocker cax-component-overlay cax-component-overlay-enter';
|
|
2432
|
+
DomHandler.addMultipleClasses(this.mask, maskStyleClass);
|
|
2433
|
+
this.maskClickListener = this.renderer.listen(this.mask, 'click', (event) => {
|
|
2434
|
+
this.disableModality();
|
|
2435
|
+
this.overlayVisible = false;
|
|
2436
|
+
});
|
|
2437
|
+
this.renderer.appendChild(this.document.body, this.mask);
|
|
2438
|
+
DomHandler.blockBodyScroll();
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
disableModality() {
|
|
2442
|
+
if (this.mask) {
|
|
2443
|
+
DomHandler.addClass(this.mask, 'cax-component-overlay-leave');
|
|
2444
|
+
if (!this.animationEndListener) {
|
|
2445
|
+
this.animationEndListener = this.renderer.listen(this.mask, 'animationend', this.destroyMask.bind(this));
|
|
2446
|
+
}
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
destroyMask() {
|
|
2450
|
+
if (!this.mask) {
|
|
2451
|
+
return;
|
|
2452
|
+
}
|
|
2453
|
+
this.renderer.removeChild(this.document.body, this.mask);
|
|
2454
|
+
let bodyChildren = this.document.body.children;
|
|
2455
|
+
let hasBlockerMasks;
|
|
2456
|
+
for (let i = 0; i < bodyChildren.length; i++) {
|
|
2457
|
+
let bodyChild = bodyChildren[i];
|
|
2458
|
+
if (DomHandler.hasClass(bodyChild, 'cax-datepicker-mask-scrollblocker')) {
|
|
2459
|
+
hasBlockerMasks = true;
|
|
2460
|
+
break;
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
if (!hasBlockerMasks) {
|
|
2464
|
+
DomHandler.unblockBodyScroll();
|
|
2465
|
+
}
|
|
2466
|
+
this.unbindAnimationEndListener();
|
|
2467
|
+
this.unbindMaskClickListener();
|
|
2468
|
+
this.mask = null;
|
|
2469
|
+
}
|
|
2470
|
+
unbindMaskClickListener() {
|
|
2471
|
+
if (this.maskClickListener) {
|
|
2472
|
+
this.maskClickListener();
|
|
2473
|
+
this.maskClickListener = null;
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
unbindAnimationEndListener() {
|
|
2477
|
+
if (this.animationEndListener && this.mask) {
|
|
2478
|
+
this.animationEndListener();
|
|
2479
|
+
this.animationEndListener = null;
|
|
2480
|
+
}
|
|
2481
|
+
}
|
|
2482
|
+
writeValue(value) {
|
|
2483
|
+
this.value = value;
|
|
2484
|
+
if (this.value && typeof this.value === 'string') {
|
|
2485
|
+
try {
|
|
2486
|
+
this.value = this.parseValueFromString(this.value);
|
|
2487
|
+
}
|
|
2488
|
+
catch {
|
|
2489
|
+
if (this.keepInvalid) {
|
|
2490
|
+
this.value = value;
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
this.updateInputfield();
|
|
2495
|
+
this.updateUI();
|
|
2496
|
+
this.cd.markForCheck();
|
|
2497
|
+
}
|
|
2498
|
+
registerOnChange(fn) {
|
|
2499
|
+
this.onModelChange = fn;
|
|
2500
|
+
}
|
|
2501
|
+
registerOnTouched(fn) {
|
|
2502
|
+
this.onModelTouched = fn;
|
|
2503
|
+
}
|
|
2504
|
+
setDisabledState(val) {
|
|
2505
|
+
this.disabled = val;
|
|
2506
|
+
this.cd.markForCheck();
|
|
2507
|
+
}
|
|
2508
|
+
getDateFormat() {
|
|
2509
|
+
return this.dateFormat || this.getTranslation('dateFormat');
|
|
2510
|
+
}
|
|
2511
|
+
getFirstDateOfWeek() {
|
|
2512
|
+
return this._firstDayOfWeek || this.getTranslation(TranslationKeys.FIRST_DAY_OF_WEEK);
|
|
2513
|
+
}
|
|
2514
|
+
// Ported from jquery-ui datepicker formatDate
|
|
2515
|
+
formatDate(date, format) {
|
|
2516
|
+
if (!date) {
|
|
2517
|
+
return '';
|
|
2518
|
+
}
|
|
2519
|
+
let iFormat;
|
|
2520
|
+
const lookAhead = (match) => {
|
|
2521
|
+
const matches = iFormat + 1 < format.length && format.charAt(iFormat + 1) === match;
|
|
2522
|
+
if (matches) {
|
|
2523
|
+
iFormat++;
|
|
2524
|
+
}
|
|
2525
|
+
return matches;
|
|
2526
|
+
}, formatNumber = (match, value, len) => {
|
|
2527
|
+
let num = '' + value;
|
|
2528
|
+
if (lookAhead(match)) {
|
|
2529
|
+
while (num.length < len) {
|
|
2530
|
+
num = '0' + num;
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2533
|
+
return num;
|
|
2534
|
+
}, formatName = (match, value, shortNames, longNames) => {
|
|
2535
|
+
return lookAhead(match) ? longNames[value] : shortNames[value];
|
|
2536
|
+
};
|
|
2537
|
+
let output = '';
|
|
2538
|
+
let literal = false;
|
|
2539
|
+
if (date) {
|
|
2540
|
+
for (iFormat = 0; iFormat < format.length; iFormat++) {
|
|
2541
|
+
if (literal) {
|
|
2542
|
+
if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
|
|
2543
|
+
literal = false;
|
|
2544
|
+
}
|
|
2545
|
+
else {
|
|
2546
|
+
output += format.charAt(iFormat);
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
else {
|
|
2550
|
+
switch (format.charAt(iFormat)) {
|
|
2551
|
+
case 'd':
|
|
2552
|
+
output += formatNumber('d', date.getDate(), 2);
|
|
2553
|
+
break;
|
|
2554
|
+
case 'D':
|
|
2555
|
+
output += formatName('D', date.getDay(), this.getTranslation(TranslationKeys.DAY_NAMES_SHORT), this.getTranslation(TranslationKeys.DAY_NAMES));
|
|
2556
|
+
break;
|
|
2557
|
+
case 'o':
|
|
2558
|
+
output += formatNumber('o', Math.round((new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);
|
|
2559
|
+
break;
|
|
2560
|
+
case 'm':
|
|
2561
|
+
output += formatNumber('m', date.getMonth() + 1, 2);
|
|
2562
|
+
break;
|
|
2563
|
+
case 'M':
|
|
2564
|
+
output += formatName('M', date.getMonth(), this.getTranslation(TranslationKeys.MONTH_NAMES_SHORT), this.getTranslation(TranslationKeys.MONTH_NAMES));
|
|
2565
|
+
break;
|
|
2566
|
+
case 'y':
|
|
2567
|
+
output += lookAhead('y') ? date.getFullYear() : (date.getFullYear() % 100 < 10 ? '0' : '') + (date.getFullYear() % 100);
|
|
2568
|
+
break;
|
|
2569
|
+
case '@':
|
|
2570
|
+
output += date.getTime();
|
|
2571
|
+
break;
|
|
2572
|
+
case '!':
|
|
2573
|
+
output += date.getTime() * 10000 + this.ticksTo1970;
|
|
2574
|
+
break;
|
|
2575
|
+
case "'":
|
|
2576
|
+
if (lookAhead("'")) {
|
|
2577
|
+
output += "'";
|
|
2578
|
+
}
|
|
2579
|
+
else {
|
|
2580
|
+
literal = true;
|
|
2581
|
+
}
|
|
2582
|
+
break;
|
|
2583
|
+
default:
|
|
2584
|
+
output += format.charAt(iFormat);
|
|
2585
|
+
}
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
}
|
|
2589
|
+
return output;
|
|
2590
|
+
}
|
|
2591
|
+
formatTime(date) {
|
|
2592
|
+
if (!date) {
|
|
2593
|
+
return '';
|
|
2594
|
+
}
|
|
2595
|
+
let output = '';
|
|
2596
|
+
let hours = date.getHours();
|
|
2597
|
+
let minutes = date.getMinutes();
|
|
2598
|
+
let seconds = date.getSeconds();
|
|
2599
|
+
if (this.hourFormat == '12' && hours > 11 && hours != 12) {
|
|
2600
|
+
hours -= 12;
|
|
2601
|
+
}
|
|
2602
|
+
if (this.hourFormat == '12') {
|
|
2603
|
+
output += hours === 0 ? 12 : hours < 10 ? '0' + hours : hours;
|
|
2604
|
+
}
|
|
2605
|
+
else {
|
|
2606
|
+
output += hours < 10 ? '0' + hours : hours;
|
|
2607
|
+
}
|
|
2608
|
+
output += ':';
|
|
2609
|
+
output += minutes < 10 ? '0' + minutes : minutes;
|
|
2610
|
+
if (this.showSeconds) {
|
|
2611
|
+
output += ':';
|
|
2612
|
+
output += seconds < 10 ? '0' + seconds : seconds;
|
|
2613
|
+
}
|
|
2614
|
+
if (this.hourFormat == '12') {
|
|
2615
|
+
output += date.getHours() > 11 ? ' PM' : ' AM';
|
|
2616
|
+
}
|
|
2617
|
+
return output;
|
|
2618
|
+
}
|
|
2619
|
+
parseTime(value) {
|
|
2620
|
+
let tokens = value.split(':');
|
|
2621
|
+
let validTokenLength = this.showSeconds ? 3 : 2;
|
|
2622
|
+
if (tokens.length !== validTokenLength) {
|
|
2623
|
+
throw 'Invalid time';
|
|
2624
|
+
}
|
|
2625
|
+
let h = parseInt(tokens[0]);
|
|
2626
|
+
let m = parseInt(tokens[1]);
|
|
2627
|
+
let s = this.showSeconds ? parseInt(tokens[2]) : null;
|
|
2628
|
+
if (isNaN(h) || isNaN(m) || h > 23 || m > 59 || (this.hourFormat == '12' && h > 12) || (this.showSeconds && (isNaN(s) || s > 59))) {
|
|
2629
|
+
throw 'Invalid time';
|
|
2630
|
+
}
|
|
2631
|
+
else {
|
|
2632
|
+
if (this.hourFormat == '12') {
|
|
2633
|
+
if (h !== 12 && this.pm) {
|
|
2634
|
+
h += 12;
|
|
2635
|
+
}
|
|
2636
|
+
else if (!this.pm && h === 12) {
|
|
2637
|
+
h -= 12;
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2640
|
+
return { hour: h, minute: m, second: s };
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
// Ported from jquery-ui datepicker parseDate
|
|
2644
|
+
parseDate(value, format) {
|
|
2645
|
+
if (format == null || value == null) {
|
|
2646
|
+
throw 'Invalid arguments';
|
|
2647
|
+
}
|
|
2648
|
+
value = typeof value === 'object' ? value.toString() : value + '';
|
|
2649
|
+
if (value === '') {
|
|
2650
|
+
return null;
|
|
2651
|
+
}
|
|
2652
|
+
let iFormat, dim, extra, iValue = 0, shortYearCutoff = typeof this.shortYearCutoff !== 'string' ? this.shortYearCutoff : (new Date().getFullYear() % 100) + parseInt(this.shortYearCutoff, 10), year = -1, month = -1, day = -1, doy = -1, literal = false, date, lookAhead = (match) => {
|
|
2653
|
+
let matches = iFormat + 1 < format.length && format.charAt(iFormat + 1) === match;
|
|
2654
|
+
if (matches) {
|
|
2655
|
+
iFormat++;
|
|
2656
|
+
}
|
|
2657
|
+
return matches;
|
|
2658
|
+
}, getNumber = (match) => {
|
|
2659
|
+
let isDoubled = lookAhead(match), size = match === '@' ? 14 : match === '!' ? 20 : match === 'y' && isDoubled ? 4 : match === 'o' ? 3 : 2, minSize = match === 'y' ? size : 1, digits = new RegExp('^\\d{' + minSize + ',' + size + '}'), num = value.substring(iValue).match(digits);
|
|
2660
|
+
if (!num) {
|
|
2661
|
+
throw 'Missing number at position ' + iValue;
|
|
2662
|
+
}
|
|
2663
|
+
iValue += num[0].length;
|
|
2664
|
+
return parseInt(num[0], 10);
|
|
2665
|
+
}, getName = (match, shortNames, longNames) => {
|
|
2666
|
+
let index = -1;
|
|
2667
|
+
let arr = lookAhead(match) ? longNames : shortNames;
|
|
2668
|
+
let names = [];
|
|
2669
|
+
for (let i = 0; i < arr.length; i++) {
|
|
2670
|
+
names.push([i, arr[i]]);
|
|
2671
|
+
}
|
|
2672
|
+
names.sort((a, b) => {
|
|
2673
|
+
return -(a[1].length - b[1].length);
|
|
2674
|
+
});
|
|
2675
|
+
for (let i = 0; i < names.length; i++) {
|
|
2676
|
+
let name = names[i][1];
|
|
2677
|
+
if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {
|
|
2678
|
+
index = names[i][0];
|
|
2679
|
+
iValue += name.length;
|
|
2680
|
+
break;
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
if (index !== -1) {
|
|
2684
|
+
return index + 1;
|
|
2685
|
+
}
|
|
2686
|
+
else {
|
|
2687
|
+
throw 'Unknown name at position ' + iValue;
|
|
2688
|
+
}
|
|
2689
|
+
}, checkLiteral = () => {
|
|
2690
|
+
if (value.charAt(iValue) !== format.charAt(iFormat)) {
|
|
2691
|
+
throw 'Unexpected literal at position ' + iValue;
|
|
2692
|
+
}
|
|
2693
|
+
iValue++;
|
|
2694
|
+
};
|
|
2695
|
+
if (this.view === 'month') {
|
|
2696
|
+
day = 1;
|
|
2697
|
+
}
|
|
2698
|
+
for (iFormat = 0; iFormat < format.length; iFormat++) {
|
|
2699
|
+
if (literal) {
|
|
2700
|
+
if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
|
|
2701
|
+
literal = false;
|
|
2702
|
+
}
|
|
2703
|
+
else {
|
|
2704
|
+
checkLiteral();
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
else {
|
|
2708
|
+
switch (format.charAt(iFormat)) {
|
|
2709
|
+
case 'd':
|
|
2710
|
+
day = getNumber('d');
|
|
2711
|
+
break;
|
|
2712
|
+
case 'D':
|
|
2713
|
+
getName('D', this.getTranslation(TranslationKeys.DAY_NAMES_SHORT), this.getTranslation(TranslationKeys.DAY_NAMES));
|
|
2714
|
+
break;
|
|
2715
|
+
case 'o':
|
|
2716
|
+
doy = getNumber('o');
|
|
2717
|
+
break;
|
|
2718
|
+
case 'm':
|
|
2719
|
+
month = getNumber('m');
|
|
2720
|
+
break;
|
|
2721
|
+
case 'M':
|
|
2722
|
+
month = getName('M', this.getTranslation(TranslationKeys.MONTH_NAMES_SHORT), this.getTranslation(TranslationKeys.MONTH_NAMES));
|
|
2723
|
+
break;
|
|
2724
|
+
case 'y':
|
|
2725
|
+
year = getNumber('y');
|
|
2726
|
+
break;
|
|
2727
|
+
case '@':
|
|
2728
|
+
date = new Date(getNumber('@'));
|
|
2729
|
+
year = date.getFullYear();
|
|
2730
|
+
month = date.getMonth() + 1;
|
|
2731
|
+
day = date.getDate();
|
|
2732
|
+
break;
|
|
2733
|
+
case '!':
|
|
2734
|
+
date = new Date((getNumber('!') - this.ticksTo1970) / 10000);
|
|
2735
|
+
year = date.getFullYear();
|
|
2736
|
+
month = date.getMonth() + 1;
|
|
2737
|
+
day = date.getDate();
|
|
2738
|
+
break;
|
|
2739
|
+
case "'":
|
|
2740
|
+
if (lookAhead("'")) {
|
|
2741
|
+
checkLiteral();
|
|
2742
|
+
}
|
|
2743
|
+
else {
|
|
2744
|
+
literal = true;
|
|
2745
|
+
}
|
|
2746
|
+
break;
|
|
2747
|
+
default:
|
|
2748
|
+
checkLiteral();
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
if (iValue < value.length) {
|
|
2753
|
+
extra = value.substr(iValue);
|
|
2754
|
+
if (!/^\s+/.test(extra)) {
|
|
2755
|
+
throw 'Extra/unparsed characters found in date: ' + extra;
|
|
2756
|
+
}
|
|
2757
|
+
}
|
|
2758
|
+
if (year === -1) {
|
|
2759
|
+
year = new Date().getFullYear();
|
|
2760
|
+
}
|
|
2761
|
+
else if (year < 100) {
|
|
2762
|
+
year += new Date().getFullYear() - (new Date().getFullYear() % 100) + (year <= shortYearCutoff ? 0 : -100);
|
|
2763
|
+
}
|
|
2764
|
+
if (doy > -1) {
|
|
2765
|
+
month = 1;
|
|
2766
|
+
day = doy;
|
|
2767
|
+
do {
|
|
2768
|
+
dim = this.getDaysCountInMonth(year, month - 1);
|
|
2769
|
+
if (day <= dim) {
|
|
2770
|
+
break;
|
|
2771
|
+
}
|
|
2772
|
+
month++;
|
|
2773
|
+
day -= dim;
|
|
2774
|
+
} while (true);
|
|
2775
|
+
}
|
|
2776
|
+
if (this.view === 'year') {
|
|
2777
|
+
month = month === -1 ? 1 : month;
|
|
2778
|
+
day = day === -1 ? 1 : day;
|
|
2779
|
+
}
|
|
2780
|
+
date = this.daylightSavingAdjust(new Date(year, month - 1, day));
|
|
2781
|
+
if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {
|
|
2782
|
+
throw 'Invalid date'; // E.g. 31/02/00
|
|
2783
|
+
}
|
|
2784
|
+
return date;
|
|
2785
|
+
}
|
|
2786
|
+
daylightSavingAdjust(date) {
|
|
2787
|
+
if (!date) {
|
|
2788
|
+
return null;
|
|
2789
|
+
}
|
|
2790
|
+
date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);
|
|
2791
|
+
return date;
|
|
2792
|
+
}
|
|
2793
|
+
updateFilledState() {
|
|
2794
|
+
this.filled = (this.inputFieldValue && this.inputFieldValue != '');
|
|
2795
|
+
}
|
|
2796
|
+
isValidDateForTimeConstraints(selectedDate) {
|
|
2797
|
+
if (this.keepInvalid) {
|
|
2798
|
+
return true; // If we are keeping invalid dates, we don't need to check for time constraints
|
|
2799
|
+
}
|
|
2800
|
+
return (!this.minDate || selectedDate >= this.minDate) && (!this.maxDate || selectedDate <= this.maxDate);
|
|
2801
|
+
}
|
|
2802
|
+
onTodayButtonClick(event) {
|
|
2803
|
+
const date = new Date();
|
|
2804
|
+
const dateMeta = { day: date.getDate(), month: date.getMonth(), year: date.getFullYear(), otherMonth: date.getMonth() !== this.currentMonth || date.getFullYear() !== this.currentYear, today: true, selectable: true };
|
|
2805
|
+
this.createMonths(date.getMonth(), date.getFullYear());
|
|
2806
|
+
this.onDateSelect(event, dateMeta);
|
|
2807
|
+
this.onTodayClick.emit(date);
|
|
2808
|
+
}
|
|
2809
|
+
onClearButtonClick(event) {
|
|
2810
|
+
this.updateModel(null);
|
|
2811
|
+
this.updateInputfield();
|
|
2812
|
+
this.hideOverlay();
|
|
2813
|
+
this.onClearClick.emit(event);
|
|
2814
|
+
}
|
|
2815
|
+
createResponsiveStyle() {
|
|
2816
|
+
if (this.numberOfMonths > 1 && this.responsiveOptions) {
|
|
2817
|
+
if (!this.responsiveStyleElement) {
|
|
2818
|
+
this.responsiveStyleElement = this.renderer.createElement('style');
|
|
2819
|
+
this.responsiveStyleElement.type = 'text/css';
|
|
2820
|
+
DomHandler.setAttribute(this.responsiveStyleElement, 'nonce', this.config?.csp()?.nonce);
|
|
2821
|
+
this.renderer.appendChild(this.document.body, this.responsiveStyleElement);
|
|
2822
|
+
}
|
|
2823
|
+
let innerHTML = '';
|
|
2824
|
+
if (this.responsiveOptions) {
|
|
2825
|
+
let responsiveOptions = [...this.responsiveOptions].filter((o) => !!(o.breakpoint && o.numMonths)).sort((o1, o2) => -1 * o1.breakpoint.localeCompare(o2.breakpoint, undefined, { numeric: true }));
|
|
2826
|
+
for (let i = 0; i < responsiveOptions.length; i++) {
|
|
2827
|
+
let { breakpoint, numMonths } = responsiveOptions[i];
|
|
2828
|
+
let styles = `
|
|
2829
|
+
.cax-datepicker[${this.attributeSelector}] .cax-datepicker-group:nth-child(${numMonths}) .cax-datepicker-next {
|
|
2830
|
+
display: inline-flex !important;
|
|
2831
|
+
}
|
|
2832
|
+
`;
|
|
2833
|
+
for (let j = numMonths; j < this.numberOfMonths; j++) {
|
|
2834
|
+
styles += `
|
|
2835
|
+
.cax-datepicker[${this.attributeSelector}] .cax-datepicker-group:nth-child(${j + 1}) {
|
|
2836
|
+
display: none !important;
|
|
2837
|
+
}
|
|
2838
|
+
`;
|
|
2839
|
+
}
|
|
2840
|
+
innerHTML += `
|
|
2841
|
+
@media screen and (max-width: ${breakpoint}) {
|
|
2842
|
+
${styles}
|
|
2843
|
+
}
|
|
2844
|
+
`;
|
|
2845
|
+
}
|
|
2846
|
+
}
|
|
2847
|
+
this.responsiveStyleElement.innerHTML = innerHTML;
|
|
2848
|
+
}
|
|
2849
|
+
}
|
|
2850
|
+
destroyResponsiveStyleElement() {
|
|
2851
|
+
if (this.responsiveStyleElement) {
|
|
2852
|
+
this.responsiveStyleElement.remove();
|
|
2853
|
+
this.responsiveStyleElement = null;
|
|
2854
|
+
}
|
|
2855
|
+
}
|
|
2856
|
+
bindDocumentClickListener() {
|
|
2857
|
+
if (!this.documentClickListener) {
|
|
2858
|
+
this.zone.runOutsideAngular(() => {
|
|
2859
|
+
const documentTarget = this.el ? this.el.nativeElement.ownerDocument : this.document;
|
|
2860
|
+
this.documentClickListener = this.renderer.listen(documentTarget, 'mousedown', (event) => {
|
|
2861
|
+
if (this.isOutsideClicked(event) && this.overlayVisible) {
|
|
2862
|
+
this.zone.run(() => {
|
|
2863
|
+
this.hideOverlay();
|
|
2864
|
+
this.onClickOutside.emit(event);
|
|
2865
|
+
this.cd.markForCheck();
|
|
2866
|
+
});
|
|
2867
|
+
}
|
|
2868
|
+
});
|
|
2869
|
+
});
|
|
2870
|
+
}
|
|
2871
|
+
}
|
|
2872
|
+
unbindDocumentClickListener() {
|
|
2873
|
+
if (this.documentClickListener) {
|
|
2874
|
+
this.documentClickListener();
|
|
2875
|
+
this.documentClickListener = null;
|
|
2876
|
+
}
|
|
2877
|
+
}
|
|
2878
|
+
bindDocumentResizeListener() {
|
|
2879
|
+
if (!this.documentResizeListener && !this.touchUI) {
|
|
2880
|
+
this.documentResizeListener = this.renderer.listen(this.window, 'resize', this.onWindowResize.bind(this));
|
|
2881
|
+
}
|
|
2882
|
+
}
|
|
2883
|
+
unbindDocumentResizeListener() {
|
|
2884
|
+
if (this.documentResizeListener) {
|
|
2885
|
+
this.documentResizeListener();
|
|
2886
|
+
this.documentResizeListener = null;
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
bindScrollListener() {
|
|
2890
|
+
if (!this.scrollHandler) {
|
|
2891
|
+
this.scrollHandler = new ConnectedOverlayScrollHandler(this.containerViewChild?.nativeElement, () => {
|
|
2892
|
+
if (this.overlayVisible) {
|
|
2893
|
+
this.hideOverlay();
|
|
2894
|
+
}
|
|
2895
|
+
});
|
|
2896
|
+
}
|
|
2897
|
+
this.scrollHandler.bindScrollListener();
|
|
2898
|
+
}
|
|
2899
|
+
unbindScrollListener() {
|
|
2900
|
+
if (this.scrollHandler) {
|
|
2901
|
+
this.scrollHandler.unbindScrollListener();
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2904
|
+
isOutsideClicked(event) {
|
|
2905
|
+
return !(this.el.nativeElement.isSameNode(event.target) || this.isNavIconClicked(event) || this.el.nativeElement.contains(event.target) || (this.overlay && this.overlay.contains(event.target)));
|
|
2906
|
+
}
|
|
2907
|
+
isNavIconClicked(event) {
|
|
2908
|
+
return (DomHandler.hasClass(event.target, 'cax-datepicker-prev') ||
|
|
2909
|
+
DomHandler.hasClass(event.target, 'cax-datepicker-prev-icon') ||
|
|
2910
|
+
DomHandler.hasClass(event.target, 'cax-datepicker-next') ||
|
|
2911
|
+
DomHandler.hasClass(event.target, 'cax-datepicker-next-icon'));
|
|
2912
|
+
}
|
|
2913
|
+
onWindowResize() {
|
|
2914
|
+
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
|
|
2915
|
+
this.hideOverlay();
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
onOverlayHide() {
|
|
2919
|
+
this.currentView = this.view;
|
|
2920
|
+
if (this.mask) {
|
|
2921
|
+
this.destroyMask();
|
|
2922
|
+
}
|
|
2923
|
+
this.unbindDocumentClickListener();
|
|
2924
|
+
this.unbindDocumentResizeListener();
|
|
2925
|
+
this.unbindScrollListener();
|
|
2926
|
+
this.overlay = null;
|
|
2927
|
+
}
|
|
2928
|
+
ngOnDestroy() {
|
|
2929
|
+
if (this.scrollHandler) {
|
|
2930
|
+
this.scrollHandler.destroy();
|
|
2931
|
+
this.scrollHandler = null;
|
|
2932
|
+
}
|
|
2933
|
+
if (this.translationSubscription) {
|
|
2934
|
+
this.translationSubscription.unsubscribe();
|
|
2935
|
+
}
|
|
2936
|
+
if (this.overlay && this.autoZIndex) {
|
|
2937
|
+
ZIndexUtils.clear(this.overlay);
|
|
2938
|
+
}
|
|
2939
|
+
this.destroyResponsiveStyleElement();
|
|
2940
|
+
this.clearTimePickerTimer();
|
|
2941
|
+
this.restoreOverlayAppend();
|
|
2942
|
+
this.onOverlayHide();
|
|
2943
|
+
}
|
|
2944
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: Calendar, deps: [{ token: DOCUMENT }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1.caxConfig }, { token: i1.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2945
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.2.9", type: Calendar, isStandalone: true, selector: "cax-calendar", inputs: { iconDisplay: "iconDisplay", style: "style", styleClass: "styleClass", inputStyle: "inputStyle", inputId: "inputId", name: "name", inputStyleClass: "inputStyleClass", placeholder: "placeholder", ariaLabelledBy: "ariaLabelledBy", ariaLabel: "ariaLabel", iconAriaLabel: "iconAriaLabel", disabled: ["disabled", "disabled", booleanAttribute], dateFormat: "dateFormat", multipleSeparator: "multipleSeparator", rangeSeparator: "rangeSeparator", inline: ["inline", "inline", booleanAttribute], showOtherMonths: ["showOtherMonths", "showOtherMonths", booleanAttribute], selectOtherMonths: ["selectOtherMonths", "selectOtherMonths", booleanAttribute], showIcon: ["showIcon", "showIcon", booleanAttribute], icon: "icon", appendTo: "appendTo", readonlyInput: ["readonlyInput", "readonlyInput", booleanAttribute], shortYearCutoff: "shortYearCutoff", monthNavigator: ["monthNavigator", "monthNavigator", booleanAttribute], yearNavigator: ["yearNavigator", "yearNavigator", booleanAttribute], hourFormat: "hourFormat", timeOnly: ["timeOnly", "timeOnly", booleanAttribute], stepYearPicker: ["stepYearPicker", "stepYearPicker", numberAttribute], stepHour: ["stepHour", "stepHour", numberAttribute], stepMinute: ["stepMinute", "stepMinute", numberAttribute], stepSecond: ["stepSecond", "stepSecond", numberAttribute], showSeconds: ["showSeconds", "showSeconds", booleanAttribute], required: ["required", "required", booleanAttribute], showOnFocus: ["showOnFocus", "showOnFocus", booleanAttribute], showWeek: ["showWeek", "showWeek", booleanAttribute], startWeekFromFirstDayOfYear: "startWeekFromFirstDayOfYear", showClear: ["showClear", "showClear", booleanAttribute], dataType: "dataType", selectionMode: "selectionMode", maxDateCount: ["maxDateCount", "maxDateCount", numberAttribute], showButtonBar: ["showButtonBar", "showButtonBar", booleanAttribute], todayButtonStyleClass: "todayButtonStyleClass", clearButtonStyleClass: "clearButtonStyleClass", autofocus: ["autofocus", "autofocus", booleanAttribute], autoZIndex: ["autoZIndex", "autoZIndex", booleanAttribute], baseZIndex: ["baseZIndex", "baseZIndex", numberAttribute], panelStyleClass: "panelStyleClass", panelStyle: "panelStyle", keepInvalid: ["keepInvalid", "keepInvalid", booleanAttribute], hideOnDateTimeSelect: ["hideOnDateTimeSelect", "hideOnDateTimeSelect", booleanAttribute], touchUI: ["touchUI", "touchUI", booleanAttribute], timeSeparator: "timeSeparator", focusTrap: ["focusTrap", "focusTrap", booleanAttribute], showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", tabindex: ["tabindex", "tabindex", numberAttribute], variant: "variant", minDate: "minDate", maxDate: "maxDate", disabledDates: "disabledDates", disabledDays: "disabledDays", yearRange: "yearRange", showTime: "showTime", responsiveOptions: "responsiveOptions", numberOfMonths: "numberOfMonths", firstDayOfWeek: "firstDayOfWeek", locale: "locale", view: "view", defaultDate: "defaultDate" }, outputs: { onFocus: "onFocus", onBlur: "onBlur", onClose: "onClose", onSelect: "onSelect", onClear: "onClear", onInput: "onInput", onTodayClick: "onTodayClick", onClearClick: "onClearClick", onMonthChange: "onMonthChange", onYearChange: "onYearChange", onClickOutside: "onClickOutside", onShow: "onShow" }, host: { properties: { "class.cax-inputwrapper-filled": "filled", "class.cax-inputwrapper-focus": "focus", "class.cax-calendar-clearable": "showClear && !disabled" }, classAttribute: "cax-element cax-inputwrapper" }, providers: [CALENDAR_VALUE_ACCESSOR], queries: [{ propertyName: "templates", predicate: CaxTemplate }], viewQueries: [{ propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }, { propertyName: "inputfieldViewChild", first: true, predicate: ["inputfield"], descendants: true }, { propertyName: "content", first: true, predicate: ["contentWrapper"], descendants: true }], ngImport: i0, template: "<span\r\n #container\r\n [ngClass]=\"{\r\n 'cax-calendar': true,\r\n 'cax-input-icon-right': showIcon && iconDisplay === 'input',\r\n 'cax-calendar-w-btn': showIcon && iconDisplay === 'button',\r\n 'cax-calendar-timeonly': timeOnly,\r\n 'cax-calendar-disabled': disabled,\r\n 'cax-focus': focus || overlayVisible\r\n }\"\r\n [ngStyle]=\"style\"\r\n [class]=\"styleClass\"\r\n>\r\n <ng-template [ngIf]=\"!inline\">\r\n <input\r\n #inputfield\r\n type=\"text\"\r\n role=\"combobox\"\r\n [attr.id]=\"inputId\"\r\n [attr.name]=\"name\"\r\n [attr.required]=\"required\"\r\n [attr.aria-required]=\"required\"\r\n aria-autocomplete=\"none\"\r\n aria-haspopup=\"dialog\"\r\n [attr.aria-expanded]=\"overlayVisible ?? false\"\r\n [attr.aria-controls]=\"overlayVisible ? panelId : null\"\r\n [attr.aria-labelledby]=\"ariaLabelledBy\"\r\n [attr.aria-label]=\"ariaLabel\"\r\n [value]=\"inputFieldValue\"\r\n (focus)=\"onInputFocus($event)\"\r\n (keydown)=\"onInputKeydown($event)\"\r\n (click)=\"onInputClick()\"\r\n (blur)=\"onInputBlur($event)\"\r\n [readonly]=\"readonlyInput\"\r\n (input)=\"onUserInput($event)\"\r\n [ngStyle]=\"inputStyle\"\r\n [class]=\"inputStyleClass\"\r\n [placeholder]=\"placeholder || ''\"\r\n [disabled]=\"disabled\"\r\n [attr.tabindex]=\"tabindex\"\r\n [attr.inputmode]=\"touchUI ? 'off' : null\"\r\n [ngClass]=\"inputClass\"\r\n autocomplete=\"off\"\r\n pAutoFocus\r\n [autofocus]=\"autofocus\"\r\n />\r\n <ng-container *ngIf=\"showClear && !disabled && value != null\">\r\n <TimesIcon *ngIf=\"!clearIconTemplate\" [styleClass]=\"'cax-calendar-clear-icon'\" (click)=\"clear()\" />\r\n <span *ngIf=\"clearIconTemplate\" class=\"cax-calendar-clear-icon\" (click)=\"clear()\">\r\n <ng-template *ngTemplateOutlet=\"clearIconTemplate\"></ng-template>\r\n </span>\r\n </ng-container>\r\n <button\r\n type=\"button\"\r\n [attr.aria-label]=\"iconButtonAriaLabel\"\r\n aria-haspopup=\"dialog\"\r\n [attr.aria-expanded]=\"overlayVisible ?? false\"\r\n [attr.aria-controls]=\"overlayVisible ? panelId : null\"\r\n pButton\r\n pRipple\r\n *ngIf=\"showIcon && iconDisplay === 'button'\"\r\n (click)=\"onButtonClick($event, inputfield)\"\r\n class=\"cax-datepicker-trigger cax-button-icon-only\"\r\n [disabled]=\"disabled\"\r\n tabindex=\"0\"\r\n >\r\n <span *ngIf=\"icon\" [ngClass]=\"icon\"></span>\r\n <ng-container *ngIf=\"!icon\">\r\n <CalendarIcon *ngIf=\"!triggerIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"triggerIconTemplate\"></ng-template>\r\n </ng-container>\r\n </button>\r\n <ng-container *ngIf=\"iconDisplay === 'input' && showIcon\">\r\n <CalendarIcon\r\n (click)=\"onButtonClick($event)\"\r\n *ngIf=\"!inputIconTemplate\"\r\n [ngClass]=\"{\r\n 'cax-datepicker-icon': showOnFocus\r\n }\"\r\n />\r\n <ng-container *ngTemplateOutlet=\"inputIconTemplate; context: { clickCallBack: onButtonClick.bind(this) }\"></ng-container>\r\n </ng-container>\r\n </ng-template>\r\n <div\r\n #contentWrapper\r\n [attr.id]=\"panelId\"\r\n [class]=\"panelStyleClass\"\r\n [ngStyle]=\"panelStyle\"\r\n [ngClass]=\"{\r\n 'cax-datepicker cax-component': true,\r\n 'cax-datepicker-inline': inline,\r\n 'cax-disabled': disabled,\r\n 'cax-datepicker-timeonly': timeOnly,\r\n 'cax-datepicker-multiple-month': this.numberOfMonths > 1,\r\n 'cax-datepicker-monthpicker': view === 'month',\r\n 'cax-datepicker-touch-ui': touchUI\r\n }\"\r\n [@overlayAnimation]=\"\r\n touchUI\r\n ? { value: 'visibleTouchUI', params: { showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions } }\r\n : { value: 'visible', params: { showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions } }\r\n \"\r\n [attr.aria-label]=\"getTranslation('chooseDate')\"\r\n [attr.role]=\"inline ? null : 'dialog'\"\r\n [attr.aria-modal]=\"inline ? null : 'true'\"\r\n [@.disabled]=\"inline === true\"\r\n (@overlayAnimation.start)=\"onOverlayAnimationStart($event)\"\r\n (@overlayAnimation.done)=\"onOverlayAnimationDone($event)\"\r\n (click)=\"onOverlayClick($event)\"\r\n *ngIf=\"inline || overlayVisible\"\r\n >\r\n <ng-content select=\"cax-header\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\r\n <ng-container *ngIf=\"!timeOnly\">\r\n <div class=\"cax-datepicker-group-container\">\r\n <div class=\"cax-datepicker-group\" *ngFor=\"let month of months; let i = index\">\r\n <div class=\"cax-datepicker-header\">\r\n <button (keydown)=\"onContainerButtonKeydown($event)\" class=\"cax-datepicker-prev cax-link\" (click)=\"onPrevButtonClick($event)\" *ngIf=\"i === 0\" type=\"button\" [attr.aria-label]=\"prevIconAriaLabel\" pRipple>\r\n <ChevronLeftIcon [styleClass]=\"'cax-datepicker-prev-icon'\" *ngIf=\"!previousIconTemplate\" />\r\n <span *ngIf=\"previousIconTemplate\" class=\"cax-datepicker-prev-icon\">\r\n <ng-template *ngTemplateOutlet=\"previousIconTemplate\"></ng-template>\r\n </span>\r\n </button>\r\n <div class=\"cax-datepicker-title\">\r\n <button\r\n type=\"button\"\r\n (click)=\"switchToMonthView($event)\"\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n *ngIf=\"currentView === 'date'\"\r\n class=\"cax-datepicker-month cax-link\"\r\n [disabled]=\"switchViewButtonDisabled()\"\r\n [attr.aria-label]=\"this.getTranslation('chooseMonth')\"\r\n >\r\n {{ getMonthName(month.month) }}\r\n </button>\r\n <button\r\n type=\"button\"\r\n (click)=\"switchToYearView($event)\"\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n *ngIf=\"currentView !== 'year'\"\r\n class=\"cax-datepicker-year cax-link\"\r\n [disabled]=\"switchViewButtonDisabled()\"\r\n [attr.aria-label]=\"getTranslation('chooseYear')\"\r\n >\r\n {{ getYear(month) }}\r\n </button>\r\n <span class=\"cax-datepicker-decade\" *ngIf=\"currentView === 'year'\">\r\n <ng-container *ngIf=\"!decadeTemplate\">{{ yearPickerValues()[0] }} - {{ yearPickerValues()[yearPickerValues().length - 1] }}</ng-container>\r\n <ng-container *ngTemplateOutlet=\"decadeTemplate; context: { $implicit: yearPickerValues }\"></ng-container>\r\n </span>\r\n </div>\r\n <button\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n class=\"cax-datepicker-next cax-link\"\r\n (click)=\"onNextButtonClick($event)\"\r\n [style.display]=\"numberOfMonths === 1 ? 'inline-flex' : i === numberOfMonths - 1 ? 'inline-flex' : 'none'\"\r\n type=\"button\"\r\n [attr.aria-label]=\"nextIconAriaLabel\"\r\n pRipple\r\n >\r\n <ChevronRightIcon [styleClass]=\"'cax-datepicker-next-icon'\" *ngIf=\"!nextIconTemplate\" />\r\n <span *ngIf=\"nextIconTemplate\" class=\"cax-datepicker-next-icon\">\r\n <ng-template *ngTemplateOutlet=\"nextIconTemplate\"></ng-template>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"cax-datepicker-calendar-container\" *ngIf=\"currentView === 'date'\">\r\n <table class=\"cax-datepicker-calendar\" role=\"grid\">\r\n <thead>\r\n <tr>\r\n <th *ngIf=\"showWeek\" class=\"cax-datepicker-weekheader cax-disabled\">\r\n <span>{{ getTranslation('weekHeader') }}</span>\r\n </th>\r\n <th scope=\"col\" *ngFor=\"let weekDay of weekDays; let begin = first; let end = last\">\r\n <span>{{ weekDay }}</span>\r\n </th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let week of month.dates; let j = index\">\r\n <td *ngIf=\"showWeek\" class=\"cax-datepicker-weeknumber\">\r\n <span class=\"cax-disabled\"> {{ month.weekNumbers[j] }} </span>\r\n </td>\r\n <td *ngFor=\"let date of week\" [attr.aria-label]=\"date.day\" [ngClass]=\"{ 'cax-datepicker-other-month': date.otherMonth, 'cax-datepicker-today': date.today }\">\r\n <ng-container *ngIf=\"date.otherMonth ? showOtherMonths : true\">\r\n <span\r\n [ngClass]=\"{ 'cax-highlight cax-datepicker-current-day': isSelected(date) && date.selectable, 'cax-disabled': !date.selectable }\"\r\n (click)=\"onDateSelect($event, date)\"\r\n draggable=\"false\"\r\n [attr.data-date]=\"formatDateKey(formatDateMetaToDate(date))\"\r\n (keydown)=\"onDateCellKeydown($event, date, i)\"\r\n pRipple\r\n >\r\n <ng-container *ngIf=\"!dateTemplate && (date.selectable || !disabledDateTemplate)\">{{ date.day }}</ng-container>\r\n <ng-container *ngIf=\"date.selectable || !disabledDateTemplate\">\r\n <ng-container *ngTemplateOutlet=\"dateTemplate; context: { $implicit: date }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngIf=\"!date.selectable\">\r\n <ng-container *ngTemplateOutlet=\"disabledDateTemplate; context: { $implicit: date }\"></ng-container>\r\n </ng-container>\r\n </span>\r\n <div *ngIf=\"isSelected(date)\" class=\"cax-hidden-accessible\" aria-live=\"polite\">{{ date.day }}</div>\r\n </ng-container>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"cax-monthpicker\" *ngIf=\"currentView === 'month'\">\r\n <span\r\n *ngFor=\"let m of monthPickerValues(); let i = index\"\r\n (click)=\"onMonthSelect($event, i)\"\r\n (keydown)=\"onMonthCellKeydown($event, i)\"\r\n class=\"cax-monthpicker-month\"\r\n [ngClass]=\"{ 'cax-highlight': isMonthSelected(i), 'cax-disabled': isMonthDisabled(i) }\"\r\n pRipple\r\n >\r\n {{ m }}\r\n <div *ngIf=\"isMonthSelected(i)\" class=\"cax-hidden-accessible\" aria-live=\"polite\">{{ m }}</div>\r\n </span>\r\n </div>\r\n <div class=\"cax-yearpicker\" *ngIf=\"currentView === 'year'\">\r\n <span\r\n *ngFor=\"let y of yearPickerValues()\"\r\n (click)=\"onYearSelect($event, y)\"\r\n (keydown)=\"onYearCellKeydown($event, y)\"\r\n class=\"cax-yearpicker-year\"\r\n [ngClass]=\"{ 'cax-highlight': isYearSelected(y), 'cax-disabled': isYearDisabled(y) }\"\r\n pRipple\r\n >\r\n {{ y }}\r\n <div *ngIf=\"isYearSelected(y)\" class=\"cax-hidden-accessible\" aria-live=\"polite\">{{ y }}</div>\r\n </span>\r\n </div>\r\n </ng-container>\r\n <div class=\"cax-timepicker\" *ngIf=\"(showTime || timeOnly) && currentView === 'date'\">\r\n <div class=\"cax-hour-picker\">\r\n <button\r\n class=\"cax-link\"\r\n type=\"button\"\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n (keydown.enter)=\"incrementHour($event)\"\r\n (keydown.space)=\"incrementHour($event)\"\r\n (mousedown)=\"onTimePickerElementMouseDown($event, 0, 1)\"\r\n (mouseup)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.enter)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.space)=\"onTimePickerElementMouseUp($event)\"\r\n (mouseleave)=\"onTimePickerElementMouseLeave()\"\r\n [attr.aria-label]=\"getTranslation('nextHour')\"\r\n pRipple\r\n >\r\n <ChevronUpIcon *ngIf=\"!incrementIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"incrementIconTemplate\"></ng-template>\r\n </button>\r\n <span><ng-container *ngIf=\"currentHour < 10\">0</ng-container>{{ currentHour }}</span>\r\n <button\r\n class=\"cax-link\"\r\n type=\"button\"\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n (keydown.enter)=\"decrementHour($event)\"\r\n (keydown.space)=\"decrementHour($event)\"\r\n (mousedown)=\"onTimePickerElementMouseDown($event, 0, -1)\"\r\n (mouseup)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.enter)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.space)=\"onTimePickerElementMouseUp($event)\"\r\n (mouseleave)=\"onTimePickerElementMouseLeave()\"\r\n [attr.aria-label]=\"getTranslation('prevHour')\"\r\n pRipple\r\n >\r\n <ChevronDownIcon *ngIf=\"!decrementIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"decrementIconTemplate\"></ng-template>\r\n </button>\r\n </div>\r\n <div class=\"cax-separator\">\r\n <span>{{ timeSeparator }}</span>\r\n </div>\r\n <div class=\"cax-minute-picker\">\r\n <button\r\n class=\"cax-link\"\r\n type=\"button\"\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n (keydown.enter)=\"incrementMinute($event)\"\r\n (keydown.space)=\"incrementMinute($event)\"\r\n (mousedown)=\"onTimePickerElementMouseDown($event, 1, 1)\"\r\n (mouseup)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.enter)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.space)=\"onTimePickerElementMouseUp($event)\"\r\n (mouseleave)=\"onTimePickerElementMouseLeave()\"\r\n [attr.aria-label]=\"getTranslation('nextMinute')\"\r\n pRipple\r\n >\r\n <ChevronUpIcon *ngIf=\"!incrementIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"incrementIconTemplate\"></ng-template>\r\n </button>\r\n <span><ng-container *ngIf=\"currentMinute < 10\">0</ng-container>{{ currentMinute }}</span>\r\n <button\r\n class=\"cax-link\"\r\n type=\"button\"\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n (keydown.enter)=\"decrementMinute($event)\"\r\n (keydown.space)=\"decrementMinute($event)\"\r\n (mousedown)=\"onTimePickerElementMouseDown($event, 1, -1)\"\r\n (mouseup)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.enter)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.space)=\"onTimePickerElementMouseUp($event)\"\r\n (mouseleave)=\"onTimePickerElementMouseLeave()\"\r\n [attr.aria-label]=\"getTranslation('prevMinute')\"\r\n pRipple\r\n >\r\n <ChevronDownIcon *ngIf=\"!decrementIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"decrementIconTemplate\"></ng-template>\r\n </button>\r\n </div>\r\n <div class=\"cax-separator\" *ngIf=\"showSeconds\">\r\n <span>{{ timeSeparator }}</span>\r\n </div>\r\n <div class=\"cax-second-picker\" *ngIf=\"showSeconds\">\r\n <button\r\n class=\"cax-link\"\r\n type=\"button\"\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n (keydown.enter)=\"incrementSecond($event)\"\r\n (keydown.space)=\"incrementSecond($event)\"\r\n (mousedown)=\"onTimePickerElementMouseDown($event, 2, 1)\"\r\n (mouseup)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.enter)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.space)=\"onTimePickerElementMouseUp($event)\"\r\n (mouseleave)=\"onTimePickerElementMouseLeave()\"\r\n [attr.aria-label]=\"getTranslation('nextSecond')\"\r\n pRipple\r\n >\r\n <ChevronUpIcon *ngIf=\"!incrementIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"incrementIconTemplate\"></ng-template>\r\n </button>\r\n <span><ng-container *ngIf=\"currentSecond < 10\">0</ng-container>{{ currentSecond }}</span>\r\n <button\r\n class=\"cax-link\"\r\n type=\"button\"\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n (keydown.enter)=\"decrementSecond($event)\"\r\n (keydown.space)=\"decrementSecond($event)\"\r\n (mousedown)=\"onTimePickerElementMouseDown($event, 2, -1)\"\r\n (mouseup)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.enter)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.space)=\"onTimePickerElementMouseUp($event)\"\r\n (mouseleave)=\"onTimePickerElementMouseLeave()\"\r\n [attr.aria-label]=\"getTranslation('prevSecond')\"\r\n pRipple\r\n >\r\n <ChevronDownIcon *ngIf=\"!decrementIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"decrementIconTemplate\"></ng-template>\r\n </button>\r\n </div>\r\n <div class=\"cax-ampm-picker\" *ngIf=\"hourFormat == '12'\">\r\n <button class=\"cax-link\" type=\"button\" (keydown)=\"onContainerButtonKeydown($event)\" (click)=\"toggleAMPM($event)\" (keydown.enter)=\"toggleAMPM($event)\" [attr.aria-label]=\"getTranslation('am')\" pRipple>\r\n <ChevronUpIcon *ngIf=\"!incrementIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"incrementIconTemplate\"></ng-template>\r\n </button>\r\n <span>{{ pm ? 'PM' : 'AM' }}</span>\r\n <button class=\"cax-link\" type=\"button\" (keydown)=\"onContainerButtonKeydown($event)\" (click)=\"toggleAMPM($event)\" (keydown.enter)=\"toggleAMPM($event)\" [attr.aria-label]=\"getTranslation('pm')\" pRipple>\r\n <ChevronDownIcon *ngIf=\"!decrementIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"decrementIconTemplate\"></ng-template>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"cax-datepicker-buttonbar\" *ngIf=\"showButtonBar\">\r\n <button type=\"button\" [label]=\"getTranslation('today')\" (keydown)=\"onContainerButtonKeydown($event)\" (click)=\"onTodayButtonClick($event)\" pButton pRipple [ngClass]=\"[todayButtonStyleClass]\"></button>\r\n <button type=\"button\" [label]=\"getTranslation('clear')\" (keydown)=\"onContainerButtonKeydown($event)\" (click)=\"onClearButtonClick($event)\" pButton pRipple [ngClass]=\"[clearButtonStyleClass]\"></button>\r\n </div>\r\n <ng-content select=\"cax-footer\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\r\n </div>\r\n</span>\r\n", styles: ["@layer cax{.cax-calendar{position:relative;display:inline-flex;max-width:100%}.cax-calendar .cax-inputtext{flex:1 1 auto;width:1%;text-overflow:ellipsis}.cax-calendar-w-btn .cax-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.cax-calendar-w-btn .cax-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.cax-fluid .cax-calendar{display:flex}.cax-fluid .cax-calendar .cax-inputtext{width:1%}.cax-calendar .cax-datepicker{min-width:100%}.cax-datepicker{width:auto;position:absolute;top:0;left:0}.cax-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.cax-datepicker-header{display:flex;align-items:center;justify-content:space-between}.cax-datepicker-header .cax-datepicker-title{margin:0 auto}.cax-datepicker-prev,.cax-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.cax-datepicker-multiple-month .cax-datepicker-group-container .cax-datepicker-group{flex:1 1 auto}.cax-datepicker-multiple-month .cax-datepicker-group-container{display:flex}.cax-datepicker table{width:100%;border-collapse:collapse}.cax-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.cax-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.cax-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.cax-timepicker{display:flex;justify-content:center;align-items:center}.cax-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.cax-timepicker>div{display:flex;align-items:center;flex-direction:column}.cax-datepicker-touch-ui,.cax-calendar .cax-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.cax-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.cax-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.cax-datepicker-icon{pointer-events:none}.cax-calendar-clearable{position:relative}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: RippleModule }, { kind: "component", type: ChevronLeftIcon, selector: "ChevronLeftIcon" }, { kind: "component", type: ChevronRightIcon, selector: "ChevronRightIcon" }, { kind: "component", type: ChevronUpIcon, selector: "ChevronUpIcon" }, { kind: "component", type: ChevronDownIcon, selector: "ChevronDownIcon" }, { kind: "component", type: TimesIcon, selector: "TimesIcon" }, { kind: "component", type: CalendarIcon, selector: "CalendarIcon" }, { kind: "ngmodule", type: AutoFocusModule }], animations: [
|
|
2946
|
+
trigger('overlayAnimation', [
|
|
2947
|
+
state('visibleTouchUI', style({
|
|
2948
|
+
transform: 'translate(-50%,-50%)',
|
|
2949
|
+
opacity: 1
|
|
2950
|
+
})),
|
|
2951
|
+
transition('void => visible', [style({ opacity: 0, transform: 'scaleY(0.8)' }), animate('{{showTransitionParams}}', style({ opacity: 1, transform: '*' }))]),
|
|
2952
|
+
transition('visible => void', [animate('{{hideTransitionParams}}', style({ opacity: 0 }))]),
|
|
2953
|
+
transition('void => visibleTouchUI', [style({ opacity: 0, transform: 'translate3d(-50%, -40%, 0) scale(0.9)' }), animate('{{showTransitionParams}}')]),
|
|
2954
|
+
transition('visibleTouchUI => void', [
|
|
2955
|
+
animate('{{hideTransitionParams}}', style({
|
|
2956
|
+
opacity: 0,
|
|
2957
|
+
transform: 'translate3d(-50%, -40%, 0) scale(0.9)'
|
|
2958
|
+
}))
|
|
2959
|
+
])
|
|
2960
|
+
])
|
|
2961
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2962
|
+
}
|
|
2963
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: Calendar, decorators: [{
|
|
2964
|
+
type: Component,
|
|
2965
|
+
args: [{ selector: 'cax-calendar', animations: [
|
|
2966
|
+
trigger('overlayAnimation', [
|
|
2967
|
+
state('visibleTouchUI', style({
|
|
2968
|
+
transform: 'translate(-50%,-50%)',
|
|
2969
|
+
opacity: 1
|
|
2970
|
+
})),
|
|
2971
|
+
transition('void => visible', [style({ opacity: 0, transform: 'scaleY(0.8)' }), animate('{{showTransitionParams}}', style({ opacity: 1, transform: '*' }))]),
|
|
2972
|
+
transition('visible => void', [animate('{{hideTransitionParams}}', style({ opacity: 0 }))]),
|
|
2973
|
+
transition('void => visibleTouchUI', [style({ opacity: 0, transform: 'translate3d(-50%, -40%, 0) scale(0.9)' }), animate('{{showTransitionParams}}')]),
|
|
2974
|
+
transition('visibleTouchUI => void', [
|
|
2975
|
+
animate('{{hideTransitionParams}}', style({
|
|
2976
|
+
opacity: 0,
|
|
2977
|
+
transform: 'translate3d(-50%, -40%, 0) scale(0.9)'
|
|
2978
|
+
}))
|
|
2979
|
+
])
|
|
2980
|
+
])
|
|
2981
|
+
], host: {
|
|
2982
|
+
class: 'cax-element cax-inputwrapper',
|
|
2983
|
+
'[class.cax-inputwrapper-filled]': 'filled',
|
|
2984
|
+
'[class.cax-inputwrapper-focus]': 'focus',
|
|
2985
|
+
'[class.cax-calendar-clearable]': 'showClear && !disabled'
|
|
2986
|
+
}, providers: [CALENDAR_VALUE_ACCESSOR], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [CommonModule, ButtonModule, SharedModule, RippleModule, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronDownIcon, TimesIcon, CalendarIcon, AutoFocusModule], template: "<span\r\n #container\r\n [ngClass]=\"{\r\n 'cax-calendar': true,\r\n 'cax-input-icon-right': showIcon && iconDisplay === 'input',\r\n 'cax-calendar-w-btn': showIcon && iconDisplay === 'button',\r\n 'cax-calendar-timeonly': timeOnly,\r\n 'cax-calendar-disabled': disabled,\r\n 'cax-focus': focus || overlayVisible\r\n }\"\r\n [ngStyle]=\"style\"\r\n [class]=\"styleClass\"\r\n>\r\n <ng-template [ngIf]=\"!inline\">\r\n <input\r\n #inputfield\r\n type=\"text\"\r\n role=\"combobox\"\r\n [attr.id]=\"inputId\"\r\n [attr.name]=\"name\"\r\n [attr.required]=\"required\"\r\n [attr.aria-required]=\"required\"\r\n aria-autocomplete=\"none\"\r\n aria-haspopup=\"dialog\"\r\n [attr.aria-expanded]=\"overlayVisible ?? false\"\r\n [attr.aria-controls]=\"overlayVisible ? panelId : null\"\r\n [attr.aria-labelledby]=\"ariaLabelledBy\"\r\n [attr.aria-label]=\"ariaLabel\"\r\n [value]=\"inputFieldValue\"\r\n (focus)=\"onInputFocus($event)\"\r\n (keydown)=\"onInputKeydown($event)\"\r\n (click)=\"onInputClick()\"\r\n (blur)=\"onInputBlur($event)\"\r\n [readonly]=\"readonlyInput\"\r\n (input)=\"onUserInput($event)\"\r\n [ngStyle]=\"inputStyle\"\r\n [class]=\"inputStyleClass\"\r\n [placeholder]=\"placeholder || ''\"\r\n [disabled]=\"disabled\"\r\n [attr.tabindex]=\"tabindex\"\r\n [attr.inputmode]=\"touchUI ? 'off' : null\"\r\n [ngClass]=\"inputClass\"\r\n autocomplete=\"off\"\r\n pAutoFocus\r\n [autofocus]=\"autofocus\"\r\n />\r\n <ng-container *ngIf=\"showClear && !disabled && value != null\">\r\n <TimesIcon *ngIf=\"!clearIconTemplate\" [styleClass]=\"'cax-calendar-clear-icon'\" (click)=\"clear()\" />\r\n <span *ngIf=\"clearIconTemplate\" class=\"cax-calendar-clear-icon\" (click)=\"clear()\">\r\n <ng-template *ngTemplateOutlet=\"clearIconTemplate\"></ng-template>\r\n </span>\r\n </ng-container>\r\n <button\r\n type=\"button\"\r\n [attr.aria-label]=\"iconButtonAriaLabel\"\r\n aria-haspopup=\"dialog\"\r\n [attr.aria-expanded]=\"overlayVisible ?? false\"\r\n [attr.aria-controls]=\"overlayVisible ? panelId : null\"\r\n pButton\r\n pRipple\r\n *ngIf=\"showIcon && iconDisplay === 'button'\"\r\n (click)=\"onButtonClick($event, inputfield)\"\r\n class=\"cax-datepicker-trigger cax-button-icon-only\"\r\n [disabled]=\"disabled\"\r\n tabindex=\"0\"\r\n >\r\n <span *ngIf=\"icon\" [ngClass]=\"icon\"></span>\r\n <ng-container *ngIf=\"!icon\">\r\n <CalendarIcon *ngIf=\"!triggerIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"triggerIconTemplate\"></ng-template>\r\n </ng-container>\r\n </button>\r\n <ng-container *ngIf=\"iconDisplay === 'input' && showIcon\">\r\n <CalendarIcon\r\n (click)=\"onButtonClick($event)\"\r\n *ngIf=\"!inputIconTemplate\"\r\n [ngClass]=\"{\r\n 'cax-datepicker-icon': showOnFocus\r\n }\"\r\n />\r\n <ng-container *ngTemplateOutlet=\"inputIconTemplate; context: { clickCallBack: onButtonClick.bind(this) }\"></ng-container>\r\n </ng-container>\r\n </ng-template>\r\n <div\r\n #contentWrapper\r\n [attr.id]=\"panelId\"\r\n [class]=\"panelStyleClass\"\r\n [ngStyle]=\"panelStyle\"\r\n [ngClass]=\"{\r\n 'cax-datepicker cax-component': true,\r\n 'cax-datepicker-inline': inline,\r\n 'cax-disabled': disabled,\r\n 'cax-datepicker-timeonly': timeOnly,\r\n 'cax-datepicker-multiple-month': this.numberOfMonths > 1,\r\n 'cax-datepicker-monthpicker': view === 'month',\r\n 'cax-datepicker-touch-ui': touchUI\r\n }\"\r\n [@overlayAnimation]=\"\r\n touchUI\r\n ? { value: 'visibleTouchUI', params: { showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions } }\r\n : { value: 'visible', params: { showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions } }\r\n \"\r\n [attr.aria-label]=\"getTranslation('chooseDate')\"\r\n [attr.role]=\"inline ? null : 'dialog'\"\r\n [attr.aria-modal]=\"inline ? null : 'true'\"\r\n [@.disabled]=\"inline === true\"\r\n (@overlayAnimation.start)=\"onOverlayAnimationStart($event)\"\r\n (@overlayAnimation.done)=\"onOverlayAnimationDone($event)\"\r\n (click)=\"onOverlayClick($event)\"\r\n *ngIf=\"inline || overlayVisible\"\r\n >\r\n <ng-content select=\"cax-header\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\r\n <ng-container *ngIf=\"!timeOnly\">\r\n <div class=\"cax-datepicker-group-container\">\r\n <div class=\"cax-datepicker-group\" *ngFor=\"let month of months; let i = index\">\r\n <div class=\"cax-datepicker-header\">\r\n <button (keydown)=\"onContainerButtonKeydown($event)\" class=\"cax-datepicker-prev cax-link\" (click)=\"onPrevButtonClick($event)\" *ngIf=\"i === 0\" type=\"button\" [attr.aria-label]=\"prevIconAriaLabel\" pRipple>\r\n <ChevronLeftIcon [styleClass]=\"'cax-datepicker-prev-icon'\" *ngIf=\"!previousIconTemplate\" />\r\n <span *ngIf=\"previousIconTemplate\" class=\"cax-datepicker-prev-icon\">\r\n <ng-template *ngTemplateOutlet=\"previousIconTemplate\"></ng-template>\r\n </span>\r\n </button>\r\n <div class=\"cax-datepicker-title\">\r\n <button\r\n type=\"button\"\r\n (click)=\"switchToMonthView($event)\"\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n *ngIf=\"currentView === 'date'\"\r\n class=\"cax-datepicker-month cax-link\"\r\n [disabled]=\"switchViewButtonDisabled()\"\r\n [attr.aria-label]=\"this.getTranslation('chooseMonth')\"\r\n >\r\n {{ getMonthName(month.month) }}\r\n </button>\r\n <button\r\n type=\"button\"\r\n (click)=\"switchToYearView($event)\"\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n *ngIf=\"currentView !== 'year'\"\r\n class=\"cax-datepicker-year cax-link\"\r\n [disabled]=\"switchViewButtonDisabled()\"\r\n [attr.aria-label]=\"getTranslation('chooseYear')\"\r\n >\r\n {{ getYear(month) }}\r\n </button>\r\n <span class=\"cax-datepicker-decade\" *ngIf=\"currentView === 'year'\">\r\n <ng-container *ngIf=\"!decadeTemplate\">{{ yearPickerValues()[0] }} - {{ yearPickerValues()[yearPickerValues().length - 1] }}</ng-container>\r\n <ng-container *ngTemplateOutlet=\"decadeTemplate; context: { $implicit: yearPickerValues }\"></ng-container>\r\n </span>\r\n </div>\r\n <button\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n class=\"cax-datepicker-next cax-link\"\r\n (click)=\"onNextButtonClick($event)\"\r\n [style.display]=\"numberOfMonths === 1 ? 'inline-flex' : i === numberOfMonths - 1 ? 'inline-flex' : 'none'\"\r\n type=\"button\"\r\n [attr.aria-label]=\"nextIconAriaLabel\"\r\n pRipple\r\n >\r\n <ChevronRightIcon [styleClass]=\"'cax-datepicker-next-icon'\" *ngIf=\"!nextIconTemplate\" />\r\n <span *ngIf=\"nextIconTemplate\" class=\"cax-datepicker-next-icon\">\r\n <ng-template *ngTemplateOutlet=\"nextIconTemplate\"></ng-template>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"cax-datepicker-calendar-container\" *ngIf=\"currentView === 'date'\">\r\n <table class=\"cax-datepicker-calendar\" role=\"grid\">\r\n <thead>\r\n <tr>\r\n <th *ngIf=\"showWeek\" class=\"cax-datepicker-weekheader cax-disabled\">\r\n <span>{{ getTranslation('weekHeader') }}</span>\r\n </th>\r\n <th scope=\"col\" *ngFor=\"let weekDay of weekDays; let begin = first; let end = last\">\r\n <span>{{ weekDay }}</span>\r\n </th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let week of month.dates; let j = index\">\r\n <td *ngIf=\"showWeek\" class=\"cax-datepicker-weeknumber\">\r\n <span class=\"cax-disabled\"> {{ month.weekNumbers[j] }} </span>\r\n </td>\r\n <td *ngFor=\"let date of week\" [attr.aria-label]=\"date.day\" [ngClass]=\"{ 'cax-datepicker-other-month': date.otherMonth, 'cax-datepicker-today': date.today }\">\r\n <ng-container *ngIf=\"date.otherMonth ? showOtherMonths : true\">\r\n <span\r\n [ngClass]=\"{ 'cax-highlight cax-datepicker-current-day': isSelected(date) && date.selectable, 'cax-disabled': !date.selectable }\"\r\n (click)=\"onDateSelect($event, date)\"\r\n draggable=\"false\"\r\n [attr.data-date]=\"formatDateKey(formatDateMetaToDate(date))\"\r\n (keydown)=\"onDateCellKeydown($event, date, i)\"\r\n pRipple\r\n >\r\n <ng-container *ngIf=\"!dateTemplate && (date.selectable || !disabledDateTemplate)\">{{ date.day }}</ng-container>\r\n <ng-container *ngIf=\"date.selectable || !disabledDateTemplate\">\r\n <ng-container *ngTemplateOutlet=\"dateTemplate; context: { $implicit: date }\"></ng-container>\r\n </ng-container>\r\n <ng-container *ngIf=\"!date.selectable\">\r\n <ng-container *ngTemplateOutlet=\"disabledDateTemplate; context: { $implicit: date }\"></ng-container>\r\n </ng-container>\r\n </span>\r\n <div *ngIf=\"isSelected(date)\" class=\"cax-hidden-accessible\" aria-live=\"polite\">{{ date.day }}</div>\r\n </ng-container>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"cax-monthpicker\" *ngIf=\"currentView === 'month'\">\r\n <span\r\n *ngFor=\"let m of monthPickerValues(); let i = index\"\r\n (click)=\"onMonthSelect($event, i)\"\r\n (keydown)=\"onMonthCellKeydown($event, i)\"\r\n class=\"cax-monthpicker-month\"\r\n [ngClass]=\"{ 'cax-highlight': isMonthSelected(i), 'cax-disabled': isMonthDisabled(i) }\"\r\n pRipple\r\n >\r\n {{ m }}\r\n <div *ngIf=\"isMonthSelected(i)\" class=\"cax-hidden-accessible\" aria-live=\"polite\">{{ m }}</div>\r\n </span>\r\n </div>\r\n <div class=\"cax-yearpicker\" *ngIf=\"currentView === 'year'\">\r\n <span\r\n *ngFor=\"let y of yearPickerValues()\"\r\n (click)=\"onYearSelect($event, y)\"\r\n (keydown)=\"onYearCellKeydown($event, y)\"\r\n class=\"cax-yearpicker-year\"\r\n [ngClass]=\"{ 'cax-highlight': isYearSelected(y), 'cax-disabled': isYearDisabled(y) }\"\r\n pRipple\r\n >\r\n {{ y }}\r\n <div *ngIf=\"isYearSelected(y)\" class=\"cax-hidden-accessible\" aria-live=\"polite\">{{ y }}</div>\r\n </span>\r\n </div>\r\n </ng-container>\r\n <div class=\"cax-timepicker\" *ngIf=\"(showTime || timeOnly) && currentView === 'date'\">\r\n <div class=\"cax-hour-picker\">\r\n <button\r\n class=\"cax-link\"\r\n type=\"button\"\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n (keydown.enter)=\"incrementHour($event)\"\r\n (keydown.space)=\"incrementHour($event)\"\r\n (mousedown)=\"onTimePickerElementMouseDown($event, 0, 1)\"\r\n (mouseup)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.enter)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.space)=\"onTimePickerElementMouseUp($event)\"\r\n (mouseleave)=\"onTimePickerElementMouseLeave()\"\r\n [attr.aria-label]=\"getTranslation('nextHour')\"\r\n pRipple\r\n >\r\n <ChevronUpIcon *ngIf=\"!incrementIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"incrementIconTemplate\"></ng-template>\r\n </button>\r\n <span><ng-container *ngIf=\"currentHour < 10\">0</ng-container>{{ currentHour }}</span>\r\n <button\r\n class=\"cax-link\"\r\n type=\"button\"\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n (keydown.enter)=\"decrementHour($event)\"\r\n (keydown.space)=\"decrementHour($event)\"\r\n (mousedown)=\"onTimePickerElementMouseDown($event, 0, -1)\"\r\n (mouseup)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.enter)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.space)=\"onTimePickerElementMouseUp($event)\"\r\n (mouseleave)=\"onTimePickerElementMouseLeave()\"\r\n [attr.aria-label]=\"getTranslation('prevHour')\"\r\n pRipple\r\n >\r\n <ChevronDownIcon *ngIf=\"!decrementIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"decrementIconTemplate\"></ng-template>\r\n </button>\r\n </div>\r\n <div class=\"cax-separator\">\r\n <span>{{ timeSeparator }}</span>\r\n </div>\r\n <div class=\"cax-minute-picker\">\r\n <button\r\n class=\"cax-link\"\r\n type=\"button\"\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n (keydown.enter)=\"incrementMinute($event)\"\r\n (keydown.space)=\"incrementMinute($event)\"\r\n (mousedown)=\"onTimePickerElementMouseDown($event, 1, 1)\"\r\n (mouseup)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.enter)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.space)=\"onTimePickerElementMouseUp($event)\"\r\n (mouseleave)=\"onTimePickerElementMouseLeave()\"\r\n [attr.aria-label]=\"getTranslation('nextMinute')\"\r\n pRipple\r\n >\r\n <ChevronUpIcon *ngIf=\"!incrementIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"incrementIconTemplate\"></ng-template>\r\n </button>\r\n <span><ng-container *ngIf=\"currentMinute < 10\">0</ng-container>{{ currentMinute }}</span>\r\n <button\r\n class=\"cax-link\"\r\n type=\"button\"\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n (keydown.enter)=\"decrementMinute($event)\"\r\n (keydown.space)=\"decrementMinute($event)\"\r\n (mousedown)=\"onTimePickerElementMouseDown($event, 1, -1)\"\r\n (mouseup)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.enter)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.space)=\"onTimePickerElementMouseUp($event)\"\r\n (mouseleave)=\"onTimePickerElementMouseLeave()\"\r\n [attr.aria-label]=\"getTranslation('prevMinute')\"\r\n pRipple\r\n >\r\n <ChevronDownIcon *ngIf=\"!decrementIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"decrementIconTemplate\"></ng-template>\r\n </button>\r\n </div>\r\n <div class=\"cax-separator\" *ngIf=\"showSeconds\">\r\n <span>{{ timeSeparator }}</span>\r\n </div>\r\n <div class=\"cax-second-picker\" *ngIf=\"showSeconds\">\r\n <button\r\n class=\"cax-link\"\r\n type=\"button\"\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n (keydown.enter)=\"incrementSecond($event)\"\r\n (keydown.space)=\"incrementSecond($event)\"\r\n (mousedown)=\"onTimePickerElementMouseDown($event, 2, 1)\"\r\n (mouseup)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.enter)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.space)=\"onTimePickerElementMouseUp($event)\"\r\n (mouseleave)=\"onTimePickerElementMouseLeave()\"\r\n [attr.aria-label]=\"getTranslation('nextSecond')\"\r\n pRipple\r\n >\r\n <ChevronUpIcon *ngIf=\"!incrementIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"incrementIconTemplate\"></ng-template>\r\n </button>\r\n <span><ng-container *ngIf=\"currentSecond < 10\">0</ng-container>{{ currentSecond }}</span>\r\n <button\r\n class=\"cax-link\"\r\n type=\"button\"\r\n (keydown)=\"onContainerButtonKeydown($event)\"\r\n (keydown.enter)=\"decrementSecond($event)\"\r\n (keydown.space)=\"decrementSecond($event)\"\r\n (mousedown)=\"onTimePickerElementMouseDown($event, 2, -1)\"\r\n (mouseup)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.enter)=\"onTimePickerElementMouseUp($event)\"\r\n (keyup.space)=\"onTimePickerElementMouseUp($event)\"\r\n (mouseleave)=\"onTimePickerElementMouseLeave()\"\r\n [attr.aria-label]=\"getTranslation('prevSecond')\"\r\n pRipple\r\n >\r\n <ChevronDownIcon *ngIf=\"!decrementIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"decrementIconTemplate\"></ng-template>\r\n </button>\r\n </div>\r\n <div class=\"cax-ampm-picker\" *ngIf=\"hourFormat == '12'\">\r\n <button class=\"cax-link\" type=\"button\" (keydown)=\"onContainerButtonKeydown($event)\" (click)=\"toggleAMPM($event)\" (keydown.enter)=\"toggleAMPM($event)\" [attr.aria-label]=\"getTranslation('am')\" pRipple>\r\n <ChevronUpIcon *ngIf=\"!incrementIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"incrementIconTemplate\"></ng-template>\r\n </button>\r\n <span>{{ pm ? 'PM' : 'AM' }}</span>\r\n <button class=\"cax-link\" type=\"button\" (keydown)=\"onContainerButtonKeydown($event)\" (click)=\"toggleAMPM($event)\" (keydown.enter)=\"toggleAMPM($event)\" [attr.aria-label]=\"getTranslation('pm')\" pRipple>\r\n <ChevronDownIcon *ngIf=\"!decrementIconTemplate\" />\r\n <ng-template *ngTemplateOutlet=\"decrementIconTemplate\"></ng-template>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"cax-datepicker-buttonbar\" *ngIf=\"showButtonBar\">\r\n <button type=\"button\" [label]=\"getTranslation('today')\" (keydown)=\"onContainerButtonKeydown($event)\" (click)=\"onTodayButtonClick($event)\" pButton pRipple [ngClass]=\"[todayButtonStyleClass]\"></button>\r\n <button type=\"button\" [label]=\"getTranslation('clear')\" (keydown)=\"onContainerButtonKeydown($event)\" (click)=\"onClearButtonClick($event)\" pButton pRipple [ngClass]=\"[clearButtonStyleClass]\"></button>\r\n </div>\r\n <ng-content select=\"cax-footer\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\r\n </div>\r\n</span>\r\n", styles: ["@layer cax{.cax-calendar{position:relative;display:inline-flex;max-width:100%}.cax-calendar .cax-inputtext{flex:1 1 auto;width:1%;text-overflow:ellipsis}.cax-calendar-w-btn .cax-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.cax-calendar-w-btn .cax-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.cax-fluid .cax-calendar{display:flex}.cax-fluid .cax-calendar .cax-inputtext{width:1%}.cax-calendar .cax-datepicker{min-width:100%}.cax-datepicker{width:auto;position:absolute;top:0;left:0}.cax-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.cax-datepicker-header{display:flex;align-items:center;justify-content:space-between}.cax-datepicker-header .cax-datepicker-title{margin:0 auto}.cax-datepicker-prev,.cax-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.cax-datepicker-multiple-month .cax-datepicker-group-container .cax-datepicker-group{flex:1 1 auto}.cax-datepicker-multiple-month .cax-datepicker-group-container{display:flex}.cax-datepicker table{width:100%;border-collapse:collapse}.cax-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.cax-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.cax-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.cax-timepicker{display:flex;justify-content:center;align-items:center}.cax-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.cax-timepicker>div{display:flex;align-items:center;flex-direction:column}.cax-datepicker-touch-ui,.cax-calendar .cax-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.cax-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.cax-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.cax-datepicker-icon{pointer-events:none}.cax-calendar-clearable{position:relative}}\n"] }]
|
|
2987
|
+
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
2988
|
+
type: Inject,
|
|
2989
|
+
args: [DOCUMENT]
|
|
2990
|
+
}] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1.caxConfig }, { type: i1.OverlayService }], propDecorators: { iconDisplay: [{
|
|
2991
|
+
type: Input
|
|
2992
|
+
}], style: [{
|
|
2993
|
+
type: Input
|
|
2994
|
+
}], styleClass: [{
|
|
2995
|
+
type: Input
|
|
2996
|
+
}], inputStyle: [{
|
|
2997
|
+
type: Input
|
|
2998
|
+
}], inputId: [{
|
|
2999
|
+
type: Input
|
|
3000
|
+
}], name: [{
|
|
3001
|
+
type: Input
|
|
3002
|
+
}], inputStyleClass: [{
|
|
3003
|
+
type: Input
|
|
3004
|
+
}], placeholder: [{
|
|
3005
|
+
type: Input
|
|
3006
|
+
}], ariaLabelledBy: [{
|
|
3007
|
+
type: Input
|
|
3008
|
+
}], ariaLabel: [{
|
|
3009
|
+
type: Input
|
|
3010
|
+
}], iconAriaLabel: [{
|
|
3011
|
+
type: Input
|
|
3012
|
+
}], disabled: [{
|
|
3013
|
+
type: Input,
|
|
3014
|
+
args: [{ transform: booleanAttribute }]
|
|
3015
|
+
}], dateFormat: [{
|
|
3016
|
+
type: Input
|
|
3017
|
+
}], multipleSeparator: [{
|
|
3018
|
+
type: Input
|
|
3019
|
+
}], rangeSeparator: [{
|
|
3020
|
+
type: Input
|
|
3021
|
+
}], inline: [{
|
|
3022
|
+
type: Input,
|
|
3023
|
+
args: [{ transform: booleanAttribute }]
|
|
3024
|
+
}], showOtherMonths: [{
|
|
3025
|
+
type: Input,
|
|
3026
|
+
args: [{ transform: booleanAttribute }]
|
|
3027
|
+
}], selectOtherMonths: [{
|
|
3028
|
+
type: Input,
|
|
3029
|
+
args: [{ transform: booleanAttribute }]
|
|
3030
|
+
}], showIcon: [{
|
|
3031
|
+
type: Input,
|
|
3032
|
+
args: [{ transform: booleanAttribute }]
|
|
3033
|
+
}], icon: [{
|
|
3034
|
+
type: Input
|
|
3035
|
+
}], appendTo: [{
|
|
3036
|
+
type: Input
|
|
3037
|
+
}], readonlyInput: [{
|
|
3038
|
+
type: Input,
|
|
3039
|
+
args: [{ transform: booleanAttribute }]
|
|
3040
|
+
}], shortYearCutoff: [{
|
|
3041
|
+
type: Input
|
|
3042
|
+
}], monthNavigator: [{
|
|
3043
|
+
type: Input,
|
|
3044
|
+
args: [{ transform: booleanAttribute }]
|
|
3045
|
+
}], yearNavigator: [{
|
|
3046
|
+
type: Input,
|
|
3047
|
+
args: [{ transform: booleanAttribute }]
|
|
3048
|
+
}], hourFormat: [{
|
|
3049
|
+
type: Input
|
|
3050
|
+
}], timeOnly: [{
|
|
3051
|
+
type: Input,
|
|
3052
|
+
args: [{ transform: booleanAttribute }]
|
|
3053
|
+
}], stepYearPicker: [{
|
|
3054
|
+
type: Input,
|
|
3055
|
+
args: [{ transform: numberAttribute }]
|
|
3056
|
+
}], stepHour: [{
|
|
3057
|
+
type: Input,
|
|
3058
|
+
args: [{ transform: numberAttribute }]
|
|
3059
|
+
}], stepMinute: [{
|
|
3060
|
+
type: Input,
|
|
3061
|
+
args: [{ transform: numberAttribute }]
|
|
3062
|
+
}], stepSecond: [{
|
|
3063
|
+
type: Input,
|
|
3064
|
+
args: [{ transform: numberAttribute }]
|
|
3065
|
+
}], showSeconds: [{
|
|
3066
|
+
type: Input,
|
|
3067
|
+
args: [{ transform: booleanAttribute }]
|
|
3068
|
+
}], required: [{
|
|
3069
|
+
type: Input,
|
|
3070
|
+
args: [{ transform: booleanAttribute }]
|
|
3071
|
+
}], showOnFocus: [{
|
|
3072
|
+
type: Input,
|
|
3073
|
+
args: [{ transform: booleanAttribute }]
|
|
3074
|
+
}], showWeek: [{
|
|
3075
|
+
type: Input,
|
|
3076
|
+
args: [{ transform: booleanAttribute }]
|
|
3077
|
+
}], startWeekFromFirstDayOfYear: [{
|
|
3078
|
+
type: Input
|
|
3079
|
+
}], showClear: [{
|
|
3080
|
+
type: Input,
|
|
3081
|
+
args: [{ transform: booleanAttribute }]
|
|
3082
|
+
}], dataType: [{
|
|
3083
|
+
type: Input
|
|
3084
|
+
}], selectionMode: [{
|
|
3085
|
+
type: Input
|
|
3086
|
+
}], maxDateCount: [{
|
|
3087
|
+
type: Input,
|
|
3088
|
+
args: [{ transform: numberAttribute }]
|
|
3089
|
+
}], showButtonBar: [{
|
|
3090
|
+
type: Input,
|
|
3091
|
+
args: [{ transform: booleanAttribute }]
|
|
3092
|
+
}], todayButtonStyleClass: [{
|
|
3093
|
+
type: Input
|
|
3094
|
+
}], clearButtonStyleClass: [{
|
|
3095
|
+
type: Input
|
|
3096
|
+
}], autofocus: [{
|
|
3097
|
+
type: Input,
|
|
3098
|
+
args: [{ transform: booleanAttribute }]
|
|
3099
|
+
}], autoZIndex: [{
|
|
3100
|
+
type: Input,
|
|
3101
|
+
args: [{ transform: booleanAttribute }]
|
|
3102
|
+
}], baseZIndex: [{
|
|
3103
|
+
type: Input,
|
|
3104
|
+
args: [{ transform: numberAttribute }]
|
|
3105
|
+
}], panelStyleClass: [{
|
|
3106
|
+
type: Input
|
|
3107
|
+
}], panelStyle: [{
|
|
3108
|
+
type: Input
|
|
3109
|
+
}], keepInvalid: [{
|
|
3110
|
+
type: Input,
|
|
3111
|
+
args: [{ transform: booleanAttribute }]
|
|
3112
|
+
}], hideOnDateTimeSelect: [{
|
|
3113
|
+
type: Input,
|
|
3114
|
+
args: [{ transform: booleanAttribute }]
|
|
3115
|
+
}], touchUI: [{
|
|
3116
|
+
type: Input,
|
|
3117
|
+
args: [{ transform: booleanAttribute }]
|
|
3118
|
+
}], timeSeparator: [{
|
|
3119
|
+
type: Input
|
|
3120
|
+
}], focusTrap: [{
|
|
3121
|
+
type: Input,
|
|
3122
|
+
args: [{ transform: booleanAttribute }]
|
|
3123
|
+
}], showTransitionOptions: [{
|
|
3124
|
+
type: Input
|
|
3125
|
+
}], hideTransitionOptions: [{
|
|
3126
|
+
type: Input
|
|
3127
|
+
}], tabindex: [{
|
|
3128
|
+
type: Input,
|
|
3129
|
+
args: [{ transform: numberAttribute }]
|
|
3130
|
+
}], variant: [{
|
|
3131
|
+
type: Input
|
|
3132
|
+
}], minDate: [{
|
|
3133
|
+
type: Input
|
|
3134
|
+
}], maxDate: [{
|
|
3135
|
+
type: Input
|
|
3136
|
+
}], disabledDates: [{
|
|
3137
|
+
type: Input
|
|
3138
|
+
}], disabledDays: [{
|
|
3139
|
+
type: Input
|
|
3140
|
+
}], yearRange: [{
|
|
3141
|
+
type: Input
|
|
3142
|
+
}], showTime: [{
|
|
3143
|
+
type: Input
|
|
3144
|
+
}], responsiveOptions: [{
|
|
3145
|
+
type: Input
|
|
3146
|
+
}], numberOfMonths: [{
|
|
3147
|
+
type: Input
|
|
3148
|
+
}], firstDayOfWeek: [{
|
|
3149
|
+
type: Input
|
|
3150
|
+
}], locale: [{
|
|
3151
|
+
type: Input
|
|
3152
|
+
}], view: [{
|
|
3153
|
+
type: Input
|
|
3154
|
+
}], defaultDate: [{
|
|
3155
|
+
type: Input
|
|
3156
|
+
}], onFocus: [{
|
|
3157
|
+
type: Output
|
|
3158
|
+
}], onBlur: [{
|
|
3159
|
+
type: Output
|
|
3160
|
+
}], onClose: [{
|
|
3161
|
+
type: Output
|
|
3162
|
+
}], onSelect: [{
|
|
3163
|
+
type: Output
|
|
3164
|
+
}], onClear: [{
|
|
3165
|
+
type: Output
|
|
3166
|
+
}], onInput: [{
|
|
3167
|
+
type: Output
|
|
3168
|
+
}], onTodayClick: [{
|
|
3169
|
+
type: Output
|
|
3170
|
+
}], onClearClick: [{
|
|
3171
|
+
type: Output
|
|
3172
|
+
}], onMonthChange: [{
|
|
3173
|
+
type: Output
|
|
3174
|
+
}], onYearChange: [{
|
|
3175
|
+
type: Output
|
|
3176
|
+
}], onClickOutside: [{
|
|
3177
|
+
type: Output
|
|
3178
|
+
}], onShow: [{
|
|
3179
|
+
type: Output
|
|
3180
|
+
}], templates: [{
|
|
3181
|
+
type: ContentChildren,
|
|
3182
|
+
args: [CaxTemplate]
|
|
3183
|
+
}], containerViewChild: [{
|
|
3184
|
+
type: ViewChild,
|
|
3185
|
+
args: ['container', { static: false }]
|
|
3186
|
+
}], inputfieldViewChild: [{
|
|
3187
|
+
type: ViewChild,
|
|
3188
|
+
args: ['inputfield', { static: false }]
|
|
3189
|
+
}], content: [{
|
|
3190
|
+
type: ViewChild,
|
|
3191
|
+
args: ['contentWrapper', { static: false }]
|
|
3192
|
+
}] } });
|
|
3193
|
+
|
|
3194
|
+
class CalendarModule {
|
|
3195
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3196
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: CalendarModule, imports: [Calendar, ButtonModule, SharedModule], exports: [Calendar, ButtonModule, SharedModule] });
|
|
3197
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CalendarModule, imports: [Calendar, ButtonModule, SharedModule, ButtonModule, SharedModule] });
|
|
3198
|
+
}
|
|
3199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CalendarModule, decorators: [{
|
|
3200
|
+
type: NgModule,
|
|
3201
|
+
args: [{
|
|
3202
|
+
imports: [Calendar, ButtonModule, SharedModule],
|
|
3203
|
+
exports: [Calendar, ButtonModule, SharedModule]
|
|
3204
|
+
}]
|
|
3205
|
+
}] });
|
|
3206
|
+
|
|
3207
|
+
/**
|
|
3208
|
+
* Generated bundle index. Do not edit.
|
|
3209
|
+
*/
|
|
3210
|
+
|
|
3211
|
+
export { CALENDAR_VALUE_ACCESSOR, Calendar, CalendarModule };
|
|
3212
|
+
//# sourceMappingURL=cax-design-system-calendar.mjs.map
|