@abdellatifui/react 3.2.30 → 3.2.32

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 (194) hide show
  1. package/dist/nextgen.css +1 -0
  2. package/dist/nextgen.d.ts +1433 -0
  3. package/dist/nextgen.js +22798 -0
  4. package/package.json +1 -1
  5. package/dist/types/components/Tables/NextGen/main/plugins/CustomDetailViewer/CustomDetailViewer.d.ts +0 -3
  6. package/dist/types/components/Tables/NextGen/main/plugins/CustomDetailViewer/CustomDetailViewer.d.ts.map +0 -1
  7. package/dist/types/components/Tables/NextGen/main/plugins/ExpandableRow/ExpandableRow.d.ts +0 -4
  8. package/dist/types/components/Tables/NextGen/main/plugins/ExpandableRow/ExpandableRow.d.ts.map +0 -1
  9. package/dist/types/components/Tables/NextGen/main/plugins/FilterLayout/FilterLayout.d.ts +0 -2
  10. package/dist/types/components/Tables/NextGen/main/plugins/FilterLayout/FilterLayout.d.ts.map +0 -1
  11. package/dist/types/components/Tables/NextGen/main/plugins/ManageColumns/ManageColumns.d.ts +0 -3
  12. package/dist/types/components/Tables/NextGen/main/plugins/ManageColumns/ManageColumns.d.ts.map +0 -1
  13. package/dist/types/components/Tables/NextGen/main/plugins/TableSidebar/TableSidebar.d.ts +0 -2
  14. package/dist/types/components/Tables/NextGen/main/plugins/TableSidebar/TableSidebar.d.ts.map +0 -1
  15. package/dist/types/components/Tables/NextGen/main/plugins/Topbar/Topbar.d.ts +0 -2
  16. package/dist/types/components/Tables/NextGen/main/plugins/Topbar/Topbar.d.ts.map +0 -1
  17. package/dist/types/components/Tables/NextGen/main/plugins/context/TableGlobalContext.d.ts.map +0 -1
  18. package/dist/types/components/Tables/NextGen/main/plugins/useCustomGrouping/useCustomGrouping.d.ts +0 -3
  19. package/dist/types/components/Tables/NextGen/main/plugins/useCustomGrouping/useCustomGrouping.d.ts.map +0 -1
  20. package/dist/types/components/Tables/NextGen/main/utils/utils.d.ts +0 -5
  21. package/dist/types/components/Tables/NextGen/main/utils/utils.d.ts.map +0 -1
  22. package/dist/types/components/Tabs/shadcn/TabItem.d.ts +0 -26
  23. package/dist/types/components/Tabs/shadcn/TabItem.d.ts.map +0 -1
  24. package/dist/types/components/Tabs/shadcn/main.d.ts +0 -17
  25. package/dist/types/components/Tabs/shadcn/main.d.ts.map +0 -1
  26. package/dist/types/components/Toast/Mainframe.d.ts +0 -5
  27. package/dist/types/components/Toast/Mainframe.d.ts.map +0 -1
  28. package/dist/types/components/Toast/ToasterSideColor.d.ts +0 -2
  29. package/dist/types/components/Toast/ToasterSideColor.d.ts.map +0 -1
  30. package/dist/types/components/Toast/hooks/useToast.d.ts +0 -1
  31. package/dist/types/components/Toast/hooks/useToast.d.ts.map +0 -1
  32. package/dist/types/components/Toast/main.d.ts +0 -18
  33. package/dist/types/components/Toast/main.d.ts.map +0 -1
  34. package/dist/types/components/Toggle/ToggleGroup.d.ts +0 -4
  35. package/dist/types/components/Toggle/ToggleGroup.d.ts.map +0 -1
  36. package/dist/types/components/Toggle/ToggleItem.d.ts +0 -2
  37. package/dist/types/components/Toggle/ToggleItem.d.ts.map +0 -1
  38. package/dist/types/components/WhatsNew/Whatsnew.d.ts +0 -4
  39. package/dist/types/components/WhatsNew/Whatsnew.d.ts.map +0 -1
  40. package/dist/types/components/types.d.ts +0 -686
  41. package/dist/types/components/types.d.ts.map +0 -1
  42. package/dist/types/components/ui/accordion.d.ts +0 -8
  43. package/dist/types/components/ui/accordion.d.ts.map +0 -1
  44. package/dist/types/components/ui/alert-dialog.d.ts +0 -21
  45. package/dist/types/components/ui/alert-dialog.d.ts.map +0 -1
  46. package/dist/types/components/ui/badge.d.ts +0 -10
  47. package/dist/types/components/ui/badge.d.ts.map +0 -1
  48. package/dist/types/components/ui/button.d.ts +0 -12
  49. package/dist/types/components/ui/button.d.ts.map +0 -1
  50. package/dist/types/components/ui/card.d.ts +0 -9
  51. package/dist/types/components/ui/card.d.ts.map +0 -1
  52. package/dist/types/components/ui/carousel.d.ts +0 -19
  53. package/dist/types/components/ui/carousel.d.ts.map +0 -1
  54. package/dist/types/components/ui/checkbox.d.ts +0 -5
  55. package/dist/types/components/ui/checkbox.d.ts.map +0 -1
  56. package/dist/types/components/ui/command.d.ts +0 -83
  57. package/dist/types/components/ui/command.d.ts.map +0 -1
  58. package/dist/types/components/ui/context-menu.d.ts +0 -28
  59. package/dist/types/components/ui/context-menu.d.ts.map +0 -1
  60. package/dist/types/components/ui/dialog.d.ts +0 -20
  61. package/dist/types/components/ui/dialog.d.ts.map +0 -1
  62. package/dist/types/components/ui/dropdown-menu.d.ts +0 -28
  63. package/dist/types/components/ui/dropdown-menu.d.ts.map +0 -1
  64. package/dist/types/components/ui/hover-card.d.ts +0 -7
  65. package/dist/types/components/ui/hover-card.d.ts.map +0 -1
  66. package/dist/types/components/ui/input.d.ts +0 -6
  67. package/dist/types/components/ui/input.d.ts.map +0 -1
  68. package/dist/types/components/ui/label.d.ts +0 -6
  69. package/dist/types/components/ui/label.d.ts.map +0 -1
  70. package/dist/types/components/ui/popover.d.ts +0 -8
  71. package/dist/types/components/ui/popover.d.ts.map +0 -1
  72. package/dist/types/components/ui/resizable.d.ts +0 -24
  73. package/dist/types/components/ui/resizable.d.ts.map +0 -1
  74. package/dist/types/components/ui/scroll-area.d.ts +0 -6
  75. package/dist/types/components/ui/scroll-area.d.ts.map +0 -1
  76. package/dist/types/components/ui/select.d.ts +0 -14
  77. package/dist/types/components/ui/select.d.ts.map +0 -1
  78. package/dist/types/components/ui/separator.d.ts +0 -5
  79. package/dist/types/components/ui/separator.d.ts.map +0 -1
  80. package/dist/types/components/ui/slider.d.ts +0 -5
  81. package/dist/types/components/ui/slider.d.ts.map +0 -1
  82. package/dist/types/components/ui/switch.d.ts +0 -5
  83. package/dist/types/components/ui/switch.d.ts.map +0 -1
  84. package/dist/types/components/ui/tabs.d.ts +0 -14
  85. package/dist/types/components/ui/tabs.d.ts.map +0 -1
  86. package/dist/types/components/ui/textarea.d.ts +0 -6
  87. package/dist/types/components/ui/textarea.d.ts.map +0 -1
  88. package/dist/types/components/ui/toggle.d.ts +0 -13
  89. package/dist/types/components/ui/toggle.d.ts.map +0 -1
  90. package/dist/types/components/ui/tooltip.d.ts +0 -8
  91. package/dist/types/components/ui/tooltip.d.ts.map +0 -1
  92. package/dist/types/components/utils/hotkeyregister.d.ts +0 -16
  93. package/dist/types/components/utils/hotkeyregister.d.ts.map +0 -1
  94. package/dist/types/components/utils/optics.d.ts +0 -2
  95. package/dist/types/components/utils/optics.d.ts.map +0 -1
  96. package/dist/types/components/utils/useFont.d.ts +0 -9
  97. package/dist/types/components/utils/useFont.d.ts.map +0 -1
  98. package/dist/types/components/utils/utils.d.ts +0 -9
  99. package/dist/types/components/utils/utils.d.ts.map +0 -1
  100. package/dist/types/lib/utils.d.ts +0 -3
  101. package/dist/types/lib/utils.d.ts.map +0 -1
  102. package/dist/types/main.d.ts +0 -2
  103. package/dist/types/main.d.ts.map +0 -1
  104. package/dist/types/stories/Alerts/alerts.stories.d.ts +0 -10
  105. package/dist/types/stories/Alerts/alerts.stories.d.ts.map +0 -1
  106. package/dist/types/stories/Alerts/notify.stories.d.ts +0 -8
  107. package/dist/types/stories/Alerts/notify.stories.d.ts.map +0 -1
  108. package/dist/types/stories/Alerts/toast.stories.d.ts +0 -7
  109. package/dist/types/stories/Alerts/toast.stories.d.ts.map +0 -1
  110. package/dist/types/stories/Api/api.stories.d.ts +0 -25
  111. package/dist/types/stories/Api/api.stories.d.ts.map +0 -1
  112. package/dist/types/stories/App.d.ts +0 -3
  113. package/dist/types/stories/App.d.ts.map +0 -1
  114. package/dist/types/stories/App.stories.d.ts +0 -7
  115. package/dist/types/stories/App.stories.d.ts.map +0 -1
  116. package/dist/types/stories/Boxes/Body.stories.d.ts +0 -13
  117. package/dist/types/stories/Boxes/Body.stories.d.ts.map +0 -1
  118. package/dist/types/stories/Boxes/Container.stories.d.ts +0 -14
  119. package/dist/types/stories/Boxes/Container.stories.d.ts.map +0 -1
  120. package/dist/types/stories/Boxes/VirtualContainer.stories.d.ts +0 -8
  121. package/dist/types/stories/Boxes/VirtualContainer.stories.d.ts.map +0 -1
  122. package/dist/types/stories/Boxes/accordion.stories.d.ts +0 -8
  123. package/dist/types/stories/Boxes/accordion.stories.d.ts.map +0 -1
  124. package/dist/types/stories/Boxes/dialogpane.stories.d.ts +0 -15
  125. package/dist/types/stories/Boxes/dialogpane.stories.d.ts.map +0 -1
  126. package/dist/types/stories/Boxes/panel.stories.d.ts +0 -17
  127. package/dist/types/stories/Boxes/panel.stories.d.ts.map +0 -1
  128. package/dist/types/stories/Boxes/plainmodel.stories.d.ts +0 -14
  129. package/dist/types/stories/Boxes/plainmodel.stories.d.ts.map +0 -1
  130. package/dist/types/stories/Buttons/Button.stories.d.ts +0 -12
  131. package/dist/types/stories/Buttons/Button.stories.d.ts.map +0 -1
  132. package/dist/types/stories/Buttons/IconButton.stories.d.ts +0 -13
  133. package/dist/types/stories/Buttons/IconButton.stories.d.ts.map +0 -1
  134. package/dist/types/stories/Buttons/SplitButton.stories.d.ts +0 -9
  135. package/dist/types/stories/Buttons/SplitButton.stories.d.ts.map +0 -1
  136. package/dist/types/stories/Buttons/copybtn.stories.d.ts +0 -10
  137. package/dist/types/stories/Buttons/copybtn.stories.d.ts.map +0 -1
  138. package/dist/types/stories/Buttons/newbuttons.stories.d.ts +0 -25
  139. package/dist/types/stories/Buttons/newbuttons.stories.d.ts.map +0 -1
  140. package/dist/types/stories/Buttons/switch.stories.d.ts +0 -7
  141. package/dist/types/stories/Buttons/switch.stories.d.ts.map +0 -1
  142. package/dist/types/stories/Contextmenu/contextmenu.stories.d.ts +0 -22
  143. package/dist/types/stories/Contextmenu/contextmenu.stories.d.ts.map +0 -1
  144. package/dist/types/stories/Help/help.stories.d.ts +0 -7
  145. package/dist/types/stories/Help/help.stories.d.ts.map +0 -1
  146. package/dist/types/stories/Help/helpIcon.stories.d.ts +0 -7
  147. package/dist/types/stories/Help/helpIcon.stories.d.ts.map +0 -1
  148. package/dist/types/stories/Help/tooltip.stories.d.ts +0 -9
  149. package/dist/types/stories/Help/tooltip.stories.d.ts.map +0 -1
  150. package/dist/types/stories/Inputs/input.stories.d.ts +0 -20
  151. package/dist/types/stories/Inputs/input.stories.d.ts.map +0 -1
  152. package/dist/types/stories/Legends/legends.stories.d.ts +0 -9
  153. package/dist/types/stories/Legends/legends.stories.d.ts.map +0 -1
  154. package/dist/types/stories/Map/map.stories.d.ts +0 -53
  155. package/dist/types/stories/Map/map.stories.d.ts.map +0 -1
  156. package/dist/types/stories/Properties/item.stories.d.ts +0 -8
  157. package/dist/types/stories/Properties/item.stories.d.ts.map +0 -1
  158. package/dist/types/stories/RadioGroups/radiogroups.stories.d.ts +0 -8
  159. package/dist/types/stories/RadioGroups/radiogroups.stories.d.ts.map +0 -1
  160. package/dist/types/stories/Spinner/InlineSpinner.stories.d.ts +0 -11
  161. package/dist/types/stories/Spinner/InlineSpinner.stories.d.ts.map +0 -1
  162. package/dist/types/stories/Spinner/SpinnerDialog.stories.d.ts +0 -16
  163. package/dist/types/stories/Spinner/SpinnerDialog.stories.d.ts.map +0 -1
  164. package/dist/types/stories/Spinner/spinnerbox.stories.d.ts +0 -16
  165. package/dist/types/stories/Spinner/spinnerbox.stories.d.ts.map +0 -1
  166. package/dist/types/stories/Tables/DataTable.stories.d.ts +0 -13
  167. package/dist/types/stories/Tables/DataTable.stories.d.ts.map +0 -1
  168. package/dist/types/stories/Tables/MuiTable.stories.d.ts +0 -8
  169. package/dist/types/stories/Tables/MuiTable.stories.d.ts.map +0 -1
  170. package/dist/types/stories/Tables/informationtable.stories.d.ts +0 -14
  171. package/dist/types/stories/Tables/informationtable.stories.d.ts.map +0 -1
  172. package/dist/types/stories/Tabs/tabs.stories.d.ts +0 -13
  173. package/dist/types/stories/Tabs/tabs.stories.d.ts.map +0 -1
  174. package/dist/types/stories/Toggle Switches/toggle-group.stories.d.ts +0 -16
  175. package/dist/types/stories/Toggle Switches/toggle-group.stories.d.ts.map +0 -1
  176. package/dist/types/stories/Toggle Switches/toggle.stories.d.ts +0 -16
  177. package/dist/types/stories/Toggle Switches/toggle.stories.d.ts.map +0 -1
  178. package/dist/types/stories/fonts/fonts.stories.d.ts +0 -32
  179. package/dist/types/stories/fonts/fonts.stories.d.ts.map +0 -1
  180. package/dist/types/stories/paragraphs/paragraph.stories.d.ts +0 -7
  181. package/dist/types/stories/paragraphs/paragraph.stories.d.ts.map +0 -1
  182. package/dist/types/stories/playground/ApiNotify.stories.d.ts +0 -9
  183. package/dist/types/stories/playground/ApiNotify.stories.d.ts.map +0 -1
  184. package/dist/types/stories/playground/ModelSetChildrenApi.stories.d.ts +0 -8
  185. package/dist/types/stories/playground/ModelSetChildrenApi.stories.d.ts.map +0 -1
  186. package/dist/types/stories/playground/Tailwindclass.stories.d.ts +0 -9
  187. package/dist/types/stories/playground/Tailwindclass.stories.d.ts.map +0 -1
  188. package/dist/types/stories/playground/spinnerANDdialog.stories.d.ts +0 -7
  189. package/dist/types/stories/playground/spinnerANDdialog.stories.d.ts.map +0 -1
  190. package/dist/types/stories/sidebar/sidebar.stories.d.ts +0 -9
  191. package/dist/types/stories/sidebar/sidebar.stories.d.ts.map +0 -1
  192. package/dist/types/stories/whatsnew/whatsnew.stories.d.ts +0 -9
  193. package/dist/types/stories/whatsnew/whatsnew.stories.d.ts.map +0 -1
  194. package/dist/types/tsconfig.app.tsbuildinfo +0 -1
