@tesouro/embedded-components-react 0.7.58 → 0.7.60
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 +2 -3
- package/dist/index.css +0 -15
- package/dist/lib/monite-sdk.d.ts +5 -261
- package/dist/lib/monite-sdk.js +46 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +50 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +176 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +48 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +3 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +1 -1224
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +2 -176
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +53 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +41 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +69 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +14 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +71 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +170 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +6 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +65 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +1 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +77 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +32 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +1 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +57 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +1 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +568 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +0 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +156 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +24 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +1 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +10 -567
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +16 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +26 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +17 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +69 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +25 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +41 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +49 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +62 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +1 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +27 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +40 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +78 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +2 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +49 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +75 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +113 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +5 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +10 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +10 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +20 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +77 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +1 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +125 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +1 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +54 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +1 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +117 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +29 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +54 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +75 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +26 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +1 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +59 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +19 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +20 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +184 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +1 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +29 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +3 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +35 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +17 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +16 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +24 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +5 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +23 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +11 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +8 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +24 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +81 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +14 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +102 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +42 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +27 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +101 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +37 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +171 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +4 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +67 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +24 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +212 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +87 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +20 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +1 -173
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +160 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +101 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +43 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +4 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +20 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +75 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +5 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +9 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +11 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +133 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +5 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +5 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +5 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +217 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +31 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +34 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +19 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +73 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +181 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +196 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +99 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +63 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +53 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +91 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +39 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +72 -177
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +85 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +12 -204
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +22 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +17 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +5 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +20 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +1 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +22 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +28 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +20 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +18 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +33 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +29 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +825 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index35.js +20 -930
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +68 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +5 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +5 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +22 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +6 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +23 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +10 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +6 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +4 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +18 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +9 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +70 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +19 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +15 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +64 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +31 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +40 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +21 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +12 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +53 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +10 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +23 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +69 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +78 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +1 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +8 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +25 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +4 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +16 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +3 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +2 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +57 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +35 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +103 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +56 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +53 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +1 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +15 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +153 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +1222 -53
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +0 -2
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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/index186.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
|
+
import "./index183.js";
|
|
2
|
+
import "./index184.js";
|
|
3
|
+
import "./index185.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./index52.js";
|
|
@@ -1,61 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { useLingui as
|
|
7
|
-
import s from "@mui/icons-material/CheckCircleOutlineRounded";
|
|
8
|
-
import c from "@mui/icons-material/HighlightOffRounded";
|
|
1
|
+
import { Button as e } from "./index110.js";
|
|
2
|
+
import { LoadingSpinner as t } from "./index52.js";
|
|
3
|
+
import { Dialog as n, DialogContent as r, DialogDescription as i, DialogFooter as a, DialogHeader as o, DialogTitle as s } from "./index151.js";
|
|
4
|
+
import "./index187.js";
|
|
5
|
+
import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { useLingui as u } from "@lingui/react";
|
|
9
7
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js
|
|
10
|
-
var
|
|
11
|
-
let { i18n:
|
|
12
|
-
return /* @__PURE__ */ n
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
var d = ({ open: d, title: f, message: p, children: m, confirmLabel: h, cancelLabel: g, onClose: _, onConfirm: v, container: y, isLoading: b = !1 }) => {
|
|
9
|
+
let { i18n: x } = u();
|
|
10
|
+
return /* @__PURE__ */ c(n, {
|
|
11
|
+
open: d,
|
|
12
|
+
onOpenChange: _,
|
|
13
|
+
"aria-label": x._("Confirmation dialog"),
|
|
14
|
+
children: /* @__PURE__ */ l(r, {
|
|
15
|
+
container: y,
|
|
16
|
+
showCloseButton: !1,
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ c(o, { children: /* @__PURE__ */ c(s, { children: f }) }),
|
|
19
|
+
/* @__PURE__ */ c(i, { children: p || m }),
|
|
20
|
+
/* @__PURE__ */ l(a, { children: [/* @__PURE__ */ c(e, {
|
|
21
|
+
onClick: (e) => {
|
|
22
|
+
e.stopPropagation(), _();
|
|
23
|
+
},
|
|
24
|
+
variant: "outline",
|
|
25
|
+
children: g
|
|
26
|
+
}), /* @__PURE__ */ l(e, {
|
|
27
|
+
onClick: (e) => {
|
|
28
|
+
e.stopPropagation(), v();
|
|
29
|
+
},
|
|
30
|
+
disabled: b,
|
|
31
|
+
variant: "destructive",
|
|
32
|
+
children: [b && /* @__PURE__ */ c(t, { className: "ttw:w-5 ttw:h-5 ttw:border-inherit ttw:border-t-transparent" }), h]
|
|
33
|
+
})] })
|
|
34
|
+
]
|
|
35
|
+
})
|
|
23
36
|
});
|
|
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
37
|
};
|
|
60
38
|
//#endregion
|
|
61
|
-
export { d as
|
|
39
|
+
export { d as ConfirmationModal };
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
import
|
|
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/index189.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
|
+
import "./index188.js";
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import { UserAvatar as t } from "./index189.js";
|
|
4
|
-
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
5
|
-
import { Chip as r, Skeleton as i } from "@mui/material";
|
|
1
|
+
import { Fragment as e } from "react";
|
|
2
|
+
import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
6
3
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js
|
|
7
|
-
|
|
8
|
-
let
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
})
|
|
20
|
-
}
|
|
4
|
+
function r(r, i) {
|
|
5
|
+
let a = r.split("\0");
|
|
6
|
+
return a.length === 1 ? /* @__PURE__ */ t("span", { children: r }) : /* @__PURE__ */ t("span", {
|
|
7
|
+
className: "ttw:flex ttw:min-w-0",
|
|
8
|
+
children: a.map((r, o) => /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
|
|
9
|
+
className: "ttw:whitespace-pre-wrap",
|
|
10
|
+
children: r
|
|
11
|
+
}), o < a.length - 1 && /* @__PURE__ */ t("span", {
|
|
12
|
+
className: "ttw:min-w-[4ch] ttw:shrink-[9999] ttw:truncate",
|
|
13
|
+
title: i,
|
|
14
|
+
children: i
|
|
15
|
+
})] }, o))
|
|
16
|
+
});
|
|
17
|
+
}
|
|
21
18
|
//#endregion
|
|
22
|
-
export {
|
|
19
|
+
export { r as messageWithTruncatedName };
|
|
@@ -1,186 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import "./index53.js";
|
|
7
|
-
import { useCurrencies as i } from "./index67.js";
|
|
8
|
-
import { useAreCounterpartsLoading as a, useAutosizeGridColumns as o } from "./index73.js";
|
|
9
|
-
import "./index80.js";
|
|
10
|
-
import { FILTER_TYPE_CREATED_AT as s } from "./index88.js";
|
|
11
|
-
import { MoniteScopedProviders as c } from "./index151.js";
|
|
12
|
-
import { useUserPermissions as l } from "./index152.js";
|
|
13
|
-
import { DataGridEmptyState as u } from "./index155.js";
|
|
14
|
-
import "./index156.js";
|
|
15
|
-
import { GetNoRowsOverlay as d } from "./index157.js";
|
|
16
|
-
import { AccessRestriction as f } from "./index158.js";
|
|
17
|
-
import "./index161.js";
|
|
18
|
-
import { CounterpartNameCellById as p } from "./index176.js";
|
|
19
|
-
import "./index177.js";
|
|
20
|
-
import { TablePagination as m } from "./index179.js";
|
|
21
|
-
import "./index180.js";
|
|
22
|
-
import { ApprovalRequestsFilter as h } from "./index185.js";
|
|
23
|
-
import { ApprovalRequestStatusChip as g } from "./index186.js";
|
|
24
|
-
import "./index187.js";
|
|
25
|
-
import { useApprovalRequestActionsCell as _ } from "./index188.js";
|
|
26
|
-
import { UserCell as v } from "./index190.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";
|
|
1
|
+
import { getAPIErrorMessage as e } from "./index18.js";
|
|
2
|
+
import { useMoniteContext as t } from "./index36.js";
|
|
3
|
+
import { messageWithTruncatedName as n } from "./index190.js";
|
|
4
|
+
import { toast as r } from "react-hot-toast";
|
|
5
|
+
import { useLingui as i } from "@lingui/react";
|
|
33
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js
|
|
34
|
-
var
|
|
35
|
-
let { api:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
})]
|
|
7
|
+
var a = (a) => {
|
|
8
|
+
let { api: o, queryClient: s } = t(), { i18n: c } = i();
|
|
9
|
+
return o.finops.postProducts.useMutation(void 0, {
|
|
10
|
+
onSuccess: async (e) => {
|
|
11
|
+
a?.(e), await o.finops.getProducts.invalidateQueries(s), r.success(n(c._("{name} has been added to the list.", { name: "\0" }), e.name));
|
|
12
|
+
},
|
|
13
|
+
onError: (t) => {
|
|
14
|
+
let n = e(c, t, { defaultMessage: "" });
|
|
15
|
+
r.error(n ? c._("Failed to create: {reason}", { reason: n }) : c._("Failed to create"));
|
|
16
|
+
}
|
|
183
17
|
});
|
|
184
18
|
};
|
|
185
19
|
//#endregion
|
|
186
|
-
export {
|
|
20
|
+
export { a as useCreateProduct };
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { useMoniteContext as e } from "./index36.js";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js
|
|
3
|
+
var t = () => {
|
|
4
|
+
let { api: t } = e();
|
|
5
|
+
return t.finops.getMeasureUnits.useQuery();
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as useGetMeasureUnits };
|
|
@@ -1,32 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { useUserPermissions as r } from "./index152.js";
|
|
6
|
-
import { AccessRestriction as i } from "./index158.js";
|
|
7
|
-
import "./index161.js";
|
|
8
|
-
import { PageHeader as a } from "./index173.js";
|
|
9
|
-
import { ApprovalRequestsTable as o } from "./index191.js";
|
|
10
|
-
import "./index192.js";
|
|
11
|
-
import { Fragment as s, jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
12
|
-
import { toast as u } from "react-hot-toast";
|
|
13
|
-
import { useLingui as d } from "@lingui/react";
|
|
1
|
+
import { useMoniteContext as e } from "./index36.js";
|
|
2
|
+
import { messageWithTruncatedName as t } from "./index190.js";
|
|
3
|
+
import { toast as n } from "react-hot-toast";
|
|
4
|
+
import { useLingui as r } from "@lingui/react";
|
|
14
5
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js
|
|
15
|
-
var
|
|
16
|
-
let {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
case "approve": return _(e);
|
|
26
|
-
case "reject": return v(e);
|
|
27
|
-
}
|
|
28
|
-
} })
|
|
29
|
-
] });
|
|
6
|
+
var i = (i) => {
|
|
7
|
+
let { api: a, queryClient: o } = e(), { i18n: s } = r();
|
|
8
|
+
return a.finops.deleteMeasureUnitsId.useMutation(void 0, {
|
|
9
|
+
onSuccess: async () => {
|
|
10
|
+
i && (await a.finops.getMeasureUnits.invalidateQueries(o), n.success(t(s._("Unit {name} was deleted from the list.", { name: "\0" }), i)));
|
|
11
|
+
},
|
|
12
|
+
onError: (e) => {
|
|
13
|
+
console.error(e), n.error(s._("Failed to delete Unit."));
|
|
14
|
+
}
|
|
15
|
+
});
|
|
30
16
|
};
|
|
31
17
|
//#endregion
|
|
32
|
-
export {
|
|
18
|
+
export { i as useDeleteMeasureUnit };
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
1
|
+
import { getAPIErrorMessage as e } from "./index18.js";
|
|
2
|
+
import { useMoniteContext as t } from "./index36.js";
|
|
3
|
+
import { messageWithTruncatedName as n } from "./index190.js";
|
|
4
|
+
import { toast as r } from "react-hot-toast";
|
|
5
|
+
import { useLingui as i } from "@lingui/react";
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js
|
|
7
|
+
var a = (a, o) => {
|
|
8
|
+
let { api: s, queryClient: c } = t(), { i18n: l } = i();
|
|
9
|
+
return s.finops.postMeasureUnits.useMutation({}, {
|
|
10
|
+
onSuccess: async (e) => {
|
|
11
|
+
await s.finops.getMeasureUnits.invalidateQueries(c), r.success(n(l._("Unit {name} was added to the list", { name: "\0" }), e.name)), a?.();
|
|
12
|
+
},
|
|
13
|
+
onError: async (t) => {
|
|
14
|
+
let n = e(l, t);
|
|
15
|
+
if (n.includes("already exists")) {
|
|
16
|
+
o?.(n);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
r.error(n);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { a as useCreateMeasureUnit };
|
|
@@ -1 +1,24 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { getAPIErrorMessage as e } from "./index18.js";
|
|
2
|
+
import { useMoniteContext as t } from "./index36.js";
|
|
3
|
+
import { messageWithTruncatedName as n } from "./index190.js";
|
|
4
|
+
import { toast as r } from "react-hot-toast";
|
|
5
|
+
import { useLingui as i } from "@lingui/react";
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js
|
|
7
|
+
var a = (a, o, s) => {
|
|
8
|
+
let { api: c, queryClient: l } = t(), { i18n: u } = i();
|
|
9
|
+
return c.finops.patchMeasureUnitsId.useMutation({ path: { unit_id: a } }, {
|
|
10
|
+
onSuccess: async (e) => {
|
|
11
|
+
await Promise.all([c.finops.getMeasureUnits.invalidateQueries(l), c.finops.getMeasureUnitsId.invalidateQueries({ parameters: { path: { unit_id: a } } }, l)]), r.success(n(u._("Unit {name} was updated", { name: "\0" }), e.name)), o?.();
|
|
12
|
+
},
|
|
13
|
+
onError: (t) => {
|
|
14
|
+
let n = e(u, t);
|
|
15
|
+
if (n.includes("already exists")) {
|
|
16
|
+
s?.(n);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
r.error(n);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { a as useUpdateMeasureUnit };
|
|
@@ -1,39 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { LoadingSpinner as t } from "./index57.js";
|
|
3
|
-
import { Dialog as n, DialogContent as r, DialogDescription as i, DialogFooter as a, DialogHeader as o, DialogTitle as s } from "./index159.js";
|
|
4
|
-
import "./index195.js";
|
|
5
|
-
import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import { useLingui as u } from "@lingui/react";
|
|
1
|
+
import { useMoniteContext as e } from "./index36.js";
|
|
7
2
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js
|
|
8
|
-
var
|
|
9
|
-
let {
|
|
10
|
-
return
|
|
11
|
-
open: d,
|
|
12
|
-
onOpenChange: _,
|
|
13
|
-
"aria-label": x._("Confirmation dialog"),
|
|
14
|
-
children: /* @__PURE__ */ l(r, {
|
|
15
|
-
container: y,
|
|
16
|
-
showCloseButton: !1,
|
|
17
|
-
children: [
|
|
18
|
-
/* @__PURE__ */ c(o, { children: /* @__PURE__ */ c(s, { children: f }) }),
|
|
19
|
-
/* @__PURE__ */ c(i, { children: p || m }),
|
|
20
|
-
/* @__PURE__ */ l(a, { children: [/* @__PURE__ */ c(e, {
|
|
21
|
-
onClick: (e) => {
|
|
22
|
-
e.stopPropagation(), _();
|
|
23
|
-
},
|
|
24
|
-
variant: "outline",
|
|
25
|
-
children: g
|
|
26
|
-
}), /* @__PURE__ */ l(e, {
|
|
27
|
-
onClick: (e) => {
|
|
28
|
-
e.stopPropagation(), v();
|
|
29
|
-
},
|
|
30
|
-
disabled: b,
|
|
31
|
-
variant: "destructive",
|
|
32
|
-
children: [b && /* @__PURE__ */ c(t, { className: "ttw:w-5 ttw:h-5 ttw:border-inherit ttw:border-t-transparent" }), h]
|
|
33
|
-
})] })
|
|
34
|
-
]
|
|
35
|
-
})
|
|
36
|
-
});
|
|
3
|
+
var t = (t, n = !0) => {
|
|
4
|
+
let { api: r } = e();
|
|
5
|
+
return r.finops.getProducts.useQuery({ query: t }, { enabled: n });
|
|
37
6
|
};
|
|
38
7
|
//#endregion
|
|
39
|
-
export {
|
|
8
|
+
export { t as useGetProducts };
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { useMoniteContext as e } from "./index36.js";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js
|
|
3
|
+
var t = (t, n = !0) => {
|
|
4
|
+
let { api: r } = e();
|
|
5
|
+
return r.finops.getProductsId.useQuery({ path: { product_id: t } }, { enabled: n });
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as useGetProductById };
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useMoniteContext as e } from "./index36.js";
|
|
2
|
+
import { toast as t } from "react-hot-toast";
|
|
3
|
+
import { useLingui as n } from "@lingui/react";
|
|
3
4
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js
|
|
4
|
-
|
|
5
|
-
let a =
|
|
6
|
-
return
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
title: i,
|
|
14
|
-
children: i
|
|
15
|
-
})] }, o))
|
|
5
|
+
var r = (r, i) => {
|
|
6
|
+
let { i18n: a } = n(), { api: o, queryClient: s } = e();
|
|
7
|
+
return o.finops.deleteProductsId.useMutation({ path: { product_id: r } }, {
|
|
8
|
+
onSuccess: async () => {
|
|
9
|
+
await o.finops.getProducts.invalidateQueries(s), t.success(a._("Product was deleted.")), i?.();
|
|
10
|
+
},
|
|
11
|
+
onError: () => {
|
|
12
|
+
t.error(a._("Failed to delete product."));
|
|
13
|
+
}
|
|
16
14
|
});
|
|
17
|
-
}
|
|
15
|
+
};
|
|
18
16
|
//#endregion
|
|
19
|
-
export { r as
|
|
17
|
+
export { r as useDeleteProduct };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { getAPIErrorMessage as e } from "./index18.js";
|
|
2
|
-
import { useMoniteContext as t } from "./
|
|
3
|
-
import { messageWithTruncatedName as n } from "./
|
|
2
|
+
import { useMoniteContext as t } from "./index36.js";
|
|
3
|
+
import { messageWithTruncatedName as n } from "./index190.js";
|
|
4
4
|
import { toast as r } from "react-hot-toast";
|
|
5
5
|
import { useLingui as i } from "@lingui/react";
|
|
6
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js
|
|
7
7
|
var a = (a) => {
|
|
8
|
-
let {
|
|
9
|
-
return
|
|
8
|
+
let { i18n: o } = i(), { api: s, queryClient: c } = t();
|
|
9
|
+
return s.finops.patchProductsId.useMutation({ path: { product_id: a } }, {
|
|
10
10
|
onSuccess: async (e) => {
|
|
11
|
-
|
|
11
|
+
await s.finops.getProducts.invalidateQueries(c), await s.finops.getProductsId.invalidateQueries({ parameters: { path: { product_id: e.id } } }, c), r.success(n(e.type === "product" ? o._("Product {name} was updated.", { name: "\0" }) : o._("Service {name} was updated.", { name: "\0" }), e.name));
|
|
12
12
|
},
|
|
13
13
|
onError: (t) => {
|
|
14
|
-
let n = e(
|
|
15
|
-
r.error(n ?
|
|
14
|
+
let n = e(o, t, { defaultMessage: "" });
|
|
15
|
+
r.error(n ? o._("Failed to update: {reason}", { reason: n }) : o._("Failed to update"));
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
//#endregion
|
|
20
|
-
export { a as
|
|
20
|
+
export { a as useUpdateProduct };
|