forstok-ui-lib 5.3.5 → 5.4.3

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.
Files changed (33) hide show
  1. package/dist/index.d.ts +108 -5
  2. package/dist/index.js +1044 -163
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.mjs +1036 -155
  5. package/dist/index.mjs.map +1 -1
  6. package/package.json +3 -1
  7. package/src/assets/images/icons/edit-white.svg +5 -0
  8. package/src/assets/images/icons/loading-red.svg +27 -0
  9. package/src/assets/javascripts/function.ts +319 -10
  10. package/src/assets/javascripts/helper.ts +47 -0
  11. package/src/assets/stylesheets/shares.styles.ts +168 -0
  12. package/src/components/index.ts +3 -1
  13. package/src/components/masterTable/index.tsx +649 -0
  14. package/src/components/masterTable/partials/datas/confirm.tsx +92 -0
  15. package/src/components/masterTable/partials/datas/index.tsx +81 -0
  16. package/src/components/masterTable/partials/editors/date.bare.tsx +39 -0
  17. package/src/components/masterTable/partials/editors/date.tsx +123 -0
  18. package/src/components/masterTable/partials/editors/image.tsx +61 -0
  19. package/src/components/masterTable/partials/editors/input.bare.tsx +127 -0
  20. package/src/components/masterTable/partials/editors/input.tsx +140 -0
  21. package/src/components/masterTable/partials/editors/label.tsx +128 -0
  22. package/src/components/masterTable/partials/editors/select.bare.tsx +104 -0
  23. package/src/components/masterTable/partials/editors/select.tsx +142 -0
  24. package/src/components/masterTable/partials/editors/switch.tsx +56 -0
  25. package/src/components/masterTable/partials/editors/tag.tsx +49 -0
  26. package/src/components/masterTable/partials/editors/textarea.tsx +7 -0
  27. package/src/components/masterTable/styles.tsx +1012 -0
  28. package/src/components/masterTable/typed.ts +87 -0
  29. package/src/components/switch/index.tsx +52 -0
  30. package/src/components/switch/styles.ts +34 -0
  31. package/src/declarations.d.ts +3 -1
  32. package/src/typeds/shares.typed.ts +56 -2
  33. /package/src/components/upload/{drag_drop.tsx → drag.drop.tsx} +0 -0
