forstok-ui-lib 5.6.11 → 5.7.1

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,5 +1,5 @@
1
1
  import styled, { css } from 'styled-components';
2
- import { responseWidth, formLabel} from './bases.styles';
2
+ import { responseWidth, formLabel, elipsis, multiElipsis, headTable, boxBase, clearList, dropBase} from './bases.styles';
3
3
 
4
4
  const initialStyles = css `
5
5
  width: 32px;
@@ -8,6 +8,10 @@ const initialStyles = css `
8
8
  display: grid;
9
9
  background-color: #000;
10
10
  `
11
+ const fullGrid = css`
12
+ display: inline-grid;
13
+ width: 100%;
14
+ `
11
15
 
12
16
  const getTabsContentModFunc = ({ $mode }:{ $mode?: string }) => {
13
17
  let style = ``
@@ -108,388 +112,3155 @@ const getBulkActionWrapperModifiedStyled = ({ $isOpen }:{ $isOpen?: boolean }) =
108
112
  }
109
113
  return style
110
114
  }
111
-
112
- export const PanelContainer = styled.section`
113
- position: relative;
114
- height: 100%;
115
- padding-top: 20px;
116
- > section:not(:first-child) {
117
- margin-top: 1em;
118
- }
119
- @media only screen and (min-width: 1024px) {
120
- padding: 20px 1em 0;
121
- height: calc(100vh - 50px);
122
- }
123
- @media only screen and (min-width: 1366px) {
124
- padding: 20px 2em 0;
125
- height: 100%;
126
- }
127
- `
128
- export const ListContainer = styled.section`
129
- position: relative;
130
- &:first-child {
131
- margin-top: -4px;
132
- }
133
- `
134
- export const PanelWrapper = styled.section<{ $mode?: string }>`
135
- ${responseWidth}
136
- position: relative;
137
- min-height: 1px;
138
- margin: 0 auto;
139
- padding-top: 16px;
140
- padding-bottom: 10px;
141
- @media only screen and (min-width: 768px) {
142
- padding: 8px 30px 16px;
143
- }
144
- ${({ $mode }:{ $mode?: string }) => {
145
- if ($mode === 'full') {
146
- return css`
147
- width: 100%;
148
- `
149
- }
150
- }}
151
- `
152
- export const Title = styled.h1`
153
- font-family: PT Sans;
154
- font-size: 22px;
155
- color: var(--ter-clr);
156
- > aside {
157
- color: var(--mt-clr);
158
- font-size: 16px;
159
- font-weight: 400;
160
- margin-top: 5px;
161
- letter-spacing: normal;
162
- }
163
- @media only screen and (min-width: 768px) {
164
- font-size: 30px;
165
- .tablet-fw {
166
- display: inline !important;
167
- }
168
- }
169
- `
170
- export const HeaderContainer = styled.aside`
171
- display: grid;
172
- grid-auto-flow: column;
173
- grid-gap: 8px;
174
- grid-template-columns: max-content max-content;
175
- align-items: center;
176
- @media only screen and (min-width: 400px) {
177
- position: absolute;
178
- right: 20px;
179
- top: 20px;
180
- }
181
- @media only screen and (min-width: 768px) {
182
- top: 10px;
183
- }
184
- @media only screen and (min-width: 1366px) {
185
- right: 20px;
186
- }
187
- `
188
- export const TabsContainer = styled.section<{ $mode?: string }>`
189
- width: 100%;
190
- ${({ $mode }:{ $mode?: string }) => {
191
- if ($mode === 'master-listing') {
192
- return css`
193
- padding: 0 16px;
194
- `
195
- } else if ($mode === 'detail-master') {
196
- return css`
197
- padding: 20px 10px 0 10px;
198
- `
199
- } else if ($mode === 'no-header') {
200
- return css`
201
- padding-top: 0;
202
- @media only screen and (min-width: 1366px) {
203
- padding-top: 12px;
115
+ const getTableHeaderModFunc = ({ $mode }:{ $mode?: string }) => {
116
+ let style = `
117
+ & ${TableHeadLabel} {
118
+ &:empty,
119
+ &:last-child {
120
+ cursor: default;
121
+ &:after {
122
+ display: none;
204
123
  }
205
- `
206
- }
207
- }}
208
- `
209
- export const TabsContent = styled.div<{ $mode?: string }>`
210
- padding-top: 16px;
211
- &._refNoTab {
212
- padding-top: 9px;
213
- @media only screen and (min-width: 768px) {
214
- padding-top: 11px;
215
- }
216
- }
217
- @media only screen and (min-width: 768px) {
218
- padding-top: 24px;
219
- }
220
- ${getTabsContentModFunc}
221
- `
222
- export const FoContainer = styled.section<{ $mode?: string }>`
223
- position: relative;
224
- > section,
225
- > article {
226
- width: 100%;
227
- > aside,
228
- > article {
229
- ${responseWidth}
230
- margin: 0 auto;
124
+ }
231
125
  }
232
- }
233
- > article {
234
- height: calc(100vh - 50px);
235
- }
236
- ${({ $mode }:{ $mode?: string }) => {
237
- if ($mode === 'detail') {
238
- return css`
239
- margin-top: -4px;
240
- @media only screen and (min-width: 768px) {
241
- > section,
242
- > article {
243
- > aside {
244
- padding-left: 16px;
245
- padding-right: 16px;
126
+ `
127
+ if ($mode === 'order-detail') {
128
+ style +=`
129
+ padding-top: 16px;
130
+ padding-bottom: 10px;
131
+ display: inline-grid;
132
+ width: 100%;
133
+ grid-gap: 8px;
134
+ @media only screen and (max-width: 767.9px) {
135
+ > div {
136
+ &:first-child {
137
+ position: absolute;
138
+ top: 16px;
139
+ letter-spacing: 0;
140
+ }
141
+ &:nth-child(2) {
142
+ margin-left: 50px;
143
+ }
144
+ }
145
+ }
146
+ @media only screen and (min-width: 768px) {
147
+ grid-template-columns: 40px 1fr max-content;
148
+ background-color: transparent;
149
+ border-bottom: 0;
150
+ &:hover {
151
+ background-color: transparent;
152
+ }
153
+ ${TableRowGroup},
154
+ ${TableRightGroup} {
155
+ display: grid;
156
+ }
157
+ > div {
158
+ &:nth-child(1) {
159
+ display: grid;
160
+ }
161
+ &:nth-child(2) {
162
+ > div:nth-child(2) {
163
+ > span:nth-child(1) {
164
+ display: none;
165
+ }
166
+ }
167
+ }
168
+ &:nth-child(3) {
169
+ > div:nth-child(1) {
170
+ display: none;
246
171
  }
247
172
  }
248
173
  }
249
- @media only screen and (min-width: 1024px) {
250
- > section,
251
- > article {
252
- > aside {
253
- padding-left: 0;
254
- padding-right: 0;
174
+ }
175
+ @media only screen and (min-width: 1024px) {
176
+ > div {
177
+ &:nth-child(2) {
178
+ > div:nth-child(2) {
179
+ > span:nth-child(1) {
180
+ display: block;
181
+ }
182
+ }
183
+ }
184
+ &:nth-child(3) {
185
+ > div:nth-child(1) {
186
+ display: grid;
255
187
  }
256
188
  }
257
189
  }
258
- `
259
- }
260
- }}
261
- `
262
- export const BreadcrumbContainer = styled.aside`
263
- position: relative;
264
- padding: 18px 16px;
265
- text-align: center;
266
- > a {
267
- &:first-child {
268
- display: none;
269
- }
270
- &:nth-child(2) {
271
- display: inline;
272
- position: absolute;
273
- top: 20px;
274
- left: .625em;
275
- }
276
- > i {
277
- float: left;
278
- margin-right: 6px;
279
- }
280
- }
281
- span {
282
- display: none;
283
- }
284
- @media only screen and (min-width: 375px) {
285
- > a {
286
- &:nth-child(2) {
287
- left: 16px;
288
190
  }
289
- }
290
- }
291
- @media only screen and (min-width: 768px) {
292
- padding: 8px 30px 20px;
293
- text-align: left;
294
- b {
295
- font-size: .875rem;
296
- line-height: 1;
297
- }
298
- span {
299
- display: inline;
300
- }
301
- a {
302
- &:first-child {
303
- display: inline;
191
+ `
192
+ } else if ($mode === 'picklist-detail') {
193
+ style +=`
194
+ padding-top: 16px;
195
+ padding-bottom: 10px;
196
+ grid-template-columns: 1fr max-content;
197
+ background-color: transparent;
198
+ &:hover {
199
+ background-color: transparent;
304
200
  }
305
- &:nth-child(2) {
306
- display: none;
201
+ ${TableRightGroup} {
202
+ justify-content: start;
203
+ padding-top: 12px;
307
204
  }
308
- }
309
- }
310
- `
311
- export const InfoGroup = styled.div`
312
- display: inline-grid;
313
- grid-auto-flow: column;
314
- grid-template-columns: minmax(140px, 150px) minmax(140px, 1fr);
315
- grid-gap: 5px;
316
- width: 100%;
317
- justify-content: left;
318
- margin-bottom: 14px;
319
- > span:first-child {
320
- position: relative;
321
- &:after {
322
- position: absolute;
323
- right: 5px;
324
- content: ":";
325
- }
326
- }
327
- div {
328
- overflow-wrap: break-word;
329
- word-break: break-word;
330
- }
331
- `
332
- export const MuteLabel = styled.span<{ $size?: string }>`
333
- color: var(--mt-clr);
334
- font-size: 12px;
335
- word-break: break-all;
336
- &._refWithIcon {
337
- display: grid;
338
- grid-auto-flow: column;
339
- justify-content: start;
340
- grid-gap: 4px;
341
- * {
342
- margin-right: 0;
343
- }
344
- }
345
- ${({ $size }:{ $size?: string }) => {
346
- if ($size === 'medium')
347
- return css`
348
- font-size: 13px;
349
- line-height: 12px;
350
- * {
351
- margin-right: 4px;
205
+ @media only screen and (min-width: 768px) {
206
+ border-bottom: 0;
207
+ ${TableRightGroup} {
208
+ justify-content: end;
209
+ padding-top: 0;
210
+ }
211
+ }
212
+ `
213
+ } else if ($mode === 'product-detail') {
214
+ style +=`
215
+ grid-gap: 10px;
216
+ padding-top: 16px;
217
+ padding-bottom: 10px;
218
+ & ${TableRightGroup} {
219
+ justify-content: start;
220
+ }
221
+ @media only screen and (min-width: 768px) {
222
+ grid-template-rows:none;
223
+ grid-template-columns: 1fr max-content;
224
+ min-height: 73px;
225
+ border-bottom: 0;
226
+ }
227
+ `
228
+ } else if ($mode === 'chat') {
229
+ style +=`
230
+ padding: 0;
231
+ align-items: center;
232
+ grid-template-columns: 30px 1fr max-content;
233
+ position: relative;
234
+ top: 50%;
235
+ transform: translateY(-50%);
236
+ grid-gap: 8px;
237
+ margin-left: 16px;
238
+ ${TableRowGroup} {
239
+ ${TableColumnGroup} {
240
+ span {
241
+ ${elipsis}
242
+ }
243
+ }
244
+ }
245
+ @media only screen and (min-width: 768px) {
246
+ border-bottom: 0;
247
+ grid-gap: 8px;
248
+ }
249
+ @media only screen and (min-width: 1280px) {
250
+ grid-template-columns: 30px 1fr max-content;
251
+ padding: 0 16px 0 16px;
252
+ top: 0;
253
+ transform: none;
254
+ margin-left: 0;
255
+ ${TableRowGroup},
256
+ ${TableRightGroup} {
257
+ display: grid;
258
+ }
259
+ ${TableRowGroup} {
260
+ ${TableColumnGroup} {
261
+ grid-template-columns: auto;
262
+ &:first-child {
263
+ margin-bottom: 3px;
264
+ }
265
+ }
266
+ }
267
+ > div {
268
+ position: relative;
269
+ padding: 0;
270
+ &:nth-child(2) {
271
+ display: block;
272
+ }
273
+ :nth-child(4) {
274
+ padding-top: 21px;
275
+ }
276
+ }
277
+ }
278
+ `
279
+ } else if ($mode === 'category') {
280
+ style +=`
281
+ & ${TableHeadLabel} {
282
+ &:last-child {
283
+ cursor: pointer;
284
+ &:after {
285
+ display: inline-block;
286
+ }
287
+ }
288
+ }
289
+ `
290
+ }
291
+ return style
292
+ }
293
+ const getTabsRowModFunc = ({ $content, $mode }:{ $content?: string, $mode?: string }) => {
294
+ let style = ``
295
+ if ($content === 'right') {
296
+ style +=`
297
+ grid-gap: 4px;
298
+ justify-content: right;
299
+ justify-items: right;
300
+ align-self: start;
301
+ span {
302
+ &:last-child {
303
+ text-align: right;
304
+ }
305
+ }
306
+ `
307
+ } else if ($content === 'right-amount') {
308
+ style += `
309
+ grid-gap: 10px;
310
+ justify-content: right;
311
+ justify-items: right;
312
+ align-self: center;
313
+ `
314
+ }
315
+ if ($mode === 'items') {
316
+ style +=`
317
+ padding-right: 2px;
318
+ grid-gap: 2px;
319
+ align-content: start;
320
+ display: grid !important;
321
+ margin-left: -6px;
322
+ > strong {
323
+ ${multiElipsis}
324
+ }
325
+ `
326
+ } else if ($mode === 'list-items') {
327
+ style +=`
328
+ position: relative;
329
+ grid-gap: 10px;
330
+ `
331
+ } else if ($mode === 'master-detail-img') {
332
+ style +=`
333
+ justify-items: center;
334
+ span {
335
+ text-align: center;
336
+ width: 50px;
337
+ overflow-wrap: break-word;
338
+ }
339
+ `
340
+ } else if ($mode === 'item-sale-price') {
341
+ style +=`
342
+ grid-gap: 2px;
343
+ `
344
+ }
345
+ return style
346
+ }
347
+ const getTabsColumnModFunc = ({ $mode, $content }:{ $mode?: string, $content?: string }) => {
348
+ let style = ``
349
+ if ($mode === 'items-detail') {
350
+ style +=`
351
+ grid-gap: 16px;
352
+ align-items: start;
353
+ grid-template-columns: 30px 1fr;
354
+ ${TableRowGroup} {
355
+ display: block;
356
+ }
357
+ @media only screen and (min-width: 768px) {
358
+ ${TableRowGroup} {
359
+ display: grid;
360
+ }
361
+ }
362
+ `
363
+ } else if ($mode === 'store') {
364
+ style +=`
365
+ align-items: center;
366
+ grid-gap: 4px;
367
+ > div > span {
368
+ font-size: 10px;
369
+ }
370
+ > div:first-child {
371
+ align-self: start;
372
+ }
373
+ > *:nth-child(2) {
374
+ ${elipsis}
375
+ }
376
+ `
377
+ } else if ($mode === 'store-static') {
378
+ style +=`
379
+ align-items: center;
380
+ grid-gap: 6px;
381
+ position: relative;
382
+ padding-left: 24px;
383
+ > div > span {
384
+ font-size: 10px;
385
+ }
386
+ > div:first-child {
387
+ position: absolute;
388
+ top: 50%;
389
+ left: 0;
390
+ margin-top: -10px;
391
+ }
392
+ > *:nth-child(2) {
393
+ ${multiElipsis}
394
+ }
395
+ `
396
+ } else if ($mode === 'amount') {
397
+ style +=`
398
+ width: 100%;
399
+ grid-gap: 20px;
400
+ grid-template-columns: 180px 1fr;
401
+ justify-content: right;
402
+ justify-items: right;
403
+ font-size: 15px;
404
+ ${ItemPriceLabel} {
405
+ text-align: right;
406
+ display: block;
407
+ width: 100%;
408
+ }
409
+ `
410
+ } else if ($mode === 'account-amount') {
411
+ style +=`
412
+ width: 100%;
413
+ grid-gap: 20px;
414
+ grid-template-columns: 360px 1fr;
415
+ justify-content: right;
416
+ justify-items: right;
417
+ font-size: 15px;
418
+ ${ItemPriceLabel} {
419
+ text-align: right;
420
+ display: block;
421
+ width: 100%;
422
+ }
423
+ `
424
+ } else if ($mode === 'product') {
425
+ style +=`
426
+ display: grid;
427
+ grid-auto-flow: column;
428
+ justify-content: left;
429
+ grid-gap: ${ $content === 'store' ? '6px' : '8px'};
430
+ grid-template-columns: ${ $content === 'store' ? '28px 1fr' : ($content === 'checkbox') ? '16px 34px 1fr' : '34px 1fr'};
431
+ align-items: start;
432
+ > div:first-child {
433
+ height: ${ $content === 'store' ? '28px' : '34px'};
434
+ }
435
+ > aside {
436
+ align-items: center;
437
+ display: grid;
438
+ line-height: 15px;
439
+ }
440
+ ${TableLabel} {
441
+ display: inline-grid;
442
+ grid-auto-flow: row;
443
+ grid-gap: 2px;
444
+ align-self: center;
445
+ > div:first-child {
446
+ ${multiElipsis}
447
+ line-height: ${ $content === 'store' ? '14px' : '17px'};
448
+ }
449
+ > span {
450
+ ${elipsis}
451
+ }
452
+ ${TableColumnGroup} {
453
+ > div:first-child {
454
+ line-height: 8px;
455
+ }
456
+ }
457
+ }
458
+ `
459
+ } else if ($mode === 'contra') {
460
+ style +=`
461
+ grid-auto-flow: row;
462
+ align-items: start;
463
+ @media only screen and (min-width: 1024px) {
464
+ grid-auto-flow: column;
465
+ }
466
+ `
467
+ }
468
+ if ($content === 'right') {
469
+ style +=`
470
+ grid-gap: 10px;
471
+ justify-content: end;
472
+ align-items: center;
473
+ > div {
474
+ min-width: 170px;
475
+ width: 170px;
476
+ }
477
+ `
478
+ }
479
+ return style
480
+ }
481
+ const getNameModFunc = ({ $mode }:{ $mode?: string }) => {
482
+ let style = ``
483
+ if ($mode === 'dropship') {
484
+ style +=`
485
+ display: inline-grid;
486
+ grid-auto-flow: column;
487
+ grid-template-columns: auto max-content;
488
+ grid-gap: 8px;
489
+ align-items: center;
490
+ `
491
+ } else if ($mode === 'header') {
492
+ style +=`
493
+ font-size: 22px;
494
+ ${multiElipsis}
495
+ line-height: 1;
496
+ `
497
+ }
498
+ return style
499
+ }
500
+ const getTabsWrapperModFunc =({ $mode }:{ $mode?: string }) => {
501
+ let style = ``
502
+ if ($mode === 'detail') {
503
+ style += `
504
+ width: 100%;
505
+ > article {
506
+ min-width: auto;
507
+ width: 100%;
508
+ }
509
+ `
510
+ } else if ($mode === 'master-listing') {
511
+ style += `
512
+ width: 100%;
513
+ ${TabsList} {
514
+ width: 100%;
515
+ justify-content: start;
516
+ padding: 0;
517
+ border-bottom: 1px solid #DEE0E0;
518
+ }
519
+ ${TabsItem} {
520
+ font-size: 14px;
521
+ }
522
+ `
523
+ } else if ($mode === 'chat-account' || $mode === 'chat-complement') {
524
+ style += `
525
+ ${TabsHeader} {
526
+ width: 100vw;
527
+ margin: 0;
528
+ }
529
+ ${TabsList} {
530
+ border-bottom: 1px solid #DEE0E0;
531
+ }
532
+ ${TabsItem} {
533
+ padding-left: 10px;
534
+ padding-right: 10px;
535
+ }
536
+ @media only screen and (min-width: 1024px) {
537
+ ${TabsHeader} {
538
+ width: 100%;
539
+ min-width: unset;
540
+ max-width: unset;
541
+ }
542
+ }
543
+ @media only screen and (min-width: 1280px) {
544
+ ${TabsList} {
545
+ padding-left: 1em;
546
+ padding-right: 1em;
547
+ }
548
+ ${TabsItem} {
549
+ font-size: 15px;
550
+ padding-left: 6px;
551
+ padding-right: 6px;
552
+ }
553
+ }
554
+ @media only screen and (min-width: 1366px) {
555
+ ${TabsItem} {
556
+ padding-left: 8px;
557
+ padding-right: 8px;
558
+ }
559
+ }
560
+ @media only screen and (min-width: 1920px) {
561
+ ${TabsItem} {
562
+ padding-left: 10px;
563
+ padding-right: 10px;
564
+ }
565
+ }
566
+ `
567
+ } else if ($mode === 'chat-complement') {
568
+ style += `
569
+ ${TabsItem} {
570
+ padding: 16px 10px 11px 10px;
571
+ }
572
+ `
573
+ }
574
+ return style
575
+ }
576
+ const getTableItemWrapperModFunc = ({ $mode, $isBorder, $isPopup }:{ $mode: string, $isBorder?: boolean, $isPopup?: boolean }) => {
577
+ let style = `
578
+ ${TableItemColumn} {
579
+ width: 960px;
580
+ border-bottom: 1px solid var(--pri-clr-ln);
581
+ &:first-child {
582
+ border-bottom: 1px solid var(--sec-clr-ln);
583
+ display: grid;
584
+ > * {
585
+ padding: 0 10px 12px;
586
+ }
587
+ }
588
+ &:last-child {
589
+ border-bottom: none;
590
+ }
591
+ > * {
592
+ padding: 15px 10px;
593
+ }
594
+ &[role='rowheader'] {
595
+ ${headTable}
596
+ color: var(--mt-clr);
597
+ }
598
+ }
599
+ @media only screen and (min-width: 1024px) {
600
+ overflow-x: unset;
601
+ ${TableItemColumn} {
602
+ width: unset
603
+ }
604
+ }
605
+ `
606
+ if ($mode === 'order') {
607
+ style += `
608
+ ${TableItemColumn} {
609
+ grid-template-columns: auto var(--warehouse) var(--status-big) var(--qty-pd20-big) repeat(2, var(--price-pd20));
610
+ > div {
611
+ &:last-child,
612
+ &:nth-last-child(2),
613
+ &:nth-last-child(3) {
614
+ text-align: right;
615
+ }
616
+ }
617
+ }
618
+ `
619
+ } else if ($mode === 'picklist') {
620
+ style += `
621
+ ${TableItemColumn} {
622
+ grid-template-columns: auto var(--ref-pd20) var(--ref) var(--status) var(--status) repeat(3, var(--qty-small));
623
+ @media only screen and (min-width: 1366px) {
624
+ grid-template-columns: auto var(--ref-pd20) minmax(85px, 120px) minmax(105px, 155px) minmax(105px, 133px) repeat(3, var(--qty-small));
625
+ }
626
+ @media only screen and (min-width: 1512px) {
627
+ grid-template-columns: auto var(--ref-pd20) minmax(85px, 120px) minmax(105px, 155px) minmax(105px, 133px) repeat(3, minmax(88px, 103px));
628
+ }
629
+ @media only screen and (min-width: 1800px) {
630
+ grid-template-columns: auto var(--store) var(--ref-pd20) minmax(105px, 155px) minmax(105px, 155px) repeat(3, minmax(88px, 103px));
631
+ }
632
+ >div {
633
+ &:nth-child(n+6) { text-align: right; }
634
+ }
635
+ }
636
+ `
637
+ } else if ($mode === 'package') {
638
+ style += `
639
+ ${TableItemColumn} {
640
+ grid-template-columns: auto repeat(2, var(--qty-pd20-big));
641
+ > div:not(:first-child) {
642
+ text-align: right;
643
+ }
644
+ }
645
+ `
646
+ } else if ($mode === 'shipment') {
647
+ style += `
648
+ ${TableItemColumn} {
649
+ grid-template-columns: auto var(--ref-big) repeat(2, var(--qty-pd20-big));
650
+ > div:not(:first-child) {
651
+ text-align: right;
652
+ }
653
+ }
654
+ `
655
+ } else if ($mode === 'payment-receive') {
656
+ style += `
657
+ ${TableItemColumn} {
658
+ grid-template-columns: var(--id-big) var(--ref-pd20) var(--store) var(--ref-pd20) var(--time-pd20) 1fr;
659
+ > div {
660
+ &:last-child {
661
+ text-align: right;
662
+ }
663
+ }
664
+ }
665
+ `
666
+ } else if ($mode === 'item') {
667
+ style += `
668
+ ${TableItemColumn} {
669
+ grid-template-columns: var(--variant-pd20) var(--sku-pd20) var(--qty-pd20-big) repeat(2, var(--price-pd20)) var(--sku-pd20);
670
+ }
671
+ `
672
+ } else if ($mode === 'bundle') {
673
+ style += `
674
+ ${TableItemColumn} {
675
+ grid-template-columns: 1fr 145px 130px 130px 100px 130px 60px;
676
+ &:last-child {
677
+ border-bottom: 1px solid var(--pri-clr-ln);
678
+ }
679
+ > section {
680
+ display: grid;
681
+ align-items: center;
682
+ align-content: start;
683
+ &.list-price {
684
+ > div {
685
+ padding-top: 8px;
686
+ }
687
+ }
688
+ &:last-child {
689
+ padding-top: 20px;
690
+ }
691
+ }
692
+ > section,
693
+ > div {
694
+ text-align: right;
695
+ &:first-child {
696
+ text-align: left;
697
+ }
698
+ }
699
+ @media only screen and (min-width: 1280px) {
700
+ grid-template-columns: 1fr 145px 160px 150px 112px 130px 60px;
701
+ }
702
+ }
703
+ `
704
+ } else if ($mode === 'item-listing') {
705
+ style += `
706
+ &:not(:first-child) {
707
+ margin-top: 30px;
708
+ }
709
+ ${TableItemColumn} {
710
+ width: ${$isPopup ? '834px' : '940px' };
711
+ grid-template-columns: ${$isPopup ? 'auto var(--variant-small) var(var(--qty-small)) var(--price) var(--status-small) 90px' : 'auto var(--variant) var(--qty-big) var(--price) var(--status-small) minmax(90px, 100px)'};
712
+ &:last-child {
713
+ ${$isPopup ? 'border-bottom: 0 !important' : ''}
714
+ }
715
+ > *:nth-child(6) {
716
+ text-align: right;
717
+ }
718
+ }
719
+ @media only screen and (min-width: 1024px) {
720
+ ${TableItemColumn} {
721
+ width: unset;
722
+ }
723
+ }
724
+ `
725
+ } else if ($mode === 'item-bundle') {
726
+ style += `
727
+ &:not(:first-child) {
728
+ margin-top: 30px;
729
+ }
730
+ ${TableItemColumn} {
731
+ width: ${$isPopup ? '834px' : '940px' };
732
+ grid-template-columns: ${$isPopup ? 'auto var(--variant-small) var(--qty-small) var(--qty-big)' : 'auto var(--variant) var(--qty-pd20-big) var(--qty-pd20-big)'};
733
+ &:last-child {
734
+ ${$isPopup ? 'border-bottom: 0 !important' : ''}
735
+ }
736
+ }
737
+ @media only screen and (min-width: 768px) {
738
+ ${TableItemColumn} {
739
+ width: unset;
740
+ }
741
+ }
742
+ `
743
+ } else if ($mode === 'invoice') {
744
+ style += `
745
+ ${TableItemColumn} {
746
+ grid-template-columns: auto var(--status) var(--qty-pd20-big) repeat(3, var(--price-pd20));
747
+ > *:not(:first-child) {
748
+ text-align: right;
749
+ }
750
+ }
751
+ `
752
+ } else if ($mode === 'stock') {
753
+ style += `
754
+ ${TableItemColumn} {
755
+ grid-template-columns: auto var(--variant-pd20) var(--sku-pd20) var(--qty-pd20-big) var(--qty-pd20-big);
756
+ > div:not(:first-child) {
757
+ text-align: right;
758
+ }
759
+ }
760
+ `
761
+ } else if ($mode === 'inbound') {
762
+ style += `
763
+ ${TableItemColumn} {
764
+ grid-template-columns: var(--time-pd20) auto var(--variant-pd20) var(--sku-pd20) var(--status-big) minmax(110px, 150px) minmax(110px, 150px);
765
+ }
766
+ `
767
+ } else if ($mode === 'priceadjustment') {
768
+ style += `
769
+ ${TableItemColumn} {
770
+ grid-template-columns: var(--sku) auto var(--store) var(--price-pd20) var(--price-pd20) var(--price) var(--price) var(--time) var(--time);
771
+ }
772
+ `
773
+ } else if ($mode === 'add-item') {
774
+ style += `
775
+ ${TableItemColumn} {
776
+ grid-template-columns: 30px auto 100px 156px 128px;
777
+ &:first-child {
778
+ > div {
779
+ padding-bottom: 16px;
780
+ }
781
+ }
782
+ > div:first-child {
783
+ padding-left: 16px;
784
+ > label {
785
+ > span {
786
+ top: 0;
787
+ margin-top: 0;
788
+ }
789
+ }
790
+ }
791
+ ._refCheckboxMark {
792
+ top: 0;
793
+ margin-top: 0;
794
+ }
795
+ }
796
+ ${TableItemColumn},
797
+ ._refProductList {
798
+ width: 700px;
799
+ }
800
+ `
801
+ } else if ($mode === 'add-item-price') {
802
+ style += `
803
+ ${TableItemColumn} {
804
+ grid-template-columns: 30px auto 100px 156px 128px;
805
+ &:first-child {
806
+ > div {
807
+ padding-bottom: 16px;
808
+ }
809
+ }
810
+ > div:first-child {
811
+ padding-left: 16px;
812
+ > label {
813
+ > span {
814
+ top: 0; margin-top: 0;
815
+ }
816
+ }
817
+ }
818
+ ._refCheckboxMark {
819
+ top: 0;
820
+ margin-top: 0;
821
+ }
822
+ }
823
+ ${TableItemColumn}, ._refProductList {
824
+ width: 700px;
825
+ }
826
+ `
827
+ } else if ($mode === 'inventory-qty') {
828
+ style += `
829
+ overflow: auto;
830
+ ${TableItemColumn} {
831
+ display: flex;
832
+ &:first-child {
833
+ display: flex;
834
+ }
835
+ &:last-child {
836
+ border-bottom: 1px solid var(--pri-clr-ln);
837
+ }
838
+ .column-batch-id {
839
+ min-width: 95px;
840
+ max-width: 110px;
841
+ flex: 1;
842
+ }
843
+ .column-created-date {
844
+ min-width: var(--time-pd20-min);
845
+ max-width: var(--time-pd20-max);
846
+ flex: 1;
847
+ }
848
+ .column-expiry-date {
849
+ min-width: var(--time-pd20-min);
850
+ max-width: var(--time-pd20-max);
851
+ flex: 1;
852
+ }
853
+ .column-location {
854
+ min-width: 85px;
855
+ max-width: 100px;
856
+ flex: 1;
857
+ }
858
+ .column-serial-numbers {
859
+ min-width: 120px;
860
+ max-width: 250px;
861
+ flex: 1;
862
+ }
863
+ .column-qty-on-hand-total {
864
+ min-width: 115px;
865
+ max-width: 120px;
866
+ flex: 1;
867
+ }
868
+ .column-qty-on-hand-damage {
869
+ min-width: var(--qty-pd20-big-min);
870
+ max-width: var(--qty-pd20-big-max);
871
+ flex: 1;
872
+ }
873
+ .column-qty-on-hand-normal {
874
+ min-width: var(--qty-pd20-big-min);
875
+ max-width: var(--qty-pd20-big-max);
876
+ flex: 1;
877
+ }
878
+ .column-qty-reserved {
879
+ min-width: var(--qty-pd20-big-min);
880
+ max-width: var(--qty-pd20-big-max);
881
+ flex: 1;
882
+ }
883
+ .column-qty-picked {
884
+ min-width: var(--qty-pd20-big-min);
885
+ max-width: var(--qty-pd20-big-max);
886
+ flex: 1;
887
+ }
888
+ .column-qty-packed {
889
+ min-width: var(--qty-pd20-big-min);
890
+ max-width: var(--qty-pd20-big-max);
891
+ flex: 1;
892
+ }
893
+ .column-qty-handover {
894
+ min-width: var(--qty-pd20-big-min);
895
+ max-width: var(--qty-pd20-big-max);
896
+ flex: 1;
897
+ }
898
+ .column-qty-promotions {
899
+ min-width: 125px;
900
+ max-width: 130px;
901
+ flex: 1;
902
+ }
903
+ .column-qty-available-to-sell {
904
+ min-width: var(--qty-pd20-big-min);
905
+ max-width: var(--qty-pd20-big-max);
906
+ flex: 1;
907
+ }
908
+ .column-qty-in-transit {
909
+ min-width: var(--qty-pd20-big-min);
910
+ max-width: var(--qty-pd20-big-max);
911
+ flex: 1;
912
+ }
913
+ .column-qty-waiting-inbound {
914
+ min-width: var(--qty-pd20-big-min);
915
+ max-width: var(--qty-pd20-big-max);
916
+ flex: 1;
917
+ }
918
+ .column-qty-inbounded {
919
+ min-width: 120px;
920
+ max-width: 130px;
921
+ flex: 1;
922
+ }
923
+ .column-qty-waiting-outbound {
924
+ min-width: var(--qty-pd20-big-min);
925
+ max-width: var(--qty-pd20-big-max);
926
+ flex: 1;
927
+ }
928
+ }
929
+ `
930
+ } else if ($mode === 'putaway') {
931
+ style += `
932
+ ${TableItemColumn} {
933
+ &[role=rowheader] {
934
+ grid-template-columns: var(--item) var(--variant-pd20) var(--sku-pd20) max-content;
935
+ > div[role=group] {
936
+ padding: 0;
937
+ display: grid;
938
+ grid-template-columns: var(--time) minmax(110px, 200px) var(--id) var(--status) var(--status) var(--status) var(--status-big) var(--qty-big) var(--qty-big);
939
+ > div {
940
+ padding: 0 10px 12px;
941
+ }
942
+ }
943
+ }
944
+ &[role=row] {
945
+ grid-template-columns: var(--item) var(--variant-pd20) var(--sku-pd20) max-content;
946
+ > div[role=group] {
947
+ padding: 0;
948
+ > div[role=rowgroup] {
949
+ display: grid;
950
+ grid-template-columns: var(--time) minmax(110px, 200px) var(--id) var(--status) var(--status) var(--status) var(--status-big) var(--qty-big) var(--qty-big);
951
+ > div {
952
+ padding: 15px 10px;
953
+ }
954
+ }
955
+ }
956
+ }
957
+ }
958
+ `
959
+ } else if ($mode === 'stock-adjustment') {
960
+ style += `
961
+ ${TableItemColumn} {
962
+ grid-template-columns: auto var(--variant-pd20) var(--sku-pd20) var(--qty-pd20-big) minmax(135px, 140px) var(--qty-pd20-big);
963
+ }
964
+ `
965
+ } else if ($mode === 'confirm') {
966
+ style += `
967
+ ${TableItemColumn} {
968
+ grid-template-columns: auto 120px 120px 100px 120px;
969
+ }
970
+ `
971
+ } else if ($mode === 'confirm-adjustment') {
972
+ style += `
973
+ ${TableItemColumn} {
974
+ grid-template-columns: auto 120px 120px 90px 90px 90px;
975
+ }
976
+ `
977
+ } else if ($mode === 'add-item' || $mode === 'add-item-price' || $mode === 'add-location') {
978
+ const columnStyle = ($mode === 'add-item-price' || $mode === 'add-item') ? '30px auto 100px 156px 128px' : '30px 115px 105px 130px 110px 110px'
979
+ style += `
980
+ ${TableItemColumn} {
981
+ grid-template-columns: ${columnStyle};
982
+ &:first-child {
983
+ > div {
984
+ padding-bottom: 16px;
985
+ }
986
+ }
987
+ > div:first-child {
988
+ padding-left: 16px;
989
+ > label {
990
+ > span {
991
+ top: 0; margin-top: 0;
992
+ }
993
+ }
994
+ }
995
+ ._refCheckboxMark {
996
+ top: 0;
997
+ margin-top: 0;
998
+ }
999
+ }
1000
+ ${TableItemColumn}._refProductList {
1001
+ width: 700px;
1002
+ }
1003
+ `
1004
+ } else if ($mode === 'priceadjustment') {
1005
+ style += `
1006
+ ${TableItemColumn} {
1007
+ grid-template-columns: auto var(--price-pd20) var(--price-pd20);
1008
+ > div:not(:first-child) {
1009
+ text-align: right;
1010
+ }
1011
+ }
1012
+ `
1013
+ } else if ($mode === 'link-master') {
1014
+ style += `
1015
+ &:not(:first-child) {
1016
+ margin-top: 30px;
1017
+ }
1018
+ ${TableItemColumn} {
1019
+ grid-template-columns: 1fr 120px 105px;
1020
+ }
1021
+ `
1022
+ } else if ($mode === 'promotion') {
1023
+ style += `
1024
+ padding-top: 16px;
1025
+ ${TableItemColumn} {
1026
+ grid-template-columns: auto var(--price) var(--price) minmax(150px, 175px) var(--qty-pd20-big);
1027
+ > *:not(:first-child) {
1028
+ text-align: right;
1029
+ }
1030
+ }
1031
+ `
1032
+ } else if ($mode === 'warehouse') {
1033
+ style += `
1034
+ ${TableItemColumn} {
1035
+ >*:last-child { text-align: right; }
1036
+ grid-template-columns: var(--warehouse) auto var(--time-pd20) minmax(120px, 150px);
1037
+ }
1038
+ `
1039
+ } else if ($mode === 'item-stock') {
1040
+ style += `
1041
+ ${TableItemColumn} {
1042
+ &[role=rowheader] {
1043
+ grid-template-columns: 310px 270px var(--qty-pd20);
1044
+ }
1045
+ &[role=row] {
1046
+ grid-template-columns: 310px auto;
1047
+ }
1048
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
1049
+ ._refCollapse > div,
1050
+ ._refCollapseContainer > div {
1051
+ padding-bottom: 1em;
1052
+ &:nth-child(n+2) {
1053
+ border-top: 1px solid rgb(245, 245, 245);
1054
+ padding-top: 16px;
1055
+ }
1056
+ &:last-child {
1057
+ padding-bottom: 0;
1058
+ }
1059
+ }
1060
+ &[role=rowheader] > div[role=group],
1061
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
1062
+ ._refCollapse > div:not(._refCollapseContainer),
1063
+ ._refCollapseContainer > div {
1064
+ grid-template-columns: 270px var(--qty-pd20);
1065
+ }
1066
+
1067
+ }
1068
+ `
1069
+ }
1070
+ if ($isBorder) {
1071
+ style += `
1072
+ ${TableItemColumn} {
1073
+ &:last-child {
1074
+ border-bottom: 1px solid var(--pri-clr-ln);
1075
+ }
1076
+ }
1077
+ `
1078
+ }
1079
+ return style
1080
+ }
1081
+ const getTableItemModFunc = ({ $mode }:{ $mode?: string }) => {
1082
+ let style = `
1083
+ &._refItemContainer {
1084
+ ${TableColumnGroup} {
1085
+ grid-gap: 10px;
1086
+ }
1087
+ }
1088
+ `
1089
+ if ($mode === 'amount') {
1090
+ style += `
1091
+ grid-auto-flow: column;
1092
+ grid-template-columns: 1fr;
1093
+ > aside {
1094
+ padding: 20px 10px;
1095
+ }
1096
+ > aside.list-price {
1097
+ display: grid;
1098
+ grid-gap: 11px;
1099
+ }
1100
+ > aside.list-info {
1101
+ display: none;
1102
+ }
1103
+ @media only screen and (min-width: 768px) {
1104
+ > aside.list-info {
1105
+ display: grid;
1106
+ span {
1107
+ color: var(--hd-clr);
1108
+ }
1109
+ }
1110
+ }
1111
+ `
1112
+ } else if ($mode === 'detail-amount') {
1113
+ style +=`
1114
+ grid-auto-flow: column;
1115
+ grid-template-columns: 1fr;
1116
+ > aside {
1117
+ padding: 20px 10px;
1118
+ }
1119
+ > aside.list-price {
1120
+ display: grid;
1121
+ grid-gap: 11px;
1122
+ }
1123
+ > aside.list-info {
1124
+ display: none;
1125
+ }
1126
+ @media only screen and (min-width: 768px) {
1127
+ > aside.list-info {
1128
+ display: grid;
1129
+ }
1130
+ }
1131
+ `
1132
+ }
1133
+ return style;
1134
+ }
1135
+ const getPageWrapperModFunc = ({ $mode }:{ $mode?: string }) => {
1136
+ let style = ``;
1137
+ if ($mode === 'noPageOption') {
1138
+ style += `
1139
+ @media only screen and (min-width: 768px) {
1140
+ > div:first-child {
1141
+ justify-content: center;
1142
+ }
1143
+ }
1144
+ `
1145
+ }
1146
+ return style;
1147
+ }
1148
+ const getPageButtonModFunc = ({ $activated, $disabled }:{ $activated?: boolean, $disabled?: boolean }) => {
1149
+ let style = ``;
1150
+ if ($activated) {
1151
+ style +=`
1152
+ border-color: var(--act-clr-ln);
1153
+ color: var(--sta-clr);
1154
+ font-weight: 600;
1155
+ `
1156
+ } else if ($disabled) {
1157
+ style +=`
1158
+ background: var(--mt-clr-bg);
1159
+ border-color: var(--ck-clr-ln);
1160
+ opacity: .5;
1161
+ cursor: auto;
1162
+ `
1163
+ }
1164
+ return style;
1165
+ }
1166
+ const getSearchFilterContainerModFunc = ({ $mode }:{ $mode?: string }) => {
1167
+ let style = ``
1168
+ if ($mode === 'detail') {
1169
+ style +=`
1170
+ padding-bottom: 10px;
1171
+ `
1172
+ }
1173
+ return style
1174
+ }
1175
+ const getSearchWrapperModFunc = ({ width }:{ width?: string }) => {
1176
+ let style = ``
1177
+ if (width) {
1178
+ const _width = width ? parseInt(width) : 0
1179
+ style += `
1180
+ grid-template-columns: ${(_width + 5)+'px'} 1fr;
1181
+ button {
1182
+ width: ${width};
1183
+ }
1184
+ `
1185
+ }
1186
+ return style
1187
+ }
1188
+ const getListTableFunc = ({ $mode }:{ $mode?: string }) => {
1189
+ let style = ``
1190
+ if ($mode === 'item') {
1191
+ style += `
1192
+ ${ItemTable} {
1193
+ grid-template-columns: var(--checkbox) var(--item) minmax(auto, max-content) var(--time) minmax(88px, auto);
1194
+ &[role=rowheader] > div[role=group],
1195
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
1196
+ ._refCollapse > div:not(._refCollapseContainer),
1197
+ ._refCollapseContainer > div {
1198
+ grid-template-columns: var(--variant) var(--sku) var(--qty-big) var(--price) var(--status-small);
1199
+ }
1200
+ input[name=checkbox-list] {
1201
+ & + span {
1202
+ top: 8px;
1203
+ }
1204
+ }
1205
+ }
1206
+ `
1207
+ } else if ($mode === 'listing') {
1208
+ style += `
1209
+ ${ItemTable} {
1210
+ grid-template-columns: var(--checkbox) var(--item) minmax(auto, max-content) minmax(88px, auto);
1211
+ &[role=rowheader] > div[role=group],
1212
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
1213
+ ._refCollapse > div:not(._refCollapseContainer),
1214
+ ._refCollapseContainer > div {
1215
+ grid-template-columns: var(--variant) var(--sku) var(--sku) var(--qty-big) var(--price) var(--status-small);
1216
+ }
1217
+ input[name=checkbox-list] {
1218
+ & + span {
1219
+ top: 8px;
1220
+ }
1221
+ }
1222
+ }
1223
+ `
1224
+ } else if ($mode === 'quantity') {
1225
+ style += `
1226
+ overflow: hidden;
1227
+ padding: 0 10px;
1228
+ > div {
1229
+ overflow: auto;
1230
+ }
1231
+ ${ItemTable} {
1232
+ width: 100%;
1233
+ display: flex;
1234
+ margin: 0;
1235
+ padding: 0;
1236
+ grid-gap: 0;
1237
+ &[role=rowheader] > div[role=group],
1238
+ &[role=row] > div[role=group],
1239
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
1240
+ &[role=row] > div[role=cellgroup],
1241
+ ._refCollapse > div:not(._refCollapseContainer),
1242
+ ._refCollapseContainer > div {
1243
+ display: flex;
1244
+ flex: 2;
1245
+ grid-gap: 0;
1246
+ }
1247
+ &[role=row] > div[role=cellgroup] {
1248
+ flex-direction: column;
1249
+ }
1250
+ &[role=rowheader] > div[role=columnheader],
1251
+ &[role=rowheader] > div[role=group] > div[role=cell],
1252
+ &[role=row] > div[role=cell],
1253
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup] > div[role=cell],
1254
+ ._refCollapse > div:not(._refCollapseContainer) > div[role=cell],
1255
+ ._refCollapseContainer > div > div[role=cell] {
1256
+ flex-direction: column;
1257
+ padding: 16px 6px;
1258
+ align-self: stretch;
1259
+ width: 100%;
1260
+ }
1261
+ &[role=rowheader] > div[role=columnheader],
1262
+ &[role=rowheader] > div[role=group] > div[role=cell] {
1263
+ padding: 27px 6px 18px;
1264
+ }
1265
+ &[role=rowheader] {
1266
+ padding: 0;
1267
+ }
1268
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
1269
+ ._refCollapse > div,
1270
+ ._refCollapseContainer > div {
1271
+ padding-bottom: 0;
1272
+ padding-top: 0;
1273
+ &:nth-child(n+2) {
1274
+ padding-top: 0;
1275
+ }
1276
+ &:last-child {
1277
+ padding-bottom: 0;
1278
+ }
1279
+ }
1280
+ &:last-child {
1281
+ margin-bottom: 0;
1282
+ }
1283
+ .column-product {
1284
+ min-width: calc(var(--item-min) + 25px);
1285
+ max-width: calc(var(--item-max) + 25px);
1286
+ flex: 1;
1287
+ padding-left: 19px !important;
1288
+ }
1289
+ .column-master-sku {
1290
+ min-width: calc(var(--sku-min) + 12px);
1291
+ max-width: calc(var(--sku-max) + 12px);
1292
+ flex: 1;
1293
+ }
1294
+ .column-warehouse {
1295
+ min-width: calc(var(--warehouse-min) + 12px);
1296
+ max-width: calc(var(--warehouse-max) + 12px);
1297
+ flex: 3;
1298
+ }
1299
+ .column-on-hand-total {
1300
+ min-width: 87px;
1301
+ max-width: 97px;
1302
+ flex: 2;
1303
+ }
1304
+ .column-on-hand-damage {
1305
+ min-width: 97px;
1306
+ max-width: 102px;
1307
+ flex: 2;
1308
+ }
1309
+ .column-on-hand-normal {
1310
+ min-width: 97px;
1311
+ max-width: 102px;
1312
+ flex: 2;
1313
+ }
1314
+ .column-reserved-orders {
1315
+ min-width: 87px;
1316
+ max-width: 97px;
1317
+ flex: 2;
1318
+ }
1319
+ .column-picked {
1320
+ min-width: 87px;
1321
+ max-width: 97px;
1322
+ flex: 2;
1323
+ }
1324
+ .column-packed {
1325
+ min-width: 87px;
1326
+ max-width: 97px;
1327
+ flex: 2;
1328
+ }
1329
+ .column-handover {
1330
+ min-width: calc(var(--qty-big-min) + 12px);
1331
+ max-width: calc(var(--qty-big-max) + 12px);
1332
+ flex: 2;
1333
+ }
1334
+ .column-promotion-allocation {
1335
+ min-width: calc(var(--qty-big-min) + 12px);
1336
+ max-width: calc(var(--qty-big-max) + 12px);
1337
+ flex: 2;
1338
+ }
1339
+ .column-available-to-sell {
1340
+ min-width: 95px;
1341
+ max-width: 97px;
1342
+ flex: 2;
1343
+ }
1344
+ .column-in-transit {
1345
+ min-width: 95px;
1346
+ max-width: 97px;
1347
+ flex: 2;
1348
+ }
1349
+ .column-waiting-inbound {
1350
+ min-width: 95px;
1351
+ max-width: 97px;
1352
+ flex: 2;
1353
+ }
1354
+ .column-inbounded {
1355
+ min-width: 110px;
1356
+ max-width: 112px;
1357
+ flex: 2;
1358
+ }
1359
+ .column-waiting-outbound {
1360
+ min-width: 110px;
1361
+ max-width: 112px;
1362
+ flex: 2;
1363
+ }
1364
+ .column-last-updated {
1365
+ min-width: calc(var(--time-min) + 12px);
1366
+ max-width: calc(var(--time-max) + 12px);
1367
+ flex: 2;
1368
+ }
1369
+ .column-actions {
1370
+ min-width: 96px;
1371
+ flex: 1;
1372
+ padding-right: 12px !important;
1373
+ }
1374
+ }
1375
+ `
1376
+ } else if ($mode === 'picklist') {
1377
+ style += `
1378
+ ${ItemTable} {
1379
+ grid-template-columns: var(--checkbox) var(--time) var(--id) var(--status) var(--person) var(--warehouse) var(--ref) var(--time) minmax(185px, auto);
1380
+ }
1381
+ `
1382
+ } else if ($mode === 'package') {
1383
+ style += `
1384
+ ${ItemTable} {
1385
+ grid-template-columns: var(--checkbox) var(--time) var(--id) var(--status) var(--person) var(--warehouse) var(--person) var(--ref) var(--time) minmax(110px, auto);
1386
+ }
1387
+ `
1388
+ } else if ($mode === 'shipment') {
1389
+ style += `
1390
+ ${ItemTable} {
1391
+ grid-template-columns: var(--checkbox) var(--time) var(--id-big) var(--status) minmax(80px, 160px) minmax(80px, 160px) minmax(95px, 160px) var(--ref) minmax(140px, auto);
1392
+ }
1393
+ `
1394
+ } else if ($mode === 'invoice') {
1395
+ style += `
1396
+ ${ItemTable} {
1397
+ @media only screen and (max-width: 1279px) {
1398
+ width: unset;
1399
+ }
1400
+ grid-template-columns: var(--checkbox) var(--id-big) var(--status-small) var(--store) var(--price) var(--price) var(--ref) var(--person) var(--time) minmax(180px, auto);
1401
+ }
1402
+ `
1403
+ } else if ($mode === 'payment-receive') {
1404
+ style += `
1405
+ ${ItemTable} {
1406
+ grid-template-columns: var(--time) 155px var(--person) var(--qty) var(--price) minmax(110px, auto);
1407
+ }
1408
+ `
1409
+ } else if($mode ==='sales-return') {
1410
+ style += `
1411
+ ${ItemTable} {
1412
+ grid-template-columns: var(--id-big) var(--status) var(--warehouse) var(--person) var(--person) var(--ref-big) var(--time) minmax(120px, auto);
1413
+ }
1414
+ `
1415
+ } else if ($mode === 'activity') {
1416
+ style += `
1417
+ ${ItemTable} {
1418
+ grid-template-columns: var(--time) var(--id-big) var(--item) var(--status) var(--email) var(--status) var(--status) minmax(110px, auto);
1419
+ }
1420
+ `
1421
+ } else if ($mode === 'putaway') {
1422
+ style += `
1423
+ ${ItemTable} {
1424
+ grid-template-columns: var(--id) var(--status-big) var(--warehouse) var(--ref) var(--person) var(--time) minmax(60px, auto);
1425
+ }
1426
+ `
1427
+ } else if ($mode === 'inbound') {
1428
+ style += `
1429
+ ${ItemTable} {
1430
+ grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) minmax(140px, 160px) var(--person) var(--time) minmax(170px, auto);
1431
+ }
1432
+ `
1433
+ } else if ($mode === 'lowstock') {
1434
+ style += `
1435
+ ${ItemTable} {
1436
+ grid-template-columns: var(--checkbox) var(--item) var(--variant) var(--sku) var(--warehouse) var(--qty-big) var(--statusnow) var(--time) minmax(60px, auto);
1437
+ }
1438
+ `
1439
+ } else if ($mode === 'price') {
1440
+ style += `
1441
+ ${ItemTable} {
1442
+ grid-template-columns: var(--time) var(--id-big) var(--status) var(--qty) var(--email) var(--status) minmax(60px, auto);
1443
+ }
1444
+ `
1445
+ } else if ($mode === 'stock-adjustment') {
1446
+ style += `
1447
+ ${ItemTable} {
1448
+ grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) minmax(140px, 150px) var(--person) var(--time) minmax(160px, auto);
1449
+ }
1450
+ `
1451
+ } else if ($mode === 'stock-outbound') {
1452
+ style += `
1453
+ ${ItemTable} {
1454
+ grid-template-columns: var(--id-pd20) var(--status-big) var(--warehouse) var(--ref) minmax(150px,160px) var(--person) var(--time) minmax(160px, auto);
1455
+ }
1456
+ `
1457
+ } else if ($mode === 'stock-transfer') {
1458
+ style += `
1459
+ ${ItemTable} {
1460
+ grid-template-columns: var(--id) var(--status-big) var(--warehouse) var(--warehouse) minmax(120px, 130px) var(--person) var(--time) minmax(140px, auto);
1461
+ }
1462
+ `
1463
+ } else if ($mode === 'promotion') {
1464
+ style += `
1465
+ ${ItemTable} {
1466
+ grid-template-columns: var(--store) var(--id-big) var(--ref-big) minmax(95px,150px) var(--status-small) var(--time) var(--time) minmax(50px, 88px) var(--time) minmax(88px, auto);
1467
+ }
1468
+ `
1469
+ } else if ($mode === 'stock-history') {
1470
+ style += `
1471
+ ${ItemTable} {
1472
+ grid-template-columns: minmax(120px, 360px) var(--sku) var(--warehouse) minmax(85px,120px) minmax(105px,190px) var(--qty-small) var(--qty-small) var(--qty-big) var(--time) minmax(75px, 88px);
1473
+ > *:last-child {
1474
+ display: unset;
1475
+ justify-content: unset;
1476
+ }
1477
+ @media only screen and (max-width: 1279px) {
1478
+ width: unset;
1479
+ }
1480
+ }
1481
+ `
1482
+ } else if ($mode === 'price-history') {
1483
+ style += `
1484
+ ${ItemTable} {
1485
+ @media only screen and (max-width: 1279px) {
1486
+ width: unset;
1487
+ }
1488
+ > *:last-child {
1489
+ display: unset;
1490
+ justify-content: unset;
1491
+ }
1492
+ grid-template-columns: minmax(135px,145px) minmax(120px,360px) var(--sku) var(--store) var(--price) var(--price) minmax(75px,120px) minmax(80px,120px) var(--time) var(--status) minmax(75px,88px);
1493
+ }
1494
+ `
1495
+ } else if ($mode === 'turnover') {
1496
+ style += `
1497
+ ${ItemTable} {
1498
+ @media only screen and (max-width: 1279px) {
1499
+ width: unset;
1500
+ }
1501
+ > *:last-child {
1502
+ display: unset;
1503
+ justify-content: unset;
1504
+ }
1505
+ grid-template-columns: minmax(120px,360px) var(--sku) var(--warehouse) repeat(4, var(--qty)) minmax(75px,88px);
1506
+ }
1507
+ `
1508
+ }
1509
+ else if ($mode === 'days-outofstock') {
1510
+ style += `
1511
+ ${ItemTable} {
1512
+ @media only screen and (max-width: 1279px) {
1513
+ width: unset;
1514
+ }
1515
+ > *:last-child {
1516
+ display: unset;
1517
+ justify-content: unset;
1518
+ }
1519
+ grid-template-columns: minmax(120px,360px) var(--sku) var(--warehouse) var(--qty-big) var(--qty) var(--qty-big) var(--time) minmax(75px,88px);
1520
+ }
1521
+ `
1522
+ } else if ($mode === 'warehouses') {
1523
+ style += `
1524
+ ${ItemTable} {
1525
+ grid-template-columns: var(--warehouse) var(--status) var(--id-big) var(--qty-big) var(--time) minmax(110px, auto);
1526
+ }
1527
+ `
1528
+ } else if ($mode === 'archived') {
1529
+ style += `
1530
+ ${ItemTable} {
1531
+ grid-template-columns: var(--time-pd20) minmax(auto, max-content) minmax(88px, auto);
1532
+ &[role=rowheader] > div[role=group], &[role=row] > div[role=cellgroup] > div[role=rowgroup], ._refCollapse > div:not(._refCollapseContainer), ._refCollapseContainer > div {
1533
+ grid-template-columns: var(--sku) var(--item);
1534
+ }
1535
+ }
1536
+ `
1537
+ } else if ($mode === 'pos-order') {
1538
+ style += `
1539
+ ${ItemTable} {
1540
+ @media only screen and (max-width: 1279px) {
1541
+ width: unset;
1542
+ }
1543
+ grid-template-columns: var(--id-pd20) minmax(80px, 120px) var(--time) var(--person) var(--qty) var(--price) var(--status) minmax(180px, auto);
1544
+ }
1545
+ `
1546
+ }
1547
+ return style
1548
+ }
1549
+ const getIconDotModifiedStyled = ({ $mode }:{ $mode?: string }) => {
1550
+ let style = ``
1551
+ if ($mode === 'list' || $mode === 'header') {
1552
+ style +=`
1553
+ position: absolute;
1554
+ top: 0;
1555
+ left: 0;
1556
+ transform: scale(1) translate(-50%, -50%);
1557
+ transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
1558
+ transform-origin: 100% 0%;
1559
+ `
1560
+ if ($mode === 'header') {
1561
+ style +=`
1562
+ left: unset;
1563
+ right: 0;
1564
+ z-index: 99;
1565
+ transform: scale(1) translate(50%, -50%);
1566
+ `
1567
+ }
1568
+ }
1569
+ return style
1570
+ }
1571
+ const getCardModFunc = ({ $mode }:{ $mode?: string }) => {
1572
+ const globalEmptyCss = css`
1573
+ text-align: center;
1574
+ color: var(--mt-clr);
1575
+ `
1576
+ let style = ``
1577
+ if ($mode === 'empty') {
1578
+ style +=`
1579
+ ${globalEmptyCss}
1580
+ `
1581
+ } else if ($mode === 'empty-invoice') {
1582
+ style +=`
1583
+ ${globalEmptyCss}
1584
+ > div {
1585
+ display: grid;
1586
+ align-content: center;
1587
+ grid-gap: 4px;
1588
+ margin: 0 16px;
1589
+ }
1590
+ `
1591
+ } else {
1592
+ style += `
1593
+ width: 958px;
1594
+ @media only screen and (min-width: 1024px) {
1595
+ width: unset;
1596
+ }
1597
+ `
1598
+ }
1599
+ return style;
1600
+ }
1601
+ const getListModFunc = ({ $mode }:{ $mode?: string }) => {
1602
+ let style = ``
1603
+ if ($mode === 'shipment') {
1604
+ style +=`
1605
+ ${DetailItem} {
1606
+ ${DetailItemWrapper} {
1607
+ grid-template-columns: var(--status) var(--warehouse) minmax(80px, 160px) minmax(80px, 160px) minmax(95px, 200px);
1608
+ }
1609
+ }
1610
+ `
1611
+ } else if ($mode === 'picklist') {
1612
+ style +=`
1613
+ ${DetailItem} {
1614
+ ${DetailItemWrapper} {
1615
+ grid-template-columns: var(--status) var(--warehouse) var(--person);
1616
+ }
1617
+ }
1618
+ `
1619
+ } else if ($mode === 'invoice') {
1620
+ style +=`
1621
+ ${DetailItem} {
1622
+ ${DetailItemWrapper} {
1623
+ grid-template-columns: var(--status) var(--price);
1624
+ }
1625
+ }
1626
+ `
1627
+ } else if ($mode === 'payment') {
1628
+ style +=`
1629
+ ${DetailItem} {
1630
+ ${DetailItemWrapper} {
1631
+ grid-template-columns: var(--status) var(--ref-big) var(--price) auto;
1632
+ }
1633
+ > article:first-child {
1634
+ > span {
1635
+ position: relative; }
1636
+ }
1637
+ }
1638
+ `
1639
+ } else if ($mode === 'promotion') {
1640
+ style +=`
1641
+ ${DetailItem} {
1642
+ grid-template-columns: auto;
1643
+ padding-left: 18px;
1644
+ ${DetailItemWrapper} {
1645
+ grid-template-columns: minmax(95px, 150px) var(--store) var(--ref-big) minmax(180px, 300px) var(--status-small) minmax(50px, 88px);
1646
+ }
1647
+ }
1648
+ `
1649
+ } else if ($mode === 'return') {
1650
+ style +=`
1651
+ ${DetailItem} {
1652
+ ${DetailItemWrapper} {
1653
+ grid-template-columns: var(--status) var(--warehouse) var(--qty) var(--qty);
1654
+ }
1655
+ `
1656
+ }
1657
+ return style
1658
+ }
1659
+ const getCreateContainerModFunc = ({ $mode }:{ $mode?: string }) => {
1660
+ let style = ``
1661
+ if ($mode === 'master' || $mode === 'listing' || $mode === 'paymentreceive' || $mode === 'picklist') {
1662
+ style += `
1663
+ height: 100vh;
1664
+ overflow: hidden;
1665
+ `
1666
+ } else if ($mode ==='bundle') {
1667
+ style +=`
1668
+ ${CreateHeaderWrapper} {
1669
+ position: fixed;
1670
+ z-index: 10;
1671
+ aside { grid-template-rows: none; }
1672
+ }
1673
+ `
1674
+ }
1675
+ return style
1676
+ }
1677
+ const getCreateHeaderWrapperModFunc = ({ $mode }:{ $mode?: string }) => {
1678
+ let style = ``
1679
+ if ($mode === 'edit-master') {
1680
+ style +=`
1681
+ aside {
1682
+ grid-template-rows: none;
1683
+ }
1684
+ `
1685
+ }
1686
+ return style
1687
+ }
1688
+ const getPopupCardModFunc = ({ $mode }:{ $mode?: string }) => {
1689
+ let style = ''
1690
+ if ($mode === 'mass-payment') {
1691
+ style += `
1692
+ margin: 0;
1693
+ @media only screen and (min-width: 768px) {
1694
+ padding: 1em 24px;
1695
+ }
1696
+ `
1697
+ }
1698
+ return style;
1699
+ }
1700
+
1701
+ export const PanelContainer = styled.section`
1702
+ position: relative;
1703
+ height: 100%;
1704
+ padding-top: 20px;
1705
+ > section:not(:first-child) {
1706
+ margin-top: 1em;
1707
+ }
1708
+ @media only screen and (min-width: 1024px) {
1709
+ padding: 20px 1em 0;
1710
+ height: calc(100vh - 50px);
1711
+ }
1712
+ @media only screen and (min-width: 1366px) {
1713
+ padding: 20px 2em 0;
1714
+ height: 100%;
1715
+ }
1716
+ `
1717
+ export const ListContainer = styled.section`
1718
+ position: relative;
1719
+ &:first-child {
1720
+ margin-top: -4px;
1721
+ }
1722
+ `
1723
+ export const PanelWrapper = styled.section<{ $mode?: string }>`
1724
+ ${responseWidth}
1725
+ position: relative;
1726
+ min-height: 1px;
1727
+ margin: 0 auto;
1728
+ padding-top: 16px;
1729
+ padding-bottom: 10px;
1730
+ @media only screen and (min-width: 768px) {
1731
+ padding: 8px 30px 16px;
1732
+ }
1733
+ ${({ $mode }:{ $mode?: string }) => {
1734
+ if ($mode === 'full') {
1735
+ return css`
1736
+ width: 100%;
1737
+ `
1738
+ }
1739
+ }}
1740
+ `
1741
+ export const Title = styled.h1`
1742
+ font-family: PT Sans;
1743
+ font-size: 22px;
1744
+ color: var(--ter-clr);
1745
+ > aside {
1746
+ color: var(--mt-clr);
1747
+ font-size: 16px;
1748
+ font-weight: 400;
1749
+ margin-top: 5px;
1750
+ letter-spacing: normal;
1751
+ }
1752
+ @media only screen and (min-width: 768px) {
1753
+ font-size: 30px;
1754
+ .tablet-fw {
1755
+ display: inline !important;
1756
+ }
1757
+ }
1758
+ `
1759
+ export const HeaderContainer = styled.aside`
1760
+ display: grid;
1761
+ grid-auto-flow: column;
1762
+ grid-gap: 8px;
1763
+ grid-template-columns: max-content max-content;
1764
+ align-items: center;
1765
+ @media only screen and (min-width: 400px) {
1766
+ position: absolute;
1767
+ right: 20px;
1768
+ top: 20px;
1769
+ }
1770
+ @media only screen and (min-width: 768px) {
1771
+ top: 10px;
1772
+ }
1773
+ @media only screen and (min-width: 1366px) {
1774
+ right: 20px;
1775
+ }
1776
+ `
1777
+ export const TabsContainer = styled.section<{ $mode?: string }>`
1778
+ width: 100%;
1779
+ ${({ $mode }:{ $mode?: string }) => {
1780
+ if ($mode === 'master-listing') {
1781
+ return css`
1782
+ padding: 0 16px;
1783
+ `
1784
+ } else if ($mode === 'detail-master') {
1785
+ return css`
1786
+ padding: 20px 10px 0 10px;
1787
+ `
1788
+ } else if ($mode === 'no-header') {
1789
+ return css`
1790
+ padding-top: 0;
1791
+ @media only screen and (min-width: 1366px) {
1792
+ padding-top: 12px;
1793
+ }
1794
+ `
1795
+ }
1796
+ }}
1797
+ `
1798
+ export const TabsContent = styled.div<{ $mode?: string }>`
1799
+ padding-top: 16px;
1800
+ &._refNoTab {
1801
+ padding-top: 9px;
1802
+ @media only screen and (min-width: 768px) {
1803
+ padding-top: 11px;
1804
+ }
1805
+ }
1806
+ @media only screen and (min-width: 768px) {
1807
+ padding-top: 24px;
1808
+ }
1809
+ ${getTabsContentModFunc}
1810
+ `
1811
+ export const FoContainer = styled.section<{ $mode?: string }>`
1812
+ position: relative;
1813
+ > section,
1814
+ > article {
1815
+ width: 100%;
1816
+ > aside,
1817
+ > article {
1818
+ ${responseWidth}
1819
+ margin: 0 auto;
1820
+ }
1821
+ }
1822
+ > article {
1823
+ height: calc(100vh - 50px);
1824
+ }
1825
+ ${({ $mode }:{ $mode?: string }) => {
1826
+ if ($mode === 'detail') {
1827
+ return css`
1828
+ margin-top: -4px;
1829
+ @media only screen and (min-width: 768px) {
1830
+ > section,
1831
+ > article {
1832
+ > aside {
1833
+ padding-left: 16px;
1834
+ padding-right: 16px;
1835
+ }
1836
+ }
1837
+ }
1838
+ @media only screen and (min-width: 1024px) {
1839
+ > section,
1840
+ > article {
1841
+ > aside {
1842
+ padding-left: 0;
1843
+ padding-right: 0;
1844
+ }
1845
+ }
1846
+ }
1847
+ `
1848
+ }
1849
+ }}
1850
+ `
1851
+ export const BreadcrumbContainer = styled.aside`
1852
+ position: relative;
1853
+ padding: 18px 16px;
1854
+ text-align: center;
1855
+ > a {
1856
+ &:first-child {
1857
+ display: none;
1858
+ }
1859
+ &:nth-child(2) {
1860
+ display: inline;
1861
+ position: absolute;
1862
+ top: 20px;
1863
+ left: .625em;
1864
+ }
1865
+ > i {
1866
+ float: left;
1867
+ margin-right: 6px;
1868
+ }
1869
+ }
1870
+ span {
1871
+ display: none;
1872
+ }
1873
+ @media only screen and (min-width: 375px) {
1874
+ > a {
1875
+ &:nth-child(2) {
1876
+ left: 16px;
1877
+ }
1878
+ }
1879
+ }
1880
+ @media only screen and (min-width: 768px) {
1881
+ padding: 8px 30px 20px;
1882
+ text-align: left;
1883
+ b {
1884
+ font-size: .875rem;
1885
+ line-height: 1;
1886
+ }
1887
+ span {
1888
+ display: inline;
1889
+ }
1890
+ a {
1891
+ &:first-child {
1892
+ display: inline;
1893
+ }
1894
+ &:nth-child(2) {
1895
+ display: none;
1896
+ }
1897
+ }
1898
+ }
1899
+ `
1900
+ export const InfoGroup = styled.div`
1901
+ display: inline-grid;
1902
+ grid-auto-flow: column;
1903
+ grid-template-columns: minmax(140px, 150px) minmax(140px, 1fr);
1904
+ grid-gap: 5px;
1905
+ width: 100%;
1906
+ justify-content: left;
1907
+ margin-bottom: 14px;
1908
+ > span:first-child {
1909
+ position: relative;
1910
+ &:after {
1911
+ position: absolute;
1912
+ right: 5px;
1913
+ content: ":";
1914
+ }
1915
+ }
1916
+ div {
1917
+ overflow-wrap: break-word;
1918
+ word-break: break-word;
1919
+ }
1920
+ `
1921
+ export const MuteLabel = styled.span<{ $size?: string }>`
1922
+ color: var(--mt-clr);
1923
+ font-size: 12px;
1924
+ word-break: break-all;
1925
+ &._refWithIcon {
1926
+ display: grid;
1927
+ grid-auto-flow: column;
1928
+ justify-content: start;
1929
+ grid-gap: 4px;
1930
+ * {
1931
+ margin-right: 0;
1932
+ }
1933
+ }
1934
+ ${({ $size }:{ $size?: string }) => {
1935
+ if ($size === 'medium')
1936
+ return css`
1937
+ font-size: 13px;
1938
+ line-height: 12px;
1939
+ * {
1940
+ margin-right: 4px;
1941
+ }
1942
+ `
1943
+ }}
1944
+ `
1945
+ export const InputGroup = styled.article<{ $mode?: string, $required?: boolean }>`
1946
+ > label,
1947
+ > aside {
1948
+ ${formLabel}
1949
+ margin-bottom: 6px;
1950
+ padding: 0 6px;
1951
+ display: block;
1952
+ font-size: 14px;
1953
+ }
1954
+ > div {
1955
+ display: grid;
1956
+ }
1957
+ ${getInputGroupModFunc}
1958
+ `
1959
+ export const BoxContainer = styled.aside`
1960
+ position: relative;
1961
+ @media only screen and (min-width: 768px) {
1962
+ padding-bottom: 16px;
1963
+ }
1964
+ `
1965
+ export const BulkActionWrapper = styled.aside<{ $isOpen?: boolean }>`
1966
+ position: fixed;
1967
+ z-index: 101;
1968
+ bottom: -100%;
1969
+ left: 0px;
1970
+ width: 100%;
1971
+ background-color: var(--ter-clr-bg);
1972
+ display: inline-grid;
1973
+ grid-auto-flow: column;
1974
+ grid-template-columns: max-content auto;
1975
+ justify-content: start;
1976
+ grid-gap: 10px;
1977
+ padding: 14px 1em 8px;
1978
+ transition: bottom .2s ease-in-out;
1979
+ overflow: auto;
1980
+ white-space: nowrap;
1981
+ i {
1982
+ position: relative;
1983
+ top: 5px;
1984
+ }
1985
+ span {
1986
+ position: relative;
1987
+ top: 7px;
1988
+ }
1989
+ button, a {
1990
+ padding: 6px 16px;
1991
+ font-size: 13px;
1992
+ min-height: unset;
1993
+ height: auto;
1994
+ margin: 0;
1995
+ }
1996
+ @media (max-width: 767.9px) {
1997
+ &._refMasterTableBulkWrapper {
1998
+ position: fixed;
1999
+ width: 100vw;
2000
+ border: 1px solid #E3E3E3;
2001
+ background: #FFFFFF;
2002
+ z-index: 102;
2003
+ box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
2004
+ border-radius: 10px 10px 0px 0px;
2005
+ display: none;
2006
+ >i, >span, >button { display: none; }
2007
+ >section {
2008
+ padding: 1em;
2009
+ >section >article {
2010
+ display: inline-grid;
2011
+ grid-auto-flow: row;
2012
+ grid-gap: 12px;
2013
+ width: 100%;
2014
+ }
2015
+ }
2016
+ & + ._refDropdownOverlay {
2017
+ display:none;
2018
+ }
2019
+ }
2020
+ }
2021
+ ${getBulkActionWrapperModifiedStyled}
2022
+ `
2023
+ export const InitialContainer = styled.span`
2024
+ ${initialStyles}
2025
+ align-items: center;
2026
+ display: grid;
2027
+ color: #fff;
2028
+ text-align: center;
2029
+ border-radius: var(--ter-rd);
2030
+ `
2031
+ export const MasterTableActionWrapper = styled.section<{ $mode?: string }>`
2032
+ height: 35px;
2033
+ border-bottom: 1px solid var(--tab-clr-ln);
2034
+ background-color: var(--pri-clr-bg);
2035
+ > div {
2036
+ height: 35px !important;
2037
+ > div {
2038
+ display: inline-grid;
2039
+ width: 100%;
2040
+ grid-auto-flow: column;
2041
+ grid-template-columns: min-content;
2042
+ grid-gap: 5px;
2043
+ }
2044
+ }
2045
+ ${({ $mode }:{ $mode?: string }) => {
2046
+ if ($mode === 'picklist') {
2047
+ return css`
2048
+ background-color: var(--ter-clr-bg);
2049
+ border-top: 1px solid var(--tab-clr-ln);
2050
+ height: 50px;
2051
+ > div {
2052
+ height: 50px !important;
2053
+ }
2054
+ `
2055
+ }
2056
+ }}
2057
+ `
2058
+ export const FigureWraper = styled.figure<{ $size?: string, $mode?: string }>`
2059
+ margin: 0;
2060
+ position: relative;
2061
+ overflow: hidden;
2062
+ border: 1px solid var(--pri-clr-ln);
2063
+ background-color: var(--pri-clr-bg);
2064
+ border-radius: var(--ter-rd);
2065
+ width: 30px;
2066
+ height: 30px;
2067
+ align-self: start;
2068
+ > img {
2069
+ object-fit: contain;
2070
+ width: 100%;
2071
+ height: 100%;
2072
+ background-color: var(--pri-clr-bg);
2073
+ }
2074
+ ${({ $size }:{ $size?: string }) => {
2075
+ let style = ``;
2076
+ if ($size) {
2077
+ style += `
2078
+ width:${$size};
2079
+ height:${$size};
2080
+ `
2081
+ }
2082
+ return style;
2083
+ }}
2084
+ `
2085
+ export const PanelBody = styled.section`
2086
+ ${PanelContainer} {
2087
+ overflow-y: auto;
2088
+ }
2089
+ `
2090
+ export const MultiPanelContainer = styled.main`
2091
+ display: inline-grid;
2092
+ width: 100%;
2093
+ grid-template-columns: calc(100vw - 450px) 450px;
2094
+ > section {
2095
+ display: inline-grid;
2096
+ width: 100%;
2097
+ height: 100%;
2098
+ position: relative;
2099
+ }
2100
+ @media (min-width: 1024px) {
2101
+ height: calc(100vh - 50px);
2102
+ }
2103
+ `
2104
+ export const RightPanelContainer = styled.section`
2105
+ border-right: 2px solid var(--lay-clr-ln);
2106
+ background-color: #f9fafb;
2107
+ `
2108
+ export const LeftPanelContainer = styled.section``
2109
+ export const SearchFormWrapper = styled.div`
2110
+ position: relative;
2111
+ i {
2112
+ position: absolute;
2113
+ top: 6px;
2114
+ left: 12px;
2115
+ pointer-events: none;
2116
+ z-index: 1;
2117
+ &:last-child {
2118
+ left: auto;
2119
+ right: 6px;
2120
+ }
2121
+ }
2122
+ ._refLoading {
2123
+ position: absolute;
2124
+ right: 12px;
2125
+ top: 6px;
2126
+ }
2127
+ `
2128
+ export const TableHeadLabel = styled.span`
2129
+ color: var(--mt-clr);
2130
+ position: relative;
2131
+ cursor: pointer;
2132
+ line-height: 1;
2133
+ i {
2134
+ display: inline-block;
2135
+ vertical-align: text-top;
2136
+ margin-left: 2px;
2137
+ }
2138
+ dt {
2139
+ display: inline;
2140
+ width: auto;
2141
+ }
2142
+ `
2143
+ export const TableHeadWrapper = styled.div<{ $mode?: string }>`
2144
+ display: grid;
2145
+ border-bottom: 2px solid var(--ter-clr-ln);
2146
+ >span:last-child { justify-self: right; }
2147
+ padding-top: 22px;
2148
+ padding-bottom: 22px;
2149
+ align-items: center;
2150
+ & ${TableHeadLabel} {
2151
+ &:empty, &:last-child {
2152
+ cursor: default;
2153
+ &:after { display: none; }
2154
+ }
2155
+ }
2156
+ @media only screen and (min-width: 1366px) {
2157
+ padding-top: 28px;
2158
+ }
2159
+ ${getTableHeaderModFunc}
2160
+ `
2161
+ export const TableRowGroup = styled.div<{ $content?: string, $mode?: string }>`
2162
+ display: grid;
2163
+ grid-auto-flow: row;
2164
+ grid-gap: 4px;
2165
+ align-content: flex-start;
2166
+ ${getTabsRowModFunc}
2167
+ `
2168
+ export const TableRightGroup = styled.div`
2169
+ display:grid;
2170
+ grid-auto-flow: column;
2171
+ grid-gap: 6px;
2172
+ align-items: center;
2173
+ justify-content: end;
2174
+ > a {
2175
+ padding: 7px 16px;
2176
+ font-size: 14px;
2177
+ margin: 0;
2178
+ }
2179
+ @media only screen and (min-width: 1366px) {
2180
+ grid-gap: 8px;
2181
+ }
2182
+ `
2183
+ export const TableColumnGroup = styled.div<{ $mode?: string, $content?: string }>`
2184
+ display: grid;
2185
+ grid-auto-flow: column;
2186
+ grid-gap: 4px;
2187
+ justify-content: left;
2188
+ align-items: end;
2189
+ &._refActionContainer {
2190
+ justify-content: right;
2191
+ min-height: 30px;
2192
+ align-items: center;
2193
+ }
2194
+ ${getTabsColumnModFunc}
2195
+ `
2196
+ export const ItemPriceLabel = styled.span<{ $mode?: string }>`
2197
+ ${({$mode}:{$mode?: string}) => {
2198
+ if ($mode === 'correct') {
2199
+ return css`
2200
+ text-decoration: line-through;
2201
+ color: var(--mt-clr);
2202
+ `
2203
+ }
2204
+ }}
2205
+ `
2206
+ export const TableLabel = styled.span<{ $mode?: string }>`
2207
+ line-height: 16px;
2208
+ &._refWithIcon {
2209
+ > a,
2210
+ > span {
2211
+ grid-auto-flow: column;
2212
+ grid-template-columns: fit-content(95%) 15px;
2213
+ display: inline-grid;
2214
+ grid-gap: 4px;
2215
+ > span {
2216
+ padding-top: 2px;
2217
+ }
2218
+ }
2219
+ }
2220
+ i[name=arrow-left-blue] {
2221
+ transform: scaleX(-1);
2222
+ position: absolute;
2223
+ }
2224
+ input[name=checkbox-list] {
2225
+ & + span {
2226
+ top: 0;
2227
+ }
2228
+ }
2229
+ > a {
2230
+ > span {
2231
+ overflow-wrap: anywhere;
2232
+ }
2233
+ }
2234
+ @media only screen and (max-width: 767px) {
2235
+ input[name=checkbox-list] {
2236
+ & + span {
2237
+ left: 0;
2238
+ }
2239
+ }
2240
+ }
2241
+ ${({ $mode }: { $mode?: string }) => {
2242
+ if ($mode === 'product') {
2243
+ return css`
2244
+ line-height: 15px;
2245
+ align-items: center;
2246
+ padding-right: 8px;
2247
+ margin-left: -6px;
2248
+ `
2249
+ }
2250
+ }}
2251
+ `
2252
+ export const NameLabel = styled.span<{ $mode?: string }>`
2253
+ font-size: 16px;
2254
+ font-weight: 600;
2255
+ color: var(--hd-clr);
2256
+ > aside {
2257
+ border-left: 1px solid var(--ck-clr-ln);
2258
+ padding-left: 5px;
2259
+ display: inline;
2260
+ }
2261
+ ${getNameModFunc}
2262
+ `
2263
+ export const TabsHeader = styled.article`
2264
+ margin: 0 auto;
2265
+ ${responseWidth}
2266
+ `
2267
+ export const TabsItem = styled.div<{ $activated?: boolean }>`
2268
+ font-family: var(--sec-ft-fm);
2269
+ cursor: pointer;
2270
+ letter-spacing: 0.6px;
2271
+ position: relative;
2272
+ padding: 9px;
2273
+ color: ${({ $activated }:{ $activated?: boolean }) => $activated ? 'var(--sec-clr-lnk__hvr)' : 'var(--pri-clr-lnk)'};
2274
+
2275
+ &::after {
2276
+ content: '';
2277
+ position: absolute;
2278
+ background-color: #FF585C;
2279
+ left: 0;
2280
+ height: 2px;
2281
+ bottom: 0;
2282
+ right: 0;
2283
+ width: 100%;
2284
+ transition: all 250ms ease 0s;
2285
+ transform: ${({ $activated }:{ $activated?: boolean }) => $activated ? 'scale(1)' : 'scale(0)'};
2286
+ }
2287
+ @media only screen and (min-width: 768px) {
2288
+ font-size: 16px;
2289
+ font-weight: 600;
2290
+ padding: 16px 15px 11px 15px;
2291
+ }
2292
+ `
2293
+ export const TabsList = styled.div`
2294
+ display: inline-grid;
2295
+ grid-auto-flow: column;
2296
+ grid-gap: 4px;
2297
+ grid-auto-columns: max-content;
2298
+ width: auto;
2299
+ min-width: 100%;
2300
+ `
2301
+ export const TabsWrapper = styled.section<{ $mode?: string }>`
2302
+ width: 100%;
2303
+ overflow: auto;
2304
+ &.is-sticky {
2305
+ position: fixed;
2306
+ top: 0;
2307
+ z-index: 9;
2308
+ background-color:#FFF;
2309
+ & + div {
2310
+ margin-top: 40px;
2311
+ }
2312
+ > article {
2313
+ position: relative;
2314
+ z-index: 10;
2315
+ }
2316
+ @media only screen and (min-width: 768px) {
2317
+ top: 50px;
2318
+ }
2319
+ }
2320
+ ${getTabsWrapperModFunc}
2321
+ `
2322
+ export const TableItemColumn = styled.div<{ $mode?: string }>`
2323
+ display: grid;
2324
+ > div {
2325
+ padding: 10px 0;
2326
+ &:last-child {
2327
+ border-right: none;
2328
+ }
2329
+ &.list-item {
2330
+ display: grid;
2331
+ grid-gap: 11px;
2332
+ align-items: center;
2333
+ }
2334
+ &.list-center {
2335
+ padding: 15px 25px;
2336
+ display: grid;
2337
+ align-items: center;
2338
+ }
2339
+ &.cell-action {
2340
+ display: grid;
2341
+ align-items: start;
2342
+ }
2343
+ }
2344
+ &._refFooterContainer {
2345
+ font-weight: 600;
2346
+ border-top: 1px solid var(--pri-clr-ln);
2347
+ }
2348
+ &._refItemContainer {
2349
+ ${TableColumnGroup} {
2350
+ grid-gap: 10px;
2351
+ }
2352
+ }
2353
+ ${getTableItemModFunc}
2354
+ `
2355
+ export const TableItemWrapper = styled.section<{ $mode: string, $isBorder?: boolean, $isPopup?: boolean }>`
2356
+ overflow-x: auto;
2357
+ ${TableItemColumn} {
2358
+ width: 960px;
2359
+ border-bottom: 1px solid var(--pri-clr-ln);
2360
+ >* {
2361
+ padding: 15px 10px;
2362
+ }
2363
+ &:first-child {
2364
+ border-bottom: 1px solid var(--sec-clr-ln);
2365
+ display: grid;
2366
+ > * { padding: 0 10px 12px; }
2367
+ }
2368
+ &:last-child { border-bottom: none; }
2369
+ &[role='rowheader'] {
2370
+ ${headTable}
2371
+ color: var(--mt-clr);
2372
+ }
2373
+ }
2374
+ @media only screen and (min-width: 1024px) {
2375
+ overflow-x: unset;
2376
+ ${TableItemColumn} { width: unset; }
2377
+ }
2378
+ ${getTableItemWrapperModFunc}
2379
+ `
2380
+ export const CollapseContainer = styled.div<{ $mode?: string }>`
2381
+ position: relative;
2382
+ top: 0;
2383
+ overflow-y: hidden;
2384
+ transition: height .35s ease;
2385
+ display: grid;
2386
+ grid-gap: 10px;
2387
+ &.collapsed {
2388
+ position: absolute;
2389
+ top: -999999%;
2390
+ }
2391
+ &.is-loading {
2392
+ height: 0 !important;
2393
+ }
2394
+ ${({ $mode }:{ $mode?: string }) => {
2395
+ if ($mode === 'nav') {
2396
+ return css`
2397
+ display: block;
2398
+ padding-top: 1.2em;
2399
+ > div:last-child {
2400
+ margin-bottom: 4px;
2401
+ }
2402
+ `
2403
+ }
2404
+ }}
2405
+ `
2406
+ export const PaginationContainer = styled.div`
2407
+ margin: 10px auto;
2408
+ display: inline-grid;
2409
+ width: 100%;
2410
+ grid-gap: 12px;
2411
+ @media only screen and (min-width: 768px) {
2412
+ margin: 20px auto 60px;
2413
+ }
2414
+ `
2415
+ export const PageWrapper = styled.div<{ $mode?: string }>`
2416
+ display: grid;
2417
+ grid-auto-flow: row;
2418
+ grid-gap: 10px;
2419
+ margin-left: 10px;
2420
+ margin-right: 10px;
2421
+ > div {
2422
+ display: grid;
2423
+ grid-auto-flow: column;
2424
+ grid-gap: 5px;
2425
+ grid-template-columns: max-content;
2426
+ justify-content: center;
2427
+ ._refPageButton:first-child,
2428
+ ._refPageButton:last-child {
2429
+ display: none;
2430
+ }
2431
+ @media only screen and (min-width: 375px) {
2432
+ ._refPageButton:first-child,
2433
+ ._refPageButton:last-child {
2434
+ display: grid;
2435
+ }
2436
+ }
2437
+ }
2438
+ @media only screen and (min-width: 768px) {
2439
+ margin-left: 20px;
2440
+ margin-right: 20px;
2441
+ grid-auto-flow: column;
2442
+ grid-gap: 5px;
2443
+ > div:first-child {
2444
+ justify-content: end;
2445
+ }
2446
+ > div:last-child {
2447
+ justify-content: start;
2448
+ }
2449
+ }
2450
+ ${getPageWrapperModFunc}
2451
+ `
2452
+ export const PageButton = styled.div<{ $activated?: boolean, $disabled?: boolean }>`
2453
+ display: grid;
2454
+ justify-content: center;
2455
+ align-content: center;
2456
+ padding: 4px;
2457
+ height: 28px;
2458
+ width: auto;
2459
+ min-width: 28px;
2460
+ border: 1px solid var(--ck-clr-ln);
2461
+ cursor: pointer;
2462
+ border-radius: var(--ter-rd);
2463
+ i {
2464
+ margin-top: -3px;
2465
+ }
2466
+ ${getPageButtonModFunc}
2467
+ `
2468
+ export const PageLabel = styled.span`
2469
+ font-size: 12px;
2470
+ text-align: center;
2471
+ `
2472
+ export const PageDot = styled.div`
2473
+ padding-top: 3px;
2474
+ height: 28px;
2475
+ width: 28px;
2476
+ text-align: center;
2477
+ `
2478
+ export const ButtonLabel = styled.span`
2479
+ font-size: 14px;
2480
+ font-weight: 400;
2481
+ `
2482
+ export const LinkContainer = styled.article<{ $align?: string }>`
2483
+ display: inline-grid;
2484
+ grid-auto-flow: row;
2485
+ grid-gap: 14px;
2486
+ width: 100%;
2487
+ a,
2488
+ span {
2489
+ text-align: ${({ $align }:{ $align?: string }) => $align === 'right' ? 'right' : 'left'};
2490
+ text-transform: capitalize;
2491
+ cursor: pointer;
2492
+ }
2493
+ hr {
2494
+ margin: 0 -1em;
2495
+ border: 0;
2496
+ border-top: 1px solid var(--pri-clr-ln);
2497
+ }
2498
+ `
2499
+ export const FilterContainer = styled.article`
2500
+ > div {
2501
+ justify-content: left;
2502
+ }
2503
+ `
2504
+ export const SearchFilterContainer = styled.div<{ $mode?: string }>`
2505
+ width: 100%;
2506
+ margin-bottom: 16px !important;
2507
+ > article {
2508
+ display: grid;
2509
+ align-items: center;
2510
+ margin-top: 10px;
2511
+ justify-items: end;
2512
+ }
2513
+ @media only screen and (min-width: 768px) {
2514
+ display: grid;
2515
+ grid-auto-flow: column;
2516
+ grid-template-columns: auto auto 1fr auto;
2517
+ justify-content: left;
2518
+ > article {
2519
+ padding-left: 8px;
2520
+ margin-top: 0px;
2521
+ justify-items: unset;
2522
+ }
2523
+ }
2524
+ ${getSearchFilterContainerModFunc}
2525
+ `
2526
+ export const SearchWrapper = styled.div<{ width?: string }>`
2527
+ display: grid;
2528
+ grid-template-columns: 148px 1fr;
2529
+ position: relative;
2530
+ width: 100%;
2531
+ border-radius: var(--sec-rd);
2532
+ background-color: var(--ter-clr-bg);
2533
+ i {
2534
+ position: absolute;
2535
+ top: 50%;
2536
+ margin-top: -8px;
2537
+ right: 13px;
2538
+ z-index: 1;
2539
+ }
2540
+ input {
2541
+ padding-right: 30px;
2542
+ padding-left: 7px;
2543
+ &::placeholder {
2544
+ font-style: normal;
2545
+ }
2546
+ }
2547
+ button {
2548
+ width: 148px;
2549
+ padding: 6px 23px 6px 12px;
2550
+ }
2551
+ ._refContainer {
2552
+ border-right: 1px solid var(--sec-clr-ln);
2553
+ }
2554
+ @media only screen and (min-width: 1280px) {
2555
+ width: 350px;
2556
+ }
2557
+ @media only screen and (min-width: 1366px) {
2558
+ width: 400px;
2559
+ }
2560
+ ${getSearchWrapperModFunc}
2561
+ `
2562
+ export const ButtonGroup = styled.div`
2563
+ position: relative;
2564
+ display: grid;
2565
+ grid-auto-flow: column;
2566
+ border-radius: var(--sec-rd);
2567
+ box-shadow: none;
2568
+ background-color: var(--ter-clr-bg);
2569
+ > button {
2570
+ width: auto;
2571
+ min-width: auto;
2572
+ border-radius: 0;
2573
+ color: var(--mt-clr);
2574
+ }
2575
+ > button ,
2576
+ ._refContainer {
2577
+ border-right: 1px solid var(--sec-clr-ln);
2578
+ &:last-child {
2579
+ border-right: 0;
2580
+ }
2581
+ }
2582
+ ._refContainer {
2583
+ max-width: 200px;
2584
+ }
2585
+ `
2586
+ export const FilterWrapper = styled.section`
2587
+ display: inline-block;
2588
+ padding-left: 0;
2589
+ width: 100%;
2590
+ margin-top: 10px;
2591
+ > section {
2592
+ width: 48.35% !important;
2593
+ }
2594
+ > article {
2595
+ margin-top: 10px;
2596
+ }
2597
+ ${ButtonGroup} {
2598
+ margin-bottom: 10px;
2599
+ &:last-child {
2600
+ margin-right: 0;
2601
+ }
2602
+ }
2603
+ @media only screen and (max-width: 767.9px) {
2604
+ > section {
2605
+ display: block;
2606
+ float: left;
2607
+ margin-right: 9px;
2608
+ &:nth-of-type(even) {
2609
+ margin-right: 0;
2610
+ }
2611
+ &:nth-of-type(n+3) {
2612
+ margin-top: 10px;
2613
+ }
2614
+ > section > button,
2615
+ > div > button {
2616
+ width: 100%;
2617
+ overflow: hidden;
2618
+ text-overflow: ellipsis;
2619
+ white-space: nowrap;
2620
+ display: block;
2621
+ max-width: 100%;
2622
+ }
2623
+ }
2624
+ > article {
2625
+ float: left
2626
+ }
2627
+ }
2628
+ @media only screen and (min-width: 425px) {
2629
+ > section {
2630
+ width: 48.725% !important;
2631
+ }
2632
+ }
2633
+ @media only screen and (min-width: 768px) {
2634
+ margin-top: 0;
2635
+ padding-left: 8px;
2636
+ grid-auto-flow: column;
2637
+ grid-gap: 10px;
2638
+ display: grid;
2639
+ > section {
2640
+ width: auto !important;
2641
+ }
2642
+ > article {
2643
+ display: grid;
2644
+ align-items: center;
2645
+ margin-top: 0px;
2646
+ }
2647
+ ${ButtonGroup} {
2648
+ margin-bottom: 0;
2649
+ }
2650
+ }
2651
+ `
2652
+ export const ListTableContainer = styled.div`
2653
+ display: grid;
2654
+ grid-gap: 16px;
2655
+ padding: 0 .625em 10px;
2656
+ @media only screen and (min-width: 375px) {
2657
+ padding: 0 16px 10px;
2658
+ }
2659
+ @media only screen and (min-width: 1024px) {
2660
+ padding: 0;
2661
+ }
2662
+ `
2663
+ export const ItemTable = styled.section``
2664
+ export const ListTable = styled.main<{ $mode?: string }>`
2665
+ ${boxBase}
2666
+ position: relative;
2667
+ width: 100%;
2668
+ overflow-x: auto;
2669
+ ${ItemTable} {
2670
+ width: calc(100% - 19px);
2671
+ min-width: 975px;
2672
+ border-top: 1px solid var(--ter-clr-ln);
2673
+ margin: 9px 9px 9px 10px;
2674
+ padding: 16px 12px 16px 19px;
2675
+ display: inline-grid;
2676
+ grid-gap: 12px;
2677
+ align-items: start;
2678
+ &[role=rowheader] > div[role=group],
2679
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
2680
+ ._refCollapse > div:not(._refCollapseContainer),
2681
+ ._refCollapseContainer > div {
2682
+ display: grid;
2683
+ align-items: start;
2684
+ grid-gap: 12px;
2685
+ }
2686
+ &[role=rowheader],
2687
+ &:nth-child(2) {
2688
+ border-top: 0;
2689
+ }
2690
+ &[role=rowheader] {
2691
+ padding: 18px 12px 18px 19px;
2692
+ border-bottom: 2px solid var(--ter-clr-ln);
2693
+ color: var(--mt-clr);
2694
+ position: relative;
2695
+ cursor: pointer;
2696
+ line-height: 1;
2697
+ }
2698
+ &[role=row] {
2699
+ margin-top: 0;
2700
+ margin-bottom: 0;
2701
+ }
2702
+ &:last-child {
2703
+ margin-bottom: 9px;
2704
+ }
2705
+ &[role=row] > div[role=cellgroup] > div[role=rowgroup],
2706
+ ._refCollapse > div,
2707
+ ._refCollapseContainer > div {
2708
+ padding-bottom: 1em;
2709
+ &:nth-child(n+2) {
2710
+ border-top: 1px solid rgb(245, 245, 245);
2711
+ padding-top: 16px;
2712
+ }
2713
+ &:last-child {
2714
+ padding-bottom: 0;
2715
+ }
2716
+ }
2717
+ > *:last-child {
2718
+ display: grid;
2719
+ justify-content: end;
2720
+ }
2721
+ input[name=checkbox-selectAll] {
2722
+ & + span {
2723
+ top: 50%;
2724
+ }
2725
+ }
2726
+ input[name=checkbox-list] {
2727
+ & + span {
2728
+ top: 0;
2729
+ }
2730
+ }
2731
+ ._refCollapseContainer {
2732
+ padding-bottom: 0;
2733
+ }
2734
+ }
2735
+ ${getListTableFunc}
2736
+ `
2737
+ export const DateWrapper = styled.div`
2738
+ display: grid;
2739
+ grid-template-columns: 16px 125px;
2740
+ position: relative;
2741
+ width: 100%;
2742
+ border-radius: var(--sec-rd);
2743
+ background-color: var(--ter-clr-bg);
2744
+ padding: 0 10px;
2745
+ gap: 4px;
2746
+ > i {
2747
+ margin-top: 6px;
2748
+ }
2749
+ input {
2750
+ &, &:focus, &:active {
2751
+ border: none !important;
2752
+ background: transparent;
2753
+ cursor: pointer;
2754
+ }
2755
+ }
2756
+ `
2757
+ export const DropdownTitle = styled.div`
2758
+ padding: 1em 1em .8em;
2759
+ display: grid;
2760
+ grid-auto-flow: column;
2761
+ justify-content: space-between;
2762
+ border-bottom: 1px solid var(--sec-clr-ln);
2763
+ i {
2764
+ font-style: normal;
2765
+ }
2766
+ `
2767
+ export const DropdownList = styled.ul<{ $mode?: string }>`
2768
+ ${clearList}
2769
+ max-height: 44vh;
2770
+ overflow: auto;
2771
+ > li {
2772
+ padding: 8px 1em;
2773
+ border-bottom: ${({ $mode }:{ $mode?: string }) => $mode === 'no-border' ? 'none' : '1px solid var(--pri-clr-ln)'};
2774
+ &:last-child {
2775
+ border-bottom: 0;
2776
+ }
2777
+ }
2778
+ @media only screen and (min-width: 1366px) {
2779
+ max-height: 50vh;
2780
+ }
2781
+ `
2782
+ export const DropdownItem = styled.li<{ $mode?: string }>`
2783
+ display: inline-grid;
2784
+ width: 100%;
2785
+ grid-gap: 10px;
2786
+ min-height: 48px;
2787
+ grid-auto-flow: row;
2788
+ @media only screen and (min-width: 768px) {
2789
+ grid-auto-flow: column;
2790
+ grid-template-columns: 100px auto;
2791
+ }
2792
+ ${({ $mode }:{ $mode?: string }) => {
2793
+ if ($mode === 'categories') {
2794
+ return css`
2795
+ grid-auto-flow: column;
2796
+ grid-template-columns: 22px auto;
2797
+ min-height: 33px;
2798
+ align-items: center;
2799
+ grid-gap: 0;
2800
+ > label {
2801
+ cursor: pointer;
2802
+ text-transform: capitalize;
2803
+ }
2804
+ @media only screen and (min-width: 768px) {
2805
+ grid-template-columns: 22px auto;
352
2806
  }
353
2807
  `
2808
+ }
354
2809
  }}
355
2810
  `
356
- export const InputGroup = styled.article<{ $mode?: string, $required?: boolean }>`
357
- > label,
358
- > aside {
359
- ${formLabel}
360
- margin-bottom: 6px;
361
- padding: 0 6px;
2811
+ export const DropdownAction = styled.div`
2812
+ padding: .8em 1em 1em;
2813
+ display: grid;
2814
+ grid-auto-flow: column;
2815
+ justify-content: end;
2816
+ grid-gap: 8px;
2817
+ border-top: 1px solid var(--sec-clr-ln);
2818
+ `
2819
+
2820
+ export const FilterList = styled.ul`
2821
+ ${clearList}
2822
+ `
2823
+ export const FilterItem = styled.li`
2824
+ > input {
2825
+ display: none;
2826
+ }
2827
+ > label {
362
2828
  display: block;
363
- font-size: 14px;
2829
+ float: left;
2830
+ padding: 8px 10px;
2831
+ margin-right: 4px;
2832
+ margin-bottom: 8px;
2833
+ border: 1px solid transparent;
2834
+ outline: 1px solid transparent;
2835
+ cursor: pointer;
2836
+ font-size: 13px;
364
2837
  }
365
- > div {
366
- display: grid;
2838
+ > input:checked + label {
2839
+ border: 1px solid var(--sel-clr-ln);
2840
+ outline: 1px solid var(--sel-clr-ln);
2841
+ color: var(--ter-clr);
2842
+ border-radius: var(--sec-rd);
367
2843
  }
368
- ${getInputGroupModFunc}
369
2844
  `
370
- export const BoxContainer = styled.aside`
371
- position: relative;
2845
+ export const FilterListTitle = styled.strong`
2846
+ padding-top: 8px;
2847
+ `
2848
+ export const FilterButton = styled.div`
2849
+ display: grid;
2850
+ grid-auto-flow: column;
2851
+ grid-template-columns: 1fr auto;
2852
+ gap: 4px;
2853
+ `
2854
+ export const IconDot = styled.span<{ $mode?: string }>`
2855
+ display: grid;
2856
+ min-width: 18px;
2857
+ height: 18px;
2858
+ align-items: center;
2859
+ z-index: 1;
2860
+ background-color: var(--act-clr-bg);
2861
+ color: var(--act-clr);
2862
+ font-size: 12px;
2863
+ text-align: center;
2864
+ padding: 0px 4px;
2865
+ border-radius: var(--ter-rd);
2866
+ ${getIconDotModifiedStyled}
2867
+ `
2868
+ export const SortByWrapper = styled.section`
2869
+ justify-self: end;
2870
+ margin-top: 10px;
2871
+ display: grid;
2872
+ justify-content: end;
372
2873
  @media only screen and (min-width: 768px) {
373
- padding-bottom: 16px;
2874
+ margin-top: 0;
2875
+ padding-left: 10px;
374
2876
  }
375
2877
  `
376
- export const BulkActionWrapper = styled.aside<{ $isOpen?: boolean }>`
377
- position: fixed;
378
- z-index: 101;
379
- bottom: -100%;
380
- left: 0px;
2878
+ export const DetailWrapper = styled.section`
381
2879
  width: 100%;
382
- background-color: var(--ter-clr-bg);
383
- display: inline-grid;
384
- grid-auto-flow: column;
385
- grid-template-columns: max-content auto;
386
- justify-content: start;
387
- grid-gap: 10px;
388
- padding: 14px 1em 8px;
389
- transition: bottom .2s ease-in-out;
390
- overflow: auto;
391
- white-space: nowrap;
392
- i {
393
- position: relative;
394
- top: 5px;
2880
+ border-top: 1px solid var(--lay-clr-ln);
2881
+ padding-bottom: 16px;
2882
+ @media only screen and (min-width: 768px) {
2883
+ ${boxBase}
2884
+ padding-bottom: 16px;
395
2885
  }
396
- span {
397
- position: relative;
398
- top: 7px;
2886
+ @media only screen and (min-width: 1366px) {
2887
+ padding-bottom: 28px;
399
2888
  }
400
- button, a {
401
- padding: 6px 16px;
402
- font-size: 13px;
403
- min-height: unset;
404
- height: auto;
405
- margin: 0;
2889
+ `
2890
+ export const CardContainer = styled.section`
2891
+ margin-bottom: 16px;
2892
+ background: #FFFFFF;
2893
+ border: 1px solid rgb(232, 232, 232);
2894
+ border-radius: var(--sec-rd);
2895
+ margin-bottom: 20px;
2896
+ min-height: 72px;
2897
+ display: grid;
2898
+ align-items: center;
2899
+ overflow-x: auto;
2900
+ @media only screen and (min-width: 1366px) {
2901
+ min-height: 92px;
406
2902
  }
407
- @media (max-width: 767.9px) {
408
- &._refMasterTableBulkWrapper {
409
- position: fixed;
410
- width: 100vw;
411
- border: 1px solid #E3E3E3;
412
- background: #FFFFFF;
413
- z-index: 102;
414
- box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
415
- border-radius: 10px 10px 0px 0px;
2903
+ `
2904
+ export const CardWrapper = styled.div<{ $mode?: string }>`
2905
+ ${getCardModFunc}
2906
+ `
2907
+ export const DetailList = styled.ul<{ $mode?: string }>`
2908
+ ${clearList}
2909
+ ${getListModFunc}
2910
+ `
2911
+ export const DetailItemTitle = styled.article`
2912
+ position: relative;
2913
+ display: grid;
2914
+ padding-left: 24px;
2915
+ padding-right: 10px;
2916
+ grid-gap: 6px;
2917
+ align-self: baseline;
2918
+ a,
2919
+ div,
2920
+ span {
2921
+ font-size: 16px;
2922
+ font-weight: 600;
2923
+ svg {
416
2924
  display: none;
417
- >i, >span, >button { display: none; }
418
- >section {
419
- padding: 1em;
420
- >section >article {
421
- display: inline-grid;
422
- grid-auto-flow: row;
423
- grid-gap: 12px;
424
- width: 100%;
425
- }
426
- }
427
- & + ._refDropdownOverlay {
428
- display:none;
2925
+ }
2926
+ }
2927
+ span {
2928
+ font-size: 12px;
2929
+ overflow-wrap: break-word;
2930
+ }
2931
+ @media only screen and (min-width: 768px) {
2932
+ a,
2933
+ div,
2934
+ span {
2935
+ svg {
2936
+ display: inline;
2937
+ margin-left: 10px;
429
2938
  }
430
2939
  }
2940
+ span {
2941
+ font-size: 14px;
2942
+ }
431
2943
  }
432
- ${getBulkActionWrapperModifiedStyled}
433
2944
  `
434
- export const InitialContainer = styled.span`
435
- ${initialStyles}
436
- align-items: center;
2945
+ export const DetailItemAction = styled.article`
437
2946
  display: grid;
438
- color: #fff;
439
- text-align: center;
440
- border-radius: var(--ter-rd);
2947
+ grid-auto-flow: column;
2948
+ grid-template-columns: max-content;
2949
+ justify-items: center;
2950
+ justify-content: center;
2951
+ align-self: center;
441
2952
  `
442
- export const MasterTableActionWrapper = styled.section<{ $mode?: string }>`
443
- height: 35px;
444
- border-bottom: 1px solid var(--tab-clr-ln);
2953
+ export const DetailItemInfo = styled.article`
2954
+ display: grid;
2955
+ grid-gap: 4px;
2956
+ > span > span {
2957
+ display: inline;
2958
+ }
2959
+ span {
2960
+ text-transform: capitalize;
2961
+ overflow-wrap: anywhere;
2962
+ }
2963
+ `
2964
+ export const DetailItem = styled.li`
2965
+ position: relative;
2966
+ display: inline-grid;
2967
+ align-content: center;
2968
+ width: 100%;
2969
+ grid-auto-flow: column;
2970
+ grid-template-columns: var(--idate) auto var(--action);
2971
+ min-height: 70px;
2972
+ &:not(:only-child) {
2973
+ border-bottom: 2px solid #f5f5f5;
2974
+ &:last-child {
2975
+ border-bottom: 0;
2976
+ }
2977
+ }
2978
+ ${DetailItemInfo} {
2979
+ align-self: flex-start;
2980
+ grid-gap: 2px;
2981
+ }
2982
+ `
2983
+ export const DetailItemWrapper = styled.article`
2984
+ display: grid;
2985
+ grid-auto-flow: column;
2986
+ align-self: center;
2987
+ > article {
2988
+ padding: 0 5px;
2989
+ }
2990
+ @media only screen and (min-width: 1366px) {
2991
+ grid-gap: 5px;
2992
+ }
2993
+ `
2994
+ export const DetailPanelWrapper = styled.section`
2995
+ min-height: 66px;
2996
+ `
2997
+ export const PopupBoxWrapper = styled.article`
2998
+ display: grid;
2999
+ padding-bottom: 1em;
3000
+ grid-auto-flow: row;
3001
+ grid-gap: 16px;
3002
+ border-bottom: 1px solid var(--pri-clr-ln);
3003
+ &:last-child {
3004
+ padding-top: .5em;
3005
+ border-bottom: none;
3006
+ }
3007
+ > button {
3008
+ height: 30px;
3009
+ justify-self: left;
3010
+ }
3011
+ `
3012
+ export const PopupDownloadWrapper = styled.article`
3013
+ display: grid;
3014
+ grid-auto-flow: row;
3015
+ grid-gap: 1.2em;
3016
+ @media only screen and (min-width: 768px) {
3017
+ grid-template-columns: 1.25fr .75fr;
3018
+ }
3019
+ `
3020
+ export const CreateContainer = styled.section<{ $mode?: string }>`
3021
+ height: 100vh;
3022
+ overflow: auto;
445
3023
  background-color: var(--pri-clr-bg);
446
- > div {
447
- height: 35px !important;
448
- > div {
449
- display: inline-grid;
450
- width: 100%;
3024
+ ${getCreateContainerModFunc}
3025
+ `
3026
+ export const CreateHeaderWrapper = styled.article<{ $mode?: string }>`
3027
+ ${fullGrid}
3028
+ padding: 26px 15px 14px;
3029
+ background-color: var(--hd-clr-bg);
3030
+ grid-auto-flow: row;
3031
+ grid-template-rows: auto auto;
3032
+ grid-gap: 16px;
3033
+ article {
3034
+ display: grid;
3035
+ grid-auto-flow: column;
3036
+ grid-template-columns: 350px 1fr;
3037
+ grid-gap: 10;
3038
+ align-items: center;
3039
+ label {
3040
+ font-weight: 600;
3041
+ }
3042
+ }
3043
+ aside {
3044
+ display: grid;
3045
+ grid-gap: 10px;
3046
+ grid-template-columns: 1fr 1fr;
3047
+ button {
3048
+ padding: 7px 16px;
3049
+ }
3050
+ }
3051
+ @media only screen and (min-width: 768px) {
3052
+ padding: 26px 30px 14px;
3053
+ grid-auto-flow: column;
3054
+ grid-template-rows: none;
3055
+ grid-template-columns: auto max-content max-content;
3056
+ aside {
3057
+ grid-template-rows: none;
3058
+ grid-template-columns: auto;
451
3059
  grid-auto-flow: column;
452
- grid-template-columns: min-content;
453
- grid-gap: 5px;
3060
+ }
3061
+ .title {
3062
+ font-size: 30px;
454
3063
  }
455
3064
  }
456
- ${({ $mode }:{ $mode?: string }) => {
457
- if ($mode === 'picklist') {
3065
+ ${getCreateHeaderWrapperModFunc}
3066
+ `
3067
+
3068
+ export const CreateToolWrapper = styled.article<{ $mode?: string, $type?: string }>`
3069
+ padding: 20px 15px;
3070
+ margin: .5em 0;
3071
+ > section {
3072
+ display: inline-grid;
3073
+ width: 100%;
3074
+ grid-auto-flow: row;
3075
+ grid-gap: 10px 12px;
3076
+ &:first-child {
3077
+ padding-bottom: 20px;
3078
+ margin-bottom: 20px;
3079
+ border-bottom: 1px solid var(--ter-clr-ln);
3080
+ }
3081
+ &:last-child {
3082
+ margin-bottom: 0 !important;
3083
+ padding-bottom: 0 !important;
3084
+ border-bottom: none !important;
3085
+ }
3086
+ }
3087
+ @media only screen and (min-width: 768px) {
3088
+ padding: 20px 30px;
3089
+ grid-template-columns: repeat(2,1fr);
3090
+ }
3091
+ ${({ $mode, $type }:{ $mode?: string, $type?: string }) => {
3092
+ if ($mode === 'promotion') {
458
3093
  return css`
459
- background-color: var(--ter-clr-bg);
460
- border-top: 1px solid var(--tab-clr-ln);
461
- height: 50px;
462
- > div {
463
- height: 50px !important;
3094
+ margin: .5em 0;
3095
+ > section {
3096
+ &:last-child {
3097
+ > article:last-child {
3098
+ div {
3099
+ display: grid;
3100
+ align-items: center;
3101
+ grid-auto-flow: column;
3102
+ grid-template-columns: max-content;
3103
+ grid-gap: 10px;
3104
+ button {
3105
+ width: 130px;
3106
+ }
3107
+ }
3108
+ }
3109
+ }
3110
+ @media only screen and (min-width: 1024px) {
3111
+ grid-template-columns: repeat(3,290px);
3112
+ > article:nth-child(3) {
3113
+ grid-area: 2 / 1;
3114
+ }
3115
+ > article:nth-child(4) {
3116
+ grid-area: 2 / 2;
3117
+ }
3118
+ > article:nth-child(5) {
3119
+ grid-area: 2 / 3;
3120
+ }
3121
+ }
3122
+ @media only screen and (min-width: 1366px) {
3123
+ grid-template-columns: repeat(3,320px);
3124
+ }
3125
+ }
3126
+ `
3127
+ } else if ($mode === 'paymentreceive') {
3128
+ return css`
3129
+ > section {
3130
+ @media only screen and (min-width: 1024px) {
3131
+ grid-auto-flow: column;
3132
+ grid-template-columns: repeat(3,290px);
3133
+ }
3134
+ @media only screen and (min-width: 1366px) {
3135
+ grid-template-columns: repeat(3,320px);
3136
+ }
3137
+ }
3138
+ `
3139
+ } else if ($mode === 'picklist') {
3140
+ return css`
3141
+ > section {
3142
+ @media only screen and (min-width: 1024px) {
3143
+ grid-template-areas:
3144
+ "a b e e"
3145
+ "c d . .";
3146
+ grid-template-columns: 290px 290px 360px;
3147
+ > article {
3148
+ &:nth-child(1) {
3149
+ grid-area: a;
3150
+ }
3151
+ &:nth-child(2) {
3152
+ grid-area: b;
3153
+ }
3154
+ &:nth-child(3) {
3155
+ grid-area: c;
3156
+ }
3157
+ &:nth-child(4) {
3158
+ grid-area: d;
3159
+ }
3160
+ &:nth-child(5) {
3161
+ grid-area: e;
3162
+ position: relative;
3163
+ > div {
3164
+ width: 360px;
3165
+ position: absolute;
3166
+ }
3167
+ }
3168
+ }
3169
+ }
3170
+ @media only screen and (min-width: 1366px) {
3171
+ grid-template-columns: 320px 320px 400px;
3172
+ > article {
3173
+ &:nth-child(5) {
3174
+ > div {
3175
+ width: 400px;
3176
+ }
3177
+ }
3178
+ }
3179
+ }
3180
+ }
3181
+ `
3182
+ } else if ($mode === 'stock') {
3183
+ return css`
3184
+ > section {
3185
+ @media only screen and (min-width: 1024px) {
3186
+ grid-template-columns: ${$type === 'transfer' ? 'repeat(4,290px)' : ($type === 'price' ? 'repeat(2,290px)' : 'repeat(3,290px)')};
3187
+ }
3188
+ @media only screen and (min-width: 1366px) {
3189
+ grid-template-columns: ${$type === 'transfer' ? 'repeat(4,320px)' : ($type === 'price' ? 'repeat(2,320px)' : 'repeat(3,320px)')};
3190
+ }
464
3191
  }
465
3192
  `
466
3193
  }
467
- }}
3194
+ }}
468
3195
  `
469
- export const FigureWraper = styled.figure<{ $size?: string, $mode?: string }>`
470
- margin: 0;
3196
+
3197
+ export const SearchDropdownContainer = styled.section`
471
3198
  position: relative;
472
- overflow: hidden;
473
- border: 1px solid var(--pri-clr-ln);
474
- background-color: var(--pri-clr-bg);
475
- border-radius: var(--ter-rd);
476
- width: 30px;
477
- height: 30px;
478
- align-self: start;
479
- > img {
480
- object-fit: contain;
481
- width: 100%;
482
- height: 100%;
483
- background-color: var(--pri-clr-bg);
3199
+ `
3200
+ export const SearchResultWrapper = styled.aside`
3201
+ ${dropBase}
3202
+ position: absolute;
3203
+ z-index: 101;
3204
+ top: 34px;
3205
+ width: 100%;
3206
+ `
3207
+ export const SearchResultList = styled.section`
3208
+ display: block;
3209
+ overflow-y: auto;
3210
+ overflow-x: hidden;
3211
+ height: auto;
3212
+ max-height: 300px;
3213
+ `
3214
+ export const SearchResultItem = styled.div`
3215
+ border-bottom: 1px solid var(--ter-clr-ln);
3216
+ padding: 12px;
3217
+ display: inline-grid;
3218
+ width: 100%;
3219
+ grid-template-columns: 30px auto;
3220
+ grid-gap: 12px;
3221
+ cursor: pointer;
3222
+ &:hover {
3223
+ background-color: var(--hg-clr-bg);
3224
+ }
3225
+ `
3226
+ export const ListAddItemContainer = styled.div`
3227
+ overflow: auto;
3228
+ height: 400px;
3229
+ `
3230
+ export const SearchWrapperPopup = styled.div`
3231
+ position: relative;
3232
+ margin-top: 16px;
3233
+ padding: 0 16px 16px 16px;
3234
+ border-bottom: 1px solid var(--pri-clr-ln);
3235
+ input {
3236
+ height: 38px;
3237
+ }
3238
+ i:first-child {
3239
+ position: absolute;
3240
+ top: .75em;
3241
+ left: 1.75em;
3242
+ pointer-events: none;
3243
+ z-index: 1;
3244
+ }
3245
+ `
3246
+ export const PopupAddProductContainer = styled.section`
3247
+ margin-top: 1em;
3248
+ `
3249
+ export const PopupCard = styled.section<{ $mode?: string }>`
3250
+ padding: 1em;
3251
+ background-color: var(--sec-clr-bg);
3252
+ margin-bottom: 1em;
3253
+ @media only screen and (min-width: 768px) {
3254
+ padding: 1em 120px;
3255
+ }
3256
+ ${getPopupCardModFunc}
3257
+ `
3258
+
3259
+ export const PopupExportCardWrapper = styled.article`
3260
+ display: grid;
3261
+ grid-auto-flow: row;
3262
+ grid-gap: 1.2em;
3263
+ @media only screen and (min-width: 768px) {
3264
+ grid-template-columns: 1fr 1fr;
484
3265
  }
485
- ${({ $size }:{ $size?: string }) => {
486
- let style = ``;
487
- if ($size) {
488
- style += `
489
- width:${$size};
490
- height:${$size};
491
- `
492
- }
493
- return style;
494
- }}
495
3266
  `