@local-logic/sdks-app 1.7.2 → 2.1.0
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/assets/index-legacy.0a642cb5.js +1 -0
- package/dist/assets/index-legacy.4e44eb64.js +1 -0
- package/dist/assets/index-legacy.7f6983e2.js +1 -0
- package/dist/assets/index-legacy.919f470f.js +1 -0
- package/dist/assets/index-legacy.95ccb44a.js +106 -0
- package/dist/assets/index-legacy.c9e59904.js +23 -0
- package/dist/assets/index-legacy.fc3fe26b.js +1 -0
- package/dist/assets/{index.10935833.js → index.1bb375cb.js} +13 -13
- package/dist/assets/index.621fb294.js +149 -0
- package/dist/assets/index.795111c8.js +1 -0
- package/dist/assets/index.7a7d9dc0.js +1 -0
- package/dist/assets/index.937af76a.js +247 -0
- package/dist/assets/index.9af49ac7.js +1318 -0
- package/dist/assets/index.f59985f7.js +35 -0
- package/dist/assets/polyfills-legacy.db2bc606.js +1 -0
- package/dist/assets/{useIsMobile-legacy.a1dad04e.js → useIsMobile-legacy.ed5dee46.js} +1 -1
- package/dist/assets/{useIsMobile.5dc7840d.js → useIsMobile.456ed35b.js} +1 -1
- package/dist/assets/useQuery-legacy.97f1ad62.js +1 -0
- package/dist/assets/useQuery.83f2b67b.js +9 -0
- package/dist/index.html +3 -3
- package/dist/types/context/languageProvider/data-explorer/locales/en/index.d.ts.map +1 -1
- package/dist/types/context/languageProvider/data-explorer/locales/en/index.js +3 -0
- package/dist/types/context/languageProvider/data-explorer/locales/en/index.js.map +1 -1
- package/dist/types/context/languageProvider/data-explorer/locales/fr/index.d.ts.map +1 -1
- package/dist/types/context/languageProvider/data-explorer/locales/fr/index.js +3 -0
- package/dist/types/context/languageProvider/data-explorer/locales/fr/index.js.map +1 -1
- package/dist/types/context/languageProvider/data-explorer/types.d.ts +3 -3
- package/dist/types/context/languageProvider/data-explorer/types.d.ts.map +1 -1
- package/dist/types/context/languageProvider/index.d.ts +2 -2
- package/dist/types/context/languageProvider/index.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/components/DataTable/index.d.ts +4 -0
- package/dist/types/sdks/DataExplorer/components/DataTable/index.d.ts.map +1 -0
- package/dist/types/sdks/DataExplorer/components/DataTable/index.js +65 -0
- package/dist/types/sdks/DataExplorer/components/DataTable/index.js.map +1 -0
- package/dist/types/sdks/DataExplorer/components/DataTable/styles.d.ts +6 -0
- package/dist/types/sdks/DataExplorer/components/DataTable/styles.d.ts.map +1 -0
- package/dist/types/sdks/DataExplorer/components/DataTable/styles.js +27 -0
- package/dist/types/sdks/DataExplorer/components/DataTable/styles.js.map +1 -0
- package/dist/types/sdks/DataExplorer/components/Export/index.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/components/Export/index.js +7 -11
- package/dist/types/sdks/DataExplorer/components/Export/index.js.map +1 -1
- package/dist/types/sdks/DataExplorer/components/Filters/index.d.ts +4 -0
- package/dist/types/sdks/DataExplorer/components/Filters/index.d.ts.map +1 -0
- package/dist/types/sdks/DataExplorer/components/Filters/index.js +51 -0
- package/dist/types/sdks/DataExplorer/components/Filters/index.js.map +1 -0
- package/dist/types/sdks/DataExplorer/components/Filters/styles.d.ts +6 -0
- package/dist/types/sdks/DataExplorer/components/Filters/styles.d.ts.map +1 -0
- package/dist/types/sdks/DataExplorer/components/Filters/styles.js +12 -0
- package/dist/types/sdks/DataExplorer/components/Filters/styles.js.map +1 -0
- package/dist/types/sdks/DataExplorer/components/Section/index.d.ts +2 -4
- package/dist/types/sdks/DataExplorer/components/Section/index.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/components/Section/index.js +6 -18
- package/dist/types/sdks/DataExplorer/components/Section/index.js.map +1 -1
- package/dist/types/sdks/DataExplorer/context.d.ts +4 -5
- package/dist/types/sdks/DataExplorer/context.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/context.js +4 -5
- package/dist/types/sdks/DataExplorer/context.js.map +1 -1
- package/dist/types/sdks/DataExplorer/index.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/index.js +10 -59
- package/dist/types/sdks/DataExplorer/index.js.map +1 -1
- package/dist/types/sdks/DataExplorer/styles.d.ts +3 -2
- package/dist/types/sdks/DataExplorer/styles.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/styles.js +17 -7
- package/dist/types/sdks/DataExplorer/styles.js.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/Household/index.d.ts.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/Household/index.js +2 -1
- package/dist/types/sdks/Demographics/components/Content/Household/index.js.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/Household/styles.d.ts +3 -0
- package/dist/types/sdks/Demographics/components/Content/Household/styles.d.ts.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/Household/styles.js +19 -0
- package/dist/types/sdks/Demographics/components/Content/Household/styles.js.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/Housing/index.d.ts.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/Housing/index.js +10 -7
- package/dist/types/sdks/Demographics/components/Content/Housing/index.js.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/Housing/styles.d.ts +3 -0
- package/dist/types/sdks/Demographics/components/Content/Housing/styles.d.ts.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/Housing/styles.js +12 -0
- package/dist/types/sdks/Demographics/components/Content/Housing/styles.js.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/Languages/index.d.ts +3 -0
- package/dist/types/sdks/Demographics/components/Content/Languages/index.d.ts.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/Languages/index.js +14 -0
- package/dist/types/sdks/Demographics/components/Content/Languages/index.js.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/index.d.ts.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/index.js +3 -0
- package/dist/types/sdks/Demographics/components/Content/index.js.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/styles.js +1 -1
- package/dist/types/sdks/Demographics/components/Content/styles.js.map +1 -1
- package/dist/types/sdks/Demographics/context.d.ts +3 -0
- package/dist/types/sdks/Demographics/context.d.ts.map +1 -1
- package/dist/types/sdks/Demographics/context.js.map +1 -1
- package/dist/types/sdks/Demographics/styles.d.ts.map +1 -1
- package/dist/types/sdks/Demographics/styles.js +0 -1
- package/dist/types/sdks/Demographics/styles.js.map +1 -1
- package/package.json +4 -3
- package/dist/assets/index-legacy.128bbb90.js +0 -106
- package/dist/assets/index-legacy.3a8c6aa8.js +0 -1
- package/dist/assets/index-legacy.46f64d17.js +0 -1
- package/dist/assets/index-legacy.60df4146.js +0 -1
- package/dist/assets/index-legacy.7c9f6b15.js +0 -1
- package/dist/assets/index-legacy.935e7346.js +0 -1
- package/dist/assets/index-legacy.93d69255.js +0 -1
- package/dist/assets/index.1df47f40.js +0 -28
- package/dist/assets/index.71eb35ea.js +0 -247
- package/dist/assets/index.97d3a920.js +0 -1374
- package/dist/assets/index.d464e7cf.js +0 -1
- package/dist/assets/index.e63e2d64.js +0 -1
- package/dist/assets/index.ed99fd65.js +0 -120
- package/dist/assets/keyFactory-legacy.782b8549.js +0 -1
- package/dist/assets/keyFactory.e1cd5707.js +0 -1
- package/dist/assets/polyfills-legacy.147ba02d.js +0 -1
- package/dist/assets/useQuery-legacy.6ce02414.js +0 -1
- package/dist/assets/useQuery.7c643982.js +0 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare type TranslationKeysTitles = "LOCATION" | "SCORES" | "POIS" | "SCHOOLS" | "DEMOGRAPHICS" | "PROFILES";
|
|
2
|
-
export declare type TranslationKeysDescriptions = "LOCATION_TEXT" | "SCORES_TEXT" | "POIS_TEXT" | "SCHOOLS_TEXT" | "DEMOGRAPHICS_TEXT" | "PROFILES_TEXT";
|
|
3
|
-
export declare type TranslationKeysUI = "RADIUS" | "LIMIT" | "EXPORT" | "SEARCH_MAP";
|
|
1
|
+
export declare type TranslationKeysTitles = "LOCATION" | "SCORES" | "POIS" | "SCHOOLS" | "DEMOGRAPHICS" | "PROFILES" | "TABLE";
|
|
2
|
+
export declare type TranslationKeysDescriptions = "LOCATION_TEXT" | "SCORES_TEXT" | "POIS_TEXT" | "SCHOOLS_TEXT" | "DEMOGRAPHICS_TEXT" | "PROFILES_TEXT" | "TABLE_TEXT";
|
|
3
|
+
export declare type TranslationKeysUI = "RADIUS" | "LIMIT" | "EXPORT" | "SEARCH_MAP" | "SEARCH_INSIGHTS";
|
|
4
4
|
export declare type DETranslationKeys = TranslationKeysTitles | TranslationKeysDescriptions | TranslationKeysUI;
|
|
5
5
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/context/languageProvider/data-explorer/types.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB,GAC7B,UAAU,GACV,QAAQ,GACR,MAAM,GACN,SAAS,GACT,cAAc,GACd,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/context/languageProvider/data-explorer/types.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB,GAC7B,UAAU,GACV,QAAQ,GACR,MAAM,GACN,SAAS,GACT,cAAc,GACd,UAAU,GACV,OAAO,CAAC;AAEZ,oBAAY,2BAA2B,GACnC,eAAe,GACf,aAAa,GACb,WAAW,GACX,cAAc,GACd,mBAAmB,GACnB,eAAe,GACf,YAAY,CAAC;AAEjB,oBAAY,iBAAiB,GACzB,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,YAAY,GACZ,iBAAiB,CAAC;AAEtB,oBAAY,iBAAiB,GACzB,qBAAqB,GACrB,2BAA2B,GAC3B,iBAAiB,CAAC"}
|
|
@@ -8,8 +8,8 @@ interface DefaultContext<T extends DETranslationKeys | LCTranslationKeys | DTran
|
|
|
8
8
|
[key in T]: string;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
declare const useLangauges: <T extends "LOCATION" | "SCORES" | "POIS" | "SCHOOLS" | "DEMOGRAPHICS" | "PROFILES" | "LOCATION_TEXT" | "SCORES_TEXT" | "POIS_TEXT" | "SCHOOLS_TEXT" | "DEMOGRAPHICS_TEXT" | "PROFILES_TEXT" | "RADIUS" | "LIMIT" | "EXPORT" | "SEARCH_MAP" | "CALCULATE_COMMUTE" | "MINUTE" | "HOUR" | "NO_ROUTE" | "FAST_ROUTE" | "TRY_SUGGESTION" | "WALKING" | "DRIVING" | "EMPTY_TEXT" | "DEMOGRAPHICS_TITLE">() => DefaultContext<T>;
|
|
12
|
-
declare const LanguagesProvider: <T extends "LOCATION" | "SCORES" | "POIS" | "SCHOOLS" | "DEMOGRAPHICS" | "PROFILES" | "LOCATION_TEXT" | "SCORES_TEXT" | "POIS_TEXT" | "SCHOOLS_TEXT" | "DEMOGRAPHICS_TEXT" | "PROFILES_TEXT" | "RADIUS" | "LIMIT" | "EXPORT" | "SEARCH_MAP" | "CALCULATE_COMMUTE" | "MINUTE" | "HOUR" | "NO_ROUTE" | "FAST_ROUTE" | "TRY_SUGGESTION" | "WALKING" | "DRIVING" | "EMPTY_TEXT" | "DEMOGRAPHICS_TITLE">({ children, }: LanguagesProviderProps) => JSX.Element | null;
|
|
11
|
+
declare const useLangauges: <T extends "LOCATION" | "SCORES" | "POIS" | "SCHOOLS" | "DEMOGRAPHICS" | "PROFILES" | "TABLE" | "LOCATION_TEXT" | "SCORES_TEXT" | "POIS_TEXT" | "SCHOOLS_TEXT" | "DEMOGRAPHICS_TEXT" | "PROFILES_TEXT" | "TABLE_TEXT" | "RADIUS" | "LIMIT" | "EXPORT" | "SEARCH_MAP" | "SEARCH_INSIGHTS" | "CALCULATE_COMMUTE" | "MINUTE" | "HOUR" | "NO_ROUTE" | "FAST_ROUTE" | "TRY_SUGGESTION" | "WALKING" | "DRIVING" | "EMPTY_TEXT" | "DEMOGRAPHICS_TITLE">() => DefaultContext<T>;
|
|
12
|
+
declare const LanguagesProvider: <T extends "LOCATION" | "SCORES" | "POIS" | "SCHOOLS" | "DEMOGRAPHICS" | "PROFILES" | "TABLE" | "LOCATION_TEXT" | "SCORES_TEXT" | "POIS_TEXT" | "SCHOOLS_TEXT" | "DEMOGRAPHICS_TEXT" | "PROFILES_TEXT" | "TABLE_TEXT" | "RADIUS" | "LIMIT" | "EXPORT" | "SEARCH_MAP" | "SEARCH_INSIGHTS" | "CALCULATE_COMMUTE" | "MINUTE" | "HOUR" | "NO_ROUTE" | "FAST_ROUTE" | "TRY_SUGGESTION" | "WALKING" | "DRIVING" | "EMPTY_TEXT" | "DEMOGRAPHICS_TITLE">({ children, }: LanguagesProviderProps) => JSX.Element | null;
|
|
13
13
|
export { LanguagesProvider, useLangauges };
|
|
14
14
|
export * from "./sdkLocales";
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/languageProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAK/D,OAAO,EAEL,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAEtB,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,UAAU,cAAc,CACtB,CAAC,SAAS,iBAAiB,GAAG,iBAAiB,GAAG,gBAAgB;IAElE,YAAY,EAAE;SAAG,GAAG,IAAI,CAAC,GAAG,MAAM;KAAE,CAAC;CACtC;AAOD,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/languageProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAK/D,OAAO,EAEL,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAEtB,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,UAAU,cAAc,CACtB,CAAC,SAAS,iBAAiB,GAAG,iBAAiB,GAAG,gBAAgB;IAElE,YAAY,EAAE;SAAG,GAAG,IAAI,CAAC,GAAG,MAAM;KAAE,CAAC;CACtC;AAOD,QAAA,MAAM,YAAY,ycAUjB,CAAC;AAEF,QAAA,MAAM,iBAAiB,kcAIpB,sBAAsB,uBAyCxB,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC;AAC3C,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/DataTable/index.tsx"],"names":[],"mappings":";AA6BA,QAAA,MAAM,SAAS,mBAiGd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { createColumnHelper, flexRender, getCoreRowModel, useReactTable, } from "@tanstack/react-table";
|
|
3
|
+
import { ScoreNames } from "@local-logic/client";
|
|
4
|
+
import { Button, Spacer } from "@local-logic/ui";
|
|
5
|
+
import * as S from "./styles";
|
|
6
|
+
const columnHelper = createColumnHelper();
|
|
7
|
+
const defaultColumns = [
|
|
8
|
+
columnHelper.accessor("insight", {
|
|
9
|
+
header: "Insight",
|
|
10
|
+
}),
|
|
11
|
+
];
|
|
12
|
+
const DataTable = () => {
|
|
13
|
+
const [columns, setColumns] = React.useState(() => [...defaultColumns]);
|
|
14
|
+
const [comparables, setComparables] = React.useState([]);
|
|
15
|
+
const [data, setData] = React.useState([]);
|
|
16
|
+
const [insights, setInsights] = React.useState(Object.values(ScoreNames).filter((value) => typeof value === "string"));
|
|
17
|
+
const addComparable = React.useCallback(() => {
|
|
18
|
+
const newComparables = [
|
|
19
|
+
...comparables,
|
|
20
|
+
{
|
|
21
|
+
address: "123 Fake St, Fake City, FK, 012345",
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
setComparables(newComparables);
|
|
25
|
+
setColumns([
|
|
26
|
+
...defaultColumns,
|
|
27
|
+
...newComparables.map((comparable, index) => columnHelper.accessor(`comparable_${index}`, {
|
|
28
|
+
header: comparable.address,
|
|
29
|
+
})),
|
|
30
|
+
]);
|
|
31
|
+
setData([
|
|
32
|
+
...insights.map((insight) => (Object.assign({ insight }, newComparables.reduce((acc, cur, index) => {
|
|
33
|
+
acc[`comparable_${index}`] = 1.23;
|
|
34
|
+
return acc;
|
|
35
|
+
}, {})))),
|
|
36
|
+
]);
|
|
37
|
+
}, [comparables, insights]);
|
|
38
|
+
const addInsight = React.useCallback(() => {
|
|
39
|
+
const newInsights = [...insights, "New insight"];
|
|
40
|
+
setInsights(newInsights);
|
|
41
|
+
setData([
|
|
42
|
+
...insights.map((insight) => (Object.assign({ insight }, comparables.reduce((acc, cur, index) => {
|
|
43
|
+
acc[`comparable_${index}`] = 1.23;
|
|
44
|
+
return acc;
|
|
45
|
+
}, {})))),
|
|
46
|
+
]);
|
|
47
|
+
}, [comparables, insights]);
|
|
48
|
+
const table = useReactTable({
|
|
49
|
+
data,
|
|
50
|
+
columns,
|
|
51
|
+
getCoreRowModel: getCoreRowModel(),
|
|
52
|
+
});
|
|
53
|
+
return (React.createElement(React.Fragment, null,
|
|
54
|
+
React.createElement(S.Table, null,
|
|
55
|
+
React.createElement(S.THead, null, table.getHeaderGroups().map((headerGroup) => (React.createElement("tr", { key: headerGroup.id }, headerGroup.headers.map((header) => (React.createElement("th", { key: header.id }, header.isPlaceholder
|
|
56
|
+
? null
|
|
57
|
+
: flexRender(header.column.columnDef.header, header.getContext())))))))),
|
|
58
|
+
React.createElement(S.TBody, null, table.getRowModel().rows.map((row) => (React.createElement("tr", { key: row.id }, row.getVisibleCells().map((cell) => (React.createElement("td", { key: cell.id }, flexRender(cell.column.columnDef.cell, cell.getContext()))))))))),
|
|
59
|
+
React.createElement(S.ButtonContainer, null,
|
|
60
|
+
React.createElement(Button, { variant: "contained", onClick: addComparable }, "Add Comparable"),
|
|
61
|
+
React.createElement(Spacer, { spacing: "--ll-spacing-xx-small" }),
|
|
62
|
+
React.createElement(Button, { variant: "contained", onClick: addInsight }, "Add Insight"))));
|
|
63
|
+
};
|
|
64
|
+
export default DataTable;
|
|
65
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/DataTable/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,kBAAkB,EAClB,UAAU,EACV,eAAe,EACf,aAAa,GACd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAkB,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEjE,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAU9B,MAAM,YAAY,GAAG,kBAAkB,EAAQ,CAAC;AAEhD,MAAM,cAAc,GAAG;IACrB,YAAY,CAAC,QAAQ,CAAC,SAAS,EAAE;QAC/B,MAAM,EAAE,SAAS;KAClB,CAAC;CACH,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC;IACxE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAe,EAAE,CAAC,CAAC;IACvE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAS,EAAE,CAAC,CAAC;IACnD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CAC5C,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,C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CACC,CACN,CAAC,CACM,CACF;QACV,oBAAC,CAAC,CAAC,eAAe;YAChB,oBAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,aAAa,qBAEzC;YACT,oBAAC,MAAM,IAAC,OAAO,EAAC,uBAAuB,GAAG;YAC1C,oBAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,UAAU,kBAEtC,CACS,CACL,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ButtonContainer: import("styled-components").IStyledComponent<"web", "div", import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & object> & object;
|
|
3
|
+
export declare const Table: import("styled-components").IStyledComponent<"web", "table", import("react").ClassAttributes<HTMLTableElement> & import("react").TableHTMLAttributes<HTMLTableElement> & object> & object;
|
|
4
|
+
export declare const THead: import("styled-components").IStyledComponent<"web", "thead", import("react").ClassAttributes<HTMLTableSectionElement> & import("react").HTMLAttributes<HTMLTableSectionElement> & object> & object;
|
|
5
|
+
export declare const TBody: import("styled-components").IStyledComponent<"web", "tbody", import("react").ClassAttributes<HTMLTableSectionElement> & import("react").HTMLAttributes<HTMLTableSectionElement> & object> & object;
|
|
6
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/DataTable/styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,eAAe,gLAO3B,CAAC;AAEF,eAAO,MAAM,KAAK,2LAGjB,CAAC;AAEF,eAAO,MAAM,KAAK,oMAEjB,CAAC;AAEF,eAAO,MAAM,KAAK,oMAQjB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { styled } from "styled-components";
|
|
2
|
+
import { theme } from "@local-logic/ui";
|
|
3
|
+
export const ButtonContainer = styled.div `
|
|
4
|
+
padding: ${theme["--ll-spacing-medium"]};
|
|
5
|
+
display: flex;
|
|
6
|
+
background-color: ${theme["--ll-color-surface"]};
|
|
7
|
+
box-shadow: ${theme["--ll-shadow-medium"]};
|
|
8
|
+
justify-content: flex-end;
|
|
9
|
+
border-top: 1px solid ${theme["--ll-color-border"]};
|
|
10
|
+
`;
|
|
11
|
+
export const Table = styled.table `
|
|
12
|
+
font-family: ${theme["--ll-font-family-mono"]};
|
|
13
|
+
width: 100%;
|
|
14
|
+
`;
|
|
15
|
+
export const THead = styled.thead `
|
|
16
|
+
font-weight: ${theme["--ll-font-weight-bold"]};
|
|
17
|
+
`;
|
|
18
|
+
export const TBody = styled.tbody `
|
|
19
|
+
& td:nth-child(1) {
|
|
20
|
+
font-weight: ${theme["--ll-font-weight-bold"]};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
& td:nth-child(n + 2) {
|
|
24
|
+
text-align: right;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/DataTable/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;aAC5B,KAAK,CAAC,qBAAqB,CAAC;;sBAEnB,KAAK,CAAC,oBAAoB,CAAC;gBACjC,KAAK,CAAC,oBAAoB,CAAC;;0BAEjB,KAAK,CAAC,mBAAmB,CAAC;CACnD,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAA;iBAChB,KAAK,CAAC,uBAAuB,CAAC;;CAE9C,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAA;iBAChB,KAAK,CAAC,uBAAuB,CAAC;CAC9C,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAA;;mBAEd,KAAK,CAAC,uBAAuB,CAAC;;;;;;CAMhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Export/index.tsx"],"names":[],"mappings":";AAaA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Export/index.tsx"],"names":[],"mappings":";AAaA,QAAA,MAAM,MAAM,mBA8RX,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -19,7 +19,7 @@ const Export = () => {
|
|
|
19
19
|
const { data: scoresData, isFetching: isScoresFetching } = useScores({
|
|
20
20
|
lat: dataExplorerState.location.lat,
|
|
21
21
|
lng: dataExplorerState.location.lng,
|
|
22
|
-
enabled:
|
|
22
|
+
enabled: true,
|
|
23
23
|
include: dataExplorerState.scores.include,
|
|
24
24
|
});
|
|
25
25
|
/**
|
|
@@ -28,7 +28,7 @@ const Export = () => {
|
|
|
28
28
|
const { data: poisData, isFetching: isPoisFetching } = usePois({
|
|
29
29
|
lat: dataExplorerState.location.lat,
|
|
30
30
|
lng: dataExplorerState.location.lng,
|
|
31
|
-
enabled:
|
|
31
|
+
enabled: true,
|
|
32
32
|
include: dataExplorerState.pois.include,
|
|
33
33
|
limit: dataExplorerState.pois.limit,
|
|
34
34
|
radius: dataExplorerState.pois.radius,
|
|
@@ -39,7 +39,7 @@ const Export = () => {
|
|
|
39
39
|
const { data: schoolsData, isFetching: isSchoolsFetching } = useSchools({
|
|
40
40
|
lat: dataExplorerState.location.lat,
|
|
41
41
|
lng: dataExplorerState.location.lng,
|
|
42
|
-
enabled:
|
|
42
|
+
enabled: true,
|
|
43
43
|
limit: dataExplorerState.pois.limit,
|
|
44
44
|
radius: dataExplorerState.pois.radius,
|
|
45
45
|
});
|
|
@@ -49,7 +49,7 @@ const Export = () => {
|
|
|
49
49
|
const { data: demographicsData, isFetching: isDemographicsFetching } = useDemographics({
|
|
50
50
|
lat: dataExplorerState.location.lat,
|
|
51
51
|
lng: dataExplorerState.location.lng,
|
|
52
|
-
enabled:
|
|
52
|
+
enabled: true,
|
|
53
53
|
radius: dataExplorerState.demographics.radius,
|
|
54
54
|
});
|
|
55
55
|
/**
|
|
@@ -58,15 +58,11 @@ const Export = () => {
|
|
|
58
58
|
const { data: profilesData, isFetching: isProfilesFetching } = useProfiles({
|
|
59
59
|
lat: dataExplorerState.location.lat,
|
|
60
60
|
lng: dataExplorerState.location.lng,
|
|
61
|
-
enabled:
|
|
61
|
+
enabled: true,
|
|
62
62
|
});
|
|
63
|
-
const data = useMemo(() => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (scoresData &&
|
|
64
|
-
dataExplorerState.scores.checked && { scores: scoresData })), (poisData && dataExplorerState.pois.checked && { pois: poisData })), (schoolsData &&
|
|
65
|
-
dataExplorerState.schools.checked && { schools: schoolsData })), (demographicsData &&
|
|
66
|
-
dataExplorerState.demographics.checked && {
|
|
63
|
+
const data = useMemo(() => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (scoresData && { scores: scoresData })), (poisData && { pois: poisData })), (schoolsData && { schools: schoolsData })), (demographicsData && {
|
|
67
64
|
demographics: demographicsData,
|
|
68
|
-
})), (profilesData &&
|
|
69
|
-
dataExplorerState.profiles.checked && {
|
|
65
|
+
})), (profilesData && {
|
|
70
66
|
profiles: profilesData,
|
|
71
67
|
}))), [
|
|
72
68
|
poisData,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Export/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA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E,CAAC;QAErB;;WAEG;QACH,gBAAgB,EAAE,CAAC;QAEnB;;WAEG;QACH,mBAAmB,EAAE,CAAC;QAEtB;;WAEG;QACH,wBAAwB,EAAE,CAAC;QAE3B;;WAEG;QACH,oBAAoB,EAAE,CAAC;IACzB,CAAC,CAAC;IAEF;;OAEG;IACH,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;IAE1C,OAAO,CACL,oBAAC,CAAC,CAAC,eAAe;QACf,UAAU,IAAI,CACb,oBAAC,CAAC,CAAC,gBAAgB;YACjB,oBAAC,cAAc,OAAG,CACC,CACtB;QACD,oBAAC,MAAM,IACL,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,IAAI,UAAU;YAEhD,YAAY,CAAC,MAAM;oBACb;QACT,oBAAC,MAAM,IAAC,OAAO,EAAC,uBAAuB,GAAG;QAC1C,oBAAC,MAAM,IACL,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,CAAC,QAAQ,IAAI,UAAU;YAEhC,YAAY,CAAC,MAAM;;YAAQ,QAAQ;gBAC7B,CACS,CACrB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Filters/index.tsx"],"names":[],"mappings":";AAaA,QAAA,MAAM,OAAO,mBAqEZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Search from "~/components/Search";
|
|
3
|
+
import { useLangauges } from "~/context/languageProvider";
|
|
4
|
+
import { Spacer } from "@local-logic/ui";
|
|
5
|
+
import Demographics from "../Demographics";
|
|
6
|
+
import POIs from "../POIs";
|
|
7
|
+
import Schools from "../Schools";
|
|
8
|
+
import Scores from "../Scores";
|
|
9
|
+
import Section from "../Section";
|
|
10
|
+
import * as S from "./styles";
|
|
11
|
+
const Filters = () => {
|
|
12
|
+
const { translations } = useLangauges();
|
|
13
|
+
const sections = [
|
|
14
|
+
{
|
|
15
|
+
title: translations.SCORES,
|
|
16
|
+
value: "scores",
|
|
17
|
+
children: React.createElement(Scores, null),
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
title: translations.POIS,
|
|
21
|
+
value: "pois",
|
|
22
|
+
children: React.createElement(POIs, null),
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
title: translations.SCHOOLS,
|
|
26
|
+
value: "schools",
|
|
27
|
+
children: React.createElement(Schools, null),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: translations.DEMOGRAPHICS,
|
|
31
|
+
value: "demographics",
|
|
32
|
+
children: React.createElement(Demographics, null),
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
title: translations.PROFILES,
|
|
36
|
+
value: "profiles",
|
|
37
|
+
},
|
|
38
|
+
];
|
|
39
|
+
return (React.createElement(React.Fragment, null,
|
|
40
|
+
React.createElement(Search, { placeholder: translations.SEARCH_INSIGHTS, renderListAbove: false, onSearch: (e) => {
|
|
41
|
+
console.log("Hello", e);
|
|
42
|
+
} }),
|
|
43
|
+
React.createElement(Spacer, { vertical: true, spacing: "--ll-spacing-small" }),
|
|
44
|
+
React.createElement(S.PresetsContainer, null,
|
|
45
|
+
React.createElement(S.PresetButton, { size: "small", variant: "contained" }, "LL SFR Default"),
|
|
46
|
+
React.createElement(S.PresetButton, { size: "small", variant: "outlined" }, "My Preset #2")),
|
|
47
|
+
React.createElement(Spacer, { vertical: true, spacing: "--ll-spacing-small" }),
|
|
48
|
+
React.createElement(S.AccordionRoot, { type: "multiple", collapsible: true }, sections.map((section) => (React.createElement(Section, { key: section.value, title: section.title, value: section.value }, section.children))))));
|
|
49
|
+
};
|
|
50
|
+
export default Filters;
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Filters/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAqB,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAU,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,MAAM,OAAO,GAAG,GAAG,EAAE;IACnB,MAAM,EAAE,YAAY,EAAE,GAAG,YAAY,EAAqB,CAAC;IAE3D,MAAM,QAAQ,GAIR;QACJ;YACE,KAAK,EAAE,YAAY,CAAC,MAAM;YAC1B,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,oBAAC,MAAM,OAAG;SACrB;QACD;YACE,KAAK,EAAE,YAAY,CAAC,IAAI;YACxB,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,oBAAC,IAAI,OAAG;SACnB;QACD;YACE,KAAK,EAAE,YAAY,CAAC,OAAO;YAC3B,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,oBAAC,OAAO,OAAG;SACtB;QACD;YACE,KAAK,EAAE,YAAY,CAAC,YAAY;YAChC,KAAK,EAAE,cAAc;YACrB,QAAQ,EAAE,oBAAC,YAAY,OAAG;SAC3B;QACD;YACE,KAAK,EAAE,YAAY,CAAC,QAAQ;YAC5B,KAAK,EAAE,UAAU;SAClB;KACF,CAAC;IAEF,OAAO,CACL;QACE,oBAAC,MAAM,IACL,WAAW,EAAE,YAAY,CAAC,eAAe,EACzC,eAAe,EAAE,KAAK,EACtB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;gBACd,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;YAC1B,CAAC,GACD;QACF,oBAAC,MAAM,IAAC,QAAQ,QAAC,OAAO,EAAC,oBAAoB,GAAG;QAChD,oBAAC,CAAC,CAAC,gBAAgB;YACjB,oBAAC,CAAC,CAAC,YAAY,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,WAAW,qBAEhC;YACjB,oBAAC,CAAC,CAAC,YAAY,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,UAAU,mBAE/B,CACE;QACrB,oBAAC,MAAM,IAAC,QAAQ,QAAC,OAAO,EAAC,oBAAoB,GAAG;QAIhD,oBAAC,CAAC,CAAC,aAAa,IAAC,IAAI,EAAC,UAAU,EAAC,WAAW,UACzC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CACzB,oBAAC,OAAO,IACN,GAAG,EAAE,OAAO,CAAC,KAAK,EAClB,KAAK,EAAE,OAAO,CAAC,KAAK,EACpB,KAAK,EAAE,OAAO,CAAC,KAAK,IAEnB,OAAO,CAAC,QAAQ,CACT,CACX,CAAC,CACc,CACjB,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as Accordion from "@radix-ui/react-accordion";
|
|
3
|
+
export declare const AccordionRoot: import("styled-components").IStyledComponent<"web", import("react").ForwardRefExoticComponent<(Accordion.AccordionSingleProps | Accordion.AccordionMultipleProps) & import("react").RefAttributes<HTMLDivElement>>, ((Accordion.AccordionSingleProps | Accordion.AccordionMultipleProps) & import("react").RefAttributes<HTMLDivElement>) & object> & object;
|
|
4
|
+
export declare const PresetsContainer: import("styled-components").IStyledComponent<"web", "div", import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & object> & object;
|
|
5
|
+
export declare const PresetButton: import("styled-components").IStyledComponent<"web", import("react").ForwardRefExoticComponent<import("@local-logic/ui").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("@local-logic/ui").ButtonProps & import("react").RefAttributes<HTMLButtonElement> & object> & object;
|
|
6
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Filters/styles.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,SAAS,MAAM,2BAA2B,CAAC;AAEvD,eAAO,MAAM,aAAa,8VAGzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,gLAAe,CAAC;AAE7C,eAAO,MAAM,YAAY,sSAExB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { styled } from "styled-components";
|
|
2
|
+
import { Button, theme } from "@local-logic/ui";
|
|
3
|
+
import * as Accordion from "@radix-ui/react-accordion";
|
|
4
|
+
export const AccordionRoot = styled(Accordion.Root) `
|
|
5
|
+
height: 85%;
|
|
6
|
+
overflow-y: auto;
|
|
7
|
+
`;
|
|
8
|
+
export const PresetsContainer = styled.div ``;
|
|
9
|
+
export const PresetButton = styled(Button) `
|
|
10
|
+
margin-right: ${theme["--ll-spacing-xx-small"]};
|
|
11
|
+
`;
|
|
12
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Filters/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,SAAS,MAAM,2BAA2B,CAAC;AAEvD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;;;CAGlD,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAA,EAAE,CAAC;AAE7C,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;kBACxB,KAAK,CAAC,uBAAuB,CAAC;CAC/C,CAAC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { State } from "../../context";
|
|
3
3
|
interface SectionProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
4
5
|
title: string;
|
|
5
|
-
description: string;
|
|
6
6
|
value: keyof State;
|
|
7
|
-
number: number;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
7
|
}
|
|
10
|
-
declare const Section: ({ title,
|
|
8
|
+
declare const Section: ({ title, children, value }: SectionProps) => JSX.Element;
|
|
11
9
|
export default Section;
|
|
12
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Section/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAmB,KAAK,EAAE,MAAM,eAAe,CAAC;AAGvD,UAAU,YAAY;IACpB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Section/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAmB,KAAK,EAAE,MAAM,eAAe,CAAC;AAGvD,UAAU,YAAY;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,KAAK,CAAC;CACpB;AAED,QAAA,MAAM,OAAO,+BAAgC,YAAY,gBA4BxD,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,34 +1,22 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Tag, Text, SVG, theme } from "@local-logic/ui";
|
|
3
3
|
import * as Accordion from "@radix-ui/react-accordion";
|
|
4
4
|
import ChevronRightSVG from "~/assets/icons/chevron_right.svg";
|
|
5
5
|
import { useDataExplorer } from "../../context";
|
|
6
6
|
import * as S from "./styles";
|
|
7
|
-
const Section = ({ title,
|
|
7
|
+
const Section = ({ title, children, value }) => {
|
|
8
8
|
const { dataExplorerState, setDataExplorerState } = useDataExplorer();
|
|
9
9
|
return (React.createElement(Accordion.Item, { value: value },
|
|
10
10
|
React.createElement(S.Section, null,
|
|
11
11
|
React.createElement(S.SectionTopBar, null,
|
|
12
12
|
React.createElement(S.Trigger, null,
|
|
13
|
-
React.createElement(S.
|
|
13
|
+
React.createElement(S.ChevronContainer, null,
|
|
14
|
+
React.createElement(SVG, { SVGElement: ChevronRightSVG, fill: theme["--ll-color-on-background-variant1"] })),
|
|
14
15
|
React.createElement(Text, { variant: "h6", noMargin: true, weight: "--ll-font-weight-medium" }, title)),
|
|
15
16
|
React.createElement(S.RightSideContainer, null,
|
|
16
|
-
|
|
17
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
, {
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
checked: dataExplorerState[value].checked, onCheckedChange: (val) => setDataExplorerState({
|
|
23
|
-
[value]: Object.assign(Object.assign({}, dataExplorerState[value]), { checked: val }),
|
|
24
|
-
}) })),
|
|
25
|
-
React.createElement(S.Trigger, null,
|
|
26
|
-
React.createElement(S.ChevronContainer, null,
|
|
27
|
-
React.createElement(SVG, { SVGElement: ChevronRightSVG, fill: theme["--ll-color-on-background-variant1"] }))))),
|
|
17
|
+
React.createElement(Tag, { text: "11 insights" }))),
|
|
28
18
|
React.createElement(S.SectionContent, null,
|
|
29
|
-
React.createElement(S.InnerContent, null,
|
|
30
|
-
React.createElement(Text, { color: "--ll-color-on-background-variant1" }, description),
|
|
31
|
-
children)))));
|
|
19
|
+
React.createElement(S.InnerContent, null, children)))));
|
|
32
20
|
};
|
|
33
21
|
export default Section;
|
|
34
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Section/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sdks/DataExplorer/components/Section/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,SAAS,MAAM,2BAA2B,CAAC;AACvD,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAS,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAQ9B,MAAM,OAAO,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAgB,EAAE,EAAE;IAC3D,MAAM,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,GAAG,eAAe,EAAE,CAAC;IAEtE,OAAO,CACL,oBAAC,SAAS,CAAC,IAAI,IAAC,KAAK,EAAE,KAAK;QAC1B,oBAAC,CAAC,CAAC,OAAO;YACR,oBAAC,CAAC,CAAC,aAAa;gBACd,oBAAC,CAAC,CAAC,OAAO;oBACR,oBAAC,CAAC,CAAC,gBAAgB;wBACjB,oBAAC,GAAG,IACF,UAAU,EAAE,eAAsC,EAClD,IAAI,EAAE,KAAK,CAAC,mCAAmC,CAAC,GAChD,CACiB;oBACrB,oBAAC,IAAI,IAAC,OAAO,EAAC,IAAI,EAAC,QAAQ,QAAC,MAAM,EAAC,yBAAyB,IACzD,KAAK,CACD,CACG;gBACZ,oBAAC,CAAC,CAAC,kBAAkB;oBACnB,oBAAC,GAAG,IAAC,IAAI,EAAC,aAAa,GAAG,CACL,CACP;YAClB,oBAAC,CAAC,CAAC,cAAc;gBACf,oBAAC,CAAC,CAAC,YAAY,QAAE,QAAQ,CAAkB,CAC1B,CACT,CACG,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -6,26 +6,25 @@ export interface State {
|
|
|
6
6
|
lng: number;
|
|
7
7
|
};
|
|
8
8
|
scores: {
|
|
9
|
-
checked: boolean;
|
|
10
9
|
include: (keyof typeof ScoreNames)[];
|
|
11
10
|
};
|
|
12
11
|
pois: {
|
|
13
|
-
checked: boolean;
|
|
14
12
|
include: (keyof typeof POICategories)[];
|
|
15
13
|
radius: number;
|
|
16
14
|
limit: number;
|
|
17
15
|
};
|
|
18
16
|
schools: {
|
|
19
|
-
checked: boolean;
|
|
20
17
|
radius: number;
|
|
21
18
|
limit: number;
|
|
22
19
|
};
|
|
23
20
|
demographics: {
|
|
24
|
-
checked: boolean;
|
|
25
21
|
radius: number;
|
|
26
22
|
};
|
|
27
23
|
profiles: {
|
|
28
|
-
|
|
24
|
+
empty: boolean;
|
|
25
|
+
};
|
|
26
|
+
table: {
|
|
27
|
+
empty: boolean;
|
|
29
28
|
};
|
|
30
29
|
}
|
|
31
30
|
declare type Action = Partial<State>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/sdks/DataExplorer/context.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA0C,MAAM,OAAO,CAAC;A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sBAAwC,CAAC;AAE9D,QAAA,MAAM,oBAAoB;cAA8B,MAAM,SAAS;iBAiDtE,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -13,26 +13,25 @@ const DataExplorerProvider = ({ children }) => {
|
|
|
13
13
|
lng: ((_b = sdkState.options) === null || _b === void 0 ? void 0 : _b.lng) || -79.401903,
|
|
14
14
|
},
|
|
15
15
|
scores: {
|
|
16
|
-
checked: false,
|
|
17
16
|
include: [],
|
|
18
17
|
},
|
|
19
18
|
pois: {
|
|
20
|
-
checked: false,
|
|
21
19
|
include: [],
|
|
22
20
|
radius: 5000,
|
|
23
21
|
limit: 15,
|
|
24
22
|
},
|
|
25
23
|
schools: {
|
|
26
|
-
checked: false,
|
|
27
24
|
radius: 5000,
|
|
28
25
|
limit: 15,
|
|
29
26
|
},
|
|
30
27
|
demographics: {
|
|
31
|
-
checked: false,
|
|
32
28
|
radius: 2500,
|
|
33
29
|
},
|
|
34
30
|
profiles: {
|
|
35
|
-
|
|
31
|
+
empty: true,
|
|
32
|
+
},
|
|
33
|
+
table: {
|
|
34
|
+
empty: true,
|
|
36
35
|
},
|
|
37
36
|
});
|
|
38
37
|
const contextValue = useMemo(() => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/sdks/DataExplorer/context.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,iCAAiC;AACjC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAG/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/sdks/DataExplorer/context.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,iCAAiC;AACjC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,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C,KAAK,EAAE,YAAY,IAC9C,QAAQ,CACoB,CAChC,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdks/DataExplorer/index.tsx"],"names":[],"mappings":";AACA,OAAO,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdks/DataExplorer/index.tsx"],"names":[],"mappings":";AACA,OAAO,kCAAkC,CAAC;AAQ1C,QAAA,MAAM,YAAY,mBAcjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,66 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "maplibre-gl/dist/maplibre-gl.css";
|
|
3
|
-
import { Spacer } from "@local-logic/ui";
|
|
4
|
-
import { useLangauges } from "~/context/languageProvider";
|
|
5
3
|
import { DataExplorerProvider } from "./context";
|
|
6
4
|
import * as S from "./styles";
|
|
7
|
-
import
|
|
8
|
-
import Export from "./components/Export";
|
|
5
|
+
import Filters from "./components/Filters";
|
|
9
6
|
import Map from "./components/Map";
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
description: translations.LOCATION_TEXT,
|
|
20
|
-
value: "location",
|
|
21
|
-
number: 1,
|
|
22
|
-
children: React.createElement(Map, null),
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
title: translations.SCORES,
|
|
26
|
-
description: translations.SCORES_TEXT,
|
|
27
|
-
value: "scores",
|
|
28
|
-
number: 2,
|
|
29
|
-
children: React.createElement(Scores, null),
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
title: translations.POIS,
|
|
33
|
-
description: translations.POIS_TEXT,
|
|
34
|
-
value: "pois",
|
|
35
|
-
number: 3,
|
|
36
|
-
children: React.createElement(POIs, null),
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
title: translations.SCHOOLS,
|
|
40
|
-
description: translations.SCHOOLS_TEXT,
|
|
41
|
-
value: "schools",
|
|
42
|
-
number: 4,
|
|
43
|
-
children: React.createElement(Schools, null),
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
title: translations.DEMOGRAPHICS,
|
|
47
|
-
description: translations.DEMOGRAPHICS_TEXT,
|
|
48
|
-
value: "demographics",
|
|
49
|
-
number: 5,
|
|
50
|
-
children: React.createElement(Demographics, null),
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
title: translations.PROFILES,
|
|
54
|
-
description: translations.PROFILES_TEXT,
|
|
55
|
-
value: "profiles",
|
|
56
|
-
number: 6,
|
|
57
|
-
},
|
|
58
|
-
];
|
|
59
|
-
return (React.createElement(DataExplorerProvider, null,
|
|
60
|
-
React.createElement(S.Container, null,
|
|
61
|
-
React.createElement(S.AccordionRoot, { type: "single", defaultValue: "location", collapsible: true }, sections.map((section) => (React.createElement(Section, { key: section.value, title: section.title, description: section.description, value: section.value, number: section.number }, section.children)))),
|
|
62
|
-
React.createElement(Spacer, { vertical: true }),
|
|
63
|
-
React.createElement(Export, null))));
|
|
64
|
-
};
|
|
7
|
+
import DataTable from "./components/DataTable";
|
|
8
|
+
const DataExplorer = () => (React.createElement(DataExplorerProvider, null,
|
|
9
|
+
React.createElement(S.Container, null,
|
|
10
|
+
React.createElement(S.LeftContainer, null,
|
|
11
|
+
React.createElement(Filters, null)),
|
|
12
|
+
React.createElement(S.RightContainer, null,
|
|
13
|
+
React.createElement(Map, null),
|
|
14
|
+
React.createElement(S.TableContainer, null,
|
|
15
|
+
React.createElement(DataTable, null))))));
|
|
65
16
|
export default DataExplorer;
|
|
66
17
|
//# sourceMappingURL=index.js.map
|