@tesouro/embedded-components-react 0.7.51 → 0.7.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +0 -25
- package/dist/lib/monite-sdk.d.ts +2 -37
- package/dist/lib/monite-sdk.js +56 -59
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index6.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +60 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +36 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +102 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +51 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +150 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +2 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +3 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +10 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +56 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +38 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +67 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +11 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +9 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +65 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +167 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +6 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +76 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +75 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +32 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +56 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +564 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +1 -569
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +22 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +27 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +23 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +68 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +23 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +6 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +39 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +48 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +58 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +1 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +27 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +43 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +78 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +4 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +2 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +52 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +81 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +119 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +4 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +10 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +75 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +122 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +11 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +16 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +62 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +122 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +21 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +6 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +35 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +54 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +72 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +25 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +1 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +58 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +19 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +181 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +27 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +61 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +34 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +9 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index20.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +42 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +11 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +17 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +8 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +9 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index21.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +34 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +111 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +66 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +196 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +9 -198
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +17 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +5 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +358 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +20 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +85 -351
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +2 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +179 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +95 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +15 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +36 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +53 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +43 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +36 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +0 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +56 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +93 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +45 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +49 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +82 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +7 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +304 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +1 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +30 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +1 -307
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +33 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +6 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +101 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +185 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +132 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +196 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +11 -187
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +15 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +29 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +239 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +1 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +36 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +137 -237
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +164 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +25 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +15 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +8 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +13 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +21 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +11 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +23 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +81 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +100 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +42 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +28 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +101 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +33 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +173 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +11 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +4 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +67 -170
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +21 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +212 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +89 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +17 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +147 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +88 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +44 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +4 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +20 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +74 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +19 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +5 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +11 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +129 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +5 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +219 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +31 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +14 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +33 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +72 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +180 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +14 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +202 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +87 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +64 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +52 -201
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +84 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +34 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +74 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +80 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +12 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +23 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +17 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +5 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +22 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +43 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +29 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +36 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +29 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +93 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +8 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +13 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +3 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +19 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +7 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +69 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +51 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +1 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +46 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +15 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +45 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +63 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +33 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +36 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +12 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +24 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +53 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +23 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +73 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +79 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +1 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +8 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +16 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +2 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +56 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +0 -97
|
@@ -1,36 +1,189 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { AmountFilter as e, DateRangePicker as t, FilterBar as n, FilterMenuButton as r, FilterTag as i, Input as a, MultiSelectFilter as o, Popover as s, PopoverContent as c, PopoverTrigger as l, RadioGroup as u, RadioGroupItem as d, SearchInput as f, useFilterPanel as p } from "../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ListFilter as m } from "lucide-react";
|
|
3
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "@emotion/react/jsx-runtime";
|
|
4
|
+
import { useLingui as v } from "@lingui/react";
|
|
4
5
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
var y = {
|
|
7
|
+
date: "ttw:w-auto",
|
|
8
|
+
status: "ttw:w-56",
|
|
9
|
+
amount: "ttw:w-64",
|
|
10
|
+
vendor: "ttw:w-64",
|
|
11
|
+
attachment: "ttw:w-56"
|
|
12
|
+
}, b = {
|
|
13
|
+
due_date: "Due date",
|
|
14
|
+
created_at: "Created on",
|
|
15
|
+
issued_at: "Issue date"
|
|
16
|
+
}, x = [
|
|
17
|
+
{
|
|
18
|
+
id: "date",
|
|
19
|
+
label: "Due date",
|
|
20
|
+
activeDateField: "due_date"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "date",
|
|
24
|
+
label: "Created on",
|
|
25
|
+
activeDateField: "created_at"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: "date",
|
|
29
|
+
label: "Issue date",
|
|
30
|
+
activeDateField: "issued_at"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: "status",
|
|
34
|
+
label: "Status",
|
|
35
|
+
activeDateField: void 0
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "amount",
|
|
39
|
+
label: "Amount",
|
|
40
|
+
activeDateField: void 0
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: "vendor",
|
|
44
|
+
label: "Vendor",
|
|
45
|
+
activeDateField: void 0
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: "attachment",
|
|
49
|
+
label: "Attachment",
|
|
50
|
+
activeDateField: void 0
|
|
51
|
+
}
|
|
52
|
+
];
|
|
53
|
+
function S(S) {
|
|
54
|
+
let { i18n: C } = v(), w = p(), T = w.isMenuOpen || !!w.activePanelId, E = w.activePanelId && y[w.activePanelId] || "ttw:w-52", D = S.allPresets.map((e) => ({
|
|
55
|
+
value: e.value,
|
|
56
|
+
label: e.label,
|
|
57
|
+
group: e.group
|
|
58
|
+
})), O = (e) => {
|
|
59
|
+
e || (w.closeMenu(), w.closePanel());
|
|
60
|
+
}, k = (e, t) => {
|
|
61
|
+
t && S.onActiveDateFieldChange(t), w.openPanel(e);
|
|
62
|
+
}, A = S.hasFile === !0 ? "has" : S.hasFile === !1 ? "no" : "any";
|
|
63
|
+
return /* @__PURE__ */ g(n, {
|
|
64
|
+
className: "ttw:pl-4",
|
|
65
|
+
searchSlot: /* @__PURE__ */ g(f, {
|
|
66
|
+
value: S.searchValue,
|
|
67
|
+
onChange: (e) => S.onSearchChange(e.target.value),
|
|
68
|
+
placeholder: "Search by number or vendor..."
|
|
69
|
+
}),
|
|
70
|
+
menuSlot: /* @__PURE__ */ _(s, {
|
|
71
|
+
open: T,
|
|
72
|
+
onOpenChange: O,
|
|
73
|
+
children: [/* @__PURE__ */ g(l, {
|
|
74
|
+
asChild: !0,
|
|
75
|
+
children: /* @__PURE__ */ g(r, {
|
|
76
|
+
activeCount: S.activeFilterCount,
|
|
77
|
+
onClick: w.toggleMenu
|
|
78
|
+
})
|
|
79
|
+
}), /* @__PURE__ */ _(c, {
|
|
80
|
+
align: "start",
|
|
81
|
+
className: `ttw:p-0 ${E}`,
|
|
82
|
+
children: [
|
|
83
|
+
w.isMenuOpen && /* @__PURE__ */ g("div", {
|
|
84
|
+
className: "ttw:p-1",
|
|
85
|
+
children: x.map((e, t) => /* @__PURE__ */ _("button", {
|
|
86
|
+
type: "button",
|
|
87
|
+
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:w-full ttw:px-2 ttw:py-1.5 ttw:rounded-md ttw:text-xs ttw:font-medium ttw:hover:bg-accent ttw:transition-colors ttw:cursor-pointer",
|
|
88
|
+
onClick: () => k(e.id, e.activeDateField),
|
|
89
|
+
children: [/* @__PURE__ */ g(m, { className: "ttw:size-4 ttw:text-muted-foreground ttw:shrink-0" }), e.label]
|
|
90
|
+
}, `${e.id}-${t}`))
|
|
91
|
+
}),
|
|
92
|
+
w.activePanelId === "date" && /* @__PURE__ */ g(t, {
|
|
93
|
+
from: S.dateFrom,
|
|
94
|
+
to: S.dateTo,
|
|
95
|
+
onRangeChange: S.onDateRangeChange,
|
|
96
|
+
selectedPreset: S.selectedDatePreset,
|
|
97
|
+
onPresetChange: S.onDatePresetChange,
|
|
98
|
+
presets: D,
|
|
99
|
+
labels: { fieldLabel: b[S.activeDateField] }
|
|
100
|
+
}),
|
|
101
|
+
w.activePanelId === "status" && /* @__PURE__ */ g(o, {
|
|
102
|
+
options: S.statusOptions,
|
|
103
|
+
selectedValues: S.selectedStatus,
|
|
104
|
+
onSelectionChange: S.onStatusChange
|
|
105
|
+
}),
|
|
106
|
+
w.activePanelId === "amount" && /* @__PURE__ */ g(e, {
|
|
107
|
+
mode: S.amountMode,
|
|
108
|
+
onModeChange: S.onAmountModeChange,
|
|
109
|
+
min: S.amountMin,
|
|
110
|
+
max: S.amountMax,
|
|
111
|
+
onMinChange: S.onAmountMinChange,
|
|
112
|
+
onMaxChange: S.onAmountMaxChange,
|
|
113
|
+
showFlowDirection: !1,
|
|
114
|
+
labels: {
|
|
115
|
+
min: "No less than",
|
|
116
|
+
max: "No more than"
|
|
117
|
+
}
|
|
118
|
+
}),
|
|
119
|
+
w.activePanelId === "vendor" && /* @__PURE__ */ _("div", {
|
|
120
|
+
className: "ttw:p-3 ttw:flex ttw:flex-col ttw:gap-2",
|
|
121
|
+
children: [
|
|
122
|
+
/* @__PURE__ */ g("p", {
|
|
123
|
+
className: "ttw:text-xs ttw:font-medium ttw:text-muted-foreground",
|
|
124
|
+
children: "Vendor name"
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ g(a, {
|
|
127
|
+
type: "text",
|
|
128
|
+
value: S.vendorName,
|
|
129
|
+
onChange: (e) => S.onVendorNameChange(e.target.value),
|
|
130
|
+
placeholder: "Search vendors...",
|
|
131
|
+
className: "ttw:h-8 ttw:text-xs"
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ g("p", {
|
|
134
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
135
|
+
children: C._("Matches names containing your search")
|
|
136
|
+
})
|
|
137
|
+
]
|
|
138
|
+
}),
|
|
139
|
+
w.activePanelId === "attachment" && /* @__PURE__ */ g("div", {
|
|
140
|
+
className: "ttw:p-3",
|
|
141
|
+
children: /* @__PURE__ */ g(u, {
|
|
142
|
+
value: A,
|
|
143
|
+
onValueChange: (e) => {
|
|
144
|
+
e === "any" ? S.onHasFileChange(void 0) : e === "has" ? S.onHasFileChange(!0) : S.onHasFileChange(!1);
|
|
145
|
+
},
|
|
146
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
147
|
+
children: [
|
|
148
|
+
{
|
|
149
|
+
value: "any",
|
|
150
|
+
label: "Any"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
value: "has",
|
|
154
|
+
label: "Has attachment"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
value: "no",
|
|
158
|
+
label: "No attachment"
|
|
159
|
+
}
|
|
160
|
+
].map(({ value: e, label: t }) => /* @__PURE__ */ _("label", {
|
|
161
|
+
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:cursor-pointer",
|
|
162
|
+
children: [/* @__PURE__ */ g(d, { value: e }), /* @__PURE__ */ g("span", {
|
|
163
|
+
className: "ttw:text-xs ttw:font-medium",
|
|
164
|
+
children: t
|
|
165
|
+
})]
|
|
166
|
+
}, e))
|
|
167
|
+
})
|
|
168
|
+
})
|
|
169
|
+
]
|
|
19
170
|
})]
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
171
|
+
}),
|
|
172
|
+
activeChipsSlot: /* @__PURE__ */ _(h, { children: [S.activeChips.map((e) => /* @__PURE__ */ g(i, {
|
|
173
|
+
label: e.label,
|
|
174
|
+
count: e.count,
|
|
175
|
+
variant: "default",
|
|
176
|
+
onLabelClick: e.key === "date" ? () => {
|
|
177
|
+
w.openPanel("date");
|
|
178
|
+
} : void 0,
|
|
179
|
+
onDismiss: () => S.onDismissChip(e.key)
|
|
180
|
+
}, e.key)), S.activeFilterCount > 0 && /* @__PURE__ */ g("button", {
|
|
181
|
+
type: "button",
|
|
182
|
+
className: "ttw:text-xs ttw:text-muted-foreground ttw:hover:text-foreground ttw:transition-colors ttw:cursor-pointer ttw:whitespace-nowrap",
|
|
183
|
+
onClick: S.onClearAll,
|
|
184
|
+
children: "Clear all"
|
|
185
|
+
})] })
|
|
33
186
|
});
|
|
34
|
-
}
|
|
187
|
+
}
|
|
35
188
|
//#endregion
|
|
36
|
-
export {
|
|
189
|
+
export { S as PayablesFilterBar };
|
|
@@ -1,6 +1,134 @@
|
|
|
1
|
+
import { endOfDay as e, endOfMonth as t, endOfQuarter as n, endOfWeek as r, endOfYear as i, startOfDay as a, startOfMonth as o, startOfQuarter as s, startOfWeek as c, startOfYear as l, subDays as u, subMonths as d, subQuarters as f, subWeeks as p, subYears as m } from "date-fns";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
var h = [
|
|
4
|
+
{
|
|
5
|
+
value: "today",
|
|
6
|
+
label: "Today",
|
|
7
|
+
group: "Current"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
value: "this_week",
|
|
11
|
+
label: "This week",
|
|
12
|
+
group: "Current"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
value: "this_month",
|
|
16
|
+
label: "This month",
|
|
17
|
+
group: "Current"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
value: "this_quarter",
|
|
21
|
+
label: "This quarter",
|
|
22
|
+
group: "Current"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
value: "this_year",
|
|
26
|
+
label: "This year",
|
|
27
|
+
group: "Current"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
value: "yesterday",
|
|
31
|
+
label: "Yesterday",
|
|
32
|
+
group: "Past"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
value: "last_week",
|
|
36
|
+
label: "Last week",
|
|
37
|
+
group: "Past"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
value: "last_month",
|
|
41
|
+
label: "Last month",
|
|
42
|
+
group: "Past"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
value: "last_30_days",
|
|
46
|
+
label: "Last 30 days",
|
|
47
|
+
group: "Past"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
value: "last_90_days",
|
|
51
|
+
label: "Last 90 days",
|
|
52
|
+
group: "Past"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
value: "last_quarter",
|
|
56
|
+
label: "Last quarter",
|
|
57
|
+
group: "Past"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
value: "last_year",
|
|
61
|
+
label: "Last year",
|
|
62
|
+
group: "Past"
|
|
63
|
+
}
|
|
64
|
+
];
|
|
65
|
+
function g(h) {
|
|
66
|
+
let g = a(/* @__PURE__ */ new Date());
|
|
67
|
+
switch (h) {
|
|
68
|
+
case "today": return {
|
|
69
|
+
from: g,
|
|
70
|
+
to: e(g)
|
|
71
|
+
};
|
|
72
|
+
case "this_week": return {
|
|
73
|
+
from: c(g),
|
|
74
|
+
to: r(g)
|
|
75
|
+
};
|
|
76
|
+
case "this_month": return {
|
|
77
|
+
from: o(g),
|
|
78
|
+
to: t(g)
|
|
79
|
+
};
|
|
80
|
+
case "this_quarter": return {
|
|
81
|
+
from: s(g),
|
|
82
|
+
to: n(g)
|
|
83
|
+
};
|
|
84
|
+
case "this_year": return {
|
|
85
|
+
from: l(g),
|
|
86
|
+
to: i(g)
|
|
87
|
+
};
|
|
88
|
+
case "yesterday": {
|
|
89
|
+
let t = u(g, 1);
|
|
90
|
+
return {
|
|
91
|
+
from: t,
|
|
92
|
+
to: e(t)
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
case "last_week": {
|
|
96
|
+
let e = c(p(g, 1));
|
|
97
|
+
return {
|
|
98
|
+
from: e,
|
|
99
|
+
to: r(e)
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
case "last_month": {
|
|
103
|
+
let e = o(d(g, 1));
|
|
104
|
+
return {
|
|
105
|
+
from: e,
|
|
106
|
+
to: t(e)
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
case "last_30_days": return {
|
|
110
|
+
from: u(g, 30),
|
|
111
|
+
to: g
|
|
112
|
+
};
|
|
113
|
+
case "last_90_days": return {
|
|
114
|
+
from: u(g, 90),
|
|
115
|
+
to: g
|
|
116
|
+
};
|
|
117
|
+
case "last_quarter": {
|
|
118
|
+
let e = s(f(g, 1));
|
|
119
|
+
return {
|
|
120
|
+
from: e,
|
|
121
|
+
to: n(e)
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
case "last_year": {
|
|
125
|
+
let e = l(m(g, 1));
|
|
126
|
+
return {
|
|
127
|
+
from: e,
|
|
128
|
+
to: i(e)
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
5
133
|
//#endregion
|
|
6
|
-
export {
|
|
134
|
+
export { h as DATE_PRESETS, g as resolveDatePreset };
|
|
@@ -1,105 +1,211 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { useLingui as u } from "@lingui/react";
|
|
1
|
+
import { toMinorUnits as e } from "./index13.js";
|
|
2
|
+
import { formatDateRangeFilterChip as t, formatFilterChipMultiSelectValueSegment as n } from "./index17.js";
|
|
3
|
+
import { useMoniteContext as r } from "./index45.js";
|
|
4
|
+
import { useCounterpartById as i } from "./index46.js";
|
|
5
|
+
import { getCounterpartName as a } from "./index50.js";
|
|
6
|
+
import "./index61.js";
|
|
7
|
+
import { useCurrencies as o } from "./index74.js";
|
|
8
|
+
import { DATE_PRESETS as s, resolveDatePreset as c } from "./index277.js";
|
|
9
|
+
import { useCallback as l, useMemo as u, useState as d } from "react";
|
|
10
|
+
import { formatISO as f } from "date-fns";
|
|
12
11
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js
|
|
13
|
-
var
|
|
12
|
+
var p = [
|
|
14
13
|
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
representativeStatus: null
|
|
14
|
+
value: "draft",
|
|
15
|
+
label: "New"
|
|
18
16
|
},
|
|
19
17
|
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
representativeStatus: "draft"
|
|
18
|
+
value: "pending_approval",
|
|
19
|
+
label: "Pending approval"
|
|
23
20
|
},
|
|
24
21
|
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
representativeStatus: "approve_in_progress"
|
|
22
|
+
value: "ready_to_pay",
|
|
23
|
+
label: "Ready to pay"
|
|
28
24
|
},
|
|
29
25
|
{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
representativeStatus: "rejected"
|
|
26
|
+
value: "paid",
|
|
27
|
+
label: "Paid"
|
|
33
28
|
},
|
|
34
29
|
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
representativeStatus: "waiting_to_be_paid"
|
|
30
|
+
value: "cancelled",
|
|
31
|
+
label: "Cancelled"
|
|
38
32
|
},
|
|
39
33
|
{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
representativeStatus: "paid"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
groupStatus: "cancelled",
|
|
46
|
-
apiStatuses: ["canceled"],
|
|
47
|
-
representativeStatus: "canceled"
|
|
34
|
+
value: "rejected",
|
|
35
|
+
label: "Rejected"
|
|
48
36
|
}
|
|
49
|
-
],
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
return s(() => {
|
|
97
|
-
i !== void 0 && a.current !== void 0 && i !== a.current && n && t.finops.getPayables.invalidateQueries(n), a.current = i;
|
|
37
|
+
], m = {
|
|
38
|
+
draft: ["draft", "new"],
|
|
39
|
+
pending_approval: ["approve_in_progress"],
|
|
40
|
+
ready_to_pay: ["waiting_to_be_paid", "partially_paid"],
|
|
41
|
+
paid: ["paid"],
|
|
42
|
+
cancelled: ["canceled"],
|
|
43
|
+
rejected: ["rejected"]
|
|
44
|
+
}, h = [
|
|
45
|
+
"draft",
|
|
46
|
+
"new",
|
|
47
|
+
"approve_in_progress",
|
|
48
|
+
"rejected",
|
|
49
|
+
"waiting_to_be_paid",
|
|
50
|
+
"partially_paid",
|
|
51
|
+
"paid"
|
|
52
|
+
];
|
|
53
|
+
function g() {
|
|
54
|
+
return {
|
|
55
|
+
search: "",
|
|
56
|
+
activeDateField: "due_date",
|
|
57
|
+
datePreset: void 0,
|
|
58
|
+
dateFrom: void 0,
|
|
59
|
+
dateTo: void 0,
|
|
60
|
+
status: [],
|
|
61
|
+
amountMode: "any",
|
|
62
|
+
amountMin: "",
|
|
63
|
+
amountMax: "",
|
|
64
|
+
vendorName: "",
|
|
65
|
+
hasFile: void 0
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function _({ initialCounterpartId: _ } = {}) {
|
|
69
|
+
let [v, y] = d(() => ({
|
|
70
|
+
...g(),
|
|
71
|
+
counterpartId: _
|
|
72
|
+
})), { formatToMinorUnits: b } = o(), { componentSettings: x } = r(), { data: S } = i(v.counterpartId), C = a(S), w = x.onboarding.allowedCurrencies?.[0] ?? "USD", T = u(() => {
|
|
73
|
+
let t = {}, n = v.activeDateField;
|
|
74
|
+
if (v.dateFrom && (t[`${n}__gte`] = f(v.dateFrom, { representation: "date" })), v.dateTo && (t[`${n}__lte`] = f(v.dateTo, { representation: "date" })), t.status__in = v.status.length ? v.status.flatMap((e) => m[e] ?? [e]) : h, v.vendorName && (t.counterpart_name__icontains = v.vendorName), v.counterpartId && (t.counterpart_id = v.counterpartId), v.hasFile !== void 0 && (t.has_file = v.hasFile), v.search && (t.search_text = v.search), v.amountMode !== "any") {
|
|
75
|
+
let n = parseFloat(v.amountMin), r = parseFloat(v.amountMax), i = (t) => b(t, w) ?? e(t, 2);
|
|
76
|
+
if (v.amountMode === "exact") {
|
|
77
|
+
if (!isNaN(n)) {
|
|
78
|
+
let e = i(n);
|
|
79
|
+
t.total_amount__gte = e, t.total_amount__lte = e;
|
|
80
|
+
}
|
|
81
|
+
} else isNaN(n) || (t.total_amount__gte = i(n)), isNaN(r) || (t.total_amount__lte = i(r));
|
|
82
|
+
}
|
|
83
|
+
return t;
|
|
98
84
|
}, [
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
]),
|
|
103
|
-
|
|
85
|
+
v,
|
|
86
|
+
w,
|
|
87
|
+
b
|
|
88
|
+
]), E = u(() => {
|
|
89
|
+
let e = 0;
|
|
90
|
+
return v.status.length && e++, v.vendorName && e++, v.counterpartId && e++, v.hasFile !== void 0 && e++, v.amountMode !== "any" && e++, v.search && e++, e;
|
|
91
|
+
}, [v]), D = u(() => {
|
|
92
|
+
let e = [];
|
|
93
|
+
if (v.dateFrom || v.dateTo) {
|
|
94
|
+
let n = (v.datePreset ? s.find((e) => e.value === v.datePreset)?.label : void 0) ?? t(v.dateFrom, v.dateTo), r = v.activeDateField === "due_date" ? "Due date" : v.activeDateField === "created_at" ? "Created on" : "Issue date";
|
|
95
|
+
e.push({
|
|
96
|
+
key: "date",
|
|
97
|
+
label: `${r}: ${n}`
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
if (v.status.length) {
|
|
101
|
+
let t = v.status.map((e) => p.find((t) => t.value === e)?.label ?? e);
|
|
102
|
+
e.push({
|
|
103
|
+
key: "status",
|
|
104
|
+
label: `Status: ${n(t)}`
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
return v.vendorName && e.push({
|
|
108
|
+
key: "vendor",
|
|
109
|
+
label: `Vendor: ${v.vendorName}`
|
|
110
|
+
}), v.counterpartId && e.push({
|
|
111
|
+
key: "counterpart",
|
|
112
|
+
label: `Vendor: ${C || v.counterpartId}`
|
|
113
|
+
}), v.hasFile === !0 && e.push({
|
|
114
|
+
key: "attachment",
|
|
115
|
+
label: "Has attachment"
|
|
116
|
+
}), v.hasFile === !1 && e.push({
|
|
117
|
+
key: "attachment",
|
|
118
|
+
label: "No attachment"
|
|
119
|
+
}), v.amountMode !== "any" && e.push({
|
|
120
|
+
key: "amount",
|
|
121
|
+
label: "Amount"
|
|
122
|
+
}), v.search && e.push({
|
|
123
|
+
key: "search",
|
|
124
|
+
label: `Search: ${v.search}`
|
|
125
|
+
}), e;
|
|
126
|
+
}, [v, C]), O = l((e) => {
|
|
127
|
+
let { from: t, to: n } = c(e);
|
|
128
|
+
y((r) => ({
|
|
129
|
+
...r,
|
|
130
|
+
datePreset: e,
|
|
131
|
+
dateFrom: t,
|
|
132
|
+
dateTo: n
|
|
133
|
+
}));
|
|
134
|
+
}, []), k = l((e, t) => {
|
|
135
|
+
y((n) => ({
|
|
136
|
+
...n,
|
|
137
|
+
datePreset: void 0,
|
|
138
|
+
dateFrom: e,
|
|
139
|
+
dateTo: t
|
|
140
|
+
}));
|
|
141
|
+
}, []), A = l((e) => {
|
|
142
|
+
y((t) => ({
|
|
143
|
+
...t,
|
|
144
|
+
activeDateField: e
|
|
145
|
+
}));
|
|
146
|
+
}, []), j = l((e) => {
|
|
147
|
+
switch (e) {
|
|
148
|
+
case "date":
|
|
149
|
+
y((e) => ({
|
|
150
|
+
...e,
|
|
151
|
+
datePreset: void 0,
|
|
152
|
+
dateFrom: void 0,
|
|
153
|
+
dateTo: void 0,
|
|
154
|
+
activeDateField: "due_date"
|
|
155
|
+
}));
|
|
156
|
+
break;
|
|
157
|
+
case "status":
|
|
158
|
+
y((e) => ({
|
|
159
|
+
...e,
|
|
160
|
+
status: []
|
|
161
|
+
}));
|
|
162
|
+
break;
|
|
163
|
+
case "vendor":
|
|
164
|
+
y((e) => ({
|
|
165
|
+
...e,
|
|
166
|
+
vendorName: ""
|
|
167
|
+
}));
|
|
168
|
+
break;
|
|
169
|
+
case "counterpart":
|
|
170
|
+
y((e) => ({
|
|
171
|
+
...e,
|
|
172
|
+
counterpartId: void 0
|
|
173
|
+
}));
|
|
174
|
+
break;
|
|
175
|
+
case "attachment":
|
|
176
|
+
y((e) => ({
|
|
177
|
+
...e,
|
|
178
|
+
hasFile: void 0
|
|
179
|
+
}));
|
|
180
|
+
break;
|
|
181
|
+
case "amount":
|
|
182
|
+
y((e) => ({
|
|
183
|
+
...e,
|
|
184
|
+
amountMode: "any",
|
|
185
|
+
amountMin: "",
|
|
186
|
+
amountMax: ""
|
|
187
|
+
}));
|
|
188
|
+
break;
|
|
189
|
+
case "search": y((e) => ({
|
|
190
|
+
...e,
|
|
191
|
+
search: ""
|
|
192
|
+
}));
|
|
193
|
+
}
|
|
194
|
+
}, []), M = l(() => y(g()), []);
|
|
195
|
+
return {
|
|
196
|
+
state: v,
|
|
197
|
+
setState: y,
|
|
198
|
+
queryParams: T,
|
|
199
|
+
activeFilterCount: E,
|
|
200
|
+
activeChips: D,
|
|
201
|
+
datePresets: s,
|
|
202
|
+
statusOptions: p,
|
|
203
|
+
setDatePreset: O,
|
|
204
|
+
setDateRange: k,
|
|
205
|
+
setActiveDateField: A,
|
|
206
|
+
clearFilter: j,
|
|
207
|
+
clearAll: M
|
|
208
|
+
};
|
|
209
|
+
}
|
|
104
210
|
//#endregion
|
|
105
|
-
export {
|
|
211
|
+
export { h as AP_DEFAULT_STATUSES, p as AP_STATUS_OPTIONS, _ as usePayablesFilter };
|