@@ -1,686 +0,0 @@
1
- import React from 'react';
2
- import { type AgGridReactProps } from "ag-grid-react";
3
- import { type MapProps, type ViewState } from 'react-map-gl/maplibre';
4
- export { type TooltipProps } from './Help/tooltip';
5
- export { type SpinnerDialogProps } from './Spinner/SpinnerDialog';
6
- export { type TinnyHelpProps } from './Help/TinnyHelp';
7
- export { type UseApiProps } from './Api/useApi';
8
- export { type AutocompeleteProps } from '@/components/Inputs/Autocomplete';
9
- export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
10
- variant?: 'primary' | 'transparent' | 'secondary' | 'danger' | 'danger2' | 'green' | 'ghost' | 'dangerghost';
11
- size?: 'button' | 'sm' | 'lg' | 'xl';
12
- border?: boolean | 'ghost';
13
- disable?: boolean;
14
- hover?: boolean | 'ghost';
15
- addClass?: string[];
16
- autoFocus?: boolean;
17
- icon?: React.ReactNode;
18
- disableAfterClick?: boolean;
19
- tooltip?: string;
20
- outline?: boolean;
21
- asChild?: boolean;
22
- }
23
- export interface IconButtonProps extends ButtonProps {
24
- icon: React.ReactNode;
25
- size?: 'sm' | 'md' | 'lg';
26
- }
27
- export interface CopyButtonProps extends ButtonProps {
28
- text: string;
29
- onCopy?: (text: string) => void;
30
- }
31
- export interface SwapIconButtonProps extends ButtonProps {
32
- icon1: React.ReactNode;
33
- icon2: React.ReactNode;
34
- state?: boolean;
35
- onSwap?: (state: boolean) => void;
36
- }
37
- export interface MenuButtonProps extends ButtonProps {
38
- menuItems: Array<{
39
- label: string;
40
- action: () => void;
41
- icon?: React.ReactNode;
42
- }>;
43
- }
44
- export interface SplitButtonProps extends ButtonProps {
45
- primaryAction: () => void;
46
- secondaryActions: Array<{
47
- label: string;
48
- action: () => void;
49
- icon?: React.ReactNode;
50
- }>;
51
- }
52
- export interface SwitchProps {
53
- checked?: boolean;
54
- onCheckedChange?: (checked: boolean) => void;
55
- disabled?: boolean;
56
- className?: string;
57
- }
58
- export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
59
- title?: string;
60
- padding?: boolean | 'sm' | 'lg' | 'xl';
61
- resizable?: boolean | 'y' | 'x';
62
- color?: 'primary' | 'secondary';
63
- border?: boolean | 'blue';
64
- shadow?: boolean | 'sm' | 'xl' | 'xxl';
65
- }
66
- export interface PanelProps extends ContainerProps {
67
- header?: React.ReactNode;
68
- footer?: React.ReactNode;
69
- collapsible?: boolean;
70
- defaultCollapsed?: boolean;
71
- }
72
- export interface DialogPanelProps extends ContainerProps {
73
- header: string;
74
- collapsible?: boolean;
75
- close?: boolean;
76
- onClose?: () => void;
77
- }
78
- export interface ScrollAreaProps extends ContainerProps {
79
- orientation?: 'horizontal' | 'vertical';
80
- scrollHideDelay?: number;
81
- }
82
- export interface HorizontalDivProps extends ContainerProps {
83
- gap?: number;
84
- align?: 'start' | 'center' | 'end';
85
- justify?: 'start' | 'center' | 'end' | 'between';
86
- }
87
- export interface VirtualContainerProps extends ContainerProps {
88
- itemCount: number;
89
- itemHeight: number;
90
- renderItem: (index: number) => React.ReactNode;
91
- }
92
- export interface AppBodyProps extends ContainerProps {
93
- sidebar?: React.ReactNode;
94
- header?: React.ReactNode;
95
- footer?: React.ReactNode;
96
- }
97
- export interface MainFrameProps extends ContainerProps {
98
- title?: string;
99
- subtitle?: string;
100
- actions?: React.ReactNode;
101
- }
102
- export interface ModelProps {
103
- children?: React.ReactNode;
104
- bodyClick?: boolean;
105
- className?: string;
106
- variant?: 'transparent' | 'blur' | 'dimmed';
107
- inline?: boolean;
108
- hideOnContextMenu?: boolean;
109
- onBodyClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
110
- blur?: boolean;
111
- }
112
- export interface ModelHandle {
113
- open: () => void;
114
- close: () => void;
115
- readonly isOpen: boolean;
116
- }
117
- export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
118
- placeholder: string;
119
- size: 'screen' | 'frequency' | 'full';
120
- description: string;
121
- inputRef?: object;
122
- invalid?: string;
123
- type?: string;
124
- defaultValue?: string;
125
- value?: string;
126
- multiple?: boolean;
127
- loading?: boolean;
128
- controlled?: boolean;
129
- tmpdescription?: {
130
- state: boolean;
131
- message: string;
132
- };
133
- onChange?: (value: string) => void;
134
- }
135
- export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
136
- placeholder: string;
137
- rows?: number;
138
- maxLength?: number;
139
- showCharacterCount?: boolean;
140
- }
141
- export interface FrequencyProps {
142
- value: number;
143
- onChange: (value: number) => void;
144
- min?: number;
145
- max?: number;
146
- step?: number;
147
- unit?: string;
148
- }
149
- export interface TableProps {
150
- tid: string | number;
151
- dataset: any[];
152
- aggrid: AgGridReactProps;
153
- pageSize: number;
154
- rowHeight: string;
155
- tableName: string;
156
- enablePagination?: boolean;
157
- enableContextMenu?: boolean;
158
- rowSelection?: string;
159
- toolbarBtns?: any[];
160
- hidden?: any[];
161
- enableExpand: boolean;
162
- autoSizeStrategy?: string;
163
- headerMapper?: Array<{
164
- key: string;
165
- value: any;
166
- }>;
167
- menuItems?: Array<{
168
- label: string;
169
- icon: any;
170
- action: () => void;
171
- type: string;
172
- size: string;
173
- }>;
174
- onRowClick?: (params: any, rowData: any, rows: any[]) => void;
175
- onRowDoubleClicked?: (params: any, rowData: any) => void;
176
- onCellClick?: (params: any, value: any, field: string) => void;
177
- onTableBuilt?: (callback: any) => void;
178
- onExpand?: (params: any) => void;
179
- onRefresh?: (callback: any) => void;
180
- onChangeItem: {
181
- key: string;
182
- operation: void;
183
- };
184
- onChange?: Array<{
185
- key: string;
186
- operation: void;
187
- }>;
188
- ready?: boolean;
189
- multiple?: boolean;
190
- autoHideSpinner?: boolean;
191
- aggridProps?: Partial<AgGridReactProps>;
192
- className?: string;
193
- topbar?: boolean;
194
- hideFromTable?: any[];
195
- formater?: any;
196
- viewAsArray?: any[];
197
- filter?: any;
198
- groupBy?: any;
199
- onMultiRowSelection?: (params: any, rows: any[]) => void;
200
- }
201
- export interface MuiTableProps {
202
- dataset: any[];
203
- columns?: Array<{
204
- accessorKey: string;
205
- header: string;
206
- size?: number;
207
- enableSorting?: boolean;
208
- enableColumnFilter?: boolean;
209
- }>;
210
- enableRowSelection?: boolean;
211
- enableColumnResizing?: boolean;
212
- enableColumnDragging?: boolean;
213
- enableColumnOrdering?: boolean;
214
- onRowSelectionChange?: (rows: any[]) => void;
215
- className?: string;
216
- }
217
- export interface InformationTableProps {
218
- data: any[];
219
- columns: Array<{
220
- key: string;
221
- label: string;
222
- render?: (value: any, row: any) => React.ReactNode;
223
- }>;
224
- sortable?: boolean;
225
- filterable?: boolean;
226
- pagination?: boolean;
227
- pageSize?: number;
228
- className?: string;
229
- }
230
- export interface SpinnerProps {
231
- variant?: 'blur' | 'primary' | 'white' | 'dark' | 'transparent';
232
- size?: 'xs' | 'small' | 'large';
233
- text?: string;
234
- timeout?: boolean;
235
- period?: number;
236
- onAbort?: () => void;
237
- className?: string;
238
- }
239
- export interface InlineSpinnerProps extends SpinnerProps {
240
- inline?: boolean;
241
- defaultOpen?: boolean;
242
- modelClassName?: string | Record<string, any>;
243
- }
244
- export interface InlineSpinnerHandle extends ModelHandle {
245
- }
246
- export interface SpinnerDialogProps extends SpinnerProps {
247
- isOpen: boolean;
248
- onClose?: () => void;
249
- title?: string;
250
- message?: string;
251
- }
252
- export interface AdvancedSpinnerProps extends SpinnerProps {
253
- type?: 'dots' | 'bars' | 'pulse' | 'ring';
254
- color?: string;
255
- thickness?: number;
256
- }
257
- export interface ToastProps {
258
- item: {
259
- id: string;
260
- header: string;
261
- body: string;
262
- type: 'alert' | 'error' | 'warning' | 'info' | 'progress' | 'success' | null;
263
- duration?: number;
264
- buttons: any[];
265
- };
266
- duration?: number;
267
- }
268
- export interface MainframeProps {
269
- item: {
270
- id: string;
271
- header: string;
272
- body: string;
273
- type: string | null;
274
- duration?: number;
275
- buttons: any[];
276
- };
277
- }
278
- export interface AccordionGroupProps {
279
- multiple?: boolean;
280
- children: React.ReactNode;
281
- border?: boolean;
282
- onChange?: (params: {
283
- value: any;
284
- props: any;
285
- api: any;
286
- }) => void;
287
- onOpen?: (params: {
288
- value: any;
289
- props: any;
290
- api: any;
291
- }) => void;
292
- onClose?: (params: {
293
- value: any;
294
- props: any;
295
- api: any;
296
- }) => void;
297
- }
298
- export interface AccordionItemProps {
299
- value: string;
300
- header: React.ReactNode;
301
- children: React.ReactNode;
302
- disabled?: boolean;
303
- className?: string;
304
- }
305
- export interface Tab {
306
- value: string;
307
- label: string;
308
- content: React.ReactNode;
309
- default?: boolean;
310
- disabled?: boolean;
311
- icon?: React.ReactNode;
312
- }
313
- export interface ShadcnTabsProps {
314
- tabs: Tab[];
315
- onChange?: (tab: Tab, value: string) => void;
316
- className?: string;
317
- size?: 'full' | string;
318
- body?: boolean;
319
- theme?: 'minimal' | 'modern';
320
- outline?: boolean;
321
- center?: boolean;
322
- border?: boolean;
323
- full?: boolean;
324
- }
325
- export interface TabItemProps {
326
- tab: Tab;
327
- isActive?: boolean;
328
- onClick?: () => void;
329
- className?: string;
330
- }
331
- export interface NetworkMapProps {
332
- nodes: object[];
333
- connections: object[];
334
- linkHighlightedColorHex: string;
335
- defaultLinkColorHex: string;
336
- className: string;
337
- hideLinksOnDrag: boolean;
338
- showHoveredLinksOnly: boolean;
339
- showGoNodeControlButton: boolean;
340
- draggingMode: boolean;
341
- maxZoomOutForLinkCount: number;
342
- nodeSizeScaler: number;
343
- boundMargin: number;
344
- defaultAnimationLinkColor: string;
345
- linkAnimation: boolean;
346
- debug: boolean;
347
- staticMapColor: string;
348
- isolateNonSelectedLinksOnNodeClick: boolean;
349
- showLinkCount: boolean;
350
- showEndpoints: boolean;
351
- MapLogo: React.ReactNode;
352
- MapLogoClassName: string;
353
- MapLogoStyle: React.CSSProperties;
354
- getOverLinkElementDelay: number;
355
- tid: string | number;
356
- onConnClick: (conn: object) => void;
357
- onNodeClick: (node: object) => void;
358
- getCenterBox: (conn: object) => void;
359
- onConnection: (mapApi: object) => void;
360
- onNodeMouseOver: (node: object) => void;
361
- nodeIconMapperParentClassName: string;
362
- getMenuTitle: (connection: object) => void;
363
- getOverLinkElement: (connection: object) => void;
364
- initialViewState: ViewState | null;
365
- getEndpointText: (connection: object) => void;
366
- onLinkContextMenu: (info: {
367
- data: object;
368
- event: React.MouseEvent;
369
- mapApi: MapProps;
370
- type: string;
371
- }) => void;
372
- enableNativeContextMenu: boolean;
373
- enableLngLatBox: boolean;
374
- mapStyle: {
375
- url: string;
376
- index: number;
377
- name: string;
378
- };
379
- hideLinks: boolean;
380
- customNavigateButtonsClassName: string;
381
- mapProps: MapProps;
382
- customControlButtons: React.ReactNode[];
383
- menuItems: Array<{
384
- label: string;
385
- action?: (args: {
386
- data: object;
387
- event: React.MouseEvent;
388
- mapApi: MapProps;
389
- type: string;
390
- }) => void;
391
- }>;
392
- nodeMenuItems: Array<{
393
- label: string;
394
- action?: (args: {
395
- data: object;
396
- event: React.MouseEvent;
397
- mapApi: MapProps;
398
- type: string;
399
- }) => void;
400
- }>;
401
- nodeIconMapper?: (object: any) => React.ReactNode | null;
402
- }
403
- export interface NodeParams {
404
- name: string;
405
- id: string;
406
- color: string;
407
- lng: number;
408
- lat: number;
409
- details?: Record<string, any>;
410
- groups: Array<string>;
411
- }
412
- export interface NodeTemplate {
413
- name: string;
414
- color: string;
415
- elementId: string;
416
- details: Record<string, any>;
417
- groups: Array<string>;
418
- location: {
419
- lng: number;
420
- lat: number;
421
- };
422
- }
423
- export interface ConnectionParams {
424
- name: string;
425
- id: string;
426
- sourceId: string;
427
- destinationId: string;
428
- details?: Record<string, any>;
429
- linkColor?: string | null;
430
- linkAnimationColor?: string | null;
431
- layer?: number;
432
- group?: number;
433
- bidir?: boolean;
434
- sourcePort: string | null;
435
- destinationPort: string | null;
436
- }
437
- export interface ConnectionTemplate {
438
- name: string;
439
- id: string;
440
- details: Record<string, any>;
441
- sourceId: string;
442
- destinationId: string;
443
- linkColor: string | null;
444
- linkAnimationColor: string | null;
445
- layer: number;
446
- group: number;
447
- bidir: boolean;
448
- sourcePort: string | null;
449
- destinationPort: string | null;
450
- }
451
- export interface HelpPopoverProps {
452
- title?: string;
453
- content: React.ReactNode;
454
- trigger?: React.ReactNode;
455
- placement?: 'top' | 'bottom' | 'left' | 'right';
456
- className?: string;
457
- }
458
- export interface RadioItemProps {
459
- children?: React.ReactNode;
460
- header?: React.ReactNode;
461
- onSelect?: (ev: React.ChangeEvent<HTMLInputElement>, checked: boolean, state: any) => void;
462
- onClick?: (state: any) => void;
463
- onDoubleClick?: (state: any) => void;
464
- onContextMenu?: (state: any) => void;
465
- labelProps?: React.LabelHTMLAttributes<HTMLLabelElement>;
466
- inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
467
- className?: string;
468
- defaultChecked?: boolean;
469
- }
470
- export interface RadioGroupProps {
471
- name: string;
472
- value?: string;
473
- onChange?: (value: string) => void;
474
- children: React.ReactNode;
475
- className?: string;
476
- orientation?: 'horizontal' | 'vertical';
477
- }
478
- export interface ToggleItemProps {
479
- value: string;
480
- label: string;
481
- icon?: React.ReactNode;
482
- disabled?: boolean;
483
- className?: string;
484
- }
485
- export interface ToggleGroupProps {
486
- value?: string;
487
- onValueChange?: (value: string) => void;
488
- children: React.ReactNode;
489
- className?: string;
490
- orientation?: 'horizontal' | 'vertical';
491
- size?: 'sm' | 'md' | 'lg';
492
- }
493
- export interface NgSuccessLegendProps {
494
- title?: string;
495
- description?: string;
496
- className?: string;
497
- }
498
- export interface NgFailedLegendProps {
499
- title?: string;
500
- description?: string;
501
- className?: string;
502
- }
503
- export interface PropertiesItemProps {
504
- label: string;
505
- value: any;
506
- type?: 'text' | 'number' | 'boolean' | 'date' | 'array' | 'object';
507
- editable?: boolean;
508
- onChange?: (value: any) => void;
509
- className?: string;
510
- }
511
- export interface ContextMenuProps {
512
- items: {
513
- items: Array<{
514
- label: string;
515
- icon?: React.ReactNode;
516
- action: () => void;
517
- disabled?: boolean;
518
- separator?: boolean;
519
- }>;
520
- };
521
- event: React.MouseEvent | null;
522
- onClose?: () => void;
523
- className?: string;
524
- }
525
- export interface HeadlineProps {
526
- level?: 1 | 2 | 3 | 4 | 5 | 6;
527
- children: React.ReactNode;
528
- className?: string;
529
- variant?: 'default' | 'muted' | 'accent';
530
- }
531
- export interface MainHeaderProps extends HeadlineProps {
532
- subtitle?: string;
533
- actions?: React.ReactNode;
534
- }
535
- export interface SubHeaderProps extends HeadlineProps {
536
- description?: string;
537
- }
538
- export interface LabelProps extends HeadlineProps {
539
- required?: boolean;
540
- error?: string;
541
- }
542
- export interface AlertProps {
543
- dialog?: {
544
- body: string;
545
- header?: string;
546
- onAccept?: () => void;
547
- onDecline?: () => void;
548
- autoAccept?: boolean;
549
- autoDecline?: boolean;
550
- variant?: string;
551
- type?: string;
552
- extraButtons?: any[];
553
- acceptButtonParams?: object;
554
- declineButtonParams?: object;
555
- warning?: boolean;
556
- id?: string;
557
- acceptLabel?: string;
558
- declineLabel?: string;
559
- success?: boolean;
560
- alert?: boolean;
561
- error?: boolean;
562
- };
563
- }
564
- export interface NotifyProps {
565
- spinnerProps?: SpinnerProps;
566
- alertProps?: AlertProps;
567
- toastProps?: ToastProps;
568
- }
569
- export interface ErrorBoundaryProps {
570
- children: React.ReactNode;
571
- fallback?: React.ComponentType<{
572
- error: Error;
573
- resetError: () => void;
574
- }>;
575
- onError?: (error: Error, errorInfo: React.ErrorInfo) => void;
576
- }
577
- export interface WhatsnewProps {
578
- items: Array<{
579
- title: string;
580
- description: string;
581
- image?: string;
582
- date: string;
583
- version: string;
584
- }>;
585
- onClose?: () => void;
586
- className?: string;
587
- }
588
- export interface CommonProps {
589
- className?: string;
590
- children?: React.ReactNode;
591
- id?: string;
592
- style?: React.CSSProperties;
593
- }
594
- export interface EventHandlers {
595
- onClick?: (event: React.MouseEvent) => void;
596
- onDoubleClick?: (event: React.MouseEvent) => void;
597
- onContextMenu?: (event: React.MouseEvent) => void;
598
- onChange?: (event: React.ChangeEvent) => void;
599
- onFocus?: (event: React.FocusEvent) => void;
600
- onBlur?: (event: React.FocusEvent) => void;
601
- }
602
- export interface SizeVariants {
603
- size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
604
- }
605
- export interface ColorVariants {
606
- variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
607
- }
608
- export interface DisabledProps {
609
- disabled?: boolean;
610
- loading?: boolean;
611
- }
612
- export type SidebarVariant = 'default';
613
- export type SidebarDirection = 'left' | 'right';
614
- export type SidebarModelProps = Partial<Omit<ModelProps, 'children'>>;
615
- export interface SidebarEvent {
616
- isOpen: boolean;
617
- id: string;
618
- modelRef: React.RefObject<ModelHandle | null>;
619
- element: HTMLElement | null;
620
- }
621
- export interface SidebarHandle {
622
- open: () => void;
623
- close: () => void;
624
- toggle: () => void;
625
- readonly id: string;
626
- readonly element: HTMLElement | null;
627
- readonly model: React.RefObject<ModelHandle | null>;
628
- }
629
- export interface SidebarProps {
630
- variant?: SidebarVariant;
631
- rounded?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
632
- padding?: boolean;
633
- margin?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
634
- direction?: SidebarDirection;
635
- defaultOpen?: boolean;
636
- children?: React.ReactNode;
637
- onOpen?: (event: SidebarEvent) => void;
638
- onClose?: (event: SidebarEvent) => void;
639
- onChange?: (event: SidebarEvent) => void;
640
- modelProps?: SidebarModelProps;
641
- className?: string;
642
- style?: React.CSSProperties;
643
- ref?: React.RefObject<HTMLDivElement>;
644
- }
645
- export interface ExcelFilterProps {
646
- columnField: string;
647
- columnDisplayName: string;
648
- data: any[];
649
- onFilterChange: (field: string, selectedValues: any[]) => void;
650
- currentFilter?: any[];
651
- tid?: string;
652
- }
653
- export interface FilterState {
654
- [columnField: string]: any[];
655
- }
656
- export interface UseExcelFiltersProps {
657
- data: any[];
658
- tid?: string;
659
- onFilteredDataChange?: (filteredData: any[]) => void;
660
- }
661
- export interface ArrayViewerProps {
662
- header: string;
663
- }
664
- export interface UseApiReturn {
665
- data: any;
666
- loading: boolean;
667
- error: Error | null;
668
- refetch: () => void;
669
- }
670
- export interface UseStoreReturn<T> {
671
- state: T;
672
- setState: (newState: T | ((prev: T) => T)) => void;
673
- reset: () => void;
674
- }
675
- export interface UseVariableReturn<T> {
676
- value: T;
677
- setValue: (newValue: T) => void;
678
- reset: () => void;
679
- }
680
- export interface UseBoxSizeReturn {
681
- x: number;
682
- y: number;
683
- width: number;
684
- height: number;
685
- }
686
- //# sourceMappingURL=types.d.ts.map