@vention/machine-apps-components 0.6.16 → 0.6.18

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 (50) hide show
  1. package/index.esm.js +8809 -2112
  2. package/package.json +2 -2
  3. package/src/constants/z-index.d.ts +0 -8
  4. package/src/contexts/i18n-context.d.ts +0 -12
  5. package/src/contexts/i18n-provider.d.ts +0 -13
  6. package/src/hooks/use-auto-scroll-input.d.ts +0 -6
  7. package/src/hooks/use-i18n.d.ts +0 -19
  8. package/src/i18n/config.d.ts +0 -8
  9. package/src/i18n/locales/de.d.ts +0 -141
  10. package/src/i18n/locales/en.d.ts +0 -141
  11. package/src/i18n/locales/es.d.ts +0 -141
  12. package/src/i18n/locales/fr.d.ts +0 -141
  13. package/src/i18n/utils.d.ts +0 -13
  14. package/src/index.d.ts +0 -28
  15. package/src/lib/action-button/action-button.d.ts +0 -18
  16. package/src/lib/action-button/action-button.stories.d.ts +0 -18
  17. package/src/lib/file-upload-panel/file-upload-panel.d.ts +0 -27
  18. package/src/lib/file-upload-panel/file-upload-panel.stories.d.ts +0 -14
  19. package/src/lib/i18n-settings/i18n-settings.d.ts +0 -10
  20. package/src/lib/i18n-settings/i18n-settings.stories.d.ts +0 -8
  21. package/src/lib/logs/log-filter-form.d.ts +0 -9
  22. package/src/lib/logs/logs-pagination.d.ts +0 -8
  23. package/src/lib/logs/logs-panel.d.ts +0 -61
  24. package/src/lib/logs/logs-panel.stories.d.ts +0 -7
  25. package/src/lib/logs/logs-table.d.ts +0 -15
  26. package/src/lib/navigation-bar/navigation-bar-item.d.ts +0 -17
  27. package/src/lib/navigation-bar/navigation-bar.d.ts +0 -20
  28. package/src/lib/navigation-bar/navigation-bar.stories.d.ts +0 -6
  29. package/src/lib/navigation-bar/navigation-confirmation-modal.d.ts +0 -7
  30. package/src/lib/navigation-bar/password-protection-modal.d.ts +0 -8
  31. package/src/lib/navigation-bar/password-protection-modal.stories.d.ts +0 -6
  32. package/src/lib/navigation-bar/time-label.d.ts +0 -6
  33. package/src/lib/press-button/press-button.d.ts +0 -18
  34. package/src/lib/press-button/press-button.stories.d.ts +0 -14
  35. package/src/lib/product-form-list/product-form-list.d.ts +0 -33
  36. package/src/lib/product-form-list/product-form-list.stories.d.ts +0 -20
  37. package/src/lib/settings-page/settings-page.d.ts +0 -11
  38. package/src/lib/settings-page/settings-page.stories.d.ts +0 -9
  39. package/src/lib/sidebar/sidebar.d.ts +0 -18
  40. package/src/lib/sidebar/sidebar.stories.d.ts +0 -8
  41. package/src/lib/status-top-bar/status-top-bar-button.d.ts +0 -17
  42. package/src/lib/status-top-bar/status-top-bar.d.ts +0 -27
  43. package/src/lib/status-top-bar/status-top-bar.stories.d.ts +0 -10
  44. package/src/lib/step-progress-circle/step-progress-circle.d.ts +0 -19
  45. package/src/lib/step-progress-circle/step-progress-circle.stories.d.ts +0 -18
  46. package/src/lib/utils/api-config-utils.d.ts +0 -34
  47. package/src/lib/utils/device-utils.d.ts +0 -14
  48. package/src/test-setup.d.ts +0 -1
  49. package/src/test-utils.d.ts +0 -13
  50. package/src/types/user-level.d.ts +0 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vention/machine-apps-components",
3
- "version": "0.6.16",
3
+ "version": "0.6.18",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/VentionCo/machine-cloud.git"
@@ -21,7 +21,7 @@
21
21
  "react": "17.0.2",
22
22
  "react-router-dom": "^6.0.0",
23
23
  "@mui/material": "^5.0.0",