@@ -0,0 +1,1012 @@
1
+ import styled, { css } from 'styled-components';
2
+ import { formLabel, elipsis, thirdElipsis } from '../../assets/stylesheets/bases.styles';
3
+ import IconEditWhite from '../../assets/images/icons/edit-white.svg';
4
+ import IconLoadingRed from '../../assets/images/icons/loading-red.svg';
5
+
6
+ const divHeaderCell = css`
7
+ overflow: hidden;
8
+ position: relative;
9
+ top: 0;
10
+ display: inline-block;
11
+ height: 50px;
12
+ padding: 10px 10px;
13
+ border-right: 1px solid var(--tab-clr-ln);
14
+ font-weight: 600;
15
+ line-height: 15px;
16
+ font-size: 1em
17
+ color: var(--hd-clr);
18
+ transition: width .25s ease-in-out;
19
+ `
20
+ const divCell = css`
21
+ overflow: hidden;
22
+ position: relative;
23
+ top: 0;
24
+ display: inline-block;
25
+ min-height: 82px;
26
+ padding: 16px 9px 10px 10px;
27
+ border-right: 1px solid var(--tab-clr-ln);
28
+ line-height: 1.2;
29
+ transition: width .25s ease-in-out, height .25s ease-in-out;
30
+ vertical-align: top;
31
+ i {
32
+ align-self: flex-start;
33
+ cursor: pointer;
34
+ }
35
+ `
36
+ const divCellReset = css`
37
+ overflow: auto;
38
+ top: auto;
39
+ height: auto;
40
+ padding: 0;
41
+ border: 0;
42
+ cursor: default;
43
+ `
44
+ const errrorLists = css`
45
+ input, textarea, .table-image-figure.is-error, .rc-cascader-selector, ._refCascaderContainer > div {
46
+ border: 1px solid var(--err-clr-ln) !important;
47
+ }
48
+ input.rc-cascader-selection-search-input {
49
+ border: none !important;
50
+ }
51
+ ._refContainer > div > div {
52
+ border-color: var(--err-clr-ln);
53
+ input {
54
+ border: none !important;
55
+ }
56
+ }
57
+ `
58
+ const commonCSSLists = css`
59
+ .table-image-figure {
60
+ display: block;
61
+ overflow: hidden;
62
+ width: 56px;
63
+ height: 56px;
64
+ margin: 0px;
65
+ position: relative;
66
+ border: 1px solid var(--pri-clr-ln);
67
+ background-color: var(--pri-clr-bg);
68
+ border-radius: var(--ter-rd);
69
+ &.edit, &.add, &.loading {
70
+ width: 70px;
71
+ height: 70px;
72
+ cursor: pointer;
73
+ img {
74
+ object-fit: contain;
75
+ width: 100%;
76
+ height: 100%;
77
+ background-color: var(--pri-clr-bg);
78
+ }
79
+ }
80
+ &.add {
81
+ background-color: #fbfdff;
82
+ border: 1px dashed #828ea3;
83
+ span {
84
+ color: #828ea3;
85
+ font-size: 20px;
86
+ position: absolute;
87
+ top: 50%;
88
+ left: 50%;
89
+ transform: translate(-50%, -50%);
90
+ }
91
+ }
92
+ &.edit {
93
+ border: 1px solid rgba(0, 0, 0, .04);
94
+ &:hover {
95
+ position: relative;
96
+ span {
97
+ width: 100%;
98
+ height: 100%;
99
+ position: absolute;
100
+ top: 0;
101
+ left: 0;
102
+ z-index: 1;
103
+ background-color: var(--ov-clr-bg);
104
+ }
105
+ &::after {
106
+ content: url(${IconEditWhite});
107
+ height: 14px
108
+ width: 14px;
109
+ display: inline-block;
110
+ pointer-events: none;
111
+ position: absolute;
112
+ top: 50%;
113
+ left: 50%;
114
+ transform: translate(-50%, -50%);
115
+ z-index: 10;
116
+ }
117
+ }
118
+ }
119
+ &.loading {
120
+ border: 1px solid rgba(0, 0, 0, .04);
121
+ cursor: default;
122
+ &::after {
123
+ content: url(${IconLoadingRed});
124
+ height: 14px;
125
+ width: 14px;
126
+ display: inline-block;
127
+ pointer-events: none;
128
+ position: absolute;
129
+ top: 50%;
130
+ left: 50%;
131
+ transform: translate(-50%, -50%);
132
+ z-index: 10;
133
+ }
134
+ }
135
+ img {
136
+ object-fit: contain;
137
+ width: 100%;
138
+ height: 100%;
139
+ background-color: var(--pri-clr-bg);
140
+ }
141
+ }
142
+ `
143
+ const trancateCSS = css`
144
+ .truncate-overflow {
145
+ position: relative;
146
+ max-height: calc(16 * 3)px;
147
+ display: -webkit-box !important;
148
+ -webkit-line-clamp: 3;
149
+ -webkit-box-orient: vertical;
150
+ overflow: hidden;
151
+ white-space: pre-wrap;
152
+ overflow-wrap: anywhere;
153
+ word-break: break-all;
154
+ line-height: 16px;
155
+ p {
156
+ line-height: 16px;
157
+ }
158
+ }
159
+ `
160
+
161
+ const getTablePopupWrapperModifiedStyled = ({ $mode }:{ $mode?: string }) => {
162
+ let style = ``
163
+ if ($mode === 'image-listing') {
164
+ style += `
165
+ padding: 12px 12px 12px 12px;
166
+ overflow: visible;
167
+ max-width: 452px;
168
+ .table-image-figure {
169
+ &.edit, &.add, &.loading {
170
+ width: 46.5px;
171
+ height: 46.5px;
172
+ }
173
+ }
174
+ .image-list {
175
+ max-width: 452px;
176
+ grid-gap: 8px;
177
+ grid-template-columns: repeat(3,46.5px);
178
+ grid-template-rows: repeat(3,auto);
179
+ }
180
+ @media only screen and (min-width: 768px) {
181
+ .image-list {
182
+ grid-template-columns: repeat(8, 46.5px);
183
+ grid-auto-flow: unset;
184
+ grid-template-rows: auto;
185
+ }
186
+
187
+ }
188
+ `
189
+ }
190
+ return style
191
+ }
192
+ const getCustomWrapperModifiedStyled = ({ $isExpand, $isEditable }:{ $isExpand?: boolean, $isEditable?: boolean }) => {
193
+ let style = ``
194
+ if ($isExpand) {
195
+ style += `
196
+ & ${CategoryByLabelContainer} {
197
+ padding-bottom: 8px;
198
+ }
199
+ `
200
+ }
201
+ if ($isEditable === false) {
202
+ style += `
203
+ grid-gap: 4px;
204
+ padding-left: 4px;
205
+ padding-top: 6px;
206
+ `
207
+ }
208
+ return style
209
+ }
210
+ const getFieldContainerModifiedStyled = ({ $isVariant, $isTotal }:{ $isVariant: boolean, $isTotal: number }) => {
211
+ if ($isVariant) {
212
+ return`
213
+ padding: 12px !important;
214
+ border-bottom: 1px solid #e3e3e3;
215
+ & ${FieldWrapper} {
216
+ grid-template-columns: 90px repeat(${$isTotal ? $isTotal : 4}, 114px);
217
+ > aside {
218
+ padding-left: 0;
219
+ }
220
+ }
221
+ `
222
+ }
223
+ else {
224
+ return `
225
+ padding-bottom: 8px;
226
+ ${FieldWrapper} {
227
+ grid-template-columns: repeat(4,150px);
228
+ }
229
+ `
230
+ }
231
+ }
232
+ const getMasterTableViewportModifiedStyled = ({ $mode }:{ $mode?: string }) => {
233
+ let style = ``
234
+ if ($mode === 'edit-master' || $mode === 'create-listing' || $mode==='edit-listing') {
235
+ style += `
236
+ height: calc(100vh - 120px);
237
+ @media only screen and (min-width: 768px) {
238
+ height: calc(100vh - 70px);
239
+ }
240
+ `
241
+ if ($mode === 'create-listing' || $mode === 'edit-listing') {
242
+ style += `
243
+ ${MasterTableBodyContent} .cell-colGroup {
244
+ &, > div {
245
+ min-height: 122px;
246
+ }
247
+ .cell-uneditable {
248
+ min-width: 449px;
249
+ }
250
+ }
251
+ `
252
+ }
253
+ } else if($mode === 'create-inbound' || $mode === 'create-outbound' || $mode === 'create-adjustment') {
254
+ style += `
255
+ height: calc(100vh - 164px - 367px);
256
+ @media only screen and (min-width: 768px) {
257
+ height: calc(100vh - 70px - 239px);
258
+ }
259
+ @media only screen and (min-width: 1024px) {
260
+ height: calc(100vh - 70px - 180px);
261
+ }
262
+ `
263
+ } else if($mode === 'create-transfer') {
264
+ style += `
265
+ height: calc(100vh - 120px - 426px);
266
+ @media only screen and (min-width: 768px) {
267
+ height: calc(100vh - 76px - 249px);
268
+ }
269
+ @media only screen and (min-width: 1024px) {
270
+ height: calc(100vh - 76px - 180px);
271
+ }
272
+ `
273
+ }
274
+ return style
275
+ }
276
+ const getMasterTableBodyContentModifiedStyled = ({ $mode }:{ $mode?: string}) => {
277
+ let style = ``
278
+ if($mode === 'create-transfer' || $mode === 'confirm-inbound' || $mode === 'confirm-outbound' || $mode === 'confirm-adjustment') {
279
+ style +=`
280
+ > div {
281
+ min-height: 66px;
282
+ &.cell-colGroup {
283
+ > div {
284
+ min-height: 66px;
285
+ }
286
+ }
287
+ &.cell-rowGroup {
288
+ .cell-row {
289
+ &, > div {
290
+ min-height: 66px;
291
+ }
292
+ }
293
+ }
294
+ .cell {
295
+ &-label {
296
+ &:not([data-key="item"]) {
297
+ > span, .cell-wrapper {
298
+ padding-top: 6px;
299
+ }
300
+ }
301
+ }
302
+ &-trash {
303
+ > article, >div {
304
+ padding-top: 6px;
305
+ }
306
+ }
307
+ &-checkbox {
308
+ padding-top: 22px;
309
+ }
310
+ }
311
+ }
312
+ `
313
+ } else if($mode === 'create-return') {
314
+ style +=`
315
+ > div {
316
+ .cell {
317
+ &-label {
318
+ &:not([data-key="item"]) {
319
+ > span, .cell-wrapper {
320
+ padding-top: 6px;
321
+ }
322
+ }
323
+ }
324
+ &-trash {
325
+ > article, >div {
326
+ padding-top: 6px;
327
+ }
328
+ }
329
+ &-checkbox {
330
+ padding-top: 22px;
331
+ }
332
+ }
333
+ }
334
+ `
335
+ } else if($mode === 'create-price') {
336
+ style +=`
337
+ > div {
338
+ min-height: 100px;
339
+ &.cell-colGroup {
340
+ > div {
341
+ min-height: 100px;
342
+ }
343
+ }
344
+ &.cell-rowGroup {
345
+ .cell-row {
346
+ &,
347
+ > div {
348
+ min-height: 100px;
349
+ }
350
+ }
351
+ }
352
+ }
353
+ ._refErrorContainer {
354
+ ${thirdElipsis}
355
+ }
356
+ `
357
+ } else if($mode === 'create-adjustment' || $mode === 'create-outbound') {
358
+ style +=`
359
+ > div {
360
+ min-height: 90px;
361
+ &.cell-colGroup {
362
+ > div {
363
+ min-height: 90px;
364
+ }
365
+ }
366
+ &.cell-rowGroup {
367
+ .cell-row {
368
+ &,
369
+ > div {
370
+ min-height: 90px;
371
+ }
372
+ }
373
+ }
374
+ }
375
+ `
376
+ }
377
+ return style
378
+ }
379
+
380
+ export const MasterTable = styled.section`
381
+ position: relative;
382
+ `
383
+ export const MasterTableWrapper = styled.article`
384
+ display: inline-block;
385
+ width: 100vw;
386
+ height: 100vh;
387
+ position: relative;
388
+ `
389
+ export const MasterTableViewport = styled.section<{ $mode?: string }>`
390
+ display: inline-block;
391
+ width: 100vw;
392
+ height: calc(100vh - 220px);
393
+ position: relative;
394
+ overflow: auto;
395
+ transition: all 1s ease;
396
+ @media only screen and (min-width: 768px) {
397
+ height: calc(100vh - 140px);
398
+ }
399
+ ${getMasterTableViewportModifiedStyled}
400
+ `
401
+ export const MasterTableCanvas = styled.article`
402
+ display: inline-grid;
403
+ grid-auto-flow: row;
404
+ padding-bottom: 1px;
405
+ min-width: 100vw;
406
+ `
407
+ export const MasterTableHeaderWrapper = styled.section`
408
+ display: inline-block;
409
+ width: 100%;
410
+ position: relative;
411
+ z-index: 99;
412
+ line-height: 7px;
413
+ transition: left 0s linear;
414
+ visibility: hidden;
415
+ > section > div {
416
+ ${divHeaderCell}
417
+ & >header {
418
+ position: absolute;
419
+ top: 50% !important;
420
+ transform: translateY(-50%);
421
+ left: 10px;
422
+ & img, & .initial-wrapper {
423
+ position: absolute;
424
+ left: 0;
425
+ top: -4px;
426
+ }
427
+ }
428
+ }
429
+ .headerCell-Checkbox > label{
430
+ position: absolute;
431
+ top: 50%;
432
+ left: 20px;
433
+ }
434
+ .headerCell-img {
435
+ & >header {
436
+ padding-left: 30px;
437
+ }
438
+ }
439
+ &._refMasterTableHeaderClone {
440
+ position: fixed;
441
+ z-index: 100;
442
+ background-color: var(--pri-clr-bg);
443
+ visibility: visible;
444
+ min-width: 100%;
445
+ overflow-y: hidden;
446
+ }
447
+ `
448
+ export const MasterTableHeaderContainer = styled.section`
449
+ display: inline-block;
450
+ width: 100%;
451
+ height: 50px;
452
+ overflow-y: hidden;
453
+ background-color: var(--ter-clr-bg);
454
+ line-height: 50px;
455
+ i[name='question'] {
456
+ display: inline-block;
457
+ margin-left: 2px;
458
+ position: relative;
459
+ top: 2px;
460
+ }
461
+ `
462
+ export const MasterTableBodyWrapper = styled.section`
463
+ display: inline-grid;
464
+ grid-auto-flow: row;
465
+ height: 100%;
466
+ align-content: start;
467
+ `
468
+ export const MasterTableBodyContent = styled.article<{ $mode?: string }>`
469
+ position: relative;
470
+ border-bottom: 1px solid var(--tab-clr-ln);
471
+ ${commonCSSLists}
472
+ ${trancateCSS}
473
+ &.is-highlighted, &.is-fullfilled {
474
+ background-color: rgba(232, 255, 237, .7);
475
+ .cell-rowGroup {
476
+ .cell-row {
477
+ .cell {
478
+ &, &-disabled {
479
+ background-color: transparent;
480
+ }
481
+ }
482
+ }
483
+ }
484
+ .cell-colGroup {
485
+ .cell {
486
+ &, &-uneditable {
487
+ background-color: transparent;
488
+ }
489
+ &-disabled {
490
+ background-color: rgb(250, 250, 250);
491
+ &, .cell-wrapper {
492
+ cursor: default;
493
+ }
494
+ }
495
+ &-label[data-key='promotionPrice'] {
496
+ background-color: transparent;
497
+ }
498
+ }
499
+ }
500
+ }
501
+ > div {
502
+ ${divCell}
503
+ }
504
+ .custom-error {
505
+ ${errrorLists}
506
+ }
507
+ .cell {
508
+ > div:not(.truncate-overflow) {
509
+ ${elipsis}
510
+ height: 100%;
511
+ &.master-editor {
512
+ overflow: unset;
513
+ }
514
+ }
515
+ &.cell-trash {
516
+ > div {
517
+ width: 100%;
518
+ display: inline-grid;
519
+ justify-content: center;
520
+ }
521
+ }
522
+ &:not(.cell-checkbox) {
523
+ > article, > section {
524
+ overflow-y: hidden;
525
+ }
526
+ }
527
+ > article, > section {
528
+ height: 100%;
529
+ position: relative;
530
+ }
531
+ > section {
532
+ &.master-editor {
533
+ overflow: unset;
534
+ }
535
+ > div {
536
+ overflow-wrap: break-word;
537
+ &:empty {
538
+ position: absolute;
539
+ top: 0;
540
+ left: 0;
541
+ height: 100%;
542
+ width: 100%;
543
+ }
544
+ }
545
+ }
546
+ &-tag {
547
+ span {
548
+ background-color: hsl(0,0%,90%);
549
+ border-radius: 2px;
550
+ display: flex;
551
+ margin: 2px;
552
+ min-width: 0;
553
+ padding: 3px 4px;
554
+ padding-left: 6px;
555
+ float: left;
556
+ font-size: 12px;
557
+ }
558
+ }
559
+ &-select {
560
+ text-transform: capitalize;
561
+ }
562
+ &-editing {
563
+ input, textarea, .table-image-figure {
564
+ border: 1px solid var(--pri-clr-ln__fc) !important;
565
+ }
566
+ ._refContainer > div > div {
567
+ border-color: var(--pri-clr-ln__fc);
568
+ border-width: 1px;
569
+ input { border: none !important; }
570
+ }
571
+ }
572
+ &-error {
573
+ &:not(.cell-custom_select):not(.cell-custom_input) {
574
+ ${errrorLists}
575
+ }
576
+ }
577
+ &-uneditable {
578
+ background-color: rgb(250, 250, 250);
579
+ }
580
+ &-label {
581
+ cursor: default !important;
582
+ }
583
+ &-switch {
584
+ text-align: center;
585
+ }
586
+ .cell-wrapper {
587
+ .is-less {
588
+ display: none !important;
589
+ width: 0 !important;
590
+ height: 0 !important;
591
+ }
592
+ ._refCustomContainer {
593
+ min-height: 32px;
594
+ ._refLoadingfield {
595
+ min-height: 32px;
596
+ display: inline-block;
597
+ width: 100%;
598
+ }
599
+ }
600
+ }
601
+ &:not(.cell-custom_select):not(.cell-custom_input):not(.cell-label):not(.cell-checkbox) {
602
+ .cell-wrapper {
603
+ cursor: pointer;
604
+ position: absolute;
605
+ top: 0;
606
+ left: 0;
607
+ width: 100%;
608
+ height: 100%;
609
+ padding: 16px 10px 10px;
610
+ }
611
+ }
612
+ }
613
+ .cell-colGroup {
614
+ padding: 0;
615
+ border-right: 0;
616
+ line-height: 0;
617
+ > div {
618
+ ${divCell}
619
+ &:first-child {
620
+ > div {
621
+ display: grid;
622
+ justify-content: center;
623
+ }
624
+ }
625
+ }
626
+ }
627
+ .cell-rowGroup {
628
+ ${divCellReset}
629
+ position: absolute;
630
+ top: 0;
631
+ display: inline-grid;
632
+ grid-auto-flow: row;
633
+ .cell-row {
634
+ position: relative;
635
+ border-bottom: 1px solid var(--tab-clr-ln);
636
+ min-height: 82px;
637
+ &:last-child {
638
+ border-bottom: 0;
639
+ }
640
+ > div {
641
+ ${divCell}
642
+ }
643
+ .cell-disabled {
644
+ background-color: rgb(250, 250, 250);
645
+ border-bottom: 1px solid var(--tab-clr-ln);
646
+ &, .cell-wrapper {
647
+ cursor: default;
648
+ }
649
+ }
650
+ }
651
+ }
652
+ .cell-checkbox {
653
+ &:not(.isChecked):hover , &.isChecked {
654
+ article > div {
655
+ &:first-child {
656
+ display: none;
657
+ }
658
+ &:last-child {
659
+ display: block !important;
660
+ }
661
+ }
662
+ }
663
+ > article {
664
+ overflow-y: unset;
665
+ }
666
+ article > div {
667
+ text-align: center;
668
+ &:first-child {
669
+ display: grid;
670
+ z-index: 10;
671
+ position: relative;
672
+ }
673
+ &:last-child {
674
+ display: none !important;
675
+ position: absolute;
676
+ top: 0;
677
+ left: 50%;
678
+ margin-left: -7px;
679
+ z-index: 1;
680
+ span {
681
+ top: 0;
682
+ }
683
+ }
684
+ }
685
+ }
686
+ .cell-custom_select, .cell-custom_input {
687
+ textarea {
688
+ resize: none;
689
+ min-height: 200px;
690
+ max-height: 200px;
691
+ }
692
+ div[class*="-placeholder"] {
693
+ font-size: 13px;
694
+ }
695
+ }
696
+ textarea {
697
+ resize: auto;
698
+ min-height: 50px;
699
+ }
700
+ input, textarea {
701
+ padding: 8px;
702
+ }
703
+ .popup-editor {
704
+ position: fixed;
705
+ z-index: 99;
706
+ & , &-overlay {
707
+ top: 0;
708
+ left: 0;
709
+ width: 100vw;
710
+ height: 100vh;
711
+ }
712
+ &-overlay {
713
+ position: absolute;
714
+ z-index: 1;
715
+ background-color: var(--ov-clr-bg);
716
+ }
717
+ &-content {
718
+ background: #fff;
719
+ top: 50%;
720
+ left: 50%;
721
+ position: relative;
722
+ transform: translate(-50%, -50%);
723
+ z-index: 1;
724
+ &.ck-editor-wrapper {
725
+ width: 500px;
726
+ height: 400px;
727
+ }
728
+ }
729
+ &-header {
730
+ background-color: var(--pri-clr-bg);
731
+ border-bottom: 1px solid var(--sec-clr-ln);
732
+ h3 {
733
+ font-size: 20px;
734
+ padding: 11px 30px;
735
+ color: var(---hd-clr);
736
+ }
737
+ button[mode="round-close"] {
738
+ position: absolute;
739
+ top: 16px;
740
+ right: 20px;
741
+ }
742
+ }
743
+ }
744
+ ${getMasterTableBodyContentModifiedStyled}
745
+ `
746
+ export const TablePopupWrapper = styled.section<{ $mode?: string }>`
747
+ overflow: hidden;
748
+ ${commonCSSLists}
749
+ .ck-editor__editable {
750
+ min-height: 200px;
751
+ max-height: 200px;
752
+ }
753
+ .image-list {
754
+ list-style: none;
755
+ margin: 0;
756
+ padding: 0;
757
+ display: inline-grid;
758
+ width: 100%;
759
+ grid-auto-flow: column;
760
+ grid-gap: 12px;
761
+ justify-content: left;
762
+ grid-template-columns: repeat(3,70px);
763
+ grid-template-rows: repeat(3,auto);
764
+ li {
765
+ position: relative;
766
+ .remove {
767
+ font-style: normal;
768
+ position: absolute;
769
+ top: -6px;
770
+ right: -6px;
771
+ background: #000;
772
+ color: var(--sec-clr);
773
+ border-radius: 50%;
774
+ width: 14px;
775
+ height: 14px;
776
+ padding: 3px 5px;
777
+ font-weight: 600;
778
+ font-size: 7px;
779
+ z-index: 1;
780
+ cursor: pointer;
781
+ }
782
+ aside {
783
+ font-size: 11px;
784
+ line-height: 15px;
785
+ letter-spacing: 0.6px;
786
+ padding-top: 6px;
787
+ text-align: center;
788
+ max-height: 36px;
789
+ overflow: hidden;
790
+ }
791
+ > input {
792
+ display: none;
793
+ }
794
+ }
795
+ }
796
+ @media only screen and (min-width: 768px) {
797
+ .image-list {
798
+ grid-template-rows: none;
799
+ grid-template-columns: repeat(auto-fill, 70px);
800
+ }
801
+ }
802
+ ${getTablePopupWrapperModifiedStyled}
803
+ `
804
+ export const BulkEditContainer = styled.section<{ $mode?: string }>`
805
+ display: grid;
806
+ grid-auto-flow: row;
807
+ grid-gap: 10px;
808
+ align-content: start;
809
+ margin-bottom: 1em;
810
+ ${({ $mode }:{ $mode?: string }) => {
811
+ if ($mode === 'switch') {
812
+ return css`
813
+ grid-auto-flow: column;
814
+ `
815
+ }
816
+ }}
817
+ `
818
+ export const LabelContainer = styled.article`
819
+ display: inline-grid;
820
+ width: 100%;
821
+ grid-auto-flow: column;
822
+ grid-template-columns: max-content auto;
823
+ grid-gap: 10px;
824
+ align-items: center;
825
+ `
826
+ export const ProductByLabelContainer = styled.div`
827
+ display: inline-grid;
828
+ width: 100%;
829
+ grid-auto-flow: row;
830
+ grid-gap: 6px;
831
+ > section {
832
+ display: grid;
833
+ &:first-child {
834
+ grid-auto-flow: column;
835
+ grid-template-columns: 56px auto;
836
+ grid-gap: 10px;
837
+ }
838
+ &:last-child {
839
+ grid-auto-flow: row;
840
+ grid-gap: 2px;
841
+ font-size: 13px;
842
+ }
843
+ .counter-product-label {
844
+ display: inline-block;
845
+ width: auto;
846
+ margin-top: 4px;
847
+ background: #EBEBEB;
848
+ border-radius: var(--sec-rd);
849
+ padding: 2px 10px;
850
+ color: var(--mt-clr);
851
+ font-size: 12px;
852
+ line-height: 13px;
853
+ }
854
+ }
855
+ `
856
+ export const ProductByLabelName = styled.div`
857
+ height: auto;
858
+ max-height: 34px;
859
+ white-space: nowrap;
860
+ text-overflow: ellipsis;
861
+ overflow: hidden;
862
+ @supports (-webkit-line-clamp: 2) {
863
+ overflow: hidden;
864
+ text-overflow: ellipsis;
865
+ white-space: initial;
866
+ display: -webkit-box;
867
+ -webkit-line-clamp: 2;
868
+ -webkit-box-orient: vertical;
869
+ }
870
+ `
871
+ export const ActionByLabelContainer = styled.article<{ $mode?: string }>`
872
+ ${({ $mode }:{ $mode?: string }) => {
873
+ if ($mode === 'add') {
874
+ return css`
875
+ div {
876
+ position: relative;
877
+ cursor: pointer;
878
+ text-align: center;
879
+ }
880
+ `
881
+ }
882
+ }}
883
+ `
884
+ export const CategoryByLabelContainer = styled.article<{ $mode?: string }>`
885
+ display: inline-grid;
886
+ position: relative;
887
+ width: 100%;
888
+ &, .ck.ck-editor, .rc-cascader, &._refCategoryContainer > div {
889
+ &:not([mode="image"]) {
890
+ width: 429px !important;
891
+ }
892
+ }
893
+ .ck-editor__editable {
894
+ min-height: 200px;
895
+ max-height: 200px;
896
+ }
897
+ input + i {
898
+ position: absolute;
899
+ right: 9px;
900
+ top: 29px;
901
+ z-index: 1;
902
+ ::before {
903
+ fill: #c7c7cc;
904
+ color: #c7c7cc;
905
+ opacity: .5;
906
+ }
907
+ }
908
+ ${({ $mode }:{ $mode?: string }) => {
909
+ if ($mode === 'image') {
910
+ return css`
911
+ width: 100% !important;
912
+ `
913
+ }
914
+ }}
915
+ `
916
+ export const CustomWrapper = styled.div<{ $isExpand?: boolean, $isEditable?: boolean }>`
917
+ display: inline-grid;
918
+ width: auto;
919
+ grid-auto-flow: row;
920
+ grid-gap: 10px;
921
+ input, textarea { box-shadow: none; }
922
+ ${getCustomWrapperModifiedStyled}
923
+ `
924
+ export const CustomBox = styled.div`
925
+ width: 429px;
926
+ display: block;
927
+ `
928
+ export const CustomWrapperTitle = styled.aside`
929
+ margin-bottom: 6px;
930
+ padding: 0 6px;
931
+ position: relative;
932
+ ${formLabel}
933
+ &::first-letter {
934
+ text-transform: uppercase;
935
+ }
936
+ `
937
+ export const CustomWrapperTitleSub = styled.i`
938
+ font-weight: 400;
939
+ font-style: normal;
940
+ `
941
+ export const CustomRadioWrapper = styled.div`
942
+ display: grid;
943
+ grid-auto-flow: column;
944
+ grid-template-columns: max-content;
945
+ grid-gap: 15px;
946
+ `
947
+ export const FieldContainer = styled.section<{ $isVariant: boolean, $isTotal: number }>`
948
+ display: inline-grid;
949
+ width: 100%;
950
+ grid-auto-flow: row;
951
+ grid-gap:8px;
952
+ font-size: 13px;
953
+ ${getFieldContainerModifiedStyled}
954
+ `
955
+ export const FieldWrapper = styled.div`
956
+ display: grid;
957
+ grid-auto-flow: column;
958
+ grid-template-columns: 110px auto;
959
+ grid-gap:10px;
960
+ align-items: baseline;
961
+ justify-content: start;
962
+ `
963
+ export const IsMassContainer = styled.div`
964
+ grid-gap: 12px !important;
965
+ > a {
966
+ position: relative;
967
+ font-weight: 400;
968
+ font-size: 13px;
969
+ &:after {
970
+ content: '|';
971
+ right: -8px;
972
+ position: absolute;
973
+ }
974
+ &:last-child {
975
+ &:after {
976
+ display: none;
977
+ }
978
+ }
979
+ }
980
+ `
981
+ export const StoreContainer = styled.div`
982
+ display: inline-grid;
983
+ width: 100%;
984
+ grid-auto-flow: row;
985
+ grid-gap: 6px;
986
+ > section {
987
+ display: grid;
988
+ &:first-child {
989
+ grid-auto-flow: column;
990
+ grid-template-columns: 30px auto;
991
+ grid-gap: 10px;
992
+ }
993
+ &:last-child {
994
+ grid-auto-flow: row;
995
+ grid-gap: 10px;
996
+ font-size: 13px;
997
+ }
998
+ }
999
+ `
1000
+ export const AdjustedLabel = styled.span`
1001
+ display: inline-block;
1002
+ font-weight: 600;
1003
+ margin-top: 5px;
1004
+ width: 100%;
1005
+ `
1006
+ export const InfoLabel = styled.span`
1007
+ display: flex;
1008
+ margin-top: 5px;
1009
+ font-size: 12px;
1010
+ text-wrap: wrap;
1011
+ word-wrap: break-word;
1012
+ `