diginet-core-ui 1.3.34 → 1.3.35

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 (39) hide show
  1. package/assets/images/menu/dhr/MHRP09N0032.svg +7 -0
  2. package/components/avatar/index.js +19 -19
  3. package/components/badge/index.js +61 -64
  4. package/components/button/icon.js +21 -21
  5. package/components/button/index.js +180 -180
  6. package/components/button/ripple-effect.js +23 -23
  7. package/components/chart/Pie-v2/index.js +40 -42
  8. package/components/chip/index.js +129 -134
  9. package/components/form-control/attachment/index.js +431 -435
  10. package/components/form-control/calendar/function.js +69 -46
  11. package/components/form-control/calendar/index.js +12 -3
  12. package/components/form-control/control/index.js +35 -23
  13. package/components/form-control/date-picker/index.js +36 -36
  14. package/components/form-control/date-range-picker/index.js +84 -86
  15. package/components/form-control/dropdown/index.js +462 -431
  16. package/components/form-control/dropdown-box/index.js +53 -53
  17. package/components/form-control/label/index.js +16 -15
  18. package/components/form-control/money-input/index.js +106 -7
  19. package/components/form-control/radio/index.js +129 -132
  20. package/components/form-control/text-input/index.js +25 -28
  21. package/components/form-control/toggle/index.js +106 -107
  22. package/components/modal/modal.js +43 -46
  23. package/components/popover/index.js +27 -29
  24. package/components/popup/index.js +73 -77
  25. package/components/popup/proposals_popup.js +46 -48
  26. package/components/popup/v2/index.js +108 -110
  27. package/components/progress/circular.js +65 -66
  28. package/components/tab/tab-container.js +32 -14
  29. package/components/tab/tab-header.js +81 -56
  30. package/components/tab/tab-panel.js +46 -17
  31. package/components/tab/tab.js +105 -87
  32. package/components/tooltip/index.js +24 -26
  33. package/components/typography/index.js +10 -10
  34. package/icons/basic.js +148 -27
  35. package/icons/effect.js +26 -26
  36. package/package.json +1 -1
  37. package/readme.md +17 -0
  38. package/theme/settings.js +7 -5
  39. package/utils/number.js +11 -12
@@ -162,450 +162,448 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
162
162
  const popoverRef = useRef(null);
163
163
  const isDeleteAll = useRef(false);
164
164
  const ViewAttachType = css`
165
- cursor: pointer;
166
- height: 24px;
167
- color: ${rest};
168
- &:hover {
169
- color: ${active};
170
- }
171
- `;
165
+ cursor: pointer;
166
+ height: 24px;
167
+ color: ${rest};
168
+ &:hover {
169
+ color: ${active};
170
+ }
171
+ `;
172
172
  const attachmentHandleIcon = css`
