@topconsultnpm/sdkui-react-beta 6.12.104 → 6.12.106
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/components/features/documents/TMDcmtForm.js +9 -3
- package/lib/components/features/documents/TMDcmtPreview.js +126 -34
- package/lib/components/features/documents/TMFileUploader.js +1 -1
- package/lib/helper/SDKUI_Globals.js +5 -1
- package/lib/helper/TMIcons.d.ts +4 -1
- package/lib/helper/TMIcons.js +10 -1
- package/package.json +1 -1
@@ -9,7 +9,7 @@ import { DownloadTypes, FormModes } from '../../../ts';
|
|
9
9
|
import { DeviceType, useDeviceType } from '../../base/TMDeviceProvider';
|
10
10
|
import { useDcmtOperations } from '../../../hooks/useDcmtOperations';
|
11
11
|
import { handleArchiveVisibility, searchResultToMetadataValues } from '../../../helper/queryHelper';
|
12
|
-
import { genUniqueId,
|
12
|
+
import { genUniqueId, IconShow, SDKUI_Localizator, IconBoard, IconDcmtTypeSys, IconDataList, IconDetailDcmts, svgToString, IconDownload, IconHide, calcIsModified, IconMenuVertical, Globalization, getListMaxItems, getSystemMetadata, IconBoxArchiveIn, IconClear, IconUndo, SDKUI_Globals, IconRoundFileUpload } from '../../../helper';
|
13
13
|
import { hasDetailRelations, hasMasterRelations, isXMLFileExt } from '../../../helper/dcmtsHelper';
|
14
14
|
import { TMColors } from '../../../utils/theme';
|
15
15
|
import { StyledFormButtonsContainer, StyledModalContainer, StyledToolbarCardContainer } from '../../base/Styled';
|
@@ -137,9 +137,15 @@ const TMDcmtForm = ({ showHeader = true, onSaveRecents, layoutMode = LayoutModes
|
|
137
137
|
setFocusedMetadataValue(undefined);
|
138
138
|
}, [fromDTD, layoutMode]);
|
139
139
|
const fileIsNotValid = (fromDTD?.archiveConstraint === ArchiveConstraints.ContentCompulsory && !dcmtFile);
|
140
|
+
const fileManagerIcon = useMemo(() => {
|
141
|
+
if (layoutMode === LayoutModes.Ark) {
|
142
|
+
return _jsx(IconRoundFileUpload, { color: fileIsNotValid ? TMColors.error : undefined });
|
143
|
+
}
|
144
|
+
return _jsx(IconShow, {});
|
145
|
+
}, [layoutMode, fileIsNotValid]);
|
140
146
|
const sideBarItems = useMemo(() => {
|
141
147
|
let fixedItems = [
|
142
|
-
{ icon:
|
148
|
+
{ icon: fileManagerIcon, id: 'Preview', visibleName: (layoutMode === LayoutModes.Ark && fileIsNotValid) ? SDKUI_Localizator.RequiredField : layoutMode === LayoutModes.Ark ? SDKUI_Localizator.UploadFile : 'Anteprima', isActive: isOpenPreview, onClick: () => { setIsOpenPreview(!isOpenPreview); }, disabled: layoutMode === LayoutModes.Ark && fromDTD?.archiveConstraint === ArchiveConstraints.OnlyMetadata },
|
143
149
|
{ icon: _jsx(IconBoard, {}), id: 'Board', visibleName: 'Bacheca', disabled: layoutMode !== LayoutModes.Update, beginGroup: true, isActive: isOpenBoard, visible: layoutMode !== LayoutModes.Ark, onClick: () => { closeMiddlePanel(); setIsOpenBoard(!isOpenBoard); } },
|
144
150
|
{ icon: _jsx(IconDcmtTypeSys, {}), id: 'SystemMetadata', visibleName: 'Metadati di sistema', disabled: layoutMode !== LayoutModes.Update, isActive: isOpenSysMetadata, visible: layoutMode !== LayoutModes.Ark, onClick: () => { closeMiddlePanel(); setIsOpenSysMetadata(!isOpenSysMetadata); } },
|
145
151
|
{ icon: _jsx(IconDataList, {}), id: 'DistinctValues', disabled: !focusedMetadataValue, visibleName: 'Valori distiniti', isActive: isOpenDistinctValues, onClick: () => { closeMiddlePanel(); setIsOpenDistinctValues(!isOpenDistinctValues); } },
|
@@ -149,7 +155,7 @@ const TMDcmtForm = ({ showHeader = true, onSaveRecents, layoutMode = LayoutModes
|
|
149
155
|
return customRightSidebarItems.length === 0
|
150
156
|
? fixedItems
|
151
157
|
: [...fixedItems.filter(item => item.id !== 'DistinctValues'), ...customRightSidebarItems, ...fixedItems.filter(item => item.id === 'DistinctValues')];
|
152
|
-
}, [customRightSidebarItems, layoutMode, isOpenDistinctValues, isOpenPreview, focusedMetadataValue]);
|
158
|
+
}, [customRightSidebarItems, layoutMode, isOpenDistinctValues, isOpenPreview, focusedMetadataValue, fromDTD?.archiveConstraint]);
|
153
159
|
const closeMiddlePanel = () => {
|
154
160
|
setIsOpenBoard(false);
|
155
161
|
setIsOpenSysMetadata(false);
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import { useEffect, useState } from 'react';
|
2
|
+
import { useEffect, useMemo, useRef, useState } from 'react';
|
3
3
|
import styled from 'styled-components';
|
4
4
|
import { RetrieveFileOptions, DcmtOpers, GeneralRetrieveFormats, FileFormats } from '@topconsultnpm/sdk-ts-beta';
|
5
|
-
import { extensionHandler, sleep, getExceptionMessage, formatBytes, IconMenuVertical, IconCloseCircle, IconClear, SDKUI_Localizator, IconCloseOutline, IconPreview, SDKUI_Globals } from '../../../helper';
|
5
|
+
import { extensionHandler, sleep, getExceptionMessage, formatBytes, IconMenuVertical, IconCloseCircle, IconClear, SDKUI_Localizator, IconCloseOutline, IconPreview, SDKUI_Globals, IconZoomOutLinear, IconZoomInLinear } from '../../../helper';
|
6
6
|
import { useDcmtOperations } from '../../../hooks/useDcmtOperations';
|
7
7
|
import { FileExtensionHandler, FormModes } from '../../../ts';
|
8
8
|
import { TMColors } from '../../../utils/theme';
|
@@ -136,37 +136,133 @@ export const TMFileViewer = ({ fileBlob }) => {
|
|
136
136
|
}
|
137
137
|
return (_jsx("iframe", { srcDoc: fileType?.includes("xml") && formattedXml ? `<html><body>${formattedXml}</body></html>` : undefined, src: !fileType?.includes("xml") || !formattedXml ? blobUrl : undefined, title: "File Viewer", width: "100%", height: "100%", style: { border: 'none', zIndex: 0 } }));
|
138
138
|
};
|
139
|
-
const
|
140
|
-
|
141
|
-
|
142
|
-
display: flex;
|
143
|
-
align-items: center;
|
144
|
-
justify-content: center;
|
145
|
-
overflow: hidden;
|
146
|
-
position: relative;
|
147
|
-
`;
|
148
|
-
const StyledImage = styled.img `
|
149
|
-
width: 100%;
|
150
|
-
height: 100%;
|
151
|
-
object-fit: contain;
|
152
|
-
position: absolute;
|
153
|
-
`;
|
154
|
-
const ImageViewer = ({ fileBlob, alt = "Image", className }) => {
|
139
|
+
const ImageViewer = ({ fileBlob, alt = 'Image', className }) => {
|
140
|
+
const containerRef = useRef(null);
|
141
|
+
const imageRef = useRef(null);
|
155
142
|
const [imageUrl, setImageUrl] = useState(null);
|
143
|
+
const [baseZoom, setBaseZoom] = useState(1);
|
144
|
+
const [zoomFactor, setZoomFactor] = useState(1);
|
145
|
+
const [translateX, setTranslateX] = useState(0);
|
146
|
+
const [translateY, setTranslateY] = useState(0);
|
147
|
+
const isDragging = useRef(false);
|
148
|
+
const lastX = useRef(0);
|
149
|
+
const lastY = useRef(0);
|
156
150
|
useEffect(() => {
|
157
151
|
if (fileBlob) {
|
158
152
|
const url = URL.createObjectURL(fileBlob);
|
159
153
|
setImageUrl(url);
|
160
|
-
return () =>
|
161
|
-
URL.revokeObjectURL(url);
|
162
|
-
};
|
154
|
+
return () => URL.revokeObjectURL(url);
|
163
155
|
}
|
164
156
|
return () => { };
|
165
157
|
}, [fileBlob]);
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
158
|
+
useEffect(() => {
|
159
|
+
if (!imageUrl)
|
160
|
+
return;
|
161
|
+
const handleLoad = () => {
|
162
|
+
const container = containerRef.current;
|
163
|
+
const image = imageRef.current;
|
164
|
+
if (container && image) {
|
165
|
+
const containerWidth = container.clientWidth;
|
166
|
+
const containerHeight = container.clientHeight;
|
167
|
+
const imageWidth = image.naturalWidth;
|
168
|
+
const imageHeight = image.naturalHeight;
|
169
|
+
const scaleX = containerWidth / imageWidth;
|
170
|
+
const scaleY = containerHeight / imageHeight;
|
171
|
+
const initialScale = Math.min(scaleX, scaleY);
|
172
|
+
setBaseZoom(initialScale);
|
173
|
+
setZoomFactor(1);
|
174
|
+
setTranslateX(0);
|
175
|
+
setTranslateY(0);
|
176
|
+
}
|
177
|
+
};
|
178
|
+
const img = imageRef.current;
|
179
|
+
if (img?.complete) {
|
180
|
+
handleLoad();
|
181
|
+
}
|
182
|
+
else {
|
183
|
+
img?.addEventListener('load', handleLoad);
|
184
|
+
return () => img?.removeEventListener('load', handleLoad);
|
185
|
+
}
|
186
|
+
return () => { };
|
187
|
+
}, [imageUrl]);
|
188
|
+
const clampTranslation = (tx, ty, zoom) => {
|
189
|
+
const container = containerRef.current;
|
190
|
+
const image = imageRef.current;
|
191
|
+
if (!container || !image)
|
192
|
+
return { x: tx, y: ty };
|
193
|
+
const cw = container.clientWidth;
|
194
|
+
const ch = container.clientHeight;
|
195
|
+
const iw = image.naturalWidth * zoom;
|
196
|
+
const ih = image.naturalHeight * zoom;
|
197
|
+
const minX = Math.min(0, cw - iw);
|
198
|
+
const minY = Math.min(0, ch - ih);
|
199
|
+
return {
|
200
|
+
x: Math.max(minX, Math.min(0, tx)),
|
201
|
+
y: Math.max(minY, Math.min(0, ty)),
|
202
|
+
};
|
203
|
+
};
|
204
|
+
const isZoomedIn = useMemo(() => {
|
205
|
+
return zoomFactor > 1;
|
206
|
+
}, [zoomFactor]);
|
207
|
+
const containerCursor = useMemo(() => {
|
208
|
+
if (isZoomedIn) {
|
209
|
+
if (isDragging)
|
210
|
+
return 'grabbing';
|
211
|
+
return 'grab';
|
212
|
+
}
|
213
|
+
return 'default';
|
214
|
+
}, [isZoomedIn, isDragging]);
|
215
|
+
const handleZoomIn = () => setZoomFactor(prev => Math.min(prev + 0.25, 3));
|
216
|
+
const handleZoomOut = () => setZoomFactor(prev => Math.max(prev - 0.25, 0.5));
|
217
|
+
const handleResetZoom = () => {
|
218
|
+
setZoomFactor(1);
|
219
|
+
setTranslateX(0);
|
220
|
+
setTranslateY(0);
|
221
|
+
};
|
222
|
+
const handleMouseDown = (e) => {
|
223
|
+
if (zoomFactor === 1)
|
224
|
+
return;
|
225
|
+
isDragging.current = true;
|
226
|
+
const clientX = 'touches' in e ? e.touches[0].clientX : e.clientX;
|
227
|
+
const clientY = 'touches' in e ? e.touches[0].clientY : e.clientY;
|
228
|
+
lastX.current = clientX;
|
229
|
+
lastY.current = clientY;
|
230
|
+
};
|
231
|
+
const handleMouseMove = (e) => {
|
232
|
+
if (!isDragging.current)
|
233
|
+
return;
|
234
|
+
const clientX = 'touches' in e ? e.touches[0].clientX : e.clientX;
|
235
|
+
const clientY = 'touches' in e ? e.touches[0].clientY : e.clientY;
|
236
|
+
const dx = clientX - lastX.current;
|
237
|
+
const dy = clientY - lastY.current;
|
238
|
+
const newTx = translateX + dx;
|
239
|
+
const newTy = translateY + dy;
|
240
|
+
const clamped = clampTranslation(newTx, newTy, baseZoom * zoomFactor);
|
241
|
+
setTranslateX(clamped.x);
|
242
|
+
setTranslateY(clamped.y);
|
243
|
+
lastX.current = clientX;
|
244
|
+
lastY.current = clientY;
|
245
|
+
};
|
246
|
+
const handleMouseUp = () => {
|
247
|
+
isDragging.current = false;
|
248
|
+
};
|
249
|
+
useEffect(() => {
|
250
|
+
const moveHandler = (e) => handleMouseMove(e);
|
251
|
+
const upHandler = () => handleMouseUp();
|
252
|
+
window.addEventListener('mousemove', moveHandler);
|
253
|
+
window.addEventListener('touchmove', moveHandler);
|
254
|
+
window.addEventListener('mouseup', upHandler);
|
255
|
+
window.addEventListener('touchend', upHandler);
|
256
|
+
return () => {
|
257
|
+
window.removeEventListener('mousemove', moveHandler);
|
258
|
+
window.removeEventListener('touchmove', moveHandler);
|
259
|
+
window.removeEventListener('mouseup', upHandler);
|
260
|
+
window.removeEventListener('touchend', upHandler);
|
261
|
+
};
|
262
|
+
}, [baseZoom, zoomFactor, translateX, translateY]);
|
263
|
+
const fullZoom = baseZoom * zoomFactor;
|
264
|
+
const transform = `scale(${fullZoom}) translate(${translateX}px, ${translateY}px)`;
|
265
|
+
return (_jsxs(ImageContainer, { className: className, ref: containerRef, onMouseDown: handleMouseDown, onTouchStart: handleMouseDown, "$cursor": containerCursor, children: [imageUrl && (_jsx(StyledImage, { ref: imageRef, src: imageUrl, alt: alt, "$transform": transform })), _jsxs(Toolbar, { children: [_jsx(ZoomButton, { onClick: handleZoomOut, disabled: zoomFactor <= 0.5, children: _jsx(IconZoomOutLinear, {}) }), _jsx(ZoomButton, { onClick: handleResetZoom, disabled: zoomFactor === 1 && translateX === 0 && translateY === 0, children: SDKUI_Localizator.Restore }), _jsx(ZoomButton, { onClick: handleZoomIn, disabled: zoomFactor >= 3, children: _jsx(IconZoomInLinear, {}) })] })] }));
|
170
266
|
};
|
171
267
|
export const TMNothingToShow = ({ text = '', secondText, fileExt, icon = _jsx(IconPreview, { fontSize: 96 }) }) => {
|
172
268
|
return (_jsx(StyledAnimatedComponentOpacity, { style: { width: '100%', height: '100%' }, children: _jsxs(StyledPanelStatusContainer, { children: [icon, _jsxs(StyledPreviewNotAvailable, { children: [text && _jsx("div", { children: text }), _jsxs("div", { children: [" ", secondText ?? 'Anteprima non disponibile.', fileExt && _jsx("b", { children: ` (*.${fileExt})` })] })] })] }) }));
|
@@ -188,13 +284,9 @@ const renderedPreview = (tid, did, fileExt, fileSize, fileCount, extHandler, sho
|
|
188
284
|
//#region Styled Components
|
189
285
|
const StyledPreviewContainer = styled.div `display: flex; justify-content: center; align-items: center; padding: 5px; position: relative; width:100%; height: 100%; `;
|
190
286
|
export const StyledHeaderIcon = styled.div ` color: ${props => props.$color}; cursor: pointer; display: flex; align-items: center; justify-content: center; &:hover{ color: white ; transition: 200ms ease; } `;
|
191
|
-
const StyledXmlContainer = styled.div `white-space: pre-wrap; font-family: monospace; overflow: auto; background-color: #fefcfc; width: calc(100%); height: calc(100%); padding: 5px 10px; border-radius: 5px; `;
|
192
287
|
export const StyledPanelStatusContainer = styled.div ` width: 100%; height: 100%; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; `;
|
193
|
-
const
|
194
|
-
const
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
justify-content: center;
|
199
|
-
gap: 10px;
|
200
|
-
`;
|
288
|
+
const StyledPreviewNotAvailable = styled.div ` display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; `;
|
289
|
+
const ImageContainer = styled.div ` width: 100%; height: 100%; position: relative; overflow: hidden; background: #f5f5f5; touch-action: none; user-select: none; cursor: ${({ $cursor }) => $cursor ?? 'default'}; `;
|
290
|
+
const Toolbar = styled.div ` position: absolute; bottom: 15px; left: 15px; display: flex; gap: 10px; background: rgba(255, 255, 255, 0.8); padding: 6px 10px; border-radius: 8px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); z-index: 1; `;
|
291
|
+
const ZoomButton = styled.button ` display: flex; align-items: center; justify-content: center; background: #007bff; color: white; border: none; padding: 6px; border-radius: 4px; cursor: pointer; font-size: 14px; &:disabled { background: #ccc; cursor: not-allowed; } `;
|
292
|
+
const StyledImage = styled.img.attrs(props => ({ style: { transform: props.$transform, }, })) ` position: absolute; top: 0; left: 0; transform-origin: top left; pointer-events: none; `;
|
@@ -70,7 +70,7 @@ const TMFileUploader = ({ deviceType = DeviceType.DESKTOP, onClose, onFileUpload
|
|
70
70
|
document.getElementById('fileInput')?.click();
|
71
71
|
};
|
72
72
|
let content = !uploadedFile ?
|
73
|
-
_jsx("div", { style: { display: 'flex', gap: 10, width: '100%', height: '100%' }, children: _jsxs(UploadContainer, { ref: uploaderRef, onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop, style: { backgroundColor: dragOver ? '#
|
73
|
+
_jsx("div", { style: { display: 'flex', gap: 10, width: '100%', height: '100%' }, children: _jsxs(UploadContainer, { ref: uploaderRef, onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop, style: { backgroundColor: dragOver ? '#76b1e6' : 'white' }, onDoubleClick: browseHandler, "$isRequired": isRequired, children: [_jsx("div", { style: { display: 'flex', gap: '10px', flexDirection: 'column', position: 'absolute', right: 5, top: 5 }, children: _jsx(TMButton, { btnStyle: 'icon', caption: 'Sfoglia', color: isRequired && !uploadedFile ? 'error' : 'primary', onClick: browseHandler, icon: _jsx(IconFolderOpen, { fontSize: 22 }) }) }), _jsx("p", { style: { fontSize: '1.2rem', fontWeight: 'bold' }, children: deviceType === DeviceType.MOBILE ? 'Clicca per sfogliare il tuo file' : 'Trascina il tuo file qui o fai doppio click per sfogliarlo' }), isRequired && _jsxs("p", { style: { fontWeight: 'bold' }, children: [" ", SDKUI_Localizator.RequiredField, " "] })] }) }) :
|
74
74
|
_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: 10, width: '100%', height: '100%' }, children: [_jsxs("div", { style: { backgroundColor: 'white', padding: '5px 10px', borderRadius: 8, display: 'flex', alignItems: 'center', justifyContent: 'space-between', color: TMColors.primaryColor }, children: [_jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: 5 }, children: [_jsx("p", { children: "File name:" }), _jsxs("div", { style: { fontWeight: 'bold' }, children: [fileName, " ", _jsxs("span", { children: [" ", ` (${formatBytes(fileSize)})`, " "] })] })] }), uploadedFile && _jsx(TMButton, { btnStyle: 'icon', color: 'error', caption: 'Pulisci', onClick: clearFile, icon: _jsx(IconClear, { fontSize: 22 }) })] }), extensionHandler(fileExt) === FileExtensionHandler.READY_TO_SHOW ? _jsx(TMFileViewer, { fileBlob: uploadedFile }) :
|
75
75
|
_jsx("div", { style: { backgroundColor: '#f6dbdb', padding: '5px 10px', borderRadius: 8, display: 'flex', alignItems: 'center', justifyContent: 'space-between', color: TMColors.error }, children: _jsxs("div", { children: [" ", 'Anteprima non disponibile.', fileExt && _jsx("b", { children: ` (*.${fileExt})` })] }) })] });
|
76
76
|
return (_jsx(TMToolbarCard, { title: 'Caricamento File', onBack: deviceType === DeviceType.MOBILE ? () => onClose?.() : undefined, toolbar: deviceType !== DeviceType.MOBILE ? _jsx(StyledHeaderIcon, { onClick: onClose, "$color": 'white', children: _jsx(TMTooltip, { content: SDKUI_Localizator.Close, children: _jsx(IconCloseOutline, {}) }) }) : undefined, children: _jsxs("div", { style: { width: '100%', height: '100%', padding: '2px', display: 'flex', flexDirection: 'column', gap: 10 }, children: [_jsx(HiddenInput, { id: "fileInput", type: "file", onChange: handleInputChange }), content] }) }));
|
@@ -23,9 +23,13 @@ export class UserSettings {
|
|
23
23
|
// Ensure userID and archiveID are set
|
24
24
|
settings.userID = userID;
|
25
25
|
settings.archiveID = archiveID;
|
26
|
+
// Update the CSS variable for font size
|
26
27
|
document.documentElement.style.setProperty('--base-font-size', settings.themeSettings.fontSize);
|
27
28
|
// Wrap the settings object in a Proxy to intercept property updates
|
28
|
-
|
29
|
+
const proxiedSettings = createProxy(settings, UserSettings.SaveSettings);
|
30
|
+
// Automatically set the global userSettings
|
31
|
+
SDKUI_Globals.userSettings = proxiedSettings;
|
32
|
+
return proxiedSettings;
|
29
33
|
}
|
30
34
|
/** Save settings to local storage or other sources */
|
31
35
|
static SaveSettings(settings) {
|
package/lib/helper/TMIcons.d.ts
CHANGED
@@ -226,5 +226,8 @@ export declare function IconChevronRight(props: Readonly<React.SVGProps<SVGSVGEl
|
|
226
226
|
export declare function IconChevronDown(props: Readonly<React.SVGProps<SVGSVGElement>>): import("react/jsx-runtime").JSX.Element;
|
227
227
|
export declare function IconFunction(props: Readonly<React.SVGProps<SVGSVGElement>>): import("react/jsx-runtime").JSX.Element;
|
228
228
|
export declare function IconNull(props?: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
229
|
+
declare function IconZoomOutLinear(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
230
|
+
declare function IconZoomInLinear(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
231
|
+
declare function IconRoundFileUpload(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
229
232
|
declare const IconRecentlyViewed: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
230
|
-
export { Icon123, IconABC, IconAccessPoint, IconAddressBook, IconSignCert, IconServerService, IconActivity, IconActivityLog, IconAdd, IconAddCircleOutline, IconAll, IconApply, IconApplyAndClose, IconArchive, IconArchiveDoc, IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowUp, IconAtSign, IconAttachment, IconAutoConfig, IconBackward, IconBasket, IconBoard, IconBoxArchiveIn, IconBxInfo, IconBxLock, IconCalendar, IconCloseCircle, IconCloseOutline, IconCloud, IconCircleInfo, IconClear, IconColumns, IconCommand, IconCopy, IconCount, IconCrown, IconDashboard, IconDcmtType, IconDcmtTypeOnlyMetadata, IconDcmtTypeSys, IconDelete, IconDetails, IconDown, IconDownload, IconDotsVerticalCircleOutline, IconDuplicate, IconEdit, IconEqual, IconEqualNot, IconEraser, IconExpandRight, IconExport, IconFastBackward, IconFoldeAdd, IconFolderSearch, IconFolderZip, IconFastForward, IconFastSearch, IconFileDots, IconFilter, IconForceStop, IconForward, IconFreeze, IconFreeSearch, IconGreaterThan, IconGreaterThanOrEqual, IconHistory, IconImport, IconTag, IconInfo, IconInsertAbove, IconInsertBelow, IconHeart, IconHide, IconLanguage, IconLeft, IconLessThan, IconLessThanOrEqual, IconLock, IconLockClosed, IconLogin, IconLink, IconLogout, IconMail, IconMapping, IconMaximize, IconMinimize, IconMic, IconMenuHorizontal, IconMenuKebab, IconMenuVertical, IconMetadata, IconMetadata_Computed, IconMetadata_DataList, IconMetadata_Date, IconMetadata_DynamicDataList, IconMetadata_Numerator, IconMetadata_Numeric, IconMetadata_Special, IconMetadata_Text, IconMetadata_User, IconMonitor, IconOpenInNew, IconNotification, IconPassword, IconPencil, IconPlatform, IconPlay, IconPreview, IconPrinter, IconProcess, IconProgressAbortRequested, IconProgressCompleted, IconProgressNotCompleted, IconProgressReady, IconProgressRunning, IconProgressStarted, IconRefresh, IconReset, IconRecentlyViewed, IconRight, IconSave, IconSearch, IconSelected, IconSettings, IconShow, IconSort, IconStop, IconStopwatch, IconSuccess, IconAlarmPlus, IconHourglass, IconNone, IconNotStarted, IconProgress, IconSuccessCirlce, IconSuitcase, IconSupport, IconUndo, IconUnFreeze, IconUp, IconUpdate, IconUpload, IconUser, IconUserProfile, IconVisible, IconWarning, IconWeb, IconWifi, IconWindowMaximize, IconWindowMinimize, IconWorkflow, IconWorkspace, IconUserGroup, IconUserLevelMember, IconUserLevelAdministrator, IconUserLevelSystemAdministrator, IconUserLevelAutonomousAdministrator, IconDraggabledots, IconRelation, IconEasy, IconSum, IconDisk, IconDataList, IconPalette, IconFormatPageSplit, IconPaste, IconFileSearch, IconStar, IconStarRemove, IconSearchCheck, IconLightningFill, IconArrowUnsorted, IconArrowSortedUp, IconArrowSortedDown, IconConvertFilePdf, IconExportTo, IconSharedDcmt, IconShare, IconBatchUpdate, IconCheckFile, IconStatistics, IconSubstFile, IconAdvanced, IconSync, IconSavedQuery, IconSignature, IconRecursiveOps, IconCheckIn, IconTree, IconGrid, IconList, IconFolder, IconFolderOpen, IconFactory, IconTest, IconCheck, IconUncheck, IconSortAsc, IconSortDesc, IconSortAscLetters, IconSortDescLetters, IconSortAscNumbers, IconSortDescNumbers, IconSortAscClock, IconSortDescClock, IconLayerGroup, IconBell, IconBellCheck, IconBellOutline, IconBellCheckOutline, IconEnvelopeOpenText, IconChangeUser, IconUserCheck, IconRelationManyToMany, IconRelationOneToMany, IconUserExpired, IconKey };
|
233
|
+
export { Icon123, IconABC, IconAccessPoint, IconAddressBook, IconSignCert, IconServerService, IconActivity, IconActivityLog, IconAdd, IconAddCircleOutline, IconAll, IconApply, IconApplyAndClose, IconArchive, IconArchiveDoc, IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowUp, IconAtSign, IconAttachment, IconAutoConfig, IconBackward, IconBasket, IconBoard, IconBoxArchiveIn, IconBxInfo, IconBxLock, IconCalendar, IconCloseCircle, IconCloseOutline, IconCloud, IconCircleInfo, IconClear, IconColumns, IconCommand, IconCopy, IconCount, IconCrown, IconDashboard, IconDcmtType, IconDcmtTypeOnlyMetadata, IconDcmtTypeSys, IconDelete, IconDetails, IconDown, IconDownload, IconDotsVerticalCircleOutline, IconDuplicate, IconEdit, IconEqual, IconEqualNot, IconEraser, IconExpandRight, IconExport, IconFastBackward, IconFoldeAdd, IconFolderSearch, IconFolderZip, IconFastForward, IconFastSearch, IconFileDots, IconFilter, IconForceStop, IconForward, IconFreeze, IconFreeSearch, IconGreaterThan, IconGreaterThanOrEqual, IconHistory, IconImport, IconTag, IconInfo, IconInsertAbove, IconInsertBelow, IconHeart, IconHide, IconLanguage, IconLeft, IconLessThan, IconLessThanOrEqual, IconLock, IconLockClosed, IconLogin, IconLink, IconLogout, IconMail, IconMapping, IconMaximize, IconMinimize, IconMic, IconMenuHorizontal, IconMenuKebab, IconMenuVertical, IconMetadata, IconMetadata_Computed, IconMetadata_DataList, IconMetadata_Date, IconMetadata_DynamicDataList, IconMetadata_Numerator, IconMetadata_Numeric, IconMetadata_Special, IconMetadata_Text, IconMetadata_User, IconMonitor, IconOpenInNew, IconNotification, IconPassword, IconPencil, IconPlatform, IconPlay, IconPreview, IconPrinter, IconProcess, IconProgressAbortRequested, IconProgressCompleted, IconProgressNotCompleted, IconProgressReady, IconProgressRunning, IconProgressStarted, IconRefresh, IconReset, IconRecentlyViewed, IconRight, IconSave, IconSearch, IconSelected, IconSettings, IconShow, IconSort, IconStop, IconStopwatch, IconSuccess, IconAlarmPlus, IconHourglass, IconNone, IconNotStarted, IconProgress, IconSuccessCirlce, IconSuitcase, IconSupport, IconUndo, IconUnFreeze, IconUp, IconUpdate, IconUpload, IconUser, IconUserProfile, IconVisible, IconWarning, IconWeb, IconWifi, IconWindowMaximize, IconWindowMinimize, IconWorkflow, IconWorkspace, IconUserGroup, IconUserLevelMember, IconUserLevelAdministrator, IconUserLevelSystemAdministrator, IconUserLevelAutonomousAdministrator, IconDraggabledots, IconRelation, IconEasy, IconSum, IconDisk, IconDataList, IconPalette, IconFormatPageSplit, IconPaste, IconFileSearch, IconStar, IconStarRemove, IconSearchCheck, IconLightningFill, IconArrowUnsorted, IconArrowSortedUp, IconArrowSortedDown, IconConvertFilePdf, IconExportTo, IconSharedDcmt, IconShare, IconBatchUpdate, IconCheckFile, IconStatistics, IconSubstFile, IconAdvanced, IconSync, IconSavedQuery, IconSignature, IconRecursiveOps, IconCheckIn, IconTree, IconGrid, IconList, IconFolder, IconFolderOpen, IconFactory, IconTest, IconCheck, IconUncheck, IconSortAsc, IconSortDesc, IconRoundFileUpload, IconSortAscLetters, IconSortDescLetters, IconSortAscNumbers, IconSortDescNumbers, IconSortAscClock, IconSortDescClock, IconLayerGroup, IconBell, IconBellCheck, IconBellOutline, IconBellCheckOutline, IconEnvelopeOpenText, IconChangeUser, IconUserCheck, IconRelationManyToMany, IconRelationOneToMany, IconUserExpired, IconKey, IconZoomInLinear, IconZoomOutLinear };
|
package/lib/helper/TMIcons.js
CHANGED
@@ -541,5 +541,14 @@ export function IconFunction(props) {
|
|
541
541
|
export function IconNull(props) {
|
542
542
|
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fontSize: 18, viewBox: "0 0 256 256", width: "1em", height: "1em", ...props, children: _jsx("path", { fill: "currentColor", d: "m203.63 62.65l13.25-14.58a12 12 0 0 0-17.76-16.14l-13.24 14.56A100 100 0 0 0 52.37 193.35l-13.25 14.58a12 12 0 1 0 17.76 16.14l13.24-14.56A100 100 0 0 0 203.63 62.65M52 128a75.94 75.94 0 0 1 117.58-63.57l-100.91 111A75.6 75.6 0 0 1 52 128m76 76a75.5 75.5 0 0 1-41.58-12.43l100.91-111A75.94 75.94 0 0 1 128 204" }) }));
|
543
543
|
}
|
544
|
+
function IconZoomOutLinear(props) {
|
545
|
+
return (_jsxs("svg", { fontSize: props?.fontSize ? props.fontSize : FONTSIZE, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em", ...props, children: [" ", _jsxs("g", { fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: [" ", _jsx("circle", { cx: "11.5", cy: "11.5", r: "9.5" }), " ", _jsx("path", { strokeLinecap: "round", d: "M18.5 18.5L22 22M9 11.5h5" }), " "] }), " "] }));
|
546
|
+
}
|
547
|
+
function IconZoomInLinear(props) {
|
548
|
+
return (_jsxs("svg", { fontSize: props?.fontSize ? props.fontSize : FONTSIZE, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em", ...props, children: [" ", _jsxs("g", { fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: [" ", _jsx("circle", { cx: "11.5", cy: "11.5", r: "9.5" }), " ", _jsx("path", { strokeLinecap: "round", d: "M18.5 18.5L22 22M9 11.5h2.5m0 0H14m-2.5 0V14m0-2.5V9" }), " "] }), " "] }));
|
549
|
+
}
|
550
|
+
function IconRoundFileUpload(props) {
|
551
|
+
return (_jsxs("svg", { fontSize: props?.fontSize ? props.fontSize : FONTSIZE, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em", ...props, children: [" ", _jsx("path", { fill: "currentColor", d: "M2 20V4h8l2 2h10v14zm9-3h2v-4.2l1.6 1.6L16 13l-4-4l-4 4l1.4 1.4l1.6-1.6z" }), " "] }));
|
552
|
+
}
|
544
553
|
const IconRecentlyViewed = (props) => { return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: "1em", height: "1em", ...props, children: [" ", _jsx("path", { fill: "currentColor", d: "M20.59 22L15 16.41V7h2v8.58l5 5.01z" }), " ", _jsx("path", { fill: "currentColor", d: "M16 2A13.94 13.94 0 0 0 6 6.23V2H4v8h8V8H7.08A12 12 0 1 1 4 16H2A14 14 0 1 0 16 2" }), " "] })); };
|
545
|
-
export { Icon123, IconABC, IconAccessPoint, IconAddressBook, IconSignCert, IconServerService, IconActivity, IconActivityLog, IconAdd, IconAddCircleOutline, IconAll, IconApply, IconApplyAndClose, IconArchive, IconArchiveDoc, IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowUp, IconAtSign, IconAttachment, IconAutoConfig, IconBackward, IconBasket, IconBoard, IconBoxArchiveIn, IconBxInfo, IconBxLock, IconCalendar, IconCloseCircle, IconCloseOutline, IconCloud, IconCircleInfo, IconClear, IconColumns, IconCommand, IconCopy, IconCount, IconCrown, IconDashboard, IconDcmtType, IconDcmtTypeOnlyMetadata, IconDcmtTypeSys, IconDelete, IconDetails, IconDown, IconDownload, IconDotsVerticalCircleOutline, IconDuplicate, IconEdit, IconEqual, IconEqualNot, IconEraser, IconExpandRight, IconExport, IconFastBackward, IconFoldeAdd, IconFolderSearch, IconFolderZip, IconFastForward, IconFastSearch, IconFileDots, IconFilter, IconForceStop, IconForward, IconFreeze, IconFreeSearch, IconGreaterThan, IconGreaterThanOrEqual, IconHistory, IconImport, IconTag, IconInfo, IconInsertAbove, IconInsertBelow, IconHeart, IconHide, IconLanguage, IconLeft, IconLessThan, IconLessThanOrEqual, IconLock, IconLockClosed, IconLogin, IconLink, IconLogout, IconMail, IconMapping, IconMaximize, IconMinimize, IconMic, IconMenuHorizontal, IconMenuKebab, IconMenuVertical, IconMetadata, IconMetadata_Computed, IconMetadata_DataList, IconMetadata_Date, IconMetadata_DynamicDataList, IconMetadata_Numerator, IconMetadata_Numeric, IconMetadata_Special, IconMetadata_Text, IconMetadata_User, IconMonitor, IconOpenInNew, IconNotification, IconPassword, IconPencil, IconPlatform, IconPlay, IconPreview, IconPrinter, IconProcess, IconProgressAbortRequested, IconProgressCompleted, IconProgressNotCompleted, IconProgressReady, IconProgressRunning, IconProgressStarted, IconRefresh, IconReset, IconRecentlyViewed, IconRight, IconSave, IconSearch, IconSelected, IconSettings, IconShow, IconSort, IconStop, IconStopwatch, IconSuccess, IconAlarmPlus, IconHourglass, IconNone, IconNotStarted, IconProgress, IconSuccessCirlce, IconSuitcase, IconSupport, IconUndo, IconUnFreeze, IconUp, IconUpdate, IconUpload, IconUser, IconUserProfile, IconVisible, IconWarning, IconWeb, IconWifi, IconWindowMaximize, IconWindowMinimize, IconWorkflow, IconWorkspace, IconUserGroup, IconUserLevelMember, IconUserLevelAdministrator, IconUserLevelSystemAdministrator, IconUserLevelAutonomousAdministrator, IconDraggabledots, IconRelation, IconEasy, IconSum, IconDisk, IconDataList, IconPalette, IconFormatPageSplit, IconPaste, IconFileSearch, IconStar, IconStarRemove, IconSearchCheck, IconLightningFill, IconArrowUnsorted, IconArrowSortedUp, IconArrowSortedDown, IconConvertFilePdf, IconExportTo, IconSharedDcmt, IconShare, IconBatchUpdate, IconCheckFile, IconStatistics, IconSubstFile, IconAdvanced, IconSync, IconSavedQuery, IconSignature, IconRecursiveOps, IconCheckIn, IconTree, IconGrid, IconList, IconFolder, IconFolderOpen, IconFactory, IconTest, IconCheck, IconUncheck, IconSortAsc, IconSortDesc, IconSortAscLetters, IconSortDescLetters, IconSortAscNumbers, IconSortDescNumbers, IconSortAscClock, IconSortDescClock, IconLayerGroup, IconBell, IconBellCheck, IconBellOutline, IconBellCheckOutline, IconEnvelopeOpenText, IconChangeUser, IconUserCheck, IconRelationManyToMany, IconRelationOneToMany, IconUserExpired, IconKey };
|
554
|
+
export { Icon123, IconABC, IconAccessPoint, IconAddressBook, IconSignCert, IconServerService, IconActivity, IconActivityLog, IconAdd, IconAddCircleOutline, IconAll, IconApply, IconApplyAndClose, IconArchive, IconArchiveDoc, IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowUp, IconAtSign, IconAttachment, IconAutoConfig, IconBackward, IconBasket, IconBoard, IconBoxArchiveIn, IconBxInfo, IconBxLock, IconCalendar, IconCloseCircle, IconCloseOutline, IconCloud, IconCircleInfo, IconClear, IconColumns, IconCommand, IconCopy, IconCount, IconCrown, IconDashboard, IconDcmtType, IconDcmtTypeOnlyMetadata, IconDcmtTypeSys, IconDelete, IconDetails, IconDown, IconDownload, IconDotsVerticalCircleOutline, IconDuplicate, IconEdit, IconEqual, IconEqualNot, IconEraser, IconExpandRight, IconExport, IconFastBackward, IconFoldeAdd, IconFolderSearch, IconFolderZip, IconFastForward, IconFastSearch, IconFileDots, IconFilter, IconForceStop, IconForward, IconFreeze, IconFreeSearch, IconGreaterThan, IconGreaterThanOrEqual, IconHistory, IconImport, IconTag, IconInfo, IconInsertAbove, IconInsertBelow, IconHeart, IconHide, IconLanguage, IconLeft, IconLessThan, IconLessThanOrEqual, IconLock, IconLockClosed, IconLogin, IconLink, IconLogout, IconMail, IconMapping, IconMaximize, IconMinimize, IconMic, IconMenuHorizontal, IconMenuKebab, IconMenuVertical, IconMetadata, IconMetadata_Computed, IconMetadata_DataList, IconMetadata_Date, IconMetadata_DynamicDataList, IconMetadata_Numerator, IconMetadata_Numeric, IconMetadata_Special, IconMetadata_Text, IconMetadata_User, IconMonitor, IconOpenInNew, IconNotification, IconPassword, IconPencil, IconPlatform, IconPlay, IconPreview, IconPrinter, IconProcess, IconProgressAbortRequested, IconProgressCompleted, IconProgressNotCompleted, IconProgressReady, IconProgressRunning, IconProgressStarted, IconRefresh, IconReset, IconRecentlyViewed, IconRight, IconSave, IconSearch, IconSelected, IconSettings, IconShow, IconSort, IconStop, IconStopwatch, IconSuccess, IconAlarmPlus, IconHourglass, IconNone, IconNotStarted, IconProgress, IconSuccessCirlce, IconSuitcase, IconSupport, IconUndo, IconUnFreeze, IconUp, IconUpdate, IconUpload, IconUser, IconUserProfile, IconVisible, IconWarning, IconWeb, IconWifi, IconWindowMaximize, IconWindowMinimize, IconWorkflow, IconWorkspace, IconUserGroup, IconUserLevelMember, IconUserLevelAdministrator, IconUserLevelSystemAdministrator, IconUserLevelAutonomousAdministrator, IconDraggabledots, IconRelation, IconEasy, IconSum, IconDisk, IconDataList, IconPalette, IconFormatPageSplit, IconPaste, IconFileSearch, IconStar, IconStarRemove, IconSearchCheck, IconLightningFill, IconArrowUnsorted, IconArrowSortedUp, IconArrowSortedDown, IconConvertFilePdf, IconExportTo, IconSharedDcmt, IconShare, IconBatchUpdate, IconCheckFile, IconStatistics, IconSubstFile, IconAdvanced, IconSync, IconSavedQuery, IconSignature, IconRecursiveOps, IconCheckIn, IconTree, IconGrid, IconList, IconFolder, IconFolderOpen, IconFactory, IconTest, IconCheck, IconUncheck, IconSortAsc, IconSortDesc, IconRoundFileUpload, IconSortAscLetters, IconSortDescLetters, IconSortAscNumbers, IconSortDescNumbers, IconSortAscClock, IconSortDescClock, IconLayerGroup, IconBell, IconBellCheck, IconBellOutline, IconBellCheckOutline, IconEnvelopeOpenText, IconChangeUser, IconUserCheck, IconRelationManyToMany, IconRelationOneToMany, IconUserExpired, IconKey, IconZoomInLinear, IconZoomOutLinear };
|