@dexteel/mesf-core 3.11.8 → 3.12.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/configuration/index.d.ts +1 -0
  3. package/dist/configuration/pages/asset/ConfigurationAssetPage.d.ts +2 -0
  4. package/dist/configuration/pages/asset/components/AssetConfiguration/AssetView.d.ts +2 -0
  5. package/dist/configuration/pages/asset/components/AssetConfiguration/ConfigurationAssetComponent.d.ts +2 -0
  6. package/dist/configuration/pages/asset/components/AssetConfiguration/CustomDragPreview.d.ts +8 -0
  7. package/dist/configuration/pages/asset/components/AssetConfiguration/CustomNode.d.ts +15 -0
  8. package/dist/configuration/pages/asset/components/AssetConfiguration/MultipleDragPreview.d.ts +8 -0
  9. package/dist/configuration/pages/asset/components/AssetConfiguration/TypeIcon.d.ts +7 -0
  10. package/dist/configuration/pages/asset/components/dialogs/create-new-asset-dialog.d.ts +7 -0
  11. package/dist/configuration/pages/asset/components/dialogs/edit-asset-dialog.d.ts +7 -0
  12. package/dist/configuration/pages/asset/components/dialogs/remove-asset-dialog.d.ts +7 -0
  13. package/dist/configuration/pages/asset/components/dialogs/viewer-asset-dialog.d.ts +7 -0
  14. package/dist/configuration/pages/asset/components/hooks/useAssetActions.d.ts +25 -0
  15. package/dist/configuration/pages/asset/components/hooks/useAssetCodes.d.ts +3 -0
  16. package/dist/configuration/pages/asset/context/ConfigurationAssetContext.d.ts +261 -0
  17. package/dist/configuration/pages/asset/hooks/TransformAssetModelData.d.ts +3 -0
  18. package/dist/configuration/pages/asset/hooks/useSearchAssets.d.ts +3 -0
  19. package/dist/configuration/pages/asset/index.d.ts +4 -0
  20. package/dist/configuration/pages/asset/models/AssetAPI.d.ts +8 -0
  21. package/dist/configuration/pages/asset/models/AssetCode.d.ts +7 -0
  22. package/dist/configuration/pages/asset/models/AssetParameters.d.ts +10 -0
  23. package/dist/configuration/pages/asset/models/FileProperties.d.ts +4 -0
  24. package/dist/configuration/pages/asset/models/InitialValueDataAsset.d.ts +2 -0
  25. package/dist/configuration/pages/asset/reducers/ConfigurationAssetReducer.d.ts +255 -0
  26. package/dist/configuration/pages/asset/repositories/ConfigurationAssetRepository.d.ts +36 -0
  27. package/dist/configuration/pages/asset/theme.d.ts +1 -0
  28. package/dist/index.esm.js +1494 -146
  29. package/dist/models/Asset.d.ts +2 -0
  30. package/package.json +6 -2
  31. package/.deepsource.toml +0 -4
package/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
1
  # CHANGELOG
2
+ ## 3.11.9
3
+ - Added 499 Custom Http Status Code support (Unauthorized)
2
4
  ## 3.11.1
3
5
  - Add Windows Auth
4
6
  ## 3.10.5
@@ -2,6 +2,7 @@ export * from "./pages/job/index";
2
2
  export * from "./pages/log/index";
3
3
  export * from "./pages/profiles/index";
4
4
  export * from "./pages/shifCrew/index";
5
+ export * from "./pages/asset/index";
5
6
  export * from "./pages/users/index";
6
7
  export * from "./formatters";
7
8
  export * from "./stylesGetters";
