pdm-ui-kit 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +20 -13
- package/dist/corelusa-pdm-ui-kit/README.md +0 -79
- package/dist/corelusa-pdm-ui-kit/esm2020/corelusa-pdm-ui-kit.mjs +0 -5
- package/dist/corelusa-pdm-ui-kit/esm2020/lib/components/field/field.component.mjs +0 -52
- package/dist/corelusa-pdm-ui-kit/esm2020/lib/components/input/input.component.mjs +0 -65
- package/dist/corelusa-pdm-ui-kit/esm2020/lib/components/input-group/input-group.component.mjs +0 -54
- package/dist/corelusa-pdm-ui-kit/esm2020/lib/components/input-password/input-password.component.mjs +0 -72
- package/dist/corelusa-pdm-ui-kit/fesm2015/corelusa-pdm-ui-kit.mjs +0 -2959
- package/dist/corelusa-pdm-ui-kit/fesm2015/corelusa-pdm-ui-kit.mjs.map +0 -1
- package/dist/corelusa-pdm-ui-kit/fesm2020/corelusa-pdm-ui-kit.mjs +0 -2954
- package/dist/corelusa-pdm-ui-kit/fesm2020/corelusa-pdm-ui-kit.mjs.map +0 -1
- package/dist/corelusa-pdm-ui-kit/index.d.ts +0 -5
- package/dist/corelusa-pdm-ui-kit/lib/components/field/field.component.d.ts +0 -18
- package/dist/corelusa-pdm-ui-kit/lib/components/input-group/input-group.component.d.ts +0 -19
- package/dist/corelusa-pdm-ui-kit/package.json +0 -47
- package/dist/pdm-ui-kit/README.md +0 -128
- package/dist/pdm-ui-kit/esm2020/lib/components/accordion/accordion.component.mjs +0 -42
- package/dist/pdm-ui-kit/esm2020/lib/components/alert/alert.component.mjs +0 -35
- package/dist/pdm-ui-kit/esm2020/lib/components/alert-dialog/alert-dialog.component.mjs +0 -69
- package/dist/pdm-ui-kit/esm2020/lib/components/aspect-ratio/aspect-ratio.component.mjs +0 -31
- package/dist/pdm-ui-kit/esm2020/lib/components/avatar/avatar.component.mjs +0 -46
- package/dist/pdm-ui-kit/esm2020/lib/components/badge/badge.component.mjs +0 -23
- package/dist/pdm-ui-kit/esm2020/lib/components/breadcrumb/breadcrumb.component.mjs +0 -29
- package/dist/pdm-ui-kit/esm2020/lib/components/button/button.component.mjs +0 -82
- package/dist/pdm-ui-kit/esm2020/lib/components/button-group/button-group.component.mjs +0 -23
- package/dist/pdm-ui-kit/esm2020/lib/components/calendar/calendar.component.mjs +0 -71
- package/dist/pdm-ui-kit/esm2020/lib/components/card/card.component.mjs +0 -65
- package/dist/pdm-ui-kit/esm2020/lib/components/carousel/carousel.component.mjs +0 -97
- package/dist/pdm-ui-kit/esm2020/lib/components/chart/chart.component.mjs +0 -174
- package/dist/pdm-ui-kit/esm2020/lib/components/checkbox/checkbox.component.mjs +0 -47
- package/dist/pdm-ui-kit/esm2020/lib/components/collapsible/collapsible.component.mjs +0 -43
- package/dist/pdm-ui-kit/esm2020/lib/components/combobox/combobox.component.mjs +0 -51
- package/dist/pdm-ui-kit/esm2020/lib/components/command/command.component.mjs +0 -75
- package/dist/pdm-ui-kit/esm2020/lib/components/context-menu/context-menu.component.mjs +0 -78
- package/dist/pdm-ui-kit/esm2020/lib/components/data-table/data-table.component.mjs +0 -89
- package/dist/pdm-ui-kit/esm2020/lib/components/date-picker/date-picker.component.mjs +0 -63
- package/dist/pdm-ui-kit/esm2020/lib/components/dialog/dialog.component.mjs +0 -90
- package/dist/pdm-ui-kit/esm2020/lib/components/drawer/drawer.component.mjs +0 -72
- package/dist/pdm-ui-kit/esm2020/lib/components/dropdown-menu/dropdown-menu.component.mjs +0 -120
- package/dist/pdm-ui-kit/esm2020/lib/components/empty/empty.component.mjs +0 -58
- package/dist/pdm-ui-kit/esm2020/lib/components/hover-card/hover-card.component.mjs +0 -44
- package/dist/pdm-ui-kit/esm2020/lib/components/icon/icon.component.mjs +0 -94
- package/dist/pdm-ui-kit/esm2020/lib/components/input-otp/input-otp.component.mjs +0 -140
- package/dist/pdm-ui-kit/esm2020/lib/components/item/item.component.mjs +0 -23
- package/dist/pdm-ui-kit/esm2020/lib/components/kbd/kbd.component.mjs +0 -17
- package/dist/pdm-ui-kit/esm2020/lib/components/label/label.component.mjs +0 -23
- package/dist/pdm-ui-kit/esm2020/lib/components/menubar/menubar.component.mjs +0 -31
- package/dist/pdm-ui-kit/esm2020/lib/components/native-select/native-select.component.mjs +0 -42
- package/dist/pdm-ui-kit/esm2020/lib/components/navigation-menu/navigation-menu.component.mjs +0 -20
- package/dist/pdm-ui-kit/esm2020/lib/components/pagination/pagination.component.mjs +0 -47
- package/dist/pdm-ui-kit/esm2020/lib/components/popover/popover.component.mjs +0 -58
- package/dist/pdm-ui-kit/esm2020/lib/components/progress/progress.component.mjs +0 -33
- package/dist/pdm-ui-kit/esm2020/lib/components/radio-group/radio-group.component.mjs +0 -38
- package/dist/pdm-ui-kit/esm2020/lib/components/scroll-area/scroll-area.component.mjs +0 -20
- package/dist/pdm-ui-kit/esm2020/lib/components/select/select.component.mjs +0 -38
- package/dist/pdm-ui-kit/esm2020/lib/components/separator/separator.component.mjs +0 -26
- package/dist/pdm-ui-kit/esm2020/lib/components/sheet/sheet.component.mjs +0 -39
- package/dist/pdm-ui-kit/esm2020/lib/components/sidebar/sidebar.component.mjs +0 -20
- package/dist/pdm-ui-kit/esm2020/lib/components/skeleton/skeleton.component.mjs +0 -17
- package/dist/pdm-ui-kit/esm2020/lib/components/slider/slider.component.mjs +0 -46
- package/dist/pdm-ui-kit/esm2020/lib/components/sonner/sonner.component.mjs +0 -39
- package/dist/pdm-ui-kit/esm2020/lib/components/spinner/spinner.component.mjs +0 -20
- package/dist/pdm-ui-kit/esm2020/lib/components/switch/switch.component.mjs +0 -35
- package/dist/pdm-ui-kit/esm2020/lib/components/table/table.component.mjs +0 -17
- package/dist/pdm-ui-kit/esm2020/lib/components/tabs/tabs.component.mjs +0 -31
- package/dist/pdm-ui-kit/esm2020/lib/components/textarea/textarea.component.mjs +0 -59
- package/dist/pdm-ui-kit/esm2020/lib/components/toggle/toggle.component.mjs +0 -41
- package/dist/pdm-ui-kit/esm2020/lib/components/toggle-group/toggle-group.component.mjs +0 -31
- package/dist/pdm-ui-kit/esm2020/lib/components/tooltip/tooltip.component.mjs +0 -33
- package/dist/pdm-ui-kit/esm2020/lib/pdm-ui-kit.module.mjs +0 -245
- package/dist/pdm-ui-kit/esm2020/public-api.mjs +0 -59
- package/dist/pdm-ui-kit/lib/components/accordion/accordion.component.d.ts +0 -19
- package/dist/pdm-ui-kit/lib/components/alert/alert.component.d.ts +0 -13
- package/dist/pdm-ui-kit/lib/components/alert-dialog/alert-dialog.component.d.ts +0 -21
- package/dist/pdm-ui-kit/lib/components/aspect-ratio/aspect-ratio.component.d.ts +0 -10
- package/dist/pdm-ui-kit/lib/components/avatar/avatar.component.d.ts +0 -20
- package/dist/pdm-ui-kit/lib/components/badge/badge.component.d.ts +0 -9
- package/dist/pdm-ui-kit/lib/components/breadcrumb/breadcrumb.component.d.ts +0 -10
- package/dist/pdm-ui-kit/lib/components/button/button.component.d.ts +0 -24
- package/dist/pdm-ui-kit/lib/components/button-group/button-group.component.d.ts +0 -9
- package/dist/pdm-ui-kit/lib/components/calendar/calendar.component.d.ts +0 -28
- package/dist/pdm-ui-kit/lib/components/card/card.component.d.ts +0 -24
- package/dist/pdm-ui-kit/lib/components/carousel/carousel.component.d.ts +0 -25
- package/dist/pdm-ui-kit/lib/components/chart/chart.component.d.ts +0 -41
- package/dist/pdm-ui-kit/lib/components/checkbox/checkbox.component.d.ts +0 -17
- package/dist/pdm-ui-kit/lib/components/collapsible/collapsible.component.d.ts +0 -14
- package/dist/pdm-ui-kit/lib/components/combobox/combobox.component.d.ts +0 -18
- package/dist/pdm-ui-kit/lib/components/command/command.component.d.ts +0 -33
- package/dist/pdm-ui-kit/lib/components/context-menu/context-menu.component.d.ts +0 -26
- package/dist/pdm-ui-kit/lib/components/data-table/data-table.component.d.ts +0 -36
- package/dist/pdm-ui-kit/lib/components/date-picker/date-picker.component.d.ts +0 -23
- package/dist/pdm-ui-kit/lib/components/dialog/dialog.component.d.ts +0 -30
- package/dist/pdm-ui-kit/lib/components/drawer/drawer.component.d.ts +0 -27
- package/dist/pdm-ui-kit/lib/components/dropdown-menu/dropdown-menu.component.d.ts +0 -34
- package/dist/pdm-ui-kit/lib/components/empty/empty.component.d.ts +0 -19
- package/dist/pdm-ui-kit/lib/components/hover-card/hover-card.component.d.ts +0 -14
- package/dist/pdm-ui-kit/lib/components/icon/icon.component.d.ts +0 -18
- package/dist/pdm-ui-kit/lib/components/input/input.component.d.ts +0 -23
- package/dist/pdm-ui-kit/lib/components/input-otp/input-otp.component.d.ts +0 -26
- package/dist/pdm-ui-kit/lib/components/input-password/input-password.component.d.ts +0 -25
- package/dist/pdm-ui-kit/lib/components/item/item.component.d.ts +0 -8
- package/dist/pdm-ui-kit/lib/components/kbd/kbd.component.d.ts +0 -6
- package/dist/pdm-ui-kit/lib/components/label/label.component.d.ts +0 -8
- package/dist/pdm-ui-kit/lib/components/menubar/menubar.component.d.ts +0 -17
- package/dist/pdm-ui-kit/lib/components/native-select/native-select.component.d.ts +0 -20
- package/dist/pdm-ui-kit/lib/components/navigation-menu/navigation-menu.component.d.ts +0 -12
- package/dist/pdm-ui-kit/lib/components/pagination/pagination.component.d.ts +0 -13
- package/dist/pdm-ui-kit/lib/components/popover/popover.component.d.ts +0 -17
- package/dist/pdm-ui-kit/lib/components/progress/progress.component.d.ts +0 -10
- package/dist/pdm-ui-kit/lib/components/radio-group/radio-group.component.d.ts +0 -19
- package/dist/pdm-ui-kit/lib/components/scroll-area/scroll-area.component.d.ts +0 -7
- package/dist/pdm-ui-kit/lib/components/select/select.component.d.ts +0 -19
- package/dist/pdm-ui-kit/lib/components/separator/separator.component.d.ts +0 -9
- package/dist/pdm-ui-kit/lib/components/sheet/sheet.component.d.ts +0 -13
- package/dist/pdm-ui-kit/lib/components/sidebar/sidebar.component.d.ts +0 -7
- package/dist/pdm-ui-kit/lib/components/skeleton/skeleton.component.d.ts +0 -6
- package/dist/pdm-ui-kit/lib/components/slider/slider.component.d.ts +0 -15
- package/dist/pdm-ui-kit/lib/components/sonner/sonner.component.d.ts +0 -13
- package/dist/pdm-ui-kit/lib/components/spinner/spinner.component.d.ts +0 -7
- package/dist/pdm-ui-kit/lib/components/switch/switch.component.d.ts +0 -13
- package/dist/pdm-ui-kit/lib/components/table/table.component.d.ts +0 -6
- package/dist/pdm-ui-kit/lib/components/tabs/tabs.component.d.ts +0 -16
- package/dist/pdm-ui-kit/lib/components/textarea/textarea.component.d.ts +0 -21
- package/dist/pdm-ui-kit/lib/components/toggle/toggle.component.d.ts +0 -14
- package/dist/pdm-ui-kit/lib/components/toggle-group/toggle-group.component.d.ts +0 -16
- package/dist/pdm-ui-kit/lib/components/tooltip/tooltip.component.d.ts +0 -10
- package/dist/pdm-ui-kit/lib/pdm-ui-kit.module.d.ts +0 -64
- package/dist/pdm-ui-kit/package.json +0 -44
- package/dist/pdm-ui-kit/public-api.d.ts +0 -58
- package/ng-package.json +0 -8
- package/pdm-ui-kit-0.1.1.tgz +0 -0
- package/pdm-ui-kit-0.1.2.tgz +0 -0
- package/pdm-ui-kit-0.1.3.tgz +0 -0
- package/pdm-ui-kit-0.1.4.tgz +0 -0
- package/src/lib/components/accordion/accordion.component.html +0 -34
- package/src/lib/components/accordion/accordion.component.ts +0 -38
- package/src/lib/components/alert/alert.component.html +0 -52
- package/src/lib/components/alert/alert.component.ts +0 -25
- package/src/lib/components/alert-dialog/alert-dialog.component.html +0 -41
- package/src/lib/components/alert-dialog/alert-dialog.component.ts +0 -45
- package/src/lib/components/aspect-ratio/aspect-ratio.component.html +0 -11
- package/src/lib/components/aspect-ratio/aspect-ratio.component.ts +0 -18
- package/src/lib/components/avatar/avatar.component.html +0 -21
- package/src/lib/components/avatar/avatar.component.ts +0 -32
- package/src/lib/components/badge/badge.component.html +0 -28
- package/src/lib/components/badge/badge.component.ts +0 -23
- package/src/lib/components/breadcrumb/breadcrumb.component.html +0 -39
- package/src/lib/components/breadcrumb/breadcrumb.component.ts +0 -26
- package/src/lib/components/button/button.component.html +0 -15
- package/src/lib/components/button/button.component.ts +0 -84
- package/src/lib/components/button-group/button-group.component.html +0 -39
- package/src/lib/components/button-group/button-group.component.ts +0 -15
- package/src/lib/components/calendar/calendar.component.html +0 -73
- package/src/lib/components/calendar/calendar.component.ts +0 -78
- package/src/lib/components/card/card.component.html +0 -77
- package/src/lib/components/card/card.component.ts +0 -39
- package/src/lib/components/carousel/carousel.component.html +0 -86
- package/src/lib/components/carousel/carousel.component.ts +0 -100
- package/src/lib/components/chart/chart.component.html +0 -143
- package/src/lib/components/chart/chart.component.ts +0 -147
- package/src/lib/components/checkbox/checkbox.component.html +0 -38
- package/src/lib/components/checkbox/checkbox.component.ts +0 -32
- package/src/lib/components/collapsible/collapsible.component.html +0 -26
- package/src/lib/components/collapsible/collapsible.component.ts +0 -29
- package/src/lib/components/combobox/combobox.component.html +0 -42
- package/src/lib/components/combobox/combobox.component.ts +0 -32
- package/src/lib/components/command/command.component.html +0 -55
- package/src/lib/components/command/command.component.ts +0 -67
- package/src/lib/components/context-menu/context-menu.component.html +0 -47
- package/src/lib/components/context-menu/context-menu.component.ts +0 -67
- package/src/lib/components/data-table/data-table.component.html +0 -63
- package/src/lib/components/data-table/data-table.component.ts +0 -78
- package/src/lib/components/date-picker/date-picker.component.html +0 -38
- package/src/lib/components/date-picker/date-picker.component.ts +0 -38
- package/src/lib/components/dialog/dialog.component.html +0 -78
- package/src/lib/components/dialog/dialog.component.ts +0 -55
- package/src/lib/components/drawer/drawer.component.html +0 -56
- package/src/lib/components/drawer/drawer.component.ts +0 -43
- package/src/lib/components/dropdown-menu/dropdown-menu.component.html +0 -56
- package/src/lib/components/dropdown-menu/dropdown-menu.component.ts +0 -126
- package/src/lib/components/empty/empty.component.html +0 -29
- package/src/lib/components/empty/empty.component.ts +0 -35
- package/src/lib/components/field/field.component.html +0 -26
- package/src/lib/components/field/field.component.ts +0 -42
- package/src/lib/components/hover-card/hover-card.component.html +0 -24
- package/src/lib/components/hover-card/hover-card.component.ts +0 -36
- package/src/lib/components/icon/icon.component.html +0 -286
- package/src/lib/components/icon/icon.component.ts +0 -133
- package/src/lib/components/input/input.component.html +0 -25
- package/src/lib/components/input/input.component.ts +0 -33
- package/src/lib/components/input-group/input-group.component.html +0 -59
- package/src/lib/components/input-group/input-group.component.ts +0 -32
- package/src/lib/components/input-otp/input-otp.component.html +0 -25
- package/src/lib/components/input-otp/input-otp.component.ts +0 -146
- package/src/lib/components/input-password/input-password.component.html +0 -66
- package/src/lib/components/input-password/input-password.component.ts +0 -46
- package/src/lib/components/item/item.component.html +0 -10
- package/src/lib/components/item/item.component.ts +0 -12
- package/src/lib/components/kbd/kbd.component.html +0 -3
- package/src/lib/components/kbd/kbd.component.ts +0 -10
- package/src/lib/components/label/label.component.html +0 -7
- package/src/lib/components/label/label.component.ts +0 -12
- package/src/lib/components/menubar/menubar.component.html +0 -16
- package/src/lib/components/menubar/menubar.component.ts +0 -29
- package/src/lib/components/native-select/native-select.component.html +0 -17
- package/src/lib/components/native-select/native-select.component.ts +0 -28
- package/src/lib/components/navigation-menu/navigation-menu.component.html +0 -15
- package/src/lib/components/navigation-menu/navigation-menu.component.ts +0 -17
- package/src/lib/components/pagination/pagination.component.html +0 -30
- package/src/lib/components/pagination/pagination.component.ts +0 -37
- package/src/lib/components/popover/popover.component.html +0 -6
- package/src/lib/components/popover/popover.component.ts +0 -40
- package/src/lib/components/progress/progress.component.html +0 -9
- package/src/lib/components/progress/progress.component.ts +0 -20
- package/src/lib/components/radio-group/radio-group.component.html +0 -25
- package/src/lib/components/radio-group/radio-group.component.ts +0 -30
- package/src/lib/components/scroll-area/scroll-area.component.html +0 -5
- package/src/lib/components/scroll-area/scroll-area.component.ts +0 -11
- package/src/lib/components/select/select.component.html +0 -14
- package/src/lib/components/select/select.component.ts +0 -27
- package/src/lib/components/separator/separator.component.html +0 -5
- package/src/lib/components/separator/separator.component.ts +0 -16
- package/src/lib/components/sheet/sheet.component.html +0 -10
- package/src/lib/components/sheet/sheet.component.ts +0 -28
- package/src/lib/components/sidebar/sidebar.component.html +0 -3
- package/src/lib/components/sidebar/sidebar.component.ts +0 -11
- package/src/lib/components/skeleton/skeleton.component.html +0 -1
- package/src/lib/components/skeleton/skeleton.component.ts +0 -10
- package/src/lib/components/slider/slider.component.html +0 -15
- package/src/lib/components/slider/slider.component.ts +0 -31
- package/src/lib/components/sonner/sonner.component.html +0 -10
- package/src/lib/components/sonner/sonner.component.ts +0 -25
- package/src/lib/components/spinner/spinner.component.html +0 -6
- package/src/lib/components/spinner/spinner.component.ts +0 -11
- package/src/lib/components/switch/switch.component.html +0 -14
- package/src/lib/components/switch/switch.component.ts +0 -20
- package/src/lib/components/table/table.component.html +0 -5
- package/src/lib/components/table/table.component.ts +0 -10
- package/src/lib/components/tabs/tabs.component.html +0 -21
- package/src/lib/components/tabs/tabs.component.ts +0 -26
- package/src/lib/components/textarea/textarea.component.html +0 -21
- package/src/lib/components/textarea/textarea.component.ts +0 -28
- package/src/lib/components/toggle/toggle.component.html +0 -16
- package/src/lib/components/toggle/toggle.component.ts +0 -29
- package/src/lib/components/toggle-group/toggle-group.component.html +0 -17
- package/src/lib/components/toggle-group/toggle-group.component.ts +0 -26
- package/src/lib/components/tooltip/tooltip.component.html +0 -6
- package/src/lib/components/tooltip/tooltip.component.ts +0 -20
- package/src/lib/pdm-ui-kit.module.ts +0 -126
- package/src/public-api.ts +0 -58
- package/tsconfig.json +0 -30
- package/tsconfig.lib.json +0 -17
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/accordion/accordion.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/alert/alert.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/alert-dialog/alert-dialog.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/aspect-ratio/aspect-ratio.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/avatar/avatar.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/badge/badge.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/breadcrumb/breadcrumb.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/button/button.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/button-group/button-group.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/calendar/calendar.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/card/card.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/carousel/carousel.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/chart/chart.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/checkbox/checkbox.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/collapsible/collapsible.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/combobox/combobox.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/command/command.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/context-menu/context-menu.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/data-table/data-table.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/date-picker/date-picker.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/dialog/dialog.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/drawer/drawer.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/dropdown-menu/dropdown-menu.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/empty/empty.component.mjs +0 -0
- /package/{dist/pdm-ui-kit/esm2020 → esm2020}/lib/components/field/field.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/hover-card/hover-card.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/icon/icon.component.mjs +0 -0
- /package/{dist/pdm-ui-kit/esm2020 → esm2020}/lib/components/input/input.component.mjs +0 -0
- /package/{dist/pdm-ui-kit/esm2020 → esm2020}/lib/components/input-group/input-group.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/input-otp/input-otp.component.mjs +0 -0
- /package/{dist/pdm-ui-kit/esm2020 → esm2020}/lib/components/input-password/input-password.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/item/item.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/kbd/kbd.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/label/label.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/menubar/menubar.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/native-select/native-select.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/navigation-menu/navigation-menu.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/pagination/pagination.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/popover/popover.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/progress/progress.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/radio-group/radio-group.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/scroll-area/scroll-area.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/select/select.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/separator/separator.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/sheet/sheet.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/sidebar/sidebar.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/skeleton/skeleton.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/slider/slider.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/sonner/sonner.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/spinner/spinner.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/switch/switch.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/table/table.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/tabs/tabs.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/textarea/textarea.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/toggle/toggle.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/toggle-group/toggle-group.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/tooltip/tooltip.component.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/pdm-ui-kit.module.mjs +0 -0
- /package/{dist/pdm-ui-kit/esm2020 → esm2020}/pdm-ui-kit.mjs +0 -0
- /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/public-api.mjs +0 -0
- /package/{dist/pdm-ui-kit/fesm2015 → fesm2015}/pdm-ui-kit.mjs +0 -0
- /package/{dist/pdm-ui-kit/fesm2015 → fesm2015}/pdm-ui-kit.mjs.map +0 -0
- /package/{dist/pdm-ui-kit/fesm2020 → fesm2020}/pdm-ui-kit.mjs +0 -0
- /package/{dist/pdm-ui-kit/fesm2020 → fesm2020}/pdm-ui-kit.mjs.map +0 -0
- /package/{dist/pdm-ui-kit/index.d.ts → index.d.ts} +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/accordion/accordion.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/alert/alert.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/alert-dialog/alert-dialog.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/aspect-ratio/aspect-ratio.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/avatar/avatar.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/badge/badge.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/breadcrumb/breadcrumb.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/button/button.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/button-group/button-group.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/calendar/calendar.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/card/card.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/carousel/carousel.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/chart/chart.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/checkbox/checkbox.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/collapsible/collapsible.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/combobox/combobox.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/command/command.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/context-menu/context-menu.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/data-table/data-table.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/date-picker/date-picker.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/dialog/dialog.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/drawer/drawer.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/dropdown-menu/dropdown-menu.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/empty/empty.component.d.ts +0 -0
- /package/{dist/pdm-ui-kit/lib → lib}/components/field/field.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/hover-card/hover-card.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/icon/icon.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/input/input.component.d.ts +0 -0
- /package/{dist/pdm-ui-kit/lib → lib}/components/input-group/input-group.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/input-otp/input-otp.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/input-password/input-password.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/item/item.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/kbd/kbd.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/label/label.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/menubar/menubar.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/native-select/native-select.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/navigation-menu/navigation-menu.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/pagination/pagination.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/popover/popover.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/progress/progress.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/radio-group/radio-group.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/scroll-area/scroll-area.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/select/select.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/separator/separator.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/sheet/sheet.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/sidebar/sidebar.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/skeleton/skeleton.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/slider/slider.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/sonner/sonner.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/spinner/spinner.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/switch/switch.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/table/table.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/tabs/tabs.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/textarea/textarea.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/toggle/toggle.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/toggle-group/toggle-group.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/tooltip/tooltip.component.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/lib → lib}/pdm-ui-kit.module.d.ts +0 -0
- /package/{dist/corelusa-pdm-ui-kit/public-api.d.ts → public-api.d.ts} +0 -0
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
<div *ngIf="open" class="fixed inset-0 z-50 flex items-center justify-center p-4">
|
|
2
|
-
<div class="absolute inset-0 bg-[rgba(0,0,0,0.3)]" (click)="onBackdropClick()"></div>
|
|
3
|
-
<section
|
|
4
|
-
role="dialog"
|
|
5
|
-
aria-modal="true"
|
|
6
|
-
[ngClass]="[
|
|
7
|
-
'relative z-10 w-full max-w-[423px] rounded-[10px] border border-[#e5e5e5] bg-white p-6 shadow-[0_10px_15px_rgba(0,0,0,0.1),0_4px_6px_rgba(0,0,0,0.1)]',
|
|
8
|
-
className
|
|
9
|
-
]"
|
|
10
|
-
>
|
|
11
|
-
<div class="flex items-start justify-between gap-3">
|
|
12
|
-
<div class="min-w-0">
|
|
13
|
-
<h2 class="m-0 text-[18px] font-semibold leading-7 text-[#0a0a0a]">{{ title }}</h2>
|
|
14
|
-
<p *ngIf="description" class="m-0 mt-2 text-[14px] leading-5 text-[#737373]">{{ description }}</p>
|
|
15
|
-
</div>
|
|
16
|
-
<button
|
|
17
|
-
*ngIf="showCloseButton"
|
|
18
|
-
type="button"
|
|
19
|
-
class="inline-flex h-6 w-6 items-center justify-center text-[#0a0a0a] opacity-70"
|
|
20
|
-
(click)="close()"
|
|
21
|
-
aria-label="Close dialog"
|
|
22
|
-
>
|
|
23
|
-
<svg viewBox="0 0 24 24" class="h-4 w-4" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
24
|
-
<path d="M6 6L18 18M18 6L6 18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path>
|
|
25
|
-
</svg>
|
|
26
|
-
</button>
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
<ng-container *ngIf="variant === 'default'; else customCloseDialog">
|
|
30
|
-
<div class="mt-4 flex flex-col gap-4">
|
|
31
|
-
<div class="flex flex-col gap-3">
|
|
32
|
-
<label class="text-[14px] font-medium leading-5 text-[#0a0a0a]">{{ nameLabel }}</label>
|
|
33
|
-
<div class="h-9 rounded-[8px] border border-[#e5e5e5] bg-white px-3 py-1 text-[16px] leading-6 text-[#737373] shadow-[0_1px_2px_rgba(0,0,0,0.1)]">{{ nameValue }}</div>
|
|
34
|
-
</div>
|
|
35
|
-
<div class="flex flex-col gap-3">
|
|
36
|
-
<label class="text-[14px] font-medium leading-5 text-[#0a0a0a]">{{ usernameLabel }}</label>
|
|
37
|
-
<div class="h-9 rounded-[8px] border border-[#e5e5e5] bg-white px-3 py-1 text-[16px] leading-6 text-[#737373] shadow-[0_1px_2px_rgba(0,0,0,0.1)]">{{ usernameValue }}</div>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<div class="mt-4 flex justify-end gap-2">
|
|
42
|
-
<button
|
|
43
|
-
type="button"
|
|
44
|
-
class="h-9 rounded-[10px] border border-[#e5e5e5] bg-white px-4 text-[14px] font-medium leading-5 text-[#0a0a0a] shadow-[0_1px_2px_rgba(0,0,0,0.1)]"
|
|
45
|
-
(click)="onSecondaryAction()"
|
|
46
|
-
>
|
|
47
|
-
{{ secondaryActionText }}
|
|
48
|
-
</button>
|
|
49
|
-
<button
|
|
50
|
-
type="button"
|
|
51
|
-
class="h-9 rounded-[10px] bg-[#171717] px-4 text-[14px] font-medium leading-5 text-[#fafafa] shadow-[0_1px_2px_rgba(0,0,0,0.1)]"
|
|
52
|
-
(click)="onPrimaryAction()"
|
|
53
|
-
>
|
|
54
|
-
{{ primaryActionText }}
|
|
55
|
-
</button>
|
|
56
|
-
</div>
|
|
57
|
-
</ng-container>
|
|
58
|
-
|
|
59
|
-
<ng-template #customCloseDialog>
|
|
60
|
-
<div class="mt-4 h-9 rounded-[8px] border border-[#e5e5e5] bg-white px-3 py-1 text-[16px] leading-6 text-[#737373] shadow-[0_1px_2px_rgba(0,0,0,0.1)]">
|
|
61
|
-
{{ linkValue }}
|
|
62
|
-
</div>
|
|
63
|
-
<div class="mt-4 flex">
|
|
64
|
-
<button
|
|
65
|
-
type="button"
|
|
66
|
-
class="h-9 rounded-[10px] bg-[#f5f5f5] px-4 text-[14px] font-medium leading-5 text-[#0a0a0a] shadow-[0_1px_2px_rgba(0,0,0,0.1)]"
|
|
67
|
-
(click)="onSecondaryAction()"
|
|
68
|
-
>
|
|
69
|
-
Close
|
|
70
|
-
</button>
|
|
71
|
-
</div>
|
|
72
|
-
</ng-template>
|
|
73
|
-
|
|
74
|
-
<div class="mt-4">
|
|
75
|
-
<ng-content></ng-content>
|
|
76
|
-
</div>
|
|
77
|
-
</section>
|
|
78
|
-
</div>
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, HostListener, Input, Output } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
export type PdmDialogVariant = 'default' | 'custom-close';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'pdm-dialog',
|
|
7
|
-
templateUrl: './dialog.component.html',
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
9
|
-
})
|
|
10
|
-
export class PdmDialogComponent {
|
|
11
|
-
@Input() open = false;
|
|
12
|
-
@Input() variant: PdmDialogVariant = 'default';
|
|
13
|
-
@Input() title = 'Edit profile';
|
|
14
|
-
@Input() description = 'Make changes to your profile here. Click save when you\'re done.';
|
|
15
|
-
@Input() closeOnBackdrop = true;
|
|
16
|
-
@Input() closeOnEsc = true;
|
|
17
|
-
@Input() showCloseButton = true;
|
|
18
|
-
@Input() primaryActionText = 'Save changes';
|
|
19
|
-
@Input() secondaryActionText = 'Cancel';
|
|
20
|
-
@Input() nameLabel = 'Name';
|
|
21
|
-
@Input() nameValue = 'Pedro Duarte';
|
|
22
|
-
@Input() usernameLabel = 'Username';
|
|
23
|
-
@Input() usernameValue = '@peduarte';
|
|
24
|
-
@Input() linkValue = 'https://ui.shadcn.com/docs/installation';
|
|
25
|
-
@Input() className = '';
|
|
26
|
-
|
|
27
|
-
@Output() openChange = new EventEmitter<boolean>();
|
|
28
|
-
@Output() primaryAction = new EventEmitter<void>();
|
|
29
|
-
@Output() secondaryAction = new EventEmitter<void>();
|
|
30
|
-
|
|
31
|
-
@HostListener('document:keydown.escape')
|
|
32
|
-
onEsc(): void {
|
|
33
|
-
if (this.open && this.closeOnEsc) {
|
|
34
|
-
this.close();
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
close(): void {
|
|
39
|
-
this.openChange.emit(false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
onPrimaryAction(): void {
|
|
43
|
-
this.primaryAction.emit();
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
onSecondaryAction(): void {
|
|
47
|
-
this.secondaryAction.emit();
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
onBackdropClick(): void {
|
|
51
|
-
if (this.closeOnBackdrop) {
|
|
52
|
-
this.close();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<div *ngIf="open" class="fixed inset-0 z-50" [ngClass]="className">
|
|
2
|
-
<div class="absolute inset-0 bg-[rgba(0,0,0,0.3)]" (click)="close()"></div>
|
|
3
|
-
|
|
4
|
-
<section
|
|
5
|
-
*ngIf="variant === 'drawer'; else responsiveDialog"
|
|
6
|
-
class="absolute inset-x-0 bottom-0 mx-auto w-full max-w-[1229px] rounded-t-[10px] border border-[#e5e5e5] bg-white p-6 shadow-[0_10px_15px_rgba(0,0,0,0.1),0_4px_6px_rgba(0,0,0,0.1)]"
|
|
7
|
-
>
|
|
8
|
-
<div class="mx-auto mb-4 h-1 w-10 rounded-full bg-[#e5e5e5]"></div>
|
|
9
|
-
|
|
10
|
-
<div class="mx-auto flex max-w-[320px] flex-col items-center">
|
|
11
|
-
<h3 class="m-0 text-[14px] font-semibold leading-5 text-[#0a0a0a]">{{ title }}</h3>
|
|
12
|
-
<p class="m-0 mt-1 text-[12px] leading-4 text-[#737373]">{{ description }}</p>
|
|
13
|
-
|
|
14
|
-
<div class="mt-3 flex w-full items-center justify-center gap-4">
|
|
15
|
-
<button type="button" class="inline-flex h-6 w-6 items-center justify-center rounded-full border border-[#e5e5e5] text-[#737373]">-</button>
|
|
16
|
-
<div class="text-center">
|
|
17
|
-
<div class="text-[48px] font-semibold leading-none text-[#0a0a0a]">{{ value }}</div>
|
|
18
|
-
<div class="mt-1 text-[10px] tracking-wide text-[#737373]">{{ unit }}</div>
|
|
19
|
-
</div>
|
|
20
|
-
<button type="button" class="inline-flex h-6 w-6 items-center justify-center rounded-full border border-[#e5e5e5] text-[#737373]">+</button>
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<div class="mt-3 flex h-[58px] w-full items-end gap-[3px]">
|
|
24
|
-
<div *ngFor="let bar of bars" class="flex-1 bg-[#171717]" [style.height.px]="bar"></div>
|
|
25
|
-
</div>
|
|
26
|
-
|
|
27
|
-
<button type="button" class="mt-3 h-9 w-full rounded-[10px] bg-[#171717] text-[14px] font-medium text-[#fafafa]" (click)="onPrimaryAction()">Submit</button>
|
|
28
|
-
<button type="button" class="mt-2 h-9 w-full rounded-[10px] border border-[#e5e5e5] bg-white text-[14px] font-medium text-[#0a0a0a]" (click)="onSecondaryAction()">Cancel</button>
|
|
29
|
-
</div>
|
|
30
|
-
</section>
|
|
31
|
-
|
|
32
|
-
<ng-template #responsiveDialog>
|
|
33
|
-
<section class="absolute left-1/2 top-1/2 w-full max-w-[423px] -translate-x-1/2 -translate-y-1/2 rounded-[10px] border border-[#e5e5e5] bg-white p-4 shadow-[0_10px_15px_rgba(0,0,0,0.1),0_4px_6px_rgba(0,0,0,0.1)]">
|
|
34
|
-
<div class="flex items-start justify-between">
|
|
35
|
-
<div>
|
|
36
|
-
<h3 class="m-0 text-[18px] font-semibold leading-7 text-[#0a0a0a]">{{ profileTitle }}</h3>
|
|
37
|
-
<p class="m-0 mt-1 text-[12px] leading-4 text-[#737373]">{{ profileDescription }}</p>
|
|
38
|
-
</div>
|
|
39
|
-
<button type="button" class="h-5 w-5 text-[#737373]" (click)="close()">×</button>
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
<div class="mt-3 flex flex-col gap-3">
|
|
43
|
-
<div>
|
|
44
|
-
<label class="mb-1 block text-[12px] font-medium leading-4 text-[#0a0a0a]">{{ nameLabel }}</label>
|
|
45
|
-
<div class="h-8 rounded-[6px] border border-[#e5e5e5] bg-white px-2 py-1 text-[12px] leading-4 text-[#0a0a0a]">{{ nameValue }}</div>
|
|
46
|
-
</div>
|
|
47
|
-
<div>
|
|
48
|
-
<label class="mb-1 block text-[12px] font-medium leading-4 text-[#0a0a0a]">{{ usernameLabel }}</label>
|
|
49
|
-
<div class="h-8 rounded-[6px] border border-[#e5e5e5] bg-white px-2 py-1 text-[12px] leading-4 text-[#0a0a0a]">{{ usernameValue }}</div>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
|
|
53
|
-
<button type="button" class="mt-3 h-8 w-full rounded-[8px] bg-[#171717] text-[12px] font-medium text-[#fafafa]" (click)="onPrimaryAction()">Save changes</button>
|
|
54
|
-
</section>
|
|
55
|
-
</ng-template>
|
|
56
|
-
</div>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
export type PdmDrawerVariant = 'drawer' | 'responsive-dialog';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'pdm-drawer',
|
|
7
|
-
templateUrl: './drawer.component.html',
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
9
|
-
})
|
|
10
|
-
export class PdmDrawerComponent {
|
|
11
|
-
@Input() open = false;
|
|
12
|
-
@Input() variant: PdmDrawerVariant = 'drawer';
|
|
13
|
-
@Input() className = '';
|
|
14
|
-
@Input() title = 'Move Goal';
|
|
15
|
-
@Input() description = 'Set your daily activity goal.';
|
|
16
|
-
@Input() value = 350;
|
|
17
|
-
@Input() unit = 'CALORIES/DAY';
|
|
18
|
-
|
|
19
|
-
@Input() profileTitle = 'Edit profile';
|
|
20
|
-
@Input() profileDescription = 'Make changes to your profile here. Click save when you\'re done.';
|
|
21
|
-
@Input() nameLabel = 'Name';
|
|
22
|
-
@Input() nameValue = 'Pedro Duarte';
|
|
23
|
-
@Input() usernameLabel = 'Username';
|
|
24
|
-
@Input() usernameValue = '@peduarte';
|
|
25
|
-
|
|
26
|
-
@Output() openChange = new EventEmitter<boolean>();
|
|
27
|
-
@Output() primaryAction = new EventEmitter<void>();
|
|
28
|
-
@Output() secondaryAction = new EventEmitter<void>();
|
|
29
|
-
|
|
30
|
-
readonly bars = [72, 54, 58, 49, 60, 65, 44, 53, 61, 52, 63, 48, 66];
|
|
31
|
-
|
|
32
|
-
close(): void {
|
|
33
|
-
this.openChange.emit(false);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
onPrimaryAction(): void {
|
|
37
|
-
this.primaryAction.emit();
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
onSecondaryAction(): void {
|
|
41
|
-
this.secondaryAction.emit();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<div class="relative inline-block" [ngClass]="className">
|
|
2
|
-
<button
|
|
3
|
-
type="button"
|
|
4
|
-
class="inline-flex h-9 items-center justify-center rounded-[10px] border border-[#e5e5e5] bg-white px-4 text-[14px] font-medium text-[#0a0a0a] shadow-[0_1px_2px_rgba(0,0,0,0.1)]"
|
|
5
|
-
[attr.aria-expanded]="open"
|
|
6
|
-
(click)="toggle()"
|
|
7
|
-
>
|
|
8
|
-
{{ triggerText }}
|
|
9
|
-
</button>
|
|
10
|
-
|
|
11
|
-
<div
|
|
12
|
-
*ngIf="open"
|
|
13
|
-
[ngClass]="[
|
|
14
|
-
'absolute left-0 top-full z-50 mt-2 min-w-[224px] overflow-hidden rounded-[8px] border border-[#e5e5e5] bg-white p-1 text-[#0a0a0a] shadow-[0_2px_4px_-2px_rgba(0,0,0,0.1),0_4px_6px_-1px_rgba(0,0,0,0.1)]',
|
|
15
|
-
panelClassName
|
|
16
|
-
]"
|
|
17
|
-
>
|
|
18
|
-
<ng-container *ngFor="let item of resolvedItems">
|
|
19
|
-
<div *ngIf="item.type === 'separator'" class="my-[5px] h-px bg-[#f1f5f9]"></div>
|
|
20
|
-
|
|
21
|
-
<div
|
|
22
|
-
*ngIf="item.type === 'label'"
|
|
23
|
-
[ngClass]="['px-2 py-1.5 text-[14px] font-semibold leading-5 text-[#0a0a0a]', item.inset ? 'pl-8' : '']"
|
|
24
|
-
>
|
|
25
|
-
{{ item.label }}
|
|
26
|
-
</div>
|
|
27
|
-
|
|
28
|
-
<button
|
|
29
|
-
*ngIf="!item.type || item.type === 'item'"
|
|
30
|
-
type="button"
|
|
31
|
-
[disabled]="item.disabled"
|
|
32
|
-
[ngClass]="[
|
|
33
|
-
'relative flex w-full items-center gap-2 rounded-[6px] px-2 py-1.5 text-left text-[14px] leading-5 text-[#0a0a0a] transition-colors hover:bg-[#f5f5f5] disabled:pointer-events-none disabled:opacity-50',
|
|
34
|
-
item.inset ? 'pl-8' : ''
|
|
35
|
-
]"
|
|
36
|
-
(click)="select(item)"
|
|
37
|
-
>
|
|
38
|
-
<span class="inline-flex h-4 w-4 shrink-0 items-center justify-center">
|
|
39
|
-
<svg
|
|
40
|
-
*ngIf="item.checked"
|
|
41
|
-
viewBox="0 0 24 24"
|
|
42
|
-
class="h-3.5 w-3.5 text-[#0a0a0a]"
|
|
43
|
-
fill="none"
|
|
44
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
45
|
-
>
|
|
46
|
-
<path d="M5 12.5L9.2 16.7L19 7" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
47
|
-
</svg>
|
|
48
|
-
<span *ngIf="item.radioSelected" class="h-2 w-2 rounded-full bg-[#0a0a0a]"></span>
|
|
49
|
-
</span>
|
|
50
|
-
<span class="min-w-0 flex-1 truncate">{{ item.label }}</span>
|
|
51
|
-
<span *ngIf="item.shortcut" class="text-[12px] leading-5 text-[#64748b]">{{ item.shortcut }}</span>
|
|
52
|
-
<span *ngIf="item.showChevron" class="text-[16px] leading-none text-[#475569]">›</span>
|
|
53
|
-
</button>
|
|
54
|
-
</ng-container>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostListener, Input, Output } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
export type PdmDropdownMenuVariant = 'default' | 'checkboxes' | 'radio-group';
|
|
4
|
-
|
|
5
|
-
export interface PdmMenuItem {
|
|
6
|
-
type?: 'item' | 'label' | 'separator';
|
|
7
|
-
label?: string;
|
|
8
|
-
value?: string;
|
|
9
|
-
shortcut?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
inset?: boolean;
|
|
12
|
-
showChevron?: boolean;
|
|
13
|
-
checked?: boolean;
|
|
14
|
-
radioSelected?: boolean;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@Component({
|
|
18
|
-
selector: 'pdm-dropdown-menu',
|
|
19
|
-
templateUrl: './dropdown-menu.component.html',
|
|
20
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
21
|
-
})
|
|
22
|
-
export class PdmDropdownMenuComponent {
|
|
23
|
-
@Input() triggerText = 'Open';
|
|
24
|
-
@Input() variant: PdmDropdownMenuVariant = 'default';
|
|
25
|
-
@Input() items: PdmMenuItem[] = [];
|
|
26
|
-
@Input() closeOnSelect = true;
|
|
27
|
-
@Input() panelClassName = '';
|
|
28
|
-
@Input() className = '';
|
|
29
|
-
|
|
30
|
-
@Output() itemSelect = new EventEmitter<string>();
|
|
31
|
-
@Output() itemsChange = new EventEmitter<PdmMenuItem[]>();
|
|
32
|
-
|
|
33
|
-
open = false;
|
|
34
|
-
|
|
35
|
-
constructor(private readonly elementRef: ElementRef<HTMLElement>) {}
|
|
36
|
-
|
|
37
|
-
toggle(): void {
|
|
38
|
-
this.open = !this.open;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
get resolvedItems(): PdmMenuItem[] {
|
|
42
|
-
if (this.items.length) {
|
|
43
|
-
return this.items;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (this.variant === 'checkboxes') {
|
|
47
|
-
return [
|
|
48
|
-
{ type: 'label', label: 'Appearance' },
|
|
49
|
-
{ type: 'separator' },
|
|
50
|
-
{ type: 'item', label: 'Status Bar', value: 'status-bar', checked: true },
|
|
51
|
-
{ type: 'item', label: 'Activity Bar', value: 'activity-bar', checked: false },
|
|
52
|
-
{ type: 'item', label: 'Panel', value: 'panel', checked: false }
|
|
53
|
-
];
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
if (this.variant === 'radio-group') {
|
|
57
|
-
return [
|
|
58
|
-
{ type: 'label', label: 'Panel Position' },
|
|
59
|
-
{ type: 'separator' },
|
|
60
|
-
{ type: 'item', label: 'Top', value: 'top', radioSelected: true },
|
|
61
|
-
{ type: 'item', label: 'Bottom', value: 'bottom', radioSelected: false },
|
|
62
|
-
{ type: 'item', label: 'Right', value: 'right', radioSelected: false }
|
|
63
|
-
];
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return [
|
|
67
|
-
{ type: 'label', label: 'My Account', inset: true },
|
|
68
|
-
{ type: 'separator' },
|
|
69
|
-
{ type: 'item', label: 'Profile', value: 'profile', shortcut: '⇧⌘P' },
|
|
70
|
-
{ type: 'item', label: 'Billing', value: 'billing', shortcut: '⌘B' },
|
|
71
|
-
{ type: 'item', label: 'Settings', value: 'settings', shortcut: '⌘S' },
|
|
72
|
-
{ type: 'item', label: 'Keyboard shortcuts', value: 'shortcuts', shortcut: '⌘K' },
|
|
73
|
-
{ type: 'separator' },
|
|
74
|
-
{ type: 'item', label: 'Team', value: 'team' },
|
|
75
|
-
{ type: 'item', label: 'Invite users', value: 'invite', showChevron: true },
|
|
76
|
-
{ type: 'item', label: 'New Team', value: 'new-team', shortcut: '⌘+T' },
|
|
77
|
-
{ type: 'separator' },
|
|
78
|
-
{ type: 'item', label: 'GitHub', value: 'github' },
|
|
79
|
-
{ type: 'item', label: 'Support', value: 'support' },
|
|
80
|
-
{ type: 'item', label: 'API', value: 'api', disabled: true },
|
|
81
|
-
{ type: 'separator' },
|
|
82
|
-
{ type: 'item', label: 'Log out', value: 'logout', shortcut: '⇧⌘Q' }
|
|
83
|
-
];
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
select(item: PdmMenuItem): void {
|
|
87
|
-
if (item.disabled || item.type === 'separator' || item.type === 'label' || !item.value) return;
|
|
88
|
-
|
|
89
|
-
if (this.variant === 'checkboxes') {
|
|
90
|
-
const updated = this.resolvedItems.map((entry) =>
|
|
91
|
-
entry.value === item.value ? { ...entry, checked: !entry.checked } : entry
|
|
92
|
-
);
|
|
93
|
-
this.itemsChange.emit(updated);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (this.variant === 'radio-group') {
|
|
97
|
-
const updated = this.resolvedItems.map((entry) =>
|
|
98
|
-
entry.type === 'item'
|
|
99
|
-
? { ...entry, radioSelected: entry.value === item.value }
|
|
100
|
-
: entry
|
|
101
|
-
);
|
|
102
|
-
this.itemsChange.emit(updated);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
this.itemSelect.emit(item.value);
|
|
106
|
-
|
|
107
|
-
const shouldClose = this.variant === 'default' ? this.closeOnSelect : false;
|
|
108
|
-
if (shouldClose) {
|
|
109
|
-
this.open = false;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@HostListener('document:keydown.escape')
|
|
114
|
-
onEsc(): void {
|
|
115
|
-
this.open = false;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
@HostListener('document:click', ['$event'])
|
|
119
|
-
onDocumentClick(event: MouseEvent): void {
|
|
120
|
-
if (!this.open) return;
|
|
121
|
-
const target = event.target as Node | null;
|
|
122
|
-
if (target && !this.elementRef.nativeElement.contains(target)) {
|
|
123
|
-
this.open = false;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<section [ngClass]="['flex flex-col items-center justify-center gap-4 px-6 py-10 text-center text-[hsl(var(--foreground))]', containerClass, className]">
|
|
2
|
-
<div class="flex h-10 w-10 items-center justify-center rounded-[10px] bg-[hsl(var(--muted))] text-[hsl(var(--muted-foreground))]">
|
|
3
|
-
<pdm-icon [name]="iconName" [size]="20"></pdm-icon>
|
|
4
|
-
</div>
|
|
5
|
-
|
|
6
|
-
<div class="space-y-2">
|
|
7
|
-
<h3 class="text-2xl font-semibold leading-none tracking-tight">{{ title }}</h3>
|
|
8
|
-
<p class="mx-auto max-w-[420px] text-sm leading-relaxed text-[hsl(var(--muted-foreground))]">
|
|
9
|
-
{{ description }}
|
|
10
|
-
</p>
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
<div *ngIf="primaryActionLabel || secondaryActionLabel" class="mt-1 flex flex-wrap items-center justify-center gap-3">
|
|
14
|
-
<pdm-button *ngIf="primaryActionLabel" variant="default" (pressed)="primaryAction.emit()">{{ primaryActionLabel }}</pdm-button>
|
|
15
|
-
<pdm-button *ngIf="secondaryActionLabel" variant="outline" (pressed)="secondaryAction.emit()">{{ secondaryActionLabel }}</pdm-button>
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<button
|
|
19
|
-
*ngIf="linkLabel"
|
|
20
|
-
type="button"
|
|
21
|
-
class="mt-1 inline-flex items-center gap-2 text-[15px] font-medium text-[hsl(var(--muted-foreground))] underline-offset-4 hover:underline"
|
|
22
|
-
(click)="linkAction.emit()"
|
|
23
|
-
>
|
|
24
|
-
<span>{{ linkLabel }}</span>
|
|
25
|
-
<pdm-icon name="arrow-up-right" [size]="16"></pdm-icon>
|
|
26
|
-
</button>
|
|
27
|
-
|
|
28
|
-
<ng-content></ng-content>
|
|
29
|
-
</section>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
export type PdmEmptyVariant = 'default' | 'outline' | 'background';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'pdm-empty',
|
|
7
|
-
templateUrl: './empty.component.html',
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
9
|
-
})
|
|
10
|
-
export class PdmEmptyComponent {
|
|
11
|
-
@Input() variant: PdmEmptyVariant = 'default';
|
|
12
|
-
@Input() title = 'No Projects Yet';
|
|
13
|
-
@Input() description = "You haven't created any projects yet. Get started by creating your first project.";
|
|
14
|
-
@Input() iconName = 'folder';
|
|
15
|
-
@Input() primaryActionLabel = '';
|
|
16
|
-
@Input() secondaryActionLabel = '';
|
|
17
|
-
@Input() linkLabel = '';
|
|
18
|
-
@Input() className = '';
|
|
19
|
-
|
|
20
|
-
@Output() primaryAction = new EventEmitter<void>();
|
|
21
|
-
@Output() secondaryAction = new EventEmitter<void>();
|
|
22
|
-
@Output() linkAction = new EventEmitter<void>();
|
|
23
|
-
|
|
24
|
-
get containerClass(): string {
|
|
25
|
-
if (this.variant === 'outline') {
|
|
26
|
-
return 'border border-dashed border-[hsl(var(--border))] rounded-[12px]';
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
if (this.variant === 'background') {
|
|
30
|
-
return 'rounded-[12px] bg-[hsl(var(--muted))]';
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return '';
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<div [ngClass]="[rootClass, className]">
|
|
2
|
-
<div [ngClass]="[isHorizontal ? 'grid gap-1.5' : 'grid gap-0']">
|
|
3
|
-
<label
|
|
4
|
-
*ngIf="label"
|
|
5
|
-
[attr.for]="id"
|
|
6
|
-
[ngClass]="['text-sm font-medium leading-5 text-[hsl(var(--foreground))]', disabled ? 'opacity-70' : '', labelClassName]"
|
|
7
|
-
>
|
|
8
|
-
{{ label }}
|
|
9
|
-
<span *ngIf="required" class="text-[hsl(var(--destructive))]">*</span>
|
|
10
|
-
</label>
|
|
11
|
-
|
|
12
|
-
<p *ngIf="isHorizontal && description && !invalid" class="text-sm leading-5 text-[hsl(var(--muted-foreground))]">{{ description }}</p>
|
|
13
|
-
<p *ngIf="isHorizontal && invalid && error" class="text-sm leading-5 text-[hsl(var(--destructive))]">{{ error }}</p>
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<div [ngClass]="['grid gap-3', controlClassName]">
|
|
17
|
-
<p *ngIf="showDescriptionBeforeControl" class="text-sm leading-5 text-[hsl(var(--muted-foreground))]">{{ description }}</p>
|
|
18
|
-
|
|
19
|
-
<ng-content></ng-content>
|
|
20
|
-
<ng-content select="[pdmFieldControl]"></ng-content>
|
|
21
|
-
|
|
22
|
-
<p *ngIf="showDescriptionAfterControl" class="text-sm leading-5 text-[hsl(var(--muted-foreground))]">{{ description }}</p>
|
|
23
|
-
<p *ngIf="!isHorizontal && invalid && error" class="text-sm leading-5 text-[hsl(var(--destructive))]">{{ error }}</p>
|
|
24
|
-
<ng-content select="[pdmFieldDescription]"></ng-content>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
export type PdmFieldOrientation = 'vertical' | 'horizontal';
|
|
4
|
-
export type PdmFieldDescriptionPosition = 'before' | 'after';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'pdm-field',
|
|
8
|
-
templateUrl: './field.component.html',
|
|
9
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
10
|
-
})
|
|
11
|
-
export class PdmFieldComponent {
|
|
12
|
-
@Input() id = '';
|
|
13
|
-
@Input() label = '';
|
|
14
|
-
@Input() description = '';
|
|
15
|
-
@Input() error = '';
|
|
16
|
-
@Input() required = false;
|
|
17
|
-
@Input() disabled = false;
|
|
18
|
-
@Input() invalid = false;
|
|
19
|
-
@Input() orientation: PdmFieldOrientation = 'vertical';
|
|
20
|
-
@Input() descriptionPosition: PdmFieldDescriptionPosition = 'after';
|
|
21
|
-
@Input() className = '';
|
|
22
|
-
@Input() labelClassName = '';
|
|
23
|
-
@Input() controlClassName = '';
|
|
24
|
-
|
|
25
|
-
get rootClass(): string {
|
|
26
|
-
return this.orientation === 'horizontal'
|
|
27
|
-
? 'grid items-start gap-3 sm:grid-cols-[200px_minmax(0,1fr)] sm:gap-4'
|
|
28
|
-
: 'grid w-full gap-3';
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
get isHorizontal(): boolean {
|
|
32
|
-
return this.orientation === 'horizontal';
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
get showDescriptionBeforeControl(): boolean {
|
|
36
|
-
return !this.isHorizontal && this.descriptionPosition === 'before' && !!this.description && !this.invalid;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
get showDescriptionAfterControl(): boolean {
|
|
40
|
-
return !this.isHorizontal && !this.showDescriptionBeforeControl && !!this.description && !this.invalid;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<div
|
|
2
|
-
class="relative inline-flex"
|
|
3
|
-
[ngClass]="className"
|
|
4
|
-
(mouseenter)="open = true"
|
|
5
|
-
(mouseleave)="open = false"
|
|
6
|
-
(focusin)="open = true"
|
|
7
|
-
(focusout)="open = false"
|
|
8
|
-
>
|
|
9
|
-
<div>
|
|
10
|
-
<ng-content select="[pdmHoverTrigger]"></ng-content>
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
<section
|
|
14
|
-
*ngIf="open"
|
|
15
|
-
[style.width.px]="panelWidth"
|
|
16
|
-
[ngClass]="[
|
|
17
|
-
'absolute z-30 rounded-[10px] border border-[hsl(var(--border))] bg-[hsl(var(--popover))] p-4 text-[hsl(var(--popover-foreground))] shadow-[0_10px_30px_rgba(15,23,42,0.15)]',
|
|
18
|
-
positionClass,
|
|
19
|
-
panelClassName
|
|
20
|
-
]"
|
|
21
|
-
>
|
|
22
|
-
<ng-content select="[pdmHoverContent]"></ng-content>
|
|
23
|
-
</section>
|
|
24
|
-
</div>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
export type PdmHoverCardSide = 'top' | 'right' | 'bottom' | 'left';
|
|
4
|
-
export type PdmHoverCardAlign = 'start' | 'center' | 'end';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'pdm-hover-card',
|
|
8
|
-
templateUrl: './hover-card.component.html',
|
|
9
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
10
|
-
})
|
|
11
|
-
export class PdmHoverCardComponent {
|
|
12
|
-
@Input() className = '';
|
|
13
|
-
@Input() panelClassName = '';
|
|
14
|
-
@Input() side: PdmHoverCardSide = 'bottom';
|
|
15
|
-
@Input() align: PdmHoverCardAlign = 'start';
|
|
16
|
-
@Input() panelWidth = 304;
|
|
17
|
-
|
|
18
|
-
open = false;
|
|
19
|
-
|
|
20
|
-
get positionClass(): string {
|
|
21
|
-
const sideClassMap: Record<PdmHoverCardSide, string> = {
|
|
22
|
-
top: 'bottom-full mb-2',
|
|
23
|
-
right: 'left-full ml-2',
|
|
24
|
-
bottom: 'top-full mt-2',
|
|
25
|
-
left: 'right-full mr-2'
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const alignClassMap: Record<PdmHoverCardAlign, string> = {
|
|
29
|
-
start: this.side === 'top' || this.side === 'bottom' ? 'left-0' : 'top-0',
|
|
30
|
-
center: this.side === 'top' || this.side === 'bottom' ? 'left-1/2 -translate-x-1/2' : 'top-1/2 -translate-y-1/2',
|
|
31
|
-
end: this.side === 'top' || this.side === 'bottom' ? 'right-0' : 'bottom-0'
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
return `${sideClassMap[this.side]} ${alignClassMap[this.align]}`;
|
|
35
|
-
}
|
|
36
|
-
}
|