sag_components 2.0.0-beta146 → 2.0.0-beta148

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.
@@ -1,6 +1,7 @@
1
1
  export const DropdownContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
2
  export const DropdownButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
3
3
  export const DropdownList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
4
+ export const SectionDiv: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
5
  export const SectionTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
5
6
  export const DropdownItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
6
7
  export const TruncatedText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
@@ -345,28 +345,44 @@ export namespace WithData {
345
345
  }
346
346
  export { args_1 as args };
347
347
  }
348
- export namespace EmptyState {
348
+ export namespace WithTagsAndData {
349
349
  export namespace args_2 {
350
350
  const width_3: string;
351
351
  export { width_3 as width };
352
352
  const height_3: string;
353
353
  export { height_3 as height };
354
+ const tableBackground_2: string;
355
+ export { tableBackground_2 as tableBackground };
354
356
  const tableBodyHeight_3: string;
355
357
  export { tableBodyHeight_3 as tableBodyHeight };
356
358
  const tableTitle_3: string;
357
359
  export { tableTitle_3 as tableTitle };
360
+ const counter_1: number;
361
+ export { counter_1 as counter };
358
362
  const hideRowsCounter_3: boolean;
359
363
  export { hideRowsCounter_3 as hideRowsCounter };
360
- const columns_2: any[];
361
- export { columns_2 as columns };
362
- const data_2: any[];
363
- export { data_2 as data };
364
+ const isLoading_3: boolean;
365
+ export { isLoading_3 as isLoading };
366
+ const isLoadingText_3: string;
367
+ export { isLoadingText_3 as isLoadingText };
368
+ const lastRowsThreshold_3: number;
369
+ export { lastRowsThreshold_3 as lastRowsThreshold };
370
+ export { columns1 as columns };
371
+ export { data1 as data };
372
+ const buttonColor_3: string;
373
+ export { buttonColor_3 as buttonColor };
364
374
  const showNoDataInSearch_3: boolean;
365
375
  export { showNoDataInSearch_3 as showNoDataInSearch };
376
+ const resetTableFocus_3: boolean;
377
+ export { resetTableFocus_3 as resetTableFocus };
378
+ const clearFocusOnOutsideClick_3: boolean;
379
+ export { clearFocusOnOutsideClick_3 as clearFocusOnOutsideClick };
380
+ const children_2: import("react/jsx-runtime").JSX.Element;
381
+ export { children_2 as children };
366
382
  }
367
383
  export { args_2 as args };
368
384
  }
369
- export namespace NoDataInSearch {
385
+ export namespace EmptyState {
370
386
  export namespace args_3 {
371
387
  const width_4: string;
372
388
  export { width_4 as width };
@@ -378,17 +394,16 @@ export namespace NoDataInSearch {
378
394
  export { tableTitle_4 as tableTitle };
379
395
  const hideRowsCounter_4: boolean;
380
396
  export { hideRowsCounter_4 as hideRowsCounter };
381
- export { columns1 as columns };
382
- const data_3: any[];
383
- export { data_3 as data };
397
+ const columns_2: any[];
398
+ export { columns_2 as columns };
399
+ const data_2: any[];
400
+ export { data_2 as data };
384
401
  const showNoDataInSearch_4: boolean;
385
402
  export { showNoDataInSearch_4 as showNoDataInSearch };
386
- export const noDataInSearchTitle: string;
387
- export const noDataInSearchMessage: string;
388
403
  }
389
404
  export { args_3 as args };
390
405
  }
391
- export namespace WithDataHiddenCounter {
406
+ export namespace NoDataInSearch {
392
407
  export namespace args_4 {
393
408
  const width_5: string;
394
409
  export { width_5 as width };
@@ -398,26 +413,19 @@ export namespace WithDataHiddenCounter {
398
413
  export { tableBodyHeight_5 as tableBodyHeight };
399
414
  const tableTitle_5: string;
400
415
  export { tableTitle_5 as tableTitle };
401
- const counter_1: number;
402
- export { counter_1 as counter };
403
416
  const hideRowsCounter_5: boolean;
404
417
  export { hideRowsCounter_5 as hideRowsCounter };
405
- const isLoading_3: boolean;
406
- export { isLoading_3 as isLoading };
407
- const isLoadingText_3: string;
408
- export { isLoadingText_3 as isLoadingText };
409
- const lastRowsThreshold_3: number;
410
- export { lastRowsThreshold_3 as lastRowsThreshold };
411
418
  export { columns1 as columns };
412
- export { data1 as data };
413
- const buttonColor_3: string;
414
- export { buttonColor_3 as buttonColor };
419
+ const data_3: any[];
420
+ export { data_3 as data };
415
421
  const showNoDataInSearch_5: boolean;
416
422
  export { showNoDataInSearch_5 as showNoDataInSearch };
423
+ export const noDataInSearchTitle: string;
424
+ export const noDataInSearchMessage: string;
417
425
  }
418
426
  export { args_4 as args };
419
427
  }
420
- export namespace SupplierEvents {
428
+ export namespace WithDataHiddenCounter {
421
429
  export namespace args_5 {
422
430
  const width_6: string;
423
431
  export { width_6 as width };
@@ -427,6 +435,35 @@ export namespace SupplierEvents {
427
435
  export { tableBodyHeight_6 as tableBodyHeight };
428
436
  const tableTitle_6: string;
429
437
  export { tableTitle_6 as tableTitle };
438
+ const counter_2: number;
439
+ export { counter_2 as counter };
440
+ const hideRowsCounter_6: boolean;
441
+ export { hideRowsCounter_6 as hideRowsCounter };
442
+ const isLoading_4: boolean;
443
+ export { isLoading_4 as isLoading };
444
+ const isLoadingText_4: string;
445
+ export { isLoadingText_4 as isLoadingText };
446
+ const lastRowsThreshold_4: number;
447
+ export { lastRowsThreshold_4 as lastRowsThreshold };
448
+ export { columns1 as columns };
449
+ export { data1 as data };
450
+ const buttonColor_4: string;
451
+ export { buttonColor_4 as buttonColor };
452
+ const showNoDataInSearch_6: boolean;
453
+ export { showNoDataInSearch_6 as showNoDataInSearch };
454
+ }
455
+ export { args_5 as args };
456
+ }
457
+ export namespace SupplierEvents {
458
+ export namespace args_6 {
459
+ const width_7: string;
460
+ export { width_7 as width };
461
+ const height_7: string;
462
+ export { height_7 as height };
463
+ const tableBodyHeight_7: string;
464
+ export { tableBodyHeight_7 as tableBodyHeight };
465
+ const tableTitle_7: string;
466
+ export { tableTitle_7 as tableTitle };
430
467
  export { supplierColumns as columns };
431
468
  export { supplierData as data };
432
469
  const showSideButton_2: boolean;
@@ -434,7 +471,30 @@ export namespace SupplierEvents {
434
471
  const showHorizontalScroll_2: boolean;
435
472
  export { showHorizontalScroll_2 as showHorizontalScroll };
436
473
  }
437
- export { args_5 as args };
474
+ export { args_6 as args };
475
+ }
476
+ export namespace SupplierEventsWithTags {
477
+ export namespace args_7 {
478
+ const width_8: string;
479
+ export { width_8 as width };
480
+ const height_8: string;
481
+ export { height_8 as height };
482
+ const tableBodyHeight_8: string;
483
+ export { tableBodyHeight_8 as tableBodyHeight };
484
+ const tableTitle_8: string;
485
+ export { tableTitle_8 as tableTitle };
486
+ const counter_3: number;
487
+ export { counter_3 as counter };
488
+ export { supplierColumns as columns };
489
+ export { supplierData as data };
490
+ const showSideButton_3: boolean;
491
+ export { showSideButton_3 as showSideButton };
492
+ const showHorizontalScroll_3: boolean;
493
+ export { showHorizontalScroll_3 as showHorizontalScroll };
494
+ const children_3: import("react/jsx-runtime").JSX.Element;
495
+ export { children_3 as children };
496
+ }
497
+ export { args_7 as args };
438
498
  }
439
499
  import Table from "./Table";
440
500
  import { columns1 } from "./data";
@@ -27,10 +27,14 @@ declare namespace TableBody {
27
27
  const onRowClick: PropTypes.Requireable<(...args: any[]) => any>;
28
28
  const onSendClick: PropTypes.Requireable<(...args: any[]) => any>;
29
29
  const buttonColor: PropTypes.Requireable<string>;
30
+ const buttonHoverColor: PropTypes.Requireable<string>;
31
+ const selectedColor: PropTypes.Requireable<string>;
30
32
  const onDeleteClick: PropTypes.Requireable<(...args: any[]) => any>;
31
- const resetFocus: PropTypes.Requireable<boolean>;
33
+ const resetFocusIndex: PropTypes.Requireable<boolean>;
34
+ const changeFocusIndex: PropTypes.Requireable<number>;
32
35
  const onFocusChange: PropTypes.Requireable<(...args: any[]) => any>;
33
36
  const indexToShimmer: PropTypes.Requireable<number>;
37
+ const statuses: PropTypes.Requireable<any[]>;
34
38
  const onCommentSave: PropTypes.Requireable<(...args: any[]) => any>;
35
39
  const commentTextLimit: PropTypes.Requireable<number>;
36
40
  const ref: PropTypes.Requireable<object>;
@@ -12,6 +12,10 @@ export const CommentIconWrapper: import("styled-components/dist/types").IStyledC
12
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
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
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;
15
+ export const TagContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
16
+ export const TagChip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
17
+ export const TagOverflow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
18
+ export const MultiTagWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
15
19
  export const TextareaWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
16
20
  export const TextareaLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
17
21
  export const CommentTextarea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>> & string;
@@ -1,4 +1,4 @@
1
- export const data1: {
1
+ export const data1: ({
2
2
  EventCode: number;
3
3
  ExternalEventID: string;
4
4
  EventName: string;
@@ -19,7 +19,30 @@ export const data1: {
19
19
  Period: string;
20
20
  Year: string;
21
21
  Trash: string;
22
- }[];
22
+ Tags: string;
23
+ } | {
24
+ EventCode: number;
25
+ ExternalEventID: string;
26
+ EventName: string;
27
+ EventType: number;
28
+ EventComponent: string;
29
+ EventSubType: number;
30
+ StartWeekID: string;
31
+ EndWeekID: string;
32
+ IsPartnership: boolean;
33
+ DueDate: string;
34
+ EnterDate: string;
35
+ LastModDate: string;
36
+ Retailers: string[];
37
+ EventTypeName: string;
38
+ EventSubTypeName: string;
39
+ PackageStatus: string;
40
+ Week: string;
41
+ Period: string;
42
+ Year: string;
43
+ Trash: string;
44
+ Tags: string[];
45
+ })[];
23
46
  export const columns1: ({
24
47
  key: string;
25
48
  title: string;
@@ -37,6 +60,73 @@ export const columns1: ({
37
60
  value: string;
38
61
  label: string;
39
62
  }[];
63
+ tagConfig?: undefined;
64
+ rangeFilter?: undefined;
65
+ freeTextFilter?: undefined;
66
+ tooltipText?: undefined;
67
+ } | {
68
+ key: string;
69
+ title: string;
70
+ filter: boolean;
71
+ sort: boolean;
72
+ checkBox: boolean;
73
+ fieldType: string;
74
+ minWidth: string;
75
+ maxWidth: string;
76
+ filterOptions: {
77
+ label: string;
78
+ value: string;
79
+ }[];
80
+ sortOptions: {
81
+ value: string;
82
+ label: string;
83
+ }[];
84
+ tagConfig: {
85
+ colors: {
86
+ 'high-priority': {
87
+ bg: string;
88
+ text: string;
89
+ border: string;
90
+ };
91
+ urgent: {
92
+ bg: string;
93
+ text: string;
94
+ border: string;
95
+ };
96
+ 'in-progress': {
97
+ bg: string;
98
+ text: string;
99
+ border: string;
100
+ };
101
+ completed: {
102
+ bg: string;
103
+ text: string;
104
+ border: string;
105
+ };
106
+ 'on-hold': {
107
+ bg: string;
108
+ text: string;
109
+ border: string;
110
+ };
111
+ 'review-needed': {
112
+ bg: string;
113
+ text: string;
114
+ border: string;
115
+ };
116
+ draft: {
117
+ bg: string;
118
+ text: string;
119
+ border: string;
120
+ };
121
+ };
122
+ defaultColor: {
123
+ bg: string;
124
+ text: string;
125
+ border: string;
126
+ };
127
+ multiple: boolean;
128
+ maxDisplay: number;
129
+ };
40
130
  rangeFilter?: undefined;
41
131
  freeTextFilter?: undefined;
42
132
  tooltipText?: undefined;
@@ -52,6 +142,7 @@ export const columns1: ({
52
142
  filterOptions: any[];
53
143
  rangeFilter: boolean;
54
144
  sortOptions?: undefined;
145
+ tagConfig?: undefined;
55
146
  freeTextFilter?: undefined;
56
147
  tooltipText?: undefined;
57
148
  } | {
@@ -66,6 +157,7 @@ export const columns1: ({
66
157
  freeTextFilter: boolean;
67
158
  filterOptions?: undefined;
68
159
  sortOptions?: undefined;
160
+ tagConfig?: undefined;
69
161
  rangeFilter?: undefined;
70
162
  tooltipText?: undefined;
71
163
  } | {
@@ -86,6 +178,7 @@ export const columns1: ({
86
178
  value: string;
87
179
  label: string;
88
180
  }[];
181
+ tagConfig?: undefined;
89
182
  rangeFilter?: undefined;
90
183
  freeTextFilter?: undefined;
91
184
  })[];
@@ -107,6 +200,7 @@ export const supplierColumns: ({
107
200
  label: string;
108
201
  }[];
109
202
  freeTextFilter?: undefined;
203
+ tagConfig?: undefined;
110
204
  rangeFilter?: undefined;
111
205
  tooltipText?: undefined;
112
206
  } | {
@@ -124,6 +218,55 @@ export const supplierColumns: ({
124
218
  label: string;
125
219
  }[];
126
220
  filterOptions?: undefined;
221
+ tagConfig?: undefined;
222
+ rangeFilter?: undefined;
223
+ tooltipText?: undefined;
224
+ } | {
225
+ key: string;
226
+ title: string;
227
+ filter: boolean;
228
+ sort: boolean;
229
+ checkBox: boolean;
230
+ fieldType: string;
231
+ minWidth: string;
232
+ maxWidth: string;
233
+ filterOptions: {
234
+ label: string;
235
+ value: string;
236
+ }[];
237
+ tagConfig: {
238
+ colors: {
239
+ urgent: {
240
+ bg: string;
241
+ text: string;
242
+ border: string;
243
+ };
244
+ 'high-priority': {
245
+ bg: string;
246
+ text: string;
247
+ border: string;
248
+ };
249
+ 'in-progress': {
250
+ bg: string;
251
+ text: string;
252
+ border: string;
253
+ };
254
+ completed: {
255
+ bg: string;
256
+ text: string;
257
+ border: string;
258
+ };
259
+ };
260
+ defaultColor: {
261
+ bg: string;
262
+ text: string;
263
+ border: string;
264
+ };
265
+ multiple: boolean;
266
+ maxDisplay: number;
267
+ };
268
+ sortOptions?: undefined;
269
+ freeTextFilter?: undefined;
127
270
  rangeFilter?: undefined;
128
271
  tooltipText?: undefined;
129
272
  } | {
@@ -142,6 +285,7 @@ export const supplierColumns: ({
142
285
  }[];
143
286
  filterOptions?: undefined;
144
287
  freeTextFilter?: undefined;
288
+ tagConfig?: undefined;
145
289
  tooltipText?: undefined;
146
290
  } | {
147
291
  key: string;
@@ -155,6 +299,7 @@ export const supplierColumns: ({
155
299
  filterOptions?: undefined;
156
300
  sortOptions?: undefined;
157
301
  freeTextFilter?: undefined;
302
+ tagConfig?: undefined;
158
303
  rangeFilter?: undefined;
159
304
  tooltipText?: undefined;
160
305
  } | {
@@ -173,9 +318,26 @@ export const supplierColumns: ({
173
318
  label: string;
174
319
  }[];
175
320
  freeTextFilter?: undefined;
321
+ tagConfig?: undefined;
176
322
  rangeFilter?: undefined;
177
323
  })[];
178
- export const supplierData: {
324
+ export const supplierData: ({
325
+ Status: string;
326
+ Supplier: string;
327
+ EventID: string;
328
+ WeekNumber: string;
329
+ Period: string;
330
+ EventAttribute: string;
331
+ EventType: string;
332
+ EventSubType: string;
333
+ Component: string;
334
+ NegotiatedBrand: string;
335
+ ProductGroup: string;
336
+ HUB: string;
337
+ Comments: string;
338
+ Trash: string;
339
+ Tags: string[];
340
+ } | {
179
341
  Status: string;
180
342
  Supplier: string;
181
343
  EventID: string;
@@ -190,4 +352,5 @@ export const supplierData: {
190
352
  HUB: string;
191
353
  Comments: string;
192
354
  Trash: string;
193
- }[];
355
+ Tags: string;
356
+ })[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "2.0.0-beta146",
3
+ "version": "2.0.0-beta148",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",