@@ -0,0 +1,2 @@
1
+ import * as React from "react";
2
+ export declare const ConfigurationAssetPage: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const AssetViewComponent: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ConfigurationAssetComponent: () => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { DragLayerMonitorProps } from "@minoru/react-dnd-treeview";
3
+ import { FileProperties } from "../../models/FileProperties";
4
+ type Props = {
5
+ monitorProps: DragLayerMonitorProps<FileProperties>;
6
+ };
7
+ export declare const CustomDragPreview: React.FC<Props>;
8
+ export {};
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { NodeModel, RenderParams } from "@minoru/react-dnd-treeview";
3
+ import { FileProperties } from "../../models/FileProperties";
4
+ type Props = RenderParams & {
5
+ node: NodeModel<FileProperties>;
6
+ setContextMenuOver: (data: NodeModel<FileProperties>, e: React.MouseEvent<HTMLElement>) => void;
7
+ onDoubleClick: (data: NodeModel<FileProperties>, e: React.MouseEvent<HTMLElement>) => void;
8
+ isSelected: boolean;
9
+ isDragging: boolean;
10
+ testIdPrefix?: string;
11
+ onClick: (e: React.MouseEvent, node: NodeModel<FileProperties>) => void;
12
+ "data-node-id"?: string;
13
+ };
14
+ export declare const CustomNode: React.FC<Props>;
15
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { NodeModel } from "@minoru/react-dnd-treeview";
3
+ import { FileProperties } from "../../models/FileProperties";
4
+ type Props = {
5
+ dragSources: NodeModel<FileProperties>[];
6
+ };
7
+ export declare const MultipleDragPreview: React.FC<Props>;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ type Props = {
3
+ droppable: boolean;
4
+ fileType?: string;
5
+ };
6
+ export declare const TypeIcon: React.FC<Props>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ show: boolean;
4
+ onHide: (onHide: boolean) => void;
5
+ };
6
+ export declare const CreateNewAssetDialog: ({ show, onHide }: Props) => React.JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ show: boolean;
4
+ onHide: (onHide: boolean) => void;
5
+ };
6
+ export declare const EditAssetDialog: ({ show, onHide }: Props) => React.JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ show: boolean;
4
+ onHide: (onHide: boolean) => void;
5
+ };
6
+ export declare const RemoveAssetDialog: ({ show, onHide }: Props) => React.JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ show: boolean;
4
+ onHide: (onHide: boolean) => void;
5
+ };
6
+ export declare const ViewerAssetDialog: ({ show, onHide }: Props) => React.JSX.Element;
7
+ export {};
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ import { DropOptions, NodeModel } from "@minoru/react-dnd-treeview";
3
+ import { FileProperties } from "../../models/FileProperties";
4
+ type Props = {
5
+ asset: NodeModel<FileProperties>[];
6
+ selectedNodes: NodeModel<FileProperties>[];
7
+ originalAsset: NodeModel<FileProperties>[];
8
+ isCtrlPressing: boolean;
9
+ setIsCtrlPressing: Function;
10
+ setAsset: Function;
11
+ setSelectedNodes: Function;
12
+ setIsDragging: Function;
13
+ };
14
+ export declare const useAssetActions: ({ asset, selectedNodes, originalAsset, setAsset, setSelectedNodes, isCtrlPressing, setIsDragging, setIsCtrlPressing }: Props) => {
15
+ handleDrop: (newAsset: NodeModel<FileProperties>[], options: DropOptions<FileProperties>) => void;
16
+ handleUpdateAsset: () => void;
17
+ handleCtrlClick: (e: React.MouseEvent, node: NodeModel<FileProperties>) => void;
18
+ handleDragEnd: () => void;
19
+ handleDragStart: (node: NodeModel<FileProperties>) => void;
20
+ changedNodes: NodeModel<FileProperties>[];
21
+ updatedSuccessfullyMessage: boolean;
22
+ setUpdatedSuccessfullyMessage: import("react").Dispatch<import("react").SetStateAction<boolean>>;
23
+ setChangedNodes: import("react").Dispatch<import("react").SetStateAction<NodeModel<FileProperties>[]>>;
24
+ };
25
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const useAssetCodes: () => {
2
+ loadFilterAssets: () => void;
3
+ };
@@ -0,0 +1,261 @@
1
+ import { default as React, ReactNode } from "react";
2
+ export declare const useConfigurationAssetContext: () => {
3
+ state: {
4
+ allAssetNodes: any;
5
+ dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
6
+ allNodesLoading: boolean;
7
+ anchorPoint: any;
8
+ menuContextAssetId: number | undefined;
9
+ showContextMenu: boolean;
10
+ showCreateNewContextMenu: boolean;
11
+ assetTreeId: number | null;
12
+ assetTreeName: string | null;
13
+ assetCodes: any;
14
+ assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
15
+ };
16
+ actions: import("@reduxjs/toolkit").CaseReducerActions<{
17
+ setAllAssetNodes(state: import("immer/dist/internal").WritableDraft<{
18
+ allAssetNodes: any;
19
+ dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
20
+ allNodesLoading: boolean;
21
+ anchorPoint: any;
22
+ menuContextAssetId: number | undefined;
23
+ showContextMenu: boolean;
24
+ showCreateNewContextMenu: boolean;
25
+ assetTreeId: number | null;
26
+ assetTreeName: string | null;
27
+ assetCodes: any;
28
+ assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
29
+ }>, { payload }: {
30
+ payload: any;
31
+ type: string;
32
+ }): void;
33
+ seAllNodesLoading(state: import("immer/dist/internal").WritableDraft<{
34
+ allAssetNodes: any;
35
+ dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
36
+ allNodesLoading: boolean;
37
+ anchorPoint: any;
38
+ menuContextAssetId: number | undefined;
39
+ showContextMenu: boolean;
40
+ showCreateNewContextMenu: boolean;
41
+ assetTreeId: number | null;
42
+ assetTreeName: string | null;
43
+ assetCodes: any;
44
+ assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
45
+ }>, { payload }: {
46
+ payload: any;
47
+ type: string;
48
+ }): void;
49
+ setAnchorPointX(state: import("immer/dist/internal").WritableDraft<{
50
+ allAssetNodes: any;
51
+ dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
52
+ allNodesLoading: boolean;
53
+ anchorPoint: any;
54
+ menuContextAssetId: number | undefined;
55
+ showContextMenu: boolean;
56
+ showCreateNewContextMenu: boolean;
57
+ assetTreeId: number | null;
58
+ assetTreeName: string | null;
59
+ assetCodes: any;
60
+ assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
61
+ }>, { payload }: {
62
+ payload: any;
63
+ type: string;
64
+ }): void;
65
+ setAnchorPointY(state: import("immer/dist/internal").WritableDraft<{
66
+ allAssetNodes: any;
67
+ dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
68
+ allNodesLoading: boolean;
69
+ anchorPoint: any;
70
+ menuContextAssetId: number | undefined;
71
+ showContextMenu: boolean;
72
+ showCreateNewContextMenu: boolean;
73
+ assetTreeId: number | null;
74
+ assetTreeName: string | null;
75
+ assetCodes: any;
76
+ assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
77
+ }>, { payload }: {
78
+ payload: any;
79
+ type: string;
80
+ }): void;
81
+ setMenuContextAssetId(state: import("immer/dist/internal").WritableDraft<{
82
+ allAssetNodes: any;
83
+ dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
84
+ allNodesLoading: boolean;
85
+ anchorPoint: any;
86
+ menuContextAssetId: number | undefined;
87
+ showContextMenu: boolean;
88
+ showCreateNewContextMenu: boolean;
89
+ assetTreeId: number | null;
90
+ assetTreeName: string | null;
91
+ assetCodes: any;
92
+ assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
93
+ }>, { payload }: {
94
+ payload: any;
95
+ type: string;
96
+ }): void;
97
+ setShowContextMenu(state: import("immer/dist/internal").WritableDraft<{
98
+ allAssetNodes: any;
99
+ dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
100
+ allNodesLoading: boolean;
101
+ anchorPoint: any;
102
+ menuContextAssetId: number | undefined;
103
+ showContextMenu: boolean;
104
+ showCreateNewContextMenu: boolean;
105
+ assetTreeId: number | null;
106
+ assetTreeName: string | null;
107
+ assetCodes: any;
108
+ assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
109
+ }>, { payload }: {
110
+ payload: any;
111
+ type: string;
112
+ }): void;
113
+ setShowCreateNewContextMenu(state: import("immer/dist/internal").WritableDraft<{
114
+ allAssetNodes: any;
115
+ dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
116
+ allNodesLoading: boolean;
117
+ anchorPoint: any;
118
+ menuContextAssetId: number | undefined;
119
+ showContextMenu: boolean;
120
+ showCreateNewContextMenu: boolean;
121
+ assetTreeId: number | null;
122
+ assetTreeName: string | null;
123
+ assetCodes: any;
124
+ assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
125
+ }>, { payload }: {
126
+ payload: any;
127
+ type: string;
128
+ }): void;
129
+ setDataToCreateAsset(state: import("immer/dist/internal").WritableDraft<{
130
+ allAssetNodes: any;
131
+ dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
132
+ allNodesLoading: boolean;
133
+ anchorPoint: any;
134
+ menuContextAssetId: number | undefined;
135
+ showContextMenu: boolean;
136
+ showCreateNewContextMenu: boolean;
137
+ assetTreeId: number | null;
138
+ assetTreeName: string | null;
139
+ assetCodes: any;
140
+ assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
141
+ }>, { payload }: {
142
+ payload: any;
143
+ type: string;
144
+ }): void;
145
+ setAssetNameToCreateAsset(state: import("immer/dist/internal").WritableDraft<{
146
+ allAssetNodes: any;
147
+ dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
148
+ allNodesLoading: boolean;
149
+ anchorPoint: any;
150
+ menuContextAssetId: number | undefined;
151
+ showContextMenu: boolean;
152
+ showCreateNewContextMenu: boolean;
153
+ assetTreeId: number | null;
154
+ assetTreeName: string | null;
155
+ assetCodes: any;
156
+ assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
157
+ }>, { payload }: {
158
+ payload: any;
159
+ type: string;
160
+ }): void;
161
+ setAssetParentAssetIdToCreateAsset(state: import("immer/dist/internal").WritableDraft<{
162
+ allAssetNodes: any;
163
+ dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
164
+ allNodesLoading: boolean;
165
+ anchorPoint: any;
166
+ menuContextAssetId: number | undefined;
167
+ showContextMenu: boolean;
168
+ showCreateNewContextMenu: boolean;
169
+ assetTreeId: number | null;
170
+ assetTreeName: string | null;
171
+ assetCodes: any;
172
+ assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
173
+ }>, { payload }: {
174
+ payload: any;
175
+ type: string;
176
+ }): void;
177
+ setAssetTreeId(state: import("immer/dist/internal").WritableDraft<{
178
+ allAssetNodes: any;
179
+ dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
180
+ allNodesLoading: boolean;
181
+ anchorPoint: any;
182
+ menuContextAssetId: number | undefined;
183
+ showContextMenu: boolean;
184
+ showCreateNewContextMenu: boolean;
185
+ assetTreeId: number | null;
186
+ assetTreeName: string | null;
187
+ assetCodes: any;
188
+ assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
189
+ }>, { payload }: {
190
+ payload: any;
191
+ type: string;
192
+ }): void;
193
+ setAssetTreeName(state: import("immer/dist/internal").WritableDraft<{
194
+ allAssetNodes: any;
195
+ dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
196
+ allNodesLoading: boolean;
197
+ anchorPoint: any;
198
+ menuContextAssetId: number | undefined;
199
+ showContextMenu: boolean;
200
+ showCreateNewContextMenu: boolean;
201
+ assetTreeId: number | null;
202
+ assetTreeName: string | null;
203
+ assetCodes: any;
204
+ assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
205
+ }>, { payload }: {
206
+ payload: any;
207
+ type: string;
208
+ }): void;
209
+ setAssetCodes(state: import("immer/dist/internal").WritableDraft<{
210
+ allAssetNodes: any;
211
+ dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
212
+ allNodesLoading: boolean;
213
+ anchorPoint: any;
214
+ menuContextAssetId: number | undefined;
215
+ showContextMenu: boolean;
216
+ showCreateNewContextMenu: boolean;
217
+ assetTreeId: number | null;
218
+ assetTreeName: string | null;
219
+ assetCodes: any;
220
+ assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
221
+ }>, { payload }: {
222
+ payload: any;
223
+ type: string;
224
+ }): void;
225
+ setAssetNodeSelectedInTree(state: import("immer/dist/internal").WritableDraft<{
226
+ allAssetNodes: any;
227
+ dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
228
+ allNodesLoading: boolean;
229
+ anchorPoint: any;
230
+ menuContextAssetId: number | undefined;
231
+ showContextMenu: boolean;
232
+ showCreateNewContextMenu: boolean;
233
+ assetTreeId: number | null;
234
+ assetTreeName: string | null;
235
+ assetCodes: any;
236
+ assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
237
+ }>, { payload }: {
238
+ payload: any;
239
+ type: string;
240
+ }): void;
241
+ setParentAssetNameInNodeSelectedInTree(state: import("immer/dist/internal").WritableDraft<{
242
+ allAssetNodes: any;
243
+ dataToCreateAsset: import("../models/AssetAPI").AssetAPI;
244
+ allNodesLoading: boolean;
245
+ anchorPoint: any;
246
+ menuContextAssetId: number | undefined;
247
+ showContextMenu: boolean;
248
+ showCreateNewContextMenu: boolean;
249
+ assetTreeId: number | null;
250
+ assetTreeName: string | null;
251
+ assetCodes: any;
252
+ assetNodeSelectedInTree: import("../models/AssetAPI").AssetAPI;
253
+ }>, { payload }: {
254
+ payload: any;
255
+ type: string;
256
+ }): void;
257
+ }, "__">;
258
+ };
259
+ export declare const ConfigurationAssetProvider: ({ children }: {
260
+ children: ReactNode;
261
+ }) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { Asset } from "../../../../models/Asset";
2
+ import { AssetParameters } from "../models/AssetParameters";
3
+ export declare const TransformAssetModelData: (node: Asset) => AssetParameters;
@@ -0,0 +1,3 @@
1
+ export declare const useSearchAssets: () => {
2
+ searchAssets: () => void;
3
+ };
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ type Props = {};
3
+ declare const AssetPage: (props: Props) => React.JSX.Element;
4
+ export default AssetPage;
@@ -0,0 +1,8 @@
1
+ export interface AssetAPI {
2
+ AssetId: number | string | null;
3
+ ParentAssetId: number | null;
4
+ AssetName: string;
5
+ IsAsset: boolean;
6
+ CanBeDefaultAsset: boolean | null;
7
+ ParentAssetName: string | null;
8
+ }
@@ -0,0 +1,7 @@
1
+ export interface AssetCode {
2
+ id: number;
3
+ parentId: number;
4
+ name: string;
5
+ isLeaf: boolean | null;
6
+ isActive: boolean | null;
7
+ }
@@ -0,0 +1,10 @@
1
+ export interface AssetParameters {
2
+ id: number;
3
+ parent: number | null;
4
+ text: string;
5
+ data: {
6
+ fileType: string;
7
+ fileSize: string;
8
+ };
9
+ droppable: boolean;
10
+ }
@@ -0,0 +1,4 @@
1
+ export interface FileProperties {
2
+ fileType: string;
3
+ fileSize: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ import { AssetAPI } from "./AssetAPI";
2
+ export declare const DATA_ASSET_INITIAL_VALUES: AssetAPI;