formica-ui-lib 1.0.306 → 1.0.308

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.
@@ -0,0 +1,42 @@
1
+ import type { AdminSideNavProps } from "../../../organisms/navigation/AdminSideNavProps";
2
+ import type { AdminTemplateStatus } from "../shared/AdminTemplateStatus";
3
+ export type AdminImportIssueSeverity = "error" | "warning" | "info";
4
+ export interface AdminImportIssueIdentifier {
5
+ label: string;
6
+ value: string;
7
+ }
8
+ export interface AdminImportIssue {
9
+ id: string;
10
+ identifier?: AdminImportIssueIdentifier;
11
+ location?: string;
12
+ message: string;
13
+ severity: AdminImportIssueSeverity;
14
+ blocking: boolean;
15
+ }
16
+ export interface AdminImportIssueGroup {
17
+ id: string;
18
+ title: string;
19
+ description?: string;
20
+ issues: AdminImportIssue[];
21
+ }
22
+ export interface AdminImportIssueSummary {
23
+ totalCount: number;
24
+ blockingCount: number;
25
+ warningCount: number;
26
+ }
27
+ export interface AdminImportDataIssuesTemplateProps {
28
+ pageTitle: string;
29
+ pageDescription?: string;
30
+ sideNavProps: AdminSideNavProps;
31
+ status?: AdminTemplateStatus;
32
+ fileName: string;
33
+ scopeLabel: string;
34
+ summary: AdminImportIssueSummary;
35
+ groups: AdminImportIssueGroup[];
36
+ backLabel?: string;
37
+ continueLabel?: string;
38
+ continueDisabled?: boolean;
39
+ onBackClick?: () => void;
40
+ onContinueClick?: () => void;
41
+ onRetryClick?: () => void;
42
+ }
@@ -0,0 +1,55 @@
1
+ import type { AdminSideNavProps } from "../../../organisms/navigation/AdminSideNavProps";
2
+ import type { AdminTemplateStatus } from "../shared/AdminTemplateStatus";
3
+ export type AdminImportChangeType = "added" | "updated" | "unchanged";
4
+ export interface AdminImportComparisonRow {
5
+ id: string;
6
+ label: string;
7
+ currentValue?: string;
8
+ afterValue?: string;
9
+ changeType: AdminImportChangeType;
10
+ }
11
+ export interface AdminImportComparisonSection {
12
+ id: string;
13
+ title: string;
14
+ rows: AdminImportComparisonRow[];
15
+ }
16
+ export interface AdminImportReviewDecor {
17
+ id: string;
18
+ code: string;
19
+ name?: string;
20
+ changeType: Exclude<AdminImportChangeType, "unchanged">;
21
+ sections: AdminImportComparisonSection[];
22
+ }
23
+ export interface AdminImportReviewRange {
24
+ id: string;
25
+ name: string;
26
+ code?: string;
27
+ changeType: Exclude<AdminImportChangeType, "unchanged">;
28
+ decors: AdminImportReviewDecor[];
29
+ }
30
+ export interface AdminImportCancelConfirmation {
31
+ open: boolean;
32
+ title: string;
33
+ message: string;
34
+ cancelLabel?: string;
35
+ confirmLabel?: string;
36
+ pending?: boolean;
37
+ }
38
+ export interface AdminImportDataReviewTemplateProps {
39
+ pageTitle: string;
40
+ pageDescription?: string;
41
+ sideNavProps: AdminSideNavProps;
42
+ status?: AdminTemplateStatus;
43
+ fileName: string;
44
+ scopeLabel: string;
45
+ ranges: AdminImportReviewRange[];
46
+ cancelLabel?: string;
47
+ continueLabel?: string;
48
+ continueDisabled?: boolean;
49
+ cancelConfirmation?: AdminImportCancelConfirmation;
50
+ onCancelClick?: () => void;
51
+ onCancelConfirm?: () => void;
52
+ onCancelClose?: () => void;
53
+ onContinueClick?: () => void;
54
+ onRetryClick?: () => void;
55
+ }
@@ -0,0 +1,69 @@
1
+ import type { AdminRegionSelectorOption } from "../../../molecules/selectors/adminregionselector/AdminRegionSelectorProps";
2
+ import type { AdminSideNavProps } from "../../../organisms/navigation/AdminSideNavProps";
3
+ import type { AdminTemplateStatus } from "../shared/AdminTemplateStatus";
4
+ export type AdminImportIntent = "add-only" | "update-only" | "add-update";
5
+ export type AdminImportActionStatus = "idle" | "pending" | "success" | "error";
6
+ export interface AdminImportOption {
7
+ label: string;
8
+ value: string;
9
+ }
10
+ export interface AdminImportIntentOption {
11
+ label: string;
12
+ value: AdminImportIntent;
13
+ }
14
+ export interface AdminImportSelectedFile {
15
+ name: string;
16
+ sizeLabel?: string;
17
+ }
18
+ export interface AdminImportSetSummary {
19
+ id: string;
20
+ fileName: string;
21
+ regionLabel: string;
22
+ localityLabel: string;
23
+ intentLabel: string;
24
+ expiresLabel: string;
25
+ rangeCount?: number;
26
+ decorCount?: number;
27
+ skuCount?: number;
28
+ }
29
+ export interface AdminImportRegionChangePayload {
30
+ region: string;
31
+ }
32
+ export interface AdminImportLocalityChangePayload {
33
+ locality: string;
34
+ }
35
+ export interface AdminImportIntentChangePayload {
36
+ intent: AdminImportIntent;
37
+ }
38
+ export interface AdminImportFileSelectPayload {
39
+ files: File[];
40
+ }
41
+ export interface AdminImportDataSourceTemplateProps {
42
+ pageTitle: string;
43
+ pageDescription?: string;
44
+ sideNavProps: AdminSideNavProps;
45
+ status?: AdminTemplateStatus;
46
+ existingImportSet?: AdminImportSetSummary | null;
47
+ regionOptions: AdminRegionSelectorOption[];
48
+ selectedRegion: string;
49
+ localityOptions: AdminImportOption[];
50
+ selectedLocality: string;
51
+ localityDisabled?: boolean;
52
+ intentOptions: AdminImportIntentOption[];
53
+ selectedIntent?: AdminImportIntent;
54
+ selectedFile?: AdminImportSelectedFile;
55
+ uploadStatus?: AdminImportActionStatus;
56
+ uploadStatusMessage?: string;
57
+ uploadDisabled?: boolean;
58
+ continueExistingLabel?: string;
59
+ uploadLabel?: string;
60
+ clearFileLabel?: string;
61
+ onContinueExistingClick?: () => void;
62
+ onRegionChange: (payload: AdminImportRegionChangePayload) => void;
63
+ onLocalityChange: (payload: AdminImportLocalityChangePayload) => void;
64
+ onIntentChange: (payload: AdminImportIntentChangePayload) => void;
65
+ onFileSelect?: (payload: AdminImportFileSelectPayload) => void;
66
+ onClearSelectedFileClick?: () => void;
67
+ onUploadClick?: () => void;
68
+ onRetryClick?: () => void;
69
+ }
@@ -1,7 +1,7 @@
1
1
  import type { AdminSideNavProps } from "../../../organisms/navigation/AdminSideNavProps";
