@zealicsolutions/web-ui 1.0.99-beta.54 → 1.0.99-beta.55

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.
Files changed (110) hide show
  1. package/dist/cjs/index.js +1580 -1580
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.d.ts +4 -0
  4. package/dist/cjs/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.stories.d.ts +5 -0
  5. package/dist/cjs/organisms/CalendarDataGridOrganism/config/descriptors.d.ts +412 -0
  6. package/dist/cjs/organisms/CalendarDataGridOrganism/config/toolDescriptor/timeline.d.ts +27 -0
  7. package/dist/cjs/organisms/CalendarDataGridOrganism/index.d.ts +4 -0
  8. package/dist/cjs/organisms/CalendarDataGridOrganism/queries/useCalendarDataGridData.d.ts +27 -0
  9. package/dist/cjs/organisms/CalendarDataGridOrganism/renderers/DayCell.d.ts +10 -0
  10. package/dist/cjs/organisms/CalendarDataGridOrganism/renderers/ResourceCell.d.ts +9 -0
  11. package/dist/cjs/organisms/CalendarDataGridOrganism/types.d.ts +94 -0
  12. package/dist/cjs/organisms/CalendarDataGridOrganism/useCalendarDataGridOrganism.d.ts +47 -0
  13. package/dist/cjs/organisms/DataGrid/DataGridOrganism.list.stories.d.ts +5 -0
  14. package/dist/cjs/organisms/DataGrid/config/descriptors.d.ts +8 -1
  15. package/dist/cjs/organisms/DataGrid/config/toolDescriptor/view.d.ts +8 -0
  16. package/dist/cjs/organisms/DataGrid/hooks/useDataGridColumnsV2.d.ts +20 -0
  17. package/dist/cjs/organisms/DataGrid/hooks/useDataGridOrganism.d.ts +2 -0
  18. package/dist/cjs/organisms/DataGrid/types.d.ts +24 -0
  19. package/dist/cjs/organisms/DataGridListOrganism/DataGridListOrganism.d.ts +4 -0
  20. package/dist/cjs/organisms/DataGridListOrganism/DataGridListOrganism.stories.d.ts +7 -0
  21. package/dist/cjs/organisms/DataGridListOrganism/config/descriptors.d.ts +479 -0
  22. package/dist/cjs/organisms/DataGridListOrganism/config/toolDescriptor/listItemMapping.d.ts +85 -0
  23. package/dist/cjs/organisms/DataGridListOrganism/config/toolDescriptor/listLayout.d.ts +29 -0
  24. package/dist/cjs/organisms/DataGridListOrganism/config/toolDescriptor/regions.d.ts +83 -0
  25. package/dist/cjs/organisms/DataGridListOrganism/index.d.ts +3 -0
  26. package/dist/cjs/organisms/DataGridListOrganism/types.d.ts +117 -0
  27. package/dist/cjs/organisms/DataGridListOrganism/useDataGridListOrganism.d.ts +39 -0
  28. package/dist/cjs/organisms/index.d.ts +2 -0
  29. package/dist/cjs/organisms/organismConfigurators.d.ts +4 -2
  30. package/dist/esm/containers/FormStepContainer.js +1 -1
  31. package/dist/esm/containers/FormStepContainer.js.map +1 -1
  32. package/dist/esm/contexts/ApiContext/ApiContext.js.map +1 -1
  33. package/dist/esm/contexts/ApiContext/globalQueries/form/useSubmitForm.js +2 -0
  34. package/dist/esm/contexts/ApiContext/globalQueries/form/useSubmitForm.js.map +1 -0
  35. package/dist/esm/index.js +1 -1
  36. package/dist/esm/molecules/BaseMolecule.js +1 -1
  37. package/dist/esm/molecules/BaseMolecule.js.map +1 -1
  38. package/dist/esm/node_modules/@mui/material/esm/Button/Button.js.map +1 -1
  39. package/dist/esm/node_modules/@mui/material/esm/MenuList/MenuList.js +1 -1
  40. package/dist/esm/node_modules/@mui/material/esm/Popover/Popover.js +1 -1
  41. package/dist/esm/node_modules/@mui/material/esm/Slide/Slide.js +1 -1
  42. package/dist/esm/node_modules/date-fns/eachDayOfInterval.mjs.js +2 -0
  43. package/dist/esm/node_modules/date-fns/eachDayOfInterval.mjs.js.map +1 -0
  44. package/dist/esm/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.d.ts +4 -0
  45. package/dist/esm/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.js +2 -0
  46. package/dist/esm/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.js.map +1 -0
  47. package/dist/esm/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.stories.d.ts +5 -0
  48. package/dist/esm/organisms/CalendarDataGridOrganism/config/descriptors.d.ts +412 -0
  49. package/dist/esm/organisms/CalendarDataGridOrganism/config/descriptors.js +2 -0
  50. package/dist/esm/organisms/CalendarDataGridOrganism/config/descriptors.js.map +1 -0
  51. package/dist/esm/organisms/CalendarDataGridOrganism/config/toolDescriptor/timeline.d.ts +27 -0
  52. package/dist/esm/organisms/CalendarDataGridOrganism/config/toolDescriptor/timeline.js +2 -0
  53. package/dist/esm/organisms/CalendarDataGridOrganism/config/toolDescriptor/timeline.js.map +1 -0
  54. package/dist/esm/organisms/CalendarDataGridOrganism/index.d.ts +4 -0
  55. package/dist/esm/organisms/CalendarDataGridOrganism/queries/useCalendarDataGridData.d.ts +27 -0
  56. package/dist/esm/organisms/CalendarDataGridOrganism/queries/useCalendarDataGridData.js +2 -0
  57. package/dist/esm/organisms/CalendarDataGridOrganism/queries/useCalendarDataGridData.js.map +1 -0
  58. package/dist/esm/organisms/CalendarDataGridOrganism/renderers/DayCell.d.ts +10 -0
  59. package/dist/esm/organisms/CalendarDataGridOrganism/renderers/DayCell.js +2 -0
  60. package/dist/esm/organisms/CalendarDataGridOrganism/renderers/DayCell.js.map +1 -0
  61. package/dist/esm/organisms/CalendarDataGridOrganism/renderers/ResourceCell.d.ts +9 -0
  62. package/dist/esm/organisms/CalendarDataGridOrganism/renderers/ResourceCell.js +2 -0
  63. package/dist/esm/organisms/CalendarDataGridOrganism/renderers/ResourceCell.js.map +1 -0
  64. package/dist/esm/organisms/CalendarDataGridOrganism/types.d.ts +94 -0
  65. package/dist/esm/organisms/CalendarDataGridOrganism/useCalendarDataGridOrganism.d.ts +47 -0
  66. package/dist/esm/organisms/CalendarDataGridOrganism/useCalendarDataGridOrganism.js +2 -0
  67. package/dist/esm/organisms/CalendarDataGridOrganism/useCalendarDataGridOrganism.js.map +1 -0
  68. package/dist/esm/organisms/DataGrid/DataGridOrganism.js +1 -1
  69. package/dist/esm/organisms/DataGrid/DataGridOrganism.js.map +1 -1
  70. package/dist/esm/organisms/DataGrid/DataGridOrganism.list.stories.d.ts +5 -0
  71. package/dist/esm/organisms/DataGrid/config/descriptors.d.ts +8 -1
  72. package/dist/esm/organisms/DataGrid/config/descriptors.js +1 -1
  73. package/dist/esm/organisms/DataGrid/config/descriptors.js.map +1 -1
  74. package/dist/esm/organisms/DataGrid/config/toolDescriptor/view.d.ts +8 -0
  75. package/dist/esm/organisms/DataGrid/config/toolDescriptor/view.js +2 -0
  76. package/dist/esm/organisms/DataGrid/config/toolDescriptor/view.js.map +1 -0
  77. package/dist/esm/organisms/DataGrid/hooks/useDataGridColumnsV2.d.ts +20 -0
  78. package/dist/esm/organisms/DataGrid/hooks/useDataGridColumnsV2.js +2 -0
  79. package/dist/esm/organisms/DataGrid/hooks/useDataGridColumnsV2.js.map +1 -0
  80. package/dist/esm/organisms/DataGrid/hooks/useDataGridOrganism.d.ts +2 -0
  81. package/dist/esm/organisms/DataGrid/hooks/useDataGridOrganism.js +1 -1
  82. package/dist/esm/organisms/DataGrid/hooks/useDataGridOrganism.js.map +1 -1
  83. package/dist/esm/organisms/DataGrid/types.d.ts +24 -0
  84. package/dist/esm/organisms/DataGridListOrganism/DataGridListOrganism.d.ts +4 -0
  85. package/dist/esm/organisms/DataGridListOrganism/DataGridListOrganism.js +2 -0
  86. package/dist/esm/organisms/DataGridListOrganism/DataGridListOrganism.js.map +1 -0
  87. package/dist/esm/organisms/DataGridListOrganism/DataGridListOrganism.stories.d.ts +7 -0
  88. package/dist/esm/organisms/DataGridListOrganism/config/descriptors.d.ts +479 -0
  89. package/dist/esm/organisms/DataGridListOrganism/config/descriptors.js +2 -0
  90. package/dist/esm/organisms/DataGridListOrganism/config/descriptors.js.map +1 -0
  91. package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/listItemMapping.d.ts +85 -0
  92. package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/listItemMapping.js +2 -0
  93. package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/listItemMapping.js.map +1 -0
  94. package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/listLayout.d.ts +29 -0
  95. package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/listLayout.js +2 -0
  96. package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/listLayout.js.map +1 -0
  97. package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/regions.d.ts +83 -0
  98. package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/regions.js +2 -0
  99. package/dist/esm/organisms/DataGridListOrganism/config/toolDescriptor/regions.js.map +1 -0
  100. package/dist/esm/organisms/DataGridListOrganism/index.d.ts +3 -0
  101. package/dist/esm/organisms/DataGridListOrganism/types.d.ts +117 -0
  102. package/dist/esm/organisms/DataGridListOrganism/useDataGridListOrganism.d.ts +39 -0
  103. package/dist/esm/organisms/DataGridListOrganism/useDataGridListOrganism.js +2 -0
  104. package/dist/esm/organisms/DataGridListOrganism/useDataGridListOrganism.js.map +1 -0
  105. package/dist/esm/organisms/index.d.ts +2 -0
  106. package/dist/esm/organisms/organismConfigurators.d.ts +4 -2
  107. package/dist/esm/organisms/organismConfigurators.js +1 -1
  108. package/dist/esm/organisms/organismConfigurators.js.map +1 -1
  109. package/dist/index.d.ts +1321 -155
  110. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export * from 'helpers/constants';
3
+ export { FieldMappingValue } from 'helpers/constants';
3
4
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
4
5
  import { ThemeColors as ThemeColors$1, SizesTypes as SizesTypes$1 } from 'theme';
5
6
  import { IconNames as IconNames$1, TouchableOpacityProps as TouchableOpacityProps$1 } from 'components';
@@ -29,6 +30,7 @@ import { DataGridQuery as DataGridQuery$1, DataGridPage as DataGridPage$1 } from
29
30
  import { IconRendererProps as IconRendererProps$1 } from 'molecules/Icon';
30
31
  import { DatePickerProps, TimePickerProps } from '@mui/x-date-pickers';
31
32
  import { SystemStyleObject, Theme as Theme$1 } from '@mui/system';
33
+ import { CalendarEventType as CalendarEventType$2 } from 'molecules/Calendar/types';
32
34
  import * as _tanstack_query_core_build_legacy_hydration_BlEK5ylC from '@tanstack/query-core/build/legacy/hydration-BlEK5ylC';
33
35
  import * as _mui_x_data_grid_pro from '@mui/x-data-grid-pro';
34
36
  import { GridFilterModel, GridColDef } from '@mui/x-data-grid-pro';
