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,77 +0,0 @@
|
|
|
1
|
-
<section
|
|
2
|
-
[ngClass]="[
|
|
3
|
-
'w-full rounded-[14px] border border-[#e5e5e5] bg-white py-6 shadow-[0_1px_3px_rgba(0,0,0,0.1)]',
|
|
4
|
-
className
|
|
5
|
-
]"
|
|
6
|
-
>
|
|
7
|
-
<ng-container *ngIf="variant === 'login'; else defaultCard">
|
|
8
|
-
<div class="flex w-full items-start gap-1.5 px-6">
|
|
9
|
-
<div class="min-w-0 flex-1">
|
|
10
|
-
<h3 class="m-0 text-[14px] font-semibold leading-5 text-[#0a0a0a]">{{ title }}</h3>
|
|
11
|
-
<p class="m-0 mt-1.5 text-[14px] leading-5 text-[#737373]">{{ description }}</p>
|
|
12
|
-
</div>
|
|
13
|
-
<button
|
|
14
|
-
type="button"
|
|
15
|
-
class="inline-flex h-9 items-center justify-center rounded-[10px] px-4 py-2 text-[14px] font-medium leading-5 text-[#171717]"
|
|
16
|
-
(click)="onActionPressed()"
|
|
17
|
-
>
|
|
18
|
-
{{ actionText }}
|
|
19
|
-
</button>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<div class="mt-6 flex flex-col gap-4 px-6">
|
|
23
|
-
<div class="w-full">
|
|
24
|
-
<label class="mb-3 block text-[14px] font-medium leading-5 text-[#0a0a0a]">{{ emailLabel }}</label>
|
|
25
|
-
<input
|
|
26
|
-
type="email"
|
|
27
|
-
[placeholder]="emailPlaceholder"
|
|
28
|
-
class="h-9 w-full rounded-[8px] border border-[#e5e5e5] bg-white px-3 py-1 text-[16px] leading-6 text-[#0a0a0a] shadow-[0_1px_2px_rgba(0,0,0,0.1)] placeholder:text-[#737373] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[#171717]"
|
|
29
|
-
/>
|
|
30
|
-
</div>
|
|
31
|
-
|
|
32
|
-
<div class="w-full">
|
|
33
|
-
<div class="mb-3 flex w-full items-center justify-between gap-4">
|
|
34
|
-
<label class="text-[14px] font-medium leading-5 text-[#0a0a0a]">{{ passwordLabel }}</label>
|
|
35
|
-
<button type="button" class="text-[14px] leading-5 text-[#0a0a0a]">
|
|
36
|
-
{{ passwordHint }}
|
|
37
|
-
</button>
|
|
38
|
-
</div>
|
|
39
|
-
<input
|
|
40
|
-
type="password"
|
|
41
|
-
class="h-9 w-full rounded-[8px] border border-[#e5e5e5] bg-white px-3 py-1 text-[16px] leading-6 text-[#0a0a0a] shadow-[0_1px_2px_rgba(0,0,0,0.1)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[#171717]"
|
|
42
|
-
/>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
|
-
<div class="mt-6 flex w-full flex-col gap-2 px-6">
|
|
47
|
-
<button
|
|
48
|
-
type="button"
|
|
49
|
-
class="flex h-9 w-full items-center justify-center rounded-[10px] bg-[#171717] px-4 py-2 text-[14px] font-medium leading-5 text-[#fafafa] shadow-[0_1px_2px_rgba(0,0,0,0.1)]"
|
|
50
|
-
(click)="onPrimaryAction()"
|
|
51
|
-
>
|
|
52
|
-
{{ primaryActionText }}
|
|
53
|
-
</button>
|
|
54
|
-
<button
|
|
55
|
-
type="button"
|
|
56
|
-
class="flex h-9 w-full items-center justify-center rounded-[10px] border border-[#e5e5e5] bg-white px-4 py-2 text-[14px] font-medium leading-5 text-[#0a0a0a] shadow-[0_1px_2px_rgba(0,0,0,0.1)]"
|
|
57
|
-
(click)="onSecondaryAction()"
|
|
58
|
-
>
|
|
59
|
-
{{ secondaryActionText }}
|
|
60
|
-
</button>
|
|
61
|
-
</div>
|
|
62
|
-
</ng-container>
|
|
63
|
-
|
|
64
|
-
<ng-template #defaultCard>
|
|
65
|
-
<div class="flex w-full flex-col gap-6">
|
|
66
|
-
<div class="px-6">
|
|
67
|
-
<ng-content select="[pdmCardHeader]"></ng-content>
|
|
68
|
-
</div>
|
|
69
|
-
<div class="px-6">
|
|
70
|
-
<ng-content select="[pdmCardContent]"></ng-content>
|
|
71
|
-
</div>
|
|
72
|
-
<div class="px-6">
|
|
73
|
-
<ng-content select="[pdmCardFooter]"></ng-content>
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
76
|
-
</ng-template>
|
|
77
|
-
</section>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
export type PdmCardVariant = 'default' | 'login';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'pdm-card',
|
|
7
|
-
templateUrl: './card.component.html',
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
9
|
-
})
|
|
10
|
-
export class PdmCardComponent {
|
|
11
|
-
@Input() variant: PdmCardVariant = 'default';
|
|
12
|
-
@Input() className = '';
|
|
13
|
-
|
|
14
|
-
@Input() title = 'Login to your account';
|
|
15
|
-
@Input() description = 'Enter your email below to login to your account';
|
|
16
|
-
@Input() actionText = 'Sign up';
|
|
17
|
-
@Input() emailLabel = 'Email';
|
|
18
|
-
@Input() emailPlaceholder = 'm@example.com';
|
|
19
|
-
@Input() passwordLabel = 'Password';
|
|
20
|
-
@Input() passwordHint = 'Forgot password?';
|
|
21
|
-
@Input() primaryActionText = 'Login';
|
|
22
|
-
@Input() secondaryActionText = 'Login with Google';
|
|
23
|
-
|
|
24
|
-
@Output() primaryAction = new EventEmitter<void>();
|
|
25
|
-
@Output() secondaryAction = new EventEmitter<void>();
|
|
26
|
-
@Output() actionPressed = new EventEmitter<void>();
|
|
27
|
-
|
|
28
|
-
onPrimaryAction(): void {
|
|
29
|
-
this.primaryAction.emit();
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
onSecondaryAction(): void {
|
|
33
|
-
this.secondaryAction.emit();
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
onActionPressed(): void {
|
|
37
|
-
this.actionPressed.emit();
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
<section [ngClass]="[className]">
|
|
2
|
-
<div *ngIf="variant !== 'orientation'" class="flex items-center gap-4">
|
|
3
|
-
<button
|
|
4
|
-
type="button"
|
|
5
|
-
class="inline-flex h-8 w-8 items-center justify-center rounded-full border border-[#e5e5e5] bg-white p-[10px]"
|
|
6
|
-
[ngClass]="!canPrev ? 'opacity-50' : ''"
|
|
7
|
-
[disabled]="!canPrev"
|
|
8
|
-
(click)="onPrev()"
|
|
9
|
-
aria-label="Previous slide"
|
|
10
|
-
>
|
|
11
|
-
<svg viewBox="0 0 24 24" class="h-4 w-4 text-[#0a0a0a]" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
12
|
-
<path d="M15 18L9 12L15 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
13
|
-
</svg>
|
|
14
|
-
</button>
|
|
15
|
-
|
|
16
|
-
<ng-container [ngSwitch]="variant">
|
|
17
|
-
<div *ngSwitchCase="'sizes'" class="flex items-center">
|
|
18
|
-
<div *ngFor="let slide of visibleSlides; let i = index" class="flex items-center" [ngClass]="i > 0 ? 'pl-4' : ''">
|
|
19
|
-
<div class="flex h-[165px] w-[125px] items-center p-1">
|
|
20
|
-
<div class="flex h-full w-full items-center justify-center rounded-[14px] border border-[#e5e5e5] bg-white py-6 shadow-[0_1px_3px_rgba(0,0,0,0.1)]">
|
|
21
|
-
<div class="text-center text-[30px] font-semibold leading-9 text-[#0a0a0a]">{{ slide }}</div>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
|
|
27
|
-
<div *ngSwitchDefault class="flex flex-col items-center justify-center">
|
|
28
|
-
<div class="flex h-[360px] w-[318px] items-center p-1">
|
|
29
|
-
<div class="flex h-full w-full items-center justify-center rounded-[14px] border border-[#e5e5e5] bg-white py-6 shadow-[0_1px_3px_rgba(0,0,0,0.1)]">
|
|
30
|
-
<div class="text-center text-[36px] font-semibold leading-10 text-[#0a0a0a]">{{ visibleSlides[0] }}</div>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
<p *ngIf="variant === 'api'" class="m-0 pt-2 text-[14px] font-medium leading-5 text-[#737373]">Slide {{ index + 1 }} of {{ slides.length }}</p>
|
|
34
|
-
</div>
|
|
35
|
-
</ng-container>
|
|
36
|
-
|
|
37
|
-
<button
|
|
38
|
-
type="button"
|
|
39
|
-
class="inline-flex h-8 w-8 items-center justify-center rounded-full border border-[#e5e5e5] bg-white p-[10px]"
|
|
40
|
-
[ngClass]="!canNext ? 'opacity-50' : ''"
|
|
41
|
-
[disabled]="!canNext"
|
|
42
|
-
(click)="onNext()"
|
|
43
|
-
aria-label="Next slide"
|
|
44
|
-
>
|
|
45
|
-
<svg viewBox="0 0 24 24" class="h-4 w-4 text-[#0a0a0a]" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
46
|
-
<path d="M9 18L15 12L9 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
47
|
-
</svg>
|
|
48
|
-
</button>
|
|
49
|
-
</div>
|
|
50
|
-
|
|
51
|
-
<div *ngIf="variant === 'orientation'" class="flex flex-col items-center gap-4">
|
|
52
|
-
<button
|
|
53
|
-
type="button"
|
|
54
|
-
class="inline-flex h-8 w-8 items-center justify-center rounded-full border border-[#e5e5e5] bg-white p-[10px]"
|
|
55
|
-
[ngClass]="!canPrev ? 'opacity-50' : ''"
|
|
56
|
-
[disabled]="!canPrev"
|
|
57
|
-
(click)="onPrev()"
|
|
58
|
-
aria-label="Previous slide"
|
|
59
|
-
>
|
|
60
|
-
<svg viewBox="0 0 24 24" class="h-4 w-4 text-[#0a0a0a]" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
61
|
-
<path d="M18 15L12 9L6 15" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
62
|
-
</svg>
|
|
63
|
-
</button>
|
|
64
|
-
|
|
65
|
-
<div class="flex w-[320px] flex-col">
|
|
66
|
-
<div *ngFor="let slide of visibleSlides; let i = index" class="flex h-[142px] w-full items-center p-1" [ngClass]="i > 0 ? 'pt-1' : ''">
|
|
67
|
-
<div class="flex h-full w-full items-center justify-center rounded-[14px] border border-[#e5e5e5] bg-white py-6 shadow-[0_1px_3px_rgba(0,0,0,0.1)]">
|
|
68
|
-
<div class="text-center text-[30px] font-semibold leading-9 text-[#0a0a0a]">{{ slide }}</div>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
|
|
73
|
-
<button
|
|
74
|
-
type="button"
|
|
75
|
-
class="inline-flex h-8 w-8 items-center justify-center rounded-full border border-[#e5e5e5] bg-white p-[10px]"
|
|
76
|
-
[ngClass]="!canNext ? 'opacity-50' : ''"
|
|
77
|
-
[disabled]="!canNext"
|
|
78
|
-
(click)="onNext()"
|
|
79
|
-
aria-label="Next slide"
|
|
80
|
-
>
|
|
81
|
-
<svg viewBox="0 0 24 24" class="h-4 w-4 text-[#0a0a0a]" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
82
|
-
<path d="M6 9L12 15L18 9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
83
|
-
</svg>
|
|
84
|
-
</button>
|
|
85
|
-
</div>
|
|
86
|
-
</section>
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
export type PdmCarouselVariant = 'default' | 'sizes' | 'orientation' | 'api';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'pdm-carousel',
|
|
7
|
-
templateUrl: './carousel.component.html',
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
9
|
-
})
|
|
10
|
-
export class PdmCarouselComponent {
|
|
11
|
-
@Input() variant: PdmCarouselVariant = 'default';
|
|
12
|
-
@Input() className = '';
|
|
13
|
-
@Input() slides: number[] = [1, 2, 3, 4, 5];
|
|
14
|
-
@Input() startIndex = 0;
|
|
15
|
-
@Input() loop = false;
|
|
16
|
-
|
|
17
|
-
@Output() indexChange = new EventEmitter<number>();
|
|
18
|
-
|
|
19
|
-
private _index = 0;
|
|
20
|
-
|
|
21
|
-
ngOnInit(): void {
|
|
22
|
-
this._index = this.normalizeIndex(this.startIndex);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
get index(): number {
|
|
26
|
-
return this._index;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
get canPrev(): boolean {
|
|
30
|
-
return this.loop || this._index > 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
get canNext(): boolean {
|
|
34
|
-
return this.loop || this._index < this.maxIndex;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
get maxIndex(): number {
|
|
38
|
-
if (this.slides.length === 0) {
|
|
39
|
-
return 0;
|
|
40
|
-
}
|
|
41
|
-
if (this.variant === 'sizes') {
|
|
42
|
-
return Math.max(0, this.slides.length - 3);
|
|
43
|
-
}
|
|
44
|
-
if (this.variant === 'orientation') {
|
|
45
|
-
return Math.max(0, this.slides.length - 2);
|
|
46
|
-
}
|
|
47
|
-
return Math.max(0, this.slides.length - 1);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
get visibleSlides(): number[] {
|
|
51
|
-
if (this.slides.length === 0) {
|
|
52
|
-
return [];
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
if (this.variant === 'sizes') {
|
|
56
|
-
return this.sliceWindow(3);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (this.variant === 'orientation') {
|
|
60
|
-
return this.sliceWindow(2);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
return [this.slides[this._index]];
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
onPrev(): void {
|
|
67
|
-
if (!this.canPrev) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const next = this._index - 1;
|
|
72
|
-
this.setIndex(this.loop && next < 0 ? this.maxIndex : next);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
onNext(): void {
|
|
76
|
-
if (!this.canNext) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
const next = this._index + 1;
|
|
81
|
-
this.setIndex(this.loop && next > this.maxIndex ? 0 : next);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
private setIndex(value: number): void {
|
|
85
|
-
const normalized = this.normalizeIndex(value);
|
|
86
|
-
this._index = normalized;
|
|
87
|
-
this.indexChange.emit(this._index);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private normalizeIndex(value: number): number {
|
|
91
|
-
if (this.slides.length === 0) {
|
|
92
|
-
return 0;
|
|
93
|
-
}
|
|
94
|
-
return Math.min(this.maxIndex, Math.max(0, value));
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private sliceWindow(size: number): number[] {
|
|
98
|
-
return this.slides.slice(this._index, this._index + size);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
<section [ngClass]="['w-full rounded-[14px] border border-[hsl(var(--border))] bg-[hsl(var(--card))] text-[hsl(var(--card-foreground))]', className]">
|
|
2
|
-
<div class="flex w-full items-stretch border-b border-[hsl(var(--border))]">
|
|
3
|
-
<div class="flex min-w-0 flex-1 flex-col gap-1 px-6 pb-3 pt-4">
|
|
4
|
-
<h3 class="m-0 text-sm font-semibold leading-5">{{ title }}</h3>
|
|
5
|
-
<p class="m-0 text-sm leading-5 text-[hsl(var(--muted-foreground))]">{{ description }}</p>
|
|
6
|
-
</div>
|
|
7
|
-
|
|
8
|
-
<div class="flex h-[92px]">
|
|
9
|
-
<div class="flex h-full w-[171px] flex-col justify-center border-l border-[hsl(var(--border))] bg-[hsl(var(--muted))] px-6 py-4">
|
|
10
|
-
<span class="text-xs leading-4 text-[hsl(var(--muted-foreground))]">{{ desktopLabel }}</span>
|
|
11
|
-
<span class="mt-1 text-[28px] font-semibold leading-8">{{ desktopValue }}</span>
|
|
12
|
-
</div>
|
|
13
|
-
<div class="flex h-full w-[171px] flex-col justify-center px-6 py-4">
|
|
14
|
-
<span class="text-xs leading-4 text-[hsl(var(--muted-foreground))]">{{ mobileLabel }}</span>
|
|
15
|
-
<span class="mt-1 text-[28px] font-semibold leading-8">{{ mobileValue }}</span>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
<div class="w-full p-6">
|
|
21
|
-
<ng-container [ngSwitch]="type">
|
|
22
|
-
<div *ngSwitchCase="'bar'" class="flex h-[236px] w-full flex-col justify-end gap-2">
|
|
23
|
-
<div class="relative h-[183px] w-full overflow-hidden">
|
|
24
|
-
<div class="absolute bottom-0 left-0 right-0 border-t border-[hsl(var(--border))] opacity-50"></div>
|
|
25
|
-
<div class="absolute left-0 right-0 top-[54px] border-t border-[hsl(var(--border))] opacity-50"></div>
|
|
26
|
-
<div class="absolute left-0 right-0 top-[108px] border-t border-[hsl(var(--border))] opacity-50"></div>
|
|
27
|
-
<div class="absolute left-0 right-0 top-[162px] border-t border-[hsl(var(--border))] opacity-50"></div>
|
|
28
|
-
<div class="absolute inset-x-0 bottom-0 flex h-[183px] items-end gap-[2px] px-0.5">
|
|
29
|
-
<div *ngFor="let bar of normalizedBars" class="w-[5px] rounded-[2px] bg-[hsl(var(--primary))]" [style.height.px]="bar"></div>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
<div class="flex h-4 w-full items-center justify-between gap-2">
|
|
33
|
-
<span *ngFor="let label of labels" class="truncate text-xs leading-4 text-[hsl(var(--muted-foreground))]">{{ label }}</span>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
<div *ngSwitchCase="'line'" class="flex h-[236px] w-full flex-col gap-2">
|
|
38
|
-
<svg viewBox="0 0 320 180" class="h-[183px] w-full">
|
|
39
|
-
<line x1="0" y1="180" x2="320" y2="180" stroke="hsl(var(--border))" stroke-width="1"></line>
|
|
40
|
-
<line x1="0" y1="135" x2="320" y2="135" stroke="hsl(var(--border))" stroke-width="1" opacity="0.5"></line>
|
|
41
|
-
<line x1="0" y1="90" x2="320" y2="90" stroke="hsl(var(--border))" stroke-width="1" opacity="0.5"></line>
|
|
42
|
-
<line x1="0" y1="45" x2="320" y2="45" stroke="hsl(var(--border))" stroke-width="1" opacity="0.5"></line>
|
|
43
|
-
<path [attr.d]="linePath" fill="none" stroke="hsl(var(--primary))" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
44
|
-
</svg>
|
|
45
|
-
<div class="flex h-4 w-full items-center justify-between gap-2">
|
|
46
|
-
<span *ngFor="let label of labels" class="truncate text-xs leading-4 text-[hsl(var(--muted-foreground))]">{{ label }}</span>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
<div *ngSwitchCase="'area'" class="flex h-[236px] w-full flex-col gap-2">
|
|
51
|
-
<svg viewBox="0 0 320 180" class="h-[183px] w-full">
|
|
52
|
-
<defs>
|
|
53
|
-
<linearGradient id="pdm-chart-area-gradient" x1="0" y1="0" x2="0" y2="1">
|
|
54
|
-
<stop offset="0%" stop-color="hsl(var(--primary))" stop-opacity="0.35"></stop>
|
|
55
|
-
<stop offset="100%" stop-color="hsl(var(--primary))" stop-opacity="0.02"></stop>
|
|
56
|
-
</linearGradient>
|
|
57
|
-
</defs>
|
|
58
|
-
<line x1="0" y1="180" x2="320" y2="180" stroke="hsl(var(--border))" stroke-width="1"></line>
|
|
59
|
-
<line x1="0" y1="135" x2="320" y2="135" stroke="hsl(var(--border))" stroke-width="1" opacity="0.5"></line>
|
|
60
|
-
<line x1="0" y1="90" x2="320" y2="90" stroke="hsl(var(--border))" stroke-width="1" opacity="0.5"></line>
|
|
61
|
-
<line x1="0" y1="45" x2="320" y2="45" stroke="hsl(var(--border))" stroke-width="1" opacity="0.5"></line>
|
|
62
|
-
<path [attr.d]="areaPath" fill="url(#pdm-chart-area-gradient)"></path>
|
|
63
|
-
<path [attr.d]="linePath" fill="none" stroke="hsl(var(--primary))" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
64
|
-
</svg>
|
|
65
|
-
<div class="flex h-4 w-full items-center justify-between gap-2">
|
|
66
|
-
<span *ngFor="let label of labels" class="truncate text-xs leading-4 text-[hsl(var(--muted-foreground))]">{{ label }}</span>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
|
|
70
|
-
<div *ngSwitchCase="'pie'" class="flex items-center gap-6">
|
|
71
|
-
<div class="relative h-40 w-40 rounded-full" [style.background]="pieGradient">
|
|
72
|
-
<div class="absolute inset-7 rounded-full bg-[hsl(var(--card))]"></div>
|
|
73
|
-
</div>
|
|
74
|
-
<div class="grid flex-1 gap-2">
|
|
75
|
-
<div *ngFor="let segment of pieSegments" class="flex items-center justify-between rounded-md border border-[hsl(var(--border))] px-3 py-2">
|
|
76
|
-
<div class="flex items-center gap-2">
|
|
77
|
-
<span class="size-2.5 rounded-full" [style.background]="segment.color"></span>
|
|
78
|
-
<span class="text-sm leading-5">{{ segment.label }}</span>
|
|
79
|
-
</div>
|
|
80
|
-
<span class="text-sm font-medium leading-5">{{ segment.size | number: '1.0-0' }}%</span>
|
|
81
|
-
</div>
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
|
|
85
|
-
<div *ngSwitchCase="'radar'" class="flex items-center gap-6">
|
|
86
|
-
<svg viewBox="0 0 160 160" class="h-44 w-44">
|
|
87
|
-
<polygon points="80,8 144,44 144,116 80,152 16,116 16,44" fill="none" stroke="hsl(var(--border))"></polygon>
|
|
88
|
-
<polygon points="80,28 126,54 126,106 80,132 34,106 34,54" fill="none" stroke="hsl(var(--border))" opacity="0.75"></polygon>
|
|
89
|
-
<polygon points="80,48 109,64 109,96 80,112 51,96 51,64" fill="none" stroke="hsl(var(--border))" opacity="0.55"></polygon>
|
|
90
|
-
<polygon [attr.points]="radarPoints" fill="hsl(var(--primary))" fill-opacity="0.22" stroke="hsl(var(--primary))" stroke-width="2"></polygon>
|
|
91
|
-
</svg>
|
|
92
|
-
<div class="grid flex-1 gap-2">
|
|
93
|
-
<div *ngFor="let item of radar; index as i" class="flex items-center justify-between rounded-md border border-[hsl(var(--border))] px-3 py-2 text-sm">
|
|
94
|
-
<span class="text-[hsl(var(--muted-foreground))]">Metric {{ i + 1 }}</span>
|
|
95
|
-
<span class="font-medium">{{ item }}</span>
|
|
96
|
-
</div>
|
|
97
|
-
</div>
|
|
98
|
-
</div>
|
|
99
|
-
|
|
100
|
-
<div *ngSwitchCase="'radial'" class="flex items-center justify-between gap-6">
|
|
101
|
-
<div class="relative flex size-44 items-center justify-center">
|
|
102
|
-
<svg viewBox="0 0 96 96" class="size-40 -rotate-90">
|
|
103
|
-
<circle cx="48" cy="48" r="42" fill="none" stroke="hsl(var(--muted))" stroke-width="10"></circle>
|
|
104
|
-
<circle
|
|
105
|
-
cx="48"
|
|
106
|
-
cy="48"
|
|
107
|
-
r="42"
|
|
108
|
-
fill="none"
|
|
109
|
-
stroke="hsl(var(--primary))"
|
|
110
|
-
stroke-width="10"
|
|
111
|
-
stroke-linecap="round"
|
|
112
|
-
stroke-dasharray="263.89"
|
|
113
|
-
[attr.stroke-dashoffset]="radialStrokeOffset"
|
|
114
|
-
></circle>
|
|
115
|
-
</svg>
|
|
116
|
-
<div class="absolute text-center">
|
|
117
|
-
<div class="text-[30px] font-semibold leading-9">{{ radialValue }}%</div>
|
|
118
|
-
<div class="text-xs text-[hsl(var(--muted-foreground))]">{{ radialLabel }}</div>
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
<div class="flex-1">
|
|
122
|
-
<p class="m-0 text-sm font-medium leading-5">{{ radialLabel }}</p>
|
|
123
|
-
<p class="m-0 mt-1 text-sm leading-5 text-[hsl(var(--muted-foreground))]">{{ radialDescription }}</p>
|
|
124
|
-
</div>
|
|
125
|
-
</div>
|
|
126
|
-
|
|
127
|
-
<div *ngSwitchCase="'tooltips'" class="grid gap-3">
|
|
128
|
-
<div class="inline-flex w-fit min-w-[220px] flex-col gap-2 rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))] p-3 shadow-sm">
|
|
129
|
-
<p class="m-0 text-xs font-medium leading-4 text-[hsl(var(--muted-foreground))]">{{ tooltipTitle }}</p>
|
|
130
|
-
<div class="flex items-center justify-between text-sm">
|
|
131
|
-
<span>{{ tooltipPrimaryLabel }}</span>
|
|
132
|
-
<span class="font-semibold">{{ tooltipPrimaryValue }}</span>
|
|
133
|
-
</div>
|
|
134
|
-
<div class="flex items-center justify-between text-sm">
|
|
135
|
-
<span>{{ tooltipSecondaryLabel }}</span>
|
|
136
|
-
<span class="font-semibold">{{ tooltipSecondaryValue }}</span>
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
<p class="m-0 text-xs text-[hsl(var(--muted-foreground))]">Tooltip style preparado para charts de línea, área y barras.</p>
|
|
140
|
-
</div>
|
|
141
|
-
</ng-container>
|
|
142
|
-
</div>
|
|
143
|
-
</section>
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
export type PdmChartType = 'area' | 'bar' | 'line' | 'pie' | 'radar' | 'radial' | 'tooltips';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'pdm-chart',
|
|
7
|
-
templateUrl: './chart.component.html',
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
9
|
-
})
|
|
10
|
-
export class PdmChartComponent {
|
|
11
|
-
@Input() type: PdmChartType = 'bar';
|
|
12
|
-
@Input() className = '';
|
|
13
|
-
@Input() title = 'Bar Chart - Interactive';
|
|
14
|
-
@Input() description = 'Showing total visitors for the last 3 months';
|
|
15
|
-
|
|
16
|
-
@Input() desktopLabel = 'Desktop';
|
|
17
|
-
@Input() desktopValue = '24,828';
|
|
18
|
-
@Input() mobileLabel = 'Mobile';
|
|
19
|
-
@Input() mobileValue = '25,010';
|
|
20
|
-
|
|
21
|
-
@Input() labels: string[] = ['Apr 9', 'Apr 19', 'Apr 29', 'May 9', 'May 19', 'May 29', 'Jun 9', 'Jun 19', 'Jun 30'];
|
|
22
|
-
|
|
23
|
-
@Input() bars: number[] = [
|
|
24
|
-
48, 21, 53, 69, 56, 77, 12, 54, 61, 59, 66, 27, 24, 27, 84, 62, 44, 18, 45, 57,
|
|
25
|
-
45, 72, 56, 15, 73, 25, 59, 86, 49, 59, 69, 93, 96, 72, 30, 58, 75, 67, 43, 43,
|
|
26
|
-
84, 89, 62, 96, 59, 72, 82, 34, 34, 70, 62, 42, 40, 80, 60, 33, 67, 34, 34, 88,
|
|
27
|
-
22, 84, 19, 62, 56, 43, 95, 70, 67, 89, 84, 31, 18, 92, 16, 87, 54, 44, 91, 23,
|
|
28
|
-
67, 77, 49, 59, 93, 26, 29, 81, 84, 30, 22, 84
|
|
29
|
-
];
|
|
30
|
-
@Input() line: number[] = [40, 28, 56, 49, 73, 67, 81, 58, 92];
|
|
31
|
-
@Input() pie: number[] = [35, 28, 20, 17];
|
|
32
|
-
@Input() radar: number[] = [72, 58, 88, 64, 79, 70];
|
|
33
|
-
@Input() radialValue = 76;
|
|
34
|
-
@Input() radialLabel = 'Completion';
|
|
35
|
-
@Input() radialDescription = 'Updated monthly';
|
|
36
|
-
@Input() tooltipTitle = 'June 2024';
|
|
37
|
-
@Input() tooltipPrimaryLabel = 'Desktop';
|
|
38
|
-
@Input() tooltipPrimaryValue = '12,450';
|
|
39
|
-
@Input() tooltipSecondaryLabel = 'Mobile';
|
|
40
|
-
@Input() tooltipSecondaryValue = '8,110';
|
|
41
|
-
@Input() pieLabels: string[] = ['Desktop', 'Mobile', 'Tablet', 'Other'];
|
|
42
|
-
|
|
43
|
-
get normalizedBars(): number[] {
|
|
44
|
-
if (!this.bars.length) {
|
|
45
|
-
return [];
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const max = Math.max(...this.bars);
|
|
49
|
-
if (max === 0) {
|
|
50
|
-
return this.bars.map(() => 0);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return this.bars.map((value) => Math.max(8, Math.round((value / max) * 183)));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
get normalizedLine(): number[] {
|
|
57
|
-
if (!this.line.length) {
|
|
58
|
-
return [];
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const max = Math.max(...this.line);
|
|
62
|
-
if (max === 0) {
|
|
63
|
-
return this.line.map(() => 170);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return this.line.map((value) => 180 - Math.round((value / max) * 150));
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
get linePath(): string {
|
|
70
|
-
const points = this.normalizedLine;
|
|
71
|
-
if (!points.length) {
|
|
72
|
-
return '';
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const step = points.length > 1 ? 320 / (points.length - 1) : 0;
|
|
76
|
-
return points
|
|
77
|
-
.map((y, index) => `${index === 0 ? 'M' : 'L'} ${Math.round(index * step)} ${y}`)
|
|
78
|
-
.join(' ');
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
get areaPath(): string {
|
|
82
|
-
const linePath = this.linePath;
|
|
83
|
-
if (!linePath) {
|
|
84
|
-
return '';
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
return `${linePath} L 320 180 L 0 180 Z`;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
get pieSegments(): { color: string; size: number; offset: number; label: string }[] {
|
|
91
|
-
const total = this.pie.reduce((acc, value) => acc + Math.max(value, 0), 0);
|
|
92
|
-
if (total === 0) {
|
|
93
|
-
return [];
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
let offset = 0;
|
|
97
|
-
const colors = ['#0090ff', '#34d399', '#f59e0b', '#f43f5e'];
|
|
98
|
-
return this.pie.map((value, index) => {
|
|
99
|
-
const size = (Math.max(value, 0) / total) * 100;
|
|
100
|
-
const segment = {
|
|
101
|
-
color: colors[index % colors.length],
|
|
102
|
-
size,
|
|
103
|
-
offset,
|
|
104
|
-
label: this.pieLabels[index] ?? `Series ${index + 1}`
|
|
105
|
-
};
|
|
106
|
-
offset += size;
|
|
107
|
-
return segment;
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
get pieGradient(): string {
|
|
112
|
-
const segments = this.pieSegments;
|
|
113
|
-
if (!segments.length) {
|
|
114
|
-
return 'conic-gradient(#e5e5e5 0 100%)';
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
return `conic-gradient(${segments
|
|
118
|
-
.map((segment) => `${segment.color} ${segment.offset}% ${segment.offset + segment.size}%`)
|
|
119
|
-
.join(', ')})`;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
get radarPoints(): string {
|
|
123
|
-
const values = this.radar.slice(0, 6);
|
|
124
|
-
if (!values.length) {
|
|
125
|
-
return '';
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
const max = Math.max(...values, 1);
|
|
129
|
-
const radius = 72;
|
|
130
|
-
const center = 80;
|
|
131
|
-
return values
|
|
132
|
-
.map((value, index) => {
|
|
133
|
-
const angle = ((Math.PI * 2) / values.length) * index - Math.PI / 2;
|
|
134
|
-
const valueRadius = (Math.max(value, 0) / max) * radius;
|
|
135
|
-
const x = center + Math.cos(angle) * valueRadius;
|
|
136
|
-
const y = center + Math.sin(angle) * valueRadius;
|
|
137
|
-
return `${x},${y}`;
|
|
138
|
-
})
|
|
139
|
-
.join(' ');
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
get radialStrokeOffset(): number {
|
|
143
|
-
const bounded = Math.max(0, Math.min(this.radialValue, 100));
|
|
144
|
-
const circumference = 2 * Math.PI * 42;
|
|
145
|
-
return circumference - (bounded / 100) * circumference;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<button
|
|
2
|
-
type="button"
|
|
3
|
-
role="checkbox"
|
|
4
|
-
[attr.id]="id || null"
|
|
5
|
-
[attr.aria-checked]="checked"
|
|
6
|
-
[attr.aria-disabled]="disabled"
|
|
7
|
-
[disabled]="disabled"
|
|
8
|
-
[ngClass]="[
|
|
9
|
-
'w-full border-0 bg-transparent p-0 text-left outline-none focus:outline-none focus-visible:outline-none',
|
|
10
|
-
variant === 'card'
|
|
11
|
-
? checked
|
|
12
|
-
? 'flex items-start gap-3 rounded-[10px] border border-foreground bg-muted p-3'
|
|
13
|
-
: 'flex items-start gap-3 rounded-[10px] border border-border bg-background p-3'
|
|
14
|
-
: hasDescription
|
|
15
|
-
? 'flex items-start gap-3'
|
|
16
|
-
: 'flex items-center gap-3',
|
|
17
|
-
disabled ? 'opacity-50' : '',
|
|
18
|
-
className
|
|
19
|
-
]"
|
|
20
|
-
(click)="onToggle()"
|
|
21
|
-
>
|
|
22
|
-
<span
|
|
23
|
-
[ngClass]="[
|
|
24
|
-
'mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-[6px] border shadow-[0_1px_2px_rgba(0,0,0,0.1)]',
|
|
25
|
-
checked ? 'border-foreground bg-foreground text-background' : 'border-input bg-background text-transparent'
|
|
26
|
-
]"
|
|
27
|
-
aria-hidden="true"
|
|
28
|
-
>
|
|
29
|
-
<svg viewBox="0 0 16 16" class="h-3 w-3" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
30
|
-
<path d="M3 8.5L6.4 12L13 4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
31
|
-
</svg>
|
|
32
|
-
</span>
|
|
33
|
-
|
|
34
|
-
<span [ngClass]="['min-w-0 flex-1', hasDescription ? 'flex flex-col gap-2' : 'flex items-center']">
|
|
35
|
-
<span class="text-[14px] font-medium leading-5 text-foreground">{{ label }}</span>
|
|
36
|
-
<span *ngIf="hasDescription" class="text-[14px] leading-5 text-muted-foreground">{{ description }}</span>
|
|
37
|
-
</span>
|
|
38
|
-
</button>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
export type PdmCheckboxVariant = 'default' | 'subtext' | 'card';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'pdm-checkbox',
|
|
7
|
-
templateUrl: './checkbox.component.html',
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
9
|
-
})
|
|
10
|
-
export class PdmCheckboxComponent {
|
|
11
|
-
@Input() id = '';
|
|
12
|
-
@Input() checked = false;
|
|
13
|
-
@Input() disabled = false;
|
|
14
|
-
@Input() variant: PdmCheckboxVariant = 'default';
|
|
15
|
-
@Input() label = 'Accept terms and conditions';
|
|
16
|
-
@Input() description = '';
|
|
17
|
-
@Input() className = '';
|
|
18
|
-
|
|
19
|
-
@Output() checkedChange = new EventEmitter<boolean>();
|
|
20
|
-
|
|
21
|
-
get hasDescription(): boolean {
|
|
22
|
-
return this.variant === 'subtext' || this.variant === 'card' ? !!this.description : false;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
onToggle(): void {
|
|
26
|
-
if (this.disabled) {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
this.checkedChange.emit(!this.checked);
|
|
31
|
-
}
|
|
32
|
-
}
|