2
2
  import type { AdminTemplateStatus } from "../shared/AdminTemplateStatus";
3
3
  export type MarketReadinessRangeTemplateMode = "create" | "edit";
4
- export type MarketReadinessRangeField = "name" | "rangeCode" | "productFamilyCode" | "company" | "companyCode" | "region" | "subRegion";
4
+ export type MarketReadinessRangeField = "name" | "bynderName" | "rangeCode" | "productFamilyCode" | "company" | "companyCode" | "region" | "subRegion";
5
5
  export interface MarketReadinessRangeFieldOption {
6
6
  label: string;
7
7
  value: string;
@@ -24,6 +24,7 @@ export interface MarketReadinessRangeTemplateProps {
24
24
  mode: MarketReadinessRangeTemplateMode;
25
25
  rangeId?: string;
26
26
  name: string;
27
+ bynderName: string;
27
28
  rangeCode: string;
28
29
  productFamilyCode?: string;
29
30
  company: string;
@@ -55,6 +56,7 @@ export interface MarketReadinessRangeTemplateProps {
55
56
  deleteCancelLabel?: string;
56
57
  deleteCloseLabel?: string;
57
58
  onNameChange?: (payload: MarketReadinessRangeValueChangePayload) => void;
59
+ onBynderNameChange?: (payload: MarketReadinessRangeValueChangePayload) => void;
58
60
  onRangeCodeChange?: (payload: MarketReadinessRangeValueChangePayload) => void;
59
61
  onProductFamilyCodeChange?: (payload: MarketReadinessRangeValueChangePayload) => void;
60
62
  onCompanyChange?: (payload: MarketReadinessRangeValueChangePayload) => void;