@tesouro/embedded-components-react 0.2.222 → 0.2.223
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 +15 -11
- package/dist/index.css +6 -6
- package/dist/index.d.ts +276 -35
- package/dist/index.js +96 -87
- package/dist/lib/{GlCodeTableWidget.d.ts → ChartOfAccountsWidget.d.ts} +276 -35
- package/dist/lib/ChartOfAccountsWidget.js +16 -0
- package/dist/lib/ReceivablesWidget.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/data-access/dist/index3.js +58 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/data-access/dist/index4.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index2.js +153 -76
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index3.js +15 -4
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index4.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index5.js +21 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index6.js +176 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index7.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js +21 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index2.js +174 -160
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index3.js +206 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index4.js +46 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index5.js +48 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +12 -23
- 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 +10 -10
- 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 +22 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +33 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +34 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +24 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1270 -8
- 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 +60 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +397 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +69 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +407 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +7 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +25 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +75 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +9 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +33 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +30 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +12 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +12 -218
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +116 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +217 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +10 -44
- 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 +12 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +48 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +44 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +12 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +45 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +11 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +144 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +55 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +68 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +29 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +3 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +64 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +36 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +81 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +5 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +96 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +57 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +9 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +43 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +58 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +14 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +22 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +78 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +29 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +42 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +7 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +227 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +467 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +110 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +535 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +23 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +24 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +94 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +101 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +17 -227
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +12 -468
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +12 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +23 -535
- 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 +10 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +18 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +19 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +2 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +27 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +115 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +69 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +13 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +7 -407
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +34 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +99 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +25 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +7 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +7 -211
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +214 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +146 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +85 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +24 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +183 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +26 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +36 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +48 -488
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +81 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +34 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +66 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +359 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +2 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +117 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +6 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +18 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +10 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +9 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +12 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +12 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +19 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +19 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +54 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +24 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +36 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +36 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +15 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +27 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +17 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +105 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +12 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +18 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +22 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +33 -296
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +53 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +49 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +28 -265
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +97 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +45 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +147 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +103 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +35 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +49 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +27 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +5 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +74 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +32 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +17 -210
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +22 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +56 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +29 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +60 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +20 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +5 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +491 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +168 -66
- 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 +72 -360
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +20 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +30 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +37 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +61 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +94 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +110 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +86 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +38 -18
- 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 +343 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +294 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +98 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +158 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +264 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +25 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +18 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +63 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +25 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +127 -11
- 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 +48 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +115 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +102 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +46 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +197 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +70 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +10 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +25 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +125 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +149 -109
- 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 +31 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +4 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +20 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +34 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +32 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +32 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +13 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +19 -22
- 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 +159 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +27 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +76 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +63 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +21 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +17 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +18 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +168 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +122 -48
- 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 +160 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +18 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +59 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +62 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +59 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +6 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +6 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +59 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +22 -158
- 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 +63 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +13 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +77 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +76 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +44 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +38 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +59 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +29 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +118 -110
- 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 +22 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +40 -201
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +55 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +96 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +96 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +211 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +15 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +19 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +41 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +16 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +10 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +46 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +45 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +35 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +43 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +74 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +94 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +37 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +16 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +24 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +48 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +11 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +32 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +5 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +9 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +32 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +121 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +18 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +16 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +16 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +16 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +79 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +83 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +267 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +37 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +63 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +44 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +22 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +137 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +115 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +79 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +93 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +10 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +11 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +10 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +6 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +282 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +46 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +15 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +72 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +16 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +16 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +3 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +19 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +26 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +36 -26
- 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 +66 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +46 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +23 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +32 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +4 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +124 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +53 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +33 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +96 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +36 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +29 -136
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +19 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +66 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +18 -282
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +14 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +21 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +66 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +20 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +2 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +7 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +49 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +29 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +66 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +56 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +41 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +13 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +31 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +85 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +23 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +100 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +108 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +72 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +66 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +36 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +12 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +28 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +23 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +38 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +38 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +29 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +81 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +50 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +37 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +43 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +96 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +11 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +75 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +20 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +9 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +53 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +70 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +21 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +18 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +50 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +58 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +30 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +73 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +86 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +55 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +50 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +50 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +39 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +35 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +13 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +52 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +51 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +35 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +17 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- 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/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +52 -52
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +321 -291
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +191 -150
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +26 -26
- package/dist/packages/shared-ui-shadcn/dist/index.js +1111 -1109
- package/package.json +1 -1
- package/dist/lib/GlCodeTableWidget.js +0 -7
|
@@ -1,363 +1,75 @@
|
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
default:
|
|
66
|
-
return "";
|
|
67
|
-
}
|
|
68
|
-
}, te = ["issued", "overdue", "partially_paid", "paid", "uncollectible"], re = {
|
|
69
|
-
// Draft keeps both the issue-only ("Issue") and issue-and-email ("Issue and
|
|
70
|
-
// send") flows the legacy panel offered. This intentionally diverges from the
|
|
71
|
-
// current Figma (which has no email design yet) per David's QA — the send
|
|
72
|
-
// flow must survive the redesign. Revisit when the email flow is redesigned.
|
|
73
|
-
draft: {
|
|
74
|
-
primary: ["edit", "issue", "issueAndSend"],
|
|
75
|
-
overflow: ["clone", "delete"]
|
|
76
|
-
},
|
|
77
|
-
// `send` ("Resend") sits in primary, not overflow: David's QA
|
|
78
|
-
// asked twice for the send flow to be visible on the details panel rather
|
|
79
|
-
// than buried in the overflow menu (EMBD-4514). It is ordered *before*
|
|
80
|
-
// `recordPayment` deliberately: the panel gives the solid (primary) style to
|
|
81
|
-
// the last action only, so leading with `send` keeps "Record payment" as the
|
|
82
|
-
// emphasized call to action it already was and adds send as an outline button
|
|
83
|
-
// beside it. The ask was to make send visible, not to outrank recording a
|
|
84
|
-
// payment.
|
|
85
|
-
issued: {
|
|
86
|
-
primary: ["send", "recordPayment"],
|
|
87
|
-
overflow: ["clone", "cancel"]
|
|
88
|
-
},
|
|
89
|
-
// Overdue keeps the write-off (mark uncollectible) action the legacy exposed.
|
|
90
|
-
overdue: {
|
|
91
|
-
primary: ["send", "recordPayment"],
|
|
92
|
-
overflow: ["clone", "cancel", "markUncollectible"]
|
|
93
|
-
},
|
|
94
|
-
// No cancel: the backend rejects cancelling a partially-paid invoice with a
|
|
95
|
-
// 409 ("Only invoices in issued and overdue statuses can be canceled"), so
|
|
96
|
-
// offering it here would be a dead-end error toast. Matches the legacy
|
|
97
|
-
// actions, which gated Cancel to issued/overdue only.
|
|
98
|
-
partially_paid: {
|
|
99
|
-
primary: ["send", "recordPayment"],
|
|
100
|
-
overflow: ["clone"]
|
|
101
|
-
},
|
|
102
|
-
paid: {
|
|
103
|
-
primary: [],
|
|
104
|
-
overflow: ["clone"]
|
|
105
|
-
},
|
|
106
|
-
canceled: {
|
|
107
|
-
primary: [],
|
|
108
|
-
overflow: ["clone"]
|
|
109
|
-
},
|
|
110
|
-
uncollectible: {
|
|
111
|
-
primary: [],
|
|
112
|
-
overflow: ["clone"]
|
|
113
|
-
},
|
|
114
|
-
// The recurring master's series actions (pause/resume/cancel) are derived
|
|
115
|
-
// from the recurrence status below, not statically.
|
|
116
|
-
recurring: {
|
|
117
|
-
primary: [],
|
|
118
|
-
overflow: []
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
function se(e, t, x, {
|
|
122
|
-
i18n: a,
|
|
123
|
-
formatCurrencyToDisplay: A,
|
|
124
|
-
locale: R
|
|
125
|
-
}, T = !1, y = {}, b) {
|
|
126
|
-
const $ = e.currency, n = (r) => A(r ?? 0, $) ?? "", c = (r) => r ? a.date(X.test(r) ? Z(r) : r, R.dateFormat) : "-", u = e.status, f = u === "canceled", d = u === "overdue", h = e.tax_mode === "inclusive", C = !!e.recurrence_id || u === "recurring", i = u === "recurring" && !!t, O = !!e.recurrence_id && u !== "recurring", w = d ? G(e.due_date) : 0;
|
|
127
|
-
let s = "default";
|
|
128
|
-
const l = [];
|
|
129
|
-
switch (u) {
|
|
130
|
-
case "draft":
|
|
131
|
-
case "recurring":
|
|
132
|
-
l.push({
|
|
133
|
-
label: a._("Invoice amount"),
|
|
134
|
-
value: n(e.total_amount),
|
|
135
|
-
emphasis: !0
|
|
136
|
-
});
|
|
137
|
-
break;
|
|
138
|
-
case "issued":
|
|
139
|
-
case "overdue":
|
|
140
|
-
s = d ? "danger" : "default", l.push({
|
|
141
|
-
label: a._("Balance due"),
|
|
142
|
-
value: n(e.amount_due),
|
|
143
|
-
emphasis: !0
|
|
144
|
-
}), (e.amount_paid ?? 0) > 0 && l.push({
|
|
145
|
-
label: a._("Amount received"),
|
|
146
|
-
value: n(e.amount_paid),
|
|
147
|
-
tone: "success"
|
|
148
|
-
});
|
|
149
|
-
break;
|
|
150
|
-
case "partially_paid":
|
|
151
|
-
l.push({
|
|
152
|
-
label: a._("Balance due"),
|
|
153
|
-
value: n(e.amount_due),
|
|
154
|
-
emphasis: !0
|
|
155
|
-
}, {
|
|
156
|
-
label: a._("Amount received"),
|
|
157
|
-
value: n(e.amount_paid),
|
|
158
|
-
tone: "success"
|
|
159
|
-
});
|
|
160
|
-
break;
|
|
161
|
-
case "paid":
|
|
162
|
-
s = "success", l.push({
|
|
163
|
-
label: a._("Amount received"),
|
|
164
|
-
value: n(e.amount_paid),
|
|
165
|
-
emphasis: !0
|
|
166
|
-
});
|
|
167
|
-
break;
|
|
168
|
-
case "canceled":
|
|
169
|
-
s = "muted", l.push({
|
|
170
|
-
label: a._("Cancelled amount"),
|
|
171
|
-
value: n(e.total_amount),
|
|
172
|
-
emphasis: !0
|
|
173
|
-
});
|
|
174
|
-
break;
|
|
175
|
-
case "uncollectible":
|
|
176
|
-
s = "muted", l.push({
|
|
177
|
-
label: a._("Amount written off"),
|
|
178
|
-
value: n(e.amount_due),
|
|
179
|
-
emphasis: !0
|
|
180
|
-
});
|
|
181
|
-
break;
|
|
182
|
-
default:
|
|
183
|
-
l.push({
|
|
184
|
-
label: a._("Invoice amount"),
|
|
185
|
-
value: n(e.total_amount),
|
|
186
|
-
emphasis: !0
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
const m = e.counterpart_contact, o = e.counterpart_billing_address, B = o?.country ? Q(a)[o.country] : void 0, S = [o?.city, [o?.state, o?.postal_code].filter(Boolean).join(" ")].filter(Boolean).join(", "), g = o?.line1 ? [`${o.line1}${o.line2 ? ` ${o.line2}` : ""}`, S, B].filter(Boolean).join(", ") : void 0, _ = [];
|
|
190
|
-
m?.email && _.push({
|
|
191
|
-
label: a._("Email"),
|
|
192
|
-
value: m.email
|
|
193
|
-
}), m?.phone && _.push({
|
|
194
|
-
label: a._("Phone"),
|
|
195
|
-
value: m.phone
|
|
196
|
-
}), g && _.push({
|
|
197
|
-
label: a._("Address"),
|
|
198
|
-
value: g
|
|
199
|
-
});
|
|
200
|
-
const j = !!(e.payment_reminder_id || e.overdue_reminder_id), I = J(y.paymentReminder, y.overdueReminder, a, j), q = b?.account, L = b ? [{
|
|
201
|
-
label: a._("Deposit account"),
|
|
202
|
-
value: q ? K(q, a) : b.isListIncomplete && e.bank_account_id ? "-" : a._("Not provided")
|
|
203
|
-
}] : [], M = i ? [{
|
|
204
|
-
label: a._("Frequency"),
|
|
205
|
-
value: t ? v(a, t.frequency) : "-"
|
|
206
|
-
}, {
|
|
207
|
-
label: a._("Invoice amount"),
|
|
208
|
-
value: n(e.total_amount)
|
|
209
|
-
}, {
|
|
210
|
-
label: a._("Payment terms"),
|
|
211
|
-
value: e.payment_terms?.name ?? "-"
|
|
212
|
-
}, {
|
|
213
|
-
label: a._("Payment reminders"),
|
|
214
|
-
value: I
|
|
215
|
-
}, {
|
|
216
|
-
label: a._("PO number"),
|
|
217
|
-
value: e.purchase_order || a._("Not provided")
|
|
218
|
-
}, ...L] : [
|
|
219
|
-
// Invoice number is omitted until the invoice is issued: a draft has no
|
|
220
|
-
// number, so a placeholder ("Auto-generated") reads as misleading copy
|
|
221
|
-
// (EMBD-3835 QA item 2 — show no number field/reference for drafts).
|
|
222
|
-
...e.document_id ? [{
|
|
223
|
-
label: a._("Invoice number"),
|
|
224
|
-
value: e.document_id
|
|
225
|
-
}] : [],
|
|
226
|
-
{
|
|
227
|
-
label: a._("Invoice amount"),
|
|
228
|
-
value: n(e.total_amount)
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
label: a._("Invoice date"),
|
|
232
|
-
value: c(e.issue_date ?? e.created_at)
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
label: a._("Due date"),
|
|
236
|
-
value: c(e.due_date)
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
label: a._("Payment terms"),
|
|
240
|
-
value: e.payment_terms?.name ?? "-"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
label: a._("Payment reminders"),
|
|
244
|
-
value: I
|
|
245
|
-
},
|
|
246
|
-
...e.purchase_order ? [{
|
|
247
|
-
label: a._("PO number"),
|
|
248
|
-
value: e.purchase_order
|
|
249
|
-
}] : [],
|
|
250
|
-
...L
|
|
251
|
-
], E = (e.line_items ?? []).map((r, V) => {
|
|
252
|
-
const Y = h ? r?.product?.price_after_tax?.value : r?.product?.price?.value, H = h ? r?.total_after_tax : r?.total_before_tax ?? (r?.product?.price?.value ?? 0) * (r?.quantity ?? 0);
|
|
253
|
-
return {
|
|
254
|
-
id: `${r?.product?.id ?? "item"}-${V}`,
|
|
255
|
-
name: r?.product?.name ?? "",
|
|
256
|
-
quantityLabel: String(r?.quantity ?? 0),
|
|
257
|
-
unitPriceLabel: n(Y),
|
|
258
|
-
totalLabel: n(H)
|
|
259
|
-
};
|
|
260
|
-
}), F = [{
|
|
261
|
-
label: a._("Subtotal"),
|
|
262
|
-
value: n(e.subtotal)
|
|
263
|
-
}, ...(e.total_tax_amounts ?? []).map((r) => ({
|
|
264
|
-
label: a._("Tax ({rate}%)", {
|
|
265
|
-
rate: z(r?.value ?? 0)
|
|
266
|
-
}),
|
|
267
|
-
value: n(r?.amount)
|
|
268
|
-
})), {
|
|
269
|
-
label: a._("Total"),
|
|
270
|
-
value: n(e.total_amount),
|
|
271
|
-
emphasis: !0
|
|
272
|
-
}], N = te.includes(u) ? {
|
|
273
|
-
rows: x.map((r) => ({
|
|
274
|
-
id: r.id,
|
|
275
|
-
dateLabel: c(r.paid_at),
|
|
276
|
-
amountLabel: n(r.amount)
|
|
277
|
-
})),
|
|
278
|
-
// Total is the entity's amount_paid (authoritative), not a sum of
|
|
279
|
-
// `rows`: the records list may be partial/paginated, so summing rows
|
|
280
|
-
// could disagree with the true received total. Intentional.
|
|
281
|
-
totalLabel: n(e.amount_paid),
|
|
282
|
-
emptyTone: d ? "danger" : "default",
|
|
283
|
-
loading: T
|
|
284
|
-
} : void 0, U = i && t ? {
|
|
285
|
-
status: t.status,
|
|
286
|
-
amountLabel: n(e.total_amount),
|
|
287
|
-
amountPeriodLabel: ae(a, t.frequency),
|
|
288
|
-
startsOnLabel: c(t.start_date),
|
|
289
|
-
endsOnLabel: t.end_date ? c(t.end_date) : "-",
|
|
290
|
-
scheduleTitle: a._("{frequency} schedule", {
|
|
291
|
-
frequency: v(a, t.frequency)
|
|
292
|
-
})
|
|
293
|
-
} : void 0, W = O && t ? {
|
|
294
|
-
title: a._("{name} - {frequency}", {
|
|
295
|
-
name: e.counterpart_name ?? a._("Invoice"),
|
|
296
|
-
frequency: v(a, t.frequency)
|
|
297
|
-
}),
|
|
298
|
-
invoiceId: t.invoice_id
|
|
299
|
-
} : void 0, k = re[u] ?? {
|
|
300
|
-
primary: [],
|
|
301
|
-
overflow: ["clone"]
|
|
302
|
-
};
|
|
303
|
-
let p = k.overflow, P = k.primary;
|
|
304
|
-
if (i && t) {
|
|
305
|
-
switch (t.status) {
|
|
306
|
-
case "active":
|
|
307
|
-
p = ["pauseRecurrence", "cancelRecurrence"];
|
|
308
|
-
break;
|
|
309
|
-
case "paused":
|
|
310
|
-
p = ["resumeRecurrence", "cancelRecurrence"];
|
|
311
|
-
break;
|
|
312
|
-
default:
|
|
313
|
-
p = [];
|
|
314
|
-
}
|
|
315
|
-
(t.status === "active" || t.status === "paused") && (P = ["edit"]);
|
|
316
|
-
}
|
|
317
|
-
const D = e.counterpart_name ?? a._("Invoice");
|
|
318
|
-
return {
|
|
319
|
-
// Series master reads "{customer} - {frequency}"; everything else is the
|
|
320
|
-
// customer name.
|
|
321
|
-
title: i && t ? a._("{name} - {frequency}", {
|
|
322
|
-
name: D,
|
|
323
|
-
frequency: v(a, t.frequency)
|
|
324
|
-
}) : D,
|
|
325
|
-
status: u,
|
|
326
|
-
statusLabel: ee(a, u),
|
|
327
|
-
// Series master reads "Recurring series". Otherwise show the invoice
|
|
328
|
-
// number once issued; a draft has none so shows nothing (EMBD-3835 QA
|
|
329
|
-
// item 2).
|
|
330
|
-
subtitle: i ? a._("Recurring series") : e.document_id ? a._("Invoice: {number}", {
|
|
331
|
-
number: e.document_id
|
|
332
|
-
}) : void 0,
|
|
333
|
-
recurring: C,
|
|
334
|
-
overdueLabel: d && w > 0 ? a._("{days} days overdue", {
|
|
335
|
-
days: w
|
|
336
|
-
}) : void 0,
|
|
337
|
-
amountTone: s,
|
|
338
|
-
amountRows: l,
|
|
339
|
-
invoiceDateLabel: c(e.issue_date ?? e.created_at),
|
|
340
|
-
// No dedicated cancellation timestamp exists on InvoiceResponsePayload;
|
|
341
|
-
// updated_at is the closest proxy for "Cancelled on".
|
|
342
|
-
dueDateLabel: c(f ? e.updated_at : e.due_date),
|
|
343
|
-
dueDateCaption: f ? a._("Cancelled on") : a._("Due date"),
|
|
344
|
-
paymentHistory: N,
|
|
345
|
-
customerContact: _,
|
|
346
|
-
recurringSeries: U,
|
|
347
|
-
seriesLink: W,
|
|
348
|
-
billingItems: M,
|
|
349
|
-
lineItems: E,
|
|
350
|
-
lineItemTotals: F,
|
|
351
|
-
// memo = opening note; footer = closing note (rendered below the line
|
|
352
|
-
// items in the PDF).
|
|
353
|
-
notes: e.memo || e.footer ? {
|
|
354
|
-
opening: e.memo || void 0,
|
|
355
|
-
closing: e.footer || void 0
|
|
356
|
-
} : void 0,
|
|
357
|
-
primaryActions: P,
|
|
358
|
-
overflowActions: p
|
|
359
|
-
};
|
|
1
|
+
import { jsx as t, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { cn as n } from "./index100.js";
|
|
3
|
+
import * as a from "@radix-ui/react-select";
|
|
4
|
+
import { ChevronDownIcon as i, CheckIcon as w, ChevronUpIcon as d } from "lucide-react";
|
|
5
|
+
function g({
|
|
6
|
+
...e
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ t(a.Root, { "data-slot": "select", ...e });
|
|
9
|
+
}
|
|
10
|
+
function h({
|
|
11
|
+
...e
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ t(a.Value, { "data-slot": "select-value", ...e });
|
|
14
|
+
}
|
|
15
|
+
function v({
|
|
16
|
+
className: e,
|
|
17
|
+
size: s = "default",
|
|
18
|
+
children: o,
|
|
19
|
+
...r
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ l(a.Trigger, { "data-slot": "select-trigger", "data-size": s, className: n("ttw:border-input ttw:data-[placeholder]:text-muted-foreground ttw:[&_svg:not([class*=text-])]:text-muted-foreground ttw:focus-visible:border-ring ttw:focus-visible:ring-ring/50 ttw:aria-invalid:ring-destructive/20 ttw:dark:aria-invalid:ring-destructive/40 ttw:aria-invalid:border-destructive ttw:dark:bg-input/30 ttw:dark:hover:bg-input/50 ttw:flex ttw:w-fit ttw:items-center ttw:justify-between ttw:gap-2 ttw:rounded-md ttw:border ttw:bg-transparent ttw:px-3 ttw:py-2 ttw:text-sm ttw:whitespace-nowrap ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:outline-none ttw:focus-visible:ring-[3px] ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50 ttw:data-[size=default]:h-9 ttw:data-[size=sm]:h-8 ttw:*:data-[slot=select-value]:line-clamp-1 ttw:*:data-[slot=select-value]:flex ttw:*:data-[slot=select-value]:min-w-0 ttw:*:data-[slot=select-value]:flex-1 ttw:*:data-[slot=select-value]:items-center ttw:*:data-[slot=select-value]:gap-2 ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4", e), ...r, children: [
|
|
22
|
+
o,
|
|
23
|
+
/* @__PURE__ */ t(a.Icon, { asChild: !0, children: /* @__PURE__ */ t(i, { className: "ttw:size-4 ttw:opacity-50" }) })
|
|
24
|
+
] });
|
|
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" }) });
|
|
360
65
|
}
|
|
361
66
|
export {
|
|
362
|
-
|
|
67
|
+
g as Select,
|
|
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
|
|
363
75
|
};
|
|
@@ -1,4 +1,46 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { cn as l } from "./index100.js";
|
|
3
|
+
function r({
|
|
4
|
+
className: t,
|
|
5
|
+
...a
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ e("div", { "data-slot": "table-container", className: "ttw:flex-1 ttw:relative ttw:w-0 ttw:min-w-full ttw:overflow-x-auto", children: /* @__PURE__ */ e("table", { "data-slot": "table", className: l("ttw:w-full ttw:caption-bottom ttw:text-sm", t), ...a }) });
|
|
8
|
+
}
|
|
9
|
+
function w({
|
|
10
|
+
className: t,
|
|
11
|
+
...a
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ e("thead", { "data-slot": "table-header", className: l("ttw:[&_tr]:border-b", t), ...a });
|
|
14
|
+
}
|
|
15
|
+
function c({
|
|
16
|
+
className: t,
|
|
17
|
+
...a
|
|
18
|
+
}) {
|
|
19
|
+
return /* @__PURE__ */ e("tbody", { "data-slot": "table-body", className: l("ttw:[&_tr:last-child]:border-0", t), ...a });
|
|
20
|
+
}
|
|
21
|
+
function n({
|
|
22
|
+
className: t,
|
|
23
|
+
...a
|
|
24
|
+
}) {
|
|
25
|
+
return /* @__PURE__ */ e("tr", { "data-slot": "table-row", className: l("ttw:border-b ttw:transition-colors ttw:hover:bg-muted/50 ttw:data-[state=selected]:bg-muted", t), ...a });
|
|
26
|
+
}
|
|
27
|
+
function d({
|
|
28
|
+
className: t,
|
|
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
|
+
}
|
|
2
39
|
export {
|
|
3
|
-
|
|
40
|
+
r as Table,
|
|
41
|
+
c as TableBody,
|
|
42
|
+
b as TableCell,
|
|
43
|
+
d as TableHead,
|
|
44
|
+
w as TableHeader,
|
|
45
|
+
n as TableRow
|
|
4
46
|
};
|
|
@@ -1,119 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return t
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
}, o = ["su", "mo", "tu", "we", "th", "fr", "sa"], m = {
|
|
22
|
-
frequency: "once",
|
|
23
|
-
recurrence_start_date: void 0,
|
|
24
|
-
recurrence_end_date: void 0,
|
|
25
|
-
recurrence_end_mode: "after",
|
|
26
|
-
recurrence_max_occurrences: void 0,
|
|
27
|
-
recurrence_issue_mode: "first_day",
|
|
28
|
-
recurrence_days_of_week: void 0,
|
|
29
|
-
recurrence_subject_text: void 0,
|
|
30
|
-
recurrence_body_text: void 0
|
|
31
|
-
}, s = (e) => {
|
|
32
|
-
if (!e) return m;
|
|
33
|
-
const t = e.start_date ? d(e.start_date) : void 0;
|
|
34
|
-
return {
|
|
35
|
-
frequency: e.frequency,
|
|
36
|
-
recurrence_start_date: t,
|
|
37
|
-
recurrence_end_date: e.end_date ? d(e.end_date) : void 0,
|
|
38
|
-
recurrence_end_mode: e.end_date ? "on" : "after",
|
|
39
|
-
// The API returns `null` for these when unset, but the form's schema fields
|
|
40
|
-
// are `string | number | undefined` (optional) — `null` fails validation
|
|
41
|
-
// (invalid_type), so coerce absent values to `undefined`.
|
|
42
|
-
recurrence_max_occurrences: e.max_occurrences ?? void 0,
|
|
43
|
-
// Only read for a monthly frequency; harmless otherwise.
|
|
44
|
-
recurrence_issue_mode: t ? String(t.getDate()) : "first_day",
|
|
45
|
-
// Only read for a weekly frequency; harmless otherwise.
|
|
46
|
-
recurrence_days_of_week: t ? o[t.getDay()] : void 0,
|
|
47
|
-
recurrence_subject_text: e.subject_text ?? void 0,
|
|
48
|
-
recurrence_body_text: e.body_text ?? void 0
|
|
49
|
-
};
|
|
50
|
-
}, y = (e, t) => ({
|
|
51
|
-
// `invoice` is the only editable receivable type.
|
|
52
|
-
type: "invoice",
|
|
53
|
-
/** Customer section */
|
|
54
|
-
counterpart_id: e.counterpart_id,
|
|
55
|
-
// Existing counterpart is always selected by id, so the inline-create
|
|
56
|
-
// fields start empty.
|
|
57
|
-
counterpart_name: "",
|
|
58
|
-
counterpart_email: "",
|
|
59
|
-
default_shipping_address_id: e.counterpart_shipping_address?.id ?? "",
|
|
60
|
-
default_billing_address_id: e.counterpart_billing_address?.id ?? "",
|
|
61
|
-
/** Billing section */
|
|
62
|
-
purchase_order: e.purchase_order ?? "",
|
|
63
|
-
footer: e.footer ?? "",
|
|
64
|
-
...u(e.payment_terms),
|
|
65
|
-
/** Items section */
|
|
66
|
-
tax_mode: e.tax_mode ?? "exclusive",
|
|
67
|
-
tax_rate: (() => {
|
|
68
|
-
const r = e.line_items.find((_) => _.product.tax_rate?.value !== void 0);
|
|
69
|
-
return r ? String(n(r.product.tax_rate.value ?? 0)) : void 0;
|
|
70
|
-
})(),
|
|
71
|
-
line_items: e.line_items.map((r) => {
|
|
72
|
-
const _ = r.product.measure_unit?.name, a = r.product.measure_unit?.id;
|
|
73
|
-
return {
|
|
74
|
-
quantity: r.quantity,
|
|
75
|
-
product_id: r.product.id,
|
|
76
|
-
taxable: r.tax_status === "taxable",
|
|
77
|
-
product: {
|
|
78
|
-
name: r.product.name,
|
|
79
|
-
price: e.tax_mode === "inclusive" ? r.product.price_after_tax : r.product.price,
|
|
80
|
-
measure_unit_id: a && a !== "" ? a : void 0,
|
|
81
|
-
measure_unit_name: !a && _ ? _ : void 0,
|
|
82
|
-
type: r.product.type || "product"
|
|
83
|
-
},
|
|
84
|
-
measure_unit: !a && _ ? {
|
|
85
|
-
name: _,
|
|
86
|
-
id: null
|
|
87
|
-
} : void 0,
|
|
88
|
-
tax_rate_value: r.product.tax_rate.value !== void 0 ? n(r.product.tax_rate.value) : void 0
|
|
89
|
-
};
|
|
90
|
-
}),
|
|
91
|
-
memo: e.memo ?? "",
|
|
92
|
-
/** Payment / bank section */
|
|
93
|
-
bank_account_id: e.bank_account_id ?? "",
|
|
94
|
-
// A draft without a bank account has `bank_account_type: null`, but the
|
|
95
|
-
// form's enum field only accepts a valid member or `undefined` — seeding
|
|
96
|
-
// `null` fails validation (and, being an object-level parse error, would
|
|
97
|
-
// short-circuit the customer-required refinement). Coerce absent to
|
|
98
|
-
// `undefined`.
|
|
99
|
-
bank_account_type: e.bank_account_type || void 0,
|
|
100
|
-
/** Reminders section */
|
|
101
|
-
payment_reminder_id: e.payment_reminder_id ?? "",
|
|
102
|
-
overdue_reminder_id: e.overdue_reminder_id ?? "",
|
|
103
|
-
/** Attachments — seeded from the saved invoice so they show and persist. */
|
|
104
|
-
attachments: (e.attachments ?? []).map((r) => ({
|
|
105
|
-
id: r.id,
|
|
106
|
-
include_in_email: r.include_in_email,
|
|
107
|
-
name: r.name,
|
|
108
|
-
size: r.size
|
|
109
|
-
})),
|
|
110
|
-
/**
|
|
111
|
-
* Recurrence — seeded from the existing series when editing a recurring
|
|
112
|
-
* master (so the user can change the schedule), or the "once" defaults for
|
|
113
|
-
* a plain draft (where setting a frequency starts a new series on submit).
|
|
114
|
-
*/
|
|
115
|
-
...s(t)
|
|
116
|
-
});
|
|
1
|
+
import { useMoniteContext as n } from "./index57.js";
|
|
2
|
+
import { useLingui as s } from "@lingui/react";
|
|
3
|
+
import { toast as r } from "react-hot-toast";
|
|
4
|
+
const p = () => {
|
|
5
|
+
const {
|
|
6
|
+
i18n: e
|
|
7
|
+
} = s(), {
|
|
8
|
+
api: t,
|
|
9
|
+
queryClient: o
|
|
10
|
+
} = n();
|
|
11
|
+
return t.finops.deleteCounterpartsId.useMutation(void 0, {
|
|
12
|
+
onSuccess: async () => {
|
|
13
|
+
await t.finops.getCounterparts.invalidateQueries(o), r.success(e._("Counterpart has been deleted."));
|
|
14
|
+
},
|
|
15
|
+
onError: () => {
|
|
16
|
+
r.error(e._("Failed to delete Counterpart."));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
};
|
|
117
20
|
export {
|
|
118
|
-
|
|
21
|
+
p as useDeleteCounterpart
|
|
119
22
|
};
|
|
@@ -1,8 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { useMoniteContext as s } from "./index57.js";
|
|
2
|
+
import { useLingui as i } from "@lingui/react";
|
|
3
|
+
import { toast as a } from "react-hot-toast";
|
|
4
|
+
import { getCounterpartName as p } from "./index7.js";
|
|
5
|
+
const f = () => {
|
|
6
|
+
const {
|
|
7
|
+
i18n: r
|
|
8
|
+
} = i(), {
|
|
9
|
+
api: t,
|
|
10
|
+
queryClient: o
|
|
11
|
+
} = s();
|
|
12
|
+
return t.finops.patchCounterpartsId.useMutation(void 0, {
|
|
13
|
+
onSuccess: async (e) => {
|
|
14
|
+
t.finops.getCounterpartsId.setQueryData({
|
|
15
|
+
path: {
|
|
16
|
+
counterpart_id: e.id
|
|
17
|
+
}
|
|
18
|
+
}, (n) => ({
|
|
19
|
+
...n,
|
|
20
|
+
...e
|
|
21
|
+
}), o), await t.finops.getCounterparts.invalidateQueries(o), a.success(r._("{name} has been updated.", {
|
|
22
|
+
name: p(e)
|
|
23
|
+
}));
|
|
24
|
+
},
|
|
25
|
+
onError: () => {
|
|
26
|
+
a.error(r._("Failed to update counterpart."));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
};
|
|
6
30
|
export {
|
|
7
|
-
|
|
31
|
+
f as useUpdateCounterpart
|
|
8
32
|
};
|