@olenbetong/synergi-react 2.7.1 → 2.9.0
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/dist/styles/styles.css.map +1 -1
- package/es/{components → chrome}/AppMenu/AppMenu.css +648 -648
- package/es/{components → chrome}/AppMenu/index.d.ts +1 -1
- package/es/components/ImageEditor/ImageEditor.d.ts +12 -0
- package/es/components/ImageEditor/ImageEditor.js +27 -6
- package/es/components/ImageEditor/index.d.ts +2 -0
- package/es/components/ImageEditor/index.js +2 -0
- package/es/components/ImageEditor/plugins/zoomPlugin/ZoomControls.js +1 -1
- package/es/components/ImageEditor/useImageHistory.d.ts +6 -1
- package/es/components/ImageEditor/useImageHistory.js +21 -23
- package/es/components/PageBanner/index.d.ts +1 -1
- package/es/elements/ElementDamage/DamageFormButtons.d.ts +2 -3
- package/es/elements/ElementDamage/DamageFormButtons.js +1 -1
- package/es/elements/ElementDamage/TransportElementSelect.d.ts +1 -2
- package/es/elements/index.d.ts +5 -0
- package/es/elements/index.js +5 -0
- package/es/index.d.ts +2 -2
- package/es/index.js +2 -2
- package/package.json +4 -4
- package/src/{components → chrome}/AppMenu/AppMenu.css +648 -648
- package/src/{components → chrome}/AppMenu/AppMenu.tsx +285 -285
- package/src/{components → chrome}/AppMenu/AppMenuFavoriteButton.tsx +47 -47
- package/src/{components → chrome}/AppMenu/AppMenuHeader.tsx +79 -79
- package/src/{components → chrome}/AppMenu/AppMenuList.tsx +89 -89
- package/src/{components → chrome}/AppMenu/AppMenuRail.tsx +117 -117
- package/src/{components → chrome}/AppMenu/icons.tsx +76 -76
- package/src/{components → chrome}/AppMenu/index.ts +17 -17
- package/src/{components → chrome}/AppMenu/menuEntries.ts +128 -128
- package/src/{components → chrome}/AppMenu/types.ts +45 -45
- package/src/{components → chrome}/AppMenu/useFavorites.ts +40 -40
- package/src/{components → chrome}/AppMenu/useRovingTabIndex.ts +130 -130
- package/src/{components → chrome}/AppShell/index.tsx +287 -287
- package/src/colorScheme.ts +81 -81
- package/src/components/ImageEditor/ImageEditor.tsx +41 -6
- package/src/components/ImageEditor/index.ts +2 -0
- package/src/components/ImageEditor/plugins/zoomPlugin/ZoomControls.tsx +7 -8
- package/src/components/ImageEditor/useImageHistory.ts +27 -19
- package/src/components/LinkedCardList/index.scss +95 -93
- package/src/components/PageBanner/index.tsx +5 -4
- package/src/components/ProgressBar/index.scss +96 -94
- package/src/elements/ElementDamage/DamageFormButtons.tsx +2 -2
- package/src/elements/ElementDamage/TransportElementSelect.tsx +1 -1
- package/src/elements/index.ts +5 -0
- package/src/index.ts +70 -61
- /package/es/{components → chrome}/AppMenu/AppMenu.d.ts +0 -0
- /package/es/{components → chrome}/AppMenu/AppMenu.js +0 -0
- /package/es/{components → chrome}/AppMenu/AppMenuColorScheme.d.ts +0 -0
- /package/es/{components → chrome}/AppMenu/AppMenuColorScheme.js +0 -0
- /package/es/{components → chrome}/AppMenu/AppMenuFavoriteButton.d.ts +0 -0
- /package/es/{components → chrome}/AppMenu/AppMenuFavoriteButton.js +0 -0
- /package/es/{components → chrome}/AppMenu/AppMenuHeader.d.ts +0 -0
- /package/es/{components → chrome}/AppMenu/AppMenuHeader.js +0 -0
- /package/es/{components → chrome}/AppMenu/AppMenuList.d.ts +0 -0
- /package/es/{components → chrome}/AppMenu/AppMenuList.js +0 -0
- /package/es/{components → chrome}/AppMenu/AppMenuRail.d.ts +0 -0
- /package/es/{components → chrome}/AppMenu/AppMenuRail.js +0 -0
- /package/es/{components → chrome}/AppMenu/AppMenuToggle.d.ts +0 -0
- /package/es/{components → chrome}/AppMenu/AppMenuToggle.js +0 -0
- /package/es/{components → chrome}/AppMenu/AppMenuUserMenu.d.ts +0 -0
- /package/es/{components → chrome}/AppMenu/AppMenuUserMenu.js +0 -0
- /package/es/{components → chrome}/AppMenu/developerCategories.d.ts +0 -0
- /package/es/{components → chrome}/AppMenu/developerCategories.js +0 -0
- /package/es/{components → chrome}/AppMenu/icons.d.ts +0 -0
- /package/es/{components → chrome}/AppMenu/icons.js +0 -0
- /package/es/{components → chrome}/AppMenu/index.js +0 -0
- /package/es/{components → chrome}/AppMenu/menuEntries.d.ts +0 -0
- /package/es/{components → chrome}/AppMenu/menuEntries.js +0 -0
- /package/es/{components → chrome}/AppMenu/types.d.ts +0 -0
- /package/es/{components → chrome}/AppMenu/types.js +0 -0
- /package/es/{components → chrome}/AppMenu/useFavorites.d.ts +0 -0
- /package/es/{components → chrome}/AppMenu/useFavorites.js +0 -0
- /package/es/{components → chrome}/AppMenu/useRovingTabIndex.d.ts +0 -0
- /package/es/{components → chrome}/AppMenu/useRovingTabIndex.js +0 -0
- /package/es/{components → chrome}/AppMenu/useServiceWorkerUpdate.d.ts +0 -0
- /package/es/{components → chrome}/AppMenu/useServiceWorkerUpdate.js +0 -0
- /package/es/{components → chrome}/AppShell/index.d.ts +0 -0
- /package/es/{components → chrome}/AppShell/index.js +0 -0
- /package/src/{components → chrome}/AppMenu/AppMenuColorScheme.tsx +0 -0
- /package/src/{components → chrome}/AppMenu/AppMenuToggle.tsx +0 -0
- /package/src/{components → chrome}/AppMenu/AppMenuUserMenu.tsx +0 -0
- /package/src/{components → chrome}/AppMenu/developerCategories.ts +0 -0
- /package/src/{components → chrome}/AppMenu/useServiceWorkerUpdate.ts +0 -0
|
@@ -1,94 +1,96 @@
|
|
|
1
|
-
@use "../../styles/variables";
|
|
2
|
-
|
|
3
|
-
.ObProgressBar-root {
|
|
4
|
-
height: 1.5em;
|
|
5
|
-
width: 100%;
|
|
6
|
-
appearance: none;
|
|
7
|
-
-webkit-appearance: none;
|
|
8
|
-
background-color: whiteSmoke;
|
|
9
|
-
border: none;
|
|
10
|
-
border-radius: 3px;
|
|
11
|
-
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset;
|
|
12
|
-
color: royalblue;
|
|
13
|
-
position: relative;
|
|
14
|
-
|
|
15
|
-
&::-webkit-progress-bar {
|
|
16
|
-
background-color: whiteSmoke;
|
|
17
|
-
border-radius: 3px;
|
|
18
|
-
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&::-webkit-progress-value {
|
|
22
|
-
background-image:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
transparent
|
|
26
|
-
|
|
27
|
-
rgba(0, 0, 0, 0.1)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
linear-gradient(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
transparent
|
|
37
|
-
|
|
38
|
-
rgba(0, 0, 0, 0.1)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-webkit-linear-gradient(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
100% 100
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
1
|
+
@use "../../styles/variables";
|
|
2
|
+
|
|
3
|
+
.ObProgressBar-root {
|
|
4
|
+
height: 1.5em;
|
|
5
|
+
width: 100%;
|
|
6
|
+
appearance: none;
|
|
7
|
+
-webkit-appearance: none;
|
|
8
|
+
background-color: whiteSmoke;
|
|
9
|
+
border: none;
|
|
10
|
+
border-radius: 3px;
|
|
11
|
+
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset;
|
|
12
|
+
color: royalblue;
|
|
13
|
+
position: relative;
|
|
14
|
+
|
|
15
|
+
&::-webkit-progress-bar {
|
|
16
|
+
background-color: whiteSmoke;
|
|
17
|
+
border-radius: 3px;
|
|
18
|
+
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&::-webkit-progress-value {
|
|
22
|
+
background-image:
|
|
23
|
+
linear-gradient(
|
|
24
|
+
135deg,
|
|
25
|
+
transparent,
|
|
26
|
+
transparent 33%,
|
|
27
|
+
rgba(0, 0, 0, 0.1) 33%,
|
|
28
|
+
rgba(0, 0, 0, 0.1) 66%,
|
|
29
|
+
transparent 66%
|
|
30
|
+
),
|
|
31
|
+
linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),
|
|
32
|
+
linear-gradient(left, var(--brand-primary), var(--brand-light));
|
|
33
|
+
background-image:
|
|
34
|
+
-webkit-linear-gradient(
|
|
35
|
+
135deg,
|
|
36
|
+
transparent,
|
|
37
|
+
transparent 33%,
|
|
38
|
+
rgba(0, 0, 0, 0.1) 33%,
|
|
39
|
+
rgba(0, 0, 0, 0.1) 66%,
|
|
40
|
+
transparent 66%
|
|
41
|
+
),
|
|
42
|
+
-webkit-linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),
|
|
43
|
+
-webkit-linear-gradient(left, var(--brand-primary), var(--brand-light));
|
|
44
|
+
background-size:
|
|
45
|
+
35px 20px,
|
|
46
|
+
100% 100%,
|
|
47
|
+
100% 100%;
|
|
48
|
+
border-radius: 3px;
|
|
49
|
+
position: relative;
|
|
50
|
+
transition: width 0.5s ease-out;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&::-webkit-progress-value:after {
|
|
54
|
+
background-color: white;
|
|
55
|
+
content: "";
|
|
56
|
+
|
|
57
|
+
border-radius: 100%;
|
|
58
|
+
height: 5px;
|
|
59
|
+
|
|
60
|
+
position: absolute;
|
|
61
|
+
right: 7px;
|
|
62
|
+
top: 7px;
|
|
63
|
+
width: 5px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&::-moz-progress-bar {
|
|
67
|
+
background-image:
|
|
68
|
+
linear-gradient(
|
|
69
|
+
135deg,
|
|
70
|
+
transparent,
|
|
71
|
+
transparent 33%,
|
|
72
|
+
rgba(0, 0, 0, 0.1) 33%,
|
|
73
|
+
rgba(0, 0, 0, 0.1) 66%,
|
|
74
|
+
transparent 66%
|
|
75
|
+
),
|
|
76
|
+
linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),
|
|
77
|
+
linear-gradient(left, var(--brand-primary), var(--brand-light));
|
|
78
|
+
background-image:
|
|
79
|
+
-moz-linear-gradient(
|
|
80
|
+
135deg,
|
|
81
|
+
transparent,
|
|
82
|
+
transparent 33%,
|
|
83
|
+
rgba(0, 0, 0, 0.1) 33%,
|
|
84
|
+
rgba(0, 0, 0, 0.1) 66%,
|
|
85
|
+
transparent 66%
|
|
86
|
+
),
|
|
87
|
+
-moz-linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),
|
|
88
|
+
-moz-linear-gradient(left, var(--brand-primary), var(--brand-light));
|
|
89
|
+
background-size:
|
|
90
|
+
35px 20px,
|
|
91
|
+
100% 100%,
|
|
92
|
+
100% 100%;
|
|
93
|
+
border-radius: 3px;
|
|
94
|
+
transition: width 0.5s ease-out;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -2,7 +2,7 @@ import Add from "@mui/icons-material/Add";
|
|
|
2
2
|
import { Button } from "@mui/material";
|
|
3
3
|
import { getLocalizedString } from "@olenbetong/appframe-core";
|
|
4
4
|
|
|
5
|
-
type DamageFormButtonsProps = {
|
|
5
|
+
export type DamageFormButtonsProps = {
|
|
6
6
|
isEdit: boolean;
|
|
7
7
|
loading: boolean;
|
|
8
8
|
uploadingFile: boolean;
|
|
@@ -10,7 +10,7 @@ type DamageFormButtonsProps = {
|
|
|
10
10
|
handleCancel: () => void;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
export function
|
|
13
|
+
export function DamageFormButtons({
|
|
14
14
|
isEdit,
|
|
15
15
|
loading,
|
|
16
16
|
uploadingFile,
|
|
@@ -4,7 +4,7 @@ import { getLocalizedString } from "@olenbetong/appframe-core";
|
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import type { TransportElementsRecord } from "../data/dsTransportElements.js";
|
|
6
6
|
|
|
7
|
-
type TransportElementSelectProps = {
|
|
7
|
+
export type TransportElementSelectProps = {
|
|
8
8
|
elements: TransportElementsRecord[];
|
|
9
9
|
onSelect: (element: TransportElementsRecord) => void;
|
|
10
10
|
};
|
package/src/elements/index.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
export * from "./data/index.js";
|
|
2
|
+
export * from "./ElementDamage/DamageFormButtons.js";
|
|
2
3
|
export * from "./ElementDamage/DescriptionInput.js";
|
|
3
4
|
export * from "./ElementDamage/DuplicateDamage/index.js";
|
|
4
5
|
export * from "./ElementDamage/ElementNumberTextField.js";
|
|
5
6
|
export * from "./ElementDamage/HiddenDamageFields.js";
|
|
6
7
|
export * from "./ElementDamage/RegisterFix.js";
|
|
7
8
|
export * from "./ElementDamage/SubmitButtons.js";
|
|
9
|
+
export * from "./ElementDamage/TransportElementSelect.js";
|
|
8
10
|
export * from "./ElementLookup.js";
|
|
11
|
+
export * from "./ElementLookupDialog/BarcodeScanner/index.js";
|
|
12
|
+
export * from "./ElementLookupDialog/HIDScanner/index.js";
|
|
9
13
|
export * from "./ElementLookupDialog/index.js";
|
|
14
|
+
export * from "./ElementLookupDialog/Manual/ManualForm.js";
|
|
10
15
|
export * from "./ProjectSelect.js";
|
package/src/index.ts
CHANGED
|
@@ -1,61 +1,70 @@
|
|
|
1
|
-
export {
|
|
2
|
-
AppMenu,
|
|
3
|
-
type AppMenuArticle,
|
|
4
|
-
type AppMenuCategory,
|
|
5
|
-
AppMenuColorScheme,
|
|
6
|
-
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type
|
|
11
|
-
type
|
|
12
|
-
|
|
13
|
-
type
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
type
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
type
|
|
52
|
-
|
|
53
|
-
type
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
1
|
+
export {
|
|
2
|
+
AppMenu,
|
|
3
|
+
type AppMenuArticle,
|
|
4
|
+
type AppMenuCategory,
|
|
5
|
+
AppMenuColorScheme,
|
|
6
|
+
AppMenuFavoriteButton,
|
|
7
|
+
type AppMenuFavoriteButtonProps,
|
|
8
|
+
AppMenuHeader,
|
|
9
|
+
type AppMenuHeaderProps,
|
|
10
|
+
type AppMenuLink,
|
|
11
|
+
type AppMenuLinkGroup,
|
|
12
|
+
AppMenuList,
|
|
13
|
+
type AppMenuListProps,
|
|
14
|
+
type AppMenuProps,
|
|
15
|
+
AppMenuRail,
|
|
16
|
+
type AppMenuRailProps,
|
|
17
|
+
type AppMenuSelection,
|
|
18
|
+
AppMenuToggle,
|
|
19
|
+
type AppMenuToggleProps,
|
|
20
|
+
type AppMenuUser,
|
|
21
|
+
AppMenuUserMenu,
|
|
22
|
+
type AppMenuUserMenuProps,
|
|
23
|
+
createDeveloperCategories,
|
|
24
|
+
defaultUserMenuItems,
|
|
25
|
+
type DeveloperCategoryOptions,
|
|
26
|
+
useServiceWorkerUpdate,
|
|
27
|
+
} from "./chrome/AppMenu/index.js";
|
|
28
|
+
export { AppShell, type AppShellProps } from "./chrome/AppShell/index.js";
|
|
29
|
+
export { Checkbox, type CheckboxProps } from "./components/Checkbox/index.js";
|
|
30
|
+
export {
|
|
31
|
+
COLOR_SCHEME_CHANGE_EVENT,
|
|
32
|
+
type ColorSchemePreference,
|
|
33
|
+
getColorSchemePreference,
|
|
34
|
+
setColorSchemePreference,
|
|
35
|
+
useColorSchemePreference,
|
|
36
|
+
} from "./colorScheme.js";
|
|
37
|
+
export { CardColumn, CardDetail, CardLabel, CardStep, CardStepList, ColorCard } from "./components/ColorCard/index.js";
|
|
38
|
+
export { DateNavigator } from "./components/DateNavigator/index.js";
|
|
39
|
+
export * from "./components/FilePond.js";
|
|
40
|
+
export * from "./components/ImageEditor/index.js";
|
|
41
|
+
export { Card, LinkedList, LinkedListItem } from "./components/LinkedCardList/index.js";
|
|
42
|
+
export { MergeProgressDialog, type MergeProgressDialogProps } from "./components/MergeProgressDialog/index.js";
|
|
43
|
+
export {
|
|
44
|
+
BannerImage as PageBannerImage,
|
|
45
|
+
type BannerImageProps,
|
|
46
|
+
PageBanner,
|
|
47
|
+
type PageBannerProps,
|
|
48
|
+
Tab as PageBannerTab,
|
|
49
|
+
TabList as PageBannerTabList,
|
|
50
|
+
type TabListProps as PageBannerTabListProps,
|
|
51
|
+
type TabProps as PageBannerTabProps,
|
|
52
|
+
Title as PageBannerTitle,
|
|
53
|
+
type TitleProps as PageBannerTitleProps,
|
|
54
|
+
} from "./components/PageBanner/index.js";
|
|
55
|
+
export * from "./components/PdfViewer/index.js";
|
|
56
|
+
export { Portal } from "./components/Portal/index.js";
|
|
57
|
+
export {
|
|
58
|
+
ToolbarBreadcrumbs,
|
|
59
|
+
ToolbarPortal,
|
|
60
|
+
type BreadcrumbItem,
|
|
61
|
+
type ToolbarBreadcrumbsProps,
|
|
62
|
+
type ToolbarPortalProps,
|
|
63
|
+
type ToolbarPortalSlot,
|
|
64
|
+
} from "./components/Toolbar/index.js";
|
|
65
|
+
export { ProgressBar } from "./components/ProgressBar/index.js";
|
|
66
|
+
export { Sidebar, type SidebarProps } from "./components/Sidebar/index.js";
|
|
67
|
+
export { Spinner, type SpinnerProps } from "./components/Spinner/index.js";
|
|
68
|
+
export { SplitContainer, type SplitContainerProps } from "./components/SplitContainer/index.js";
|
|
69
|
+
export { ValueToggleGroup, type ValueToggleGroupProps } from "./components/ValueToggleGroup/index.js";
|
|
70
|
+
export { useTranslation } from "./useTranslation/index.js";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|