@topconsultnpm/sdkui-react-beta 6.8.60 → 6.8.61

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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AlertVariant {
3
2
  variant: string;
4
3
  color: string;
@@ -15,7 +14,7 @@ interface AlertModes {
15
14
  declare const ShowAlert: ({ mode, message, duration, title }: {
16
15
  mode: keyof AlertModes;
17
16
  message: string;
18
- duration?: number | undefined;
19
- title?: string | undefined;
17
+ duration?: number;
18
+ title?: string;
20
19
  }) => void;
21
20
  export default ShowAlert;
@@ -11,282 +11,11 @@ export declare const useContextMenu: () => {
11
11
  y: number;
12
12
  }>>;
13
13
  };
14
- export declare const Container: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
14
+ export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
15
15
  $top: number;
16
16
  $left: number;
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
- }>;
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;
290
19
  interface ITMContextMenu {
291
20
  menuData: any[];
292
21
  onMenuItemClick?: (item: string) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface ITMDropDownMenu {
3
2
  content: JSX.Element;
4
3
  color?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ValidationItem } from "@topconsultnpm/sdk-ts-beta";
3
2
  export type Colors = 'error' | 'warning' | 'success' | 'info' | 'primary' | 'secondary' | 'tertiary' | 'standard';
4
3
  type IconModes = 'outside' | 'inside' | 'none';
@@ -1,44 +1,44 @@
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 | 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;
3
+ borderRadius?: boolean;
4
+ onClick?: () => void;
5
+ scrollX?: boolean;
6
+ scrollY?: boolean;
7
+ width?: string;
8
+ height?: string;
9
+ minWidth?: string;
10
+ minHeight?: string;
11
11
  children?: React.ReactNode;
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;
12
+ title?: string;
13
+ fontSize?: string;
14
+ fontWeight?: string;
15
+ showBorder?: boolean;
16
+ padding?: boolean;
17
+ scroll?: boolean;
18
+ backgroundColor?: string;
19
+ color?: string;
20
20
  }) => import("react/jsx-runtime").JSX.Element;
21
21
  declare const TMSplitterLayout: ({ animation, showSeparator, separatorColor, separatorActiveColor, separatorSize, direction, children, start, min, }: {
22
- animation?: boolean | undefined;
23
- separatorColor?: string | undefined;
24
- separatorActiveColor?: string | undefined;
25
- showSeparator?: boolean | undefined;
26
- separatorSize?: number | undefined;
27
- direction?: "horizontal" | "vertical" | undefined;
22
+ animation?: boolean;
23
+ separatorColor?: string;
24
+ separatorActiveColor?: string;
25
+ showSeparator?: boolean;
26
+ separatorSize?: number;
27
+ direction?: "horizontal" | "vertical";
28
28
  children?: React.ReactNode;
29
- start?: string[] | undefined;
30
- min?: string[] | undefined;
29
+ start?: string[];
30
+ min?: string[];
31
31
  }) => import("react/jsx-runtime").JSX.Element;
32
32
  declare const TMLayoutItem: ({ onClick, children, width, minWidth, maxWidth, maxHeight, height, minHeight }: {
33
- onClick?: (() => void) | undefined;
33
+ onClick?: () => void;
34
34
  children: React.ReactNode;
35
- minWidth?: string | undefined;
36
- width?: string | undefined;
37
- maxWidth?: string | undefined;
38
- maxHeight?: string | undefined;
39
- fixed?: boolean | undefined;
40
- height?: string | undefined;
41
- minHeight?: string | undefined;
35
+ minWidth?: string;
36
+ width?: string;
37
+ maxWidth?: string;
38
+ maxHeight?: string;
39
+ fixed?: boolean;
40
+ height?: string;
41
+ minHeight?: string;
42
42
  }) => import("react/jsx-runtime").JSX.Element;
