@tesouro/embedded-components-react 0.8.7 → 0.9.0
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 +6 -15
- package/dist/index.css +0 -826
- package/dist/index.d.ts +5 -2
- package/dist/lib/ProductsWidget.d.ts +5 -2
- package/dist/lib/ReceivablesWidget.d.ts +5 -0
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index2.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -28
- package/dist/lib/monite-sdk.d.ts +0 -72191
- package/dist/lib/monite-sdk.js +0 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +0 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +0 -176
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +0 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +0 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +0 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +0 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +0 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +0 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +0 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +0 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +0 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +0 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +0 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +0 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +0 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +0 -569
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +0 -1
- 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 +0 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +0 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +0 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +0 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +0 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +0 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +0 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +0 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +0 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +0 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +0 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +0 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index16.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +0 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +0 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +0 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index17.js +0 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +0 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +0 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +0 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +0 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +0 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index18.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +0 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +0 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +0 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +0 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +0 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +0 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +0 -222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index20.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +0 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +0 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +0 -206
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +0 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +0 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index21.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +0 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +0 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +0 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +0 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +0 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +0 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index23.js +0 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +0 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +0 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +0 -828
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index35.js +0 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +0 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +0 -294
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +0 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +0 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +0 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +0 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +0 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +0 -2314
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +0 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +0 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +0 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +0 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +0 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index7.js +0 -299
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +0 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +0 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +0 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +0 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +0 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +0 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +0 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +0 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +0 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +0 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +0 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +0 -1224
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { useRootElements as e } from "./index63.js";
|
|
2
|
-
import "./index64.js";
|
|
3
|
-
import { getLayoutStyles as t } from "./index170.js";
|
|
4
|
-
import { forwardRef as n } from "react";
|
|
5
|
-
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import { Box as a, Grid as o, IconButton as s, MenuItem as c, Select as l, Typography as u } from "@mui/material";
|
|
7
|
-
import { useLingui as d } from "@lingui/react";
|
|
8
|
-
import { styled as f, useThemeProps as p } from "@mui/material/styles";
|
|
9
|
-
import m from "@mui/icons-material/ChevronLeft";
|
|
10
|
-
import h from "@mui/icons-material/ChevronRight";
|
|
11
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js
|
|
12
|
-
var g = "MoniteTablePagination", _ = 10, v = ({ onPaginationModelChange: n, paginationModel: l, nextPage: f, prevPage: v, pageSizeOptions: x, slotProps: S, paginationLayout: C, navigationPosition: w, pageSizePosition: T, className: E }) => {
|
|
13
|
-
let { i18n: D } = d(), { root: O } = e(), { pageSizeOptions: k, slotProps: A, paginationLayout: j = "default", navigationPosition: M = "left", pageSizePosition: N = "right" } = p({
|
|
14
|
-
props: {
|
|
15
|
-
pageSizeOptions: x,
|
|
16
|
-
slotProps: S,
|
|
17
|
-
paginationLayout: C,
|
|
18
|
-
navigationPosition: w,
|
|
19
|
-
pageSizePosition: T
|
|
20
|
-
},
|
|
21
|
-
name: g
|
|
22
|
-
}), P = "pageSize" in l ? l.pageSize : k?.[0] ?? _, F = k && k.length > 1, I = t({
|
|
23
|
-
layout: j,
|
|
24
|
-
navigationPosition: M,
|
|
25
|
-
pageSizePosition: N,
|
|
26
|
-
hasPageSizeSelect: !!F
|
|
27
|
-
});
|
|
28
|
-
return /* @__PURE__ */ r(y, {
|
|
29
|
-
container: !0,
|
|
30
|
-
mx: 2,
|
|
31
|
-
boxSizing: "border-box",
|
|
32
|
-
className: E,
|
|
33
|
-
children: /* @__PURE__ */ i(o, {
|
|
34
|
-
xs: 12,
|
|
35
|
-
item: !0,
|
|
36
|
-
display: "flex",
|
|
37
|
-
justifyContent: I.justifyContent,
|
|
38
|
-
flexDirection: I.flexDirection,
|
|
39
|
-
gap: I.gap,
|
|
40
|
-
pt: .5,
|
|
41
|
-
pb: 1,
|
|
42
|
-
alignItems: "center",
|
|
43
|
-
children: [/* @__PURE__ */ i(a, { children: [/* @__PURE__ */ r(s, {
|
|
44
|
-
className: "Monite-TablePagination-PreviousPageButton",
|
|
45
|
-
"aria-label": D._("Previous page"),
|
|
46
|
-
disabled: !v,
|
|
47
|
-
onClick: (e) => {
|
|
48
|
-
if (e.preventDefault(), v === void 0) throw Error("Previous page is not available");
|
|
49
|
-
n({
|
|
50
|
-
page: v,
|
|
51
|
-
pageSize: P
|
|
52
|
-
});
|
|
53
|
-
},
|
|
54
|
-
children: /* @__PURE__ */ r(m, {
|
|
55
|
-
fontSize: "small",
|
|
56
|
-
"aria-label": D._("Previous page")
|
|
57
|
-
})
|
|
58
|
-
}), /* @__PURE__ */ r(s, {
|
|
59
|
-
className: "Monite-TablePagination-NextPageButton",
|
|
60
|
-
"aria-label": D._("Next page"),
|
|
61
|
-
disabled: !f,
|
|
62
|
-
onClick: (e) => {
|
|
63
|
-
if (e.preventDefault(), f === void 0) throw Error("Next page is not available");
|
|
64
|
-
n({
|
|
65
|
-
page: f,
|
|
66
|
-
pageSize: P
|
|
67
|
-
});
|
|
68
|
-
},
|
|
69
|
-
children: /* @__PURE__ */ r(h, {
|
|
70
|
-
fontSize: "small",
|
|
71
|
-
"aria-label": D._("Next page")
|
|
72
|
-
})
|
|
73
|
-
})] }), F && /* @__PURE__ */ i(a, {
|
|
74
|
-
display: "flex",
|
|
75
|
-
alignItems: "center",
|
|
76
|
-
gap: 1,
|
|
77
|
-
children: [/* @__PURE__ */ r(u, {
|
|
78
|
-
variant: "body2",
|
|
79
|
-
color: "text.secondary",
|
|
80
|
-
children: D._("Results per page")
|
|
81
|
-
}), /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(b, {
|
|
82
|
-
className: "Monite-RowsPerPageSelector",
|
|
83
|
-
...A?.pageSizeSelect,
|
|
84
|
-
"aria-label": D._("Rows per page"),
|
|
85
|
-
MenuProps: {
|
|
86
|
-
...A?.pageSizeSelect?.MenuProps,
|
|
87
|
-
container: O
|
|
88
|
-
},
|
|
89
|
-
value: P.toString(),
|
|
90
|
-
onChange: (e) => void n({
|
|
91
|
-
page: null,
|
|
92
|
-
pageSize: parseInt(e.target.value, 10)
|
|
93
|
-
}),
|
|
94
|
-
children: k?.map((e) => /* @__PURE__ */ r(c, {
|
|
95
|
-
value: e.toString(),
|
|
96
|
-
children: e
|
|
97
|
-
}, e))
|
|
98
|
-
}) })]
|
|
99
|
-
})]
|
|
100
|
-
})
|
|
101
|
-
});
|
|
102
|
-
}, y = f(n((e, t) => /* @__PURE__ */ r(o, {
|
|
103
|
-
ref: t,
|
|
104
|
-
...e
|
|
105
|
-
})), {
|
|
106
|
-
name: g,
|
|
107
|
-
slot: "root",
|
|
108
|
-
shouldForwardProp: () => !0
|
|
109
|
-
})({}), b = f(n(({ ...t }, n) => {
|
|
110
|
-
let { root: i } = e();
|
|
111
|
-
return /* @__PURE__ */ r(l, {
|
|
112
|
-
ref: n,
|
|
113
|
-
...t,
|
|
114
|
-
MenuProps: { container: i }
|
|
115
|
-
});
|
|
116
|
-
}), {
|
|
117
|
-
name: g,
|
|
118
|
-
slot: "pageSizeSelect",
|
|
119
|
-
shouldForwardProp: () => !0
|
|
120
|
-
})({});
|
|
121
|
-
//#endregion
|
|
122
|
-
export { v as TablePagination };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import "./index81.js";
|
|
2
|
-
import e from "@mui/icons-material/Cancel";
|
|
3
|
-
import t from "@mui/icons-material/HourglassEmpty";
|
|
4
|
-
import n from "@mui/icons-material/PaidOutlined";
|
|
5
|
-
import r from "@mui/icons-material/DangerousOutlined";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js
|
|
7
|
-
var i = [
|
|
8
|
-
"waiting",
|
|
9
|
-
"approved",
|
|
10
|
-
"rejected",
|
|
11
|
-
"canceled"
|
|
12
|
-
], a = {
|
|
13
|
-
approved: "success",
|
|
14
|
-
canceled: "secondary",
|
|
15
|
-
rejected: "error",
|
|
16
|
-
waiting: "warning"
|
|
17
|
-
}, o = {
|
|
18
|
-
approved: n,
|
|
19
|
-
canceled: e,
|
|
20
|
-
rejected: r,
|
|
21
|
-
waiting: t
|
|
22
|
-
}, s = "status", c = "created_by", l = "current_user";
|
|
23
|
-
//#endregion
|
|
24
|
-
export { i as APPROVAL_REQUEST_STATUSES, o as APPROVAL_REQUEST_STATUS_TO_MUI_ICON_MAP, c as FILTER_TYPE_ADDED_BY, l as FILTER_TYPE_CURRENT_USER, s as FILTER_TYPE_STATUS, a as ROW_TO_STATUS_MUI_MAP };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { classNames as e } from "./index173.js";
|
|
2
|
-
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { Stack as n } from "@mui/material";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js
|
|
5
|
-
var r = ({ className: r, children: i, sx: a }) => /* @__PURE__ */ t(n, {
|
|
6
|
-
direction: "row",
|
|
7
|
-
justifyContent: "space-between",
|
|
8
|
-
alignItems: "center",
|
|
9
|
-
className: e("Monite-Filters", r),
|
|
10
|
-
sx: Object.assign({ "& > *": {
|
|
11
|
-
flexBasis: "fit-content",
|
|
12
|
-
flexGrow: 1
|
|
13
|
-
} }, a || {}),
|
|
14
|
-
children: /* @__PURE__ */ t(n, {
|
|
15
|
-
gap: 1,
|
|
16
|
-
direction: "row",
|
|
17
|
-
justifyContent: "flex-end",
|
|
18
|
-
alignItems: "center",
|
|
19
|
-
className: "Monite-Filters-Group",
|
|
20
|
-
sx: {
|
|
21
|
-
ml: 2,
|
|
22
|
-
"& .Monite-FilterControl": {
|
|
23
|
-
maxWidth: "160px",
|
|
24
|
-
width: "100%"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
children: i
|
|
28
|
-
})
|
|
29
|
-
});
|
|
30
|
-
//#endregion
|
|
31
|
-
export { r as FilterContainer };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js
|
|
2
|
-
var e = (e) => ({
|
|
3
|
-
approved: e._("Approved"),
|
|
4
|
-
canceled: e._("Canceled"),
|
|
5
|
-
rejected: e._("Rejected"),
|
|
6
|
-
waiting: e._("In approval")
|
|
7
|
-
});
|
|
8
|
-
//#endregion
|
|
9
|
-
export { e as getRowToStatusTextMap };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { useMoniteContext as e } from "./index36.js";
|
|
2
|
-
import { useRootElements as t } from "./index63.js";
|
|
3
|
-
import "./index64.js";
|
|
4
|
-
import { classNames as n } from "./index173.js";
|
|
5
|
-
import { useState as r } from "react";
|
|
6
|
-
import { Fragment as i, jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
7
|
-
import { Autocomplete as s, CircularProgress as c, TextField as l } from "@mui/material";
|
|
8
|
-
import { useLingui as u } from "@lingui/react";
|
|
9
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js
|
|
10
|
-
var d = ({ onChange: d, className: f }) => {
|
|
11
|
-
let { i18n: p } = u(), { api: m } = e(), { root: h } = t(), [g, _] = r(!1), [v, y] = r(null), [b, x] = r(""), { data: S, isLoading: C, refetch: w } = m.finops.getEntityUsers.useQuery({ query: { name__istartswith: b || void 0 } }, { enabled: g });
|
|
12
|
-
return /* @__PURE__ */ a(s, {
|
|
13
|
-
autoComplete: !0,
|
|
14
|
-
includeInputInList: !0,
|
|
15
|
-
filterSelectedOptions: !0,
|
|
16
|
-
value: v,
|
|
17
|
-
noOptionsText: p._("No users found"),
|
|
18
|
-
slotProps: { popper: { container: h } },
|
|
19
|
-
open: g,
|
|
20
|
-
onOpen: () => {
|
|
21
|
-
_(!0);
|
|
22
|
-
},
|
|
23
|
-
onClose: () => {
|
|
24
|
-
_(!1);
|
|
25
|
-
},
|
|
26
|
-
loading: C,
|
|
27
|
-
options: S?.data || [],
|
|
28
|
-
getOptionLabel: (e) => `${e.first_name ?? ""} ${e.last_name ?? ""}`.trim(),
|
|
29
|
-
isOptionEqualToValue: (e, t) => e.id === t.id,
|
|
30
|
-
filterOptions: (e) => e,
|
|
31
|
-
onInputChange: (e, t) => {
|
|
32
|
-
x(t);
|
|
33
|
-
},
|
|
34
|
-
onChange: (e, t) => {
|
|
35
|
-
y(t), d(t?.id), w();
|
|
36
|
-
},
|
|
37
|
-
className: n("Monite-ApprovalAddedByFilter-Container", "Monite-FilterControl", f),
|
|
38
|
-
sx: { "&.MuiAutocomplete-root": {
|
|
39
|
-
display: "flex",
|
|
40
|
-
alignItems: "center"
|
|
41
|
-
} },
|
|
42
|
-
renderInput: (e) => /* @__PURE__ */ a(l, {
|
|
43
|
-
...e,
|
|
44
|
-
variant: "standard",
|
|
45
|
-
placeholder: p._("Added by"),
|
|
46
|
-
className: "Monite-ApprovalAddedByFilter Monite-FilterControl",
|
|
47
|
-
InputProps: {
|
|
48
|
-
...e.InputProps,
|
|
49
|
-
endAdornment: /* @__PURE__ */ o(i, { children: [C ? /* @__PURE__ */ a(c, {
|
|
50
|
-
color: "inherit",
|
|
51
|
-
size: 20
|
|
52
|
-
}) : null, e.InputProps.endAdornment] })
|
|
53
|
-
}
|
|
54
|
-
})
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
//#endregion
|
|
58
|
-
export { d as AutocompleteCreatedBy };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { useRootElements as e } from "./index63.js";
|
|
2
|
-
import "./index64.js";
|
|
3
|
-
import "./index81.js";
|
|
4
|
-
import { APPROVAL_REQUEST_STATUSES as t, FILTER_TYPE_ADDED_BY as n, FILTER_TYPE_CURRENT_USER as r, FILTER_TYPE_STATUS as i } from "./index172.js";
|
|
5
|
-
import { FilterContainer as a } from "./index174.js";
|
|
6
|
-
import { getRowToStatusTextMap as o } from "./index175.js";
|
|
7
|
-
import { AutocompleteCreatedBy as s } from "./index176.js";
|
|
8
|
-
import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
9
|
-
import { FormControl as u, FormControlLabel as d, InputLabel as f, MenuItem as p, Select as m, Switch as h } from "@mui/material";
|
|
10
|
-
import { useLingui as g } from "@lingui/react";
|
|
11
|
-
import { DatePicker as _ } from "@mui/x-date-pickers";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js
|
|
13
|
-
var v = ({ onChangeFilter: v, sx: y }) => {
|
|
14
|
-
let { i18n: b } = g(), { root: x } = e();
|
|
15
|
-
return /* @__PURE__ */ l(a, {
|
|
16
|
-
className: "Monite-ApprovalRequestsFilters",
|
|
17
|
-
sx: y,
|
|
18
|
-
children: [
|
|
19
|
-
/* @__PURE__ */ l(u, {
|
|
20
|
-
variant: "standard",
|
|
21
|
-
fullWidth: !0,
|
|
22
|
-
className: "Monite-ApprovalStatusFilter Monite-FilterControl",
|
|
23
|
-
children: [/* @__PURE__ */ c(f, {
|
|
24
|
-
id: "status",
|
|
25
|
-
children: b._("Status")
|
|
26
|
-
}), /* @__PURE__ */ c(m, {
|
|
27
|
-
labelId: "status",
|
|
28
|
-
label: b._("Status"),
|
|
29
|
-
defaultValue: "all",
|
|
30
|
-
MenuProps: { container: x },
|
|
31
|
-
onChange: (e) => {
|
|
32
|
-
v(i, e && e.target.value);
|
|
33
|
-
},
|
|
34
|
-
children: [{
|
|
35
|
-
label: b._("All invoices"),
|
|
36
|
-
value: "all"
|
|
37
|
-
}, ...Object.values(t).map((e) => ({
|
|
38
|
-
label: o(b)[e],
|
|
39
|
-
value: e
|
|
40
|
-
}))].map(({ label: e, value: t }) => /* @__PURE__ */ c(p, {
|
|
41
|
-
value: t,
|
|
42
|
-
children: e
|
|
43
|
-
}, t))
|
|
44
|
-
})]
|
|
45
|
-
}),
|
|
46
|
-
/* @__PURE__ */ c(s, { onChange: (e) => v(n, e || null) }),
|
|
47
|
-
/* @__PURE__ */ c(_, {
|
|
48
|
-
label: b._("Requested on"),
|
|
49
|
-
className: "Monite-ApprovalRequestedOnFilter Monite-FilterControl Monite-DateFilterControl",
|
|
50
|
-
onChange: (e, t) => {
|
|
51
|
-
t.validationError || v("created_at", e);
|
|
52
|
-
},
|
|
53
|
-
slotProps: {
|
|
54
|
-
textField: { variant: "standard" },
|
|
55
|
-
popper: { container: x },
|
|
56
|
-
dialog: { container: x },
|
|
57
|
-
actionBar: { actions: ["clear", "today"] }
|
|
58
|
-
},
|
|
59
|
-
views: [
|
|
60
|
-
"year",
|
|
61
|
-
"month",
|
|
62
|
-
"day"
|
|
63
|
-
]
|
|
64
|
-
}),
|
|
65
|
-
/* @__PURE__ */ c(d, {
|
|
66
|
-
control: /* @__PURE__ */ c(h, {}),
|
|
67
|
-
className: "Monite-ApprovalOnlyMyFilter Monite-FilterControl",
|
|
68
|
-
label: b._("Only my approvals"),
|
|
69
|
-
onChange: (e, t) => v(r, t)
|
|
70
|
-
})
|
|
71
|
-
]
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
//#endregion
|
|
75
|
-
export { v as ApprovalRequestsFilter };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { APPROVAL_REQUEST_STATUS_TO_MUI_ICON_MAP as e, ROW_TO_STATUS_MUI_MAP as t } from "./index172.js";
|
|
2
|
-
import { getRowToStatusTextMap as n } from "./index175.js";
|
|
3
|
-
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
4
|
-
import { Chip as i } from "@mui/material";
|
|
5
|
-
import { useLingui as a } from "@lingui/react";
|
|
6
|
-
import { styled as o, useThemeProps as s } from "@mui/material/styles";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js
|
|
8
|
-
var c = ({ ref: i, ...o }) => {
|
|
9
|
-
let { status: c, icon: u, size: d, variant: f } = s({
|
|
10
|
-
props: o,
|
|
11
|
-
name: "MoniteApprovalRequestStatusChip"
|
|
12
|
-
}), { i18n: p } = a(), m = e[c];
|
|
13
|
-
return /* @__PURE__ */ r(l, {
|
|
14
|
-
ref: i,
|
|
15
|
-
color: t[c],
|
|
16
|
-
icon: u && m ? /* @__PURE__ */ r(m, { fontSize: "small" }) : void 0,
|
|
17
|
-
label: n(p)[c],
|
|
18
|
-
size: d,
|
|
19
|
-
status: c,
|
|
20
|
-
variant: f ?? "filled"
|
|
21
|
-
});
|
|
22
|
-
}, l = o(i, {
|
|
23
|
-
name: "MoniteApprovalRequestStatusChip",
|
|
24
|
-
slot: "root",
|
|
25
|
-
shouldForwardProp: () => !0
|
|
26
|
-
})({});
|
|
27
|
-
//#endregion
|
|
28
|
-
export { c as ApprovalRequestStatusChip };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./index178.js";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { parseAPIValidationErrors as e, summarizeAPIValidationErrors as t } from "./index17.js";
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index18.js
|
|
3
|
-
var n = 200, r = (e) => {
|
|
4
|
-
let t = e.trim();
|
|
5
|
-
if (!(!t || t.length > n) && !t.includes("<")) return t;
|
|
6
|
-
}, i = (n, i, { defaultMessage: a, irrelevantVariants: o } = {}) => {
|
|
7
|
-
let s = () => a ?? n._("Unknown");
|
|
8
|
-
if (i instanceof Error) return i.message;
|
|
9
|
-
if (typeof i == "string") return r(i) ?? s();
|
|
10
|
-
if (typeof i != "object" || !i) return s();
|
|
11
|
-
let c = i, l = c.error;
|
|
12
|
-
if (typeof l == "object" && l && typeof l.message == "string") return l.message;
|
|
13
|
-
if (Array.isArray(c.detail)) {
|
|
14
|
-
let r = t(n, e(i, { irrelevantVariants: o }));
|
|
15
|
-
if (r) return r;
|
|
16
|
-
}
|
|
17
|
-
return c.message === "Request size limit exceeded" ? n._("Request size limit exceeded") : s();
|
|
18
|
-
};
|
|
19
|
-
//#endregion
|
|
20
|
-
export { i as getAPIErrorMessage };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { useEntityUserByAuthToken as e } from "./index41.js";
|
|
2
|
-
import "./index48.js";
|
|
3
|
-
import { useState as t } from "react";
|
|
4
|
-
import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
5
|
-
import { IconButton as i, Stack as a } from "@mui/material";
|
|
6
|
-
import { useLingui as o } from "@lingui/react";
|
|
7
|
-
import s from "@mui/icons-material/CheckCircleOutlineRounded";
|
|
8
|
-
import c from "@mui/icons-material/HighlightOffRounded";
|
|
9
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js
|
|
10
|
-
var l = ({ id: e, onClick: r }) => {
|
|
11
|
-
let { i18n: a } = o(), [c, l] = t(!1);
|
|
12
|
-
return /* @__PURE__ */ n(i, {
|
|
13
|
-
"aria-label": a._("Approve request"),
|
|
14
|
-
color: "success",
|
|
15
|
-
disabled: c,
|
|
16
|
-
onClick: (t) => {
|
|
17
|
-
t.preventDefault(), l(!0), r({
|
|
18
|
-
id: e,
|
|
19
|
-
action: "approve"
|
|
20
|
-
})?.finally(() => l(!1));
|
|
21
|
-
},
|
|
22
|
-
children: /* @__PURE__ */ n(s, {})
|
|
23
|
-
});
|
|
24
|
-
}, u = ({ id: e, onClick: r }) => {
|
|
25
|
-
let { i18n: a } = o(), [s, l] = t(!1);
|
|
26
|
-
return /* @__PURE__ */ n(i, {
|
|
27
|
-
"aria-label": a._("Reject request"),
|
|
28
|
-
color: "error",
|
|
29
|
-
disabled: s,
|
|
30
|
-
onClick: (t) => {
|
|
31
|
-
t.preventDefault(), l(!0), r({
|
|
32
|
-
id: e,
|
|
33
|
-
action: "reject"
|
|
34
|
-
})?.finally(() => l(!1));
|
|
35
|
-
},
|
|
36
|
-
children: /* @__PURE__ */ n(c, {})
|
|
37
|
-
});
|
|
38
|
-
}, d = (t) => {
|
|
39
|
-
let { i18n: i } = o(), { data: s } = e();
|
|
40
|
-
if ("onRowActionClick" in t && t.onRowActionClick) return {
|
|
41
|
-
field: "actions",
|
|
42
|
-
headerName: i._("Actions"),
|
|
43
|
-
sortable: !1,
|
|
44
|
-
display: "flex",
|
|
45
|
-
align: "right",
|
|
46
|
-
renderCell: (e) => {
|
|
47
|
-
if (e.row.status === "waiting" && s?.id && e.row.user_ids.includes(s.id) && !e.row.approved_by?.includes(s.id)) return /* @__PURE__ */ r(a, {
|
|
48
|
-
direction: "row",
|
|
49
|
-
children: [/* @__PURE__ */ n(l, {
|
|
50
|
-
id: e.row.id,
|
|
51
|
-
onClick: t.onRowActionClick
|
|
52
|
-
}), /* @__PURE__ */ n(u, {
|
|
53
|
-
id: e.row.id,
|
|
54
|
-
onClick: t.onRowActionClick
|
|
55
|
-
})]
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
//#endregion
|
|
61
|
-
export { d as useApprovalRequestActionsCell };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useFileById as e } from "./index43.js";
|
|
2
|
-
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { Avatar as n } from "@mui/material";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js
|
|
5
|
-
var r = ({ alt: e, fileId: r, ...a }) => r ? /* @__PURE__ */ t(i, {
|
|
6
|
-
fileId: r,
|
|
7
|
-
alt: e,
|
|
8
|
-
...a
|
|
9
|
-
}) : /* @__PURE__ */ t(n, {
|
|
10
|
-
alt: e,
|
|
11
|
-
...a
|
|
12
|
-
}), i = ({ alt: r, fileId: i, ...a }) => {
|
|
13
|
-
let { data: o } = e(i);
|
|
14
|
-
return /* @__PURE__ */ t(n, {
|
|
15
|
-
alt: r,
|
|
16
|
-
src: o?.url,
|
|
17
|
-
...a
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
21
|
-
export { r as UserAvatar };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { useEntityUserById as e } from "./index41.js";
|
|
2
|
-
import "./index48.js";
|
|
3
|
-
import { UserAvatar as t } from "./index181.js";
|
|
4
|
-
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
5
|
-
import { Chip as r, Skeleton as i } from "@mui/material";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js
|
|
7
|
-
var a = ({ entityUserId: a }) => {
|
|
8
|
-
let { data: o, isLoading: s } = e(a);
|
|
9
|
-
return o ? s ? /* @__PURE__ */ n(r, { label: /* @__PURE__ */ n(i, {
|
|
10
|
-
variant: "rounded",
|
|
11
|
-
height: "50%",
|
|
12
|
-
width: 100,
|
|
13
|
-
animation: "wave"
|
|
14
|
-
}) }) : /* @__PURE__ */ n(r, {
|
|
15
|
-
avatar: /* @__PURE__ */ n(t, { fileId: o.userpic_file_id }),
|
|
16
|
-
label: `${o.first_name ?? ""} ${o.last_name ?? ""}`.trim() || "—",
|
|
17
|
-
variant: "outlined",
|
|
18
|
-
color: "secondary"
|
|
19
|
-
}) : null;
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
22
|
-
export { a as UserCell };
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
-
import "../../shared/data-access/dist/index.js";
|
|
3
|
-
import { ScopedCssBaselineContainerClassName as t } from "./index21.js";
|
|
4
|
-
import { useMoniteContext as n } from "./index36.js";
|
|
5
|
-
import { useEntityUserByAuthToken as r } from "./index41.js";
|
|
6
|
-
import "./index48.js";
|
|
7
|
-
import { useCurrencies as i } from "./index62.js";
|
|
8
|
-
import { useAreCounterpartsLoading as a, useAutosizeGridColumns as o } from "./index66.js";
|
|
9
|
-
import "./index73.js";
|
|
10
|
-
import { FILTER_TYPE_CREATED_AT as s } from "./index81.js";
|
|
11
|
-
import { MoniteScopedProviders as c } from "./index143.js";
|
|
12
|
-
import { useUserPermissions as l } from "./index144.js";
|
|
13
|
-
import { DataGridEmptyState as u } from "./index147.js";
|
|
14
|
-
import "./index148.js";
|
|
15
|
-
import { GetNoRowsOverlay as d } from "./index149.js";
|
|
16
|
-
import { AccessRestriction as f } from "./index150.js";
|
|
17
|
-
import "./index153.js";
|
|
18
|
-
import { CounterpartNameCellById as p } from "./index168.js";
|
|
19
|
-
import "./index169.js";
|
|
20
|
-
import { TablePagination as m } from "./index171.js";
|
|
21
|
-
import "./index172.js";
|
|
22
|
-
import { ApprovalRequestsFilter as h } from "./index177.js";
|
|
23
|
-
import { ApprovalRequestStatusChip as g } from "./index178.js";
|
|
24
|
-
import "./index179.js";
|
|
25
|
-
import { useApprovalRequestActionsCell as _ } from "./index180.js";
|
|
26
|
-
import { UserCell as v } from "./index182.js";
|
|
27
|
-
import { useMemo as y, useState as b } from "react";
|
|
28
|
-
import { addDays as x, formatISO as S } from "date-fns";
|
|
29
|
-
import { jsx as C, jsxs as w } from "@emotion/react/jsx-runtime";
|
|
30
|
-
import { Box as ee } from "@mui/material";
|
|
31
|
-
import { useLingui as te } from "@lingui/react";
|
|
32
|
-
import { DataGrid as ne } from "@mui/x-data-grid";
|
|
33
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js
|
|
34
|
-
var T = (e) => /* @__PURE__ */ C(c, { children: /* @__PURE__ */ C(E, { ...e }) }), E = ({ onRowClick: c, ...T }) => {
|
|
35
|
-
let { api: E, locale: D, componentSettings: O } = n(), { i18n: k } = te(), { formatCurrencyToDisplay: A } = i(), { data: j } = r(), M = l(), N = M.has(e.ApprovalRequestReadOrg), P = M.has(e.PayableReadOrg), F = M.has(e.ApprovalRequestUpdateOrg), I = _({
|
|
36
|
-
onRowActionClick: "onRowActionClick" in T && T.onRowActionClick,
|
|
37
|
-
isApprovePending: "isApprovePending" in T && T.isApprovePending,
|
|
38
|
-
isRejectPending: "isRejectPending" in T && T.isRejectPending
|
|
39
|
-
}), [L, R] = b(null), [z, B] = b(O.approvalRequests.pageSizeOptions[0]), [V, H] = b({}), { data: U, isLoading: W, isError: G, refetch: K } = E.finops.getApprovalRequests.useQuery({ query: {
|
|
40
|
-
sort: "updated_at",
|
|
41
|
-
order: "desc",
|
|
42
|
-
object_type: "payable",
|
|
43
|
-
pagination_token: L ?? void 0,
|
|
44
|
-
limit: z,
|
|
45
|
-
status: V.status || void 0,
|
|
46
|
-
created_at__lt: V.created_at ? S(x(V[s], 1)) : void 0,
|
|
47
|
-
created_at__gte: V.created_at ? S(V[s]) : void 0,
|
|
48
|
-
created_by: V.current_user ? j?.id : V.created_by || void 0
|
|
49
|
-
} }), { data: q, isLoading: J } = E.finops.getPayables.useQuery({ query: { id__in: U?.data.map((e) => e.object_id) } }), Y = U?.data.map((e) => {
|
|
50
|
-
let t = q?.data.find((t) => t.id === e.object_id);
|
|
51
|
-
return {
|
|
52
|
-
id: e.id,
|
|
53
|
-
number: t?.document_id,
|
|
54
|
-
counterpart_id: t?.counterpart_id,
|
|
55
|
-
issued_at: t?.issued_at,
|
|
56
|
-
due_date: t?.due_date,
|
|
57
|
-
status: e.status,
|
|
58
|
-
amount_to_pay: t?.amount_to_pay,
|
|
59
|
-
currency: t?.currency,
|
|
60
|
-
created_by: e.created_by,
|
|
61
|
-
user_ids: e.user_ids,
|
|
62
|
-
approved_by: e.approved_by
|
|
63
|
-
};
|
|
64
|
-
}), X = (e, t) => {
|
|
65
|
-
R(null), H((n) => ({
|
|
66
|
-
...n,
|
|
67
|
-
[e]: t === "all" ? null : t
|
|
68
|
-
}));
|
|
69
|
-
}, re = a(Y), Z = y(() => [
|
|
70
|
-
{
|
|
71
|
-
field: "number",
|
|
72
|
-
headerName: k._("Invoice #"),
|
|
73
|
-
sortable: !1,
|
|
74
|
-
flex: .7
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
field: "counterpart_id",
|
|
78
|
-
headerName: k._("Vendor"),
|
|
79
|
-
sortable: !1,
|
|
80
|
-
display: "flex",
|
|
81
|
-
flex: 1,
|
|
82
|
-
renderCell: (e) => /* @__PURE__ */ C(p, { counterpartId: e.value })
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
field: "issued_at",
|
|
86
|
-
type: "date",
|
|
87
|
-
headerName: k._("Issue date"),
|
|
88
|
-
sortable: !1,
|
|
89
|
-
flex: .7,
|
|
90
|
-
valueFormatter: (e) => e && k.date(e, D.dateFormat)
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
field: "due_date",
|
|
94
|
-
type: "date",
|
|
95
|
-
headerName: k._("Due date"),
|
|
96
|
-
sortable: !1,
|
|
97
|
-
flex: .7,
|
|
98
|
-
valueFormatter: (e) => e && k.date(e, D.dateFormat)
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
field: "status",
|
|
102
|
-
headerName: k._("Status"),
|
|
103
|
-
sortable: !1,
|
|
104
|
-
flex: .7,
|
|
105
|
-
renderCell: (e) => /* @__PURE__ */ C(g, { status: e.value })
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
field: "amount",
|
|
109
|
-
headerName: k._("Amount"),
|
|
110
|
-
sortable: !1,
|
|
111
|
-
flex: .5,
|
|
112
|
-
valueGetter: (e, t) => t.amount_to_pay && t.currency ? A(t.amount_to_pay, t.currency) : ""
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
field: "created_by",
|
|
116
|
-
headerName: k._("Added by"),
|
|
117
|
-
sortable: !1,
|
|
118
|
-
flex: 1,
|
|
119
|
-
renderCell: ({ value: e }) => /* @__PURE__ */ C(v, { entityUserId: e })
|
|
120
|
-
},
|
|
121
|
-
...I ? [I] : []
|
|
122
|
-
], [
|
|
123
|
-
I,
|
|
124
|
-
D.dateFormat,
|
|
125
|
-
A,
|
|
126
|
-
k
|
|
127
|
-
]), ie = o(q?.data, Z, re, "ApprovalRequestsTable");
|
|
128
|
-
if (!N || !P) return /* @__PURE__ */ C(f, {});
|
|
129
|
-
let Q = Object.keys(V).some((e) => V[e] !== null && V[e] !== void 0), $ = !!V.created_at || !!V.created_by;
|
|
130
|
-
return !W && U?.data.length === 0 && !Q && !$ ? /* @__PURE__ */ C(u, {
|
|
131
|
-
title: k._("No Approval Requests"),
|
|
132
|
-
descriptionLine1: k._("You don't have any approval requests yet."),
|
|
133
|
-
type: "no-data"
|
|
134
|
-
}) : /* @__PURE__ */ w(ee, {
|
|
135
|
-
className: t,
|
|
136
|
-
sx: {
|
|
137
|
-
display: "flex",
|
|
138
|
-
flexDirection: "column",
|
|
139
|
-
overflow: "hidden",
|
|
140
|
-
height: "inherit",
|
|
141
|
-
minHeight: "500px"
|
|
142
|
-
},
|
|
143
|
-
children: [/* @__PURE__ */ C(h, {
|
|
144
|
-
onChangeFilter: X,
|
|
145
|
-
sx: { mb: 2 }
|
|
146
|
-
}), /* @__PURE__ */ C(ne, {
|
|
147
|
-
rowSelection: !1,
|
|
148
|
-
disableColumnFilter: !0,
|
|
149
|
-
initialState: { columns: { columnVisibilityModel: { actions: F && "onRowActionClick" in T } } },
|
|
150
|
-
apiRef: ie,
|
|
151
|
-
loading: W || J,
|
|
152
|
-
onRowClick: (e) => c?.(e.row.id),
|
|
153
|
-
slots: {
|
|
154
|
-
pagination: () => /* @__PURE__ */ C(m, {
|
|
155
|
-
pageSizeOptions: O.approvalRequests.pageSizeOptions,
|
|
156
|
-
paginationLayout: O.approvalRequests.paginationLayout,
|
|
157
|
-
navigationPosition: O.approvalRequests.navigationPosition,
|
|
158
|
-
pageSizePosition: O.approvalRequests.pageSizePosition,
|
|
159
|
-
prevPage: U?.prev_pagination_token,
|
|
160
|
-
nextPage: U?.next_pagination_token,
|
|
161
|
-
paginationModel: {
|
|
162
|
-
pageSize: z,
|
|
163
|
-
page: L
|
|
164
|
-
},
|
|
165
|
-
onPaginationModelChange: ({ page: e, pageSize: t }) => {
|
|
166
|
-
B(t), R(e);
|
|
167
|
-
}
|
|
168
|
-
}),
|
|
169
|
-
noRowsOverlay: () => /* @__PURE__ */ C(d, {
|
|
170
|
-
isLoading: W,
|
|
171
|
-
dataLength: U?.data.length || 0,
|
|
172
|
-
isFiltering: Q,
|
|
173
|
-
isSearching: $,
|
|
174
|
-
isError: G,
|
|
175
|
-
refetch: K,
|
|
176
|
-
entityName: k._("Approval Requests"),
|
|
177
|
-
type: "no-data"
|
|
178
|
-
})
|
|
179
|
-
},
|
|
180
|
-
columns: Z,
|
|
181
|
-
rows: Y ?? []
|
|
182
|
-
})]
|
|
183
|
-
});
|
|
184
|
-
};
|
|
185
|
-
//#endregion
|
|
186
|
-
export { T as ApprovalRequestsTable };
|