@topconsultnpm/sdkui-react-beta 6.7.18 → 6.7.20

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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AlertVariant {
2
3
  variant: string;
3
4
  color: string;
@@ -14,7 +15,7 @@ interface AlertModes {
14
15
  declare const ShowAlert: ({ mode, message, duration, title }: {
15
16
  mode: keyof AlertModes;
16
17
  message: string;
17
- duration?: number;
18
- title?: string;
18
+ duration?: number | undefined;
19
+ title?: string | undefined;
19
20
  }) => void;
20
21
  export default ShowAlert;
@@ -17,12 +17,12 @@ declare const TMButton: React.FunctionComponent<ITMButton>;
17
17
  export default TMButton;
18
18
  export type NewButtonType = 'success' | 'error' | 'tertiary' | 'primary';
19
19
  export declare const TMButtonNew: ({ color, caption, disable, onClick, type, icon, width, height }: {
20
- color?: string;
21
- width?: string;
22
- height?: string;
23
- disable?: boolean;
24
- caption?: string;
25
- onClick?: () => void;
26
- type?: NewButtonType;
20
+ color?: string | undefined;
21
+ width?: string | undefined;
22
+ height?: string | undefined;
23
+ disable?: boolean | undefined;
24
+ caption?: string | undefined;
25
+ onClick?: (() => void) | undefined;
26
+ type?: NewButtonType | undefined;
27
27
  icon?: any;
28
28
  }) => import("react/jsx-runtime").JSX.Element;
@@ -11,11 +11,282 @@ export declare const useContextMenu: () => {
11
11
  y: number;
12
12
  }>>;
13
13
  };
14
- export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
14
+ export declare const Container: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
15
15
  $top: number;
16
16
  $left: number;
17
- }>> & string;
18
- export declare const MenuOption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
17
+ }>>;
18
+ export declare const MenuOption: import("styled-components").IStyledComponent<"web", {
19
+ ref?: React.LegacyRef<HTMLDivElement> | undefined;
20
+ key?: React.Key | null | undefined;
21
+ defaultChecked?: boolean | undefined;
22
+ defaultValue?: string | number | readonly string[] | undefined;
23
+ suppressContentEditableWarning?: boolean | undefined;
24
+ suppressHydrationWarning?: boolean | undefined;
25
+ accessKey?: string | undefined;
26
+ autoFocus?: boolean | undefined;
27
+ className?: string | undefined;
28
+ contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
29
+ contextMenu?: string | undefined;
30
+ dir?: string | undefined;
31
+ draggable?: (boolean | "true" | "false") | undefined;
32
+ hidden?: boolean | undefined;
33
+ id?: string | undefined;
34
+ lang?: string | undefined;
35
+ nonce?: string | undefined;
36
+ placeholder?: string | undefined;
37
+ slot?: string | undefined;
38
+ spellCheck?: (boolean | "true" | "false") | undefined;
39
+ style?: React.CSSProperties | undefined;
40
+ tabIndex?: number | undefined;
41
+ title?: string | undefined;
42
+ translate?: "no" | "yes" | undefined;
43
+ radioGroup?: string | undefined;
44
+ role?: React.AriaRole | undefined;
45
+ about?: string | undefined;
46
+ content?: string | undefined;
47
+ datatype?: string | undefined;
48
+ inlist?: any;
49
+ prefix?: string | undefined;
50
+ property?: string | undefined;
51
+ rel?: string | undefined;
52
+ resource?: string | undefined;
53
+ rev?: string | undefined;
54
+ typeof?: string | undefined;
55
+ vocab?: string | undefined;
56
+ autoCapitalize?: string | undefined;
57
+ autoCorrect?: string | undefined;
58
+ autoSave?: string | undefined;
59
+ color?: string | undefined;
60
+ itemProp?: string | undefined;
61
+ itemScope?: boolean | undefined;
62
+ itemType?: string | undefined;
63
+ itemID?: string | undefined;
64
+ itemRef?: string | undefined;
65
+ results?: number | undefined;
66
+ security?: string | undefined;
67
+ unselectable?: "off" | "on" | undefined;
68
+ inputMode?: "none" | "numeric" | "decimal" | "search" | "text" | "tel" | "url" | "email" | undefined;
69
+ is?: string | undefined;
70
+ "aria-activedescendant"?: string | undefined;
71
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
72
+ "aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
73
+ "aria-braillelabel"?: string | undefined;
74
+ "aria-brailleroledescription"?: string | undefined;
75
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
76
+ "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
77
+ "aria-colcount"?: number | undefined;
78
+ "aria-colindex"?: number | undefined;
79
+ "aria-colindextext"?: string | undefined;
80
+ "aria-colspan"?: number | undefined;
81
+ "aria-controls"?: string | undefined;
82
+ "aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
83
+ "aria-describedby"?: string | undefined;
84
+ "aria-description"?: string | undefined;
85
+ "aria-details"?: string | undefined;
86
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
87
+ "aria-dropeffect"?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
88
+ "aria-errormessage"?: string | undefined;
89
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
90
+ "aria-flowto"?: string | undefined;
91
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
92
+ "aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
93
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
94
+ "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
95
+ "aria-keyshortcuts"?: string | undefined;
96
+ "aria-label"?: string | undefined;
97
+ "aria-labelledby"?: string | undefined;
98
+ "aria-level"?: number | undefined;
99
+ "aria-live"?: "off" | "assertive" | "polite" | undefined;
100
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
101
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
102
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
103
+ "aria-orientation"?: "horizontal" | "vertical" | undefined;
104
+ "aria-owns"?: string | undefined;
105
+ "aria-placeholder"?: string | undefined;
106
+ "aria-posinset"?: number | undefined;
107
+ "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
108
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
109
+ "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
110
+ "aria-required"?: (boolean | "true" | "false") | undefined;
111
+ "aria-roledescription"?: string | undefined;
112
+ "aria-rowcount"?: number | undefined;
113
+ "aria-rowindex"?: number | undefined;
114
+ "aria-rowindextext"?: string | undefined;
115
+ "aria-rowspan"?: number | undefined;
116
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
117
+ "aria-setsize"?: number | undefined;
118
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
119
+ "aria-valuemax"?: number | undefined;
120
+ "aria-valuemin"?: number | undefined;
121
+ "aria-valuenow"?: number | undefined;
122
+ "aria-valuetext"?: string | undefined;
123
+ children?: React.ReactNode;
124
+ dangerouslySetInnerHTML?: {
125
+ __html: string | TrustedHTML;
126
+ } | undefined;
127
+ onCopy?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
128
+ onCopyCapture?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
129
+ onCut?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
130
+ onCutCapture?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
131
+ onPaste?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
132
+ onPasteCapture?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
133
+ onCompositionEnd?: React.CompositionEventHandler<HTMLDivElement> | undefined;
134
+ onCompositionEndCapture?: React.CompositionEventHandler<HTMLDivElement> | undefined;
135
+ onCompositionStart?: React.CompositionEventHandler<HTMLDivElement> | undefined;
136
+ onCompositionStartCapture?: React.CompositionEventHandler<HTMLDivElement> | undefined;
137
+ onCompositionUpdate?: React.CompositionEventHandler<HTMLDivElement> | undefined;
138
+ onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLDivElement> | undefined;
139
+ onFocus?: React.FocusEventHandler<HTMLDivElement> | undefined;
140
+ onFocusCapture?: React.FocusEventHandler<HTMLDivElement> | undefined;
141
+ onBlur?: React.FocusEventHandler<HTMLDivElement> | undefined;
142
+ onBlurCapture?: React.FocusEventHandler<HTMLDivElement> | undefined;
143
+ onChange?: React.FormEventHandler<HTMLDivElement> | undefined;
144
+ onChangeCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
145
+ onBeforeInput?: React.FormEventHandler<HTMLDivElement> | undefined;
146
+ onBeforeInputCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
147
+ onInput?: React.FormEventHandler<HTMLDivElement> | undefined;
148
+ onInputCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
149
+ onReset?: React.FormEventHandler<HTMLDivElement> | undefined;
150
+ onResetCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
151
+ onSubmit?: React.FormEventHandler<HTMLDivElement> | undefined;
152
+ onSubmitCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
153
+ onInvalid?: React.FormEventHandler<HTMLDivElement> | undefined;
154
+ onInvalidCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
155
+ onLoad?: React.ReactEventHandler<HTMLDivElement> | undefined;
156
+ onLoadCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
157
+ onError?: React.ReactEventHandler<HTMLDivElement> | undefined;
158
+ onErrorCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
159
+ onKeyDown?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
160
+ onKeyDownCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
161
+ onKeyPress?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
162
+ onKeyPressCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
163
+ onKeyUp?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
164
+ onKeyUpCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
165
+ onAbort?: React.ReactEventHandler<HTMLDivElement> | undefined;
166
+ onAbortCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
167
+ onCanPlay?: React.ReactEventHandler<HTMLDivElement> | undefined;
168
+ onCanPlayCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
169
+ onCanPlayThrough?: React.ReactEventHandler<HTMLDivElement> | undefined;
170
+ onCanPlayThroughCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
171
+ onDurationChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
172
+ onDurationChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
173
+ onEmptied?: React.ReactEventHandler<HTMLDivElement> | undefined;
174
+ onEmptiedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
175
+ onEncrypted?: React.ReactEventHandler<HTMLDivElement> | undefined;
176
+ onEncryptedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
177
+ onEnded?: React.ReactEventHandler<HTMLDivElement> | undefined;
178
+ onEndedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
179
+ onLoadedData?: React.ReactEventHandler<HTMLDivElement> | undefined;
180
+ onLoadedDataCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
181
+ onLoadedMetadata?: React.ReactEventHandler<HTMLDivElement> | undefined;
182
+ onLoadedMetadataCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
183
+ onLoadStart?: React.ReactEventHandler<HTMLDivElement> | undefined;
184
+ onLoadStartCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
185
+ onPause?: React.ReactEventHandler<HTMLDivElement> | undefined;
186
+ onPauseCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
187
+ onPlay?: React.ReactEventHandler<HTMLDivElement> | undefined;
188
+ onPlayCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
189
+ onPlaying?: React.ReactEventHandler<HTMLDivElement> | undefined;
190
+ onPlayingCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
191
+ onProgress?: React.ReactEventHandler<HTMLDivElement> | undefined;
192
+ onProgressCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
193
+ onRateChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
194
+ onRateChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
195
+ onResize?: React.ReactEventHandler<HTMLDivElement> | undefined;
196
+ onResizeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
197
+ onSeeked?: React.ReactEventHandler<HTMLDivElement> | undefined;
198
+ onSeekedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
199
+ onSeeking?: React.ReactEventHandler<HTMLDivElement> | undefined;
200
+ onSeekingCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
201
+ onStalled?: React.ReactEventHandler<HTMLDivElement> | undefined;
202
+ onStalledCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
203
+ onSuspend?: React.ReactEventHandler<HTMLDivElement> | undefined;
204
+ onSuspendCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
205
+ onTimeUpdate?: React.ReactEventHandler<HTMLDivElement> | undefined;
206
+ onTimeUpdateCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
207
+ onVolumeChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
208
+ onVolumeChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
209
+ onWaiting?: React.ReactEventHandler<HTMLDivElement> | undefined;
210
+ onWaitingCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
211
+ onAuxClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
212
+ onAuxClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
213
+ onClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
214
+ onClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
215
+ onContextMenu?: React.MouseEventHandler<HTMLDivElement> | undefined;
216
+ onContextMenuCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
217
+ onDoubleClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
218
+ onDoubleClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
219
+ onDrag?: React.DragEventHandler<HTMLDivElement> | undefined;
220
+ onDragCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
221
+ onDragEnd?: React.DragEventHandler<HTMLDivElement> | undefined;
222
+ onDragEndCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
223
+ onDragEnter?: React.DragEventHandler<HTMLDivElement> | undefined;
224
+ onDragEnterCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
225
+ onDragExit?: React.DragEventHandler<HTMLDivElement> | undefined;
226
+ onDragExitCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
227
+ onDragLeave?: React.DragEventHandler<HTMLDivElement> | undefined;
228
+ onDragLeaveCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
229
+ onDragOver?: React.DragEventHandler<HTMLDivElement> | undefined;
230
+ onDragOverCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
231
+ onDragStart?: React.DragEventHandler<HTMLDivElement> | undefined;
232
+ onDragStartCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
233
+ onDrop?: React.DragEventHandler<HTMLDivElement> | undefined;
234
+ onDropCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
235
+ onMouseDown?: React.MouseEventHandler<HTMLDivElement> | undefined;
236
+ onMouseDownCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
237
+ onMouseEnter?: React.MouseEventHandler<HTMLDivElement> | undefined;
238
+ onMouseLeave?: React.MouseEventHandler<HTMLDivElement> | undefined;
239
+ onMouseMove?: React.MouseEventHandler<HTMLDivElement> | undefined;
240
+ onMouseMoveCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
241
+ onMouseOut?: React.MouseEventHandler<HTMLDivElement> | undefined;
242
+ onMouseOutCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
243
+ onMouseOver?: React.MouseEventHandler<HTMLDivElement> | undefined;
244
+ onMouseOverCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
245
+ onMouseUp?: React.MouseEventHandler<HTMLDivElement> | undefined;
246
+ onMouseUpCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
247
+ onSelect?: React.ReactEventHandler<HTMLDivElement> | undefined;
248
+ onSelectCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
249
+ onTouchCancel?: React.TouchEventHandler<HTMLDivElement> | undefined;
250
+ onTouchCancelCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
251
+ onTouchEnd?: React.TouchEventHandler<HTMLDivElement> | undefined;
252
+ onTouchEndCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
253
+ onTouchMove?: React.TouchEventHandler<HTMLDivElement> | undefined;
254
+ onTouchMoveCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
255
+ onTouchStart?: React.TouchEventHandler<HTMLDivElement> | undefined;
256
+ onTouchStartCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
257
+ onPointerDown?: React.PointerEventHandler<HTMLDivElement> | undefined;
258
+ onPointerDownCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
259
+ onPointerMove?: React.PointerEventHandler<HTMLDivElement> | undefined;
260
+ onPointerMoveCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
261
+ onPointerUp?: React.PointerEventHandler<HTMLDivElement> | undefined;
262
+ onPointerUpCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
263
+ onPointerCancel?: React.PointerEventHandler<HTMLDivElement> | undefined;
264
+ onPointerCancelCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
265
+ onPointerEnter?: React.PointerEventHandler<HTMLDivElement> | undefined;
266
+ onPointerEnterCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
267
+ onPointerLeave?: React.PointerEventHandler<HTMLDivElement> | undefined;
268
+ onPointerLeaveCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
269
+ onPointerOver?: React.PointerEventHandler<HTMLDivElement> | undefined;
270
+ onPointerOverCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
271
+ onPointerOut?: React.PointerEventHandler<HTMLDivElement> | undefined;
272
+ onPointerOutCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
273
+ onGotPointerCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
274
+ onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
275
+ onLostPointerCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
276
+ onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
277
+ onScroll?: React.UIEventHandler<HTMLDivElement> | undefined;
278
+ onScrollCapture?: React.UIEventHandler<HTMLDivElement> | undefined;
279
+ onWheel?: React.WheelEventHandler<HTMLDivElement> | undefined;
280
+ onWheelCapture?: React.WheelEventHandler<HTMLDivElement> | undefined;
281
+ onAnimationStart?: React.AnimationEventHandler<HTMLDivElement> | undefined;
282
+ onAnimationStartCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
283
+ onAnimationEnd?: React.AnimationEventHandler<HTMLDivElement> | undefined;
284
+ onAnimationEndCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
285
+ onAnimationIteration?: React.AnimationEventHandler<HTMLDivElement> | undefined;
286
+ onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
287
+ onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
288
+ onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
289
+ }>;
19
290
  interface ITMContextMenu {
20
291
  menuData: any[];
21
292
  onMenuItemClick?: (item: string) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface ITMDropDownMenu {
2
3
  content: JSX.Element;
3
4
  color?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ValidationItem } from "@topconsultnpm/sdk-ts-beta";
2
3
  export type Colors = 'error' | 'warning' | 'success' | 'info' | 'primary' | 'secondary' | 'tertiary' | 'standard';
3
4
  type IconModes = 'outside' | 'inside' | 'none';
@@ -1,51 +1,51 @@
1
1
  import React from 'react';
2
2
  declare const TMCard: ({ borderRadius, onClick, scrollX, scrollY, width, height, children, title, fontSize, fontWeight, showBorder, padding, scroll, backgroundColor, color }: {
3
- borderRadius?: boolean;
4
- onClick?: () => void;
5
- scrollX?: boolean;
6
- scrollY?: boolean;
7
- width?: string;
8
- height?: string;
9
- minWidth?: string;
10
- minHeight?: string;
3
+ borderRadius?: boolean | undefined;
4
+ onClick?: (() => void) | undefined;
5
+ scrollX?: boolean | undefined;
6
+ scrollY?: boolean | undefined;
7
+ width?: string | undefined;
8
+ height?: string | undefined;
9
+ minWidth?: string | undefined;
10
+ minHeight?: string | undefined;
11
11
  children?: React.ReactNode;
12
- title?: string;
13
- fontSize?: string;
14
- fontWeight?: string;
15
- showBorder?: boolean;
16
- padding?: boolean;
17
- scroll?: boolean;
18
- backgroundColor?: string;
19
- color?: string;
12
+ title?: string | undefined;
13
+ fontSize?: string | undefined;
14
+ fontWeight?: string | undefined;
15
+ showBorder?: boolean | undefined;
16
+ padding?: boolean | undefined;
17
+ scroll?: boolean | undefined;
18
+ backgroundColor?: string | undefined;
19
+ color?: string | undefined;
20
20
  }) => import("react/jsx-runtime").JSX.Element;
21
21
  declare const TMSplitterLayout: ({ animation, showSeparator, separatorColor, separatorSize, direction, children, start, min }: {
22
- animation?: boolean;
23
- separatorColor?: string;
24
- showSeparator?: boolean;
25
- separatorSize?: number;
26
- direction?: "horizontal" | "vertical";
22
+ animation?: boolean | undefined;
23
+ separatorColor?: string | undefined;
24
+ showSeparator?: boolean | undefined;
25
+ separatorSize?: number | undefined;
26
+ direction?: "horizontal" | "vertical" | undefined;
27
27
  children?: React.ReactNode;
28
- start?: string[];
29
- min?: string[];
28
+ start?: string[] | undefined;
29
+ min?: string[] | undefined;
30
30
  }) => import("react/jsx-runtime").JSX.Element;
31
31
  declare const TMLayoutItem: ({ onClick, children, width, minWidth, maxWidth, maxHeight, height, minHeight }: {
32
- onClick?: () => void;
32
+ onClick?: (() => void) | undefined;
33
33
  children: React.ReactNode;
34
- minWidth?: string;
35
- width?: string;
36
- maxWidth?: string;
37
- maxHeight?: string;
38
- fixed?: boolean;
39
- height?: string;
40
- minHeight?: string;
34
+ minWidth?: string | undefined;
35
+ width?: string | undefined;
36
+ maxWidth?: string | undefined;
37
+ maxHeight?: string | undefined;
38
+ fixed?: boolean | undefined;
39
+ height?: string | undefined;
40
+ minHeight?: string | undefined;
41
41
  }) => import("react/jsx-runtime").JSX.Element;
42
42
  declare const TMLayoutContainer: ({ gap, onClick, justifyContent, alignItems, children, direction }: {
43
- gap?: number;
44
- justifyContent?: string;
45
- alignItems?: string;
46
- onClick?: () => void;
43
+ gap?: number | undefined;
44
+ justifyContent?: string | undefined;
45
+ alignItems?: string | undefined;
46
+ onClick?: (() => void) | undefined;
47
47
  children: React.ReactNode;
48
- direction?: "vertical" | "horizontal";
48
+ direction?: "horizontal" | "vertical" | undefined;
49
49
  }) => import("react/jsx-runtime").JSX.Element;
50
50
  export { TMCard, TMLayoutItem, TMSplitterLayout };
51
51
  export default TMLayoutContainer;
@@ -1,4 +1,10 @@
1
1
  import React from 'react';
2
+ interface ITMListViewHeader {
3
+ headerIcon?: React.ReactNode;
4
+ headerTitle?: string;
5
+ firstCounter?: React.ReactNode;
6
+ secondCounter?: React.ReactNode;
7
+ }
2
8
  interface ListProps<T> {
3
9
  dataSource?: T[];
4
10
  selectedItem?: T;
@@ -14,8 +20,11 @@ interface ListProps<T> {
14
20
  orderBy?: string;
15
21
  grouping?: string;
16
22
  showId?: boolean;
17
- setShowId?: React.Dispatch<React.SetStateAction<boolean>>;
18
23
  showSearch?: boolean;
24
+ header?: React.ReactNode;
25
+ headerBackGroundColor?: string;
26
+ customGroupingHeaders?: Array<React.ReactNode>;
27
+ setShowId?: React.Dispatch<React.SetStateAction<boolean>>;
19
28
  setShowSearch?: React.Dispatch<React.SetStateAction<boolean>>;
20
29
  onScrollChange?: (e: {
21
30
  x: number;
@@ -26,5 +35,6 @@ interface ListProps<T> {
26
35
  onItemDblClick?: (item: T) => void;
27
36
  itemTemplate?: (item: T) => JSX.Element;
28
37
  }
29
- declare const TMListView: <T>({ showId, setShowId, showSearch, setShowSearch, grouping, orderBy, id, onScrollChange, scroll, searchKeys, searchable, itemTemplate, customColor, dataSource, exprKey, onSelectionChanged, onItemClick, onItemDblClick, selectedItem }: ListProps<T>) => import("react/jsx-runtime").JSX.Element;
38
+ declare const TMListView: <T>({ customGroupingHeaders, headerBackGroundColor, header, showId, setShowId, showSearch, setShowSearch, grouping, orderBy, id, onScrollChange, scroll, searchKeys, searchable, itemTemplate, customColor, dataSource, exprKey, onSelectionChanged, onItemClick, onItemDblClick, selectedItem }: ListProps<T>) => import("react/jsx-runtime").JSX.Element;
30
39
  export default TMListView;
40
+ export declare const CustomListViewHeader: React.FC<ITMListViewHeader>;
@@ -11,7 +11,7 @@ const StyledListItem = styled.div ` width: 100%; height: max-content; border-bot
11
11
  const StyledListViewContainer = styled.div ` position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; width: 100%; height: 100%; `;
12
12
  const StyledSearchContainer = styled.div ` width: 100%; height: max-content; padding: 5px; border-bottom: 1px solid #e5e5e5; display: flex; align-items: center; gap: 10px; `;
13
13
  const StyledListViewFooter = styled.div ` background-color: ${props => props.$bgColor}; width: 100%; height: 25px; padding: 5px 15px; border-top: 1px solid #e5e5e5; display: flex; align-items: center; gap: 10px; `;
14
- const TMListView = ({ showId, setShowId, showSearch, setShowSearch, grouping = '', orderBy, id, onScrollChange, scroll, searchKeys = [], searchable = false, itemTemplate, customColor, dataSource = [], exprKey = 'id', onSelectionChanged, onItemClick, onItemDblClick, selectedItem }) => {
14
+ const TMListView = ({ customGroupingHeaders, headerBackGroundColor, header, showId, setShowId, showSearch, setShowSearch, grouping = '', orderBy, id, onScrollChange, scroll, searchKeys = [], searchable = false, itemTemplate, customColor, dataSource = [], exprKey = 'id', onSelectionChanged, onItemClick, onItemDblClick, selectedItem }) => {
15
15
  const listRef = useRef(null);
16
16
  const contRef = useRef(null);
17
17
  const orderRef = useRef(null);
@@ -20,7 +20,7 @@ const TMListView = ({ showId, setShowId, showSearch, setShowSearch, grouping = '
20
20
  const [searchValue, setSearchValue] = useState('');
21
21
  const [currentDataSource, setCurrentDataSource] = useState(dataSource);
22
22
  const [keys, setKeys] = useState(searchKeys);
23
- const [orderedBy, setOrderedBy] = useState(orderBy || '');
23
+ const [orderedBy, setOrderedBy] = useState(orderBy ?? '');
24
24
  const [orderDir, setOrderDir] = useState(true);
25
25
  const [isFocused, setIsFocused] = useState(false);
26
26
  const [showOrderMenu, setShowOrderMenu] = useState(false);
@@ -245,8 +245,14 @@ const TMListView = ({ showId, setShowId, showSearch, setShowSearch, grouping = '
245
245
  return key;
246
246
  }
247
247
  };
248
- return (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'flex-start', width: '100%', height: 'max-content' }, children: [_jsx("div", { style: { borderBottom: `1px solid ${customColor}20`, display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: '5px', width: '100%', backgroundColor: `${customColor}30` }, children: _jsxs("div", { style: { width: '100%', height: 'max-content', display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between' }, children: [_jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: 10 }, children: [_jsx("p", { children: groupingText() }), _jsx("div", { style: { width: '16px', height: '16px', display: 'flex', alignItems: 'center', justifyContent: 'center', backgroundColor: customColor, color: 'white', boxShadow: '1px 1px 2px #00000020', borderRadius: '30px', fontWeight: 'bold' }, children: groupByKey(currentDataSource, grouping)[key].length })] }), _jsxs("div", { style: { cursor: 'pointer' }, onClick: () => { let arr = [...openList]; arr[index] = !arr[index]; setOpenList(arr); }, children: [" ", openList[index] ? _jsx(IconUp, { fontSize: 12 }) : _jsx(IconDown, { fontSize: 12 }), " "] })] }) }), openList[index] && _jsx("div", { style: { width: '100%', height: '100%' }, children: groupByKey(currentDataSource, grouping)[key].map((data, index2) => (_jsx(StyledListItem, { "$isSelected": data === selectedItem, "$color": customColor, onClick: () => { onSelectionChanged && onSelectionChanged(data); onItemClick && onItemClick(data); }, onDoubleClick: () => { onItemDblClick && onItemDblClick(data); }, children: _jsxs("div", { style: { width: '100%', height: 'max-content', display: 'flex', flexDirection: 'column', padding: '5px 5px' }, children: [localShowId && _jsxs("p", { style: { color: data === selectedItem ? 'white' : 'black', backgroundColor: `${customColor}20`, width: '100%', padding: '2px 5px', borderRadius: '5px', height: 'max-content', textAlign: 'left' }, children: [" ", 'ID: ' + data.id, " "] }), _jsxs("div", { style: { width: '100%', height: '100%' }, children: [" ", itemTemplate ? itemTemplate(data) : _jsx("div", {})] })] }) }, index2))) })] }, index));
249
- }), [currentDataSource, selectedItem, localShowId, customColor, openList, grouping]);
248
+ return (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'flex-start', width: '100%', height: 'max-content' }, children: [_jsx("div", { style: { borderBottom: `1px solid ${customColor}20`, display: 'flex', alignItems: 'center', height: '40px', justifyContent: 'space-between', padding: '5px', width: '100%', backgroundColor: headerBackGroundColor ?? `${customColor}30` }, children: _jsxs("div", { style: { width: '100%', height: 'max-content', display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between' }, children: [customGroupingHeaders && customGroupingHeaders.length > 0 ?
249
+ customGroupingHeaders[index] ?
250
+ _jsx("div", { style: { width: '100%', height: '100%', display: 'flex', alignItems: 'center' }, children: customGroupingHeaders[index] })
251
+ :
252
+ _jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: 10 }, children: [_jsx("p", { children: groupingText() }), _jsx("div", { style: { width: '16px', height: '16px', display: 'flex', alignItems: 'center', justifyContent: 'center', backgroundColor: customColor, color: 'white', boxShadow: '1px 1px 2px #00000020', borderRadius: '30px', fontWeight: 'bold' }, children: groupByKey(currentDataSource, grouping)[key].length })] })
253
+ :
254
+ _jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: 10 }, children: [_jsx("p", { children: groupingText() }), _jsx("div", { style: { width: '16px', height: '16px', display: 'flex', alignItems: 'center', justifyContent: 'center', backgroundColor: customColor, color: 'white', boxShadow: '1px 1px 2px #00000020', borderRadius: '30px', fontWeight: 'bold' }, children: groupByKey(currentDataSource, grouping)[key].length })] }), _jsxs("div", { style: { cursor: 'pointer' }, onClick: () => { let arr = [...openList]; arr[index] = !arr[index]; setOpenList(arr); }, children: [" ", openList[index] ? _jsx(IconUp, { fontSize: 12 }) : _jsx(IconDown, { fontSize: 12 }), " "] })] }) }), openList[index] && _jsx("div", { style: { width: '100%', height: '100%' }, children: groupByKey(currentDataSource, grouping)[key].map((data, index2) => (_jsx(StyledListItem, { "$isSelected": data === selectedItem, "$color": customColor, onClick: () => { onSelectionChanged && onSelectionChanged(data); onItemClick && onItemClick(data); }, onDoubleClick: () => { onItemDblClick && onItemDblClick(data); }, children: _jsxs("div", { style: { width: '100%', height: 'max-content', display: 'flex', flexDirection: 'column', padding: '5px 5px' }, children: [localShowId && _jsxs("p", { style: { color: data === selectedItem ? 'white' : 'black', backgroundColor: `${customColor}20`, width: '100%', padding: '2px 5px', borderRadius: '5px', height: 'max-content', textAlign: 'left' }, children: [" ", 'ID: ' + data.id, " "] }), _jsxs("div", { style: { width: '100%', height: '100%' }, children: [" ", itemTemplate ? itemTemplate(data) : _jsx("div", {})] })] }) }, index2))) })] }, index));
255
+ }), [currentDataSource, selectedItem, localShowId, customColor, openList, grouping, customGroupingHeaders]);
250
256
  // List height