@@ -3138,8 +3140,15 @@ declare const moleculeConfiguratorsMap: Record<string, MoleculeConfiguratorDescr
3138
3140
 
3139
3141
  declare const dataGridConfiguratorDescriptor: {
3140
3142
  readonly component: "DataGridOrganism";
3141
- readonly version: "1.1.0";
3143
+ readonly version: "1.2.0";
3142
3144
  readonly toolGroups: readonly [{
3145
+ readonly id: "view";
3146
+ readonly tool: "dataGridListConfigurator";
3147
+ readonly titleKey: "config.datagrid.group.view";
3148
+ readonly collapsible: true;
3149
+ readonly initiallyExpanded: true;
3150
+ readonly pathBase: "dataGrid";
3151
+ }, {
3143
3152
  readonly id: "columns";
3144
3153
  readonly tool: "dataGridColumns";
3145
3154
  readonly titleKey: "config.datagrid.group.columns";
@@ -3510,8 +3519,32 @@ interface ComponentColumnConfig extends ColumnBaseConfig {
3510
3519
  componentProps?: Record<string, unknown>;
3511
3520
  }
3512
3521
  type ColumnConfig = DataColumnConfig | ComponentColumnConfig;
3522
+ type DataGridViewMode = 'table' | 'list' | 'auto';
3523
+ interface DataGridListMappingConfig {
3524
+ primaryFieldId?: string;
3525
+ secondaryFieldId?: string;
3526
+ metaFieldIds?: string[];
3527
+ trailingComponentIds?: string[];
3528
+ }
3529
+ interface DataGridListLayoutConfig {
3530
+ templateColumns?: string;
3531
+ gap?: number;
3532
+ verticalGap?: number;
3533
+ }
3534
+ interface DataGridListA11yConfig {
3535
+ primarySlot?: string;
3536
+ }
3537
+ interface DataGridListConfig {
3538
+ mapping?: DataGridListMappingConfig;
3539
+ layout?: DataGridListLayoutConfig;
3540
+ a11y?: DataGridListA11yConfig;
3541
+ }
3513
3542
  interface DataGridOrganismConfig {
3514
3543
  columns: ColumnConfig[];
3544
+ /** Optional view mode for the grid: table (default), list, or auto (responsive) */
3545
+ view?: DataGridViewMode;
3546
+ /** Optional list configuration used when view is set to 'list' */
3547
+ list?: DataGridListConfig;
3515
3548
  toolbar?: {
3516
3549
  search?: boolean;
3517
3550
  exportCsv?: boolean;
@@ -3853,176 +3886,1309 @@ type StatusChipCellProps = {
3853
3886
  };
3854
3887
  declare const StatusChipCell: FC<StatusChipCellProps>;
3855
3888
 
3856
- type ColorToken = 'blue' | 'green' | 'yellow' | 'purple' | 'red';
3857
- type StatusToken = 'tentative' | 'confirmed' | 'completed' | 'cancelled';
3858
- type DesignerOverlayIndicatorConfig = {
3859
- maxPerCell?: number;
3860
- icons?: Record<string, {
3861
- iconName?: string;
3862
- className?: string;
3863
- priority?: number;
3864
- showCountBadge?: boolean;
3865
- }>;
3866
- statusClasses?: {
3867
- ok?: string;
3868
- info?: string;
3869
- warning?: string;
3870
- danger?: string;
3871
- };
3872
- showLegend?: boolean;
3873
- };
3874
- type CalendarOrganismConfiguration = {
3875
- display: {
3876
- defaultView: 'day' | 'week' | 'month' | 'year';
3877
- use24HourFormatByDefault?: boolean;
3878
- colorMap: Array<{
3879
- status: StatusToken;
3880
- color: ColorToken;
3881
- }>;
3882
- overlayIndicators?: DesignerOverlayIndicatorConfig;
3883
- };
3884
- };
3885
- type CalendarQuery = {
3886
- rangeStart: string;
3887
- rangeEnd: string;
3888
- timezone?: string;
3889
- filters?: Record<string, unknown>;
3890
- };
3891
- type CalendarPage = {
3892
- events: CalendarEventType[];
3893
- resources?: Array<Record<string, unknown>>;
3894
- overlays?: Array<Record<string, unknown>>;
3895
- };
3896
- type FieldMappingValue = string | {
3889
+ type FieldMappingValue$2 = string | {
3897
3890
  template: string;
3898
3891
  tokens: Record<string, string>;
3899
3892
  } | {
3900
- const: any;
3893
+ const: unknown;
3901
3894
  };
3902
- interface EventBindings {
3903
- id?: FieldMappingValue;
3904
- title?: FieldMappingValue;
3905
- startDate?: FieldMappingValue;
3906
- endDate?: FieldMappingValue;
3907
- startTime?: FieldMappingValue;
3908
- endTime?: FieldMappingValue;
3909
- description?: FieldMappingValue;
3910
- color?: FieldMappingValue;
3911
- isRepeating?: FieldMappingValue;
3912
- isRepeatingInterval?: FieldMappingValue;
3913
- isRepeatingExcludedDates?: FieldMappingValue;
3914
- status?: FieldMappingValue;
3915
- eventType?: FieldMappingValue;
3916
- resourceId?: FieldMappingValue;
3917
- resourceName?: FieldMappingValue;
3918
- associatedEntityType?: FieldMappingValue;
3919
- associatedEntityId?: FieldMappingValue;
3920
- meta?: Record<string, FieldMappingValue>;
3921
- }
3922
- interface ResourceBindings {
3923
- id?: FieldMappingValue;
3924
- name?: FieldMappingValue;
3925
- accentClass?: FieldMappingValue;
3926
- color?: FieldMappingValue;
3927
- meta?: Record<string, FieldMappingValue>;
3928
- }
3929
- interface Bindings {
3930
- event?: EventBindings;
3931
- resource?: ResourceBindings;
3932
- }
3933
- interface ModalField {
3934
- id: string;
3935
- label: string;
3936
- type: 'text' | 'datetime' | 'select' | 'textarea' | 'number';
3937
- required?: boolean;
3938
- dataFieldId?: string;
3939
- remoteOptions?: {
3940
- queryKey: string;
3941
- valueField: string;
3942
- labelField: string;
3895
+ type CalendarDataGridEventBindings = {
3896
+ id?: FieldMappingValue$2;
3897
+ title?: FieldMappingValue$2;
3898
+ startDate?: FieldMappingValue$2;
3899
+ endDate?: FieldMappingValue$2;
3900
+ color?: FieldMappingValue$2;
3901
+ status?: FieldMappingValue$2;
3902
+ resourceId?: FieldMappingValue$2;
3903
+ resourceName?: FieldMappingValue$2;
3904
+ meta?: Record<string, FieldMappingValue$2>;
3905
+ };
3906
+ type CalendarDataGridResourceBindings = {
3907
+ id?: FieldMappingValue$2;
3908
+ name?: FieldMappingValue$2;
3909
+ accentClass?: FieldMappingValue$2;
3910
+ color?: FieldMappingValue$2;
3911
+ meta?: Record<string, FieldMappingValue$2>;
3912
+ };
3913
+ type CalendarDataGridDataRetrievalConfig = {
3914
+ bindings?: {
3915
+ event?: CalendarDataGridEventBindings;
3916
+ resource?: CalendarDataGridResourceBindings;
3943
3917
  };
3944
- options?: Array<{
3945
- value: any;
3918
+ };
3919
+ type TimelineConfig = {
3920
+ startDate: string;
3921
+ endDate: string;
3922
+ granularity?: 'day';
3923
+ groupByMonth?: boolean;
3924
+ dayColumnWidth?: number;
3925
+ };
3926
+ type CalendarDataGridDisplayConfig = {
3927
+ timeline: TimelineConfig;
3928
+ };
3929
+ type CalendarDataGridToolbarConfig = {
3930
+ search?: boolean;
3931
+ exportCsv?: boolean;
3932
+ densityToggle?: boolean;
3933
+ densityDefault?: 'compact' | 'comfortable';
3934
+ quickFilters?: Array<{
3946
3935
  label: string;
3936
+ columnField: string;
3937
+ value: string;
3938
+ color?: string;
3947
3939
  }>;
3948
- placeholder?: string;
3949
- validation?: Record<string, any>;
3950
- }
3951
- interface ModalConfig {
3952
- i18n: {
3953
- title: string;
3954
- submitLabel: string;
3955
- cancelLabel?: string;
3956
- };
3957
- fields: ModalField[];
3958
- layout: {
3959
- columns: number;
3960
- order: string[];
3940
+ searchControl?: {
3941
+ placeholder?: string;
3942
+ autoFocus?: boolean;
3943
+ borderRadius?: number;
3944
+ backgroundColor?: string;
3945
+ borderColor?: string;
3961
3946
  };
3962
- }
3963
- interface FormConfig {
3964
- modal: ModalConfig;
3965
- }
3966
- interface DataRetrievalConfig {
3967
- bindings: Bindings;
3968
- form: FormConfig;
3969
- loadEvents?: (organismId: string, query: CalendarQuery) => Promise<CalendarPage>;
3970
- onEventCreate?: (event: Omit<CalendarEventType, 'id'>) => Promise<CalendarEventType>;
3971
- onEventUpdate?: (event: CalendarEventType) => Promise<CalendarEventType>;
3972
- onEventDelete?: (eventId: string) => Promise<void>;
3973
- }
3974
- interface CalendarOrganismProps {
3947
+ };
3948
+ interface CalendarDataGridOrganismProps {
3975
3949
  organism: OrganismDTO & {
3976
3950
  config: {
3977
- dataRetrievalConfig: DataRetrievalConfig;
3978
- display?: CalendarOrganismConfiguration['display'];
3979
- };
3980
- };
3981
- }
3982
-
3983
- declare const CalendarOrganism: react.NamedExoticComponent<CalendarOrganismProps>;
3984
-
3985
- type Params = {
3986
- organism?: {
3987
- id?: string;
3988
- config?: {
3989
- dataGrid?: DataGridOrganismConfig;
3951
+ display?: CalendarDataGridDisplayConfig;
3952
+ toolbar?: CalendarDataGridToolbarConfig;
3953
+ props?: Record<string, unknown>;
3954
+ dataRetrievalConfig: CalendarDataGridDataRetrievalConfig;
3990
3955
  };
3991
3956
  };
3992
3957
  onAction?: (payload: {
3993
3958
  action: any;
3994
3959
  row: Record<string, unknown>;
3995
3960
  }) => void;
3996
- };
3997
- declare const useDataGridOrganism: (params: Params) => {
3998
- organismId: string;
3999
- configuration: DataGridOrganismConfig;
4000
- rows: Record<string, unknown>[];
4001
- total: number;
4002
- isLoading: boolean;
4003
- error: Error | null;
3961
+ emptyState?: React.ReactNode;
3962
+ errorState?: (error: Error) => React.ReactNode;
3963
+ }
3964
+ interface CalendarDataGridQuery {
4004
3965
  page: number;
4005
3966
  pageSize: number;
4006
- search: string;
4007
- quickFilters: Record<string, string | string[]>;
4008
- density: "compact" | "comfortable";
4009
- showSearch: boolean;
4010
- filterModel: GridFilterModel;
4011
- densityToggle: boolean;
4012
- quickFiltersCfg: any;
4013
- showSearchControl: boolean;
4014
- showExport: boolean;
4015
- columnsKey: string;
4016
- apiRef: react.MutableRefObject<_mui_x_data_grid_pro.GridApiPro | null>;
4017
- columns: GridColDef<any, any, any>[];
4018
- setPage: react.Dispatch<react.SetStateAction<number>>;
4019
- setPageSize: react.Dispatch<react.SetStateAction<number>>;
4020
- setSearch: react.Dispatch<react.SetStateAction<string>>;
4021
- setQuickFilter: (columnField: string, value: string) => void;
4022
- setDensity: react.Dispatch<react.SetStateAction<"compact" | "comfortable">>;
4023
- setShowSearch: react.Dispatch<react.SetStateAction<boolean>>;
4024
- refetch: (options?: _tanstack_query_core_build_legacy_hydration_BlEK5ylC.al | undefined) => Promise<_tanstack_query_core_build_legacy_hydration_BlEK5ylC.aC<DataGridPage, Error>>;
4025
- };
3967
+ search?: string;
3968
+ quickFilters?: Record<string, string | string[]>;
3969
+ start: Date;
3970
+ end: Date;
3971
+ }
3972
+ interface CalendarDataGridData {
3973
+ events: CalendarEventType$2[];
3974
+ resources: Array<{
3975
+ id: string;
3976
+ name: string;
3977
+ [key: string]: unknown;
3978
+ }>;
3979
+ }
3980
+
3981
+ declare const CalendarDataGridOrganism: react__default.NamedExoticComponent<CalendarDataGridOrganismProps>;
3982
+
3983
+ declare const calendarDataGridConfiguratorDescriptor: {
3984
+ readonly component: "CalendarDataGridOrganism";
3985
+ readonly version: "1.0.0";
3986
+ readonly toolGroups: readonly [{
3987
+ readonly id: "eventBindings";
3988
+ readonly tool: "calendarDataRetrieval";
3989
+ readonly titleKey: "config.calendar.group.eventBindings";
3990
+ readonly collapsible: true;
3991
+ readonly initiallyExpanded: true;
3992
+ readonly pathBase: "dataRetrievalConfig.bindings.event";
3993
+ readonly toolConfig: {
3994
+ readonly targets: readonly [{
3995
+ readonly captureName: "id";
3996
+ readonly labelKey: "config.calendar.bindings.event.id";
3997
+ }, {
3998
+ readonly captureName: "title";
3999
+ readonly labelKey: "config.calendar.bindings.event.title";
4000
+ }, {
4001
+ readonly captureName: "description";
4002
+ readonly labelKey: "config.calendar.bindings.event.description";
4003
+ }, {
4004
+ readonly captureName: "startDate";
4005
+ readonly labelKey: "config.calendar.bindings.event.startDate";
4006
+ }, {
4007
+ readonly captureName: "endDate";
4008
+ readonly labelKey: "config.calendar.bindings.event.endDate";
4009
+ }, {
4010
+ readonly captureName: "startTime";
4011
+ readonly labelKey: "config.calendar.bindings.event.startTime";
4012
+ }, {
4013
+ readonly captureName: "endTime";
4014
+ readonly labelKey: "config.calendar.bindings.event.endTime";
4015
+ }, {
4016
+ readonly captureName: "status";
4017
+ readonly labelKey: "config.calendar.bindings.event.status";
4018
+ }, {
4019
+ readonly captureName: "eventType";
4020
+ readonly labelKey: "config.calendar.bindings.event.eventType";
4021
+ }, {
4022
+ readonly captureName: "resourceId";
4023
+ readonly labelKey: "config.calendar.bindings.event.resourceId";
4024
+ }, {
4025
+ readonly captureName: "resourceName";
4026
+ readonly labelKey: "config.calendar.bindings.event.resourceName";
4027
+ }, {
4028
+ readonly captureName: "visibility";
4029
+ readonly labelKey: "config.calendar.bindings.event.visibility";
4030
+ }, {
4031
+ readonly captureName: "color";
4032
+ readonly labelKey: "config.calendar.bindings.event.color";
4033
+ }, {
4034
+ readonly captureName: "isRepeating";
4035
+ readonly labelKey: "config.calendar.bindings.event.isRepeating";
4036
+ }, {
4037
+ readonly captureName: "isRepeatingInterval";
4038
+ readonly labelKey: "config.calendar.bindings.event.isRepeatingInterval";
4039
+ }, {
4040
+ readonly captureName: "isRepeatingExcludedDates";
4041
+ readonly labelKey: "config.calendar.bindings.event.isRepeatingExcludedDates";
4042
+ }, {
4043
+ readonly captureName: "associatedEntityType";
4044
+ readonly labelKey: "config.calendar.bindings.event.associatedEntityType";
4045
+ }, {
4046
+ readonly captureName: "associatedEntityId";
4047
+ readonly labelKey: "config.calendar.bindings.event.associatedEntityId";
4048
+ }, {
4049
+ readonly captureName: "conferencingLink";
4050
+ readonly labelKey: "config.calendar.bindings.event.conferencingLink";
4051
+ }, {
4052
+ readonly captureName: "meta[$index].token";
4053
+ readonly labelKey: "config.calendar.bindings.event.meta.token";
4054
+ }, {
4055
+ readonly captureName: "meta[$index].dataFieldId";
4056
+ readonly labelKey: "config.calendar.bindings.event.meta.fieldId";
4057
+ }];
4058
+ };
4059
+ }, {
4060
+ readonly id: "resourceBindings";
4061
+ readonly tool: "calendarDataRetrieval";
4062
+ readonly titleKey: "config.calendar.group.resourceBindings";
4063
+ readonly collapsible: true;
4064
+ readonly initiallyExpanded: false;
4065
+ readonly pathBase: "dataRetrievalConfig.bindings.resource";
4066
+ readonly toolConfig: {
4067
+ readonly targets: readonly [{
4068
+ readonly captureName: "id";
4069
+ readonly labelKey: "config.calendar.bindings.resource.id";
4070
+ }, {
4071
+ readonly captureName: "name";
4072
+ readonly labelKey: "config.calendar.bindings.resource.name";
4073
+ }, {
4074
+ readonly captureName: "accentClass";
4075
+ readonly labelKey: "config.calendar.bindings.resource.accentClass";
4076
+ }, {
4077
+ readonly captureName: "color";
4078
+ readonly labelKey: "config.calendar.bindings.resource.color";
4079
+ }, {
4080
+ readonly captureName: "meta[$index].token";
4081
+ readonly labelKey: "config.calendar.bindings.resource.meta.token";
4082
+ }, {
4083
+ readonly captureName: "meta[$index].dataFieldId";
4084
+ readonly labelKey: "config.calendar.bindings.resource.meta.fieldId";
4085
+ }];
4086
+ };
4087
+ }, {
4088
+ readonly id: "timeline";
4089
+ readonly tool: "custom";
4090
+ readonly titleKey: "config.calendarDataGrid.group.timeline";
4091
+ readonly collapsible: true;
4092
+ readonly initiallyExpanded: true;
4093
+ readonly pathBase: "display.timeline";
4094
+ readonly fields: readonly [{
4095
+ readonly type: "text";
4096
+ readonly captureName: "startDate";
4097
+ readonly labelKey: "config.calendarDataGrid.timeline.startDate";
4098
+ }, {
4099
+ readonly type: "text";
4100
+ readonly captureName: "endDate";
4101
+ readonly labelKey: "config.calendarDataGrid.timeline.endDate";
4102
+ }, {
4103
+ readonly type: "number";
4104
+ readonly captureName: "dayColumnWidth";
4105
+ readonly labelKey: "config.calendarDataGrid.timeline.dayWidth";
4106
+ readonly defaultValue: 40;
4107
+ }, {
4108
+ readonly type: "switch";
4109
+ readonly captureName: "groupByMonth";
4110
+ readonly labelKey: "config.calendarDataGrid.timeline.groupByMonth";
4111
+ readonly defaultValue: true;
4112
+ }];
4113
+ }, {
4114
+ readonly id: "toolbar";
4115
+ readonly tool: "custom";
4116
+ readonly titleKey: "config.datagrid.group.toolbar";
4117
+ readonly collapsible: true;
4118
+ readonly initiallyExpanded: false;
4119
+ readonly pathBase: "toolbar";
4120
+ readonly fields: readonly [{
4121
+ readonly type: "select";
4122
+ readonly captureName: "densityDefault";
4123
+ readonly labelKey: "config.datagrid.toolbar.densityDefault";
4124
+ readonly defaultValue: "comfortable";
4125
+ readonly options: readonly [{
4126
+ readonly id: "compact";
4127
+ readonly labelKey: "config.datagrid.toolbar.view.compact";
4128
+ }, {
4129
+ readonly id: "comfortable";
4130
+ readonly labelKey: "config.datagrid.toolbar.view.comfortable";
4131
+ }];
4132
+ }, {
4133
+ readonly type: "switch";
4134
+ readonly captureName: "densityToggle";
4135
+ readonly labelKey: "config.datagrid.toolbar.densityToggle";
4136
+ readonly defaultValue: true;
4137
+ }, {
4138
+ readonly type: "switch";
4139
+ readonly captureName: "search";
4140
+ readonly labelKey: "config.datagrid.toolbar.search";
4141
+ readonly defaultValue: true;
4142
+ }, {
4143
+ readonly type: "switch";
4144
+ readonly captureName: "exportCsv";
4145
+ readonly labelKey: "config.datagrid.toolbar.exportCsv";
4146
+ readonly defaultValue: true;
4147
+ }];
4148
+ }, {
4149
+ readonly id: "controlsLayout";
4150
+ readonly tool: "custom";
4151
+ readonly titleKey: "config.datagrid.group.controlsLayout";
4152
+ readonly collapsible: true;
4153
+ readonly initiallyExpanded: false;
4154
+ readonly pathBase: "props.toolbarContainer.sx";
4155
+ readonly fields: readonly [{
4156
+ readonly type: "number";
4157
+ readonly captureName: "controlHeight";
4158
+ readonly labelKey: "config.datagrid.controls.height";
4159
+ readonly defaultValue: 44;
4160
+ }, {
4161
+ readonly type: "number";
4162
+ readonly captureName: "searchWidth";
4163
+ readonly labelKey: "config.datagrid.controls.searchWidth";
4164
+ readonly defaultValue: 360;
4165
+ }, {
4166
+ readonly type: "number";
4167
+ readonly captureName: "columnGap";
4168
+ readonly labelKey: "config.datagrid.controls.columnGap";
4169
+ readonly defaultValue: 1;
4170
+ }, {
4171
+ readonly type: "number";
4172
+ readonly captureName: "marginTop";
4173
+ readonly labelKey: "config.datagrid.controls.marginTop";
4174
+ readonly defaultValue: 1;
4175
+ }];
4176
+ }, {
4177
+ readonly id: "wrapperStyles";
4178
+ readonly tool: "custom";
4179
+ readonly titleKey: "config.datagrid.group.wrapperStyles";
4180
+ readonly collapsible: true;
4181
+ readonly initiallyExpanded: false;
4182
+ readonly pathBase: "props.dataGridWrapper.sx";
4183
+ readonly fields: readonly [{
4184
+ readonly type: "color";
4185
+ readonly captureName: "backgroundColor";
4186
+ readonly labelKey: "config.datagrid.wrapper.background";
4187
+ }, {
4188
+ readonly type: "color";
4189
+ readonly captureName: "borderColor";
4190
+ readonly labelKey: "config.datagrid.wrapper.borderColor";
4191
+ }, {
4192
+ readonly type: "number";
4193
+ readonly captureName: "borderRadius";
4194
+ readonly labelKey: "config.datagrid.wrapper.borderRadius";
4195
+ readonly defaultValue: 8;
4196
+ }, {
4197
+ readonly type: "number";
4198
+ readonly captureName: "paddingX";
4199
+ readonly labelKey: "config.datagrid.wrapper.paddingX";
4200
+ readonly defaultValue: 0;
4201
+ }, {
4202
+ readonly type: "number";
4203
+ readonly captureName: "paddingY";
4204
+ readonly labelKey: "config.datagrid.wrapper.paddingY";
4205
+ readonly defaultValue: 0;
4206
+ }, {
4207
+ readonly type: "number";
4208
+ readonly captureName: "elevation";
4209
+ readonly labelKey: "config.datagrid.wrapper.elevation";
4210
+ readonly defaultValue: 0;
4211
+ }];
4212
+ }, {
4213
+ readonly id: "toolbarStyles";
4214
+ readonly tool: "custom";
4215
+ readonly titleKey: "config.datagrid.group.toolbarStyles";
4216
+ readonly collapsible: true;
4217
+ readonly initiallyExpanded: false;
4218
+ readonly pathBase: "props.toolbarContainer.sx";
4219
+ readonly fields: readonly [{
4220
+ readonly type: "color";
4221
+ readonly captureName: "backgroundColor";
4222
+ readonly labelKey: "config.datagrid.toolbarStyles.background";
4223
+ }, {
4224
+ readonly type: "color";
4225
+ readonly captureName: "borderColor";
4226
+ readonly labelKey: "config.datagrid.toolbarStyles.borderColor";
4227
+ }, {
4228
+ readonly type: "number";
4229
+ readonly captureName: "borderRadius";
4230
+ readonly labelKey: "config.datagrid.toolbarStyles.borderRadius";
4231
+ readonly defaultValue: 8;
4232
+ }, {
4233
+ readonly type: "number";
4234
+ readonly captureName: "gap";
4235
+ readonly labelKey: "config.datagrid.toolbarStyles.gap";
4236
+ readonly defaultValue: 1.5;
4237
+ }];
4238
+ }, {
4239
+ readonly id: "quickFilters";
4240
+ readonly tool: "dataGridQuickFilters";
4241
+ readonly titleKey: "config.datagrid.group.quickFilters";
4242
+ readonly collapsible: true;
4243
+ readonly initiallyExpanded: false;
4244
+ readonly pathBase: "toolbar.quickFilters";
4245
+ readonly toolConfig: {
4246
+ readonly columnsDependencyPath: "dataRetrievalConfig.columns";
4247
+ readonly fields: readonly [{
4248
+ readonly type: "text";
4249
+ readonly captureName: "label";
4250
+ readonly labelKey: "config.datagrid.quickFilters.label";
4251
+ }, {
4252
+ readonly type: "text";
4253
+ readonly captureName: "columnField";
4254
+ readonly labelKey: "config.datagrid.quickFilters.columnField";
4255
+ }, {
4256
+ readonly type: "text";
4257
+ readonly captureName: "value";
4258
+ readonly labelKey: "config.datagrid.quickFilters.value";
4259
+ }, {
4260
+ readonly type: "color";
4261
+ readonly captureName: "color";
4262
+ readonly labelKey: "config.datagrid.quickFilters.color";
4263
+ }];
4264
+ };
4265
+ }, {
4266
+ readonly id: "quickFiltersStyles";
4267
+ readonly tool: "custom";
4268
+ readonly titleKey: "config.datagrid.group.quickFiltersStyles";
4269
+ readonly collapsible: true;
4270
+ readonly initiallyExpanded: false;
4271
+ readonly pathBase: "props.quickFiltersGroup.sx";
4272
+ readonly fields: readonly [{
4273
+ readonly type: "color";
4274
+ readonly captureName: "chipBackgroundColor";
4275
+ readonly labelKey: "config.datagrid.quickFilters.chipBackground";
4276
+ }, {
4277
+ readonly type: "color";
4278
+ readonly captureName: "chipTextColor";
4279
+ readonly labelKey: "config.datagrid.quickFilters.chipText";
4280
+ }, {
4281
+ readonly type: "color";
4282
+ readonly captureName: "chipBorderColor";
4283
+ readonly labelKey: "config.datagrid.quickFilters.chipBorder";
4284
+ }, {
4285
+ readonly type: "number";
4286
+ readonly captureName: "chipBorderRadius";
4287
+ readonly labelKey: "config.datagrid.quickFilters.chipBorderRadius";
4288
+ readonly defaultValue: 10;
4289
+ }, {
4290
+ readonly type: "number";
4291
+ readonly captureName: "chipGap";
4292
+ readonly labelKey: "config.datagrid.quickFilters.chipGap";
4293
+ readonly defaultValue: 8;
4294
+ }, {
4295
+ readonly type: "color";
4296
+ readonly captureName: "selectedChipColor";
4297
+ readonly labelKey: "config.datagrid.quickFilters.selectedChipColor";
4298
+ }];
4299
+ }, {
4300
+ readonly id: "searchControl";
4301
+ readonly tool: "custom";
4302
+ readonly titleKey: "config.datagrid.group.searchControl";
4303
+ readonly collapsible: true;
4304
+ readonly initiallyExpanded: false;
4305
+ readonly pathBase: "toolbar.searchControl";
4306
+ readonly fields: readonly [{
4307
+ readonly type: "text";
4308
+ readonly captureName: "placeholder";
4309
+ readonly labelKey: "config.datagrid.search.placeholder";
4310
+ readonly defaultValue: "Search";
4311
+ }, {
4312
+ readonly type: "switch";
4313
+ readonly captureName: "autoFocus";
4314
+ readonly labelKey: "config.datagrid.search.autoFocus";
4315
+ readonly defaultValue: false;
4316
+ }, {
4317
+ readonly type: "number";
4318
+ readonly captureName: "borderRadius";
4319
+ readonly labelKey: "config.datagrid.search.borderRadius";
4320
+ readonly defaultValue: 2;
4321
+ }, {
4322
+ readonly type: "color";
4323
+ readonly captureName: "backgroundColor";
4324
+ readonly labelKey: "config.datagrid.search.background";
4325
+ }, {
4326
+ readonly type: "color";
4327
+ readonly captureName: "borderColor";
4328
+ readonly labelKey: "config.datagrid.search.borderColor";
4329
+ }];
4330
+ }, {
4331
+ readonly id: "densityToggleStyles";
4332
+ readonly tool: "custom";
4333
+ readonly titleKey: "config.datagrid.group.densityToggleStyles";
4334
+ readonly collapsible: true;
4335
+ readonly initiallyExpanded: false;
4336
+ readonly pathBase: "props.densityToggleContainer.sx";
4337
+ readonly fields: readonly [{
4338
+ readonly type: "color";
4339
+ readonly captureName: "backgroundColor";
4340
+ readonly labelKey: "config.datagrid.density.background";
4341
+ }, {
4342
+ readonly type: "color";
4343
+ readonly captureName: "selectedBackgroundColor";
4344
+ readonly labelKey: "config.datagrid.density.selectedBackground";
4345
+ }, {
4346
+ readonly type: "color";
4347
+ readonly captureName: "selectedTextColor";
4348
+ readonly labelKey: "config.datagrid.density.selectedTextColor";
4349
+ }, {
4350
+ readonly type: "number";
4351
+ readonly captureName: "borderRadius";
4352
+ readonly labelKey: "config.datagrid.density.borderRadius";
4353
+ readonly defaultValue: 10;
4354
+ }];
4355
+ }, {
4356
+ readonly id: "exportButtonStyles";
4357
+ readonly tool: "custom";
4358
+ readonly titleKey: "config.datagrid.group.exportButtonStyles";
4359
+ readonly collapsible: true;
4360
+ readonly initiallyExpanded: false;
4361
+ readonly pathBase: "props.exportButton.sx";
4362
+ readonly fields: readonly [{
4363
+ readonly type: "color";
4364
+ readonly captureName: "backgroundColor";
4365
+ readonly labelKey: "config.datagrid.export.background";
4366
+ }, {
4367
+ readonly type: "color";
4368
+ readonly captureName: "borderColor";
4369
+ readonly labelKey: "config.datagrid.export.borderColor";
4370
+ }, {
4371
+ readonly type: "color";
4372
+ readonly captureName: "iconColor";
4373
+ readonly labelKey: "config.datagrid.export.iconColor";
4374
+ }, {
4375
+ readonly type: "number";
4376
+ readonly captureName: "borderRadius";
4377
+ readonly labelKey: "config.datagrid.export.borderRadius";
4378
+ readonly defaultValue: 8;
4379
+ }];
4380
+ }, {
4381
+ readonly id: "styles";
4382
+ readonly tool: "custom";
4383
+ readonly titleKey: "config.datagrid.group.styles";
4384
+ readonly collapsible: true;
4385
+ readonly initiallyExpanded: false;
4386
+ readonly pathBase: "props.dataGrid.sx";
4387
+ readonly fields: readonly [{
4388
+ readonly type: "color";
4389
+ readonly captureName: "backgroundColor";
4390
+ readonly labelKey: "config.datagrid.styles.background";
4391
+ readonly defaultValue: "#FFFFFF";
4392
+ }];
4393
+ }];
4394
+ };
4395
+
4396
+ declare const useCalendarDataGridData: (organismId: string, start?: Date, end?: Date) => {
4397
+ events: {
4398
+ title: string;
4399
+ color: string;
4400
+ startDate: Date;
4401
+ endDate: Date;
4402
+ startTime: string;
4403
+ endTime: string;
4404
+ isRepeating: boolean;
4405
+ id?: string | undefined;
4406
+ visibility?: "public" | "private" | undefined;
4407
+ description?: string | undefined;
4408
+ isRepeatingInterval?: "daily" | "weekly" | "monthly" | undefined;
4409
+ isRepeatingExcludedDates?: Date[] | undefined;
4410
+ resourceId?: string | undefined;
4411
+ eventType?: string | undefined;
4412
+ }[];
4413
+ resources: {
4414
+ [key: string]: unknown;
4415
+ id: string;
4416
+ name: string;
4417
+ }[];
4418
+ isLoading: boolean;
4419
+ error: Error | null;
4420
+ refetch: (options?: _tanstack_query_core_build_legacy_hydration_BlEK5ylC.al | undefined) => Promise<_tanstack_query_core_build_legacy_hydration_BlEK5ylC.aC<CalendarDataGridData, Error>>;
4421
+ };
4422
+
4423
+ type ColorToken = 'blue' | 'green' | 'yellow' | 'purple' | 'red';
4424
+ type StatusToken = 'tentative' | 'confirmed' | 'completed' | 'cancelled';
4425
+ type DesignerOverlayIndicatorConfig = {
4426
+ maxPerCell?: number;
4427
+ icons?: Record<string, {
4428
+ iconName?: string;
4429
+ className?: string;
4430
+ priority?: number;
4431
+ showCountBadge?: boolean;
4432
+ }>;
4433
+ statusClasses?: {
4434
+ ok?: string;
4435
+ info?: string;
4436
+ warning?: string;
4437
+ danger?: string;
4438
+ };
4439
+ showLegend?: boolean;
4440
+ };
4441
+ type CalendarOrganismConfiguration = {
4442
+ display: {
4443
+ defaultView: 'day' | 'week' | 'month' | 'year';
4444
+ use24HourFormatByDefault?: boolean;
4445
+ colorMap: Array<{
4446
+ status: StatusToken;
4447
+ color: ColorToken;
4448
+ }>;
4449
+ overlayIndicators?: DesignerOverlayIndicatorConfig;
4450
+ };
4451
+ };
4452
+ type CalendarQuery = {
4453
+ rangeStart: string;
4454
+ rangeEnd: string;
4455
+ timezone?: string;
4456
+ filters?: Record<string, unknown>;
4457
+ };
4458
+ type CalendarPage = {
4459
+ events: CalendarEventType[];
4460
+ resources?: Array<Record<string, unknown>>;
4461
+ overlays?: Array<Record<string, unknown>>;
4462
+ };
4463
+ type FieldMappingValue$1 = string | {
4464
+ template: string;
4465
+ tokens: Record<string, string>;
4466
+ } | {
4467
+ const: any;
4468
+ };
4469
+ interface EventBindings {
4470
+ id?: FieldMappingValue$1;
4471
+ title?: FieldMappingValue$1;
4472
+ startDate?: FieldMappingValue$1;
4473
+ endDate?: FieldMappingValue$1;
4474
+ startTime?: FieldMappingValue$1;
4475
+ endTime?: FieldMappingValue$1;
4476
+ description?: FieldMappingValue$1;
4477
+ color?: FieldMappingValue$1;
4478
+ isRepeating?: FieldMappingValue$1;
4479
+ isRepeatingInterval?: FieldMappingValue$1;
4480
+ isRepeatingExcludedDates?: FieldMappingValue$1;
4481
+ status?: FieldMappingValue$1;
4482
+ eventType?: FieldMappingValue$1;
4483
+ resourceId?: FieldMappingValue$1;
4484
+ resourceName?: FieldMappingValue$1;
4485
+ associatedEntityType?: FieldMappingValue$1;
4486
+ associatedEntityId?: FieldMappingValue$1;
4487
+ meta?: Record<string, FieldMappingValue$1>;
4488
+ }
4489
+ interface ResourceBindings {
4490
+ id?: FieldMappingValue$1;
4491
+ name?: FieldMappingValue$1;
4492
+ accentClass?: FieldMappingValue$1;
4493
+ color?: FieldMappingValue$1;
4494
+ meta?: Record<string, FieldMappingValue$1>;
4495
+ }
4496
+ interface Bindings {
4497
+ event?: EventBindings;
4498
+ resource?: ResourceBindings;
4499
+ }
4500
+ interface ModalField {
4501
+ id: string;
4502
+ label: string;
4503
+ type: 'text' | 'datetime' | 'select' | 'textarea' | 'number';
4504
+ required?: boolean;
4505
+ dataFieldId?: string;
4506
+ remoteOptions?: {
4507
+ queryKey: string;
4508
+ valueField: string;
4509
+ labelField: string;
4510
+ };
4511
+ options?: Array<{
4512
+ value: any;
4513
+ label: string;
4514
+ }>;
4515
+ placeholder?: string;
4516
+ validation?: Record<string, any>;
4517
+ }
4518
+ interface ModalConfig {
4519
+ i18n: {
4520
+ title: string;
4521
+ submitLabel: string;
4522
+ cancelLabel?: string;
4523
+ };
4524
+ fields: ModalField[];
4525
+ layout: {
4526
+ columns: number;
4527
+ order: string[];
4528
+ };
4529
+ }
4530
+ interface FormConfig {
4531
+ modal: ModalConfig;
4532
+ }
4533
+ interface DataRetrievalConfig {
4534
+ bindings: Bindings;
4535
+ form: FormConfig;
4536
+ loadEvents?: (organismId: string, query: CalendarQuery) => Promise<CalendarPage>;
4537
+ onEventCreate?: (event: Omit<CalendarEventType, 'id'>) => Promise<CalendarEventType>;
4538
+ onEventUpdate?: (event: CalendarEventType) => Promise<CalendarEventType>;
4539
+ onEventDelete?: (eventId: string) => Promise<void>;
4540
+ }
4541
+ interface CalendarOrganismProps {
4542
+ organism: OrganismDTO & {
4543
+ config: {
4544
+ dataRetrievalConfig: DataRetrievalConfig;
4545
+ display?: CalendarOrganismConfiguration['display'];
4546
+ };
4547
+ };
4548
+ }
4549
+
4550
+ declare const CalendarOrganism: react.NamedExoticComponent<CalendarOrganismProps>;
4551
+
4552
+ type Params = {
4553
+ organism?: {
4554
+ id?: string;
4555
+ config?: {
4556
+ dataGrid?: DataGridOrganismConfig;
4557
+ };
4558
+ };
4559
+ onAction?: (payload: {
4560
+ action: any;
4561
+ row: Record<string, unknown>;
4562
+ }) => void;
4563
+ };
4564
+ declare const useDataGridOrganism: (params: Params) => {
4565
+ organismId: string;
4566
+ configuration: DataGridOrganismConfig;
4567
+ rows: Record<string, unknown>[];
4568
+ total: number;
4569
+ isLoading: boolean;
4570
+ error: Error | null;
4571
+ page: number;
4572
+ pageSize: number;
4573
+ search: string;
4574
+ quickFilters: Record<string, string | string[]>;
4575
+ density: "compact" | "comfortable";
4576
+ showSearch: boolean;
4577
+ filterModel: GridFilterModel;
4578
+ densityToggle: boolean;
4579
+ quickFiltersCfg: any;
4580
+ showSearchControl: boolean;
4581
+ showExport: boolean;
4582
+ columnsKey: string;
4583
+ apiRef: react.MutableRefObject<_mui_x_data_grid_pro.GridApiPro | null>;
4584
+ columns: GridColDef<any, any, any>[];
4585
+ listViewColumn: _mui_x_data_grid_pro.GridListViewColDef<any, any, any>;
4586
+ resolvedView: "table" | "list";
4587
+ setPage: react.Dispatch<react.SetStateAction<number>>;
4588
+ setPageSize: react.Dispatch<react.SetStateAction<number>>;
4589
+ setSearch: react.Dispatch<react.SetStateAction<string>>;
4590
+ setQuickFilter: (columnField: string, value: string) => void;
4591
+ setDensity: react.Dispatch<react.SetStateAction<"compact" | "comfortable">>;
4592
+ setShowSearch: react.Dispatch<react.SetStateAction<boolean>>;
4593
+ refetch: (options?: _tanstack_query_core_build_legacy_hydration_BlEK5ylC.al | undefined) => Promise<_tanstack_query_core_build_legacy_hydration_BlEK5ylC.aC<DataGridPage, Error>>;
4594
+ };
4595
+
4596
+ declare const dataGridListConfiguratorDescriptor: {
4597
+ readonly component: "DataGridListOrganism";
4598
+ readonly version: "1.0.0";
4599
+ readonly toolGroups: readonly [{
4600
+ readonly id: "listItemMapping";
4601
+ readonly tool: "custom";
4602
+ readonly titleKey: "config.dataGridList.group.listItemMapping";
4603
+ readonly collapsible: true;
4604
+ readonly initiallyExpanded: true;
4605
+ readonly pathBase: "display.listItem";
4606
+ readonly fields: readonly [{
4607
+ readonly type: "text";
4608
+ readonly captureName: "avatarUrl";
4609
+ readonly labelKey: "config.dataGridList.listItem.avatarUrl";
4610
+ }, {
4611
+ readonly type: "text";
4612
+ readonly captureName: "primaryText";
4613
+ readonly labelKey: "config.dataGridList.listItem.primaryText";
4614
+ }, {
4615
+ readonly type: "text";
4616
+ readonly captureName: "secondaryText";
4617
+ readonly labelKey: "config.dataGridList.listItem.secondaryText";
4618
+ }, {
4619
+ readonly type: "array";
4620
+ readonly captureName: "meta[$index]";
4621
+ readonly labelKey: "config.dataGridList.listItem.meta";
4622
+ readonly fields: readonly [{
4623
+ readonly type: "text";
4624
+ readonly captureName: "label";
4625
+ readonly labelKey: "config.common.label";
4626
+ }, {
4627
+ readonly type: "text";
4628
+ readonly captureName: "value";
4629
+ readonly labelKey: "config.common.value";
4630
+ }, {
4631
+ readonly type: "color";
4632
+ readonly captureName: "color";
4633
+ readonly labelKey: "config.common.color";
4634
+ }];
4635
+ }, {
4636
+ readonly type: "composite";
4637
+ readonly captureName: "actions";
4638
+ readonly labelKey: "config.dataGridList.listItem.actions";
4639
+ readonly fields: readonly [{
4640
+ readonly type: "select";
4641
+ readonly captureName: "type";
4642
+ readonly labelKey: "config.common.type";
4643
+ readonly options: readonly [{
4644
+ readonly id: "predefined";
4645
+ readonly labelKey: "config.dataGridList.actions.predefined";
4646
+ }, {
4647
+ readonly id: "single";
4648
+ readonly labelKey: "config.dataGridList.actions.single";
4649
+ }];
4650
+ }, {
4651
+ readonly type: "composite";
4652
+ readonly captureName: "single";
4653
+ readonly labelKey: "config.dataGridList.actions.single";
4654
+ readonly when: {
4655
+ readonly path: "actions.type";
4656
+ readonly equals: "single";
4657
+ };
4658
+ readonly fields: readonly [{
4659
+ readonly type: "text";
4660
+ readonly captureName: "tooltip";
4661
+ readonly labelKey: "config.common.tooltip";
4662
+ }, {
4663
+ readonly type: "text";
4664
+ readonly captureName: "icon";
4665
+ readonly labelKey: "config.common.icon";
4666
+ }, {
4667
+ readonly type: "select";
4668
+ readonly captureName: "variant";
4669
+ readonly labelKey: "config.common.variant";
4670
+ readonly options: readonly [{
4671
+ readonly id: "text";
4672
+ readonly labelKey: "config.common.text";
4673
+ }, {
4674
+ readonly id: "outlined";
4675
+ readonly labelKey: "config.common.outlined";
4676
+ }, {
4677
+ readonly id: "contained";
4678
+ readonly labelKey: "config.common.contained";
4679
+ }];
4680
+ }];
4681
+ }];
4682
+ }];
4683
+ }, {
4684
+ readonly id: "listLayout";
4685
+ readonly tool: "custom";
4686
+ readonly titleKey: "config.dataGridList.group.listLayout";
4687
+ readonly collapsible: true;
4688
+ readonly initiallyExpanded: true;
4689
+ readonly pathBase: "display.layout";
4690
+ readonly fields: readonly [{
4691
+ readonly type: "text";
4692
+ readonly captureName: "templateColumns";
4693
+ readonly labelKey: "config.dataGridList.layout.templateColumns";
4694
+ readonly defaultValue: "auto 1fr auto";
4695
+ }, {
4696
+ readonly type: "number";
4697
+ readonly captureName: "gap";
4698
+ readonly labelKey: "config.common.gap";
4699
+ readonly defaultValue: 12;
4700
+ }, {
4701
+ readonly type: "number";
4702
+ readonly captureName: "leadingSize";
4703
+ readonly labelKey: "config.dataGridList.layout.leadingSize";
4704
+ readonly defaultValue: 36;
4705
+ }, {
4706
+ readonly type: "number";
4707
+ readonly captureName: "verticalGap";
4708
+ readonly labelKey: "config.dataGridList.layout.verticalGap";
4709
+ readonly defaultValue: 4;
4710
+ }];
4711
+ }, {
4712
+ readonly id: "regions";
4713
+ readonly tool: "custom";
4714
+ readonly titleKey: "config.dataGridList.group.regions";
4715
+ readonly collapsible: true;
4716
+ readonly initiallyExpanded: true;
4717
+ readonly pathBase: "display.regions";
4718
+ readonly fields: readonly [{
4719
+ readonly type: "array";
4720
+ readonly captureName: "meta[$index]";
4721
+ readonly labelKey: "config.dataGridList.regions.meta";
4722
+ readonly fields: readonly [{
4723
+ readonly type: "text";
4724
+ readonly captureName: "label";
4725
+ readonly labelKey: "config.common.label";
4726
+ }, {
4727
+ readonly type: "text";
4728
+ readonly captureName: "value";
4729
+ readonly labelKey: "config.common.value";
4730
+ }, {
4731
+ readonly type: "color";
4732
+ readonly captureName: "color";
4733
+ readonly labelKey: "config.common.color";
4734
+ }];
4735
+ }, {
4736
+ readonly type: "array";
4737
+ readonly captureName: "subMeta[$index]";
4738
+ readonly labelKey: "config.dataGridList.regions.subMeta";
4739
+ readonly fields: readonly [{
4740
+ readonly type: "text";
4741
+ readonly captureName: "label";
4742
+ readonly labelKey: "config.common.label";
4743
+ }, {
4744
+ readonly type: "text";
4745
+ readonly captureName: "value";
4746
+ readonly labelKey: "config.common.value";
4747
+ }, {
4748
+ readonly type: "color";
4749
+ readonly captureName: "color";
4750
+ readonly labelKey: "config.common.color";
4751
+ }];
4752
+ }, {
4753
+ readonly type: "composite";
4754
+ readonly captureName: "trailing";
4755
+ readonly labelKey: "config.dataGridList.regions.trailing";
4756
+ readonly fields: readonly [{
4757
+ readonly type: "composite";
4758
+ readonly captureName: "dots";
4759
+ readonly labelKey: "config.dataGridList.regions.trailing.dots";
4760
+ readonly fields: readonly [{
4761
+ readonly type: "text";
4762
+ readonly captureName: "count";
4763
+ readonly labelKey: "config.common.count";
4764
+ }, {
4765
+ readonly type: "color";
4766
+ readonly captureName: "color";
4767
+ readonly labelKey: "config.common.color";
4768
+ }, {
4769
+ readonly type: "number";
4770
+ readonly captureName: "total";
4771
+ readonly labelKey: "config.common.total";
4772
+ readonly defaultValue: 5;
4773
+ }];
4774
+ }, {
4775
+ readonly type: "array";
4776
+ readonly captureName: "lines[$index]";
4777
+ readonly labelKey: "config.dataGridList.regions.trailing.lines";
4778
+ readonly fields: readonly [{
4779
+ readonly type: "text";
4780
+ readonly captureName: "icon";
4781
+ readonly labelKey: "config.common.icon";
4782
+ }, {
4783
+ readonly type: "text";
4784
+ readonly captureName: "text";
4785
+ readonly labelKey: "config.common.text";
4786
+ }, {
4787
+ readonly type: "color";
4788
+ readonly captureName: "color";
4789
+ readonly labelKey: "config.common.color";
4790
+ }];
4791
+ }];
4792
+ }];
4793
+ }, {
4794
+ readonly id: "quickFilters";
4795
+ readonly tool: "dataGridQuickFilters";
4796
+ readonly titleKey: "config.datagrid.group.quickFilters";
4797
+ readonly collapsible: true;
4798
+ readonly initiallyExpanded: false;
4799
+ readonly pathBase: "toolbar.quickFilters";
4800
+ readonly toolConfig: {
4801
+ readonly columnsDependencyPath: "dataRetrievalConfig.columns";
4802
+ readonly fields: readonly [{
4803
+ readonly type: "text";
4804
+ readonly captureName: "label";
4805
+ readonly labelKey: "config.datagrid.quickFilters.label";
4806
+ }, {
4807
+ readonly type: "text";
4808
+ readonly captureName: "columnField";
4809
+ readonly labelKey: "config.datagrid.quickFilters.columnField";
4810
+ }, {
4811
+ readonly type: "text";
4812
+ readonly captureName: "value";
4813
+ readonly labelKey: "config.datagrid.quickFilters.value";
4814
+ }, {
4815
+ readonly type: "color";
4816
+ readonly captureName: "color";
4817
+ readonly labelKey: "config.datagrid.quickFilters.color";
4818
+ }];
4819
+ };
4820
+ }, {
4821
+ readonly id: "toolbar";
4822
+ readonly tool: "custom";
4823
+ readonly titleKey: "config.datagrid.group.toolbar";
4824
+ readonly collapsible: true;
4825
+ readonly initiallyExpanded: false;
4826
+ readonly pathBase: "toolbar";
4827
+ readonly fields: readonly [{
4828
+ readonly type: "select";
4829
+ readonly captureName: "densityDefault";
4830
+ readonly labelKey: "config.datagrid.toolbar.densityDefault";
4831
+ readonly defaultValue: "comfortable";
4832
+ readonly options: readonly [{
4833
+ readonly id: "compact";
4834
+ readonly labelKey: "config.datagrid.toolbar.view.compact";
4835
+ }, {
4836
+ readonly id: "comfortable";
4837
+ readonly labelKey: "config.datagrid.toolbar.view.comfortable";
4838
+ }];
4839
+ }, {
4840
+ readonly type: "switch";
4841
+ readonly captureName: "densityToggle";
4842
+ readonly labelKey: "config.datagrid.toolbar.densityToggle";
4843
+ readonly defaultValue: true;
4844
+ }, {
4845
+ readonly type: "switch";
4846
+ readonly captureName: "search";
4847
+ readonly labelKey: "config.datagrid.toolbar.search";
4848
+ readonly defaultValue: true;
4849
+ }, {
4850
+ readonly type: "switch";
4851
+ readonly captureName: "exportCsv";
4852
+ readonly labelKey: "config.datagrid.toolbar.exportCsv";
4853
+ readonly defaultValue: true;
4854
+ }];
4855
+ }, {
4856
+ readonly id: "controlsLayout";
4857
+ readonly tool: "custom";
4858
+ readonly titleKey: "config.datagrid.group.controlsLayout";
4859
+ readonly collapsible: true;
4860
+ readonly initiallyExpanded: false;
4861
+ readonly pathBase: "props.toolbarContainer.sx";
4862
+ readonly fields: readonly [{
4863
+ readonly type: "number";
4864
+ readonly captureName: "controlHeight";
4865
+ readonly labelKey: "config.datagrid.controls.height";
4866
+ readonly defaultValue: 44;
4867
+ }, {
4868
+ readonly type: "number";
4869
+ readonly captureName: "searchWidth";
4870
+ readonly labelKey: "config.datagrid.controls.searchWidth";
4871
+ readonly defaultValue: 360;
4872
+ }, {
4873
+ readonly type: "number";
4874
+ readonly captureName: "columnGap";
4875
+ readonly labelKey: "config.datagrid.controls.columnGap";
4876
+ readonly defaultValue: 1;
4877
+ }, {
4878
+ readonly type: "number";
4879
+ readonly captureName: "marginTop";
4880
+ readonly labelKey: "config.datagrid.controls.marginTop";
4881
+ readonly defaultValue: 1;
4882
+ }];
4883
+ }, {
4884
+ readonly id: "wrapperStyles";
4885
+ readonly tool: "custom";
4886
+ readonly titleKey: "config.datagrid.group.wrapperStyles";
4887
+ readonly collapsible: true;
4888
+ readonly initiallyExpanded: false;
4889
+ readonly pathBase: "props.dataGridWrapper.sx";
4890
+ readonly fields: readonly [{
4891
+ readonly type: "color";
4892
+ readonly captureName: "backgroundColor";
4893
+ readonly labelKey: "config.datagrid.wrapper.background";
4894
+ }, {
4895
+ readonly type: "color";
4896
+ readonly captureName: "borderColor";
4897
+ readonly labelKey: "config.datagrid.wrapper.borderColor";
4898
+ }, {
4899
+ readonly type: "number";
4900
+ readonly captureName: "borderRadius";
4901
+ readonly labelKey: "config.datagrid.wrapper.borderRadius";
4902
+ readonly defaultValue: 8;
4903
+ }, {
4904
+ readonly type: "number";
4905
+ readonly captureName: "paddingX";
4906
+ readonly labelKey: "config.datagrid.wrapper.paddingX";
4907
+ readonly defaultValue: 0;
4908
+ }, {
4909
+ readonly type: "number";
4910
+ readonly captureName: "paddingY";
4911
+ readonly labelKey: "config.datagrid.wrapper.paddingY";
4912
+ readonly defaultValue: 0;
4913
+ }, {
4914
+ readonly type: "number";
4915
+ readonly captureName: "elevation";
4916
+ readonly labelKey: "config.datagrid.wrapper.elevation";
4917
+ readonly defaultValue: 0;
4918
+ }];
4919
+ }, {
4920
+ readonly id: "toolbarStyles";
4921
+ readonly tool: "custom";
4922
+ readonly titleKey: "config.datagrid.group.toolbarStyles";
4923
+ readonly collapsible: true;
4924
+ readonly initiallyExpanded: false;
4925
+ readonly pathBase: "props.toolbarContainer.sx";
4926
+ readonly fields: readonly [{
4927
+ readonly type: "color";
4928
+ readonly captureName: "backgroundColor";
4929
+ readonly labelKey: "config.datagrid.toolbarStyles.background";
4930
+ }, {
4931
+ readonly type: "color";
4932
+ readonly captureName: "borderColor";
4933
+ readonly labelKey: "config.datagrid.toolbarStyles.borderColor";
4934
+ }, {
4935
+ readonly type: "number";
4936
+ readonly captureName: "borderRadius";
4937
+ readonly labelKey: "config.datagrid.toolbarStyles.borderRadius";
4938
+ readonly defaultValue: 8;
4939
+ }, {
4940
+ readonly type: "number";
4941
+ readonly captureName: "gap";
4942
+ readonly labelKey: "config.datagrid.toolbarStyles.gap";
4943
+ readonly defaultValue: 1.5;
4944
+ }];
4945
+ }, {
4946
+ readonly id: "quickFiltersStyles";
4947
+ readonly tool: "custom";
4948
+ readonly titleKey: "config.datagrid.group.quickFiltersStyles";
4949
+ readonly collapsible: true;
4950
+ readonly initiallyExpanded: false;
4951
+ readonly pathBase: "props.quickFiltersGroup.sx";
4952
+ readonly fields: readonly [{
4953
+ readonly type: "color";
4954
+ readonly captureName: "chipBackgroundColor";
4955
+ readonly labelKey: "config.datagrid.quickFilters.chipBackground";
4956
+ }, {
4957
+ readonly type: "color";
4958
+ readonly captureName: "chipTextColor";
4959
+ readonly labelKey: "config.datagrid.quickFilters.chipText";
4960
+ }, {
4961
+ readonly type: "color";
4962
+ readonly captureName: "chipBorderColor";
4963
+ readonly labelKey: "config.datagrid.quickFilters.chipBorder";
4964
+ }, {
4965
+ readonly type: "number";
4966
+ readonly captureName: "chipBorderRadius";
4967
+ readonly labelKey: "config.datagrid.quickFilters.chipBorderRadius";
4968
+ readonly defaultValue: 10;
4969
+ }, {
4970
+ readonly type: "number";
4971
+ readonly captureName: "chipGap";
4972
+ readonly labelKey: "config.datagrid.quickFilters.chipGap";
4973
+ readonly defaultValue: 8;
4974
+ }, {
4975
+ readonly type: "color";
4976
+ readonly captureName: "selectedChipColor";
4977
+ readonly labelKey: "config.datagrid.quickFilters.selectedChipColor";
4978
+ }];
4979
+ }, {
4980
+ readonly id: "searchControl";
4981
+ readonly tool: "custom";
4982
+ readonly titleKey: "config.datagrid.group.searchControl";
4983
+ readonly collapsible: true;
4984
+ readonly initiallyExpanded: false;
4985
+ readonly pathBase: "toolbar.searchControl";
4986
+ readonly fields: readonly [{
4987
+ readonly type: "text";
4988
+ readonly captureName: "placeholder";
4989
+ readonly labelKey: "config.datagrid.search.placeholder";
4990
+ readonly defaultValue: "Search";
4991
+ }, {
4992
+ readonly type: "switch";
4993
+ readonly captureName: "autoFocus";
4994
+ readonly labelKey: "config.datagrid.search.autoFocus";
4995
+ readonly defaultValue: false;
4996
+ }, {
4997
+ readonly type: "number";
4998
+ readonly captureName: "borderRadius";
4999
+ readonly labelKey: "config.datagrid.search.borderRadius";
5000
+ readonly defaultValue: 2;
5001
+ }, {
5002
+ readonly type: "color";
5003
+ readonly captureName: "backgroundColor";
5004
+ readonly labelKey: "config.datagrid.search.background";
5005
+ }, {
5006
+ readonly type: "color";
5007
+ readonly captureName: "borderColor";
5008
+ readonly labelKey: "config.datagrid.search.borderColor";
5009
+ }];
5010
+ }, {
5011
+ readonly id: "densityToggleStyles";
5012
+ readonly tool: "custom";
5013
+ readonly titleKey: "config.datagrid.group.densityToggleStyles";
5014
+ readonly collapsible: true;
5015
+ readonly initiallyExpanded: false;
5016
+ readonly pathBase: "props.densityToggleContainer.sx";
5017
+ readonly fields: readonly [{
5018
+ readonly type: "color";
5019
+ readonly captureName: "backgroundColor";
5020
+ readonly labelKey: "config.datagrid.density.background";
5021
+ }, {
5022
+ readonly type: "color";
5023
+ readonly captureName: "selectedBackgroundColor";
5024
+ readonly labelKey: "config.datagrid.density.selectedBackground";
5025
+ }, {
5026
+ readonly type: "color";
5027
+ readonly captureName: "selectedTextColor";
5028
+ readonly labelKey: "config.datagrid.density.selectedTextColor";
5029
+ }, {
5030
+ readonly type: "number";
5031
+ readonly captureName: "borderRadius";
5032
+ readonly labelKey: "config.datagrid.density.borderRadius";
5033
+ readonly defaultValue: 10;
5034
+ }];
5035
+ }, {
5036
+ readonly id: "exportButtonStyles";
5037
+ readonly tool: "custom";
5038
+ readonly titleKey: "config.datagrid.group.exportButtonStyles";
5039
+ readonly collapsible: true;
5040
+ readonly initiallyExpanded: false;
5041
+ readonly pathBase: "props.exportButton.sx";
5042
+ readonly fields: readonly [{
5043
+ readonly type: "color";
5044
+ readonly captureName: "backgroundColor";
5045
+ readonly labelKey: "config.datagrid.export.background";
5046
+ }, {
5047
+ readonly type: "color";
5048
+ readonly captureName: "borderColor";
5049
+ readonly labelKey: "config.datagrid.export.borderColor";
5050
+ }, {
5051
+ readonly type: "color";
5052
+ readonly captureName: "iconColor";
5053
+ readonly labelKey: "config.datagrid.export.iconColor";
5054
+ }, {
5055
+ readonly type: "number";
5056
+ readonly captureName: "borderRadius";
5057
+ readonly labelKey: "config.datagrid.export.borderRadius";
5058
+ readonly defaultValue: 8;
5059
+ }];
5060
+ }, {
5061
+ readonly id: "styles";
5062
+ readonly tool: "custom";
5063
+ readonly titleKey: "config.datagrid.group.styles";
5064
+ readonly collapsible: true;
5065
+ readonly initiallyExpanded: false;
5066
+ readonly pathBase: "props.dataGrid.sx";
5067
+ readonly fields: readonly [{
5068
+ readonly type: "color";
5069
+ readonly captureName: "backgroundColor";
5070
+ readonly labelKey: "config.datagrid.styles.background";
5071
+ readonly defaultValue: "#FFFFFF";
5072
+ }];
5073
+ }];
5074
+ };
5075
+
5076
+ type FieldMappingValue = string | {
5077
+ template: string;
5078
+ tokens: Record<string, string>;
5079
+ } | {
5080
+ const: unknown;
5081
+ };
5082
+ type ListItemMapping = {
5083
+ avatarUrl?: FieldMappingValue;
5084
+ primaryText?: FieldMappingValue;
5085
+ secondaryText?: FieldMappingValue;
5086
+ meta?: Array<{
5087
+ label?: FieldMappingValue;
5088
+ value: FieldMappingValue;
5089
+ color?: FieldMappingValue;
5090
+ }>;
5091
+ actions?: {
5092
+ type: 'predefined' | 'single';
5093
+ predefined?: PredefinedActionsConfig;
5094
+ single?: {
5095
+ tooltip?: string;
5096
+ icon?: string;
5097
+ variant?: 'text' | 'outlined' | 'contained';
5098
+ };
5099
+ };
5100
+ };
5101
+ type DataGridListToolbarConfig = {
5102
+ search?: boolean;
5103
+ exportCsv?: boolean;
5104
+ densityToggle?: boolean;
5105
+ densityDefault?: 'compact' | 'comfortable';
5106
+ quickFilters?: Array<{
5107
+ label: string;
5108
+ columnField: string;
5109
+ value: string;
5110
+ color?: string;
5111
+ }>;
5112
+ searchControl?: {
5113
+ placeholder?: string;
5114
+ autoFocus?: boolean;
5115
+ borderRadius?: number;
5116
+ backgroundColor?: string;
5117
+ borderColor?: string;
5118
+ };
5119
+ };
5120
+ type DataGridListDisplayConfig = {
5121
+ listItem: ListItemMapping;
5122
+ /**
5123
+ * Declarative layout of the list item. Controls grid template and region widths.
5124
+ */
5125
+ layout?: {
5126
+ /** CSS grid-template-columns value, e.g. 'auto 1fr auto' */
5127
+ templateColumns?: string;
5128
+ /** Gap between regions (px) */
5129
+ gap?: number;
5130
+ /** Leading (avatar/icon) box size in px */
5131
+ leadingSize?: number;
5132
+ /** Vertical spacing between primary/secondary/meta */
5133
+ verticalGap?: number;
5134
+ /** Regions order override */
5135
+ regionsOrder?: Array<'leading' | 'content' | 'trailing'>;
5136
+ };
5137
+ /**
5138
+ * Region placements: which fields (from dataRetrievalConfig columns or computed) render in which sub-area.
5139
+ */
5140
+ regions?: {
5141
+ /** Chip/badge meta items resolved from row fields */
5142
+ meta?: Array<{
5143
+ label?: FieldMappingValue;
5144
+ value: FieldMappingValue;
5145
+ color?: FieldMappingValue;
5146
+ }>;
5147
+ /**
5148
+ * Additional field renderers to show beneath secondary text (e.g., sub-meta list)
5149
+ */
5150
+ subMeta?: Array<{
5151
+ label?: FieldMappingValue;
5152
+ value: FieldMappingValue;
5153
+ color?: FieldMappingValue;
5154
+ }>;
5155
+ /** Trailing content (right side) */
5156
+ trailing?: {
5157
+ /** Priority dots: how many are filled (from row) and optional total */
5158
+ dots?: {
5159
+ count?: FieldMappingValue;
5160
+ color?: FieldMappingValue;
5161
+ total?: number;
5162
+ };
5163
+ /** Stacked lines with optional icon */
5164
+ lines?: Array<{
5165
+ icon?: string;
5166
+ text: FieldMappingValue;
5167
+ color?: FieldMappingValue;
5168
+ }>;
5169
+ };
5170
+ };
5171
+ };
5172
+ interface DataGridListOrganismProps {
5173
+ organism: OrganismDTO & {
5174
+ config: {
5175
+ props?: Record<string, unknown>;
5176
+ display?: DataGridListDisplayConfig;
5177
+ toolbar?: DataGridListToolbarConfig;
5178
+ dataRetrievalConfig?: {
5179
+ columns?: Array<Record<string, unknown>>;
5180
+ };
5181
+ };
5182
+ };
5183
+ onAction?: (payload: {
5184
+ action: any;
5185
+ row: Record<string, unknown>;
5186
+ }) => void;
5187
+ emptyState?: React.ReactNode;
5188
+ errorState?: (error: Error) => React.ReactNode;
5189
+ }
5190
+
5191
+ declare const DataGridListOrganism: react__default.NamedExoticComponent<DataGridListOrganismProps>;
4026
5192
 
4027
5193
  type OrganismProps = {
4028
5194
  organism: OrganismDTO$1;
@@ -4373,7 +5539,7 @@ declare const calendarConfiguratorDescriptor: {
4373
5539
  }];
4374
5540
  };
4375
5541
 
4376
- type OrganismConfiguratorDescriptor = typeof calendarConfiguratorDescriptor | typeof dataGridConfiguratorDescriptor;
5542
+ type OrganismConfiguratorDescriptor = typeof calendarConfiguratorDescriptor | typeof dataGridConfiguratorDescriptor | typeof calendarDataGridConfiguratorDescriptor | typeof dataGridListConfiguratorDescriptor;
4377
5543
  declare const organismConfiguratorsMap: Record<string, OrganismConfiguratorDescriptor>;
4378
5544
 
4379
5545
  declare const defaultTheme: Theme;
@@ -4406,4 +5572,4 @@ declare const toastStyles: _emotion_react.SerializedStyles;
4406
5572
 
4407
5573
  declare const useMediaQuery: (breakpointSize: BreakpointSizesTypes$1) => boolean;
4408
5574
 
4409
- export { AccordionMoleculeType, AccountButtonContext, AccountButtonContextType, AccountButtonProvider, AccountButtonProviderProps, ActionButtonCell, ActionButtonStyle, ActionEventType, ActionProperties, ActionType, ActionTypes, AdditionalContainerProps, AlertMolecule, AlertMoleculeProps, AlertMoleculeType, AnnotationsList, ApiContext, ApiInterface, ApiProvider, ArrayField, AvatarMoleculeType, AvatarTextCell, BackgroundImage, BadgeMolecule, BadgeMoleculeProps, BadgeMoleculeType, BaseActionConfig, BaseField, BaseMolecule, BaseMoleculeType, BaseSpeedDialItem, BaseStateValue, BaseTextButton, BasicTextField, BasicTextFieldMoleculeType, BasicTextFieldProps, BinaryRadioButtons, BinaryRadioButtonsMoleculeType, BinaryRadioButtonsProps, BooleanIconCell, BooleanProperties, BreakpointSizesTypes, Button, ButtonActionsContext, ButtonActionsContextType, ButtonActionsProvider, ButtonActionsProviderProps, ButtonMoleculeType, ButtonProps, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CalendarEventType, CalendarMoleculeType, CalendarOrganism, CalendarOrganismProps, CellRendererRegistry, Checkbox, CheckboxMoleculeType, CheckboxProps, Checklist, ChecklistItem, ChecklistItemType, ChecklistProperties, ChecklistProps, ChecklistsMoleculeType, ChipMolecule, ChipMoleculeProps, ChipMoleculeType, Circle, CircleBoxProps, CirclesWrapper, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColorProperties, ColumnActionConfig, ColumnBaseConfig, ColumnConfig, ColumnKind, ComponentColumnConfig, CompositeField, CompositeTarget, ConditionConfig, ConditionConfigProperties, ConditionCriteria, ConfigGroup, ConfigurationItem, ConfigurationItemInfo, ConfiguratorDescriptor, ConsentFieldMoleculeType, ConsentMolecule, ConsentType, Container, ContainerAlignItemsType, ContainerComponentProps, ContainerConfig, ContainerConfiguratorDescriptor, ContainerPositionType, ContainerProperties, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerTemplateType, ContainerType, ContainerWrapper, ContentWrapper, ContentWrapperProps, CountValidationTypes, CriteriaType, CurrencyCell, CurrencyInputFieldMoleculeType, CustomStep, CustomValidation, CustomValidationProps, CustomValidationRule, DataCaptureProperties, DataColumnConfig, DataConnectionValues, DataGridConfiguratorModel, DataGridOrganism, DataGridOrganismConfig, DataGridOrganismHostProps, DataGridOrganismProps, DataGridPage, DataGridQuery, DataModelFieldFormat, DataModelFieldFormatCodeTypes, DataModelFieldFormatValueTypes, DateCalendar, DateCalendarMoleculeProps, DateCalendarMoleculeType, DateCalendarProps, DateCell, DatePickerMolecule, DatePickerMoleculeProps, DatePickerMoleculeType, DateProperties, DefaultTextCell, Divider, DividerItemType, DividerMoleculeType, DividerProps, DownloadFile, Drawer, DrawerMoleculeType, DrawerState, EmailInputFieldMoleculeType, EmailLinkCell, ErrorText, EventCalendarConfigType, Field, FieldType, FontSizesTypes, FontWeight, FormContainerProps, FormDataStateConfig, FormOrganismItem, FormStateType, FormStepContainerProps, FormStepContext, FormStepContextProvider, FormStepContextProviderProps, FormStepContextType, GridSpan, HeaderTabs, HorizontalButtons, HorizontalButtonsProps, HorizontalPadding, Icon, IconButton, IconButtonProps, IconNames, IconProps, IconRenderer, IconRendererProps, IconWrapper, Image, ImageMoleculeType, ImageProperties, ImageProps, Input, InputFieldInternalConfigProps, InputIconProps, InputProps, LayoutContext, LayoutContextType, LayoutProvider, LayoutProviderProps, Link, LinkMoleculeType, LinkProperties, LinkProps, LinkTypes, LinkVariant, LucideIconName, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MaxRuleValidation, MenuMoleculeType, MetadataStateConfig, MetadataType, MinRuleValidation, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, ModalWrapper, Molecule, MoleculeConfiguratorDescriptor, MoleculeItemConfiguratorDescriptor, MoleculeItemTypes, MoleculeTypes, NumericInputFieldMoleculeType, ObjectStateProperties, Option, Organism, OrganismConfiguratorDescriptor, OrganismContext, OrganismContextProvider, OrganismContextProviderProps, OrganismContextType, OrganismItem, Padding, PaddingProps, PaddingVariants, PasswordFields, PasswordRuleValidation, PasswordSetup, PasswordSetupMoleculeType, PasswordSetupProps, PdfDocument, PdfDocumentProps, PhoneLinkCell, PhoneNumberInputFieldMoleculeType, PopupPropsType, PredefinedActionsConfig, PrimitiveField, RadioButtonInternalConfigProps, RadioButtons, RadioButtonsProps, RadioGroupWrapper, RatingCell, RatingMolecule, RatingMoleculeProps, RatingMoleculeType, RegularImage, RegularImageProps, RendererName, RichTextEditorProps, RichTextItemType, RichTextViewer, RuntimeApiResponseDTO, SegmentationType, Select, SelectInternalConfigurationOptions, SelectMolecule, SelectMoleculeOption, SelectMoleculeProps, SelectMoleculeType, SelectOption$1 as SelectOption, SelectProps, SeoTags, SetPasswordRuleValidation, SimpleTextMoleculeType, SizesTypes, SliderMolecule, SliderMoleculeProps, SliderMoleculeType, SliderProps, Spacer, SpacerProps, SpeedDial, SpeedDialActionItemProps, SpeedDialActionItemType, SpeedDialItem, SpeedDialItemType, SpeedDialMoleculeType, SpeedDialProps, Spinner, StateActionType, StateConfigType, StateContext, StateContextProvider, StateContextProviderProps, StateContextType, StateEventType, StateListenerConfigType, StateModifierConfigType, StateProperties, StatusChipCell, Stepper, StepperMoleculeType, StepperOrientation, StepperProps, StyleWrapper, SwitchMolecule, SwitchMoleculeProps, SwitchMoleculeType, TabsMoleculeType, TextAlign, TextButton, TextButtonProps, TextElementProps, TextItemType, TextMolecule, TextMoleculeType, TextProperties, TextProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, TimePickerMolecule, TimePickerMoleculeProps, TimePickerMoleculeType, Tooltip, TooltipProps, TouchableOpacity, TouchableOpacityProps, UnionField, UnionVariant, ValidationRules, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoMoleculeType, VideoProperties, VideoProps, VisitMoleculeProps, VisitMoleculeType, WhenCondition, WrappedContainerType, ZealTheme, ZealThemeProvider, ZealUIModal, ZealUIModalProps, calendarConfiguratorDescriptor, containerConfiguratorsMap, dataGridConfiguratorDescriptor, defaultTheme, moleculeConfiguratorsMap, moleculeItemConfiguratorsMap, organismConfiguratorsMap, passwordValidationMapper, richTextDefaultValue, toast, toastStyles, useAccountButtonContext, useApi, useButtonActionsContext, useDataGridOrganism, useFormStepContext, useLayoutContext, useMediaQuery, useMlrRichTextViewerContext, useOrganismContext, useStateContext };
5575
+ export { AccordionMoleculeType, AccountButtonContext, AccountButtonContextType, AccountButtonProvider, AccountButtonProviderProps, ActionButtonCell, ActionButtonStyle, ActionEventType, ActionProperties, ActionType, ActionTypes, AdditionalContainerProps, AlertMolecule, AlertMoleculeProps, AlertMoleculeType, AnnotationsList, ApiContext, ApiInterface, ApiProvider, ArrayField, AvatarMoleculeType, AvatarTextCell, BackgroundImage, BadgeMolecule, BadgeMoleculeProps, BadgeMoleculeType, BaseActionConfig, BaseField, BaseMolecule, BaseMoleculeType, BaseSpeedDialItem, BaseStateValue, BaseTextButton, BasicTextField, BasicTextFieldMoleculeType, BasicTextFieldProps, BinaryRadioButtons, BinaryRadioButtonsMoleculeType, BinaryRadioButtonsProps, BooleanIconCell, BooleanProperties, BreakpointSizesTypes, Button, ButtonActionsContext, ButtonActionsContextType, ButtonActionsProvider, ButtonActionsProviderProps, ButtonMoleculeType, ButtonProps, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, CalendarDataGridData, CalendarDataGridDataRetrievalConfig, CalendarDataGridDisplayConfig, CalendarDataGridEventBindings, CalendarDataGridOrganism, CalendarDataGridOrganismProps, CalendarDataGridQuery, CalendarDataGridResourceBindings, CalendarDataGridToolbarConfig, CalendarEventType, CalendarMoleculeType, CalendarOrganism, CalendarOrganismProps, CellRendererRegistry, Checkbox, CheckboxMoleculeType, CheckboxProps, Checklist, ChecklistItem, ChecklistItemType, ChecklistProperties, ChecklistProps, ChecklistsMoleculeType, ChipMolecule, ChipMoleculeProps, ChipMoleculeType, Circle, CircleBoxProps, CirclesWrapper, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColorProperties, ColumnActionConfig, ColumnBaseConfig, ColumnConfig, ColumnKind, ComponentColumnConfig, CompositeField, CompositeTarget, ConditionConfig, ConditionConfigProperties, ConditionCriteria, ConfigGroup, ConfigurationItem, ConfigurationItemInfo, ConfiguratorDescriptor, ConsentFieldMoleculeType, ConsentMolecule, ConsentType, Container, ContainerAlignItemsType, ContainerComponentProps, ContainerConfig, ContainerConfiguratorDescriptor, ContainerPositionType, ContainerProperties, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerTemplateType, ContainerType, ContainerWrapper, ContentWrapper, ContentWrapperProps, CountValidationTypes, CriteriaType, CurrencyCell, CurrencyInputFieldMoleculeType, CustomStep, CustomValidation, CustomValidationProps, CustomValidationRule, DataCaptureProperties, DataColumnConfig, DataConnectionValues, DataGridConfiguratorModel, DataGridListA11yConfig, DataGridListConfig, DataGridListDisplayConfig, DataGridListLayoutConfig, DataGridListMappingConfig, DataGridListOrganism, DataGridListOrganismProps, DataGridListToolbarConfig, DataGridOrganism, DataGridOrganismConfig, DataGridOrganismHostProps, DataGridOrganismProps, DataGridPage, DataGridQuery, DataGridViewMode, DataModelFieldFormat, DataModelFieldFormatCodeTypes, DataModelFieldFormatValueTypes, DateCalendar, DateCalendarMoleculeProps, DateCalendarMoleculeType, DateCalendarProps, DateCell, DatePickerMolecule, DatePickerMoleculeProps, DatePickerMoleculeType, DateProperties, DefaultTextCell, Divider, DividerItemType, DividerMoleculeType, DividerProps, DownloadFile, Drawer, DrawerMoleculeType, DrawerState, EmailInputFieldMoleculeType, EmailLinkCell, ErrorText, EventCalendarConfigType, Field, FieldType, FontSizesTypes, FontWeight, FormContainerProps, FormDataStateConfig, FormOrganismItem, FormStateType, FormStepContainerProps, FormStepContext, FormStepContextProvider, FormStepContextProviderProps, FormStepContextType, GridSpan, HeaderTabs, HorizontalButtons, HorizontalButtonsProps, HorizontalPadding, Icon, IconButton, IconButtonProps, IconNames, IconProps, IconRenderer, IconRendererProps, IconWrapper, Image, ImageMoleculeType, ImageProperties, ImageProps, Input, InputFieldInternalConfigProps, InputIconProps, InputProps, LayoutContext, LayoutContextType, LayoutProvider, LayoutProviderProps, Link, LinkMoleculeType, LinkProperties, LinkProps, LinkTypes, LinkVariant, ListItemMapping, LucideIconName, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MaxRuleValidation, MenuMoleculeType, MetadataStateConfig, MetadataType, MinRuleValidation, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, ModalWrapper, Molecule, MoleculeConfiguratorDescriptor, MoleculeItemConfiguratorDescriptor, MoleculeItemTypes, MoleculeTypes, NumericInputFieldMoleculeType, ObjectStateProperties, Option, Organism, OrganismConfiguratorDescriptor, OrganismContext, OrganismContextProvider, OrganismContextProviderProps, OrganismContextType, OrganismItem, Padding, PaddingProps, PaddingVariants, PasswordFields, PasswordRuleValidation, PasswordSetup, PasswordSetupMoleculeType, PasswordSetupProps, PdfDocument, PdfDocumentProps, PhoneLinkCell, PhoneNumberInputFieldMoleculeType, PopupPropsType, PredefinedActionsConfig, PrimitiveField, RadioButtonInternalConfigProps, RadioButtons, RadioButtonsProps, RadioGroupWrapper, RatingCell, RatingMolecule, RatingMoleculeProps, RatingMoleculeType, RegularImage, RegularImageProps, RendererName, RichTextEditorProps, RichTextItemType, RichTextViewer, RuntimeApiResponseDTO, SegmentationType, Select, SelectInternalConfigurationOptions, SelectMolecule, SelectMoleculeOption, SelectMoleculeProps, SelectMoleculeType, SelectOption$1 as SelectOption, SelectProps, SeoTags, SetPasswordRuleValidation, SimpleTextMoleculeType, SizesTypes, SliderMolecule, SliderMoleculeProps, SliderMoleculeType, SliderProps, Spacer, SpacerProps, SpeedDial, SpeedDialActionItemProps, SpeedDialActionItemType, SpeedDialItem, SpeedDialItemType, SpeedDialMoleculeType, SpeedDialProps, Spinner, StateActionType, StateConfigType, StateContext, StateContextProvider, StateContextProviderProps, StateContextType, StateEventType, StateListenerConfigType, StateModifierConfigType, StateProperties, StatusChipCell, Stepper, StepperMoleculeType, StepperOrientation, StepperProps, StyleWrapper, SwitchMolecule, SwitchMoleculeProps, SwitchMoleculeType, TabsMoleculeType, TextAlign, TextButton, TextButtonProps, TextElementProps, TextItemType, TextMolecule, TextMoleculeType, TextProperties, TextProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, TimePickerMolecule, TimePickerMoleculeProps, TimePickerMoleculeType, TimelineConfig, Tooltip, TooltipProps, TouchableOpacity, TouchableOpacityProps, UnionField, UnionVariant, ValidationRules, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoMoleculeType, VideoProperties, VideoProps, VisitMoleculeProps, VisitMoleculeType, WhenCondition, WrappedContainerType, ZealTheme, ZealThemeProvider, ZealUIModal, ZealUIModalProps, calendarConfiguratorDescriptor, calendarDataGridConfiguratorDescriptor, containerConfiguratorsMap, dataGridConfiguratorDescriptor, dataGridListConfiguratorDescriptor, defaultTheme, moleculeConfiguratorsMap, moleculeItemConfiguratorsMap, organismConfiguratorsMap, passwordValidationMapper, richTextDefaultValue, toast, toastStyles, useAccountButtonContext, useApi, useButtonActionsContext, useCalendarDataGridData, useDataGridOrganism, useFormStepContext, useLayoutContext, useMediaQuery, useMlrRichTextViewerContext, useOrganismContext, useStateContext };