@topconsultnpm/sdkui-react-beta 6.6.15 → 6.6.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/TopMediaOrchestrator6.svg +92 -92
- package/lib/assets/icomoon.svg +96 -96
- package/lib/components/base/Styled.d.ts +22 -1919
- package/lib/components/base/TMAlert.d.ts +2 -3
- package/lib/components/base/TMButton.d.ts +7 -7
- package/lib/components/base/TMContextMenuOLD.d.ts +3 -274
- package/lib/components/base/TMDropDownMenu.d.ts +0 -1
- package/lib/components/base/TMEditorBase.d.ts +7 -2
- package/lib/components/base/TMLayout.d.ts +36 -36
- package/lib/components/base/TMListView.d.ts +0 -1
- package/lib/components/base/TMTab.d.ts +4 -4
- package/lib/components/base/TMVilViewer.d.ts +1 -1
- package/lib/components/choosers/TMDataListItemChooser.d.ts +0 -2
- package/lib/components/choosers/TMDataListItemChooser.js +2 -2
- package/lib/components/choosers/TMDcmtTypeChooser.d.ts +0 -2
- package/lib/components/choosers/TMDcmtTypeChooser.js +2 -2
- package/lib/components/choosers/TMDynDataListItemChooser.d.ts +0 -2
- package/lib/components/choosers/TMDynDataListItemChooser.js +2 -2
- package/lib/components/choosers/TMMetadataChooser.d.ts +0 -1
- package/lib/components/choosers/TMMetadataChooser.js +2 -2
- package/lib/components/choosers/TMUserChooser.d.ts +5 -7
- package/lib/components/choosers/TMUserChooser.js +2 -2
- package/lib/components/editors/TMDateBox.d.ts +1 -0
- package/lib/components/editors/TMDateBox.js +10 -2
- package/lib/components/editors/TMEditorStyled.d.ts +16 -17
- package/lib/components/editors/TMSummary.d.ts +1 -2
- package/lib/components/editors/TMSummary.js +5 -3
- package/lib/components/editors/TMTextArea.d.ts +2 -7
- package/lib/components/editors/TMTextBox.d.ts +0 -6
- package/lib/components/editors/TMTextBox.js +11 -18
- package/lib/components/forms/TMLoginForm.d.ts +4 -4
- package/lib/components/forms/TMLoginForm.js +1 -1
- package/lib/components/query/TMQueryEditor.d.ts +12 -554
- package/lib/components/query/TMQueryEditor.js +10 -9
- package/lib/components/query/TMQueryResult.d.ts +5 -5
- package/lib/components/query/TMQueryResultForm.d.ts +10 -10
- package/lib/components/sidebar/TMHeader.d.ts +2 -2
- package/lib/components/sidebar/TMSidebar.d.ts +0 -4
- package/lib/components/sidebar/TMSidebar.js +9 -12
- package/lib/components/sidebar/TMSidebarItem.d.ts +0 -7
- package/lib/components/sidebar/TMSidebarItem.js +4 -14
- package/lib/components/viewers/TMDataListItemViewer.d.ts +3 -3
- package/lib/components/viewers/TMMidViewer.d.ts +5 -5
- package/lib/components/viewers/TMTidViewer.d.ts +5 -5
- package/lib/helper/TMIcons.d.ts +1 -0
- package/lib/helper/TMIcons.js +3 -0
- package/lib/helper/helpers.d.ts +1 -1
- package/lib/hooks/useForm.d.ts +0 -1
- package/lib/hooks/useOutsideClick.d.ts +0 -1
- package/package.json +1 -1
|
@@ -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
|
|
19
|
-
title?: string
|
|
17
|
+
duration?: number;
|
|
18
|
+
title?: string;
|
|
20
19
|
}) => void;
|
|
21
20
|
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?: (
|
|
26
|
-
type?: NewButtonType
|
|
20
|
+
color?: string;
|
|
21
|
+
width?: string;
|
|
22
|
+
height?: string;
|
|
23
|
+
disable?: boolean;
|
|
24
|
+
caption?: string;
|
|
25
|
+
onClick?: () => void;
|
|
26
|
+
type?: NewButtonType;
|
|
27
27
|
icon?: any;
|
|
28
28
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,282 +11,11 @@ export declare const useContextMenu: () => {
|
|
|
11
11
|
y: number;
|
|
12
12
|
}>>;
|
|
13
13
|
};
|
|
14
|
-
export declare const Container: import("styled-components").
|
|
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").
|
|
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,11 +1,16 @@
|
|
|
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';
|
|
5
4
|
type LabelModes = 'left' | 'top' | 'none';
|
|
6
5
|
export type Sizes = 'small' | 'medium' | 'large';
|
|
6
|
+
export type TMEditorButtonData = {
|
|
7
|
+
icon: any;
|
|
8
|
+
text?: string;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
};
|
|
7
11
|
export interface ITMEditorBase {
|
|
8
12
|
backgroundColor?: string;
|
|
13
|
+
buttons?: TMEditorButtonData[];
|
|
9
14
|
customActionIcon?: any;
|
|
10
15
|
disabled?: boolean;
|
|
11
16
|
elementStyle?: React.CSSProperties;
|
|
@@ -24,9 +29,9 @@ export interface ITMEditorBase {
|
|
|
24
29
|
placeHolder?: string;
|
|
25
30
|
readOnly?: boolean;
|
|
26
31
|
showId?: boolean;
|
|
32
|
+
showClearButton?: boolean;
|
|
27
33
|
value?: any;
|
|
28
34
|
validationItems?: ValidationItem[];
|
|
29
35
|
width?: string;
|
|
30
|
-
onCustomActionClick?: VoidFunction;
|
|
31
36
|
}
|
|
32
37
|
export {};
|
|
@@ -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?: (
|
|
5
|
-
scrollX?: boolean
|
|
6
|
-
scrollY?: boolean
|
|
7
|
-
width?: string
|
|
8
|
-
height?: string
|
|
9
|
-
minWidth?: string
|
|
10
|
-
minHeight?: string
|
|
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
|
|
13
|
-
fontSize?: string
|
|
14
|
-
fontWeight?: string
|
|
15
|
-
showBorder?: boolean
|
|
16
|
-
padding?: boolean
|
|
17
|
-
scroll?: boolean
|
|
18
|
-
backgroundColor?: string
|
|
19
|
-
color?: string
|
|
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, separatorSize, direction, children, start, min }: {
|
|
22
|
-
animation?: boolean
|
|
23
|
-
separatorColor?: string
|
|
24
|
-
showSeparator?: boolean
|
|
25
|
-
separatorSize?: number
|
|
26
|
-
direction?: "horizontal" | "vertical"
|
|
22
|
+
animation?: boolean;
|
|
23
|
+
separatorColor?: string;
|
|
24
|
+
showSeparator?: boolean;
|
|
25
|
+
separatorSize?: number;
|
|
26
|
+
direction?: "horizontal" | "vertical";
|
|
27
27
|
children?: React.ReactNode;
|
|
28
|
-
start?: string[]
|
|
29
|
-
min?: string[]
|
|
28
|
+
start?: string[];
|
|
29
|
+
min?: string[];
|
|
30
30
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
31
31
|
declare const TMLayoutItem: ({ onClick, children, width, minWidth, maxWidth, maxHeight, height, minHeight }: {
|
|
32
|
-
onClick?: (
|
|
32
|
+
onClick?: () => void;
|
|
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;
|
|
35
|
+
width?: string;
|
|
36
|
+
maxWidth?: string;
|
|
37
|
+
maxHeight?: string;
|
|
38
|
+
fixed?: boolean;
|
|
39
|
+
height?: string;
|
|
40
|
+
minHeight?: string;
|
|
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?: (
|
|
43
|
+
gap?: number;
|
|
44
|
+
justifyContent?: string;
|
|
45
|
+
alignItems?: string;
|
|
46
|
+
onClick?: () => void;
|
|
47
47
|
children: React.ReactNode;
|
|
48
|
-
direction?: "
|
|
48
|
+
direction?: "vertical" | "horizontal";
|
|
49
49
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
50
50
|
export { TMCard, TMLayoutItem, TMSplitterLayout };
|
|
51
51
|
export default TMLayoutContainer;
|
|
@@ -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;
|
|
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?: (
|
|
15
|
+
onTabIndexChanged?: (e: number) => void;
|
|
16
16
|
children: any;
|
|
17
|
-
fontSize?: string
|
|
18
|
-
validationItems?: ValidationItem[]
|
|
17
|
+
fontSize?: string;
|
|
18
|
+
validationItems?: ValidationItem[];
|
|
19
19
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export default TMTabGroup;
|
|
@@ -8,8 +8,6 @@ interface ITMDataListItemChooserProps extends ITMChooserProps {
|
|
|
8
8
|
values?: string[];
|
|
9
9
|
/** Visualizza il bordo */
|
|
10
10
|
showBorder?: boolean;
|
|
11
|
-
/** Se presente, visualizza il bottone Pulisci ed esegue */
|
|
12
|
-
hasClear?: boolean;
|
|
13
11
|
}
|
|
14
12
|
declare const TMDataListItemChooser: React.FunctionComponent<ITMDataListItemChooserProps>;
|
|
15
13
|
export default TMDataListItemChooser;
|
|
@@ -8,12 +8,12 @@ import TMSpinner from '../base/TMSpinner';
|
|
|
8
8
|
import TMSummary from '../editors/TMSummary';
|
|
9
9
|
import TMChooserForm from '../forms/TMChooserForm';
|
|
10
10
|
import TMDataListItemViewer from '../viewers/TMDataListItemViewer';
|
|
11
|
-
const TMDataListItemChooser = ({ dataListId, backgroundColor, showBorder = true, elementStyle, allowMultipleSelection, values, isModifiedWhen, label, placeHolder, validationItems = [], onValueChanged
|
|
11
|
+
const TMDataListItemChooser = ({ dataListId, backgroundColor, showBorder = true, buttons = [], elementStyle, allowMultipleSelection, values, isModifiedWhen, label, placeHolder, showClearButton = false, validationItems = [], onValueChanged }) => {
|
|
12
12
|
const [showChooser, setShowChooser] = useState(false);
|
|
13
13
|
const renderTemplate = () => {
|
|
14
14
|
return (_jsxs(StyledDivHorizontal, { style: { minWidth: '125px' }, children: [placeHolder && (!values || values.length <= 0) && _jsx("p", { children: placeHolder }), values && values.length > 0 && _jsx(TMDataListItemViewer, { dataListId: dataListId, value: values?.[0] }), values && values.length > 1 && _jsx("p", { style: { marginLeft: '10px' }, children: `(+${values.length - 1} ${values.length == 2 ? 'altro' : 'altri'})` })] }));
|
|
15
15
|
};
|
|
16
|
-
return (_jsxs(_Fragment, { children: [_jsx(TMSummary, { backgroundColor: backgroundColor, showBorder: showBorder, iconEditButton: _jsx(IconSearch, {}), onEditorClick: () => setShowChooser(true), elementStyle: elementStyle, isModifiedWhen: isModifiedWhen, label: label, template: renderTemplate(), onClearClick:
|
|
16
|
+
return (_jsxs(_Fragment, { children: [_jsx(TMSummary, { buttons: buttons, backgroundColor: backgroundColor, showBorder: showBorder, hasValue: values && values.length > 0, showClearButton: showClearButton, iconEditButton: _jsx(IconSearch, { fontSize: 16 }), onEditorClick: () => setShowChooser(true), elementStyle: elementStyle, isModifiedWhen: isModifiedWhen, label: label, template: renderTemplate(), onClearClick: showClearButton ? () => { onValueChanged?.([]); } : undefined, validationItems: validationItems }), showChooser &&
|
|
17
17
|
_jsx(TMDataListItemChooserForm, { allowMultipleSelection: allowMultipleSelection, dataListId: dataListId, selectedIDs: values, onClose: () => setShowChooser(false), onChoose: (IDs) => { onValueChanged?.(IDs); } })] }));
|
|
18
18
|
};
|
|
19
19
|
export default TMDataListItemChooser;
|
|
@@ -10,8 +10,6 @@ interface ITMDcmtTypeChooser extends ITMChooserProps {
|
|
|
10
10
|
/** Visualizza il bordo */
|
|
11
11
|
showBorder?: boolean;
|
|
12
12
|
borderRadius?: string;
|
|
13
|
-
/** Se presente, visualizza il bottone ed esegue */
|
|
14
|
-
hasClear?: boolean;
|
|
15
13
|
openEditorOnSummaryClick?: boolean;
|
|
16
14
|
}
|
|
17
15
|
declare const TMDcmtTypeChooser: React.FunctionComponent<ITMDcmtTypeChooser>;
|
|
@@ -7,7 +7,7 @@ import { StyledDivHorizontal } from '../base/Styled';
|
|
|
7
7
|
import TMTidViewer, { TMDcmtTypeIcon } from '../viewers/TMTidViewer';
|
|
8
8
|
import TMSummary from '../editors/TMSummary';
|
|
9
9
|
import TMChooserForm from '../forms/TMChooserForm';
|
|
10
|
-
const TMDcmtTypeChooser = ({ tmSession, dataSource, disabled, backgroundColor, borderRadius = '4px', placeHolder = `<${SDKUI_Localizator.NoneSelection}>`, openEditorOnSummaryClick, showBorder = true, showId = false, elementStyle, allowMultipleSelection, ShowOnlyDcmtTypes, ShowOnlySAP, filterTemplateTID, values, isModifiedWhen, label, width, height, validationItems = [], onValueChanged
|
|
10
|
+
const TMDcmtTypeChooser = ({ tmSession, dataSource, disabled, backgroundColor, borderRadius = '4px', buttons = [], placeHolder = `<${SDKUI_Localizator.NoneSelection}>`, openEditorOnSummaryClick, showBorder = true, showId = false, elementStyle, allowMultipleSelection, ShowOnlyDcmtTypes, ShowOnlySAP, filterTemplateTID, values, isModifiedWhen, label, width, height, showClearButton = false, validationItems = [], onValueChanged }) => {
|
|
11
11
|
const [showChooser, setShowChooser] = useState(false);
|
|
12
12
|
useEffect(() => {
|
|
13
13
|
TMSpinner.show({ description: `${SDKUI_Localizator.Loading} - ${SDK_Localizator.ListDcmtTypeOrView} ...` });
|
|
@@ -17,7 +17,7 @@ const TMDcmtTypeChooser = ({ tmSession, dataSource, disabled, backgroundColor, b
|
|
|
17
17
|
const renderTemplate = () => {
|
|
18
18
|
return (_jsxs(StyledDivHorizontal, { style: { width: 'max-content', height: '100%' }, children: [values && _jsx(TMTidViewer, { tmSession: tmSession, tid: values[0], showIcon: true, showId: showId, noneSelectionText: placeHolder }), values && values.length > 1 && _jsx("p", { style: { marginLeft: '10px' }, children: `(+${values.length - 1} ${values.length == 2 ? 'altro' : 'altri'})` })] }));
|
|
19
19
|
};
|
|
20
|
-
return (_jsxs(_Fragment, { children: [_jsx(TMSummary, { backgroundColor: backgroundColor, showBorder: showBorder, borderRadius: borderRadius, iconEditButton: _jsx(IconSearch, {}), onEditorClick: () => !disabled && setShowChooser(true), elementStyle: elementStyle, isModifiedWhen: isModifiedWhen, label: label, width: width, height: showBorder ? height : '24px', template: renderTemplate(), openEditorOnSummaryClick: openEditorOnSummaryClick, onClearClick:
|
|
20
|
+
return (_jsxs(_Fragment, { children: [_jsx(TMSummary, { backgroundColor: backgroundColor, buttons: buttons, showBorder: showBorder, borderRadius: borderRadius, hasValue: values && values.length > 0, showClearButton: showClearButton, iconEditButton: _jsx(IconSearch, { fontSize: 16 }), onEditorClick: () => !disabled && setShowChooser(true), elementStyle: elementStyle, isModifiedWhen: isModifiedWhen, label: label, width: width, height: showBorder ? height : '24px', template: renderTemplate(), openEditorOnSummaryClick: openEditorOnSummaryClick, onClearClick: showClearButton ? () => { !disabled && onValueChanged?.([]); } : undefined, validationItems: validationItems }), showChooser &&
|
|
21
21
|
_jsx(TMDcmtTypeChooserForm, { tmSession: tmSession, allowMultipleSelection: allowMultipleSelection, dataSource: dataSource, selectedIDs: values, ShowOnlyDcmtTypes: ShowOnlyDcmtTypes, ShowOnlySAP: ShowOnlySAP, filterTemplateTID: filterTemplateTID, onClose: () => setShowChooser(false), onChoose: (IDs) => { onValueChanged?.(IDs); } })] }));
|
|
22
22
|
};
|
|
23
23
|
export default TMDcmtTypeChooser;
|
|
@@ -12,8 +12,6 @@ interface ITMDynDataListItemChooserProps extends ITMChooserProps {
|
|
|
12
12
|
values?: string[];
|
|
13
13
|
/** Visualizza il bordo */
|
|
14
14
|
showBorder?: boolean;
|
|
15
|
-
/** Se presente, visualizza il bottone Pulisci ed esegue */
|
|
16
|
-
hasClear?: boolean;
|
|
17
15
|
/** Se presente, sono i parametri da passare alla query per recuperare il dataSource */
|
|
18
16
|
queryParamsDynDataList?: string[];
|
|
19
17
|
/** Indica quali liste dati dinamiche aggiornare in cascata */
|
|
@@ -23,7 +23,7 @@ export const IsParametricQuery = (qd) => {
|
|
|
23
23
|
}
|
|
24
24
|
return false;
|
|
25
25
|
};
|
|
26
|
-
const TMDynDataListItemChooser = ({ tid, md, layoutMode = LayoutModes.None, queryParamsDynDataList, backgroundColor, showBorder = true, elementStyle, allowMultipleSelection, values, isModifiedWhen, label, placeHolder, validationItems = [], onValueChanged, onCascadeRefreshDynDataLists,
|
|
26
|
+
const TMDynDataListItemChooser = ({ tid, md, layoutMode = LayoutModes.None, queryParamsDynDataList, buttons = [], backgroundColor, showBorder = true, elementStyle, allowMultipleSelection, values, isModifiedWhen, label, placeHolder, validationItems = [], onValueChanged, onCascadeRefreshDynDataLists, showClearButton }) => {
|
|
27
27
|
const [showChooser, setShowChooser] = useState(false);
|
|
28
28
|
const [dynDl, setDynDl] = useState();
|
|
29
29
|
const [dataSource, setDataSource] = useState();
|
|
@@ -67,7 +67,7 @@ const TMDynDataListItemChooser = ({ tid, md, layoutMode = LayoutModes.None, quer
|
|
|
67
67
|
const renderTemplate = () => {
|
|
68
68
|
return (_jsxs(StyledDivHorizontal, { style: { minWidth: '125px' }, children: [placeHolder && (!values || values.length <= 0) && _jsx("p", { children: placeHolder }), values && values.length > 0 && dynDl && dataSource && _jsxs(StyledDivHorizontal, { children: [_jsx(IconDetails, {}), _jsx("p", { style: { marginLeft: '5px' }, children: dataSource.dtdResult?.rows?.filter(o => o[dynDl.selectItemForValue ?? 0] == values?.[0])?.[0]?.[dynDl.selectItemForDescription ?? 0] })] }), values && values.length > 1 && _jsx("p", { style: { marginLeft: '10px' }, children: `(+${values.length - 1} ${values.length == 2 ? 'altro' : 'altri'})` })] }));
|
|
69
69
|
};
|
|
70
|
-
return (_jsxs(_Fragment, { children: [_jsx(TMSummary, { backgroundColor: backgroundColor, showBorder: showBorder, iconEditButton: _jsx(IconSearch, {}), onEditorClick: () => setShowChooser(true), elementStyle: elementStyle, isModifiedWhen: isModifiedWhen, label: label, template: renderTemplate(), onClearClick:
|
|
70
|
+
return (_jsxs(_Fragment, { children: [_jsx(TMSummary, { backgroundColor: backgroundColor, buttons: buttons, showBorder: showBorder, hasValue: values && values.length > 0, showClearButton: showClearButton, iconEditButton: _jsx(IconSearch, { fontSize: 16 }), onEditorClick: () => setShowChooser(true), elementStyle: elementStyle, isModifiedWhen: isModifiedWhen, label: label, template: renderTemplate(), onClearClick: showClearButton ? () => { onValueChanged?.([]); } : undefined, validationItems: validationItems }), showChooser &&
|
|
71
71
|
_jsx(TMDynDataListItemChooserForm, { TID: tid, MID: md?.id, dynDL: dynDl, allowMultipleSelection: allowMultipleSelection, searchResult: dataSource, selectedIDs: values, onClose: () => setShowChooser(false), onChoose: (IDs) => {
|
|
72
72
|
onValueChanged?.(IDs);
|
|
73
73
|
if (!dynDl)
|
|
@@ -20,7 +20,6 @@ interface ITMMetadataChooserProps extends ITMChooserProps {
|
|
|
20
20
|
getColorIndex?: (tid: TID_Alias) => string;
|
|
21
21
|
showBorder?: boolean;
|
|
22
22
|
borderRadius?: string;
|
|
23
|
-
hasClear?: boolean;
|
|
24
23
|
openEditorOnSummaryClick?: boolean;
|
|
25
24
|
validationItems?: ValidationItem[];
|
|
26
25
|
}
|
|
@@ -12,12 +12,12 @@ import TMButton from '../base/TMButton';
|
|
|
12
12
|
import TMSummary from '../editors/TMSummary';
|
|
13
13
|
import TMChooserForm from '../forms/TMChooserForm';
|
|
14
14
|
import TMSpinner from '../base/TMSpinner';
|
|
15
|
-
const TMMetadataChooser = ({ tmSession, dataSource, inputDcmtTypesList, disabled, validationItems, getColorIndex, showCompleteMetadataName, qdShowOnlySelectItems, borderRadius = '4px', fontSize = FontSize.defaultFontSize, backgroundColor, openEditorOnSummaryClick, showBorder = true, showId = false, elementStyle, allowMultipleSelection, allowSysMetadata, value, values, isModifiedWhen, tids, label, width, height, onValueChanged,
|
|
15
|
+
const TMMetadataChooser = ({ tmSession, dataSource, buttons = [], inputDcmtTypesList, disabled, validationItems, getColorIndex, showCompleteMetadataName, qdShowOnlySelectItems, borderRadius = '4px', fontSize = FontSize.defaultFontSize, backgroundColor, openEditorOnSummaryClick, showBorder = true, showId = false, elementStyle, allowMultipleSelection, allowSysMetadata, value, values, isModifiedWhen, tids, label, width, height, onValueChanged, showClearButton, qd, placeHolder }) => {
|
|
16
16
|
const [showChooser, setShowChooser] = useState(false);
|
|
17
17
|
const renderTemplate = () => {
|
|
18
18
|
return (_jsxs(StyledDivHorizontal, { style: { width: 'max-content', height: '100%' }, children: [values && _jsx(TMMidViewer, { tmSession: tmSession, tid_mid: values[0], showIcon: true, showId: showId, showCompleteName: showCompleteMetadataName }), values && values.length > 1 && _jsx("p", { style: { marginLeft: '10px' }, children: `(+${values.length - 1} ${values.length == 2 ? 'altro' : 'altri'})` }), (values == undefined || values.length == 0) && _jsx("p", { children: placeHolder })] }));
|
|
19
19
|
};
|
|
20
|
-
return (_jsxs(_Fragment, { children: [_jsx(TMSummary, { label: label, width: width, height: showBorder ? height : '24px', validationItems: validationItems, backgroundColor: backgroundColor, placeHolder: placeHolder, fontSize: fontSize, showBorder: showBorder, borderRadius: borderRadius, iconEditButton: _jsx(IconSearch, {}), openEditorOnSummaryClick: openEditorOnSummaryClick, onEditorClick: () => !disabled && setShowChooser(true), elementStyle: elementStyle, isModifiedWhen: isModifiedWhen, template: renderTemplate(), onClearClick:
|
|
20
|
+
return (_jsxs(_Fragment, { children: [_jsx(TMSummary, { label: label, width: width, height: showBorder ? height : '24px', validationItems: validationItems, backgroundColor: backgroundColor, buttons: buttons, placeHolder: placeHolder, fontSize: fontSize, showBorder: showBorder, borderRadius: borderRadius, hasValue: values && values.length > 0, showClearButton: showClearButton, iconEditButton: _jsx(IconSearch, { fontSize: 16 }), openEditorOnSummaryClick: openEditorOnSummaryClick, onEditorClick: () => !disabled && setShowChooser(true), elementStyle: elementStyle, isModifiedWhen: isModifiedWhen, template: renderTemplate(), onClearClick: showClearButton ? () => { onValueChanged?.([]); } : undefined }), showChooser &&
|
|
21
21
|
_jsx(TMMetadataChooserForm, { tmSession: tmSession, allowMultipleSelection: allowMultipleSelection, height: '500px', width: '600px', allowSysMetadata: allowSysMetadata, getColorIndex: getColorIndex, dataSource: dataSource, inputDcmtTypesList: inputDcmtTypesList, tids: tids, qd: qd, qdShowOnlySelectItems: qdShowOnlySelectItems, selectedIDs: values, onClose: () => setShowChooser(false), onChoose: (tid_mids) => { onValueChanged?.(tid_mids); } })] }));
|
|
22
22
|
};
|
|
23
23
|
export default TMMetadataChooser;
|
|
@@ -6,21 +6,19 @@ interface ITMUserChooserProps extends ITMChooserProps {
|
|
|
6
6
|
values?: number[];
|
|
7
7
|
/** Visualizza il bordo */
|
|
8
8
|
showBorder?: boolean;
|
|
9
|
-
/** Se presente, visualizza il bottone Pulisci ed esegue */
|
|
10
|
-
hasClear?: boolean;
|
|
11
9
|
}
|
|
12
10
|
declare const TMUserChooser: React.FunctionComponent<ITMUserChooserProps>;
|
|
13
11
|
export default TMUserChooser;
|
|
14
12
|
export declare const TMUserChooserForm: React.FunctionComponent<ITMChooserFormProps<UserDescriptor>>;
|
|
15
13
|
export declare const TMUserIdViewer: ({ userId, showIcon, noneSelectionText }: {
|
|
16
|
-
userId?: number
|
|
17
|
-
showIcon?: boolean
|
|
18
|
-
noneSelectionText?: string
|
|
14
|
+
userId?: number;
|
|
15
|
+
showIcon?: boolean;
|
|
16
|
+
noneSelectionText?: string;
|
|
19
17
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
18
|
export declare const TMUserIcon: ({ ud }: {
|
|
21
|
-
ud?: UserDescriptor
|
|
19
|
+
ud?: UserDescriptor;
|
|
22
20
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
23
21
|
export declare const TMUserTooltip: ({ ud, children }: {
|
|
24
|
-
ud?: UserDescriptor
|
|
22
|
+
ud?: UserDescriptor;
|
|
25
23
|
children: React.ReactNode;
|
|
26
24
|
}) => import("react/jsx-runtime").JSX.Element;
|