pdm-ui-kit 0.4.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.module.d.ts +8 -0
- package/alert/alert.module.d.ts +9 -0
- package/aspect-ratio/aspect-ratio.module.d.ts +8 -0
- package/avatar/avatar.module.d.ts +8 -0
- package/badge/badge.module.d.ts +8 -0
- package/breadcrumb/breadcrumb.module.d.ts +8 -0
- package/button/button.module.d.ts +9 -0
- package/calendar/calendar.module.d.ts +11 -0
- package/{lib/components/date-picker → calendar}/date-picker.component.d.ts +2 -2
- package/card/card.module.d.ts +8 -0
- package/carousel/carousel.module.d.ts +8 -0
- package/chart/chart.module.d.ts +8 -0
- package/checkbox/checkbox.module.d.ts +8 -0
- package/collapsible/collapsible.module.d.ts +8 -0
- package/combobox/combobox.module.d.ts +9 -0
- package/{lib/components/command → command}/command.component.d.ts +1 -1
- package/command/command.module.d.ts +9 -0
- package/{lib/components/context-menu → context-menu}/context-menu.component.d.ts +1 -1
- package/context-menu/context-menu.module.d.ts +9 -0
- package/{lib/components/data-table → data-table}/data-table.component.d.ts +1 -1
- package/data-table/data-table.module.d.ts +10 -0
- package/{lib/components/draggable-table → data-table}/draggable-table.component.d.ts +2 -2
- package/{lib/components/table → data-table}/table.component.d.ts +1 -1
- package/dialog/dialog.module.d.ts +8 -0
- package/drawer/drawer.module.d.ts +10 -0
- package/{lib/components/dropdown-menu → dropdown-menu}/dropdown-menu.component.d.ts +1 -1
- package/dropdown-menu/dropdown-menu.module.d.ts +9 -0
- package/empty/empty.module.d.ts +10 -0
- package/esm2020/{lib/components/accordion → accordion}/accordion.component.mjs +1 -1
- package/esm2020/accordion/accordion.module.mjs +21 -0
- package/esm2020/{lib/components/alert-dialog → alert}/alert-dialog.component.mjs +1 -1
- package/esm2020/{lib/components/alert → alert}/alert.component.mjs +1 -1
- package/esm2020/alert/alert.module.mjs +25 -0
- package/esm2020/{lib/components/aspect-ratio → aspect-ratio}/aspect-ratio.component.mjs +1 -1
- package/esm2020/aspect-ratio/aspect-ratio.module.mjs +21 -0
- package/esm2020/{lib/components/avatar → avatar}/avatar.component.mjs +1 -1
- package/esm2020/avatar/avatar.module.mjs +21 -0
- package/esm2020/{lib/components/badge → badge}/badge.component.mjs +1 -1
- package/esm2020/badge/badge.module.mjs +21 -0
- package/esm2020/{lib/components/breadcrumb → breadcrumb}/breadcrumb.component.mjs +1 -1
- package/esm2020/breadcrumb/breadcrumb.module.mjs +21 -0
- package/esm2020/button/button-group.component.mjs +236 -0
- package/esm2020/button/button.component.mjs +114 -0
- package/esm2020/button/button.module.mjs +25 -0
- package/esm2020/calendar/calendar.component.mjs +529 -0
- package/esm2020/calendar/calendar.module.mjs +22 -0
- package/esm2020/{lib/components/date-picker → calendar}/date-picker.component.mjs +6 -6
- package/esm2020/{lib/components/card → card}/card.component.mjs +1 -1
- package/esm2020/card/card.module.mjs +21 -0
- package/esm2020/carousel/carousel.component.mjs +102 -0
- package/esm2020/carousel/carousel.module.mjs +21 -0
- package/esm2020/{lib/components/chart → chart}/chart.component.mjs +1 -1
- package/esm2020/chart/chart.module.mjs +21 -0
- package/esm2020/{lib/components/checkbox → checkbox}/checkbox.component.mjs +1 -1
- package/esm2020/checkbox/checkbox.module.mjs +21 -0
- package/esm2020/{lib/components/collapsible → collapsible}/collapsible.component.mjs +1 -1
- package/esm2020/collapsible/collapsible.module.mjs +21 -0
- package/esm2020/{lib/components/combobox → combobox}/combobox.component.mjs +2 -2
- package/esm2020/combobox/combobox.module.mjs +22 -0
- package/esm2020/command/command.component.mjs +75 -0
- package/esm2020/command/command.module.mjs +20 -0
- package/esm2020/context-menu/context-menu.component.mjs +165 -0
- package/esm2020/context-menu/context-menu.module.mjs +22 -0
- package/esm2020/data-table/data-table.component.mjs +299 -0
- package/esm2020/data-table/data-table.module.mjs +29 -0
- package/esm2020/data-table/draggable-table.component.mjs +300 -0
- package/esm2020/data-table/table.component.mjs +182 -0
- package/esm2020/dialog/dialog.component.mjs +265 -0
- package/esm2020/dialog/dialog.module.mjs +21 -0
- package/esm2020/drawer/drawer.component.mjs +217 -0
- package/esm2020/drawer/drawer.module.mjs +21 -0
- package/esm2020/drawer/sheet.component.mjs +116 -0
- package/esm2020/dropdown-menu/dropdown-menu.component.mjs +192 -0
- package/esm2020/dropdown-menu/dropdown-menu.module.mjs +22 -0
- package/esm2020/{lib/components/empty → empty}/empty.component.mjs +3 -3
- package/esm2020/empty/empty.module.mjs +21 -0
- package/esm2020/{lib/components/field → field}/field.component.mjs +1 -1
- package/esm2020/field/field.module.mjs +21 -0
- package/esm2020/{lib/components/hover-card → hover-card}/hover-card.component.mjs +2 -2
- package/esm2020/hover-card/hover-card.module.mjs +22 -0
- package/esm2020/icon/icon.component.mjs +144 -0
- package/esm2020/icon/icon.module.mjs +21 -0
- package/esm2020/input/input-group.component.mjs +63 -0
- package/esm2020/input/input-otp.component.mjs +144 -0
- package/esm2020/{lib/components/input-password → input}/input-password.component.mjs +1 -1
- package/esm2020/{lib/components/input → input}/input.component.mjs +1 -1
- package/esm2020/input/input.module.mjs +38 -0
- package/esm2020/{lib/components/textarea → input}/textarea.component.mjs +1 -1
- package/esm2020/{lib/components/item → item}/item.component.mjs +1 -1
- package/esm2020/item/item.module.mjs +21 -0
- package/esm2020/{lib/components/kbd → kbd}/kbd.component.mjs +1 -1
- package/esm2020/kbd/kbd.module.mjs +21 -0
- package/esm2020/{lib/components/label → label}/label.component.mjs +1 -1
- package/esm2020/label/label.module.mjs +21 -0
- package/esm2020/menubar/menubar.component.mjs +144 -0
- package/esm2020/menubar/menubar.module.mjs +22 -0
- package/esm2020/{lib/components/native-select → native-select}/native-select.component.mjs +2 -2
- package/esm2020/native-select/native-select.module.mjs +20 -0
- package/esm2020/{lib/components/navigation-menu → navigation-menu}/navigation-menu.component.mjs +1 -1
- package/esm2020/navigation-menu/navigation-menu.module.mjs +21 -0
- package/esm2020/overlay/create-flexible-position-strategy.mjs +54 -0
- package/esm2020/overlay/pdm-outside-click.directive.mjs +86 -0
- package/esm2020/overlay/pdm-outside-click.module.mjs +18 -0
- package/esm2020/overlay/pdm-overlay-options.mjs +2 -0
- package/esm2020/overlay/z-index-helper.mjs +69 -0
- package/esm2020/pagination/pagination.component.mjs +72 -0
- package/esm2020/pagination/pagination.module.mjs +21 -0
- package/esm2020/pdm-ui-kit.module.mjs +260 -0
- package/esm2020/{lib/components/popover → popover}/popover.component.mjs +2 -2
- package/esm2020/popover/popover.module.mjs +22 -0
- package/esm2020/{lib/components/progress → progress}/progress.component.mjs +1 -1
- package/esm2020/progress/progress.module.mjs +21 -0
- package/esm2020/public-api.mjs +117 -67
- package/esm2020/{lib/components/radio-group → radio-group}/radio-group.component.mjs +1 -1
- package/esm2020/radio-group/radio-group.module.mjs +21 -0
- package/esm2020/{lib/components/scroll-area → scroll-area}/scroll-area.component.mjs +1 -1
- package/esm2020/scroll-area/scroll-area.module.mjs +21 -0
- package/esm2020/select/select-option.directive.mjs +55 -0
- package/esm2020/select/select.component.mjs +164 -0
- package/esm2020/select/select.module.mjs +22 -0
- package/esm2020/{lib/components/separator → separator}/separator.component.mjs +1 -1
- package/esm2020/separator/separator.module.mjs +21 -0
- package/esm2020/{lib/components/sidebar → sidebar}/sidebar.component.mjs +1 -1
- package/esm2020/sidebar/sidebar.module.mjs +21 -0
- package/esm2020/{lib/components/skeleton → skeleton}/skeleton.component.mjs +1 -1
- package/esm2020/skeleton/skeleton.module.mjs +21 -0
- package/esm2020/{lib/components/slider → slider}/slider.component.mjs +1 -1
- package/esm2020/slider/slider.module.mjs +21 -0
- package/esm2020/{lib/components/sonner → sonner}/sonner.component.mjs +2 -2
- package/esm2020/sonner/sonner.module.mjs +20 -0
- package/esm2020/{lib/components/spinner → spinner}/spinner.component.mjs +1 -1
- package/esm2020/spinner/spinner.module.mjs +21 -0
- package/esm2020/src/accordion/accordion.component.mjs +42 -0
- package/esm2020/src/accordion/accordion.module.mjs +21 -0
- package/esm2020/src/accordion/pdm-ui-kit-src-accordion.mjs +5 -0
- package/esm2020/src/accordion/public-api.mjs +3 -0
- package/esm2020/src/alert/alert-dialog.component.mjs +87 -0
- package/esm2020/src/alert/alert.component.mjs +35 -0
- package/esm2020/src/alert/alert.module.mjs +25 -0
- package/esm2020/src/alert/pdm-ui-kit-src-alert.mjs +5 -0
- package/esm2020/src/alert/public-api.mjs +4 -0
- package/esm2020/src/aspect-ratio/aspect-ratio.component.mjs +31 -0
- package/esm2020/src/aspect-ratio/aspect-ratio.module.mjs +21 -0
- package/esm2020/src/aspect-ratio/pdm-ui-kit-src-aspect-ratio.mjs +5 -0
- package/esm2020/src/aspect-ratio/public-api.mjs +3 -0
- package/esm2020/src/avatar/avatar.component.mjs +46 -0
- package/esm2020/src/avatar/avatar.module.mjs +21 -0
- package/esm2020/src/avatar/pdm-ui-kit-src-avatar.mjs +5 -0
- package/esm2020/src/avatar/public-api.mjs +3 -0
- package/esm2020/src/badge/badge.component.mjs +23 -0
- package/esm2020/src/badge/badge.module.mjs +21 -0
- package/esm2020/src/badge/pdm-ui-kit-src-badge.mjs +5 -0
- package/esm2020/src/badge/public-api.mjs +3 -0
- package/esm2020/src/breadcrumb/breadcrumb.component.mjs +62 -0
- package/esm2020/src/breadcrumb/breadcrumb.module.mjs +21 -0
- package/esm2020/src/breadcrumb/pdm-ui-kit-src-breadcrumb.mjs +5 -0
- package/esm2020/src/breadcrumb/public-api.mjs +3 -0
- package/esm2020/{lib/components/button-group → src/button}/button-group.component.mjs +1 -1
- package/esm2020/src/button/button.component.mjs +114 -0
- package/esm2020/src/button/button.module.mjs +25 -0
- package/esm2020/src/button/pdm-ui-kit-src-button.mjs +5 -0
- package/esm2020/src/button/public-api.mjs +4 -0
- package/esm2020/src/calendar/calendar.component.mjs +529 -0
- package/esm2020/src/calendar/calendar.module.mjs +22 -0
- package/esm2020/src/calendar/date-picker.component.mjs +362 -0
- package/esm2020/src/calendar/pdm-ui-kit-src-calendar.mjs +5 -0
- package/esm2020/src/calendar/public-api.mjs +4 -0
- package/esm2020/src/card/card.component.mjs +48 -0
- package/esm2020/src/card/card.module.mjs +21 -0
- package/esm2020/src/card/pdm-ui-kit-src-card.mjs +5 -0
- package/esm2020/src/card/public-api.mjs +3 -0
- package/esm2020/src/carousel/carousel.component.mjs +102 -0
- package/esm2020/src/carousel/carousel.module.mjs +21 -0
- package/esm2020/src/carousel/pdm-ui-kit-src-carousel.mjs +5 -0
- package/esm2020/src/carousel/public-api.mjs +3 -0
- package/esm2020/src/chart/chart.component.mjs +177 -0
- package/esm2020/src/chart/chart.module.mjs +21 -0
- package/esm2020/src/chart/pdm-ui-kit-src-chart.mjs +5 -0
- package/esm2020/src/chart/public-api.mjs +3 -0
- package/esm2020/src/checkbox/checkbox.component.mjs +47 -0
- package/esm2020/src/checkbox/checkbox.module.mjs +21 -0
- package/esm2020/src/checkbox/pdm-ui-kit-src-checkbox.mjs +5 -0
- package/esm2020/src/checkbox/public-api.mjs +3 -0
- package/esm2020/src/collapsible/collapsible.component.mjs +43 -0
- package/esm2020/src/collapsible/collapsible.module.mjs +21 -0
- package/esm2020/src/collapsible/pdm-ui-kit-src-collapsible.mjs +5 -0
- package/esm2020/src/collapsible/public-api.mjs +3 -0
- package/esm2020/src/combobox/combobox.component.mjs +173 -0
- package/esm2020/src/combobox/combobox.module.mjs +22 -0
- package/esm2020/src/combobox/pdm-ui-kit-src-combobox.mjs +5 -0
- package/esm2020/src/combobox/public-api.mjs +3 -0
- package/esm2020/src/command/command.component.mjs +75 -0
- package/esm2020/src/command/command.module.mjs +20 -0
- package/esm2020/src/command/pdm-ui-kit-src-command.mjs +5 -0
- package/esm2020/src/command/public-api.mjs +3 -0
- package/esm2020/src/context-menu/context-menu.component.mjs +165 -0
- package/esm2020/src/context-menu/context-menu.module.mjs +22 -0
- package/esm2020/src/context-menu/pdm-ui-kit-src-context-menu.mjs +5 -0
- package/esm2020/src/context-menu/public-api.mjs +3 -0
- package/esm2020/src/data-table/data-table.component.mjs +299 -0
- package/esm2020/src/data-table/data-table.module.mjs +29 -0
- package/esm2020/src/data-table/draggable-table.component.mjs +300 -0
- package/esm2020/src/data-table/pdm-ui-kit-src-data-table.mjs +5 -0
- package/esm2020/src/data-table/public-api.mjs +5 -0
- package/esm2020/src/data-table/table.component.mjs +182 -0
- package/esm2020/src/dialog/dialog.component.mjs +265 -0
- package/esm2020/src/dialog/dialog.module.mjs +21 -0
- package/esm2020/src/dialog/pdm-ui-kit-src-dialog.mjs +5 -0
- package/esm2020/src/dialog/public-api.mjs +3 -0
- package/esm2020/src/drawer/drawer.component.mjs +217 -0
- package/esm2020/src/drawer/drawer.module.mjs +21 -0
- package/esm2020/src/drawer/pdm-ui-kit-src-drawer.mjs +5 -0
- package/esm2020/src/drawer/public-api.mjs +4 -0
- package/esm2020/src/drawer/sheet.component.mjs +116 -0
- package/esm2020/src/dropdown-menu/dropdown-menu.component.mjs +192 -0
- package/esm2020/src/dropdown-menu/dropdown-menu.module.mjs +22 -0
- package/esm2020/src/dropdown-menu/pdm-ui-kit-src-dropdown-menu.mjs +5 -0
- package/esm2020/src/dropdown-menu/public-api.mjs +3 -0
- package/esm2020/src/empty/empty.component.mjs +58 -0
- package/esm2020/src/empty/empty.module.mjs +21 -0
- package/esm2020/src/empty/pdm-ui-kit-src-empty.mjs +5 -0
- package/esm2020/src/empty/public-api.mjs +3 -0
- package/esm2020/src/field/field.component.mjs +64 -0
- package/esm2020/src/field/field.module.mjs +21 -0
- package/esm2020/src/field/pdm-ui-kit-src-field.mjs +5 -0
- package/esm2020/src/field/public-api.mjs +3 -0
- package/esm2020/src/hover-card/hover-card.component.mjs +205 -0
- package/esm2020/src/hover-card/hover-card.module.mjs +22 -0
- package/esm2020/src/hover-card/pdm-ui-kit-src-hover-card.mjs +5 -0
- package/esm2020/src/hover-card/public-api.mjs +3 -0
- package/esm2020/src/icon/icon.component.mjs +144 -0
- package/esm2020/src/icon/icon.module.mjs +21 -0
- package/esm2020/src/icon/pdm-ui-kit-src-icon.mjs +5 -0
- package/esm2020/src/icon/public-api.mjs +3 -0
- package/esm2020/{lib/components/input-group → src/input}/input-group.component.mjs +2 -2
- package/esm2020/src/input/input-otp.component.mjs +144 -0
- package/esm2020/src/input/input-password.component.mjs +78 -0
- package/esm2020/src/input/input.component.mjs +71 -0
- package/esm2020/src/input/input.module.mjs +38 -0
- package/esm2020/src/input/pdm-ui-kit-src-input.mjs +5 -0
- package/esm2020/src/input/public-api.mjs +7 -0
- package/esm2020/src/input/textarea.component.mjs +59 -0
- package/esm2020/src/item/item.component.mjs +23 -0
- package/esm2020/src/item/item.module.mjs +21 -0
- package/esm2020/src/item/pdm-ui-kit-src-item.mjs +5 -0
- package/esm2020/src/item/public-api.mjs +3 -0
- package/esm2020/src/kbd/kbd.component.mjs +17 -0
- package/esm2020/src/kbd/kbd.module.mjs +21 -0
- package/esm2020/src/kbd/pdm-ui-kit-src-kbd.mjs +5 -0
- package/esm2020/src/kbd/public-api.mjs +3 -0
- package/esm2020/src/label/label.component.mjs +23 -0
- package/esm2020/src/label/label.module.mjs +21 -0
- package/esm2020/src/label/pdm-ui-kit-src-label.mjs +5 -0
- package/esm2020/src/label/public-api.mjs +3 -0
- package/esm2020/src/menubar/menubar.component.mjs +144 -0
- package/esm2020/src/menubar/menubar.module.mjs +22 -0
- package/esm2020/src/menubar/pdm-ui-kit-src-menubar.mjs +5 -0
- package/esm2020/src/menubar/public-api.mjs +3 -0
- package/esm2020/src/native-select/native-select.component.mjs +42 -0
- package/esm2020/src/native-select/native-select.module.mjs +20 -0
- package/esm2020/src/native-select/pdm-ui-kit-src-native-select.mjs +5 -0
- package/esm2020/src/native-select/public-api.mjs +3 -0
- package/esm2020/src/navigation-menu/navigation-menu.component.mjs +42 -0
- package/esm2020/src/navigation-menu/navigation-menu.module.mjs +21 -0
- package/esm2020/src/navigation-menu/pdm-ui-kit-src-navigation-menu.mjs +5 -0
- package/esm2020/src/navigation-menu/public-api.mjs +3 -0
- package/esm2020/src/overlay/create-flexible-position-strategy.mjs +54 -0
- package/esm2020/src/overlay/pdm-outside-click.directive.mjs +86 -0
- package/esm2020/src/overlay/pdm-outside-click.module.mjs +18 -0
- package/esm2020/src/overlay/pdm-overlay-options.mjs +2 -0
- package/esm2020/src/overlay/pdm-ui-kit-src-overlay.mjs +5 -0
- package/esm2020/src/overlay/public-api.mjs +6 -0
- package/esm2020/src/overlay/z-index-helper.mjs +69 -0
- package/esm2020/{lib/components → src}/pagination/pagination.component.mjs +3 -3
- package/esm2020/src/pagination/pagination.module.mjs +21 -0
- package/esm2020/src/pagination/pdm-ui-kit-src-pagination.mjs +5 -0
- package/esm2020/src/pagination/public-api.mjs +3 -0
- package/esm2020/src/popover/pdm-ui-kit-src-popover.mjs +5 -0
- package/esm2020/src/popover/popover.component.mjs +162 -0
- package/esm2020/src/popover/popover.module.mjs +22 -0
- package/esm2020/src/popover/public-api.mjs +3 -0
- package/esm2020/src/progress/pdm-ui-kit-src-progress.mjs +5 -0
- package/esm2020/src/progress/progress.component.mjs +33 -0
- package/esm2020/src/progress/progress.module.mjs +21 -0
- package/esm2020/src/progress/public-api.mjs +3 -0
- package/esm2020/src/radio-group/pdm-ui-kit-src-radio-group.mjs +5 -0
- package/esm2020/src/radio-group/public-api.mjs +3 -0
- package/esm2020/src/radio-group/radio-group.component.mjs +38 -0
- package/esm2020/src/radio-group/radio-group.module.mjs +21 -0
- package/esm2020/src/scroll-area/pdm-ui-kit-src-scroll-area.mjs +5 -0
- package/esm2020/src/scroll-area/public-api.mjs +3 -0
- package/esm2020/src/scroll-area/scroll-area.component.mjs +20 -0
- package/esm2020/src/scroll-area/scroll-area.module.mjs +21 -0
- package/esm2020/src/select/pdm-ui-kit-src-select.mjs +5 -0
- package/esm2020/src/select/public-api.mjs +4 -0
- package/esm2020/src/select/select-option.directive.mjs +55 -0
- package/esm2020/src/select/select.component.mjs +164 -0
- package/esm2020/src/select/select.module.mjs +22 -0
- package/esm2020/src/separator/pdm-ui-kit-src-separator.mjs +5 -0
- package/esm2020/src/separator/public-api.mjs +3 -0
- package/esm2020/src/separator/separator.component.mjs +26 -0
- package/esm2020/src/separator/separator.module.mjs +21 -0
- package/esm2020/src/sidebar/pdm-ui-kit-src-sidebar.mjs +5 -0
- package/esm2020/src/sidebar/public-api.mjs +3 -0
- package/esm2020/src/sidebar/sidebar.component.mjs +67 -0
- package/esm2020/src/sidebar/sidebar.module.mjs +21 -0
- package/esm2020/src/skeleton/pdm-ui-kit-src-skeleton.mjs +5 -0
- package/esm2020/src/skeleton/public-api.mjs +3 -0
- package/esm2020/src/skeleton/skeleton.component.mjs +17 -0
- package/esm2020/src/skeleton/skeleton.module.mjs +21 -0
- package/esm2020/src/slider/pdm-ui-kit-src-slider.mjs +5 -0
- package/esm2020/src/slider/public-api.mjs +3 -0
- package/esm2020/src/slider/slider.component.mjs +46 -0
- package/esm2020/src/slider/slider.module.mjs +21 -0
- package/esm2020/src/sonner/pdm-ui-kit-src-sonner.mjs +5 -0
- package/esm2020/src/sonner/public-api.mjs +3 -0
- package/esm2020/src/sonner/sonner.component.mjs +39 -0
- package/esm2020/src/sonner/sonner.module.mjs +20 -0
- package/esm2020/src/spinner/pdm-ui-kit-src-spinner.mjs +5 -0
- package/esm2020/src/spinner/public-api.mjs +3 -0
- package/esm2020/src/spinner/spinner.component.mjs +20 -0
- package/esm2020/src/spinner/spinner.module.mjs +21 -0
- package/esm2020/src/switch/pdm-ui-kit-src-switch.mjs +5 -0
- package/esm2020/src/switch/public-api.mjs +3 -0
- package/esm2020/src/switch/switch.component.mjs +58 -0
- package/esm2020/src/switch/switch.module.mjs +21 -0
- package/esm2020/src/tabs/pdm-ui-kit-src-tabs.mjs +5 -0
- package/esm2020/src/tabs/public-api.mjs +3 -0
- package/esm2020/{lib/components → src}/tabs/tabs.component.mjs +1 -1
- package/esm2020/src/tabs/tabs.module.mjs +21 -0
- package/esm2020/src/toggle/pdm-ui-kit-src-toggle.mjs +5 -0
- package/esm2020/src/toggle/public-api.mjs +4 -0
- package/esm2020/{lib/components/toggle-group → src/toggle}/toggle-group.component.mjs +1 -1
- package/esm2020/{lib/components → src}/toggle/toggle.component.mjs +1 -1
- package/esm2020/src/toggle/toggle.module.mjs +25 -0
- package/esm2020/src/tooltip/pdm-ui-kit-src-tooltip.mjs +5 -0
- package/esm2020/src/tooltip/public-api.mjs +3 -0
- package/esm2020/src/tooltip/tooltip.component.mjs +176 -0
- package/esm2020/src/tooltip/tooltip.module.mjs +22 -0
- package/esm2020/src/utils/pdm-ui-kit-src-utils.mjs +5 -0
- package/esm2020/src/utils/public-api.mjs +3 -0
- package/esm2020/src/utils/responsive.mjs +143 -0
- package/esm2020/src/utils/z-index.mjs +90 -0
- package/esm2020/switch/switch.component.mjs +58 -0
- package/esm2020/switch/switch.module.mjs +21 -0
- package/esm2020/tabs/tabs.component.mjs +34 -0
- package/esm2020/tabs/tabs.module.mjs +21 -0
- package/esm2020/toggle/toggle-group.component.mjs +31 -0
- package/esm2020/toggle/toggle.component.mjs +41 -0
- package/esm2020/toggle/toggle.module.mjs +25 -0
- package/esm2020/{lib/components/tooltip → tooltip}/tooltip.component.mjs +2 -2
- package/esm2020/tooltip/tooltip.module.mjs +22 -0
- package/esm2020/utils/responsive.mjs +143 -0
- package/esm2020/utils/z-index.mjs +90 -0
- package/fesm2015/pdm-ui-kit-src-accordion.mjs +68 -0
- package/fesm2015/pdm-ui-kit-src-accordion.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-alert.mjs +147 -0
- package/fesm2015/pdm-ui-kit-src-alert.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-aspect-ratio.mjs +56 -0
- package/fesm2015/pdm-ui-kit-src-aspect-ratio.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-avatar.mjs +71 -0
- package/fesm2015/pdm-ui-kit-src-avatar.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-badge.mjs +48 -0
- package/fesm2015/pdm-ui-kit-src-badge.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-breadcrumb.mjs +87 -0
- package/fesm2015/pdm-ui-kit-src-breadcrumb.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-button.mjs +376 -0
- package/fesm2015/pdm-ui-kit-src-button.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-calendar.mjs +912 -0
- package/fesm2015/pdm-ui-kit-src-calendar.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-card.mjs +73 -0
- package/fesm2015/pdm-ui-kit-src-card.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-carousel.mjs +127 -0
- package/fesm2015/pdm-ui-kit-src-carousel.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-chart.mjs +203 -0
- package/fesm2015/pdm-ui-kit-src-chart.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-checkbox.mjs +72 -0
- package/fesm2015/pdm-ui-kit-src-checkbox.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-collapsible.mjs +68 -0
- package/fesm2015/pdm-ui-kit-src-collapsible.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-combobox.mjs +200 -0
- package/fesm2015/pdm-ui-kit-src-combobox.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-command.mjs +100 -0
- package/fesm2015/pdm-ui-kit-src-command.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-context-menu.mjs +191 -0
- package/fesm2015/pdm-ui-kit-src-context-menu.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-data-table.mjs +806 -0
- package/fesm2015/pdm-ui-kit-src-data-table.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-dialog.mjs +289 -0
- package/fesm2015/pdm-ui-kit-src-dialog.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-drawer.mjs +354 -0
- package/fesm2015/pdm-ui-kit-src-drawer.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-dropdown-menu.mjs +212 -0
- package/fesm2015/pdm-ui-kit-src-dropdown-menu.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-empty.mjs +83 -0
- package/fesm2015/pdm-ui-kit-src-empty.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-field.mjs +89 -0
- package/fesm2015/pdm-ui-kit-src-field.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-hover-card.mjs +231 -0
- package/fesm2015/pdm-ui-kit-src-hover-card.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-icon.mjs +172 -0
- package/fesm2015/pdm-ui-kit-src-icon.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-input.mjs +443 -0
- package/fesm2015/pdm-ui-kit-src-input.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-item.mjs +48 -0
- package/fesm2015/pdm-ui-kit-src-item.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-kbd.mjs +42 -0
- package/fesm2015/pdm-ui-kit-src-kbd.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-label.mjs +48 -0
- package/fesm2015/pdm-ui-kit-src-label.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-menubar.mjs +170 -0
- package/fesm2015/pdm-ui-kit-src-menubar.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-native-select.mjs +66 -0
- package/fesm2015/pdm-ui-kit-src-native-select.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-navigation-menu.mjs +67 -0
- package/fesm2015/pdm-ui-kit-src-navigation-menu.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-overlay.mjs +225 -0
- package/fesm2015/pdm-ui-kit-src-overlay.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-pagination.mjs +97 -0
- package/fesm2015/pdm-ui-kit-src-pagination.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-popover.mjs +189 -0
- package/fesm2015/pdm-ui-kit-src-popover.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-progress.mjs +58 -0
- package/fesm2015/pdm-ui-kit-src-progress.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-radio-group.mjs +63 -0
- package/fesm2015/pdm-ui-kit-src-radio-group.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-scroll-area.mjs +45 -0
- package/fesm2015/pdm-ui-kit-src-scroll-area.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-select.mjs +238 -0
- package/fesm2015/pdm-ui-kit-src-select.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-separator.mjs +51 -0
- package/fesm2015/pdm-ui-kit-src-separator.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-sidebar.mjs +92 -0
- package/fesm2015/pdm-ui-kit-src-sidebar.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-skeleton.mjs +42 -0
- package/fesm2015/pdm-ui-kit-src-skeleton.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-slider.mjs +71 -0
- package/fesm2015/pdm-ui-kit-src-slider.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-sonner.mjs +63 -0
- package/fesm2015/pdm-ui-kit-src-sonner.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-spinner.mjs +45 -0
- package/fesm2015/pdm-ui-kit-src-spinner.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-switch.mjs +83 -0
- package/fesm2015/pdm-ui-kit-src-switch.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-tabs.mjs +59 -0
- package/fesm2015/pdm-ui-kit-src-tabs.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-toggle.mjs +97 -0
- package/fesm2015/pdm-ui-kit-src-toggle.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-tooltip.mjs +202 -0
- package/fesm2015/pdm-ui-kit-src-tooltip.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit-src-utils.mjs +239 -0
- package/fesm2015/pdm-ui-kit-src-utils.mjs.map +1 -0
- package/fesm2015/pdm-ui-kit.mjs +3832 -2982
- package/fesm2015/pdm-ui-kit.mjs.map +1 -1
- package/fesm2020/pdm-ui-kit-src-accordion.mjs +67 -0
- package/fesm2020/pdm-ui-kit-src-accordion.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-alert.mjs +147 -0
- package/fesm2020/pdm-ui-kit-src-alert.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-aspect-ratio.mjs +56 -0
- package/fesm2020/pdm-ui-kit-src-aspect-ratio.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-avatar.mjs +71 -0
- package/fesm2020/pdm-ui-kit-src-avatar.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-badge.mjs +48 -0
- package/fesm2020/pdm-ui-kit-src-badge.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-breadcrumb.mjs +87 -0
- package/fesm2020/pdm-ui-kit-src-breadcrumb.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-button.mjs +375 -0
- package/fesm2020/pdm-ui-kit-src-button.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-calendar.mjs +911 -0
- package/fesm2020/pdm-ui-kit-src-calendar.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-card.mjs +73 -0
- package/fesm2020/pdm-ui-kit-src-card.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-carousel.mjs +127 -0
- package/fesm2020/pdm-ui-kit-src-carousel.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-chart.mjs +202 -0
- package/fesm2020/pdm-ui-kit-src-chart.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-checkbox.mjs +72 -0
- package/fesm2020/pdm-ui-kit-src-checkbox.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-collapsible.mjs +68 -0
- package/fesm2020/pdm-ui-kit-src-collapsible.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-combobox.mjs +199 -0
- package/fesm2020/pdm-ui-kit-src-combobox.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-command.mjs +99 -0
- package/fesm2020/pdm-ui-kit-src-command.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-context-menu.mjs +191 -0
- package/fesm2020/pdm-ui-kit-src-context-menu.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-data-table.mjs +805 -0
- package/fesm2020/pdm-ui-kit-src-data-table.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-dialog.mjs +289 -0
- package/fesm2020/pdm-ui-kit-src-dialog.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-drawer.mjs +354 -0
- package/fesm2020/pdm-ui-kit-src-drawer.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-dropdown-menu.mjs +218 -0
- package/fesm2020/pdm-ui-kit-src-dropdown-menu.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-empty.mjs +83 -0
- package/fesm2020/pdm-ui-kit-src-empty.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-field.mjs +89 -0
- package/fesm2020/pdm-ui-kit-src-field.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-hover-card.mjs +231 -0
- package/fesm2020/pdm-ui-kit-src-hover-card.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-icon.mjs +169 -0
- package/fesm2020/pdm-ui-kit-src-icon.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-input.mjs +441 -0
- package/fesm2020/pdm-ui-kit-src-input.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-item.mjs +48 -0
- package/fesm2020/pdm-ui-kit-src-item.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-kbd.mjs +42 -0
- package/fesm2020/pdm-ui-kit-src-kbd.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-label.mjs +48 -0
- package/fesm2020/pdm-ui-kit-src-label.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-menubar.mjs +170 -0
- package/fesm2020/pdm-ui-kit-src-menubar.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-native-select.mjs +66 -0
- package/fesm2020/pdm-ui-kit-src-native-select.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-navigation-menu.mjs +67 -0
- package/fesm2020/pdm-ui-kit-src-navigation-menu.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-overlay.mjs +229 -0
- package/fesm2020/pdm-ui-kit-src-overlay.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-pagination.mjs +97 -0
- package/fesm2020/pdm-ui-kit-src-pagination.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-popover.mjs +188 -0
- package/fesm2020/pdm-ui-kit-src-popover.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-progress.mjs +58 -0
- package/fesm2020/pdm-ui-kit-src-progress.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-radio-group.mjs +63 -0
- package/fesm2020/pdm-ui-kit-src-radio-group.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-scroll-area.mjs +45 -0
- package/fesm2020/pdm-ui-kit-src-scroll-area.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-select.mjs +241 -0
- package/fesm2020/pdm-ui-kit-src-select.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-separator.mjs +51 -0
- package/fesm2020/pdm-ui-kit-src-separator.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-sidebar.mjs +92 -0
- package/fesm2020/pdm-ui-kit-src-sidebar.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-skeleton.mjs +42 -0
- package/fesm2020/pdm-ui-kit-src-skeleton.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-slider.mjs +71 -0
- package/fesm2020/pdm-ui-kit-src-slider.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-sonner.mjs +63 -0
- package/fesm2020/pdm-ui-kit-src-sonner.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-spinner.mjs +45 -0
- package/fesm2020/pdm-ui-kit-src-spinner.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-switch.mjs +83 -0
- package/fesm2020/pdm-ui-kit-src-switch.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-tabs.mjs +59 -0
- package/fesm2020/pdm-ui-kit-src-tabs.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-toggle.mjs +97 -0
- package/fesm2020/pdm-ui-kit-src-toggle.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-tooltip.mjs +202 -0
- package/fesm2020/pdm-ui-kit-src-tooltip.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit-src-utils.mjs +239 -0
- package/fesm2020/pdm-ui-kit-src-utils.mjs.map +1 -0
- package/fesm2020/pdm-ui-kit.mjs +3865 -3015
- package/fesm2020/pdm-ui-kit.mjs.map +1 -1
- package/field/field.module.d.ts +8 -0
- package/hover-card/hover-card.module.d.ts +9 -0
- package/icon/icon.module.d.ts +8 -0
- package/{lib/components/input-password → input}/input-password.component.d.ts +1 -1
- package/input/input.module.d.ts +13 -0
- package/item/item.module.d.ts +8 -0
- package/kbd/kbd.module.d.ts +8 -0
- package/label/label.module.d.ts +8 -0
- package/{lib/components/menubar → menubar}/menubar.component.d.ts +1 -1
- package/menubar/menubar.module.d.ts +9 -0
- package/native-select/native-select.module.d.ts +9 -0
- package/navigation-menu/navigation-menu.module.d.ts +8 -0
- package/overlay/pdm-outside-click.module.d.ts +8 -0
- package/package.json +786 -2
- package/{lib/components/pagination → pagination}/pagination.component.d.ts +1 -1
- package/pagination/pagination.module.d.ts +10 -0
- package/pdm-ui-kit.module.d.ts +60 -0
- package/popover/popover.module.d.ts +9 -0
- package/progress/progress.module.d.ts +8 -0
- package/public-api.d.ts +114 -66
- package/radio-group/radio-group.module.d.ts +8 -0
- package/scroll-area/scroll-area.module.d.ts +8 -0
- package/{lib/components/select → select}/select.component.d.ts +1 -1
- package/select/select.module.d.ts +11 -0
- package/separator/separator.module.d.ts +8 -0
- package/sidebar/sidebar.module.d.ts +8 -0
- package/skeleton/skeleton.module.d.ts +8 -0
- package/slider/slider.module.d.ts +8 -0
- package/sonner/sonner.module.d.ts +9 -0
- package/spinner/spinner.module.d.ts +8 -0
- package/src/accordion/accordion.component.d.ts +19 -0
- package/src/accordion/accordion.module.d.ts +8 -0
- package/src/accordion/index.d.ts +5 -0
- package/src/accordion/public-api.d.ts +2 -0
- package/src/alert/alert-dialog.component.d.ts +29 -0
- package/src/alert/alert.component.d.ts +13 -0
- package/src/alert/alert.module.d.ts +9 -0
- package/src/alert/index.d.ts +5 -0
- package/src/alert/public-api.d.ts +3 -0
- package/src/aspect-ratio/aspect-ratio.component.d.ts +10 -0
- package/src/aspect-ratio/aspect-ratio.module.d.ts +8 -0
- package/src/aspect-ratio/index.d.ts +5 -0
- package/src/aspect-ratio/public-api.d.ts +2 -0
- package/src/avatar/avatar.component.d.ts +20 -0
- package/src/avatar/avatar.module.d.ts +8 -0
- package/src/avatar/index.d.ts +5 -0
- package/src/avatar/public-api.d.ts +2 -0
- package/src/badge/badge.component.d.ts +9 -0
- package/src/badge/badge.module.d.ts +8 -0
- package/src/badge/index.d.ts +5 -0
- package/src/badge/public-api.d.ts +2 -0
- package/src/breadcrumb/breadcrumb.component.d.ts +32 -0
- package/src/breadcrumb/breadcrumb.module.d.ts +8 -0
- package/src/breadcrumb/index.d.ts +5 -0
- package/src/breadcrumb/public-api.d.ts +2 -0
- package/src/button/button-group.component.d.ts +19 -0
- package/src/button/button.component.d.ts +29 -0
- package/src/button/button.module.d.ts +9 -0
- package/src/button/index.d.ts +5 -0
- package/src/button/public-api.d.ts +3 -0
- package/src/calendar/calendar.component.d.ts +149 -0
- package/src/calendar/calendar.module.d.ts +11 -0
- package/src/calendar/date-picker.component.d.ts +89 -0
- package/src/calendar/index.d.ts +5 -0
- package/src/calendar/public-api.d.ts +3 -0
- package/src/card/card.component.d.ts +37 -0
- package/src/card/card.module.d.ts +8 -0
- package/src/card/index.d.ts +5 -0
- package/src/card/public-api.d.ts +2 -0
- package/src/carousel/carousel.component.d.ts +28 -0
- package/src/carousel/carousel.module.d.ts +8 -0
- package/src/carousel/index.d.ts +5 -0
- package/src/carousel/public-api.d.ts +2 -0
- package/src/chart/chart.component.d.ts +44 -0
- package/src/chart/chart.module.d.ts +8 -0
- package/src/chart/index.d.ts +5 -0
- package/src/chart/public-api.d.ts +2 -0
- package/src/checkbox/checkbox.component.d.ts +17 -0
- package/src/checkbox/checkbox.module.d.ts +8 -0
- package/src/checkbox/index.d.ts +5 -0
- package/src/checkbox/public-api.d.ts +2 -0
- package/src/collapsible/collapsible.component.d.ts +14 -0
- package/src/collapsible/collapsible.module.d.ts +8 -0
- package/src/collapsible/index.d.ts +5 -0
- package/src/collapsible/public-api.d.ts +2 -0
- package/src/combobox/combobox.component.d.ts +35 -0
- package/src/combobox/combobox.module.d.ts +9 -0
- package/src/combobox/index.d.ts +5 -0
- package/src/combobox/public-api.d.ts +2 -0
- package/src/command/command.component.d.ts +33 -0
- package/src/command/command.module.d.ts +9 -0
- package/src/command/index.d.ts +5 -0
- package/src/command/public-api.d.ts +2 -0
- package/src/context-menu/context-menu.component.d.ts +38 -0
- package/src/context-menu/context-menu.module.d.ts +9 -0
- package/src/context-menu/index.d.ts +5 -0
- package/src/context-menu/public-api.d.ts +2 -0
- package/src/data-table/data-table.component.d.ts +200 -0
- package/src/data-table/data-table.module.d.ts +10 -0
- package/src/data-table/draggable-table.component.d.ts +74 -0
- package/src/data-table/index.d.ts +5 -0
- package/src/data-table/public-api.d.ts +4 -0
- package/src/data-table/table.component.d.ts +55 -0
- package/src/dialog/dialog.component.d.ts +72 -0
- package/src/dialog/dialog.module.d.ts +8 -0
- package/src/dialog/index.d.ts +5 -0
- package/src/dialog/public-api.d.ts +2 -0
- package/src/drawer/drawer.component.d.ts +96 -0
- package/src/drawer/drawer.module.d.ts +10 -0
- package/src/drawer/index.d.ts +5 -0
- package/src/drawer/public-api.d.ts +3 -0
- package/src/drawer/sheet.component.d.ts +46 -0
- package/src/dropdown-menu/dropdown-menu.component.d.ts +61 -0
- package/src/dropdown-menu/dropdown-menu.module.d.ts +9 -0
- package/src/dropdown-menu/index.d.ts +5 -0
- package/src/dropdown-menu/public-api.d.ts +2 -0
- package/src/empty/empty.component.d.ts +19 -0
- package/src/empty/empty.module.d.ts +10 -0
- package/src/empty/index.d.ts +5 -0
- package/src/empty/public-api.d.ts +2 -0
- package/src/field/field.component.d.ts +23 -0
- package/src/field/field.module.d.ts +8 -0
- package/src/field/index.d.ts +5 -0
- package/src/field/public-api.d.ts +2 -0
- package/src/hover-card/hover-card.component.d.ts +37 -0
- package/src/hover-card/hover-card.module.d.ts +9 -0
- package/src/hover-card/index.d.ts +5 -0
- package/src/hover-card/public-api.d.ts +2 -0
- package/src/icon/icon.component.d.ts +28 -0
- package/src/icon/icon.module.d.ts +8 -0
- package/src/icon/index.d.ts +5 -0
- package/src/icon/public-api.d.ts +2 -0
- package/src/input/index.d.ts +5 -0
- package/src/input/input-group.component.d.ts +22 -0
- package/src/input/input-otp.component.d.ts +26 -0
- package/src/input/input-password.component.d.ts +28 -0
- package/src/input/input.component.d.ts +27 -0
- package/src/input/input.module.d.ts +13 -0
- package/src/input/public-api.d.ts +6 -0
- package/src/input/textarea.component.d.ts +21 -0
- package/src/item/index.d.ts +5 -0
- package/src/item/item.component.d.ts +8 -0
- package/src/item/item.module.d.ts +8 -0
- package/src/item/public-api.d.ts +2 -0
- package/src/kbd/index.d.ts +5 -0
- package/src/kbd/kbd.component.d.ts +6 -0
- package/src/kbd/kbd.module.d.ts +8 -0
- package/src/kbd/public-api.d.ts +2 -0
- package/src/label/index.d.ts +5 -0
- package/src/label/label.component.d.ts +8 -0
- package/src/label/label.module.d.ts +8 -0
- package/src/label/public-api.d.ts +2 -0
- package/src/menubar/index.d.ts +5 -0
- package/src/menubar/menubar.component.d.ts +34 -0
- package/src/menubar/menubar.module.d.ts +9 -0
- package/src/menubar/public-api.d.ts +2 -0
- package/src/native-select/index.d.ts +5 -0
- package/src/native-select/native-select.component.d.ts +20 -0
- package/src/native-select/native-select.module.d.ts +9 -0
- package/src/native-select/public-api.d.ts +2 -0
- package/src/navigation-menu/index.d.ts +5 -0
- package/src/navigation-menu/navigation-menu.component.d.ts +33 -0
- package/src/navigation-menu/navigation-menu.module.d.ts +8 -0
- package/src/navigation-menu/public-api.d.ts +2 -0
- package/src/overlay/create-flexible-position-strategy.d.ts +15 -0
- package/src/overlay/index.d.ts +5 -0
- package/src/overlay/pdm-outside-click.directive.d.ts +40 -0
- package/src/overlay/pdm-outside-click.module.d.ts +8 -0
- package/src/overlay/pdm-overlay-options.d.ts +21 -0
- package/src/overlay/public-api.d.ts +5 -0
- package/src/overlay/z-index-helper.d.ts +36 -0
- package/src/pagination/index.d.ts +5 -0
- package/src/pagination/pagination.component.d.ts +21 -0
- package/src/pagination/pagination.module.d.ts +10 -0
- package/src/pagination/public-api.d.ts +2 -0
- package/src/popover/index.d.ts +5 -0
- package/src/popover/popover.component.d.ts +32 -0
- package/src/popover/popover.module.d.ts +9 -0
- package/src/popover/public-api.d.ts +2 -0
- package/src/progress/index.d.ts +5 -0
- package/src/progress/progress.component.d.ts +10 -0
- package/src/progress/progress.module.d.ts +8 -0
- package/src/progress/public-api.d.ts +2 -0
- package/src/radio-group/index.d.ts +5 -0
- package/src/radio-group/public-api.d.ts +2 -0
- package/src/radio-group/radio-group.component.d.ts +19 -0
- package/src/radio-group/radio-group.module.d.ts +8 -0
- package/src/scroll-area/index.d.ts +5 -0
- package/src/scroll-area/public-api.d.ts +2 -0
- package/src/scroll-area/scroll-area.component.d.ts +7 -0
- package/src/scroll-area/scroll-area.module.d.ts +8 -0
- package/src/select/index.d.ts +5 -0
- package/src/select/public-api.d.ts +3 -0
- package/src/select/select-option.directive.d.ts +34 -0
- package/src/select/select.component.d.ts +55 -0
- package/src/select/select.module.d.ts +11 -0
- package/src/separator/index.d.ts +5 -0
- package/src/separator/public-api.d.ts +2 -0
- package/src/separator/separator.component.d.ts +9 -0
- package/src/separator/separator.module.d.ts +8 -0
- package/src/sidebar/index.d.ts +5 -0
- package/src/sidebar/public-api.d.ts +2 -0
- package/src/sidebar/sidebar.component.d.ts +45 -0
- package/src/sidebar/sidebar.module.d.ts +8 -0
- package/src/skeleton/index.d.ts +5 -0
- package/src/skeleton/public-api.d.ts +2 -0
- package/src/skeleton/skeleton.component.d.ts +6 -0
- package/src/skeleton/skeleton.module.d.ts +8 -0
- package/src/slider/index.d.ts +5 -0
- package/src/slider/public-api.d.ts +2 -0
- package/src/slider/slider.component.d.ts +15 -0
- package/src/slider/slider.module.d.ts +8 -0
- package/src/sonner/index.d.ts +5 -0
- package/src/sonner/public-api.d.ts +2 -0
- package/src/sonner/sonner.component.d.ts +13 -0
- package/src/sonner/sonner.module.d.ts +9 -0
- package/src/spinner/index.d.ts +5 -0
- package/src/spinner/public-api.d.ts +2 -0
- package/src/spinner/spinner.component.d.ts +7 -0
- package/src/spinner/spinner.module.d.ts +8 -0
- package/src/switch/index.d.ts +5 -0
- package/src/switch/public-api.d.ts +2 -0
- package/src/switch/switch.module.d.ts +8 -0
- package/src/tabs/index.d.ts +5 -0
- package/src/tabs/public-api.d.ts +2 -0
- package/src/tabs/tabs.module.d.ts +8 -0
- package/src/toggle/index.d.ts +5 -0
- package/src/toggle/public-api.d.ts +3 -0
- package/src/toggle/toggle.module.d.ts +9 -0
- package/src/tooltip/index.d.ts +5 -0
- package/src/tooltip/public-api.d.ts +2 -0
- package/src/tooltip/tooltip.module.d.ts +9 -0
- package/src/utils/index.d.ts +5 -0
- package/src/utils/public-api.d.ts +2 -0
- package/switch/switch.component.d.ts +18 -0
- package/switch/switch.module.d.ts +8 -0
- package/tabs/tabs.component.d.ts +18 -0
- package/tabs/tabs.module.d.ts +8 -0
- package/toggle/toggle-group.component.d.ts +16 -0
- package/toggle/toggle.component.d.ts +14 -0
- package/toggle/toggle.module.d.ts +9 -0
- package/tooltip/tooltip.component.d.ts +28 -0
- package/tooltip/tooltip.module.d.ts +9 -0
- package/utils/responsive.d.ts +107 -0
- package/utils/z-index.d.ts +69 -0
- package/esm2020/lib/components/button/button.component.mjs +0 -114
- package/esm2020/lib/components/calendar/calendar.component.mjs +0 -529
- package/esm2020/lib/components/carousel/carousel.component.mjs +0 -102
- package/esm2020/lib/components/command/command.component.mjs +0 -75
- package/esm2020/lib/components/context-menu/context-menu.component.mjs +0 -165
- package/esm2020/lib/components/data-table/data-table.component.mjs +0 -299
- package/esm2020/lib/components/dialog/dialog.component.mjs +0 -265
- package/esm2020/lib/components/draggable-table/draggable-table.component.mjs +0 -300
- package/esm2020/lib/components/drawer/drawer.component.mjs +0 -217
- package/esm2020/lib/components/dropdown-menu/dropdown-menu.component.mjs +0 -192
- package/esm2020/lib/components/icon/icon.component.mjs +0 -144
- package/esm2020/lib/components/input-otp/input-otp.component.mjs +0 -144
- package/esm2020/lib/components/menubar/menubar.component.mjs +0 -144
- package/esm2020/lib/components/select/select-option.directive.mjs +0 -55
- package/esm2020/lib/components/select/select.component.mjs +0 -164
- package/esm2020/lib/components/sheet/sheet.component.mjs +0 -116
- package/esm2020/lib/components/switch/switch.component.mjs +0 -58
- package/esm2020/lib/components/table/table.component.mjs +0 -182
- package/esm2020/lib/overlay/create-flexible-position-strategy.mjs +0 -54
- package/esm2020/lib/overlay/pdm-outside-click.directive.mjs +0 -86
- package/esm2020/lib/overlay/pdm-overlay-options.mjs +0 -2
- package/esm2020/lib/overlay/z-index-helper.mjs +0 -69
- package/esm2020/lib/pdm-ui-kit.module.mjs +0 -258
- package/esm2020/lib/utils/responsive.mjs +0 -143
- package/esm2020/lib/utils/z-index.mjs +0 -90
- package/lib/pdm-ui-kit.module.d.ts +0 -68
- /package/{lib/components/accordion → accordion}/accordion.component.d.ts +0 -0
- /package/{lib/components/alert-dialog → alert}/alert-dialog.component.d.ts +0 -0
- /package/{lib/components/alert → alert}/alert.component.d.ts +0 -0
- /package/{lib/components/aspect-ratio → aspect-ratio}/aspect-ratio.component.d.ts +0 -0
- /package/{lib/components/avatar → avatar}/avatar.component.d.ts +0 -0
- /package/{lib/components/badge → badge}/badge.component.d.ts +0 -0
- /package/{lib/components/breadcrumb → breadcrumb}/breadcrumb.component.d.ts +0 -0
- /package/{lib/components/button-group → button}/button-group.component.d.ts +0 -0
- /package/{lib/components/button → button}/button.component.d.ts +0 -0
- /package/{lib/components/calendar → calendar}/calendar.component.d.ts +0 -0
- /package/{lib/components/card → card}/card.component.d.ts +0 -0
- /package/{lib/components/carousel → carousel}/carousel.component.d.ts +0 -0
- /package/{lib/components/chart → chart}/chart.component.d.ts +0 -0
- /package/{lib/components/checkbox → checkbox}/checkbox.component.d.ts +0 -0
- /package/{lib/components/collapsible → collapsible}/collapsible.component.d.ts +0 -0
- /package/{lib/components/combobox → combobox}/combobox.component.d.ts +0 -0
- /package/{lib/components/dialog → dialog}/dialog.component.d.ts +0 -0
- /package/{lib/components/drawer → drawer}/drawer.component.d.ts +0 -0
- /package/{lib/components/sheet → drawer}/sheet.component.d.ts +0 -0
- /package/{lib/components/empty → empty}/empty.component.d.ts +0 -0
- /package/{lib/components/field → field}/field.component.d.ts +0 -0
- /package/{lib/components/hover-card → hover-card}/hover-card.component.d.ts +0 -0
- /package/{lib/components/icon → icon}/icon.component.d.ts +0 -0
- /package/{lib/components/input-group → input}/input-group.component.d.ts +0 -0
- /package/{lib/components/input-otp → input}/input-otp.component.d.ts +0 -0
- /package/{lib/components/input → input}/input.component.d.ts +0 -0
- /package/{lib/components/textarea → input}/textarea.component.d.ts +0 -0
- /package/{lib/components/item → item}/item.component.d.ts +0 -0
- /package/{lib/components/kbd → kbd}/kbd.component.d.ts +0 -0
- /package/{lib/components/label → label}/label.component.d.ts +0 -0
- /package/{lib/components/native-select → native-select}/native-select.component.d.ts +0 -0
- /package/{lib/components/navigation-menu → navigation-menu}/navigation-menu.component.d.ts +0 -0
- /package/{lib/overlay → overlay}/create-flexible-position-strategy.d.ts +0 -0
- /package/{lib/overlay → overlay}/pdm-outside-click.directive.d.ts +0 -0
- /package/{lib/overlay → overlay}/pdm-overlay-options.d.ts +0 -0
- /package/{lib/overlay → overlay}/z-index-helper.d.ts +0 -0
- /package/{lib/components/popover → popover}/popover.component.d.ts +0 -0
- /package/{lib/components/progress → progress}/progress.component.d.ts +0 -0
- /package/{lib/components/radio-group → radio-group}/radio-group.component.d.ts +0 -0
- /package/{lib/components/scroll-area → scroll-area}/scroll-area.component.d.ts +0 -0
- /package/{lib/components/select → select}/select-option.directive.d.ts +0 -0
- /package/{lib/components/separator → separator}/separator.component.d.ts +0 -0
- /package/{lib/components/sidebar → sidebar}/sidebar.component.d.ts +0 -0
- /package/{lib/components/skeleton → skeleton}/skeleton.component.d.ts +0 -0
- /package/{lib/components/slider → slider}/slider.component.d.ts +0 -0
- /package/{lib/components/sonner → sonner}/sonner.component.d.ts +0 -0
- /package/{lib/components/spinner → spinner}/spinner.component.d.ts +0 -0
- /package/src/{lib/styles → styles}/tokens.css +0 -0
- /package/{lib/components → src}/switch/switch.component.d.ts +0 -0
- /package/{lib/components → src}/tabs/tabs.component.d.ts +0 -0
- /package/{lib/components/toggle-group → src/toggle}/toggle-group.component.d.ts +0 -0
- /package/{lib/components → src}/toggle/toggle.component.d.ts +0 -0
- /package/{lib/components → src}/tooltip/tooltip.component.d.ts +0 -0
- /package/{lib → src}/utils/responsive.d.ts +0 -0
- /package/{lib → src}/utils/z-index.d.ts +0 -0
|
@@ -0,0 +1,911 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, ChangeDetectorRef, EventEmitter, Component, ChangeDetectionStrategy, Input, Output, ViewChild, HostListener, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { TemplatePortal } from '@angular/cdk/portal';
|
|
6
|
+
import { format } from 'date-fns';
|
|
7
|
+
import { createFlexiblePositionStrategy, mergeOverlayPanelClass, OVERLAY_BASE_Z_INDEX } from 'pdm-ui-kit/src/overlay';
|
|
8
|
+
import * as i1$1 from '@angular/cdk/overlay';
|
|
9
|
+
import { OverlayModule } from '@angular/cdk/overlay';
|
|
10
|
+
import * as i3 from 'pdm-ui-kit/src/label';
|
|
11
|
+
import { PdmLabelModule } from 'pdm-ui-kit/src/label';
|
|
12
|
+
|
|
13
|
+
const DAY_MS = 24 * 60 * 60 * 1000;
|
|
14
|
+
class PdmCalendarComponent {
|
|
15
|
+
constructor() {
|
|
16
|
+
this._value = null;
|
|
17
|
+
this._rangeValue = null;
|
|
18
|
+
this._month = null;
|
|
19
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
20
|
+
this.variant = "single";
|
|
21
|
+
this.className = "";
|
|
22
|
+
this.disabledDates = [];
|
|
23
|
+
this.minDate = null;
|
|
24
|
+
this.maxDate = null;
|
|
25
|
+
this.minYear = null;
|
|
26
|
+
this.maxYear = null;
|
|
27
|
+
this.isDateDisabled = null;
|
|
28
|
+
this.allowSameDayRange = true;
|
|
29
|
+
this.readonly = false;
|
|
30
|
+
this.valueChange = new EventEmitter();
|
|
31
|
+
this.rangeValueChange = new EventEmitter();
|
|
32
|
+
this.monthChange = new EventEmitter();
|
|
33
|
+
this.dateClick = new EventEmitter();
|
|
34
|
+
this.disabledDateClick = new EventEmitter();
|
|
35
|
+
this.weekdays = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
36
|
+
this.monthOptions = [
|
|
37
|
+
{ value: 0, label: "Jan" },
|
|
38
|
+
{ value: 1, label: "Feb" },
|
|
39
|
+
{ value: 2, label: "Mar" },
|
|
40
|
+
{ value: 3, label: "Apr" },
|
|
41
|
+
{ value: 4, label: "May" },
|
|
42
|
+
{ value: 5, label: "Jun" },
|
|
43
|
+
{ value: 6, label: "Jul" },
|
|
44
|
+
{ value: 7, label: "Aug" },
|
|
45
|
+
{ value: 8, label: "Sep" },
|
|
46
|
+
{ value: 9, label: "Oct" },
|
|
47
|
+
{ value: 10, label: "Nov" },
|
|
48
|
+
{ value: 11, label: "Dec" },
|
|
49
|
+
];
|
|
50
|
+
this.trackByIndex = (index) => {
|
|
51
|
+
return index;
|
|
52
|
+
};
|
|
53
|
+
this.trackByDate = (_index, cell) => {
|
|
54
|
+
return this.dateKey(cell.date);
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
set value(value) {
|
|
58
|
+
this._value = this.normalizeDate(value);
|
|
59
|
+
}
|
|
60
|
+
get value() {
|
|
61
|
+
return this._value;
|
|
62
|
+
}
|
|
63
|
+
set rangeValue(value) {
|
|
64
|
+
this._rangeValue = value
|
|
65
|
+
? {
|
|
66
|
+
start: this.normalizeDate(value.start),
|
|
67
|
+
end: this.normalizeDate(value.end),
|
|
68
|
+
}
|
|
69
|
+
: null;
|
|
70
|
+
}
|
|
71
|
+
get rangeValue() {
|
|
72
|
+
return this._rangeValue;
|
|
73
|
+
}
|
|
74
|
+
set month(value) {
|
|
75
|
+
this._month = value ? this.startOfMonth(value) : null;
|
|
76
|
+
}
|
|
77
|
+
get month() {
|
|
78
|
+
return this._month;
|
|
79
|
+
}
|
|
80
|
+
get resolvedVariant() {
|
|
81
|
+
return this.variant === "range" ? "range" : "single";
|
|
82
|
+
}
|
|
83
|
+
get visibleMonths() {
|
|
84
|
+
const baseMonth = this.getAnchorMonth();
|
|
85
|
+
if (this.resolvedVariant === "single") {
|
|
86
|
+
return [
|
|
87
|
+
{
|
|
88
|
+
date: baseMonth,
|
|
89
|
+
title: this.formatMonthYear(baseMonth),
|
|
90
|
+
titleStyle: "dropdowns",
|
|
91
|
+
dropdownMonth: this.formatMonthShort(baseMonth),
|
|
92
|
+
dropdownYear: String(baseMonth.getFullYear()),
|
|
93
|
+
showPrevButton: true,
|
|
94
|
+
showNextButton: true,
|
|
95
|
+
weeks: this.buildMonthWeeks(baseMonth, false),
|
|
96
|
+
},
|
|
97
|
+
];
|
|
98
|
+
}
|
|
99
|
+
const nextMonth = this.addMonths(baseMonth, 1);
|
|
100
|
+
return [
|
|
101
|
+
{
|
|
102
|
+
date: baseMonth,
|
|
103
|
+
title: this.formatMonthYear(baseMonth),
|
|
104
|
+
titleStyle: "plain",
|
|
105
|
+
showPrevButton: true,
|
|
106
|
+
showNextButton: false,
|
|
107
|
+
weeks: this.buildMonthWeeks(baseMonth, true),
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
date: nextMonth,
|
|
111
|
+
title: this.formatMonthYear(nextMonth),
|
|
112
|
+
titleStyle: "plain",
|
|
113
|
+
showPrevButton: false,
|
|
114
|
+
showNextButton: true,
|
|
115
|
+
weeks: this.buildMonthWeeks(nextMonth, true),
|
|
116
|
+
},
|
|
117
|
+
];
|
|
118
|
+
}
|
|
119
|
+
get singleHeaderMonth() {
|
|
120
|
+
return this.getAnchorMonth().getMonth();
|
|
121
|
+
}
|
|
122
|
+
get singleHeaderYear() {
|
|
123
|
+
return this.getAnchorMonth().getFullYear();
|
|
124
|
+
}
|
|
125
|
+
get yearOptions() {
|
|
126
|
+
const baseYear = new Date().getFullYear();
|
|
127
|
+
const selectedYear = this.singleHeaderYear;
|
|
128
|
+
let minYear = this.minYear ??
|
|
129
|
+
(this.minDate ? this.minDate.getFullYear() : baseYear - 100);
|
|
130
|
+
let maxYear = this.maxYear ??
|
|
131
|
+
(this.maxDate ? this.maxDate.getFullYear() : baseYear + 10);
|
|
132
|
+
const years = [];
|
|
133
|
+
if (selectedYear < minYear) {
|
|
134
|
+
minYear = selectedYear;
|
|
135
|
+
}
|
|
136
|
+
if (selectedYear > maxYear) {
|
|
137
|
+
maxYear = selectedYear;
|
|
138
|
+
}
|
|
139
|
+
if (minYear > maxYear) {
|
|
140
|
+
const nextMin = maxYear;
|
|
141
|
+
maxYear = minYear;
|
|
142
|
+
minYear = nextMin;
|
|
143
|
+
}
|
|
144
|
+
for (let year = minYear; year <= maxYear; year += 1) {
|
|
145
|
+
years.push(year);
|
|
146
|
+
}
|
|
147
|
+
return years;
|
|
148
|
+
}
|
|
149
|
+
get rootClasses() {
|
|
150
|
+
return [
|
|
151
|
+
"border-border bg-background relative rounded-[10px] border border-solid p-3 shadow-sm",
|
|
152
|
+
this.resolvedVariant === "range"
|
|
153
|
+
? "inline-flex items-start justify-center gap-4 shrink-0 grow-0 basis-auto"
|
|
154
|
+
: "inline-flex flex-col gap-4 shrink-0 grow-0 basis-auto",
|
|
155
|
+
this.className,
|
|
156
|
+
];
|
|
157
|
+
}
|
|
158
|
+
get rootStyle() {
|
|
159
|
+
const width = this.resolvedVariant === "range" ? "488px" : "250px";
|
|
160
|
+
return {
|
|
161
|
+
width,
|
|
162
|
+
minWidth: width,
|
|
163
|
+
maxWidth: width,
|
|
164
|
+
minHeight: "293px",
|
|
165
|
+
flex: "0 0 auto",
|
|
166
|
+
alignSelf: "flex-start",
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
monthPanelClasses(_index) {
|
|
170
|
+
return [
|
|
171
|
+
"flex flex-col items-start",
|
|
172
|
+
this.resolvedVariant === "range" ? "w-[224px] gap-4" : "w-full gap-0",
|
|
173
|
+
];
|
|
174
|
+
}
|
|
175
|
+
headerClasses(month) {
|
|
176
|
+
return [
|
|
177
|
+
"flex w-full items-center justify-between",
|
|
178
|
+
month.titleStyle === "dropdowns" ? "" : "mb-4",
|
|
179
|
+
];
|
|
180
|
+
}
|
|
181
|
+
navButtonClasses() {
|
|
182
|
+
return [
|
|
183
|
+
"flex h-8 w-8 appearance-none box-border items-center justify-center rounded-md border-0 bg-transparent p-0 text-foreground",
|
|
184
|
+
"disabled:pointer-events-none disabled:opacity-40",
|
|
185
|
+
];
|
|
186
|
+
}
|
|
187
|
+
navPlaceholderClasses() {
|
|
188
|
+
return ["h-7 w-7 shrink-0"];
|
|
189
|
+
}
|
|
190
|
+
dropdownWrapClasses() {
|
|
191
|
+
return ["flex w-40 items-center justify-center gap-2"];
|
|
192
|
+
}
|
|
193
|
+
dropdownClasses(widthClass) {
|
|
194
|
+
return ["flex h-8 items-center justify-center gap-1 px-1", widthClass];
|
|
195
|
+
}
|
|
196
|
+
dropdownSelectClasses() {
|
|
197
|
+
return [
|
|
198
|
+
"text-foreground h-full bg-transparent text-sm font-medium leading-5",
|
|
199
|
+
"appearance-none box-border border-0 outline-none ring-0 focus:outline-none focus:ring-0 text-center cursor-pointer",
|
|
200
|
+
];
|
|
201
|
+
}
|
|
202
|
+
get dropdownSelectStyle() {
|
|
203
|
+
return {
|
|
204
|
+
appearance: "none",
|
|
205
|
+
WebkitAppearance: "none",
|
|
206
|
+
MozAppearance: "none",
|
|
207
|
+
background: "transparent",
|
|
208
|
+
border: "0",
|
|
209
|
+
boxShadow: "none",
|
|
210
|
+
outline: "0",
|
|
211
|
+
padding: "0",
|
|
212
|
+
margin: "0",
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
calendarGridWrapClasses() {
|
|
216
|
+
return ["flex w-full flex-col items-start"];
|
|
217
|
+
}
|
|
218
|
+
weekdayRowClasses() {
|
|
219
|
+
return ["flex w-full items-center"];
|
|
220
|
+
}
|
|
221
|
+
weekdayCellClasses() {
|
|
222
|
+
return [
|
|
223
|
+
"text-muted-foreground flex h-[21px] w-8 items-center justify-center rounded-md text-xs leading-4",
|
|
224
|
+
];
|
|
225
|
+
}
|
|
226
|
+
weekRowClasses() {
|
|
227
|
+
return ["flex w-full items-start pt-2"];
|
|
228
|
+
}
|
|
229
|
+
dayCellClasses(cell) {
|
|
230
|
+
return [
|
|
231
|
+
"relative flex h-8 w-8 shrink-0 items-center justify-center",
|
|
232
|
+
cell.rangeFill ? "bg-accent" : "",
|
|
233
|
+
cell.rangeLeftCap ? "rounded-l-md" : "",
|
|
234
|
+
cell.rangeRightCap ? "rounded-r-md" : "",
|
|
235
|
+
];
|
|
236
|
+
}
|
|
237
|
+
dayButtonClasses(cell) {
|
|
238
|
+
return [
|
|
239
|
+
"relative z-10 flex h-8 w-8 appearance-none box-border items-center justify-center rounded-md border-0 p-0 text-sm leading-5",
|
|
240
|
+
cell.selected
|
|
241
|
+
? "bg-primary text-primary-foreground"
|
|
242
|
+
: cell.rangeFill
|
|
243
|
+
? "bg-transparent text-accent-foreground"
|
|
244
|
+
: "bg-transparent text-foreground",
|
|
245
|
+
cell.muted && !cell.rangeFill ? "opacity-50" : "",
|
|
246
|
+
cell.disabled ? "cursor-not-allowed opacity-40" : "",
|
|
247
|
+
!cell.disabled && !this.readonly && !cell.selected
|
|
248
|
+
? "hover:bg-accent/70"
|
|
249
|
+
: "",
|
|
250
|
+
];
|
|
251
|
+
}
|
|
252
|
+
dayLabelClasses(_cell) {
|
|
253
|
+
return ["font-normal"];
|
|
254
|
+
}
|
|
255
|
+
goToPreviousMonth() {
|
|
256
|
+
this.setAnchorMonth(this.addMonths(this.getAnchorMonth(), -1));
|
|
257
|
+
}
|
|
258
|
+
goToNextMonth() {
|
|
259
|
+
this.setAnchorMonth(this.addMonths(this.getAnchorMonth(), 1));
|
|
260
|
+
}
|
|
261
|
+
onSingleMonthChange(monthValue) {
|
|
262
|
+
const month = Number(monthValue);
|
|
263
|
+
if (Number.isNaN(month) || month < 0 || month > 11) {
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
const anchor = this.getAnchorMonth();
|
|
267
|
+
this.setAnchorMonth(new Date(anchor.getFullYear(), month, 1));
|
|
268
|
+
}
|
|
269
|
+
onSingleYearChange(yearValue) {
|
|
270
|
+
const year = Number(yearValue);
|
|
271
|
+
if (Number.isNaN(year)) {
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
const anchor = this.getAnchorMonth();
|
|
275
|
+
this.setAnchorMonth(new Date(year, anchor.getMonth(), 1));
|
|
276
|
+
}
|
|
277
|
+
onDatePressed(cell) {
|
|
278
|
+
const date = this.cloneDate(cell.date);
|
|
279
|
+
if (cell.disabled) {
|
|
280
|
+
this.disabledDateClick.emit(date);
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
if (this.readonly) {
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
this.dateClick.emit(date);
|
|
287
|
+
if (this.resolvedVariant === "single") {
|
|
288
|
+
this._value = date;
|
|
289
|
+
this.valueChange.emit(this.cloneDate(date));
|
|
290
|
+
this.syncVisibleMonthToDate(date);
|
|
291
|
+
this.cdr.markForCheck();
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
this.handleRangeSelection(date);
|
|
295
|
+
this.cdr.markForCheck();
|
|
296
|
+
}
|
|
297
|
+
handleRangeSelection(date) {
|
|
298
|
+
const current = this._rangeValue;
|
|
299
|
+
const currentStart = current?.start ? this.cloneDate(current.start) : null;
|
|
300
|
+
const currentEnd = current?.end ? this.cloneDate(current.end) : null;
|
|
301
|
+
if (!currentStart || (currentStart && currentEnd)) {
|
|
302
|
+
this._rangeValue = { start: date, end: null };
|
|
303
|
+
this.rangeValueChange.emit({ start: this.cloneDate(date), end: null });
|
|
304
|
+
this.syncVisibleMonthToDate(date);
|
|
305
|
+
return;
|
|
306
|
+
}
|
|
307
|
+
if (this.isSameDay(currentStart, date) && !this.allowSameDayRange) {
|
|
308
|
+
this._rangeValue = { start: date, end: null };
|
|
309
|
+
this.rangeValueChange.emit({ start: this.cloneDate(date), end: null });
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
const start = this.compareDate(date, currentStart) < 0 ? date : currentStart;
|
|
313
|
+
const end = this.compareDate(date, currentStart) < 0 ? currentStart : date;
|
|
314
|
+
if (this.rangeContainsBlockedDate(start, end)) {
|
|
315
|
+
this.disabledDateClick.emit(this.cloneDate(date));
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
this._rangeValue = { start, end };
|
|
319
|
+
this.rangeValueChange.emit({
|
|
320
|
+
start: this.cloneDate(start),
|
|
321
|
+
end: this.cloneDate(end),
|
|
322
|
+
});
|
|
323
|
+
this.syncVisibleMonthToDate(start);
|
|
324
|
+
}
|
|
325
|
+
buildMonthWeeks(month, includeRange) {
|
|
326
|
+
const firstOfMonth = this.startOfMonth(month);
|
|
327
|
+
const start = this.startOfWeek(firstOfMonth);
|
|
328
|
+
const end = this.endOfWeek(this.endOfMonth(firstOfMonth));
|
|
329
|
+
const weeks = [];
|
|
330
|
+
let cursor = this.cloneDate(start);
|
|
331
|
+
while (this.compareDate(cursor, end) <= 0) {
|
|
332
|
+
const row = [];
|
|
333
|
+
for (let col = 0; col < 7; col += 1) {
|
|
334
|
+
row.push(this.buildCell(cursor, month, includeRange));
|
|
335
|
+
cursor = this.addDays(cursor, 1);
|
|
336
|
+
}
|
|
337
|
+
weeks.push(row);
|
|
338
|
+
}
|
|
339
|
+
for (const row of weeks) {
|
|
340
|
+
for (let col = 0; col < row.length; col += 1) {
|
|
341
|
+
const cell = row[col];
|
|
342
|
+
if (!cell.inRange) {
|
|
343
|
+
continue;
|
|
344
|
+
}
|
|
345
|
+
const leftInRow = col > 0 ? row[col - 1].inRange : false;
|
|
346
|
+
const rightInRow = col < row.length - 1 ? row[col + 1].inRange : false;
|
|
347
|
+
cell.rangeLeftCap = !leftInRow;
|
|
348
|
+
cell.rangeRightCap = !rightInRow;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
return weeks;
|
|
352
|
+
}
|
|
353
|
+
buildCell(date, visibleMonth, includeRange) {
|
|
354
|
+
const normalized = this.cloneDate(date);
|
|
355
|
+
const inCurrentMonth = normalized.getMonth() === visibleMonth.getMonth() &&
|
|
356
|
+
normalized.getFullYear() === visibleMonth.getFullYear();
|
|
357
|
+
const disabled = this.isBlocked(normalized);
|
|
358
|
+
const selectedSingle = this.resolvedVariant === "single" &&
|
|
359
|
+
!!this._value &&
|
|
360
|
+
this.isSameDay(normalized, this._value);
|
|
361
|
+
const rangeStart = includeRange &&
|
|
362
|
+
!!this._rangeValue?.start &&
|
|
363
|
+
this.isSameDay(normalized, this._rangeValue.start);
|
|
364
|
+
const rangeEnd = includeRange &&
|
|
365
|
+
!!this._rangeValue?.end &&
|
|
366
|
+
this.isSameDay(normalized, this._rangeValue.end);
|
|
367
|
+
const inRange = includeRange &&
|
|
368
|
+
!!this._rangeValue?.start &&
|
|
369
|
+
!!this._rangeValue?.end &&
|
|
370
|
+
this.compareDate(normalized, this._rangeValue.start) >= 0 &&
|
|
371
|
+
this.compareDate(normalized, this._rangeValue.end) <= 0;
|
|
372
|
+
return {
|
|
373
|
+
date: normalized,
|
|
374
|
+
label: normalized.getDate(),
|
|
375
|
+
muted: !inCurrentMonth,
|
|
376
|
+
disabled,
|
|
377
|
+
selected: selectedSingle || rangeStart || rangeEnd,
|
|
378
|
+
inRange,
|
|
379
|
+
rangeFill: inRange,
|
|
380
|
+
rangeLeftCap: false,
|
|
381
|
+
rangeRightCap: false,
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
getAnchorMonth() {
|
|
385
|
+
let candidate = null;
|
|
386
|
+
if (this._month) {
|
|
387
|
+
candidate = this.cloneDate(this._month);
|
|
388
|
+
}
|
|
389
|
+
else if (this.resolvedVariant === "single" && this._value) {
|
|
390
|
+
candidate = this.startOfMonth(this._value);
|
|
391
|
+
}
|
|
392
|
+
else if (this.resolvedVariant === "range" && this._rangeValue?.start) {
|
|
393
|
+
candidate = this.startOfMonth(this._rangeValue.start);
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
candidate = this.startOfMonth(new Date());
|
|
397
|
+
}
|
|
398
|
+
if (!this.isValidDate(candidate)) {
|
|
399
|
+
return this.startOfMonth(new Date());
|
|
400
|
+
}
|
|
401
|
+
return candidate;
|
|
402
|
+
}
|
|
403
|
+
setAnchorMonth(month) {
|
|
404
|
+
const normalized = this.startOfMonth(month);
|
|
405
|
+
if (!this.isValidDate(normalized)) {
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
this._month = normalized;
|
|
409
|
+
this.monthChange.emit(this.cloneDate(this._month));
|
|
410
|
+
}
|
|
411
|
+
syncVisibleMonthToDate(date) {
|
|
412
|
+
const nextMonth = this.startOfMonth(date);
|
|
413
|
+
if (!this._month || !this.isSameMonth(this._month, nextMonth)) {
|
|
414
|
+
this._month = nextMonth;
|
|
415
|
+
this.monthChange.emit(this.cloneDate(nextMonth));
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
isBlocked(date) {
|
|
419
|
+
if (this.minDate && this.compareDate(date, this.minDate) < 0) {
|
|
420
|
+
return true;
|
|
421
|
+
}
|
|
422
|
+
if (this.maxDate && this.compareDate(date, this.maxDate) > 0) {
|
|
423
|
+
return true;
|
|
424
|
+
}
|
|
425
|
+
const blockedSet = new Set((this.disabledDates || []).map((item) => this.dateKey(item)));
|
|
426
|
+
if (blockedSet.has(this.dateKey(date))) {
|
|
427
|
+
return true;
|
|
428
|
+
}
|
|
429
|
+
return !!this.isDateDisabled?.(this.cloneDate(date));
|
|
430
|
+
}
|
|
431
|
+
rangeContainsBlockedDate(start, end) {
|
|
432
|
+
let cursor = this.cloneDate(start);
|
|
433
|
+
while (this.compareDate(cursor, end) <= 0) {
|
|
434
|
+
if (this.isBlocked(cursor)) {
|
|
435
|
+
return true;
|
|
436
|
+
}
|
|
437
|
+
cursor = this.addDays(cursor, 1);
|
|
438
|
+
}
|
|
439
|
+
return false;
|
|
440
|
+
}
|
|
441
|
+
normalizeDate(value) {
|
|
442
|
+
if (!(value instanceof Date) || Number.isNaN(value.getTime())) {
|
|
443
|
+
return null;
|
|
444
|
+
}
|
|
445
|
+
return new Date(value.getFullYear(), value.getMonth(), value.getDate());
|
|
446
|
+
}
|
|
447
|
+
cloneDate(date) {
|
|
448
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
449
|
+
}
|
|
450
|
+
isValidDate(date) {
|
|
451
|
+
return !!date && date instanceof Date && !Number.isNaN(date.getTime());
|
|
452
|
+
}
|
|
453
|
+
startOfMonth(date) {
|
|
454
|
+
return new Date(date.getFullYear(), date.getMonth(), 1);
|
|
455
|
+
}
|
|
456
|
+
endOfMonth(date) {
|
|
457
|
+
return new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
|
458
|
+
}
|
|
459
|
+
startOfWeek(date) {
|
|
460
|
+
return this.addDays(date, -date.getDay());
|
|
461
|
+
}
|
|
462
|
+
endOfWeek(date) {
|
|
463
|
+
return this.addDays(date, 6 - date.getDay());
|
|
464
|
+
}
|
|
465
|
+
addMonths(date, months) {
|
|
466
|
+
return new Date(date.getFullYear(), date.getMonth() + months, 1);
|
|
467
|
+
}
|
|
468
|
+
addDays(date, days) {
|
|
469
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate() + days);
|
|
470
|
+
}
|
|
471
|
+
compareDate(a, b) {
|
|
472
|
+
return this.dateValue(a) - this.dateValue(b);
|
|
473
|
+
}
|
|
474
|
+
dateValue(date) {
|
|
475
|
+
return (Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()) / DAY_MS);
|
|
476
|
+
}
|
|
477
|
+
isSameDay(a, b) {
|
|
478
|
+
return this.compareDate(a, b) === 0;
|
|
479
|
+
}
|
|
480
|
+
isSameMonth(a, b) {
|
|
481
|
+
return a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth();
|
|
482
|
+
}
|
|
483
|
+
dateKey(date) {
|
|
484
|
+
const y = date.getFullYear();
|
|
485
|
+
const m = String(date.getMonth() + 1).padStart(2, "0");
|
|
486
|
+
const d = String(date.getDate()).padStart(2, "0");
|
|
487
|
+
return `${y}-${m}-${d}`;
|
|
488
|
+
}
|
|
489
|
+
formatMonthShort(date) {
|
|
490
|
+
return date.toLocaleString("en-US", { month: "short" });
|
|
491
|
+
}
|
|
492
|
+
formatMonthYear(date) {
|
|
493
|
+
return date.toLocaleString("en-US", { month: "long", year: "numeric" });
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
PdmCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PdmCalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
497
|
+
PdmCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: PdmCalendarComponent, selector: "pdm-calendar", inputs: { variant: "variant", className: "className", disabledDates: "disabledDates", minDate: "minDate", maxDate: "maxDate", minYear: "minYear", maxYear: "maxYear", isDateDisabled: "isDateDisabled", allowSameDayRange: "allowSameDayRange", readonly: "readonly", value: "value", rangeValue: "rangeValue", month: "month" }, outputs: { valueChange: "valueChange", rangeValueChange: "rangeValueChange", monthChange: "monthChange", dateClick: "dateClick", disabledDateClick: "disabledDateClick" }, ngImport: i0, template: "<div [ngClass]=\"rootClasses\" [ngStyle]=\"rootStyle\">\n <div *ngFor=\"let month of visibleMonths; let monthIndex = index; trackBy: trackByIndex\" [ngClass]=\"monthPanelClasses(monthIndex)\">\n <div [ngClass]=\"headerClasses(month)\">\n <button\n *ngIf=\"month.showPrevButton; else prevPlaceholder\"\n type=\"button\"\n [ngClass]=\"navButtonClasses()\"\n aria-label=\"Previous month\"\n (click)=\"goToPreviousMonth()\"\n [disabled]=\"readonly\"\n >\n <svg viewBox=\"0 0 24 24\" class=\"h-4 w-4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\">\n <path d=\"m15 18-6-6 6-6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>\n </button>\n <ng-template #prevPlaceholder>\n <div [ngClass]=\"navPlaceholderClasses()\" aria-hidden=\"true\"></div>\n </ng-template>\n\n <ng-container *ngIf=\"month.titleStyle === 'dropdowns'; else plainTitle\">\n <div [ngClass]=\"dropdownWrapClasses()\">\n <div [ngClass]=\"dropdownClasses('w-16 sm:w-[72px]')\">\n <select\n [ngClass]=\"dropdownSelectClasses()\"\n [ngStyle]=\"dropdownSelectStyle\"\n [value]=\"singleHeaderMonth\"\n aria-label=\"Month\"\n (change)=\"onSingleMonthChange($any($event.target).value)\"\n >\n <option\n *ngFor=\"let monthOption of monthOptions\"\n [value]=\"monthOption.value\"\n [selected]=\"monthOption.value === singleHeaderMonth\"\n >\n {{ monthOption.label }}\n </option>\n </select>\n <svg viewBox=\"0 0 24 24\" class=\"h-3 w-3 text-foreground\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\">\n <path d=\"m6 9 6 6 6-6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>\n </div>\n <div [ngClass]=\"dropdownClasses('w-16 sm:w-[82px]')\">\n <select\n [ngClass]=\"dropdownSelectClasses()\"\n [ngStyle]=\"dropdownSelectStyle\"\n [value]=\"singleHeaderYear\"\n aria-label=\"Year\"\n (change)=\"onSingleYearChange($any($event.target).value)\"\n >\n <option\n *ngFor=\"let year of yearOptions\"\n [value]=\"year\"\n [selected]=\"year === singleHeaderYear\"\n >\n {{ year }}\n </option>\n </select>\n <svg viewBox=\"0 0 24 24\" class=\"h-3 w-3 text-foreground\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\">\n <path d=\"m6 9 6 6 6-6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>\n </div>\n </div>\n </ng-container>\n\n <ng-template #plainTitle>\n <div class=\"flex min-w-0 flex-1 items-center justify-center\">\n <p class=\"m-0 text-foreground text-center text-sm font-medium leading-5\">\n {{ month.title }}\n </p>\n </div>\n </ng-template>\n\n <button\n *ngIf=\"month.showNextButton; else nextPlaceholder\"\n type=\"button\"\n [ngClass]=\"navButtonClasses()\"\n aria-label=\"Next month\"\n (click)=\"goToNextMonth()\"\n [disabled]=\"readonly\"\n >\n <svg viewBox=\"0 0 24 24\" class=\"h-4 w-4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\">\n <path d=\"m9 18 6-6-6-6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>\n </button>\n <ng-template #nextPlaceholder>\n <div [ngClass]=\"navPlaceholderClasses()\" aria-hidden=\"true\"></div>\n </ng-template>\n </div>\n\n <div [ngClass]=\"calendarGridWrapClasses()\">\n <div [ngClass]=\"weekdayRowClasses()\">\n <div *ngFor=\"let day of weekdays; trackBy: trackByIndex\" [ngClass]=\"weekdayCellClasses()\">\n <span>{{ day }}</span>\n </div>\n </div>\n\n <div *ngFor=\"let week of month.weeks; trackBy: trackByIndex\" [ngClass]=\"weekRowClasses()\">\n <div *ngFor=\"let cell of week; trackBy: trackByDate\" [ngClass]=\"dayCellClasses(cell)\">\n <button\n type=\"button\"\n [ngClass]=\"dayButtonClasses(cell)\"\n [disabled]=\"readonly\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.aria-disabled]=\"cell.disabled || readonly\"\n [attr.title]=\"cell.date | date : 'yyyy-MM-dd'\"\n (click)=\"onDatePressed(cell)\"\n >\n <span [ngClass]=\"dayLabelClasses(cell)\">{{ cell.label }}</span>\n </button>\n </div>\n </div>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PdmCalendarComponent, decorators: [{
|
|
499
|
+
type: Component,
|
|
500
|
+
args: [{ selector: "pdm-calendar", changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"rootClasses\" [ngStyle]=\"rootStyle\">\n <div *ngFor=\"let month of visibleMonths; let monthIndex = index; trackBy: trackByIndex\" [ngClass]=\"monthPanelClasses(monthIndex)\">\n <div [ngClass]=\"headerClasses(month)\">\n <button\n *ngIf=\"month.showPrevButton; else prevPlaceholder\"\n type=\"button\"\n [ngClass]=\"navButtonClasses()\"\n aria-label=\"Previous month\"\n (click)=\"goToPreviousMonth()\"\n [disabled]=\"readonly\"\n >\n <svg viewBox=\"0 0 24 24\" class=\"h-4 w-4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\">\n <path d=\"m15 18-6-6 6-6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>\n </button>\n <ng-template #prevPlaceholder>\n <div [ngClass]=\"navPlaceholderClasses()\" aria-hidden=\"true\"></div>\n </ng-template>\n\n <ng-container *ngIf=\"month.titleStyle === 'dropdowns'; else plainTitle\">\n <div [ngClass]=\"dropdownWrapClasses()\">\n <div [ngClass]=\"dropdownClasses('w-16 sm:w-[72px]')\">\n <select\n [ngClass]=\"dropdownSelectClasses()\"\n [ngStyle]=\"dropdownSelectStyle\"\n [value]=\"singleHeaderMonth\"\n aria-label=\"Month\"\n (change)=\"onSingleMonthChange($any($event.target).value)\"\n >\n <option\n *ngFor=\"let monthOption of monthOptions\"\n [value]=\"monthOption.value\"\n [selected]=\"monthOption.value === singleHeaderMonth\"\n >\n {{ monthOption.label }}\n </option>\n </select>\n <svg viewBox=\"0 0 24 24\" class=\"h-3 w-3 text-foreground\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\">\n <path d=\"m6 9 6 6 6-6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>\n </div>\n <div [ngClass]=\"dropdownClasses('w-16 sm:w-[82px]')\">\n <select\n [ngClass]=\"dropdownSelectClasses()\"\n [ngStyle]=\"dropdownSelectStyle\"\n [value]=\"singleHeaderYear\"\n aria-label=\"Year\"\n (change)=\"onSingleYearChange($any($event.target).value)\"\n >\n <option\n *ngFor=\"let year of yearOptions\"\n [value]=\"year\"\n [selected]=\"year === singleHeaderYear\"\n >\n {{ year }}\n </option>\n </select>\n <svg viewBox=\"0 0 24 24\" class=\"h-3 w-3 text-foreground\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\">\n <path d=\"m6 9 6 6 6-6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>\n </div>\n </div>\n </ng-container>\n\n <ng-template #plainTitle>\n <div class=\"flex min-w-0 flex-1 items-center justify-center\">\n <p class=\"m-0 text-foreground text-center text-sm font-medium leading-5\">\n {{ month.title }}\n </p>\n </div>\n </ng-template>\n\n <button\n *ngIf=\"month.showNextButton; else nextPlaceholder\"\n type=\"button\"\n [ngClass]=\"navButtonClasses()\"\n aria-label=\"Next month\"\n (click)=\"goToNextMonth()\"\n [disabled]=\"readonly\"\n >\n <svg viewBox=\"0 0 24 24\" class=\"h-4 w-4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\">\n <path d=\"m9 18 6-6-6-6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>\n </button>\n <ng-template #nextPlaceholder>\n <div [ngClass]=\"navPlaceholderClasses()\" aria-hidden=\"true\"></div>\n </ng-template>\n </div>\n\n <div [ngClass]=\"calendarGridWrapClasses()\">\n <div [ngClass]=\"weekdayRowClasses()\">\n <div *ngFor=\"let day of weekdays; trackBy: trackByIndex\" [ngClass]=\"weekdayCellClasses()\">\n <span>{{ day }}</span>\n </div>\n </div>\n\n <div *ngFor=\"let week of month.weeks; trackBy: trackByIndex\" [ngClass]=\"weekRowClasses()\">\n <div *ngFor=\"let cell of week; trackBy: trackByDate\" [ngClass]=\"dayCellClasses(cell)\">\n <button\n type=\"button\"\n [ngClass]=\"dayButtonClasses(cell)\"\n [disabled]=\"readonly\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.aria-disabled]=\"cell.disabled || readonly\"\n [attr.title]=\"cell.date | date : 'yyyy-MM-dd'\"\n (click)=\"onDatePressed(cell)\"\n >\n <span [ngClass]=\"dayLabelClasses(cell)\">{{ cell.label }}</span>\n </button>\n </div>\n </div>\n </div>\n </div>\n</div>\n" }]
|
|
501
|
+
}], propDecorators: { variant: [{
|
|
502
|
+
type: Input
|
|
503
|
+
}], className: [{
|
|
504
|
+
type: Input
|
|
505
|
+
}], disabledDates: [{
|
|
506
|
+
type: Input
|
|
507
|
+
}], minDate: [{
|
|
508
|
+
type: Input
|
|
509
|
+
}], maxDate: [{
|
|
510
|
+
type: Input
|
|
511
|
+
}], minYear: [{
|
|
512
|
+
type: Input
|
|
513
|
+
}], maxYear: [{
|
|
514
|
+
type: Input
|
|
515
|
+
}], isDateDisabled: [{
|
|
516
|
+
type: Input
|
|
517
|
+
}], allowSameDayRange: [{
|
|
518
|
+
type: Input
|
|
519
|
+
}], readonly: [{
|
|
520
|
+
type: Input
|
|
521
|
+
}], valueChange: [{
|
|
522
|
+
type: Output
|
|
523
|
+
}], rangeValueChange: [{
|
|
524
|
+
type: Output
|
|
525
|
+
}], monthChange: [{
|
|
526
|
+
type: Output
|
|
527
|
+
}], dateClick: [{
|
|
528
|
+
type: Output
|
|
529
|
+
}], disabledDateClick: [{
|
|
530
|
+
type: Output
|
|
531
|
+
}], value: [{
|
|
532
|
+
type: Input
|
|
533
|
+
}], rangeValue: [{
|
|
534
|
+
type: Input
|
|
535
|
+
}], month: [{
|
|
536
|
+
type: Input
|
|
537
|
+
}] } });
|
|
538
|
+
|
|
539
|
+
let nextDatePickerId = 0;
|
|
540
|
+
class PdmDatePickerComponent {
|
|
541
|
+
constructor(cdr, overlay, viewContainerRef) {
|
|
542
|
+
this.cdr = cdr;
|
|
543
|
+
this.overlay = overlay;
|
|
544
|
+
this.viewContainerRef = viewContainerRef;
|
|
545
|
+
this._value = null;
|
|
546
|
+
this._rangeValue = null;
|
|
547
|
+
this._open = false;
|
|
548
|
+
this.instanceId = `pdm-date-picker-${++nextDatePickerId}`;
|
|
549
|
+
this.triggerFocused = false;
|
|
550
|
+
this.overlayRef = null;
|
|
551
|
+
this.backdropSub = null;
|
|
552
|
+
this.id = "";
|
|
553
|
+
this.variant = "single";
|
|
554
|
+
this.label = "";
|
|
555
|
+
this.labelClassName = "";
|
|
556
|
+
this.className = "";
|
|
557
|
+
this.triggerClassName = "";
|
|
558
|
+
/**
|
|
559
|
+
* Additional CSS classes applied to the overlay panel.
|
|
560
|
+
* Backward-compatible: mapped to `overlayOptions.panelClass` when `overlayOptions` is not set.
|
|
561
|
+
* When both are supplied, `overlayOptions.panelClass` takes precedence.
|
|
562
|
+
*/
|
|
563
|
+
this.panelClassName = "";
|
|
564
|
+
this.placeholder = "Pick a date";
|
|
565
|
+
this.rangePlaceholder = "Pick a date range";
|
|
566
|
+
this.format = "MMM d, yyyy";
|
|
567
|
+
this.disabled = false;
|
|
568
|
+
this.readonly = false;
|
|
569
|
+
this.required = false;
|
|
570
|
+
this.invalid = false;
|
|
571
|
+
this.allowSameDayRange = true;
|
|
572
|
+
this.closeOnSelect = true;
|
|
573
|
+
this.minDate = null;
|
|
574
|
+
this.maxDate = null;
|
|
575
|
+
this.minYear = null;
|
|
576
|
+
this.maxYear = null;
|
|
577
|
+
this.disabledDates = [];
|
|
578
|
+
this.isDateDisabled = null;
|
|
579
|
+
this.valueChange = new EventEmitter();
|
|
580
|
+
this.rangeValueChange = new EventEmitter();
|
|
581
|
+
this.openChange = new EventEmitter();
|
|
582
|
+
this.monthChange = new EventEmitter();
|
|
583
|
+
}
|
|
584
|
+
set open(value) {
|
|
585
|
+
if (this._open === !!value)
|
|
586
|
+
return;
|
|
587
|
+
if (value) {
|
|
588
|
+
this.openPanel();
|
|
589
|
+
}
|
|
590
|
+
else {
|
|
591
|
+
this.closePanel();
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
get open() {
|
|
595
|
+
return this._open;
|
|
596
|
+
}
|
|
597
|
+
set value(value) {
|
|
598
|
+
this._value = this.normalizeDate(value);
|
|
599
|
+
this.cdr.markForCheck();
|
|
600
|
+
}
|
|
601
|
+
get value() {
|
|
602
|
+
return this._value;
|
|
603
|
+
}
|
|
604
|
+
set rangeValue(value) {
|
|
605
|
+
this._rangeValue = value
|
|
606
|
+
? {
|
|
607
|
+
start: this.normalizeDate(value.start),
|
|
608
|
+
end: this.normalizeDate(value.end),
|
|
609
|
+
}
|
|
610
|
+
: null;
|
|
611
|
+
this.cdr.markForCheck();
|
|
612
|
+
}
|
|
613
|
+
get rangeValue() {
|
|
614
|
+
return this._rangeValue;
|
|
615
|
+
}
|
|
616
|
+
ngOnDestroy() {
|
|
617
|
+
this.destroyOverlay();
|
|
618
|
+
}
|
|
619
|
+
get resolvedVariant() {
|
|
620
|
+
return this.variant === "range" ? "range" : "single";
|
|
621
|
+
}
|
|
622
|
+
get triggerId() {
|
|
623
|
+
return this.id || `${this.instanceId}-trigger`;
|
|
624
|
+
}
|
|
625
|
+
get panelId() {
|
|
626
|
+
return `${this.id || this.instanceId}-panel`;
|
|
627
|
+
}
|
|
628
|
+
get hasSingleValue() {
|
|
629
|
+
return this.resolvedVariant === "single" && !!this._value;
|
|
630
|
+
}
|
|
631
|
+
get hasRangeValue() {
|
|
632
|
+
return this.resolvedVariant === "range" && !!this._rangeValue?.start;
|
|
633
|
+
}
|
|
634
|
+
get displayText() {
|
|
635
|
+
if (this.resolvedVariant === "single") {
|
|
636
|
+
return this._value ? this.formatDate(this._value) : this.placeholder;
|
|
637
|
+
}
|
|
638
|
+
const start = this._rangeValue?.start ?? null;
|
|
639
|
+
const end = this._rangeValue?.end ?? null;
|
|
640
|
+
if (!start) {
|
|
641
|
+
return this.rangePlaceholder;
|
|
642
|
+
}
|
|
643
|
+
if (!end) {
|
|
644
|
+
return `${this.formatDate(start)} -`;
|
|
645
|
+
}
|
|
646
|
+
return `${this.formatDate(start)} - ${this.formatDate(end)}`;
|
|
647
|
+
}
|
|
648
|
+
get textClasses() {
|
|
649
|
+
const hasValue = this.resolvedVariant === "single"
|
|
650
|
+
? this.hasSingleValue
|
|
651
|
+
: this.hasRangeValue;
|
|
652
|
+
return [
|
|
653
|
+
"min-w-0 flex-1 truncate text-left text-sm leading-5",
|
|
654
|
+
hasValue ? "text-foreground" : "text-muted-foreground",
|
|
655
|
+
];
|
|
656
|
+
}
|
|
657
|
+
get rootClasses() {
|
|
658
|
+
return [
|
|
659
|
+
"grid gap-2",
|
|
660
|
+
this.resolvedVariant === "range" ? "w-[280px]" : "w-[197px]",
|
|
661
|
+
this.className,
|
|
662
|
+
];
|
|
663
|
+
}
|
|
664
|
+
get triggerClasses() {
|
|
665
|
+
const focusStyle = this._open || this.triggerFocused;
|
|
666
|
+
return [
|
|
667
|
+
"border-input focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 aria-invalid:ring-2 aria-invalid:ring-destructive aria-invalid:border-destructive relative flex w-full appearance-none box-border items-center gap-2 overflow-hidden rounded-lg border border-solid bg-background px-3 py-[7.5px] text-left text-sm shadow-sm outline-none transition-colors",
|
|
668
|
+
"min-h-[36px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
669
|
+
focusStyle ? "border-ring ring-2 ring-ring/50" : "",
|
|
670
|
+
this.invalid ? "border-destructive ring-destructive/20" : "",
|
|
671
|
+
this.triggerClassName,
|
|
672
|
+
];
|
|
673
|
+
}
|
|
674
|
+
toggleOpen() {
|
|
675
|
+
if (this.disabled || this.readonly) {
|
|
676
|
+
return;
|
|
677
|
+
}
|
|
678
|
+
this.setOpen(!this._open);
|
|
679
|
+
}
|
|
680
|
+
onTriggerFocus() {
|
|
681
|
+
this.triggerFocused = true;
|
|
682
|
+
this.cdr.markForCheck();
|
|
683
|
+
}
|
|
684
|
+
onTriggerBlur() {
|
|
685
|
+
this.triggerFocused = false;
|
|
686
|
+
this.cdr.markForCheck();
|
|
687
|
+
}
|
|
688
|
+
onCalendarValueChange(value) {
|
|
689
|
+
this._value = this.normalizeDate(value);
|
|
690
|
+
this.valueChange.emit(this._value ? this.cloneDate(this._value) : null);
|
|
691
|
+
if (this.closeOnSelect && this._value) {
|
|
692
|
+
this.setOpen(false);
|
|
693
|
+
}
|
|
694
|
+
else {
|
|
695
|
+
this.cdr.markForCheck();
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
onCalendarRangeValueChange(value) {
|
|
699
|
+
this._rangeValue = value
|
|
700
|
+
? {
|
|
701
|
+
start: this.normalizeDate(value.start),
|
|
702
|
+
end: this.normalizeDate(value.end),
|
|
703
|
+
}
|
|
704
|
+
: null;
|
|
705
|
+
this.rangeValueChange.emit(this._rangeValue
|
|
706
|
+
? {
|
|
707
|
+
start: this._rangeValue.start
|
|
708
|
+
? this.cloneDate(this._rangeValue.start)
|
|
709
|
+
: null,
|
|
710
|
+
end: this._rangeValue.end
|
|
711
|
+
? this.cloneDate(this._rangeValue.end)
|
|
712
|
+
: null,
|
|
713
|
+
}
|
|
714
|
+
: null);
|
|
715
|
+
if (this.closeOnSelect &&
|
|
716
|
+
this._rangeValue?.start &&
|
|
717
|
+
this._rangeValue?.end) {
|
|
718
|
+
this.setOpen(false);
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
721
|
+
this.cdr.markForCheck();
|
|
722
|
+
}
|
|
723
|
+
onCalendarMonthChange(month) {
|
|
724
|
+
this.monthChange.emit(this.cloneDate(month));
|
|
725
|
+
}
|
|
726
|
+
onEscape() {
|
|
727
|
+
if (this._open) {
|
|
728
|
+
this.setOpen(false);
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
setOpen(nextOpen) {
|
|
732
|
+
if (this._open === nextOpen) {
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
if (nextOpen) {
|
|
736
|
+
this.openPanel();
|
|
737
|
+
}
|
|
738
|
+
else {
|
|
739
|
+
this.closePanel();
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
openPanel() {
|
|
743
|
+
if (this.overlayRef)
|
|
744
|
+
return;
|
|
745
|
+
const triggerEl = this.triggerRef?.nativeElement;
|
|
746
|
+
if (!triggerEl)
|
|
747
|
+
return;
|
|
748
|
+
this._open = true;
|
|
749
|
+
this.openChange.emit(true);
|
|
750
|
+
this.cdr.markForCheck();
|
|
751
|
+
const positionStrategy = createFlexiblePositionStrategy(this.overlay, triggerEl, 8);
|
|
752
|
+
// CRITICAL: Use mergeOverlayPanelClass to ensure z-index is never lost.
|
|
753
|
+
// Consumer classes are appended AFTER base z-index.
|
|
754
|
+
const zIndexEnforced = mergeOverlayPanelClass(OVERLAY_BASE_Z_INDEX, this.panelClassName);
|
|
755
|
+
// Resolve panelClass: overlayOptions.panelClass wins; otherwise use z-index enforced.
|
|
756
|
+
const resolvedPanelClass = this.overlayOptions?.panelClass
|
|
757
|
+
? mergeOverlayPanelClass(OVERLAY_BASE_Z_INDEX, this.overlayOptions.panelClass)
|
|
758
|
+
: zIndexEnforced;
|
|
759
|
+
this.overlayRef = this.overlay.create({
|
|
760
|
+
positionStrategy,
|
|
761
|
+
scrollStrategy: this.overlay.scrollStrategies.reposition(),
|
|
762
|
+
// Consumer overrides are spread first.
|
|
763
|
+
...this.overlayOptions,
|
|
764
|
+
// panelClass always enforced last to preserve z-index.
|
|
765
|
+
panelClass: resolvedPanelClass,
|
|
766
|
+
});
|
|
767
|
+
const portal = new TemplatePortal(this.panelTemplateRef, this.viewContainerRef);
|
|
768
|
+
this.overlayRef.attach(portal);
|
|
769
|
+
this.backdropSub = this.overlayRef
|
|
770
|
+
.outsidePointerEvents()
|
|
771
|
+
.subscribe((event) => {
|
|
772
|
+
const target = event.target;
|
|
773
|
+
if (!triggerEl.contains(target)) {
|
|
774
|
+
this.closePanel();
|
|
775
|
+
}
|
|
776
|
+
});
|
|
777
|
+
this.cdr.markForCheck();
|
|
778
|
+
}
|
|
779
|
+
closePanel() {
|
|
780
|
+
if (!this.overlayRef && !this._open)
|
|
781
|
+
return;
|
|
782
|
+
this._open = false;
|
|
783
|
+
this.openChange.emit(false);
|
|
784
|
+
this.destroyOverlay();
|
|
785
|
+
this.cdr.markForCheck();
|
|
786
|
+
}
|
|
787
|
+
destroyOverlay() {
|
|
788
|
+
if (this.backdropSub) {
|
|
789
|
+
this.backdropSub.unsubscribe();
|
|
790
|
+
this.backdropSub = null;
|
|
791
|
+
}
|
|
792
|
+
if (this.overlayRef) {
|
|
793
|
+
this.overlayRef.dispose();
|
|
794
|
+
this.overlayRef = null;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
formatDate(date) {
|
|
798
|
+
try {
|
|
799
|
+
return format(date, this.format || "MMM d, yyyy");
|
|
800
|
+
}
|
|
801
|
+
catch {
|
|
802
|
+
return format(date, "MMM d, yyyy");
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
normalizeDate(value) {
|
|
806
|
+
if (!(value instanceof Date) || Number.isNaN(value.getTime())) {
|
|
807
|
+
return null;
|
|
808
|
+
}
|
|
809
|
+
return new Date(value.getFullYear(), value.getMonth(), value.getDate());
|
|
810
|
+
}
|
|
811
|
+
cloneDate(date) {
|
|
812
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
PdmDatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PdmDatePickerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.Overlay }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
816
|
+
PdmDatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: PdmDatePickerComponent, selector: "pdm-date-picker", inputs: { id: "id", variant: "variant", label: "label", labelClassName: "labelClassName", className: "className", triggerClassName: "triggerClassName", panelClassName: "panelClassName", overlayOptions: "overlayOptions", placeholder: "placeholder", rangePlaceholder: "rangePlaceholder", format: "format", disabled: "disabled", readonly: "readonly", required: "required", invalid: "invalid", allowSameDayRange: "allowSameDayRange", closeOnSelect: "closeOnSelect", minDate: "minDate", maxDate: "maxDate", minYear: "minYear", maxYear: "maxYear", disabledDates: "disabledDates", isDateDisabled: "isDateDisabled", open: "open", value: "value", rangeValue: "rangeValue" }, outputs: { valueChange: "valueChange", rangeValueChange: "rangeValueChange", openChange: "openChange", monthChange: "monthChange" }, host: { listeners: { "document:keydown.escape": "onEscape()" } }, viewQueries: [{ propertyName: "triggerRef", first: true, predicate: ["triggerEl"], descendants: true }, { propertyName: "panelTemplateRef", first: true, predicate: ["panelTemplate"], descendants: true }], ngImport: i0, template: "<div [ngClass]=\"rootClasses\">\n <pdm-label *ngIf=\"label\" [forId]=\"triggerId\" [required]=\"required\" [className]=\"labelClassName\">\n {{ label }}\n </pdm-label>\n\n <button\n #triggerEl\n type=\"button\"\n [id]=\"triggerId\"\n [disabled]=\"disabled\"\n [attr.aria-expanded]=\"open\"\n [attr.aria-controls]=\"panelId\"\n [attr.aria-haspopup]=\"'dialog'\"\n [attr.aria-invalid]=\"invalid\"\n [ngClass]=\"triggerClasses\"\n [attr.title]=\"displayText\"\n (click)=\"toggleOpen()\"\n (focus)=\"onTriggerFocus()\"\n (blur)=\"onTriggerBlur()\"\n >\n <span class=\"flex h-5 w-5 shrink-0 items-center justify-center p-0.5 text-muted-foreground\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\" class=\"h-4 w-4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\">\n <path d=\"M8 2v4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path d=\"M16 2v4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <rect x=\"3\" y=\"4.5\" width=\"18\" height=\"16.5\" rx=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></rect>\n <path d=\"M3 9.5h18\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>\n </span>\n\n <span [ngClass]=\"textClasses\">{{ displayText }}</span>\n </button>\n</div>\n\n<ng-template #panelTemplate>\n <div [id]=\"panelId\" role=\"dialog\" [attr.aria-labelledby]=\"label ? triggerId : null\">\n <pdm-calendar\n [variant]=\"resolvedVariant\"\n [value]=\"value\"\n [rangeValue]=\"rangeValue\"\n [readonly]=\"readonly\"\n [allowSameDayRange]=\"allowSameDayRange\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n [disabledDates]=\"disabledDates\"\n [isDateDisabled]=\"isDateDisabled\"\n (valueChange)=\"onCalendarValueChange($event)\"\n (rangeValueChange)=\"onCalendarRangeValueChange($event)\"\n (monthChange)=\"onCalendarMonthChange($event)\"\n ></pdm-calendar>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.PdmLabelComponent, selector: "pdm-label", inputs: ["forId", "required", "className"] }, { kind: "component", type: PdmCalendarComponent, selector: "pdm-calendar", inputs: ["variant", "className", "disabledDates", "minDate", "maxDate", "minYear", "maxYear", "isDateDisabled", "allowSameDayRange", "readonly", "value", "rangeValue", "month"], outputs: ["valueChange", "rangeValueChange", "monthChange", "dateClick", "disabledDateClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PdmDatePickerComponent, decorators: [{
|
|
818
|
+
type: Component,
|
|
819
|
+
args: [{ selector: "pdm-date-picker", changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"rootClasses\">\n <pdm-label *ngIf=\"label\" [forId]=\"triggerId\" [required]=\"required\" [className]=\"labelClassName\">\n {{ label }}\n </pdm-label>\n\n <button\n #triggerEl\n type=\"button\"\n [id]=\"triggerId\"\n [disabled]=\"disabled\"\n [attr.aria-expanded]=\"open\"\n [attr.aria-controls]=\"panelId\"\n [attr.aria-haspopup]=\"'dialog'\"\n [attr.aria-invalid]=\"invalid\"\n [ngClass]=\"triggerClasses\"\n [attr.title]=\"displayText\"\n (click)=\"toggleOpen()\"\n (focus)=\"onTriggerFocus()\"\n (blur)=\"onTriggerBlur()\"\n >\n <span class=\"flex h-5 w-5 shrink-0 items-center justify-center p-0.5 text-muted-foreground\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\" class=\"h-4 w-4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\">\n <path d=\"M8 2v4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path d=\"M16 2v4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <rect x=\"3\" y=\"4.5\" width=\"18\" height=\"16.5\" rx=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></rect>\n <path d=\"M3 9.5h18\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>\n </span>\n\n <span [ngClass]=\"textClasses\">{{ displayText }}</span>\n </button>\n</div>\n\n<ng-template #panelTemplate>\n <div [id]=\"panelId\" role=\"dialog\" [attr.aria-labelledby]=\"label ? triggerId : null\">\n <pdm-calendar\n [variant]=\"resolvedVariant\"\n [value]=\"value\"\n [rangeValue]=\"rangeValue\"\n [readonly]=\"readonly\"\n [allowSameDayRange]=\"allowSameDayRange\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [minYear]=\"minYear\"\n [maxYear]=\"maxYear\"\n [disabledDates]=\"disabledDates\"\n [isDateDisabled]=\"isDateDisabled\"\n (valueChange)=\"onCalendarValueChange($event)\"\n (rangeValueChange)=\"onCalendarRangeValueChange($event)\"\n (monthChange)=\"onCalendarMonthChange($event)\"\n ></pdm-calendar>\n </div>\n</ng-template>\n" }]
|
|
820
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.Overlay }, { type: i0.ViewContainerRef }]; }, propDecorators: { triggerRef: [{
|
|
821
|
+
type: ViewChild,
|
|
822
|
+
args: ["triggerEl"]
|
|
823
|
+
}], panelTemplateRef: [{
|
|
824
|
+
type: ViewChild,
|
|
825
|
+
args: ["panelTemplate"]
|
|
826
|
+
}], id: [{
|
|
827
|
+
type: Input
|
|
828
|
+
}], variant: [{
|
|
829
|
+
type: Input
|
|
830
|
+
}], label: [{
|
|
831
|
+
type: Input
|
|
832
|
+
}], labelClassName: [{
|
|
833
|
+
type: Input
|
|
834
|
+
}], className: [{
|
|
835
|
+
type: Input
|
|
836
|
+
}], triggerClassName: [{
|
|
837
|
+
type: Input
|
|
838
|
+
}], panelClassName: [{
|
|
839
|
+
type: Input
|
|
840
|
+
}], overlayOptions: [{
|
|
841
|
+
type: Input
|
|
842
|
+
}], placeholder: [{
|
|
843
|
+
type: Input
|
|
844
|
+
}], rangePlaceholder: [{
|
|
845
|
+
type: Input
|
|
846
|
+
}], format: [{
|
|
847
|
+
type: Input
|
|
848
|
+
}], disabled: [{
|
|
849
|
+
type: Input
|
|
850
|
+
}], readonly: [{
|
|
851
|
+
type: Input
|
|
852
|
+
}], required: [{
|
|
853
|
+
type: Input
|
|
854
|
+
}], invalid: [{
|
|
855
|
+
type: Input
|
|
856
|
+
}], allowSameDayRange: [{
|
|
857
|
+
type: Input
|
|
858
|
+
}], closeOnSelect: [{
|
|
859
|
+
type: Input
|
|
860
|
+
}], minDate: [{
|
|
861
|
+
type: Input
|
|
862
|
+
}], maxDate: [{
|
|
863
|
+
type: Input
|
|
864
|
+
}], minYear: [{
|
|
865
|
+
type: Input
|
|
866
|
+
}], maxYear: [{
|
|
867
|
+
type: Input
|
|
868
|
+
}], disabledDates: [{
|
|
869
|
+
type: Input
|
|
870
|
+
}], isDateDisabled: [{
|
|
871
|
+
type: Input
|
|
872
|
+
}], valueChange: [{
|
|
873
|
+
type: Output
|
|
874
|
+
}], rangeValueChange: [{
|
|
875
|
+
type: Output
|
|
876
|
+
}], openChange: [{
|
|
877
|
+
type: Output
|
|
878
|
+
}], monthChange: [{
|
|
879
|
+
type: Output
|
|
880
|
+
}], open: [{
|
|
881
|
+
type: Input
|
|
882
|
+
}], value: [{
|
|
883
|
+
type: Input
|
|
884
|
+
}], rangeValue: [{
|
|
885
|
+
type: Input
|
|
886
|
+
}], onEscape: [{
|
|
887
|
+
type: HostListener,
|
|
888
|
+
args: ["document:keydown.escape"]
|
|
889
|
+
}] } });
|
|
890
|
+
|
|
891
|
+
const COMPONENTS = [PdmCalendarComponent, PdmDatePickerComponent];
|
|
892
|
+
class PdmCalendarModule {
|
|
893
|
+
}
|
|
894
|
+
PdmCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PdmCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
895
|
+
PdmCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: PdmCalendarModule, declarations: [PdmCalendarComponent, PdmDatePickerComponent], imports: [CommonModule, OverlayModule, PdmLabelModule], exports: [PdmCalendarComponent, PdmDatePickerComponent] });
|
|
896
|
+
PdmCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PdmCalendarModule, imports: [CommonModule, OverlayModule, PdmLabelModule] });
|
|
897
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: PdmCalendarModule, decorators: [{
|
|
898
|
+
type: NgModule,
|
|
899
|
+
args: [{
|
|
900
|
+
imports: [CommonModule, OverlayModule, PdmLabelModule],
|
|
901
|
+
declarations: COMPONENTS,
|
|
902
|
+
exports: COMPONENTS,
|
|
903
|
+
}]
|
|
904
|
+
}] });
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Generated bundle index. Do not edit.
|
|
908
|
+
*/
|
|
909
|
+
|
|
910
|
+
export { PdmCalendarComponent, PdmCalendarModule, PdmDatePickerComponent };
|
|
911
|
+
//# sourceMappingURL=pdm-ui-kit-src-calendar.mjs.map
|