@tesouro/embedded-components-react 0.2.241 → 0.2.243
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/README.md +29 -7
- package/dist/experimental/EntryPointProbe.d.ts +22 -0
- package/dist/experimental/EntryPointProbe.js +9 -0
- package/dist/experimental/index.d.ts +22 -0
- package/dist/experimental/index.js +2 -0
- package/dist/lib/monite-sdk.js +55 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.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 +56 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +4 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +7 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +75 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +20 -445
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +445 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +2 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +38 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +76 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +62 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +0 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +28 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +43 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +48 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +110 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +5 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +98 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +206 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +155 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +51 -290
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +299 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +68 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +1 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +24 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +74 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +90 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +1 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +8 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +17 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +56 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +13 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +55 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +7 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +51 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +38 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +73 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +2 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +79 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +1 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +56 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +9 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +21 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +50 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +61 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +48 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +169 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +0 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +82 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +29 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +1 -598
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +598 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +1 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +167 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +19 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +1 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +91 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +18 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +75 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +0 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +127 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +11 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +56 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +62 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +120 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +21 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +6 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +34 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +7 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +53 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +71 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +28 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +1 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +57 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +18 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +185 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +3 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +61 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +28 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +8 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +29 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +44 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +18 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +20 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +4 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +113 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +66 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +0 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +199 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +9 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +42 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +5 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +6 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +17 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +5 -423
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +425 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +18 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +91 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +2 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +187 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +102 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +53 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +10 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +60 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +44 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +48 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +83 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +21 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +45 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +0 -347
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +347 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +1 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +1 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +34 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +33 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +3 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +88 -170
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +169 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +114 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +206 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +14 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +0 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +255 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +32 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +142 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +0 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +166 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +26 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +8 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +59 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +35 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +151 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +69 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +14 -218
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +214 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +42 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +0 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +76 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +103 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +163 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +5 -313
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +310 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +83 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +190 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +28 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +84 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +132 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +37 -447
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +447 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +16 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +78 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +142 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +34 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +62 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +67 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +140 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +58 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +85 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +14 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +18 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +98 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +43 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +30 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +8 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +102 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +36 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +44 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +67 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +23 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +156 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +134 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +125 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +63 -232
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +248 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +8 -463
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +443 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +13 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +51 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +13 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +39 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +142 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +112 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +33 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +32 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +20 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +73 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +18 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +149 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +136 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +31 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +115 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +10 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +13 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +21 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +26 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +36 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +77 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +50 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +34 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +86 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +1 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +0 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +129 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +105 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +48 -779
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +780 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +84 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +105 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +6 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +23 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +14 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +163 -200
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +204 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +82 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +17 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +146 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +95 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +46 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +4 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +13 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +27 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +0 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +186 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +0 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +42 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +5 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +20 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +74 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +19 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +11 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +129 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +4 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +219 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +12 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +32 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +168 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +192 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +97 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +63 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +46 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +91 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +39 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +63 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +1 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +9 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +6 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +66 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +104 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +72 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +144 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +14 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +91 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +3 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +22 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +71 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +0 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +66 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +27 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +33 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +29 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +2 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +2 -2
- 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/package.json +11 -1
|
@@ -1,93 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { isRoleApprovalCall as n } from "./index261.js";
|
|
3
|
-
import "./index262.js";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index316.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
|
+
import "./index315.js";
|
|
@@ -1,12 +1,93 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getSharedApprovalRuleLabel as e, getUsersFromListLabel as t } from "./index259.js";
|
|
2
|
+
import { isRoleApprovalCall as n } from "./index262.js";
|
|
3
|
+
import "./index263.js";
|
|
2
4
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
+
};
|
|
11
92
|
//#endregion
|
|
12
|
-
export {
|
|
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 };
|
|
@@ -7,6 +7,6 @@ var t = ({ color: t = "currentColor", size: n, ...r }) => e("svg", {
|
|
|
7
7
|
viewBox: "0 0 24 24",
|
|
8
8
|
fill: t,
|
|
9
9
|
...r
|
|
10
|
-
}, e("path", { d: "
|
|
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" }));
|
|
11
11
|
//#endregion
|
|
12
|
-
export { t as
|
|
12
|
+
export { t as UBuilding };
|
|
@@ -7,6 +7,6 @@ var t = ({ color: t = "currentColor", size: n, ...r }) => e("svg", {
|
|
|
7
7
|
viewBox: "0 0 24 24",
|
|
8
8
|
fill: t,
|
|
9
9
|
...r
|
|
10
|
-
}, e("path", { d: "
|
|
10
|
+
}, e("path", { d: "M21.71,11.29l-5-5A1,1,0,0,0,16,6H5A3,3,0,0,0,2,9v6a3,3,0,0,0,3,3H16a1,1,0,0,0,.71-.29l5-5A1,1,0,0,0,21.71,11.29ZM15.59,16H5a1,1,0,0,1-1-1V9A1,1,0,0,1,5,8H15.59l4,4Z" }));
|
|
11
11
|
//#endregion
|
|
12
|
-
export { t as
|
|
12
|
+
export { t as ULabel };
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UUserCircle as t } from "./index310.js";
|
|
3
|
-
import { ColumnList as n } from "./index312.js";
|
|
4
|
-
import { UBuilding as r } from "./index317.js";
|
|
5
|
-
import { ULabel as i } from "./index318.js";
|
|
6
|
-
import { UMoneyBill as a } from "./index319.js";
|
|
7
|
-
import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
1
|
+
import { createElement as e } from "react";
|
|
8
2
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
default: return null;
|
|
18
|
-
}
|
|
19
|
-
}) }) : null;
|
|
20
|
-
};
|
|
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" }));
|
|
21
11
|
//#endregion
|
|
22
|
-
export {
|
|
12
|
+
export { t as UMoneyBill };
|
|
@@ -1,75 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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";
|
|
1
|
+
import { useApprovalPolicyTrigger as e } from "./index256.js";
|
|
2
|
+
import { UUserCircle as t } from "./index311.js";
|
|
3
|
+
import { ColumnList as n } from "./index313.js";
|
|
4
|
+
import { UBuilding as r } from "./index318.js";
|
|
5
|
+
import { ULabel as i } from "./index319.js";
|
|
6
|
+
import { UMoneyBill as a } from "./index320.js";
|
|
7
|
+
import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
11
8
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js
|
|
12
|
-
var
|
|
13
|
-
let
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
items: b,
|
|
22
|
-
value: o?.value ?? "",
|
|
23
|
-
placeholder: n._("Added by"),
|
|
24
|
-
emptyMessage: n._("No users found"),
|
|
25
|
-
clearAriaLabel: n._("Clear selection"),
|
|
26
|
-
onQueryChange: l,
|
|
27
|
-
onValueChange: (e) => {
|
|
28
|
-
let n = Array.isArray(e) ? e[0] ?? "" : e ?? "";
|
|
29
|
-
s(b.find((e) => e.value === n) ?? null), t(n || void 0);
|
|
9
|
+
var c = ({ approvalPolicy: c }) => {
|
|
10
|
+
let { triggers: l, getTriggerName: u } = e({ approvalPolicy: c });
|
|
11
|
+
return c ? /* @__PURE__ */ o(n, { children: Object.keys(l).map((e) => {
|
|
12
|
+
switch (e) {
|
|
13
|
+
case "amount": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(a, { width: 18 }), u(e)] }, e);
|
|
14
|
+
case "was_created_by_user_id": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(t, { width: 18 }), u(e)] }, e);
|
|
15
|
+
case "counterpart_id": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(r, { width: 18 }), u(e)] }, e);
|
|
16
|
+
case "tags": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(i, { width: 18 }), u(e)] }, e);
|
|
17
|
+
default: return null;
|
|
30
18
|
}
|
|
31
|
-
});
|
|
32
|
-
}, y = ({ onChangeFilter: e }) => {
|
|
33
|
-
let { i18n: r } = h(), { root: a } = i(), [u, _] = d(void 0), y = o((t) => {
|
|
34
|
-
e(l, t.trim() ? t : null);
|
|
35
|
-
}, g);
|
|
36
|
-
return /* @__PURE__ */ m("div", {
|
|
37
|
-
className: "ttw:flex ttw:items-center ttw:gap-3 ttw:px-2 ttw:py-2",
|
|
38
|
-
children: [
|
|
39
|
-
/* @__PURE__ */ p("div", {
|
|
40
|
-
className: "ttw:flex-1",
|
|
41
|
-
children: /* @__PURE__ */ p(n, {
|
|
42
|
-
placeholder: r._("Search"),
|
|
43
|
-
className: "ttw:h-9 ttw:w-full",
|
|
44
|
-
onChange: (e) => y(e.target.value)
|
|
45
|
-
})
|
|
46
|
-
}),
|
|
47
|
-
/* @__PURE__ */ p("div", {
|
|
48
|
-
className: "ttw:w-48 ttw:shrink-0",
|
|
49
|
-
children: /* @__PURE__ */ p(v, { onChange: (t) => e(c, t ?? null) })
|
|
50
|
-
}),
|
|
51
|
-
/* @__PURE__ */ m("div", {
|
|
52
|
-
className: "ttw:relative ttw:w-44 ttw:shrink-0",
|
|
53
|
-
children: [/* @__PURE__ */ p(t, {
|
|
54
|
-
value: u,
|
|
55
|
-
placeholder: r._("Created at"),
|
|
56
|
-
className: `ttw:h-9 ttw:border-border${u ? " ttw:pr-8" : ""}`,
|
|
57
|
-
container: a,
|
|
58
|
-
onChange: (t) => {
|
|
59
|
-
_(t), e(s, t ?? null);
|
|
60
|
-
}
|
|
61
|
-
}), u ? /* @__PURE__ */ p("button", {
|
|
62
|
-
type: "button",
|
|
63
|
-
"aria-label": r._("Clear created at filter"),
|
|
64
|
-
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",
|
|
65
|
-
onClick: () => {
|
|
66
|
-
_(void 0), e(s, null);
|
|
67
|
-
},
|
|
68
|
-
children: /* @__PURE__ */ p(f, { className: "ttw:size-3.5" })
|
|
69
|
-
}) : null]
|
|
70
|
-
})
|
|
71
|
-
]
|
|
72
|
-
});
|
|
19
|
+
}) }) : null;
|
|
73
20
|
};
|
|
74
21
|
//#endregion
|
|
75
|
-
export {
|
|
22
|
+
export { c as ApprovalPoliciesTriggers };
|
|
@@ -1 +1,75 @@
|
|
|
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 "./index47.js";
|
|
3
|
+
import { useRootElements as i } from "./index178.js";
|
|
4
|
+
import "./index179.js";
|
|
5
|
+
import { useDebounce as a, useDebounceCallback as o } from "./index185.js";
|
|
6
|
+
import { FILTER_TYPE_CREATED_AT as s, FILTER_TYPE_CREATED_BY as c, FILTER_TYPE_SEARCH as l } from "./index261.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";
|
|
11
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js
|
|
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
|
+
placeholder: n._("Added by"),
|
|
24
|
+
emptyMessage: n._("No users found"),
|
|
25
|
+
clearAriaLabel: n._("Clear selection"),
|
|
26
|
+
onQueryChange: l,
|
|
27
|
+
onValueChange: (e) => {
|
|
28
|
+
let n = Array.isArray(e) ? e[0] ?? "" : e ?? "";
|
|
29
|
+
s(b.find((e) => e.value === n) ?? null), t(n || void 0);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}, y = ({ onChangeFilter: e }) => {
|
|
33
|
+
let { i18n: r } = h(), { root: a } = i(), [u, _] = d(void 0), y = o((t) => {
|
|
34
|
+
e(l, t.trim() ? t : null);
|
|
35
|
+
}, g);
|
|
36
|
+
return /* @__PURE__ */ m("div", {
|
|
37
|
+
className: "ttw:flex ttw:items-center ttw:gap-3 ttw:px-2 ttw:py-2",
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ p("div", {
|
|
40
|
+
className: "ttw:flex-1",
|
|
41
|
+
children: /* @__PURE__ */ p(n, {
|
|
42
|
+
placeholder: r._("Search"),
|
|
43
|
+
className: "ttw:h-9 ttw:w-full",
|
|
44
|
+
onChange: (e) => y(e.target.value)
|
|
45
|
+
})
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ p("div", {
|
|
48
|
+
className: "ttw:w-48 ttw:shrink-0",
|
|
49
|
+
children: /* @__PURE__ */ p(v, { onChange: (t) => e(c, t ?? null) })
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ m("div", {
|
|
52
|
+
className: "ttw:relative ttw:w-44 ttw:shrink-0",
|
|
53
|
+
children: [/* @__PURE__ */ p(t, {
|
|
54
|
+
value: u,
|
|
55
|
+
placeholder: r._("Created at"),
|
|
56
|
+
className: `ttw:h-9 ttw:border-border${u ? " ttw:pr-8" : ""}`,
|
|
57
|
+
container: a,
|
|
58
|
+
onChange: (t) => {
|
|
59
|
+
_(t), e(s, t ?? null);
|
|
60
|
+
}
|
|
61
|
+
}), u ? /* @__PURE__ */ p("button", {
|
|
62
|
+
type: "button",
|
|
63
|
+
"aria-label": r._("Clear created at filter"),
|
|
64
|
+
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",
|
|
65
|
+
onClick: () => {
|
|
66
|
+
_(void 0), e(s, null);
|
|
67
|
+
},
|
|
68
|
+
children: /* @__PURE__ */ p(f, { className: "ttw:size-3.5" })
|
|
69
|
+
}) : null]
|
|
70
|
+
})
|
|
71
|
+
]
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
export { y as Filters };
|
|
@@ -1,128 +1 @@
|
|
|
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 "./index47.js";
|
|
4
|
-
import { MoniteScopedProviders as n } from "./index209.js";
|
|
5
|
-
import { useUserPermissions as r } from "./index112.js";
|
|
6
|
-
import { GetNoRowsOverlay as i } from "./index234.js";
|
|
7
|
-
import { AccessRestriction as a } from "./index235.js";
|
|
8
|
-
import "./index237.js";
|
|
9
|
-
import { DataTable as o } from "./index239.js";
|
|
10
|
-
import { hasSelectedText as s } from "./index240.js";
|
|
11
|
-
import { User as c } from "./index252.js";
|
|
12
|
-
import "./index253.js";
|
|
13
|
-
import { FILTER_TYPE_CREATED_AT as l, FILTER_TYPE_SEARCH as u } from "./index260.js";
|
|
14
|
-
import { ApprovalPoliciesRules as d } from "./index313.js";
|
|
15
|
-
import { ApprovalStatusChip as f } from "./index314.js";
|
|
16
|
-
import "./index315.js";
|
|
17
|
-
import { extractApprovalCallsForTable as p } from "./index316.js";
|
|
18
|
-
import { ApprovalPoliciesTriggers as m } from "./index320.js";
|
|
19
|
-
import { Filters as h } from "./index321.js";
|
|
20
1
|
import "./index322.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";
|
|
25
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js
|
|
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
|
-
};
|
|
127
|
-
//#endregion
|
|
128
|
-
export { C as ApprovalPoliciesTable };
|