@ikas/core 1.0.13 → 1.0.14
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/dist/index100.cjs +1 -1
- package/dist/index100.js +1 -1
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +1 -1
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +1 -1
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +1 -1
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +3 -3
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +2 -2
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +235 -275
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +83 -2
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +277 -28
- package/dist/index120.js +2 -2
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +30 -239
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +2 -83
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +2 -2
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +4 -111
- package/dist/index125.cjs +1 -6
- package/dist/index125.js +8 -14
- package/dist/index126.cjs +1 -6
- package/dist/index126.js +7 -13
- package/dist/index127.cjs +2 -2
- package/dist/index127.js +21 -8
- package/dist/index128.cjs +6 -5
- package/dist/index128.js +14 -2962
- package/dist/index129.cjs +6 -1
- package/dist/index129.js +14 -2
- package/dist/index130.cjs +6 -1
- package/dist/index130.js +13 -5
- package/dist/index131.cjs +6 -1
- package/dist/index131.js +15 -4
- package/dist/index132.cjs +2 -2
- package/dist/index132.js +4 -21
- package/dist/index133.cjs +2 -2
- package/dist/index133.js +7 -9
- package/dist/index134.cjs +2 -2
- package/dist/index134.js +10 -3
- package/dist/index135.cjs +2 -2
- package/dist/index135.js +2 -7
- package/dist/index136.cjs +2 -2
- package/dist/index136.js +2 -11
- package/dist/index137.cjs +2 -2
- package/dist/index137.js +6 -2
- package/dist/index138.cjs +2 -2
- package/dist/index138.js +34 -2
- package/dist/index139.cjs +2 -2
- package/dist/index139.js +11 -5
- package/dist/index140.cjs +2 -2
- package/dist/index140.js +7 -34
- package/dist/index141.cjs +1 -6
- package/dist/index141.js +4 -18
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +5 -7
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +6 -71
- package/dist/index144.cjs +3 -1
- package/dist/index144.js +144 -17
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +30 -34
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +140 -46
- package/dist/index147.cjs +15 -1
- package/dist/index147.js +135 -38
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +84 -89
- package/dist/index149.cjs +11 -1
- package/dist/index149.js +147 -59
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +83 -6
- package/dist/index151.cjs +1 -3
- package/dist/index151.js +48 -144
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +20 -27
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +5 -144
- package/dist/index154.cjs +1 -15
- package/dist/index154.js +6 -137
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +42 -85
- package/dist/index156.cjs +1 -11
- package/dist/index156.js +48 -146
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +8 -82
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +19 -50
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +51 -17
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +286 -5
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +18 -5
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +16 -42
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +55 -41
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +113 -9
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +42 -19
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +17 -51
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +160 -279
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +15 -11
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +52 -13
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +24 -55
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +42 -104
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +125 -34
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +75 -18
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +71 -158
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +13 -17
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +26 -50
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +26 -28
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +26 -46
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +155 -113
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +50 -79
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +27 -80
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +2 -19
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +28 -33
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +31 -30
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +115 -30
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +58 -173
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +58 -50
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +17 -4
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +14 -7
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +2 -7
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +7 -75
- package/dist/index192.cjs +2 -14
- package/dist/index192.js +323 -6854
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +50 -2
- package/dist/index194.cjs +1 -6
- package/dist/index194.js +18 -11
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +12 -26
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +9 -2
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +3 -27
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +5 -32
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +5 -115
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +8 -59
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +8 -59
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +2 -17
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +40 -15
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +83 -2
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +4 -7
- package/dist/index206.cjs +1 -2
- package/dist/index206.js +5 -327
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +18 -48
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +2 -18
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +2 -13
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +2 -9
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +2 -4
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +2 -5
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +2 -6
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +2 -9
- package/dist/index215.cjs +8 -1
- package/dist/index215.js +75 -8
- package/dist/index216.cjs +8 -1
- package/dist/index216.js +93 -2
- package/dist/index217.cjs +5 -1
- package/dist/index217.js +50 -38
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +8 -83
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +4 -4
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +52 -5
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +110 -19
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +71 -2
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +19 -2
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +35 -2
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +50 -2
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +40 -2
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +92 -2
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +60 -2
- package/dist/index229.cjs +5 -8
- package/dist/index229.js +2959 -73
- package/dist/index230.cjs +1 -8
- package/dist/index230.js +2 -93
- package/dist/index231.cjs +1 -5
- package/dist/index231.js +5 -52
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +26 -8
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +16 -5
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +40 -50
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +14 -26
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +12 -15
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +58 -39
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +15 -13
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +6 -13
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +3 -61
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +28 -15
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +6 -5
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +5 -3
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +6 -28
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +10 -6
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +38 -4
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +2 -7
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +9 -10
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +14 -38
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +4 -2
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +7 -9
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +4 -15
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +4 -2
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +5 -8
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +3 -4
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +5 -5
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +7 -5
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +76 -3
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +2 -6
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +2 -7
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +18 -2
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +5 -2
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +4 -17
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +3 -4
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +3 -4
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +14 -3
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +9 -3
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +3 -14
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +10 -9
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +6 -3
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +5 -10
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +6 -6
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +6 -5
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +8 -7
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +5 -6
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +4 -8
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +9 -5
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +14 -4
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +5 -10
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +5 -13
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +18 -5
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +12 -5
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +12 -17
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +4 -13
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +4 -4
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +5 -4
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +4 -12
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +27 -4
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +8 -4
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +5 -5
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +5 -12
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +5 -4
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +5 -26
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +9 -9
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +4 -5
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +7 -5
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +5 -5
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +6 -5
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +4 -8
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +12 -4
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +4 -7
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +38 -5
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +2 -7
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +6 -38
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +8 -2
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +3 -6
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +2 -8
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +3 -3
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +10 -2
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +5 -5
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +5 -15
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +6 -3
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +4 -6
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +17 -6
- package/dist/index315.cjs +1 -1
- package/dist/index315.js +9 -4
- package/dist/index316.cjs +1 -1
- package/dist/index316.js +5 -9
- package/dist/index317.cjs +1 -1
- package/dist/index317.js +5 -5
- package/dist/index318.cjs +1 -1
- package/dist/index318.js +8 -9
- package/dist/index319.cjs +1 -1
- package/dist/index319.js +5 -11
- package/dist/index320.cjs +1 -1
- package/dist/index320.js +15 -4
- package/dist/index321.cjs +1 -1
- package/dist/index321.js +3 -10
- package/dist/index322.cjs +1 -1
- package/dist/index322.js +6 -5
- package/dist/index323.cjs +1 -1
- package/dist/index323.js +2 -3
- package/dist/index324.cjs +1 -1
- package/dist/index324.js +9 -5
- package/dist/index325.cjs +1 -1
- package/dist/index325.js +6 -4
- package/dist/index326.cjs +1 -1
- package/dist/index326.js +8 -17
- package/dist/index327.cjs +1 -1
- package/dist/index327.js +11 -5
- package/dist/index328.cjs +1 -1
- package/dist/index328.js +12 -6
- package/dist/index329.cjs +1 -1
- package/dist/index329.js +12 -14
- package/dist/index330.cjs +1 -1
- package/dist/index330.js +14 -12
- package/dist/index331.cjs +1 -1
- package/dist/index331.js +29 -13
- package/dist/index332.cjs +1 -1
- package/dist/index332.js +9 -9
- package/dist/index333.cjs +1 -1
- package/dist/index333.js +3 -6
- package/dist/index334.cjs +1 -1
- package/dist/index334.js +15 -28
- package/dist/index335.cjs +1 -1
- package/dist/index335.js +6 -8
- package/dist/index336.cjs +1 -1
- package/dist/index336.js +3 -4
- package/dist/index337.cjs +1 -1
- package/dist/index337.js +11 -15
- package/dist/index338.cjs +1 -1
- package/dist/index338.js +5 -3
- package/dist/index339.cjs +1 -1
- package/dist/index339.js +7 -12
- package/dist/index340.cjs +1 -1
- package/dist/index340.js +6 -4
- package/dist/index341.cjs +1 -1
- package/dist/index341.js +9 -4
- package/dist/index342.cjs +1 -1
- package/dist/index342.js +5 -7
- package/dist/index343.cjs +1 -1
- package/dist/index343.js +4 -7
- package/dist/index344.cjs +1 -1
- package/dist/index344.js +5 -3
- package/dist/index345.cjs +1 -1
- package/dist/index345.js +5 -6
- package/dist/index346.cjs +1 -1
- package/dist/index346.js +3 -11
- package/dist/index347.cjs +1 -1
- package/dist/index347.js +5 -5
- package/dist/index348.cjs +1 -1
- package/dist/index348.js +7 -4
- package/dist/index349.cjs +1 -1
- package/dist/index349.js +5 -4
- package/dist/index350.cjs +1 -1
- package/dist/index350.js +7 -5
- package/dist/index351.cjs +1 -1
- package/dist/index351.js +37 -5
- package/dist/index352.cjs +1 -1
- package/dist/index352.js +42 -11
- package/dist/index353.cjs +1 -1
- package/dist/index353.js +33 -7
- package/dist/index354.cjs +1 -1
- package/dist/index354.js +25 -37
- package/dist/index355.cjs +1 -1
- package/dist/index355.js +11 -42
- package/dist/index356.cjs +1 -1
- package/dist/index356.js +12 -32
- package/dist/index357.cjs +1 -1
- package/dist/index357.js +4 -26
- package/dist/index358.cjs +1 -1
- package/dist/index358.js +17 -13
- package/dist/index359.cjs +1 -1
- package/dist/index359.js +5 -3
- package/dist/index360.cjs +1 -1
- package/dist/index360.js +8 -18
- package/dist/index361.cjs +1 -1
- package/dist/index361.js +4 -5
- package/dist/index362.cjs +1 -1
- package/dist/index362.js +11 -3
- package/dist/index363.cjs +1 -1
- package/dist/index363.js +6 -10
- package/dist/index364.cjs +1 -1
- package/dist/index364.js +3 -6
- package/dist/index365.cjs +1 -1
- package/dist/index365.js +6 -3
- package/dist/index366.cjs +1 -1
- package/dist/index366.js +4 -4
- package/dist/index367.cjs +1 -1
- package/dist/index367.js +6 -6
- package/dist/index368.cjs +1 -1
- package/dist/index368.js +4 -7
- package/dist/index369.cjs +1 -1
- package/dist/index369.js +4 -4
- package/dist/index370.cjs +1 -1
- package/dist/index370.js +4 -4
- package/dist/index371.cjs +1 -1
- package/dist/index371.js +4 -4
- package/dist/index372.cjs +1 -1
- package/dist/index372.js +14 -3
- package/dist/index373.cjs +1 -1
- package/dist/index373.js +3 -15
- package/dist/index374.cjs +1 -1
- package/dist/index374.js +9 -8
- package/dist/index375.cjs +1 -1
- package/dist/index375.js +4 -4
- package/dist/index376.cjs +1 -1
- package/dist/index376.js +4 -8
- package/dist/index377.cjs +1 -1
- package/dist/index377.js +4 -4
- package/dist/index378.cjs +1 -1
- package/dist/index378.js +10 -4
- package/dist/index379.cjs +1 -1
- package/dist/index379.js +6 -10
- package/dist/index380.cjs +1 -1
- package/dist/index380.js +6 -6
- package/dist/index381.cjs +1 -1
- package/dist/index381.js +4 -6
- package/dist/index382.cjs +1 -1
- package/dist/index382.js +3 -4
- package/dist/index383.cjs +1 -1
- package/dist/index383.js +6 -4
- package/dist/index384.cjs +1 -1
- package/dist/index384.js +8 -4
- package/dist/index385.cjs +1 -1
- package/dist/index385.js +8 -6
- package/dist/index386.cjs +1 -1
- package/dist/index386.js +16 -8
- package/dist/index387.cjs +1 -1
- package/dist/index387.js +3 -9
- package/dist/index388.cjs +1 -1
- package/dist/index388.js +3 -16
- package/dist/index389.cjs +1 -1
- package/dist/index389.js +6 -3
- package/dist/index390.cjs +1 -1
- package/dist/index390.js +8 -3
- package/dist/index391.cjs +1 -1
- package/dist/index391.js +3 -5
- package/dist/index392.cjs +1 -1
- package/dist/index392.js +15 -7
- package/dist/index393.cjs +14 -1
- package/dist/index393.js +6857 -3
- package/dist/index394.cjs +1 -1
- package/dist/index394.js +2 -16
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +3 -3
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +2 -2
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +1 -1
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +1 -1
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +2 -2
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +2 -2
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +1 -1
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +1 -1
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +1 -1
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +1 -1
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +1 -1
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +1 -1
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +1 -1
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +1 -1
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +1 -1
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +1 -1
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +1 -1
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +1 -1
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +1 -1
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +1 -1
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +1 -1
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +10 -10
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +12 -12
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +13 -13
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +14 -14
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +14 -14
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +12 -12
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +11 -11
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +10 -10
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +15 -15
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +13 -13
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +12 -12
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +13 -13
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +13 -13
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +13 -13
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +1 -1
- package/package.json +1 -1
package/dist/index221.js
CHANGED
|
@@ -1,22 +1,113 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { jsx as C, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
function t(h) {
|
|
3
|
+
return /* @__PURE__ */ l(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "74",
|
|
8
|
+
height: "20",
|
|
9
|
+
viewBox: "0 0 74 20",
|
|
10
|
+
fill: "none",
|
|
11
|
+
...h,
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ C(
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
d: "M73.5504 15.4516C73.5504 16.0053 73.4347 16.5339 73.2006 17.0399C72.9691 17.5485 72.6294 17.9944 72.1816 18.3753C71.7361 18.7585 71.18 19.0667 70.5207 19.2972C69.8588 19.5277 69.1064 19.6429 68.2659 19.6429C67.2493 19.6429 66.288 19.4876 65.3847 19.177C64.6398 18.9214 63.9704 18.5582 63.379 18.0871C63.1677 17.9218 63.1299 17.6187 63.291 17.4057L64.5115 15.7974C64.6801 15.5769 64.9947 15.5368 65.211 15.7071C65.5507 15.9752 65.9307 16.1932 66.351 16.361C66.9297 16.5915 67.4808 16.7067 67.9992 16.7067C68.6057 16.7067 69.041 16.574 69.3002 16.3059C69.5594 16.0404 69.6877 15.7372 69.6877 15.399C69.6877 15.1334 69.5846 14.888 69.3808 14.6649C69.1744 14.442 68.8473 14.2766 68.4018 14.1715L66.8467 13.6904C66.434 13.5827 66.0239 13.4374 65.6111 13.2494C65.201 13.0641 64.826 12.8236 64.4863 12.528C64.1465 12.2349 63.8723 11.8791 63.6685 11.4607C63.4621 11.0424 63.359 10.5488 63.359 9.98015C63.359 9.42893 63.4722 8.91284 63.6937 8.43191C63.9176 7.95088 64.2397 7.52752 64.6599 7.16173C65.0801 6.79839 65.6036 6.5078 66.2302 6.29484C66.8543 6.08198 67.569 5.97419 68.3742 5.97419C69.2323 5.97419 70.0451 6.09197 70.8151 6.32245C71.419 6.50534 71.9978 6.76334 72.5464 7.09907C72.7905 7.24936 72.8559 7.57256 72.6873 7.80558L71.5775 9.34883C71.4266 9.56178 71.1372 9.61436 70.9132 9.47905C70.6439 9.31369 70.3571 9.17847 70.0501 9.07067C69.5946 8.91284 69.1241 8.83275 68.6434 8.83275C68.1603 8.83275 67.7929 8.93791 67.5438 9.15086C67.2921 9.36635 67.1688 9.63189 67.1688 9.95254C67.1688 10.1856 67.2518 10.3935 67.4229 10.5814C67.5916 10.7668 67.8734 10.9046 68.2659 10.9948L69.4462 11.2878C70.9308 11.6962 71.9853 12.2499 72.6118 12.9438C73.2359 13.6378 73.5504 14.4746 73.5504 15.4516",
|
|
17
|
+
fill: "white"
|
|
18
|
+
}
|
|
19
|
+
),
|
|
20
|
+
/* @__PURE__ */ C(
|
|
21
|
+
"path",
|
|
22
|
+
{
|
|
23
|
+
d: "M30.8345 6.7058V18.8863C30.8345 19.157 30.6131 19.3774 30.3413 19.3774H27.5758C27.3015 19.3774 27.0801 19.157 27.0801 18.8863V6.7058C27.0801 6.43518 27.3015 6.21469 27.5758 6.21469H30.3413C30.6131 6.21469 30.8345 6.43518 30.8345 6.7058Z",
|
|
24
|
+
fill: "white"
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ C(
|
|
28
|
+
"path",
|
|
29
|
+
{
|
|
30
|
+
d: "M30.8345 1.09905V3.85481C30.8345 4.12542 30.6131 4.34583 30.3413 4.34583H27.5733C27.3015 4.34583 27.0801 4.12542 27.0801 3.85481V1.09905C27.0801 0.82843 27.3015 0.608028 27.5733 0.608028H30.3413C30.6131 0.608028 30.8345 0.82843 30.8345 1.09905Z",
|
|
31
|
+
fill: "white"
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
/* @__PURE__ */ C(
|
|
35
|
+
"path",
|
|
36
|
+
{
|
|
37
|
+
d: "M46.446 19.3774H42.996C42.7569 19.3774 42.538 19.2497 42.4222 19.0417L40.243 15.1635L37.4573 19.0993C37.334 19.2746 37.1327 19.3774 36.9188 19.3774H34.6188C34.3445 19.3774 34.123 19.157 34.123 18.8863V1.09902C34.123 0.828402 34.3445 0.608 34.6188 0.608H37.3844C37.6587 0.608 37.8776 0.828402 37.8776 1.09902V12.8737L42.0322 6.51283C42.153 6.32748 42.3618 6.2147 42.5833 6.2147H45.9452C46.212 6.2147 46.3679 6.51537 46.212 6.73086L42.4374 12.0646L46.7253 18.8763C46.8637 19.0943 46.7052 19.3774 46.446 19.3774",
|
|
38
|
+
fill: "white"
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ C(
|
|
42
|
+
"path",
|
|
43
|
+
{
|
|
44
|
+
d: "M56.339 15.2387C55.74 15.8976 54.9675 16.2257 54.0188 16.2257C53.5558 16.2257 53.1255 16.1381 52.7329 15.9602C52.3404 15.7823 52.0007 15.5418 51.7138 15.2387C51.4269 14.9356 51.208 14.5773 51.057 14.1589C50.9035 13.7405 50.828 13.2896 50.828 12.8086V12.7835C50.828 12.3025 50.9035 11.8516 51.057 11.4357C51.208 11.0173 51.4269 10.6565 51.7138 10.3534C52.0007 10.0503 52.3404 9.80979 52.7329 9.63189C53.1255 9.45399 53.5558 9.36635 54.0188 9.36635C54.9675 9.36635 55.74 9.69455 56.339 10.3534C56.9203 10.9922 57.2172 11.8064 57.2373 12.796C57.2172 13.7856 56.9203 14.6023 56.339 15.2387ZM60.4181 6.21466H58.0879C57.8161 6.21466 57.5946 6.43515 57.5946 6.70576V7.91328L57.5872 7.89576C57.0864 7.27443 56.4547 6.7934 55.6948 6.45522C54.9348 6.11703 54.1547 5.94667 53.3495 5.94667C52.509 5.94667 51.7088 6.12203 50.9488 6.46775C50.1888 6.81601 49.5271 7.29195 48.9659 7.89576C48.4022 8.50201 47.9542 9.22351 47.6247 10.0603C47.2925 10.8971 47.1289 11.8039 47.1289 12.7835V12.8086C47.1289 13.7882 47.2925 14.6951 47.6247 15.5318C47.9542 16.3711 48.4022 17.09 48.9659 17.6963C49.5271 18.3001 50.1888 18.7762 50.9488 19.1243C51.7088 19.47 52.509 19.6429 53.3495 19.6429C54.1547 19.6429 54.9348 19.475 55.6948 19.1369C56.4547 18.7987 57.0864 18.3176 57.5872 17.6963L57.5946 17.6788V18.8863C57.5946 19.1569 57.8161 19.3774 58.0879 19.3774H60.4181C60.6899 19.3774 60.9113 19.1569 60.9113 18.8863V6.70576C60.9113 6.43515 60.6899 6.21466 60.4181 6.21466Z",
|
|
45
|
+
fill: "white"
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ C(
|
|
49
|
+
"path",
|
|
50
|
+
{
|
|
51
|
+
d: "M21.1468 8.42684L11.3075 19.5803C11.1415 19.7682 10.8319 19.6505 10.8319 19.4025V12.022H0.720963C0.48694 12.022 0.363637 11.7464 0.51713 11.571L10.3563 0.420003C10.5224 0.232114 10.8319 0.347442 10.8319 0.597902V7.97841H20.9429C21.1744 7.97841 21.3002 8.25148 21.1468 8.42684",
|
|
52
|
+
fill: "#DCFB6E"
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
function a(h) {
|
|
60
|
+
return /* @__PURE__ */ l(
|
|
61
|
+
"svg",
|
|
62
|
+
{
|
|
63
|
+
width: "80",
|
|
64
|
+
height: "32",
|
|
65
|
+
viewBox: "0 0 80 32",
|
|
66
|
+
fill: "none",
|
|
67
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
68
|
+
...h,
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ C("rect", { width: "32", height: "32", rx: "4", fill: "#000" }),
|
|
71
|
+
/* @__PURE__ */ C(
|
|
72
|
+
"path",
|
|
73
|
+
{
|
|
74
|
+
d: "m23.693 14.767-7.58 8.63a.21.21 0 0 1-.365-.138v-5.71H7.959a.21.21 0 0 1-.157-.35l7.58-8.627a.209.209 0 0 1 .366.138v5.71h7.788a.21.21 0 0 1 .157.347",
|
|
75
|
+
fill: "#DCFB6E"
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
/* @__PURE__ */ C(
|
|
79
|
+
"path",
|
|
80
|
+
{
|
|
81
|
+
d: "M80 20.605q0 .718-.3 1.373-.3.66-.878 1.155-.576.497-1.43.797-.855.3-1.94.299a7.6 7.6 0 0 1-2.48-.403 5.7 5.7 0 0 1-1.727-.942.425.425 0 0 1-.076-.59l1.05-1.39a.425.425 0 0 1 .603-.078q.439.348.981.565.749.3 1.419.3.784 0 1.12-.347.334-.346.333-.784a.93.93 0 0 0-.264-.635q-.267-.29-.843-.427l-1.338-.416a6.5 6.5 0 0 1-1.064-.38 4 4 0 0 1-.968-.625 2.9 2.9 0 0 1-.704-.922q-.266-.543-.266-1.28 0-.715.288-1.34.29-.623.832-1.097a4 4 0 0 1 1.351-.75q.807-.276 1.846-.277 1.107.001 2.1.301.781.236 1.491.672c.21.13.266.409.121.61l-.955 1.335a.426.426 0 0 1-.572.112 4 4 0 0 0-.743-.353 3.7 3.7 0 0 0-1.21-.206q-.625 0-.947.276a.87.87 0 0 0-.323.693q0 .3.219.543.218.24.726.358l1.016.253q1.916.53 2.724 1.432.808.9.808 2.168m-36.768-7.562v10.532c0 .234-.19.424-.425.424h-2.38a.426.426 0 0 1-.427-.424V13.043c0-.234.19-.424.427-.424h2.38c.234 0 .425.19.425.424m0-4.847v2.382c0 .234-.19.425-.425.425h-2.383a.425.425 0 0 1-.424-.425V8.196c0-.234.19-.425.425-.425h2.382c.234 0 .425.19.425.425M56.67 24H53.7a.56.56 0 0 1-.494-.291l-1.876-3.353-2.397 3.403a.56.56 0 0 1-.464.24h-1.98a.426.426 0 0 1-.426-.424V8.195c0-.233.19-.424.426-.424h2.381c.236 0 .425.19.425.425v10.18l3.576-5.5a.57.57 0 0 1 .474-.257h2.894c.23 0 .364.26.23.446l-3.25 4.612 3.691 5.889a.283.283 0 0 1-.24.433m8.515-3.579q-.773.854-1.998.854-.598 0-1.106-.23a2.8 2.8 0 0 1-.878-.623 2.6 2.6 0 0 1-.565-.934 3.4 3.4 0 0 1-.197-1.167v-.022q0-.624.197-1.165.195-.543.565-.936.371-.393.877-.624.51-.23 1.107-.23 1.225 0 1.998.854.748.829.773 2.112c-.018.856-.273 1.562-.773 2.112m3.51-7.801H66.69a.425.425 0 0 0-.425.425v1.043l-.006-.015a4.3 4.3 0 0 0-1.629-1.245 4.92 4.92 0 0 0-4.085.01 5.4 5.4 0 0 0-1.707 1.235 5.9 5.9 0 0 0-1.154 1.872 6.3 6.3 0 0 0-.427 2.354v.022q-.002 1.27.427 2.354a5.9 5.9 0 0 0 1.154 1.872 5.4 5.4 0 0 0 1.707 1.234 4.9 4.9 0 0 0 2.066.449q1.039 0 2.019-.438a4.3 4.3 0 0 0 1.629-1.245l.006-.015v1.044c0 .234.19.424.425.424h2.006c.234 0 .424-.19.424-.424V13.044a.425.425 0 0 0-.424-.425",
|
|
82
|
+
fill: "#000"
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
function e(h) {
|
|
90
|
+
return /* @__PURE__ */ C(
|
|
91
|
+
"svg",
|
|
92
|
+
{
|
|
93
|
+
width: "24",
|
|
94
|
+
height: "24",
|
|
95
|
+
viewBox: "0 0 24 24",
|
|
96
|
+
fill: "none",
|
|
97
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
98
|
+
...h,
|
|
99
|
+
children: /* @__PURE__ */ C(
|
|
100
|
+
"path",
|
|
101
|
+
{
|
|
102
|
+
d: "M22.257 10.3559L12.1518 21.8618C11.9813 22.0556 11.6633 21.9342 11.6633 21.6784V14.0646H1.27909C1.03874 14.0646 0.912105 13.7803 1.06975 13.5994L11.1749 2.09604C11.3455 1.90221 11.6633 2.02119 11.6633 2.27956V9.8933H22.0476C22.2853 9.8933 22.4145 10.175 22.257 10.3559Z",
|
|
103
|
+
fill: "#DCFB6E"
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
}
|
|
107
|
+
);
|
|
19
108
|
}
|
|
20
109
|
export {
|
|
21
|
-
|
|
110
|
+
a as LightSidebarIkasLogo,
|
|
111
|
+
e as Logo,
|
|
112
|
+
t as LogoIkas
|
|
22
113
|
};
|
package/dist/index222.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),C=require("mobx-react-lite"),j=require("@ikas/ui"),l=require("./index3.cjs"),d=require("./index8.cjs"),w=require("./index132.cjs"),q=require("./index63.cjs"),H=require("./index69.cjs");function N(m){var u,x;const{model:o,columnDefinition:e,alignment:r}=m,s=o.columnDefinitions.findIndex(n=>n.columnKey===e.columnKey),h=s===0,f=s===o.columnDefinitions.length-1,i=e.columnKey===o.sortColumnKey,g=i&&o.sortDirection==="asc",p=i&&o.sortDirection==="desc",y=n=>{n.stopPropagation(),e.isSortable&&o.onHeaderClick(e)},b=(u=e.headerTooltipProps)==null?void 0:u.isShowHeaderTextTooltip,T=((x=e.headerTooltipProps)==null?void 0:x.tooltipText)??e.headerText,c=r===d.ColumnAlignment.CENTER?"center":r===d.ColumnAlignment.RIGHT?"right":"left",a=t.jsx("span",{className:"text-sm font-medium text-gray-blue-6 truncate flex-none",style:{textAlign:c},children:e.headerText}),v=()=>{var n;return b?t.jsx(j.Tooltip,{title:T,children:t.jsxs("div",{className:"flex items-center justify-center overflow-hidden",children:[a,((n=e.headerTooltipProps)==null?void 0:n.showTooltipIcon)&&t.jsx(H.default,{className:"h-4 w-4 text-gray-blue-6 flex-shrink-0 ml-2"})]})}):a};return t.jsxs("div",{className:l.cn("w-full h-full flex items-center select-none cursor-pointer","text-gray-blue-6",o.hideHeaderBackgroundColor?"bg-white":"bg-gray-blue-1",(h||f)&&"rounded"),style:{justifyContent:r??"flex-start",textAlign:c},onClick:y,children:[v(),e.isSortable&&t.jsxs("div",{className:"w-4 flex-none flex flex-col items-center relative ml-1.5",children:[t.jsx(w.default,{className:l.cn("w-2.5 h-5 relative -bottom-[7px]",g?"text-gray-blue-9":"text-gray-blue hover:text-gray-blue-9")}),t.jsx(q.default,{className:l.cn("w-2.5 h-5 relative -top-[7px]",p?"text-gray-blue-9":"text-gray-blue hover:text-gray-blue-9")})]})]})}const S=C.observer(N);exports.HeaderCell=S;
|
package/dist/index222.js
CHANGED
|
@@ -1,4 +1,73 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { observer as w } from "mobx-react-lite";
|
|
3
|
+
import { Tooltip as N } from "@ikas/ui";
|
|
4
|
+
import { cn as i } from "./index3.js";
|
|
5
|
+
import { ColumnAlignment as u } from "./index8.js";
|
|
6
|
+
import D from "./index132.js";
|
|
7
|
+
import H from "./index63.js";
|
|
8
|
+
import I from "./index69.js";
|
|
9
|
+
function S(f) {
|
|
10
|
+
var d, x;
|
|
11
|
+
const { model: t, columnDefinition: e, alignment: n } = f, s = t.columnDefinitions.findIndex(
|
|
12
|
+
(o) => o.columnKey === e.columnKey
|
|
13
|
+
), p = s === 0, h = s === t.columnDefinitions.length - 1, c = e.columnKey === t.sortColumnKey, g = c && t.sortDirection === "asc", y = c && t.sortDirection === "desc", b = (o) => {
|
|
14
|
+
o.stopPropagation(), e.isSortable && t.onHeaderClick(e);
|
|
15
|
+
}, T = (d = e.headerTooltipProps) == null ? void 0 : d.isShowHeaderTextTooltip, C = ((x = e.headerTooltipProps) == null ? void 0 : x.tooltipText) ?? e.headerText, a = n === u.CENTER ? "center" : n === u.RIGHT ? "right" : "left", m = /* @__PURE__ */ r(
|
|
16
|
+
"span",
|
|
17
|
+
{
|
|
18
|
+
className: "text-sm font-medium text-gray-blue-6 truncate flex-none",
|
|
19
|
+
style: { textAlign: a },
|
|
20
|
+
children: e.headerText
|
|
21
|
+
}
|
|
22
|
+
), v = () => {
|
|
23
|
+
var o;
|
|
24
|
+
return T ? /* @__PURE__ */ r(N, { title: C, children: /* @__PURE__ */ l("div", { className: "flex items-center justify-center overflow-hidden", children: [
|
|
25
|
+
m,
|
|
26
|
+
((o = e.headerTooltipProps) == null ? void 0 : o.showTooltipIcon) && /* @__PURE__ */ r(I, { className: "h-4 w-4 text-gray-blue-6 flex-shrink-0 ml-2" })
|
|
27
|
+
] }) }) : m;
|
|
28
|
+
};
|
|
29
|
+
return /* @__PURE__ */ l(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
className: i(
|
|
33
|
+
"w-full h-full flex items-center select-none cursor-pointer",
|
|
34
|
+
"text-gray-blue-6",
|
|
35
|
+
// Original: white bg when hideHeaderBackgroundColor is set
|
|
36
|
+
t.hideHeaderBackgroundColor ? "bg-white" : "bg-gray-blue-1",
|
|
37
|
+
(p || h) && "rounded"
|
|
38
|
+
),
|
|
39
|
+
style: {
|
|
40
|
+
justifyContent: n ?? "flex-start",
|
|
41
|
+
textAlign: a
|
|
42
|
+
},
|
|
43
|
+
onClick: b,
|
|
44
|
+
children: [
|
|
45
|
+
v(),
|
|
46
|
+
e.isSortable && /* @__PURE__ */ l("div", { className: "w-4 flex-none flex flex-col items-center relative ml-1.5", children: [
|
|
47
|
+
/* @__PURE__ */ r(
|
|
48
|
+
D,
|
|
49
|
+
{
|
|
50
|
+
className: i(
|
|
51
|
+
"w-2.5 h-5 relative -bottom-[7px]",
|
|
52
|
+
g ? "text-gray-blue-9" : "text-gray-blue hover:text-gray-blue-9"
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ r(
|
|
57
|
+
H,
|
|
58
|
+
{
|
|
59
|
+
className: i(
|
|
60
|
+
"w-2.5 h-5 relative -top-[7px]",
|
|
61
|
+
y ? "text-gray-blue-9" : "text-gray-blue hover:text-gray-blue-9"
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
] })
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
const F = w(S);
|
|
2
71
|
export {
|
|
3
|
-
|
|
72
|
+
F as HeaderCell
|
|
4
73
|
};
|
package/dist/index223.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("mobx-react-lite"),n=require("./index8.cjs");function m(l){const{columnDefinition:r,alignment:e}=l,s=e===n.ColumnAlignment.CENTER?"center":e===n.ColumnAlignment.RIGHT?"right":"left";return t.jsx("div",{className:"w-full h-full flex items-center bg-gray-blue-1 select-none cursor-pointer",style:{justifyContent:e??"flex-start",textAlign:s},children:t.jsx("span",{className:"text-sm font-medium text-black flex-none",children:r.summaryText})})}const o=i.observer(m);exports.SummaryCell=o;
|
package/dist/index223.js
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { observer as o } from "mobx-react-lite";
|
|
3
|
+
import { ColumnAlignment as n } from "./index8.js";
|
|
4
|
+
function i(l) {
|
|
5
|
+
const { columnDefinition: r, alignment: e } = l, m = e === n.CENTER ? "center" : e === n.RIGHT ? "right" : "left";
|
|
6
|
+
return /* @__PURE__ */ t(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
className: "w-full h-full flex items-center bg-gray-blue-1 select-none cursor-pointer",
|
|
10
|
+
style: {
|
|
11
|
+
justifyContent: e ?? "flex-start",
|
|
12
|
+
textAlign: m
|
|
13
|
+
},
|
|
14
|
+
children: /* @__PURE__ */ t("span", { className: "text-sm font-medium text-black flex-none", children: r.summaryText })
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
const u = o(i);
|
|
2
19
|
export {
|
|
3
|
-
|
|
20
|
+
u as SummaryCell
|
|
4
21
|
};
|
package/dist/index224.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("mobx-react-lite"),s=require("@ikas/ui"),c=require("./index8.cjs");function m(u){const{value:n,rowData:o,columnDefinition:t,onValueChange:a}=u,l=t.alignment,r=l===c.ColumnAlignment.CENTER?"center":l===c.ColumnAlignment.RIGHT?"right":"left",i=o&&t.getSecondLineValue?t.getSecondLineValue(o):void 0;return t.inputMode?e.jsx("div",{className:"w-full h-full flex items-center",style:{justifyContent:l,textAlign:r},children:e.jsx(s.Input,{size:"sm",value:n??"",onChange:x=>a(x.target.value),style:{textAlign:"inherit"}})}):e.jsxs("div",{className:"h-full w-full overflow-hidden flex flex-col justify-center",style:{textAlign:r},children:[e.jsx(s.Tooltip,{title:n,children:e.jsx("span",{className:"text-sm text-gray-blue-9 truncate block",children:n})}),i&&e.jsx(s.Tooltip,{title:i,children:e.jsx("span",{className:"text-xs text-gray-blue-6 truncate block",children:i})})]})}const g=d.observer(m);exports.TextCell=g;
|
package/dist/index224.js
CHANGED
|
@@ -1,4 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as e, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { observer as d } from "mobx-react-lite";
|
|
3
|
+
import { Input as x, Tooltip as s } from "@ikas/ui";
|
|
4
|
+
import { ColumnAlignment as a } from "./index8.js";
|
|
5
|
+
function g(c) {
|
|
6
|
+
const { value: l, rowData: o, columnDefinition: t, onValueChange: u } = c, n = t.alignment, r = n === a.CENTER ? "center" : n === a.RIGHT ? "right" : "left", i = o && t.getSecondLineValue ? t.getSecondLineValue(o) : void 0;
|
|
7
|
+
return t.inputMode ? /* @__PURE__ */ e(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
className: "w-full h-full flex items-center",
|
|
11
|
+
style: { justifyContent: n, textAlign: r },
|
|
12
|
+
children: /* @__PURE__ */ e(
|
|
13
|
+
x,
|
|
14
|
+
{
|
|
15
|
+
size: "sm",
|
|
16
|
+
value: l ?? "",
|
|
17
|
+
onChange: (m) => u(m.target.value),
|
|
18
|
+
style: { textAlign: "inherit" }
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
) : /* @__PURE__ */ f(
|
|
23
|
+
"div",
|
|
24
|
+
{
|
|
25
|
+
className: "h-full w-full overflow-hidden flex flex-col justify-center",
|
|
26
|
+
style: { textAlign: r },
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ e(s, { title: l, children: /* @__PURE__ */ e("span", { className: "text-sm text-gray-blue-9 truncate block", children: l }) }),
|
|
29
|
+
i && /* @__PURE__ */ e(s, { title: i, children: /* @__PURE__ */ e("span", { className: "text-xs text-gray-blue-6 truncate block", children: i }) })
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
const C = d(g);
|
|
2
35
|
export {
|
|
3
|
-
|
|
36
|
+
C as TextCell
|
|
4
37
|
};
|
package/dist/index225.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),f=require("mobx-react-lite"),p=require("@ikas/ui"),d=require("./index8.cjs");function b(e){const t={};return e.thousandSeparator!==void 0&&(t.thousandsSeparatorSymbol=e.thousandSeparator),e.decimalSeparator!==void 0&&(t.decimalSymbol=e.decimalSeparator),e.decimalCount!==void 0&&(t.decimalLimit=e.decimalCount),e.symbol&&(e.symbolPosition==="right"?t.suffix=e.symbol:t.prefix=e.symbol),t}function x(e,t){if(e==null)return"";const{thousandSeparator:s=",",decimalSeparator:i=".",decimalCount:m=2,symbol:o="",symbolPosition:l="left"}=t,a=e.toFixed(m).split(".");let n=a[0];const u=a[1];s&&(n=n.replace(/\B(?=(\d{3})+(?!\d))/g,s));let r=u?`${n}${i}${u}`:n;return o&&(r=l==="right"?`${r} ${o}`:`${o} ${r}`),r}function y(e){const{value:t,rowData:s,columnDefinition:i,onValueChange:m}=e,o=i.alignment,l=s&&i.maskOptions?i.maskOptions(s):null;if(i.inputMode)return c.jsx("div",{className:"inline-flex items-center w-full",children:c.jsx(p.PriceInput,{size:"sm",value:t??null,maskOptions:l?b(l):void 0,onChange:r=>m(r??0)})});const a=t==null;let n;l&&!a?n=x(t,l):n=t!=null?String(t):"";const u=o===d.ColumnAlignment.CENTER?"center":o===d.ColumnAlignment.RIGHT?"flex-end":"flex-start";return c.jsx("div",{className:"inline-flex items-center min-w-0",style:{justifyContent:u},children:c.jsx("span",{className:"text-sm text-gray-blue-9 truncate",children:n})})}const g=f.observer(y);exports.NumberCell=g;
|
package/dist/index225.js
CHANGED
|
@@ -1,4 +1,52 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { observer as f } from "mobx-react-lite";
|
|
3
|
+
import { PriceInput as p } from "@ikas/ui";
|
|
4
|
+
import { ColumnAlignment as d } from "./index8.js";
|
|
5
|
+
function h(t) {
|
|
6
|
+
const e = {};
|
|
7
|
+
return t.thousandSeparator !== void 0 && (e.thousandsSeparatorSymbol = t.thousandSeparator), t.decimalSeparator !== void 0 && (e.decimalSymbol = t.decimalSeparator), t.decimalCount !== void 0 && (e.decimalLimit = t.decimalCount), t.symbol && (t.symbolPosition === "right" ? e.suffix = t.symbol : e.prefix = t.symbol), e;
|
|
8
|
+
}
|
|
9
|
+
function b(t, e) {
|
|
10
|
+
if (t == null) return "";
|
|
11
|
+
const {
|
|
12
|
+
thousandSeparator: s = ",",
|
|
13
|
+
decimalSeparator: n = ".",
|
|
14
|
+
decimalCount: u = 2,
|
|
15
|
+
symbol: o = "",
|
|
16
|
+
symbolPosition: l = "left"
|
|
17
|
+
} = e, a = t.toFixed(u).split(".");
|
|
18
|
+
let i = a[0];
|
|
19
|
+
const m = a[1];
|
|
20
|
+
s && (i = i.replace(/\B(?=(\d{3})+(?!\d))/g, s));
|
|
21
|
+
let r = m ? `${i}${n}${m}` : i;
|
|
22
|
+
return o && (r = l === "right" ? `${r} ${o}` : `${o} ${r}`), r;
|
|
23
|
+
}
|
|
24
|
+
function x(t) {
|
|
25
|
+
const { value: e, rowData: s, columnDefinition: n, onValueChange: u } = t, o = n.alignment, l = s && n.maskOptions ? n.maskOptions(s) : null;
|
|
26
|
+
if (n.inputMode)
|
|
27
|
+
return /* @__PURE__ */ c("div", { className: "inline-flex items-center w-full", children: /* @__PURE__ */ c(
|
|
28
|
+
p,
|
|
29
|
+
{
|
|
30
|
+
size: "sm",
|
|
31
|
+
value: e ?? null,
|
|
32
|
+
maskOptions: l ? h(l) : void 0,
|
|
33
|
+
onChange: (r) => u(r ?? 0)
|
|
34
|
+
}
|
|
35
|
+
) });
|
|
36
|
+
const a = e == null;
|
|
37
|
+
let i;
|
|
38
|
+
l && !a ? i = b(e, l) : i = e != null ? String(e) : "";
|
|
39
|
+
const m = o === d.CENTER ? "center" : o === d.RIGHT ? "flex-end" : "flex-start";
|
|
40
|
+
return /* @__PURE__ */ c(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
className: "inline-flex items-center min-w-0",
|
|
44
|
+
style: { justifyContent: m },
|
|
45
|
+
children: /* @__PURE__ */ c("span", { className: "text-sm text-gray-blue-9 truncate", children: i })
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
const v = f(x);
|
|
2
50
|
export {
|
|
3
|
-
|
|
51
|
+
v as NumberCell
|
|
4
52
|
};
|
package/dist/index226.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),y=require("mobx-react-lite"),j=require("@ikas/ui"),g=require("./index8.cjs");function P(o,r,c){const i=c??2,t=o.toFixed(i).split(".");let e=t[0];const n=t[1];e=e.replace(/\B(?=(\d{3})+(?!\d))/g,",");const l=n?`${e}.${n}`:e;return`${r} ${l}`}function C(o){const{value:r,columnDefinition:c}=o;if(!r)return null;const{sellPrice:i,discountPrice:t,currencySymbol:e,currencyDecimalDigits:n}=r,l=c.alignment,f=l===g.ColumnAlignment.CENTER?"center":l===g.ColumnAlignment.RIGHT?"right":"left",u=t!=null&&t!==i,p=c.ellipsis,a=P(i,e,n),b=(u?P(t,e,n):null)??a,m=(d,h)=>{const x=s.jsx("span",{className:h?"text-sm text-gray-blue-5 line-through":"text-sm text-black font-normal",children:d});return p?s.jsx(j.Tooltip,{title:d,children:s.jsx("span",{className:"truncate block",children:x})}):x};return s.jsxs("div",{className:"flex flex-col",style:{textAlign:f},children:[u&&m(a,!0),m(b)]})}const T=y.observer(C);exports.PriceCell=T;
|
package/dist/index226.js
CHANGED
|
@@ -1,4 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as y, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { observer as C } from "mobx-react-lite";
|
|
3
|
+
import { Tooltip as D } from "@ikas/ui";
|
|
4
|
+
import { ColumnAlignment as p } from "./index8.js";
|
|
5
|
+
function x(o, r, c) {
|
|
6
|
+
const i = c ?? 2, e = o.toFixed(i).split(".");
|
|
7
|
+
let t = e[0];
|
|
8
|
+
const n = e[1];
|
|
9
|
+
t = t.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
10
|
+
const l = n ? `${t}.${n}` : t;
|
|
11
|
+
return `${r} ${l}`;
|
|
12
|
+
}
|
|
13
|
+
function F(o) {
|
|
14
|
+
const { value: r, columnDefinition: c } = o;
|
|
15
|
+
if (!r)
|
|
16
|
+
return null;
|
|
17
|
+
const { sellPrice: i, discountPrice: e, currencySymbol: t, currencyDecimalDigits: n } = r, l = c.alignment, P = l === p.CENTER ? "center" : l === p.RIGHT ? "right" : "left", a = e != null && e !== i, g = c.ellipsis, m = x(i, t, n), h = (a ? x(e, t, n) : null) ?? m, u = (d, b) => {
|
|
18
|
+
const f = /* @__PURE__ */ s(
|
|
19
|
+
"span",
|
|
20
|
+
{
|
|
21
|
+
className: b ? "text-sm text-gray-blue-5 line-through" : "text-sm text-black font-normal",
|
|
22
|
+
children: d
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
return g ? /* @__PURE__ */ s(D, { title: d, children: /* @__PURE__ */ s("span", { className: "truncate block", children: f }) }) : f;
|
|
26
|
+
};
|
|
27
|
+
return /* @__PURE__ */ y(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
className: "flex flex-col",
|
|
31
|
+
style: { textAlign: P },
|
|
32
|
+
children: [
|
|
33
|
+
a && u(m, !0),
|
|
34
|
+
u(h)
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
const k = C(F);
|
|
2
40
|
export {
|
|
3
|
-
|
|
41
|
+
k as PriceCell
|
|
4
42
|
};
|
package/dist/index227.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),s=require("react"),y=require("mobx-react-lite"),o=require("@ikas/ui");function p(i){return i.map(e=>({label:e.label,value:String(e.value)}))}function w(i){return i.map(e=>({key:String(e.value),title:e.label,value:String(e.value),children:e.children?w(e.children):void 0}))}function C(i){const{value:e,rowData:m,columnDefinition:l,onValueChange:c}=i,[v,f]=s.useState(null),[u,g]=s.useState(!1),h=s.useRef(),n=!!l.searchOptions,d=n?v??[]:m?l.getOptions(m):[],S=s.useCallback(t=>{l.searchOptions&&(h.current&&clearTimeout(h.current),h.current=setTimeout(async()=>{if(!t){f([]);return}try{g(!0);const r=await l.searchOptions(t);f(r)}catch{}finally{g(!1)}},600))},[l]);return l.isTree?a.jsx("div",{className:"flex items-center min-w-0 w-full",children:a.jsx(o.TreeSelect,{style:{width:"100%"},treeData:w(d),treeCheckable:!0,showCheckedStrategy:o.TreeSelect.SHOW_ALL,value:Array.isArray(e)?e.map(String):e!=null?[String(e)]:void 0,onChange:t=>{const r=(Array.isArray(t)?t:[t]).map(Number);c(r)},onSearch:n?S:void 0,filterTreeNode:n?()=>!0:void 0,loading:u,maxTagCount:2,placeholder:"-"})}):l.isMultiple?a.jsx("div",{className:"flex items-center min-w-0 w-full",children:a.jsx(o.Select,{style:{width:"100%"},mode:"multiple",value:Array.isArray(e)?e.map(String):e!=null?[String(e)]:void 0,options:p(d),onChange:t=>{const r=(Array.isArray(t)?t:[t]).map(Number);c(r)},onSearch:n?S:void 0,filterOption:n?()=>!0:(t,r)=>r?String(r.label??"").toLowerCase().includes(t.toLowerCase()):!1,loading:u,allowClear:!0,showSearch:!0,placeholder:"-"})}):a.jsx("div",{className:"flex items-center min-w-0 w-full",children:a.jsx(o.Select,{style:{width:"100%"},value:e!=null?String(e):void 0,options:p(d),onChange:t=>c(Number(t)),onSearch:n?S:void 0,filterOption:n?()=>!0:(t,r)=>r?String(r.label??"").toLowerCase().includes(t.toLowerCase()):!1,loading:u,allowClear:!0,showSearch:!0,placeholder:"-"})})}const b=y.observer(C);exports.SelectCell=b;
|
package/dist/index227.js
CHANGED
|
@@ -1,4 +1,94 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as S, useRef as C, useCallback as b } from "react";
|
|
3
|
+
import { observer as O } from "mobx-react-lite";
|
|
4
|
+
import { TreeSelect as p, Select as g } from "@ikas/ui";
|
|
5
|
+
function w(i) {
|
|
6
|
+
return i.map((e) => ({
|
|
7
|
+
label: e.label,
|
|
8
|
+
value: String(e.value)
|
|
9
|
+
}));
|
|
10
|
+
}
|
|
11
|
+
function v(i) {
|
|
12
|
+
return i.map((e) => ({
|
|
13
|
+
key: String(e.value),
|
|
14
|
+
title: e.label,
|
|
15
|
+
value: String(e.value),
|
|
16
|
+
children: e.children ? v(e.children) : void 0
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
19
|
+
function A(i) {
|
|
20
|
+
const { value: e, rowData: h, columnDefinition: l, onValueChange: o } = i, [y, d] = S(null), [s, f] = S(!1), c = C(), n = !!l.searchOptions, u = n ? y ?? [] : h ? l.getOptions(h) : [], m = b(
|
|
21
|
+
(r) => {
|
|
22
|
+
l.searchOptions && (c.current && clearTimeout(c.current), c.current = setTimeout(async () => {
|
|
23
|
+
if (!r) {
|
|
24
|
+
d([]);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
try {
|
|
28
|
+
f(!0);
|
|
29
|
+
const t = await l.searchOptions(r);
|
|
30
|
+
d(t);
|
|
31
|
+
} catch {
|
|
32
|
+
} finally {
|
|
33
|
+
f(!1);
|
|
34
|
+
}
|
|
35
|
+
}, 600));
|
|
36
|
+
},
|
|
37
|
+
[l]
|
|
38
|
+
);
|
|
39
|
+
return l.isTree ? /* @__PURE__ */ a("div", { className: "flex items-center min-w-0 w-full", children: /* @__PURE__ */ a(
|
|
40
|
+
p,
|
|
41
|
+
{
|
|
42
|
+
style: { width: "100%" },
|
|
43
|
+
treeData: v(u),
|
|
44
|
+
treeCheckable: !0,
|
|
45
|
+
showCheckedStrategy: p.SHOW_ALL,
|
|
46
|
+
value: Array.isArray(e) ? e.map(String) : e != null ? [String(e)] : void 0,
|
|
47
|
+
onChange: (r) => {
|
|
48
|
+
const t = (Array.isArray(r) ? r : [r]).map(Number);
|
|
49
|
+
o(t);
|
|
50
|
+
},
|
|
51
|
+
onSearch: n ? m : void 0,
|
|
52
|
+
filterTreeNode: n ? () => !0 : void 0,
|
|
53
|
+
loading: s,
|
|
54
|
+
maxTagCount: 2,
|
|
55
|
+
placeholder: "-"
|
|
56
|
+
}
|
|
57
|
+
) }) : l.isMultiple ? /* @__PURE__ */ a("div", { className: "flex items-center min-w-0 w-full", children: /* @__PURE__ */ a(
|
|
58
|
+
g,
|
|
59
|
+
{
|
|
60
|
+
style: { width: "100%" },
|
|
61
|
+
mode: "multiple",
|
|
62
|
+
value: Array.isArray(e) ? e.map(String) : e != null ? [String(e)] : void 0,
|
|
63
|
+
options: w(u),
|
|
64
|
+
onChange: (r) => {
|
|
65
|
+
const t = (Array.isArray(r) ? r : [r]).map(Number);
|
|
66
|
+
o(t);
|
|
67
|
+
},
|
|
68
|
+
onSearch: n ? m : void 0,
|
|
69
|
+
filterOption: n ? () => !0 : (r, t) => t ? String(t.label ?? "").toLowerCase().includes(r.toLowerCase()) : !1,
|
|
70
|
+
loading: s,
|
|
71
|
+
allowClear: !0,
|
|
72
|
+
showSearch: !0,
|
|
73
|
+
placeholder: "-"
|
|
74
|
+
}
|
|
75
|
+
) }) : /* @__PURE__ */ a("div", { className: "flex items-center min-w-0 w-full", children: /* @__PURE__ */ a(
|
|
76
|
+
g,
|
|
77
|
+
{
|
|
78
|
+
style: { width: "100%" },
|
|
79
|
+
value: e != null ? String(e) : void 0,
|
|
80
|
+
options: w(u),
|
|
81
|
+
onChange: (r) => o(Number(r)),
|
|
82
|
+
onSearch: n ? m : void 0,
|
|
83
|
+
filterOption: n ? () => !0 : (r, t) => t ? String(t.label ?? "").toLowerCase().includes(r.toLowerCase()) : !1,
|
|
84
|
+
loading: s,
|
|
85
|
+
allowClear: !0,
|
|
86
|
+
showSearch: !0,
|
|
87
|
+
placeholder: "-"
|
|
88
|
+
}
|
|
89
|
+
) });
|
|
90
|
+
}
|
|
91
|
+
const R = O(A);
|
|
2
92
|
export {
|
|
3
|
-
|
|
93
|
+
R as SelectCell
|
|
4
94
|
};
|
package/dist/index228.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),h=require("react"),j=require("mobx-react-lite"),C=require("./index37.cjs"),v=require("./index55.cjs"),U=require("./index80.cjs");function V(m){var i;const{value:o,rowData:a,columnDefinition:e,onValueChange:u}=m,[x,c]=h.useState(!1),p=a&&e.getDrawerTitle?e.getDrawerTitle(a):void 0,w=a&&e.getGalleryImages?e.getGalleryImages(a):void 0,I=a&&e.disableUpload?e.disableUpload(a):void 0,d=a&&e.productImages?e.productImages(a):void 0,b=d==null?void 0:d.map(r=>({imageId:r.id??null,fileName:r.name??null})),f=r=>{var l;r.stopPropagation(),c(!0),a&&((l=e.onDrawerToggle)==null||l.call(e,a,!0))},S=()=>{var r;c(!1),a&&((r=e.onDrawerToggle)==null||r.call(e,a,!1))},y=e.onImageNameSave?r=>{var n;const l=o==null?void 0:o.find(N=>N.id===r.imageId);a&&l&&((n=e.onImageNameSave)==null||n.call(e,a,l,r.name??""))}:void 0,s=o!=null&&o.length?o.find(r=>!(r!=null&&r.isVideo)):void 0,g=(s==null?void 0:s.thumbnailSrc)||(s==null?void 0:s.url)||(s==null?void 0:s.src);return t.jsxs("div",{className:"flex items-center",children:[t.jsx("button",{type:"button",className:"flex-shrink-0 w-9 h-9 flex items-center justify-center rounded border border-solid border-gray-blue-2 bg-gray-blue-0 cursor-pointer overflow-hidden outline-none",onClick:f,children:g?t.jsx("img",{src:g,alt:(s==null?void 0:s.name)??"",className:"w-full h-full object-cover"}):o!=null&&o.length&&e.allowVideoUpload?t.jsx(v.default,{className:"h-[18px] w-[18px] text-gray-blue-7"}):t.jsx(U.default,{className:"h-[18px] w-[18px] text-gray-blue-7"})}),a&&((i=e.rightContent)==null?void 0:i.call(e,a)),t.jsx(C.DrawerImageSelect,{allowVideoUpload:e.allowVideoUpload,title:p,visible:x,images:o,galleryImages:w,disableUpload:I,onChange:r=>u(r),onClose:S,onImageNameSave:y,imageNameMaxLength:e.imageNameMaxLength,productImages:b})]})}const q=j.observer(V);exports.ImageSelectCell=q;
|
package/dist/index228.js
CHANGED
|
@@ -1,4 +1,62 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as C, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as u } from "react";
|
|
3
|
+
import { observer as V } from "mobx-react-lite";
|
|
4
|
+
import { DrawerImageSelect as U } from "./index37.js";
|
|
5
|
+
import v from "./index55.js";
|
|
6
|
+
import T from "./index80.js";
|
|
7
|
+
function j(n) {
|
|
8
|
+
var m;
|
|
9
|
+
const { value: s, rowData: r, columnDefinition: e, onValueChange: p } = n, [w, g] = u(!1), I = r && e.getDrawerTitle ? e.getDrawerTitle(r) : void 0, f = r && e.getGalleryImages ? e.getGalleryImages(r) : void 0, b = r && e.disableUpload ? e.disableUpload(r) : void 0, d = r && e.productImages ? e.productImages(r) : void 0, x = d == null ? void 0 : d.map((a) => ({
|
|
10
|
+
imageId: a.id ?? null,
|
|
11
|
+
fileName: a.name ?? null
|
|
12
|
+
})), N = (a) => {
|
|
13
|
+
var l;
|
|
14
|
+
a.stopPropagation(), g(!0), r && ((l = e.onDrawerToggle) == null || l.call(e, r, !0));
|
|
15
|
+
}, h = () => {
|
|
16
|
+
var a;
|
|
17
|
+
g(!1), r && ((a = e.onDrawerToggle) == null || a.call(e, r, !1));
|
|
18
|
+
}, S = e.onImageNameSave ? (a) => {
|
|
19
|
+
var c;
|
|
20
|
+
const l = s == null ? void 0 : s.find((y) => y.id === a.imageId);
|
|
21
|
+
r && l && ((c = e.onImageNameSave) == null || c.call(e, r, l, a.name ?? ""));
|
|
22
|
+
} : void 0, o = s != null && s.length ? s.find((a) => !(a != null && a.isVideo)) : void 0, i = (o == null ? void 0 : o.thumbnailSrc) || (o == null ? void 0 : o.url) || (o == null ? void 0 : o.src);
|
|
23
|
+
return /* @__PURE__ */ C("div", { className: "flex items-center", children: [
|
|
24
|
+
/* @__PURE__ */ t(
|
|
25
|
+
"button",
|
|
26
|
+
{
|
|
27
|
+
type: "button",
|
|
28
|
+
className: "flex-shrink-0 w-9 h-9 flex items-center justify-center rounded border border-solid border-gray-blue-2 bg-gray-blue-0 cursor-pointer overflow-hidden outline-none",
|
|
29
|
+
onClick: N,
|
|
30
|
+
children: i ? /* @__PURE__ */ t(
|
|
31
|
+
"img",
|
|
32
|
+
{
|
|
33
|
+
src: i,
|
|
34
|
+
alt: (o == null ? void 0 : o.name) ?? "",
|
|
35
|
+
className: "w-full h-full object-cover"
|
|
36
|
+
}
|
|
37
|
+
) : s != null && s.length && e.allowVideoUpload ? /* @__PURE__ */ t(v, { className: "h-[18px] w-[18px] text-gray-blue-7" }) : /* @__PURE__ */ t(T, { className: "h-[18px] w-[18px] text-gray-blue-7" })
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
r && ((m = e.rightContent) == null ? void 0 : m.call(e, r)),
|
|
41
|
+
/* @__PURE__ */ t(
|
|
42
|
+
U,
|
|
43
|
+
{
|
|
44
|
+
allowVideoUpload: e.allowVideoUpload,
|
|
45
|
+
title: I,
|
|
46
|
+
visible: w,
|
|
47
|
+
images: s,
|
|
48
|
+
galleryImages: f,
|
|
49
|
+
disableUpload: b,
|
|
50
|
+
onChange: (a) => p(a),
|
|
51
|
+
onClose: h,
|
|
52
|
+
onImageNameSave: S,
|
|
53
|
+
imageNameMaxLength: e.imageNameMaxLength,
|
|
54
|
+
productImages: x
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
] });
|
|
58
|
+
}
|
|
59
|
+
const q = V(j);
|
|
2
60
|
export {
|
|
3
|
-
|
|
61
|
+
q as ImageSelectCell
|
|
4
62
|
};
|