@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.
Files changed (50) hide show
  1. package/lib/assets/TopMediaOrchestrator6.svg +92 -92
  2. package/lib/assets/icomoon.svg +96 -96
  3. package/lib/components/base/Styled.d.ts +22 -1919
  4. package/lib/components/base/TMAlert.d.ts +2 -3
  5. package/lib/components/base/TMButton.d.ts +7 -7
  6. package/lib/components/base/TMContextMenuOLD.d.ts +3 -274
  7. package/lib/components/base/TMDropDownMenu.d.ts +0 -1
  8. package/lib/components/base/TMEditorBase.d.ts +7 -2
  9. package/lib/components/base/TMLayout.d.ts +36 -36
  10. package/lib/components/base/TMListView.d.ts +0 -1
  11. package/lib/components/base/TMTab.d.ts +4 -4
  12. package/lib/components/base/TMVilViewer.d.ts +1 -1
  13. package/lib/components/choosers/TMDataListItemChooser.d.ts +0 -2
  14. package/lib/components/choosers/TMDataListItemChooser.js +2 -2
  15. package/lib/components/choosers/TMDcmtTypeChooser.d.ts +0 -2
  16. package/lib/components/choosers/TMDcmtTypeChooser.js +2 -2
  17. package/lib/components/choosers/TMDynDataListItemChooser.d.ts +0 -2
  18. package/lib/components/choosers/TMDynDataListItemChooser.js +2 -2
  19. package/lib/components/choosers/TMMetadataChooser.d.ts +0 -1
  20. package/lib/components/choosers/TMMetadataChooser.js +2 -2
  21. package/lib/components/choosers/TMUserChooser.d.ts +5 -7
  22. package/lib/components/choosers/TMUserChooser.js +2 -2
  23. package/lib/components/editors/TMDateBox.d.ts +1 -0
  24. package/lib/components/editors/TMDateBox.js +10 -2
  25. package/lib/components/editors/TMEditorStyled.d.ts +16 -17
  26. package/lib/components/editors/TMSummary.d.ts +1 -2
  27. package/lib/components/editors/TMSummary.js +5 -3
  28. package/lib/components/editors/TMTextArea.d.ts +2 -7
  29. package/lib/components/editors/TMTextBox.d.ts +0 -6
  30. package/lib/components/editors/TMTextBox.js +11 -18
  31. package/lib/components/forms/TMLoginForm.d.ts +4 -4
  32. package/lib/components/forms/TMLoginForm.js +1 -1
  33. package/lib/components/query/TMQueryEditor.d.ts +12 -554
  34. package/lib/components/query/TMQueryEditor.js +10 -9
  35. package/lib/components/query/TMQueryResult.d.ts +5 -5
  36. package/lib/components/query/TMQueryResultForm.d.ts +10 -10
  37. package/lib/components/sidebar/TMHeader.d.ts +2 -2
  38. package/lib/components/sidebar/TMSidebar.d.ts +0 -4
  39. package/lib/components/sidebar/TMSidebar.js +9 -12
  40. package/lib/components/sidebar/TMSidebarItem.d.ts +0 -7
  41. package/lib/components/sidebar/TMSidebarItem.js +4 -14
  42. package/lib/components/viewers/TMDataListItemViewer.d.ts +3 -3
  43. package/lib/components/viewers/TMMidViewer.d.ts +5 -5
  44. package/lib/components/viewers/TMTidViewer.d.ts +5 -5
  45. package/lib/helper/TMIcons.d.ts +1 -0
  46. package/lib/helper/TMIcons.js +3 -0
  47. package/lib/helper/helpers.d.ts +1 -1
  48. package/lib/hooks/useForm.d.ts +0 -1
  49. package/lib/hooks/useOutsideClick.d.ts +0 -1
  50. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { useEffect, useState } from 'react';
3
3
  import { SDK_Localizator, AccessLevels, OnJoinItem, JoinTypes, PlatformObjectValidator, MetadataDataDomains, DcmtTypeListCacheService, JoinItem, SystemMIDsAsNumber, MetadataDataTypes, OrderByItem, QueryDescriptor, QueryFunctions, QueryOperators, ResultTypes, SelectItem, SDK_Globals, UserListCacheService, WhereItem, SearchEngine, SelectItemVisibilities, DataListCacheService, QueryValidatorOptions, TMPropertyNames, AppModules, LayoutModes } from '@topconsultnpm/sdk-ts-beta';
