@tesouro/embedded-components-react 0.2.59 → 0.2.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/dist/lib/ReceivablesWidget.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/data-access/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/data-access/dist/index6.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index6.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +10 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +22 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +35 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +23 -1269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1270 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +32 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +7 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +26 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +72 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +6 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +9 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +28 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +32 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +12 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +119 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +46 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +47 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +46 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +11 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +150 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +99 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +57 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +25 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +10 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +19 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +10 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +21 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +27 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +109 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +68 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +12 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +12 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +9 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +41 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +74 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +56 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +196 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +24 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +77 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +29 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +42 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +6 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +114 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +68 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +184 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +27 -390
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +121 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +56 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +21 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +25 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +19 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +12 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +4 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +4 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +88 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +43 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +47 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +394 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +19 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +20 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +15 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +89 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +56 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +397 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +69 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +407 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +101 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +26 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +5 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +213 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +10 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +12 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +12 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +34 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +34 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +44 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +28 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +5 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +76 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +32 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +19 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +22 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +56 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +29 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +55 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +17 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +11 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +29 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +39 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +63 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +93 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +109 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +82 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +62 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +39 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +59 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +28 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +114 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +21 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +43 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +53 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +149 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +9 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +19 -491
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +72 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +44 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +22 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +17 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +164 -338
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +130 -299
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +152 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +10 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +18 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +61 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +67 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +55 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +6 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +58 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +24 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +62 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +14 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +63 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +43 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +22 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +189 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +103 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +81 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +289 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +49 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +15 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +85 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +223 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +39 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +37 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +341 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +302 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +90 -176
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +156 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +266 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +23 -288
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +19 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +75 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +75 -223
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +41 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +2 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +94 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +95 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +192 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +41 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +43 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +48 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +105 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +155 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +27 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +27 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +78 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +24 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +127 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +488 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +162 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +64 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +22 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +7 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +53 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +17 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +10 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +10 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +32 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +53 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +34 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +20 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +32 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +11 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +23 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +47 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +11 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +61 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +12 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +67 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +123 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +18 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +71 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +16 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +16 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +11 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +19 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +21 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +26 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +75 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +65 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +36 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +33 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +84 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +103 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +107 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +96 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +38 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +35 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +24 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +24 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +5 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +126 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +5 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +64 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +43 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +27 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +9 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +19 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +39 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +29 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +83 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +13 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +34 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +93 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +15 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +21 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +9 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +55 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +69 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +21 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +19 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +47 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +56 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +28 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +42 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +34 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +13 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +50 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +53 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +38 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +45 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +55 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +80 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +32 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +51 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +51 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +35 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +48 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/onboarding-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/profile-widget/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +106 -106
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +319 -325
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index11.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index12.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index15.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index16.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index17.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index20.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index22.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index5.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index8.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +2 -2
- package/package.json +1 -1
|
@@ -1,24 +1,79 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsxs as n, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useFormContext as $, Controller as c } from "react-hook-form";
|
|
3
|
+
import { useLingui as F } from "@lingui/react";
|
|
4
|
+
import { Typography as d } from "./index86.js";
|
|
5
|
+
import { Field as m, FieldContent as s, FieldLabel as w, FieldError as u } from "./index154.js";
|
|
6
|
+
import { Input as g } from "./index118.js";
|
|
7
|
+
import { Checkbox as S } from "./index363.js";
|
|
8
|
+
const E = ({
|
|
9
|
+
control: o
|
|
10
|
+
}) => {
|
|
11
|
+
const {
|
|
12
|
+
i18n: i
|
|
13
|
+
} = F(), {
|
|
14
|
+
setValue: v,
|
|
15
|
+
watch: a
|
|
16
|
+
} = $(), p = a("min_digits"), f = a("prefix"), h = a("separator"), b = a("include_date"), x = a("invoice"), N = a("invoice_number");
|
|
17
|
+
function y() {
|
|
18
|
+
return `${x}${h}${f ? `${f}${h}` : ""}${b ? `${(/* @__PURE__ */ new Date()).getFullYear()}${h}` : ""}${N.toString().padStart(p, "0")}`;
|
|
19
|
+
}
|
|
20
|
+
const _ = y();
|
|
21
|
+
return /* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
22
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:pt-5 ttw:pb-2.5", children: [
|
|
23
|
+
/* @__PURE__ */ e(d, { variant: "h3", children: i._("Invoice numbering") }),
|
|
24
|
+
/* @__PURE__ */ e(d, { variant: "body2", color: "muted", children: i._("Specify how you want your invoices to be numbered. Changes apply to new invoices only. Existing invoice numbers won't be updated.") })
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:w-94 ttw:gap-0.5 ttw:p-4 ttw:bg-neutral-200 ttw:rounded-xl", children: [
|
|
27
|
+
/* @__PURE__ */ e(d, { variant: "body2", color: "muted", children: i._("Preview") }),
|
|
28
|
+
/* @__PURE__ */ e(d, { variant: "h4", className: "ttw:font-medium", children: _ })
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:w-min ttw:gap-2 ttw:p-2", children: [
|
|
31
|
+
/* @__PURE__ */ e(c, { name: "invoice", control: o, render: ({
|
|
32
|
+
field: t,
|
|
33
|
+
fieldState: {
|
|
34
|
+
error: r
|
|
35
|
+
}
|
|
36
|
+
}) => /* @__PURE__ */ e(m, { children: /* @__PURE__ */ n(s, { className: "ttw:grow-0", children: [
|
|
37
|
+
/* @__PURE__ */ e(w, { htmlFor: t.name, children: i._("Invoice prefix") }),
|
|
38
|
+
/* @__PURE__ */ e(g, { ...t, id: t.name, maxLength: 25, "aria-invalid": !!r || void 0, className: "ttw:w-29 ttw:min-w-29 ttw:bg-white" }),
|
|
39
|
+
/* @__PURE__ */ e(u, { errors: [r] })
|
|
40
|
+
] }) }) }),
|
|
41
|
+
/* @__PURE__ */ e(c, { name: "invoice_number", control: o, render: ({
|
|
42
|
+
field: t,
|
|
43
|
+
fieldState: {
|
|
44
|
+
error: r
|
|
45
|
+
}
|
|
46
|
+
}) => /* @__PURE__ */ e(m, { children: /* @__PURE__ */ n(s, { className: "ttw:grow-0", children: [
|
|
47
|
+
/* @__PURE__ */ e(w, { htmlFor: t.name, children: i._("Starting number") }),
|
|
48
|
+
/* @__PURE__ */ e(g, { ...t, id: t.name, type: "number", "aria-invalid": !!r || void 0, onChange: (l) => {
|
|
49
|
+
const C = l.target.value.replace(/^0+(?=\d)/, "");
|
|
50
|
+
t.onChange(Number(C));
|
|
51
|
+
}, value: t.value.toString().padStart(p, "0"), className: "ttw:w-29 ttw:min-w-29 ttw:bg-white" }),
|
|
52
|
+
/* @__PURE__ */ e(u, { errors: [r] })
|
|
53
|
+
] }) }) }),
|
|
54
|
+
/* @__PURE__ */ e(c, { name: "min_digits", control: o, render: ({
|
|
55
|
+
field: t,
|
|
56
|
+
fieldState: {
|
|
57
|
+
error: r
|
|
58
|
+
}
|
|
59
|
+
}) => /* @__PURE__ */ e(m, { children: /* @__PURE__ */ n(s, { className: "ttw:grow-0", children: [
|
|
60
|
+
/* @__PURE__ */ e(w, { htmlFor: t.name, children: i._("Digit count") }),
|
|
61
|
+
/* @__PURE__ */ e(g, { ...t, id: t.name, type: "number", className: "ttw:bg-white ttw:w-29 ttw:max-w-29", onChange: (l) => {
|
|
62
|
+
+l.target.value > 20 ? v("min_digits", 20, {
|
|
63
|
+
shouldDirty: !0
|
|
64
|
+
}) : t.onChange(l);
|
|
65
|
+
}, "aria-invalid": !!r || void 0 }),
|
|
66
|
+
/* @__PURE__ */ e(u, { errors: [r] })
|
|
67
|
+
] }) }) })
|
|
68
|
+
] }),
|
|
69
|
+
/* @__PURE__ */ e("div", { className: "ttw:bg-transparent ttw:w-full ttw:p-2", children: /* @__PURE__ */ e(c, { name: "include_date", control: o, render: ({
|
|
70
|
+
field: t
|
|
71
|
+
}) => /* @__PURE__ */ e(m, { orientation: "horizontal", children: /* @__PURE__ */ n(s, { className: "ttw:flex-row ttw:items-center", children: [
|
|
72
|
+
/* @__PURE__ */ e(S, { id: t.name, ref: t.ref, checked: t.value ?? !1, onCheckedChange: t.onChange, onBlur: t.onBlur, className: "ttw:bg-white" }),
|
|
73
|
+
/* @__PURE__ */ e(w, { htmlFor: t.name, className: "ttw:font-normal", children: i._("Include the current year in the invoice number prefix") })
|
|
74
|
+
] }) }) }) })
|
|
75
|
+
] });
|
|
16
76
|
};
|
|
17
77
|
export {
|
|
18
|
-
|
|
19
|
-
s as FILTER_TYPE_CREATED_AT,
|
|
20
|
-
A as FILTER_TYPE_CREATED_BY,
|
|
21
|
-
i as FILTER_TYPE_SEARCH,
|
|
22
|
-
E as ROW_TO_STATUS_MUI_MAP,
|
|
23
|
-
n as getRowToStatusTextMap
|
|
78
|
+
E as InvoiceNumbering
|
|
24
79
|
};
|
|
@@ -1,46 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
e(r)
|
|
33
|
-
] }, r);
|
|
34
|
-
case "tags":
|
|
35
|
-
return /* @__PURE__ */ t("li", { children: [
|
|
36
|
-
/* @__PURE__ */ i(c, { width: 18 }),
|
|
37
|
-
e(r)
|
|
38
|
-
] }, r);
|
|
39
|
-
default:
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
}) }) : null;
|
|
43
|
-
};
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
const i = (n, t) => e.object({
|
|
3
|
+
min_digits: e.coerce.number().int().min(1, n._("Can't be less than 1")).max(20, n._("Can't be greater than 20")),
|
|
4
|
+
credit_note: e.string().min(1),
|
|
5
|
+
credit_note_number: e.coerce.number().int().min(t.credit_note, n._("Can't be less than {nextNumbersCredit_note}", {
|
|
6
|
+
nextNumbersCredit_note: t.credit_note
|
|
7
|
+
})),
|
|
8
|
+
delivery_note: e.string().min(1),
|
|
9
|
+
delivery_note_number: e.coerce.number().int().min(t.delivery_note, n._("Can't be less than {nextNumbersDelivery_note}", {
|
|
10
|
+
nextNumbersDelivery_note: t.delivery_note
|
|
11
|
+
})),
|
|
12
|
+
quote: e.string().min(1),
|
|
13
|
+
quote_number: e.coerce.number().int().min(t.quote, n._("Can't be less than {nextNumbersQuote}", {
|
|
14
|
+
nextNumbersQuote: t.quote
|
|
15
|
+
})),
|
|
16
|
+
invoice: e.string().min(1, n._("Invoice prefix is required")).max(25, n._("Invoice prefix should have at most 25 characters")),
|
|
17
|
+
invoice_number: e.coerce.number().int().min(t.invoice, n._("Can't be less than {nextNumbersInvoice}", {
|
|
18
|
+
nextNumbersInvoice: t.invoice
|
|
19
|
+
})),
|
|
20
|
+
purchase_order: e.string().min(1),
|
|
21
|
+
purchase_order_number: e.coerce.number().int().min(t.purchase_order, n._("Can't be less than {nextNumbersPurchase_order}", {
|
|
22
|
+
nextNumbersPurchase_order: t.purchase_order
|
|
23
|
+
})),
|
|
24
|
+
include_date: e.boolean(),
|
|
25
|
+
prefix: e.string().max(25, n._("Prefix should have at most 25 characters")),
|
|
26
|
+
separator: e.enum(["/", "-", "|", ".", ""]),
|
|
27
|
+
invoice_bank_display: e.boolean(),
|
|
28
|
+
update_paid_invoices: e.boolean(),
|
|
29
|
+
quote_signature_display: e.boolean(),
|
|
30
|
+
quote_electronic_signature: e.union([e.boolean(), e.string()])
|
|
31
|
+
});
|
|
44
32
|
export {
|
|
45
|
-
|
|
33
|
+
i as getInvoiceSettingsFormSchema
|
|
46
34
|
};
|
|
@@ -1,59 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
i18n: e
|
|
18
|
-
} = v(), {
|
|
19
|
-
api: n
|
|
20
|
-
} = y(), [r, l] = c(null), [m, a] = c(""), b = N(m, C), {
|
|
21
|
-
data: d
|
|
22
|
-
} = n.finops.getEntityUsers.useQuery({
|
|
23
|
-
query: {
|
|
24
|
-
name__istartswith: b || void 0
|
|
25
|
-
}
|
|
26
|
-
}), w = u(() => d?.data ?? [], [d]), i = u(() => w.map((o) => ({
|
|
27
|
-
value: o.id,
|
|
28
|
-
label: F(o)
|
|
29
|
-
})), [w]), p = u(() => !r || i.some((o) => o.value === r.value) ? i : [r, ...i], [i, r]);
|
|
30
|
-
return /* @__PURE__ */ s($, { items: p, value: r?.value ?? "", placeholder: e._("Added by"), emptyMessage: e._("No users found"), clearAriaLabel: e._("Clear selection"), onQueryChange: a, onValueChange: (o) => {
|
|
31
|
-
const h = Array.isArray(o) ? o[0] ?? "" : o ?? "";
|
|
32
|
-
l(p.find((g) => g.value === h) ?? null), t(h || void 0);
|
|
33
|
-
} });
|
|
34
|
-
}, q = ({
|
|
35
|
-
onChangeFilter: t
|
|
36
|
-
}) => {
|
|
37
|
-
const {
|
|
38
|
-
i18n: e
|
|
39
|
-
} = v(), {
|
|
40
|
-
root: n
|
|
41
|
-
} = E(), [r, l] = c(void 0), m = x((a) => {
|
|
42
|
-
t(k, a.trim() ? a : null);
|
|
43
|
-
}, C);
|
|
44
|
-
return /* @__PURE__ */ f("div", { className: "ttw:flex ttw:items-center ttw:gap-3 ttw:px-2 ttw:py-2", children: [
|
|
45
|
-
/* @__PURE__ */ s("div", { className: "ttw:flex-1", children: /* @__PURE__ */ s(A, { placeholder: e._("Search"), className: "ttw:h-9 ttw:w-full", onChange: (a) => m(a.target.value) }) }),
|
|
46
|
-
/* @__PURE__ */ s("div", { className: "ttw:w-48 ttw:shrink-0", children: /* @__PURE__ */ s(L, { onChange: (a) => t(D, a ?? null) }) }),
|
|
47
|
-
/* @__PURE__ */ f("div", { className: "ttw:relative ttw:w-44 ttw:shrink-0", children: [
|
|
48
|
-
/* @__PURE__ */ s(R, { value: r, placeholder: e._("Created at"), className: `ttw:h-9 ttw:border-border${r ? " ttw:pr-8" : ""}`, container: n, onChange: (a) => {
|
|
49
|
-
l(a), t(_, a ?? null);
|
|
50
|
-
} }),
|
|
51
|
-
r ? /* @__PURE__ */ s("button", { type: "button", "aria-label": e._("Clear created at filter"), 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", onClick: () => {
|
|
52
|
-
l(void 0), t(_, null);
|
|
53
|
-
}, children: /* @__PURE__ */ s(T, { className: "ttw:size-3.5" }) }) : null
|
|
54
|
-
] })
|
|
55
|
-
] });
|
|
1
|
+
const a = (n) => !!n && typeof n == "object" && "display_organization_bank_account" in n, t = (n, i) => a(n) ? !!(n.display_organization_bank_account ?? i) : i, _ = (n, i) => {
|
|
2
|
+
const o = a(n?.invoice);
|
|
3
|
+
return {
|
|
4
|
+
...n,
|
|
5
|
+
display_organization_bank_account: i.invoice_bank_display,
|
|
6
|
+
quote: {
|
|
7
|
+
...n?.quote,
|
|
8
|
+
display_signature: i.quote_signature_display
|
|
9
|
+
},
|
|
10
|
+
...o ? {
|
|
11
|
+
invoice: {
|
|
12
|
+
...n?.invoice,
|
|
13
|
+
display_organization_bank_account: i.invoice_bank_display
|
|
14
|
+
}
|
|
15
|
+
} : {}
|
|
16
|
+
};
|
|
56
17
|
};
|
|
57
18
|
export {
|
|
58
|
-
|
|
19
|
+
_ as buildDocumentRendering,
|
|
20
|
+
t as getBankDisplayValue,
|
|
21
|
+
a as hasBankDisplay
|
|
59
22
|
};
|
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import e from "@mui/icons-material/Cancel";
|
|
2
|
+
import _ from "@mui/icons-material/DangerousOutlined";
|
|
3
|
+
import r from "@mui/icons-material/HourglassEmpty";
|
|
4
|
+
import a from "@mui/icons-material/PaidOutlined";
|
|
5
|
+
const s = ["waiting", "approved", "rejected", "canceled"], o = {
|
|
6
|
+
approved: "success",
|
|
7
|
+
canceled: "secondary",
|
|
8
|
+
rejected: "error",
|
|
9
|
+
waiting: "warning"
|
|
10
|
+
}, A = {
|
|
11
|
+
approved: a,
|
|
12
|
+
canceled: e,
|
|
13
|
+
rejected: _,
|
|
14
|
+
waiting: r
|
|
15
|
+
}, R = "status", d = "created_at", i = "created_by", S = "current_user";
|
|
10
16
|
export {
|
|
11
|
-
|
|
17
|
+
s as APPROVAL_REQUEST_STATUSES,
|
|
18
|
+
A as APPROVAL_REQUEST_STATUS_TO_MUI_ICON_MAP,
|
|
19
|
+
i as FILTER_TYPE_ADDED_BY,
|
|
20
|
+
d as FILTER_TYPE_CREATED_AT,
|
|
21
|
+
S as FILTER_TYPE_CURRENT_USER,
|
|
22
|
+
R as FILTER_TYPE_STATUS,
|
|
23
|
+
o as ROW_TO_STATUS_MUI_MAP
|
|
12
24
|
};
|
|
@@ -1,75 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { jsxs as n, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useRootElements as s } from "./index93.js";
|
|
3
|
+
import { FilterContainer as p } from "./index353.js";
|
|
4
|
+
import { useLingui as m } from "@lingui/react";
|
|
5
|
+
import { FormControl as u, InputLabel as c, Select as d, MenuItem as E, FormControlLabel as F, Switch as T } from "@mui/material";
|
|
6
|
+
import { DatePicker as _ } from "@mui/x-date-pickers";
|
|
7
|
+
import { APPROVAL_REQUEST_STATUSES as v, FILTER_TYPE_STATUS as R, FILTER_TYPE_ADDED_BY as A, FILTER_TYPE_CREATED_AT as C, FILTER_TYPE_CURRENT_USER as h } from "./index276.js";
|
|
8
|
+
import { getRowToStatusTextMap as S } from "./index380.js";
|
|
9
|
+
import { AutocompleteCreatedBy as M } from "./index381.js";
|
|
10
|
+
const O = ({
|
|
11
|
+
onChangeFilter: l,
|
|
12
|
+
sx: i
|
|
13
|
+
}) => {
|
|
14
|
+
const {
|
|
15
|
+
i18n: a
|
|
16
|
+
} = m(), {
|
|
17
|
+
root: r
|
|
18
|
+
} = s();
|
|
19
|
+
return /* @__PURE__ */ n(p, { className: "Monite-ApprovalRequestsFilters", sx: i, children: [
|
|
20
|
+
/* @__PURE__ */ n(u, { variant: "standard", fullWidth: !0, className: "Monite-ApprovalStatusFilter Monite-FilterControl", children: [
|
|
21
|
+
/* @__PURE__ */ t(c, { id: "status", children: a._("Status") }),
|
|
22
|
+
/* @__PURE__ */ t(d, { labelId: "status", label: a._("Status"), defaultValue: "all", MenuProps: {
|
|
23
|
+
container: r
|
|
24
|
+
}, onChange: (e) => {
|
|
25
|
+
l(R, e && e.target.value);
|
|
26
|
+
}, children: [{
|
|
27
|
+
label: a._("All invoices"),
|
|
28
|
+
value: "all"
|
|
29
|
+
}, ...Object.values(v).map((e) => ({
|
|
30
|
+
label: S(a)[e],
|
|
31
|
+
value: e
|
|
32
|
+
}))].map(({
|
|
33
|
+
label: e,
|
|
34
|
+
value: o
|
|
35
|
+
}) => /* @__PURE__ */ t(E, { value: o, children: e }, o)) })
|
|
36
|
+
] }),
|
|
37
|
+
/* @__PURE__ */ t(M, { onChange: (e) => l(A, e || null) }),
|
|
38
|
+
/* @__PURE__ */ t(_, { label: a._("Requested on"), className: "Monite-ApprovalRequestedOnFilter Monite-FilterControl Monite-DateFilterControl", onChange: (e, o) => {
|
|
39
|
+
o.validationError || l(C, e);
|
|
40
|
+
}, slotProps: {
|
|
41
|
+
textField: {
|
|
42
|
+
variant: "standard"
|
|
43
|
+
},
|
|
44
|
+
popper: {
|
|
45
|
+
container: r
|
|
46
|
+
},
|
|
47
|
+
dialog: {
|
|
48
|
+
container: r
|
|
49
|
+
},
|
|
50
|
+
actionBar: {
|
|
51
|
+
actions: ["clear", "today"]
|
|
52
|
+
}
|
|
53
|
+
}, views: ["year", "month", "day"] }),
|
|
54
|
+
/* @__PURE__ */ t(F, { control: /* @__PURE__ */ t(T, {}), className: "Monite-ApprovalOnlyMyFilter Monite-FilterControl", label: a._("Only my approvals"), onChange: (e, o) => l(h, o) })
|
|
24
55
|
] });
|
|
25
|
-
}
|
|
26
|
-
function x({
|
|
27
|
-
className: e,
|
|
28
|
-
children: s,
|
|
29
|
-
position: o = "popper",
|
|
30
|
-
...r
|
|
31
|
-
}) {
|
|
32
|
-
return /* @__PURE__ */ t(a.Portal, { children: /* @__PURE__ */ l(a.Content, { "data-slot": "select-content", className: n("ttw:bg-popover ttw:text-popover-foreground ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95 ttw:data-[side=bottom]:slide-in-from-top-2 ttw:data-[side=left]:slide-in-from-right-2 ttw:data-[side=right]:slide-in-from-left-2 ttw:data-[side=top]:slide-in-from-bottom-2 ttw:relative ttw:z-1300 ttw:max-h-(--radix-select-content-available-height) ttw:min-w-[8rem] ttw:origin-(--radix-select-content-transform-origin) ttw:overflow-x-hidden ttw:overflow-y-auto ttw:rounded-md ttw:border-none ttw:shadow-md", o === "popper" && "ttw:data-[side=bottom]:translate-y-1 ttw:data-[side=left]:-translate-x-1 ttw:data-[side=right]:translate-x-1 ttw:data-[side=top]:-translate-y-1", e), position: o, ...r, children: [
|
|
33
|
-
/* @__PURE__ */ t(c, {}),
|
|
34
|
-
/* @__PURE__ */ t(a.Viewport, { className: n("ttw:p-1", o === "popper" && "ttw:h-[var(--radix-select-trigger-height)] ttw:w-full ttw:min-w-[var(--radix-select-trigger-width)] ttw:scroll-my-1"), children: s }),
|
|
35
|
-
/* @__PURE__ */ t(u, {})
|
|
36
|
-
] }) });
|
|
37
|
-
}
|
|
38
|
-
function b({
|
|
39
|
-
className: e,
|
|
40
|
-
children: s,
|
|
41
|
-
...o
|
|
42
|
-
}) {
|
|
43
|
-
return /* @__PURE__ */ l(a.Item, { "data-slot": "select-item", className: n("ttw:focus:bg-accent ttw:focus:text-accent-foreground ttw:[&_svg:not([class*=text-])]:text-muted-foreground ttw:relative ttw:flex ttw:w-full ttw:cursor-default ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:py-1.5 ttw:pr-8 ttw:pl-2 ttw:text-sm ttw:outline-hidden ttw:select-none ttw:data-[disabled]:pointer-events-none ttw:data-[disabled]:opacity-50 ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4 ttw:*:[span]:last:flex ttw:*:[span]:last:min-w-0 ttw:*:[span]:last:flex-1 ttw:*:[span]:last:items-center ttw:*:[span]:last:gap-2", e), ...o, children: [
|
|
44
|
-
/* @__PURE__ */ t("span", { className: "ttw:absolute ttw:right-2 ttw:flex ttw:size-3.5 ttw:items-center ttw:justify-center", children: /* @__PURE__ */ t(a.ItemIndicator, { children: /* @__PURE__ */ t(w, { className: "ttw:size-4" }) }) }),
|
|
45
|
-
/* @__PURE__ */ t(a.ItemText, { children: s })
|
|
46
|
-
] });
|
|
47
|
-
}
|
|
48
|
-
function N({
|
|
49
|
-
className: e,
|
|
50
|
-
...s
|
|
51
|
-
}) {
|
|
52
|
-
return /* @__PURE__ */ t(a.Separator, { "data-slot": "select-separator", className: n("ttw:bg-border ttw:pointer-events-none ttw:-mx-1 ttw:my-1 ttw:h-px", e), ...s });
|
|
53
|
-
}
|
|
54
|
-
function c({
|
|
55
|
-
className: e,
|
|
56
|
-
...s
|
|
57
|
-
}) {
|
|
58
|
-
return /* @__PURE__ */ t(a.ScrollUpButton, { "data-slot": "select-scroll-up-button", className: n("ttw:flex ttw:cursor-default ttw:items-center ttw:justify-center ttw:py-1", e), ...s, children: /* @__PURE__ */ t(d, { className: "ttw:size-4" }) });
|
|
59
|
-
}
|
|
60
|
-
function u({
|
|
61
|
-
className: e,
|
|
62
|
-
...s
|
|
63
|
-
}) {
|
|
64
|
-
return /* @__PURE__ */ t(a.ScrollDownButton, { "data-slot": "select-scroll-down-button", className: n("ttw:flex ttw:cursor-default ttw:items-center ttw:justify-center ttw:py-1", e), ...s, children: /* @__PURE__ */ t(i, { className: "ttw:size-4" }) });
|
|
65
|
-
}
|
|
56
|
+
};
|
|
66
57
|
export {
|
|
67
|
-
|
|
68
|
-
x as SelectContent,
|
|
69
|
-
b as SelectItem,
|
|
70
|
-
u as SelectScrollDownButton,
|
|
71
|
-
c as SelectScrollUpButton,
|
|
72
|
-
N as SelectSeparator,
|
|
73
|
-
v as SelectTrigger,
|
|
74
|
-
h as SelectValue
|
|
58
|
+
O as ApprovalRequestsFilter
|
|
75
59
|
};
|
|
@@ -1,46 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...a
|
|
30
|
-
}) {
|
|
31
|
-
return /* @__PURE__ */ e("th", { "data-slot": "table-head", className: l("ttw:h-10 ttw:px-2 ttw:text-left ttw:align-middle ttw:font-medium ttw:whitespace-nowrap ttw:text-foreground ttw:[&:has([role=checkbox])]:pr-0 ttw:[&>[role=checkbox]]:translate-y-[2px]", t), ...a });
|
|
32
|
-
}
|
|
33
|
-
function b({
|
|
34
|
-
className: t,
|
|
35
|
-
...a
|
|
36
|
-
}) {
|
|
37
|
-
return /* @__PURE__ */ e("td", { "data-slot": "table-cell", className: l("ttw:p-2 ttw:align-middle ttw:whitespace-nowrap ttw:[&:has([role=checkbox])]:pr-0 ttw:[&>[role=checkbox]]:translate-y-[2px]", t), ...a });
|
|
38
|
-
}
|
|
1
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as n } from "@lingui/react";
|
|
3
|
+
import { Chip as u } from "@mui/material";
|
|
4
|
+
import { styled as l, useThemeProps as f } from "@mui/material/styles";
|
|
5
|
+
import { ROW_TO_STATUS_MUI_MAP as A, APPROVAL_REQUEST_STATUS_TO_MUI_ICON_MAP as S } from "./index276.js";
|
|
6
|
+
import { getRowToStatusTextMap as T } from "./index380.js";
|
|
7
|
+
const c = ({
|
|
8
|
+
ref: s,
|
|
9
|
+
...e
|
|
10
|
+
}) => {
|
|
11
|
+
const {
|
|
12
|
+
status: t,
|
|
13
|
+
icon: a,
|
|
14
|
+
size: i,
|
|
15
|
+
variant: p
|
|
16
|
+
} = f({
|
|
17
|
+
props: e,
|
|
18
|
+
name: "MoniteApprovalRequestStatusChip"
|
|
19
|
+
}), {
|
|
20
|
+
i18n: m
|
|
21
|
+
} = n(), o = S[t];
|
|
22
|
+
return /* @__PURE__ */ r(_, { ref: s, color: A[t], icon: a && o ? /* @__PURE__ */ r(o, { fontSize: "small" }) : void 0, label: T(m)[t], size: i, status: t, variant: p ?? "filled" });
|
|
23
|
+
}, _ = l(u, {
|
|
24
|
+
// eslint-disable-next-line lingui/no-unlocalized-strings
|
|
25
|
+
name: "MoniteApprovalRequestStatusChip",
|
|
26
|
+
slot: "root",
|
|
27
|
+
shouldForwardProp: () => !0
|
|
28
|
+
})({});
|
|
39
29
|
export {
|
|
40
|
-
|
|
41
|
-
c as TableBody,
|
|
42
|
-
b as TableCell,
|
|
43
|
-
d as TableHead,
|
|
44
|
-
w as TableHeader,
|
|
45
|
-
n as TableRow
|
|
30
|
+
c as ApprovalRequestStatusChip
|
|
46
31
|
};
|
|
@@ -1,69 +1,62 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import { ConfirmDeleteMeasureUnitDialog as j } from "./index385.js";
|
|
4
|
-
import { TableActions as z } from "./index386.js";
|
|
5
|
-
import { Table as A, TableHeader as E, TableRow as h, TableHead as l, TableBody as G, TableCell as d } from "./index278.js";
|
|
6
|
-
import { useLingui as I } from "@lingui/react";
|
|
7
|
-
import { Loader2 as b, Search as S } from "lucide-react";
|
|
8
|
-
import { useState as m, useCallback as w } from "react";
|
|
1
|
+
import { jsxs as d, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as c } from "react";
|
|
9
3
|
import "./index58.js";
|
|
4
|
+
import "@tanstack/react-query";
|
|
5
|
+
import "date-fns";
|
|
6
|
+
import { useEntityUserByAuthToken as p } from "./index76.js";
|
|
10
7
|
import "react-hot-toast";
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
const
|
|
8
|
+
import { useLingui as s } from "@lingui/react";
|
|
9
|
+
import u from "@mui/icons-material/CheckCircleOutlineRounded";
|
|
10
|
+
import f from "@mui/icons-material/HighlightOffRounded";
|
|
11
|
+
import { Stack as m, IconButton as a } from "@mui/material";
|
|
12
|
+
const C = ({
|
|
13
|
+
id: o,
|
|
14
|
+
onClick: t
|
|
15
|
+
}) => {
|
|
16
16
|
const {
|
|
17
|
-
i18n:
|
|
18
|
-
} =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
i18n: r
|
|
18
|
+
} = s(), [i, n] = c(!1);
|
|
19
|
+
return /* @__PURE__ */ e(a, { "aria-label": r._("Approve request"), color: "success", disabled: i, onClick: (l) => {
|
|
20
|
+
l.preventDefault(), n(!0), t({
|
|
21
|
+
id: o,
|
|
22
|
+
action: "approve"
|
|
23
|
+
})?.finally(() => n(!1));
|
|
24
|
+
}, children: /* @__PURE__ */ e(u, {}) });
|
|
25
|
+
}, k = ({
|
|
26
|
+
id: o,
|
|
27
|
+
onClick: t
|
|
28
|
+
}) => {
|
|
29
|
+
const {
|
|
30
|
+
i18n: r
|
|
31
|
+
} = s(), [i, n] = c(!1);
|
|
32
|
+
return /* @__PURE__ */ e(a, { "aria-label": r._("Reject request"), color: "error", disabled: i, onClick: (l) => {
|
|
33
|
+
l.preventDefault(), n(!0), t({
|
|
34
|
+
id: o,
|
|
35
|
+
action: "reject"
|
|
36
|
+
})?.finally(() => n(!1));
|
|
37
|
+
}, children: /* @__PURE__ */ e(f, {}) });
|
|
38
|
+
}, q = (o) => {
|
|
39
|
+
const {
|
|
40
|
+
i18n: t
|
|
41
|
+
} = s(), {
|
|
42
|
+
data: r
|
|
43
|
+
} = p();
|
|
44
|
+
if ("onRowActionClick" in o && o.onRowActionClick)
|
|
45
|
+
return {
|
|
46
|
+
field: "actions",
|
|
47
|
+
headerName: t._("Actions"),
|
|
48
|
+
sortable: !1,
|
|
49
|
+
display: "flex",
|
|
50
|
+
align: "right",
|
|
51
|
+
renderCell: (i) => {
|
|
52
|
+
if (i.row.status === "waiting" && r?.id && i.row.user_ids.includes(r.id) && !i.row.approved_by?.includes(r.id))
|
|
53
|
+
return /* @__PURE__ */ d(m, { direction: "row", children: [
|
|
54
|
+
/* @__PURE__ */ e(C, { id: i.row.id, onClick: o.onRowActionClick }),
|
|
55
|
+
/* @__PURE__ */ e(k, { id: i.row.id, onClick: o.onRowActionClick })
|
|
56
|
+
] });
|
|
31
57
|
}
|
|
32
|
-
}
|
|
33
|
-
onSuccess: () => o()
|
|
34
|
-
});
|
|
35
|
-
}, [n, a, o]), p = n.isPending, v = () => {
|
|
36
|
-
s(null);
|
|
37
|
-
};
|
|
38
|
-
return /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:h-full ttw:relative", children: [
|
|
39
|
-
M ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:justify-center ttw:items-center ttw:h-full", children: /* @__PURE__ */ e(b, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" }) }) : /* @__PURE__ */ r(T, { children: [
|
|
40
|
-
p && /* @__PURE__ */ e("div", { className: "ttw:absolute ttw:inset-0 ttw:bg-white/70 ttw:flex ttw:justify-center ttw:items-center ttw:z-10", children: /* @__PURE__ */ e(b, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" }) }),
|
|
41
|
-
/* @__PURE__ */ r(F, { children: [
|
|
42
|
-
/* @__PURE__ */ e(H, { align: "inline-start", children: /* @__PURE__ */ e(S, {}) }),
|
|
43
|
-
/* @__PURE__ */ e(k, { placeholder: i._("Search"), onChange: (t) => $(t.target.value) })
|
|
44
|
-
] }),
|
|
45
|
-
/* @__PURE__ */ r(A, { className: "ttw:table-fixed ttw:border ttw:border-border ttw:rounded-md", children: [
|
|
46
|
-
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ r(h, { className: "ttw:hover:bg-transparent ttw:border-border", children: [
|
|
47
|
-
/* @__PURE__ */ e(l, { className: "ttw:w-[35%]", children: i._("Unit label") }),
|
|
48
|
-
/* @__PURE__ */ e(l, { className: "ttw:w-[55%]", children: i._("Description (optional)") }),
|
|
49
|
-
/* @__PURE__ */ e(l, { className: "ttw:w-[10%]" })
|
|
50
|
-
] }) }),
|
|
51
|
-
/* @__PURE__ */ r(G, { children: [
|
|
52
|
-
/* @__PURE__ */ e(f, { isEditMode: !1 }),
|
|
53
|
-
D.map((t) => g?.id === t.id ? /* @__PURE__ */ e(f, { isEditMode: !0, initialValues: t, onCancel: v, onEdit: () => s(null), id: t.id }, t.id) : /* @__PURE__ */ r(h, { className: "ttw:border-border", children: [
|
|
54
|
-
/* @__PURE__ */ e(d, { className: "ttw:w-[35%] ttw:text-sm ttw:truncate", children: t.name }),
|
|
55
|
-
/* @__PURE__ */ e(d, { className: "ttw:w-[55%] ttw:text-sm ttw:text-muted-foreground ttw:truncate", children: t.description || "—" }),
|
|
56
|
-
/* @__PURE__ */ e(d, { className: "ttw:w-[10%]", children: /* @__PURE__ */ e(z, { permissions: {
|
|
57
|
-
isUpdateAllowed: !0,
|
|
58
|
-
isDeleteAllowed: !0
|
|
59
|
-
}, onEdit: () => s(t), onDelete: () => L(t) }) })
|
|
60
|
-
] }, t.id))
|
|
61
|
-
] })
|
|
62
|
-
] })
|
|
63
|
-
] }),
|
|
64
|
-
/* @__PURE__ */ e(j, { open: x, id: a?.id, name: a?.name || "", isLoading: p, onClose: o, onDelete: U })
|
|
65
|
-
] });
|
|
58
|
+
};
|
|
66
59
|
};
|
|
67
60
|
export {
|
|
68
|
-
|
|
61
|
+
q as useApprovalRequestActionsCell
|
|
69
62
|
};
|