173
- display: none;
174
- height: 24px;
175
- margin-right: 10px;
176
- border-right: 1px solid ${normal};
177
- span {
178
- margin-right: 10px;
179
- color: ${rest};
180
- cursor: pointer;
181
- &:hover {
182
- color: ${active};
183
- }
184
- }
185
- `;
186
- const AttachmentHeader = css`
187
- /* position: relative; */
188
- height: 48px;
189
- display: flex;
190
- padding: 16px 24px;
191
- align-items: center;
192
- /* margin-bottom: 10px; */
193
- box-sizing: border-box;
194
- justify-content: space-between;
195
- .css-${attachmentHandleIcon.name},
196
- .css-${ViewAttachType.name} {
197
- z-index: 1;
198
- }
199
- `;
200
- const AttachmentInfo = css`
201
- display: flex;
202
- position: relative;
203
- align-items: center;
204
- margin: 0;
205
- &+p.attachment-error {
206
- color: ${danger};
207
- }
208
- span {
209
- display: none;
210
- color: ${danger};
211
- margin: 10px;
212
- cursor: help;
213
- opacity: 0;
214
- ${paragraph1};
215
- span {
216
- display: block;
217
- position: absolute;
218
- opacity: 1;
219
- transform: scaleX(0) translateY(-50%);
220
- left: 80px;
221
- z-index: 4;
222
- width: max-content;
223
- height: max-content;
224
- max-height: 72px;
225
- overflow: auto;
226
- border: 1px solid ${danger};
227
- border-radius: 4px;
228
- padding: 5px 8px;
229
- transition: transform 0.3s linear 0.3s;
230
- transform-origin: left;
231
- &::-webkit-scrollbar {
232
- width: 4px;
233
- background-color: white !important;
234
- border-radius: 4px;
173
+ display: none;
174
+ height: 24px;
175
+ margin-right: 10px;
176
+ border-right: 1px solid ${normal};
177
+ span {
178
+ margin-right: 10px;
179
+ color: ${rest};
180
+ cursor: pointer;
181
+ &:hover {
182
+ color: ${active};
183
+ }
235
184
  }
236
- &::-webkit-scrollbar-thumb{
237
- border-radius: 10px;
238
- mix-blend-mode: normal;
239
- background-color: ${danger} !important;
240
- background-clip: content-box;
185
+ `;
186
+ const AttachmentHeader = css`
187
+ /* position: relative; */
188
+ height: 48px;
189
+ display: flex;
190
+ padding: 16px 24px;
191
+ align-items: center;
192
+ /* margin-bottom: 10px; */
193
+ box-sizing: border-box;
194
+ justify-content: space-between;
195
+ .css-${attachmentHandleIcon.name}, .css-${ViewAttachType.name} {
196
+ z-index: 1;
241
197
  }
242
- ul {
243
- display: contents;
244
- li {
245
- list-style: none;
246
- }
198
+ `;
199
+ const AttachmentInfo = css`
200
+ display: flex;
201
+ position: relative;
202
+ align-items: center;
203
+ margin: 0;
204
+ & + p.attachment-error {
205
+ color: ${danger};
247
206
  }
248
- }
249
- &:hover {
250
207
  span {
251
- transform: scaleX(1) translateY(-50%);
252
- transition-delay: 0s;
208
+ display: none;
209
+ color: ${danger};
210
+ margin: 10px;
211
+ cursor: help;
212
+ opacity: 0;
213
+ ${paragraph1};
214
+ span {
215
+ display: block;
216
+ position: absolute;
217
+ opacity: 1;
218
+ transform: scaleX(0) translateY(-50%);
219
+ left: 80px;
220
+ z-index: 4;
221
+ width: max-content;
222
+ height: max-content;
223
+ max-height: 72px;
224
+ overflow: auto;
225
+ border: 1px solid ${danger};
226
+ border-radius: 4px;
227
+ padding: 5px 8px;
228
+ transition: transform 0.3s linear 0.3s;
229
+ transform-origin: left;
230
+ &::-webkit-scrollbar {
231
+ width: 4px;
232
+ background-color: white !important;
233
+ border-radius: 4px;
234
+ }
235
+ &::-webkit-scrollbar-thumb {
236
+ border-radius: 10px;
237
+ mix-blend-mode: normal;
238
+ background-color: ${danger} !important;
239
+ background-clip: content-box;
240
+ }
241
+ ul {
242
+ display: contents;
243
+ li {
244
+ list-style: none;
245
+ }
246
+ }
247
+ }
248
+ &:hover {
249
+ span {
250
+ transform: scaleX(1) translateY(-50%);
251
+ transition-delay: 0s;
252
+ }
253
+ }
253
254
  }
254
- }
255
- }
256
- `;
255
+ `;
257
256
  const AttachmentText = css`
258
- ${heading5};
259
- text-transform: uppercase;
260
- color: ${sub};
261
- user-select: none;
262
- `;
257
+ ${heading5};
258
+ text-transform: uppercase;
259
+ color: ${sub};
260
+ user-select: none;
261
+ `;
263
262
  const AttachmentHeaderIcon = css`
264
- display: flex;
265
- align-items: center;
266
- `;
263
+ display: flex;
264
+ align-items: center;
265
+ `;
267
266
  const AttachmentInput = css`
268
- position: absolute;
269
- width: 100%;
270
- height: 100%;
271
- top: 0;
272
- left: 0;
273
- z-index: 4;
274
- display: none;
275
- input {
276
- position: relative;
277
- opacity: 0;
278
- top: -20px;
279
- font-size: 0px;
280
- width: 100%;
281
- height: calc(100% + 20px);
282
- }
283
- `;
267
+ position: absolute;
268
+ width: 100%;
269
+ height: 100%;
270
+ top: 0;
271
+ left: 0;
272
+ z-index: 4;
273
+ display: none;
274
+ input {
275
+ position: relative;
276
+ opacity: 0;
277
+ top: -20px;
278
+ font-size: 0px;
279
+ width: 100%;
280
+ height: calc(100% + 20px);
281
+ }
282
+ `;
284
283
  const AttachmentImageCenter = css`
285
- width: 100%;
286
- height: 100%;
287
- display: flex;
288
- justify-content: center;
289
- align-items: center;
290
- `;
291
- const AttachmentImageContent = css`
292
- display: grid;
293
- text-align: center;
294
- `;
295
- const AttachmentImageIcon = css`
296
- margin-bottom: 0;
297
- z-index: 3;
298
- width: 24px;
299
- height: 24px;
300
- svg {
301
- color: ${rest};
302
- }
303
- &:hover {
304
- border-color: ${lineHover};
305
- svg {
306
- color: ${active};
307
- }
308
- }
309
- `;
310
- const AttachmentImageText = css`
311
- display: none;
312
- ${paragraph3};
313
- color: ${rest};
314
- user-select: none;
315
- `;
316
- const AttachmentImage = css`
317
- margin-right: 10px;
318
- &.hint-center {
319
- position: absolute;
320
- width: 100%;
321
- height: 100%;
322
- top: 0;
323
- left: 0;
324
- margin-right: 0;
325
- z-index: 1;
326
- .css-${AttachmentImageText.name} {
327
- display: block;
328
- }
329
- .css-${AttachmentImageIcon.name} {
284
+ width: 100%;
285
+ height: 100%;
330
286
  display: flex;
331
- align-items: center;
332
287
  justify-content: center;
333
- width: 64px;
334
- height: 64px;
335
- margin: 0 auto 8px auto;
336
- border: 1px dashed ${normal};
337
- border-radius: 50%;
288
+ align-items: center;
289
+ `;
290
+ const AttachmentImageContent = css`
291
+ display: grid;
292
+ text-align: center;
293
+ `;
294
+ const AttachmentImageIcon = css`
295
+ margin-bottom: 0;
296
+ z-index: 3;
297
+ width: 24px;
298
+ height: 24px;
338
299
  svg {
339
- width: 40px;
340
- height: 40px;
300
+ color: ${rest};
341
301
  }
342
302
  &:hover {
343
303
  border-color: ${lineHover};
344
- background-color: ${fillHover};
304
+ svg {
305
+ color: ${active};
306
+ }
345
307
  }
346
- }
347
- }
348
- `;
308
+ `;
309
+ const AttachmentImageText = css`
310
+ display: none;
311
+ ${paragraph3};
312
+ color: ${rest};
313
+ user-select: none;
314
+ `;
315
+ const AttachmentImage = css`
316
+ margin-right: 10px;
317
+ &.hint-center {
318
+ position: absolute;
319
+ width: 100%;
320
+ height: 100%;
321
+ top: 0;
322
+ left: 0;
323
+ margin-right: 0;
324
+ z-index: 1;
325
+ .css-${AttachmentImageText.name} {
326
+ display: block;
327
+ }
328
+ .css-${AttachmentImageIcon.name} {
329
+ display: flex;
330
+ align-items: center;
331
+ justify-content: center;
332
+ width: 64px;
333
+ height: 64px;
334
+ margin: 0 auto 8px auto;
335
+ border: 1px dashed ${normal};
336
+ border-radius: 50%;
337
+ svg {
338
+ width: 40px;
339
+ height: 40px;
340
+ }
341
+ &:hover {
342
+ border-color: ${lineHover};
343
+ background-color: ${fillHover};
344
+ }
345
+ }
346
+ }
347
+ `;
349
348
  const AttachedItemInfo = css`
350
- /* width: 40%; */
351
- /* max-width: 350px; */
352
- border-radius: 4px;
353
- min-width: 104px;
354
- display: flex;
355
- align-items: center;
356
- user-select: none;
357
- margin-right: 10px;
358
- min-width: calc(50% - 10px);
359
- `;
349
+ /* width: 40%; */
350
+ /* max-width: 350px; */
351
+ border-radius: 4px;
352
+ min-width: 104px;
353
+ display: flex;
354
+ align-items: center;
355
+ user-select: none;
356
+ margin-right: 10px;
357
+ min-width: calc(50% - 10px);
358
+ `;
360
359
  const AttachedItemInfoIcon = css`
361
- display: flex;
362
- position: relative;
363
- max-height: 16px;
364
- max-width: 14px;
365
- padding: 4px 5px;
366
- cursor: pointer;
367
- box-sizing: content-box;
368
- &.new-file:after {
369
- content: "";
370
- position: absolute;
371
- top: 4.5px;
372
- left: -2px;
373
- width: 4px;
374
- height: 4px;
375
- border-radius: 50%;
376
- background: ${success};
377
- }
378
- `;
360
+ display: flex;
361
+ position: relative;
362
+ max-height: 16px;
363
+ max-width: 14px;
364
+ padding: 4px 5px;
365
+ cursor: pointer;
366
+ box-sizing: content-box;
367
+ &.new-file:after {
368
+ content: '';
369
+ position: absolute;
370
+ top: 4.5px;
371
+ left: -2px;
372
+ width: 4px;
373
+ height: 4px;
374
+ border-radius: 50%;
375
+ background: ${success};
376
+ }
377
+ `;
379
378
  const AttachedItemInfoName = css`
380
- ${paragraph1};
381
- color: ${dark};
382
- margin-left: 12px;
383
- padding-top: 1px;
384
- cursor: pointer;
385
- overflow: hidden;
386
- white-space: nowrap;
387
- text-overflow: ellipsis;
388
- box-sizing: content-box;
389
- `;
379
+ ${paragraph1};
380
+ color: ${dark};
381
+ margin-left: 12px;
382
+ padding-top: 1px;
383
+ cursor: pointer;
384
+ overflow: hidden;
385
+ white-space: nowrap;
386
+ text-overflow: ellipsis;
387
+ box-sizing: content-box;
388
+ `;
390
389
  const AttachedItemOwner = css`
391
- display: flex;
392
- position: relative;
393
- /* max-width: 50%; */
394
- height: 100%;
395
- align-items: center;
396
- ${paragraph2};
397
- color: ${sub};
398
- cursor: pointer;
399
- user-select: none;
400
- .detail-info {
401
- display: flex;
402
- min-width: 333px;
403
- .username {
404
- display: inline-block;
405
- /* width: 35%; */
406
- min-width: 120px;
407
- max-width: 120px;
408
- overflow: hidden;
409
- white-space: nowrap;
410
- text-overflow: ellipsis;
411
- }
412
- .datetime {
413
- display: inline-block;
414
- /* width: 45%; */
415
- min-width: max-content;
416
- max-width: max-content;
417
- }
418
- .filesize {
419
- /* width: 20%; */
420
- float: right;
421
- text-align: right;
422
- margin-left: auto;
423
- }
424
- }
425
- `;
390
+ display: flex;
391
+ position: relative;
392
+ /* max-width: 50%; */
393
+ height: 100%;
394
+ align-items: center;
395
+ ${paragraph2};
396
+ color: ${sub};
397
+ cursor: pointer;
398
+ user-select: none;
399
+ .detail-info {
400
+ display: flex;
401
+ min-width: 333px;
402
+ .username {
403
+ display: inline-block;
404
+ /* width: 35%; */
405
+ min-width: 120px;
406
+ max-width: 120px;
407
+ overflow: hidden;
408
+ white-space: nowrap;
409
+ text-overflow: ellipsis;
410
+ }
411
+ .datetime {
412
+ display: inline-block;
413
+ /* width: 45%; */
414
+ min-width: max-content;
415
+ max-width: max-content;
416
+ }
417
+ .filesize {
418
+ /* width: 20%; */
419
+ float: right;
420
+ text-align: right;
421
+ margin-left: auto;
422
+ }
423
+ }
424
+ `;
426
425
  const AttachedLinear = css`
427
- position: absolute;
428
- width: 100%;
429
- top: 0;
430
- background: #FFF;
431
- height: 100%;
432
- display: flex;
433
- align-items: center;
434
- `;
426
+ position: absolute;
427
+ width: 100%;
428
+ top: 0;
429
+ background: #fff;
430
+ height: 100%;
431
+ display: flex;
432
+ align-items: center;
433
+ `;
435
434
  const AttachedItem = css`
436
- height: 24px;
437
- display: flex;
438
- justify-content: space-between;
439
- align-items: center;
440
- padding: 0 8px;
441
- position: relative;
442
- transition: padding 0.5s ease;
443
- border-radius: 4px;
444
- `;
435
+ height: 24px;
436
+ display: flex;
437
+ justify-content: space-between;
438
+ align-items: center;
439
+ padding: 0 8px;
440
+ position: relative;
441
+ transition: padding 0.5s ease;
442
+ border-radius: 4px;
443
+ `;
445
444
  const Attached = css`
446
- position: relative;
447
- /* width: calc(100% - 10px); */
448
- height: 100%;
449
- max-height: 152px;
450
- margin-left: 8px;
451
- margin-right: 8px;
452
- /* scroll-snap-type: mandatory;
445
+ position: relative;
446
+ /* width: calc(100% - 10px); */
447
+ height: 100%;
448
+ max-height: 152px;
449
+ margin-left: 8px;
450
+ margin-right: 8px;
451
+ /* scroll-snap-type: mandatory;
453
452
  scroll-snap-type: y mandatory;
454
453
  scroll-snap-points-y: repeat(16px); */
455
- z-index: 1;
456
- /* transition: margin 0.5s ease; */
457
- overflow-y: visible;
458
- .attachment-row {
459
- display: block;
460
- margin-bottom: 8px;
461
- /* scroll-snap-align: start; */
462
- &:last-child {
463
- margin-bottom: 0;
464
- }
465
- /* overflow-y: hidden; */
466
- }
467
- &.icon-view {
468
- display: flex;
469
- flex-wrap: wrap;
470
- justify-content: space-between;
471
- &::after {
472
- content: "";
473
- flex: auto;
474
- }
475
- /* grid-template-columns: repeat(auto-fill, minmax(136px, auto)); */
476
- max-height: 200px;
477
- margin-left: 0;
478
- /* padding-left: 10px; */
479
- /* padding-right: 10px; */
480
- width: max-content;
481
- max-width: calc(100% - 26px);
482
- .attachment-row {
483
- position: relative;
484
- margin-left: 16px;
454
+ z-index: 1;
455
+ /* transition: margin 0.5s ease; */
485
456
  overflow-y: visible;
486
- }
487
- .css-${AttachedItem.name} {
488
- display: block;
489
- height: 80px;
490
- width: 80px;
491
- padding: 0;
492
- position: initial;
493
- .css-${AttachedItemInfo.name} {
494
- position: relative;
457
+ .attachment-row {
495
458
  display: block;
459
+ margin-bottom: 8px;
460
+ /* scroll-snap-align: start; */
461
+ &:last-child {
462
+ margin-bottom: 0;
463
+ }
464
+ /* overflow-y: hidden; */
465
+ }
466
+ &.icon-view {
467
+ display: flex;
468
+ flex-wrap: wrap;
469
+ justify-content: space-between;
470
+ &::after {
471
+ content: '';
472
+ flex: auto;
473
+ }
474
+ /* grid-template-columns: repeat(auto-fill, minmax(136px, auto)); */
475
+ max-height: 200px;
476
+ margin-left: 0;
477
+ /* padding-left: 10px; */
478
+ /* padding-right: 10px; */
496
479
  width: max-content;
497
- text-align: center;
498
- max-width: 80px;
499
- overflow: hidden;
500
- white-space: nowrap;
501
- text-overflow: ellipsis;
502
- margin-left: auto;
503
- margin-right: auto;
504
- min-width: 70px;
505
- .css-${AttachedItemInfoIcon.name} {
506
- height: 40px;
507
- width: 40px;
508
- max-height: 40px;
509
- max-width: 40px;
510
- margin: 4px auto 2px;
511
- padding: 0;
480
+ max-width: calc(100% - 26px);
481
+ .attachment-row {
482
+ position: relative;
483
+ margin-left: 16px;
484
+ overflow-y: visible;
485
+ }
486
+ .css-${AttachedItem.name} {
512
487
  display: block;
513
- &.new-file:after {
514
- top: -1px;
515
- left: -7px;
516
- width: 8px;
517
- height: 8px;
488
+ height: 80px;
489
+ width: 80px;
490
+ padding: 0;
491
+ position: initial;
492
+ .css-${AttachedItemInfo.name} {
493
+ position: relative;
494
+ display: block;
495
+ width: max-content;
496
+ text-align: center;
497
+ max-width: 80px;
498
+ overflow: hidden;
499
+ white-space: nowrap;
500
+ text-overflow: ellipsis;
501
+ margin-left: auto;
502
+ margin-right: auto;
503
+ min-width: 70px;
504
+ .css-${AttachedItemInfoIcon.name} {
505
+ height: 40px;
506
+ width: 40px;
507
+ max-height: 40px;
508
+ max-width: 40px;
509
+ margin: 4px auto 2px;
510
+ padding: 0;
511
+ display: block;
512
+ &.new-file:after {
513
+ top: -1px;
514
+ left: -7px;
515
+ width: 8px;
516
+ height: 8px;
517
+ }
518
+ }
519
+ .css-${AttachedItemInfoName.name} {
520
+ ${paragraph3};
521
+ margin: 0 8px;
522
+ display: -webkit-box;
523
+ word-break: break-word;
524
+ max-width: 100%;
525
+ white-space: pre-wrap;
526
+ -webkit-line-clamp: 2;
527
+ -webkit-box-orient: vertical;
528
+ text-align: center;
529
+ }
530
+ }
531
+ .css-${AttachedItemOwner.name} {
532
+ position: inherit;
533
+ height: auto;
534
+ ${paragraph3};
535
+ .detail-info {
536
+ display: none;
537
+ }
538
+ .css-${AttachedLinear.name} {
539
+ /* position: initial; */
540
+ /* width: 100%; */
541
+ height: auto;
542
+ bottom: 0;
543
+ top: unset;
544
+ background: none;
545
+ }
518
546
  }
519
- }
520
- .css-${AttachedItemInfoName.name} {
521
- ${paragraph3};
522
- margin: 0 8px;
523
- display: -webkit-box;
524
- word-break: break-word;
525
- max-width: 100%;
526
- white-space: pre-wrap;
527
- -webkit-line-clamp: 2;
528
- -webkit-box-orient: vertical;
529
- text-align: center;
530
547
  }
531
548
  }
532
- .css-${AttachedItemOwner.name} {
533
- position: inherit;
534
- height: auto;
535
- ${paragraph3};
536
- .detail-info {
537
- display: none;
538
- }
539
- .css-${AttachedLinear.name} {
540
- /* position: initial; */
541
- /* width: 100%; */
542
- height: auto;
543
- bottom: 0;
544
- top: unset;
545
- background: none;
546
- }
549
+ &:not(.icon-view) {
550
+ min-width: 684px;
547
551
  }
548
- }
549
- }
550
- &:not(.icon-view) {
551
- min-width: 684px;
552
- }
553
- `;
552
+ `;
554
553
  const AttachmentRoot = css`
555
- border: 1px solid ${normal};
556
- display: block;
557
- position: relative;
558
- flex-wrap: wrap;
559
- min-height: 165px;
560
- flex-direction: column;
561
- padding-bottom: 20px;
562
- justify-content: start;
563
- background-color: ${white};
564
- border-radius: 4px;
565
- &:hover:not(.disabled) {
566
- .css-${AttachmentImageIcon.name} {
567
- cursor: pointer;
568
- }
569
- }
570
- .css-${Attached.name} {
571
- &:not(.disabled) {
572
- .css-${AttachedItem.name} {
573
- &:hover {
574
- background-color: ${fillHover};
575
- .css-${AttachedLinear.name} {
576
- background-color: ${fillHover};
577
- }
554
+ border: 1px solid ${normal};
555
+ display: block;
556
+ position: relative;
557
+ flex-wrap: wrap;
558
+ min-height: 165px;
559
+ flex-direction: column;
560
+ padding-bottom: 20px;
561
+ justify-content: start;
562
+ background-color: ${white};
563
+ border-radius: 4px;
564
+ &:hover:not(.disabled) {
565
+ .css-${AttachmentImageIcon.name} {
566
+ cursor: pointer;
578
567
  }
579
- &:active {
580
- background-color: ${pressed};
581
- .css-${AttachedLinear.name} {
582
- background-color: ${pressed};
568
+ }
569
+ .css-${Attached.name} {
570
+ &:not(.disabled) {
571
+ .css-${AttachedItem.name} {
572
+ &:hover {
573
+ background-color: ${fillHover};
574
+ .css-${AttachedLinear.name} {
575
+ background-color: ${fillHover};
576
+ }
577
+ }
578
+ &:active {
579
+ background-color: ${pressed};
580
+ .css-${AttachedLinear.name} {
581
+ background-color: ${pressed};
582
+ }
583
+ }
584
+ &.chosen {
585
+ background-color: ${focus};
586
+ .css-${AttachedItemInfo.name}, .css-${AttachedItemOwner.name} {
587
+ background-color: ${focus};
588
+ }
589
+ }
583
590
  }
584
591
  }
585
- &.chosen {
586
- background-color: ${focus};
587
- .css-${AttachedItemInfo.name},
588
- .css-${AttachedItemOwner.name} {
589
- background-color: ${focus};
590
- }
592
+ }
593
+ &.disabled {
594
+ .css-${AttachedItem.name} {
595
+ pointer-events: none;
591
596
  }
592
597
  }
593
- }
594
- }
595
- &.disabled {
596
- .css-${AttachedItem.name} {
597
- pointer-events: none;
598
- }
599
- }
600
- @media (max-width: 716px) {
601
- .css-${Attached.name}:not(.icon-view) {
602
- min-width: 575px;
603
- }
604
- .css-${AttachedItemInfo.name} {
605
- max-width: calc(40% - 10px);
606
- }
607
- }
608
- `; // End style
598
+ @media (max-width: 716px) {
599
+ .css-${Attached.name}:not(.icon-view) {
600
+ min-width: 575px;
601
+ }
602
+ .css-${AttachedItemInfo.name} {
603
+ max-width: calc(40% - 10px);
604
+ }
605
+ }
606
+ `; // End style
609
607
  // Start handler
610
608
 
611
609
  const onShowSortPopover = () => {
@@ -767,8 +765,6 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
767
765
  files = removeFileOutInputFiles(i, true);
768
766
  i--;
769
767
  }
770
-
771
- ;
772
768
  }
773
769
 
774
770
  notifyError(errorList);
@@ -957,7 +953,7 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
957
953
  // const y = date.getFullYear();
958
954
  // const t = date.toTimeString().slice(0, 8);
959
955
 
960
- return jsx(Fragment, null, moment(date).format('DD/MM/YYYY, HH:mm:ss'), " ", jsx("span", {
956
+ return jsx(Fragment, null, moment(date).format('DD/MM/YYYY, HH:mm:ss'), ' ', jsx("span", {
961
957
  style: {
962
958
  display: 'none'
963
959
  }
@@ -1303,7 +1299,7 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1303
1299
  const onKeyDown = event => {
1304
1300
  const key = event.key;
1305
1301
 
1306
- if (key === "Delete") {
1302
+ if (key === 'Delete') {
1307
1303
  // Press Delete key to delete item(s)
1308
1304
  onShowPopup();
1309
1305
  } else if (key === 'Enter') {
@@ -1328,7 +1324,7 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1328
1324
  const length = itemsNode.length;
1329
1325
  let index;
1330
1326
 
1331
- if (key === "ArrowDown" || key === "ArrowRight") {
1327
+ if (key === 'ArrowDown' || key === 'ArrowRight') {
1332
1328
  for (let id = length - 1; id >= 0; id--) {
1333
1329
  if (Array.from(itemsNode)[id].firstChild.classList.contains('chosen')) {
1334
1330
  index = id;
@@ -1347,7 +1343,7 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1347
1343
  chosenItems.push(index);
1348
1344
  Array.from(itemsNode)[index].scrollIntoView({
1349
1345
  block: 'center',
1350
- behavior: "smooth"
1346
+ behavior: 'smooth'
1351
1347
  });
1352
1348
  }
1353
1349
 
@@ -1356,7 +1352,7 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1356
1352
 
1357
1353
  Array.from(itemsNode)[index + 1].scrollIntoView({
1358
1354
  block: 'center',
1359
- behavior: "smooth"
1355
+ behavior: 'smooth'
1360
1356
  });
1361
1357
 
1362
1358
  if (!event.shiftKey) {
@@ -1367,7 +1363,7 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1367
1363
 
1368
1364
  itemsNode[index + 1].firstChild.classList.add('chosen');
1369
1365
  chosenItems.push(index + 1);
1370
- } else if (key === "ArrowUp" || key === "ArrowLeft") {
1366
+ } else if (key === 'ArrowUp' || key === 'ArrowLeft') {
1371
1367
  index = Array.from(itemsNode).findIndex(el => el.firstChild.classList.contains('chosen'));
1372
1368
 
1373
1369
  if (index === 0) {
@@ -1381,7 +1377,7 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1381
1377
  chosenItems.push(index);
1382
1378
  Array.from(itemsNode)[index].scrollIntoView({
1383
1379
  block: 'center',
1384
- behavior: "smooth"
1380
+ behavior: 'smooth'
1385
1381
  });
1386
1382
  }
1387
1383
 
@@ -1390,7 +1386,7 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1390
1386
 
1391
1387
  Array.from(itemsNode)[index - 1].scrollIntoView({
1392
1388
  block: 'center',
1393
- behavior: "smooth"
1389
+ behavior: 'smooth'
1394
1390
  });
1395
1391
 
1396
1392
  if (!event.shiftKey) {
@@ -1666,7 +1662,7 @@ const Attachment = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
1666
1662
  width: '18',
1667
1663
  height: '18',
1668
1664
  bgColor: 'currentColor'
1669
- }), jsx("span", null, " ", jsx("ul", null, " "), " "))), jsx("div", {
1665
+ }), jsx("span", null, ' ', jsx("ul", null, " "), ' '))), jsx("div", {
1670
1666
  css: AttachmentHeaderIcon
1671
1667
  }, jsx("div", {
1672
1668
  css: attachmentHandleIcon,
@@ -1836,17 +1832,17 @@ Attachment.defaultProps = {
1836
1832
  uploadErrorInfo: {}
1837
1833
  };
1838
1834
  Attachment.propTypes = {
1839
- /** List attachment:<br />
1840
- * [{<br />
1841
- * &nbsp;&nbsp;&nbsp;&nbsp;"AttachmentID": "ATT2U8O7YPTF1KSNCW3X",<br />
1842
- * &nbsp;&nbsp;&nbsp;&nbsp;"URL": "https://apricot.diginet.com.vn/cdn-dev/file/8a07bee1eeff17a14eee.jpg?path=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmaWxlUGF0aCI6Ii8yMDIwLzA4LzQ0YjNhYjQ4LTMwNGQtNDQ3NC05ZDk0LWNkNGVlMDQwOGNlMy5qcGciLCJmaWxlTmFtZSI6IjhhMDdiZWUxZWVmZjE3YTE0ZWVlLmpwZyIsImZpbGVTaXplIjoyNDg4MzcsImZpbGVUeXBlIjoiaW1hZ2UvanBlZyIsImlhdCI6MTU5ODI0NDMwMiwiZXhwIjo4Nzk5ODI0NDMwMn0.fow6O5fp2z3vieA9gom5RRwQ7xxwBx9_7X2Fe8T2YI0",<br />
1843
- * &nbsp;&nbsp;&nbsp;&nbsp;"FileName": "8a07bee1eeff17a14eee.jpg",<br />
1844
- * &nbsp;&nbsp;&nbsp;&nbsp;"FileSize": 248837,<br />
1845
- * &nbsp;&nbsp;&nbsp;&nbsp;"KeyID": "W39OAD3YGLCWAQKV1D6PGEKNW4RLGVTZTUWLYEVFQ2QG8AOCXW",<br />
1846
- * &nbsp;&nbsp;&nbsp;&nbsp;"CreateUserID": "LEMONADMIN",<br />
1847
- * &nbsp;&nbsp;&nbsp;&nbsp;"CreateDate": "2020-08-24T11:54:04.307Z",<br />
1848
- * &nbsp;&nbsp;&nbsp;&nbsp;"UserName": "Quản trị hệ thống"<br />
1849
- * }, ...]
1835
+ /** List attachment:<br />
1836
+ * [{<br />
1837
+ * &nbsp;&nbsp;&nbsp;&nbsp;"AttachmentID": "ATT2U8O7YPTF1KSNCW3X",<br />
1838
+ * &nbsp;&nbsp;&nbsp;&nbsp;"URL": "https://apricot.diginet.com.vn/cdn-dev/file/8a07bee1eeff17a14eee.jpg?path=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmaWxlUGF0aCI6Ii8yMDIwLzA4LzQ0YjNhYjQ4LTMwNGQtNDQ3NC05ZDk0LWNkNGVlMDQwOGNlMy5qcGciLCJmaWxlTmFtZSI6IjhhMDdiZWUxZWVmZjE3YTE0ZWVlLmpwZyIsImZpbGVTaXplIjoyNDg4MzcsImZpbGVUeXBlIjoiaW1hZ2UvanBlZyIsImlhdCI6MTU5ODI0NDMwMiwiZXhwIjo4Nzk5ODI0NDMwMn0.fow6O5fp2z3vieA9gom5RRwQ7xxwBx9_7X2Fe8T2YI0",<br />
1839
+ * &nbsp;&nbsp;&nbsp;&nbsp;"FileName": "8a07bee1eeff17a14eee.jpg",<br />
1840
+ * &nbsp;&nbsp;&nbsp;&nbsp;"FileSize": 248837,<br />
1841
+ * &nbsp;&nbsp;&nbsp;&nbsp;"KeyID": "W39OAD3YGLCWAQKV1D6PGEKNW4RLGVTZTUWLYEVFQ2QG8AOCXW",<br />
1842
+ * &nbsp;&nbsp;&nbsp;&nbsp;"CreateUserID": "LEMONADMIN",<br />
1843
+ * &nbsp;&nbsp;&nbsp;&nbsp;"CreateDate": "2020-08-24T11:54:04.307Z",<br />
1844
+ * &nbsp;&nbsp;&nbsp;&nbsp;"UserName": "Quản trị hệ thống"<br />
1845
+ * }, ...]
1850
1846
  */
1851
1847
  data: PropTypes.array,
1852
1848
 
@@ -1919,15 +1915,15 @@ Attachment.propTypes = {
1919
1915
  /** event when uploading file failed */
1920
1916
  onUploadError: PropTypes.func,
1921
1917
 
1922
- /**
1923
- * event when removed file(s)<br/>
1924
- * return data: {<br/>
1925
- * &nbsp;&nbsp;&nbsp;&nbsp;attached: [Files] (insist old and all new files )<br/>
1926
- * &nbsp;&nbsp;&nbsp;&nbsp;allNewAttached: [Files]<br/>
1927
- * &nbsp;&nbsp;&nbsp;&nbsp;oldAttached: [Files]<br/>
1928
- * &nbsp;&nbsp;&nbsp;&nbsp;removedAttached: [Files]<br/>
1929
- * &nbsp;&nbsp;&nbsp;&nbsp;element: [NodeList (just removed)]<br/>
1930
- * }
1918
+ /**
1919
+ * event when removed file(s)<br/>
1920
+ * return data: {<br/>
1921
+ * &nbsp;&nbsp;&nbsp;&nbsp;attached: [Files] (insist old and all new files )<br/>
1922
+ * &nbsp;&nbsp;&nbsp;&nbsp;allNewAttached: [Files]<br/>
1923
+ * &nbsp;&nbsp;&nbsp;&nbsp;oldAttached: [Files]<br/>
1924
+ * &nbsp;&nbsp;&nbsp;&nbsp;removedAttached: [Files]<br/>
1925
+ * &nbsp;&nbsp;&nbsp;&nbsp;element: [NodeList (just removed)]<br/>
1926
+ * }
1931
1927
  */
1932
1928
  onRemove: PropTypes.func,
1933
1929