4
4
  import styled from 'styled-components';
5
5
  import Accordion, { Item } from 'devextreme-react/accordion';
6
- import { SDKUI_Localizator, IconSearch, IconCount, getQueryCountAsync, calcIsModified, IconClear, IconAddCircleOutline, IconDotsVerticalCircleOutline, IconHide, IconShow, IconDraggabledots, genUniqueId, LocalizeQueryOperators, LocalizeQueryFunctions, LocalizeQueryJoinTypes, IconArchiveDoc, IconArrowRight } from '../../helper';
6
+ import { SDKUI_Localizator, IconSearch, IconCount, getQueryCountAsync, calcIsModified, IconClear, IconAddCircleOutline, IconDotsVerticalCircleOutline, IconHide, IconShow, IconDraggabledots, genUniqueId, LocalizeQueryOperators, LocalizeQueryFunctions, LocalizeQueryJoinTypes, IconArchiveDoc, IconArrowRight, IconLayerGroup } from '../../helper';
7
7
  import { displayMetadataValue, getDcmtTypesByQdAsync, getTIDsByQd } from '../../helper/queryHelper';
8
8
  import { useOutsideClick } from '../../hooks/useOutsideClick';
9
9
  import { FormModes } from '../../ts';
@@ -1018,24 +1018,25 @@ const TMQdWhereItemValue = ({ whereItem, index, queryParamsDynDataList, onlyEdit
1018
1018
  : _jsxs(_Fragment, { children: [displayMetadataValue(md, whereItem.value1, mdValueEmptyDescr), numberOfOperands == 2 && (whereItem.value2 && whereItem.value2 != '' ? ` - ${displayMetadataValue(md, whereItem.value2, mdValueEmptyDescr)}` : ' - ?')] }) })] })] }));
1019
1019
  };
