@tesouro/embedded-components-react 0.2.221 → 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 +23 -23
- 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 +23 -23
- 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 +20 -20
- 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/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/index118.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +5 -5
- 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 +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +7 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +26 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +77 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +6 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +9 -18
- 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 +20 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +11 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +121 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +216 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +10 -30
- 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 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +49 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +47 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +44 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +15 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +10 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +150 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +56 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +68 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +23 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +3 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +59 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +39 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +81 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +5 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +97 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +52 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +9 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +46 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +73 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +55 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +14 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +26 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +80 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +28 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +41 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +7 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +228 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +467 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +104 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +537 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +24 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +25 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +94 -226
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +90 -459
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +14 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +11 -536
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +2 -2
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +141 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +86 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +21 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +183 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +23 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +36 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +51 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +79 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +34 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +66 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +361 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +117 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +6 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +20 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +14 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +13 -360
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +21 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +22 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +53 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +30 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +31 -8
- 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 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +17 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +103 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +19 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +24 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +40 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +53 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +52 -17
- 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 +30 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +97 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +46 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +144 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +105 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +34 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +47 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +29 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +5 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +73 -43
- 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 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +17 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +1 -1
- 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 +5 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +457 -313
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +158 -293
- 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 +73 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +44 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +18 -265
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +28 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +40 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +63 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +108 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +84 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +40 -212
- 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 +345 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +302 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +100 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +156 -165
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +257 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +20 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +19 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +59 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +25 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +122 -62
- 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 +44 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +117 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +108 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +45 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +202 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +68 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +10 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +27 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +126 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +149 -28
- 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 +30 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +4 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +33 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +25 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +29 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +30 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +12 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +6 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +19 -88
- 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 +160 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +27 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +26 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +78 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +62 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +20 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +14 -201
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +171 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +134 -19
- 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 +12 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +19 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +63 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +68 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +58 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +6 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +7 -27
- 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 -30
- 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 +62 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +14 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +77 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +76 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +42 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +38 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +57 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +30 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +118 -33
- 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 -490
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +36 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +53 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +2 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +93 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +96 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +213 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +21 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +30 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +18 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +42 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +17 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +47 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +8 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +48 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +45 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +34 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +24 -46
- 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 +41 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +21 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +73 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +94 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +27 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +9 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +14 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +21 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +48 -35
- 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 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +32 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +4 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +9 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +28 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +118 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +18 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +16 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +16 -7
- 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 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +82 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +17 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +80 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +269 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +34 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +59 -263
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +42 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +22 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +140 -42
- 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 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +79 -139
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +90 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +9 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +8 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +285 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +43 -279
- 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 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +74 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +16 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +16 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +3 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +11 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +20 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +33 -17
- 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 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +45 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +25 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +26 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +32 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +127 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +54 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +33 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +96 -16
- 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 +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +35 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +22 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +67 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +18 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +14 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +17 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +66 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +7 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +54 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +29 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +69 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +30 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +18 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +14 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +29 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +84 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +24 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +105 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +108 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +68 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +67 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +37 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +27 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +24 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +38 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +39 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +29 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +81 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +49 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +34 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +44 -72
- 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 +94 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +16 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +75 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +20 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +55 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +70 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +21 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +34 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +17 -103
- 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 +48 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +56 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +29 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +69 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +80 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +53 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +51 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +41 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +34 -50
- 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 +14 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +53 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +48 -36
- 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 +1 -1
- 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 +49 -49
- 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 +23 -23
- package/dist/packages/shared-ui-shadcn/dist/index.js +1111 -1109
- package/package.json +1 -1
- package/dist/lib/GlCodeTableWidget.js +0 -7
package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index3.js
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
const e = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
nameRequired: "Enter a name",
|
|
3
|
+
glCodeRequired: "Enter a GL code",
|
|
4
|
+
nameTooLong: "Keep the name under {max} characters",
|
|
5
|
+
glCodeTooLong: "Keep the GL code under {max} characters",
|
|
6
|
+
descriptionTooLong: "Keep the description under {max} characters",
|
|
7
|
+
saveError: "Could not save this account. Please try again.",
|
|
8
|
+
deleteError: "Could not delete this account. Please try again.",
|
|
9
|
+
// The design words these after the account rather than the action ("Office
|
|
10
|
+
// supplies added"), so they interpolate the name the same way the delete
|
|
11
|
+
// dialog's own title does.
|
|
12
|
+
accountCreated: "{name} added",
|
|
13
|
+
accountUpdated: "{name} updated",
|
|
14
|
+
accountDeleted: "{name} deleted"
|
|
15
|
+
};
|
|
4
16
|
export {
|
|
5
|
-
e as
|
|
6
|
-
t as WIDGET_NAME
|
|
17
|
+
e as CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN
|
|
7
18
|
};
|
package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index5.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "../../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
2
|
+
import "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
3
|
+
import "../../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
4
|
+
import { hasAnyScope as t } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
5
|
+
import "@tanstack/react-query";
|
|
6
|
+
import "../../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
7
|
+
import { Scope as r } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
8
|
+
import "react";
|
|
9
|
+
const n = [r.AccountingConfigReadOrg], e = [
|
|
10
|
+
r.AccountingConfigWriteOrg
|
|
11
|
+
];
|
|
12
|
+
function A(i) {
|
|
13
|
+
const o = new Set(i ?? []);
|
|
14
|
+
return {
|
|
15
|
+
canRead: t(o, n),
|
|
16
|
+
canWrite: t(o, e)
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
A as getChartOfAccountsPermissions
|
|
21
|
+
};
|
package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index6.js
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useMemo as N, useState as a, useRef as R, useCallback as t } from "react";
|
|
3
|
+
import "@tanstack/react-query";
|
|
4
|
+
import "../../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
5
|
+
import "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import "../../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
7
|
+
import "../../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
8
|
+
import { useCreateLedgerAccountMutation as pe, useUpdateLedgerAccountMutation as fe, useDeleteLedgerAccountMutation as Ce } from "../../data-access/dist/index3.js";
|
|
9
|
+
import "react/jsx-runtime";
|
|
10
|
+
import "lucide-react";
|
|
11
|
+
import "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
12
|
+
import "@radix-ui/react-use-controllable-state";
|
|
13
|
+
import "../../../shared/ui/dist/lib/UIContext/UIContext.js";
|
|
14
|
+
import "../../../shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js";
|
|
15
|
+
import { ACCOUNT_FORM_SHEET_LABELS_EN as ge, ACCOUNT_DELETE_DIALOG_LABELS_EN as _e } from "../../ui/dist/index5.js";
|
|
16
|
+
import { ACCOUNT_FIELD_LIMITS as Ae } from "./index7.js";
|
|
17
|
+
import { extractApiErrorMessage as q } from "../../../shared/util/dist/index14.js";
|
|
18
|
+
import { CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN as Ee } from "./index3.js";
|
|
19
|
+
import { validateAccountForm as Le, hasFormErrors as he } from "./index8.js";
|
|
20
|
+
import { toast as _ } from "sonner";
|
|
21
|
+
const k = {
|
|
22
|
+
name: "",
|
|
23
|
+
nominal_code: "",
|
|
24
|
+
description: ""
|
|
25
|
+
}, T = (c, A) => c.replace("{name}", () => A);
|
|
26
|
+
function ke({
|
|
27
|
+
canWrite: c = !1,
|
|
28
|
+
labels: A,
|
|
29
|
+
formLabels: $,
|
|
30
|
+
deleteLabels: b
|
|
31
|
+
} = {}) {
|
|
32
|
+
const s = N(
|
|
33
|
+
() => ({ ...Ee, ...A }),
|
|
34
|
+
[A]
|
|
35
|
+
), E = N(
|
|
36
|
+
() => ({ ...ge, ...$ }),
|
|
37
|
+
[$]
|
|
38
|
+
), H = N(
|
|
39
|
+
() => ({ ..._e, ...b }),
|
|
40
|
+
[b]
|
|
41
|
+
), { createLedgerAccount: v } = pe(), { updateLedgerAccount: U } = fe(), { deleteLedgerAccount: x } = Ce(), [W, m] = a(!1), [d, I] = a("create"), [o, w] = a(), [i, u] = a(k), [j, p] = a({}), [z, L] = a(!1), [h, J] = a(), [K, B] = a(), f = R(0), [P, M] = a(!1), n = t(() => {
|
|
42
|
+
f.current += 1, M(!1);
|
|
43
|
+
}, []), Q = t(() => {
|
|
44
|
+
c && (n(), I("create"), w(void 0), u(k), p({}), m(!0));
|
|
45
|
+
}, [c, n]), V = t(
|
|
46
|
+
(e) => {
|
|
47
|
+
c && (n(), I("edit"), w(e), u({
|
|
48
|
+
name: e.name,
|
|
49
|
+
nominal_code: e.nominal_code,
|
|
50
|
+
description: e.description
|
|
51
|
+
}), p({}), m(!0));
|
|
52
|
+
},
|
|
53
|
+
[c, n]
|
|
54
|
+
), X = t(
|
|
55
|
+
(e) => {
|
|
56
|
+
e || (n(), m(!1));
|
|
57
|
+
},
|
|
58
|
+
[n]
|
|
59
|
+
), Y = t(() => {
|
|
60
|
+
n(), m(!1);
|
|
61
|
+
}, [n]), Z = t(
|
|
62
|
+
(e) => u((r) => ({ ...r, name: e })),
|
|
63
|
+
[]
|
|
64
|
+
), ee = t(
|
|
65
|
+
(e) => u((r) => ({ ...r, nominal_code: e })),
|
|
66
|
+
[]
|
|
67
|
+
), te = t(
|
|
68
|
+
(e) => u((r) => ({ ...r, description: e })),
|
|
69
|
+
[]
|
|
70
|
+
), re = t(async () => {
|
|
71
|
+
const e = Le(i, s);
|
|
72
|
+
if (he(e)) {
|
|
73
|
+
p(e);
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
p({});
|
|
77
|
+
const r = {
|
|
78
|
+
name: i.name.trim(),
|
|
79
|
+
nominal_code: i.nominal_code.trim(),
|
|
80
|
+
// Always send the field, even when empty. The API types description as a
|
|
81
|
+
// plain optional string (no null) and the update path only applies keys
|
|
82
|
+
// that are present, so omitting it would silently keep a description the
|
|
83
|
+
// user just cleared.
|
|
84
|
+
description: i.description.trim()
|
|
85
|
+
}, C = f.current, g = () => f.current === C;
|
|
86
|
+
M(!0);
|
|
87
|
+
try {
|
|
88
|
+
d === "edit" && o ? (await U(o.id, r), _.success(T(s.accountUpdated, r.name))) : (await v(r), _.success(T(s.accountCreated, r.name))), g() && m(!1);
|
|
89
|
+
} catch (F) {
|
|
90
|
+
const D = q(F) ?? s.saveError;
|
|
91
|
+
g() ? p({ form: D }) : _.error(D);
|
|
92
|
+
} finally {
|
|
93
|
+
g() && M(!1);
|
|
94
|
+
}
|
|
95
|
+
}, [
|
|
96
|
+
i,
|
|
97
|
+
s,
|
|
98
|
+
d,
|
|
99
|
+
o,
|
|
100
|
+
U,
|
|
101
|
+
v
|
|
102
|
+
]), O = R(0), [oe, S] = a(!1), l = t(() => {
|
|
103
|
+
O.current += 1, S(!1);
|
|
104
|
+
}, []), y = t(
|
|
105
|
+
(e) => {
|
|
106
|
+
c && (l(), J(e), B(void 0), L(!0));
|
|
107
|
+
},
|
|
108
|
+
[c, l]
|
|
109
|
+
), ne = t(() => {
|
|
110
|
+
l(), L(!1);
|
|
111
|
+
}, [l]), ae = t(
|
|
112
|
+
(e) => {
|
|
113
|
+
e || (l(), L(!1));
|
|
114
|
+
},
|
|
115
|
+
[l]
|
|
116
|
+
), ie = t(async () => {
|
|
117
|
+
if (!h) return;
|
|
118
|
+
const e = h, r = O.current, C = () => O.current === r, g = f.current, F = () => f.current === g;
|
|
119
|
+
S(!0);
|
|
120
|
+
try {
|
|
121
|
+
await x(e.id), _.success(T(s.accountDeleted, e.name)), C() && L(!1), F() && o?.id === e.id && (n(), m(!1));
|
|
122
|
+
} catch (D) {
|
|
123
|
+
const G = q(D) ?? s.deleteError;
|
|
124
|
+
C() ? B(G) : _.error(G);
|
|
125
|
+
} finally {
|
|
126
|
+
C() && S(!1);
|
|
127
|
+
}
|
|
128
|
+
}, [
|
|
129
|
+
h,
|
|
130
|
+
x,
|
|
131
|
+
o?.id,
|
|
132
|
+
s,
|
|
133
|
+
n
|
|
134
|
+
]), ce = t(() => {
|
|
135
|
+
o && y(o);
|
|
136
|
+
}, [o, y]), se = i.name.trim().length === 0 || i.nominal_code.trim().length === 0, me = E.descriptionCounter.replace("{count}", () => String(i.description.length)).replace("{max}", () => String(Ae.description)), le = d === "edit" ? o?.name ?? "" : E.createTitle, de = d === "edit" ? E.editDescription : E.createDescription, ue = T(
|
|
137
|
+
H.title,
|
|
138
|
+
h?.name ?? ""
|
|
139
|
+
);
|
|
140
|
+
return {
|
|
141
|
+
form: {
|
|
142
|
+
open: W,
|
|
143
|
+
mode: d,
|
|
144
|
+
title: le,
|
|
145
|
+
description: de,
|
|
146
|
+
values: i,
|
|
147
|
+
errors: j,
|
|
148
|
+
editing: o,
|
|
149
|
+
inProgress: P,
|
|
150
|
+
submitDisabled: se,
|
|
151
|
+
descriptionCounterText: me,
|
|
152
|
+
onOpenChange: X,
|
|
153
|
+
onNameChange: Z,
|
|
154
|
+
onGlCodeChange: ee,
|
|
155
|
+
onDescriptionChange: te,
|
|
156
|
+
onSubmit: re,
|
|
157
|
+
onCancel: Y
|
|
158
|
+
},
|
|
159
|
+
deleteDialog: {
|
|
160
|
+
open: z,
|
|
161
|
+
title: ue,
|
|
162
|
+
error: K,
|
|
163
|
+
isDeleting: oe,
|
|
164
|
+
onOpenChange: ae,
|
|
165
|
+
onConfirm: ie,
|
|
166
|
+
onCancel: ne
|
|
167
|
+
},
|
|
168
|
+
openCreate: Q,
|
|
169
|
+
openEdit: V,
|
|
170
|
+
requestDelete: y,
|
|
171
|
+
requestDeleteFromForm: ce
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
export {
|
|
175
|
+
ke as useChartOfAccountsCrud
|
|
176
|
+
};
|
package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index7.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "lucide-react";
|
|
3
|
+
import "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
4
|
+
import "@radix-ui/react-use-controllable-state";
|
|
5
|
+
import "react";
|
|
6
|
+
import "../../../shared/ui/dist/lib/UIContext/UIContext.js";
|
|
7
|
+
import "../../../shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js";
|
|
8
|
+
import { ACCOUNT_DESCRIPTION_MAX_LENGTH as o, ACCOUNT_GL_CODE_MAX_LENGTH as i } from "../../ui/dist/index3.js";
|
|
9
|
+
const a = {
|
|
10
|
+
name: 500,
|
|
11
|
+
nominalCode: i,
|
|
12
|
+
description: o
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
a as ACCOUNT_FIELD_LIMITS
|
|
16
|
+
};
|
package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ACCOUNT_FIELD_LIMITS as r } from "./index7.js";
|
|
2
|
+
function i(n, e) {
|
|
3
|
+
return n.replace("{max}", () => String(e));
|
|
4
|
+
}
|
|
5
|
+
function d(n, e) {
|
|
6
|
+
const o = {}, t = n.name.trim(), a = n.nominal_code.trim(), m = n.description.trim();
|
|
7
|
+
return t ? t.length > r.name && (o.name = i(e.nameTooLong, r.name)) : o.name = e.nameRequired, a ? a.length > r.nominalCode && (o.nominal_code = i(
|
|
8
|
+
e.glCodeTooLong,
|
|
9
|
+
r.nominalCode
|
|
10
|
+
)) : o.nominal_code = e.glCodeRequired, m.length > r.description && (o.description = i(
|
|
11
|
+
e.descriptionTooLong,
|
|
12
|
+
r.description
|
|
13
|
+
)), o;
|
|
14
|
+
}
|
|
15
|
+
function l(n) {
|
|
16
|
+
return Object.values(n).some(Boolean);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
l as hasFormErrors,
|
|
20
|
+
d as validateAccountForm
|
|
21
|
+
};
|
|
@@ -1,210 +1,224 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import { TableRow as
|
|
1
|
+
import { jsxs as a, Fragment as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { PlusIcon as k, AlertCircleIcon as F, ArrowUpIcon as K, ArrowDownIcon as R, ArrowUpDownIcon as U, MoreVerticalIcon as G, PencilIcon as $, Trash2Icon as J, FileTextIcon as Q } from "lucide-react";
|
|
3
|
+
import { TableRow as x, TableCell as c, Skeleton as P, DataTable as L, Button as m, Table as V, TableHeader as Z, TableHead as p, TableBody as q, DropdownMenu as W, DropdownMenuTrigger as X, DropdownMenuContent as Y, DropdownMenuItem as M } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
4
4
|
import "@radix-ui/react-use-controllable-state";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../../../shared/ui/dist/lib/UIContext/UIContext.js";
|
|
7
7
|
import "../../../shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js";
|
|
8
|
-
import { SectionHeading as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
emptyDescription: "To begin adding your GL Codes, connect your accounting software on the settings page or upload a CSV with your GL codes.",
|
|
18
|
-
emptyAddIntegration: "Add integration",
|
|
19
|
-
emptyImportCsv: "Import CSV",
|
|
20
|
-
emptyLearnMore: "Learn more about Integrations",
|
|
21
|
-
errorTitle: "Failed to Load GL Codes",
|
|
22
|
-
errorDescription: "Something went wrong while fetching your GL codes. Please try again.",
|
|
23
|
-
paginationPrev: "Previous",
|
|
24
|
-
paginationNext: "Next"
|
|
25
|
-
};
|
|
26
|
-
function et({ labels: e }) {
|
|
27
|
-
return /* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:px-4 ttw:py-14 ttw:text-center", children: [
|
|
28
|
-
/* @__PURE__ */ t("div", { className: "ttw:mb-4 ttw:flex ttw:h-14 ttw:w-14 ttw:items-center ttw:justify-center ttw:rounded-2xl ttw:bg-destructive/10", children: /* @__PURE__ */ t(K, { className: "ttw:h-6 ttw:w-6 ttw:text-destructive" }) }),
|
|
29
|
-
/* @__PURE__ */ t("h3", { className: "ttw:mb-2 ttw:text-lg ttw:font-bold ttw:tracking-tight ttw:text-foreground", children: e.errorTitle }),
|
|
30
|
-
/* @__PURE__ */ t("p", { className: "ttw:max-w-sm ttw:text-sm ttw:text-muted-foreground", children: e.errorDescription })
|
|
8
|
+
import { SectionHeading as tt } from "../../../shared/ui/dist/lib/SectionHeading/SectionHeading.js";
|
|
9
|
+
import { CHART_OF_ACCOUNTS_LABELS_EN as et } from "./index5.js";
|
|
10
|
+
function at({
|
|
11
|
+
labels: n
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:px-4 ttw:py-14 ttw:text-center", children: [
|
|
14
|
+
/* @__PURE__ */ t("div", { className: "ttw:mb-4 ttw:flex ttw:h-14 ttw:w-14 ttw:items-center ttw:justify-center ttw:rounded-2xl ttw:bg-destructive/10", children: /* @__PURE__ */ t(F, { className: "ttw:h-6 ttw:w-6 ttw:text-destructive" }) }),
|
|
15
|
+
/* @__PURE__ */ t("h3", { className: "ttw:mb-2 ttw:text-lg ttw:font-bold ttw:tracking-tight ttw:text-foreground", children: n.errorTitle }),
|
|
16
|
+
/* @__PURE__ */ t("p", { className: "ttw:max-w-sm ttw:text-sm ttw:text-muted-foreground", children: n.errorDescription })
|
|
31
17
|
] });
|
|
32
18
|
}
|
|
33
|
-
function
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
testId:
|
|
19
|
+
function O({
|
|
20
|
+
title: n,
|
|
21
|
+
description: s,
|
|
22
|
+
addLabel: o,
|
|
23
|
+
onAdd: d,
|
|
24
|
+
testId: g
|
|
39
25
|
}) {
|
|
40
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ a(
|
|
41
27
|
"div",
|
|
42
28
|
{
|
|
43
|
-
"data-testid":
|
|
29
|
+
"data-testid": g,
|
|
44
30
|
className: "ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:px-4 ttw:py-14 ttw:text-center",
|
|
45
31
|
children: [
|
|
46
|
-
/* @__PURE__ */ t("div", { className: "ttw:mb-4 ttw:flex ttw:h-14 ttw:w-14 ttw:items-center ttw:justify-center ttw:rounded-2xl ttw:bg-muted", children: /* @__PURE__ */ t(
|
|
47
|
-
/* @__PURE__ */ t("h3", { className: "ttw:mb-2 ttw:text-lg ttw:font-bold ttw:tracking-tight ttw:text-foreground", children:
|
|
48
|
-
/* @__PURE__ */ t("p", { className: "ttw:mb-6 ttw:max-w-sm ttw:text-sm ttw:text-muted-foreground", children:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
] }),
|
|
54
|
-
a && /* @__PURE__ */ t(d, { variant: "outline", onClick: a, children: e.emptyImportCsv })
|
|
55
|
-
] }),
|
|
56
|
-
w && /* @__PURE__ */ n(
|
|
57
|
-
"a",
|
|
58
|
-
{
|
|
59
|
-
href: w,
|
|
60
|
-
target: "_blank",
|
|
61
|
-
rel: "noopener noreferrer",
|
|
62
|
-
className: "ttw:inline-flex ttw:items-center ttw:gap-1 ttw:text-sm ttw:text-foreground ttw:underline-offset-4 hover:ttw:underline",
|
|
63
|
-
children: [
|
|
64
|
-
e.emptyLearnMore,
|
|
65
|
-
/* @__PURE__ */ t(U, { className: "ttw:h-3.5 ttw:w-3.5" })
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
)
|
|
32
|
+
/* @__PURE__ */ t("div", { className: "ttw:mb-4 ttw:flex ttw:h-14 ttw:w-14 ttw:items-center ttw:justify-center ttw:rounded-2xl ttw:bg-muted", children: /* @__PURE__ */ t(Q, { className: "ttw:h-6 ttw:w-6 ttw:text-muted-foreground" }) }),
|
|
33
|
+
/* @__PURE__ */ t("h3", { className: "ttw:mb-2 ttw:text-lg ttw:font-bold ttw:tracking-tight ttw:text-foreground", children: n }),
|
|
34
|
+
/* @__PURE__ */ t("p", { className: "ttw:mb-6 ttw:max-w-sm ttw:text-sm ttw:text-muted-foreground", children: s }),
|
|
35
|
+
d && /* @__PURE__ */ a(m, { onClick: d, children: [
|
|
36
|
+
/* @__PURE__ */ t(k, { className: "ttw:mr-1 ttw:h-4 ttw:w-4" }),
|
|
37
|
+
o
|
|
38
|
+
] })
|
|
69
39
|
]
|
|
70
40
|
}
|
|
71
41
|
);
|
|
72
42
|
}
|
|
73
|
-
function
|
|
74
|
-
labels:
|
|
75
|
-
hasActions:
|
|
76
|
-
children:
|
|
43
|
+
function v({
|
|
44
|
+
labels: n,
|
|
45
|
+
hasActions: s,
|
|
46
|
+
children: o
|
|
77
47
|
}) {
|
|
78
|
-
return /* @__PURE__ */ t("div", { className: "ttw:overflow-hidden ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card", children: /* @__PURE__ */
|
|
79
|
-
/* @__PURE__ */ t(
|
|
80
|
-
/* @__PURE__ */ t(
|
|
81
|
-
/* @__PURE__ */ t(
|
|
82
|
-
/* @__PURE__ */ t(
|
|
83
|
-
|
|
48
|
+
return /* @__PURE__ */ t("div", { className: "ttw:overflow-hidden ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card", children: /* @__PURE__ */ a(V, { children: [
|
|
49
|
+
/* @__PURE__ */ t(Z, { children: /* @__PURE__ */ a(x, { children: [
|
|
50
|
+
/* @__PURE__ */ t(p, { children: n.columnGlCode }),
|
|
51
|
+
/* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(m, { variant: "ghost", disabled: !0, className: "ttw:-ml-3", children: n.columnName }) }),
|
|
52
|
+
/* @__PURE__ */ t(p, { children: n.columnDescription }),
|
|
53
|
+
s && /* @__PURE__ */ t(p, { className: "ttw:w-16 ttw:text-right", children: n.columnActions })
|
|
84
54
|
] }) }),
|
|
85
|
-
/* @__PURE__ */ t(
|
|
55
|
+
/* @__PURE__ */ t(q, { children: o })
|
|
86
56
|
] }) });
|
|
87
57
|
}
|
|
88
|
-
function
|
|
89
|
-
data:
|
|
90
|
-
isLoading:
|
|
91
|
-
isError:
|
|
92
|
-
sorting:
|
|
93
|
-
onSortingChange:
|
|
94
|
-
pageSize:
|
|
95
|
-
onPageSizeChange:
|
|
96
|
-
pageSizeOptions:
|
|
97
|
-
hasNextPage:
|
|
98
|
-
hasPrevPage:
|
|
99
|
-
onNextPage:
|
|
100
|
-
onPrevPage:
|
|
101
|
-
labels:
|
|
102
|
-
title:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
learnMoreHref: z,
|
|
108
|
-
emptyStateTestId: E
|
|
58
|
+
function ht({
|
|
59
|
+
data: n,
|
|
60
|
+
isLoading: s,
|
|
61
|
+
isError: o,
|
|
62
|
+
sorting: d,
|
|
63
|
+
onSortingChange: g,
|
|
64
|
+
pageSize: A,
|
|
65
|
+
onPageSizeChange: S,
|
|
66
|
+
pageSizeOptions: y,
|
|
67
|
+
hasNextPage: C,
|
|
68
|
+
hasPrevPage: u,
|
|
69
|
+
onNextPage: T,
|
|
70
|
+
onPrevPage: z,
|
|
71
|
+
labels: j,
|
|
72
|
+
title: _,
|
|
73
|
+
emptyStateTestId: E,
|
|
74
|
+
onEdit: N,
|
|
75
|
+
onDelete: b,
|
|
76
|
+
onAdd: f
|
|
109
77
|
}) {
|
|
110
|
-
const
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
] }, c)) })
|
|
125
|
-
] });
|
|
126
|
-
if (e.length === 0)
|
|
127
|
-
return /* @__PURE__ */ n(h, { children: [
|
|
128
|
-
m,
|
|
129
|
-
/* @__PURE__ */ t(b, { labels: r, hasActions: i, children: /* @__PURE__ */ t(u, { children: /* @__PURE__ */ t(s, { colSpan: i ? 4 : 3, className: "ttw:p-0", children: /* @__PURE__ */ t(
|
|
130
|
-
nt,
|
|
131
|
-
{
|
|
132
|
-
labels: r,
|
|
133
|
-
onAddIntegration: M,
|
|
134
|
-
onImportCsv: k,
|
|
135
|
-
learnMoreHref: z,
|
|
136
|
-
testId: E
|
|
137
|
-
}
|
|
138
|
-
) }) }) })
|
|
139
|
-
] });
|
|
140
|
-
const G = [
|
|
78
|
+
const e = { ...et, ...j }, i = !!(N ?? b), D = _ ?? e.title, H = D ? /* @__PURE__ */ a("div", { className: "ttw:mb-4", children: [
|
|
79
|
+
/* @__PURE__ */ t(tt, { children: D }),
|
|
80
|
+
e.subtitle && /* @__PURE__ */ t("p", { className: "ttw:text-sm ttw:text-muted-foreground", children: e.subtitle })
|
|
81
|
+
] }) : null, B = n.length === 0 && !u, w = /* @__PURE__ */ a(l, { children: [
|
|
82
|
+
H,
|
|
83
|
+
f && !B && /* @__PURE__ */ t("div", { className: "ttw:mb-4 ttw:flex ttw:items-center ttw:justify-end", children: /* @__PURE__ */ a(m, { onClick: f, children: [
|
|
84
|
+
/* @__PURE__ */ t(k, { className: "ttw:mr-1 ttw:h-4 ttw:w-4" }),
|
|
85
|
+
e.addAccount
|
|
86
|
+
] }) })
|
|
87
|
+
] }), I = [
|
|
88
|
+
{
|
|
89
|
+
accessorKey: "nominal_code",
|
|
90
|
+
header: e.columnGlCode
|
|
91
|
+
},
|
|
141
92
|
{
|
|
142
93
|
accessorKey: "name",
|
|
143
|
-
header: ({ column:
|
|
144
|
-
const
|
|
145
|
-
return /* @__PURE__ */
|
|
146
|
-
|
|
94
|
+
header: ({ column: r }) => {
|
|
95
|
+
const h = r.getIsSorted();
|
|
96
|
+
return /* @__PURE__ */ a("div", { className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-inherit", children: [
|
|
97
|
+
e.columnName,
|
|
147
98
|
/* @__PURE__ */ t(
|
|
148
|
-
|
|
99
|
+
m,
|
|
149
100
|
{
|
|
150
101
|
variant: "ghost",
|
|
151
|
-
"
|
|
152
|
-
onClick: () =>
|
|
153
|
-
children:
|
|
102
|
+
"aria-label": e.sortByName,
|
|
103
|
+
onClick: () => r.toggleSorting(h === "asc"),
|
|
104
|
+
children: h === "asc" ? /* @__PURE__ */ t(K, { className: "ttw:size-4" }) : h === "desc" ? /* @__PURE__ */ t(R, { className: "ttw:size-4" }) : /* @__PURE__ */ t(U, { className: "ttw:size-4" })
|
|
154
105
|
}
|
|
155
106
|
)
|
|
156
107
|
] });
|
|
157
108
|
}
|
|
158
109
|
},
|
|
159
|
-
{
|
|
160
|
-
accessorKey: "nominal_code",
|
|
161
|
-
header: r.columnGlCode
|
|
162
|
-
},
|
|
163
110
|
{
|
|
164
111
|
accessorKey: "description",
|
|
165
|
-
header:
|
|
112
|
+
header: e.columnDescription
|
|
166
113
|
},
|
|
167
114
|
...i ? [
|
|
168
115
|
{
|
|
169
116
|
id: "actions",
|
|
170
|
-
header: () => /* @__PURE__ */ t("div", { className: "ttw:flex ttw:justify-end", children:
|
|
171
|
-
cell: ({ row:
|
|
172
|
-
/* @__PURE__ */ t(
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
117
|
+
header: () => /* @__PURE__ */ t("div", { className: "ttw:flex ttw:justify-end", children: e.columnActions }),
|
|
118
|
+
cell: ({ row: r }) => r.original.is_external ? null : /* @__PURE__ */ t("div", { className: "ttw:flex ttw:justify-end", children: /* @__PURE__ */ a(W, { children: [
|
|
119
|
+
/* @__PURE__ */ t(X, { asChild: !0, children: /* @__PURE__ */ t(
|
|
120
|
+
m,
|
|
121
|
+
{
|
|
122
|
+
variant: "ghost",
|
|
123
|
+
size: "icon-sm",
|
|
124
|
+
"aria-label": e.openActionsMenu,
|
|
125
|
+
children: /* @__PURE__ */ t(G, { className: "ttw:h-4 ttw:w-4" })
|
|
126
|
+
}
|
|
127
|
+
) }),
|
|
128
|
+
/* @__PURE__ */ a(Y, { align: "end", children: [
|
|
129
|
+
N && /* @__PURE__ */ a(M, { onClick: () => N(r.original), children: [
|
|
130
|
+
/* @__PURE__ */ t($, { className: "ttw:mr-2 ttw:h-4 ttw:w-4" }),
|
|
131
|
+
e.actionEdit
|
|
177
132
|
] }),
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
133
|
+
b && /* @__PURE__ */ a(
|
|
134
|
+
M,
|
|
135
|
+
{
|
|
136
|
+
variant: "destructive",
|
|
137
|
+
onClick: () => b(r.original),
|
|
138
|
+
children: [
|
|
139
|
+
/* @__PURE__ */ t(J, { className: "ttw:mr-2 ttw:h-4 ttw:w-4" }),
|
|
140
|
+
e.actionDelete
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
)
|
|
182
144
|
] })
|
|
183
145
|
] }) })
|
|
184
146
|
}
|
|
185
147
|
] : []
|
|
186
148
|
];
|
|
187
|
-
return /* @__PURE__ */
|
|
188
|
-
|
|
149
|
+
return o ? /* @__PURE__ */ a(l, { children: [
|
|
150
|
+
w,
|
|
151
|
+
/* @__PURE__ */ t(v, { labels: e, hasActions: i, children: /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(c, { colSpan: i ? 4 : 3, className: "ttw:p-0", children: /* @__PURE__ */ t(at, { labels: e }) }) }) })
|
|
152
|
+
] }) : s && n.length === 0 ? /* @__PURE__ */ a(l, { children: [
|
|
153
|
+
w,
|
|
154
|
+
/* @__PURE__ */ t(v, { labels: e, hasActions: i, children: Array.from({ length: 5 }).map((r, h) => /* @__PURE__ */ a(x, { children: [
|
|
155
|
+
/* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(P, { className: "ttw:h-4 ttw:w-36" }) }),
|
|
156
|
+
/* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(P, { className: "ttw:h-4 ttw:w-14" }) }),
|
|
157
|
+
/* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(P, { className: "ttw:h-4 ttw:w-56" }) }),
|
|
158
|
+
i && /* @__PURE__ */ t(c, {})
|
|
159
|
+
] }, h)) })
|
|
160
|
+
] }) : n.length === 0 && u ? /* @__PURE__ */ a(l, { children: [
|
|
161
|
+
w,
|
|
162
|
+
/* @__PURE__ */ t(
|
|
163
|
+
L,
|
|
164
|
+
{
|
|
165
|
+
columns: I,
|
|
166
|
+
data: n,
|
|
167
|
+
sorting: d,
|
|
168
|
+
onSortingChange: g,
|
|
169
|
+
pageSize: A,
|
|
170
|
+
onPageSizeChange: S,
|
|
171
|
+
pageSizeOptions: y,
|
|
172
|
+
hasNextPage: C,
|
|
173
|
+
hasPrevPage: u,
|
|
174
|
+
onNextPage: T,
|
|
175
|
+
onPrevPage: z,
|
|
176
|
+
previousPageLabel: e.paginationPrev,
|
|
177
|
+
nextPageLabel: e.paginationNext,
|
|
178
|
+
children: /* @__PURE__ */ t(
|
|
179
|
+
O,
|
|
180
|
+
{
|
|
181
|
+
title: e.emptyPageTitle,
|
|
182
|
+
description: e.emptyPageDescription,
|
|
183
|
+
addLabel: e.addAccount
|
|
184
|
+
}
|
|
185
|
+
)
|
|
186
|
+
}
|
|
187
|
+
)
|
|
188
|
+
] }) : n.length === 0 ? /* @__PURE__ */ a(l, { children: [
|
|
189
|
+
w,
|
|
190
|
+
/* @__PURE__ */ t(v, { labels: e, hasActions: i, children: /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(c, { colSpan: i ? 4 : 3, className: "ttw:p-0", children: /* @__PURE__ */ t(
|
|
191
|
+
O,
|
|
192
|
+
{
|
|
193
|
+
title: e.emptyTitle,
|
|
194
|
+
description: e.emptyDescription,
|
|
195
|
+
addLabel: e.addAccount,
|
|
196
|
+
onAdd: f,
|
|
197
|
+
testId: E
|
|
198
|
+
}
|
|
199
|
+
) }) }) })
|
|
200
|
+
] }) : /* @__PURE__ */ a(l, { children: [
|
|
201
|
+
w,
|
|
189
202
|
/* @__PURE__ */ t(
|
|
190
|
-
|
|
203
|
+
L,
|
|
191
204
|
{
|
|
192
|
-
columns:
|
|
193
|
-
data:
|
|
194
|
-
sorting:
|
|
195
|
-
onSortingChange:
|
|
196
|
-
pageSize:
|
|
197
|
-
onPageSizeChange:
|
|
198
|
-
pageSizeOptions:
|
|
199
|
-
hasNextPage:
|
|
200
|
-
hasPrevPage:
|
|
201
|
-
onNextPage:
|
|
202
|
-
onPrevPage:
|
|
205
|
+
columns: I,
|
|
206
|
+
data: n,
|
|
207
|
+
sorting: d,
|
|
208
|
+
onSortingChange: g,
|
|
209
|
+
pageSize: A,
|
|
210
|
+
onPageSizeChange: S,
|
|
211
|
+
pageSizeOptions: y,
|
|
212
|
+
hasNextPage: C,
|
|
213
|
+
hasPrevPage: u,
|
|
214
|
+
onNextPage: T,
|
|
215
|
+
onPrevPage: z,
|
|
216
|
+
previousPageLabel: e.paginationPrev,
|
|
217
|
+
nextPageLabel: e.paginationNext
|
|
203
218
|
}
|
|
204
219
|
)
|
|
205
220
|
] });
|
|
206
221
|
}
|
|
207
222
|
export {
|
|
208
|
-
|
|
209
|
-
wt as GlCodeTable
|
|
223
|
+
ht as ChartOfAccountsTable
|
|
210
224
|
};
|