251
257
  const listHeight = () => {
252
258
  if (localShowSearch) {
@@ -314,7 +320,7 @@ const TMListView = ({ showId, setShowId, showSearch, setShowSearch, grouping = '
314
320
  };
315
321
  const contextMenuItems = generateContextMenuItems(localShowSearch, localShowId, showOrderMenu, grouping, searchKeys);
316
322
  return (_jsxs(StyledListViewContainer, { ref: contRef, onContextMenu: openContextMenu, children: [(show && contextMenuItems.length > 0) && _jsx(TMContextMenu, { coords: coords, items: contextMenuItems }), showOrderOptions &&
317
- _jsx(TMContextMenu, { items: orderMenuItems(), coords: { x: orderRef.current?.getBoundingClientRect().left, y: orderRef.current?.getBoundingClientRect().top - (searchKeys.length * 30) - 10 } }), localShowSearch &&
323
+ _jsx(TMContextMenu, { items: orderMenuItems(), coords: { x: orderRef.current?.getBoundingClientRect().left, y: orderRef.current?.getBoundingClientRect().top - (searchKeys.length * 30) - 10 } }), header && _jsx("div", { style: { width: '100%', height: '40px', backgroundColor: headerBackGroundColor ?? `${customColor}30`, marginBottom: '3px', display: 'flex', alignItems: 'center' }, children: header }), localShowSearch &&
318
324
  _jsx(StyledSearchContainer, { children: _jsxs(StyledSearchContainer, { children: [_jsx(TMSearchBar, { marginLeft: '0px', maxWidth: '300px', searchValue: searchValue, onSearchValueChanged: (e) => setSearchValue(e) }), _jsx(TMTooltip, { content: 'Nascondi ricerca', children: _jsx(IconCloseCircle, { style: { cursor: 'pointer' }, color: 'red', fontSize: 14, onClick: () => { setSearchValue(''); setLocalShowSearch(false); } }) })] }) }), _jsx("div", { ref: listRef, onClick: () => setIsFocused(true), style: { width: '100%', overflow: 'auto', height: listHeight() }, children: currentDataSource.length > 0 ?
319
325
  grouping.length === 0 ? memoList : groupedMemoList :
320
326
  searchValue.length > 0 ? _jsx("div", { style: { width: '100%', height: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center' }, children: "No data found" }) :
@@ -323,3 +329,6 @@ const TMListView = ({ showId, setShowId, showSearch, setShowSearch, grouping = '
323
329
  _jsxs("div", { style: { width: 'max-content', display: 'flex', alignItems: 'center', gap: 5 }, children: [_jsx("div", { style: { width: 'max-content' }, children: "Ordinato per" }), _jsx("div", { ref: orderRef, onClick: () => { setShowOrderOptions(!showOrderOptions); }, style: { cursor: 'pointer', fontWeight: 'bold' }, children: orderedBy.length > 0 ? orderedBy : 'Nulla' }), orderedBy.length > 0 && _jsxs(TMTooltip, { content: orderDir ? 'ASC' : 'DESC', children: [" ", orderDir ? _jsx(IconUp, { style: { cursor: 'pointer' }, onClick: () => setOrderDir(false), fontSize: 14 }) : _jsx(IconDown, { style: { cursor: 'pointer' }, onClick: () => setOrderDir(true), fontSize: 14 }), " "] }), _jsx(TMTooltip, { content: 'Annulla ordinamento', children: _jsx(IconCloseCircle, { style: { cursor: 'pointer' }, color: 'red', fontSize: 14, onClick: () => { setOrderedBy(''); setShowOrderMenu(false); setShowOrderOptions(false); } }) })] }), searchValue.length > 0 && _jsxs("div", { style: { display: 'flex', alignItems: 'center', width: '100%', justifyContent: 'flex-end', gap: 5 }, children: [_jsx(TMTooltip, { content: 'Visibili', children: _jsx(IconVisible, { fontSize: 14 }) }), currentDataSource.length] })] })] }));
324
330
  };
325
331
  export default TMListView;
332
+ export const CustomListViewHeader = (props) => {
333
+ return (_jsxs("div", { style: { display: 'flex', alignItems: 'center', padding: '0 5px', gap: 5 }, children: [props.headerIcon, _jsx("p", { children: props.headerTitle }), props.firstCounter, props.secondCounter] }));
334
+ };
@@ -4,7 +4,7 @@ export interface ITMTabProps {
4
4
  propsToBeValidated?: string[];
5
5
  }
6
6
  export declare const TMTab: ({ label, propsToBeValidated, children }: {
7
- label?: string;
7
+ label?: string | undefined;
8
8
  propsToBeValidated?: string[] | undefined;
9
9
  children?: any;
10
10
  }) => import("react/jsx-runtime").JSX.Element;
@@ -12,9 +12,9 @@ export declare const TMTabItemBadge: ({ vil }: {
12
12
  vil: ValidationItem[];
13
13
  }) => import("react/jsx-runtime").JSX.Element;
14
14
  declare const TMTabGroup: ({ children, fontSize, validationItems, onTabIndexChanged }: {
15
- onTabIndexChanged?: (e: number) => void;
15
+ onTabIndexChanged?: ((e: number) => void) | undefined;
16
16
  children: any;
17
- fontSize?: string;
18
- validationItems?: ValidationItem[];
17
+ fontSize?: string | undefined;
18
+ validationItems?: ValidationItem[] | undefined;
19
19
  }) => import("react/jsx-runtime").JSX.Element;
20
20
  export default TMTabGroup;
@@ -1,5 +1,5 @@
1
1
  import { ValidationItem } from '@topconsultnpm/sdk-ts-beta';
2
2
  declare const TMVilViewer: ({ vil }: {
3
- vil?: ValidationItem[];
3
+ vil?: ValidationItem[] | undefined;
4
4
  }) => import("react/jsx-runtime").JSX.Element | null;
5
5
  export default TMVilViewer;
@@ -11,14 +11,14 @@ declare const TMUserChooser: React.FunctionComponent<ITMUserChooserProps>;
11
11
  export default TMUserChooser;
12
12
  export declare const TMUserChooserForm: React.FunctionComponent<ITMChooserFormProps<UserDescriptor>>;
13
13
  export declare const TMUserIdViewer: ({ userId, showIcon, noneSelectionText }: {
14
- userId?: number;
15
- showIcon?: boolean;
16
- noneSelectionText?: string;
14
+ userId?: number | undefined;
15
+ showIcon?: boolean | undefined;
16
+ noneSelectionText?: string | undefined;
17
17
  }) => import("react/jsx-runtime").JSX.Element;
18
18
  export declare const TMUserIcon: ({ ud }: {
19
- ud?: UserDescriptor;
19
+ ud?: UserDescriptor | undefined;
20
20
  }) => import("react/jsx-runtime").JSX.Element | null;
21
21
  export declare const TMUserTooltip: ({ ud, children }: {
22
- ud?: UserDescriptor;
22
+ ud?: UserDescriptor | undefined;
23
23
  children: React.ReactNode;
24
24
  }) => import("react/jsx-runtime").JSX.Element;