@tesouro/embedded-components-react 0.7.51 → 0.7.52
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/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/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,162 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import "./index247.js";
|
|
8
|
-
import { DropdownMenu as a } from "./index248.js";
|
|
9
|
-
import { FullScreenModalHeader as o } from "./index249.js";
|
|
10
|
-
import "./index250.js";
|
|
11
|
-
import { PayableDetailsCancelModal as s } from "./index254.js";
|
|
12
|
-
import "./index255.js";
|
|
13
|
-
import { useState as c } from "react";
|
|
14
|
-
import { Wallet as l } from "lucide-react";
|
|
15
|
-
import { Fragment as u, jsx as d, jsxs as f } from "@emotion/react/jsx-runtime";
|
|
16
|
-
import { Box as p, Button as m } from "@mui/material";
|
|
17
|
-
import { useLingui as h } from "@lingui/react";
|
|
1
|
+
import { getIndividualName as e, getUserDisplayName as t } from "./index15.js";
|
|
2
|
+
import "./index18.js";
|
|
3
|
+
import { UserAvatar as n } from "./index191.js";
|
|
4
|
+
import { useMemo as r } from "react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { Box as o, Typography as s } from "@mui/material";
|
|
18
7
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js
|
|
19
|
-
var
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
variant: "outlined",
|
|
34
|
-
onClick: () => {
|
|
35
|
-
v(!1), !g && A && A();
|
|
8
|
+
var c = ({ user: c, showUserEmail: l = !1, showAvatar: u = !0, avatarSize: d = 24, variant: f = "inline", typographyVariant: p = "body2", sx: m }) => {
|
|
9
|
+
let h = r(() => t(c, l), [c, l]), g = r(() => e(c.first_name || "", c.last_name || ""), [c.first_name, c.last_name]);
|
|
10
|
+
return f === "stacked" ? /* @__PURE__ */ a(o, {
|
|
11
|
+
sx: {
|
|
12
|
+
display: "flex",
|
|
13
|
+
flexDirection: "column",
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
gap: 1,
|
|
16
|
+
...m
|
|
17
|
+
},
|
|
18
|
+
children: [u && /* @__PURE__ */ i(n, {
|
|
19
|
+
sx: {
|
|
20
|
+
width: d,
|
|
21
|
+
height: d
|
|
36
22
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
variant:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
onClick: () => x(),
|
|
48
|
-
children: N._("Reject")
|
|
49
|
-
},
|
|
50
|
-
reopen: {
|
|
51
|
-
variant: "text",
|
|
52
|
-
color: "error",
|
|
53
|
-
onClick: () => E(),
|
|
54
|
-
children: N._("Reopen")
|
|
55
|
-
},
|
|
56
|
-
approve: {
|
|
57
|
-
variant: "contained",
|
|
58
|
-
onClick: () => S(),
|
|
59
|
-
children: N._("Approve")
|
|
60
|
-
},
|
|
61
|
-
cancel: {
|
|
62
|
-
variant: "text",
|
|
63
|
-
color: "error",
|
|
64
|
-
onClick: () => I(!0),
|
|
65
|
-
children: N._("Cancel bill")
|
|
66
|
-
},
|
|
67
|
-
delete: {
|
|
68
|
-
variant: "text",
|
|
69
|
-
color: "error",
|
|
70
|
-
onClick: () => {
|
|
71
|
-
D(), A?.();
|
|
23
|
+
alt: g,
|
|
24
|
+
fileId: c.userpic_file_id
|
|
25
|
+
}), /* @__PURE__ */ i(s, {
|
|
26
|
+
variant: p,
|
|
27
|
+
title: h ?? "",
|
|
28
|
+
sx: {
|
|
29
|
+
overflow: "hidden",
|
|
30
|
+
textOverflow: "ellipsis",
|
|
31
|
+
whiteSpace: "nowrap",
|
|
32
|
+
textAlign: "center"
|
|
72
33
|
},
|
|
73
|
-
children:
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
children: N._("Force Reject")
|
|
93
|
-
}
|
|
94
|
-
}, B = _.includes("cancel"), V = g?.document_id ? L ? `${N._("Bill")} #${g.document_id} ${N._("from")} ${L}` : y ? `${N._("Edit bill")} #${g.document_id}` : `${N._("Bill")} #${g.document_id}` : N._("New incoming invoice"), H = null;
|
|
95
|
-
if (!g || !n(g)) {
|
|
96
|
-
let e = _.filter((e) => e === "approve" || e === "reject"), t = _.filter((e) => e === "forceApprove" || e === "forceReject"), n = ["forceApprove", "forceReject"].filter((e) => t.includes(e)), r = n.map((e) => {
|
|
97
|
-
let { children: t, onClick: n } = z[e];
|
|
98
|
-
return {
|
|
99
|
-
key: e,
|
|
100
|
-
label: t,
|
|
101
|
-
onClick: n,
|
|
102
|
-
sx: { color: e === "forceReject" ? "error.main" : "text.primary" }
|
|
103
|
-
};
|
|
104
|
-
}), i = _.filter((e) => ![
|
|
105
|
-
"approve",
|
|
106
|
-
"reject",
|
|
107
|
-
"forceApprove",
|
|
108
|
-
"forceReject"
|
|
109
|
-
].includes(e));
|
|
110
|
-
H = /* @__PURE__ */ f(p, {
|
|
34
|
+
children: h ?? ""
|
|
35
|
+
})]
|
|
36
|
+
}) : /* @__PURE__ */ a(o, {
|
|
37
|
+
sx: {
|
|
38
|
+
display: "flex",
|
|
39
|
+
alignItems: "center",
|
|
40
|
+
gap: 1,
|
|
41
|
+
...m
|
|
42
|
+
},
|
|
43
|
+
children: [u && /* @__PURE__ */ i(n, {
|
|
44
|
+
sx: {
|
|
45
|
+
width: d,
|
|
46
|
+
height: d
|
|
47
|
+
},
|
|
48
|
+
alt: g,
|
|
49
|
+
fileId: c.userpic_file_id
|
|
50
|
+
}), /* @__PURE__ */ i(s, {
|
|
51
|
+
variant: p,
|
|
52
|
+
title: h ?? "",
|
|
111
53
|
sx: {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
54
|
+
overflow: "hidden",
|
|
55
|
+
textOverflow: "ellipsis",
|
|
56
|
+
whiteSpace: "nowrap"
|
|
115
57
|
},
|
|
116
|
-
children:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
return /* @__PURE__ */ d(m, {
|
|
120
|
-
...n,
|
|
121
|
-
children: t
|
|
122
|
-
}, e);
|
|
123
|
-
}),
|
|
124
|
-
e.length > 0 && e.map((e) => {
|
|
125
|
-
let { children: t, ...n } = z[e];
|
|
126
|
-
return /* @__PURE__ */ d(m, {
|
|
127
|
-
...n,
|
|
128
|
-
children: t
|
|
129
|
-
}, e);
|
|
130
|
-
}),
|
|
131
|
-
n.length > 0 && /* @__PURE__ */ d(a, { items: r })
|
|
132
|
-
]
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
return /* @__PURE__ */ f(u, { children: [
|
|
136
|
-
/* @__PURE__ */ d(o, {
|
|
137
|
-
className: "Monite-PayableDetails-Header",
|
|
138
|
-
title: V,
|
|
139
|
-
statusElement: /* @__PURE__ */ f("div", {
|
|
140
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
141
|
-
children: [/* @__PURE__ */ d(i, {
|
|
142
|
-
status: g?.status ?? "draft",
|
|
143
|
-
dueDate: g?.due_date
|
|
144
|
-
}), R && /* @__PURE__ */ d(i, {
|
|
145
|
-
status: g?.status ?? "draft",
|
|
146
|
-
dueDate: g?.due_date,
|
|
147
|
-
showOverdueBadge: !0
|
|
148
|
-
})]
|
|
149
|
-
}),
|
|
150
|
-
actions: H,
|
|
151
|
-
closeButtonTooltip: N._("Close payable details")
|
|
152
|
-
}),
|
|
153
|
-
j,
|
|
154
|
-
B && /* @__PURE__ */ d(s, {
|
|
155
|
-
isOpen: F,
|
|
156
|
-
handleCloseModal: () => I(!1),
|
|
157
|
-
handleConfirmation: T
|
|
158
|
-
})
|
|
159
|
-
] });
|
|
58
|
+
children: h ?? ""
|
|
59
|
+
})]
|
|
60
|
+
});
|
|
160
61
|
};
|
|
161
62
|
//#endregion
|
|
162
|
-
export {
|
|
63
|
+
export { c as UserDisplayCell };
|
|
@@ -1 +1,93 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { getSharedApprovalRuleLabel as e, getUsersFromListLabel as t } from "./index92.js";
|
|
2
|
+
import { isRoleApprovalCall as n } from "./index96.js";
|
|
3
|
+
import "./index97.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js
|
|
5
|
+
var r = {
|
|
6
|
+
REQUEST_APPROVAL_BY_USERS: "ApprovalRequests.request_approval_by_users",
|
|
7
|
+
REQUEST_APPROVAL_BY_ROLES: "ApprovalRequests.request_approval_by_roles"
|
|
8
|
+
}, i = (e) => {
|
|
9
|
+
switch (e) {
|
|
10
|
+
case "approved": return "waiting_to_be_paid";
|
|
11
|
+
case "rejected": return "rejected";
|
|
12
|
+
case "canceled": return "canceled";
|
|
13
|
+
default: return "approve_in_progress";
|
|
14
|
+
}
|
|
15
|
+
}, a = (e) => e.find((e) => e.call === r.REQUEST_APPROVAL_BY_USERS), o = (e) => e.find((e) => n(e.call)), s = (e, t, n = !1) => e.filter((e) => e.user_ids?.length ? n ? e.user_ids.some((e) => t.includes(e)) : t.every((t) => e.user_ids.includes(t)) : !1), c = (e, t) => e.filter((e) => e.role_ids?.some((e) => t.includes(e))), l = (n, r, i) => {
|
|
16
|
+
if (n?.params) {
|
|
17
|
+
let { user_ids: r, required_approval_count: a } = n.params;
|
|
18
|
+
return r?.length === 1 ? e.singleUser(i) : t(i, a);
|
|
19
|
+
}
|
|
20
|
+
return r?.params ? e.anyUserWithRole(i) : "";
|
|
21
|
+
}, u = (e) => e ? e.call && e.params ? [e] : Array.isArray(e.all) ? e.all.flatMap(u) : e.if ? u(e.if) : [] : [], d = (e) => e.flatMap(u), f = (e) => {
|
|
22
|
+
let t = [];
|
|
23
|
+
if (e.all) t.push(...e.all);
|
|
24
|
+
else if (e.if) {
|
|
25
|
+
let n = e.if;
|
|
26
|
+
n.all ? t.push(...n.all) : t.push(n);
|
|
27
|
+
}
|
|
28
|
+
return t;
|
|
29
|
+
}, p = (e) => e.length === 0 || e.some((e) => e.status === "waiting") ? "waiting" : e.every((e) => e.status === "approved") ? "approved" : e.some((e) => e.status === "rejected") ? "rejected" : "waiting", m = (e, t, n) => ({
|
|
30
|
+
stepNumber: t,
|
|
31
|
+
type: n,
|
|
32
|
+
assignee: void 0,
|
|
33
|
+
assignees: e.assignees,
|
|
34
|
+
status: e.stepStatus,
|
|
35
|
+
payableStatus: i(e.stepStatus),
|
|
36
|
+
actualAssignees: e.actualAssignees,
|
|
37
|
+
hasActiveRequests: e.relatedRequests.length > 0,
|
|
38
|
+
requestIds: e.relatedRequests.map((e) => e.id),
|
|
39
|
+
approvalRequestId: e.approvalRequestId,
|
|
40
|
+
approvedBy: e.approvedBy,
|
|
41
|
+
objectId: e.objectId,
|
|
42
|
+
rejectedBy: e.rejectedBy,
|
|
43
|
+
requiredApprovalCount: e.requiredApprovalCount
|
|
44
|
+
}), h = (e, t, n, r) => {
|
|
45
|
+
let a = p(t);
|
|
46
|
+
return {
|
|
47
|
+
stepNumber: n,
|
|
48
|
+
type: r,
|
|
49
|
+
assignee: void 0,
|
|
50
|
+
assignees: e,
|
|
51
|
+
status: a,
|
|
52
|
+
payableStatus: i(a),
|
|
53
|
+
actualAssignees: e,
|
|
54
|
+
hasActiveRequests: t.length > 0,
|
|
55
|
+
requestIds: t.map((e) => e.id),
|
|
56
|
+
approvalRequestId: t[0]?.id,
|
|
57
|
+
approvedBy: t.flatMap((e) => e.approved_by || []),
|
|
58
|
+
objectId: t[0]?.object_id,
|
|
59
|
+
rejectedBy: t.find((e) => e.rejected_by)?.rejected_by,
|
|
60
|
+
requiredApprovalCount: t.reduce((e, t) => e + t.required_approval_count, 0)
|
|
61
|
+
};
|
|
62
|
+
}, g = (e, t) => {
|
|
63
|
+
let n = e.flatMap((e) => e.params?.user_ids || []);
|
|
64
|
+
return {
|
|
65
|
+
allChainUserIds: n,
|
|
66
|
+
allChainRequests: t.filter((e) => e.user_ids?.length && n.some((t) => e.user_ids.includes(t)))
|
|
67
|
+
};
|
|
68
|
+
}, _ = (e) => {
|
|
69
|
+
let t = [];
|
|
70
|
+
if (e.all) t.push(...e.all);
|
|
71
|
+
else if (e.if) {
|
|
72
|
+
let n = e.if;
|
|
73
|
+
n.all ? t.push(...n.all) : t.push(n);
|
|
74
|
+
}
|
|
75
|
+
return t;
|
|
76
|
+
}, v = (e, t) => {
|
|
77
|
+
let i = e.call === r.REQUEST_APPROVAL_BY_USERS ? e : void 0, a = [];
|
|
78
|
+
i?.params?.user_ids && (a = i.params.user_ids);
|
|
79
|
+
let o = n(e.call) ? c(t, e.params?.role_ids ?? []) : s(t, a, !0), l = o.flatMap((e) => e.user_ids || []), u = [...new Set(l)], d = o.length ? o[0].status : "waiting", f = o.find((e) => e.status !== "waiting"), p = o.flatMap((e) => e.approved_by || []), m = [...new Set(p)];
|
|
80
|
+
return {
|
|
81
|
+
assignees: a,
|
|
82
|
+
actualAssignees: u,
|
|
83
|
+
relatedRequests: o,
|
|
84
|
+
stepStatus: d,
|
|
85
|
+
approvalRequestId: f?.id,
|
|
86
|
+
approvedBy: m.length > 0 ? m : void 0,
|
|
87
|
+
objectId: f?.object_id || e.params?.object_id,
|
|
88
|
+
rejectedBy: f?.rejected_by,
|
|
89
|
+
requiredApprovalCount: e.params?.required_approval_count || f?.required_approval_count || 1
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
//#endregion
|
|
93
|
+
export { r as APPROVAL_CALL_TYPES, p as calculateIntegralStatus, m as createBaseApprovalStep, h as createChainApprovalStep, u as extractApprovalCalls, _ as extractItemsFromScriptStep, f as extractStructureItemsFromScriptStep, c as filterRequestsByRoles, s as filterRequestsByUsers, o as findRoleApprovalCall, a as findUserApprovalCall, l as getApprovalRuleLabel, i as mapApprovalStatusToPayableStatus, d as processApprovalStructure, g as processChainApprovalCalls, v as resolveStepForCall };
|
|
@@ -1,12 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useCounterpartsBankAccountsList as t } from "./index227.js";
|
|
1
|
+
import { createBaseApprovalStep as e, createChainApprovalStep as t, extractApprovalCalls as n, extractItemsFromScriptStep as r, findRoleApprovalCall as i, findUserApprovalCall as a, getApprovalRuleLabel as o, processChainApprovalCalls as s, resolveStepForCall as c } from "./index257.js";
|
|
3
2
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
3
|
+
var l = class {
|
|
4
|
+
policyScript;
|
|
5
|
+
requests;
|
|
6
|
+
i18n;
|
|
7
|
+
constructor(e, t, n) {
|
|
8
|
+
this.policyScript = e, this.requests = t, this.i18n = n;
|
|
9
|
+
}
|
|
10
|
+
processApprovalItem(r, l) {
|
|
11
|
+
let u = n(r), d = a(u), f = i(u), p = o(d, f, this.i18n);
|
|
12
|
+
if (u.length > 1 && d) {
|
|
13
|
+
let { allChainUserIds: e, allChainRequests: n } = s(u, this.requests), r = this.i18n._("All users from the list");
|
|
14
|
+
return t(e, n, l, r);
|
|
15
|
+
}
|
|
16
|
+
{
|
|
17
|
+
let t = u[0];
|
|
18
|
+
if (t) {
|
|
19
|
+
let n = c(t, this.requests);
|
|
20
|
+
return e(n, l, p);
|
|
21
|
+
}
|
|
22
|
+
return e({
|
|
23
|
+
assignees: [],
|
|
24
|
+
actualAssignees: [],
|
|
25
|
+
relatedRequests: [],
|
|
26
|
+
stepStatus: "waiting",
|
|
27
|
+
approvalRequestId: void 0,
|
|
28
|
+
approvedBy: void 0,
|
|
29
|
+
objectId: void 0,
|
|
30
|
+
rejectedBy: void 0,
|
|
31
|
+
requiredApprovalCount: 1
|
|
32
|
+
}, l, p);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
buildCompleteSteps() {
|
|
36
|
+
let e = [], t = 1;
|
|
37
|
+
return this.policyScript.forEach((n) => {
|
|
38
|
+
let i = r(n);
|
|
39
|
+
i.length > 0 && (i.forEach((n) => {
|
|
40
|
+
let r = this.processApprovalItem(n, t);
|
|
41
|
+
e.push(r);
|
|
42
|
+
}), t++);
|
|
43
|
+
}), e;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
11
46
|
//#endregion
|
|
12
|
-
export {
|
|
47
|
+
export { l as ApprovalStepResolver };
|
|
@@ -1,63 +1,51 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import {
|
|
6
|
-
import { Box as o, Typography as s } from "@mui/material";
|
|
1
|
+
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
+
import { extractStructureItemsFromScriptStep as t, findUserApprovalCall as n, processApprovalStructure as r } from "./index257.js";
|
|
3
|
+
import { ApprovalStepResolver as i } from "./index258.js";
|
|
4
|
+
import { useMemo as a } from "react";
|
|
5
|
+
import { useLingui as o } from "@lingui/react";
|
|
7
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js
|
|
8
|
-
|
|
9
|
-
let
|
|
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
|
-
variant: p,
|
|
52
|
-
title: h ?? "",
|
|
53
|
-
sx: {
|
|
54
|
-
overflow: "hidden",
|
|
55
|
-
textOverflow: "ellipsis",
|
|
56
|
-
whiteSpace: "nowrap"
|
|
57
|
-
},
|
|
58
|
-
children: h ?? ""
|
|
59
|
-
})]
|
|
60
|
-
});
|
|
61
|
-
};
|
|
7
|
+
function s(s, c, l = "desc") {
|
|
8
|
+
let { i18n: u } = o(), { api: d } = e(), { data: f, isLoading: p } = d.finops.getApprovalRequests.useQuery({ query: {
|
|
9
|
+
object_id: s,
|
|
10
|
+
object_type: "payable",
|
|
11
|
+
limit: 50,
|
|
12
|
+
order: l
|
|
13
|
+
} }), { data: m, isLoading: h } = d.finops.getApprovalPoliciesId.useQuery({ path: { approval_policy_id: c } }), g = a(() => f?.data || [], [f]), _ = a(() => m?.script || [], [m]), v = a(() => !_.length || !g ? [] : new i(_, g, u).buildCompleteSteps(), [
|
|
14
|
+
_,
|
|
15
|
+
g,
|
|
16
|
+
u
|
|
17
|
+
]), y = a(() => {
|
|
18
|
+
let e = /* @__PURE__ */ new Set();
|
|
19
|
+
return _.forEach((i) => {
|
|
20
|
+
let a = t(i), o = r(a), s = n(o);
|
|
21
|
+
s?.params?.user_ids && s.params.user_ids.forEach((t) => e.add(t));
|
|
22
|
+
}), v.forEach((t) => {
|
|
23
|
+
t.actualAssignees.forEach((t) => e.add(t));
|
|
24
|
+
}), Array.from(e);
|
|
25
|
+
}, [_, v]), { data: b, isLoading: x } = d.finops.getEntityUsers.useQuery({ query: {
|
|
26
|
+
id__in: y.length > 0 ? y : void 0,
|
|
27
|
+
limit: 100
|
|
28
|
+
} }, { enabled: y.length > 0 }), S = a(() => {
|
|
29
|
+
let e = /* @__PURE__ */ new Map();
|
|
30
|
+
return b?.data && b.data.forEach((t) => {
|
|
31
|
+
e.set(t.id, t);
|
|
32
|
+
}), e;
|
|
33
|
+
}, [b]);
|
|
34
|
+
return {
|
|
35
|
+
steps: a(() => v.map((e) => ({
|
|
36
|
+
...e,
|
|
37
|
+
resolvedUsers: e.actualAssignees.map((e) => S.get(e)),
|
|
38
|
+
userNames: e.actualAssignees.map((e) => {
|
|
39
|
+
let t = S.get(e);
|
|
40
|
+
return t && (`${t.first_name || ""} ${t.last_name || ""}`.trim() || t.email || t.login) || e;
|
|
41
|
+
})
|
|
42
|
+
})), [v, S]),
|
|
43
|
+
isLoading: p || h || x,
|
|
44
|
+
error: null
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function c(e, t) {
|
|
48
|
+
return s(e, t.id, "desc");
|
|
49
|
+
}
|
|
62
50
|
//#endregion
|
|
63
|
-
export { c as
|
|
51
|
+
export { c as useResolvedApprovalStepsWithPolicy };
|