Skip to content

Commit

Permalink
chore: use types and configs from the library
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-shrivastava committed Nov 20, 2024
1 parent b2f95d0 commit 4cd72ab
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 634 deletions.
25 changes: 22 additions & 3 deletions report-builder/package-lock.json

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

1 change: 1 addition & 0 deletions report-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@codemirror/state": "^6.4.0",
"@codemirror/theme-one-dark": "^6.1.2",
"@codemirror/view": "^6.23.0",
"@luzmo/dashboard-contents-types": "^1.0.5",
"@luzmo/ngx-embed": "6.3.8",
"@luzmo/nodejs-sdk": "^1.2.2",
"@ngneat/until-destroy": "^10.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { CHARTS } from '../../../shared/constants/charts.constant';
import { SlotsDisplayComponent } from '../slots-display/slots-display.component';
import { ChartPickerComponent } from '../chart-picker/chart-picker.component';
import { ItemType } from '@luzmo/ngx-embed';
import { Slot } from 'src/app/shared/models/slots';
import { Slot } from '@luzmo/dashboard-contents-types';

@Component({
selector: 'app-ai-chart',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '@angular/cdk/drag-drop';
import { ChartService } from '../../../shared/services/chart.service';
import { COLUMN_TYPE_ICONS } from '../../../shared/constants/charts.constant';
import { GenericSlotContent, Slot } from 'src/app/shared/models/slots';
import { GenericSlotContent, Slot } from '@luzmo/dashboard-contents-types';

@Component({
selector: 'app-slots-display',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
donutChartSlotsConfig,
lineChartSlotsConfig,
treemapChartSlotsConfig
} from '../../../shared/configs';
} from '@luzmo/dashboard-contents-types';
import { Chart } from '../models/models';
import { PALETTES } from './color-palettes.constant';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ItemType } from "@luzmo/ngx-embed";
import { Slot } from "src/app/shared/models/slots";
import { Slot } from "@luzmo/dashboard-contents-types";

export type Chart = {
type: ItemType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { patchState, signalState } from '@ngrx/signals';
import { CHARTS } from '../constants/charts.constant';
import { Chart } from '../models/models';
import { FilterSlot, Value } from "../../chart-panel/filters-panel/filters-panel.component";
import { Slot } from 'src/app/shared/models/slots';
import { Slot } from '@luzmo/dashboard-contents-types';

type ChartState = {
name: Chart['name'];
Expand Down
28 changes: 0 additions & 28 deletions report-builder/src/app/shared/configs/area-chart-slots.config.ts

This file was deleted.

27 changes: 0 additions & 27 deletions report-builder/src/app/shared/configs/bar-chart-slots.config.ts

This file was deleted.

26 changes: 0 additions & 26 deletions report-builder/src/app/shared/configs/bubble-chart-slots.config.ts

This file was deleted.

27 changes: 0 additions & 27 deletions report-builder/src/app/shared/configs/column-chart-slots.config.ts

This file was deleted.

19 changes: 0 additions & 19 deletions report-builder/src/app/shared/configs/donut-chart-slots.config.ts

This file was deleted.

7 changes: 0 additions & 7 deletions report-builder/src/app/shared/configs/index.ts

This file was deleted.

28 changes: 0 additions & 28 deletions report-builder/src/app/shared/configs/line-chart-slots.config.ts

This file was deleted.

This file was deleted.

Loading

0 comments on commit 4cd72ab

Please sign in to comment.