@tesouro/embedded-components-react 0.7.58 → 0.7.59
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/monite-sdk.d.ts +3 -98
- package/dist/lib/monite-sdk.js +51 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +153 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1222 -151
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +171 -1219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +6 -174
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +15 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +5 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +55 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +2 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +53 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +37 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +71 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +39 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +65 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +158 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +7 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +69 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +1 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +78 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +0 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +35 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +57 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +42 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +1 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +568 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +0 -568
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +160 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +0 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +27 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +26 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +16 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +68 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +24 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +6 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +40 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +48 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +58 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +1 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +40 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +76 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +4 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +66 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +108 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +4 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +73 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +1 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +128 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +0 -128
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +54 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +5 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +19 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +1 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +120 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +22 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +6 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +35 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +6 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +56 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +71 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +25 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +1 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +61 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +17 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +183 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +1 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +0 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +5 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +15 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +5 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +14 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +9 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +26 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +11 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +81 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +14 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +100 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +42 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +27 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +1 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +35 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +166 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +12 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +70 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +20 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +209 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +88 -208
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +20 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +158 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +91 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +42 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +4 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +73 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +5 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +131 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +5 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +221 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +31 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +11 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +20 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +72 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +181 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +14 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +204 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +88 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +61 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +54 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +83 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +40 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +75 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +71 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +12 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +0 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +21 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +32 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +21 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +15 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +30 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +27 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +825 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index35.js +20 -930
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +68 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +5 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +5 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +43 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +21 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +4 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +6 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +27 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +8 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +69 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +50 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +46 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +11 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +1 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +35 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +64 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +29 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +32 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +21 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +11 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +53 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +12 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +71 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +77 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +1 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +10 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +27 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +2 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +17 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +3 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +57 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +10 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +37 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +1 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +1 -55
- 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/index276.js +0 -2
|
@@ -1,56 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
let e;
|
|
14
|
-
e = r in n ? `(min-width: ${n[r]}px)` : r;
|
|
15
|
-
let t = window.matchMedia(e);
|
|
16
|
-
a(t.matches);
|
|
17
|
-
let i = (e) => {
|
|
18
|
-
a(e.matches);
|
|
19
|
-
};
|
|
20
|
-
return t.addEventListener("change", i), () => {
|
|
21
|
-
t.removeEventListener("change", i);
|
|
22
|
-
};
|
|
23
|
-
}, [r]), i;
|
|
24
|
-
}
|
|
25
|
-
var i = () => l("md"), a = () => {
|
|
26
|
-
let e = r("md"), t = r("lg");
|
|
27
|
-
return e && !t;
|
|
28
|
-
}, o = () => r("lg"), s = () => r("xl"), c = () => r("2xl");
|
|
29
|
-
function l(r) {
|
|
30
|
-
let [i, a] = t(!1);
|
|
31
|
-
return e(() => {
|
|
32
|
-
let e = `(max-width: ${n[r] - 1}px)`, t = window.matchMedia(e);
|
|
33
|
-
a(t.matches);
|
|
34
|
-
let i = (e) => {
|
|
35
|
-
a(e.matches);
|
|
36
|
-
};
|
|
37
|
-
return t.addEventListener("change", i), () => {
|
|
38
|
-
t.removeEventListener("change", i);
|
|
39
|
-
};
|
|
40
|
-
}, [r]), i;
|
|
41
|
-
}
|
|
42
|
-
function u(r) {
|
|
43
|
-
let [i, a] = t(!1);
|
|
44
|
-
return e(() => {
|
|
45
|
-
let e = `(min-width: ${n[r] + 1}px)`, t = window.matchMedia(e);
|
|
46
|
-
a(t.matches);
|
|
47
|
-
let i = (e) => {
|
|
48
|
-
a(e.matches);
|
|
49
|
-
};
|
|
50
|
-
return t.addEventListener("change", i), () => {
|
|
51
|
-
t.removeEventListener("change", i);
|
|
52
|
-
};
|
|
53
|
-
}, [r]), i;
|
|
54
|
-
}
|
|
55
|
-
//#endregion
|
|
56
|
-
export { n as breakpoints, o as useIsDesktopScreen, c as useIsExtraLargeDesktopScreen, s as useIsLargeDesktopScreen, u as useIsLargerThan, i as useIsMobileScreen, l as useIsSmallerThan, a as useIsTabletScreen, r as useMediaQuery };
|
|
1
|
+
import "./index20.js";
|
|
2
|
+
import "./index66.js";
|
|
3
|
+
import "./index67.js";
|
|
4
|
+
import "./index70.js";
|
|
5
|
+
import "./index71.js";
|
|
6
|
+
import "./index72.js";
|
|
7
|
+
import "./index73.js";
|
|
8
|
+
import "./index74.js";
|
|
9
|
+
import "./index75.js";
|
|
10
|
+
import "./index76.js";
|
|
11
|
+
import "./index77.js";
|
|
12
|
+
import "./index78.js";
|
|
@@ -1,12 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js
|
|
2
|
+
var e = {
|
|
3
|
+
WAS_CREATED_BY_USER_ID: "was_created_by_user_id",
|
|
4
|
+
COUNTERPART_ID: "counterpart_id",
|
|
5
|
+
AMOUNT: "amount",
|
|
6
|
+
CURRENCY: "currency"
|
|
7
|
+
}, t = (t) => Object.values(e).includes(t), n = {
|
|
8
|
+
IN: "in",
|
|
9
|
+
EQUALS: "==",
|
|
10
|
+
GREATER_THAN: ">",
|
|
11
|
+
LESS_THAN: "<",
|
|
12
|
+
GREATER_THAN_OR_EQUAL: ">=",
|
|
13
|
+
LESS_THAN_OR_EQUAL: "<=",
|
|
14
|
+
RANGE: "range"
|
|
15
|
+
}, r = (e) => Object.values(n).includes(e), i = (e) => e.replace("invoice.", ""), a = (e) => e.operator === n.IN && typeof e.left_operand == "string" && typeof e.right_operand == "object" && e.right_operand && "name" in e.right_operand, o = (e) => !!e.left_operand && typeof e.left_operand == "object" && "name" in e.left_operand, s = (e) => a(e) ? {
|
|
16
|
+
key: i(e.right_operand.name),
|
|
17
|
+
value: e.left_operand
|
|
18
|
+
} : o(e) ? {
|
|
19
|
+
key: i(e.left_operand?.name),
|
|
20
|
+
value: e.right_operand
|
|
21
|
+
} : {
|
|
22
|
+
key: null,
|
|
23
|
+
value: null
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { e as NAMED_VALUES, n as OPERATOR_OPERATIONS, i as extractFieldName, s as getTriggerKeyAndValue, r as isValidOperation, t as isValidTriggerKey };
|
|
@@ -1,26 +1,74 @@
|
|
|
1
|
+
import { useCurrencies as e } from "./index66.js";
|
|
2
|
+
import "./index79.js";
|
|
3
|
+
import { OPERATOR_OPERATIONS as t, getTriggerKeyAndValue as n, isValidOperation as r, isValidTriggerKey as i } from "./index80.js";
|
|
4
|
+
import { useLingui as a } from "@lingui/react";
|
|
1
5
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} :
|
|
22
|
-
|
|
23
|
-
|
|
6
|
+
var o = ({ approvalPolicy: o }) => {
|
|
7
|
+
let { i18n: s } = a(), { formatCurrencyToDisplay: c } = e(), l = (e) => {
|
|
8
|
+
switch (e) {
|
|
9
|
+
case "amount": return s._("Amount");
|
|
10
|
+
case "was_created_by_user_id": return s._("Created by user");
|
|
11
|
+
case "counterpart_id": return s._("Vendors");
|
|
12
|
+
default: return e;
|
|
13
|
+
}
|
|
14
|
+
}, u = (e) => {
|
|
15
|
+
switch (e) {
|
|
16
|
+
case "amount": return s._("Amount");
|
|
17
|
+
case "was_created_by_user_id": return s._("Created by");
|
|
18
|
+
case "counterpart_id": return s._("Vendors");
|
|
19
|
+
default: return e;
|
|
20
|
+
}
|
|
21
|
+
}, d = (e, n) => {
|
|
22
|
+
let r = c(e[0][1], n);
|
|
23
|
+
if (e.length === 1) switch (e[0][0]) {
|
|
24
|
+
case t.GREATER_THAN: return s._("Greater than {formattedValue}", { formattedValue: r });
|
|
25
|
+
case t.GREATER_THAN_OR_EQUAL: return s._("Greater than or equal to {formattedValue}", { formattedValue: r });
|
|
26
|
+
case t.LESS_THAN: return s._("Less than {formattedValue}", { formattedValue: r });
|
|
27
|
+
case t.LESS_THAN_OR_EQUAL: return s._("Less than or equal to {formattedValue}", { formattedValue: r });
|
|
28
|
+
case t.EQUALS: return s._("Equal to {formattedValue}", { formattedValue: r });
|
|
29
|
+
default: return r;
|
|
30
|
+
}
|
|
31
|
+
if (e.length === 2) {
|
|
32
|
+
let r = e.find((e) => e[0] === t.GREATER_THAN_OR_EQUAL), i = e.find((e) => e[0] === t.LESS_THAN_OR_EQUAL);
|
|
33
|
+
if (r && i) return s._("{from} - {to}", {
|
|
34
|
+
from: c(r[1], n),
|
|
35
|
+
to: c(i[1], n)
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
return r;
|
|
39
|
+
};
|
|
40
|
+
return ((e) => !!(e && typeof e == "object" && "all" in e && Array.isArray(e.all)))(o?.trigger) ? {
|
|
41
|
+
triggers: o.trigger?.all?.reduce((e, t) => {
|
|
42
|
+
if (typeof t == "string" || !t.operator || !t.left_operand || t.right_operand == null) return e;
|
|
43
|
+
let { key: a, value: o } = n(t);
|
|
44
|
+
if (!a || o == null || !i(a)) return e;
|
|
45
|
+
switch (a) {
|
|
46
|
+
case "amount":
|
|
47
|
+
(typeof o == "string" || typeof o == "number") && r(t.operator) && (e.amount ||= {
|
|
48
|
+
currency: "EUR",
|
|
49
|
+
value: []
|
|
50
|
+
}, e.amount.value.push([t.operator, o]));
|
|
51
|
+
break;
|
|
52
|
+
case "currency":
|
|
53
|
+
e.amount ? e.amount.currency = o : e.amount = {
|
|
54
|
+
value: [],
|
|
55
|
+
currency: o
|
|
56
|
+
};
|
|
57
|
+
break;
|
|
58
|
+
case "counterpart_id":
|
|
59
|
+
case "was_created_by_user_id": Array.isArray(o) && (e[a] = o);
|
|
60
|
+
}
|
|
61
|
+
return e;
|
|
62
|
+
}, {}),
|
|
63
|
+
getTriggerName: l,
|
|
64
|
+
getTriggerLabel: u,
|
|
65
|
+
getAmountLabel: d
|
|
66
|
+
} : {
|
|
67
|
+
triggers: {},
|
|
68
|
+
getTriggerName: l,
|
|
69
|
+
getTriggerLabel: u,
|
|
70
|
+
getAmountLabel: d
|
|
71
|
+
};
|
|
24
72
|
};
|
|
25
73
|
//#endregion
|
|
26
|
-
export {
|
|
74
|
+
export { o as useApprovalPolicyTrigger };
|
|
@@ -1,74 +1,82 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { useApprovalPolicyTrigger as e } from "./index81.js";
|
|
2
|
+
import { User as t } from "./index63.js";
|
|
3
|
+
import "./index64.js";
|
|
4
|
+
import { useMemo as n } from "react";
|
|
5
|
+
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { Button as a, Chip as o, IconButton as s, Paper as c, Stack as l, Table as u, TableBody as d, TableCell as f, TableHead as p, TableRow as m } from "@mui/material";
|
|
7
|
+
import { useLingui as h } from "@lingui/react";
|
|
8
|
+
import g from "@mui/icons-material/AddCircleOutline";
|
|
9
|
+
import _ from "@mui/icons-material/Delete";
|
|
5
10
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js
|
|
6
|
-
var
|
|
7
|
-
let { i18n:
|
|
11
|
+
var v = ({ triggers: v, onAddTrigger: y, onEditTrigger: b, onDeleteTrigger: x }) => {
|
|
12
|
+
let { i18n: S } = h(), { getTriggerLabel: C, getAmountLabel: w } = e({}), T = n(() => Object.keys(v).map((e) => {
|
|
13
|
+
let n = C(e), i;
|
|
8
14
|
switch (e) {
|
|
9
|
-
case "
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
case "was_created_by_user_id":
|
|
16
|
+
i = /* @__PURE__ */ r(l, {
|
|
17
|
+
direction: "row",
|
|
18
|
+
gap: 1,
|
|
19
|
+
sx: { flexWrap: "wrap" },
|
|
20
|
+
children: v.was_created_by_user_id?.map((e) => /* @__PURE__ */ r(t, { userId: e.id }, e.id))
|
|
21
|
+
});
|
|
22
|
+
break;
|
|
23
|
+
case "counterpart_id":
|
|
24
|
+
i = /* @__PURE__ */ r(l, {
|
|
25
|
+
direction: "row",
|
|
26
|
+
gap: 1,
|
|
27
|
+
sx: { flexWrap: "wrap" },
|
|
28
|
+
children: v.counterpart_id?.map((e) => /* @__PURE__ */ r(o, { label: e.label }, e.id))
|
|
29
|
+
});
|
|
30
|
+
break;
|
|
31
|
+
case "amount":
|
|
32
|
+
i = /* @__PURE__ */ r("p", { children: w(v.amount?.value ?? [], v.amount?.currency ?? "EUR") });
|
|
33
|
+
break;
|
|
34
|
+
default: i = e;
|
|
13
35
|
}
|
|
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
|
-
case "counterpart_id":
|
|
59
|
-
case "was_created_by_user_id": Array.isArray(o) && (e[a] = o);
|
|
60
|
-
}
|
|
61
|
-
return e;
|
|
62
|
-
}, {}),
|
|
63
|
-
getTriggerName: l,
|
|
64
|
-
getTriggerLabel: u,
|
|
65
|
-
getAmountLabel: d
|
|
66
|
-
} : {
|
|
67
|
-
triggers: {},
|
|
68
|
-
getTriggerName: l,
|
|
69
|
-
getTriggerLabel: u,
|
|
70
|
-
getAmountLabel: d
|
|
71
|
-
};
|
|
36
|
+
return {
|
|
37
|
+
key: e,
|
|
38
|
+
label: n,
|
|
39
|
+
value: i
|
|
40
|
+
};
|
|
41
|
+
}), [
|
|
42
|
+
v,
|
|
43
|
+
C,
|
|
44
|
+
w
|
|
45
|
+
]);
|
|
46
|
+
return /* @__PURE__ */ r(c, {
|
|
47
|
+
variant: "outlined",
|
|
48
|
+
children: /* @__PURE__ */ i(u, { children: [/* @__PURE__ */ r(p, { children: /* @__PURE__ */ i(m, { children: [
|
|
49
|
+
/* @__PURE__ */ r(f, { children: S._("Condition") }),
|
|
50
|
+
/* @__PURE__ */ r(f, { children: S._("Criteria") }),
|
|
51
|
+
/* @__PURE__ */ r(f, {})
|
|
52
|
+
] }) }), /* @__PURE__ */ i(d, { children: [T.length > 0 ? T.map((e) => /* @__PURE__ */ i(m, {
|
|
53
|
+
hover: !0,
|
|
54
|
+
sx: { "&.MuiTableRow-root": { cursor: "pointer" } },
|
|
55
|
+
onClick: () => b(e.key),
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ r(f, { children: e.label }),
|
|
58
|
+
/* @__PURE__ */ r(f, { children: e.value }),
|
|
59
|
+
/* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(s, {
|
|
60
|
+
"aria-label": S._("Delete trigger"),
|
|
61
|
+
onClick: (t) => {
|
|
62
|
+
t.stopPropagation(), x(e.key);
|
|
63
|
+
},
|
|
64
|
+
children: /* @__PURE__ */ r(_, {})
|
|
65
|
+
}) })
|
|
66
|
+
]
|
|
67
|
+
}, e.label)) : /* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(f, {
|
|
68
|
+
colSpan: 3,
|
|
69
|
+
children: S._("No conditions")
|
|
70
|
+
}) }), /* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(f, {
|
|
71
|
+
colSpan: 3,
|
|
72
|
+
children: /* @__PURE__ */ r(a, {
|
|
73
|
+
startIcon: /* @__PURE__ */ r(g, {}),
|
|
74
|
+
onClick: y,
|
|
75
|
+
disabled: !!(v?.was_created_by_user_id?.length && v?.counterpart_id?.length && v?.amount?.value?.length),
|
|
76
|
+
children: S._("Add new condition")
|
|
77
|
+
})
|
|
78
|
+
}) })] })] })
|
|
79
|
+
});
|
|
72
80
|
};
|
|
73
81
|
//#endregion
|
|
74
|
-
export {
|
|
82
|
+
export { v as ConditionsTable };
|
|
@@ -1,82 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { User as t } from "./index64.js";
|
|
3
|
-
import "./index65.js";
|
|
4
|
-
import { useMemo as n } from "react";
|
|
5
|
-
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import { Button as a, Chip as o, IconButton as s, Paper as c, Stack as l, Table as u, TableBody as d, TableCell as f, TableHead as p, TableRow as m } from "@mui/material";
|
|
7
|
-
import { useLingui as h } from "@lingui/react";
|
|
8
|
-
import g from "@mui/icons-material/AddCircleOutline";
|
|
9
|
-
import _ from "@mui/icons-material/Delete";
|
|
10
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js
|
|
11
|
-
var v = ({ triggers: v, onAddTrigger: y, onEditTrigger: b, onDeleteTrigger: x }) => {
|
|
12
|
-
let { i18n: S } = h(), { getTriggerLabel: C, getAmountLabel: w } = e({}), T = n(() => Object.keys(v).map((e) => {
|
|
13
|
-
let n = C(e), i;
|
|
14
|
-
switch (e) {
|
|
15
|
-
case "was_created_by_user_id":
|
|
16
|
-
i = /* @__PURE__ */ r(l, {
|
|
17
|
-
direction: "row",
|
|
18
|
-
gap: 1,
|
|
19
|
-
sx: { flexWrap: "wrap" },
|
|
20
|
-
children: v.was_created_by_user_id?.map((e) => /* @__PURE__ */ r(t, { userId: e.id }, e.id))
|
|
21
|
-
});
|
|
22
|
-
break;
|
|
23
|
-
case "counterpart_id":
|
|
24
|
-
i = /* @__PURE__ */ r(l, {
|
|
25
|
-
direction: "row",
|
|
26
|
-
gap: 1,
|
|
27
|
-
sx: { flexWrap: "wrap" },
|
|
28
|
-
children: v.counterpart_id?.map((e) => /* @__PURE__ */ r(o, { label: e.label }, e.id))
|
|
29
|
-
});
|
|
30
|
-
break;
|
|
31
|
-
case "amount":
|
|
32
|
-
i = /* @__PURE__ */ r("p", { children: w(v.amount?.value ?? [], v.amount?.currency ?? "EUR") });
|
|
33
|
-
break;
|
|
34
|
-
default: i = e;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
key: e,
|
|
38
|
-
label: n,
|
|
39
|
-
value: i
|
|
40
|
-
};
|
|
41
|
-
}), [
|
|
42
|
-
v,
|
|
43
|
-
C,
|
|
44
|
-
w
|
|
45
|
-
]);
|
|
46
|
-
return /* @__PURE__ */ r(c, {
|
|
47
|
-
variant: "outlined",
|
|
48
|
-
children: /* @__PURE__ */ i(u, { children: [/* @__PURE__ */ r(p, { children: /* @__PURE__ */ i(m, { children: [
|
|
49
|
-
/* @__PURE__ */ r(f, { children: S._("Condition") }),
|
|
50
|
-
/* @__PURE__ */ r(f, { children: S._("Criteria") }),
|
|
51
|
-
/* @__PURE__ */ r(f, {})
|
|
52
|
-
] }) }), /* @__PURE__ */ i(d, { children: [T.length > 0 ? T.map((e) => /* @__PURE__ */ i(m, {
|
|
53
|
-
hover: !0,
|
|
54
|
-
sx: { "&.MuiTableRow-root": { cursor: "pointer" } },
|
|
55
|
-
onClick: () => b(e.key),
|
|
56
|
-
children: [
|
|
57
|
-
/* @__PURE__ */ r(f, { children: e.label }),
|
|
58
|
-
/* @__PURE__ */ r(f, { children: e.value }),
|
|
59
|
-
/* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(s, {
|
|
60
|
-
"aria-label": S._("Delete trigger"),
|
|
61
|
-
onClick: (t) => {
|
|
62
|
-
t.stopPropagation(), x(e.key);
|
|
63
|
-
},
|
|
64
|
-
children: /* @__PURE__ */ r(_, {})
|
|
65
|
-
}) })
|
|
66
|
-
]
|
|
67
|
-
}, e.label)) : /* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(f, {
|
|
68
|
-
colSpan: 3,
|
|
69
|
-
children: S._("No conditions")
|
|
70
|
-
}) }), /* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(f, {
|
|
71
|
-
colSpan: 3,
|
|
72
|
-
children: /* @__PURE__ */ r(a, {
|
|
73
|
-
startIcon: /* @__PURE__ */ r(g, {}),
|
|
74
|
-
onClick: y,
|
|
75
|
-
disabled: !!(v?.was_created_by_user_id?.length && v?.counterpart_id?.length && v?.amount?.value?.length),
|
|
76
|
-
children: S._("Add new condition")
|
|
77
|
-
})
|
|
78
|
-
}) })] })] })
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
|
-
//#endregion
|
|
82
|
-
export { v as ConditionsTable };
|
|
1
|
+
import "./index82.js";
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js
|
|
2
|
+
var e = {
|
|
3
|
+
singleUser: (e) => e._("Single user"),
|
|
4
|
+
anyUserFromList: (e) => e._("Any user from the list"),
|
|
5
|
+
anyUsersFromList: (e, t) => e._("Any {count} users from the list", { count: t.toString() }),
|
|
6
|
+
anyUserWithRole: (e) => e._("Any user with role"),
|
|
7
|
+
allUsersFromList: (e) => e._("All users from list, one by one")
|
|
8
|
+
}, t = (t, n = 0) => n === 1 ? e.anyUserFromList(t) : e.anyUsersFromList(t, n);
|
|
9
|
+
//#endregion
|
|
10
|
+
export { e as getSharedApprovalRuleLabel, t as getUsersFromListLabel };
|
|
@@ -1,10 +1,29 @@
|
|
|
1
|
+
import { getSharedApprovalRuleLabel as e, getUsersFromListLabel as t } from "./index84.js";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
var n = {
|
|
4
|
+
SINGLE_USER: "single_user",
|
|
5
|
+
USERS_FROM_LIST: "users_from_list",
|
|
6
|
+
ROLES_FROM_LIST: "roles_from_list",
|
|
7
|
+
APPROVAL_CHAIN: "approval_chain"
|
|
8
|
+
}, r = {
|
|
9
|
+
REQUEST_APPROVAL_BY_USERS: "ApprovalRequests.request_approval_by_users",
|
|
10
|
+
REQUEST_APPROVAL_BY_ROLES: "ApprovalRequests.request_approval_by_roles"
|
|
11
|
+
}, i = (e, t) => {
|
|
12
|
+
switch (e) {
|
|
13
|
+
case n.SINGLE_USER: return t._("Single user");
|
|
14
|
+
case n.USERS_FROM_LIST: return t._("Users from the list");
|
|
15
|
+
case n.ROLES_FROM_LIST: return t._("Roles from the list");
|
|
16
|
+
case n.APPROVAL_CHAIN: return t._("Approval chain");
|
|
17
|
+
default: return;
|
|
18
|
+
}
|
|
19
|
+
}, a = (r, i, a) => {
|
|
20
|
+
switch (r) {
|
|
21
|
+
case n.SINGLE_USER: return e.singleUser(i);
|
|
22
|
+
case n.USERS_FROM_LIST: return t(i, a);
|
|
23
|
+
case n.ROLES_FROM_LIST: return e.anyUserWithRole(i);
|
|
24
|
+
case n.APPROVAL_CHAIN: return e.allUsersFromList(i);
|
|
25
|
+
default: return;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
9
28
|
//#endregion
|
|
10
|
-
export {
|
|
29
|
+
export { n as APPROVAL_POLICY_RULE_TYPES, r as APPROVAL_REQUEST_CALLS, a as getRuleLabel, i as getRuleName };
|
|
@@ -1,29 +1,4 @@
|
|
|
1
|
-
import { getSharedApprovalRuleLabel as e, getUsersFromListLabel as t } from "./index85.js";
|
|
2
1
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js
|
|
3
|
-
var
|
|
4
|
-
SINGLE_USER: "single_user",
|
|
5
|
-
USERS_FROM_LIST: "users_from_list",
|
|
6
|
-
ROLES_FROM_LIST: "roles_from_list",
|
|
7
|
-
APPROVAL_CHAIN: "approval_chain"
|
|
8
|
-
}, r = {
|
|
9
|
-
REQUEST_APPROVAL_BY_USERS: "ApprovalRequests.request_approval_by_users",
|
|
10
|
-
REQUEST_APPROVAL_BY_ROLES: "ApprovalRequests.request_approval_by_roles"
|
|
11
|
-
}, i = (e, t) => {
|
|
12
|
-
switch (e) {
|
|
13
|
-
case n.SINGLE_USER: return t._("Single user");
|
|
14
|
-
case n.USERS_FROM_LIST: return t._("Users from the list");
|
|
15
|
-
case n.ROLES_FROM_LIST: return t._("Roles from the list");
|
|
16
|
-
case n.APPROVAL_CHAIN: return t._("Approval chain");
|
|
17
|
-
default: return;
|
|
18
|
-
}
|
|
19
|
-
}, a = (r, i, a) => {
|
|
20
|
-
switch (r) {
|
|
21
|
-
case n.SINGLE_USER: return e.singleUser(i);
|
|
22
|
-
case n.USERS_FROM_LIST: return t(i, a);
|
|
23
|
-
case n.ROLES_FROM_LIST: return e.anyUserWithRole(i);
|
|
24
|
-
case n.APPROVAL_CHAIN: return e.allUsersFromList(i);
|
|
25
|
-
default: return;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
2
|
+
var e = (e) => typeof e == "object" && !!e, t = (n) => Array.isArray(n) ? n.flatMap(t) : e(n) ? n.call && e(n.params) ? [n] : Array.isArray(n.all) ? n.all.flatMap(t) : [] : [];
|
|
28
3
|
//#endregion
|
|
29
|
-
export {
|
|
4
|
+
export { t as extractApprovalCallsForTable };
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
+
import e from "@mui/icons-material/Cancel";
|
|
2
|
+
import t from "@mui/icons-material/HourglassEmpty";
|
|
3
|
+
import n from "@mui/icons-material/PaidOutlined";
|
|
1
4
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js
|
|
2
|
-
var
|
|
5
|
+
var r = "search", i = "created_at", a = "created_by", o = ["ApprovalRequests.request_approval_by_roles", "ApprovalRequests.request_approval_by_role"], s = {
|
|
6
|
+
active: "success",
|
|
7
|
+
deleted: "error",
|
|
8
|
+
pending: "warning"
|
|
9
|
+
}, c = (e) => ({
|
|
10
|
+
active: e._("Active"),
|
|
11
|
+
deleted: e._("Deleted"),
|
|
12
|
+
pending: e._("Pending")
|
|
13
|
+
}), l = {
|
|
14
|
+
active: n,
|
|
15
|
+
deleted: e,
|
|
16
|
+
pending: t
|
|
17
|
+
};
|
|
3
18
|
//#endregion
|
|
4
|
-
export {
|
|
19
|
+
export { l as APPROVAL_STATUS_TO_MUI_ICON_MAP, i as FILTER_TYPE_CREATED_AT, a as FILTER_TYPE_CREATED_BY, r as FILTER_TYPE_SEARCH, o as ROLE_APPROVAL_CALLS, s as ROW_TO_STATUS_MUI_MAP, c as getRowToStatusTextMap };
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "@mui/icons-material/HourglassEmpty";
|
|
3
|
-
import n from "@mui/icons-material/PaidOutlined";
|
|
1
|
+
import { ROLE_APPROVAL_CALLS as e } from "./index87.js";
|
|
4
2
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js
|
|
5
|
-
var
|
|
6
|
-
active: "success",
|
|
7
|
-
deleted: "error",
|
|
8
|
-
pending: "warning"
|
|
9
|
-
}, c = (e) => ({
|
|
10
|
-
active: e._("Active"),
|
|
11
|
-
deleted: e._("Deleted"),
|
|
12
|
-
pending: e._("Pending")
|
|
13
|
-
}), l = {
|
|
14
|
-
active: n,
|
|
15
|
-
deleted: e,
|
|
16
|
-
pending: t
|
|
17
|
-
};
|
|
3
|
+
var t = (t) => typeof t == "string" && e.includes(t);
|
|
18
4
|
//#endregion
|
|
19
|
-
export {
|
|
5
|
+
export { t as isRoleApprovalCall };
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
var t = (t) => typeof t == "string" && e.includes(t);
|
|
4
|
-
//#endregion
|
|
5
|
-
export { t as isRoleApprovalCall };
|
|
1
|
+
import "./index88.js";
|
|
2
|
+
import "./index86.js";
|
|
@@ -1,2 +1,58 @@
|
|
|
1
|
+
import { APPROVAL_REQUEST_CALLS as e, getRuleLabel as t, getRuleName as n } from "./index85.js";
|
|
2
|
+
import { isRoleApprovalCall as r } from "./index88.js";
|
|
1
3
|
import "./index89.js";
|
|
2
|
-
import "
|
|
4
|
+
import { useLingui as i } from "@lingui/react";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js
|
|
6
|
+
var a = ({ approvalPolicy: a }) => {
|
|
7
|
+
let { i18n: o } = i(), s = (t) => {
|
|
8
|
+
if (typeof t != "object" || !t || !("call" in t) || typeof t.call != "string" || t.call !== e.REQUEST_APPROVAL_BY_USERS && !r(t.call) || !("params" in t) || typeof t.params != "object" || t.params === null) return !1;
|
|
9
|
+
let n = t.params;
|
|
10
|
+
return !("user_ids" in n && !Array.isArray(n.user_ids) || "role_ids" in n && !Array.isArray(n.role_ids) || !("required_approval_count" in n) || typeof n.required_approval_count != "number");
|
|
11
|
+
}, c = (e) => typeof e != "object" || !e || !("run_concurrently" in e) || typeof e.run_concurrently != "boolean" || !("all" in e) || !Array.isArray(e.all) ? !1 : e.all.every((e) => s(e) || c(e)), l = (e) => {
|
|
12
|
+
if (!Array.isArray(e) || e.length !== 1) return !1;
|
|
13
|
+
let [t] = e;
|
|
14
|
+
if (typeof t != "object" || !t || !("if" in t) || !("then" in t) || !("else" in t)) return !1;
|
|
15
|
+
let { if: n, then: r, else: i } = t;
|
|
16
|
+
if (typeof n != "object" || !n || !("run_concurrently" in n) || !("all" in n)) return !1;
|
|
17
|
+
let { run_concurrently: a, all: o } = n;
|
|
18
|
+
return typeof a != "boolean" || !Array.isArray(o) || !Array.isArray(r) || !Array.isArray(i) ? !1 : o.every((e) => s(e) || c(e));
|
|
19
|
+
}, u = (t) => t.call === e.REQUEST_APPROVAL_BY_USERS && Array.isArray(t.params.user_ids) && t.params.user_ids.length === 1 && t.params.required_approval_count === 1, d = (t) => t.call === e.REQUEST_APPROVAL_BY_USERS && Array.isArray(t.params.user_ids) && t.params.user_ids.length > 1 && t.params.required_approval_count > 0, f = (e) => r(e.call) && Array.isArray(e.params.role_ids) && e.params.role_ids.length >= 1 && e.params.required_approval_count > 0, p = (e) => !e.run_concurrently && e.all.length > 1 && e.all.every((e) => s(e) && u(e)), m = (e) => n(e, o), h = (e, n) => t(e, o, n);
|
|
20
|
+
return l(a?.script) ? {
|
|
21
|
+
rules: a?.script[0].if.all.reduce((e, t) => {
|
|
22
|
+
if (c(t)) {
|
|
23
|
+
if (p(t)) return {
|
|
24
|
+
...e,
|
|
25
|
+
approval_chain: { chainUserIds: t.all.reduce((e, t) => s(t) && u(t) && t.params.user_ids[0] && t.params.user_ids[0] ? [...e, t.params.user_ids[0]] : e, []) }
|
|
26
|
+
};
|
|
27
|
+
} else if (s(t)) {
|
|
28
|
+
if (u(t)) return {
|
|
29
|
+
...e,
|
|
30
|
+
single_user: { userId: t.params.user_ids[0] }
|
|
31
|
+
};
|
|
32
|
+
if (d(t)) return {
|
|
33
|
+
...e,
|
|
34
|
+
users_from_list: {
|
|
35
|
+
userIds: t.params.user_ids,
|
|
36
|
+
count: t.params.required_approval_count
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
if (f(t)) return {
|
|
40
|
+
...e,
|
|
41
|
+
roles_from_list: {
|
|
42
|
+
roleIds: t.params.role_ids,
|
|
43
|
+
count: t.params.required_approval_count
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
return e;
|
|
48
|
+
}, {}),
|
|
49
|
+
getRuleName: m,
|
|
50
|
+
getRuleLabel: h
|
|
51
|
+
} : {
|
|
52
|
+
rules: void 0,
|
|
53
|
+
getRuleName: m,
|
|
54
|
+
getRuleLabel: h
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
//#endregion
|
|
58
|
+
export { a as useApprovalPolicyScript };
|