+
+
+
+
+
+
0">
+
- Deleted Items
+
+
+
+ {{ item.name }}
+
+
+ diff --git a/frontend/angular-clarity-master/src/app/modules/main/builder/dashboardnew/gadgets/shield-dashboard/components/sidebar-filters/sidebar-filters.component.html b/frontend/angular-clarity-master/src/app/modules/main/builder/dashboardnew/gadgets/shield-dashboard/components/sidebar-filters/sidebar-filters.component.html index 4b2a8ad..87f3121 100644 --- a/frontend/angular-clarity-master/src/app/modules/main/builder/dashboardnew/gadgets/shield-dashboard/components/sidebar-filters/sidebar-filters.component.html +++ b/frontend/angular-clarity-master/src/app/modules/main/builder/dashboardnew/gadgets/shield-dashboard/components/sidebar-filters/sidebar-filters.component.html @@ -1,76 +1,3 @@
\ No newline at end of file diff --git a/frontend/angular-clarity-master/src/app/modules/main/builder/dashboardnew/gadgets/shield-dashboard/components/sidebar-filters/sidebar-filters.component.scss b/frontend/angular-clarity-master/src/app/modules/main/builder/dashboardnew/gadgets/shield-dashboard/components/sidebar-filters/sidebar-filters.component.scss index 0a4d698..6ddf655 100644 --- a/frontend/angular-clarity-master/src/app/modules/main/builder/dashboardnew/gadgets/shield-dashboard/components/sidebar-filters/sidebar-filters.component.scss +++ b/frontend/angular-clarity-master/src/app/modules/main/builder/dashboardnew/gadgets/shield-dashboard/components/sidebar-filters/sidebar-filters.component.scss @@ -3,6 +3,35 @@ display: flex; flex-direction: column; + .componentbtn { + margin: 10px; + width: calc(100% - 20px); + } + + .nav-list { + padding: 0; + margin: 0 10px; + + .nav-link { + display: flex; + align-items: center; + padding: 8px 12px; + margin-bottom: 5px; + background: #f8f9fa; + border: 1px solid #e9ecef; + border-radius: 4px; + cursor: move; + + &:hover { + background: #e9ecef; + } + + .has-badge { + margin-left: auto; + } + } + } + .app-header { margin-bottom: 30px; @@ -55,6 +84,74 @@ } } + .component-palette-section { + margin: 20px; + + .component-palette-button { + width: 100%; + padding: 12px; + background: rgba(255, 107, 53, 0.2); + color: white; + border: 1px solid rgba(255, 107, 53, 0.5); + border-radius: 8px; + font-size: 16px; + font-weight: 500; + cursor: pointer; + transition: all 0.2s ease; + display: flex; + align-items: center; + justify-content: center; + gap: 8px; + + &:hover { + background: rgba(255, 107, 53, 0.3); + border-color: #ff6b35; + } + } + + .component-palette { + margin-top: 15px; + background: rgba(255, 255, 255, 0.05); + border-radius: 8px; + padding: 15px; + + .palette-title { + font-size: 16px; + color: white; + margin: 0 0 15px 0; + text-align: center; + } + + .component-list { + display: flex; + flex-direction: column; + gap: 10px; + + .component-item { + padding: 10px 15px; + background: rgba(255, 255, 255, 0.1); + border: 1px solid rgba(255, 255, 255, 0.2); + border-radius: 6px; + color: white; + cursor: move; + display: flex; + align-items: center; + gap: 10px; + transition: all 0.2s ease; + + &:hover { + background: rgba(255, 107, 53, 0.2); + border-color: #ff6b35; + } + + .drag-icon { + font-size: 16px; + } + } + } + } + } + .filters-section { flex: 1; diff --git a/frontend/angular-clarity-master/src/app/modules/main/builder/dashboardnew/gadgets/shield-dashboard/components/sidebar-filters/sidebar-filters.component.ts b/frontend/angular-clarity-master/src/app/modules/main/builder/dashboardnew/gadgets/shield-dashboard/components/sidebar-filters/sidebar-filters.component.ts index ee9505b..295f2c1 100644 --- a/frontend/angular-clarity-master/src/app/modules/main/builder/dashboardnew/gadgets/shield-dashboard/components/sidebar-filters/sidebar-filters.component.ts +++ b/frontend/angular-clarity-master/src/app/modules/main/builder/dashboardnew/gadgets/shield-dashboard/components/sidebar-filters/sidebar-filters.component.ts @@ -1,6 +1,5 @@ import { Component, OnInit } from '@angular/core'; -import { DashboardFilterService, FilterState } from '../../services/dashboard-filter.service'; -import { Observable } from 'rxjs'; +import { DashboardFilterService } from '../../services/dashboard-filter.service'; @Component({ selector: 'app-shield-sidebar-filters', @@ -8,44 +7,10 @@ import { Observable } from 'rxjs'; styleUrls: ['./sidebar-filters.component.scss'] }) export class SidebarFiltersComponent implements OnInit { - // Filter options - salesReps = ['All Sales Reps', 'John Smith', 'Jane Doe', 'Mike Johnson', 'Sarah Wilson']; - partners = ['All Partners', 'Partner A', 'Partner B', 'Partner C', 'Partner D']; - tractionChannels = ['All Channels', 'Direct', 'Indirect', 'Online', 'Referral']; - subProductLines = ['All Lines', 'Product Line 1', 'Product Line 2', 'Product Line 3']; - - // Current filter values - selectedSalesRep = ''; - selectedPartner = ''; - selectedTractionChannel = ''; - selectedSubProductLine = ''; - - // KPI data - totalLeads = 1248; - totalDeals = 842; constructor(private filterService: DashboardFilterService) { } ngOnInit(): void { - // Subscribe to KPI data changes - this.filterService.kpiData$.subscribe(kpiData => { - this.totalLeads = kpiData.totalLeads; - this.totalDeals = kpiData.totalDeals; - }); - } - - // Update filter state when any filter changes - updateFilter(filterType: keyof FilterState, value: string): void { - this.filterService.updateFilter(filterType, value); - } - - // Reset all filters to default values - resetFilters(): void { - this.selectedSalesRep = ''; - this.selectedPartner = ''; - this.selectedTractionChannel = ''; - this.selectedSubProductLine = ''; - - this.filterService.resetFilters(); + // Component initialization } } \ No newline at end of file diff --git a/frontend/angular-clarity-master/src/app/modules/main/builder/dashboardnew/gadgets/shield-dashboard/shield-dashboard.component.html b/frontend/angular-clarity-master/src/app/modules/main/builder/dashboardnew/gadgets/shield-dashboard/shield-dashboard.component.html index 58e70ab..c042765 100644 --- a/frontend/angular-clarity-master/src/app/modules/main/builder/dashboardnew/gadgets/shield-dashboard/shield-dashboard.component.html +++ b/frontend/angular-clarity-master/src/app/modules/main/builder/dashboardnew/gadgets/shield-dashboard/shield-dashboard.component.html @@ -1,12 +1,30 @@