formica-ui-lib 1.0.259 → 1.0.261
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/componentProps/atoms/dropdown/DropdownProps.d.ts +2 -0
- package/dist/componentProps/organisms/collections/datareportcollection/DataReportCollectionProps.d.ts +10 -0
- package/dist/componentProps/organisms/forms/dynamicform/DynamicFormProps.d.ts +2 -1
- package/dist/componentProps/templates/admin/dataissues/AdminDataIssuesTemplateProps.d.ts +2 -0
- package/dist/componentProps/templates/admin/marketreadinesslanding/MarketReadinessLandingTemplateProps.d.ts +11 -0
- package/dist/componentProps/templates/admin/shared/AdminRegionOption.d.ts +6 -0
- package/dist/componentProps/templates/admin/users/AdminUsersTemplateProps.d.ts +10 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1806 -1677
- package/dist/tailwind.css +1 -1
- package/package.json +7 -7
|
@@ -7,10 +7,12 @@ export interface DropdownOption {
|
|
|
7
7
|
export interface DropdownProps {
|
|
8
8
|
id: string;
|
|
9
9
|
name?: string;
|
|
10
|
+
ariaLabel?: string;
|
|
10
11
|
options?: DropdownOption[];
|
|
11
12
|
value?: string;
|
|
12
13
|
placeholder?: string;
|
|
13
14
|
disabled?: boolean;
|
|
15
|
+
required?: boolean;
|
|
14
16
|
hasError?: boolean;
|
|
15
17
|
variant?: "field" | "filter" | "toolbar";
|
|
16
18
|
onChange?: (event: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DropdownOption } from "../../../atoms/dropdown/DropdownProps";
|
|
1
2
|
export type DataReportCellValue = string | number | null | undefined;
|
|
2
3
|
export type DataReportColumnAlignment = "left" | "center" | "right";
|
|
3
4
|
export type DataReportColumnWidth = "xs" | "sm" | "md" | "lg" | "xl";
|
|
@@ -8,6 +9,14 @@ export interface DataReportColumn {
|
|
|
8
9
|
editable?: boolean;
|
|
9
10
|
width?: DataReportColumnWidth;
|
|
10
11
|
maxLength?: number;
|
|
12
|
+
editor?: "text" | "select";
|
|
13
|
+
options?: DropdownOption[];
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
requiredWhen?: {
|
|
17
|
+
columnId: string;
|
|
18
|
+
value: DataReportCellValue;
|
|
19
|
+
};
|
|
11
20
|
}
|
|
12
21
|
export interface DataReportRow {
|
|
13
22
|
id: string;
|
|
@@ -24,6 +33,7 @@ export interface DataReportCollectionProps {
|
|
|
24
33
|
rows: DataReportRow[];
|
|
25
34
|
rowCountLabel?: string;
|
|
26
35
|
updateLabel?: string;
|
|
36
|
+
updateDisabled?: boolean;
|
|
27
37
|
emptyMessage?: string;
|
|
28
38
|
ariaLabel?: string;
|
|
29
39
|
onRowUpdate?: (payload: DataReportRowUpdatePayload) => void;
|
|
@@ -4,7 +4,7 @@ export type DynamicFormFieldState = "neutral" | "valid" | "warning" | "error";
|
|
|
4
4
|
export type DynamicFormFieldValue = string | number | string[] | null;
|
|
5
5
|
export type DynamicFormDensity = "compact" | "comfortable";
|
|
6
6
|
export type DynamicFormSeverityDisplay = "icon" | "label" | "none";
|
|
7
|
-
export type DynamicFormFieldLayoutWidth = "full" | "half";
|
|
7
|
+
export type DynamicFormFieldLayoutWidth = "full" | "half" | "third";
|
|
8
8
|
export type DynamicFormInformationLayout = "singleLine" | "multiline";
|
|
9
9
|
export interface DynamicFormFieldOption {
|
|
10
10
|
label: string;
|
|
@@ -16,6 +16,7 @@ export interface DynamicFormFieldOption {
|
|
|
16
16
|
export interface DynamicFormFieldConfig {
|
|
17
17
|
id: string;
|
|
18
18
|
label: string;
|
|
19
|
+
iconName?: string;
|
|
19
20
|
type: DynamicFormFieldType;
|
|
20
21
|
value: DynamicFormFieldValue;
|
|
21
22
|
placeholder?: string;
|
|
@@ -83,6 +83,7 @@ export interface AdminDataIssuesResponse {
|
|
|
83
83
|
dataSource?: AdminDataIssuesDataSource | null;
|
|
84
84
|
}
|
|
85
85
|
export type AdminDataIssuesOperationStatus = "idle" | "pending" | "success" | "error";
|
|
86
|
+
export type AdminDataIssuesUpdateCacheStatus = "idle" | "required";
|
|
86
87
|
export interface AdminDataIssuesCacheActions {
|
|
87
88
|
status: AdminDataIssuesOperationStatus;
|
|
88
89
|
title: string;
|
|
@@ -137,6 +138,7 @@ export interface AdminDataIssuesTemplateProps {
|
|
|
137
138
|
recalculateLabel?: string;
|
|
138
139
|
recalculateStatus?: AdminDataIssuesOperationStatus;
|
|
139
140
|
updateCacheLabel?: string;
|
|
141
|
+
updateCacheStatus?: AdminDataIssuesUpdateCacheStatus;
|
|
140
142
|
deleteAndRebuildLabel?: string;
|
|
141
143
|
changeProductDataLabel?: string;
|
|
142
144
|
sideNavProps: AdminSideNavProps;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { AdminSideNavProps } from "../../../organisms/navigation/AdminSideNavProps";
|
|
3
3
|
import type { SearchComboboxOption, SearchComboboxSelectPayload } from "../../../molecules/searchcombobox/SearchComboboxProps";
|
|
4
|
+
import type { AdminRegionOption } from "../shared/AdminRegionOption";
|
|
4
5
|
export type MarketReadinessLandingStatus = "idle" | "checking" | "error";
|
|
5
6
|
export interface MarketReadinessLandingDecorCodeChangePayload {
|
|
6
7
|
value: string;
|
|
7
8
|
}
|
|
9
|
+
export interface MarketReadinessLandingRegionChangePayload {
|
|
10
|
+
region: string;
|
|
11
|
+
}
|
|
8
12
|
export interface MarketReadinessLandingDecorActionPayload {
|
|
9
13
|
decorCode: string;
|
|
10
14
|
}
|
|
@@ -22,6 +26,12 @@ export interface MarketReadinessLandingTemplateProps {
|
|
|
22
26
|
pageTitle: string;
|
|
23
27
|
pageDescription?: string;
|
|
24
28
|
sideNavProps: AdminSideNavProps;
|
|
29
|
+
regionOptions: AdminRegionOption[];
|
|
30
|
+
regionValue: string;
|
|
31
|
+
regionLabel?: string;
|
|
32
|
+
regionPlaceholder?: string;
|
|
33
|
+
regionHelpText?: string;
|
|
34
|
+
regionDisabled?: boolean;
|
|
25
35
|
getStartedTitle?: string;
|
|
26
36
|
getStartedDescription?: string;
|
|
27
37
|
decorCodeValue: string;
|
|
@@ -54,6 +64,7 @@ export interface MarketReadinessLandingTemplateProps {
|
|
|
54
64
|
copyDecorDisabled?: boolean;
|
|
55
65
|
retryLabel?: string;
|
|
56
66
|
onDecorCodeChange: (payload: MarketReadinessLandingDecorCodeChangePayload) => void;
|
|
67
|
+
onRegionChange: (payload: MarketReadinessLandingRegionChangePayload) => void;
|
|
57
68
|
onDecorCodeOptionSelect?: (payload: SearchComboboxSelectPayload) => void;
|
|
58
69
|
onOpenExistingClick: (payload: MarketReadinessLandingDecorActionPayload) => void;
|
|
59
70
|
onCreateNewClick: (payload: MarketReadinessLandingDecorActionPayload) => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AdminSideNavProps } from "../../../organisms/navigation/AdminSideNavProps";
|
|
2
2
|
import type { DataReportRowUpdatePayload } from "../../../organisms/collections/datareportcollection/DataReportCollectionProps";
|
|
3
|
+
import type { AdminRegionOption } from "../shared/AdminRegionOption";
|
|
3
4
|
export type AdminUsersTemplateState = "loading" | "error" | "ready";
|
|
4
5
|
export type AdminUsersRole = "user" | "admin";
|
|
5
6
|
export interface AdminUsersRoleOption {
|
|
@@ -10,11 +11,13 @@ export interface AdminUsersCreateDraft {
|
|
|
10
11
|
email: string;
|
|
11
12
|
role: AdminUsersRole;
|
|
12
13
|
active: boolean;
|
|
14
|
+
defaultRegion: string;
|
|
13
15
|
}
|
|
14
16
|
export interface AdminUsersTemplateUser {
|
|
15
17
|
email: string;
|
|
16
18
|
role: AdminUsersRole;
|
|
17
19
|
active: boolean;
|
|
20
|
+
defaultRegion: string;
|
|
18
21
|
isCurrentUser?: boolean;
|
|
19
22
|
activeToggleDisabled?: boolean;
|
|
20
23
|
removeDisabled?: boolean;
|
|
@@ -28,6 +31,9 @@ export interface AdminUsersRoleChangePayload {
|
|
|
28
31
|
export interface AdminUsersActiveChangePayload {
|
|
29
32
|
active: boolean;
|
|
30
33
|
}
|
|
34
|
+
export interface AdminUsersDefaultRegionChangePayload {
|
|
35
|
+
region: string;
|
|
36
|
+
}
|
|
31
37
|
export interface AdminUsersCreatePayload {
|
|
32
38
|
user: AdminUsersCreateDraft;
|
|
33
39
|
}
|
|
@@ -49,7 +55,10 @@ export interface AdminUsersTemplateProps {
|
|
|
49
55
|
errorMessage?: string;
|
|
50
56
|
createUserDraft: AdminUsersCreateDraft;
|
|
51
57
|
roleOptions: AdminUsersRoleOption[];
|
|
58
|
+
regionOptions: AdminRegionOption[];
|
|
52
59
|
users: AdminUsersTemplateUser[];
|
|
60
|
+
defaultRegionLabel?: string;
|
|
61
|
+
defaultRegionPlaceholder?: string;
|
|
53
62
|
createMessage?: string;
|
|
54
63
|
updateMessage?: string;
|
|
55
64
|
deleteMessage?: string;
|
|
@@ -69,6 +78,7 @@ export interface AdminUsersTemplateProps {
|
|
|
69
78
|
onNewUserEmailChange?: (payload: AdminUsersEmailChangePayload) => void;
|
|
70
79
|
onNewUserRoleChange?: (payload: AdminUsersRoleChangePayload) => void;
|
|
71
80
|
onNewUserActiveChange?: (payload: AdminUsersActiveChangePayload) => void;
|
|
81
|
+
onNewUserDefaultRegionChange?: (payload: AdminUsersDefaultRegionChangePayload) => void;
|
|
72
82
|
onCreateUser?: (payload: AdminUsersCreatePayload) => void;
|
|
73
83
|
onRowUpdate?: (payload: DataReportRowUpdatePayload) => void;
|
|
74
84
|
onUserActiveToggle?: (payload: AdminUsersUserActionPayload) => void;
|