Skip to content

Commit

Permalink
feat: Added more filters to filter panel
Browse files Browse the repository at this point in the history
  • Loading branch information
jctello committed Sep 4, 2024
1 parent d7efed5 commit d270e39
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 27 deletions.
Binary file added dashboard-filter-panel/dashboard-filter-panel.zip
Binary file not shown.
46 changes: 23 additions & 23 deletions dashboard-filter-panel/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dashboard-filter-panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@codemirror/state": "^6.4.0",
"@codemirror/theme-one-dark": "^6.1.2",
"@codemirror/view": "^6.23.0",
"@luzmo/ngx-embed": "^6.2.0-beta.2",
"@luzmo/ngx-embed": "^6.2.0-beta.13",
"@luzmo/nodejs-sdk": "^1.2.2",
"@ngneat/until-destroy": "^10.0.0",
"@ngrx/signals": "^18.0.0-rc.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,75 @@
[class.left-panel]="panelPosition === 'left'" [mode]="panelMode">
<div class="py-5">
<div class="flex items-center justify-between px-5 pb-5 mb-5 border-b-[1px]">
<div>Filter</div>
<button mat-stroked-button id="exit" (click)="sidenav.toggle()">x</button>
<div>Filter panel</div>
<button mat-stroked-button id="exit" (click)="sidenav.toggle()">Close</button>
</div>
<luzmo-viz-item style="height: 100px;" [slots]='
[{"name": "dimension",
"content": [
{
"label": {
"en": "Employee"
},
"set": "e2217802-c66a-4571-bd60-4846eb15871e",
"column": "0024ee0d-c965-4027-a905-3c6118118b63",
"type": "hierarchy"
}
]
}]' [options]="{ display: { label: true } }" type="dropdown-filter" canFilter="all"></luzmo-viz-item>

<luzmo-viz-item type="date-filter" style="height: 100px" [slots]='[
{
name: "time",
content: [
{
label: {
en: "Date",
},
set: "e2217802-c66a-4571-bd60-4846eb15871e",
column: "1e998623-cca9-4423-9fe0-f41fad3aa5c4",
type: "datetime",
format: "%d-%m-%Y %H:%M:%S.%L",
lowestLevel: 9,
level: 7,
},
],
},
]' canFilter="all"></luzmo-viz-item>

<luzmo-viz-item type="slider-filter" style="height: 100px" [slots]='[
{
name: "slidermetric",
content: [
{
label: {
en: "Amount"
},
set: "e2217802-c66a-4571-bd60-4846eb15871e",
column: "f3b270b4-fe0f-4ac4-b5f3-69280c396735",
type: "numeric",
format: "($.0f"
}
]
}]' [options]="{ display: { title: true }, title: {en: 'Total amount excluding VAT'} }" canFilter="all"> </luzmo-viz-item>


<luzmo-viz-item type="slicer-filter" style="height: 400px" [slots]='[
{
"name": "dimension",
"content": [
{
"label": {
"en": "Customer"
},
"set": "e2217802-c66a-4571-bd60-4846eb15871e",
"column": "36cc1d13-89bb-4f44-9771-13149af1c81f",
"type": "hierarchy"
}
]
}
]' [options] = "" canFilter="all"></luzmo-viz-item>

<luzmo-viz-item type="donut-chart" style="height: 300px" [slots]='[{"name":"category",
"content":[
{
Expand Down Expand Up @@ -66,4 +132,4 @@
<luzmo-dashboard [dashboardId]="dashboardId" [experimental]="true" id="mainDashboard"></luzmo-dashboard>
</mat-sidenav-content>
</mat-sidenav-container>
</div>
</div>

0 comments on commit d270e39

Please sign in to comment.