@tesouro/embedded-components-react 0.5.138 → 0.5.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +0 -6
- package/dist/lib/monite-sdk.js +50 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +51 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +575 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +1 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +157 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +1 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +24 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +10 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +10 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +16 -597
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +0 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +93 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +75 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +126 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +11 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +5 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +62 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +120 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +21 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +6 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +7 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +72 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +26 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +61 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +19 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +20 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +183 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +29 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +59 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +31 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +11 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +34 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +43 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +5 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +9 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +20 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +12 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +13 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +13 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +15 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +37 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +14 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +15 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +20 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +5 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +119 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +62 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +1 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +196 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +1 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +41 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +5 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +19 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +3 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +407 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +18 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +95 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +17 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +180 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +98 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +49 -419
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +18 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +158 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +7 -188
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +55 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +47 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +51 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +80 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +21 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +307 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +1 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +158 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +1 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +34 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +34 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +3 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +181 -340
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +134 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +209 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +14 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +229 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +34 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +135 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +163 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +26 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +8 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +36 -207
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +154 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +67 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +217 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +42 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +0 -241
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +83 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +184 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +169 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +15 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +19 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +383 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +88 -151
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +198 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +30 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +84 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +136 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +35 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +58 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +54 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +135 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +552 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +145 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +142 -382
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +36 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +59 -195
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +67 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +147 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +57 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +82 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +14 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +16 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +21 -552
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +89 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +41 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +27 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +16 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +12 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +5 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +13 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +18 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +9 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +102 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +35 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +43 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +71 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +99 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +47 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +186 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +139 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +130 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +77 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +245 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +6 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +398 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +22 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +18 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +44 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +45 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +14 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +39 -139
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +140 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +112 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +39 -246
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +33 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +24 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +22 -399
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +22 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +73 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +71 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +18 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +179 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +138 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +28 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +93 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +17 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +44 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +15 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +27 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +36 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +76 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +33 -177
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +82 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +50 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +1 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +37 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +1 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +133 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +109 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +49 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +787 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +88 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +101 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +6 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +23 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +11 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +11 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +23 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +165 -128
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +208 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +87 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +17 -789
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +154 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +98 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +46 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +4 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +1 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +20 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +47 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +63 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +164 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +1 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +175 -148
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +1 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +34 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +21 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +72 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +18 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +9 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +130 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +5 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +219 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +34 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +179 -128
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +203 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +98 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +66 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +51 -216
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +91 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +40 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +69 -174
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +80 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +12 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +21 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +16 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +4 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +22 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +1 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +64 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +36 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +18 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +31 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +2 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +93 -28
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +13 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +31 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +22 -13
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index10.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index11.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index4.js +16 -58
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index5.js +95 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index7.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index8.js +18 -21
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index9.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index2.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/{shared/tag-selection/ui/dist/index3.js → settings-widget/tags/ui/dist/index5.js} +2 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +855 -831
- 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 +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +539 -533
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +0 -97
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index2.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index3.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index4.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index5.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index6.js +0 -35
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index7.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/index.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/TagSelectorField.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/helpers.js +0 -38
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/labels.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/permissions.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/useTagCreateForm.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index2.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index4.js +0 -4
|
@@ -1 +1,21 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { useApprovalPolicyScript as e } from "./index279.js";
|
|
2
|
+
import { UUserSquare as t } from "./index280.js";
|
|
3
|
+
import { UListUiAlt as n } from "./index315.js";
|
|
4
|
+
import { UUserCircle as r } from "./index316.js";
|
|
5
|
+
import { UUsersAlt as i } from "./index317.js";
|
|
6
|
+
import { ColumnList as a } from "./index318.js";
|
|
7
|
+
import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
8
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js
|
|
9
|
+
var c = ({ approvalPolicy: c }) => {
|
|
10
|
+
let { rules: l, getRuleName: u } = e({ approvalPolicy: c });
|
|
11
|
+
return c ? /* @__PURE__ */ o(a, { children: l && Object.keys(l).map((e) => {
|
|
12
|
+
switch (e) {
|
|
13
|
+
case "single_user": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(r, { width: 18 }), u(e)] }, e);
|
|
14
|
+
case "users_from_list": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(i, { width: 18 }), u(e)] }, e);
|
|
15
|
+
case "roles_from_list": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(t, { width: 18 }), u(e)] }, e);
|
|
16
|
+
case "approval_chain": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(n, { width: 18 }), u(e)] }, e);
|
|
17
|
+
}
|
|
18
|
+
}) }) : null;
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { c as ApprovalPoliciesRules };
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { APPROVAL_STATUS_TO_MUI_ICON_MAP as e, ROW_TO_STATUS_MUI_MAP as t, getRowToStatusTextMap as n } from "./index276.js";
|
|
2
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { Chip as i } from "@mui/material";
|
|
4
|
+
import { useLingui as a } from "@lingui/react";
|
|
5
|
+
import o from "@mui/icons-material/Circle";
|
|
6
|
+
import { styled as s, useThemeProps as c } from "@mui/material/styles";
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js
|
|
8
|
+
var l = ({ ref: i, ...s }) => {
|
|
9
|
+
let { status: l, icon: d, size: f, variant: p } = c({
|
|
10
|
+
props: s,
|
|
11
|
+
name: "MoniteApprovalStatusChip"
|
|
12
|
+
}), { i18n: m } = a(), h = e[l];
|
|
13
|
+
return /* @__PURE__ */ r(u, {
|
|
14
|
+
className: "Monite-ApprovalStatusChip",
|
|
15
|
+
ref: i,
|
|
16
|
+
color: t[l],
|
|
17
|
+
icon: d && h ? /* @__PURE__ */ r(h, { fontSize: "small" }) : /* @__PURE__ */ r(o, { sx: { fontSize: "10px" } }),
|
|
18
|
+
label: n(m)[l],
|
|
19
|
+
size: f,
|
|
20
|
+
status: l,
|
|
21
|
+
variant: p ?? "filled"
|
|
22
|
+
});
|
|
23
|
+
}, u = s(i, {
|
|
24
|
+
name: "MoniteApprovalStatusChip",
|
|
25
|
+
slot: "root",
|
|
26
|
+
shouldForwardProp: () => !0
|
|
27
|
+
})({});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { l as ApprovalStatusChip, u as StyledChip };
|
|
@@ -1,168 +1 @@
|
|
|
1
|
-
import { useMoniteContext as e } from "./index46.js";
|
|
2
|
-
import { getCounterpartName as t } from "./index52.js";
|
|
3
|
-
import { useDialog as n } from "./index234.js";
|
|
4
|
-
import "./index235.js";
|
|
5
|
-
import { useApprovalPolicyTrigger as r } from "./index271.js";
|
|
6
|
-
import { User as i } from "./index268.js";
|
|
7
|
-
import "./index269.js";
|
|
8
|
-
import { useApprovalPolicyScript as a } from "./index279.js";
|
|
9
|
-
import { Role as o } from "./index281.js";
|
|
10
|
-
import "./index282.js";
|
|
11
|
-
import { DialogFooter as s } from "./index303.js";
|
|
12
|
-
import "./index304.js";
|
|
13
|
-
import { DialogHeader as c } from "./index305.js";
|
|
14
1
|
import "./index320.js";
|
|
15
|
-
import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
|
|
16
|
-
import { toast as f } from "react-hot-toast";
|
|
17
|
-
import { Chip as p, DialogContent as m, Paper as h, Stack as g, Table as _, TableBody as v, TableCell as y, TableHead as b, TableRow as x, Typography as S } from "@mui/material";
|
|
18
|
-
import { Trans as C, useLingui as w } from "@lingui/react";
|
|
19
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js
|
|
20
|
-
var T = ({ approvalPolicy: T, setIsEdit: E }) => {
|
|
21
|
-
let { i18n: D } = w(), O = n(), { api: k, queryClient: A } = e(), { triggers: j, getTriggerLabel: M, getAmountLabel: N } = r({ approvalPolicy: T }), { rules: P, getRuleLabel: F } = a({ approvalPolicy: T }), { data: I } = k.finops.getTags.useQuery({ query: { id__in: Array.isArray(j?.tags) ? j.tags : [] } }, { enabled: !!j?.tags?.length }), { data: L } = k.finops.getCounterparts.useQuery({ query: { id__in: Array.isArray(j?.counterpart_id) ? j.counterpart_id : [] } }, { enabled: !!j?.counterpart_id?.length }), R = k.finops.deleteApprovalPoliciesId.useMutation(void 0, { onSuccess: async () => {
|
|
22
|
-
await Promise.all([k.finops.getApprovalPolicies.invalidateQueries(A), k.finops.getApprovalPoliciesId.invalidateQueries({ parameters: { path: { approval_policy_id: T.id } } }, A)]), f.success(D._("Approval policy has been deleted"));
|
|
23
|
-
} }), z = Object.keys(j).map((e) => {
|
|
24
|
-
let n = M(e), r;
|
|
25
|
-
switch (e) {
|
|
26
|
-
case "was_created_by_user_id":
|
|
27
|
-
Array.isArray(j[e]) && (r = /* @__PURE__ */ u(g, {
|
|
28
|
-
direction: "row",
|
|
29
|
-
gap: 1,
|
|
30
|
-
sx: { flexWrap: "wrap" },
|
|
31
|
-
children: j[e].map((e) => /* @__PURE__ */ u(i, { userId: e }, e))
|
|
32
|
-
}));
|
|
33
|
-
break;
|
|
34
|
-
case "tags":
|
|
35
|
-
r = /* @__PURE__ */ u(g, {
|
|
36
|
-
direction: "row",
|
|
37
|
-
gap: 1,
|
|
38
|
-
sx: { flexWrap: "wrap" },
|
|
39
|
-
children: I?.data.map((e) => /* @__PURE__ */ u(p, { label: e.name }, e.id))
|
|
40
|
-
});
|
|
41
|
-
break;
|
|
42
|
-
case "counterpart_id":
|
|
43
|
-
r = /* @__PURE__ */ u(g, {
|
|
44
|
-
direction: "row",
|
|
45
|
-
gap: 1,
|
|
46
|
-
sx: { flexWrap: "wrap" },
|
|
47
|
-
children: L?.data.map((e) => /* @__PURE__ */ u(p, { label: t(e) }, e.id))
|
|
48
|
-
});
|
|
49
|
-
break;
|
|
50
|
-
case "amount":
|
|
51
|
-
r = /* @__PURE__ */ u("p", { children: N(j.amount?.value ?? [], j.amount?.currency ?? "EUR") });
|
|
52
|
-
break;
|
|
53
|
-
default: r = e;
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
label: n,
|
|
57
|
-
value: r
|
|
58
|
-
};
|
|
59
|
-
}), B = P && Object.keys(P)?.map((e) => {
|
|
60
|
-
if (!P[e]) return null;
|
|
61
|
-
switch (e) {
|
|
62
|
-
case "single_user": return {
|
|
63
|
-
label: F(e),
|
|
64
|
-
value: /* @__PURE__ */ u(i, { userId: P[e].userId })
|
|
65
|
-
};
|
|
66
|
-
case "users_from_list": return {
|
|
67
|
-
label: F(e, P[e].count),
|
|
68
|
-
value: /* @__PURE__ */ u(g, {
|
|
69
|
-
direction: "column",
|
|
70
|
-
gap: 1,
|
|
71
|
-
sx: { flexWrap: "wrap" },
|
|
72
|
-
children: P[e].userIds?.map((e) => /* @__PURE__ */ u(i, { userId: e }, e))
|
|
73
|
-
})
|
|
74
|
-
};
|
|
75
|
-
case "roles_from_list": return {
|
|
76
|
-
label: F(e),
|
|
77
|
-
value: /* @__PURE__ */ u(g, {
|
|
78
|
-
direction: "row",
|
|
79
|
-
gap: 1,
|
|
80
|
-
sx: { flexWrap: "wrap" },
|
|
81
|
-
children: P[e].roleIds?.map((e) => /* @__PURE__ */ u(o, {
|
|
82
|
-
roleId: e,
|
|
83
|
-
quoted: !0
|
|
84
|
-
}, e))
|
|
85
|
-
})
|
|
86
|
-
};
|
|
87
|
-
case "approval_chain": return {
|
|
88
|
-
label: F(e),
|
|
89
|
-
value: /* @__PURE__ */ u(g, {
|
|
90
|
-
direction: "column",
|
|
91
|
-
spacing: .5,
|
|
92
|
-
children: P[e].chainUserIds?.map((e) => e ? /* @__PURE__ */ u(i, { userId: e }, e) : null)
|
|
93
|
-
})
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
return /* @__PURE__ */ d(l, { children: [
|
|
98
|
-
/* @__PURE__ */ u(c, {
|
|
99
|
-
title: T?.name,
|
|
100
|
-
closeButtonTooltip: D._("Close approval policy details")
|
|
101
|
-
}),
|
|
102
|
-
/* @__PURE__ */ d(m, { children: [
|
|
103
|
-
/* @__PURE__ */ u(S, {
|
|
104
|
-
variant: "h5",
|
|
105
|
-
mt: 2,
|
|
106
|
-
mb: 1,
|
|
107
|
-
children: D._("Description")
|
|
108
|
-
}),
|
|
109
|
-
T?.description && /* @__PURE__ */ u(S, {
|
|
110
|
-
variant: "body1",
|
|
111
|
-
children: T.description
|
|
112
|
-
}),
|
|
113
|
-
/* @__PURE__ */ u(S, {
|
|
114
|
-
variant: "h5",
|
|
115
|
-
mt: 4,
|
|
116
|
-
mb: 1,
|
|
117
|
-
children: D._("Conditions")
|
|
118
|
-
}),
|
|
119
|
-
/* @__PURE__ */ u(S, {
|
|
120
|
-
variant: "body1",
|
|
121
|
-
mb: 1,
|
|
122
|
-
children: /* @__PURE__ */ u(C, {
|
|
123
|
-
id: "INKhSX",
|
|
124
|
-
components: { 0: /* @__PURE__ */ u("strong", {}) }
|
|
125
|
-
})
|
|
126
|
-
}),
|
|
127
|
-
/* @__PURE__ */ u(h, {
|
|
128
|
-
variant: "outlined",
|
|
129
|
-
children: /* @__PURE__ */ d(_, { children: [/* @__PURE__ */ u(b, { children: /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: D._("Condition") }), /* @__PURE__ */ u(y, { children: D._("Criteria") })] }) }), /* @__PURE__ */ u(v, { children: z.length > 0 ? z.map((e) => /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: e.label }), /* @__PURE__ */ u(y, { children: e.value })] }, e.label)) : /* @__PURE__ */ u(x, { children: /* @__PURE__ */ u(y, {
|
|
130
|
-
colSpan: 2,
|
|
131
|
-
children: D._("No conditions")
|
|
132
|
-
}) }) })] })
|
|
133
|
-
}),
|
|
134
|
-
/* @__PURE__ */ u(S, {
|
|
135
|
-
variant: "h5",
|
|
136
|
-
mt: 4,
|
|
137
|
-
mb: 1,
|
|
138
|
-
children: D._("Approval flow")
|
|
139
|
-
}),
|
|
140
|
-
/* @__PURE__ */ u(S, {
|
|
141
|
-
variant: "body1",
|
|
142
|
-
mb: 1,
|
|
143
|
-
children: D._("Who needs to approve the document and how:")
|
|
144
|
-
}),
|
|
145
|
-
/* @__PURE__ */ u(h, {
|
|
146
|
-
variant: "outlined",
|
|
147
|
-
children: /* @__PURE__ */ d(_, { children: [/* @__PURE__ */ u(b, { children: /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: D._("Approval type") }), /* @__PURE__ */ u(y, { children: D._("Users or Roles") })] }) }), /* @__PURE__ */ u(v, { children: B && B.length > 0 ? B.map((e) => /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: e?.label }), /* @__PURE__ */ u(y, { children: e?.value })] }, e?.label)) : /* @__PURE__ */ u(x, { children: /* @__PURE__ */ u(y, {
|
|
148
|
-
colSpan: 2,
|
|
149
|
-
children: D._("No rules")
|
|
150
|
-
}) }) })] })
|
|
151
|
-
})
|
|
152
|
-
] }),
|
|
153
|
-
/* @__PURE__ */ u(s, {
|
|
154
|
-
primaryButton: {
|
|
155
|
-
label: D._("Edit"),
|
|
156
|
-
onClick: () => E(!0)
|
|
157
|
-
},
|
|
158
|
-
deleteButton: {
|
|
159
|
-
onClick: () => {
|
|
160
|
-
R.mutate({ path: { approval_policy_id: T.id } }, { onSuccess: () => O?.onClose?.() });
|
|
161
|
-
},
|
|
162
|
-
isLoading: R.isPending
|
|
163
|
-
}
|
|
164
|
-
})
|
|
165
|
-
] });
|
|
166
|
-
};
|
|
167
|
-
//#endregion
|
|
168
|
-
export { T as ApprovalPolicyView };
|
|
@@ -1 +1,93 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { getSharedApprovalRuleLabel as e, getUsersFromListLabel as t } from "./index274.js";
|
|
2
|
+
import { isRoleApprovalCall as n } from "./index277.js";
|
|
3
|
+
import "./index278.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js
|
|
5
|
+
var r = {
|
|
6
|
+
REQUEST_APPROVAL_BY_USERS: "ApprovalRequests.request_approval_by_users",
|
|
7
|
+
REQUEST_APPROVAL_BY_ROLES: "ApprovalRequests.request_approval_by_roles"
|
|
8
|
+
}, i = (e) => {
|
|
9
|
+
switch (e) {
|
|
10
|
+
case "approved": return "waiting_to_be_paid";
|
|
11
|
+
case "rejected": return "rejected";
|
|
12
|
+
case "canceled": return "canceled";
|
|
13
|
+
default: return "approve_in_progress";
|
|
14
|
+
}
|
|
15
|
+
}, a = (e) => e.find((e) => e.call === r.REQUEST_APPROVAL_BY_USERS), o = (e) => e.find((e) => n(e.call)), s = (e, t, n = !1) => e.filter((e) => e.user_ids?.length ? n ? e.user_ids.some((e) => t.includes(e)) : t.every((t) => e.user_ids.includes(t)) : !1), c = (e, t) => e.filter((e) => e.role_ids?.some((e) => t.includes(e))), l = (n, r, i) => {
|
|
16
|
+
if (n?.params) {
|
|
17
|
+
let { user_ids: r, required_approval_count: a } = n.params;
|
|
18
|
+
return r?.length === 1 ? e.singleUser(i) : t(i, a);
|
|
19
|
+
}
|
|
20
|
+
return r?.params ? e.anyUserWithRole(i) : "";
|
|
21
|
+
}, u = (e) => e ? e.call && e.params ? [e] : Array.isArray(e.all) ? e.all.flatMap(u) : e.if ? u(e.if) : [] : [], d = (e) => e.flatMap(u), f = (e) => {
|
|
22
|
+
let t = [];
|
|
23
|
+
if (e.all) t.push(...e.all);
|
|
24
|
+
else if (e.if) {
|
|
25
|
+
let n = e.if;
|
|
26
|
+
n.all ? t.push(...n.all) : t.push(n);
|
|
27
|
+
}
|
|
28
|
+
return t;
|
|
29
|
+
}, p = (e) => e ? e.call && e.params ? [e] : Array.isArray(e.all) ? e.all.flatMap(p) : Array.isArray(e) ? e.flatMap(p) : [] : [], m = (e) => e.length === 0 || e.some((e) => e.status === "waiting") ? "waiting" : e.every((e) => e.status === "approved") ? "approved" : e.some((e) => e.status === "rejected") ? "rejected" : "waiting", h = (e, t, n) => ({
|
|
30
|
+
stepNumber: t,
|
|
31
|
+
type: n,
|
|
32
|
+
assignee: void 0,
|
|
33
|
+
assignees: e.assignees,
|
|
34
|
+
status: e.stepStatus,
|
|
35
|
+
payableStatus: i(e.stepStatus),
|
|
36
|
+
actualAssignees: e.actualAssignees,
|
|
37
|
+
hasActiveRequests: e.relatedRequests.length > 0,
|
|
38
|
+
requestIds: e.relatedRequests.map((e) => e.id),
|
|
39
|
+
approvalRequestId: e.approvalRequestId,
|
|
40
|
+
approvedBy: e.approvedBy,
|
|
41
|
+
objectId: e.objectId,
|
|
42
|
+
rejectedBy: e.rejectedBy,
|
|
43
|
+
requiredApprovalCount: e.requiredApprovalCount
|
|
44
|
+
}), g = (e, t, n, r) => {
|
|
45
|
+
let a = m(t);
|
|
46
|
+
return {
|
|
47
|
+
stepNumber: n,
|
|
48
|
+
type: r,
|
|
49
|
+
assignee: void 0,
|
|
50
|
+
assignees: e,
|
|
51
|
+
status: a,
|
|
52
|
+
payableStatus: i(a),
|
|
53
|
+
actualAssignees: e,
|
|
54
|
+
hasActiveRequests: t.length > 0,
|
|
55
|
+
requestIds: t.map((e) => e.id),
|
|
56
|
+
approvalRequestId: t[0]?.id,
|
|
57
|
+
approvedBy: t.flatMap((e) => e.approved_by || []),
|
|
58
|
+
objectId: t[0]?.object_id,
|
|
59
|
+
rejectedBy: t.find((e) => e.rejected_by)?.rejected_by,
|
|
60
|
+
requiredApprovalCount: t.reduce((e, t) => e + t.required_approval_count, 0)
|
|
61
|
+
};
|
|
62
|
+
}, _ = (e, t) => {
|
|
63
|
+
let n = e.flatMap((e) => e.params?.user_ids || []);
|
|
64
|
+
return {
|
|
65
|
+
allChainUserIds: n,
|
|
66
|
+
allChainRequests: t.filter((e) => e.user_ids?.length && n.some((t) => e.user_ids.includes(t)))
|
|
67
|
+
};
|
|
68
|
+
}, v = (e) => {
|
|
69
|
+
let t = [];
|
|
70
|
+
if (e.all) t.push(...e.all);
|
|
71
|
+
else if (e.if) {
|
|
72
|
+
let n = e.if;
|
|
73
|
+
n.all ? t.push(...n.all) : t.push(n);
|
|
74
|
+
}
|
|
75
|
+
return t;
|
|
76
|
+
}, y = (e, t) => {
|
|
77
|
+
let i = e.call === r.REQUEST_APPROVAL_BY_USERS ? e : void 0, a = [];
|
|
78
|
+
i?.params?.user_ids && (a = i.params.user_ids);
|
|
79
|
+
let o = n(e.call) ? c(t, e.params?.role_ids ?? []) : s(t, a, !0), l = o.flatMap((e) => e.user_ids || []), u = [...new Set(l)], d = o.length ? o[0].status : "waiting", f = o.find((e) => e.status !== "waiting"), p = o.flatMap((e) => e.approved_by || []), m = [...new Set(p)];
|
|
80
|
+
return {
|
|
81
|
+
assignees: a,
|
|
82
|
+
actualAssignees: u,
|
|
83
|
+
relatedRequests: o,
|
|
84
|
+
stepStatus: d,
|
|
85
|
+
approvalRequestId: f?.id,
|
|
86
|
+
approvedBy: m.length > 0 ? m : void 0,
|
|
87
|
+
objectId: f?.object_id || e.params?.object_id,
|
|
88
|
+
rejectedBy: f?.rejected_by,
|
|
89
|
+
requiredApprovalCount: e.params?.required_approval_count || f?.required_approval_count || 1
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
//#endregion
|
|
93
|
+
export { r as APPROVAL_CALL_TYPES, m as calculateIntegralStatus, h as createBaseApprovalStep, g as createChainApprovalStep, u as extractApprovalCalls, p as extractApprovalCallsForTable, v as extractItemsFromScriptStep, f as extractStructureItemsFromScriptStep, c as filterRequestsByRoles, s as filterRequestsByUsers, o as findRoleApprovalCall, a as findUserApprovalCall, l as getApprovalRuleLabel, i as mapApprovalStatusToPayableStatus, d as processApprovalStructure, _ as processChainApprovalCalls, y as resolveStepForCall };
|
|
@@ -1,27 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index144.js";
|
|
3
|
-
import { LoadingPage as t } from "./index264.js";
|
|
4
|
-
import "./index265.js";
|
|
5
|
-
import { ApprovalPolicyForm as n } from "./index318.js";
|
|
6
|
-
import "./index319.js";
|
|
7
|
-
import { ApprovalPolicyView as r } from "./index321.js";
|
|
8
|
-
import "./index322.js";
|
|
9
|
-
import { useState as i } from "react";
|
|
10
|
-
import { jsx as a } from "@emotion/react/jsx-runtime";
|
|
1
|
+
import { createElement as e } from "react";
|
|
11
2
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
onUpdated: c
|
|
21
|
-
}) : /* @__PURE__ */ a(n, {
|
|
22
|
-
setIsEdit: u,
|
|
23
|
-
onCreated: s
|
|
24
|
-
});
|
|
25
|
-
};
|
|
3
|
+
var t = ({ color: t = "currentColor", size: n, ...r }) => e("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: n,
|
|
6
|
+
height: n,
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
fill: t,
|
|
9
|
+
...r
|
|
10
|
+
}, e("path", { d: "M14,8h1a1,1,0,0,0,0-2H14a1,1,0,0,0,0,2Zm0,4h1a1,1,0,0,0,0-2H14a1,1,0,0,0,0,2ZM9,8h1a1,1,0,0,0,0-2H9A1,1,0,0,0,9,8Zm0,4h1a1,1,0,0,0,0-2H9a1,1,0,0,0,0,2Zm12,8H20V3a1,1,0,0,0-1-1H5A1,1,0,0,0,4,3V20H3a1,1,0,0,0,0,2H21a1,1,0,0,0,0-2Zm-8,0H11V16h2Zm5,0H15V15a1,1,0,0,0-1-1H10a1,1,0,0,0-1,1v5H6V4H18Z" }));
|
|
26
11
|
//#endregion
|
|
27
|
-
export {
|
|
12
|
+
export { t as UBuilding };
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import { createElement as e } from "react";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js
|
|
3
|
+
var t = ({ color: t = "currentColor", size: n, ...r }) => e("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: n,
|
|
6
|
+
height: n,
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
fill: t,
|
|
9
|
+
...r
|
|
10
|
+
}, e("path", { d: "M6,11a1,1,0,1,0,1,1A1,1,0,0,0,6,11Zm12,0a1,1,0,1,0,1,1A1,1,0,0,0,18,11Zm2-6H4A3,3,0,0,0,1,8v8a3,3,0,0,0,3,3H20a3,3,0,0,0,3-3V8A3,3,0,0,0,20,5Zm1,11a1,1,0,0,1-1,1H4a1,1,0,0,1-1-1V8A1,1,0,0,1,4,7H20a1,1,0,0,1,1,1ZM12,9a3,3,0,1,0,3,3A3,3,0,0,0,12,9Zm0,4a1,1,0,1,1,1-1A1,1,0,0,1,12,13Z" }));
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as UMoneyBill };
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useApprovalPolicyTrigger as e } from "./index271.js";
|
|
2
|
+
import { UUserCircle as t } from "./index316.js";
|
|
3
|
+
import { ColumnList as n } from "./index318.js";
|
|
4
|
+
import { UBuilding as r } from "./index323.js";
|
|
5
|
+
import { UMoneyBill as i } from "./index324.js";
|
|
6
|
+
import { jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
2
7
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var s = ({ approvalPolicy: s }) => {
|
|
9
|
+
let { triggers: c, getTriggerName: l } = e({ approvalPolicy: s });
|
|
10
|
+
return s ? /* @__PURE__ */ a(n, { children: Object.keys(c).map((e) => {
|
|
11
|
+
switch (e) {
|
|
12
|
+
case "amount": return /* @__PURE__ */ o("li", { children: [/* @__PURE__ */ a(i, { width: 18 }), l(e)] }, e);
|
|
13
|
+
case "was_created_by_user_id": return /* @__PURE__ */ o("li", { children: [/* @__PURE__ */ a(t, { width: 18 }), l(e)] }, e);
|
|
14
|
+
case "counterpart_id": return /* @__PURE__ */ o("li", { children: [/* @__PURE__ */ a(r, { width: 18 }), l(e)] }, e);
|
|
15
|
+
default: return null;
|
|
16
|
+
}
|
|
17
|
+
}) }) : null;
|
|
18
|
+
};
|
|
11
19
|
//#endregion
|
|
12
|
-
export {
|
|
20
|
+
export { s as ApprovalPoliciesTriggers };
|
|
@@ -1,12 +1,77 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Combobox as e, DatePicker as t, SearchInput as n } from "../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { useMoniteContext as r } from "./index46.js";
|
|
3
|
+
import { useRootElements as i } from "./index211.js";
|
|
4
|
+
import "./index212.js";
|
|
5
|
+
import { useDebounce as a, useDebounceCallback as o } from "./index218.js";
|
|
6
|
+
import { FILTER_TYPE_CREATED_AT as s, FILTER_TYPE_CREATED_BY as c, FILTER_TYPE_SEARCH as l } from "./index276.js";
|
|
7
|
+
import { useMemo as u, useState as d } from "react";
|
|
8
|
+
import { X as f } from "lucide-react";
|
|
9
|
+
import { jsx as p, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
10
|
+
import { useLingui as h } from "@lingui/react";
|
|
2
11
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
12
|
+
var g = 500, _ = (e) => {
|
|
13
|
+
let t = `${e.first_name ?? ""} ${e.last_name ?? ""}`.trim();
|
|
14
|
+
return t && e.email ? `${t} (${e.email})` : t || e.email || e.id;
|
|
15
|
+
}, v = ({ onChange: t }) => {
|
|
16
|
+
let { i18n: n } = h(), { api: i } = r(), [o, s] = d(null), [c, l] = d(""), f = a(c, g), { data: m } = i.finops.getEntityUsers.useQuery({ query: { name__istartswith: f || void 0 } }), v = u(() => m?.data ?? [], [m]), y = u(() => v.map((e) => ({
|
|
17
|
+
value: e.id,
|
|
18
|
+
label: _(e)
|
|
19
|
+
})), [v]), b = u(() => !o || y.some((e) => e.value === o.value) ? y : [o, ...y], [y, o]);
|
|
20
|
+
return /* @__PURE__ */ p(e, {
|
|
21
|
+
items: b,
|
|
22
|
+
value: o?.value ?? "",
|
|
23
|
+
labels: {
|
|
24
|
+
placeholder: n._("Added by"),
|
|
25
|
+
emptyMessage: n._("No users found"),
|
|
26
|
+
clearAriaLabel: n._("Clear selection")
|
|
27
|
+
},
|
|
28
|
+
onQueryChange: l,
|
|
29
|
+
onValueChange: (e) => {
|
|
30
|
+
let n = Array.isArray(e) ? e[0] ?? "" : e ?? "";
|
|
31
|
+
s(b.find((e) => e.value === n) ?? null), t(n || void 0);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}, y = ({ onChangeFilter: e }) => {
|
|
35
|
+
let { i18n: r } = h(), { root: a } = i(), [u, _] = d(void 0), y = o((t) => {
|
|
36
|
+
e(l, t.trim() ? t : null);
|
|
37
|
+
}, g);
|
|
38
|
+
return /* @__PURE__ */ m("div", {
|
|
39
|
+
className: "ttw:flex ttw:items-center ttw:gap-3 ttw:px-2 ttw:py-2",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ p("div", {
|
|
42
|
+
className: "ttw:flex-1",
|
|
43
|
+
children: /* @__PURE__ */ p(n, {
|
|
44
|
+
placeholder: r._("Search"),
|
|
45
|
+
className: "ttw:h-9 ttw:w-full",
|
|
46
|
+
onChange: (e) => y(e.target.value)
|
|
47
|
+
})
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ p("div", {
|
|
50
|
+
className: "ttw:w-48 ttw:shrink-0",
|
|
51
|
+
children: /* @__PURE__ */ p(v, { onChange: (t) => e(c, t ?? null) })
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ m("div", {
|
|
54
|
+
className: "ttw:relative ttw:w-44 ttw:shrink-0",
|
|
55
|
+
children: [/* @__PURE__ */ p(t, {
|
|
56
|
+
value: u,
|
|
57
|
+
placeholder: r._("Created at"),
|
|
58
|
+
className: `ttw:h-9 ttw:border-border${u ? " ttw:pr-8" : ""}`,
|
|
59
|
+
container: a,
|
|
60
|
+
onChange: (t) => {
|
|
61
|
+
_(t), e(s, t ?? null);
|
|
62
|
+
}
|
|
63
|
+
}), u ? /* @__PURE__ */ p("button", {
|
|
64
|
+
type: "button",
|
|
65
|
+
"aria-label": r._("Clear created at filter"),
|
|
66
|
+
className: "ttw:absolute ttw:right-2 ttw:top-1/2 ttw:inline-flex ttw:size-4 ttw:-translate-y-1/2 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-sm ttw:text-muted-foreground ttw:opacity-70 hover:ttw:opacity-100",
|
|
67
|
+
onClick: () => {
|
|
68
|
+
_(void 0), e(s, null);
|
|
69
|
+
},
|
|
70
|
+
children: /* @__PURE__ */ p(f, { className: "ttw:size-3.5" })
|
|
71
|
+
}) : null]
|
|
72
|
+
})
|
|
73
|
+
]
|
|
74
|
+
});
|
|
75
|
+
};
|
|
11
76
|
//#endregion
|
|
12
|
-
export {
|
|
77
|
+
export { y as Filters };
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js
|
|
3
|
-
var t = ({ color: t = "currentColor", size: n, ...r }) => e("svg", {
|
|
4
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
-
width: n,
|
|
6
|
-
height: n,
|
|
7
|
-
viewBox: "0 0 24 24",
|
|
8
|
-
fill: t,
|
|
9
|
-
...r
|
|
10
|
-
}, e("path", { d: "M12.3,12.22A4.92,4.92,0,0,0,14,8.5a5,5,0,0,0-10,0,4.92,4.92,0,0,0,1.7,3.72A8,8,0,0,0,1,19.5a1,1,0,0,0,2,0,6,6,0,0,1,12,0,1,1,0,0,0,2,0A8,8,0,0,0,12.3,12.22ZM9,11.5a3,3,0,1,1,3-3A3,3,0,0,1,9,11.5Zm9.74.32A5,5,0,0,0,15,3.5a1,1,0,0,0,0,2,3,3,0,0,1,3,3,3,3,0,0,1-1.5,2.59,1,1,0,0,0-.5.84,1,1,0,0,0,.45.86l.39.26.13.07a7,7,0,0,1,4,6.38,1,1,0,0,0,2,0A9,9,0,0,0,18.74,11.82Z" }));
|
|
11
|
-
//#endregion
|
|
12
|
-
export { t as UUsersAlt };
|
|
1
|
+
import "./index326.js";
|
|
@@ -1,18 +1,128 @@
|
|
|
1
|
-
import e from "
|
|
1
|
+
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../shared/data-access/dist/index.js";
|
|
3
|
+
import { useMoniteContext as t } from "./index46.js";
|
|
4
|
+
import { MoniteScopedProviders as n } from "./index241.js";
|
|
5
|
+
import { useUserPermissions as r } from "./index118.js";
|
|
6
|
+
import { GetNoRowsOverlay as i } from "./index250.js";
|
|
7
|
+
import { AccessRestriction as a } from "./index251.js";
|
|
8
|
+
import "./index253.js";
|
|
9
|
+
import { DataTable as o } from "./index255.js";
|
|
10
|
+
import { hasSelectedText as s } from "./index256.js";
|
|
11
|
+
import { User as c } from "./index268.js";
|
|
12
|
+
import "./index269.js";
|
|
13
|
+
import { FILTER_TYPE_CREATED_AT as l, FILTER_TYPE_SEARCH as u } from "./index276.js";
|
|
14
|
+
import { ApprovalPoliciesRules as d } from "./index319.js";
|
|
15
|
+
import { ApprovalStatusChip as f } from "./index320.js";
|
|
16
|
+
import "./index321.js";
|
|
17
|
+
import { extractApprovalCallsForTable as p } from "./index322.js";
|
|
18
|
+
import { ApprovalPoliciesTriggers as m } from "./index325.js";
|
|
19
|
+
import { Filters as h } from "./index326.js";
|
|
20
|
+
import "./index327.js";
|
|
21
|
+
import { useMemo as g, useState as _ } from "react";
|
|
22
|
+
import { addDays as v, formatISO as y } from "date-fns";
|
|
23
|
+
import { jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
|
|
24
|
+
import { useLingui as S } from "@lingui/react";
|
|
2
25
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
})
|
|
26
|
+
var C = (e) => /* @__PURE__ */ b(n, { children: /* @__PURE__ */ b(w, { ...e }) }), w = ({ onChangeFilter: n, onRowClick: C, onCreateClick: w }) => {
|
|
27
|
+
let { i18n: T } = S(), { api: E, locale: D, componentSettings: O } = t(), [k, A] = _(void 0), [j, M] = _(O.approvalPolicies.pageSizeOptions[0]), [N, P] = _({}), F = r().has(e.ApprovalPolicyReadOrg), { data: I, isLoading: L, isError: R, refetch: z } = E.finops.getApprovalPolicies.useQuery({ query: {
|
|
28
|
+
limit: j,
|
|
29
|
+
name__ncontains: N.search ?? void 0,
|
|
30
|
+
created_by: N.created_by ?? void 0,
|
|
31
|
+
pagination_token: k,
|
|
32
|
+
created_at__gte: N.created_at ? y(N[l]) : void 0,
|
|
33
|
+
created_at__lte: N.created_at ? y(v(N[l], 1)) : void 0,
|
|
34
|
+
object_type: "payable"
|
|
35
|
+
} }), B = (e, t) => {
|
|
36
|
+
A(void 0), P((n) => ({
|
|
37
|
+
...n,
|
|
38
|
+
[e]: t === "all" ? null : t
|
|
39
|
+
})), n?.({
|
|
40
|
+
field: e,
|
|
41
|
+
value: t
|
|
42
|
+
});
|
|
43
|
+
}, V = [], H = () => {}, U = g(() => [
|
|
44
|
+
{
|
|
45
|
+
accessorKey: "name",
|
|
46
|
+
header: T._("Policy name")
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: "triggers",
|
|
50
|
+
header: T._("Conditions"),
|
|
51
|
+
cell: ({ row: e }) => /* @__PURE__ */ b(m, { approvalPolicy: e.original })
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: "approvals",
|
|
55
|
+
header: T._("Approvals"),
|
|
56
|
+
cell: ({ row: e }) => {
|
|
57
|
+
let t = (e.original.script?.[0])?.if?.all;
|
|
58
|
+
if (!t) return /* @__PURE__ */ x("span", { children: [
|
|
59
|
+
T._("N/A"),
|
|
60
|
+
" ",
|
|
61
|
+
T._("approvals required")
|
|
62
|
+
] });
|
|
63
|
+
let n = p(t).reduce((e, t) => e + (t.params?.required_approval_count || 0), 0) || T._("N/A");
|
|
64
|
+
return /* @__PURE__ */ x("span", { children: [
|
|
65
|
+
n,
|
|
66
|
+
" ",
|
|
67
|
+
T._("approvals required")
|
|
68
|
+
] });
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: "rule",
|
|
73
|
+
header: T._("Flow"),
|
|
74
|
+
cell: ({ row: e }) => /* @__PURE__ */ b(d, { approvalPolicy: e.original })
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: "status",
|
|
78
|
+
header: T._("Status"),
|
|
79
|
+
cell: ({ row: e }) => /* @__PURE__ */ b(f, { status: e.original.status })
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
accessorKey: "created_at",
|
|
83
|
+
header: T._("Created at"),
|
|
84
|
+
cell: ({ row: e }) => /* @__PURE__ */ b("span", { children: T.date(e.original.created_at, D.dateFormat) })
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
accessorKey: "created_by",
|
|
88
|
+
header: T._("Created by"),
|
|
89
|
+
cell: ({ row: e }) => /* @__PURE__ */ b(c, { userId: e.original.created_by })
|
|
90
|
+
}
|
|
91
|
+
], [T, D.dateFormat]);
|
|
92
|
+
if (!F) return /* @__PURE__ */ b(a, {});
|
|
93
|
+
let W = Object.keys(N).some((e) => N[e] !== null && N[e] !== void 0), G = !!N[u];
|
|
94
|
+
return /* @__PURE__ */ b("div", {
|
|
95
|
+
className: "ttw:flex ttw:flex-col ttw:overflow-hidden ttw:min-h-125",
|
|
96
|
+
children: /* @__PURE__ */ b(o, {
|
|
97
|
+
columns: U,
|
|
98
|
+
data: I?.data ?? [],
|
|
99
|
+
sorting: V,
|
|
100
|
+
onSortingChange: H,
|
|
101
|
+
pageSize: j,
|
|
102
|
+
onPageSizeChange: M,
|
|
103
|
+
nextPaginationToken: I?.next_pagination_token ?? void 0,
|
|
104
|
+
prevPaginationToken: I?.prev_pagination_token ?? void 0,
|
|
105
|
+
onPaginationTokenChange: A,
|
|
106
|
+
onRowClick: (e) => {
|
|
107
|
+
s() || C?.(e.id);
|
|
108
|
+
},
|
|
109
|
+
filterComponent: /* @__PURE__ */ b(h, { onChangeFilter: B }),
|
|
110
|
+
children: /* @__PURE__ */ b(i, {
|
|
111
|
+
noDataTitle: T._("No Approval Policies"),
|
|
112
|
+
noDataDescription1: T._("You don't have any approval policies yet."),
|
|
113
|
+
filterTitle: T._("No Approval Policies Found"),
|
|
114
|
+
isLoading: L,
|
|
115
|
+
dataLength: I?.data.length || 0,
|
|
116
|
+
isFiltering: W,
|
|
117
|
+
isSearching: G,
|
|
118
|
+
isError: R,
|
|
119
|
+
onCreate: () => w?.(),
|
|
120
|
+
refetch: z,
|
|
121
|
+
entityName: T._("Approval Policies"),
|
|
122
|
+
actionButtonLabel: T._("Create")
|
|
123
|
+
})
|
|
124
|
+
})
|
|
125
|
+
});
|
|
126
|
+
};
|
|
17
127
|
//#endregion
|
|
18
|
-
export {
|
|
128
|
+
export { C as ApprovalPoliciesTable };
|