@kronor/dtv 0.4.1 → 0.4.2
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/dist/index.es.js +31143 -0
- package/dist/types/App.d.ts +17 -0
- package/dist/types/App.d.ts.map +1 -0
- package/dist/types/components/AIAssistantForm.d.ts +18 -0
- package/dist/types/components/AIAssistantForm.d.ts.map +1 -0
- package/dist/types/components/FilterForm.d.ts +19 -0
- package/dist/types/components/FilterForm.d.ts.map +1 -0
- package/dist/types/components/PhoneNumberFilter.d.ts +7 -0
- package/dist/types/components/PhoneNumberFilter.d.ts.map +1 -0
- package/dist/types/components/SavedFilterList.d.ts +15 -0
- package/dist/types/components/SavedFilterList.d.ts.map +1 -0
- package/dist/types/components/SpeechInput.d.ts +7 -0
- package/dist/types/components/SpeechInput.d.ts.map +1 -0
- package/dist/types/components/Table.d.ts +18 -0
- package/dist/types/components/Table.d.ts.map +1 -0
- package/dist/types/components/TablePagination.d.ts +13 -0
- package/dist/types/components/TablePagination.d.ts.map +1 -0
- package/dist/types/components/aiAssistant.d.ts +12 -0
- package/dist/types/components/aiAssistant.d.ts.map +1 -0
- package/dist/types/framework/cell-renderer-components/CurrencyAmount.d.ts +11 -0
- package/dist/types/framework/cell-renderer-components/CurrencyAmount.d.ts.map +1 -0
- package/dist/types/framework/cell-renderer-components/LayoutHelpers.d.ts +24 -0
- package/dist/types/framework/cell-renderer-components/LayoutHelpers.d.ts.map +1 -0
- package/dist/types/framework/cell-renderer-components/Link.d.ts +13 -0
- package/dist/types/framework/cell-renderer-components/Link.d.ts.map +1 -0
- package/dist/types/framework/cell-renderer-components/Mapping.d.ts +13 -0
- package/dist/types/framework/cell-renderer-components/Mapping.d.ts.map +1 -0
- package/dist/types/framework/column-definition.d.ts +63 -0
- package/dist/types/framework/column-definition.d.ts.map +1 -0
- package/dist/types/framework/currency.d.ts +22 -0
- package/dist/types/framework/currency.d.ts.map +1 -0
- package/dist/types/framework/data.d.ts +19 -0
- package/dist/types/framework/data.d.ts.map +1 -0
- package/dist/types/framework/filter-form-state.d.ts +75 -0
- package/dist/types/framework/filter-form-state.d.ts.map +1 -0
- package/dist/types/framework/filter-sharing.d.ts +24 -0
- package/dist/types/framework/filter-sharing.d.ts.map +1 -0
- package/dist/types/framework/filters.d.ts +232 -0
- package/dist/types/framework/filters.d.ts.map +1 -0
- package/dist/types/framework/graphql.d.ts +77 -0
- package/dist/types/framework/graphql.d.ts.map +1 -0
- package/dist/types/framework/native-runtime/index.d.ts +13 -0
- package/dist/types/framework/native-runtime/index.d.ts.map +1 -0
- package/dist/types/framework/runtime.d.ts +14 -0
- package/dist/types/framework/runtime.d.ts.map +1 -0
- package/dist/types/framework/saved-filters.d.ts +47 -0
- package/dist/types/framework/saved-filters.d.ts.map +1 -0
- package/dist/types/framework/state.d.ts +40 -0
- package/dist/types/framework/state.d.ts.map +1 -0
- package/dist/types/framework/view-parser.d.ts +168 -0
- package/dist/types/framework/view-parser.d.ts.map +1 -0
- package/dist/types/framework/view.d.ts +29 -0
- package/dist/types/framework/view.d.ts.map +1 -0
- package/dist/types/lib/index.d.ts +9 -0
- package/dist/types/lib/index.d.ts.map +1 -0
- package/dist/types/main.d.ts +13 -0
- package/dist/types/main.d.ts.map +1 -0
- package/dist/types/views/index.d.ts +8 -0
- package/dist/types/views/index.d.ts.map +1 -0
- package/dist/types/views/payment-requests/components/NoRowsExtendDateRange.d.ts +4 -0
- package/dist/types/views/payment-requests/components/NoRowsExtendDateRange.d.ts.map +1 -0
- package/dist/types/views/payment-requests/components/PaymentMethod.d.ts +10 -0
- package/dist/types/views/payment-requests/components/PaymentMethod.d.ts.map +1 -0
- package/dist/types/views/payment-requests/components/PaymentStatusTag.d.ts +5 -0
- package/dist/types/views/payment-requests/components/PaymentStatusTag.d.ts.map +1 -0
- package/dist/types/views/payment-requests/index.d.ts +2 -0
- package/dist/types/views/payment-requests/index.d.ts.map +1 -0
- package/dist/types/views/payment-requests/runtime.d.ts +30 -0
- package/dist/types/views/payment-requests/runtime.d.ts.map +1 -0
- package/dist/types/views/request-log/index.d.ts +3 -0
- package/dist/types/views/request-log/index.d.ts.map +1 -0
- package/dist/types/views/request-log/runtime.d.ts +3 -0
- package/dist/types/views/request-log/runtime.d.ts.map +1 -0
- package/dist/types/views/simple-test-view/index.d.ts +4 -0
- package/dist/types/views/simple-test-view/index.d.ts.map +1 -0
- package/dist/types/views/simple-test-view/runtime.d.ts +10 -0
- package/dist/types/views/simple-test-view/runtime.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Runtime } from './framework/runtime';
|
|
2
|
+
export interface AppProps {
|
|
3
|
+
graphqlHost: string;
|
|
4
|
+
graphqlToken: string;
|
|
5
|
+
geminiApiKey: string;
|
|
6
|
+
viewsJson: string;
|
|
7
|
+
showViewsMenu: boolean;
|
|
8
|
+
rowsPerPage?: number;
|
|
9
|
+
showViewTitle: boolean;
|
|
10
|
+
externalRuntime?: Runtime;
|
|
11
|
+
isOverlay?: boolean;
|
|
12
|
+
onCloseOverlay?: () => void;
|
|
13
|
+
syncFilterStateToUrl: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare function App({ graphqlHost, graphqlToken, geminiApiKey, showViewsMenu, rowsPerPage, showViewTitle, viewsJson, externalRuntime, isOverlay, onCloseOverlay, syncFilterStateToUrl }: AppProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default App;
|
|
17
|
+
//# sourceMappingURL=App.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAI9C,MAAM,WAAW,QAAQ;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;CACjC;AAID,iBAAS,GAAG,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,WAAgB,EAAE,aAAa,EAAE,SAAS,EAAE,eAAe,EAAE,SAAiB,EAAE,cAAc,EAAE,oBAA4B,EAAE,EAAE,QAAQ,2CA4e9M;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Toast } from 'primereact/toast';
|
|
2
|
+
import { RefObject } from 'react';
|
|
3
|
+
import { FilterSchemasAndGroups } from '../framework/filters';
|
|
4
|
+
import { View } from '../framework/view';
|
|
5
|
+
import { FilterState } from '../framework/state';
|
|
6
|
+
interface AIAssistantFormProps {
|
|
7
|
+
filterSchema: FilterSchemasAndGroups;
|
|
8
|
+
filterState: FilterState;
|
|
9
|
+
setFilterSchema: (schema: FilterSchemasAndGroups) => void;
|
|
10
|
+
setFilterState: (state: FilterState) => void;
|
|
11
|
+
selectedView: View;
|
|
12
|
+
geminiApiKey: string;
|
|
13
|
+
toast: RefObject<Toast | null>;
|
|
14
|
+
setShowFilterForm: (value: boolean | ((prev: boolean) => boolean)) => void;
|
|
15
|
+
}
|
|
16
|
+
export default function AIAssistantForm({ setFilterState, selectedView, geminiApiKey, toast, setShowFilterForm }: AIAssistantFormProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=AIAssistantForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIAssistantForm.d.ts","sourceRoot":"","sources":["../../../src/components/AIAssistantForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,UAAU,oBAAoB;IAC1B,YAAY,EAAE,sBAAsB,CAAC;IACrC,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAC1D,cAAc,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C,YAAY,EAAE,IAAI,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;IAE/B,iBAAiB,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,KAAK,IAAI,CAAC;CAC9E;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACpC,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,KAAK,EACL,iBAAiB,EACpB,EAAE,oBAAoB,2CAqNtB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { FilterId } from '../framework/filters';
|
|
2
|
+
import { FilterSchemasAndGroups } from '../framework/filters';
|
|
3
|
+
import { SavedFilter } from '../framework/saved-filters';
|
|
4
|
+
import { FilterState } from '../framework/state';
|
|
5
|
+
export type { FilterFormState } from '../framework/filter-form-state';
|
|
6
|
+
interface FilterFormProps {
|
|
7
|
+
filterSchemasAndGroups: FilterSchemasAndGroups;
|
|
8
|
+
filterState: FilterState;
|
|
9
|
+
setFilterState: (state: FilterState) => void;
|
|
10
|
+
onSaveFilter: (state: FilterState) => void;
|
|
11
|
+
onUpdateFilter: (filter: SavedFilter, state: FilterState) => void;
|
|
12
|
+
onShareFilter: () => void;
|
|
13
|
+
savedFilters: SavedFilter[];
|
|
14
|
+
visibleFilterIds: FilterId[];
|
|
15
|
+
onSubmit: () => void;
|
|
16
|
+
}
|
|
17
|
+
declare function FilterForm({ filterSchemasAndGroups, filterState, setFilterState, onSaveFilter, onUpdateFilter, onShareFilter, savedFilters, visibleFilterIds, onSubmit }: FilterFormProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default FilterForm;
|
|
19
|
+
//# sourceMappingURL=FilterForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterForm.d.ts","sourceRoot":"","sources":["../../../src/components/FilterForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA8C,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACjG,OAAO,EAAiB,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAWzD,OAAO,EAA4B,WAAW,EAAoF,MAAM,oBAAoB,CAAC;AAG7J,YAAY,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEtE,UAAU,eAAe;IACrB,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,WAAW,EAAE,WAAW,CAAA;IACxB,cAAc,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C,YAAY,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IAC3C,cAAc,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IAClE,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,gBAAgB,EAAE,QAAQ,EAAE,CAAC;IAC7B,QAAQ,EAAE,MAAM,IAAI,CAAC;CACxB;AAqMD,iBAAS,UAAU,CAAC,EAChB,sBAAsB,EACtB,WAAW,EACX,cAAc,EACd,YAAY,EACZ,cAAc,EACd,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACX,EAAE,eAAe,2CAyIjB;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PhoneNumberFilter.d.ts","sourceRoot":"","sources":["../../../src/components/PhoneNumberFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoC/B,MAAM,WAAW,sBAAsB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAmBD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA2C9D,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SavedFilter } from '../framework/saved-filters';
|
|
2
|
+
import { FilterState } from '../framework/state';
|
|
3
|
+
import { FilterSchemasAndGroups } from '../framework/filters';
|
|
4
|
+
interface SavedFilterListProps {
|
|
5
|
+
savedFilters: SavedFilter[];
|
|
6
|
+
onFilterDelete: (filterId: string) => void;
|
|
7
|
+
onFilterLoad: (filterState: FilterState) => void;
|
|
8
|
+
onFilterApply: () => void;
|
|
9
|
+
onFilterShare: (filterState: FilterState) => void;
|
|
10
|
+
visible: boolean;
|
|
11
|
+
filterSchema: FilterSchemasAndGroups;
|
|
12
|
+
}
|
|
13
|
+
export default function SavedFilterList({ savedFilters, onFilterDelete, onFilterLoad, onFilterApply, onFilterShare, visible, filterSchema }: SavedFilterListProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=SavedFilterList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SavedFilterList.d.ts","sourceRoot":"","sources":["../../../src/components/SavedFilterList.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,UAAU,oBAAoB;IAC1B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAC;IACjD,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,sBAAsB,CAAC;CACxC;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,oBAAoB,kDAmKhK"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface SpeechInputProps {
|
|
2
|
+
value: string;
|
|
3
|
+
onChange: (value: string) => void;
|
|
4
|
+
}
|
|
5
|
+
declare function SpeechInput({ value, onChange }: SpeechInputProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default SpeechInput;
|
|
7
|
+
//# sourceMappingURL=SpeechInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpeechInput.d.ts","sourceRoot":"","sources":["../../../src/components/SpeechInput.tsx"],"names":[],"mappings":"AAGA,UAAU,gBAAgB;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED,iBAAS,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,gBAAgB,2CAwDzD;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DataTable } from 'primereact/datatable';
|
|
3
|
+
import { ColumnDefinition } from '../framework/column-definition';
|
|
4
|
+
import { NoRowsComponent } from '../framework/view';
|
|
5
|
+
import { FilterState } from '../framework/state';
|
|
6
|
+
type TableProps = {
|
|
7
|
+
viewId: string;
|
|
8
|
+
columns: ColumnDefinition[];
|
|
9
|
+
data: Record<string, unknown>[][];
|
|
10
|
+
noRowsComponent?: NoRowsComponent;
|
|
11
|
+
setFilterState: (filterState: FilterState) => void;
|
|
12
|
+
filterState: FilterState;
|
|
13
|
+
triggerRefetch: () => void;
|
|
14
|
+
ref?: React.Ref<DataTable<any>>;
|
|
15
|
+
};
|
|
16
|
+
declare function Table({ viewId, columns, data, noRowsComponent, setFilterState, filterState, triggerRefetch, ref }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default Table;
|
|
18
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAgC,MAAM,sBAAsB,CAAC;AAG/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMpD,OAAO,EAAE,WAAW,EAA0C,MAAM,oBAAoB,CAAC;AAGzF,KAAK,UAAU,GAAG;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC;IAClC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,cAAc,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAC;IACnD,WAAW,EAAE,WAAW,CAAC;IACzB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;CACnC,CAAC;AAEF,iBAAS,KAAK,CAAC,EACX,MAAM,EACN,OAAO,EACP,IAAI,EACJ,eAAe,EACf,cAAc,EACd,WAAW,EACX,cAAc,EACd,GAAG,EACN,EAAE,UAAU,2CAkFZ;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TablePaginationProps {
|
|
3
|
+
onPageChange: () => void;
|
|
4
|
+
onPrevPage: () => void;
|
|
5
|
+
hasNextPage: boolean;
|
|
6
|
+
hasPrevPage: boolean;
|
|
7
|
+
currentPage: number;
|
|
8
|
+
rowsPerPage: number;
|
|
9
|
+
actualRows: number;
|
|
10
|
+
}
|
|
11
|
+
declare const TablePagination: React.FC<TablePaginationProps>;
|
|
12
|
+
export default TablePagination;
|
|
13
|
+
//# sourceMappingURL=TablePagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TablePagination.d.ts","sourceRoot":"","sources":["../../../src/components/TablePagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,oBAAoB;IAC1B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAwBnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FilterExpr, FilterSchemasAndGroups } from '../framework/filters';
|
|
2
|
+
import { FilterFormState } from '../framework/filter-form-state';
|
|
3
|
+
import { RefObject } from 'react';
|
|
4
|
+
import { Toast } from 'primereact/toast';
|
|
5
|
+
import { FilterState } from '../framework/state';
|
|
6
|
+
export interface AIApi {
|
|
7
|
+
sendPrompt(filterSchema: FilterSchemasAndGroups, userPrompt: string, setFormState: (state: FilterState) => void, apiKey: string, toast?: RefObject<Toast | null>): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export declare function mergeFilterFormState(schema: FilterExpr, currentState: FilterFormState, aiState: any): FilterFormState;
|
|
10
|
+
export declare const GeminiApi: AIApi;
|
|
11
|
+
export declare function generateFilterWithAI(filterSchema: FilterSchemasAndGroups, userPrompt: string, setFormState: (state: FilterState) => void, apiImpl: AIApi, geminiApiKey: string, toast?: RefObject<Toast | null>): Promise<void>;
|
|
12
|
+
//# sourceMappingURL=aiAssistant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiAssistant.d.ts","sourceRoot":"","sources":["../../../src/components/aiAssistant.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAuB,MAAM,sBAAsB,CAAC;AAC/F,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,WAAW,KAAK;IAClB,UAAU,CACN,YAAY,EAAE,sBAAsB,EACpC,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,EAC1C,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC,GAChC,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;AAiFD,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,GAAG,eAAe,CA0HrH;AAGD,eAAO,MAAM,SAAS,EAAE,KAwDvB,CAAC;AAEF,wBAAgB,oBAAoB,CAChC,YAAY,EAAE,sBAAsB,EACpC,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,EAC1C,OAAO,EAAE,KAAK,EACd,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,SAAS,CAAC,KAAK,GAAG,IAAI,CAAC,GAChC,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface CurrencyAmountProps {
|
|
2
|
+
amount: number | string;
|
|
3
|
+
currency: string;
|
|
4
|
+
locale?: string;
|
|
5
|
+
options?: Intl.NumberFormatOptions;
|
|
6
|
+
className?: string;
|
|
7
|
+
fractionDigitsOverride?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function CurrencyAmount({ amount, currency, locale, options, className, fractionDigitsOverride }: CurrencyAmountProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export default CurrencyAmount;
|
|
11
|
+
//# sourceMappingURL=CurrencyAmount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrencyAmount.d.ts","sourceRoot":"","sources":["../../../../src/framework/cell-renderer-components/CurrencyAmount.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAChC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAY,EAAE,SAAc,EAAE,sBAAsB,EAAE,EAAE,mBAAmB,kDAcrI;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare function FlexRow({ gap, className, align, justify, wrap, children }: {
|
|
3
|
+
gap?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
align?: string;
|
|
6
|
+
justify?: string;
|
|
7
|
+
wrap?: string | boolean;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function FlexColumn({ gap, className, align, justify, children }: {
|
|
11
|
+
gap?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
align?: string;
|
|
14
|
+
justify?: string;
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function Spacer(): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function DateTime({ date, locale, options, className }: {
|
|
19
|
+
date: string;
|
|
20
|
+
locale?: string;
|
|
21
|
+
options?: Intl.DateTimeFormatOptions;
|
|
22
|
+
className?: string;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
+
//# sourceMappingURL=LayoutHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutHelpers.d.ts","sourceRoot":"","sources":["../../../../src/framework/cell-renderer-components/LayoutHelpers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA6C/B,wBAAgB,OAAO,CAAC,EAAE,GAAgB,EAAE,SAAc,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAMvN;AAGD,wBAAgB,UAAU,CAAC,EAAE,GAAgB,EAAE,SAAc,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAM3L;AAGD,wBAAgB,MAAM,4CAErB;AAGD,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAkB,EAAE,OAAmB,EAAE,SAAc,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,kDAKtL"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface LinkProps {
|
|
3
|
+
text: string;
|
|
4
|
+
href: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A reusable Link component for use throughout the application.
|
|
9
|
+
* Provides consistent styling and behavior for links.
|
|
10
|
+
*/
|
|
11
|
+
export declare const Link: React.FC<LinkProps>;
|
|
12
|
+
export default Link;
|
|
13
|
+
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../src/framework/cell-renderer-components/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAapC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Generic mapping component for displaying mapped values.
|
|
4
|
+
* @param value The key to map.
|
|
5
|
+
* @param map The mapping object.
|
|
6
|
+
* @param fallback Optional fallback if value is not found.
|
|
7
|
+
*/
|
|
8
|
+
export declare function Mapping<T extends string | number, U>({ value, map, fallback }: {
|
|
9
|
+
value: T;
|
|
10
|
+
map: Record<T, U>;
|
|
11
|
+
fallback?: React.ReactNode;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=Mapping.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Mapping.d.ts","sourceRoot":"","sources":["../../../../src/framework/cell-renderer-components/Mapping.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE;IAAE,KAAK,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAE1I"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ReactNode, createElement } from "react";
|
|
2
|
+
import { FlexRow, FlexColumn, DateTime } from "./cell-renderer-components/LayoutHelpers";
|
|
3
|
+
import { CurrencyAmount } from './cell-renderer-components/CurrencyAmount';
|
|
4
|
+
import { majorToMinor, minorToMajor } from './currency';
|
|
5
|
+
import { Mapping } from "./cell-renderer-components/Mapping";
|
|
6
|
+
import { Link } from "./cell-renderer-components/Link";
|
|
7
|
+
import { Tag } from 'primereact/tag';
|
|
8
|
+
import { FilterState } from "./state";
|
|
9
|
+
import { FilterId } from "./filters";
|
|
10
|
+
export type CellRendererProps = {
|
|
11
|
+
data: Record<string, any>;
|
|
12
|
+
setFilterState: (updater: (currentState: FilterState) => FilterState) => void;
|
|
13
|
+
applyFilters: () => void;
|
|
14
|
+
updateFilterById: (filterId: FilterId, updater: (currentValue: any) => any) => void;
|
|
15
|
+
createElement: typeof createElement;
|
|
16
|
+
components: {
|
|
17
|
+
Badge: typeof Tag;
|
|
18
|
+
FlexRow: typeof FlexRow;
|
|
19
|
+
FlexColumn: typeof FlexColumn;
|
|
20
|
+
Mapping: typeof Mapping;
|
|
21
|
+
DateTime: typeof DateTime;
|
|
22
|
+
CurrencyAmount: typeof CurrencyAmount;
|
|
23
|
+
Link: typeof Link;
|
|
24
|
+
};
|
|
25
|
+
currency: {
|
|
26
|
+
minorToMajor: typeof minorToMajor;
|
|
27
|
+
majorToMinor: typeof majorToMinor;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export type CellRenderer = (props: CellRendererProps) => ReactNode;
|
|
31
|
+
export type OrderByConfig = {
|
|
32
|
+
key: string;
|
|
33
|
+
direction: 'ASC' | 'DESC';
|
|
34
|
+
};
|
|
35
|
+
export type Field = {
|
|
36
|
+
type: 'field';
|
|
37
|
+
path: string;
|
|
38
|
+
};
|
|
39
|
+
export type QueryConfig = {
|
|
40
|
+
field: string;
|
|
41
|
+
path?: string;
|
|
42
|
+
orderBy?: OrderByConfig | OrderByConfig[];
|
|
43
|
+
limit?: number;
|
|
44
|
+
};
|
|
45
|
+
export type QueryConfigs = {
|
|
46
|
+
type: 'queryConfigs';
|
|
47
|
+
configs: QueryConfig[];
|
|
48
|
+
};
|
|
49
|
+
export type FieldAlias = {
|
|
50
|
+
type: 'fieldAlias';
|
|
51
|
+
alias: string;
|
|
52
|
+
field: FieldQuery;
|
|
53
|
+
};
|
|
54
|
+
export type FieldQuery = Field | QueryConfigs | FieldAlias;
|
|
55
|
+
export declare function field(path: string): FieldQuery;
|
|
56
|
+
export declare function queryConfigs(configs: QueryConfig[]): FieldQuery;
|
|
57
|
+
export declare function fieldAlias(alias: string, fieldQuery: FieldQuery): FieldQuery;
|
|
58
|
+
export type ColumnDefinition = {
|
|
59
|
+
data: FieldQuery[];
|
|
60
|
+
name: string;
|
|
61
|
+
cellRenderer: CellRenderer;
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=column-definition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-definition.d.ts","sourceRoot":"","sources":["../../../src/framework/column-definition.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve a locale to use for currency formatting.
|
|
3
|
+
* Priority:
|
|
4
|
+
* 1. Explicitly provided locale argument
|
|
5
|
+
* 2. navigator.language (browser default)
|
|
6
|
+
* 3. First entry in navigator.languages
|
|
7
|
+
* 4. undefined (lets Intl use implementation default)
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveLocale(locale?: string): string | undefined;
|
|
10
|
+
export declare function getCurrencyFractionDigits(currency: string, locale?: string | undefined): number;
|
|
11
|
+
export declare function getCurrencyMajorUnitScale(currency: string, locale?: string | undefined): number;
|
|
12
|
+
export declare function majorToMinor(major: number, currency: string, locale?: string): number;
|
|
13
|
+
export declare function minorToMajor(minor: number, currency: string, locale?: string): number;
|
|
14
|
+
declare const _default: {
|
|
15
|
+
resolveLocale: typeof resolveLocale;
|
|
16
|
+
getCurrencyFractionDigits: typeof getCurrencyFractionDigits;
|
|
17
|
+
getCurrencyMajorUnitScale: typeof getCurrencyMajorUnitScale;
|
|
18
|
+
majorToMinor: typeof majorToMinor;
|
|
19
|
+
minorToMajor: typeof minorToMajor;
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
22
|
+
//# sourceMappingURL=currency.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency.d.ts","sourceRoot":"","sources":["../../../src/framework/currency.ts"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAOjE;AAED,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,GAAG,SAAqB,GAAG,MAAM,CAY1G;AAED,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,GAAG,SAAqB,GAAG,MAAM,CAE1G;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAKrF;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAIrF;;;;;;;;AAED,wBAME"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
import { View } from '../framework/view';
|
|
3
|
+
import { ColumnDefinition } from '../framework/column-definition';
|
|
4
|
+
import { FilterState } from './state';
|
|
5
|
+
export interface FetchDataResult {
|
|
6
|
+
rows: Record<string, unknown>[];
|
|
7
|
+
flattenedRows: Record<string, unknown>[][];
|
|
8
|
+
}
|
|
9
|
+
export declare const fetchData: ({ client, view, query, filterState, rowLimit, cursor }: {
|
|
10
|
+
client: GraphQLClient;
|
|
11
|
+
view: View;
|
|
12
|
+
query: string;
|
|
13
|
+
filterState: FilterState;
|
|
14
|
+
rowLimit: number;
|
|
15
|
+
cursor: string | number | null;
|
|
16
|
+
}) => Promise<FetchDataResult>;
|
|
17
|
+
export declare const flattenFields: (rows: Record<string, any>[], columns: ColumnDefinition[]) => Record<string, any>[][];
|
|
18
|
+
export declare const flattenColumnFields: (row: Record<string, any>, column: ColumnDefinition) => Record<string, any>;
|
|
19
|
+
//# sourceMappingURL=data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/framework/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAA2B,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAChC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC;CAC9C;AASD,eAAO,MAAM,SAAS,2DAOnB;IACC,MAAM,EAAE,aAAa,CAAC;IACtB,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CAClC,KAAG,OAAO,CAAC,eAAe,CAoD1B,CAAC;AAGF,eAAO,MAAM,aAAa,SAChB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,WAClB,gBAAgB,EAAE,KAC5B,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,EAIvB,CAAC;AAGF,eAAO,MAAM,mBAAmB,QAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,gBAAgB,wBA2DrF,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { FilterSchemasAndGroups, FilterField, FilterControl, FilterExpr, FilterTransform } from './filters';
|
|
2
|
+
import { FilterState } from './state';
|
|
3
|
+
export type FilterFormState = {
|
|
4
|
+
type: 'leaf';
|
|
5
|
+
value: any;
|
|
6
|
+
} | {
|
|
7
|
+
type: 'and' | 'or';
|
|
8
|
+
children: FilterFormState[];
|
|
9
|
+
} | {
|
|
10
|
+
type: 'not';
|
|
11
|
+
child: FilterFormState;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Generic helper to apply a transformation function to all leaf values in a FilterFormState tree
|
|
15
|
+
*/
|
|
16
|
+
export declare function mapFilterFormState<T>(node: FilterFormState, transformValue: (value: any) => T): FilterFormState;
|
|
17
|
+
type LeafFilterExpr = FilterExpr & {
|
|
18
|
+
field: FilterField;
|
|
19
|
+
value: FilterControl;
|
|
20
|
+
transform?: FilterTransform;
|
|
21
|
+
};
|
|
22
|
+
type AndFilterExpr = FilterExpr & {
|
|
23
|
+
type: 'and';
|
|
24
|
+
};
|
|
25
|
+
type OrFilterExpr = FilterExpr & {
|
|
26
|
+
type: 'or';
|
|
27
|
+
};
|
|
28
|
+
type NotFilterExpr = FilterExpr & {
|
|
29
|
+
type: 'not';
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Helper function that recursively traverses both filter schema and state in parallel.
|
|
33
|
+
* Calls the appropriate handler for each node in the tree based on the state node type.
|
|
34
|
+
*
|
|
35
|
+
* This helper is useful for operations that need to correlate schema information with state values,
|
|
36
|
+
* such as:
|
|
37
|
+
* - Building query conditions recursively
|
|
38
|
+
* - Building validation result trees
|
|
39
|
+
* - Transforming data structures while preserving tree shape
|
|
40
|
+
* - Building UI components from schema + state
|
|
41
|
+
*
|
|
42
|
+
* @param schemaNode - The schema node to traverse
|
|
43
|
+
* @param stateNode - The state node to traverse
|
|
44
|
+
* @param handlers - Record of functions keyed by FilterFormState type, each handling specific node types
|
|
45
|
+
* @returns Single result of type T built recursively
|
|
46
|
+
*/
|
|
47
|
+
export declare function traverseFilterSchemaAndState<T>(schemaNode: FilterExpr, stateNode: FilterFormState, handlers: {
|
|
48
|
+
leaf: (schemaNode: LeafFilterExpr, stateNode: FilterFormState & {
|
|
49
|
+
type: 'leaf';
|
|
50
|
+
}) => T;
|
|
51
|
+
and: (schemaNode: AndFilterExpr, stateNode: FilterFormState & {
|
|
52
|
+
type: 'and';
|
|
53
|
+
}, childResults: T[]) => T;
|
|
54
|
+
or: (schemaNode: OrFilterExpr, stateNode: FilterFormState & {
|
|
55
|
+
type: 'or';
|
|
56
|
+
}, childResults: T[]) => T;
|
|
57
|
+
not: (schemaNode: NotFilterExpr, stateNode: FilterFormState & {
|
|
58
|
+
type: 'not';
|
|
59
|
+
}, childResult: T) => T;
|
|
60
|
+
}): T;
|
|
61
|
+
/**
|
|
62
|
+
* Helper to serialize a FilterFormState node, converting Date objects to ISO strings
|
|
63
|
+
*/
|
|
64
|
+
export declare function makeFilterFormStateSerializable(node: FilterFormState): FilterFormState;
|
|
65
|
+
/**
|
|
66
|
+
* Serialize a FilterState Map to JSON object for storage
|
|
67
|
+
*/
|
|
68
|
+
export declare function serializeFilterFormStateMap(state: FilterState): Record<string, any>;
|
|
69
|
+
/**
|
|
70
|
+
* Parse serialized filter state (object keyed by filter id) back into a FilterState Map,
|
|
71
|
+
* converting date string values to Date objects by consulting the filter schema.
|
|
72
|
+
*/
|
|
73
|
+
export declare function parseFilterFormState(serializedState: any, schema: FilterSchemasAndGroups): FilterState;
|
|
74
|
+
export {};
|
|
75
|
+
//# sourceMappingURL=filter-form-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-form-state.d.ts","sourceRoot":"","sources":["../../../src/framework/filter-form-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5G,OAAO,EAAE,WAAW,EAA4C,MAAM,SAAS,CAAC;AAGhF,MAAM,MAAM,eAAe,GACrB;IACE,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;CACd,GACC;IAAE,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,eAAe,EAAE,CAAA;CAAE,GACnD;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,eAAe,CAAA;CAAE,CAAC;AAE9C;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAChC,IAAI,EAAE,eAAe,EACrB,cAAc,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,CAAC,GAClC,eAAe,CAiBjB;AAGD,KAAK,cAAc,GAAG,UAAU,GAAG;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,aAAa,CAAC;IAAC,SAAS,CAAC,EAAE,eAAe,CAAA;CAAE,CAAC;AAC7G,KAAK,aAAa,GAAG,UAAU,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC;AAClD,KAAK,YAAY,GAAG,UAAU,GAAG;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC;AAChD,KAAK,aAAa,GAAG,UAAU,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC;AAElD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,4BAA4B,CAAC,CAAC,EAC1C,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,eAAe,EAC1B,QAAQ,EAAE;IACN,IAAI,EAAE,CAAC,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,eAAe,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,CAAC,CAAC;IACvF,GAAG,EAAE,CAAC,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,eAAe,GAAG;QAAE,IAAI,EAAE,KAAK,CAAA;KAAE,EAAE,YAAY,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;IACvG,EAAE,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,GAAG;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE,EAAE,YAAY,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;IACpG,GAAG,EAAE,CAAC,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,eAAe,GAAG;QAAE,IAAI,EAAE,KAAK,CAAA;KAAE,EAAE,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC;CACvG,GACF,CAAC,CAuDH;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,eAAe,GAAG,eAAe,CAOtF;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAKnF;AAwBD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,eAAe,EAAE,GAAG,EAAE,MAAM,EAAE,sBAAsB,GAAG,WAAW,CAWtG"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FilterState } from './state';
|
|
2
|
+
/**
|
|
3
|
+
* Encode filter state to a base64 URL-safe string
|
|
4
|
+
*/
|
|
5
|
+
export declare function encodeFilterState(filterState: FilterState): string;
|
|
6
|
+
/**
|
|
7
|
+
* Decode filter state from a base64 URL-safe string
|
|
8
|
+
*/
|
|
9
|
+
export declare function decodeFilterState(encodedState: string): any[];
|
|
10
|
+
export declare function createShareableUrl(filterState: FilterState): string;
|
|
11
|
+
/**
|
|
12
|
+
* Copy URL to clipboard
|
|
13
|
+
*/
|
|
14
|
+
export declare function copyToClipboard(text: string): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Get filter state from URL parameters
|
|
17
|
+
*/
|
|
18
|
+
export declare function getFilterFromUrl(): any[] | null;
|
|
19
|
+
/**
|
|
20
|
+
* Remove filter parameter from URL without page reload
|
|
21
|
+
*/
|
|
22
|
+
export declare function clearFilterFromUrl(): void;
|
|
23
|
+
export declare function setFilterInUrl(filterState: FilterState): void;
|
|
24
|
+
//# sourceMappingURL=filter-sharing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-sharing.d.ts","sourceRoot":"","sources":["../../../src/framework/filter-sharing.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAalE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,GAAG,EAAE,CAc7D;AAOD,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAUnE;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBjE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,GAAG,EAAE,GAAG,IAAI,CAU/C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAIzC;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAW7D"}
|