@tesouro/embedded-components-react 0.2.115 → 0.2.116
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/lib/ReceivablesWidget.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index2.js +48 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +23 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +34 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +4 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +1270 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +32 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +8 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +25 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +76 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +9 -407
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +32 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +31 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +12 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +26 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +12 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +121 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +10 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +49 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +47 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +44 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +15 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +150 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +50 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +70 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +27 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +3 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +64 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +39 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +78 -148
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +5 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +98 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +57 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +27 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +10 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +17 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +18 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +12 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +19 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +21 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +27 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +114 -194
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +70 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +12 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +24 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +94 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +101 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +14 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +13 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +12 -188
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +9 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +41 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +74 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +56 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +196 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +14 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +24 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +80 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +25 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +40 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +7 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +118 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +70 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +190 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +31 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +109 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +131 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +18 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +17 -201
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +19 -423
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +25 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +183 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +19 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +49 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +87 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +35 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +8 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +39 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +47 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +202 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +427 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +22 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +99 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +26 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +6 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +7 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +213 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +9 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +11 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +60 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +398 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +68 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +2 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +407 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +37 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +55 -340
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +29 -301
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +112 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +21 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +41 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +55 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +14 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +80 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +75 -489
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +39 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +73 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +17 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +29 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +41 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +62 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +93 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +107 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +87 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +491 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +167 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +22 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +57 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +57 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +17 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +62 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +158 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +28 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +27 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +78 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +59 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +43 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +22 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +140 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +109 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +80 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +283 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +47 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +15 -141
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +83 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +223 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +33 -279
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +11 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +11 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +8 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +11 -224
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +6 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +2 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +21 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +17 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +17 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +170 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +134 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +162 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +10 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +16 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +61 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +68 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +58 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +8 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +57 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +24 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +63 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +14 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +20 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +40 -210
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +149 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +90 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +17 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +78 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +17 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +49 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +11 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +49 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +20 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +32 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +63 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +95 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +93 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +212 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +36 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +345 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +300 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +95 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +159 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +262 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +19 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +41 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +9 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +19 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +28 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +125 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +30 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +11 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +22 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +50 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +117 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +16 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +16 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +73 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +16 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +34 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +7 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +54 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +5 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +18 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +16 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +21 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +12 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +62 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +21 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +9 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +31 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +85 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +23 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +105 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +112 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +12 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +28 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +23 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +37 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +72 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +67 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +39 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +8 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +31 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +4 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +127 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +93 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +34 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +31 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +63 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +43 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +27 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +19 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +26 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +37 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +29 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +67 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +57 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +40 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +18 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +29 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +83 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +49 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +38 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +45 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +39 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +69 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +82 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +54 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +53 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +54 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +56 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +71 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +21 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +93 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +15 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +74 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +19 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +9 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +32 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +42 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +37 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +13 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +19 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +48 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +57 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +29 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +49 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +19 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +48 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +39 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +47 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +22 -22
- package/package.json +1 -1
|
@@ -1,65 +1,170 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
1
|
+
import { jsx as e, jsxs as s, Fragment as D } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Role as j } from "./index448.js";
|
|
3
|
+
import { User as g } from "./index272.js";
|
|
4
|
+
import { useApprovalPolicyScript as B } from "./index392.js";
|
|
5
|
+
import { useApprovalPolicyTrigger as R } from "./index386.js";
|
|
6
|
+
import { getCounterpartName as $ } from "./index7.js";
|
|
7
|
+
import { useMoniteContext as q } from "./index57.js";
|
|
8
|
+
import { useDialog as H } from "./index50.js";
|
|
9
|
+
import { DialogFooter as N } from "./index449.js";
|
|
10
|
+
import { DialogHeader as Q } from "./index450.js";
|
|
11
|
+
import { useLingui as U, Trans as E } from "@lingui/react";
|
|
12
|
+
import { Stack as c, Chip as w, DialogContent as F, Typography as u, Paper as A, Table as x, TableHead as C, TableRow as m, TableCell as o, TableBody as I } from "@mui/material";
|
|
13
|
+
import { toast as M } from "react-hot-toast";
|
|
14
|
+
const le = ({
|
|
15
|
+
approvalPolicy: d,
|
|
16
|
+
setIsEdit: P
|
|
17
|
+
}) => {
|
|
18
|
+
const {
|
|
19
|
+
i18n: a
|
|
20
|
+
} = U(), T = H(), {
|
|
21
|
+
api: h,
|
|
22
|
+
queryClient: _
|
|
23
|
+
} = q(), {
|
|
24
|
+
triggers: i,
|
|
25
|
+
getTriggerLabel: k,
|
|
26
|
+
getAmountLabel: S
|
|
27
|
+
} = R({
|
|
28
|
+
approvalPolicy: d
|
|
29
|
+
}), {
|
|
30
|
+
rules: t,
|
|
31
|
+
getRuleLabel: b
|
|
32
|
+
} = B({
|
|
33
|
+
approvalPolicy: d
|
|
34
|
+
}), {
|
|
35
|
+
data: L
|
|
36
|
+
} = h.finops.getTags.useQuery({
|
|
37
|
+
query: {
|
|
38
|
+
id__in: Array.isArray(i?.tags) ? i.tags : []
|
|
39
|
+
}
|
|
40
|
+
}, {
|
|
41
|
+
enabled: !!i?.tags?.length
|
|
42
|
+
}), {
|
|
43
|
+
data: W
|
|
44
|
+
} = h.finops.getCounterparts.useQuery({
|
|
45
|
+
query: {
|
|
46
|
+
id__in: Array.isArray(i?.counterpart_id) ? i.counterpart_id : []
|
|
47
|
+
}
|
|
48
|
+
}, {
|
|
49
|
+
enabled: !!i?.counterpart_id?.length
|
|
50
|
+
}), y = h.finops.deleteApprovalPoliciesId.useMutation(void 0, {
|
|
51
|
+
onSuccess: async () => {
|
|
52
|
+
await Promise.all([h.finops.getApprovalPolicies.invalidateQueries(_), h.finops.getApprovalPoliciesId.invalidateQueries({
|
|
53
|
+
parameters: {
|
|
54
|
+
path: {
|
|
55
|
+
approval_policy_id: d.id
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}, _)]), M.success(a._("Approval policy has been deleted"));
|
|
59
|
+
}
|
|
60
|
+
}), f = Object.keys(i).map((r) => {
|
|
61
|
+
const l = k(r);
|
|
62
|
+
let p;
|
|
63
|
+
switch (r) {
|
|
64
|
+
case "was_created_by_user_id":
|
|
65
|
+
Array.isArray(i[r]) && (p = /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
66
|
+
flexWrap: "wrap"
|
|
67
|
+
}, children: i[r].map((n) => /* @__PURE__ */ e(g, { userId: n }, n)) }));
|
|
68
|
+
break;
|
|
69
|
+
case "tags":
|
|
70
|
+
p = /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
71
|
+
flexWrap: "wrap"
|
|
72
|
+
}, children: L?.data.map((n) => /* @__PURE__ */ e(w, { label: n.name }, n.id)) });
|
|
73
|
+
break;
|
|
74
|
+
case "counterpart_id":
|
|
75
|
+
p = /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
76
|
+
flexWrap: "wrap"
|
|
77
|
+
}, children: W?.data.map((n) => /* @__PURE__ */ e(w, { label: $(n) }, n.id)) });
|
|
78
|
+
break;
|
|
79
|
+
case "amount":
|
|
80
|
+
p = /* @__PURE__ */ e("p", { children: S(i.amount?.value ?? [], i.amount?.currency ?? "EUR") });
|
|
81
|
+
break;
|
|
82
|
+
default:
|
|
83
|
+
p = r;
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
label: l,
|
|
88
|
+
value: p
|
|
89
|
+
};
|
|
90
|
+
}), v = t && Object.keys(t)?.map((r) => {
|
|
91
|
+
if (!t[r]) return null;
|
|
92
|
+
switch (r) {
|
|
93
|
+
case "single_user":
|
|
94
|
+
return {
|
|
95
|
+
label: b(r),
|
|
96
|
+
value: /* @__PURE__ */ e(g, { userId: t[r].userId })
|
|
97
|
+
};
|
|
98
|
+
case "users_from_list":
|
|
99
|
+
return {
|
|
100
|
+
label: b(r, t[r].count),
|
|
101
|
+
value: /* @__PURE__ */ e(c, { direction: "column", gap: 1, sx: {
|
|
102
|
+
flexWrap: "wrap"
|
|
103
|
+
}, children: t[r].userIds?.map((l) => /* @__PURE__ */ e(g, { userId: l }, l)) })
|
|
104
|
+
};
|
|
105
|
+
case "roles_from_list":
|
|
106
|
+
return {
|
|
107
|
+
label: b(r),
|
|
108
|
+
value: /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
109
|
+
flexWrap: "wrap"
|
|
110
|
+
}, children: t[r].roleIds?.map((l) => /* @__PURE__ */ e(j, { roleId: l, quoted: !0 }, l)) })
|
|
111
|
+
};
|
|
112
|
+
case "approval_chain":
|
|
113
|
+
return {
|
|
114
|
+
label: b(r),
|
|
115
|
+
value: /* @__PURE__ */ e(c, { direction: "column", spacing: 0.5, children: t[r].chainUserIds?.map((l) => l ? /* @__PURE__ */ e(g, { userId: l }, l) : null) })
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
return /* @__PURE__ */ s(D, { children: [
|
|
120
|
+
/* @__PURE__ */ e(Q, { title: d?.name, closeButtonTooltip: a._("Close approval policy details") }),
|
|
121
|
+
/* @__PURE__ */ s(F, { children: [
|
|
122
|
+
/* @__PURE__ */ e(u, { variant: "h5", mt: 2, mb: 1, children: a._("Description") }),
|
|
123
|
+
d?.description && /* @__PURE__ */ e(u, { variant: "body1", children: d.description }),
|
|
124
|
+
/* @__PURE__ */ e(u, { variant: "h5", mt: 4, mb: 1, children: a._("Conditions") }),
|
|
125
|
+
/* @__PURE__ */ e(u, { variant: "body1", mb: 1, children: /* @__PURE__ */ e(E, { id: "INKhSX", components: {
|
|
126
|
+
0: /* @__PURE__ */ e("strong", {})
|
|
127
|
+
} }) }),
|
|
128
|
+
/* @__PURE__ */ e(A, { variant: "outlined", children: /* @__PURE__ */ s(x, { children: [
|
|
129
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ s(m, { children: [
|
|
130
|
+
/* @__PURE__ */ e(o, { children: a._("Condition") }),
|
|
131
|
+
/* @__PURE__ */ e(o, { children: a._("Criteria") })
|
|
132
|
+
] }) }),
|
|
133
|
+
/* @__PURE__ */ e(I, { children: f.length > 0 ? f.map((r) => /* @__PURE__ */ s(m, { children: [
|
|
134
|
+
/* @__PURE__ */ e(o, { children: r.label }),
|
|
135
|
+
/* @__PURE__ */ e(o, { children: r.value })
|
|
136
|
+
] }, r.label)) : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(o, { colSpan: 2, children: a._("No conditions") }) }) })
|
|
137
|
+
] }) }),
|
|
138
|
+
/* @__PURE__ */ e(u, { variant: "h5", mt: 4, mb: 1, children: a._("Approval flow") }),
|
|
139
|
+
/* @__PURE__ */ e(u, { variant: "body1", mb: 1, children: a._("Who needs to approve the document and how:") }),
|
|
140
|
+
/* @__PURE__ */ e(A, { variant: "outlined", children: /* @__PURE__ */ s(x, { children: [
|
|
141
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ s(m, { children: [
|
|
142
|
+
/* @__PURE__ */ e(o, { children: a._("Approval type") }),
|
|
143
|
+
/* @__PURE__ */ e(o, { children: a._("Users or Roles") })
|
|
144
|
+
] }) }),
|
|
145
|
+
/* @__PURE__ */ e(I, { children: v && v.length > 0 ? v.map((r) => /* @__PURE__ */ s(m, { children: [
|
|
146
|
+
/* @__PURE__ */ e(o, { children: r?.label }),
|
|
147
|
+
/* @__PURE__ */ e(o, { children: r?.value })
|
|
148
|
+
] }, r?.label)) : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(o, { colSpan: 2, children: a._("No rules") }) }) })
|
|
149
|
+
] }) })
|
|
150
|
+
] }),
|
|
151
|
+
/* @__PURE__ */ e(N, { primaryButton: {
|
|
152
|
+
label: a._("Edit"),
|
|
153
|
+
onClick: () => P(!0)
|
|
154
|
+
}, deleteButton: {
|
|
155
|
+
onClick: () => {
|
|
156
|
+
y.mutate({
|
|
157
|
+
path: {
|
|
158
|
+
approval_policy_id: d.id
|
|
159
|
+
}
|
|
160
|
+
}, {
|
|
161
|
+
onSuccess: () => T?.onClose?.()
|
|
162
|
+
});
|
|
163
|
+
},
|
|
164
|
+
isLoading: y.isPending
|
|
165
|
+
} })
|
|
166
|
+
] });
|
|
60
167
|
};
|
|
61
168
|
export {
|
|
62
|
-
|
|
63
|
-
a as getCommonRecurrenceStatusLabel,
|
|
64
|
-
t as getCommonStatusLabel
|
|
169
|
+
le as ApprovalPolicyView
|
|
65
170
|
};
|
|
@@ -1,30 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} = m();
|
|
17
|
-
return /* @__PURE__ */ t("button", { onClick: n, type: "button", className: d("ttw:flex ttw:flex-col ttw:gap-2 ttw:px-4 ttw:py-2 ttw:rounded-xl ttw:border ttw:w-42 ttw:shrink-0 ttw:text-left ttw:cursor-pointer ttw:transition-colors ttw:bg-white", l ? "ttw:border-indigo-700" : "ttw:border-white ttw:hover:border-indigo-700"), children: s ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-2", children: [
|
|
18
|
-
/* @__PURE__ */ t("span", { className: "ttw:text-xs ttw:font-medium ttw:text-zinc-950", children: o ?? c._("All items") }),
|
|
19
|
-
/* @__PURE__ */ t("span", { className: "ttw:text-2xl ttw:font-medium ttw:text-zinc-950 ttw:leading-8 ttw:tabular-nums", children: w })
|
|
20
|
-
] }) : /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
21
|
-
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-2", children: [
|
|
22
|
-
r,
|
|
23
|
-
/* @__PURE__ */ t("span", { className: "ttw:text-xs ttw:font-medium ttw:leading-4.5 ttw:text-zinc-950 ttw:tabular-nums", children: i ?? 0 })
|
|
24
|
-
] }),
|
|
25
|
-
/* @__PURE__ */ t("span", { className: "ttw:text-2xl ttw:font-medium ttw:text-zinc-950 ttw:leading-8 ttw:tabular-nums ttw:overflow-hidden ttw:whitespace-nowrap ttw:text-ellipsis", children: a(w) })
|
|
26
|
-
] }) });
|
|
27
|
-
};
|
|
1
|
+
import e from "@mui/icons-material/Cancel";
|
|
2
|
+
import _ from "@mui/icons-material/DangerousOutlined";
|
|
3
|
+
import r from "@mui/icons-material/HourglassEmpty";
|
|
4
|
+
import a from "@mui/icons-material/PaidOutlined";
|
|
5
|
+
const s = ["waiting", "approved", "rejected", "canceled"], o = {
|
|
6
|
+
approved: "success",
|
|
7
|
+
canceled: "secondary",
|
|
8
|
+
rejected: "error",
|
|
9
|
+
waiting: "warning"
|
|
10
|
+
}, A = {
|
|
11
|
+
approved: a,
|
|
12
|
+
canceled: e,
|
|
13
|
+
rejected: _,
|
|
14
|
+
waiting: r
|
|
15
|
+
}, R = "status", d = "created_at", i = "created_by", S = "current_user";
|
|
28
16
|
export {
|
|
29
|
-
|
|
17
|
+
s as APPROVAL_REQUEST_STATUSES,
|
|
18
|
+
A as APPROVAL_REQUEST_STATUS_TO_MUI_ICON_MAP,
|
|
19
|
+
i as FILTER_TYPE_ADDED_BY,
|
|
20
|
+
d as FILTER_TYPE_CREATED_AT,
|
|
21
|
+
S as FILTER_TYPE_CURRENT_USER,
|
|
22
|
+
R as FILTER_TYPE_STATUS,
|
|
23
|
+
o as ROW_TO_STATUS_MUI_MAP
|
|
30
24
|
};
|
|
@@ -1,129 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
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
|
-
to: y(e)
|
|
58
|
-
};
|
|
59
|
-
case "this_week":
|
|
60
|
-
return {
|
|
61
|
-
from: _(e),
|
|
62
|
-
to: f(e)
|
|
63
|
-
};
|
|
64
|
-
case "this_month":
|
|
65
|
-
return {
|
|
66
|
-
from: l(e),
|
|
67
|
-
to: n(e)
|
|
68
|
-
};
|
|
69
|
-
case "this_quarter":
|
|
70
|
-
return {
|
|
71
|
-
from: o(e),
|
|
72
|
-
to: u(e)
|
|
73
|
-
};
|
|
74
|
-
case "this_year":
|
|
75
|
-
return {
|
|
76
|
-
from: r(e),
|
|
77
|
-
to: s(e)
|
|
78
|
-
};
|
|
79
|
-
case "yesterday": {
|
|
80
|
-
const t = a(e, 1);
|
|
81
|
-
return {
|
|
82
|
-
from: t,
|
|
83
|
-
to: y(t)
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
case "last_week": {
|
|
87
|
-
const t = _(i(e, 1));
|
|
88
|
-
return {
|
|
89
|
-
from: t,
|
|
90
|
-
to: f(t)
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
case "last_month": {
|
|
94
|
-
const t = l(d(e, 1));
|
|
95
|
-
return {
|
|
96
|
-
from: t,
|
|
97
|
-
to: n(t)
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
case "last_30_days":
|
|
101
|
-
return {
|
|
102
|
-
from: a(e, 30),
|
|
103
|
-
to: e
|
|
104
|
-
};
|
|
105
|
-
case "last_90_days":
|
|
106
|
-
return {
|
|
107
|
-
from: a(e, 90),
|
|
108
|
-
to: e
|
|
109
|
-
};
|
|
110
|
-
case "last_quarter": {
|
|
111
|
-
const t = o(b(e, 1));
|
|
112
|
-
return {
|
|
113
|
-
from: t,
|
|
114
|
-
to: u(t)
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
case "last_year": {
|
|
118
|
-
const t = r(m(e, 1));
|
|
119
|
-
return {
|
|
120
|
-
from: t,
|
|
121
|
-
to: s(t)
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
1
|
+
import { jsxs as n, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useRootElements as s } from "./index92.js";
|
|
3
|
+
import { FilterContainer as p } from "./index299.js";
|
|
4
|
+
import { useLingui as m } from "@lingui/react";
|
|
5
|
+
import { FormControl as u, InputLabel as c, Select as d, MenuItem as E, FormControlLabel as F, Switch as T } from "@mui/material";
|
|
6
|
+
import { DatePicker as _ } from "@mui/x-date-pickers";
|
|
7
|
+
import { APPROVAL_REQUEST_STATUSES as v, FILTER_TYPE_STATUS as R, FILTER_TYPE_ADDED_BY as A, FILTER_TYPE_CREATED_AT as C, FILTER_TYPE_CURRENT_USER as h } from "./index292.js";
|
|
8
|
+
import { getRowToStatusTextMap as S } from "./index398.js";
|
|
9
|
+
import { AutocompleteCreatedBy as M } from "./index399.js";
|
|
10
|
+
const O = ({
|
|
11
|
+
onChangeFilter: l,
|
|
12
|
+
sx: i
|
|
13
|
+
}) => {
|
|
14
|
+
const {
|
|
15
|
+
i18n: a
|
|
16
|
+
} = m(), {
|
|
17
|
+
root: r
|
|
18
|
+
} = s();
|
|
19
|
+
return /* @__PURE__ */ n(p, { className: "Monite-ApprovalRequestsFilters", sx: i, children: [
|
|
20
|
+
/* @__PURE__ */ n(u, { variant: "standard", fullWidth: !0, className: "Monite-ApprovalStatusFilter Monite-FilterControl", children: [
|
|
21
|
+
/* @__PURE__ */ t(c, { id: "status", children: a._("Status") }),
|
|
22
|
+
/* @__PURE__ */ t(d, { labelId: "status", label: a._("Status"), defaultValue: "all", MenuProps: {
|
|
23
|
+
container: r
|
|
24
|
+
}, onChange: (e) => {
|
|
25
|
+
l(R, e && e.target.value);
|
|
26
|
+
}, children: [{
|
|
27
|
+
label: a._("All invoices"),
|
|
28
|
+
value: "all"
|
|
29
|
+
}, ...Object.values(v).map((e) => ({
|
|
30
|
+
label: S(a)[e],
|
|
31
|
+
value: e
|
|
32
|
+
}))].map(({
|
|
33
|
+
label: e,
|
|
34
|
+
value: o
|
|
35
|
+
}) => /* @__PURE__ */ t(E, { value: o, children: e }, o)) })
|
|
36
|
+
] }),
|
|
37
|
+
/* @__PURE__ */ t(M, { onChange: (e) => l(A, e || null) }),
|
|
38
|
+
/* @__PURE__ */ t(_, { label: a._("Requested on"), className: "Monite-ApprovalRequestedOnFilter Monite-FilterControl Monite-DateFilterControl", onChange: (e, o) => {
|
|
39
|
+
o.validationError || l(C, e);
|
|
40
|
+
}, slotProps: {
|
|
41
|
+
textField: {
|
|
42
|
+
variant: "standard"
|
|
43
|
+
},
|
|
44
|
+
popper: {
|
|
45
|
+
container: r
|
|
46
|
+
},
|
|
47
|
+
dialog: {
|
|
48
|
+
container: r
|
|
49
|
+
},
|
|
50
|
+
actionBar: {
|
|
51
|
+
actions: ["clear", "today"]
|
|
52
|
+
}
|
|
53
|
+
}, views: ["year", "month", "day"] }),
|
|
54
|
+
/* @__PURE__ */ t(F, { control: /* @__PURE__ */ t(T, {}), className: "Monite-ApprovalOnlyMyFilter Monite-FilterControl", label: a._("Only my approvals"), onChange: (e, o) => l(h, o) })
|
|
55
|
+
] });
|
|
56
|
+
};
|
|
126
57
|
export {
|
|
127
|
-
|
|
128
|
-
g as resolveDatePreset
|
|
58
|
+
O as ApprovalRequestsFilter
|
|
129
59
|
};
|
|
@@ -1,22 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useLingui as
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as n } from "@lingui/react";
|
|
3
|
+
import { Chip as u } from "@mui/material";
|
|
4
|
+
import { styled as l, useThemeProps as f } from "@mui/material/styles";
|
|
5
|
+
import { ROW_TO_STATUS_MUI_MAP as A, APPROVAL_REQUEST_STATUS_TO_MUI_ICON_MAP as S } from "./index292.js";
|
|
6
|
+
import { getRowToStatusTextMap as T } from "./index398.js";
|
|
7
|
+
const c = ({
|
|
8
|
+
ref: s,
|
|
9
|
+
...e
|
|
10
|
+
}) => {
|
|
5
11
|
const {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
status: t,
|
|
13
|
+
icon: a,
|
|
14
|
+
size: i,
|
|
15
|
+
variant: p
|
|
16
|
+
} = f({
|
|
17
|
+
props: e,
|
|
18
|
+
name: "MoniteApprovalRequestStatusChip"
|
|
19
|
+
}), {
|
|
20
|
+
i18n: m
|
|
21
|
+
} = n(), o = S[t];
|
|
22
|
+
return /* @__PURE__ */ r(_, { ref: s, color: A[t], icon: a && o ? /* @__PURE__ */ r(o, { fontSize: "small" }) : void 0, label: T(m)[t], size: i, status: t, variant: p ?? "filled" });
|
|
23
|
+
}, _ = l(u, {
|
|
24
|
+
// eslint-disable-next-line lingui/no-unlocalized-strings
|
|
25
|
+
name: "MoniteApprovalRequestStatusChip",
|
|
26
|
+
slot: "root",
|
|
27
|
+
shouldForwardProp: () => !0
|
|
28
|
+
})({});
|
|
20
29
|
export {
|
|
21
|
-
|
|
30
|
+
c as ApprovalRequestStatusChip
|
|
22
31
|
};
|
|
@@ -1,32 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { jsxs as d, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as c } from "react";
|
|
3
|
+
import "./index57.js";
|
|
4
|
+
import "@tanstack/react-query";
|
|
5
|
+
import "date-fns";
|
|
6
|
+
import { useEntityUserByAuthToken as p } from "./index75.js";
|
|
7
|
+
import "react-hot-toast";
|
|
8
|
+
import { useLingui as s } from "@lingui/react";
|
|
9
|
+
import u from "@mui/icons-material/CheckCircleOutlineRounded";
|
|
10
|
+
import f from "@mui/icons-material/HighlightOffRounded";
|
|
11
|
+
import { Stack as m, IconButton as a } from "@mui/material";
|
|
12
|
+
const C = ({
|
|
13
|
+
id: o,
|
|
14
|
+
onClick: t
|
|
15
|
+
}) => {
|
|
6
16
|
const {
|
|
7
17
|
i18n: r
|
|
8
|
-
} =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
} = s(), [i, n] = c(!1);
|
|
19
|
+
return /* @__PURE__ */ e(a, { "aria-label": r._("Approve request"), color: "success", disabled: i, onClick: (l) => {
|
|
20
|
+
l.preventDefault(), n(!0), t({
|
|
21
|
+
id: o,
|
|
22
|
+
action: "approve"
|
|
23
|
+
})?.finally(() => n(!1));
|
|
24
|
+
}, children: /* @__PURE__ */ e(u, {}) });
|
|
25
|
+
}, k = ({
|
|
26
|
+
id: o,
|
|
27
|
+
onClick: t
|
|
28
|
+
}) => {
|
|
29
|
+
const {
|
|
30
|
+
i18n: r
|
|
31
|
+
} = s(), [i, n] = c(!1);
|
|
32
|
+
return /* @__PURE__ */ e(a, { "aria-label": r._("Reject request"), color: "error", disabled: i, onClick: (l) => {
|
|
33
|
+
l.preventDefault(), n(!0), t({
|
|
34
|
+
id: o,
|
|
35
|
+
action: "reject"
|
|
36
|
+
})?.finally(() => n(!1));
|
|
37
|
+
}, children: /* @__PURE__ */ e(f, {}) });
|
|
38
|
+
}, q = (o) => {
|
|
39
|
+
const {
|
|
40
|
+
i18n: t
|
|
41
|
+
} = s(), {
|
|
42
|
+
data: r
|
|
43
|
+
} = p();
|
|
44
|
+
if ("onRowActionClick" in o && o.onRowActionClick)
|
|
45
|
+
return {
|
|
46
|
+
field: "actions",
|
|
47
|
+
headerName: t._("Actions"),
|
|
48
|
+
sortable: !1,
|
|
49
|
+
display: "flex",
|
|
50
|
+
align: "right",
|
|
51
|
+
renderCell: (i) => {
|
|
52
|
+
if (i.row.status === "waiting" && r?.id && i.row.user_ids.includes(r.id) && !i.row.approved_by?.includes(r.id))
|
|
53
|
+
return /* @__PURE__ */ d(m, { direction: "row", children: [
|
|
54
|
+
/* @__PURE__ */ e(C, { id: i.row.id, onClick: o.onRowActionClick }),
|
|
55
|
+
/* @__PURE__ */ e(k, { id: i.row.id, onClick: o.onRowActionClick })
|
|
56
|
+
] });
|
|
57
|
+
}
|
|
58
|
+
};
|
|
29
59
|
};
|
|
30
60
|
export {
|
|
31
|
-
|
|
61
|
+
q as useApprovalRequestActionsCell
|
|
32
62
|
};
|