@topconsultnpm/sdkui-react-beta 6.8.93 → 6.8.94

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 (29) hide show
  1. package/lib/components/base/Styled.d.ts +23 -1920
  2. package/lib/components/base/TMAlert.d.ts +2 -3
  3. package/lib/components/base/TMContextMenuOLD.d.ts +3 -274
  4. package/lib/components/base/TMDropDownMenu.d.ts +0 -1
  5. package/lib/components/base/TMEditorBase.d.ts +0 -1
  6. package/lib/components/base/TMLayout.d.ts +32 -32
  7. package/lib/components/base/TMRightSidebar.d.ts +4 -4
  8. package/lib/components/base/TMTab.d.ts +4 -4
  9. package/lib/components/base/TMVilViewer.d.ts +1 -1
  10. package/lib/components/choosers/TMDynDataListItemChooser.d.ts +7 -1
  11. package/lib/components/choosers/TMDynDataListItemChooser.js +38 -23
  12. package/lib/components/choosers/TMRelationChooser.d.ts +5 -5
  13. package/lib/components/choosers/TMUserChooser.d.ts +5 -5
  14. package/lib/components/editors/TMEditorStyled.d.ts +21 -22
  15. package/lib/components/editors/TMMetadataEditor.d.ts +3 -2
  16. package/lib/components/editors/TMMetadataEditor.js +3 -3
  17. package/lib/components/forms/TMLoginForm.d.ts +5 -5
  18. package/lib/components/query/TMQueryEditor.d.ts +8 -550
  19. package/lib/components/query/TMQueryResult.d.ts +5 -5
  20. package/lib/components/query/TMQueryResultForm.d.ts +10 -10
  21. package/lib/components/sidebar/TMHeader.d.ts +2 -2
  22. package/lib/components/viewers/TMDataListItemViewer.d.ts +3 -3
  23. package/lib/components/viewers/TMMidViewer.d.ts +5 -5
  24. package/lib/components/viewers/TMTidViewer.d.ts +5 -5
  25. package/lib/helper/helpers.d.ts +1 -1
  26. package/lib/hooks/useForm.d.ts +0 -1
  27. package/lib/hooks/useOutsideClick.d.ts +0 -1
  28. package/lib/hooks/useQueryParametersDialog.d.ts +0 -1
  29. package/package.json +1 -1
@@ -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;
@@ -1,5 +1,5 @@
1
1
  import { ValidationItem, LayoutModes, QueryOperators } from '@topconsultnpm/sdk-ts-beta';