24
- "@vention/machine-ui": "^3.38.0"
24
+ "@vention/machine-ui": "^4.0.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@nx/vite": "21.1.3",
@@ -1,8 +0,0 @@
1
- export declare const Z_INDEX: {
2
- readonly NAVIGATION: 1100;
3
- readonly MENU: 1200;
4
- readonly MENU_OVERLAY: 1210;
5
- readonly MODAL: 1300;
6
- readonly SNACKBAR: 1400;
7
- readonly TOOLTIP: 1500;
8
- };
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- export type UnitSystem = "metric" | "imperial";
3
- export interface I18nContextType {
4
- locale: string;
5
- unitSystem: UnitSystem;
6
- timezone: string | "auto";
7
- supportedLanguages: string[];
8
- setLocale: (locale: string) => void;
9
- setUnitSystem: (system: UnitSystem) => void;
10
- setTimezone: (tz: string | "auto") => void;
11
- }
12
- export declare const I18nContext: import("react").Context<I18nContextType>;
@@ -1,13 +0,0 @@
1
- import React from "react";
2
- import { UnitSystem } from "./i18n-context";
3
- export interface I18nProviderProps {
4
- children: React.ReactNode;
5
- defaultLocale?: string;
6
- defaultUnitSystem?: UnitSystem;
7
- defaultTimezone?: string | "auto";
8
- supportedLanguages?: string[];
9
- }
10
- export declare const I18nProvider: {
11
- ({ children, defaultLocale, defaultUnitSystem, defaultTimezone, supportedLanguages, }: I18nProviderProps): import("react/jsx-runtime").JSX.Element;
12
- displayName: string;
13
- };
@@ -1,6 +0,0 @@
1
- export interface UseAutoScrollInputOptions {
2
- targetPositionPercent?: number;
3
- scrollableContainerSelector?: string;
4
- scrollBehavior?: ScrollBehavior;
5
- }
6
- export declare function useAutoScrollInput(enabled: boolean, options?: UseAutoScrollInputOptions): void;
@@ -1,19 +0,0 @@
1
- import { UnitSystem } from "../contexts/i18n-context";
2
- import { FormatLengthOptions } from "../i18n/utils";
3
- export interface UseI18nReturn {
4
- t: (key: string, options?: {
5
- defaultValue?: string;
6
- } & Record<string, string>) => string;
7
- formatDate: (utcTimestamp: number, format?: string) => string;
8
- formatValueToDisplayUnit: (value: number, options?: FormatLengthOptions) => string;
9
- convertDisplayValueToMm: (value: number) => number;
10
- getUnitDisplayLabel: () => string;
11
- locale: string;
12
- unitSystem: UnitSystem;
13
- timezone: string | "auto";
14
- supportedLanguages: string[];
15
- setLocale: (locale: string) => void;
16
- setUnitSystem: (system: UnitSystem) => void;
17
- setTimezone: (tz: string | "auto") => void;
18
- }
19
- export declare const useI18n: () => UseI18nReturn;
@@ -1,8 +0,0 @@
1
- import i18n from "i18next";
2
- import "dayjs/locale/en";
3
- import "dayjs/locale/fr";
4
- import "dayjs/locale/de";
5
- import "dayjs/locale/es";
6
- export declare const getSupportedLanguages: () => string[];
7
- export declare const getLanguageDisplayName: (code: string) => string;
8
- export default i18n;
@@ -1,141 +0,0 @@
1
- declare const _default: {
2
- common: {
3
- units: {
4
- mm: string;
5
- in: string;
6
- metric: string;
7
- imperial: string;
8
- };
9
- settings: {
10
- unitSystem: string;
11
- timezone: string;
12
- autoDetect: string;
13
- locale: string;
14
- };
15
- };
16
- actionButton: {
17
- home: string;
18
- start: string;
19
- stop: string;
20
- pause: string;
21
- reset: string;
22
- clear: string;
23
- run: string;
24
- resume: string;
25
- };
26
- logs: {
27
- table: {
28
- date: string;
29
- type: string;
30
- code: string;
31
- message: string;
32
- description: string;
33
- };
34
- type: {
35
- error: string;
36
- warning: string;
37
- info: string;
38
- };
39
- emptyState: {
40
- noLogs: string;
41
- };
42
- loading: string;
43
- loadingMore: string;
44
- noMoreLogs: string;
45
- error: {
46
- loading: string;
47
- };
48
- filter: {
49
- from: string;
50
- to: string;
51
- type: string;
52
- sort: string;
53
- reset: string;
54
- typeOptions: {
55
- all: string;
56
- error: string;
57
- warning: string;
58
- info: string;
59
- };
60
- sortOptions: {
61
- latest: string;
62
- oldest: string;
63
- };
64
- chooseType: string;
65
- };
66
- };
67
- navigation: {
68
- pages: {
69
- home: string;
70
- operation: string;
71
- logs: string;
72
- calibration: string;
73
- settings: string;
74
- };
75
- bar: {
76
- controlCenter: string;
77
- support: string;
78
- };
79
- modal: {
80
- exit: {
81
- title: string;
82
- message: string;
83
- };
84
- goToControlCenter: string;
85
- goToRemoteSupport: string;
86
- password: {
87
- title: string;
88
- label: string;
89
- error: string;
90
- confirm: string;
91
- };
92
- };
93
- };
94
- pagination: {
95
- page: string;
96
- of: string;
97
- };
98
- fileUploadPanel: {
99
- defaultTitle: string;
100
- dropzoneTitle: string;
101
- defaultFileCriteria: string;
102
- };
103
- stepProgressCircle: {
104
- title: {
105
- progress: string;
106
- manufacturing: string;
107
- processing: string;
108
- uploading: string;
109
- notstarted: string;
110
- ready: string;
111
- inprogress: string;
112
- complete: string;
113
- loading: string;
114
- waiting: string;
115
- warning: string;
116
- error: string;
117
- };
118
- };
119
- pressButton: {
120
- dispense: string;
121
- dispensing: string;
122
- grip: string;
123
- gripping: string;
124
- press: string;
125
- pressing: string;
126
- hold: string;
127
- holding: string;
128
- };
129
- productFormList: {
130
- add: string;
131
- cancel: string;
132
- save: string;
133
- create: string;
134
- modify: string;
135
- new: string;
136
- delete: string;
137
- deleteConfirmation: string;
138
- emptyState: string;
139
- };
140
- };
141
- export default _default;
@@ -1,141 +0,0 @@
1
- declare const _default: {
2
- common: {
3
- units: {
4
- mm: string;
5
- in: string;
6
- metric: string;
7
- imperial: string;
8
- };
9
- settings: {
10
- unitSystem: string;
11
- timezone: string;
12
- autoDetect: string;
13
- locale: string;
14
- };
15
- };
16
- actionButton: {
17
- home: string;
18
- start: string;
19
- stop: string;
20
- pause: string;
21
- reset: string;
22
- clear: string;
23
- run: string;
24
- resume: string;
25
- };
26
- logs: {
27
- table: {
28
- date: string;
29
- type: string;
30
- code: string;
31
- message: string;
32
- description: string;
33
- };
34
- type: {
35
- error: string;
36
- warning: string;
37
- info: string;
38
- };
39
- emptyState: {
40
- noLogs: string;
41
- };
42
- loading: string;
43
- loadingMore: string;
44
- noMoreLogs: string;
45
- error: {
46
- loading: string;
47
- };
48
- filter: {
49
- from: string;
50
- to: string;
51
- type: string;
52
- sort: string;
53
- reset: string;
54
- typeOptions: {
55
- all: string;
56
- error: string;
57
- warning: string;
58
- info: string;
59
- };
60
- sortOptions: {
61
- latest: string;
62
- oldest: string;
63
- };
64
- chooseType: string;
65
- };
66
- };
67
- navigation: {
68
- pages: {
69
- home: string;
70
- operation: string;
71
- logs: string;
72
- calibration: string;
73
- settings: string;
74
- };
75
- bar: {
76
- controlCenter: string;
77
- support: string;
78
- };
79
- modal: {
80
- exit: {
81
- title: string;
82
- message: string;
83
- };
84
- goToControlCenter: string;
85
- goToRemoteSupport: string;
86
- password: {
87
- title: string;
88
- label: string;
89
- error: string;
90
- confirm: string;
91
- };
92
- };
93
- };
94
- pagination: {
95
- page: string;
96
- of: string;
97
- };
98
- fileUploadPanel: {
99
- defaultTitle: string;
100
- dropzoneTitle: string;
101
- defaultFileCriteria: string;
102
- };
103
- stepProgressCircle: {
104
- title: {
105
- progress: string;
106
- manufacturing: string;
107
- processing: string;
108
- uploading: string;
109
- notstarted: string;
110
- ready: string;
111
- inprogress: string;
112
- complete: string;
113
- loading: string;
114
- waiting: string;
115
- warning: string;
116
- error: string;
117
- };
118
- };
119
- pressButton: {
120
- dispense: string;
121
- dispensing: string;
122
- grip: string;
123
- gripping: string;
124
- press: string;
125
- pressing: string;
126
- hold: string;
127
- holding: string;
128
- };
129
- productFormList: {
130
- add: string;
131
- cancel: string;
132
- save: string;
133
- create: string;
134
- modify: string;
135
- new: string;
136
- delete: string;
137
- deleteConfirmation: string;
138
- emptyState: string;
139
- };
140
- };
141
- export default _default;
@@ -1,141 +0,0 @@
1
- declare const _default: {
2
- common: {
3
- units: {
4
- mm: string;
5
- in: string;
6
- metric: string;
7
- imperial: string;
8
- };
9
- settings: {
10
- unitSystem: string;
11
- timezone: string;
12
- autoDetect: string;
13
- locale: string;
14
- };
15
- };
16
- actionButton: {
17
- home: string;
18
- start: string;
19
- stop: string;
20
- pause: string;
21
- reset: string;
22
- clear: string;
23
- run: string;
24
- resume: string;
25
- };
26
- logs: {
27
- table: {
28
- date: string;
29
- type: string;
30
- code: string;
31
- message: string;
32
- description: string;
33
- };
34
- type: {
35
- error: string;
36
- warning: string;
37
- info: string;
38
- };
39
- emptyState: {
40
- noLogs: string;
41
- };
42
- loading: string;
43
- loadingMore: string;
44
- noMoreLogs: string;
45
- error: {
46
- loading: string;
47
- };
48
- filter: {
49
- from: string;
50
- to: string;
51
- type: string;
52
- sort: string;
53
- reset: string;
54
- typeOptions: {
55
- all: string;
56
- error: string;
57
- warning: string;
58
- info: string;
59
- };
60
- sortOptions: {
61
- latest: string;
62
- oldest: string;
63
- };
64
- chooseType: string;
65
- };
66
- };
67
- navigation: {
68
- pages: {
69
- home: string;
70
- operation: string;
71
- logs: string;
72
- calibration: string;
73
- settings: string;
74
- };
75
- bar: {
76
- controlCenter: string;
77
- support: string;
78
- };
79
- modal: {
80
- exit: {
81
- title: string;
82
- message: string;
83
- };
84
- goToControlCenter: string;
85
- goToRemoteSupport: string;
86
- password: {
87
- title: string;
88
- label: string;
89
- error: string;
90
- confirm: string;
91
- };
92
- };
93
- };
94
- pagination: {
95
- page: string;
96
- of: string;
97
- };
98
- fileUploadPanel: {
99
- defaultTitle: string;
100
- dropzoneTitle: string;
101
- defaultFileCriteria: string;
102
- };
103
- stepProgressCircle: {
104
- title: {
105
- progress: string;
106
- manufacturing: string;
107
- processing: string;
108
- uploading: string;
109
- notstarted: string;
110
- ready: string;
111
- inprogress: string;
112
- complete: string;
113
- loading: string;
114
- waiting: string;
115
- warning: string;
116
- error: string;
117
- };
118
- };
119
- pressButton: {
120
- dispense: string;
121
- dispensing: string;
122
- grip: string;
123
- gripping: string;
124
- press: string;
125
- pressing: string;
126
- hold: string;
127
- holding: string;
128
- };
129
- productFormList: {
130
- add: string;
131
- cancel: string;
132
- save: string;
133
- create: string;
134
- modify: string;
135
- new: string;
136
- delete: string;
137
- deleteConfirmation: string;
138
- emptyState: string;
139
- };
140
- };
141
- export default _default;
@@ -1,141 +0,0 @@
1
- declare const _default: {
2
- common: {
3
- units: {
4
- mm: string;
5
- in: string;
6
- metric: string;
7
- imperial: string;
8
- };
9
- settings: {
10
- unitSystem: string;
11
- timezone: string;
12
- autoDetect: string;
13
- locale: string;
14
- };
15
- };
16
- actionButton: {
17
- home: string;
18
- start: string;
19
- stop: string;
20
- pause: string;
21
- reset: string;
22
- clear: string;
23
- run: string;
24
- resume: string;
25
- };
26
- logs: {
27
- table: {
28
- date: string;
29
- type: string;
30
- code: string;
31
- message: string;
32
- description: string;
33
- };
34
- type: {
35
- error: string;
36
- warning: string;
37
- info: string;
38
- };
39
- emptyState: {
40
- noLogs: string;
41
- };
42
- loading: string;
43
- loadingMore: string;
44
- noMoreLogs: string;
45
- error: {
46
- loading: string;
47
- };
48
- filter: {
49
- from: string;
50
- to: string;
51
- type: string;
52
- sort: string;
53
- reset: string;
54
- typeOptions: {
55
- all: string;
56
- error: string;
57
- warning: string;
58
- info: string;
59
- };
60
- sortOptions: {
61
- latest: string;
62
- oldest: string;
63
- };
64
- chooseType: string;
65
- };
66
- };
67
- navigation: {
68
- pages: {
69
- home: string;
70
- operation: string;
71
- logs: string;
72
- calibration: string;
73
- settings: string;
74
- };
75
- bar: {
76
- controlCenter: string;
77
- support: string;
78
- };
79
- modal: {
80
- exit: {
81
- title: string;
82
- message: string;
83
- };
84
- goToControlCenter: string;
85
- goToRemoteSupport: string;
86
- password: {
87
- title: string;
88
- label: string;
89
- error: string;
90
- confirm: string;
91
- };
92
- };
93
- };
94
- pagination: {
95
- page: string;
96
- of: string;
97
- };
98
- fileUploadPanel: {
99
- defaultTitle: string;
100
- dropzoneTitle: string;
101
- defaultFileCriteria: string;
102
- };
103
- stepProgressCircle: {
104
- title: {
105
- progress: string;
106
- manufacturing: string;
107
- processing: string;
108
- uploading: string;
109
- notstarted: string;
110
- ready: string;
111
- inprogress: string;
112
- complete: string;
113
- loading: string;
114
- waiting: string;
115
- warning: string;
116
- error: string;
117
- };
118
- };
119
- pressButton: {
120
- dispense: string;
121
- dispensing: string;
122
- grip: string;
123
- gripping: string;
124
- press: string;
125
- pressing: string;
126
- hold: string;
127
- holding: string;
128
- };
129
- productFormList: {
130
- add: string;
131
- cancel: string;
132
- save: string;
133
- create: string;
134
- modify: string;
135
- new: string;
136
- delete: string;
137
- deleteConfirmation: string;
138
- emptyState: string;
139
- };
140
- };
141
- export default _default;
@@ -1,13 +0,0 @@
1
- export declare const MM_TO_INCH = 0.0393701;
2
- export declare const INCH_TO_MM = 25.4;
3
- export type UnitSystem = "metric" | "imperial";
4
- export interface FormatLengthOptions {
5
- decimals?: number;
6
- showUnit?: boolean;
7
- }
8
- export declare function mmToInches(mm: number): number;
9
- export declare function inchesToMm(inches: number): number;
10
- export declare function formatValueToDisplayUnit(value: number, unitSystem: UnitSystem, options?: FormatLengthOptions): string;
11
- export declare function convertDisplayValueToMm(displayValue: number, unitSystem: UnitSystem): number;
12
- export declare function getUnitDisplayLabel(unitSystem: UnitSystem): string;
13
- export declare function getAvailableTimezones(): string[];
package/src/index.d.ts DELETED
@@ -1,28 +0,0 @@
1
- export * from "./contexts/i18n-provider";
2
- export * from "./hooks/use-i18n";
3
- export * from "./lib/i18n-settings/i18n-settings";
4
- export { getAvailableTimezones } from "./i18n/utils";
5
- export { getLanguageDisplayName, getSupportedLanguages } from "./i18n/config";
6
- export * from "./lib/navigation-bar/navigation-bar";
7
- export * from "./lib/navigation-bar/navigation-confirmation-modal";
8
- export * from "./lib/navigation-bar/password-protection-modal";
9
- export * from "./lib/navigation-bar/time-label";
10
- export * from "./lib/status-top-bar/status-top-bar";
11
- export * from "./lib/sidebar/sidebar";
12
- export type { SidebarItem, SidebarProps, SidebarVariant } from "./lib/sidebar/sidebar";
13
- export * from "./lib/logs/logs-table";
14
- export * from "./lib/logs/log-filter-form";
15
- export * from "./lib/logs/logs-panel";
16
- export * from "./lib/logs/logs-pagination";
17
- export type { LogEntry, LogFilterFormValues, SortOrder, LogType, PaginationMode, PaginationConfig, LogsPanelHandle, } from "./lib/logs/logs-panel";
18
- export * from "./lib/settings-page/settings-page";
19
- export * from "./lib/file-upload-panel/file-upload-panel";
20
- export * from "./lib/step-progress-circle/step-progress-circle";
21
- export * from "./lib/action-button/action-button";
22
- export * from "./lib/press-button/press-button";
23
- export * from "./lib/product-form-list/product-form-list";
24
- export * from "./hooks/use-auto-scroll-input";
25
- export * from "./types/user-level";
26
- export * from "./lib/utils/api-config-utils";
27
- export * from "./lib/utils/device-utils";
28
- export * from "./constants/z-index";