43
43
  export interface ITMLayoutContainerProps {
44
44
  children: React.ReactNode;
@@ -9,6 +9,7 @@ interface ITMListViewHeader {
9
9
  interface ListProps<T> {
10
10
  dataSource?: T[];
11
11
  selectedItem?: T;
12
+ autoScrollToSelectedItem?: boolean;
12
13
  exprKey?: string;
13
14
  searchKeys?: string[];
14
15
  customColor?: string;
@@ -36,6 +37,6 @@ interface ListProps<T> {
36
37
  onItemDblClick?: (item: T) => void;
37
38
  itemTemplate?: (item: T) => JSX.Element;
38
39
  }
39
- 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;
40
+ 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, autoScrollToSelectedItem }: ListProps<T>) => import("react/jsx-runtime").JSX.Element;
40
41
  export default TMListView;
41
42
  export declare const CustomListViewHeader: React.FC<ITMListViewHeader>;
@@ -12,7 +12,7 @@ const StyledListItem = styled.div ` width: 100%; height: max-content; border-bot
12
12
  const StyledListViewContainer = styled.div ` position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; width: 100%; height: 100%; `;
13
13
  const StyledSearchContainer = styled.div ` width: 100%; height: max-content; padding: 5px; border-bottom: 1px solid #e5e5e5; display: flex; align-items: center; gap: 10px; `;
14
14
  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; `;
15
- 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
+ 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, autoScrollToSelectedItem = false }) => {
16
16
  const listRef = useRef(null);
17
17
  const contRef = useRef(null);
18
18
  const orderRef = useRef(null);
@@ -196,6 +196,38 @@ const TMListView = ({ customGroupingHeaders, headerBackGroundColor, header, show
196
196
  useEffect(() => { let cont = listRef.current; if (cont && scroll) {
197
197
  cont.scrollTo(scroll.x, scroll.y);
198
198
  } ; }, [scroll, listRef.current]);
199
+ // This effect runs when either selectedItem or dataSource changes
200
+ useEffect(() => {
201
+ // Check if the selected item, list reference, dataSource, and autoScrollToSelectedItem are properly set
202
+ if (selectedItem && listRef.current && dataSource.length > 0 && autoScrollToSelectedItem) {
203
+ // Extract the unique key of the selected item using exprKey
204
+ const selectedItemKey = selectedItem[exprKey];
205
+ // Find the index of the selected item in the dataSource using the key
206
+ const selectedItemIndex = dataSource.findIndex(item => item[exprKey] === selectedItemKey);
207
+ // If the item is found in the dataSource (index is not -1)
208
+ if (selectedItemIndex !== -1 && listRef.current) {
209
+ // Access the list container (the parent element holding the list)
210
+ const listContainer = listRef.current;
211
+ // Get all child elements of the list container (individual items)
212
+ const listItems = listContainer.children;
213
+ // Get the actual DOM element of the selected item
214
+ const selectedItemElement = listItems[selectedItemIndex];
215
+ // If the selected item element exists in the DOM
216
+ if (selectedItemElement) {
217
+ // Use setTimeout to delay the scroll action for 500ms to ensure DOM elements are fully rendered
218
+ setTimeout(() => {
219
+ // Calculate the offsetTop of the selected item (its position relative to the container)
220
+ const offset = selectedItemElement.offsetTop;
221
+ // Scroll the list container smoothly to position the selected item in the center of the container
222
+ listContainer.scrollTo({
223
+ top: offset - listContainer.clientHeight / 2, // Subtract half the container height to center the item
224
+ behavior: 'smooth', // Smooth scrolling
225
+ });
226
+ }, 500); // Delay to allow for DOM rendering before scrolling
227
+ }
228
+ }
229
+ }
230
+ }, [selectedItem, dataSource]);
199
231
  //order options
200
232
  const orderMenuItems = () => {
201
233
  let arr = [];
@@ -15,7 +15,7 @@ export interface ITMRightSidebarProps {
15
15
  }
16
16
  declare const TMRightSidebar: React.FC<ITMRightSidebarProps>;
17
17
  export default TMRightSidebar;
18
- export declare const StyledAnimatedComponentScaleColor: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
19
- $delay?: string | undefined;
20
- $scale?: number | undefined;
21
- }>>;
18
+ export declare const StyledAnimatedComponentScaleColor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
19
+ $delay?: string;
20
+ $scale?: number;
21
+ }>> & string;
@@ -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 | undefined;
7
+ label?: string;
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) | undefined;
15
+ onTabIndexChanged?: (e: number) => void;
16
16
  children: any;
17
- fontSize?: string | undefined;
18
- validationItems?: ValidationItem[] | undefined;
17
+ fontSize?: string;
18
+ validationItems?: ValidationItem[];
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[] | undefined;
3
+ vil?: ValidationItem[];
4
4
  }) => import("react/jsx-runtime").JSX.Element | null;
5
5
  export default TMVilViewer;
@@ -16,16 +16,16 @@ interface ITMRelationChooserFormProps extends ITMChooserFormProps<RelationDescri
16
16
  export declare const TMRelationChooserForm: React.FunctionComponent<ITMRelationChooserFormProps>;
17
17
  export declare const TMRelationIdViewer: ({ relationType, relationId, showIcon, noneSelectionText }: {
18
18
  relationType: RelationTypes;
19
- relationId?: number | undefined;
20
- showIcon?: boolean | undefined;
21
- noneSelectionText?: string | undefined;
19
+ relationId?: number;
20
+ showIcon?: boolean;
21
+ noneSelectionText?: string;
22
22
  }) => import("react/jsx-runtime").JSX.Element;
23
23
  export declare const TMRelationIcon: ({ rd, relationType }: {
24
24
  rd: RelationDescriptor | undefined;
25
- relationType?: RelationTypes | undefined;
25
+ relationType?: RelationTypes;
26
26
  }) => import("react/jsx-runtime").JSX.Element;
27
27
  export declare const TMRelationTooltip: ({ rd, relationType, children }: {
28
- rd?: RelationDescriptor | undefined;
28
+ rd?: RelationDescriptor;
29
29
  relationType: RelationTypes | undefined;
30
30
  children: React.ReactNode;
31
31
  }) => import("react/jsx-runtime").JSX.Element;
@@ -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 | undefined;
15
- showIcon?: boolean | undefined;
16
- noneSelectionText?: string | undefined;
14
+ userId?: number;
15
+ showIcon?: boolean;
16
+ noneSelectionText?: string;
17
17
  }) => import("react/jsx-runtime").JSX.Element;
18
18
  export declare const TMUserIcon: ({ ud }: {
19
- ud?: UserDescriptor | undefined;
19
+ ud?: UserDescriptor;
20
20
  }) => import("react/jsx-runtime").JSX.Element | null;
21
21
  export declare const TMUserTooltip: ({ ud, children }: {
22
- ud?: UserDescriptor | undefined;
22
+ ud?: UserDescriptor;
23
23
  children: React.ReactNode;
24
24
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
1
  import { ValidationItem } from '@topconsultnpm/sdk-ts-beta';
3
2
  export declare const TMEditorsDefaultBorderRadius = "5px";
4
3
  export declare const TMEditorsDefaultLabelFontSize = "0.9rem";
5
4
  export declare const editorColorManager: (validationItems: ValidationItem[]) => string;
6
- export declare const StyledEditorContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
5
+ export declare const StyledEditorContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
7
6
  $width: string;
8
- }>>;
9
- export declare const StyledEditor: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
7
+ }>> & string;
8
+ export declare const StyledEditor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
10
9
  $vil: ValidationItem[];
11
10
  $width: string;
12
11
  $type: string;
@@ -14,33 +13,33 @@ export declare const StyledEditor: import("styled-components").IStyledComponent<
14
13
  $maxValue: number;
15
14
  $fontSize: string;
16
15
  $disabled: boolean;
17
- $isMobile?: boolean | undefined;
18
- $borderRadius?: string | undefined;
19
- }>>;
20
- export declare const StyledEditorIcon: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
16
+ $isMobile?: boolean;
17
+ $borderRadius?: string;
18
+ }>> & string;
19
+ export declare const StyledEditorIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
21
20
  $vil: ValidationItem[];
22
21
  $disabled: boolean;
23
22
  $isModified: boolean;
24
- }>>;
25
- export declare const StyledEditorLabel: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
23
+ }>> & string;
24
+ export declare const StyledEditorLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
26
25
  $isFocused: boolean;
27
- $labelPosition: 'right' | 'left' | 'top';
26
+ $labelPosition: "right" | "left" | "top";
28
27
  $disabled: boolean;
29
- $fontSize?: string | undefined;
30
- $color?: string | undefined;
31
- }>>;
32
- export declare const StyledEditorButtonIcon: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
28
+ $fontSize?: string;
29
+ $color?: string;
30
+ }>> & string;
31
+ export declare const StyledEditorButtonIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
33
32
  $index: number;
34
33
  $transform: string;
35
- }>>;
36
- export declare const StyledTextareaEditor: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, {
34
+ }>> & string;
35
+ export declare const StyledTextareaEditor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, {
37
36
  $vil: ValidationItem[];
38
37
  $width: string;
39
38
  $isModified: boolean;
40
39
  $fontSize: string;
41
40
  $disabled: boolean;
42
- $isMobile?: boolean | undefined;
43
- $maxHeight?: string | undefined;
44
- $borderRadius?: string | undefined;
45
- $resize?: boolean | undefined;
46
- }>>;
41
+ $isMobile?: boolean;
42
+ $maxHeight?: string;
43
+ $borderRadius?: string;
44
+ $resize?: boolean;
45
+ }>> & string;
@@ -39,11 +39,11 @@ export declare const cultureIDsDataSource: {
39
39
  }[];
40
40
  declare const TMLoginForm: React.FunctionComponent<ITMLoginFormProps>;
41
41
  export declare const TMChangePassword: ({ deviceType, tmSession, username, onClose, enable, hasBack }: {
42
- deviceType?: DeviceType | undefined;
43
- hasBack?: boolean | undefined;
44
- tmSession?: ITopMediaSession | undefined;
42
+ deviceType?: DeviceType;
43
+ hasBack?: boolean;
44
+ tmSession?: ITopMediaSession;
45
45
  username: string;
46
- onClose?: (() => void) | undefined;
47
- enable?: boolean | undefined;
46
+ onClose?: () => void;
47
+ enable?: boolean;
48
48
  }) => import("react/jsx-runtime").JSX.Element;
49
49
  export default TMLoginForm;