@rws-aoa/react-library 9.1.0 → 9.3.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.B4HiPjPm.js → FieldError.Uxuk6F4l.js} +2 -2
- package/dist/chunks/{FieldError.B4HiPjPm.js.map → FieldError.Uxuk6F4l.js.map} +1 -1
- package/dist/chunks/createTheme.DcLTlIky.js +1761 -0
- package/dist/chunks/createTheme.DcLTlIky.js.map +1 -0
- package/dist/chunks/{lodash.CdkV4gpV.js → lodash.9n5aMaxx.js} +121 -119
- package/dist/chunks/{lodash.CdkV4gpV.js.map → lodash.9n5aMaxx.js.map} +1 -1
- package/dist/components-domain/ivon-project-planning/IvonProjectPlanning.d.ts.map +1 -1
- package/dist/components-domain/ivon-project-planning/IvonProjectPlanning.js +128 -31
- package/dist/components-domain/ivon-project-planning/IvonProjectPlanning.js.map +1 -1
- package/dist/components-domain/ivon-project-planning/_IvonDataGrid/IvonDataGrid.d.ts +6 -2
- package/dist/components-domain/ivon-project-planning/_IvonDataGrid/IvonDataGrid.d.ts.map +1 -1
- package/dist/components-domain/ivon-project-planning/_IvonDataGrid/IvonDataGrid.js +93 -75
- package/dist/components-domain/ivon-project-planning/_IvonDataGrid/IvonDataGrid.js.map +1 -1
- 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/IvonPopupRenderer.d.ts +10 -0
- package/dist/components-domain/ivon-project-planning/_IvonPopup/IvonPopupRenderer.d.ts.map +1 -0
- package/dist/components-domain/ivon-project-planning/_IvonPopup/IvonPopupRenderer.js +233 -0
- package/dist/components-domain/ivon-project-planning/_IvonPopup/IvonPopupRenderer.js.map +1 -0
- package/dist/components-domain/ivon-project-planning/_IvonProjectPlanningView/IvonProjectPlanningView.d.ts +5 -3
- package/dist/components-domain/ivon-project-planning/_IvonProjectPlanningView/IvonProjectPlanningView.d.ts.map +1 -1
- package/dist/components-domain/ivon-project-planning/_IvonProjectPlanningView/IvonProjectPlanningView.js +65 -81
- package/dist/components-domain/ivon-project-planning/_IvonProjectPlanningView/IvonProjectPlanningView.js.map +1 -1
- package/dist/components-domain/ivon-project-planning/_IvonSchematicView/IvonSchematicView.d.ts +2 -1
- package/dist/components-domain/ivon-project-planning/_IvonSchematicView/IvonSchematicView.d.ts.map +1 -1
- package/dist/components-domain/ivon-project-planning/_IvonSchematicView/IvonSchematicView.js +44 -50
- package/dist/components-domain/ivon-project-planning/_IvonSchematicView/IvonSchematicView.js.map +1 -1
- package/dist/components-domain/ivon-project-planning/_backend/backend.d.ts +2 -0
- package/dist/components-domain/ivon-project-planning/_backend/backend.d.ts.map +1 -1
- package/dist/components-domain/ivon-project-planning/_backend/backend.js +5 -1
- package/dist/components-domain/ivon-project-planning/_backend/backend.js.map +1 -1
- package/dist/components-domain/ivon-project-planning/_dummy-data/ivon3-dynamic-popup.json.d.ts +143 -0
- package/dist/components-domain/ivon-project-planning/_dummy-data/ivon3-test-data.json.d.ts +197 -0
- package/dist/components-domain/ivon-project-planning/_helpers/IvonDataBridge.d.ts +4 -1
- package/dist/components-domain/ivon-project-planning/_helpers/IvonDataBridge.d.ts.map +1 -1
- package/dist/components-domain/ivon-project-planning/_helpers/IvonDataBridge.js +33 -8
- package/dist/components-domain/ivon-project-planning/_helpers/IvonDataBridge.js.map +1 -1
- package/dist/components-domain/ivon-project-planning/_helpers/IvonPopupDataBridge.d.ts +7 -0
- package/dist/components-domain/ivon-project-planning/_helpers/IvonPopupDataBridge.d.ts.map +1 -0
- package/dist/components-domain/ivon-project-planning/_helpers/IvonPopupDataBridge.js +16 -0
- package/dist/components-domain/ivon-project-planning/_helpers/IvonPopupDataBridge.js.map +1 -0
- package/dist/components-domain/ivon-project-planning/_helpers/IvonUtility.d.ts +4 -0
- package/dist/components-domain/ivon-project-planning/_helpers/IvonUtility.d.ts.map +1 -1
- package/dist/components-domain/ivon-project-planning/_helpers/IvonUtility.js +16 -4
- package/dist/components-domain/ivon-project-planning/_helpers/IvonUtility.js.map +1 -1
- package/dist/components-domain/ivon-project-planning/_types/ivon-types.d.ts +23 -1
- package/dist/components-domain/ivon-project-planning/_types/ivon-types.d.ts.map +1 -1
- package/dist/components-domain/ivon-project-planning/_types/popup-types.d.ts +28 -0
- package/dist/components-domain/ivon-project-planning/_types/popup-types.d.ts.map +1 -0
- package/dist/components-domain/ivon-project-planning/_types/popup-types.js +2 -0
- package/dist/components-domain/ivon-project-planning/_types/popup-types.js.map +1 -0
- package/dist/components-generic/atoms/_menu/menu-item/MenuItem.js +1 -1
- package/dist/components-generic/atoms/_menu/user-menu/UserMenu.js +1 -1
- package/dist/components-generic/atoms/button/Button.js +1 -1
- package/dist/components-generic/atoms/icon-button/IconButton.js +1 -1
- package/dist/components-generic/atoms/input/Input.js +1 -1
- package/dist/components-generic/atoms/list/List.js +1 -1
- package/dist/components-generic/atoms/no-permission/PermissionWrapper.js +1 -1
- package/dist/components-generic/atoms/notification/Notification.js +1 -1
- package/dist/components-generic/atoms/progress-bar/Progressbar.d.ts +21 -0
- package/dist/components-generic/atoms/progress-bar/Progressbar.d.ts.map +1 -0
- package/dist/components-generic/atoms/progress-bar/Progressbar.js +44 -0
- package/dist/components-generic/atoms/progress-bar/Progressbar.js.map +1 -0
- package/dist/components-generic/atoms/section-header/SectionHeader.js +1 -1
- package/dist/components-generic/atoms/selection-buttons/checkbox/Checkbox.js +1 -1
- package/dist/components-generic/atoms/selection-buttons/radio-button/RadioButton.js +1 -1
- 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/atoms/tooltip/Tooltip.js +1 -1
- package/dist/components-generic/molecules/field-error/FieldError.js +1 -1
- package/dist/components-generic/molecules/form-error/FormError.js +1 -1
- package/dist/components-generic/molecules/form-modal/FormModal.js +2 -2
- package/dist/components-generic/molecules/modal/Modal.js +1 -1
- package/dist/components-generic/molecules/navigation-bar/NavigationBar.js +1 -1
- package/dist/components-generic/molecules/no-label-number-field/NoLabelNumberField.js +2 -2
- package/dist/components-generic/molecules/upload-button/UploadButton.js +1 -1
- package/dist/contexts/TanstackFormContext.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -1
- package/dist/components-domain/ivon-project-planning/_dummy-data/ivon3-data.json.d.ts +0 -78
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
class e {
|
|
2
|
+
data;
|
|
3
|
+
constructor(t) {
|
|
4
|
+
this.data = t;
|
|
5
|
+
}
|
|
6
|
+
getPopupTemplate(t) {
|
|
7
|
+
const o = this.data.popupDefinitions.find((p) => p.type === t);
|
|
8
|
+
if (!o)
|
|
9
|
+
throw new Error(`No popup definition found for type: ${t}`);
|
|
10
|
+
return o.popupTemplate;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
e as IvonPopupDataBridge
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=IvonPopupDataBridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IvonPopupDataBridge.js","sources":["../../../../src/components-domain/ivon-project-planning/_helpers/IvonPopupDataBridge.ts"],"sourcesContent":["import type { IvonPopupData, PopupTemplate } from '../_types/popup-types';\n\nexport class IvonPopupDataBridge {\n private readonly data: IvonPopupData;\n\n public constructor(data: IvonPopupData) {\n this.data = data;\n }\n\n public getPopupTemplate(type: string): PopupTemplate {\n const definition = this.data.popupDefinitions.find((def) => def.type === type);\n if (!definition) {\n throw new Error(`No popup definition found for type: ${type}`);\n }\n\n return definition.popupTemplate;\n }\n}\n"],"names":["IvonPopupDataBridge","data","constructor","getPopupTemplate","type","definition","popupDefinitions","find","def","Error","popupTemplate"],"mappings":"AAEO,MAAMA,EAAoB;AAAA,EACdC;AAAAA,EAEVC,YAAYD,GAAqB;AACtC,SAAKA,OAAOA;AAAAA,EACd;AAAA,EAEOE,iBAAiBC,GAA6B;AACnD,UAAMC,IAAa,KAAKJ,KAAKK,iBAAiBC,KAAMC,CAAAA,MAAQA,EAAIJ,SAASA,CAAI;AAC7E,QAAI,CAACC;AACH,YAAM,IAAII,MAAM,uCAAuCL,CAAI,EAAE;AAG/D,WAAOC,EAAWK;AAAAA,EACpB;AACF;"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const ivonUtility: {
|
|
2
2
|
convertUnit(position: number): number;
|
|
3
|
+
lerp(from: number, to: number, percentage: number): number;
|
|
4
|
+
widthBasedOnTrackLength(trackLength: number): number;
|
|
5
|
+
laneSegmentWidth(): number;
|
|
6
|
+
roadSideFromBPS(bps: string): "" | "Links" | "Rechts";
|
|
3
7
|
};
|
|
4
8
|
//# sourceMappingURL=IvonUtility.d.ts.map
|
|
@@ -1 +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;
|
|
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;;yBAMtB,MAAM;CAM5B,CAAC"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
const
|
|
2
|
-
convertUnit(
|
|
3
|
-
return Math.
|
|
1
|
+
const r = {
|
|
2
|
+
convertUnit(e) {
|
|
3
|
+
return Math.round(e * 10);
|
|
4
|
+
},
|
|
5
|
+
lerp(e, t, n) {
|
|
6
|
+
return e + (t - e) * n;
|
|
7
|
+
},
|
|
8
|
+
widthBasedOnTrackLength(e) {
|
|
9
|
+
return e * this.laneSegmentWidth();
|
|
10
|
+
},
|
|
11
|
+
laneSegmentWidth() {
|
|
12
|
+
return 30;
|
|
13
|
+
},
|
|
14
|
+
roadSideFromBPS(e) {
|
|
15
|
+
return e.includes("L") ? "Links" : e.includes("R") ? "Rechts" : "";
|
|
4
16
|
}
|
|
5
17
|
};
|
|
6
18
|
export {
|
|
7
|
-
|
|
19
|
+
r as ivonUtility
|
|
8
20
|
};
|
|
9
21
|
//# sourceMappingURL=IvonUtility.js.map
|
|
@@ -1 +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.
|
|
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.round(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 roadSideFromBPS(bps: string) {\n if (bps.includes('L')) return 'Links';\n if (bps.includes('R')) return 'Rechts';\n\n return '';\n }\n};\n"],"names":["ivonUtility","convertUnit","position","Math","round","lerp","from","to","percentage","widthBasedOnTrackLength","trackLength","laneSegmentWidth","roadSideFromBPS","bps","includes"],"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;AAAA,EACAC,gBAAgBC,GAAa;AAC3B,WAAIA,EAAIC,SAAS,GAAG,IAAU,UAC1BD,EAAIC,SAAS,GAAG,IAAU,WAEvB;AAAA,EACT;AACF;"}
|
|
@@ -7,21 +7,43 @@ export interface Track {
|
|
|
7
7
|
kmFrom: number;
|
|
8
8
|
kmTo: number;
|
|
9
9
|
laneSegments: LaneSegment[];
|
|
10
|
+
lanes: Lane[];
|
|
10
11
|
trackSerialNumber: number;
|
|
11
12
|
trackType: string;
|
|
12
13
|
}
|
|
14
|
+
export interface Lane {
|
|
15
|
+
bps: string;
|
|
16
|
+
laneSerialNumber: number;
|
|
17
|
+
}
|
|
18
|
+
export interface Schematic {
|
|
19
|
+
kmFrom: number;
|
|
20
|
+
kmTo: number;
|
|
21
|
+
laneSchematics: LaneSchematic[];
|
|
22
|
+
laneSerialNumbers: number[];
|
|
23
|
+
}
|
|
24
|
+
export interface LaneSchematic {
|
|
25
|
+
laneSerialNumber: number;
|
|
26
|
+
pavements: Pavement[];
|
|
27
|
+
}
|
|
13
28
|
export interface LaneSegment {
|
|
14
29
|
bps: string;
|
|
15
30
|
kmFrom: number;
|
|
16
31
|
kmTo: number;
|
|
17
32
|
laneSerialNumber: number;
|
|
18
33
|
laneType: string;
|
|
19
|
-
pavements:
|
|
34
|
+
pavements: Pavement[];
|
|
20
35
|
plans: LaneSegmentPlan[];
|
|
21
36
|
}
|
|
37
|
+
export interface Pavement {
|
|
38
|
+
constructionDate: string;
|
|
39
|
+
pavementId: number;
|
|
40
|
+
pavementType: string;
|
|
41
|
+
qualityIndex: number;
|
|
42
|
+
}
|
|
22
43
|
export interface LaneSegmentPlan {
|
|
23
44
|
color: string;
|
|
24
45
|
description: string;
|
|
46
|
+
type: string;
|
|
25
47
|
year: number;
|
|
26
48
|
}
|
|
27
49
|
export interface Border {
|
|
@@ -1 +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,
|
|
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,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,IAAI;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,QAAQ,EAAE,CAAC;CACvB;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;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,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,28 @@
|
|
|
1
|
+
export type PopupFieldType = 'numberInput' | 'textInput';
|
|
2
|
+
export interface PopupField {
|
|
3
|
+
editable: boolean;
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
type?: PopupFieldType;
|
|
7
|
+
}
|
|
8
|
+
export interface IvonPopupData {
|
|
9
|
+
popupDefinitions: PopupDefinitions[];
|
|
10
|
+
}
|
|
11
|
+
export interface PopupDefinitions {
|
|
12
|
+
popupTemplate: PopupTemplate;
|
|
13
|
+
type: string;
|
|
14
|
+
}
|
|
15
|
+
export interface PopupTab {
|
|
16
|
+
fields: PopupField[];
|
|
17
|
+
label: string;
|
|
18
|
+
}
|
|
19
|
+
export interface PopupTemplate {
|
|
20
|
+
tabs: PopupTab[];
|
|
21
|
+
title: string;
|
|
22
|
+
}
|
|
23
|
+
export type PopupTemplateMap = Record<string, PopupTemplate>;
|
|
24
|
+
export interface DataWithPopup {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
popupTemplate?: string;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=popup-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popup-types.d.ts","sourceRoot":"","sources":["../../../../src/components-domain/ivon-project-planning/_types/popup-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,WAAW,CAAC;AAEzD,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,aAAa,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAG7D,MAAM,WAAW,aAAa;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popup-types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -3,7 +3,7 @@ import { useState as d, createElement as k } from "react";
|
|
|
3
3
|
import { Home as y, KeyboardArrowDown as C } from "@mui/icons-material";
|
|
4
4
|
import { MenuItem as g, Link as P, menuItemClasses as s, Typography as I, svgIconClasses as m, Popper as j } from "@mui/material";
|
|
5
5
|
import { Link as c } from "@tanstack/react-router";
|
|
6
|
-
import { l as u } from "../../../../chunks/lodash.
|
|
6
|
+
import { l as u } from "../../../../chunks/lodash.9n5aMaxx.js";
|
|
7
7
|
import { FontNormalSxProps as x } from "../../../../_constants.js";
|
|
8
8
|
function R(e) {
|
|
9
9
|
const [b, a] = d(null), [t, n] = d(!1);
|
|
@@ -2,7 +2,7 @@ import { jsx as g, jsxs as M } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as P } from "../../../../chunks/compiler-runtime.BNHg76kC.js";
|
|
3
3
|
import { Typography as T, Avatar as j, MenuItem as C, Link as w, Popper as U, Box as W } from "@mui/material";
|
|
4
4
|
import { Link as $ } from "@tanstack/react-router";
|
|
5
|
-
import { l as z } from "../../../../chunks/lodash.
|
|
5
|
+
import { l as z } from "../../../../chunks/lodash.9n5aMaxx.js";
|
|
6
6
|
import { useState as E } from "react";
|
|
7
7
|
import { FontNormalSxProps as L } from "../../../../_constants.js";
|
|
8
8
|
function J(n) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronRight as d } from "@mui/icons-material";
|
|
3
3
|
import { Button as v, buttonClasses as r } from "@mui/material";
|
|
4
|
-
import { l as s } from "../../../chunks/lodash.
|
|
4
|
+
import { l as s } from "../../../chunks/lodash.9n5aMaxx.js";
|
|
5
5
|
import { FontNormalSxProps as b } from "../../../_constants.js";
|
|
6
6
|
function g({
|
|
7
7
|
type: o,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as h } from "react/jsx-runtime";
|
|
2
2
|
import { c as y } from "../../../chunks/compiler-runtime.BNHg76kC.js";
|
|
3
3
|
import { IconButton as g } from "@mui/material";
|
|
4
|
-
import { l as k } from "../../../chunks/lodash.
|
|
4
|
+
import { l as k } from "../../../chunks/lodash.9n5aMaxx.js";
|
|
5
5
|
import { AoaTooltip as B } from "../tooltip/Tooltip.js";
|
|
6
6
|
function I(v) {
|
|
7
7
|
const e = y.c(33);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { TextField as i, inputLabelClasses as s, formHelperTextClasses as o, inputBaseClasses as e } from "@mui/material";
|
|
3
|
-
import { l as n } from "../../../chunks/lodash.
|
|
3
|
+
import { l as n } from "../../../chunks/lodash.9n5aMaxx.js";
|
|
4
4
|
import { FontNormalSxProps as t } from "../../../_constants.js";
|
|
5
5
|
function m({
|
|
6
6
|
optional: l,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as m, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Grid as d, List as i, ListItem as c, ListItemText as u, listItemClasses as f } from "@mui/material";
|
|
3
|
-
import { l as g } from "../../../chunks/lodash.
|
|
3
|
+
import { l as g } from "../../../chunks/lodash.9n5aMaxx.js";
|
|
4
4
|
import { Fragment as s } from "react";
|
|
5
5
|
import { FontNormalSxProps as x } from "../../../_constants.js";
|
|
6
6
|
function k({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, Fragment as a } from "react/jsx-runtime";
|
|
2
2
|
import { Box as e, Container as m, Typography as s, typographyClasses as p } from "@mui/material";
|
|
3
|
-
import { l } from "../../../chunks/lodash.
|
|
3
|
+
import { l } from "../../../chunks/lodash.9n5aMaxx.js";
|
|
4
4
|
import { FontNormalSxProps as x } from "../../../_constants.js";
|
|
5
5
|
function f({
|
|
6
6
|
children: t,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Alert as n, alertClasses as o } from "@mui/material";
|
|
3
|
-
import { l as i } from "../../../chunks/lodash.
|
|
3
|
+
import { l as i } from "../../../chunks/lodash.9n5aMaxx.js";
|
|
4
4
|
import { FontNormalSxProps as t } from "../../../_constants.js";
|
|
5
5
|
import { IconError as c } from "./_icons/Error.js";
|
|
6
6
|
import { IconInfo as s } from "./_icons/Info.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LinearProgressProps } from '@mui/material';
|
|
2
|
+
export interface ProgressBarProps {
|
|
3
|
+
/**
|
|
4
|
+
* Optional label shown in bold before the counter, e.g. the current import type
|
|
5
|
+
*/
|
|
6
|
+
readonly label?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Number of processed items
|
|
9
|
+
*/
|
|
10
|
+
readonly processed: number;
|
|
11
|
+
/**
|
|
12
|
+
* Override the max-width of the bar (default: '35%')
|
|
13
|
+
*/
|
|
14
|
+
readonly sx?: LinearProgressProps['sx'];
|
|
15
|
+
/**
|
|
16
|
+
* Total number of items. When 0 an indeterminate bar is shown
|
|
17
|
+
*/
|
|
18
|
+
readonly total: number;
|
|
19
|
+
}
|
|
20
|
+
export declare function AoaProgressBar({ label, processed, total, sx }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=Progressbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progressbar.d.ts","sourceRoot":"","sources":["../../../../src/components-generic/atoms/progress-bar/Progressbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGzE,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,gBAAgB,2CAiB/E"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as x, jsxs as p, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import { c as b } from "../../../chunks/compiler-runtime.BNHg76kC.js";
|
|
3
|
+
import { LinearProgress as d, Typography as u } from "@mui/material";
|
|
4
|
+
function P(h) {
|
|
5
|
+
const e = b.c(14), {
|
|
6
|
+
label: i,
|
|
7
|
+
processed: o,
|
|
8
|
+
total: a,
|
|
9
|
+
sx: n
|
|
10
|
+
} = h, l = a > 0, f = l ? Math.min(100, o / a * 100) : 0;
|
|
11
|
+
let m;
|
|
12
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
|
|
13
|
+
mb: 1
|
|
14
|
+
}, e[0] = m) : m = e[0];
|
|
15
|
+
let t;
|
|
16
|
+
e[1] !== i ? (t = i && /* @__PURE__ */ p("strong", { children: [
|
|
17
|
+
i,
|
|
18
|
+
" — "
|
|
19
|
+
] }), e[1] = i, e[2] = t) : t = e[2];
|
|
20
|
+
let r;
|
|
21
|
+
e[3] !== o || e[4] !== t || e[5] !== a ? (r = /* @__PURE__ */ p(u, { sx: m, variant: "body2", children: [
|
|
22
|
+
t,
|
|
23
|
+
o,
|
|
24
|
+
" / ",
|
|
25
|
+
a
|
|
26
|
+
] }), e[3] = o, e[4] = t, e[5] = a, e[6] = r) : r = e[6];
|
|
27
|
+
let s;
|
|
28
|
+
e[7] !== l || e[8] !== f || e[9] !== n ? (s = l ? /* @__PURE__ */ x(d, { sx: {
|
|
29
|
+
maxWidth: "35%",
|
|
30
|
+
...n
|
|
31
|
+
}, value: f, variant: "determinate" }) : /* @__PURE__ */ x(d, { sx: {
|
|
32
|
+
maxWidth: "35%",
|
|
33
|
+
...n
|
|
34
|
+
}, variant: "indeterminate" }), e[7] = l, e[8] = f, e[9] = n, e[10] = s) : s = e[10];
|
|
35
|
+
let c;
|
|
36
|
+
return e[11] !== r || e[12] !== s ? (c = /* @__PURE__ */ p(g, { children: [
|
|
37
|
+
r,
|
|
38
|
+
s
|
|
39
|
+
] }), e[11] = r, e[12] = s, e[13] = c) : c = e[13], c;
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
P as AoaProgressBar
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=Progressbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progressbar.js","sources":["../../../../src/components-generic/atoms/progress-bar/Progressbar.tsx"],"sourcesContent":["import { LinearProgress, type LinearProgressProps } from '@mui/material';\nimport { Typography } from '@mui/material';\n\nexport interface ProgressBarProps {\n /**\n * Optional label shown in bold before the counter, e.g. the current import type\n */\n readonly label?: string;\n /**\n * Number of processed items\n */\n readonly processed: number;\n /**\n * Override the max-width of the bar (default: '35%')\n */\n readonly sx?: LinearProgressProps['sx'];\n /**\n * Total number of items. When 0 an indeterminate bar is shown\n */\n readonly total: number;\n}\n\nexport function AoaProgressBar({ label, processed, total, sx }: ProgressBarProps) {\n const hasData = total > 0;\n const percentage = hasData ? Math.min(100, (processed / total) * 100) : 0;\n\n return (\n <>\n <Typography sx={{ mb: 1 }} variant='body2'>\n {label && <strong>{label} — </strong>}\n {processed} / {total}\n </Typography>\n {hasData ? (\n <LinearProgress sx={{ maxWidth: '35%', ...sx }} value={percentage} variant='determinate' />\n ) : (\n <LinearProgress sx={{ maxWidth: '35%', ...sx }} variant='indeterminate' />\n )}\n </>\n );\n}\n"],"names":["AoaProgressBar","t0","$","_c","label","processed","total","sx","hasData","percentage","Math","min","t1","Symbol","for","mb","t2","t3","jsxs","Typography","t4","jsx","LinearProgress","maxWidth","t5"],"mappings":";;;AAsBO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GAAwB;AAAA,IAAAC,OAAAA;AAAAA,IAAAC,WAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,IAAAA;AAAAA,EAAAA,IAAAN,GAC7BO,IAAgBF,IAAQ,GACxBG,IAAmBD,IAAUE,KAAIC,IAAK,KAAMN,IAAYC,IAAS,GAAO,IAArD;AAAuD,MAAAM;AAAA,EAAAV,EAAA,CAAA,MAAAW,uBAAAC,IAAA,2BAAA,KAItDF,IAAA;AAAA,IAAAG,IAAM;AAAA,EAAA,GAAGb,OAAAU,KAAAA,IAAAV,EAAA,CAAA;AAAA,MAAAc;AAAA,EAAAd,SAAAE,KACtBY,IAAAZ,uBAAS,UAAA,EAASA,UAAAA;AAAAA,IAAAA;AAAAA,IAAM;AAAA,EAAA,GAAG,GAASF,OAAAE,GAAAF,OAAAc,KAAAA,IAAAd,EAAA,CAAA;AAAA,MAAAe;AAAA,EAAAf,EAAA,CAAA,MAAAG,KAAAH,SAAAc,KAAAd,EAAA,CAAA,MAAAI,KADvCW,IAAA,gBAAAC,EAACC,GAAA,EAAe,IAAAP,GAAmB,SAAA,SAChCI,UAAAA;AAAAA,IAAAA;AAAAA,IACAX;AAAAA,IAAU;AAAA,IAAIC;AAAAA,EAAAA,GACjB,GAAaJ,OAAAG,GAAAH,OAAAc,GAAAd,OAAAI,GAAAJ,OAAAe,KAAAA,IAAAf,EAAA,CAAA;AAAA,MAAAkB;AAAA,EAAAlB,EAAA,CAAA,MAAAM,KAAAN,SAAAO,KAAAP,EAAA,CAAA,MAAAK,KACZa,IAAAZ,IACC,gBAAAa,EAACC,GAAA,EAAmB,IAAA;AAAA,IAAAC,UAAY;AAAA,IAAK,GAAKhB;AAAAA,EAAAA,GAAaE,OAAAA,GAAoB,SAAA,mBAE3E,gBAAAY,EAACC,KAAmB,IAAA;AAAA,IAAAC,UAAY;AAAA,IAAK,GAAKhB;AAAAA,EAAAA,GAAc,SAAA,iBAAe,GACxEL,OAAAM,GAAAN,OAAAO,GAAAP,OAAAK,GAAAL,QAAAkB,KAAAA,IAAAlB,EAAA,EAAA;AAAA,MAAAsB;AAAA,SAAAtB,EAAA,EAAA,MAAAe,KAAAf,UAAAkB,KATHI,2BACEP,UAAAA;AAAAA,IAAAA;AAAAA,IAICG;AAAAA,EAAAA,GAIA,GACAlB,QAAAe,GAAAf,QAAAkB,GAAAlB,QAAAsB,KAAAA,IAAAtB,EAAA,EAAA,GAVHsB;AAUG;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Box as s, Typography as a, Divider as m, typographyClasses as l } from "@mui/material";
|
|
3
|
-
import { l as x } from "../../../chunks/lodash.
|
|
3
|
+
import { l as x } from "../../../chunks/lodash.9n5aMaxx.js";
|
|
4
4
|
function f({
|
|
5
5
|
title: i,
|
|
6
6
|
subtitle: t = "",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { CheckBoxOutlineBlank as l, CheckBox as t } from "@mui/icons-material";
|
|
3
3
|
import { FormControlLabel as i, typographyClasses as a, Checkbox as c } from "@mui/material";
|
|
4
|
-
import { l as s } from "../../../../chunks/lodash.
|
|
4
|
+
import { l as s } from "../../../../chunks/lodash.9n5aMaxx.js";
|
|
5
5
|
import { FontNormalSxProps as m } from "../../../../_constants.js";
|
|
6
6
|
function h({
|
|
7
7
|
label: e,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { FormControlLabel as a, typographyClasses as l, Radio as s } from "@mui/material";
|
|
3
|
-
import { l as e } from "../../../../chunks/lodash.
|
|
3
|
+
import { l as e } from "../../../../chunks/lodash.9n5aMaxx.js";
|
|
4
4
|
import { FontNormalSxProps as i } from "../../../../_constants.js";
|
|
5
5
|
function n({
|
|
6
6
|
label: t,
|
|
@@ -57,7 +57,7 @@ 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' | 'columnGroupingModel' | 'disableColumnFilter' | 'disableColumnMenu' | 'disableRowSelectionOnClick' | 'filterModel' | 'getRowId' | 'ignoreDiacritics' | 'initialState' | 'isRowSelectable' | 'loading' | 'onCellEditStop' | 'onFilterModelChange' | 'onRowSelectionModelChange' | 'processRowUpdate' | 'rowSelectionModel'>;
|
|
61
61
|
/**
|
|
62
62
|
* Sets the initial query options to retain query details after opening a page and returning to the table
|
|
63
63
|
*/
|
|
@@ -68,6 +68,10 @@ export type AoaTableProps<T extends object = any> = ModeProps & {
|
|
|
68
68
|
readonly localeText?: GridLocaleText & {
|
|
69
69
|
refreshTable: string;
|
|
70
70
|
};
|
|
71
|
+
/**
|
|
72
|
+
* Shows the logic operator when filtering yes or no
|
|
73
|
+
*/
|
|
74
|
+
readonly showOperator?: boolean;
|
|
71
75
|
/**
|
|
72
76
|
* Material UI's property to apply styling
|
|
73
77
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources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,iBAAiB,EAAE,KAAK,GAAG,iBAAiB,GAAG,OAAO,CAAC,CAAC;IAClH;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,cAAc,GAAG;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;IAChE;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC;;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.9n5aMaxx.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
|