@dexteel/mesf-core 5.4.1 → 5.4.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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +13 -0
- package/dist/MESFMain.d.ts +14 -0
- package/dist/account/AuthProvider.d.ts +29 -0
- package/dist/account/account.d.ts +2 -0
- package/dist/account/changePassword.d.ts +2 -0
- package/dist/account/index.d.ts +6 -0
- package/dist/account/login-strategies/LoginAsGuest.d.ts +2 -0
- package/dist/account/login-strategies/LoginWithEmailAndPassword.d.ts +2 -0
- package/dist/account/login-strategies/LoginWithWindowsAuthentication.d.ts +2 -0
- package/dist/account/login-strategies/azure-ad/AzureADAuthConfig.d.ts +37 -0
- package/dist/account/login-strategies/azure-ad/LoginWithAzureAD.d.ts +5 -0
- package/dist/account/login-strategies/azure-ad/LoginWithAzureADForm.d.ts +2 -0
- package/dist/account/login-strategies/windows.d.ts +4 -0
- package/dist/account/login.d.ts +3 -0
- package/dist/account/logout.d.ts +2 -0
- package/dist/account/models/login.models.d.ts +15 -0
- package/dist/account/useToken.d.ts +11 -0
- package/dist/components/home/home.d.ts +3 -0
- package/dist/components/modals/error-modal.d.ts +9 -0
- package/dist/components/modals/modal.mesf.d.ts +23 -0
- package/dist/components/navigation/Header.d.ts +6 -0
- package/dist/components/navigation/MainContainer.d.ts +3 -0
- package/dist/components/navigation/Navigation.d.ts +8 -0
- package/dist/components/navigation/TimeAndUserMenu.d.ts +6 -0
- package/dist/components/navigation/areaSelector/area-selector.d.ts +2 -0
- package/dist/components/navigation/hooks/useDefaultAreaId.d.ts +1 -0
- package/dist/components/shared/buttons/button-with-loading.d.ts +8 -0
- package/dist/configuration/configuration.d.ts +6 -0
- package/dist/configuration/formatters.d.ts +7 -0
- package/dist/configuration/index.d.ts +9 -0
- package/dist/configuration/pages/asset/ConfigurationAssetPage.d.ts +2 -0
- package/dist/configuration/pages/asset/components/AssetConfiguration/AssetView.d.ts +2 -0
- package/dist/configuration/pages/asset/components/AssetConfiguration/ConfigurationAssetComponent.d.ts +2 -0
- package/dist/configuration/pages/asset/components/AssetConfiguration/CustomDragPreview.d.ts +8 -0
- package/dist/configuration/pages/asset/components/AssetConfiguration/CustomNode.d.ts +15 -0
- package/dist/configuration/pages/asset/components/AssetConfiguration/MultipleDragPreview.d.ts +8 -0
- package/dist/configuration/pages/asset/components/AssetConfiguration/TypeIcon.d.ts +7 -0
- package/dist/configuration/pages/asset/components/dialogs/create-new-asset-dialog.d.ts +7 -0
- package/dist/configuration/pages/asset/components/dialogs/edit-asset-dialog.d.ts +7 -0
- package/dist/configuration/pages/asset/components/dialogs/remove-asset-dialog.d.ts +7 -0
- package/dist/configuration/pages/asset/components/dialogs/viewer-asset-dialog.d.ts +7 -0
- package/dist/configuration/pages/asset/components/hooks/useAssetActions.d.ts +24 -0
- package/dist/configuration/pages/asset/components/hooks/useAssetCodes.d.ts +3 -0
- package/dist/configuration/pages/asset/context/ConfigurationAssetContext.d.ts +328 -0
- package/dist/configuration/pages/asset/hooks/TransformAssetModelData.d.ts +3 -0
- package/dist/configuration/pages/asset/hooks/useSearchAssets.d.ts +8 -0
- package/dist/configuration/pages/asset/index.d.ts +4 -0
- package/dist/configuration/pages/asset/models/AssetAPI.d.ts +9 -0
- package/dist/configuration/pages/asset/models/AssetCode.d.ts +8 -0
- package/dist/configuration/pages/asset/models/AssetParameters.d.ts +11 -0
- package/dist/configuration/pages/asset/models/FileProperties.d.ts +4 -0
- package/dist/configuration/pages/asset/models/InitialValueDataAsset.d.ts +2 -0
- package/dist/configuration/pages/asset/reducers/ConfigurationAssetReducer.d.ts +323 -0
- package/dist/configuration/pages/asset/repositories/ConfigurationAssetRepository.d.ts +4 -0
- package/dist/configuration/pages/asset/theme.d.ts +1 -0
- package/dist/configuration/pages/job/JobsPage.d.ts +4 -0
- package/dist/configuration/pages/job/components/JobsTable/JobsDetails.d.ts +12 -0
- package/dist/configuration/pages/job/components/JobsTable/TableJobs.d.ts +7 -0
- package/dist/configuration/pages/job/components/JobsTable/customHooks/useJobsOptionsFunctions.d.ts +11 -0
- package/dist/configuration/pages/job/components/JobsTable/customHooks/useJobsTableData.d.ts +12 -0
- package/dist/configuration/pages/job/components/ResetJob.d.ts +9 -0
- package/dist/configuration/pages/job/components/onEnableJob.d.ts +9 -0
- package/dist/configuration/pages/job/context/JobsContext.d.ts +26 -0
- package/dist/configuration/pages/job/index.d.ts +4 -0
- package/dist/configuration/pages/job/models/Job.d.ts +21 -0
- package/dist/configuration/pages/job/reducers/JobsReducer.d.ts +20 -0
- package/dist/configuration/pages/job/repositories/JobsRepository.d.ts +13 -0
- package/dist/configuration/pages/log/LogsPage.d.ts +4 -0
- package/dist/configuration/pages/log/components/Filters/TimezoneSelector.d.ts +7 -0
- package/dist/configuration/pages/log/components/Filters/codeFilter.d.ts +7 -0
- package/dist/configuration/pages/log/components/Filters/dateFilter.d.ts +8 -0
- package/dist/configuration/pages/log/components/Filters/searchFilter.d.ts +7 -0
- package/dist/configuration/pages/log/components/LogsTable/TableLogs.d.ts +11 -0
- package/dist/configuration/pages/log/components/LogsTable/customHooks/useLogTableData.d.ts +12 -0
- package/dist/configuration/pages/log/components/LogsTable/customHooks/useLogsOptionsFunctions.d.ts +11 -0
- package/dist/configuration/pages/log/components/ModalLogSelected/ModalLogSelected.d.ts +9 -0
- package/dist/configuration/pages/log/context/LogsContext.d.ts +77 -0
- package/dist/configuration/pages/log/data/LogTypeCodes.d.ts +21 -0
- package/dist/configuration/pages/log/index.d.ts +4 -0
- package/dist/configuration/pages/log/models/Log.d.ts +8 -0
- package/dist/configuration/pages/log/models/SearchData.d.ts +6 -0
- package/dist/configuration/pages/log/reducers/LogsReducer.d.ts +72 -0
- package/dist/configuration/pages/log/repositories/LogsRepository.d.ts +1 -0
- package/dist/configuration/pages/log/styles/tableStyles.d.ts +1 -0
- package/dist/configuration/pages/profiles/ProfilesPage.d.ts +4 -0
- package/dist/configuration/pages/profiles/components/Create/CreateProfile.d.ts +7 -0
- package/dist/configuration/pages/profiles/components/Delete/DeleteProfile.d.ts +9 -0
- package/dist/configuration/pages/profiles/components/ProceduresOfProfile/ActionsOfProfile.d.ts +9 -0
- package/dist/configuration/pages/profiles/components/ProceduresOfProfile/ProceduresDataTable/index.d.ts +8 -0
- package/dist/configuration/pages/profiles/components/ProfilesTable/TableProfiles.d.ts +7 -0
- package/dist/configuration/pages/profiles/components/ProfilesTable/customHooks/useProfilesOptionsFunctions.d.ts +12 -0
- package/dist/configuration/pages/profiles/components/ProfilesTable/customHooks/useTableData.d.ts +17 -0
- package/dist/configuration/pages/profiles/components/common/Pickers/ProfilesPicker.d.ts +11 -0
- package/dist/configuration/pages/profiles/components/common/Profiles/hook/useGetProfilesEffect.d.ts +8 -0
- package/dist/configuration/pages/profiles/context/ProfileContext.d.ts +26 -0
- package/dist/configuration/pages/profiles/index.d.ts +4 -0
- package/dist/configuration/pages/profiles/models/Action.d.ts +4 -0
- package/dist/configuration/pages/profiles/models/FormInitialValues.d.ts +2 -0
- package/dist/configuration/pages/profiles/models/Permission.d.ts +4 -0
- package/dist/configuration/pages/profiles/models/Profile.d.ts +5 -0
- package/dist/configuration/pages/profiles/reducers/ProfilesReducer.d.ts +21 -0
- package/dist/configuration/pages/profiles/repositories/ProfilesRepository.d.ts +8 -0
- package/dist/configuration/pages/realtime/client/index.d.ts +3 -0
- package/dist/configuration/pages/realtime/client/types.d.ts +15 -0
- package/dist/configuration/pages/realtime/config/index.d.ts +3 -0
- package/dist/configuration/pages/settings/SettingsPage.d.ts +2 -0
- package/dist/configuration/pages/settings/components/TableSettings.d.ts +9 -0
- package/dist/configuration/pages/settings/components/customHooks/useSettingsOptionsFunctions.d.ts +12 -0
- package/dist/configuration/pages/settings/components/customHooks/useTableSettings.d.ts +11 -0
- package/dist/configuration/pages/settings/components/upsertDelete/CreateSetting.d.ts +7 -0
- package/dist/configuration/pages/settings/components/upsertDelete/DeleteSetting.d.ts +7 -0
- package/dist/configuration/pages/settings/components/upsertDelete/EditSetting.d.ts +7 -0
- package/dist/configuration/pages/settings/context/SettingsContext.d.ts +26 -0
- package/dist/configuration/pages/settings/index.d.ts +3 -0
- package/dist/configuration/pages/settings/models/FormInitialValues.d.ts +2 -0
- package/dist/configuration/pages/settings/models/Setting.d.ts +6 -0
- package/dist/configuration/pages/settings/reducers/SettingReducer.d.ts +20 -0
- package/dist/configuration/pages/settings/repositories/settingRepository.d.ts +3 -0
- package/dist/configuration/pages/settings/styles/useStyles.d.ts +1 -0
- package/dist/configuration/pages/shifCrew/ShiftsCrewsPage.d.ts +4 -0
- package/dist/configuration/pages/shifCrew/components/Create/CreateShift.d.ts +7 -0
- package/dist/configuration/pages/shifCrew/components/Delete/DeleteShift.d.ts +7 -0
- package/dist/configuration/pages/shifCrew/components/Edit/EditShift.d.ts +7 -0
- package/dist/configuration/pages/shifCrew/components/TableShifts.d.ts +7 -0
- package/dist/configuration/pages/shifCrew/components/customHooks/useShiftsOptionsFunctions.d.ts +11 -0
- package/dist/configuration/pages/shifCrew/components/customHooks/useTableShift.d.ts +20 -0
- package/dist/configuration/pages/shifCrew/context/ShiftsCrewsContext.d.ts +26 -0
- package/dist/configuration/pages/shifCrew/index.d.ts +4 -0
- package/dist/configuration/pages/shifCrew/models/FormInitialValues.d.ts +2 -0
- package/dist/configuration/pages/shifCrew/models/ShiftParameters.d.ts +12 -0
- package/dist/configuration/pages/shifCrew/reducers/ShiftsCrewsReducer.d.ts +20 -0
- package/dist/configuration/pages/shifCrew/repositories/ShiftsCrewsRepository.d.ts +4 -0
- package/dist/configuration/pages/users/UsersPage.d.ts +4 -0
- package/dist/configuration/pages/users/components/ChangePassword/ChangePassword.d.ts +8 -0
- package/dist/configuration/pages/users/components/Create/CreateUser.d.ts +7 -0
- package/dist/configuration/pages/users/components/Delete/DeleteUser.d.ts +8 -0
- package/dist/configuration/pages/users/components/EditUser/EditUser.d.ts +8 -0
- package/dist/configuration/pages/users/components/UsersDataTable/TableUsers.d.ts +7 -0
- package/dist/configuration/pages/users/components/UsersDataTable/customHooks/buttonsCellRenderer.d.ts +2 -0
- package/dist/configuration/pages/users/components/UsersDataTable/customHooks/useTableData.d.ts +20 -0
- package/dist/configuration/pages/users/components/UsersDataTable/customHooks/useUsersOptionsFunctions.d.ts +13 -0
- package/dist/configuration/pages/users/components/common/AuthTypeSelector.d.ts +8 -0
- package/dist/configuration/pages/users/components/common/ProfilesPicker.d.ts +10 -0
- package/dist/configuration/pages/users/context/UsersContext.d.ts +17 -0
- package/dist/configuration/pages/users/index.d.ts +4 -0
- package/dist/configuration/pages/users/models/AuthType.d.ts +4 -0
- package/dist/configuration/pages/users/models/FormInitialValues.d.ts +2 -0
- package/dist/configuration/pages/users/models/Profile.d.ts +8 -0
- package/dist/configuration/pages/users/models/User.d.ts +11 -0
- package/dist/configuration/pages/users/reducers/UsersReducer.d.ts +11 -0
- package/dist/configuration/pages/users/repositories/UsersRepository.d.ts +31 -0
- package/dist/configuration/stylesGetters.d.ts +14 -0
- package/dist/configurationMenu.d.ts +13 -0
- package/dist/context/UTLSettingContext.d.ts +41 -0
- package/dist/context/assetContext.d.ts +26 -0
- package/dist/context/axiosInstance.d.ts +2 -0
- package/dist/context/userContext.d.ts +83 -0
- package/dist/controls/LazyLoading/LazyLoading.d.ts +3 -0
- package/dist/controls/alert.d.ts +3 -0
- package/dist/controls/charts/genericChart.d.ts +10 -0
- package/dist/controls/contextMenu/ContextMenu.d.ts +2 -0
- package/dist/controls/contextMenu/index.d.ts +4 -0
- package/dist/controls/contextMenu/models/MenuOptionType.d.ts +10 -0
- package/dist/controls/contextMenu/styles/ContextMenuStyles.d.ts +1 -0
- package/dist/controls/contextMenu/useContextMenuMESF.d.ts +22 -0
- package/dist/controls/filters/TreePickerControl.d.ts +11 -0
- package/dist/controls/filters/TreePickerControlV2.d.ts +15 -0
- package/dist/controls/filters/dialogFilter.d.ts +30 -0
- package/dist/controls/filters/filters.d.ts +29 -0
- package/dist/controls/index.d.ts +9 -0
- package/dist/controls/panels.d.ts +41 -0
- package/dist/controls/shift-navigator/component/shift-navigator.control.d.ts +7 -0
- package/dist/controls/shift-navigator/context/ShiftNavigatorProvider.d.ts +4 -0
- package/dist/controls/shift-navigator/hook/useShiftNavigator.d.ts +14 -0
- package/dist/controls/shift-navigator/index.d.ts +5 -0
- package/dist/controls/shift-navigator/models/shift-navigator.model.d.ts +30 -0
- package/dist/controls/shift-navigator/repositories/ShiftsRepository.d.ts +10 -0
- package/dist/controls/shift-navigator-v2/component/shift-period-navigator.control.d.ts +15 -0
- package/dist/controls/shift-navigator-v2/index.d.ts +4 -0
- package/dist/controls/shift-navigator-v2/models/SearchShiftsParameters.d.ts +4 -0
- package/dist/controls/shift-navigator-v2/models/shift-data.d.ts +22 -0
- package/dist/controls/shift-navigator-v2/repositories/ShiftsRepository.d.ts +14 -0
- package/dist/controls/tables/GenericTable.d.ts +5 -0
- package/dist/controls/tables/dataGrid.d.ts +10 -0
- package/dist/css/themeMESF.d.ts +1 -0
- package/dist/globalContext.d.ts +6 -0
- package/dist/hooks/useMesfRealtime.d.ts +5 -0
- package/dist/hooks/useSearchAssets.d.ts +3 -0
- package/dist/hooks/useSearchUTLSetting.d.ts +5 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.esm.js +8813 -5545
- package/dist/index.esm.js.map +1 -1
- package/dist/models/Asset.d.ts +10 -0
- package/dist/models/UTLSetting.d.ts +4 -0
- package/dist/pages/trendings/TrendingsPage.d.ts +4 -0
- package/dist/pages/trendings/components/chart/DateComponent.d.ts +6 -0
- package/dist/pages/trendings/components/chart/TableComponent.d.ts +26 -0
- package/dist/pages/trendings/components/chart/Trending.d.ts +8 -0
- package/dist/pages/trendings/components/chart/components/CellComponent.d.ts +11 -0
- package/dist/pages/trendings/components/chart/components/ColorPicker.d.ts +8 -0
- package/dist/pages/trendings/components/chart/components/DraggableLineControl.d.ts +11 -0
- package/dist/pages/trendings/components/chart/components/modals/deleteViewModal/DeleteViewModal.d.ts +9 -0
- package/dist/pages/trendings/components/chart/components/modals/editViewModal/EditViewModal.d.ts +9 -0
- package/dist/pages/trendings/components/chart/components/modals/loadView/LoadViewModal.d.ts +8 -0
- package/dist/pages/trendings/components/chart/components/modals/saveAsView/SaveAsViewModal.d.ts +7 -0
- package/dist/pages/trendings/components/chart/components/modals/saveView/SaveViewModal.d.ts +7 -0
- package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/ContextMenu/ContextMenu.d.ts +15 -0
- package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/ContextMenu/NewFolder/NewFolder.d.ts +10 -0
- package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/ContextMenu/RemoveFolder/RemoveFolder.d.ts +10 -0
- package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/CustomDragView.d.ts +8 -0
- package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/TagFolderCustomNode.d.ts +20 -0
- package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/TagSelectionModal.d.ts +9 -0
- package/dist/pages/trendings/components/chart/components/modals/tagsTreeModal/TagsTreeModal.d.ts +9 -0
- package/dist/pages/trendings/components/chart/context/TrendingContext.d.ts +120 -0
- package/dist/pages/trendings/components/chart/customOptionsComponent.d.ts +8 -0
- package/dist/pages/trendings/components/chart/hooks/useGetVerticalLinePlugin.d.ts +2 -0
- package/dist/pages/trendings/components/chart/hooks/useTagsDataTable.d.ts +24 -0
- package/dist/pages/trendings/components/chart/hooks/useUpdateCursorData.d.ts +2 -0
- package/dist/pages/trendings/components/chart/hooks/useXAxisDatePlugin.d.ts +2 -0
- package/dist/pages/trendings/components/chart/hooks/useYAxisPlugin.d.ts +2 -0
- package/dist/pages/trendings/components/chart/models/TagsTree.model.d.ts +12 -0
- package/dist/pages/trendings/components/chart/models/TrendingModels.d.ts +65 -0
- package/dist/pages/trendings/components/chart/models/scopes.model.d.ts +1 -0
- package/dist/pages/trendings/components/chart/repository/TrendingRepository.d.ts +13 -0
- package/dist/pages/trendings/components/chart/sections/chart/hooks/useChartOptions.d.ts +105 -0
- package/dist/pages/trendings/components/chart/sections/header.d.ts +6 -0
- package/dist/pages/trendings/components/chart/sections/trending-chart.d.ts +12 -0
- package/dist/pages/trendings/components/chart/styles/TagColorsStyles.d.ts +1 -0
- package/dist/pages/trendings/components/chart/styles/TagsTableStyles.d.ts +1 -0
- package/dist/pages/trendings/components/chart/styles/TasgTreeModalStyles.d.ts +1 -0
- package/dist/pages/trendings/components/chart/styles/TrendingStyles.d.ts +1 -0
- package/dist/pages/trendings/components/chart/utils/areRangeSimilar.d.ts +2 -0
- package/dist/pages/trendings/components/chart/utils/buildTagsTree.d.ts +4 -0
- package/dist/pages/trendings/components/chart/utils/calculateScales.d.ts +4 -0
- package/dist/pages/trendings/components/chart/utils/dateNavigator.d.ts +5 -0
- package/dist/pages/trendings/components/chart/utils/formatDateTimeToString.d.ts +4 -0
- package/dist/pages/trendings/components/chart/utils/formatTimeDiffWithMs.d.ts +1 -0
- package/dist/pages/trendings/components/chart/utils/tagColors.d.ts +2 -0
- package/dist/pages/trendings/components/chart/utils/timeDifference.d.ts +1 -0
- package/dist/pages/trendings/index.d.ts +3 -0
- package/dist/pages/trendings/reducers/trendings.reducer.d.ts +115 -0
- package/dist/reducers/AssetReducer.d.ts +20 -0
- package/dist/reducers/UTLSettingsReducer.d.ts +34 -0
- package/dist/reducers/UserReducer.d.ts +75 -0
- package/dist/repositorie/MESF-frontend-Repositorie.d.ts +4 -0
- package/dist/routes/MESFMainRouter.d.ts +3 -0
- package/dist/services/ApiService.d.ts +48 -0
- package/dist/services/TimeService.d.ts +15 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/utils/transforms.d.ts +30 -0
- package/dist/utils.d.ts +22 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [5.4.2](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v5.4.1...@dexteel/mesf-core-v5.4.2) (2025-05-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **Typescript:** fix tsconfig.json ([7e6f4ec](https://github.com/dexteel/mesf-core-frontend/commit/7e6f4ec4f1fb391caee0d402aeed051169428495))
|
|
9
|
+
|
|
10
|
+
## [5.4.1] - 2025-05-29
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
1
14
|
# Changelog
|
|
2
15
|
|
|
3
16
|
## [5.4.1](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v5.4.0...@dexteel/mesf-core-v5.4.1) (2025-05-29)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { type ReactNode } from "react";
|
|
2
|
+
import { ConfigurationsType } from "./configurationMenu";
|
|
3
|
+
interface Props {
|
|
4
|
+
authentication: any;
|
|
5
|
+
routes: ReactNode;
|
|
6
|
+
navbar: ReactNode;
|
|
7
|
+
navbarTitle?: string;
|
|
8
|
+
configurations: ConfigurationsType;
|
|
9
|
+
showAreaSelector?: boolean;
|
|
10
|
+
showTrendingsIcon?: boolean;
|
|
11
|
+
byPassHeaderRoutes?: string[];
|
|
12
|
+
}
|
|
13
|
+
declare function MESFMain({ authentication, routes, navbar, navbarTitle, configurations, showAreaSelector, showTrendingsIcon, byPassHeaderRoutes, }: Props): React.JSX.Element;
|
|
14
|
+
export { MESFMain };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const AuthContext: React.Context<{
|
|
3
|
+
getUserName: () => string;
|
|
4
|
+
saveUserData: (userToken: any) => void;
|
|
5
|
+
clearUserData: () => void;
|
|
6
|
+
getFirstName: () => any;
|
|
7
|
+
getLastName: () => any;
|
|
8
|
+
getUserId: () => any;
|
|
9
|
+
hasPermission: (permissionId: number) => boolean;
|
|
10
|
+
token: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type AuthConfig = {
|
|
13
|
+
guestIsEnabled: boolean;
|
|
14
|
+
useEmailAndPassword: boolean;
|
|
15
|
+
useAzureAD: boolean;
|
|
16
|
+
useWindowsAuth: boolean;
|
|
17
|
+
AzureConfig: AzureConfig;
|
|
18
|
+
};
|
|
19
|
+
export type AzureConfig = {
|
|
20
|
+
clientId: string;
|
|
21
|
+
authority: string;
|
|
22
|
+
redirectUri: string;
|
|
23
|
+
};
|
|
24
|
+
type AuthProviderProps = {
|
|
25
|
+
children: any;
|
|
26
|
+
authConfig: AuthConfig;
|
|
27
|
+
};
|
|
28
|
+
export declare const AuthProvider: ({ children, authConfig }: AuthProviderProps) => React.JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration object to be passed to MSAL instance on creation.
|
|
3
|
+
* For a full list of MSAL.js configuration parameters, visit:
|
|
4
|
+
* https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/configuration.md
|
|
5
|
+
*/
|
|
6
|
+
export declare const msalConfig: {
|
|
7
|
+
auth: {
|
|
8
|
+
clientId: string;
|
|
9
|
+
authority: string;
|
|
10
|
+
redirectUri: string;
|
|
11
|
+
};
|
|
12
|
+
cache: {
|
|
13
|
+
cacheLocation: string;
|
|
14
|
+
storeAuthStateInCookie: boolean;
|
|
15
|
+
};
|
|
16
|
+
system: {
|
|
17
|
+
loggerOptions: {
|
|
18
|
+
loggerCallback: (level: number, message: string, containsPii: boolean) => void;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Scopes you add here will be prompted for user consent during sign-in.
|
|
24
|
+
* By default, MSAL.js will add OIDC scopes (openid, profile, email) to any login request.
|
|
25
|
+
* For more information about OIDC scopes, visit:
|
|
26
|
+
* https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent#openid-connect-scopes
|
|
27
|
+
*/
|
|
28
|
+
export declare const loginRequest: {
|
|
29
|
+
scopes: string[];
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Add here the scopes to request when obtaining an access token for MS Graph API. For more information, see:
|
|
33
|
+
* https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/resources-and-scopes.md
|
|
34
|
+
*/
|
|
35
|
+
export declare const graphConfig: {
|
|
36
|
+
graphMeEndpoint: string;
|
|
37
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AuthConfig } from "../AuthProvider";
|
|
2
|
+
export type LoginParams = {
|
|
3
|
+
setToken?: Function;
|
|
4
|
+
authConfig: AuthConfig;
|
|
5
|
+
};
|
|
6
|
+
type Permission = string;
|
|
7
|
+
export type UserMESData = {
|
|
8
|
+
id: number;
|
|
9
|
+
firstName: string;
|
|
10
|
+
lastName: string;
|
|
11
|
+
username: string;
|
|
12
|
+
token: string;
|
|
13
|
+
permissions: Permission[];
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const getTokenFromLS: () => string;
|
|
2
|
+
export declare function useToken(): {
|
|
3
|
+
getUserName: () => string;
|
|
4
|
+
saveUserData: (userToken: any) => void;
|
|
5
|
+
clearUserData: () => void;
|
|
6
|
+
getFirstName: () => any;
|
|
7
|
+
getLastName: () => any;
|
|
8
|
+
getUserId: () => any;
|
|
9
|
+
hasPermission: (permissionId: number) => boolean;
|
|
10
|
+
token: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
error: string | null;
|
|
4
|
+
onHide: () => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | false;
|
|
7
|
+
}
|
|
8
|
+
export declare const ErrorModal: ({ error, onHide, title, size, }: Props) => React.JSX.Element | null;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DialogActions as MuiDialogActions, DialogContent as MuiDialogContent, StyleRules, type Theme } from "@material-ui/core";
|
|
2
|
+
import { type WithStyles } from "@material-ui/core/styles";
|
|
3
|
+
import React, { ReactNode } from "react";
|
|
4
|
+
declare const styles: (theme: Theme) => StyleRules;
|
|
5
|
+
export interface DialogTitleProps extends WithStyles<typeof styles> {
|
|
6
|
+
id: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}
|
|
10
|
+
interface MESFModalProps {
|
|
11
|
+
handleClose: (shouldUpdate?: boolean) => void;
|
|
12
|
+
open: boolean;
|
|
13
|
+
id?: string;
|
|
14
|
+
maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | false;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
title?: string;
|
|
17
|
+
}
|
|
18
|
+
declare function Modal({ children, title, handleClose, open, id, maxWidth, }: MESFModalProps): React.JSX.Element;
|
|
19
|
+
export declare const MesfModal: typeof Modal & {
|
|
20
|
+
Content: typeof MuiDialogContent;
|
|
21
|
+
Actions: typeof MuiDialogActions;
|
|
22
|
+
};
|
|
23
|
+
export default MesfModal;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const Navigation: ({ showAreaSelector, showTrendingsIcon, navbarTitle, byPassHeaderRoutes, }: {
|
|
3
|
+
showAreaSelector?: boolean;
|
|
4
|
+
showTrendingsIcon?: boolean;
|
|
5
|
+
navbarTitle?: string;
|
|
6
|
+
byPassHeaderRoutes?: string[];
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export default Navigation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDefaultAreaId: (setError: (err: string) => void) => () => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonProps } from "@material-ui/core";
|
|
2
|
+
import React, { ReactNode } from "react";
|
|
3
|
+
interface Props extends ButtonProps {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const ButtonWithLoading: ({ children, isLoading, ...props }: Props) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const CurrencyFormatter: Intl.NumberFormat;
|
|
2
|
+
declare const NumberFormatter: Intl.NumberFormat;
|
|
3
|
+
declare const IntegerFormatter: Intl.NumberFormat;
|
|
4
|
+
declare const DateTimeFormatter: Intl.DateTimeFormat;
|
|
5
|
+
declare const DateFormatter: Intl.DateTimeFormat;
|
|
6
|
+
declare const TimeFormatter: Intl.DateTimeFormat;
|
|
7
|
+
export { CurrencyFormatter, NumberFormatter, IntegerFormatter, DateTimeFormatter, DateFormatter, TimeFormatter, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./pages/job/index";
|
|
2
|
+
export * from "./pages/log/index";
|
|
3
|
+
export * from "./pages/profiles/index";
|
|
4
|
+
export * from "./pages/shifCrew/index";
|
|
5
|
+
export * from "./pages/asset/index";
|
|
6
|
+
export * from "./pages/users/index";
|
|
7
|
+
export * from "./formatters";
|
|
8
|
+
export * from "./stylesGetters";
|
|
9
|
+
export * from "./configuration";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DragLayerMonitorProps } from "@minoru/react-dnd-treeview";
|
|
2
|
+
import React from "react";
|
|
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 { NodeModel, RenderParams } from "@minoru/react-dnd-treeview";
|
|
2
|
+
import React from "react";
|
|
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 { NodeModel } from "@minoru/react-dnd-treeview";
|
|
2
|
+
import React from "react";
|
|
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,24 @@
|
|
|
1
|
+
import { type DropOptions, type NodeModel } from "@minoru/react-dnd-treeview";
|
|
2
|
+
import { FileProperties } from "../../models/FileProperties";
|
|
3
|
+
type Props = {
|
|
4
|
+
asset: NodeModel<FileProperties>[];
|
|
5
|
+
selectedNodes: NodeModel<FileProperties>[];
|
|
6
|
+
isCtrlPressing: boolean;
|
|
7
|
+
setIsCtrlPressing: Function;
|
|
8
|
+
setSelectedNodes: Function;
|
|
9
|
+
setIsDragging: Function;
|
|
10
|
+
onAssetUpdateEnd: (result: {
|
|
11
|
+
ok: true;
|
|
12
|
+
} | {
|
|
13
|
+
ok: false;
|
|
14
|
+
message: string;
|
|
15
|
+
}) => void;
|
|
16
|
+
onAssetUpdateStart?: () => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const useAssetActions: ({ asset, selectedNodes, setSelectedNodes, isCtrlPressing, setIsDragging, setIsCtrlPressing, onAssetUpdateEnd, onAssetUpdateStart, }: Props) => {
|
|
19
|
+
handleDrop: (_: NodeModel<FileProperties>[], options: DropOptions<FileProperties>) => Promise<void>;
|
|
20
|
+
handleCtrlClick: (e: React.MouseEvent, node: NodeModel<FileProperties>) => void;
|
|
21
|
+
handleDragEnd: () => void;
|
|
22
|
+
handleDragStart: (node: NodeModel<FileProperties>) => void;
|
|
23
|
+
};
|
|
24
|
+
export {};
|