1020
1020
  export const TMQdWhereItemValueEditor = ({ tid, value, queryParamsDynDataList, containerElement, allowMultipleSelection, autoFocus, numberOfOperands, md, onValueChanged, onValueChange, onCascadeRefreshDynDataLists }) => {
1021
+ let btnDistincValues = { text: 'Valori distinti', icon: _jsx(IconLayerGroup, { fontSize: 16 }), onClick: () => { ShowAlert({ message: "TODO Valori distinti", mode: 'info', title: `${"TODO"}`, duration: 3000 }); } };
1021
1022
  if (value?.startsWith("{@QueryParam") || value == "{@UserName}" || value == "{@UserID}")
1022
1023
  return _jsx(TMTextBox, { elementStyle: { width: '100%' }, type: 'text', maxLength: md?.length, autoFocus: autoFocus, value: value || '', onValueChanged: (e) => onValueChange?.(e.target.value), onBlur: (newValue) => onValueChanged?.(newValue) });
1023
1024
  if (md?.dataDomain == MetadataDataDomains.DynamicDataList)
1024
- return _jsx(TMDynDataListItemChooser, { md: md, tid: tid, queryParamsDynDataList: queryParamsDynDataList, onCascadeRefreshDynDataLists: onCascadeRefreshDynDataLists, elementStyle: { width: '100%' }, backgroundColor: TMColors.default_background, allowMultipleSelection: allowMultipleSelection, values: value ? [value] : [], hasClear: false, onValueChanged: (IDs) => {
1025
+ return _jsx(TMDynDataListItemChooser, { md: md, tid: tid, buttons: [btnDistincValues], queryParamsDynDataList: queryParamsDynDataList, onCascadeRefreshDynDataLists: onCascadeRefreshDynDataLists, elementStyle: { width: '100%' }, backgroundColor: TMColors.default_background, allowMultipleSelection: allowMultipleSelection, values: value ? [value] : [], showClearButton: true, onValueChanged: (IDs) => {
1025
1026
  if (!IDs || IDs.length <= 0)
1026
1027
  onValueChanged?.(undefined);
1027
1028
  else
1028
1029
  onValueChanged?.(IDs[0]);
1029
1030
  } });
1030
1031
  if (md?.dataDomain == MetadataDataDomains.DataList)
1031
- return _jsx(TMDataListItemChooser, { elementStyle: { width: '100%' }, backgroundColor: TMColors.default_background, dataListId: md.dataListID, allowMultipleSelection: allowMultipleSelection, values: value?.split(',').map((item) => !item.startsWith("'") ? item : item.slice(1, -1)) ?? [], hasClear: false, onValueChanged: (IDs) => {
1032
+ return _jsx(TMDataListItemChooser, { elementStyle: { width: '100%' }, backgroundColor: TMColors.default_background, dataListId: md.dataListID, allowMultipleSelection: allowMultipleSelection, values: value?.split(',').map((item) => !item.startsWith("'") ? item : item.slice(1, -1)) ?? [], showClearButton: true, buttons: [btnDistincValues], onValueChanged: (IDs) => {
1032
1033
  if (!IDs || IDs.length <= 0)
1033
1034
  onValueChanged?.(undefined);
1034
1035
  else
1035
1036
  onValueChanged?.(IDs.join(","));
1036
1037
  } });
1037
1038
  if (md?.dataDomain == MetadataDataDomains.UserID)
1038
- return _jsx(TMUserChooser, { elementStyle: { width: '100%' }, backgroundColor: TMColors.default_background, placeHolder: " ", hasClear: true, allowMultipleSelection: allowMultipleSelection, values: value?.split(',').map((item) => !item.startsWith("'") ? Number(item) : Number(item.slice(1, -1))) ?? [], onValueChanged: (IDs) => {
1039
+ return _jsx(TMUserChooser, { elementStyle: { width: '100%' }, backgroundColor: TMColors.default_background, placeHolder: " ", showClearButton: true, allowMultipleSelection: allowMultipleSelection, values: value?.split(',').map((item) => !item.startsWith("'") ? Number(item) : Number(item.slice(1, -1))) ?? [], buttons: [btnDistincValues], onValueChanged: (IDs) => {
1039
1040
  if (!IDs || IDs.length <= 0)
1040
1041
  onValueChanged?.(undefined);
1041
1042
  else
@@ -1043,13 +1044,13 @@ export const TMQdWhereItemValueEditor = ({ tid, value, queryParamsDynDataList, c
1043
1044
  } });
1044
1045
  switch (numberOfOperands) {
1045
1046
  case 11:
1046
- case 99: return _jsx(TMTextBox, { elementStyle: { width: '100%' }, type: 'text', maxLength: md?.length, autoFocus: autoFocus, value: value ?? '', onValueChanged: (e) => onValueChange?.(e.target.value), onBlur: (newValue) => onValueChanged?.(newValue) });
1047
- case 12: return _jsx(TMTextBox, { elementStyle: { width: '100%' }, type: 'number', precision: md?.length, scale: md?.scale, autoFocus: autoFocus, value: value ?? '', onValueChanged: (e) => onValueChange?.(e.target.value), onBlur: (newValue) => onValueChanged?.(newValue) });
1047
+ case 99: return _jsx(TMTextBox, { elementStyle: { width: '100%' }, type: 'text', buttons: [btnDistincValues], showClearButton: true, maxLength: md?.length, autoFocus: autoFocus, value: value ?? '', onValueChanged: (e) => onValueChange?.(e.target.value), onBlur: (newValue) => onValueChanged?.(newValue) });
1048
+ case 12: return _jsx(TMTextBox, { elementStyle: { width: '100%' }, type: 'number', showClearButton: true, precision: md?.length, scale: md?.scale, autoFocus: autoFocus, value: value ?? '', onValueChanged: (e) => onValueChange?.(e.target.value), onBlur: (newValue) => onValueChanged?.(newValue) });
1048
1049
  default:
1049
1050
  switch (md?.dataType) {
1050
- case MetadataDataTypes.DateTime: return _jsx(TMDateBox, { width: '100%', value: value, useDateSerializationFormat: true, containerElement: containerElement, onValueChange: (newValue) => { onValueChange?.(newValue ? newValue.toString() : undefined); onValueChanged?.(newValue ? newValue.toString() : undefined); } });
1051
- case MetadataDataTypes.Number: return _jsx(TMTextBox, { elementStyle: { width: '100%' }, type: 'number', precision: md?.length, scale: md?.scale, autoFocus: autoFocus, value: value ?? '', onValueChanged: (e) => onValueChange?.(e.target.value), onBlur: (newValue) => onValueChanged?.(newValue) });
1052
- default: return _jsx(TMTextBox, { type: 'text', elementStyle: { width: '100%' }, autoFocus: autoFocus, maxLength: md?.length, value: value ?? '', onValueChanged: (e) => onValueChange?.(e.target.value), onBlur: (newValue) => { onValueChanged?.(newValue); } });
1051
+ case MetadataDataTypes.DateTime: return _jsx(TMDateBox, { width: '100%', value: value, buttons: [btnDistincValues], showClearButton: true, useDateSerializationFormat: true, containerElement: containerElement, onValueChange: (newValue) => { onValueChange?.(newValue ? newValue.toString() : undefined); onValueChanged?.(newValue ? newValue.toString() : undefined); } });
1052
+ case MetadataDataTypes.Number: return _jsx(TMTextBox, { elementStyle: { width: '100%' }, type: 'number', buttons: [btnDistincValues], showClearButton: true, precision: md?.length, scale: md?.scale, autoFocus: autoFocus, value: value ?? '', onValueChanged: (e) => onValueChange?.(e.target.value), onBlur: (newValue) => onValueChanged?.(newValue) });
1053
+ default: return _jsx(TMTextBox, { type: 'text', elementStyle: { width: '100%' }, showClearButton: true, buttons: [btnDistincValues], autoFocus: autoFocus, maxLength: md?.length, value: value ?? '', onValueChanged: (e) => onValueChange?.(e.target.value), onBlur: (newValue) => { onValueChanged?.(newValue); } });
1053
1054
  }
1054
1055
  }
1055
1056
  };
@@ -1,10 +1,10 @@
1
1
  import { SearchResultDescriptor } from '@topconsultnpm/sdk-ts-beta';
2
2
  declare const TMQueryResult: ({ result, elapsedTime, showHiddenSelectItems, searchText, onSelectionChanged, onDblClick }: {
3
- onDblClick?: (() => void) | undefined;
4
- onSelectionChanged?: ((e: any[]) => void) | undefined;
3
+ onDblClick?: () => void;
4
+ onSelectionChanged?: (e: any[]) => void;
5
5
  result: SearchResultDescriptor | undefined;
6
- elapsedTime?: number | undefined;
7
- showHiddenSelectItems?: boolean | undefined;
8
- searchText?: string | undefined;
6
+ elapsedTime?: number;
7
+ showHiddenSelectItems?: boolean;
8
+ searchText?: string;
9
9
  }) => import("react/jsx-runtime").JSX.Element;
10
10
  export default TMQueryResult;
@@ -6,17 +6,17 @@ export declare enum SearchResultContext {
6
6
  RECENT = "recent"
7
7
  }
8
8
  declare const TMQueryResultForm: ({ onUpdate, isModal, onClose, context, result1, result2, elapsedTime, searchText, tabIcon1, tabIcon2, tabTitle1, tabTitle2 }: {
9
- tabTitle1?: string | undefined;
10
- tabTitle2?: string | undefined;
9
+ tabTitle1?: string;
10
+ tabTitle2?: string;
11
11
  tabIcon1?: any;
12
12
  tabIcon2?: any;
13
- isModal?: boolean | undefined;
14
- onClose?: (() => void) | undefined;
15
- context?: SearchResultContext | undefined;
16
- result1?: SearchResultDescriptor | SearchResultDescriptor[] | undefined;
17
- result2?: SearchResultDescriptor | SearchResultDescriptor[] | undefined;
18
- elapsedTime?: number | undefined;
19
- searchText?: string | undefined;
20
- onUpdate?: (() => Promise<void>) | undefined;
13
+ isModal?: boolean;
14
+ onClose?: () => void;
15
+ context?: SearchResultContext;
16
+ result1?: SearchResultDescriptor | SearchResultDescriptor[];
17
+ result2?: SearchResultDescriptor | SearchResultDescriptor[];
18
+ elapsedTime?: number;
19
+ searchText?: string;
20
+ onUpdate?: () => Promise<void>;
21
21
  }) => import("react/jsx-runtime").JSX.Element;
22
22
  export default TMQueryResultForm;
@@ -24,8 +24,8 @@ interface ITMHeader {
24
24
  onSettingsClick?: () => void;
25
25
  }
26
26
  export declare const TMSearchBar: ({ searchValue, onSearchValueChanged, maxWidth, marginLeft }: {
27
- maxWidth?: string | undefined;
28
- marginLeft?: string | undefined;
27
+ maxWidth?: string;
28
+ marginLeft?: string;
29
29
  searchValue: string;
30
30
  onSearchValueChanged: (value: string) => void;
31
31
  }) => import("react/jsx-runtime").JSX.Element;
@@ -12,10 +12,6 @@ interface ITMSidebar {
12
12
  /** Lista di TMSidebarItem che compongono il menù */
13
13
  items: JSX.Element[];
14
14
  height?: string;
15
- width?: string;
16
- top?: string;
17
- left?: string;
18
- borderRightRadius?: string;
19
15
  }
20
16
  declare const TMSidebar: React.FC<ITMSidebar>;
21
17
  export default TMSidebar;
@@ -1,15 +1,14 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import styled from 'styled-components';
3
3
  import { SDK_Globals } from '@topconsultnpm/sdk-ts-beta';
4
- import { ApplicationThemeColor } from './TMSidebarItem';
5
4
  const StyledTMSidebarContainer = styled.div `
6
- top: ${props => props.$top ? props.$top : '53px'};
7
- left: ${props => props.$left ? props.$left : '0px'};
8
- width: ${props => props.$width ? props.$width : '50px'};
9
- height: ${props => props.$height ? props.$height : 'calc(100% - 88px)'};
10
- background: ${props => props.$appName === 'ORCHESTRATOR' ? `${ApplicationThemeColor.ORCHESTRATOR} 0% 0% no-repeat padding-box` : props.$appName === 'SURFER' ? `${ApplicationThemeColor.SURFER} 0% 0% no-repeat padding-box` : `${ApplicationThemeColor.DESIGNER} 0% 0% no-repeat padding-box`};
5
+ top: 50px;
6
+ left: 0px;
7
+ width: 50px;
8
+ height: ${props => props.$height ?? ''} ;
9
+ background: ${props => props.$appName === 'ORCHESTRATOR' ? '#135596 0% 0% no-repeat padding-box' : props.$appName === 'SURFER' ? '#0e7418 0% 0% no-repeat padding-box' : '#b51678 0% 0% no-repeat padding-box'};
11
10
  box-shadow: 0px 3px 6px #00000029;
12
- border-radius: 0;
11
+ border-radius: 0px 0px;
13
12
  opacity: 1;
14
13
  display: flex;
15
14
  flex-direction: column;
@@ -17,11 +16,9 @@ const StyledTMSidebarContainer = styled.div `
17
16
  align-items: center;
18
17
  padding: 10px 0px 0px 0px;
19
18
  position: absolute;
20
- border-top-right-radius: 10px;
21
- border-bottom-right-radius: 10px;
22
19
  /* z-index: 20000001; */
23
20
  `;
24
- const TMSidebar = ({ items, height, borderRightRadius, left, top, width }) => {
25
- return (_jsxs(StyledTMSidebarContainer, { "$borderRightRadius": borderRightRadius, "$left": left, "$top": top, "$width": width, "$appName": SDK_Globals.appModule, "$height": height, children: [items.filter(item => item.props.type !== 'app'), _jsx("div", { style: { position: 'absolute', bottom: '10px', display: 'flex', flexDirection: 'column' }, children: items.filter(item => item.props.type === 'app') })] }));
21
+ const TMSidebar = ({ items, height }) => {
22
+ return (_jsx(_Fragment, { children: _jsxs(StyledTMSidebarContainer, { "$appName": SDK_Globals.appModule, "$height": height, children: [items.filter(item => item.props.type !== 'app'), _jsx("div", { style: { position: 'absolute', bottom: '10px', display: 'flex', flexDirection: 'column' }, children: items.filter(item => item.props.type === 'app') })] }) }));
26
23
  };
27
24
  export default TMSidebar;
@@ -1,19 +1,12 @@
1
1
  import React from 'react';
2
2
  import { AppRouteType } from './TMSidebar';
3
- export declare enum ApplicationThemeColor {
4
- SURFER = "#0e7418",
5
- ORCHESTRATOR = "#135596",
6
- DESIGNER = "#b51678"
7
- }
8
3
  export interface ITMSidebarItem {
9
4
  name: string;
10
5
  path: string;
11
6
  type?: AppRouteType;
12
7
  isSelected: boolean;
13
8
  icon: any;
14
- badgeNumber?: number;
15
9
  onClick?: (e: ITMSidebarItem) => void;
16
- isAppIcon?: boolean;
17
10
  }
18
11
  declare const TMSidebarItem: React.FunctionComponent<ITMSidebarItem>;
19
12
  export default TMSidebarItem;
@@ -1,13 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import styled from 'styled-components';
3
+ import { TMColors } from '../../utils/theme';
3
4
  import TMTooltip from '../base/TMTooltip';
4
- import { AppModules, SDK_Globals } from '@topconsultnpm/sdk-ts-beta';
5
- export var ApplicationThemeColor;
6
- (function (ApplicationThemeColor) {
7
- ApplicationThemeColor["SURFER"] = "#0e7418";
8
- ApplicationThemeColor["ORCHESTRATOR"] = "#135596";
9
- ApplicationThemeColor["DESIGNER"] = "#b51678";
10
- })(ApplicationThemeColor || (ApplicationThemeColor = {}));
11
5
  const StyledTMSidebarItemContainer = styled.div `
12
6
  margin-bottom: 10px;
13
7
  background-color: transparent;
@@ -15,9 +9,7 @@ const StyledTMSidebarItemContainer = styled.div `
15
9
  transition: all 200ms ease;
16
10
  user-select: none;
17
11
  cursor: pointer;
18
- color: ${(props) => props.$isSelected ? props.$app === AppModules.SURFER ? ApplicationThemeColor.SURFER : props.$app === AppModules.ORCHESTRATOR ? ApplicationThemeColor.ORCHESTRATOR : ApplicationThemeColor.DESIGNER : '#fff'};
19
- background-color: ${props => props.$isSelected ? 'white' : 'transparent'} ;
20
- border-radius: 3px;
12
+ color: ${(props) => props.$isSelected ? TMColors.secondary : '#fff'};
21
13
  width: 32px;
22
14
  height: 32px;
23
15
 
@@ -26,12 +18,10 @@ const StyledTMSidebarItemContainer = styled.div `
26
18
  }
27
19
 
28
20
  &:hover {
29
- background-color: ${props => !props.$isApp && 'white'};
30
- color: ${props => !props.$isApp && props.$app === AppModules.SURFER ? ApplicationThemeColor.SURFER : props.$app === AppModules.ORCHESTRATOR ? ApplicationThemeColor.ORCHESTRATOR : ApplicationThemeColor.DESIGNER};
21
+ color: ${TMColors.secondary};
31
22
  }
32
23
  `;
33
24
  const TMSidebarItem = (props) => {
34
- let app = SDK_Globals.appModule;
35
- return (_jsx(TMTooltip, { hideAfterDelay: true, content: props.name, children: _jsxs(StyledTMSidebarItemContainer, { "$app": app, "$isApp": props.isAppIcon, onClick: () => props.onClick?.(props), style: { position: 'relative' }, "$isSelected": props.isSelected, children: [_jsxs("div", { children: [_jsx("i", { children: props.icon }), _jsx("p", { children: props.name })] }), props.badgeNumber > 0 && _jsx("div", { style: { width: '22px', height: '22px', backgroundColor: '#f09c0a', position: 'absolute', borderRadius: '22px', top: -6, right: -6, color: 'white', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: '1rem', fontWeight: 'bold' }, children: props.badgeNumber })] }) }));
25
+ return (_jsx(TMTooltip, { hideAfterDelay: true, content: props.name, children: _jsx(StyledTMSidebarItemContainer, { "$isSelected": props.isSelected, children: _jsxs("div", { onClick: () => props.onClick?.(props), children: [_jsx("i", { children: props.icon }), _jsx("p", { children: props.name })] }) }) }));
36
26
  };
37
27
  export default TMSidebarItem;
@@ -1,9 +1,9 @@
1
1
  import { DataListViewModes } from '@topconsultnpm/sdk-ts-beta';
2
2
  import { DataGridTypes } from 'devextreme-react/cjs/data-grid';
3
3
  declare const TMDataListItemViewer: ({ dataListId, value, viewMode }: {
4
- dataListId?: number | undefined;
5
- value?: string | undefined;
6
- viewMode?: DataListViewModes | undefined;
4
+ dataListId?: number;
5
+ value?: string;
6
+ viewMode?: DataListViewModes;
7
7
  }) => import("react/jsx-runtime").JSX.Element;
8
8
  export default TMDataListItemViewer;
9
9
  export declare const cellRenderDataListItem: (data: DataGridTypes.ColumnCellTemplateData, dataListId?: number, viewMode?: DataListViewModes) => import("react/jsx-runtime").JSX.Element;
@@ -3,12 +3,12 @@ import { ITopMediaSession, MetadataDescriptor } from '@topconsultnpm/sdk-ts-beta
3
3
  import { TID_MID } from '../../ts';
4
4
  import { DataGridTypes } from 'devextreme-react/cjs/data-grid';
5
5
  export declare const TMMidViewer: ({ tmSession, tid_mid, showCompleteName, showIcon, showId, noneSelectionText }: {
6
- tmSession?: ITopMediaSession | undefined;
6
+ tmSession?: ITopMediaSession;
7
7
  tid_mid: TID_MID | undefined;
8
- showCompleteName?: boolean | undefined;
9
- showIcon?: boolean | undefined;
10
- showId?: boolean | undefined;
11
- noneSelectionText?: string | undefined;
8
+ showCompleteName?: boolean;
9
+ showIcon?: boolean;
10
+ showId?: boolean;
11
+ noneSelectionText?: string;
12
12
  }) => import("react/jsx-runtime").JSX.Element;
13
13
  interface ITMMetadataIcon {
14
14
  tid: number | undefined;
@@ -11,11 +11,11 @@ interface ITMDcmtTypeTooltip {
11
11
  }
12
12
  export declare const TMDcmtTypeTooltip: React.FC<ITMDcmtTypeTooltip>;
13
13
  declare const TMTidViewer: ({ tmSession, tid, showIcon, showId, noneSelectionText }: {
14
- tmSession?: ITopMediaSession | undefined;
15
- tid?: number | undefined;
16
- showIcon?: boolean | undefined;
17
- showId?: boolean | undefined;
18
- noneSelectionText?: string | undefined;
14
+ tmSession?: ITopMediaSession;
15
+ tid?: number;
16
+ showIcon?: boolean;
17
+ showId?: boolean;
18
+ noneSelectionText?: string;
19
19
  }) => import("react/jsx-runtime").JSX.Element;
20
20
  export default TMTidViewer;
21
21
  export declare const cellRenderTID: (data: DataGridTypes.ColumnCellTemplateData, noneSelectionText?: string) => import("react/jsx-runtime").JSX.Element;
@@ -116,6 +116,7 @@ declare function IconHistory(props: React.SVGProps<SVGSVGElement>): import("reac
116
116
  declare function IconForceStop(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
117
117
  declare function IconDraggabledots(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
118
118
  declare function IconClear(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
119
+ export declare function IconClearButton(props: Readonly<React.SVGProps<SVGSVGElement>>): import("react/jsx-runtime").JSX.Element;
119
120
  declare function IconAddCircleOutline(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
120
121
  declare function IconDotsVerticalCircleOutline(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
121
122
  declare function IconMapping(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -351,6 +351,9 @@ function IconDraggabledots(props) {
351
351
  function IconClear(props) {
352
352
  return (_jsxs("svg", { fontSize: props.fontSize ? props.fontSize : FONTSIZE, viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", ...props, children: [" ", _jsxs("defs", { children: [" ", _jsx("style", {}), " "] }), " ", _jsx("path", { d: "M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6c-.3 1.5-.4 3-.4 4.4 0 14.4 11.6 26 26 26h723c1.5 0 3-.1 4.4-.4 14.2-2.4 23.7-15.9 21.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z" }), " "] }));
353
353
  }
354
+ export function IconClearButton(props) {
355
+ return (_jsx("svg", { fontSize: 16, fill: "currentColor", width: "1em", height: "1em", viewBox: "0 0 20 20", ...props, children: _jsx("path", { d: "M4.089 4.216l0.058-0.069c0.174-0.174 0.443-0.193 0.638-0.058l0.069 0.058 5.146 5.147 5.146-5.147c0.174-0.174 0.443-0.193 0.638-0.058l0.069 0.058c0.173 0.174 0.193 0.443 0.058 0.638l-0.058 0.069-5.147 5.146 5.147 5.146c0.173 0.174 0.193 0.443 0.058 0.638l-0.058 0.069c-0.174 0.173-0.443 0.193-0.638 0.058l-0.069-0.058-5.146-5.147-5.146 5.147c-0.174 0.173-0.443 0.193-0.638 0.058l-0.069-0.058c-0.174-0.174-0.193-0.443-0.058-0.638l0.058-0.069 5.147-5.146-5.147-5.146c-0.174-0.174-0.193-0.443-0.058-0.638v0z" }) }));
356
+ }
354
357
  function IconAddCircleOutline(props) {
355
358
  return (_jsxs("svg", { fontSize: props.fontSize ? props.fontSize : FONTSIZE, viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", ...props, children: [" ", _jsx("path", { fill: "none", stroke: "currentColor", strokeMiterlimit: 10, strokeWidth: 32, d: "M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z" }), " ", _jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 32, d: "M256 176v160M336 256H176" }), " "] }));
356
359
  }
@@ -3,7 +3,7 @@ import { AppModules, DataColumnDescriptor, ITopMediaSession, QueryDescriptor, Se
3
3
  import { FormModes } from "../ts";
4
4
  declare const TABLET_WIDTH = 1024;
5
5
  declare const MOBILE_WIDTH = 640;
6
- declare const calcResponsiveDirection: (currentWidth: number, desktopDir: 'horizontal' | 'vertical', tabletDir: 'horizontal' | 'vertical', mobileDir: 'horizontal' | 'vertical') => 'horizontal' | 'vertical';
6
+ declare const calcResponsiveDirection: (currentWidth: number, desktopDir: "horizontal" | "vertical", tabletDir: "horizontal" | "vertical", mobileDir: "horizontal" | "vertical") => "horizontal" | "vertical";
7
7
  declare const openApps: (appModule: AppModules, tmSession: ITopMediaSession, appRoutes?: any[]) => Promise<void>;
8
8
  export declare const setSDK_GlobalsInfoAsync: (tms: ITopMediaSession | undefined) => Promise<ITopMediaSession>;
9
9
  declare const calcResponsiveSizes: (currentWidth: number, desktopSize: string, tabletSize: string, mobileSize: string) => string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormModes } from "../ts";
3
2
  import { JobTypes, ObjectClasses, ValidationItem } from "@topconsultnpm/sdk-ts-beta";
4
3
  export declare function useSaveForm<T>(objClass: ObjectClasses, formMode: FormModes, id: number | undefined, objType?: JobTypes, validator?: (d: T) => Promise<ValidationItem[] | undefined>, onSaved?: (newDescriptor: T) => void, onStatusChanged?: (isModified: boolean, isValid: boolean) => void, customizeData?: (d: T) => T): {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const useOutsideClick: (callback: (escPressed?: boolean) => void) => import("react").RefObject<HTMLDivElement>;
3
2
  export declare const useEscapeKeyPress: (callback: () => void) => import("react").RefObject<HTMLDivElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.6.15",
3
+ "version": "6.6.16",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",