feat(data-loading): load fee schedule catalogs and data from generated JSON payloads instead of bundled Germany TypeScript exports
This commit is contained in:
@@ -5,12 +5,7 @@ import type {
|
||||
IFeeScheduleFeeRow,
|
||||
IFeeScheduleRuleSection,
|
||||
} from './feeschedules.types.js';
|
||||
import { GERMANY_FEE_SCHEDULE_CATALOG } from './feeschedules.germany.js';
|
||||
import { GERMANY_FEE_SCHEDULE_DATA } from './germany/index.js';
|
||||
|
||||
export const FEE_SCHEDULE_CATALOGS: ICountryFeeScheduleCatalog[] = [
|
||||
GERMANY_FEE_SCHEDULE_CATALOG,
|
||||
];
|
||||
import { FEE_SCHEDULE_CATALOGS, FEE_SCHEDULE_DATA } from './feeschedules.data.js';
|
||||
|
||||
export class FeeSchedules {
|
||||
private catalogs: ICountryFeeScheduleCatalog[];
|
||||
@@ -18,7 +13,7 @@ export class FeeSchedules {
|
||||
|
||||
constructor(
|
||||
catalogs: ICountryFeeScheduleCatalog[] = FEE_SCHEDULE_CATALOGS,
|
||||
data: IFeeScheduleData[] = GERMANY_FEE_SCHEDULE_DATA,
|
||||
data: IFeeScheduleData[] = FEE_SCHEDULE_DATA,
|
||||
) {
|
||||
this.catalogs = catalogs;
|
||||
this.data = data;
|
||||
@@ -131,5 +126,5 @@ export class FeeSchedules {
|
||||
export const feeSchedules = new FeeSchedules();
|
||||
|
||||
const normalizeSearchValue = (value: string): string => {
|
||||
return value.trim().toLocaleLowerCase('de-DE').replace(/\s+/g, ' ');
|
||||
return value.trim().toLocaleLowerCase().replace(/\s+/g, ' ');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user