sag_components 2.0.0-beta141 → 2.0.0-beta143
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/index.d.ts +4 -1
- package/dist/index.esm.js +486 -45
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +485 -44
- package/dist/index.js.map +1 -1
- package/dist/types/components/Table/CommentModal.d.ts +2 -0
- package/dist/types/components/Table/CommentModal.styles.d.ts +11 -0
- package/dist/types/components/Table/Table.d.ts +4 -2
- package/dist/types/components/Table/Table.stories.d.ts +23 -91
- package/dist/types/components/Table/TableBody.d.ts +35 -2
- package/dist/types/components/Table/TableBody.styles.d.ts +3 -0
- package/dist/types/components/Table/data.d.ts +193 -0
- package/dist/types/icons/CommentIcon.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const ModalOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export const ModalContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export const ModalHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export const ModalTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
5
|
+
export const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
6
|
+
export const ModalBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
export const TextareaWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export const TextareaLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
|
|
9
|
+
export const CommentTextarea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>> & string;
|
|
10
|
+
export const CharacterCount: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
|
+
export const ModalBottom: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export default Table;
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare function Table(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace Table {
|
|
4
|
+
const displayName: string;
|
|
5
|
+
}
|
|
@@ -405,95 +405,27 @@ export namespace WithDataHiddenCounter {
|
|
|
405
405
|
}
|
|
406
406
|
export { args_4 as args };
|
|
407
407
|
}
|
|
408
|
+
export namespace SupplierEvents {
|
|
409
|
+
export namespace args_5 {
|
|
410
|
+
const width_6: string;
|
|
411
|
+
export { width_6 as width };
|
|
412
|
+
const height_6: string;
|
|
413
|
+
export { height_6 as height };
|
|
414
|
+
const tableBodyHeight_6: string;
|
|
415
|
+
export { tableBodyHeight_6 as tableBodyHeight };
|
|
416
|
+
const tableTitle_6: string;
|
|
417
|
+
export { tableTitle_6 as tableTitle };
|
|
418
|
+
export { supplierColumns as columns };
|
|
419
|
+
export { supplierData as data };
|
|
420
|
+
const showSideButton_2: boolean;
|
|
421
|
+
export { showSideButton_2 as showSideButton };
|
|
422
|
+
const showHorizontalScroll_2: boolean;
|
|
423
|
+
export { showHorizontalScroll_2 as showHorizontalScroll };
|
|
424
|
+
}
|
|
425
|
+
export { args_5 as args };
|
|
426
|
+
}
|
|
408
427
|
import Table from "./Table";
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
sort: boolean;
|
|
414
|
-
checkBox: boolean;
|
|
415
|
-
fieldType: string;
|
|
416
|
-
minWidth: string;
|
|
417
|
-
maxWidth: string;
|
|
418
|
-
filterOptions: {
|
|
419
|
-
label: string;
|
|
420
|
-
value: string;
|
|
421
|
-
}[];
|
|
422
|
-
sortOptions: {
|
|
423
|
-
value: string;
|
|
424
|
-
label: string;
|
|
425
|
-
}[];
|
|
426
|
-
rangeFilter?: undefined;
|
|
427
|
-
freeTextFilter?: undefined;
|
|
428
|
-
tooltipText?: undefined;
|
|
429
|
-
} | {
|
|
430
|
-
key: string;
|
|
431
|
-
title: string;
|
|
432
|
-
filter: boolean;
|
|
433
|
-
sort: boolean;
|
|
434
|
-
checkBox: boolean;
|
|
435
|
-
fieldType: string;
|
|
436
|
-
minWidth: string;
|
|
437
|
-
maxWidth: string;
|
|
438
|
-
filterOptions: any[];
|
|
439
|
-
rangeFilter: boolean;
|
|
440
|
-
sortOptions?: undefined;
|
|
441
|
-
freeTextFilter?: undefined;
|
|
442
|
-
tooltipText?: undefined;
|
|
443
|
-
} | {
|
|
444
|
-
key: string;
|
|
445
|
-
title: string;
|
|
446
|
-
filter: boolean;
|
|
447
|
-
sort: boolean;
|
|
448
|
-
checkBox: boolean;
|
|
449
|
-
fieldType: string;
|
|
450
|
-
minWidth: string;
|
|
451
|
-
maxWidth: string;
|
|
452
|
-
freeTextFilter: boolean;
|
|
453
|
-
filterOptions?: undefined;
|
|
454
|
-
sortOptions?: undefined;
|
|
455
|
-
rangeFilter?: undefined;
|
|
456
|
-
tooltipText?: undefined;
|
|
457
|
-
} | {
|
|
458
|
-
key: string;
|
|
459
|
-
title: string;
|
|
460
|
-
filter: boolean;
|
|
461
|
-
sort: boolean;
|
|
462
|
-
checkBox: boolean;
|
|
463
|
-
fieldType: string;
|
|
464
|
-
minWidth: string;
|
|
465
|
-
maxWidth: string;
|
|
466
|
-
filterOptions: {
|
|
467
|
-
value: string;
|
|
468
|
-
label: string;
|
|
469
|
-
}[];
|
|
470
|
-
sortOptions: any[];
|
|
471
|
-
tooltipText: {
|
|
472
|
-
value: string;
|
|
473
|
-
label: string;
|
|
474
|
-
}[];
|
|
475
|
-
rangeFilter?: undefined;
|
|
476
|
-
freeTextFilter?: undefined;
|
|
477
|
-
})[];
|
|
478
|
-
declare const data1: {
|
|
479
|
-
EventCode: number;
|
|
480
|
-
ExternalEventID: string;
|
|
481
|
-
EventName: string;
|
|
482
|
-
EventType: number;
|
|
483
|
-
EventComponent: string;
|
|
484
|
-
EventSubType: number;
|
|
485
|
-
StartWeekID: string;
|
|
486
|
-
EndWeekID: string;
|
|
487
|
-
IsPartnership: boolean;
|
|
488
|
-
DueDate: string;
|
|
489
|
-
EnterDate: string;
|
|
490
|
-
LastModDate: string;
|
|
491
|
-
Retailers: string[];
|
|
492
|
-
EventTypeName: string;
|
|
493
|
-
EventSubTypeName: string;
|
|
494
|
-
PackageStatus: string;
|
|
495
|
-
Week: string;
|
|
496
|
-
Period: string;
|
|
497
|
-
Year: string;
|
|
498
|
-
Trash: string;
|
|
499
|
-
}[];
|
|
428
|
+
import { columns1 } from "./data";
|
|
429
|
+
import { data1 } from "./data";
|
|
430
|
+
import { supplierColumns } from "./data";
|
|
431
|
+
import { supplierData } from "./data";
|
|
@@ -1,3 +1,36 @@
|
|
|
1
1
|
export default TableBody;
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare function TableBody({ columns, data, onRowClick, onSendClick, buttonColor, onDeleteClick, selectedColor, resetFocus, onFocusChange, indexToShimmer, statuses, onCommentSave, ref, }: {
|
|
3
|
+
columns: any;
|
|
4
|
+
data: any;
|
|
5
|
+
onRowClick: any;
|
|
6
|
+
onSendClick: any;
|
|
7
|
+
buttonColor: any;
|
|
8
|
+
onDeleteClick: any;
|
|
9
|
+
selectedColor: any;
|
|
10
|
+
resetFocus?: boolean;
|
|
11
|
+
onFocusChange: any;
|
|
12
|
+
indexToShimmer?: number;
|
|
13
|
+
statuses?: {
|
|
14
|
+
status: string;
|
|
15
|
+
palette: string[];
|
|
16
|
+
}[];
|
|
17
|
+
onCommentSave?: () => void;
|
|
18
|
+
ref?: any;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare namespace TableBody {
|
|
21
|
+
namespace propTypes {
|
|
22
|
+
const columns: PropTypes.Validator<any[]>;
|
|
23
|
+
const data: PropTypes.Validator<any[]>;
|
|
24
|
+
const onRowClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
25
|
+
const onSendClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
26
|
+
const buttonColor: PropTypes.Requireable<string>;
|
|
27
|
+
const onDeleteClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
28
|
+
const resetFocus: PropTypes.Requireable<boolean>;
|
|
29
|
+
const onFocusChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
|
+
const indexToShimmer: PropTypes.Requireable<number>;
|
|
31
|
+
const onCommentSave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
|
+
const ref: PropTypes.Requireable<object>;
|
|
33
|
+
}
|
|
34
|
+
const displayName: string;
|
|
35
|
+
}
|
|
36
|
+
import PropTypes from "prop-types";
|
|
@@ -8,4 +8,7 @@ export const PackageStatusContainer: import("styled-components/dist/types").ISty
|
|
|
8
8
|
export const ButtonWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
9
|
export const SentStatus: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
10
|
export const TrashIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
|
+
export const CommentIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
12
|
export const DisabledTrashIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
|
+
export const StatusCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
|
+
export const StatusCellCircle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
export const data1: {
|
|
2
|
+
EventCode: number;
|
|
3
|
+
ExternalEventID: string;
|
|
4
|
+
EventName: string;
|
|
5
|
+
EventType: number;
|
|
6
|
+
EventComponent: string;
|
|
7
|
+
EventSubType: number;
|
|
8
|
+
StartWeekID: string;
|
|
9
|
+
EndWeekID: string;
|
|
10
|
+
IsPartnership: boolean;
|
|
11
|
+
DueDate: string;
|
|
12
|
+
EnterDate: string;
|
|
13
|
+
LastModDate: string;
|
|
14
|
+
Retailers: string[];
|
|
15
|
+
EventTypeName: string;
|
|
16
|
+
EventSubTypeName: string;
|
|
17
|
+
PackageStatus: string;
|
|
18
|
+
Week: string;
|
|
19
|
+
Period: string;
|
|
20
|
+
Year: string;
|
|
21
|
+
Trash: string;
|
|
22
|
+
}[];
|
|
23
|
+
export const columns1: ({
|
|
24
|
+
key: string;
|
|
25
|
+
title: string;
|
|
26
|
+
filter: boolean;
|
|
27
|
+
sort: boolean;
|
|
28
|
+
checkBox: boolean;
|
|
29
|
+
fieldType: string;
|
|
30
|
+
minWidth: string;
|
|
31
|
+
maxWidth: string;
|
|
32
|
+
filterOptions: {
|
|
33
|
+
label: string;
|
|
34
|
+
value: string;
|
|
35
|
+
}[];
|
|
36
|
+
sortOptions: {
|
|
37
|
+
value: string;
|
|
38
|
+
label: string;
|
|
39
|
+
}[];
|
|
40
|
+
rangeFilter?: undefined;
|
|
41
|
+
freeTextFilter?: undefined;
|
|
42
|
+
tooltipText?: undefined;
|
|
43
|
+
} | {
|
|
44
|
+
key: string;
|
|
45
|
+
title: string;
|
|
46
|
+
filter: boolean;
|
|
47
|
+
sort: boolean;
|
|
48
|
+
checkBox: boolean;
|
|
49
|
+
fieldType: string;
|
|
50
|
+
minWidth: string;
|
|
51
|
+
maxWidth: string;
|
|
52
|
+
filterOptions: any[];
|
|
53
|
+
rangeFilter: boolean;
|
|
54
|
+
sortOptions?: undefined;
|
|
55
|
+
freeTextFilter?: undefined;
|
|
56
|
+
tooltipText?: undefined;
|
|
57
|
+
} | {
|
|
58
|
+
key: string;
|
|
59
|
+
title: string;
|
|
60
|
+
filter: boolean;
|
|
61
|
+
sort: boolean;
|
|
62
|
+
checkBox: boolean;
|
|
63
|
+
fieldType: string;
|
|
64
|
+
minWidth: string;
|
|
65
|
+
maxWidth: string;
|
|
66
|
+
freeTextFilter: boolean;
|
|
67
|
+
filterOptions?: undefined;
|
|
68
|
+
sortOptions?: undefined;
|
|
69
|
+
rangeFilter?: undefined;
|
|
70
|
+
tooltipText?: undefined;
|
|
71
|
+
} | {
|
|
72
|
+
key: string;
|
|
73
|
+
title: string;
|
|
74
|
+
filter: boolean;
|
|
75
|
+
sort: boolean;
|
|
76
|
+
checkBox: boolean;
|
|
77
|
+
fieldType: string;
|
|
78
|
+
minWidth: string;
|
|
79
|
+
maxWidth: string;
|
|
80
|
+
filterOptions: {
|
|
81
|
+
value: string;
|
|
82
|
+
label: string;
|
|
83
|
+
}[];
|
|
84
|
+
sortOptions: any[];
|
|
85
|
+
tooltipText: {
|
|
86
|
+
value: string;
|
|
87
|
+
label: string;
|
|
88
|
+
}[];
|
|
89
|
+
rangeFilter?: undefined;
|
|
90
|
+
freeTextFilter?: undefined;
|
|
91
|
+
})[];
|
|
92
|
+
export const supplierColumns: ({
|
|
93
|
+
key: string;
|
|
94
|
+
title: string;
|
|
95
|
+
filter: boolean;
|
|
96
|
+
sort: boolean;
|
|
97
|
+
checkBox: boolean;
|
|
98
|
+
fieldType: string;
|
|
99
|
+
minWidth: string;
|
|
100
|
+
maxWidth: string;
|
|
101
|
+
filterOptions: {
|
|
102
|
+
label: string;
|
|
103
|
+
value: string;
|
|
104
|
+
}[];
|
|
105
|
+
sortOptions: {
|
|
106
|
+
value: string;
|
|
107
|
+
label: string;
|
|
108
|
+
}[];
|
|
109
|
+
freeTextFilter?: undefined;
|
|
110
|
+
rangeFilter?: undefined;
|
|
111
|
+
tooltipText?: undefined;
|
|
112
|
+
} | {
|
|
113
|
+
key: string;
|
|
114
|
+
title: string;
|
|
115
|
+
filter: boolean;
|
|
116
|
+
sort: boolean;
|
|
117
|
+
checkBox: boolean;
|
|
118
|
+
fieldType: string;
|
|
119
|
+
minWidth: string;
|
|
120
|
+
maxWidth: string;
|
|
121
|
+
freeTextFilter: boolean;
|
|
122
|
+
sortOptions: {
|
|
123
|
+
value: string;
|
|
124
|
+
label: string;
|
|
125
|
+
}[];
|
|
126
|
+
filterOptions?: undefined;
|
|
127
|
+
rangeFilter?: undefined;
|
|
128
|
+
tooltipText?: undefined;
|
|
129
|
+
} | {
|
|
130
|
+
key: string;
|
|
131
|
+
title: string;
|
|
132
|
+
filter: boolean;
|
|
133
|
+
sort: boolean;
|
|
134
|
+
checkBox: boolean;
|
|
135
|
+
fieldType: string;
|
|
136
|
+
minWidth: string;
|
|
137
|
+
maxWidth: string;
|
|
138
|
+
rangeFilter: boolean;
|
|
139
|
+
sortOptions: {
|
|
140
|
+
value: string;
|
|
141
|
+
label: string;
|
|
142
|
+
}[];
|
|
143
|
+
filterOptions?: undefined;
|
|
144
|
+
freeTextFilter?: undefined;
|
|
145
|
+
tooltipText?: undefined;
|
|
146
|
+
} | {
|
|
147
|
+
key: string;
|
|
148
|
+
title: string;
|
|
149
|
+
filter: boolean;
|
|
150
|
+
sort: boolean;
|
|
151
|
+
checkBox: boolean;
|
|
152
|
+
fieldType: string;
|
|
153
|
+
minWidth: string;
|
|
154
|
+
maxWidth: string;
|
|
155
|
+
filterOptions?: undefined;
|
|
156
|
+
sortOptions?: undefined;
|
|
157
|
+
freeTextFilter?: undefined;
|
|
158
|
+
rangeFilter?: undefined;
|
|
159
|
+
tooltipText?: undefined;
|
|
160
|
+
} | {
|
|
161
|
+
key: string;
|
|
162
|
+
title: string;
|
|
163
|
+
filter: boolean;
|
|
164
|
+
sort: boolean;
|
|
165
|
+
checkBox: boolean;
|
|
166
|
+
fieldType: string;
|
|
167
|
+
minWidth: string;
|
|
168
|
+
maxWidth: string;
|
|
169
|
+
filterOptions: any[];
|
|
170
|
+
sortOptions: any[];
|
|
171
|
+
tooltipText: {
|
|
172
|
+
value: string;
|
|
173
|
+
label: string;
|
|
174
|
+
}[];
|
|
175
|
+
freeTextFilter?: undefined;
|
|
176
|
+
rangeFilter?: undefined;
|
|
177
|
+
})[];
|
|
178
|
+
export const supplierData: {
|
|
179
|
+
Status: string;
|
|
180
|
+
Supplier: string;
|
|
181
|
+
EventID: string;
|
|
182
|
+
WeekNumber: string;
|
|
183
|
+
Period: string;
|
|
184
|
+
EventAttribute: string;
|
|
185
|
+
EventType: string;
|
|
186
|
+
EventSubType: string;
|
|
187
|
+
Component: string;
|
|
188
|
+
NegotiatedBrand: string;
|
|
189
|
+
ProductGroup: string;
|
|
190
|
+
HUB: string;
|
|
191
|
+
Comments: string;
|
|
192
|
+
Trash: string;
|
|
193
|
+
}[];
|