@rws-aoa/react-library 9.0.0 → 9.2.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/chunks/{FieldError.C1l5S0jl.js → FieldError.B4HiPjPm.js} +75 -79
- package/dist/chunks/FieldError.B4HiPjPm.js.map +1 -0
- package/dist/chunks/createTheme.edEUUU41.js +1761 -0
- package/dist/chunks/createTheme.edEUUU41.js.map +1 -0
- package/dist/components-domain/ivon-project-planning/IvonProjectPlanning.d.ts.map +1 -1
- package/dist/components-domain/ivon-project-planning/IvonProjectPlanning.js +74 -8
- package/dist/components-domain/ivon-project-planning/IvonProjectPlanning.js.map +1 -1
- package/dist/components-domain/ivon-project-planning/_IvonDataGrid/IvonDataGrid.d.ts +33 -0
- package/dist/components-domain/ivon-project-planning/_IvonDataGrid/IvonDataGrid.d.ts.map +1 -0
- package/dist/components-domain/ivon-project-planning/_IvonDataGrid/IvonDataGrid.js +120 -0
- package/dist/components-domain/ivon-project-planning/_IvonDataGrid/IvonDataGrid.js.map +1 -0
- package/dist/components-domain/ivon-project-planning/_IvonHectometerView/IvonHectometerView.d.ts +8 -0
- package/dist/components-domain/ivon-project-planning/_IvonHectometerView/IvonHectometerView.d.ts.map +1 -0
- package/dist/components-domain/ivon-project-planning/_IvonHectometerView/IvonHectometerView.js +48 -0
- package/dist/components-domain/ivon-project-planning/_IvonHectometerView/IvonHectometerView.js.map +1 -0
- package/dist/components-domain/ivon-project-planning/_IvonPopup/IvonDeklaagPopup.d.ts +9 -0
- package/dist/components-domain/ivon-project-planning/_IvonPopup/IvonDeklaagPopup.d.ts.map +1 -0
- package/dist/components-domain/ivon-project-planning/_IvonPopup/IvonDeklaagPopup.js +231 -0
- package/dist/components-domain/ivon-project-planning/_IvonPopup/IvonDeklaagPopup.js.map +1 -0
- package/dist/components-domain/ivon-project-planning/_IvonProjectPlanningView/IvonProjectPlanningView.d.ts +11 -0
- package/dist/components-domain/ivon-project-planning/_IvonProjectPlanningView/IvonProjectPlanningView.d.ts.map +1 -0
- package/dist/components-domain/ivon-project-planning/_IvonProjectPlanningView/IvonProjectPlanningView.js +70 -0
- package/dist/components-domain/ivon-project-planning/_IvonProjectPlanningView/IvonProjectPlanningView.js.map +1 -0
- package/dist/components-domain/ivon-project-planning/_IvonSchematicView/IvonSchematicView.d.ts +9 -0
- package/dist/components-domain/ivon-project-planning/_IvonSchematicView/IvonSchematicView.d.ts.map +1 -0
- package/dist/components-domain/ivon-project-planning/_IvonSchematicView/IvonSchematicView.js +59 -0
- package/dist/components-domain/ivon-project-planning/_IvonSchematicView/IvonSchematicView.js.map +1 -0
- package/dist/components-domain/ivon-project-planning/_backend/backend.d.ts +3 -0
- package/dist/components-domain/ivon-project-planning/_backend/backend.d.ts.map +1 -0
- package/dist/components-domain/ivon-project-planning/_backend/backend.js +7 -0
- package/dist/components-domain/ivon-project-planning/_backend/backend.js.map +1 -0
- package/dist/components-domain/ivon-project-planning/_dummy-data/ivon3-test-data.json.d.ts +116 -0
- package/dist/components-domain/ivon-project-planning/_helpers/IvonDataBridge.d.ts +15 -0
- package/dist/components-domain/ivon-project-planning/_helpers/IvonDataBridge.d.ts.map +1 -0
- package/dist/components-domain/ivon-project-planning/_helpers/IvonDataBridge.js +39 -0
- package/dist/components-domain/ivon-project-planning/_helpers/IvonDataBridge.js.map +1 -0
- package/dist/components-domain/ivon-project-planning/_helpers/IvonUtility.d.ts +7 -0
- package/dist/components-domain/ivon-project-planning/_helpers/IvonUtility.d.ts.map +1 -0
- package/dist/components-domain/ivon-project-planning/_helpers/IvonUtility.js +18 -0
- package/dist/components-domain/ivon-project-planning/_helpers/IvonUtility.js.map +1 -0
- package/dist/components-domain/ivon-project-planning/_types/ivon-types.d.ts +40 -0
- package/dist/components-domain/ivon-project-planning/_types/ivon-types.d.ts.map +1 -0
- package/dist/components-domain/ivon-project-planning/_types/ivon-types.js +2 -0
- package/dist/components-domain/ivon-project-planning/_types/ivon-types.js.map +1 -0
- package/dist/components-generic/atoms/table/Table.d.ts +5 -1
- package/dist/components-generic/atoms/table/Table.d.ts.map +1 -1
- package/dist/components-generic/atoms/table/Table.js +49 -31
- package/dist/components-generic/atoms/table/Table.js.map +1 -1
- package/dist/components-generic/atoms/table/_QuickSearchToolbar.js +853 -2594
- package/dist/components-generic/atoms/table/_QuickSearchToolbar.js.map +1 -1
- package/dist/components-generic/molecules/field-error/FieldError.js +1 -1
- package/dist/components-generic/molecules/form/Form.d.ts +25 -0
- package/dist/components-generic/molecules/form/Form.d.ts.map +1 -0
- package/dist/components-generic/molecules/form/Form.js +21 -0
- package/dist/components-generic/molecules/form/Form.js.map +1 -0
- package/dist/components-generic/molecules/form-error/FormError.js +1 -1
- package/dist/components-generic/molecules/form-modal/FormModal.d.ts.map +1 -1
- package/dist/components-generic/molecules/form-modal/FormModal.js +3 -2
- package/dist/components-generic/molecules/form-modal/FormModal.js.map +1 -1
- package/dist/components-generic/molecules/no-label-number-field/NoLabelNumberField.js +1 -1
- package/dist/contexts/TanstackFormContext.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -31
- package/dist/index.js.map +1 -1
- package/package.json +5 -1
- package/dist/chunks/FieldError.C1l5S0jl.js.map +0 -1
- package/dist/components-generic/_pages/project-page/ProjectPage.d.ts +0 -2
- package/dist/components-generic/_pages/project-page/ProjectPage.d.ts.map +0 -1
- package/dist/components-generic/_pages/project-page/ProjectPage.js +0 -34962
- package/dist/components-generic/_pages/project-page/ProjectPage.js.map +0 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx as D } from "react/jsx-runtime";
|
|
2
|
+
import { c as F } from "../../../chunks/compiler-runtime.BNHg76kC.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { IvonDataGrid as L } from "../_IvonDataGrid/IvonDataGrid.js";
|
|
5
|
+
import { ivonUtility as r } from "../_helpers/IvonUtility.js";
|
|
6
|
+
function E(s) {
|
|
7
|
+
const t = F.c(16), {
|
|
8
|
+
maxHeight: f,
|
|
9
|
+
dataBridge: i,
|
|
10
|
+
itemClickHandler: h
|
|
11
|
+
} = s;
|
|
12
|
+
let c;
|
|
13
|
+
t[0] !== i ? (c = r.widthBasedOnTrackLength(i.getTrackLength()), t[0] = i, t[1] = c) : c = t[1];
|
|
14
|
+
const T = c;
|
|
15
|
+
let l;
|
|
16
|
+
t[2] !== i || t[3] !== h || t[4] !== f ? (l = () => {
|
|
17
|
+
const k = [], H = i.getBorders().map(S);
|
|
18
|
+
for (const [x, d] of i.getLaneSegments().entries()) {
|
|
19
|
+
const p = d.kmFrom, u = d.kmTo, P = Math.abs(r.convertUnit(u) - r.convertUnit(p)), U = d.pavements.length;
|
|
20
|
+
k.push(/* @__PURE__ */ D(L, { blockClickHandler: (e) => h(x, e), blocks: d.pavements.map((e, B) => ({
|
|
21
|
+
startPosition: 0,
|
|
22
|
+
endPosition: P,
|
|
23
|
+
row: B,
|
|
24
|
+
value: e.pavementType,
|
|
25
|
+
color: "rijks-skyblue"
|
|
26
|
+
})), boundaries: H.filter((e) => i.isDirectionFlipped() ? e.startPosition >= u && e.startPosition < p : e.startPosition >= p && e.startPosition < u).map((e) => ({
|
|
27
|
+
startPosition: Math.abs(r.convertUnit(e.startPosition - p)),
|
|
28
|
+
color: e.color,
|
|
29
|
+
width: e.width
|
|
30
|
+
})), cells: [], columns: P, height: f, rows: U, width: `${r.laneSegmentWidth() * P}px` }, x));
|
|
31
|
+
}
|
|
32
|
+
return k;
|
|
33
|
+
}, t[2] = i, t[3] = h, t[4] = f, t[5] = l) : l = t[5];
|
|
34
|
+
const g = l;
|
|
35
|
+
let a;
|
|
36
|
+
t[6] !== i ? (a = () => i.isDirectionFlipped() ? "row-reverse" : "row", t[6] = i, t[7] = a) : a = t[7];
|
|
37
|
+
const w = a(), v = `${T}px`;
|
|
38
|
+
let o;
|
|
39
|
+
t[8] !== w || t[9] !== v ? (o = {
|
|
40
|
+
display: "flex",
|
|
41
|
+
flexDirection: w,
|
|
42
|
+
width: v
|
|
43
|
+
}, t[8] = w, t[9] = v, t[10] = o) : o = t[10];
|
|
44
|
+
let n;
|
|
45
|
+
t[11] !== g ? (n = g(), t[11] = g, t[12] = n) : n = t[12];
|
|
46
|
+
let m;
|
|
47
|
+
return t[13] !== o || t[14] !== n ? (m = /* @__PURE__ */ D("div", { id: "ivon-schematic-view", style: o, children: n }), t[13] = o, t[14] = n, t[15] = m) : m = t[15], m;
|
|
48
|
+
}
|
|
49
|
+
function S(s, t) {
|
|
50
|
+
return {
|
|
51
|
+
startPosition: s.hectometer + s.distanceToHectometer,
|
|
52
|
+
color: s.color,
|
|
53
|
+
width: 4
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
E as SchematicView
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=IvonSchematicView.js.map
|
package/dist/components-domain/ivon-project-planning/_IvonSchematicView/IvonSchematicView.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IvonSchematicView.js","sources":["../../../../src/components-domain/ivon-project-planning/_IvonSchematicView/IvonSchematicView.tsx"],"sourcesContent":["import React from 'react';\nimport { IvonDataGrid } from '../_IvonDataGrid/IvonDataGrid';\nimport type { IvonDataBridge } from '../_helpers/IvonDataBridge';\nimport { ivonUtility } from '../_helpers/IvonUtility';\n\ninterface SchematicViewProps {\n readonly dataBridge: IvonDataBridge;\n itemClickHandler(this: void, segmentIndex: number, row: number): void;\n readonly maxHeight: number;\n}\n\nexport function SchematicView({ maxHeight, dataBridge, itemClickHandler }: SchematicViewProps) {\n const gridWidth = ivonUtility.widthBasedOnTrackLength(dataBridge.getTrackLength());\n\n const renderGrids = () => {\n const grids: React.ReactNode[] = [];\n\n const boundaries = dataBridge.getBorders().map((border, _index) => {\n return {\n startPosition: border.hectometer + border.distanceToHectometer,\n color: border.color,\n width: 4\n };\n });\n\n for (const [index, segment] of dataBridge.getLaneSegments().entries()) {\n const startPosition = segment.kmFrom;\n const endPosition = segment.kmTo;\n const columns = Math.abs(ivonUtility.convertUnit(endPosition) - ivonUtility.convertUnit(startPosition));\n const rows = segment.pavements.length;\n\n grids.push(\n <IvonDataGrid\n blockClickHandler={(row) => itemClickHandler(index, row)}\n blocks={segment.pavements.map((pavement, index) => {\n return {\n startPosition: 0,\n endPosition: columns,\n row: index,\n value: pavement.pavementType,\n color: 'rijks-skyblue'\n };\n })}\n boundaries={boundaries\n .filter((boundary) => {\n if (dataBridge.isDirectionFlipped()) return boundary.startPosition >= endPosition && boundary.startPosition < startPosition;\n else return boundary.startPosition >= startPosition && boundary.startPosition < endPosition;\n })\n .map((boundary) => {\n return {\n startPosition: Math.abs(ivonUtility.convertUnit(boundary.startPosition - startPosition)),\n color: boundary.color,\n width: boundary.width\n };\n })}\n cells={[]}\n columns={columns}\n height={maxHeight}\n key={index}\n rows={rows}\n width={`${ivonUtility.laneSegmentWidth() * columns}px`}\n />\n );\n }\n\n return grids;\n };\n\n const flowDirection = () => {\n if (dataBridge.isDirectionFlipped()) return 'row-reverse';\n return 'row';\n };\n\n return (\n <div id='ivon-schematic-view' style={{ display: 'flex', flexDirection: flowDirection(), width: `${gridWidth}px` }}>\n {renderGrids()}\n </div>\n );\n}\n"],"names":["SchematicView","t0","$","_c","maxHeight","dataBridge","itemClickHandler","t1","ivonUtility","widthBasedOnTrackLength","getTrackLength","gridWidth","t2","grids","boundaries","getBorders","map","_temp","index","segment","getLaneSegments","entries","startPosition","kmFrom","endPosition","kmTo","columns","Math","abs","convertUnit","rows","pavements","length","push","jsx","IvonDataGrid","row","pavement","index_0","value","pavementType","color","filter","boundary","isDirectionFlipped","boundary_0","width","laneSegmentWidth","renderGrids","t3","t4","flowDirection","t5","t6","display","flexDirection","t7","t8","border","_index","hectometer","distanceToHectometer"],"mappings":";;;;;AAWO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GAAuB;AAAA,IAAAC,WAAAA;AAAAA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AAAAA,IAAMK,OACZ;AAAA,EAAA;AACR;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../../../../src/components-domain/ivon-project-planning/_backend/backend.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAE/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend.js","sources":["../../../../src/components-domain/ivon-project-planning/_backend/backend.ts"],"sourcesContent":["import type { IvonData } from '../_types/ivon-types';\n\nexport function loadData(json: string): IvonData {\n return JSON.parse(json) as IvonData;\n}\n"],"names":["loadData","json","JSON","parse"],"mappings":"AAEO,SAASA,EAASC,GAAwB;AAC/C,SAAOC,KAAKC,MAAMF,CAAI;AACxB;"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"track": {
|
|
3
|
+
"trackSerialNumber": 1,
|
|
4
|
+
"trackType": "HR",
|
|
5
|
+
"kmFrom": 10.0,
|
|
6
|
+
"kmTo": 16.0,
|
|
7
|
+
"bps": "RW001 1 HR L",
|
|
8
|
+
"laneSegments": [
|
|
9
|
+
{
|
|
10
|
+
"laneSerialNumber": 1,
|
|
11
|
+
"laneType": "R",
|
|
12
|
+
"kmFrom": 10.0,
|
|
13
|
+
"kmTo": 11.0,
|
|
14
|
+
"bps": "RW001 10,0 +0 1 HR L",
|
|
15
|
+
"pavements": [
|
|
16
|
+
{
|
|
17
|
+
"pavementId": 1,
|
|
18
|
+
"pavementType": "laag-1.1",
|
|
19
|
+
"constructionDate": "2020-05-15",
|
|
20
|
+
"qualityIndex": 4,
|
|
21
|
+
"roadSide": "Links"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"pavementId": 2,
|
|
25
|
+
"pavementType": "laag-2.1",
|
|
26
|
+
"constructionDate": "2021-03-20",
|
|
27
|
+
"qualityIndex": 5,
|
|
28
|
+
"roadSide": "Links"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"plans": [
|
|
32
|
+
{
|
|
33
|
+
"year": 2026,
|
|
34
|
+
"description": "Plan description A",
|
|
35
|
+
"color": "rijks-yellow-light"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"year": 2025,
|
|
39
|
+
"description": "Plan description C",
|
|
40
|
+
"color": "rijks-yellow-light"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"laneSerialNumber": 1,
|
|
46
|
+
"laneType": "R",
|
|
47
|
+
"kmFrom": 11.0,
|
|
48
|
+
"kmTo": 12.0,
|
|
49
|
+
"bps": "RW001 11,0 +0 1 HR L",
|
|
50
|
+
"pavements": [
|
|
51
|
+
{
|
|
52
|
+
"pavementId": 3,
|
|
53
|
+
"pavementType": "laag-1.2",
|
|
54
|
+
"constructionDate": "2019-08-10",
|
|
55
|
+
"qualityIndex": 6,
|
|
56
|
+
"roadSide": "Links"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"plans": [
|
|
60
|
+
{
|
|
61
|
+
"year": 2026,
|
|
62
|
+
"description": "Plan description B",
|
|
63
|
+
"color": "rijks-yellow-light"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"laneSerialNumber": 1,
|
|
69
|
+
"laneType": "R",
|
|
70
|
+
"kmFrom": 12.0,
|
|
71
|
+
"kmTo": 16.0,
|
|
72
|
+
"bps": "RW001 12,0 +0 1 HR L",
|
|
73
|
+
"pavements": [
|
|
74
|
+
{
|
|
75
|
+
"pavementId": 4,
|
|
76
|
+
"pavementType": "laag-1.3",
|
|
77
|
+
"constructionDate": "2022-01-15",
|
|
78
|
+
"qualityIndex": 7,
|
|
79
|
+
"roadSide": "Links"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"pavementId": 5,
|
|
83
|
+
"pavementType": "laag-2.3",
|
|
84
|
+
"constructionDate": "2022-06-30",
|
|
85
|
+
"qualityIndex": 8,
|
|
86
|
+
"roadSide": "Links"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"plans": [
|
|
90
|
+
{
|
|
91
|
+
"year": 2026,
|
|
92
|
+
"description": "Plan description D",
|
|
93
|
+
"color": "rijks-yellow-light"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"borders": [
|
|
99
|
+
{
|
|
100
|
+
"bps": "RW001 10,0 +0 1 HR L",
|
|
101
|
+
"hectometer": 10.0,
|
|
102
|
+
"distanceToHectometer": 0.0,
|
|
103
|
+
"color": "text-link-visited"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"bps": "RW001 11,0 +0 1 HR L",
|
|
107
|
+
"hectometer": 11.0,
|
|
108
|
+
"distanceToHectometer": 0.0,
|
|
109
|
+
"color": "text-link-visited"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
;
|
|
115
|
+
|
|
116
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IvonData, Border, LaneSegment, Pavement } from '../_types/ivon-types';
|
|
2
|
+
export declare class IvonDataBridge {
|
|
3
|
+
private readonly data;
|
|
4
|
+
constructor(data: IvonData);
|
|
5
|
+
getYears(): number[];
|
|
6
|
+
getTrackLength(): number;
|
|
7
|
+
getLaneSegments(): LaneSegment[];
|
|
8
|
+
getTrackStart(): number;
|
|
9
|
+
getTrackEnd(): number;
|
|
10
|
+
getBorders(): Border[];
|
|
11
|
+
getLaneSegmentByIndex(index: number): LaneSegment | null;
|
|
12
|
+
getPavementByLaneSegmentAndRow(laneSegmentIndex: number, rowIndex: number): Pavement | null;
|
|
13
|
+
isDirectionFlipped(): boolean;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=IvonDataBridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IvonDataBridge.d.ts","sourceRoot":"","sources":["../../../../src/components-domain/ivon-project-planning/_helpers/IvonDataBridge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGpF,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAW;gBAEb,IAAI,EAAE,QAAQ;IAI1B,QAAQ,IAAI,MAAM,EAAE;IAKpB,cAAc,IAAI,MAAM;IAIxB,eAAe,IAAI,WAAW,EAAE;IAIhC,aAAa,IAAI,MAAM;IAIvB,WAAW,IAAI,MAAM;IAIrB,UAAU,IAAI,MAAM,EAAE;IAItB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI;IAIxD,8BAA8B,CAAC,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI;IAK3F,kBAAkB,IAAI,OAAO;CAGrC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ivonUtility as r } from "./IvonUtility.js";
|
|
2
|
+
class i {
|
|
3
|
+
data;
|
|
4
|
+
constructor(t) {
|
|
5
|
+
this.data = t;
|
|
6
|
+
}
|
|
7
|
+
getYears() {
|
|
8
|
+
const t = this.data.track.laneSegments.flatMap((e) => e.plans.flatMap((a) => a.year));
|
|
9
|
+
return Array.from(new Set(t));
|
|
10
|
+
}
|
|
11
|
+
getTrackLength() {
|
|
12
|
+
return Math.abs(r.convertUnit(this.data.track.kmTo) - r.convertUnit(this.data.track.kmFrom));
|
|
13
|
+
}
|
|
14
|
+
getLaneSegments() {
|
|
15
|
+
return this.data.track.laneSegments;
|
|
16
|
+
}
|
|
17
|
+
getTrackStart() {
|
|
18
|
+
return this.data.track.kmFrom;
|
|
19
|
+
}
|
|
20
|
+
getTrackEnd() {
|
|
21
|
+
return this.data.track.kmTo;
|
|
22
|
+
}
|
|
23
|
+
getBorders() {
|
|
24
|
+
return this.data.track.borders;
|
|
25
|
+
}
|
|
26
|
+
getLaneSegmentByIndex(t) {
|
|
27
|
+
return this.data.track.laneSegments[t] ?? null;
|
|
28
|
+
}
|
|
29
|
+
getPavementByLaneSegmentAndRow(t, e) {
|
|
30
|
+
return this.getLaneSegmentByIndex(t)?.pavements[e] ?? null;
|
|
31
|
+
}
|
|
32
|
+
isDirectionFlipped() {
|
|
33
|
+
return this.data.track.kmFrom > this.data.track.kmTo;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
i as IvonDataBridge
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=IvonDataBridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IvonDataBridge.js","sources":["../../../../src/components-domain/ivon-project-planning/_helpers/IvonDataBridge.ts"],"sourcesContent":["import type { IvonData, Border, LaneSegment, Pavement } from '../_types/ivon-types';\nimport { ivonUtility } from './IvonUtility';\n\nexport class IvonDataBridge {\n private readonly data: IvonData;\n\n public constructor(data: IvonData) {\n this.data = data;\n }\n\n public getYears(): number[] {\n const years = this.data.track.laneSegments.flatMap((segment) => segment.plans.flatMap((plan) => plan.year));\n return Array.from(new Set(years));\n }\n\n public getTrackLength(): number {\n return Math.abs(ivonUtility.convertUnit(this.data.track.kmTo) - ivonUtility.convertUnit(this.data.track.kmFrom));\n }\n\n public getLaneSegments(): LaneSegment[] {\n return this.data.track.laneSegments;\n }\n\n public getTrackStart(): number {\n return this.data.track.kmFrom;\n }\n\n public getTrackEnd(): number {\n return this.data.track.kmTo;\n }\n\n public getBorders(): Border[] {\n return this.data.track.borders;\n }\n\n public getLaneSegmentByIndex(index: number): LaneSegment | null {\n return this.data.track.laneSegments[index] ?? null;\n }\n\n public getPavementByLaneSegmentAndRow(laneSegmentIndex: number, rowIndex: number): Pavement | null {\n const laneSegment = this.getLaneSegmentByIndex(laneSegmentIndex);\n return laneSegment?.pavements[rowIndex] ?? null;\n }\n\n public isDirectionFlipped(): boolean {\n return this.data.track.kmFrom > this.data.track.kmTo;\n }\n}\n"],"names":["IvonDataBridge","data","constructor","getYears","years","track","laneSegments","flatMap","segment","plans","plan","year","Array","from","Set","getTrackLength","Math","abs","ivonUtility","convertUnit","kmTo","kmFrom","getLaneSegments","getTrackStart","getTrackEnd","getBorders","borders","getLaneSegmentByIndex","index","getPavementByLaneSegmentAndRow","laneSegmentIndex","rowIndex","pavements","isDirectionFlipped"],"mappings":";AAGO,MAAMA,EAAe;AAAA,EACTC;AAAAA,EAEVC,YAAYD,GAAgB;AACjC,SAAKA,OAAOA;AAAAA,EACd;AAAA,EAEOE,WAAqB;AAC1B,UAAMC,IAAQ,KAAKH,KAAKI,MAAMC,aAAaC,QAASC,CAAAA,MAAYA,EAAQC,MAAMF,QAASG,CAAAA,MAASA,EAAKC,IAAI,CAAC;AAC1G,WAAOC,MAAMC,KAAK,IAAIC,IAAIV,CAAK,CAAC;AAAA,EAClC;AAAA,EAEOW,iBAAyB;AAC9B,WAAOC,KAAKC,IAAIC,EAAYC,YAAY,KAAKlB,KAAKI,MAAMe,IAAI,IAAIF,EAAYC,YAAY,KAAKlB,KAAKI,MAAMgB,MAAM,CAAC;AAAA,EACjH;AAAA,EAEOC,kBAAiC;AACtC,WAAO,KAAKrB,KAAKI,MAAMC;AAAAA,EACzB;AAAA,EAEOiB,gBAAwB;AAC7B,WAAO,KAAKtB,KAAKI,MAAMgB;AAAAA,EACzB;AAAA,EAEOG,cAAsB;AAC3B,WAAO,KAAKvB,KAAKI,MAAMe;AAAAA,EACzB;AAAA,EAEOK,aAAuB;AAC5B,WAAO,KAAKxB,KAAKI,MAAMqB;AAAAA,EACzB;AAAA,EAEOC,sBAAsBC,GAAmC;AAC9D,WAAO,KAAK3B,KAAKI,MAAMC,aAAasB,CAAK,KAAK;AAAA,EAChD;AAAA,EAEOC,+BAA+BC,GAA0BC,GAAmC;AAEjG,WADoB,KAAKJ,sBAAsBG,CAAgB,GAC3CE,UAAUD,CAAQ,KAAK;AAAA,EAC7C;AAAA,EAEOE,qBAA8B;AACnC,WAAO,KAAKhC,KAAKI,MAAMgB,SAAS,KAAKpB,KAAKI,MAAMe;AAAAA,EAClD;AACF;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const ivonUtility: {
|
|
2
|
+
convertUnit(position: number): number;
|
|
3
|
+
lerp(from: number, to: number, percentage: number): number;
|
|
4
|
+
widthBasedOnTrackLength(trackLength: number): number;
|
|
5
|
+
laneSegmentWidth(): number;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=IvonUtility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IvonUtility.d.ts","sourceRoot":"","sources":["../../../../src/components-domain/ivon-project-planning/_helpers/IvonUtility.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;0BACA,MAAM;eAGjB,MAAM,MAAM,MAAM,cAAc,MAAM;yCAGZ,MAAM;;CAM5C,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
convertUnit(t) {
|
|
3
|
+
return Math.floor(t * 10);
|
|
4
|
+
},
|
|
5
|
+
lerp(t, e, n) {
|
|
6
|
+
return t + (e - t) * n;
|
|
7
|
+
},
|
|
8
|
+
widthBasedOnTrackLength(t) {
|
|
9
|
+
return t * this.laneSegmentWidth();
|
|
10
|
+
},
|
|
11
|
+
laneSegmentWidth() {
|
|
12
|
+
return 30;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
r as ivonUtility
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=IvonUtility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IvonUtility.js","sources":["../../../../src/components-domain/ivon-project-planning/_helpers/IvonUtility.ts"],"sourcesContent":["export const ivonUtility = {\n convertUnit(position: number) {\n return Math.floor(position * 10);\n },\n lerp(from: number, to: number, percentage: number) {\n return from + (to - from) * percentage;\n },\n widthBasedOnTrackLength(trackLength: number) {\n return trackLength * this.laneSegmentWidth();\n },\n laneSegmentWidth() {\n return 30;\n }\n};\n"],"names":["ivonUtility","convertUnit","position","Math","floor","lerp","from","to","percentage","widthBasedOnTrackLength","trackLength","laneSegmentWidth"],"mappings":"AAAO,MAAMA,IAAc;AAAA,EACzBC,YAAYC,GAAkB;AAC5B,WAAOC,KAAKC,MAAMF,IAAW,EAAE;AAAA,EACjC;AAAA,EACAG,KAAKC,GAAcC,GAAYC,GAAoB;AACjD,WAAOF,KAAQC,IAAKD,KAAQE;AAAAA,EAC9B;AAAA,EACAC,wBAAwBC,GAAqB;AAC3C,WAAOA,IAAc,KAAKC,iBAAAA;AAAAA,EAC5B;AAAA,EACAA,mBAAmB;AACjB,WAAO;AAAA,EACT;AACF;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface IvonData {
|
|
2
|
+
track: Track;
|
|
3
|
+
}
|
|
4
|
+
export interface Track {
|
|
5
|
+
borders: Border[];
|
|
6
|
+
bps: string;
|
|
7
|
+
kmFrom: number;
|
|
8
|
+
kmTo: number;
|
|
9
|
+
laneSegments: LaneSegment[];
|
|
10
|
+
trackSerialNumber: number;
|
|
11
|
+
trackType: string;
|
|
12
|
+
}
|
|
13
|
+
export interface LaneSegment {
|
|
14
|
+
bps: string;
|
|
15
|
+
kmFrom: number;
|
|
16
|
+
kmTo: number;
|
|
17
|
+
laneSerialNumber: number;
|
|
18
|
+
laneType: string;
|
|
19
|
+
pavements: Pavement[];
|
|
20
|
+
plans: LaneSegmentPlan[];
|
|
21
|
+
}
|
|
22
|
+
export interface Pavement {
|
|
23
|
+
constructionDate: string;
|
|
24
|
+
pavementId: number;
|
|
25
|
+
pavementType: string;
|
|
26
|
+
qualityIndex: number;
|
|
27
|
+
roadSide: string;
|
|
28
|
+
}
|
|
29
|
+
export interface LaneSegmentPlan {
|
|
30
|
+
color: string;
|
|
31
|
+
description: string;
|
|
32
|
+
year: number;
|
|
33
|
+
}
|
|
34
|
+
export interface Border {
|
|
35
|
+
bps: string;
|
|
36
|
+
color: string;
|
|
37
|
+
distanceToHectometer: number;
|
|
38
|
+
hectometer: number;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=ivon-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ivon-types.d.ts","sourceRoot":"","sources":["../../../../src/components-domain/ivon-project-planning/_types/ivon-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,KAAK,CAAC;CACd;AAED,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,KAAK,EAAE,eAAe,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,QAAQ;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ivon-types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -57,7 +57,11 @@ export type AoaTableProps<T extends object = any> = ModeProps & {
|
|
|
57
57
|
/**
|
|
58
58
|
* Overwrite a safe selection of the {@link DataGrid} properties
|
|
59
59
|
*/
|
|
60
|
-
readonly dataGridOverridableProps?: Pick<DataGridProps<T>, 'apiRef' | 'checkboxSelection' | 'disableColumnFilter' | 'disableRowSelectionOnClick' | 'getRowId' | 'ignoreDiacritics' | 'isRowSelectable' | 'loading' | 'onRowSelectionModelChange' | 'rowSelectionModel'>;
|
|
60
|
+
readonly dataGridOverridableProps?: Pick<DataGridProps<T>, 'apiRef' | 'checkboxSelection' | 'disableColumnFilter' | 'disableColumnMenu' | 'disableRowSelectionOnClick' | 'getRowId' | 'ignoreDiacritics' | 'isRowSelectable' | 'loading' | 'onRowSelectionModelChange' | 'rowSelectionModel' | 'columnGroupingModel' | 'filterModel' | 'onFilterModelChange' | 'processRowUpdate' | 'initialState' | 'onCellEditStop'>;
|
|
61
|
+
/**
|
|
62
|
+
* Shows the logic operator when filtering yes or no
|
|
63
|
+
*/
|
|
64
|
+
readonly showOperator?: boolean;
|
|
61
65
|
/**
|
|
62
66
|
* Sets the initial query options to retain query details after opening a page and returning to the table
|
|
63
67
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components-generic/atoms/table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AACr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AAC;IAClH;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,cAAc,GAAG;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;IAChE;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;GAYG;AAEH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,GAAG,GAAG,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,2CAmQ9E"}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { checkboxClasses as
|
|
3
|
-
import { GridLogicOperator as
|
|
4
|
-
import { l as
|
|
5
|
-
import { useState as a, useEffect as v, useMemo as
|
|
6
|
-
import { FontNormalSxProps as
|
|
7
|
-
import { QuickSearchToolbar as
|
|
8
|
-
function
|
|
1
|
+
import { jsx as $ } from "react/jsx-runtime";
|
|
2
|
+
import { checkboxClasses as p, paginationItemClasses as P } from "@mui/material";
|
|
3
|
+
import { GridLogicOperator as m, DataGrid as D, gridClasses as t } from "@mui/x-data-grid";
|
|
4
|
+
import { l as b } from "../../../chunks/lodash.CdkV4gpV.js";
|
|
5
|
+
import { useState as a, useEffect as v, useMemo as F } from "react";
|
|
6
|
+
import { FontNormalSxProps as G } from "../../../_constants.js";
|
|
7
|
+
import { QuickSearchToolbar as L } from "./_QuickSearchToolbar.js";
|
|
8
|
+
function q({
|
|
9
9
|
...e
|
|
10
10
|
}) {
|
|
11
|
-
const [
|
|
11
|
+
const [O, d] = a(!1), [r, k] = a({
|
|
12
12
|
page: e.initialQueryOptions?.page ?? 0,
|
|
13
13
|
pageSize: e.initialQueryOptions?.pageSize ?? 10
|
|
14
14
|
}), [l, h] = a(e.initialQueryOptions?.sortModel ?? []), [i, C] = a(e.initialQueryOptions?.filterModel ?? {
|
|
15
15
|
items: [],
|
|
16
|
-
logicOperator:
|
|
17
|
-
quickFilterLogicOperator:
|
|
16
|
+
logicOperator: m.And,
|
|
17
|
+
quickFilterLogicOperator: m.And,
|
|
18
18
|
quickFilterValues: []
|
|
19
|
-
}), [
|
|
20
|
-
async function
|
|
19
|
+
}), [x, y] = a(null), [S, u] = a(e.data?.rowCount ?? 0), n = e.mode ?? "server", g = n === "server";
|
|
20
|
+
async function f(o, s, c) {
|
|
21
21
|
if (g && e.getData) {
|
|
22
|
-
const
|
|
22
|
+
const M = async () => {
|
|
23
23
|
await e.getData({
|
|
24
24
|
...o,
|
|
25
25
|
sortModel: s,
|
|
26
26
|
filterModel: c
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
d(!0), await
|
|
29
|
+
d(!0), await M(), d(!1);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
v(() => {
|
|
33
33
|
u((o) => e.data?.rowCount ?? o);
|
|
34
34
|
}, [e.data?.rowCount, u]), v(() => {
|
|
35
|
-
|
|
35
|
+
f(r, l, i);
|
|
36
36
|
}, [r, l, i]);
|
|
37
|
-
const
|
|
37
|
+
const w = F(() => ({
|
|
38
38
|
pagination: {
|
|
39
39
|
paginationModel: r,
|
|
40
40
|
rowCount: 0
|
|
@@ -45,10 +45,29 @@ function z({
|
|
|
45
45
|
filter: {
|
|
46
46
|
filterModel: i
|
|
47
47
|
}
|
|
48
|
-
}), [r, l, i]),
|
|
48
|
+
}), [r, l, i]), I = b.merge({
|
|
49
49
|
columnHeaderSortIconLabel: "Sorteren",
|
|
50
50
|
filterPanelColumns: "Kolom",
|
|
51
51
|
filterPanelInputLabel: "Zoekterm",
|
|
52
|
+
filterPanelOperator: "Criterium",
|
|
53
|
+
filterOperatorContains: "Bevat",
|
|
54
|
+
filterOperatorDoesNotContain: "Bevat niet",
|
|
55
|
+
filterOperatorEquals: "Is gelijk aan",
|
|
56
|
+
filterOperatorDoesNotEqual: "Is niet gelijk aan",
|
|
57
|
+
filterOperatorStartsWith: "Begint met",
|
|
58
|
+
filterOperatorEndsWith: "Eindigt met",
|
|
59
|
+
filterOperatorIs: "Is",
|
|
60
|
+
filterOperatorNot: "Is niet",
|
|
61
|
+
filterOperatorAfter: "Is na",
|
|
62
|
+
filterOperatorOnOrAfter: "Is op of na",
|
|
63
|
+
filterOperatorBefore: "Is voor",
|
|
64
|
+
filterOperatorOnOrBefore: "Is op of voor",
|
|
65
|
+
filterOperatorIsEmpty: "Is leeg",
|
|
66
|
+
filterOperatorIsNotEmpty: "Is niet leeg",
|
|
67
|
+
columnMenuSortAsc: "Sorteer oplopend",
|
|
68
|
+
columnMenuSortDesc: "Sorteer aflopend",
|
|
69
|
+
columnMenuFilter: "Filteren",
|
|
70
|
+
filterOperatorIsAnyOf: "Is een van",
|
|
52
71
|
filterPanelInputPlaceholder: "Zoeken...",
|
|
53
72
|
toolbarQuickFilterPlaceholder: "Zoeken...",
|
|
54
73
|
toolbarQuickFilterLabel: "Zoeken",
|
|
@@ -77,13 +96,12 @@ function z({
|
|
|
77
96
|
paginationRowsPerPage: "Regels per pagina",
|
|
78
97
|
footerRowSelected: (o) => `${o} regels geselecteerd`
|
|
79
98
|
}, e.localeText);
|
|
80
|
-
return /* @__PURE__ */
|
|
99
|
+
return /* @__PURE__ */ $(D, { columns: e.columns, disableColumnFilter: !0, disableColumnMenu: !0, disableColumnSelector: !0, disableDensitySelector: !0, disableRowSelectionOnClick: !0, disableVirtualization: !0, filterMode: n, getRowHeight: () => "auto", ignoreDiacritics: !0, initialState: w, loading: O, localeText: I, onFilterModelChange: (o) => C(o), onPaginationModelChange: k, onSortModelChange: (o) => h(o), pageSizeOptions: [5, 10, 20, 40, 80], paginationMode: n, paginationModel: r, rowCount: g ? S : void 0, rows: e.data?.rows, showToolbar: !0, slotProps: {
|
|
81
100
|
filterPanel: {
|
|
82
101
|
filterFormProps: {
|
|
83
102
|
operatorInputProps: {
|
|
84
|
-
disabled: !0,
|
|
85
103
|
sx: {
|
|
86
|
-
display: "none"
|
|
104
|
+
display: e.showOperator ? "block" : "none"
|
|
87
105
|
}
|
|
88
106
|
},
|
|
89
107
|
valueInputProps: {
|
|
@@ -94,16 +112,16 @@ function z({
|
|
|
94
112
|
}
|
|
95
113
|
},
|
|
96
114
|
panel: {
|
|
97
|
-
target:
|
|
115
|
+
target: x
|
|
98
116
|
},
|
|
99
117
|
toolbar: {
|
|
100
|
-
setFilterButtonEl:
|
|
118
|
+
setFilterButtonEl: y,
|
|
101
119
|
showQuickFilter: e.dataGridOverridableProps?.disableColumnFilter === !1,
|
|
102
120
|
quickFilterProps: {
|
|
103
121
|
debounceMs: 500
|
|
104
122
|
},
|
|
105
123
|
mode: n,
|
|
106
|
-
getData: async () =>
|
|
124
|
+
getData: async () => f(r, l, i),
|
|
107
125
|
actionButtons: e.actionButtons,
|
|
108
126
|
localeText: e.localeText
|
|
109
127
|
},
|
|
@@ -111,8 +129,8 @@ function z({
|
|
|
111
129
|
"data-qa": e["data-qa"]
|
|
112
130
|
}
|
|
113
131
|
}, slots: {
|
|
114
|
-
toolbar:
|
|
115
|
-
}, sortingMode: n, sx:
|
|
132
|
+
toolbar: L
|
|
133
|
+
}, sortingMode: n, sx: b.merge({
|
|
116
134
|
border: 0,
|
|
117
135
|
color: "var(--color-text)",
|
|
118
136
|
letterSpacing: "normal",
|
|
@@ -165,10 +183,10 @@ function z({
|
|
|
165
183
|
[`.${t.cell}`]: {
|
|
166
184
|
color: "var(--color-text)"
|
|
167
185
|
},
|
|
168
|
-
[`.${
|
|
186
|
+
[`.${P.root}`]: {
|
|
169
187
|
borderRadius: 0
|
|
170
188
|
},
|
|
171
|
-
[`.${
|
|
189
|
+
[`.${p.root}`]: {
|
|
172
190
|
color: "var(--color-primary)",
|
|
173
191
|
":focus": {
|
|
174
192
|
outline: "2px dashed var(--color-text)",
|
|
@@ -179,12 +197,12 @@ function z({
|
|
|
179
197
|
color: "var(--color-disabled)"
|
|
180
198
|
}
|
|
181
199
|
},
|
|
182
|
-
[`.${t.columnHeader} .${
|
|
200
|
+
[`.${t.columnHeader} .${p.root}`]: {
|
|
183
201
|
color: "white"
|
|
184
202
|
}
|
|
185
|
-
}, e.sx,
|
|
203
|
+
}, e.sx, G), ...e.dataGridOverridableProps });
|
|
186
204
|
}
|
|
187
205
|
export {
|
|
188
|
-
|
|
206
|
+
q as AoaTable
|
|
189
207
|
};
|
|
190
208
|
//# sourceMappingURL=Table.js.map
|