@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,113 +0,0 @@
|
|
|
1
|
-
import { Button as e } from "./index110.js";
|
|
2
|
-
import { Table as t, TableBody as n, TableCell as r, TableHead as i, TableHeader as a, TableRow as o } from "./index154.js";
|
|
3
|
-
import { Select as s, SelectContent as c, SelectItem as l, SelectTrigger as u, SelectValue as d } from "./index155.js";
|
|
4
|
-
import { useEffect as f, useState as p } from "react";
|
|
5
|
-
import { flexRender as m, getCoreRowModel as h, useReactTable as g } from "@tanstack/react-table";
|
|
6
|
-
import { ChevronLeft as _, ChevronRight as v } from "lucide-react";
|
|
7
|
-
import { twMerge as y } from "tailwind-merge";
|
|
8
|
-
import { Fragment as b, jsx as x, jsxs as S } from "@emotion/react/jsx-runtime";
|
|
9
|
-
import { useLingui as C } from "@lingui/react";
|
|
10
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js
|
|
11
|
-
function w({ columns: w, data: T, sorting: E, onSortingChange: D, pageSize: O, onPageSizeChange: k, nextPaginationToken: A, prevPaginationToken: j, onPaginationTokenChange: M, onRowClick: N, filterComponent: P, children: F, rowLabel: I }) {
|
|
12
|
-
let { i18n: L } = C(), [R, z] = p(0);
|
|
13
|
-
f(() => {
|
|
14
|
-
!j && R !== 0 && z(0);
|
|
15
|
-
}, [j, R]);
|
|
16
|
-
let B = T.length === 0 ? 0 : R + 1, V = R + T.length, H = I ? `${B}-${V} ${I}` : `${B}-${V}`, U = g({
|
|
17
|
-
data: T,
|
|
18
|
-
columns: w,
|
|
19
|
-
getCoreRowModel: h(),
|
|
20
|
-
manualPagination: !0,
|
|
21
|
-
manualSorting: !0,
|
|
22
|
-
enableMultiSort: !1,
|
|
23
|
-
onSortingChange: D,
|
|
24
|
-
state: {
|
|
25
|
-
sorting: E,
|
|
26
|
-
pagination: {
|
|
27
|
-
pageIndex: 0,
|
|
28
|
-
pageSize: O
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ S("div", {
|
|
33
|
-
className: y("ttw:flex ttw:flex-col ttw:overflow-hidden ttw:min-h-125 ttw:gap-4 ttw:border ttw:border-zinc-100 ttw:rounded-xl ttw:bg-white", P && "ttw:pt-4"),
|
|
34
|
-
children: [P, /* @__PURE__ */ S(t, {
|
|
35
|
-
className: "ttw:border-none",
|
|
36
|
-
children: [/* @__PURE__ */ x(a, { children: U.getHeaderGroups().map((e) => /* @__PURE__ */ x(o, { children: e.headers.map((e) => /* @__PURE__ */ x(i, {
|
|
37
|
-
className: "ttw:p-3 ttw:text-xs ttw:text-zinc-950 ttw:border-b ttw:border-zinc-100 ttw:w-44.5",
|
|
38
|
-
children: e.isPlaceholder ? null : m(e.column.columnDef.header, e.getContext())
|
|
39
|
-
}, e.id)) }, e.id)) }), /* @__PURE__ */ x(n, { children: U.getRowModel().rows?.length ? U.getRowModel().rows.map((e) => /* @__PURE__ */ x(o, {
|
|
40
|
-
onClick: () => N(e.original),
|
|
41
|
-
"data-state": e.getIsSelected() && "selected",
|
|
42
|
-
children: e.getVisibleCells().map((e) => /* @__PURE__ */ x(r, {
|
|
43
|
-
className: "ttw:px-3 ttw:h-13 ttw:font-medium ttw:border-zinc-100 ttw:border-b",
|
|
44
|
-
children: m(e.column.columnDef.cell, e.getContext())
|
|
45
|
-
}, e.id))
|
|
46
|
-
}, e.id)) : /* @__PURE__ */ x(o, { children: /* @__PURE__ */ x(r, {
|
|
47
|
-
colSpan: w.length,
|
|
48
|
-
className: "ttw:min-h-24 ttw:text-center",
|
|
49
|
-
children: F || L._("No results.")
|
|
50
|
-
}) }) })]
|
|
51
|
-
})]
|
|
52
|
-
}), /* @__PURE__ */ S("div", {
|
|
53
|
-
className: "ttw:flex ttw:items-center ttw:justify-end ttw:space-x-6.5 ttw:py-3 ttw:bg-transparent",
|
|
54
|
-
children: [
|
|
55
|
-
/* @__PURE__ */ S("span", {
|
|
56
|
-
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-sm ttw:leading-5 ttw:font-medium ttw:text-zinc-950",
|
|
57
|
-
children: [L._("Rows per page:"), /* @__PURE__ */ S(s, {
|
|
58
|
-
value: String(O),
|
|
59
|
-
onValueChange: (e) => {
|
|
60
|
-
k(Number(e)), M(void 0), z(0);
|
|
61
|
-
},
|
|
62
|
-
children: [/* @__PURE__ */ x(u, {
|
|
63
|
-
size: "sm",
|
|
64
|
-
children: /* @__PURE__ */ x(d, {})
|
|
65
|
-
}), /* @__PURE__ */ S(c, { children: [
|
|
66
|
-
/* @__PURE__ */ x(l, {
|
|
67
|
-
value: "10",
|
|
68
|
-
children: "10"
|
|
69
|
-
}),
|
|
70
|
-
/* @__PURE__ */ x(l, {
|
|
71
|
-
value: "25",
|
|
72
|
-
children: "25"
|
|
73
|
-
}),
|
|
74
|
-
/* @__PURE__ */ x(l, {
|
|
75
|
-
value: "50",
|
|
76
|
-
children: "50"
|
|
77
|
-
}),
|
|
78
|
-
/* @__PURE__ */ x(l, {
|
|
79
|
-
value: "100",
|
|
80
|
-
children: "100"
|
|
81
|
-
})
|
|
82
|
-
] })]
|
|
83
|
-
})]
|
|
84
|
-
}),
|
|
85
|
-
/* @__PURE__ */ x("span", {
|
|
86
|
-
className: "ttw:text-sm ttw:leading-5 ttw:font-medium ttw:text-zinc-950",
|
|
87
|
-
children: H
|
|
88
|
-
}),
|
|
89
|
-
/* @__PURE__ */ S("div", {
|
|
90
|
-
className: "ttw:flex ttw:items-center ttw:space-x-3",
|
|
91
|
-
children: [/* @__PURE__ */ x(e, {
|
|
92
|
-
variant: "ghost",
|
|
93
|
-
className: "ttw:px-2 ttw:py-2 ttw:border ttw:border-zinc-200 ttw:rounded-lg",
|
|
94
|
-
onClick: () => {
|
|
95
|
-
M(j), z((e) => e - O);
|
|
96
|
-
},
|
|
97
|
-
disabled: !j,
|
|
98
|
-
children: /* @__PURE__ */ x(_, {})
|
|
99
|
-
}), /* @__PURE__ */ x(e, {
|
|
100
|
-
variant: "ghost",
|
|
101
|
-
className: "ttw:px-2 ttw:py-2 ttw:border ttw:border-zinc-200 ttw:rounded-lg",
|
|
102
|
-
onClick: () => {
|
|
103
|
-
M(A), z((e) => e + O);
|
|
104
|
-
},
|
|
105
|
-
disabled: !A,
|
|
106
|
-
children: /* @__PURE__ */ x(v, {})
|
|
107
|
-
})]
|
|
108
|
-
})
|
|
109
|
-
]
|
|
110
|
-
})] });
|
|
111
|
-
}
|
|
112
|
-
//#endregion
|
|
113
|
-
export { w as DataTable };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createElement as e } from "react";
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js
|
|
3
|
-
var t = ({ color: t = "currentColor", size: n, ...r }) => e("svg", {
|
|
4
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
-
width: n,
|
|
6
|
-
height: n,
|
|
7
|
-
viewBox: "0 0 24 24",
|
|
8
|
-
fill: t,
|
|
9
|
-
...r
|
|
10
|
-
}, e("path", { d: "M14,8h1a1,1,0,0,0,0-2H14a1,1,0,0,0,0,2Zm0,4h1a1,1,0,0,0,0-2H14a1,1,0,0,0,0,2ZM9,8h1a1,1,0,0,0,0-2H9A1,1,0,0,0,9,8Zm0,4h1a1,1,0,0,0,0-2H9a1,1,0,0,0,0,2Zm12,8H20V3a1,1,0,0,0-1-1H5A1,1,0,0,0,4,3V20H3a1,1,0,0,0,0,2H21a1,1,0,0,0,0-2Zm-8,0H11V16h2Zm5,0H15V15a1,1,0,0,0-1-1H10a1,1,0,0,0-1,1v5H6V4H18Z" }));
|
|
11
|
-
//#endregion
|
|
12
|
-
export { t as UBuilding };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createElement as e } from "react";
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js
|
|
3
|
-
var t = ({ color: t = "currentColor", size: n, ...r }) => e("svg", {
|
|
4
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
-
width: n,
|
|
6
|
-
height: n,
|
|
7
|
-
viewBox: "0 0 24 24",
|
|
8
|
-
fill: t,
|
|
9
|
-
...r
|
|
10
|
-
}, e("path", { d: "M6,11a1,1,0,1,0,1,1A1,1,0,0,0,6,11Zm12,0a1,1,0,1,0,1,1A1,1,0,0,0,18,11Zm2-6H4A3,3,0,0,0,1,8v8a3,3,0,0,0,3,3H20a3,3,0,0,0,3-3V8A3,3,0,0,0,20,5Zm1,11a1,1,0,0,1-1,1H4a1,1,0,0,1-1-1V8A1,1,0,0,1,4,7H20a1,1,0,0,1,1,1ZM12,9a3,3,0,1,0,3,3A3,3,0,0,0,12,9Zm0,4a1,1,0,1,1,1-1A1,1,0,0,1,12,13Z" }));
|
|
11
|
-
//#endregion
|
|
12
|
-
export { t as UMoneyBill };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useApprovalPolicyTrigger as e } from "./index75.js";
|
|
2
|
-
import { UUserCircle as t } from "./index134.js";
|
|
3
|
-
import { ColumnList as n } from "./index136.js";
|
|
4
|
-
import { UBuilding as r } from "./index158.js";
|
|
5
|
-
import { UMoneyBill as i } from "./index159.js";
|
|
6
|
-
import { jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js
|
|
8
|
-
var s = ({ approvalPolicy: s }) => {
|
|
9
|
-
let { triggers: c, getTriggerName: l } = e({ approvalPolicy: s });
|
|
10
|
-
return s ? /* @__PURE__ */ a(n, { children: Object.keys(c).map((e) => {
|
|
11
|
-
switch (e) {
|
|
12
|
-
case "amount": return /* @__PURE__ */ o("li", { children: [/* @__PURE__ */ a(i, { width: 18 }), l(e)] }, e);
|
|
13
|
-
case "was_created_by_user_id": return /* @__PURE__ */ o("li", { children: [/* @__PURE__ */ a(t, { width: 18 }), l(e)] }, e);
|
|
14
|
-
case "counterpart_id": return /* @__PURE__ */ o("li", { children: [/* @__PURE__ */ a(r, { width: 18 }), l(e)] }, e);
|
|
15
|
-
default: return null;
|
|
16
|
-
}
|
|
17
|
-
}) }) : null;
|
|
18
|
-
};
|
|
19
|
-
//#endregion
|
|
20
|
-
export { s as ApprovalPoliciesTriggers };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { Combobox as e, DatePicker as t, SearchInput as n } from "../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { useMoniteContext as r } from "./index36.js";
|
|
3
|
-
import { useRootElements as i } from "./index63.js";
|
|
4
|
-
import "./index64.js";
|
|
5
|
-
import { useDebounce as a, useDebounceCallback as o } from "./index69.js";
|
|
6
|
-
import { FILTER_TYPE_CREATED_AT as s, FILTER_TYPE_CREATED_BY as c, FILTER_TYPE_SEARCH as l } from "./index81.js";
|
|
7
|
-
import { useMemo as u, useState as d } from "react";
|
|
8
|
-
import { X as f } from "lucide-react";
|
|
9
|
-
import { jsx as p, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
10
|
-
import { useLingui as h } from "@lingui/react";
|
|
11
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js
|
|
12
|
-
var g = 500, _ = (e) => {
|
|
13
|
-
let t = `${e.first_name ?? ""} ${e.last_name ?? ""}`.trim();
|
|
14
|
-
return t && e.email ? `${t} (${e.email})` : t || e.email || e.id;
|
|
15
|
-
}, v = ({ onChange: t }) => {
|
|
16
|
-
let { i18n: n } = h(), { api: i } = r(), [o, s] = d(null), [c, l] = d(""), f = a(c, g), { data: m } = i.finops.getEntityUsers.useQuery({ query: { name__istartswith: f || void 0 } }), v = u(() => m?.data ?? [], [m]), y = u(() => v.map((e) => ({
|
|
17
|
-
value: e.id,
|
|
18
|
-
label: _(e)
|
|
19
|
-
})), [v]), b = u(() => !o || y.some((e) => e.value === o.value) ? y : [o, ...y], [y, o]);
|
|
20
|
-
return /* @__PURE__ */ p(e, {
|
|
21
|
-
items: b,
|
|
22
|
-
value: o?.value ?? "",
|
|
23
|
-
labels: {
|
|
24
|
-
placeholder: n._("Added by"),
|
|
25
|
-
emptyMessage: n._("No users found"),
|
|
26
|
-
clearAriaLabel: n._("Clear selection")
|
|
27
|
-
},
|
|
28
|
-
onQueryChange: l,
|
|
29
|
-
onValueChange: (e) => {
|
|
30
|
-
let n = Array.isArray(e) ? e[0] ?? "" : e ?? "";
|
|
31
|
-
s(b.find((e) => e.value === n) ?? null), t(n || void 0);
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}, y = ({ onChangeFilter: e }) => {
|
|
35
|
-
let { i18n: r } = h(), { root: a } = i(), [u, _] = d(void 0), y = o((t) => {
|
|
36
|
-
e(l, t.trim() ? t : null);
|
|
37
|
-
}, g);
|
|
38
|
-
return /* @__PURE__ */ m("div", {
|
|
39
|
-
className: "ttw:flex ttw:items-center ttw:gap-3 ttw:px-2 ttw:py-2",
|
|
40
|
-
children: [
|
|
41
|
-
/* @__PURE__ */ p("div", {
|
|
42
|
-
className: "ttw:flex-1",
|
|
43
|
-
children: /* @__PURE__ */ p(n, {
|
|
44
|
-
placeholder: r._("Search"),
|
|
45
|
-
className: "ttw:h-9 ttw:w-full",
|
|
46
|
-
onChange: (e) => y(e.target.value)
|
|
47
|
-
})
|
|
48
|
-
}),
|
|
49
|
-
/* @__PURE__ */ p("div", {
|
|
50
|
-
className: "ttw:w-48 ttw:shrink-0",
|
|
51
|
-
children: /* @__PURE__ */ p(v, { onChange: (t) => e(c, t ?? null) })
|
|
52
|
-
}),
|
|
53
|
-
/* @__PURE__ */ m("div", {
|
|
54
|
-
className: "ttw:relative ttw:w-44 ttw:shrink-0",
|
|
55
|
-
children: [/* @__PURE__ */ p(t, {
|
|
56
|
-
value: u,
|
|
57
|
-
placeholder: r._("Created at"),
|
|
58
|
-
className: `ttw:h-9 ttw:border-border${u ? " ttw:pr-8" : ""}`,
|
|
59
|
-
container: a,
|
|
60
|
-
onChange: (t) => {
|
|
61
|
-
_(t), e(s, t ?? null);
|
|
62
|
-
}
|
|
63
|
-
}), u ? /* @__PURE__ */ p("button", {
|
|
64
|
-
type: "button",
|
|
65
|
-
"aria-label": r._("Clear created at filter"),
|
|
66
|
-
className: "ttw:absolute ttw:right-2 ttw:top-1/2 ttw:inline-flex ttw:size-4 ttw:-translate-y-1/2 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-sm ttw:text-muted-foreground ttw:opacity-70 hover:ttw:opacity-100",
|
|
67
|
-
onClick: () => {
|
|
68
|
-
_(void 0), e(s, null);
|
|
69
|
-
},
|
|
70
|
-
children: /* @__PURE__ */ p(f, { className: "ttw:size-3.5" })
|
|
71
|
-
}) : null]
|
|
72
|
-
})
|
|
73
|
-
]
|
|
74
|
-
});
|
|
75
|
-
};
|
|
76
|
-
//#endregion
|
|
77
|
-
export { y as Filters };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./index161.js";
|
|
@@ -1,129 +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 { useMoniteContext as t } from "./index36.js";
|
|
4
|
-
import { User as n } from "./index59.js";
|
|
5
|
-
import "./index60.js";
|
|
6
|
-
import { FILTER_TYPE_CREATED_AT as r, FILTER_TYPE_SEARCH as i } from "./index81.js";
|
|
7
|
-
import { extractApprovalCallsForTable as a } from "./index80.js";
|
|
8
|
-
import "./index83.js";
|
|
9
|
-
import { MoniteScopedProviders as o } from "./index143.js";
|
|
10
|
-
import { ApprovalPoliciesRules as s } from "./index137.js";
|
|
11
|
-
import { ApprovalStatusChip as c } from "./index138.js";
|
|
12
|
-
import "./index139.js";
|
|
13
|
-
import { useUserPermissions as l } from "./index144.js";
|
|
14
|
-
import { GetNoRowsOverlay as u } from "./index149.js";
|
|
15
|
-
import { AccessRestriction as d } from "./index150.js";
|
|
16
|
-
import "./index153.js";
|
|
17
|
-
import { DataTable as f } from "./index156.js";
|
|
18
|
-
import { hasSelectedText as p } from "./index157.js";
|
|
19
|
-
import { ApprovalPoliciesTriggers as m } from "./index160.js";
|
|
20
|
-
import { Filters as h } from "./index161.js";
|
|
21
|
-
import "./index162.js";
|
|
22
|
-
import { useMemo as g, useState as _ } from "react";
|
|
23
|
-
import { addDays as v, formatISO as y } from "date-fns";
|
|
24
|
-
import { jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
|
|
25
|
-
import { useLingui as S } from "@lingui/react";
|
|
26
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js
|
|
27
|
-
var C = (e) => /* @__PURE__ */ b(o, { children: /* @__PURE__ */ b(w, { ...e }) }), w = ({ onChangeFilter: o, onRowClick: C, onCreateClick: w }) => {
|
|
28
|
-
let { i18n: T } = S(), { api: E, locale: D, componentSettings: O } = t(), [k, A] = _(void 0), [j, M] = _(O.approvalPolicies.pageSizeOptions[0]), [N, P] = _({}), F = l().has(e.ApprovalPolicyReadOrg), { data: I, isLoading: L, isError: R, refetch: z } = E.finops.getApprovalPolicies.useQuery({ query: {
|
|
29
|
-
limit: j,
|
|
30
|
-
name__ncontains: N.search ?? void 0,
|
|
31
|
-
created_by: N.created_by ?? void 0,
|
|
32
|
-
pagination_token: k,
|
|
33
|
-
created_at__gte: N.created_at ? y(N[r]) : void 0,
|
|
34
|
-
created_at__lte: N.created_at ? y(v(N[r], 1)) : void 0,
|
|
35
|
-
object_type: "payable"
|
|
36
|
-
} }), B = (e, t) => {
|
|
37
|
-
A(void 0), P((n) => ({
|
|
38
|
-
...n,
|
|
39
|
-
[e]: t === "all" ? null : t
|
|
40
|
-
})), o?.({
|
|
41
|
-
field: e,
|
|
42
|
-
value: t
|
|
43
|
-
});
|
|
44
|
-
}, V = [], H = () => {}, U = g(() => [
|
|
45
|
-
{
|
|
46
|
-
accessorKey: "name",
|
|
47
|
-
header: T._("Policy name")
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
id: "triggers",
|
|
51
|
-
header: T._("Conditions"),
|
|
52
|
-
cell: ({ row: e }) => /* @__PURE__ */ b(m, { approvalPolicy: e.original })
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
id: "approvals",
|
|
56
|
-
header: T._("Approvals"),
|
|
57
|
-
cell: ({ row: e }) => {
|
|
58
|
-
let t = (e.original.script?.[0])?.if?.all;
|
|
59
|
-
if (!t) return /* @__PURE__ */ x("span", { children: [
|
|
60
|
-
T._("N/A"),
|
|
61
|
-
" ",
|
|
62
|
-
T._("approvals required")
|
|
63
|
-
] });
|
|
64
|
-
let n = a(t).reduce((e, t) => e + (t.params?.required_approval_count || 0), 0) || T._("N/A");
|
|
65
|
-
return /* @__PURE__ */ x("span", { children: [
|
|
66
|
-
n,
|
|
67
|
-
" ",
|
|
68
|
-
T._("approvals required")
|
|
69
|
-
] });
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
id: "rule",
|
|
74
|
-
header: T._("Flow"),
|
|
75
|
-
cell: ({ row: e }) => /* @__PURE__ */ b(s, { approvalPolicy: e.original })
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
id: "status",
|
|
79
|
-
header: T._("Status"),
|
|
80
|
-
cell: ({ row: e }) => /* @__PURE__ */ b(c, { status: e.original.status })
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
accessorKey: "created_at",
|
|
84
|
-
header: T._("Created at"),
|
|
85
|
-
cell: ({ row: e }) => /* @__PURE__ */ b("span", { children: T.date(e.original.created_at, D.dateFormat) })
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
accessorKey: "created_by",
|
|
89
|
-
header: T._("Created by"),
|
|
90
|
-
cell: ({ row: e }) => /* @__PURE__ */ b(n, { userId: e.original.created_by })
|
|
91
|
-
}
|
|
92
|
-
], [T, D.dateFormat]);
|
|
93
|
-
if (!F) return /* @__PURE__ */ b(d, {});
|
|
94
|
-
let W = Object.keys(N).some((e) => N[e] !== null && N[e] !== void 0), G = !!N[i];
|
|
95
|
-
return /* @__PURE__ */ b("div", {
|
|
96
|
-
className: "ttw:flex ttw:flex-col ttw:overflow-hidden ttw:min-h-125",
|
|
97
|
-
children: /* @__PURE__ */ b(f, {
|
|
98
|
-
columns: U,
|
|
99
|
-
data: I?.data ?? [],
|
|
100
|
-
sorting: V,
|
|
101
|
-
onSortingChange: H,
|
|
102
|
-
pageSize: j,
|
|
103
|
-
onPageSizeChange: M,
|
|
104
|
-
nextPaginationToken: I?.next_pagination_token ?? void 0,
|
|
105
|
-
prevPaginationToken: I?.prev_pagination_token ?? void 0,
|
|
106
|
-
onPaginationTokenChange: A,
|
|
107
|
-
onRowClick: (e) => {
|
|
108
|
-
p() || C?.(e.id);
|
|
109
|
-
},
|
|
110
|
-
filterComponent: /* @__PURE__ */ b(h, { onChangeFilter: B }),
|
|
111
|
-
children: /* @__PURE__ */ b(u, {
|
|
112
|
-
noDataTitle: T._("No Approval Policies"),
|
|
113
|
-
noDataDescription1: T._("You don't have any approval policies yet."),
|
|
114
|
-
filterTitle: T._("No Approval Policies Found"),
|
|
115
|
-
isLoading: L,
|
|
116
|
-
dataLength: I?.data.length || 0,
|
|
117
|
-
isFiltering: W,
|
|
118
|
-
isSearching: G,
|
|
119
|
-
isError: R,
|
|
120
|
-
onCreate: () => w?.(),
|
|
121
|
-
refetch: z,
|
|
122
|
-
entityName: T._("Approval Policies"),
|
|
123
|
-
actionButtonLabel: T._("Create")
|
|
124
|
-
})
|
|
125
|
-
})
|
|
126
|
-
});
|
|
127
|
-
};
|
|
128
|
-
//#endregion
|
|
129
|
-
export { C as ApprovalPoliciesTable };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./index163.js";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Typography as e } from "./index146.js";
|
|
2
|
-
import { twMerge as t } from "tailwind-merge";
|
|
3
|
-
import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js
|
|
5
|
-
var i = ({ title: i, extra: a, className: o, titleVariant: s = "h2" }) => /* @__PURE__ */ r("div", {
|
|
6
|
-
className: t("ttw:flex ttw:justify-between ttw:items-center ttw:mb-6", o),
|
|
7
|
-
children: [/* @__PURE__ */ n(e, {
|
|
8
|
-
variant: s,
|
|
9
|
-
children: i
|
|
10
|
-
}), a ? /* @__PURE__ */ n("aside", { children: a }) : null]
|
|
11
|
-
});
|
|
12
|
-
//#endregion
|
|
13
|
-
export { i as PageHeader };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Button as e } from "../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { Scope as t } from "../../shared/data-access/dist/lib/scopes.js";
|
|
3
|
-
import "../../shared/data-access/dist/index.js";
|
|
4
|
-
import { Dialog as n } from "./index117.js";
|
|
5
|
-
import "./index118.js";
|
|
6
|
-
import { ApprovalPolicyDetails as r } from "./index131.js";
|
|
7
|
-
import { MoniteScopedProviders as i } from "./index143.js";
|
|
8
|
-
import { useUserPermissions as a } from "./index144.js";
|
|
9
|
-
import { AccessRestriction as o } from "./index150.js";
|
|
10
|
-
import "./index153.js";
|
|
11
|
-
import { ApprovalPoliciesTable as s } from "./index163.js";
|
|
12
|
-
import { PageHeader as c } from "./index165.js";
|
|
13
|
-
import "./index132.js";
|
|
14
|
-
import "./index164.js";
|
|
15
|
-
import { useCallback as l, useState as u } from "react";
|
|
16
|
-
import { Plus as d } from "lucide-react";
|
|
17
|
-
import { Fragment as f, jsx as p, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
18
|
-
import { useLingui as h } from "@lingui/react";
|
|
19
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js
|
|
20
|
-
var g = () => /* @__PURE__ */ p(i, { children: /* @__PURE__ */ p(_, {}) }), _ = () => {
|
|
21
|
-
let { i18n: i } = h(), [g, _] = u(void 0), [v, y] = u(!1), b = l((e) => {
|
|
22
|
-
_(e), y(!0);
|
|
23
|
-
}, []), x = () => {
|
|
24
|
-
y(!0), _(void 0);
|
|
25
|
-
}, S = a(), C = S.has(t.ApprovalPolicyReadOrg), w = S.has(t.ApprovalPolicyWriteOrg);
|
|
26
|
-
return /* @__PURE__ */ m(f, { children: [
|
|
27
|
-
/* @__PURE__ */ p(c, {
|
|
28
|
-
className: "ttw:px-2",
|
|
29
|
-
titleVariant: "h3",
|
|
30
|
-
title: i._("Bill pay"),
|
|
31
|
-
extra: /* @__PURE__ */ m(e, {
|
|
32
|
-
id: "create",
|
|
33
|
-
size: "sm",
|
|
34
|
-
disabled: !w,
|
|
35
|
-
onClick: x,
|
|
36
|
-
children: [/* @__PURE__ */ p(d, { className: "ttw:size-4" }), i._("Create")]
|
|
37
|
-
})
|
|
38
|
-
}),
|
|
39
|
-
!C && /* @__PURE__ */ p(o, {}),
|
|
40
|
-
C && /* @__PURE__ */ p(s, {
|
|
41
|
-
onRowClick: b,
|
|
42
|
-
onCreateClick: x
|
|
43
|
-
}),
|
|
44
|
-
/* @__PURE__ */ p(n, {
|
|
45
|
-
open: v,
|
|
46
|
-
alignDialog: "right",
|
|
47
|
-
onClose: () => y(!1),
|
|
48
|
-
children: /* @__PURE__ */ p(r, {
|
|
49
|
-
id: g,
|
|
50
|
-
onCreated: (e) => _(e)
|
|
51
|
-
})
|
|
52
|
-
})
|
|
53
|
-
] });
|
|
54
|
-
};
|
|
55
|
-
//#endregion
|
|
56
|
-
export { g as ApprovalPolicies };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { useCounterpartById as e } from "./index37.js";
|
|
2
|
-
import "./index48.js";
|
|
3
|
-
import { getCounterpartName as t } from "./index97.js";
|
|
4
|
-
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
5
|
-
import { Skeleton as r } from "@mui/material";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js
|
|
7
|
-
var i = ({ counterpartId: i }) => {
|
|
8
|
-
let { data: a, isLoading: o } = e(i), s = a ? t(a) : "";
|
|
9
|
-
return o ? /* @__PURE__ */ n(r, {
|
|
10
|
-
animation: "wave",
|
|
11
|
-
height: 26,
|
|
12
|
-
width: "100%"
|
|
13
|
-
}) : s ? /* @__PURE__ */ n("span", { children: s }) : /* @__PURE__ */ n("span", {
|
|
14
|
-
style: { opacity: .4 },
|
|
15
|
-
children: "-"
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
//#endregion
|
|
19
|
-
export { i as CounterpartNameCellById };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./index168.js";
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index17.js
|
|
2
|
-
function e(e) {
|
|
3
|
-
return typeof e == "object" && !!e && "detail" in e && Array.isArray(e.detail);
|
|
4
|
-
}
|
|
5
|
-
var t = (e) => typeof e == "number" || /^\d+$/.test(e), n = (e) => /^[A-Z]/.test(e) || e.includes("[") || e.includes("-"), r = (e) => e.filter((e, t) => t !== 0 || e !== "body").filter((e) => t(e) || !n(String(e))).join("."), i = (e) => typeof e == "string" || typeof e == "number", a = (e, t) => e === t || RegExp(`(^|[^A-Za-z0-9_])${t}([^A-Za-z0-9_]|$)`).test(e), o = (e) => {
|
|
6
|
-
if (typeof e == "string") return e.trim() ? {
|
|
7
|
-
path: "",
|
|
8
|
-
loc: [],
|
|
9
|
-
msg: e,
|
|
10
|
-
type: ""
|
|
11
|
-
} : null;
|
|
12
|
-
if (typeof e != "object" || !e) return null;
|
|
13
|
-
let { loc: t, msg: n, type: a } = e;
|
|
14
|
-
if (typeof n != "string" || !n.trim()) return null;
|
|
15
|
-
let o = Array.isArray(t) ? t.filter(i) : [];
|
|
16
|
-
return {
|
|
17
|
-
path: r(o),
|
|
18
|
-
loc: o,
|
|
19
|
-
msg: n,
|
|
20
|
-
type: typeof a == "string" ? a : ""
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
function s(t, { irrelevantVariants: n = [] } = {}) {
|
|
24
|
-
if (!e(t) || !t.detail?.length) return [];
|
|
25
|
-
let r = [], i = /* @__PURE__ */ new Set();
|
|
26
|
-
for (let e of t.detail) {
|
|
27
|
-
let t = o(e);
|
|
28
|
-
if (!t || t.loc.some((e) => typeof e == "string" && n.some((t) => a(e, t)))) continue;
|
|
29
|
-
let s = `${t.path}:${t.msg}`;
|
|
30
|
-
i.has(s) || (i.add(s), r.push(t));
|
|
31
|
-
}
|
|
32
|
-
return r;
|
|
33
|
-
}
|
|
34
|
-
var c = 3;
|
|
35
|
-
function l(e, t) {
|
|
36
|
-
let n = [...new Set(t.map(({ msg: e }) => e))];
|
|
37
|
-
if (!n.length) return "";
|
|
38
|
-
let r = n.slice(0, c).join("; "), i = n.length - c;
|
|
39
|
-
return i > 0 ? e._("{message} (+{count} more)", {
|
|
40
|
-
message: r,
|
|
41
|
-
count: i
|
|
42
|
-
}) : r;
|
|
43
|
-
}
|
|
44
|
-
//#endregion
|
|
45
|
-
export { e as isHTTPValidationError, s as parseAPIValidationErrors, l as summarizeAPIValidationErrors };
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js
|
|
2
|
-
function e({ layout: e, navigationPosition: t, pageSizePosition: n, hasPageSizeSelect: r }) {
|
|
3
|
-
if (!r) return {
|
|
4
|
-
justifyContent: "center",
|
|
5
|
-
flexDirection: "row",
|
|
6
|
-
gap: void 0
|
|
7
|
-
};
|
|
8
|
-
if (e === "custom") {
|
|
9
|
-
if (t === "center" && n === "center") return {
|
|
10
|
-
justifyContent: "center",
|
|
11
|
-
flexDirection: "row",
|
|
12
|
-
gap: 3
|
|
13
|
-
};
|
|
14
|
-
if (t === "left" && n === "left") return {
|
|
15
|
-
justifyContent: "flex-start",
|
|
16
|
-
flexDirection: "row",
|
|
17
|
-
gap: 3
|
|
18
|
-
};
|
|
19
|
-
if (t === "right" && n === "right") return {
|
|
20
|
-
justifyContent: "flex-end",
|
|
21
|
-
flexDirection: "row-reverse",
|
|
22
|
-
gap: 3
|
|
23
|
-
};
|
|
24
|
-
if (t === "left" && n === "right") return {
|
|
25
|
-
justifyContent: "space-between",
|
|
26
|
-
flexDirection: "row",
|
|
27
|
-
gap: void 0
|
|
28
|
-
};
|
|
29
|
-
if (t === "right" && n === "left") return {
|
|
30
|
-
justifyContent: "space-between",
|
|
31
|
-
flexDirection: "row-reverse",
|
|
32
|
-
gap: void 0
|
|
33
|
-
};
|
|
34
|
-
if (t === "center") return {
|
|
35
|
-
justifyContent: "space-around",
|
|
36
|
-
flexDirection: n === "left" ? "row-reverse" : "row",
|
|
37
|
-
gap: void 0
|
|
38
|
-
};
|
|
39
|
-
if (n === "center") return {
|
|
40
|
-
justifyContent: "space-around",
|
|
41
|
-
flexDirection: t === "left" ? "row" : "row-reverse",
|
|
42
|
-
gap: void 0
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
switch (e) {
|
|
46
|
-
case "reversed": return {
|
|
47
|
-
justifyContent: "space-between",
|
|
48
|
-
flexDirection: "row-reverse",
|
|
49
|
-
gap: void 0
|
|
50
|
-
};
|
|
51
|
-
case "centered": return {
|
|
52
|
-
justifyContent: "center",
|
|
53
|
-
flexDirection: "row",
|
|
54
|
-
gap: 3
|
|
55
|
-
};
|
|
56
|
-
default: return {
|
|
57
|
-
justifyContent: "space-between",
|
|
58
|
-
flexDirection: "row",
|
|
59
|
-
gap: void 0
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
//#endregion
|
|
64
|
-
export { e as getLayoutStyles };
|