2
- import { DynDataListsToBeRefreshed } from '../choosers/TMDynDataListItemChooser';
2
+ import { DynDataListsToBeRefreshed, MIDsToBeUpdated } from '../choosers/TMDynDataListItemChooser';
3
3
  interface ITMMetadataEditorProps {
4
4
  tid: number | undefined;
5
5
  mid?: number;
@@ -16,6 +16,7 @@ interface ITMMetadataEditorProps {
16
16
  onValueChanged?: (value: any) => void;
17
17
  onValueChange?: (value: any) => void;
18
18
  onCascadeRefreshDynDataLists?: (dynDataListsToBeRefreshed: DynDataListsToBeRefreshed[]) => void;
19
+ onCascadeUpdateMIDs?: (midsToBeUpdated: MIDsToBeUpdated[]) => void;
19
20
  }
20
- declare const TMMetadataEditor: ({ isLexProt, layoutMode, queryOperator, isModifiedWhen, tid, mid, value, queryParamsDynDataList, containerElement, autoFocus, validationItems, disabled, onValueChanged, onValueChange, onCascadeRefreshDynDataLists }: ITMMetadataEditorProps) => import("react/jsx-runtime").JSX.Element;
21
+ declare const TMMetadataEditor: ({ isLexProt, layoutMode, queryOperator, isModifiedWhen, tid, mid, value, queryParamsDynDataList, containerElement, autoFocus, validationItems, disabled, onValueChanged, onValueChange, onCascadeRefreshDynDataLists, onCascadeUpdateMIDs }: ITMMetadataEditorProps) => import("react/jsx-runtime").JSX.Element;
21
22
  export default TMMetadataEditor;
@@ -11,7 +11,7 @@ import TMDateBox from './TMDateBox';
11
11
  import TMTextBox from './TMTextBox';
12
12
  import { TMMetadataIcon } from '../viewers/TMMidViewer';
13
13
  import TMTextArea from './TMTextArea';
14
- const TMMetadataEditor = ({ isLexProt, layoutMode, queryOperator, isModifiedWhen = false, tid, mid, value, queryParamsDynDataList, containerElement, autoFocus, validationItems = [], disabled = false, onValueChanged, onValueChange, onCascadeRefreshDynDataLists }) => {
14
+ const TMMetadataEditor = ({ isLexProt, layoutMode, queryOperator, isModifiedWhen = false, tid, mid, value, queryParamsDynDataList, containerElement, autoFocus, validationItems = [], disabled = false, onValueChanged, onValueChange, onCascadeRefreshDynDataLists, onCascadeUpdateMIDs }) => {
15
15
  const [md, setMd] = useState();
16
16
  useEffect(() => {
17
17
  DcmtTypeListCacheService.GetAsync(tid).then((dtd) => {
@@ -19,7 +19,7 @@ const TMMetadataEditor = ({ isLexProt, layoutMode, queryOperator, isModifiedWhen
19
19
  });
20
20
  }, [mid]);
21
21
  const isReadOnlyInternal = () => {
22
- if (md?.isSystem === 1)
22
+ if (md?.isSystem === 1 && layoutMode !== LayoutModes.None)
23
23
  return true;
24
24
  switch (layoutMode) {
25
25
  case LayoutModes.Update: return md?.dataDomain === MetadataDataDomains.Computed || md?.perm?.canUpdate !== AccessLevels.Yes || (isLexProt === 1 && (md?.isLexProt === 1 || md?.isLexProt === 3));
@@ -41,7 +41,7 @@ const TMMetadataEditor = ({ isLexProt, layoutMode, queryOperator, isModifiedWhen
41
41
  if (value?.startsWith("{@QueryParam") || value == "{@UserName}" || value == "{@UserID}" || queryOperator == QueryOperators.Custom)
42
42
  return _jsx(TMTextBox, { placeHolder: layoutMode === LayoutModes.Ark ? md?.defaultValue ?? '' : '', isModifiedWhen: isModifiedWhenInternal(), readOnly: isReadOnlyResult, label: showLabelTop ? md?.nameLoc : undefined, icon: showLabelTop ? _jsx(TMMetadataIcon, { layoutMode: layoutMode, md: md, tid: tid }) : undefined, validationItems: validationItems, disabled: disabled, elementStyle: { width: '100%' }, type: 'text', maxLength: maxLength, autoFocus: autoFocus, value: value ?? '', onValueChanged: (e) => onValueChange?.(e.target.value), onBlur: (newValue) => onValueChanged?.(newValue) });
43
43
  if (md?.dataDomain == MetadataDataDomains.DynamicDataList)
44
- return _jsx(TMDynDataListItemChooser, { readOnly: isReadOnlyResult, layoutMode: layoutMode, isModifiedWhen: isModifiedWhenInternal(), label: showLabelTop ? md?.nameLoc : undefined, icon: showLabelTop ? _jsx(TMMetadataIcon, { layoutMode: layoutMode, md: md, tid: tid }) : undefined, validationItems: validationItems, disabled: disabled, md: md, tid: tid, buttons: !isReadOnlyResult ? [btnDistincValues] : undefined, queryParamsDynDataList: queryParamsDynDataList, onCascadeRefreshDynDataLists: onCascadeRefreshDynDataLists, elementStyle: { width: '100%' }, backgroundColor: TMColors.default_background, allowMultipleSelection: multipleSelectionIsenabled, values: value ? [value] : [], showClearButton: !isReadOnlyResult, onValueChanged: (IDs) => {
44
+ return _jsx(TMDynDataListItemChooser, { readOnly: isReadOnlyResult, layoutMode: layoutMode, isModifiedWhen: isModifiedWhenInternal(), label: showLabelTop ? md?.nameLoc : undefined, icon: showLabelTop ? _jsx(TMMetadataIcon, { layoutMode: layoutMode, md: md, tid: tid }) : undefined, validationItems: validationItems, disabled: disabled, md: md, tid: tid, buttons: !isReadOnlyResult ? [btnDistincValues] : undefined, queryParamsDynDataList: queryParamsDynDataList, onCascadeRefreshDynDataLists: onCascadeRefreshDynDataLists, onCascadeUpdateMIDs: onCascadeUpdateMIDs, elementStyle: { width: '100%' }, backgroundColor: TMColors.default_background, allowMultipleSelection: multipleSelectionIsenabled, values: value ? [value] : [], showClearButton: !isReadOnlyResult, onValueChanged: (IDs) => {
45
45
  if (!IDs || IDs.length <= 0)
46
46
  onValueChanged?.(undefined);
47
47
  else
@@ -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;