@ng-cn/core 1.0.15 → 1.0.17
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 +34 -33
- package/schematics/component/index.js +454 -95
- package/schematics/component/index.ts +459 -98
- package/schematics/ng-add/index.js +539 -55
- package/schematics/ng-add/index.ts +555 -62
- package/schematics/ng-add/schema.json +8 -2
- package/schematics/test-schematic.js +1 -2
- package/src/app/lib/components/ui/.gitkeep +0 -0
- package/src/app/lib/components/ui/accordion/accordion-content.component.ts +16 -24
- package/src/app/lib/components/ui/accordion/accordion-context.ts +4 -9
- package/src/app/lib/components/ui/accordion/accordion-item.component.ts +33 -29
- package/src/app/lib/components/ui/accordion/accordion-trigger.component.ts +11 -14
- package/src/app/lib/components/ui/accordion/accordion.component.ts +60 -49
- package/src/app/lib/components/ui/accordion/index.ts +5 -6
- package/src/app/lib/components/ui/alert/alert-description.component.ts +3 -8
- package/src/app/lib/components/ui/alert/alert-title.component.ts +2 -7
- package/src/app/lib/components/ui/alert/alert-variants.ts +19 -5
- package/src/app/lib/components/ui/alert/alert.component.ts +2 -10
- package/src/app/lib/components/ui/alert/index.ts +0 -1
- package/src/app/lib/components/ui/alert-dialog/alert-dialog-action.component.ts +5 -12
- package/src/app/lib/components/ui/alert-dialog/alert-dialog-cancel.component.ts +5 -11
- package/src/app/lib/components/ui/alert-dialog/alert-dialog-content.component.ts +63 -66
- package/src/app/lib/components/ui/alert-dialog/alert-dialog-context.ts +10 -5
- package/src/app/lib/components/ui/alert-dialog/alert-dialog-description.component.ts +5 -10
- package/src/app/lib/components/ui/alert-dialog/alert-dialog-footer.component.ts +3 -7
- package/src/app/lib/components/ui/alert-dialog/alert-dialog-header.component.ts +3 -7
- package/src/app/lib/components/ui/alert-dialog/alert-dialog-title.component.ts +5 -12
- package/src/app/lib/components/ui/alert-dialog/alert-dialog-trigger.component.ts +8 -12
- package/src/app/lib/components/ui/alert-dialog/alert-dialog.component.ts +28 -34
- package/src/app/lib/components/ui/alert-dialog/index.ts +0 -1
- package/src/app/lib/components/ui/aspect-ratio/aspect-ratio.component.ts +3 -9
- package/src/app/lib/components/ui/avatar/avatar-context.ts +9 -0
- package/src/app/lib/components/ui/avatar/avatar-fallback.component.ts +7 -18
- package/src/app/lib/components/ui/avatar/avatar-image.component.ts +39 -17
- package/src/app/lib/components/ui/avatar/avatar.component.ts +17 -20
- package/src/app/lib/components/ui/avatar/index.ts +1 -1
- package/src/app/lib/components/ui/avatar/ui-avatar.component.ts +9 -30
- package/src/app/lib/components/ui/badge/badge-variants.ts +5 -5
- package/src/app/lib/components/ui/badge/badge.component.ts +4 -8
- package/src/app/lib/components/ui/badge/index.ts +0 -1
- package/src/app/lib/components/ui/breadcrumb/breadcrumb-ellipsis.component.ts +3 -7
- package/src/app/lib/components/ui/breadcrumb/breadcrumb-item.component.ts +5 -14
- package/src/app/lib/components/ui/breadcrumb/breadcrumb-link.component.ts +6 -18
- package/src/app/lib/components/ui/breadcrumb/breadcrumb-list.component.ts +6 -15
- package/src/app/lib/components/ui/breadcrumb/breadcrumb-page.component.ts +3 -7
- package/src/app/lib/components/ui/breadcrumb/breadcrumb-separator.component.ts +22 -31
- package/src/app/lib/components/ui/breadcrumb/breadcrumb.component.ts +3 -9
- package/src/app/lib/components/ui/breadcrumb/index.ts +0 -1
- package/src/app/lib/components/ui/button/button-variants.ts +6 -8
- package/src/app/lib/components/ui/button/button.component.ts +4 -8
- package/src/app/lib/components/ui/button/index.ts +0 -1
- package/src/app/lib/components/ui/button-group/button-group-variants.ts +12 -15
- package/src/app/lib/components/ui/button-group/button-group.component.ts +6 -14
- package/src/app/lib/components/ui/button-group/index.ts +1 -5
- package/src/app/lib/components/ui/calendar/calendar.component.ts +103 -115
- package/src/app/lib/components/ui/card/card-action.component.ts +2 -10
- package/src/app/lib/components/ui/card/card-content.component.ts +1 -6
- package/src/app/lib/components/ui/card/card-description.component.ts +2 -7
- package/src/app/lib/components/ui/card/card-footer.component.ts +2 -7
- package/src/app/lib/components/ui/card/card-header.component.ts +3 -8
- package/src/app/lib/components/ui/card/card-title.component.ts +2 -9
- package/src/app/lib/components/ui/card/card.component.ts +3 -8
- package/src/app/lib/components/ui/card/index.ts +0 -1
- package/src/app/lib/components/ui/carousel/carousel-content.component.ts +3 -9
- package/src/app/lib/components/ui/carousel/carousel-item.component.ts +5 -5
- package/src/app/lib/components/ui/carousel/carousel-next.component.ts +9 -8
- package/src/app/lib/components/ui/carousel/carousel-previous.component.ts +9 -8
- package/src/app/lib/components/ui/carousel/carousel.component.ts +14 -25
- package/src/app/lib/components/ui/carousel/index.ts +5 -2
- package/src/app/lib/components/ui/chart/chart-container.component.ts +20 -26
- package/src/app/lib/components/ui/chart/chart-legend-content.component.ts +6 -16
- package/src/app/lib/components/ui/chart/chart-legend.component.ts +2 -7
- package/src/app/lib/components/ui/chart/chart-tooltip-content.component.ts +2 -9
- package/src/app/lib/components/ui/chart/chart-tooltip.component.ts +2 -7
- package/src/app/lib/components/ui/chart/chart.component.ts +12 -32
- package/src/app/lib/components/ui/chart/index.ts +7 -8
- package/src/app/lib/components/ui/checkbox/checkbox.component.ts +55 -74
- package/src/app/lib/components/ui/collapsible/collapsible-content.component.ts +16 -25
- package/src/app/lib/components/ui/collapsible/collapsible-context.ts +0 -8
- package/src/app/lib/components/ui/collapsible/collapsible-trigger.component.ts +6 -16
- package/src/app/lib/components/ui/collapsible/collapsible.component.ts +29 -33
- package/src/app/lib/components/ui/collapsible/index.ts +0 -1
- package/src/app/lib/components/ui/combobox/combobox-content.component.ts +8 -15
- package/src/app/lib/components/ui/combobox/combobox-context.ts +5 -4
- package/src/app/lib/components/ui/combobox/combobox-empty.component.ts +5 -12
- package/src/app/lib/components/ui/combobox/combobox-group.component.ts +3 -7
- package/src/app/lib/components/ui/combobox/combobox-input.component.ts +25 -25
- package/src/app/lib/components/ui/combobox/combobox-item.component.ts +45 -44
- package/src/app/lib/components/ui/combobox/combobox-list.component.ts +14 -12
- package/src/app/lib/components/ui/combobox/combobox-trigger.component.ts +24 -14
- package/src/app/lib/components/ui/combobox/combobox-value.component.ts +27 -22
- package/src/app/lib/components/ui/combobox/combobox.component.ts +74 -54
- package/src/app/lib/components/ui/combobox/index.ts +1 -6
- package/src/app/lib/components/ui/command/command-context.ts +1 -5
- package/src/app/lib/components/ui/command/command-dialog.component.ts +12 -14
- package/src/app/lib/components/ui/command/command-empty.component.ts +2 -3
- package/src/app/lib/components/ui/command/command-group.component.ts +32 -25
- package/src/app/lib/components/ui/command/command-input.component.ts +29 -28
- package/src/app/lib/components/ui/command/command-item.component.ts +46 -58
- package/src/app/lib/components/ui/command/command-list.component.ts +5 -4
- package/src/app/lib/components/ui/command/command-separator.component.ts +2 -3
- package/src/app/lib/components/ui/command/command-shortcut.component.ts +2 -1
- package/src/app/lib/components/ui/command/command.component.ts +33 -22
- package/src/app/lib/components/ui/command/index.ts +0 -1
- package/src/app/lib/components/ui/context-menu/context-menu-checkbox-item.component.ts +20 -11
- package/src/app/lib/components/ui/context-menu/context-menu-content.component.ts +36 -43
- package/src/app/lib/components/ui/context-menu/context-menu-context.ts +1 -1
- package/src/app/lib/components/ui/context-menu/context-menu-item.component.ts +12 -13
- package/src/app/lib/components/ui/context-menu/context-menu-label.component.ts +2 -5
- package/src/app/lib/components/ui/context-menu/context-menu-radio-group.component.ts +9 -2
- package/src/app/lib/components/ui/context-menu/context-menu-radio-item.component.ts +14 -14
- package/src/app/lib/components/ui/context-menu/context-menu-separator.component.ts +2 -3
- package/src/app/lib/components/ui/context-menu/context-menu-shortcut.component.ts +2 -1
- package/src/app/lib/components/ui/context-menu/context-menu-sub-content.component.ts +5 -5
- package/src/app/lib/components/ui/context-menu/context-menu-sub-trigger.component.ts +8 -7
- package/src/app/lib/components/ui/context-menu/context-menu-sub.component.ts +9 -2
- package/src/app/lib/components/ui/context-menu/context-menu-trigger.component.ts +8 -7
- package/src/app/lib/components/ui/context-menu/context-menu.component.ts +1 -0
- package/src/app/lib/components/ui/context-menu/index.ts +15 -4
- package/src/app/lib/components/ui/data-table/data-table-content.component.ts +22 -28
- package/src/app/lib/components/ui/data-table/data-table-context.ts +1 -3
- package/src/app/lib/components/ui/data-table/data-table-pagination.component.ts +17 -27
- package/src/app/lib/components/ui/data-table/data-table-search.component.ts +6 -14
- package/src/app/lib/components/ui/data-table/data-table-toolbar.component.ts +3 -7
- package/src/app/lib/components/ui/data-table/data-table-view-options.component.ts +11 -20
- package/src/app/lib/components/ui/data-table/data-table.component.ts +41 -49
- package/src/app/lib/components/ui/data-table/index.ts +7 -8
- package/src/app/lib/components/ui/date-picker/date-picker.component.ts +24 -24
- package/src/app/lib/components/ui/dialog/dialog-close.component.ts +4 -8
- package/src/app/lib/components/ui/dialog/dialog-content.component.ts +72 -73
- package/src/app/lib/components/ui/dialog/dialog-context.ts +7 -5
- package/src/app/lib/components/ui/dialog/dialog-description.component.ts +5 -10
- package/src/app/lib/components/ui/dialog/dialog-footer.component.ts +3 -7
- package/src/app/lib/components/ui/dialog/dialog-header.component.ts +3 -7
- package/src/app/lib/components/ui/dialog/dialog-title.component.ts +5 -10
- package/src/app/lib/components/ui/dialog/dialog-trigger.component.ts +7 -11
- package/src/app/lib/components/ui/dialog/dialog.component.ts +29 -34
- package/src/app/lib/components/ui/dialog/index.ts +0 -1
- package/src/app/lib/components/ui/drawer/drawer-close.component.ts +4 -8
- package/src/app/lib/components/ui/drawer/drawer-content.component.ts +39 -35
- package/src/app/lib/components/ui/drawer/drawer-description.component.ts +5 -10
- package/src/app/lib/components/ui/drawer/drawer-footer.component.ts +3 -7
- package/src/app/lib/components/ui/drawer/drawer-header.component.ts +3 -7
- package/src/app/lib/components/ui/drawer/drawer-title.component.ts +5 -10
- package/src/app/lib/components/ui/drawer/drawer-trigger.component.ts +7 -11
- package/src/app/lib/components/ui/drawer/drawer.component.ts +25 -26
- package/src/app/lib/components/ui/drawer/index.ts +0 -1
- package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.component.ts +20 -11
- package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-content.component.ts +96 -61
- package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-context.ts +1 -1
- package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-group.component.ts +1 -0
- package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-item.component.ts +10 -11
- package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-label.component.ts +2 -5
- package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-radio-group.component.ts +14 -5
- package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.component.ts +14 -14
- package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-separator.component.ts +2 -3
- package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.component.ts +2 -1
- package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.component.ts +5 -5
- package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.component.ts +8 -7
- package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-sub.component.ts +9 -2
- package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-trigger.component.ts +6 -5
- package/src/app/lib/components/ui/dropdown-menu/dropdown-menu.component.ts +1 -0
- package/src/app/lib/components/ui/dropdown-menu/index.ts +10 -3
- package/src/app/lib/components/ui/empty/empty-action.component.ts +2 -9
- package/src/app/lib/components/ui/empty/empty-description.component.ts +2 -10
- package/src/app/lib/components/ui/empty/empty-icon.component.ts +3 -8
- package/src/app/lib/components/ui/empty/empty-title.component.ts +2 -9
- package/src/app/lib/components/ui/empty/empty.component.ts +3 -8
- package/src/app/lib/components/ui/empty/index.ts +0 -1
- package/src/app/lib/components/ui/form/form-context.ts +1 -11
- package/src/app/lib/components/ui/form/form-control.component.ts +22 -22
- package/src/app/lib/components/ui/form/form-description.component.ts +4 -10
- package/src/app/lib/components/ui/form/form-field.component.ts +7 -10
- package/src/app/lib/components/ui/form/form-item.component.ts +2 -12
- package/src/app/lib/components/ui/form/form-label.component.ts +15 -15
- package/src/app/lib/components/ui/form/form-message.component.ts +7 -15
- package/src/app/lib/components/ui/form/form.component.ts +9 -20
- package/src/app/lib/components/ui/form/index.ts +4 -5
- package/src/app/lib/components/ui/hover-card/hover-card-content.component.ts +21 -33
- package/src/app/lib/components/ui/hover-card/hover-card-context.ts +0 -8
- package/src/app/lib/components/ui/hover-card/hover-card-trigger.component.ts +17 -26
- package/src/app/lib/components/ui/hover-card/hover-card.component.ts +18 -28
- package/src/app/lib/components/ui/hover-card/index.ts +9 -6
- package/src/app/lib/components/ui/input/input.component.ts +57 -75
- package/src/app/lib/components/ui/input-group/index.ts +0 -1
- package/src/app/lib/components/ui/input-group/input-group-addon.component.ts +4 -11
- package/src/app/lib/components/ui/input-group/input-group-input.component.ts +3 -8
- package/src/app/lib/components/ui/input-group/input-group.component.ts +4 -9
- package/src/app/lib/components/ui/input-otp/index.ts +4 -5
- package/src/app/lib/components/ui/input-otp/input-otp-context.ts +0 -8
- package/src/app/lib/components/ui/input-otp/input-otp-group.component.ts +2 -3
- package/src/app/lib/components/ui/input-otp/input-otp-separator.component.ts +4 -3
- package/src/app/lib/components/ui/input-otp/input-otp-slot.component.ts +8 -10
- package/src/app/lib/components/ui/input-otp/input-otp.component.ts +27 -45
- package/src/app/lib/components/ui/kbd/index.ts +0 -1
- package/src/app/lib/components/ui/kbd/kbd-variants.ts +1 -1
- package/src/app/lib/components/ui/kbd/kbd.component.ts +4 -8
- package/src/app/lib/components/ui/label/label.component.ts +15 -28
- package/src/app/lib/components/ui/menubar/index.ts +11 -8
- package/src/app/lib/components/ui/menubar/menubar-checkbox-item.component.ts +21 -12
- package/src/app/lib/components/ui/menubar/menubar-content.component.ts +46 -53
- package/src/app/lib/components/ui/menubar/menubar-context.ts +3 -9
- package/src/app/lib/components/ui/menubar/menubar-item.component.ts +13 -14
- package/src/app/lib/components/ui/menubar/menubar-label.component.ts +2 -5
- package/src/app/lib/components/ui/menubar/menubar-menu.component.ts +14 -2
- package/src/app/lib/components/ui/menubar/menubar-radio-group.component.ts +9 -2
- package/src/app/lib/components/ui/menubar/menubar-radio-item.component.ts +13 -13
- package/src/app/lib/components/ui/menubar/menubar-separator.component.ts +2 -3
- package/src/app/lib/components/ui/menubar/menubar-shortcut.component.ts +2 -1
- package/src/app/lib/components/ui/menubar/menubar-sub-content.component.ts +5 -5
- package/src/app/lib/components/ui/menubar/menubar-sub-trigger.component.ts +7 -6
- package/src/app/lib/components/ui/menubar/menubar-sub.component.ts +8 -1
- package/src/app/lib/components/ui/menubar/menubar-trigger.component.ts +26 -21
- package/src/app/lib/components/ui/menubar/menubar.component.ts +6 -13
- package/src/app/lib/components/ui/native-select/index.ts +1 -5
- package/src/app/lib/components/ui/native-select/native-select-variants.ts +1 -1
- package/src/app/lib/components/ui/native-select/native-select.component.ts +14 -15
- package/src/app/lib/components/ui/navigation-menu/index.ts +10 -8
- package/src/app/lib/components/ui/navigation-menu/navigation-menu-content.component.ts +18 -13
- package/src/app/lib/components/ui/navigation-menu/navigation-menu-context.ts +2 -10
- package/src/app/lib/components/ui/navigation-menu/navigation-menu-indicator.component.ts +3 -2
- package/src/app/lib/components/ui/navigation-menu/navigation-menu-item.component.ts +6 -1
- package/src/app/lib/components/ui/navigation-menu/navigation-menu-link.component.ts +3 -8
- package/src/app/lib/components/ui/navigation-menu/navigation-menu-list.component.ts +2 -4
- package/src/app/lib/components/ui/navigation-menu/navigation-menu-trigger-style.ts +1 -1
- package/src/app/lib/components/ui/navigation-menu/navigation-menu-trigger.component.ts +8 -7
- package/src/app/lib/components/ui/navigation-menu/navigation-menu-viewport.component.ts +3 -2
- package/src/app/lib/components/ui/navigation-menu/navigation-menu.component.ts +8 -15
- package/src/app/lib/components/ui/pagination/index.ts +0 -1
- package/src/app/lib/components/ui/pagination/pagination-content.component.ts +3 -7
- package/src/app/lib/components/ui/pagination/pagination-ellipsis.component.ts +3 -7
- package/src/app/lib/components/ui/pagination/pagination-item.component.ts +3 -9
- package/src/app/lib/components/ui/pagination/pagination-link.component.ts +4 -8
- package/src/app/lib/components/ui/pagination/pagination-next.component.ts +3 -11
- package/src/app/lib/components/ui/pagination/pagination-previous.component.ts +3 -11
- package/src/app/lib/components/ui/pagination/pagination.component.ts +3 -7
- package/src/app/lib/components/ui/popover/index.ts +9 -6
- package/src/app/lib/components/ui/popover/popover-anchor.component.ts +2 -13
- package/src/app/lib/components/ui/popover/popover-content.component.ts +119 -69
- package/src/app/lib/components/ui/popover/popover-context.ts +0 -8
- package/src/app/lib/components/ui/popover/popover-trigger.component.ts +22 -22
- package/src/app/lib/components/ui/popover/popover.component.ts +20 -33
- package/src/app/lib/components/ui/progress/index.ts +1 -6
- package/src/app/lib/components/ui/progress/progress.component.ts +15 -30
- package/src/app/lib/components/ui/radio-group/index.ts +1 -4
- package/src/app/lib/components/ui/radio-group/radio-group-context.ts +1 -7
- package/src/app/lib/components/ui/radio-group/radio-group-item.component.ts +36 -69
- package/src/app/lib/components/ui/radio-group/radio-group.component.ts +38 -67
- package/src/app/lib/components/ui/resizable/index.ts +0 -1
- package/src/app/lib/components/ui/resizable/resizable-handle.component.ts +25 -39
- package/src/app/lib/components/ui/resizable/resizable-panel-group.component.ts +15 -18
- package/src/app/lib/components/ui/resizable/resizable-panel.component.ts +12 -31
- package/src/app/lib/components/ui/scroll-area/index.ts +4 -5
- package/src/app/lib/components/ui/scroll-area/scroll-area.component.ts +5 -19
- package/src/app/lib/components/ui/scroll-area/scroll-bar.component.ts +8 -27
- package/src/app/lib/components/ui/segmented/index.ts +5 -9
- package/src/app/lib/components/ui/segmented/segmented-context.ts +1 -3
- package/src/app/lib/components/ui/segmented/segmented-item.component.ts +21 -29
- package/src/app/lib/components/ui/segmented/segmented-variants.ts +2 -2
- package/src/app/lib/components/ui/segmented/segmented.component.ts +24 -32
- package/src/app/lib/components/ui/select/index.ts +5 -6
- package/src/app/lib/components/ui/select/select-content.component.ts +34 -62
- package/src/app/lib/components/ui/select/select-context.ts +4 -14
- package/src/app/lib/components/ui/select/select-group.component.ts +6 -7
- package/src/app/lib/components/ui/select/select-item.component.ts +46 -55
- package/src/app/lib/components/ui/select/select-label.component.ts +2 -7
- package/src/app/lib/components/ui/select/select-separator.component.ts +3 -8
- package/src/app/lib/components/ui/select/select-trigger.component.ts +28 -25
- package/src/app/lib/components/ui/select/select-value.component.ts +7 -13
- package/src/app/lib/components/ui/select/select.component.ts +52 -64
- package/src/app/lib/components/ui/separator/index.ts +1 -6
- package/src/app/lib/components/ui/separator/separator.component.ts +4 -19
- package/src/app/lib/components/ui/sheet/index.ts +0 -1
- package/src/app/lib/components/ui/sheet/sheet-close.component.ts +4 -8
- package/src/app/lib/components/ui/sheet/sheet-content.component.ts +31 -36
- package/src/app/lib/components/ui/sheet/sheet-description.component.ts +5 -10
- package/src/app/lib/components/ui/sheet/sheet-footer.component.ts +3 -7
- package/src/app/lib/components/ui/sheet/sheet-header.component.ts +3 -7
- package/src/app/lib/components/ui/sheet/sheet-title.component.ts +5 -10
- package/src/app/lib/components/ui/sheet/sheet-trigger.component.ts +7 -11
- package/src/app/lib/components/ui/sheet/sheet-variants.ts +1 -1
- package/src/app/lib/components/ui/sheet/sheet.component.ts +36 -36
- package/src/app/lib/components/ui/sidebar/index.ts +14 -15
- package/src/app/lib/components/ui/sidebar/sidebar-content.component.ts +4 -8
- package/src/app/lib/components/ui/sidebar/sidebar-context.ts +1 -3
- package/src/app/lib/components/ui/sidebar/sidebar-footer.component.ts +3 -9
- package/src/app/lib/components/ui/sidebar/sidebar-group-action.component.ts +4 -8
- package/src/app/lib/components/ui/sidebar/sidebar-group-content.component.ts +3 -9
- package/src/app/lib/components/ui/sidebar/sidebar-group-label.component.ts +4 -8
- package/src/app/lib/components/ui/sidebar/sidebar-group.component.ts +3 -7
- package/src/app/lib/components/ui/sidebar/sidebar-header.component.ts +3 -9
- package/src/app/lib/components/ui/sidebar/sidebar-input.component.ts +4 -8
- package/src/app/lib/components/ui/sidebar/sidebar-inset.component.ts +4 -8
- package/src/app/lib/components/ui/sidebar/sidebar-menu-action.component.ts +4 -8
- package/src/app/lib/components/ui/sidebar/sidebar-menu-badge.component.ts +4 -8
- package/src/app/lib/components/ui/sidebar/sidebar-menu-button.component.ts +4 -9
- package/src/app/lib/components/ui/sidebar/sidebar-menu-item.component.ts +3 -9
- package/src/app/lib/components/ui/sidebar/sidebar-menu-skeleton.component.ts +6 -11
- package/src/app/lib/components/ui/sidebar/sidebar-menu-sub-button.component.ts +4 -8
- package/src/app/lib/components/ui/sidebar/sidebar-menu-sub-item.component.ts +2 -6
- package/src/app/lib/components/ui/sidebar/sidebar-menu-sub.component.ts +4 -8
- package/src/app/lib/components/ui/sidebar/sidebar-menu.component.ts +3 -7
- package/src/app/lib/components/ui/sidebar/sidebar-provider.component.ts +46 -52
- package/src/app/lib/components/ui/sidebar/sidebar-rail.component.ts +6 -11
- package/src/app/lib/components/ui/sidebar/sidebar-route-active.service.ts +17 -17
- package/src/app/lib/components/ui/sidebar/sidebar-separator.component.ts +3 -7
- package/src/app/lib/components/ui/sidebar/sidebar-trigger.component.ts +6 -11
- package/src/app/lib/components/ui/sidebar/sidebar.component.ts +20 -31
- package/src/app/lib/components/ui/skeleton/skeleton.component.ts +3 -8
- package/src/app/lib/components/ui/slider/index.ts +1 -6
- package/src/app/lib/components/ui/slider/slider.component.ts +73 -138
- package/src/app/lib/components/ui/spinner/index.ts +0 -1
- package/src/app/lib/components/ui/spinner/spinner-variants.ts +19 -22
- package/src/app/lib/components/ui/spinner/spinner.component.ts +4 -8
- package/src/app/lib/components/ui/switch/index.ts +1 -6
- package/src/app/lib/components/ui/switch/switch.component.ts +83 -108
- package/src/app/lib/components/ui/table/index.ts +0 -1
- package/src/app/lib/components/ui/table/table-body.component.ts +6 -10
- package/src/app/lib/components/ui/table/table-caption.component.ts +6 -8
- package/src/app/lib/components/ui/table/table-cell.component.ts +4 -8
- package/src/app/lib/components/ui/table/table-footer.component.ts +6 -8
- package/src/app/lib/components/ui/table/table-head.component.ts +4 -8
- package/src/app/lib/components/ui/table/table-header.component.ts +6 -10
- package/src/app/lib/components/ui/table/table-row.component.ts +6 -11
- package/src/app/lib/components/ui/table/table.component.ts +4 -8
- package/src/app/lib/components/ui/tabs/index.ts +14 -7
- package/src/app/lib/components/ui/tabs/tabs-content.component.ts +11 -36
- package/src/app/lib/components/ui/tabs/tabs-context.ts +0 -8
- package/src/app/lib/components/ui/tabs/tabs-list.component.ts +54 -60
- package/src/app/lib/components/ui/tabs/tabs-trigger.component.ts +20 -35
- package/src/app/lib/components/ui/tabs/tabs.component.ts +32 -49
- package/src/app/lib/components/ui/textarea/textarea.component.ts +3 -8
- package/src/app/lib/components/ui/toast/index.ts +6 -7
- package/src/app/lib/components/ui/toast/toast-action.component.ts +7 -18
- package/src/app/lib/components/ui/toast/toast-description.component.ts +2 -11
- package/src/app/lib/components/ui/toast/toast-title.component.ts +2 -9
- package/src/app/lib/components/ui/toast/toast-variants.ts +1 -1
- package/src/app/lib/components/ui/toast/toast.component.ts +18 -24
- package/src/app/lib/components/ui/toast/toast.service.ts +22 -37
- package/src/app/lib/components/ui/toast/toaster.component.ts +6 -16
- package/src/app/lib/components/ui/toggle/index.ts +1 -5
- package/src/app/lib/components/ui/toggle/toggle-variants.ts +2 -2
- package/src/app/lib/components/ui/toggle/toggle.component.ts +32 -51
- package/src/app/lib/components/ui/toggle-group/index.ts +1 -4
- package/src/app/lib/components/ui/toggle-group/toggle-group-context.ts +1 -7
- package/src/app/lib/components/ui/toggle-group/toggle-group-item.component.ts +38 -59
- package/src/app/lib/components/ui/toggle-group/toggle-group.component.ts +33 -51
- package/src/app/lib/components/ui/tooltip/index.ts +9 -6
- package/src/app/lib/components/ui/tooltip/tooltip-content.component.ts +6 -24
- package/src/app/lib/components/ui/tooltip/tooltip-context.ts +0 -8
- package/src/app/lib/components/ui/tooltip/tooltip-provider.component.ts +12 -24
- package/src/app/lib/components/ui/tooltip/tooltip-trigger.component.ts +4 -21
- package/src/app/lib/components/ui/tooltip/tooltip.component.ts +21 -33
- package/src/app/lib/components/ui/typography/index.ts +0 -1
- package/src/app/lib/components/ui/typography/typography-blockquote.component.ts +3 -7
- package/src/app/lib/components/ui/typography/typography-h1.component.ts +3 -10
- package/src/app/lib/components/ui/typography/typography-h2.component.ts +3 -10
- package/src/app/lib/components/ui/typography/typography-h3.component.ts +3 -7
- package/src/app/lib/components/ui/typography/typography-h4.component.ts +3 -7
- package/src/app/lib/components/ui/typography/typography-inline-code.component.ts +4 -8
- package/src/app/lib/components/ui/typography/typography-large.component.ts +3 -9
- package/src/app/lib/components/ui/typography/typography-lead.component.ts +3 -7
- package/src/app/lib/components/ui/typography/typography-list.component.ts +3 -7
- package/src/app/lib/components/ui/typography/typography-muted.component.ts +3 -7
- package/src/app/lib/components/ui/typography/typography-p.component.ts +3 -7
- package/src/app/lib/components/ui/typography/typography-small.component.ts +3 -7
- package/src/app/lib/utils/accessibility/click-outside.directive.ts +1 -8
- package/src/app/lib/utils/accessibility/focus-management.service.ts +4 -15
- package/src/app/lib/utils/accessibility/focus-trap.directive.ts +32 -106
- package/src/app/lib/utils/accessibility/index.ts +16 -5
- package/src/app/lib/utils/accessibility/keyboard-navigation.directive.ts +5 -8
- package/src/app/lib/utils/accessibility/live-region.directive.ts +10 -13
- package/src/app/lib/utils/accessibility/touch-target.directive.ts +1 -8
- package/src/app/lib/utils/animation/animation.utils.ts +4 -7
- package/src/app/lib/utils/animation/index.ts +15 -5
- package/src/app/lib/utils/animation/presence.component.ts +1 -1
- package/src/app/lib/utils/animation/presence.directive.ts +2 -2
- package/src/app/lib/utils/positioning/index.ts +40 -18
- package/src/app/lib/components/ui/index.ts +0 -551
- package/src/app/lib/index.ts +0 -7
|
@@ -10,21 +10,68 @@ interface NgAddOptions {
|
|
|
10
10
|
theme?: ThemeVariant;
|
|
11
11
|
skipInstall?: boolean;
|
|
12
12
|
skipStyles?: boolean;
|
|
13
|
-
components?: string;
|
|
13
|
+
components?: string; // Can be 'all' or comma-separated list like 'button,card,dialog'
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
// All available components in the registry
|
|
17
17
|
const ALL_COMPONENTS = [
|
|
18
|
-
'accordion',
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
18
|
+
'accordion',
|
|
19
|
+
'alert',
|
|
20
|
+
'alert-dialog',
|
|
21
|
+
'aspect-ratio',
|
|
22
|
+
'avatar',
|
|
23
|
+
'badge',
|
|
24
|
+
'breadcrumb',
|
|
25
|
+
'button',
|
|
26
|
+
'button-group',
|
|
27
|
+
'calendar',
|
|
28
|
+
'card',
|
|
29
|
+
'carousel',
|
|
30
|
+
'chart',
|
|
31
|
+
'checkbox',
|
|
32
|
+
'collapsible',
|
|
33
|
+
'combobox',
|
|
34
|
+
'command',
|
|
35
|
+
'context-menu',
|
|
36
|
+
'data-table',
|
|
37
|
+
'date-picker',
|
|
38
|
+
'dialog',
|
|
39
|
+
'drawer',
|
|
40
|
+
'dropdown-menu',
|
|
41
|
+
'empty',
|
|
42
|
+
'form',
|
|
43
|
+
'hover-card',
|
|
44
|
+
'input',
|
|
45
|
+
'input-group',
|
|
46
|
+
'input-otp',
|
|
47
|
+
'kbd',
|
|
48
|
+
'label',
|
|
49
|
+
'menubar',
|
|
50
|
+
'native-select',
|
|
51
|
+
'navigation-menu',
|
|
52
|
+
'pagination',
|
|
53
|
+
'popover',
|
|
54
|
+
'progress',
|
|
55
|
+
'radio-group',
|
|
56
|
+
'resizable',
|
|
57
|
+
'scroll-area',
|
|
58
|
+
'segmented',
|
|
59
|
+
'select',
|
|
60
|
+
'separator',
|
|
61
|
+
'sheet',
|
|
62
|
+
'sidebar',
|
|
63
|
+
'skeleton',
|
|
64
|
+
'slider',
|
|
65
|
+
'spinner',
|
|
66
|
+
'switch',
|
|
67
|
+
'table',
|
|
68
|
+
'tabs',
|
|
69
|
+
'textarea',
|
|
70
|
+
'toast',
|
|
71
|
+
'toggle',
|
|
72
|
+
'toggle-group',
|
|
73
|
+
'tooltip',
|
|
74
|
+
'typography',
|
|
28
75
|
];
|
|
29
76
|
|
|
30
77
|
// Component registry - maps component names to their file structure (for --components option)
|
|
@@ -33,63 +80,498 @@ interface ComponentInfo {
|
|
|
33
80
|
}
|
|
34
81
|
|
|
35
82
|
const COMPONENT_REGISTRY: Record<string, ComponentInfo> = {
|
|
36
|
-
accordion: {
|
|
37
|
-
|
|
38
|
-
|
|
83
|
+
accordion: {
|
|
84
|
+
files: [
|
|
85
|
+
'accordion.component.ts',
|
|
86
|
+
'accordion-content.component.ts',
|
|
87
|
+
'accordion-context.ts',
|
|
88
|
+
'accordion-item.component.ts',
|
|
89
|
+
'accordion-trigger.component.ts',
|
|
90
|
+
'index.ts',
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
alert: {
|
|
94
|
+
files: [
|
|
95
|
+
'alert.component.ts',
|
|
96
|
+
'alert-title.component.ts',
|
|
97
|
+
'alert-description.component.ts',
|
|
98
|
+
'alert-variants.ts',
|
|
99
|
+
'index.ts',
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
'alert-dialog': {
|
|
103
|
+
files: [
|
|
104
|
+
'alert-dialog.component.ts',
|
|
105
|
+
'alert-dialog-action.component.ts',
|
|
106
|
+
'alert-dialog-cancel.component.ts',
|
|
107
|
+
'alert-dialog-content.component.ts',
|
|
108
|
+
'alert-dialog-context.ts',
|
|
109
|
+
'alert-dialog-description.component.ts',
|
|
110
|
+
'alert-dialog-footer.component.ts',
|
|
111
|
+
'alert-dialog-header.component.ts',
|
|
112
|
+
'alert-dialog-title.component.ts',
|
|
113
|
+
'alert-dialog-trigger.component.ts',
|
|
114
|
+
'index.ts',
|
|
115
|
+
],
|
|
116
|
+
},
|
|
39
117
|
'aspect-ratio': { files: ['aspect-ratio.component.ts', 'index.ts'] },
|
|
40
|
-
avatar: {
|
|
118
|
+
avatar: {
|
|
119
|
+
files: [
|
|
120
|
+
'avatar.component.ts',
|
|
121
|
+
'avatar-fallback.component.ts',
|
|
122
|
+
'avatar-image.component.ts',
|
|
123
|
+
'ui-avatar.component.ts',
|
|
124
|
+
'index.ts',
|
|
125
|
+
],
|
|
126
|
+
},
|
|
41
127
|
badge: { files: ['badge.component.ts', 'badge-variants.ts', 'index.ts'] },
|
|
42
|
-
breadcrumb: {
|
|
128
|
+
breadcrumb: {
|
|
129
|
+
files: [
|
|
130
|
+
'breadcrumb.component.ts',
|
|
131
|
+
'breadcrumb-ellipsis.component.ts',
|
|
132
|
+
'breadcrumb-item.component.ts',
|
|
133
|
+
'breadcrumb-link.component.ts',
|
|
134
|
+
'breadcrumb-list.component.ts',
|
|
135
|
+
'breadcrumb-page.component.ts',
|
|
136
|
+
'breadcrumb-separator.component.ts',
|
|
137
|
+
'index.ts',
|
|
138
|
+
],
|
|
139
|
+
},
|
|
43
140
|
button: { files: ['button.component.ts', 'button-variants.ts', 'index.ts'] },
|
|
44
141
|
'button-group': { files: ['button-group.component.ts', 'button-group-variants.ts', 'index.ts'] },
|
|
45
142
|
calendar: { files: ['calendar.component.ts', 'index.ts'] },
|
|
46
|
-
card: {
|
|
47
|
-
|
|
48
|
-
|
|
143
|
+
card: {
|
|
144
|
+
files: [
|
|
145
|
+
'card.component.ts',
|
|
146
|
+
'card-action.component.ts',
|
|
147
|
+
'card-content.component.ts',
|
|
148
|
+
'card-description.component.ts',
|
|
149
|
+
'card-footer.component.ts',
|
|
150
|
+
'card-header.component.ts',
|
|
151
|
+
'card-title.component.ts',
|
|
152
|
+
'index.ts',
|
|
153
|
+
],
|
|
154
|
+
},
|
|
155
|
+
carousel: {
|
|
156
|
+
files: [
|
|
157
|
+
'carousel.component.ts',
|
|
158
|
+
'carousel-content.component.ts',
|
|
159
|
+
'carousel-context.ts',
|
|
160
|
+
'carousel-item.component.ts',
|
|
161
|
+
'carousel-next.component.ts',
|
|
162
|
+
'carousel-previous.component.ts',
|
|
163
|
+
'index.ts',
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
chart: {
|
|
167
|
+
files: [
|
|
168
|
+
'chart.component.ts',
|
|
169
|
+
'chart-container.component.ts',
|
|
170
|
+
'chart-context.ts',
|
|
171
|
+
'chart-legend.component.ts',
|
|
172
|
+
'chart-legend-content.component.ts',
|
|
173
|
+
'chart-tooltip.component.ts',
|
|
174
|
+
'chart-tooltip-content.component.ts',
|
|
175
|
+
'index.ts',
|
|
176
|
+
],
|
|
177
|
+
},
|
|
49
178
|
checkbox: { files: ['checkbox.component.ts', 'index.ts'] },
|
|
50
|
-
collapsible: {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
179
|
+
collapsible: {
|
|
180
|
+
files: [
|
|
181
|
+
'collapsible.component.ts',
|
|
182
|
+
'collapsible-content.component.ts',
|
|
183
|
+
'collapsible-context.ts',
|
|
184
|
+
'collapsible-trigger.component.ts',
|
|
185
|
+
'index.ts',
|
|
186
|
+
],
|
|
187
|
+
},
|
|
188
|
+
combobox: {
|
|
189
|
+
files: [
|
|
190
|
+
'combobox.component.ts',
|
|
191
|
+
'combobox-content.component.ts',
|
|
192
|
+
'combobox-context.ts',
|
|
193
|
+
'combobox-empty.component.ts',
|
|
194
|
+
'combobox-group.component.ts',
|
|
195
|
+
'combobox-input.component.ts',
|
|
196
|
+
'combobox-item.component.ts',
|
|
197
|
+
'combobox-list.component.ts',
|
|
198
|
+
'combobox-trigger.component.ts',
|
|
199
|
+
'combobox-value.component.ts',
|
|
200
|
+
'index.ts',
|
|
201
|
+
],
|
|
202
|
+
},
|
|
203
|
+
command: {
|
|
204
|
+
files: [
|
|
205
|
+
'command.component.ts',
|
|
206
|
+
'command-context.ts',
|
|
207
|
+
'command-dialog.component.ts',
|
|
208
|
+
'command-empty.component.ts',
|
|
209
|
+
'command-group.component.ts',
|
|
210
|
+
'command-input.component.ts',
|
|
211
|
+
'command-item.component.ts',
|
|
212
|
+
'command-list.component.ts',
|
|
213
|
+
'command-separator.component.ts',
|
|
214
|
+
'command-shortcut.component.ts',
|
|
215
|
+
'index.ts',
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
'context-menu': {
|
|
219
|
+
files: [
|
|
220
|
+
'context-menu.component.ts',
|
|
221
|
+
'context-menu-checkbox-item.component.ts',
|
|
222
|
+
'context-menu-content.component.ts',
|
|
223
|
+
'context-menu-context.ts',
|
|
224
|
+
'context-menu-item.component.ts',
|
|
225
|
+
'context-menu-label.component.ts',
|
|
226
|
+
'context-menu-radio-group.component.ts',
|
|
227
|
+
'context-menu-radio-item.component.ts',
|
|
228
|
+
'context-menu-separator.component.ts',
|
|
229
|
+
'context-menu-shortcut.component.ts',
|
|
230
|
+
'context-menu-sub.component.ts',
|
|
231
|
+
'context-menu-sub-content.component.ts',
|
|
232
|
+
'context-menu-sub-trigger.component.ts',
|
|
233
|
+
'context-menu-trigger.component.ts',
|
|
234
|
+
'index.ts',
|
|
235
|
+
],
|
|
236
|
+
},
|
|
237
|
+
'data-table': {
|
|
238
|
+
files: [
|
|
239
|
+
'data-table.component.ts',
|
|
240
|
+
'data-table-content.component.ts',
|
|
241
|
+
'data-table-context.ts',
|
|
242
|
+
'data-table-pagination.component.ts',
|
|
243
|
+
'data-table-search.component.ts',
|
|
244
|
+
'data-table-toolbar.component.ts',
|
|
245
|
+
'data-table-view-options.component.ts',
|
|
246
|
+
'index.ts',
|
|
247
|
+
],
|
|
248
|
+
},
|
|
55
249
|
'date-picker': { files: ['date-picker.component.ts', 'index.ts'] },
|
|
56
|
-
dialog: {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
250
|
+
dialog: {
|
|
251
|
+
files: [
|
|
252
|
+
'dialog.component.ts',
|
|
253
|
+
'dialog-close.component.ts',
|
|
254
|
+
'dialog-content.component.ts',
|
|
255
|
+
'dialog-context.ts',
|
|
256
|
+
'dialog-description.component.ts',
|
|
257
|
+
'dialog-footer.component.ts',
|
|
258
|
+
'dialog-header.component.ts',
|
|
259
|
+
'dialog-title.component.ts',
|
|
260
|
+
'dialog-trigger.component.ts',
|
|
261
|
+
'index.ts',
|
|
262
|
+
],
|
|
263
|
+
},
|
|
264
|
+
drawer: {
|
|
265
|
+
files: [
|
|
266
|
+
'drawer.component.ts',
|
|
267
|
+
'drawer-close.component.ts',
|
|
268
|
+
'drawer-content.component.ts',
|
|
269
|
+
'drawer-context.ts',
|
|
270
|
+
'drawer-description.component.ts',
|
|
271
|
+
'drawer-footer.component.ts',
|
|
272
|
+
'drawer-header.component.ts',
|
|
273
|
+
'drawer-title.component.ts',
|
|
274
|
+
'drawer-trigger.component.ts',
|
|
275
|
+
'index.ts',
|
|
276
|
+
],
|
|
277
|
+
},
|
|
278
|
+
'dropdown-menu': {
|
|
279
|
+
files: [
|
|
280
|
+
'dropdown-menu.component.ts',
|
|
281
|
+
'dropdown-menu-checkbox-item.component.ts',
|
|
282
|
+
'dropdown-menu-content.component.ts',
|
|
283
|
+
'dropdown-menu-context.ts',
|
|
284
|
+
'dropdown-menu-group.component.ts',
|
|
285
|
+
'dropdown-menu-item.component.ts',
|
|
286
|
+
'dropdown-menu-label.component.ts',
|
|
287
|
+
'dropdown-menu-radio-group.component.ts',
|
|
288
|
+
'dropdown-menu-radio-item.component.ts',
|
|
289
|
+
'dropdown-menu-separator.component.ts',
|
|
290
|
+
'dropdown-menu-shortcut.component.ts',
|
|
291
|
+
'dropdown-menu-sub.component.ts',
|
|
292
|
+
'dropdown-menu-sub-content.component.ts',
|
|
293
|
+
'dropdown-menu-sub-trigger.component.ts',
|
|
294
|
+
'dropdown-menu-trigger.component.ts',
|
|
295
|
+
'index.ts',
|
|
296
|
+
],
|
|
297
|
+
},
|
|
298
|
+
empty: {
|
|
299
|
+
files: [
|
|
300
|
+
'empty.component.ts',
|
|
301
|
+
'empty-action.component.ts',
|
|
302
|
+
'empty-description.component.ts',
|
|
303
|
+
'empty-icon.component.ts',
|
|
304
|
+
'empty-title.component.ts',
|
|
305
|
+
'index.ts',
|
|
306
|
+
],
|
|
307
|
+
},
|
|
308
|
+
form: {
|
|
309
|
+
files: [
|
|
310
|
+
'form.component.ts',
|
|
311
|
+
'form-context.ts',
|
|
312
|
+
'form-control.component.ts',
|
|
313
|
+
'form-description.component.ts',
|
|
314
|
+
'form-field.component.ts',
|
|
315
|
+
'form-item.component.ts',
|
|
316
|
+
'form-label.component.ts',
|
|
317
|
+
'form-message.component.ts',
|
|
318
|
+
'index.ts',
|
|
319
|
+
],
|
|
320
|
+
},
|
|
321
|
+
'hover-card': {
|
|
322
|
+
files: [
|
|
323
|
+
'hover-card.component.ts',
|
|
324
|
+
'hover-card-content.component.ts',
|
|
325
|
+
'hover-card-context.ts',
|
|
326
|
+
'hover-card-trigger.component.ts',
|
|
327
|
+
'index.ts',
|
|
328
|
+
],
|
|
329
|
+
},
|
|
62
330
|
input: { files: ['input.component.ts', 'index.ts'] },
|
|
63
|
-
'input-group': {
|
|
64
|
-
|
|
331
|
+
'input-group': {
|
|
332
|
+
files: [
|
|
333
|
+
'input-group.component.ts',
|
|
334
|
+
'input-group-addon.component.ts',
|
|
335
|
+
'input-group-input.component.ts',
|
|
336
|
+
'index.ts',
|
|
337
|
+
],
|
|
338
|
+
},
|
|
339
|
+
'input-otp': {
|
|
340
|
+
files: [
|
|
341
|
+
'input-otp.component.ts',
|
|
342
|
+
'input-otp-context.ts',
|
|
343
|
+
'input-otp-group.component.ts',
|
|
344
|
+
'input-otp-separator.component.ts',
|
|
345
|
+
'input-otp-slot.component.ts',
|
|
346
|
+
'index.ts',
|
|
347
|
+
],
|
|
348
|
+
},
|
|
65
349
|
kbd: { files: ['kbd.component.ts', 'kbd-variants.ts', 'index.ts'] },
|
|
66
350
|
label: { files: ['label.component.ts', 'index.ts'] },
|
|
67
|
-
menubar: {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
351
|
+
menubar: {
|
|
352
|
+
files: [
|
|
353
|
+
'menubar.component.ts',
|
|
354
|
+
'menubar-checkbox-item.component.ts',
|
|
355
|
+
'menubar-content.component.ts',
|
|
356
|
+
'menubar-context.ts',
|
|
357
|
+
'menubar-item.component.ts',
|
|
358
|
+
'menubar-label.component.ts',
|
|
359
|
+
'menubar-menu.component.ts',
|
|
360
|
+
'menubar-radio-group.component.ts',
|
|
361
|
+
'menubar-radio-item.component.ts',
|
|
362
|
+
'menubar-separator.component.ts',
|
|
363
|
+
'menubar-shortcut.component.ts',
|
|
364
|
+
'menubar-sub.component.ts',
|
|
365
|
+
'menubar-sub-content.component.ts',
|
|
366
|
+
'menubar-sub-trigger.component.ts',
|
|
367
|
+
'menubar-trigger.component.ts',
|
|
368
|
+
'index.ts',
|
|
369
|
+
],
|
|
370
|
+
},
|
|
371
|
+
'native-select': {
|
|
372
|
+
files: ['native-select.component.ts', 'native-select-variants.ts', 'index.ts'],
|
|
373
|
+
},
|
|
374
|
+
'navigation-menu': {
|
|
375
|
+
files: [
|
|
376
|
+
'navigation-menu.component.ts',
|
|
377
|
+
'navigation-menu-content.component.ts',
|
|
378
|
+
'navigation-menu-context.ts',
|
|
379
|
+
'navigation-menu-indicator.component.ts',
|
|
380
|
+
'navigation-menu-item.component.ts',
|
|
381
|
+
'navigation-menu-link.component.ts',
|
|
382
|
+
'navigation-menu-list.component.ts',
|
|
383
|
+
'navigation-menu-trigger.component.ts',
|
|
384
|
+
'navigation-menu-trigger-style.ts',
|
|
385
|
+
'navigation-menu-viewport.component.ts',
|
|
386
|
+
'index.ts',
|
|
387
|
+
],
|
|
388
|
+
},
|
|
389
|
+
pagination: {
|
|
390
|
+
files: [
|
|
391
|
+
'pagination.component.ts',
|
|
392
|
+
'pagination-content.component.ts',
|
|
393
|
+
'pagination-ellipsis.component.ts',
|
|
394
|
+
'pagination-item.component.ts',
|
|
395
|
+
'pagination-link.component.ts',
|
|
396
|
+
'pagination-next.component.ts',
|
|
397
|
+
'pagination-previous.component.ts',
|
|
398
|
+
'index.ts',
|
|
399
|
+
],
|
|
400
|
+
},
|
|
401
|
+
popover: {
|
|
402
|
+
files: [
|
|
403
|
+
'popover.component.ts',
|
|
404
|
+
'popover-anchor.component.ts',
|
|
405
|
+
'popover-content.component.ts',
|
|
406
|
+
'popover-context.ts',
|
|
407
|
+
'popover-trigger.component.ts',
|
|
408
|
+
'index.ts',
|
|
409
|
+
],
|
|
410
|
+
},
|
|
72
411
|
progress: { files: ['progress.component.ts', 'index.ts'] },
|
|
73
|
-
'radio-group': {
|
|
74
|
-
|
|
412
|
+
'radio-group': {
|
|
413
|
+
files: [
|
|
414
|
+
'radio-group.component.ts',
|
|
415
|
+
'radio-group-context.ts',
|
|
416
|
+
'radio-group-item.component.ts',
|
|
417
|
+
'index.ts',
|
|
418
|
+
],
|
|
419
|
+
},
|
|
420
|
+
resizable: {
|
|
421
|
+
files: [
|
|
422
|
+
'resizable-panel-group.component.ts',
|
|
423
|
+
'resizable-context.ts',
|
|
424
|
+
'resizable-handle.component.ts',
|
|
425
|
+
'resizable-panel.component.ts',
|
|
426
|
+
'index.ts',
|
|
427
|
+
],
|
|
428
|
+
},
|
|
75
429
|
'scroll-area': { files: ['scroll-area.component.ts', 'scroll-bar.component.ts', 'index.ts'] },
|
|
76
|
-
segmented: {
|
|
77
|
-
|
|
430
|
+
segmented: {
|
|
431
|
+
files: [
|
|
432
|
+
'segmented.component.ts',
|
|
433
|
+
'segmented-context.ts',
|
|
434
|
+
'segmented-item.component.ts',
|
|
435
|
+
'segmented-variants.ts',
|
|
436
|
+
'index.ts',
|
|
437
|
+
],
|
|
438
|
+
},
|
|
439
|
+
select: {
|
|
440
|
+
files: [
|
|
441
|
+
'select.component.ts',
|
|
442
|
+
'select-content.component.ts',
|
|
443
|
+
'select-context.ts',
|
|
444
|
+
'select-group.component.ts',
|
|
445
|
+
'select-item.component.ts',
|
|
446
|
+
'select-label.component.ts',
|
|
447
|
+
'select-separator.component.ts',
|
|
448
|
+
'select-trigger.component.ts',
|
|
449
|
+
'select-value.component.ts',
|
|
450
|
+
'index.ts',
|
|
451
|
+
],
|
|
452
|
+
},
|
|
78
453
|
separator: { files: ['separator.component.ts', 'index.ts'] },
|
|
79
|
-
sheet: {
|
|
80
|
-
|
|
454
|
+
sheet: {
|
|
455
|
+
files: [
|
|
456
|
+
'sheet.component.ts',
|
|
457
|
+
'sheet-close.component.ts',
|
|
458
|
+
'sheet-content.component.ts',
|
|
459
|
+
'sheet-context.ts',
|
|
460
|
+
'sheet-description.component.ts',
|
|
461
|
+
'sheet-footer.component.ts',
|
|
462
|
+
'sheet-header.component.ts',
|
|
463
|
+
'sheet-title.component.ts',
|
|
464
|
+
'sheet-trigger.component.ts',
|
|
465
|
+
'sheet-variants.ts',
|
|
466
|
+
'index.ts',
|
|
467
|
+
],
|
|
468
|
+
},
|
|
469
|
+
sidebar: {
|
|
470
|
+
files: [
|
|
471
|
+
'sidebar.component.ts',
|
|
472
|
+
'sidebar-content.component.ts',
|
|
473
|
+
'sidebar-context.ts',
|
|
474
|
+
'sidebar-footer.component.ts',
|
|
475
|
+
'sidebar-group.component.ts',
|
|
476
|
+
'sidebar-group-action.component.ts',
|
|
477
|
+
'sidebar-group-content.component.ts',
|
|
478
|
+
'sidebar-group-label.component.ts',
|
|
479
|
+
'sidebar-header.component.ts',
|
|
480
|
+
'sidebar-input.component.ts',
|
|
481
|
+
'sidebar-inset.component.ts',
|
|
482
|
+
'sidebar-menu.component.ts',
|
|
483
|
+
'sidebar-menu-action.component.ts',
|
|
484
|
+
'sidebar-menu-badge.component.ts',
|
|
485
|
+
'sidebar-menu-button.component.ts',
|
|
486
|
+
'sidebar-menu-item.component.ts',
|
|
487
|
+
'sidebar-menu-skeleton.component.ts',
|
|
488
|
+
'sidebar-menu-sub.component.ts',
|
|
489
|
+
'sidebar-menu-sub-button.component.ts',
|
|
490
|
+
'sidebar-menu-sub-item.component.ts',
|
|
491
|
+
'sidebar-provider.component.ts',
|
|
492
|
+
'sidebar-rail.component.ts',
|
|
493
|
+
'sidebar-route-active.service.ts',
|
|
494
|
+
'sidebar-separator.component.ts',
|
|
495
|
+
'sidebar-trigger.component.ts',
|
|
496
|
+
'index.ts',
|
|
497
|
+
],
|
|
498
|
+
},
|
|
81
499
|
skeleton: { files: ['skeleton.component.ts', 'index.ts'] },
|
|
82
500
|
slider: { files: ['slider.component.ts', 'index.ts'] },
|
|
83
501
|
spinner: { files: ['spinner.component.ts', 'spinner-variants.ts', 'index.ts'] },
|
|
84
502
|
switch: { files: ['switch.component.ts', 'index.ts'] },
|
|
85
|
-
table: {
|
|
86
|
-
|
|
503
|
+
table: {
|
|
504
|
+
files: [
|
|
505
|
+
'table.component.ts',
|
|
506
|
+
'table-body.component.ts',
|
|
507
|
+
'table-caption.component.ts',
|
|
508
|
+
'table-cell.component.ts',
|
|
509
|
+
'table-footer.component.ts',
|
|
510
|
+
'table-head.component.ts',
|
|
511
|
+
'table-header.component.ts',
|
|
512
|
+
'table-row.component.ts',
|
|
513
|
+
'index.ts',
|
|
514
|
+
],
|
|
515
|
+
},
|
|
516
|
+
tabs: {
|
|
517
|
+
files: [
|
|
518
|
+
'tabs.component.ts',
|
|
519
|
+
'tabs-content.component.ts',
|
|
520
|
+
'tabs-context.ts',
|
|
521
|
+
'tabs-list.component.ts',
|
|
522
|
+
'tabs-trigger.component.ts',
|
|
523
|
+
'index.ts',
|
|
524
|
+
],
|
|
525
|
+
},
|
|
87
526
|
textarea: { files: ['textarea.component.ts', 'index.ts'] },
|
|
88
|
-
toast: {
|
|
527
|
+
toast: {
|
|
528
|
+
files: [
|
|
529
|
+
'toast.component.ts',
|
|
530
|
+
'toast-action.component.ts',
|
|
531
|
+
'toast-description.component.ts',
|
|
532
|
+
'toast-title.component.ts',
|
|
533
|
+
'toast-variants.ts',
|
|
534
|
+
'toast.service.ts',
|
|
535
|
+
'toaster.component.ts',
|
|
536
|
+
'index.ts',
|
|
537
|
+
],
|
|
538
|
+
},
|
|
89
539
|
toggle: { files: ['toggle.component.ts', 'toggle-variants.ts', 'index.ts'] },
|
|
90
|
-
'toggle-group': {
|
|
91
|
-
|
|
92
|
-
|
|
540
|
+
'toggle-group': {
|
|
541
|
+
files: [
|
|
542
|
+
'toggle-group.component.ts',
|
|
543
|
+
'toggle-group-context.ts',
|
|
544
|
+
'toggle-group-item.component.ts',
|
|
545
|
+
'index.ts',
|
|
546
|
+
],
|
|
547
|
+
},
|
|
548
|
+
tooltip: {
|
|
549
|
+
files: [
|
|
550
|
+
'tooltip.component.ts',
|
|
551
|
+
'tooltip-content.component.ts',
|
|
552
|
+
'tooltip-context.ts',
|
|
553
|
+
'tooltip-provider.component.ts',
|
|
554
|
+
'tooltip-trigger.component.ts',
|
|
555
|
+
'index.ts',
|
|
556
|
+
],
|
|
557
|
+
},
|
|
558
|
+
typography: {
|
|
559
|
+
files: [
|
|
560
|
+
'typography-blockquote.component.ts',
|
|
561
|
+
'typography-h1.component.ts',
|
|
562
|
+
'typography-h2.component.ts',
|
|
563
|
+
'typography-h3.component.ts',
|
|
564
|
+
'typography-h4.component.ts',
|
|
565
|
+
'typography-inline-code.component.ts',
|
|
566
|
+
'typography-large.component.ts',
|
|
567
|
+
'typography-lead.component.ts',
|
|
568
|
+
'typography-list.component.ts',
|
|
569
|
+
'typography-muted.component.ts',
|
|
570
|
+
'typography-p.component.ts',
|
|
571
|
+
'typography-small.component.ts',
|
|
572
|
+
'index.ts',
|
|
573
|
+
],
|
|
574
|
+
},
|
|
93
575
|
};
|
|
94
576
|
|
|
95
577
|
// Registry of all utility files that need to be copied
|
|
@@ -660,20 +1142,25 @@ export function ngAdd(options: NgAddOptions): Rule {
|
|
|
660
1142
|
const packageJson = JSON.parse(tree.read(packageJsonPath)!.toString('utf-8'));
|
|
661
1143
|
|
|
662
1144
|
// Detect Angular version to determine CDK version
|
|
663
|
-
const angularCoreVersion =
|
|
664
|
-
|
|
665
|
-
|
|
1145
|
+
const angularCoreVersion =
|
|
1146
|
+
packageJson.dependencies?.['@angular/core'] ||
|
|
1147
|
+
packageJson.devDependencies?.['@angular/core'] ||
|
|
1148
|
+
'';
|
|
1149
|
+
const angularMajorVersion =
|
|
1150
|
+
parseInt(angularCoreVersion.replace(/[\^~]/, '').split('.')[0], 10) || 21;
|
|
1151
|
+
|
|
666
1152
|
// Use compatible CDK version based on Angular version
|
|
667
|
-
const cdkVersion =
|
|
1153
|
+
const cdkVersion =
|
|
1154
|
+
angularMajorVersion >= 21 ? '^21.0.5' : angularMajorVersion >= 20 ? '^20.0.0' : '^19.0.0';
|
|
668
1155
|
|
|
669
1156
|
const requiredDependencies: Record<string, string> = {
|
|
670
1157
|
'lucide-angular': '^0.562.0',
|
|
671
1158
|
'class-variance-authority': '^0.7.1',
|
|
672
|
-
|
|
1159
|
+
clsx: '^2.1.1',
|
|
673
1160
|
'tailwind-merge': '^3.4.0',
|
|
674
1161
|
'@angular/cdk': cdkVersion,
|
|
675
|
-
|
|
676
|
-
'@tailwindcss/postcss': '^4.1.18'
|
|
1162
|
+
tailwindcss: '^4.1.18',
|
|
1163
|
+
'@tailwindcss/postcss': '^4.1.18',
|
|
677
1164
|
};
|
|
678
1165
|
|
|
679
1166
|
// Check and add missing dependencies
|
|
@@ -822,7 +1309,7 @@ export function ngAdd(options: NgAddOptions): Rule {
|
|
|
822
1309
|
'@/*': ['./src/*'],
|
|
823
1310
|
'@/lib/*': ['./src/app/lib/*'],
|
|
824
1311
|
'@/ui/*': ['./src/app/lib/components/ui/*'],
|
|
825
|
-
'@/utils/*': ['./src/app/lib/utils/*']
|
|
1312
|
+
'@/utils/*': ['./src/app/lib/utils/*'],
|
|
826
1313
|
};
|
|
827
1314
|
|
|
828
1315
|
let pathsUpdated = false;
|
|
@@ -846,7 +1333,9 @@ export function ngAdd(options: NgAddOptions): Rule {
|
|
|
846
1333
|
if (componentsToInstall.length > 0) {
|
|
847
1334
|
context.logger.info('');
|
|
848
1335
|
if (options.components === 'all') {
|
|
849
|
-
context.logger.info(
|
|
1336
|
+
context.logger.info(
|
|
1337
|
+
`🚀 Copying ALL ${componentsToInstall.length} components... (Magic Mode)`,
|
|
1338
|
+
);
|
|
850
1339
|
} else {
|
|
851
1340
|
context.logger.info('📦 Selected Components');
|
|
852
1341
|
}
|
|
@@ -892,7 +1381,9 @@ export function ngAdd(options: NgAddOptions): Rule {
|
|
|
892
1381
|
context.logger.info(` ✓ ${componentName} (${filesCopied} files)`);
|
|
893
1382
|
totalFilesCopied += filesCopied;
|
|
894
1383
|
} else {
|
|
895
|
-
context.logger.warn(
|
|
1384
|
+
context.logger.warn(
|
|
1385
|
+
` ⚠ ${componentName} - no files found (use: ng g @ng-cn/core:c ${componentName})`,
|
|
1386
|
+
);
|
|
896
1387
|
}
|
|
897
1388
|
}
|
|
898
1389
|
|
|
@@ -931,7 +1422,9 @@ export function ngAdd(options: NgAddOptions): Rule {
|
|
|
931
1422
|
context.logger.info('╭──────────────────────────────────────────────────╮');
|
|
932
1423
|
context.logger.info('│ ✨ MAGIC MODE - All components installed! │');
|
|
933
1424
|
context.logger.info('│ │');
|
|
934
|
-
context.logger.info(
|
|
1425
|
+
context.logger.info(
|
|
1426
|
+
`│ ${componentsInstalled.length} components ready to use │`,
|
|
1427
|
+
);
|
|
935
1428
|
context.logger.info('│ │');
|
|
936
1429
|
context.logger.info('╰──────────────────────────────────────────────────╯');
|
|
937
1430
|
} else {
|
|
@@ -989,6 +1482,6 @@ function parseComponentsOption(components?: string): string[] {
|
|
|
989
1482
|
// Parse comma-separated list
|
|
990
1483
|
return components
|
|
991
1484
|
.split(',')
|
|
992
|
-
.map(c => c.trim().toLowerCase())
|
|
993
|
-
.filter(c => c.length > 0 && ALL_COMPONENTS.includes(c));
|
|
1485
|
+
.map((c) => c.trim().toLowerCase())
|
|
1486
|
+
.filter((c) => c.length > 0 && ALL_COMPONENTS.includes(c));
|
|
994
1487
|
}
|