@topconsultnpm/sdkui-react 6.19.0-test2 → 6.20.0-dev1.2
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/NewComponents/ContextMenu/TMContextMenu.d.ts +4 -0
- package/lib/components/NewComponents/ContextMenu/TMContextMenu.js +187 -0
- package/lib/components/NewComponents/ContextMenu/hooks.d.ts +11 -0
- package/lib/components/NewComponents/ContextMenu/hooks.js +48 -0
- package/lib/components/NewComponents/ContextMenu/index.d.ts +2 -0
- package/lib/components/NewComponents/ContextMenu/index.js +1 -0
- package/lib/components/NewComponents/ContextMenu/styles.d.ts +27 -0
- package/lib/components/NewComponents/ContextMenu/styles.js +308 -0
- package/lib/components/NewComponents/ContextMenu/types.d.ts +26 -0
- package/lib/components/NewComponents/ContextMenu/types.js +1 -0
- package/lib/components/NewComponents/FloatingMenuBar/TMFloatingMenuBar.d.ts +4 -0
- package/lib/components/NewComponents/FloatingMenuBar/TMFloatingMenuBar.js +370 -0
- package/lib/components/NewComponents/FloatingMenuBar/index.d.ts +2 -0
- package/lib/components/NewComponents/FloatingMenuBar/index.js +2 -0
- package/lib/components/NewComponents/FloatingMenuBar/styles.d.ts +38 -0
- package/lib/components/NewComponents/FloatingMenuBar/styles.js +267 -0
- package/lib/components/NewComponents/FloatingMenuBar/types.d.ts +30 -0
- package/lib/components/NewComponents/FloatingMenuBar/types.js +1 -0
- package/lib/components/NewComponents/Notification/Notification.d.ts +4 -0
- package/lib/components/NewComponents/Notification/Notification.js +60 -0
- package/lib/components/NewComponents/Notification/NotificationContainer.d.ts +8 -0
- package/lib/components/NewComponents/Notification/NotificationContainer.js +33 -0
- package/lib/components/NewComponents/Notification/index.d.ts +2 -0
- package/lib/components/NewComponents/Notification/index.js +2 -0
- package/lib/components/NewComponents/Notification/styles.d.ts +21 -0
- package/lib/components/NewComponents/Notification/styles.js +180 -0
- package/lib/components/NewComponents/Notification/types.d.ts +18 -0
- package/lib/components/NewComponents/Notification/types.js +1 -0
- package/lib/components/choosers/TMDynDataListItemChooser.js +5 -4
- package/lib/components/editors/TMMetadataValues.js +34 -12
- package/lib/components/features/assistant/ToppyDraggableHelpCenter.js +74 -63
- package/lib/components/features/documents/TMDcmtForm.d.ts +1 -0
- package/lib/components/features/documents/TMDcmtForm.js +12 -5
- package/lib/components/features/documents/TMDcmtPreview.js +31 -37
- package/lib/components/features/search/TMSavedQuerySelector.js +1 -1
- package/lib/components/features/search/TMSearchQueryPanel.js +1 -1
- package/lib/components/features/search/TMSearchResult.js +106 -26
- package/lib/components/features/search/TMSearchResultCheckoutInfoForm.d.ts +8 -0
- package/lib/components/features/search/TMSearchResultCheckoutInfoForm.js +134 -0
- package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +2 -2
- package/lib/components/features/search/TMSearchResultsMenuItems.js +40 -62
- package/lib/components/features/search/TMTreeSelector.js +1 -1
- package/lib/components/features/search/TMViewHistoryDcmt.d.ts +18 -0
- package/lib/components/features/search/TMViewHistoryDcmt.js +285 -0
- package/lib/components/grids/TMRecentsManager.js +1 -1
- package/lib/helper/SDKUI_Globals.d.ts +7 -0
- package/lib/helper/SDKUI_Globals.js +1 -0
- package/lib/helper/SDKUI_Localizator.d.ts +9 -0
- package/lib/helper/SDKUI_Localizator.js +121 -6
- package/lib/helper/TMIcons.d.ts +3 -1
- package/lib/helper/TMIcons.js +9 -1
- package/lib/helper/cicoHelper.d.ts +31 -0
- package/lib/helper/cicoHelper.js +155 -0
- package/lib/helper/helpers.d.ts +7 -0
- package/lib/helper/helpers.js +37 -5
- package/lib/helper/queryHelper.js +13 -1
- package/package.json +53 -53
|
@@ -748,11 +748,11 @@ export class SDKUI_Localizator {
|
|
|
748
748
|
static get CancelCheckOut() {
|
|
749
749
|
switch (this._cultureID) {
|
|
750
750
|
case CultureIDs.De_DE: return "Check-out abbrechen";
|
|
751
|
-
case CultureIDs.En_US: return "Cancel
|
|
751
|
+
case CultureIDs.En_US: return "Cancel check Out";
|
|
752
752
|
case CultureIDs.Es_ES: return "Cancelar check-out";
|
|
753
753
|
case CultureIDs.Fr_FR: return "Annuler le check-out";
|
|
754
754
|
case CultureIDs.Pt_PT: return "Cancelar check-out";
|
|
755
|
-
default: return "Annulla
|
|
755
|
+
default: return "Annulla check out";
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
758
|
static get CassettoDoganaleExportMRN() {
|
|
@@ -835,6 +835,23 @@ export class SDKUI_Localizator {
|
|
|
835
835
|
default: return "Check in";
|
|
836
836
|
}
|
|
837
837
|
}
|
|
838
|
+
static get CheckInOutSettingsNotice() {
|
|
839
|
+
switch (this._cultureID) {
|
|
840
|
+
case CultureIDs.De_DE:
|
|
841
|
+
return "Sie können die Einstellungen für “Suche → Check in/Check out” jederzeit ändern.";
|
|
842
|
+
case CultureIDs.En_US:
|
|
843
|
+
return "You can modify the settings for “Search → Check in/Check out” at any time.";
|
|
844
|
+
case CultureIDs.Es_ES:
|
|
845
|
+
return "Puedes modificar la configuración de “Búsqueda → Check in/Check out” en cualquier momento.";
|
|
846
|
+
case CultureIDs.Fr_FR:
|
|
847
|
+
return "Vous pouvez modifier les paramètres relatifs à « Recherche → Check in/Check out » à tout moment.";
|
|
848
|
+
case CultureIDs.Pt_PT:
|
|
849
|
+
return "Você pode modificar as configurações de “Pesquisa → Check in/Check out” a qualquer momento.";
|
|
850
|
+
case CultureIDs.It_IT:
|
|
851
|
+
default:
|
|
852
|
+
return "Puoi modificare questa impostazione in “Ricerca → Check in/Check out” in qualsiasi momento.";
|
|
853
|
+
}
|
|
854
|
+
}
|
|
838
855
|
static get Checkmark() {
|
|
839
856
|
switch (this._cultureID) {
|
|
840
857
|
case CultureIDs.De_DE: return "Häkchen";
|
|
@@ -855,6 +872,22 @@ export class SDKUI_Localizator {
|
|
|
855
872
|
default: return "Check out";
|
|
856
873
|
}
|
|
857
874
|
}
|
|
875
|
+
static get CheckoutInfo() {
|
|
876
|
+
switch (this._cultureID) {
|
|
877
|
+
case CultureIDs.De_DE:
|
|
878
|
+
return "Informationen zum Check out";
|
|
879
|
+
case CultureIDs.En_US:
|
|
880
|
+
return "Check out Information";
|
|
881
|
+
case CultureIDs.Es_ES:
|
|
882
|
+
return "Información sobre el pago";
|
|
883
|
+
case CultureIDs.Fr_FR:
|
|
884
|
+
return "Informations sur le paiement";
|
|
885
|
+
case CultureIDs.Pt_PT:
|
|
886
|
+
return "Informações sobre o check out";
|
|
887
|
+
default:
|
|
888
|
+
return "Informazioni sul check out";
|
|
889
|
+
}
|
|
890
|
+
}
|
|
858
891
|
static get ChooseFolder() {
|
|
859
892
|
switch (this._cultureID) {
|
|
860
893
|
case CultureIDs.De_DE: return "Ordner auswählen";
|
|
@@ -1131,6 +1164,16 @@ export class SDKUI_Localizator {
|
|
|
1131
1164
|
default: return "Copia";
|
|
1132
1165
|
}
|
|
1133
1166
|
}
|
|
1167
|
+
static get CopyCheckoutPath() {
|
|
1168
|
+
switch (this._cultureID) {
|
|
1169
|
+
case CultureIDs.De_DE: return "Checkout-Pfad kopieren";
|
|
1170
|
+
case CultureIDs.En_US: return "Copy checkout path";
|
|
1171
|
+
case CultureIDs.Es_ES: return "Copiar ruta de check out";
|
|
1172
|
+
case CultureIDs.Fr_FR: return "Copier le chemin de check out";
|
|
1173
|
+
case CultureIDs.Pt_PT: return "Copiar caminho de check out";
|
|
1174
|
+
default: return "Copia path di check out";
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1134
1177
|
static get CopyToArchived() {
|
|
1135
1178
|
switch (this._cultureID) {
|
|
1136
1179
|
case CultureIDs.De_DE: return "In Archivierte kopieren";
|
|
@@ -1361,6 +1404,22 @@ export class SDKUI_Localizator {
|
|
|
1361
1404
|
default: return "Default";
|
|
1362
1405
|
}
|
|
1363
1406
|
}
|
|
1407
|
+
static get DefaultFolder() {
|
|
1408
|
+
switch (this._cultureID) {
|
|
1409
|
+
case CultureIDs.De_DE:
|
|
1410
|
+
return "Standardordner";
|
|
1411
|
+
case CultureIDs.En_US:
|
|
1412
|
+
return "Default folder";
|
|
1413
|
+
case CultureIDs.Es_ES:
|
|
1414
|
+
return "Carpeta predeterminada";
|
|
1415
|
+
case CultureIDs.Fr_FR:
|
|
1416
|
+
return "Dossier par défaut";
|
|
1417
|
+
case CultureIDs.Pt_PT:
|
|
1418
|
+
return "Pasta padrão";
|
|
1419
|
+
default:
|
|
1420
|
+
return "Cartella di default";
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1364
1423
|
static get Details() {
|
|
1365
1424
|
switch (this._cultureID) {
|
|
1366
1425
|
case CultureIDs.De_DE: return "Einzelheiten";
|
|
@@ -2153,21 +2212,21 @@ export class SDKUI_Localizator {
|
|
|
2153
2212
|
static get ExecuteCancelCheckOutQuestion() {
|
|
2154
2213
|
switch (this._cultureID) {
|
|
2155
2214
|
case CultureIDs.De_DE: return "Check-out abbrechen?";
|
|
2156
|
-
case CultureIDs.En_US: return "Cancel
|
|
2215
|
+
case CultureIDs.En_US: return "Cancel check out?";
|
|
2157
2216
|
case CultureIDs.Es_ES: return "¿Cancelar el check-out?";
|
|
2158
2217
|
case CultureIDs.Fr_FR: return "Annuler le check-out ?";
|
|
2159
2218
|
case CultureIDs.Pt_PT: return "Cancelar o check-out?";
|
|
2160
|
-
default: return "Annullare il
|
|
2219
|
+
default: return "Annullare il check out?";
|
|
2161
2220
|
}
|
|
2162
2221
|
}
|
|
2163
2222
|
static get ExecuteCheckOutQuestion() {
|
|
2164
2223
|
switch (this._cultureID) {
|
|
2165
2224
|
case CultureIDs.De_DE: return "Check-out durchführen?";
|
|
2166
|
-
case CultureIDs.En_US: return "Perform
|
|
2225
|
+
case CultureIDs.En_US: return "Perform check out?";
|
|
2167
2226
|
case CultureIDs.Es_ES: return "¿Realizar el check-out?";
|
|
2168
2227
|
case CultureIDs.Fr_FR: return "Effectuer le check-out ?";
|
|
2169
2228
|
case CultureIDs.Pt_PT: return "Executar o check-out?";
|
|
2170
|
-
default: return "Eseguire il
|
|
2229
|
+
default: return "Eseguire il check out?";
|
|
2171
2230
|
}
|
|
2172
2231
|
}
|
|
2173
2232
|
static get ExportDataListsDescriptionField() {
|
|
@@ -2510,6 +2569,16 @@ export class SDKUI_Localizator {
|
|
|
2510
2569
|
default: return "Caricamento File";
|
|
2511
2570
|
}
|
|
2512
2571
|
}
|
|
2572
|
+
static get Folder() {
|
|
2573
|
+
switch (this._cultureID) {
|
|
2574
|
+
case CultureIDs.De_DE: return "Ordner";
|
|
2575
|
+
case CultureIDs.En_US: return "Folder";
|
|
2576
|
+
case CultureIDs.Es_ES: return "Carpeta";
|
|
2577
|
+
case CultureIDs.Fr_FR: return "Dossier";
|
|
2578
|
+
case CultureIDs.Pt_PT: return "Diretório";
|
|
2579
|
+
default: return "Cartella";
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2513
2582
|
static get FolderExist() {
|
|
2514
2583
|
switch (this._cultureID) {
|
|
2515
2584
|
case CultureIDs.De_DE: return "Ordner existiert bereits. Bitte versuchen Sie einen anderen Namen";
|
|
@@ -2899,6 +2968,16 @@ export class SDKUI_Localizator {
|
|
|
2899
2968
|
default: return "Alta";
|
|
2900
2969
|
}
|
|
2901
2970
|
}
|
|
2971
|
+
static get History() {
|
|
2972
|
+
switch (this._cultureID) {
|
|
2973
|
+
case CultureIDs.De_DE: return "Chronik";
|
|
2974
|
+
case CultureIDs.En_US: return "History";
|
|
2975
|
+
case CultureIDs.Es_ES: return "Historial";
|
|
2976
|
+
case CultureIDs.Fr_FR: return "Historique";
|
|
2977
|
+
case CultureIDs.Pt_PT: return "Histórico";
|
|
2978
|
+
default: return "Cronologia";
|
|
2979
|
+
}
|
|
2980
|
+
}
|
|
2902
2981
|
static get HistoryActionLabel() {
|
|
2903
2982
|
switch (this._cultureID) {
|
|
2904
2983
|
case CultureIDs.De_DE: return "Archivieren";
|
|
@@ -3089,6 +3168,16 @@ export class SDKUI_Localizator {
|
|
|
3089
3168
|
default: return "File non valido";
|
|
3090
3169
|
}
|
|
3091
3170
|
}
|
|
3171
|
+
static get InvalidDcmt() {
|
|
3172
|
+
switch (this._cultureID) {
|
|
3173
|
+
case CultureIDs.De_DE: return "Ungültiges Dokument";
|
|
3174
|
+
case CultureIDs.En_US: return "Invalid document";
|
|
3175
|
+
case CultureIDs.Es_ES: return "Documento inválido";
|
|
3176
|
+
case CultureIDs.Fr_FR: return "Document non valide";
|
|
3177
|
+
case CultureIDs.Pt_PT: return "Documento inválido";
|
|
3178
|
+
default: return "Documento non valido";
|
|
3179
|
+
}
|
|
3180
|
+
}
|
|
3092
3181
|
static get InvoiceRetrieveFormat() {
|
|
3093
3182
|
switch (this._cultureID) {
|
|
3094
3183
|
case CultureIDs.De_DE: return "Exportieren Sie die Rechnung im folgenden Format";
|
|
@@ -6359,6 +6448,22 @@ export class SDKUI_Localizator {
|
|
|
6359
6448
|
default: return "Impossibile ottenere il contenuto aggiornato del documento";
|
|
6360
6449
|
}
|
|
6361
6450
|
}
|
|
6451
|
+
static get UndefinedText() {
|
|
6452
|
+
switch (this._cultureID) {
|
|
6453
|
+
case CultureIDs.De_DE:
|
|
6454
|
+
return "nicht angegeben";
|
|
6455
|
+
case CultureIDs.En_US:
|
|
6456
|
+
return "not specified";
|
|
6457
|
+
case CultureIDs.Es_ES:
|
|
6458
|
+
return "no especificado";
|
|
6459
|
+
case CultureIDs.Fr_FR:
|
|
6460
|
+
return "non spécifié";
|
|
6461
|
+
case CultureIDs.Pt_PT:
|
|
6462
|
+
return "não especificado";
|
|
6463
|
+
default:
|
|
6464
|
+
return "non definita";
|
|
6465
|
+
}
|
|
6466
|
+
}
|
|
6362
6467
|
static get Undo() {
|
|
6363
6468
|
switch (this._cultureID) {
|
|
6364
6469
|
case CultureIDs.De_DE: return "Änderungen rückgängig machen";
|
|
@@ -6905,6 +7010,16 @@ export class SDKUI_Localizator {
|
|
|
6905
7010
|
default: return "Modifica Connessione";
|
|
6906
7011
|
}
|
|
6907
7012
|
}
|
|
7013
|
+
static get WorkflowCtrl() {
|
|
7014
|
+
switch (this._cultureID) {
|
|
7015
|
+
case CultureIDs.De_DE: return "Workflow-Kontrolle";
|
|
7016
|
+
case CultureIDs.En_US: return "Workflow control";
|
|
7017
|
+
case CultureIDs.Es_ES: return "Control de flujo de trabajo";
|
|
7018
|
+
case CultureIDs.Fr_FR: return "Contrôle de workflow";
|
|
7019
|
+
case CultureIDs.Pt_PT: return "Controle de fluxo de trabalho";
|
|
7020
|
+
default: return "Controllo workflow";
|
|
7021
|
+
}
|
|
7022
|
+
}
|
|
6908
7023
|
static get WorkflowDiagramConnectionInvalidNodes() {
|
|
6909
7024
|
switch (this._cultureID) {
|
|
6910
7025
|
case CultureIDs.De_DE: return "Ungültige Verbindung: Quell- oder Zielknoten nicht gefunden.";
|
package/lib/helper/TMIcons.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ declare function IconInfo(props: React.SVGProps<SVGSVGElement>): import("react/j
|
|
|
81
81
|
declare function IconSuccess(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
82
82
|
declare function IconAlarmPlus(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
83
83
|
declare function IconHourglass(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
declare function IconNewSignature(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
84
85
|
declare function IconNone(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
85
86
|
declare function IconNotStarted(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
86
87
|
declare function IconProgress(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -271,6 +272,7 @@ export declare function IconArchiveDetail(props: React.SVGProps<SVGSVGElement>):
|
|
|
271
272
|
export declare function IconArchiveMaster(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
272
273
|
export declare function IconPair(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
273
274
|
export declare function IconUnpair(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
275
|
+
export declare function IconCtrlWorkflow(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
274
276
|
export declare function IconBackhandIndexPointingRight(props: Readonly<React.SVGProps<SVGSVGElement>>): import("react/jsx-runtime").JSX.Element;
|
|
275
277
|
export declare function IconMoveToFolder(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
276
|
-
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, 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, IconPrintOutline, 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, IconUserGroupOutline, 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, IconSignaturePencil, IconRecursiveOps, IconCheckIn, IconTree, IconGrid, IconList, IconFolder, IconFolderOpen, IconFactory, IconTest, IconCheck, IconUncheck, IconSortAsc, IconSortDesc, IconRoundFileUpload, IconSortAscLetters, IconSortDescLetters, IconRotate, IconSortAscNumbers, IconSortDescNumbers, IconSortAscClock, IconSortDescClock, IconLayerGroup, IconBell, IconBellCheck, IconBellOutline, IconBellCheckOutline, IconEnvelopeOpenText, IconChangeUser, IconUserCheck, IconRelationManyToMany, IconRelationOneToMany, IconUserExpired, IconKey, IconZoomInLinear, IconZoomOutLinear, IconMenuCAWorkingGroups, IconCADossier, IconMenuCACaseflow, IconMenuDashboard, IconMenuCAAreas, IconMenuTask, IconMenuSearch, IconMenuFullTextSearch, IconMenuFavourite, IconSAPLogin, IconSAPLogin2, IconView };
|
|
278
|
+
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, 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, IconPrintOutline, 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, IconUserGroupOutline, 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, IconSignaturePencil, IconRecursiveOps, IconCheckIn, IconTree, IconGrid, IconList, IconFolder, IconFolderOpen, IconFactory, IconTest, IconCheck, IconUncheck, IconSortAsc, IconSortDesc, IconRoundFileUpload, IconSortAscLetters, IconSortDescLetters, IconRotate, IconSortAscNumbers, IconSortDescNumbers, IconSortAscClock, IconSortDescClock, IconLayerGroup, IconBell, IconBellCheck, IconBellOutline, IconBellCheckOutline, IconEnvelopeOpenText, IconChangeUser, IconUserCheck, IconRelationManyToMany, IconRelationOneToMany, IconUserExpired, IconKey, IconZoomInLinear, IconZoomOutLinear, IconMenuCAWorkingGroups, IconCADossier, IconMenuCACaseflow, IconMenuDashboard, IconMenuCAAreas, IconMenuTask, IconMenuSearch, IconMenuFullTextSearch, IconMenuFavourite, IconSAPLogin, IconSAPLogin2, IconView, IconNewSignature };
|
package/lib/helper/TMIcons.js
CHANGED
|
@@ -246,6 +246,9 @@ function IconAlarmPlus(props) {
|
|
|
246
246
|
function IconHourglass(props) {
|
|
247
247
|
return (_jsxs("svg", { fill: "#fff", fontSize: props.fontSize ? props.fontSize : FONTSIZE, height: "1em", width: "1em", viewBox: "-3.04 -3.04 22.08 22.08", xmlns: "http://www.w3.org/2000/svg", stroke: "#fff", strokeWidth: "0.00016", children: [" ", _jsxs("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0", children: [" ", _jsx("rect", { x: "-3.04", y: "-3.04", width: "22.08", height: "22.08", rx: "11.04", fill: "currentColor" }), " "] }), " ", _jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }), " ", _jsxs("g", { id: "SVGRepo_iconCarrier", children: [" ", _jsx("path", { d: "M14 2H13V4.41421L9.41421 8L13 11.5858V14H14V16H2V14H3V11.5858L6.58579 8L3 4.41421V2H2V0H14V2ZM5 2V3.58579L8 6.58579L11 3.58579V2H5ZM8 9.41421L5 12.4142V14H11V12.4142L8 9.41421Z" }), " "] }), " "] }));
|
|
248
248
|
}
|
|
249
|
+
function IconNewSignature(props) {
|
|
250
|
+
return (_jsxs("svg", { viewBox: "0 -67 512 512", height: "1em", width: "1em", fill: "currentColor", ...props, children: [_jsx("path", { d: "m497 0h-482c-8.285156 0-15 6.714844-15 15v348.355469c0 8.285156 6.714844 15 15 15h482c8.285156 0 15-6.714844 15-15v-348.355469c0-8.285156-6.714844-15-15-15zm-433.054688 314.3125v-250.269531h384.109376v250.269531zm0 0" }), _jsx("path", { d: "m347.65625 149.074219c-16.523438-5.136719-34.363281.878906-44.394531 14.976562l-5.597657 7.863281-16.1875-14.304687c-3.214843-2.84375-7.492187-4.167969-11.753906-3.648437-4.261718.519531-8.09375 2.84375-10.527344 6.378906l-2.125 3.078125-2.480468-18.507813c-.832032-6.199218-5.425782-11.234375-11.527344-12.628906s-12.425781 1.148438-15.867188 6.375l-24.460937 37.144531c-5.597656-6.828125-13.488281-11.414062-22.371094-12.859375-10.910156-1.777344-21.898437 1.414063-30.160156 8.757813l-8.894531 7.90625c-6.191406 5.503906-6.75 14.984375-1.246094 21.175781s14.984375 6.75 21.175781 1.246094l8.894531-7.90625c2.027344-1.800782 4.261719-1.757813 5.414063-1.570313 1.148437.1875 3.277344.855469 4.632813 3.207031 4.546874 7.917969 12.714843 12.8125 21.84375 13.09375 9.113281.25 17.574218-4.113281 22.597656-11.738281l5.570312-8.457031 2.316406 17.269531c.820313 6.144531 5.34375 11.148438 11.371094 12.59375 6.027344 1.441407 12.328125-.972656 15.84375-6.078125l14.570313-21.144531 16 14.136719c3.1875 2.816406 7.421875 4.148437 11.644531 3.664062s8.042969-2.742187 10.507812-6.207031l15.257813-21.441406c2.496094-3.507813 6.9375-5.003907 11.042969-3.726563 4.175781 1.300782 6.980468 5.109375 6.980468 9.480469v3.304687c0 16.445313-8.792968 31.863282-22.949218 40.238282-7.128906 4.21875-9.488282 13.417968-5.269532 20.546875 2.800782 4.734375 7.796876 7.363281 12.925782 7.363281 2.59375 0 5.226562-.675781 7.621094-2.09375 23.238281-13.746094 37.671874-39.058594 37.671874-66.054688v-3.304687c0-17.585937-11.28125-32.90625-28.070312-38.128906zm0 0" }), _jsx("path", { d: "m173.046875 153.902344c8.285156 0 15-6.714844 15-15v-4.199219c0-8.28125-6.714844-15-15-15s-15 6.71875-15 15v4.199219c0 8.285156 6.714844 15 15 15zm0 0" })] }));
|
|
251
|
+
}
|
|
249
252
|
function IconNone(props) {
|
|
250
253
|
return (_jsxs("svg", { fill: "currentColor", fontSize: props.fontSize ? props.fontSize : FONTSIZE, height: "1em", width: "1em", viewBox: "0 0 32.00 32.00", version: "1.1", xmlns: "http://www.w3.org/2000/svg", stroke: "#fff", strokeWidth: "0.019200000000000002", children: [" ", _jsxs("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0", children: [" ", _jsx("rect", { x: "0", y: "0", width: "32.00", height: "32.00", rx: "16", fill: "#fff" }), " "] }), " ", _jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }), " ", _jsxs("g", { id: "SVGRepo_iconCarrier", children: [" ", _jsx("title", { children: "cancel" }), " ", _jsx("path", { d: "M10.771 8.518c-1.144 0.215-2.83 2.171-2.086 2.915l4.573 4.571-4.573 4.571c-0.915 0.915 1.829 3.656 2.744 2.742l4.573-4.571 4.573 4.571c0.915 0.915 3.658-1.829 2.744-2.742l-4.573-4.571 4.573-4.571c0.915-0.915-1.829-3.656-2.744-2.742l-4.573 4.571-4.573-4.571c-0.173-0.171-0.394-0.223-0.657-0.173v0zM16 1c-8.285 0-15 6.716-15 15s6.715 15 15 15 15-6.716 15-15-6.715-15-15-15zM16 4.75c6.213 0 11.25 5.037 11.25 11.25s-5.037 11.25-11.25 11.25-11.25-5.037-11.25-11.25c0.001-6.213 5.037-11.25 11.25-11.25z" }), " "] }), " "] }));
|
|
251
254
|
}
|
|
@@ -673,10 +676,15 @@ export function IconPair(props) {
|
|
|
673
676
|
export function IconUnpair(props) {
|
|
674
677
|
return (_jsxs("svg", { 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: "M16.61 13.5c-.8.35-1.5.86-2.07 1.5H9.5a2.5 2.5 0 0 1 0-5H17v1.5H9.5c-.55 0-1 .45-1 1s.45 1 1 1zm-13.11-1c0-2.21 1.79-4 4-4H18a2.495 2.495 0 0 1 1.45 4.53c.6.04 1.18.17 1.72.38c.52-.67.83-1.5.83-2.41c0-2.21-1.79-4-4-4H7.5C4.46 7 2 9.46 2 12.5S4.46 18 7.5 18h5.59c.09-.53.25-1.03.46-1.5H7.5c-2.21 0-4-1.79-4-4M15 18v2h8v-2z" }), " "] }));
|
|
675
678
|
}
|
|
679
|
+
export function IconCtrlWorkflow(props) {
|
|
680
|
+
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fontSize: props.fontSize ?? FONTSIZE, viewBox: "0 0 20 20", width: "1em", height: "1em", ...props, children: _jsx("path", { fill: "currentColor",
|
|
681
|
+
// stroke="currentColor" strokeWidth="0.3px"
|
|
682
|
+
d: "M14.085 2H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3v2H5.5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1H13v-2h3a2 2 0 0 0 2-2V7h-1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10v-.5q.001-.264.085-.5M12 17H8v-2h4zm3-14.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V5h-.78a.5.5 0 0 0-.474.342l-.544 1.632A1.5 1.5 0 0 1 11.78 8H11v1.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V7h.78a.5.5 0 0 0 .474-.342l.544-1.632A1.5 1.5 0 0 1 14.22 4H15zM10 7H8v2h2zm6-2h2V3h-2z" }) }));
|
|
683
|
+
}
|
|
676
684
|
export function IconBackhandIndexPointingRight(props) {
|
|
677
685
|
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 128 128", width: "1em", height: "1em", ...props, children: [_jsx("path", { fill: "#E0BB95", d: "M58.7 41.1c10.8.1 53.3.4 54.9.4c12.8.3 12.7 16.7.7 16.9c-1.5 0-25 1.1-32.2 1.3c5.2 2 7.5 11.9-3.1 14.9c5 2.6 6.4 12.9-4.2 14.7c3.8 2.5 4.3 10.9-6 14.2c-8.4 2.7-28.2 2-40.3-2.3c-9.1-3.3-8.4-5.8-16.7-5.6c-1.4 0-2.1-1.1-2.4-2.4c-1.3-5.9-1.9-26.3-.3-33.8c.4-1.6 1.7-1.8 2.2-1.9c2.1-.4 4.2-2.5 5-4.3c3.2-6.4 12.8-12.8 23.4-18.2c5.5-2.8 9.2-8.8 10.4-18.3c.8-6.3 8.6-7.7 11.8-2.5c2.2 3.6 2.9 7 2.9 10.4c.2 6.2-1.6 10.1-6.1 16.5" }), _jsx("defs", { children: _jsx("path", { id: "notoBackhandIndexPointingRightMediumLightSkinTone0", d: "M58.7 41.1c10.8.1 53.3.4 54.9.4c12.8.3 12.7 16.7.7 16.9c-1.5 0-25 1.1-32.2 1.3c5.2 2 7.5 11.9-3.1 14.9c5 2.6 6.4 12.9-4.2 14.7c3.8 2.5 4.3 10.9-6 14.2c-8.4 2.7-28.2 2-40.3-2.3c-9.1-3.3-8.4-5.8-16.7-5.6c-1.4 0-2.1-1.1-2.4-2.4c-1.3-5.9-1.9-26.3-.3-33.8c.4-1.6 1.7-1.8 2.2-1.9c2.1-.4 4.2-2.5 5-4.3c3.2-6.4 12.8-12.8 23.4-18.2c5.5-2.8 9.2-8.8 10.4-18.3c.8-6.3 8.6-7.7 11.8-2.5c2.2 3.6 2.9 7 2.9 10.4c.2 6.2-1.6 10.1-6.1 16.5" }) }), _jsx("clipPath", { id: "notoBackhandIndexPointingRightMediumLightSkinTone1", children: _jsx("use", { href: "#notoBackhandIndexPointingRightMediumLightSkinTone0" }) }), _jsx("g", { fill: "#D19661", clipPath: "url(#notoBackhandIndexPointingRightMediumLightSkinTone1)", children: _jsx("path", { d: "M73.3 59.5c.1 1.6 2.8 2.9 2.8 6.4c0 3.7-3 4.7-3.1 7.5c-.1 2.7 2 3.8 1.5 7.7c-.6 4.5-4.1 4-4.2 7.1c0 2.7 1.8 3.2 1.8 6.6c0 3.1-3 5.8-5.5 7s-1.2 3.4 0 3.4s11.9-1.3 14.5-8.2c3-8 11-29.6 8.8-36.9c-7.1-1-11.5-1.6-13.7-1.8c-.7-.1-2.9-.6-2.9 1.2M60.1 40.7c0 .9.1 1.5 1 1.5c1 0 43.6 2.1 51.6 2.3c9.2.2 8.7 7.6 5.9 10.1c-1.9 1.7.6 4 2.2 2.6s4.4-3.4 4.3-8.4s-4.4-8.6-8.4-8.9c-3.8-.3-56.6.8-56.6.8m-51.9 21c15.9 0 14.1-11.7 25.2-18.9c15.4-10.1 16.3-11.1 19.7-25.2c1.2-4.9 5.7-4.4 7.7-2.1s4.9-1.3 3.6-2.7s-7.8-7.7-14.8-1.1s-42 46.2-42 46.2z" }) }), _jsx("defs", { children: _jsx("use", { href: "#notoBackhandIndexPointingRightMediumLightSkinTone0", id: "notoBackhandIndexPointingRightMediumLightSkinTone2" }) }), _jsx("clipPath", { id: "notoBackhandIndexPointingRightMediumLightSkinTone3", children: _jsx("use", { href: "#notoBackhandIndexPointingRightMediumLightSkinTone2" }) }), _jsx("g", { fill: "#8D542E", clipPath: "url(#notoBackhandIndexPointingRightMediumLightSkinTone3)", children: _jsx("path", { d: "M58.7 41.1h-1.9c-.4 0-.8-.4-.2-1.3s5.8-8 5.8-15c0-3.2-.5-7.7-3.4-12.4c-.6-.9.2-1.4.9-1c.7.5 6.4 3.2 6.5 13.4s-7.7 16.3-7.7 16.3m65.1 8.8c-.5 0-1.1-.2-1.7 1c-.7 1.5-3.1 4.4-8.4 4.7s-38.1 2.5-38.9 2.5c-1.1 0-1.2 1.9.1 1.8c1.7-.1 7.2-.2 7.2-.2s30.9 1.8 36.9-.6c6.1-2.4 4.8-9.2 4.8-9.2M86.6 68.5c-.3-.1-.7-.1-1 .3c-1.5 2-4.6 3.5-10.6 3.3c-1.4 0-1.6 2.7.1 2.7c.7 0 4-.1 4-.1l6.6-.2zm-3.6 15c-.3-.1-.7-.1-1.1.4c-1.5 2-3.5 2.8-9.7 3c-1.5.1-1.4 2.6.2 2.6c1.1 0 2.4-.1 2.4-.1l7-.6zm-5.4 12.7c-.3-.1-.8-.2-1.2.4c-.8 1.1-2.9 3-7.5 4.4c-3.7 1.1-21.3 1.9-32.5-.7c-2.3-.5-9.9-3-13.6-5.3s-7.3-1.6-8.3-1.4s-6.3.7-6.3.7l2.5 3.7l27 8.6l38.5-.6z" }) })] }));
|
|
678
686
|
}
|
|
679
687
|
export function IconMoveToFolder(props) {
|
|
680
688
|
return (_jsx("svg", { fontSize: props.fontSize ?? FONTSIZE, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 28 28", width: "1em", height: "1em", ...props, children: _jsx("path", { d: "M21.5 15a5.5 5.5 0 1 1 0 11a5.5 5.5 0 0 1 0-11zM10.207 4c.46 0 .908.141 1.284.402l.156.12L14.022 6.5h9.728a2.25 2.25 0 0 1 2.229 1.938l.016.158l.005.154v7.06a6.518 6.518 0 0 0-1.499-1.077L24.5 8.75a.75.75 0 0 0-.648-.743L23.75 8h-9.729l-2.374 1.978a2.25 2.25 0 0 1-1.244.513l-.196.009l-6.707-.001V21.75c0 .38.282.693.648.743l.102.007h11.064a6.47 6.47 0 0 0 .709 1.501L4.25 24a2.25 2.25 0 0 1-2.245-2.096L2 21.75V6.25a2.25 2.25 0 0 1 2.096-2.245L4.25 4h5.957zm11.585 13.545l-.076.044l-.07.057l-.057.07a.5.5 0 0 0 0 .568l.057.07l1.646 1.645l-4.798.001l-.09.008a.5.5 0 0 0-.402.402l-.008.09l.008.09a.5.5 0 0 0 .402.402l.09.008l4.8-.001l-1.648 1.647l-.057.07a.5.5 0 0 0 .695.695l.07-.057l2.535-2.541l.031-.042l.042-.08l.026-.083l.01-.064l-.002-.11l-.008-.042l-.026-.083l-.042-.08l-.037-.05l-2.53-2.533l-.069-.057a.5.5 0 0 0-.492-.044zM10.207 5.5H4.25a.75.75 0 0 0-.743.648L3.5 6.25v2.749L10.207 9a.75.75 0 0 0 .395-.113l.085-.06l1.891-1.578l-1.89-1.575a.75.75 0 0 0-.377-.167l-.104-.007z", fill: "currentColor", fillRule: "nonzero" }) }));
|
|
681
689
|
}
|
|
682
|
-
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, 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, IconPrintOutline, 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, IconUserGroupOutline, 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, IconSignaturePencil, IconRecursiveOps, IconCheckIn, IconTree, IconGrid, IconList, IconFolder, IconFolderOpen, IconFactory, IconTest, IconCheck, IconUncheck, IconSortAsc, IconSortDesc, IconRoundFileUpload, IconSortAscLetters, IconSortDescLetters, IconRotate, IconSortAscNumbers, IconSortDescNumbers, IconSortAscClock, IconSortDescClock, IconLayerGroup, IconBell, IconBellCheck, IconBellOutline, IconBellCheckOutline, IconEnvelopeOpenText, IconChangeUser, IconUserCheck, IconRelationManyToMany, IconRelationOneToMany, IconUserExpired, IconKey, IconZoomInLinear, IconZoomOutLinear, IconMenuCAWorkingGroups, IconCADossier, IconMenuCACaseflow, IconMenuDashboard, IconMenuCAAreas, IconMenuTask, IconMenuSearch, IconMenuFullTextSearch, IconMenuFavourite, IconSAPLogin, IconSAPLogin2, IconView };
|
|
690
|
+
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, 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, IconPrintOutline, 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, IconUserGroupOutline, 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, IconSignaturePencil, IconRecursiveOps, IconCheckIn, IconTree, IconGrid, IconList, IconFolder, IconFolderOpen, IconFactory, IconTest, IconCheck, IconUncheck, IconSortAsc, IconSortDesc, IconRoundFileUpload, IconSortAscLetters, IconSortDescLetters, IconRotate, IconSortAscNumbers, IconSortDescNumbers, IconSortAscClock, IconSortDescClock, IconLayerGroup, IconBell, IconBellCheck, IconBellOutline, IconBellCheckOutline, IconEnvelopeOpenText, IconChangeUser, IconUserCheck, IconRelationManyToMany, IconRelationOneToMany, IconUserExpired, IconKey, IconZoomInLinear, IconZoomOutLinear, IconMenuCAWorkingGroups, IconCADossier, IconMenuCACaseflow, IconMenuDashboard, IconMenuCAAreas, IconMenuTask, IconMenuSearch, IconMenuFullTextSearch, IconMenuFavourite, IconSAPLogin, IconSAPLogin2, IconView, IconNewSignature };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AccessLevels, DcmtTypeDescriptor, FileDescriptor, UserDescriptor } from "@topconsultnpm/sdk-ts";
|
|
3
|
+
import { DcmtCheckoutInfo } from "./index";
|
|
4
|
+
import { DcmtInfo, DownloadModes, DownloadTypes } from "../ts/types";
|
|
5
|
+
export interface CheckInCheckOutInfo {
|
|
6
|
+
CICO: number;
|
|
7
|
+
CanCICO: AccessLevels;
|
|
8
|
+
CanDelChronology: AccessLevels;
|
|
9
|
+
UserID_MID: number;
|
|
10
|
+
Date_MID: number;
|
|
11
|
+
Ver_MID: number;
|
|
12
|
+
UserID_CanViewOrUpdate: AccessLevels;
|
|
13
|
+
Date_CanViewOrUpdate: AccessLevels;
|
|
14
|
+
Ver_CanViewOrUpdate: AccessLevels;
|
|
15
|
+
}
|
|
16
|
+
export declare const colors: {
|
|
17
|
+
MEDIUM_GREEN: string;
|
|
18
|
+
};
|
|
19
|
+
export interface CheckoutStatusResult {
|
|
20
|
+
isCheckedOut: boolean;
|
|
21
|
+
mode: 'editMode' | 'lockMode' | '';
|
|
22
|
+
version: number;
|
|
23
|
+
icon: React.ReactNode | null;
|
|
24
|
+
}
|
|
25
|
+
export declare const cicoIsEnabled: (dcmt: any, allUsers: Array<UserDescriptor>, dtd: DcmtTypeDescriptor | undefined) => {
|
|
26
|
+
cicoEnabled: boolean;
|
|
27
|
+
checkoutStatus: CheckoutStatusResult;
|
|
28
|
+
};
|
|
29
|
+
export declare const getCicoDownloadFileName: (originalFileName: string, fileItem: DcmtInfo | undefined, checkout: boolean, withTimestampAndExt: boolean) => string;
|
|
30
|
+
export declare const updateDcmtCheckoutItem: (item: DcmtCheckoutInfo, action?: "addOrUpdate" | "remove") => void;
|
|
31
|
+
export declare const downloadFilesCallback: (originalFileName: string, dcmt: Array<DcmtInfo>, checkout: boolean, downloadDcmtsAsync: (inputDcmts: Array<DcmtInfo> | undefined, downloadType?: DownloadTypes, downloadMode?: DownloadModes, onFileDownloaded?: (dcmtFile: File) => void, confirmAttachments?: (list: FileDescriptor[]) => Promise<string[] | undefined>, skipConfirmation?: boolean) => Promise<void>) => Promise<void>;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AccessLevels, CICO_MetadataNames, SDK_Globals } from "@topconsultnpm/sdk-ts";
|
|
3
|
+
import TMTooltip from "../components/base/TMTooltip";
|
|
4
|
+
import { Globalization, SDKUI_Globals, SDKUI_Localizator } from "./index";
|
|
5
|
+
import { DownloadTypes } from "../ts/types";
|
|
6
|
+
export const colors = {
|
|
7
|
+
MEDIUM_GREEN: "#28a745",
|
|
8
|
+
};
|
|
9
|
+
const getCicoInfo = (dtd) => {
|
|
10
|
+
const cico = {
|
|
11
|
+
CICO: 0,
|
|
12
|
+
CanCICO: AccessLevels.No,
|
|
13
|
+
CanDelChronology: AccessLevels.No,
|
|
14
|
+
UserID_MID: 0,
|
|
15
|
+
Date_MID: 0,
|
|
16
|
+
Ver_MID: 0,
|
|
17
|
+
UserID_CanViewOrUpdate: AccessLevels.No,
|
|
18
|
+
Date_CanViewOrUpdate: AccessLevels.No,
|
|
19
|
+
Ver_CanViewOrUpdate: AccessLevels.No,
|
|
20
|
+
};
|
|
21
|
+
if (dtd === undefined)
|
|
22
|
+
return cico;
|
|
23
|
+
cico.CICO = dtd.cico ?? 0;
|
|
24
|
+
cico.CanCICO = dtd.perm?.canCICO ?? AccessLevels.No;
|
|
25
|
+
cico.CanDelChronology = dtd.perm?.canDelChron ?? AccessLevels.No;
|
|
26
|
+
const mdCheckout = dtd.metadata?.find(md => md.name === CICO_MetadataNames.CICO_CheckoutUserID);
|
|
27
|
+
if (mdCheckout) {
|
|
28
|
+
cico.UserID_MID = mdCheckout.fromMID;
|
|
29
|
+
cico.UserID_CanViewOrUpdate = (mdCheckout.perm?.canView == AccessLevels.Yes || mdCheckout.perm?.canUpdate == AccessLevels.Yes) ? AccessLevels.Yes : AccessLevels.No;
|
|
30
|
+
}
|
|
31
|
+
const mdDate = dtd.metadata?.find(md => md.name === CICO_MetadataNames.CICO_CheckoutDate);
|
|
32
|
+
if (mdDate) {
|
|
33
|
+
cico.Date_MID = mdDate.fromMID;
|
|
34
|
+
cico.Date_CanViewOrUpdate = (mdDate.perm?.canView == AccessLevels.Yes || mdDate.perm?.canUpdate == AccessLevels.Yes) ? AccessLevels.Yes : AccessLevels.No;
|
|
35
|
+
}
|
|
36
|
+
const mdVer = dtd.metadata?.find(md => md.name === CICO_MetadataNames.CICO_Version);
|
|
37
|
+
if (mdVer) {
|
|
38
|
+
cico.Ver_MID = mdVer.fromMID;
|
|
39
|
+
cico.Ver_CanViewOrUpdate = (mdVer.perm?.canView == AccessLevels.Yes || mdVer.perm?.canUpdate == AccessLevels.Yes) ? AccessLevels.Yes : AccessLevels.No;
|
|
40
|
+
}
|
|
41
|
+
return cico;
|
|
42
|
+
};
|
|
43
|
+
const findCheckOutUserName = (allUsers, checkoutUserId) => {
|
|
44
|
+
let checkOutUser = allUsers.find(user => user.id === checkoutUserId);
|
|
45
|
+
return checkOutUser ? checkOutUser.name : '-';
|
|
46
|
+
};
|
|
47
|
+
export const cicoIsEnabled = (dcmt, allUsers, dtd) => {
|
|
48
|
+
if (dcmt === undefined || dtd === undefined) {
|
|
49
|
+
return {
|
|
50
|
+
cicoEnabled: false,
|
|
51
|
+
checkoutStatus: { isCheckedOut: false, mode: '', version: 1, icon: null }
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
const cicoInfo = getCicoInfo(dtd);
|
|
55
|
+
const CICO_CheckoutUserID_Meta = dtd?.metadata?.find(md => md.name === CICO_MetadataNames.CICO_CheckoutUserID);
|
|
56
|
+
const CICO_CheckoutDate_Meta = dtd?.metadata?.find(md => md.name === CICO_MetadataNames.CICO_CheckoutDate);
|
|
57
|
+
const CICO_Version_Meta = dtd?.metadata?.find(md => md.name === CICO_MetadataNames.CICO_Version);
|
|
58
|
+
const keyVersion = dcmt.TID + "_" + (CICO_Version_Meta?.id ?? 0);
|
|
59
|
+
const versionRaw = CICO_Version_Meta?.id ? dcmt[keyVersion] : undefined;
|
|
60
|
+
const version = (versionRaw != null && !isNaN(Number(versionRaw))) ? Number(versionRaw) : 1;
|
|
61
|
+
let checkoutStatus = { isCheckedOut: false, mode: '', version: version, icon: null, };
|
|
62
|
+
const userID = SDK_Globals.tmSession?.SessionDescr?.userID;
|
|
63
|
+
if (dcmt && CICO_CheckoutUserID_Meta?.id) {
|
|
64
|
+
const keyUserID = dcmt.TID + "_" + CICO_CheckoutUserID_Meta.id;
|
|
65
|
+
const checkoutUserIdValue = dcmt[keyUserID];
|
|
66
|
+
const checkoutUserId = Number(checkoutUserIdValue);
|
|
67
|
+
if (userID && checkoutUserIdValue && !isNaN(checkoutUserId) && checkoutUserId > 0) {
|
|
68
|
+
// editMode: l'utente corrente è quello che ha fatto il checkout
|
|
69
|
+
// lockMode: un altro utente ha fatto il checkout
|
|
70
|
+
const mode = (userID && userID === checkoutUserId) ? 'editMode' : 'lockMode';
|
|
71
|
+
// Recupera i dati aggiuntivi per il tooltip
|
|
72
|
+
const keyDate = dcmt.TID + "_" + (CICO_CheckoutDate_Meta?.id ?? 0);
|
|
73
|
+
const checkoutDate = CICO_CheckoutDate_Meta?.id ? dcmt[keyDate] : undefined;
|
|
74
|
+
const editLockTooltipText = _jsxs(_Fragment, { children: [_jsxs("div", { style: { textAlign: "center" }, children: [mode === 'editMode' && (_jsxs(_Fragment, { children: [_jsx("i", { style: { fontSize: "18px", color: colors.MEDIUM_GREEN, fontWeight: "bold" }, className: "dx-icon-edit" }), SDKUI_Localizator.CurrentUserExtract] })), mode === 'lockMode' && (_jsxs(_Fragment, { children: [_jsx("i", { style: { fontSize: "18px", color: colors.MEDIUM_GREEN, fontWeight: "bold" }, className: "dx-icon-lock" }), SDKUI_Localizator.ExtractedFromOtherUser] }))] }), _jsx("hr", {}), _jsxs("div", { style: { textAlign: "left" }, children: [_jsxs("ul", { children: [_jsxs("li", { children: ["- ", _jsx("span", { style: { fontWeight: 'bold' }, children: SDKUI_Localizator.ExtractedBy }), ": ", findCheckOutUserName(allUsers, checkoutUserId), " (ID: ", checkoutUserId, ")"] }), _jsxs("li", { children: ["- ", _jsx("span", { style: { fontWeight: 'bold' }, children: SDKUI_Localizator.ExtractedOn }), ": ", Globalization.getDateTimeDisplayValue(checkoutDate?.toString())] })] }), _jsx("hr", {}), _jsx("ul", { children: _jsxs("li", { children: ["- ", _jsx("span", { style: { fontWeight: 'bold' }, children: SDKUI_Localizator.Version }), ": ", version ?? 1] }) })] })] });
|
|
75
|
+
const icon = mode === 'editMode'
|
|
76
|
+
? _jsx(TMTooltip, { content: editLockTooltipText, children: _jsx("i", { style: { fontSize: "18px", color: colors.MEDIUM_GREEN, fontWeight: "bold" }, className: "dx-icon-edit" }) })
|
|
77
|
+
: _jsx(TMTooltip, { content: editLockTooltipText, children: _jsx("i", { style: { fontSize: "18px", color: colors.MEDIUM_GREEN, fontWeight: "bold" }, className: "dx-icon-lock" }) });
|
|
78
|
+
checkoutStatus = { isCheckedOut: true, mode: mode, icon: icon, version: version };
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
cicoEnabled: cicoInfo.CICO === 1 && cicoInfo.CanCICO === AccessLevels.Yes,
|
|
83
|
+
checkoutStatus: checkoutStatus
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export const getCicoDownloadFileName = (originalFileName, fileItem, checkout, withTimestampAndExt) => {
|
|
87
|
+
// If no fileItem is provided, return an empty string immediately
|
|
88
|
+
if (fileItem === undefined)
|
|
89
|
+
return '';
|
|
90
|
+
// Retrieve the archiveID from the global session object
|
|
91
|
+
const archiveID = SDK_Globals.tmSession?.SessionDescr?.archiveID;
|
|
92
|
+
// Destructure the fileItem object into properties
|
|
93
|
+
const { DID, TID, FILEEXT } = fileItem;
|
|
94
|
+
// Determine the base name of the file (without its extension)
|
|
95
|
+
// If the file name contains '.', only take the substring before the last dot
|
|
96
|
+
const baseName = originalFileName.includes('.') ? originalFileName.substring(0, originalFileName.lastIndexOf('.')) : originalFileName;
|
|
97
|
+
// Construct a unique identifier for the file combining archiveID, baseName, tid, and did.
|
|
98
|
+
const fileIdentifier = `${archiveID}~${baseName}~${TID}~${DID}`;
|
|
99
|
+
// Determine the extension to append to the file name
|
|
100
|
+
const extension = withTimestampAndExt && FILEEXT ? `.${FILEEXT}` : '';
|
|
101
|
+
// Initialize an empty string for the timestamp (to be appended if needed)
|
|
102
|
+
let timestamp = '';
|
|
103
|
+
// If this is a checkout and timestamps should be added, generate a formatted timestamp
|
|
104
|
+
if (checkout && withTimestampAndExt) {
|
|
105
|
+
const now = new Date();
|
|
106
|
+
const pad = (n) => n.toString().padStart(2, '0');
|
|
107
|
+
// Format the timestamp as YYYYMMDDHHMMSS and prefix with '~'
|
|
108
|
+
timestamp = `~${now.getFullYear()}${pad(now.getMonth() + 1)}${pad(now.getDate())}${pad(now.getHours())}${pad(now.getMinutes())}${pad(now.getSeconds())}`;
|
|
109
|
+
}
|
|
110
|
+
// Construct and return the final file name: [archiveID]~[name]~[tid]~[did]~[timestamp].[extension]
|
|
111
|
+
return `${checkout ? 'checkout~' : ''}${fileIdentifier}${timestamp}${extension}`;
|
|
112
|
+
};
|
|
113
|
+
export const updateDcmtCheckoutItem = (item, action = "addOrUpdate") => {
|
|
114
|
+
// Make a shallow copy of the global draft checkout items array to avoid direct mutation
|
|
115
|
+
const currentItems = [...SDKUI_Globals.userSettings.dcmtCheckoutInfo];
|
|
116
|
+
// Find the index of an existing item that has the same TID and DID as the new item
|
|
117
|
+
const index = currentItems.findIndex(i => i.TID === item.TID && i.DID === item.DID);
|
|
118
|
+
// If the action is to add a new item or update an existing one
|
|
119
|
+
if (action === "addOrUpdate") {
|
|
120
|
+
if (index >= 0) {
|
|
121
|
+
// If the item exists, overwrite it with the new values
|
|
122
|
+
currentItems[index] = item;
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
// If the item does not exist, push it into the array
|
|
126
|
+
currentItems.push(item);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
else if (action === "remove" && index >= 0) { // If the action is to remove an item
|
|
130
|
+
// Remove the item from the array
|
|
131
|
+
currentItems.splice(index, 1);
|
|
132
|
+
}
|
|
133
|
+
// Update the global array with the modified copy
|
|
134
|
+
SDKUI_Globals.userSettings.dcmtCheckoutInfo = currentItems;
|
|
135
|
+
};
|
|
136
|
+
export const downloadFilesCallback = async (originalFileName, dcmt, checkout, downloadDcmtsAsync) => {
|
|
137
|
+
const files = [];
|
|
138
|
+
dcmt.forEach(file => {
|
|
139
|
+
if (file.TID && file.DID && file.FILEEXT) {
|
|
140
|
+
let fileName = getCicoDownloadFileName(originalFileName, file, checkout, true);
|
|
141
|
+
if (checkout) {
|
|
142
|
+
const newItem = {
|
|
143
|
+
TID: file.TID.toString(),
|
|
144
|
+
DID: file.DID.toString(),
|
|
145
|
+
checkoutFolder: "",
|
|
146
|
+
checkoutName: fileName
|
|
147
|
+
};
|
|
148
|
+
updateDcmtCheckoutItem(newItem, "addOrUpdate");
|
|
149
|
+
}
|
|
150
|
+
files.push({ TID: file.TID, DID: file.DID, FILEEXT: file.FILEEXT, fileName });
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
if (files.length > 0)
|
|
154
|
+
await downloadDcmtsAsync(files, DownloadTypes.Dcmt, "download");
|
|
155
|
+
};
|
package/lib/helper/helpers.d.ts
CHANGED
|
@@ -20,6 +20,13 @@ export declare const truncateText: (text: string, maxLength: number) => string;
|
|
|
20
20
|
declare function genUniqueId(): string;
|
|
21
21
|
export declare const captionToDataField: (caption: string | undefined) => string;
|
|
22
22
|
export declare const getDataColumnName: (fromTID: number | undefined, dtColumn: DataColumnDescriptor | undefined) => string;
|
|
23
|
+
/**
|
|
24
|
+
* Generates unique column keys handling duplicates by adding incremental suffixes.
|
|
25
|
+
* @param columns Array of DataColumnDescriptor
|
|
26
|
+
* @param fromTID The TID to use for column name generation
|
|
27
|
+
* @returns Array of unique column keys
|
|
28
|
+
*/
|
|
29
|
+
export declare const generateUniqueColumnKeys: (columns: DataColumnDescriptor[] | undefined, fromTID: number | undefined) => string[];
|
|
23
30
|
export declare const searchResultDescriptorToSimpleArray: (searchResult: SearchResultDescriptor | undefined) => any[] | undefined;
|
|
24
31
|
export declare const getCompleteMetadataName: (dcmtTypeName: string | undefined, metadataName: string | undefined) => string;
|
|
25
32
|
export declare const getQueryCountAsync: (qd: QueryDescriptor, showSpinner: boolean) => Promise<void>;
|
package/lib/helper/helpers.js
CHANGED
|
@@ -38,7 +38,12 @@ const openApps = async (appModule, tmSession, appRoutes) => {
|
|
|
38
38
|
};
|
|
39
39
|
export const setSDK_GlobalsInfoAsync = async (tms) => {
|
|
40
40
|
try {
|
|
41
|
-
|
|
41
|
+
const result = await SetGlobalsInfoAsync(tms);
|
|
42
|
+
if (result?.SessionDescr?.userID && result?.SessionDescr?.archiveID) {
|
|
43
|
+
const { UserSettings } = await import('./SDKUI_Globals');
|
|
44
|
+
UserSettings.LoadSettings(result.SessionDescr.userID, result.SessionDescr.archiveID);
|
|
45
|
+
}
|
|
46
|
+
return result;
|
|
42
47
|
}
|
|
43
48
|
catch (e) {
|
|
44
49
|
TMExceptionBoxManager.show({ exception: e.message });
|
|
@@ -162,16 +167,43 @@ export const getDataColumnName = (fromTID, dtColumn) => {
|
|
|
162
167
|
return MIDtoColName(tid, mid);
|
|
163
168
|
return `${tid}_${mid}`;
|
|
164
169
|
};
|
|
170
|
+
/**
|
|
171
|
+
* Generates unique column keys handling duplicates by adding incremental suffixes.
|
|
172
|
+
* @param columns Array of DataColumnDescriptor
|
|
173
|
+
* @param fromTID The TID to use for column name generation
|
|
174
|
+
* @returns Array of unique column keys
|
|
175
|
+
*/
|
|
176
|
+
export const generateUniqueColumnKeys = (columns, fromTID) => {
|
|
177
|
+
if (!columns)
|
|
178
|
+
return [];
|
|
179
|
+
const usedKeys = {};
|
|
180
|
+
const uniqueKeys = [];
|
|
181
|
+
for (let i = 0; i < columns.length; i++) {
|
|
182
|
+
let baseKey = getDataColumnName(fromTID, columns[i]);
|
|
183
|
+
let key = baseKey;
|
|
184
|
+
// If key already exists, add incremental suffix
|
|
185
|
+
if (usedKeys[baseKey] !== undefined) {
|
|
186
|
+
usedKeys[baseKey]++;
|
|
187
|
+
key = `${baseKey}_${usedKeys[baseKey]}`;
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
usedKeys[baseKey] = 0;
|
|
191
|
+
}
|
|
192
|
+
uniqueKeys.push(key);
|
|
193
|
+
}
|
|
194
|
+
return uniqueKeys;
|
|
195
|
+
};
|
|
165
196
|
export const searchResultDescriptorToSimpleArray = (searchResult) => {
|
|
166
|
-
|
|
197
|
+
// Generate unique keys for all columns
|
|
198
|
+
const uniqueKeys = generateUniqueColumnKeys(searchResult?.dtdResult?.columns, searchResult?.fromTID);
|
|
199
|
+
let result = searchResult?.dtdResult?.rows?.map((row, index) => {
|
|
167
200
|
let item = { rowIndex: index };
|
|
168
201
|
for (let i = 0; i < row.length; i++) {
|
|
169
|
-
|
|
170
|
-
let value = row[i];
|
|
171
|
-
item[key] = value;
|
|
202
|
+
item[uniqueKeys[i]] = row[i];
|
|
172
203
|
}
|
|
173
204
|
return item;
|
|
174
205
|
});
|
|
206
|
+
return result;
|
|
175
207
|
};
|
|
176
208
|
export const getCompleteMetadataName = (dcmtTypeName, metadataName) => `${dcmtTypeName}...${metadataName}`;
|
|
177
209
|
export const getQueryCountAsync = async (qd, showSpinner) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccessLevels, MetadataDataDomains, DcmtTypeListCacheService, SystemMIDsAsNumber, MetadataDataTypes, QueryDescriptor, QueryFunctions, SelectItem, SelectItemVisibilities, FromItem, LayoutModes, QueryOperators, SavedQueryDescriptor, SearchEngine, WhereItem, OrderByItem, SDK_Globals, AppModules, SystemTIDs, WorkItemMetadataNames, PlatformObjectValidator } from '@topconsultnpm/sdk-ts';
|
|
2
2
|
import { DateDisplayTypes, Globalization } from './Globalization';
|
|
3
|
-
import { DraftsMIDs, MetadataValueDescriptorEx } from '../ts';
|
|
3
|
+
import { ChronologyMIDs, DraftsMIDs, MetadataValueDescriptorEx } from '../ts';
|
|
4
4
|
import { SDKUI_Localizator } from './SDKUI_Localizator';
|
|
5
5
|
export const getTIDsByQd = (qd) => {
|
|
6
6
|
let tids = [];
|
|
@@ -301,6 +301,18 @@ export const searchResultToMetadataValues = (tid, dtd, rows, mids, metadata, lay
|
|
|
301
301
|
break;
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
+
if (tid === SystemTIDs.Chronology) {
|
|
305
|
+
switch (mvd.mid) {
|
|
306
|
+
case ChronologyMIDs.Ver:
|
|
307
|
+
mvd.customName = SDKUI_Localizator.Version;
|
|
308
|
+
mvd.isReadOnly = true;
|
|
309
|
+
break;
|
|
310
|
+
case ChronologyMIDs.AuthorID:
|
|
311
|
+
mvd.customName = SDKUI_Localizator.Author;
|
|
312
|
+
mvd.isReadOnly = true;
|
|
313
|
+
break;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
304
316
|
return mvd;
|
|
305
317
|
};
|
|
306
318
|
metadata.forEach(md => {
|