diginet-core-ui 1.4.61 → 1.4.62-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/images/menu/dhr/MHRM76N1500.svg +15 -0
- package/assets/images/menu/dhr/MHRM76N2500.svg +10 -0
- package/assets/images/menu/dhr/MHRM76N2502.svg +11 -0
- package/assets/images/menu/dhr/MHRP15N0004.svg +18 -0
- package/assets/images/menu/dhr/MHRP39N0029.svg +15 -0
- package/assets/images/menu/eo/WEO53LIS0001.svg +8 -0
- package/assets/images/menu/eo/WEO53LIS0002.svg +7 -0
- package/assets/images/menu/eo/WEO53LIS0003.svg +9 -0
- package/components/form-control/attachment/index.js +21 -21
- package/components/form-control/calendar/function.js +1 -1
- package/components/form-control/calendar/index.js +1 -1
- package/components/form-control/date-range-picker/index.js +1 -0
- package/components/form-control/dropdown-box/index.js +63 -21
- package/components/form-control/number-input/index2.js +4 -1
- package/components/paging/page-info.js +34 -34
- package/package.json +78 -44
- package/readme.md +3 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_2480_22)">
|
|
3
|
+
<path d="M12 39C11.7 39 11.5 38.9 11.2 38.8C10.4 38.5 10 37.8 10 37V31H5C2.2 31 0 28.8 0 26V5C0 2.2 2.2 0 5 0H30C32.8 0 35 2.2 35 5V7C35 7.6 34.6 8 34 8C33.4 8 33 7.6 33 7V5C33 3.3 31.7 2 30 2H5C3.3 2 2 3.3 2 5V26C2 27.7 3.3 29 5 29H10C11.1 29 12 29.9 12 31V37L18.5 29.6C19 29.2 19.5 29 20 29H30C31.7 29 33 27.7 33 26V25C33 24.4 33.4 24 34 24C34.6 24 35 24.4 35 25V26C35 28.8 32.8 31 30 31H20L13.5 38.4C13 38.8 12.5 39 12 39Z" fill="#2680EB"/>
|
|
4
|
+
<path d="M15.4 5C15.6 10 14.8 14.9 14.6 19.8C13.8 19.8 13 19.8 12.2 19.8C11.9 14.9 11.1 10 11.3 5C12.6 5 14 5 15.4 5Z" fill="#2680EB"/>
|
|
5
|
+
<path d="M15.7 23.6C15.7 24.9 14.6 26 13.3 26C12 26 11 24.9 11 23.5C11 22.2 12.1 21.1 13.4 21.1C14.6 21.2 15.7 22.3 15.7 23.6Z" fill="#2680EB"/>
|
|
6
|
+
<path d="M22 11.1C22 11.7 22.5 12.2 23.1 12.2H37.8C38.4 12.2 38.9 11.7 38.9 11.1C38.9 10.5 38.4 10 37.8 10H23.1C22.5 10 22 10.5 22 11.1Z" fill="#2680EB"/>
|
|
7
|
+
<path d="M37.9 14.6H23.1C22.5 14.6 22 15.1 22 15.7C22 16.3 22.5 16.8 23.1 16.8H37.8C38.4 16.8 38.9 16.3 38.9 15.7C39 15.2 38.5 14.6 37.9 14.6Z" fill="#2680EB"/>
|
|
8
|
+
<path d="M34 19.3H23.1C22.5 19.3 22 19.8 22 20.4C22 21 22.5 21.5 23.1 21.5H34C34.6 21.5 35.1 21 35.1 20.4C35.1 19.8 34.6 19.3 34 19.3Z" fill="#2680EB"/>
|
|
9
|
+
</g>
|
|
10
|
+
<defs>
|
|
11
|
+
<clipPath id="clip0_2480_22">
|
|
12
|
+
<rect width="39" height="39" fill="white"/>
|
|
13
|
+
</clipPath>
|
|
14
|
+
</defs>
|
|
15
|
+
</svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_2480_30)">
|
|
3
|
+
<path d="M34.8 0H4.2C1.9 0 0 1.9 0 4.2V26.3C0 28.6 1.9 30.5 4.2 30.5H9.5C10.1 30.5 10.5 31 10.5 31.6V37.9C10.5 38.8 11.6 39.3 12.3 38.7L19.2 30.9C19.4 30.7 19.7 30.6 20 30.6H34.8C37.1 30.6 39 28.7 39 26.4V4.2C39 1.9 37.1 0 34.8 0ZM17.5 4H21.8C22 9.2 21.2 14.4 20.9 19.6H18.4C18.1 14.4 17.3 9.3 17.5 4ZM19.6 27C18.3 27 17.2 25.8 17.2 24.4C17.2 23 18.3 21.9 19.7 21.9C21 21.9 22.2 23.1 22.2 24.5C22.1 25.9 21 27 19.6 27Z" fill="#2680EB"/>
|
|
4
|
+
</g>
|
|
5
|
+
<defs>
|
|
6
|
+
<clipPath id="clip0_2480_30">
|
|
7
|
+
<rect width="39" height="39" fill="white"/>
|
|
8
|
+
</clipPath>
|
|
9
|
+
</defs>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_2480_37)">
|
|
3
|
+
<path d="M34.8 0H4.2C1.9 0 0 1.89514 0 4.18926V21.046C0 23.3402 1.9 25.2353 4.2 25.2353H9.4C10 25.2353 10.5 25.734 10.5 26.3325V32.7161C10.5 33.6138 11.6 34.1125 12.3 33.5141L19.3 25.6343C19.5 25.4348 19.8 25.335 20.1 25.335H21.3C21.5 25.0358 21.7 24.6368 21.9 24.3376C22.3 23.7391 22.7 23.2404 23.2 22.8414C23.8 22.243 24.5 21.7442 25.2 21.3453H25.3C25.4 21.2455 25.5 21.2455 25.6 21.1458C25.9 21.046 26.2 20.8465 26.5 20.7468C26.9 20.5473 27.4 20.4476 27.7 20.3478C28.1 20.2481 28.5 20.1483 28.9 20.1483C29.3 20.0486 29.8 20.0486 30.2 20.0486C32.1 20.0486 34 20.5473 35.5 21.6445C36.1 22.0435 36.7 22.4425 37.2 22.9412C37.5 23.2404 37.8 23.5396 38.1 23.9386C38.8 23.1407 39.2 22.1432 39.2 21.046V4.18926C39 1.89514 37.1 0 34.8 0ZM18.2 3.09207H21.9C22.1 7.58056 21.4 11.9693 21.1 16.4578H18.9C18.7 12.0691 18 7.68031 18.2 3.09207ZM19.9 22.4425C18.7 22.4425 17.8 21.445 17.8 20.2481C17.8 19.0512 18.8 18.0537 19.9 18.0537C21.1 18.0537 22 19.0512 22 20.2481C22.1 21.445 21.1 22.4425 19.9 22.4425Z" fill="#2680EB"/>
|
|
4
|
+
<path d="M36.3796 23.5714C35.877 23.1758 35.4749 22.7802 34.8718 22.3846C33.4645 21.4945 31.8562 21 30.0468 21C29.6447 21 29.2427 21 28.8406 21.0989C28.4385 21.0989 28.1369 21.1978 27.7349 21.2967C27.3328 21.3956 27.0312 21.4945 26.6291 21.6923C26.3276 21.7912 26.026 21.8901 25.825 22.0879C25.7492 22.1624 25.6239 22.1868 25.5234 22.2857C24.9203 22.6813 24.3172 23.0769 23.8146 23.5714C23.312 23.8681 23.0104 24.3626 22.6083 24.8571C22.2062 25.4505 21.9047 26.044 21.6031 26.7363C21.6031 26.8352 21.5026 27.033 21.5026 27.1319C21.201 28.022 21 29.011 21 30C21 30.2967 21 30.4945 21 30.7912C21.1005 31.5824 21.201 32.2747 21.5026 33.0659C21.9047 34.0549 22.4073 34.9451 23.0104 35.7363C24.7192 37.7143 27.1317 39 29.9463 39C33.0624 39 35.7765 37.5165 37.3848 35.1429C38.39 33.6593 38.9931 31.978 38.9931 30.0989C39.0936 27.4286 38.0884 25.1538 36.3796 23.5714ZM35.6759 27.033L31.2531 32.8681L30.2479 34.1538C29.9463 34.5495 29.4437 34.8462 28.9411 34.8462H28.8406C28.338 34.8462 27.8354 34.6484 27.5338 34.2527L26.227 32.8681L24.4177 30.8901C23.9151 30.3956 23.9151 29.5055 24.5182 29.011C24.8198 28.8132 25.1213 28.6154 25.4229 28.6154C25.825 28.6154 26.1265 28.8132 26.4281 29.1099L28.6395 31.4835L28.7401 31.5824C28.8406 31.5824 28.8406 31.5824 28.8406 31.4835L33.364 25.4505C33.6655 25.0549 34.0676 24.956 34.4697 24.956C34.7713 24.956 34.9723 25.0549 35.2739 25.2527C35.9775 25.6484 36.078 26.4396 35.6759 27.033Z" fill="#1CA261"/>
|
|
5
|
+
</g>
|
|
6
|
+
<defs>
|
|
7
|
+
<clipPath id="clip0_2480_37">
|
|
8
|
+
<rect width="39" height="39" fill="white"/>
|
|
9
|
+
</clipPath>
|
|
10
|
+
</defs>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_2469_36)">
|
|
3
|
+
<path d="M33.6 3.09998H31V5.69998C31 7.39998 29.6 8.69998 28 8.69998C26.3 8.69998 25 7.39998 25 5.69998V3.09998H14V5.69998C14 7.39998 12.7 8.69998 11 8.69998C9.4 8.69998 8 7.39998 8 5.69998V3.09998H5.4C2.4 3.09998 0 5.49998 0 8.39998V33.6C0 36.6 2.4 39 5.4 39H33.6C36.6 39 39 36.6 39 33.6V8.39998C39 5.49998 36.6 3.09998 33.6 3.09998ZM36.5 33.1C36.5 35 34.9 36.5 33 36.5H6C4.1 36.5 2.6 35 2.6 33.1V13H36.5V33.1Z" fill="#2680EB"/>
|
|
4
|
+
<path d="M30 5.9V1.8C30 0.8 29.2 0 28.2 0H27.8C26.8 0 26 0.8 26 1.8V5.9C26 6.9 26.8 7.7 27.8 7.7H28.2C29.2 7.7 30 6.9 30 5.9Z" fill="#7BC0F9"/>
|
|
5
|
+
<path d="M13 5.9V1.8C13 0.8 12.2 0 11.2 0H10.8C9.8 0 9 0.8 9 1.8V5.9C9 6.9 9.8 7.7 10.8 7.7H11.2C12.2 7.7 13 6.9 13 5.9Z" fill="#7BC0F9"/>
|
|
6
|
+
<path d="M13 24H7.6C7.2 24 7 23.8 7 23.5V18C7 17.7 7.2 17.4 7.6 17.4H13C13.3 17.4 13.6 17.6 13.6 18V23.5C13.6 23.8 13.3 24 13 24Z" fill="#1CA261"/>
|
|
7
|
+
<path d="M22.3002 24H16.8002C16.5002 24 16.2002 23.8 16.2002 23.4V18C16.2002 17.7 16.4002 17.4 16.8002 17.4H22.3002C22.6002 17.4 22.9002 17.6 22.9002 18V23.5C22.8002 23.8 22.6002 24 22.3002 24Z" fill="#FFAA00"/>
|
|
8
|
+
<path d="M31.4999 24H25.9999C25.6999 24 25.3999 23.8 25.3999 23.4V18C25.3999 17.7 25.5999 17.4 25.9999 17.4H31.4999C31.7999 17.4 32.0999 17.6 32.0999 18V23.5C31.9999 23.8 31.7999 24 31.4999 24Z" fill="#FF4444"/>
|
|
9
|
+
<path d="M13 32.8H7.6C7.3 32.8 7 32.6 7 32.2V26.7C7 26.4 7.2 26.1 7.6 26.1H13C13.3 26.1 13.6 26.3 13.6 26.7V32.2C13.6 32.5 13.3 32.8 13 32.8Z" fill="#FFAA00"/>
|
|
10
|
+
<path d="M22.3002 32.8H16.8002C16.5002 32.8 16.2002 32.6 16.2002 32.2V26.7C16.2002 26.4 16.4002 26.1 16.8002 26.1H22.3002C22.6002 26.1 22.9002 26.3 22.9002 26.7V32.2C22.8002 32.5 22.6002 32.8 22.3002 32.8Z" fill="#FF4444"/>
|
|
11
|
+
<path d="M31.4999 32.8H25.9999C25.6999 32.8 25.3999 32.6 25.3999 32.2V26.7C25.3999 26.4 25.5999 26.1 25.9999 26.1H31.4999C31.7999 26.1 32.0999 26.3 32.0999 26.7V32.2C31.9999 32.5 31.7999 32.8 31.4999 32.8Z" fill="#1CA261"/>
|
|
12
|
+
</g>
|
|
13
|
+
<defs>
|
|
14
|
+
<clipPath id="clip0_2469_36">
|
|
15
|
+
<rect width="39" height="39" fill="white"/>
|
|
16
|
+
</clipPath>
|
|
17
|
+
</defs>
|
|
18
|
+
</svg>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_2491_25)">
|
|
3
|
+
<path d="M32 17.6C32 17.9 31.9 18.1 31.8 18.4C30.9 18.1 30 18 29 18C27.2 18 25.4 18.5 23.9 19.3H8.6C7.7 19.3 7 18.6 7 17.7C7 16.7 7.7 16 8.6 16H30.4C31.3 16 32 16.7 32 17.6Z" fill="#2680EB"/>
|
|
4
|
+
<path d="M20.1 22.5C19.4 23.5 18.8 24.6 18.5 25.8H8.6C7.7 25.8 7 25 7 24.1C7 23.2 7.7 22.5 8.6 22.5H20.1Z" fill="#2680EB"/>
|
|
5
|
+
<path d="M18 29C18 30.1 18.2 31.2 18.5 32.3H8.6C7.7 32.3 7 31.6 7 30.7C7 29.7 7.7 29 8.6 29H18Z" fill="#2680EB"/>
|
|
6
|
+
<path d="M33.6 0H5.4C2.4 0 0 2.4 0 5.4V33.6C0 36.6 2.4 39 5.4 39H24.4C23.1 38.4 22 37.6 21 36.5H6C4.1 36.5 2.6 35 2.6 33.1V12H36.5V20.9C37.6 21.9 38.4 23.1 39.1 24.4V5.4C39 2.4 36.6 0 33.6 0ZM36.5 9H2.6V6.5C2.6 4.6 4.1 3 6.1 3H33C34.9 3 36.5 4.6 36.5 6.5V9Z" fill="#2680EB"/>
|
|
7
|
+
<path d="M29 19C23.5 19 19 23.5 19 29C19 34.5 23.5 39 29 39C34.5 39 39 34.5 39 29C39 23.5 34.5 19 29 19ZM35.2 25.8L29.3 33.8C29 34.3 28.4 34.6 27.8 34.6C27.2 34.6 26.7 34.4 26.3 34L22.8 30.2C22.2 29.6 22.3 28.6 22.9 28.1C23.5 27.5 24.5 27.6 25 28.2L27.5 30.9L27.6 31C27.7 31 27.7 31 27.7 30.9L32.7 24.1C33.2 23.4 34.1 23.3 34.8 23.8C35.6 24.2 35.7 25.1 35.2 25.8Z" fill="#1CA261"/>
|
|
8
|
+
<path d="M35.5001 6.5V8H3.6001V6.5C3.6001 5.1 4.7001 4 6.1001 4H33.0001C34.3001 4 35.5001 5.1 35.5001 6.5Z" fill="#7BC0F9"/>
|
|
9
|
+
</g>
|
|
10
|
+
<defs>
|
|
11
|
+
<clipPath id="clip0_2491_25">
|
|
12
|
+
<rect width="39" height="39" fill="white"/>
|
|
13
|
+
</clipPath>
|
|
14
|
+
</defs>
|
|
15
|
+
</svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M38.7579 9.5L29.4459 0.4C29.2434 0.1 28.9398 0 28.6361 0H12.4414C10.5183 0 9 1.5 9 3.4V6H11.328V3.4C11.328 2.8 11.8341 2.3 12.4414 2.3H27.4215V8C27.4215 9.9 28.9398 11.4 30.8629 11.4H36.6323V35.5C36.6323 36.1 36.1262 36.6 35.5189 36.6H12.4414C11.8341 36.6 11.328 36.1 11.328 35.5V18H9V35.6C9 37.5 10.5183 39 12.4414 39H35.5189C37.442 39 38.9603 37.5 38.9603 35.6V10.3C39.0615 10 38.9603 9.7 38.7579 9.5ZM30.9641 9.1C30.3568 9.1 29.8507 8.6 29.8507 8V3.9L35.114 9.1H30.9641Z" fill="#2680EB"/>
|
|
3
|
+
<path d="M31.0484 20.7H17.327C16.7261 20.7 16.2253 21.2 16.2253 21.8C16.2253 22.4 16.7261 22.9 17.327 22.9H31.0484C31.6493 22.9 32.1501 22.4 32.1501 21.8C32.1501 21.2 31.6493 20.7 31.0484 20.7Z" fill="#2680EB"/>
|
|
4
|
+
<path d="M31.0484 25.3H17.327C16.7261 25.3 16.2253 25.8 16.2253 26.4C16.2253 27 16.7261 27.5 17.327 27.5H31.0484C31.6493 27.5 32.1501 27 32.1501 26.4C32.1501 25.8 31.6493 25.3 31.0484 25.3Z" fill="#2680EB"/>
|
|
5
|
+
<path d="M26.4412 29.9H17.327C16.7261 29.9 16.2253 30.4 16.2253 31C16.2253 31.6 16.7261 32.1 17.327 32.1H26.4412C27.0421 32.1 27.5429 31.6 27.5429 31C27.5429 30.4 27.1423 29.9 26.4412 29.9Z" fill="#2680EB"/>
|
|
6
|
+
<path d="M16.2253 10.3C16.025 10.2 15.9248 10.2 15.8247 10.2C15.7245 10.2 15.5242 10.2 15.2237 10.2H14.9232V11.9H15.3239C15.5242 11.9 15.8246 11.9 15.9248 11.9C16.025 11.9 16.2253 11.8 16.3254 11.7C16.4256 11.6 16.5257 11.5 16.5257 11.4C16.5257 11.3 16.6259 11.1 16.6259 11C16.6259 10.8 16.6259 10.7 16.5257 10.6C16.4256 10.5 16.3254 10.4 16.2253 10.3Z" fill="#FF8C00"/>
|
|
7
|
+
<path d="M23.0359 7H2.00312C0.901405 7 0 7.9 0 9V15C0 16.1 0.901405 17 2.00312 17H23.0359C24.1376 17 25.039 16.1 25.039 15V9C25.039 7.9 24.1376 7 23.0359 7ZM6.51014 10.3H4.80749V14.9H3.30515V10.3H1.50234V9.2H6.51014V10.3ZM10.5164 12.6V14.8H9.01404V12.7L6.91077 9.2H8.61342L9.81529 11.4L11.0172 9.2H12.6197L10.5164 12.6ZM18.0281 11.7C17.9279 11.9 17.8278 12.1 17.6275 12.3C17.4272 12.5 17.1267 12.7 16.8262 12.8C16.5257 12.9 16.2253 13 15.8247 13H14.9233V14.8H13.4209V9.2H15.8247C16.2253 9.2 16.5258 9.2 16.7261 9.3C16.9264 9.4 17.2268 9.5 17.4272 9.6C17.6275 9.8 17.8278 9.9 17.9279 10.2C18.0281 10.4 18.1282 10.7 18.1282 11C18.2284 11.2 18.1282 11.5 18.0281 11.7ZM23.5367 10.3H20.9326V11.3H23.4365V12.4H20.9326V13.8H23.5367V14.9H19.4303V9.2H23.5367V10.3Z" fill="#FF8C00"/>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M21.1871 11.5703H10.9933C10.4936 11.5703 10.1938 11.9693 10.1938 12.3683C10.1938 12.867 10.5936 13.1662 10.9933 13.1662H21.1871C21.6868 13.1662 21.9867 12.7673 21.9867 12.3683C21.9867 11.9693 21.5869 11.5703 21.1871 11.5703Z" fill="#2680EB"/>
|
|
3
|
+
<path d="M21.1871 14.9616H10.9933C10.4936 14.9616 10.1938 15.3606 10.1938 15.7596C10.1938 16.1586 10.5936 16.5575 10.9933 16.5575H21.1871C21.6868 16.5575 21.9867 16.1586 21.9867 15.7596C21.9867 15.3606 21.5869 14.9616 21.1871 14.9616Z" fill="#2680EB"/>
|
|
4
|
+
<path d="M18.9885 18.3529H10.9933C10.4936 18.3529 10.1938 18.7519 10.1938 19.1509C10.1938 19.5499 10.4936 20.0486 10.9933 20.0486H18.9885C19.4882 20.0486 19.788 19.6496 19.788 19.2506C19.788 18.8517 19.4882 18.3529 18.9885 18.3529Z" fill="#2680EB"/>
|
|
5
|
+
<path d="M7.39552 28.5268L8.19503 26.9309H7.99516C7.49546 26.9309 7.19564 26.532 7.19564 26.133V2.59335C7.19564 2.09463 7.5954 1.79539 7.99516 1.79539H18.8885V5.98465C18.8885 7.38107 19.9879 8.47826 21.387 8.47826H25.5845V21.6445H27.2834V7.48082C27.2834 7.28133 27.1835 7.08184 27.0836 6.88235L20.3876 0.199485C20.1877 -3.04692e-06 19.9879 0 19.788 0H7.99516C6.59601 0 5.49667 1.09719 5.49667 2.49361V26.0332C5.49667 27.3299 6.29619 28.2276 7.39552 28.5268ZM20.4876 2.99233L24.2853 6.7826H21.2871C20.7874 6.7826 20.4876 6.38363 20.4876 5.98465V2.99233Z" fill="#2680EB"/>
|
|
6
|
+
<path d="M38.7764 24.6368L31.8806 37.6036C31.5808 38.202 30.5814 38.9003 29.8818 38.9003L2.19866 39C1.59903 39 1.09933 38.8005 0.599636 38.4015C0.199879 38.0026 0 37.4041 0 36.8056V15.3606C0 14.1637 0.999393 13.1662 2.19866 13.1662H4.19745V15.0614H2.89824C2.59842 15.0614 2.39854 15.1611 2.19866 15.3606C1.99879 15.5601 1.89885 15.7596 1.89885 16.0588V36.1074C1.89885 36.7059 2.2986 37.1049 2.89824 37.1049H4.29739L10.7934 23.9386C11.1932 23.2404 11.8928 22.6419 12.5924 22.6419H28.5826V17.3555C29.582 17.4552 30.4815 18.3529 30.4815 19.3504V22.6419H37.777C38.6765 22.6419 39.3761 23.4399 38.7764 24.6368Z" fill="#FF8C00"/>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M32.4 35.5913C32.4 36.1928 31.9 36.6941 31.3 36.6941H8.4C7.8 36.6941 7.3 36.1928 7.3 35.5913V31.982H5V35.5913C5 37.4962 6.5 39 8.4 39H31.3C33.2 39 34.7 37.4962 34.7 35.5913V31.982H32.4V35.5913ZM34.4 9.42417L25.3 0.300774C25.1 0.10026 24.8 0 24.5 0H8.5C6.6 0 5.1 1.50386 5.1 3.40874V16.9434H7.4V3.30849C7.4 2.70694 7.9 2.20566 8.5 2.20566H23.4V7.92031C23.4 9.82519 24.9 11.329 26.8 11.329H32.5V16.9434H34.8V10.2262C34.7 9.92545 34.6 9.62468 34.4 9.42417ZM26.7 9.02314C26.1 9.02314 25.6 8.52185 25.6 7.92031V3.80977L30.8 9.02314H26.7Z" fill="#2680EB"/>
|
|
3
|
+
<path d="M19 6.91773H11.1C10.5 6.91773 10 7.41901 10 8.02056C10 8.6221 10.5 9.12338 11.1 9.12338H19C19.6 9.12338 20.1 8.6221 20.1 8.02056C20.1 7.41901 19.6 6.91773 19 6.91773Z" fill="#2680EB"/>
|
|
4
|
+
<path d="M19 11.9306H11.1C10.5 11.9306 10 12.4319 10 13.0334C10 13.635 10.5 14.1362 11.1 14.1362H19C19.6 14.1362 20.1 13.635 20.1 13.0334C20.1 12.4319 19.6 11.9306 19 11.9306Z" fill="#2680EB"/>
|
|
5
|
+
<path d="M13.2 22.4576C13.1 22.4576 13 22.3573 12.8 22.3573C12.6 22.3573 12.5 22.3573 12.3 22.3573H11.7V24.1619H12.2C12.5 24.1619 12.7 24.1619 12.9 24.1619C13.1 24.1619 13.2 24.0617 13.4 23.9614C13.5 23.8612 13.6 23.7609 13.7 23.6607C13.8 23.5604 13.8 23.3599 13.8 23.2596C13.8 23.0591 13.8 22.9589 13.7 22.8586C13.5 22.6581 13.4 22.5578 13.2 22.4576Z" fill="#FF8C00"/>
|
|
6
|
+
<path d="M34.1 22.5578C33.9 22.4576 33.8 22.4576 33.6 22.4576C33.4 22.4576 33.2 22.4576 32.9 22.4576H32.6V24.4627H33.1C33.4 24.4627 33.6 24.4627 33.8 24.3625C34 24.2622 34.1 24.2622 34.3 24.1619C34.4 24.0617 34.5 23.9614 34.5 23.8612C34.5 23.7609 34.6 23.5604 34.6 23.3599C34.6 23.1594 34.6 23.0591 34.5 22.8586C34.4 22.6581 34.3 22.5578 34.1 22.5578Z" fill="#FF8C00"/>
|
|
7
|
+
<path d="M20.8 22.7584C20.7 22.5578 20.5 22.4576 20.3 22.3573C20.1 22.2571 19.9 22.2571 19.7 22.2571C19.5 22.2571 19.3 22.2571 19.1 22.3573C18.9 22.4576 18.7 22.5578 18.6 22.7584C18.5 22.9589 18.3 23.1594 18.2 23.4602C18.1 23.7609 18.1 24.0617 18.1 24.4627C18.1 24.8638 18.1 25.1645 18.2 25.4653C18.3 25.7661 18.4 25.9666 18.6 26.1671C18.7 26.3676 18.9 26.4679 19.1 26.5681C19.3 26.6684 19.5 26.6684 19.7 26.6684C19.9 26.6684 20.1 26.6684 20.3 26.5681C20.5 26.4679 20.7 26.3676 20.8 26.1671C21 25.9666 21.1 25.7661 21.2 25.4653C21.3 25.1645 21.3 24.8638 21.3 24.4627C21.3 24.0617 21.3 23.7609 21.2 23.4602C21.1 23.1594 20.9 22.9589 20.8 22.7584Z" fill="#FF8C00"/>
|
|
8
|
+
<path d="M38 17.946H1C0.5 17.946 0 18.347 0 18.9486V29.9769C0 30.5784 0.5 30.9794 1 30.9794H38C38.5 30.9794 39 30.5784 39 29.9769V18.9486C39 18.347 38.5 17.946 38 17.946ZM8.8 27.3702C8.5 27.4704 8.1 27.5707 7.6 27.6709C7.1 27.7712 6.6 27.8715 6.1 27.8715C5 27.8715 4.1 27.5707 3.5 26.9692C2.9 26.3676 2.6 25.5656 2.6 24.4627C2.6 23.4602 2.9 22.6581 3.6 21.9563C4.3 21.2545 5.1 21.054 6.3 21.054C6.7 21.054 7.1 21.054 7.5 21.1542C7.9 21.2545 8.3 21.3548 8.8 21.6555V23.1594H8.6C8.5 23.0591 8.4 23.0591 8.2 22.8586C8 22.7583 7.9 22.6581 7.7 22.5578C7.5 22.4576 7.3 22.3573 7.1 22.3573C6.9 22.2571 6.6 22.2571 6.4 22.2571C6.1 22.2571 5.8 22.2571 5.6 22.3573C5.4 22.4576 5.1 22.5578 4.9 22.7584C4.7 22.9589 4.6 23.1594 4.5 23.4602C4.4 23.7609 4.3 24.0617 4.3 24.3625C4.3 25.0643 4.5 25.6658 4.9 26.0668C5.3 26.4679 5.9 26.6684 6.6 26.6684C6.7 26.6684 6.7 26.6684 6.8 26.6684C6.9 26.6684 6.9 26.6684 7 26.6684V25.365H5.8V24.1619H8.8V27.3702ZM14.2 27.7712L12.4 25.365H11.6V27.7712H10V21.1542H12.8C13.2 21.1542 13.5 21.1542 13.8 21.2545C14.1 21.2545 14.3 21.3548 14.6 21.5553C14.8 21.6555 15 21.856 15.2 22.1568C15.3 22.3573 15.4 22.6581 15.4 23.0591C15.4 23.5604 15.3 23.9614 15.1 24.2622C14.9 24.563 14.6 24.8638 14.1 25.0643L16.3 27.8715H14.2V27.7712ZM22.2 26.9692C21.6 27.5707 20.8 27.8715 19.7 27.8715C18.6 27.8715 17.8 27.5707 17.2 26.9692C16.6 26.3676 16.3 25.5656 16.3 24.4627C16.3 23.3599 16.6 22.5578 17.2 21.9563C17.8 21.3548 18.6 21.054 19.7 21.054C20.8 21.054 21.6 21.3548 22.2 21.9563C22.8 22.5578 23.1 23.3599 23.1 24.4627C23.1 25.4653 22.8 26.3676 22.2 26.9692ZM29.7 25.365C29.7 26.1671 29.5 26.7686 29 27.2699C28.5 27.671 27.8 27.8715 26.8 27.8715C25.8 27.8715 25.1 27.671 24.6 27.2699C24.1 26.8689 23.9 26.1671 23.9 25.365V21.1542H25.6V25.2648C25.6 25.7661 25.7 26.0668 25.9 26.2674C26.1 26.4679 26.4 26.5681 26.8 26.5681C27.2 26.5681 27.5 26.4679 27.7 26.2674C27.9 26.0668 28 25.6658 28 25.2648V21.1542H29.7V25.365ZM36.2 24.1619C36.1 24.4627 35.9 24.6632 35.8 24.8637C35.5 25.1645 35.2 25.365 34.9 25.4653C34.6 25.5656 34.2 25.6658 33.7 25.6658H32.6V27.7712H31V21.1542H33.8C34.2 21.1542 34.6 21.1542 34.9 21.2545C35.2 21.3548 35.4 21.455 35.7 21.5553C36 21.7558 36.2 21.9563 36.3 22.2571C36.4 22.5578 36.5 22.8586 36.5 23.2596C36.4 23.5604 36.3 23.8612 36.2 24.1619Z" fill="#FF8C00"/>
|
|
9
|
+
</svg>
|
|
@@ -1442,17 +1442,17 @@ Attachment.propTypes = {
|
|
|
1442
1442
|
allowSort: PropTypes.bool,
|
|
1443
1443
|
/** Class for component. */
|
|
1444
1444
|
className: PropTypes.string,
|
|
1445
|
-
/** List attachment:<br />
|
|
1446
|
-
* [{<br />
|
|
1447
|
-
* "AttachmentID": "ATT2U8O7YPTF1KSNCW3X",<br />
|
|
1448
|
-
* "URL": "https://apricot.diginet.com.vn/cdn-dev/file/demo.jpg",<br />
|
|
1449
|
-
* "FileName": "8a07bee1eeff17a14eee.jpg",<br />
|
|
1450
|
-
* "FileSize": 248837,<br />
|
|
1451
|
-
* "KeyID": "W39OAD3YGLCWAQKV1D6PGEKNW4RLGVTZTUWLYEVFQ2QG8AOCXW",<br />
|
|
1452
|
-
* "CreateUserID": "LEMONADMIN",<br />
|
|
1453
|
-
* "CreateDate": "2020-08-24T11:54:04.307Z",<br />
|
|
1454
|
-
* "UserName": "Quản trị hệ thống"<br />
|
|
1455
|
-
* }, ...]
|
|
1445
|
+
/** List attachment:<br />
|
|
1446
|
+
* [{<br />
|
|
1447
|
+
* "AttachmentID": "ATT2U8O7YPTF1KSNCW3X",<br />
|
|
1448
|
+
* "URL": "https://apricot.diginet.com.vn/cdn-dev/file/demo.jpg",<br />
|
|
1449
|
+
* "FileName": "8a07bee1eeff17a14eee.jpg",<br />
|
|
1450
|
+
* "FileSize": 248837,<br />
|
|
1451
|
+
* "KeyID": "W39OAD3YGLCWAQKV1D6PGEKNW4RLGVTZTUWLYEVFQ2QG8AOCXW",<br />
|
|
1452
|
+
* "CreateUserID": "LEMONADMIN",<br />
|
|
1453
|
+
* "CreateDate": "2020-08-24T11:54:04.307Z",<br />
|
|
1454
|
+
* "UserName": "Quản trị hệ thống"<br />
|
|
1455
|
+
* }, ...]
|
|
1456
1456
|
*/
|
|
1457
1457
|
data: PropTypes.array,
|
|
1458
1458
|
/** The message to display when deleting files. */
|
|
@@ -1483,16 +1483,16 @@ Attachment.propTypes = {
|
|
|
1483
1483
|
onChange: PropTypes.func,
|
|
1484
1484
|
/** Download attached event, if not it will use default. */
|
|
1485
1485
|
onDownload: PropTypes.func,
|
|
1486
|
-
/**
|
|
1487
|
-
* event when removed file(s)
|
|
1488
|
-
*
|
|
1489
|
-
* return data: {<br/>
|
|
1490
|
-
* attached: [Files] (insist old and all new files )<br/>
|
|
1491
|
-
* allNewAttached: [Files]<br/>
|
|
1492
|
-
* oldAttached: [Files]<br/>
|
|
1493
|
-
* removedAttached: [Files]<br/>
|
|
1494
|
-
* element: [NodeList (just removed)]<br/>
|
|
1495
|
-
* }
|
|
1486
|
+
/**
|
|
1487
|
+
* event when removed file(s)
|
|
1488
|
+
*
|
|
1489
|
+
* return data: {<br/>
|
|
1490
|
+
* attached: [Files] (insist old and all new files )<br/>
|
|
1491
|
+
* allNewAttached: [Files]<br/>
|
|
1492
|
+
* oldAttached: [Files]<br/>
|
|
1493
|
+
* removedAttached: [Files]<br/>
|
|
1494
|
+
* element: [NodeList (just removed)]<br/>
|
|
1495
|
+
* }
|
|
1496
1496
|
*/
|
|
1497
1497
|
onRemove: PropTypes.func,
|
|
1498
1498
|
/** View attached event, if not it will use default. */
|
|
@@ -652,7 +652,7 @@ const renderNavigator = (className, refs, dbLeftFn, leftFn, rightFn, dbRightFn,
|
|
|
652
652
|
color: 'primary',
|
|
653
653
|
type: 'h3',
|
|
654
654
|
ref: refs.content,
|
|
655
|
-
format: ['
|
|
655
|
+
format: ['sentence']
|
|
656
656
|
}))), jsx("div", {
|
|
657
657
|
className: className.navigator.around
|
|
658
658
|
}, jsx(ButtonIcon, {
|
|
@@ -226,7 +226,7 @@ const Calendar = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference)
|
|
|
226
226
|
* START EFFECT
|
|
227
227
|
*/
|
|
228
228
|
useEffect(() => {
|
|
229
|
-
if (defaultValue && defaultValue !== '' && isValidDate(defaultValue)) {
|
|
229
|
+
if (defaultValue && defaultValue !== '' && isValidDate(defaultValue) && !value) {
|
|
230
230
|
if (isBeforeLimit(min, defaultValue)) {
|
|
231
231
|
onUpdate(min);
|
|
232
232
|
} else if (isAfterLimit(max, defaultValue)) {
|
|
@@ -752,6 +752,7 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, ref
|
|
|
752
752
|
}
|
|
753
753
|
ipRef.current && ipRef.current.blur();
|
|
754
754
|
updateTempValues([]);
|
|
755
|
+
setOpenState(false);
|
|
755
756
|
};
|
|
756
757
|
const onClickOutside = e => {
|
|
757
758
|
if (ipConRef.current && !ipConRef.current.contains(e.target) && ipRef.current && !ipRef.current.contains(e.target) && pickerRef.current && !pickerRef.current.contains(e.target)) {
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { css, jsx } from '@emotion/core';
|
|
4
|
-
import { ButtonIcon, InputBase, Label, Popover, PopoverBody } from "../..";
|
|
4
|
+
import { ButtonIcon, InputBase, Label, Popover, PopoverBody, HelperText } from "../..";
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import { Fragment, forwardRef, memo, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from 'react';
|
|
6
|
+
import { Fragment, forwardRef, memo, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState, useMemo } from 'react';
|
|
7
7
|
import { animation, borderColor, displayBlock, overflowHidden, parseHeight, parseMinWidth, positionRelative, scaleX } from "../../../styles/general";
|
|
8
8
|
import { useTheme } from "../../../theme";
|
|
9
9
|
import useThemeProps from "../../../theme/utils/useThemeProps";
|
|
10
10
|
import { classNames, getProp } from "../../../utils";
|
|
11
|
+
const regexBetween = /[^{}]+(?=})/g;
|
|
12
|
+
const regexInclude = /{|}/g;
|
|
11
13
|
const DropdownBox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
12
14
|
if (!reference) reference = useRef(null);
|
|
13
15
|
const theme = useTheme();
|
|
@@ -22,10 +24,14 @@ const DropdownBox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, referen
|
|
|
22
24
|
});
|
|
23
25
|
const {
|
|
24
26
|
action = {},
|
|
27
|
+
allowInput,
|
|
25
28
|
bgColor: bgColorProp,
|
|
26
29
|
children,
|
|
27
30
|
className,
|
|
28
31
|
delayOnInput,
|
|
32
|
+
disabled,
|
|
33
|
+
displayExpr: displayExprProp,
|
|
34
|
+
error,
|
|
29
35
|
endIcon,
|
|
30
36
|
inputProps,
|
|
31
37
|
inputRef,
|
|
@@ -39,10 +45,19 @@ const DropdownBox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, referen
|
|
|
39
45
|
placeholder,
|
|
40
46
|
startIcon,
|
|
41
47
|
style,
|
|
42
|
-
value,
|
|
43
|
-
|
|
48
|
+
value: valueProps,
|
|
49
|
+
valueExpr,
|
|
50
|
+
viewType,
|
|
51
|
+
helperTextProps
|
|
44
52
|
} = props;
|
|
53
|
+
let displayExpr = displayExprProp;
|
|
45
54
|
const bgColor = typeof bgColorProp === 'string' ? getProp(colors, bgColorProp, bgColorProp) : bgColorProp;
|
|
55
|
+
const ErrorView = useMemo(() => {
|
|
56
|
+
return error ? jsx(HelperText, {
|
|
57
|
+
...helperTextProps,
|
|
58
|
+
disabled: disabled
|
|
59
|
+
}, error) : null;
|
|
60
|
+
}, [disabled, error, helperTextProps]);
|
|
46
61
|
const ref = useRef(null);
|
|
47
62
|
const dropdownBoxRef = useRef(null);
|
|
48
63
|
const timer = useRef(null);
|
|
@@ -85,6 +100,28 @@ const DropdownBox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, referen
|
|
|
85
100
|
onClosed === null || onClosed === void 0 ? void 0 : onClosed();
|
|
86
101
|
}
|
|
87
102
|
};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Chuyển đổi data thành giá trị cần hiện thị dựa vào displayExpr [string, string object {field} - {field}], renderSelectedItem, displayExpr, valueExpr
|
|
106
|
+
* @param data {object} rowData of dataSource
|
|
107
|
+
* @return {string}
|
|
108
|
+
*/
|
|
109
|
+
const displayValue = data => {
|
|
110
|
+
let text = '';
|
|
111
|
+
if (data || data === 0) {
|
|
112
|
+
displayExpr = displayExpr || valueExpr;
|
|
113
|
+
let mask = data === null || data === void 0 ? void 0 : data[displayExpr];
|
|
114
|
+
// convert {id} - {name} to {<data[id]>} - {<data[name]>}
|
|
115
|
+
if (!mask && regexBetween.test(displayExpr)) {
|
|
116
|
+
var _displayExpr;
|
|
117
|
+
mask = (_displayExpr = displayExpr) === null || _displayExpr === void 0 ? void 0 : _displayExpr.replace(regexBetween, _ => (data === null || data === void 0 ? void 0 : data[_]) || '');
|
|
118
|
+
} else if (!mask) {
|
|
119
|
+
mask = typeof data !== 'object' ? data : '';
|
|
120
|
+
}
|
|
121
|
+
text = mask.toString().replace(regexInclude, '');
|
|
122
|
+
}
|
|
123
|
+
return text;
|
|
124
|
+
};
|
|
88
125
|
useLayoutEffect(() => {
|
|
89
126
|
if (ref.current) {
|
|
90
127
|
const {
|
|
@@ -130,15 +167,17 @@ const DropdownBox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, referen
|
|
|
130
167
|
onClick: openOnClickAt === 'icon' ? onTriggerDropdown : null
|
|
131
168
|
}) : null;
|
|
132
169
|
};
|
|
170
|
+
const value = displayValue(valueProps);
|
|
133
171
|
return jsx(Fragment, null, jsx("div", {
|
|
134
172
|
ref: ref,
|
|
135
173
|
css: _DropdownBoxRootCSS,
|
|
136
|
-
className: classNames('DGN-UI-Dropdown-Box', className),
|
|
174
|
+
className: classNames('DGN-UI-Dropdown-Box', className, error && 'error'),
|
|
137
175
|
style: style
|
|
138
176
|
}, label ? jsx(Label, {
|
|
139
177
|
...labelProps
|
|
140
178
|
}, label) : null, jsx(InputBase, {
|
|
141
179
|
...inputProps,
|
|
180
|
+
readOnly: !allowInput,
|
|
142
181
|
style: inputStyle,
|
|
143
182
|
viewType: viewType,
|
|
144
183
|
inputRef: inputRef,
|
|
@@ -157,7 +196,7 @@ const DropdownBox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, referen
|
|
|
157
196
|
anchor: ref.current,
|
|
158
197
|
width: popoverWidth,
|
|
159
198
|
onClose: closeDropdownBox
|
|
160
|
-
}, jsx(PopoverBody, null, children)));
|
|
199
|
+
}, jsx(PopoverBody, null, children)), ErrorView);
|
|
161
200
|
}));
|
|
162
201
|
const DropdownBoxRootCSS = (bgColorProp, {
|
|
163
202
|
colors
|
|
@@ -166,6 +205,17 @@ const DropdownBoxRootCSS = (bgColorProp, {
|
|
|
166
205
|
${positionRelative};
|
|
167
206
|
${parseMinWidth(150)};
|
|
168
207
|
${parseHeight('max-content')};
|
|
208
|
+
&.error {
|
|
209
|
+
.DGN-UI-InputBase {
|
|
210
|
+
${borderColor(getProp(colors, 'semantic/danger'))};
|
|
211
|
+
&::before {
|
|
212
|
+
${borderColor(getProp(colors, 'semantic/danger'))};
|
|
213
|
+
}
|
|
214
|
+
&::after {
|
|
215
|
+
${borderColor(getProp(colors, 'semantic/danger'))};
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
169
219
|
.DGN-UI-InputBase {
|
|
170
220
|
background: ${bgColorProp ? bgColorProp === true ? getProp(colors, 'fill/disabled') : bgColorProp : 'inherit'} !important;
|
|
171
221
|
${openState && css`
|
|
@@ -183,20 +233,6 @@ const DropdownBoxCSS = ({
|
|
|
183
233
|
margin-top: ${spacing([1])};
|
|
184
234
|
${overflowHidden};
|
|
185
235
|
`;
|
|
186
|
-
|
|
187
|
-
// DropdownBox.defaultProps = {
|
|
188
|
-
// className: '',
|
|
189
|
-
// label: '',
|
|
190
|
-
// placeholder: '',
|
|
191
|
-
// startIcon: 'Search',
|
|
192
|
-
// endIcon: 'ArrowDown',
|
|
193
|
-
// openOnClickAt: 'icon',
|
|
194
|
-
// viewType: 'underlined',
|
|
195
|
-
// inputProps: {},
|
|
196
|
-
// delayOnInput: 700,
|
|
197
|
-
// zIndex: zIndexCORE(1),
|
|
198
|
-
// };
|
|
199
|
-
|
|
200
236
|
DropdownBox.propTypes = {
|
|
201
237
|
/** class for dropdown */
|
|
202
238
|
className: PropTypes.string,
|
|
@@ -233,6 +269,12 @@ DropdownBox.propTypes = {
|
|
|
233
269
|
/** the function will run after open */
|
|
234
270
|
onOpened: PropTypes.func,
|
|
235
271
|
/** the function will run after close */
|
|
236
|
-
onClosed: PropTypes.func
|
|
272
|
+
onClosed: PropTypes.func,
|
|
273
|
+
/** Error message displayed below the input. */
|
|
274
|
+
error: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
275
|
+
/** If `true`, the component is disabled. */
|
|
276
|
+
disabled: PropTypes.bool,
|
|
277
|
+
/** If `true`, the input is enable. */
|
|
278
|
+
allowInput: PropTypes.bool
|
|
237
279
|
};
|
|
238
280
|
export default DropdownBox;
|
|
@@ -49,7 +49,7 @@ const NumberInput = /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
|
49
49
|
labelProps,
|
|
50
50
|
max: maxProp,
|
|
51
51
|
maxDigit,
|
|
52
|
-
min,
|
|
52
|
+
min: minProp,
|
|
53
53
|
nonStyle,
|
|
54
54
|
onBlur,
|
|
55
55
|
onChange,
|
|
@@ -69,9 +69,12 @@ const NumberInput = /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
|
69
69
|
viewType
|
|
70
70
|
} = props;
|
|
71
71
|
let max = maxProp;
|
|
72
|
+
let min = minProp;
|
|
72
73
|
let thousandSymbol = thousandSeparator;
|
|
73
74
|
let decimalSymbol = decimalSymbolProp;
|
|
74
75
|
let valueProps = valueProp;
|
|
76
|
+
if (!min && min !== 0) min = -Infinity;
|
|
77
|
+
if (!max && max !== 0) max = Infinity;
|
|
75
78
|
const pos = useRef(null);
|
|
76
79
|
const ref = useRef(null);
|
|
77
80
|
const globalRef = useRef({});
|
|
@@ -533,22 +533,22 @@ PagingInfo.propTypes = {
|
|
|
533
533
|
onChangePage: PropTypes.func,
|
|
534
534
|
/** Callback fired when quantity on per page changed. */
|
|
535
535
|
onChangePerPage: PropTypes.func,
|
|
536
|
-
/**
|
|
537
|
-
* Callback fired when page number is changing.
|
|
538
|
-
*
|
|
539
|
-
* * prevPage: Page before changed
|
|
540
|
-
* * newPage: Page after changed
|
|
541
|
-
* * cancel(value): Function cancel change page
|
|
542
|
-
* * @param {value} - bool
|
|
536
|
+
/**
|
|
537
|
+
* Callback fired when page number is changing.
|
|
538
|
+
*
|
|
539
|
+
* * prevPage: Page before changed
|
|
540
|
+
* * newPage: Page after changed
|
|
541
|
+
* * cancel(value): Function cancel change page
|
|
542
|
+
* * @param {value} - bool
|
|
543
543
|
*/
|
|
544
544
|
onChangingPage: PropTypes.func,
|
|
545
|
-
/**
|
|
546
|
-
* Callback fired when quantity on item per page is changing.
|
|
547
|
-
*
|
|
548
|
-
* * prevPerPage: Items per page before changed
|
|
549
|
-
* * newPerPage: Items per page after changed
|
|
550
|
-
* * cancel(value): Function cancel change items per page
|
|
551
|
-
* * @param {value} - bool
|
|
545
|
+
/**
|
|
546
|
+
* Callback fired when quantity on item per page is changing.
|
|
547
|
+
*
|
|
548
|
+
* * prevPerPage: Items per page before changed
|
|
549
|
+
* * newPerPage: Items per page after changed
|
|
550
|
+
* * cancel(value): Function cancel change items per page
|
|
551
|
+
* * @param {value} - bool
|
|
552
552
|
*/
|
|
553
553
|
onChangingPerPage: PropTypes.func,
|
|
554
554
|
/** Style inline of component. */
|
|
@@ -557,26 +557,26 @@ PagingInfo.propTypes = {
|
|
|
557
557
|
totalItems: PropTypes.number,
|
|
558
558
|
/** Compact type for mobile. */
|
|
559
559
|
typeShort: PropTypes.bool
|
|
560
|
-
/**
|
|
561
|
-
* ref methods (ref.current.instance.*method*)
|
|
562
|
-
*
|
|
563
|
-
* * onChangePage(page): Change page number
|
|
564
|
-
* * @param {page} - number
|
|
565
|
-
* * onChangePerPage(per): Change quantity on per page
|
|
566
|
-
* * @param {per} - number
|
|
567
|
-
* * setTotalItems(items): Set total items
|
|
568
|
-
* * @param {items} - number
|
|
569
|
-
*
|
|
570
|
-
* * option(): Gets all UI component properties
|
|
571
|
-
* * Returns value - object
|
|
572
|
-
* * option(optionName): Gets the value of a single property
|
|
573
|
-
* * @param {optionName} - string
|
|
574
|
-
* * Returns value - any
|
|
575
|
-
* * option(optionName, optionValue): Updates the value of a single property
|
|
576
|
-
* * @param {optionName} - string
|
|
577
|
-
* * @param {optionValue} - any
|
|
578
|
-
* * option(options): Updates the values of several properties
|
|
579
|
-
* * @param {options} - object
|
|
560
|
+
/**
|
|
561
|
+
* ref methods (ref.current.instance.*method*)
|
|
562
|
+
*
|
|
563
|
+
* * onChangePage(page): Change page number
|
|
564
|
+
* * @param {page} - number
|
|
565
|
+
* * onChangePerPage(per): Change quantity on per page
|
|
566
|
+
* * @param {per} - number
|
|
567
|
+
* * setTotalItems(items): Set total items
|
|
568
|
+
* * @param {items} - number
|
|
569
|
+
*
|
|
570
|
+
* * option(): Gets all UI component properties
|
|
571
|
+
* * Returns value - object
|
|
572
|
+
* * option(optionName): Gets the value of a single property
|
|
573
|
+
* * @param {optionName} - string
|
|
574
|
+
* * Returns value - any
|
|
575
|
+
* * option(optionName, optionValue): Updates the value of a single property
|
|
576
|
+
* * @param {optionName} - string
|
|
577
|
+
* * @param {optionValue} - any
|
|
578
|
+
* * option(options): Updates the values of several properties
|
|
579
|
+
* * @param {options} - object
|
|
580
580
|
*/
|
|
581
581
|
};
|
|
582
582
|
export { PagingInfo };
|
package/package.json
CHANGED
|
@@ -1,44 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "diginet-core-ui",
|
|
3
|
-
"version": "1.4.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"scripts": {
|
|
8
|
-
"start
|
|
9
|
-
"start": "
|
|
10
|
-
"build": "
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "diginet-core-ui",
|
|
3
|
+
"version": "1.4.62-beta.2",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"start": "npm-run-all --parallel start-sb eslint-test",
|
|
9
|
+
"start-sb": "start-storybook -p 9050",
|
|
10
|
+
"build-storybook": "build-storybook -c .storybook -s src",
|
|
11
|
+
"build": "run-script-os",
|
|
12
|
+
"build:windows": "rimraf dist && mkdirp dist/components && npm run compile && sass --style=compressed src/scss:dist/css && xcopy src\\\\assets dist\\\\assets\\ /e /y",
|
|
13
|
+
"build:darwin:linux:default": "rm -rf dist && npm run compile && sass --style=compressed src/scss:dist/css && cp -rf src/assets dist/assets",
|
|
14
|
+
"compile": "babel src --out-dir dist --ignore **/*.stories.js",
|
|
15
|
+
"pack": "npm run build && cp *.md dist/ && npm run version:bump --silent && npm run version:add --silent && cd dist && npm pack",
|
|
16
|
+
"production-keep-version": "npm run build && cp *.md dist/ && cp package.json dist/ && cd dist && npm publish",
|
|
17
|
+
"beta": "npm run build && cp *.md dist/ && cp package.json dist/ && cd dist && npm publish --tag beta",
|
|
18
|
+
"production": "npm run build && cp *.md dist/ && npm run version:bump --silent && npm run version:add --silent && cd dist && npm publish",
|
|
19
|
+
"version:add": "run-script-os",
|
|
20
|
+
"version:add:windows": "cat package.json.tmp | sed \"s/0.0.0/%npm_package_version%/g\" > dist/package.json",
|
|
21
|
+
"version:add:darwin:linux:default": "VERSION=$(npm run version:extract --silent) && cat package.json.tmp | sed \"s/0.0.0/${VERSION}/g\" > dist/package.json",
|
|
22
|
+
"version:bump": "npm version patch --no-git-tag-version --silent",
|
|
23
|
+
"version:extract": "cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]'",
|
|
24
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
25
|
+
"lint": "eslint --fix --config .eslintrc.js \"**/*.js\"",
|
|
26
|
+
"eslint-test": "onchange \"src/**/*.{js,jsx,json}\" -- eslint . --fix",
|
|
27
|
+
"freshtall": "npm cache clean --force && rm -rf node_modules && rm -f package-lock.json && npm install",
|
|
28
|
+
"test-storybook": "test-storybook --url http://localhost:9050",
|
|
29
|
+
"preinstall": "echo {} > package-lock.json"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@emotion/core": "^10.0.35",
|
|
33
|
+
"@emotion/css": "^11.11.0",
|
|
34
|
+
"@emotion/react": "^11.10.6",
|
|
35
|
+
"babel-plugin-module-resolver": "^4.1.0",
|
|
36
|
+
"date-fns": "^2.30.0",
|
|
37
|
+
"prop-types": "^15.7.2"
|
|
38
|
+
},
|
|
39
|
+
"lint-staged": {
|
|
40
|
+
"*/**/*.{js,jsx,json}": [
|
|
41
|
+
"prettier --write",
|
|
42
|
+
"git add"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@babel/cli": "^7.14.3",
|
|
47
|
+
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
|
48
|
+
"@babel/plugin-proposal-logical-assignment-operators": "^7.16.0",
|
|
49
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0",
|
|
50
|
+
"@babel/plugin-proposal-optional-chaining": "^7.14.2",
|
|
51
|
+
"@babel/plugin-proposal-private-methods": "^7.18.6",
|
|
52
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.18.6",
|
|
53
|
+
"@babel/preset-react": "^7.13.13",
|
|
54
|
+
"@storybook/addon-actions": "6.2.9",
|
|
55
|
+
"@storybook/addon-essentials": "6.2.9",
|
|
56
|
+
"@storybook/addon-links": "6.2.9",
|
|
57
|
+
"@storybook/addon-postcss": "^2.0.0",
|
|
58
|
+
"@storybook/react": "6.2.9",
|
|
59
|
+
"@storybook/test-runner": "^0.7.1",
|
|
60
|
+
"autoprefixer": "^10.3.1",
|
|
61
|
+
"babel-loader": "^8.2.2",
|
|
62
|
+
"eslint": "^8.4.1",
|
|
63
|
+
"eslint-plugin-react": "^7.27.1",
|
|
64
|
+
"eslint-plugin-regex": "^1.10.0",
|
|
65
|
+
"husky": "^7.0.4",
|
|
66
|
+
"jest": "^27.5.1",
|
|
67
|
+
"lint-staged": "^12.1.2",
|
|
68
|
+
"mkdirp": "^1.0.4",
|
|
69
|
+
"npm-run-all": "^4.1.5",
|
|
70
|
+
"onchange": "^7.1.0",
|
|
71
|
+
"postcss-flexbugs-fixes": "^5.0.2",
|
|
72
|
+
"react": "^17.0.1",
|
|
73
|
+
"react-dom": "^17.0.1",
|
|
74
|
+
"rimraf": "^3.0.2",
|
|
75
|
+
"run-script-os": "^1.1.6",
|
|
76
|
+
"sass": "1.58.3"
|
|
77
|
+
}
|
|
78
|
+
}
|