@tesouro/embedded-components-react 0.7.51 → 0.7.53
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/index.css +0 -25
- package/dist/lib/monite-sdk.d.ts +2 -37
- package/dist/lib/monite-sdk.js +56 -59
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index6.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +60 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +36 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +102 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +51 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +150 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +2 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +3 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +10 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +56 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +38 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +67 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +11 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +9 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +65 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +167 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +6 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +76 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +75 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +32 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +56 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +564 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +1 -569
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +22 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +27 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +23 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +68 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +23 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +6 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +39 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +48 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +58 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +1 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +27 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +43 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +78 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +4 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +2 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +52 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +81 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +119 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +4 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +10 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +75 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +122 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +11 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +16 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +62 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +122 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +21 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +6 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +35 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +54 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +72 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +25 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +1 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +58 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +19 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +181 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +27 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +61 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +34 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +9 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index20.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +42 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +11 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +17 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +8 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +9 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index21.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +34 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +111 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +66 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +196 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +9 -198
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +17 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +5 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +358 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +20 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +85 -351
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +2 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +179 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +95 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +15 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +36 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +53 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +43 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +36 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +0 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +56 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +93 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +45 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +49 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +82 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +7 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +304 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +1 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +30 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +1 -307
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +33 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +6 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +101 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +185 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +132 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +196 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +11 -187
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +15 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +29 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +239 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +1 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +36 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +137 -237
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +164 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +25 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +15 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +8 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +13 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +21 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +11 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +23 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +81 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +100 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +42 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +28 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +101 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +33 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +173 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +11 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +4 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +67 -170
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +21 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +212 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +89 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +17 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +147 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +88 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +44 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +4 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +20 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +74 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +19 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +5 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +11 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +129 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +5 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +219 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +31 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +14 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +33 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +72 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +180 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +14 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +202 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +87 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +64 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +52 -201
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +84 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +34 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +74 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +80 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +12 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +23 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +17 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +5 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +22 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +43 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +29 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +36 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +29 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +93 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +8 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +13 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +3 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +19 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +7 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +69 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +51 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +1 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +46 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +15 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +45 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +63 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +33 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +36 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +12 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +24 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +53 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +23 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +73 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +79 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +1 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +8 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +16 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +2 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +56 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +0 -97
|
@@ -1,8 +1,114 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fromMinorUnits as e, toMinorUnits as t } from "./index13.js";
|
|
2
|
+
import "./index18.js";
|
|
3
|
+
import { resolveNullableUpdate as n } from "./index218.js";
|
|
4
|
+
import { format as r } from "date-fns";
|
|
2
5
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
var i = (e, t, n) => e?.find((e) => e.id === n)?.default_billing_address_id ?? (t?.id === n ? t?.default_billing_address_id : void 0);
|
|
7
|
+
function a(e) {
|
|
8
|
+
let [t, n, r] = e.split("-");
|
|
9
|
+
return new Date(+t, n - 1, +r);
|
|
10
|
+
}
|
|
11
|
+
var o = (e) => r(e, "yyyy-MM-dd"), s = (e, t, n, r) => {
|
|
12
|
+
if (!t) return {
|
|
13
|
+
invoiceNumber: "",
|
|
14
|
+
counterpart: r ?? "",
|
|
15
|
+
counterpartBankAccount: "",
|
|
16
|
+
invoiceDate: void 0,
|
|
17
|
+
dueDate: void 0,
|
|
18
|
+
currency: "USD",
|
|
19
|
+
discount: null,
|
|
20
|
+
lineItems: [{
|
|
21
|
+
id: "",
|
|
22
|
+
name: "",
|
|
23
|
+
quantity: 1,
|
|
24
|
+
price: 0,
|
|
25
|
+
tax: 0
|
|
26
|
+
}]
|
|
27
|
+
};
|
|
28
|
+
let { document_id: i, counterpart_id: o, counterpart_bank_account_id: s, issued_at: c, due_date: l, currency: u, discount: d } = t;
|
|
29
|
+
return {
|
|
30
|
+
invoiceNumber: i ?? "",
|
|
31
|
+
counterpart: o ?? "",
|
|
32
|
+
counterpartBankAccount: s ?? "",
|
|
33
|
+
invoiceDate: c ? a(c) : void 0,
|
|
34
|
+
dueDate: l ? a(l) : void 0,
|
|
35
|
+
currency: u ?? "USD",
|
|
36
|
+
discount: d && u ? e(d, u) : null,
|
|
37
|
+
lineItems: (n || []).map((t) => ({
|
|
38
|
+
id: t.id ?? "",
|
|
39
|
+
name: t.name ?? "",
|
|
40
|
+
quantity: t.quantity ?? 1,
|
|
41
|
+
price: t.unit_price && u ? e(t.unit_price, u) ?? 0 : 0,
|
|
42
|
+
tax: t.tax ? h(t.tax) : 0,
|
|
43
|
+
ledger_account_id: t.ledger_account_id
|
|
44
|
+
}))
|
|
45
|
+
};
|
|
46
|
+
}, c = ({ discount: e, invoiceNumber: t, counterpart: n, counterpartBankAccount: r, invoiceDate: i, dueDate: a, currency: s, counterpartAddressId: c }, l, u) => ({
|
|
47
|
+
document_id: t,
|
|
48
|
+
discount: e && s ? l(e, s) ?? 0 : 0,
|
|
49
|
+
counterpart_id: n || void 0,
|
|
50
|
+
counterpart_bank_account_id: r || void 0,
|
|
51
|
+
issued_at: i instanceof Date ? o(i) : void 0,
|
|
52
|
+
due_date: a instanceof Date ? o(a) : void 0,
|
|
53
|
+
currency: s,
|
|
54
|
+
counterpart_address_id: c,
|
|
55
|
+
subtotal: s ? l(u.subtotal, s) ?? 0 : void 0,
|
|
56
|
+
tax_amount: s ? l(u.taxes, s) ?? 0 : void 0,
|
|
57
|
+
total_amount: s ? l(u.total + (e ?? 0), s) ?? 0 : void 0
|
|
58
|
+
}), l = (e, t) => {
|
|
59
|
+
let n = e * t;
|
|
60
|
+
return parseFloat(n.toFixed(2));
|
|
61
|
+
}, u = (e, t) => {
|
|
62
|
+
let n = e + t * e / 100;
|
|
63
|
+
return parseFloat(n.toFixed(2));
|
|
64
|
+
}, d = (e) => {
|
|
65
|
+
let { price: t, quantity: n, tax: r } = e;
|
|
66
|
+
return !t || !n ? 0 : u(l(t, n), r || 0);
|
|
67
|
+
}, f = (e, t) => {
|
|
68
|
+
let { subtotal: n, taxes: r, total: i } = e.reduce((e, t) => {
|
|
69
|
+
let n = l(t.price, t.quantity), r = u(n, t.tax || 0);
|
|
70
|
+
return {
|
|
71
|
+
subtotal: e.subtotal + n,
|
|
72
|
+
taxes: e.taxes + (r - n),
|
|
73
|
+
total: e.total + r
|
|
74
|
+
};
|
|
75
|
+
}, {
|
|
76
|
+
subtotal: 0,
|
|
77
|
+
taxes: 0,
|
|
78
|
+
total: 0
|
|
79
|
+
});
|
|
80
|
+
return {
|
|
81
|
+
subtotal: n,
|
|
82
|
+
taxes: r,
|
|
83
|
+
total: i - (t ?? 0)
|
|
84
|
+
};
|
|
85
|
+
}, p = (e, t, r, i) => {
|
|
86
|
+
let { name: a, quantity: o, price: s, tax: c, ledger_account_id: d } = t, f = i?.allowLedgerUpdate ? n(d, i?.previous) : d, p = l(s, o), h = u(p, c || 0), g = h - p, _ = {
|
|
87
|
+
name: a,
|
|
88
|
+
quantity: o,
|
|
89
|
+
tax: m(c),
|
|
90
|
+
subtotal: r(p, e) ?? 0,
|
|
91
|
+
tax_amount: r(g, e) ?? 0,
|
|
92
|
+
total: r(h, e) ?? 0,
|
|
93
|
+
unit_price: r(s, e) ?? 0
|
|
94
|
+
};
|
|
95
|
+
return f !== void 0 && (_.ledger_account_id = f), _;
|
|
6
96
|
};
|
|
97
|
+
function m(e) {
|
|
98
|
+
return t(e);
|
|
99
|
+
}
|
|
100
|
+
function h(t) {
|
|
101
|
+
return e(t);
|
|
102
|
+
}
|
|
103
|
+
var g = (e, t, n) => {
|
|
104
|
+
let r = {
|
|
105
|
+
invoiceNumber: !0,
|
|
106
|
+
dueDate: !0,
|
|
107
|
+
currency: !0
|
|
108
|
+
};
|
|
109
|
+
if (n) return !1;
|
|
110
|
+
let i = r[e] ?? !1, a = t?.[e] ?? !1;
|
|
111
|
+
return i || a;
|
|
112
|
+
}, _ = (e, t) => e.find((e) => e.currency === t && e.is_default_for_currency)?.id || "";
|
|
7
113
|
//#endregion
|
|
8
|
-
export {
|
|
114
|
+
export { d as calculateTotalPriceForLineItem, f as calculateTotalsForPayable, o as dateToString, _ as findDefaultBankAccount, g as isFieldRequired, s as prepareDefaultValues, p as prepareLineItemSubmit, c as prepareSubmit, i as resolveCreatePayableCounterpartAddressId };
|
|
@@ -1,20 +1,66 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./index202.js";
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { useRootElements as e } from "./index76.js";
|
|
2
|
+
import "./index77.js";
|
|
3
|
+
import { useLedgerAccounts as t } from "./index202.js";
|
|
4
|
+
import { useMemo as n } from "react";
|
|
5
|
+
import { Fragment as r, jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { Autocomplete as o, CircularProgress as s, FormControl as c, TextField as l, Typography as u } from "@mui/material";
|
|
7
|
+
import { useLingui as d } from "@lingui/react";
|
|
8
|
+
import { createElement as f } from "@emotion/react";
|
|
9
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js
|
|
10
|
+
var p = ({ value: p, error: m, helperText: h, disabled: g, placeholder: _, onChange: v }) => {
|
|
11
|
+
let { i18n: y } = d(), { data: b, isLoading: x, error: S } = t(), { root: C } = e(), w = n(() => b?.data ?? [], [b?.data]), T = n(() => p ? w.find((e) => e.id === p) ?? null : null, [p, w]);
|
|
12
|
+
return S ? /* @__PURE__ */ i(c, {
|
|
13
|
+
error: !0,
|
|
14
|
+
fullWidth: !0,
|
|
15
|
+
children: /* @__PURE__ */ i(l, {
|
|
16
|
+
label: y._("GL Code"),
|
|
17
|
+
variant: "standard",
|
|
18
|
+
disabled: !0,
|
|
19
|
+
error: !0,
|
|
20
|
+
helperText: y._("Failed to load GL codes")
|
|
21
|
+
})
|
|
22
|
+
}) : /* @__PURE__ */ i(o, {
|
|
23
|
+
options: w,
|
|
24
|
+
value: T,
|
|
25
|
+
onChange: (e, t) => v(t?.id || null),
|
|
26
|
+
getOptionLabel: (e) => e.nominal_code && e.type ? `${e.nominal_code} — ${e.type}` : e.nominal_code || e.type || e.name || "",
|
|
27
|
+
isOptionEqualToValue: (e, t) => e.id === t.id,
|
|
28
|
+
loading: x,
|
|
29
|
+
disabled: g || x,
|
|
30
|
+
slotProps: { popper: { container: C } },
|
|
31
|
+
renderInput: (e) => /* @__PURE__ */ i(l, {
|
|
32
|
+
...e,
|
|
33
|
+
label: y._("GL Code"),
|
|
34
|
+
variant: "standard",
|
|
35
|
+
fullWidth: !0,
|
|
36
|
+
error: m,
|
|
37
|
+
helperText: h,
|
|
38
|
+
placeholder: _,
|
|
39
|
+
InputProps: {
|
|
40
|
+
...e.InputProps,
|
|
41
|
+
endAdornment: /* @__PURE__ */ a(r, { children: [x ? /* @__PURE__ */ i(s, {
|
|
42
|
+
color: "inherit",
|
|
43
|
+
size: 20
|
|
44
|
+
}) : null, e.InputProps.endAdornment] })
|
|
45
|
+
}
|
|
46
|
+
}),
|
|
47
|
+
renderOption: (e, t) => /* @__PURE__ */ f("li", {
|
|
48
|
+
...e,
|
|
49
|
+
key: t.id
|
|
50
|
+
}, /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i(u, {
|
|
51
|
+
variant: "body2",
|
|
52
|
+
color: "text.secondary",
|
|
53
|
+
component: "div",
|
|
54
|
+
fontWeight: 600,
|
|
55
|
+
children: t.nominal_code && t.type ? `${t.nominal_code} — ${t.type}` : t.nominal_code || t.type
|
|
56
|
+
}), t.subtype && /* @__PURE__ */ i(u, {
|
|
57
|
+
variant: "body2",
|
|
58
|
+
component: "div",
|
|
59
|
+
fontWeight: 400,
|
|
60
|
+
children: t.subtype
|
|
61
|
+
})] })),
|
|
62
|
+
noOptionsText: y._("No GL codes found")
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
//#endregion
|
|
66
|
+
export { p as GLCodeSelector };
|
|
@@ -1,114 +1,200 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { useCurrencies as e } from "./index74.js";
|
|
2
|
+
import { calculateTotalPriceForLineItem as t } from "./index219.js";
|
|
3
|
+
import { GLCodeSelector as n } from "./index220.js";
|
|
4
|
+
import "./index221.js";
|
|
5
|
+
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { Button as a, Grid as o, IconButton as s, TextField as c, Typography as l } from "@mui/material";
|
|
7
|
+
import { useLingui as u } from "@lingui/react";
|
|
8
|
+
import { Controller as d, useFieldArray as f, useFormContext as p } from "react-hook-form";
|
|
9
|
+
import m from "@mui/icons-material/Add";
|
|
10
|
+
import h from "@mui/icons-material/DeleteForever";
|
|
5
11
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
12
|
+
var g = ({ enableGLCodes: g }) => {
|
|
13
|
+
let { i18n: _ } = u(), { getSymbolFromCurrency: v, formatCurrencyToDisplay: y, formatToMinorUnits: b } = e(), { control: x, watch: S } = p(), { fields: C, append: w, remove: T } = f({
|
|
14
|
+
control: x,
|
|
15
|
+
name: "lineItems"
|
|
16
|
+
}), E = S("currency"), D = S("lineItems");
|
|
17
|
+
return /* @__PURE__ */ i(o, {
|
|
18
|
+
container: !0,
|
|
19
|
+
direction: "column",
|
|
20
|
+
spacing: 4,
|
|
21
|
+
children: [C.map((e, a) => /* @__PURE__ */ i(o, {
|
|
22
|
+
item: !0,
|
|
23
|
+
container: !0,
|
|
24
|
+
gap: 2,
|
|
25
|
+
className: "Monite-PayableDetailsForm-Item",
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ i(o, {
|
|
28
|
+
item: !0,
|
|
29
|
+
xs: 12,
|
|
30
|
+
gap: 2,
|
|
31
|
+
container: !0,
|
|
32
|
+
flexWrap: "nowrap",
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ r(o, {
|
|
35
|
+
item: !0,
|
|
36
|
+
xs: 8,
|
|
37
|
+
children: /* @__PURE__ */ r(d, {
|
|
38
|
+
name: `lineItems.${a}.name`,
|
|
39
|
+
control: x,
|
|
40
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ r(c, {
|
|
41
|
+
...e,
|
|
42
|
+
id: e.name,
|
|
43
|
+
label: _._("Name"),
|
|
44
|
+
variant: "standard",
|
|
45
|
+
error: !!t,
|
|
46
|
+
helperText: t?.message,
|
|
47
|
+
fullWidth: !0
|
|
48
|
+
})
|
|
49
|
+
})
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ r(o, {
|
|
52
|
+
item: !0,
|
|
53
|
+
xs: 3,
|
|
54
|
+
children: /* @__PURE__ */ r(d, {
|
|
55
|
+
name: `lineItems.${a}.quantity`,
|
|
56
|
+
control: x,
|
|
57
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ r(c, {
|
|
58
|
+
...e,
|
|
59
|
+
id: e.name,
|
|
60
|
+
label: _._("Quantity"),
|
|
61
|
+
variant: "standard",
|
|
62
|
+
type: "number",
|
|
63
|
+
inputProps: { min: 1 },
|
|
64
|
+
error: !!t,
|
|
65
|
+
helperText: t?.message,
|
|
66
|
+
fullWidth: !0
|
|
67
|
+
})
|
|
68
|
+
})
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ r(o, {
|
|
71
|
+
item: !0,
|
|
72
|
+
xs: 1,
|
|
73
|
+
container: !0,
|
|
74
|
+
sx: {
|
|
75
|
+
justifyContent: "flex-end",
|
|
76
|
+
alignItems: "center"
|
|
77
|
+
},
|
|
78
|
+
children: /* @__PURE__ */ r(s, {
|
|
79
|
+
"aria-label": "delete",
|
|
80
|
+
onClick: () => T(a),
|
|
81
|
+
disabled: C.length === 1,
|
|
82
|
+
children: /* @__PURE__ */ r(h, {})
|
|
83
|
+
})
|
|
84
|
+
})
|
|
85
|
+
]
|
|
86
|
+
}),
|
|
87
|
+
g && /* @__PURE__ */ i(o, {
|
|
88
|
+
item: !0,
|
|
89
|
+
xs: 12,
|
|
90
|
+
gap: 2,
|
|
91
|
+
container: !0,
|
|
92
|
+
flexWrap: "nowrap",
|
|
93
|
+
children: [/* @__PURE__ */ r(o, {
|
|
94
|
+
item: !0,
|
|
95
|
+
xs: 11,
|
|
96
|
+
children: /* @__PURE__ */ r(d, {
|
|
97
|
+
name: `lineItems.${a}.ledger_account_id`,
|
|
98
|
+
control: x,
|
|
99
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ r(n, {
|
|
100
|
+
value: e.value ?? void 0,
|
|
101
|
+
onChange: (t) => e.onChange(t ?? void 0),
|
|
102
|
+
error: !!t,
|
|
103
|
+
helperText: t?.message
|
|
104
|
+
})
|
|
105
|
+
})
|
|
106
|
+
}), /* @__PURE__ */ r(o, {
|
|
107
|
+
item: !0,
|
|
108
|
+
xs: 1
|
|
109
|
+
})]
|
|
110
|
+
}),
|
|
111
|
+
/* @__PURE__ */ i(o, {
|
|
112
|
+
item: !0,
|
|
113
|
+
xs: 12,
|
|
114
|
+
gap: 2,
|
|
115
|
+
container: !0,
|
|
116
|
+
flexWrap: "nowrap",
|
|
117
|
+
justifyContent: "flex-end",
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ r(o, {
|
|
120
|
+
item: !0,
|
|
121
|
+
xs: 8,
|
|
122
|
+
children: /* @__PURE__ */ r(d, {
|
|
123
|
+
name: `lineItems.${a}.price`,
|
|
124
|
+
control: x,
|
|
125
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ r(c, {
|
|
126
|
+
...e,
|
|
127
|
+
id: e.name,
|
|
128
|
+
label: _._("Price"),
|
|
129
|
+
variant: "standard",
|
|
130
|
+
type: "number",
|
|
131
|
+
inputProps: { min: 0 },
|
|
132
|
+
error: !!t,
|
|
133
|
+
helperText: t?.message,
|
|
134
|
+
fullWidth: !0,
|
|
135
|
+
InputProps: { endAdornment: v(S("currency")) }
|
|
136
|
+
})
|
|
137
|
+
})
|
|
138
|
+
}),
|
|
139
|
+
/* @__PURE__ */ r(o, {
|
|
140
|
+
item: !0,
|
|
141
|
+
xs: 3,
|
|
142
|
+
children: /* @__PURE__ */ r(d, {
|
|
143
|
+
name: `lineItems.${a}.tax`,
|
|
144
|
+
control: x,
|
|
145
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ r(c, {
|
|
146
|
+
...e,
|
|
147
|
+
id: e.name,
|
|
148
|
+
label: _._("Tax"),
|
|
149
|
+
variant: "standard",
|
|
150
|
+
type: "number",
|
|
151
|
+
inputProps: {
|
|
152
|
+
min: 0,
|
|
153
|
+
max: 100
|
|
154
|
+
},
|
|
155
|
+
error: !!t,
|
|
156
|
+
helperText: t?.message,
|
|
157
|
+
fullWidth: !0,
|
|
158
|
+
InputProps: { endAdornment: "%" }
|
|
159
|
+
})
|
|
160
|
+
})
|
|
161
|
+
}),
|
|
162
|
+
/* @__PURE__ */ r(o, {
|
|
163
|
+
item: !0,
|
|
164
|
+
xs: 1
|
|
165
|
+
})
|
|
166
|
+
]
|
|
167
|
+
}),
|
|
168
|
+
D?.[a] && E && /* @__PURE__ */ r(o, {
|
|
169
|
+
item: !0,
|
|
170
|
+
xs: 12,
|
|
171
|
+
gap: 2,
|
|
172
|
+
className: "Monite-PayableDetailsForm-Item-Total",
|
|
173
|
+
children: /* @__PURE__ */ r(l, {
|
|
174
|
+
fontWeight: "bold",
|
|
175
|
+
align: "right",
|
|
176
|
+
children: y(b(t(D?.[a]), E) || 0, E)
|
|
177
|
+
})
|
|
178
|
+
})
|
|
179
|
+
]
|
|
180
|
+
}, e.id)), /* @__PURE__ */ r(o, {
|
|
181
|
+
item: !0,
|
|
182
|
+
xs: 12,
|
|
183
|
+
gap: 2,
|
|
184
|
+
children: /* @__PURE__ */ r(a, {
|
|
185
|
+
variant: "text",
|
|
186
|
+
startIcon: /* @__PURE__ */ r(m, {}),
|
|
187
|
+
onClick: () => w({
|
|
188
|
+
id: "",
|
|
189
|
+
name: "",
|
|
190
|
+
quantity: 1,
|
|
191
|
+
price: 0,
|
|
192
|
+
tax: 19
|
|
193
|
+
}),
|
|
194
|
+
children: _._("Add item")
|
|
195
|
+
})
|
|
196
|
+
})]
|
|
79
197
|
});
|
|
80
|
-
return {
|
|
81
|
-
subtotal: n,
|
|
82
|
-
taxes: r,
|
|
83
|
-
total: i - (t ?? 0)
|
|
84
|
-
};
|
|
85
|
-
}, p = (e, t, r, i) => {
|
|
86
|
-
let { name: a, quantity: o, price: s, tax: c, ledger_account_id: d } = t, f = i?.allowLedgerUpdate ? n(d, i?.previous) : d, p = l(s, o), h = u(p, c || 0), g = h - p, _ = {
|
|
87
|
-
name: a,
|
|
88
|
-
quantity: o,
|
|
89
|
-
tax: m(c),
|
|
90
|
-
subtotal: r(p, e) ?? 0,
|
|
91
|
-
tax_amount: r(g, e) ?? 0,
|
|
92
|
-
total: r(h, e) ?? 0,
|
|
93
|
-
unit_price: r(s, e) ?? 0
|
|
94
|
-
};
|
|
95
|
-
return f !== void 0 && (_.ledger_account_id = f), _;
|
|
96
198
|
};
|
|
97
|
-
function m(e) {
|
|
98
|
-
return t(e);
|
|
99
|
-
}
|
|
100
|
-
function h(t) {
|
|
101
|
-
return e(t);
|
|
102
|
-
}
|
|
103
|
-
var g = (e, t, n) => {
|
|
104
|
-
let r = {
|
|
105
|
-
invoiceNumber: !0,
|
|
106
|
-
dueDate: !0,
|
|
107
|
-
currency: !0
|
|
108
|
-
};
|
|
109
|
-
if (n) return !1;
|
|
110
|
-
let i = r[e] ?? !1, a = t?.[e] ?? !1;
|
|
111
|
-
return i || a;
|
|
112
|
-
}, _ = (e, t) => e.find((e) => e.currency === t && e.is_default_for_currency)?.id || "";
|
|
113
199
|
//#endregion
|
|
114
|
-
export {
|
|
200
|
+
export { g as PayableLineItemsForm };
|
|
@@ -1,66 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./index79.js";
|
|
3
|
-
import { useLedgerAccounts as t } from "./index204.js";
|
|
4
|
-
import { useMemo as n } from "react";
|
|
5
|
-
import { Fragment as r, jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import { Autocomplete as o, CircularProgress as s, FormControl as c, TextField as l, Typography as u } from "@mui/material";
|
|
7
|
-
import { useLingui as d } from "@lingui/react";
|
|
8
|
-
import { createElement as f } from "@emotion/react";
|
|
9
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js
|
|
10
|
-
var p = ({ value: p, error: m, helperText: h, disabled: g, placeholder: _, onChange: v }) => {
|
|
11
|
-
let { i18n: y } = d(), { data: b, isLoading: x, error: S } = t(), { root: C } = e(), w = n(() => b?.data ?? [], [b?.data]), T = n(() => p ? w.find((e) => e.id === p) ?? null : null, [p, w]);
|
|
12
|
-
return S ? /* @__PURE__ */ i(c, {
|
|
13
|
-
error: !0,
|
|
14
|
-
fullWidth: !0,
|
|
15
|
-
children: /* @__PURE__ */ i(l, {
|
|
16
|
-
label: y._("GL Code"),
|
|
17
|
-
variant: "standard",
|
|
18
|
-
disabled: !0,
|
|
19
|
-
error: !0,
|
|
20
|
-
helperText: y._("Failed to load GL codes")
|
|
21
|
-
})
|
|
22
|
-
}) : /* @__PURE__ */ i(o, {
|
|
23
|
-
options: w,
|
|
24
|
-
value: T,
|
|
25
|
-
onChange: (e, t) => v(t?.id || null),
|
|
26
|
-
getOptionLabel: (e) => e.nominal_code && e.type ? `${e.nominal_code} — ${e.type}` : e.nominal_code || e.type || e.name || "",
|
|
27
|
-
isOptionEqualToValue: (e, t) => e.id === t.id,
|
|
28
|
-
loading: x,
|
|
29
|
-
disabled: g || x,
|
|
30
|
-
slotProps: { popper: { container: C } },
|
|
31
|
-
renderInput: (e) => /* @__PURE__ */ i(l, {
|
|
32
|
-
...e,
|
|
33
|
-
label: y._("GL Code"),
|
|
34
|
-
variant: "standard",
|
|
35
|
-
fullWidth: !0,
|
|
36
|
-
error: m,
|
|
37
|
-
helperText: h,
|
|
38
|
-
placeholder: _,
|
|
39
|
-
InputProps: {
|
|
40
|
-
...e.InputProps,
|
|
41
|
-
endAdornment: /* @__PURE__ */ a(r, { children: [x ? /* @__PURE__ */ i(s, {
|
|
42
|
-
color: "inherit",
|
|
43
|
-
size: 20
|
|
44
|
-
}) : null, e.InputProps.endAdornment] })
|
|
45
|
-
}
|
|
46
|
-
}),
|
|
47
|
-
renderOption: (e, t) => /* @__PURE__ */ f("li", {
|
|
48
|
-
...e,
|
|
49
|
-
key: t.id
|
|
50
|
-
}, /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i(u, {
|
|
51
|
-
variant: "body2",
|
|
52
|
-
color: "text.secondary",
|
|
53
|
-
component: "div",
|
|
54
|
-
fontWeight: 600,
|
|
55
|
-
children: t.nominal_code && t.type ? `${t.nominal_code} — ${t.type}` : t.nominal_code || t.type
|
|
56
|
-
}), t.subtype && /* @__PURE__ */ i(u, {
|
|
57
|
-
variant: "body2",
|
|
58
|
-
component: "div",
|
|
59
|
-
fontWeight: 400,
|
|
60
|
-
children: t.subtype
|
|
61
|
-
})] })),
|
|
62
|
-
noOptionsText: y._("No GL codes found")
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
//#endregion
|
|
66
|
-
export { p as GLCodeSelector };
|
|
1
|
+
import "./index222.js";
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js
|
|
3
|
+
var t = (t) => {
|
|
4
|
+
let { api: n } = e();
|
|
5
|
+
return n.finops.getCounterpartsIdBankAccounts.useQuery({ path: { counterpart_id: t ?? "" } }, { enabled: !!t });
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as useCounterpartsBankAccountsList };
|