@tesouro/embedded-components-react 0.7.46 → 0.7.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +0 -23
- package/dist/index.d.ts +4 -0
- package/dist/lib/CounterpartsWidget.d.ts +4 -0
- package/dist/lib/CounterpartsWidgetPublic.d.ts +4 -0
- package/dist/lib/CustomersWidget.d.ts +2 -0
- package/dist/lib/ReceivablesWidget.d.ts +2 -0
- package/dist/lib/monite-sdk.d.ts +51 -182
- package/dist/lib/monite-sdk.js +71 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +40 -42
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +75 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +10 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +36 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +1 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +102 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +1 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +51 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +1 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +49 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +1 -262
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +53 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +1 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +151 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +52 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +2 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +8 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +52 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +38 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +70 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +11 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +68 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +172 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +7 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +73 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +76 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +1 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +33 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +1 -446
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +55 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +41 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +565 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +1 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +156 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +10 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +16 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +21 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +26 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +1 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +93 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +23 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +15 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +71 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +27 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +5 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +37 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +48 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +54 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +1 -216
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +28 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +39 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +78 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +4 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +2 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +47 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +79 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +121 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +17 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +77 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +1 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +121 -292
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +5 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +17 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +120 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +21 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +6 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +55 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +71 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +26 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +57 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +19 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +185 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +3 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +30 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +31 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +47 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +10 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +8 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +17 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +12 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +12 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +12 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +18 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +42 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +14 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +16 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +13 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +15 -564
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +114 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +62 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +195 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +38 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +6 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +9 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +17 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +9 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +5 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +359 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +19 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +89 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +14 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +182 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +98 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +37 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +1 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +53 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +44 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +1 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +33 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +1 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +18 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +158 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +54 -176
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +47 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +49 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +85 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +7 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +304 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +29 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +1 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +26 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +20 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +157 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +34 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +31 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +101 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +186 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +131 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +208 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +31 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +238 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +36 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +131 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +165 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +26 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +16 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +22 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +19 -356
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +16 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +9 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +22 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +83 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +14 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +98 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +27 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +101 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +171 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +11 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +4 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +66 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +25 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +210 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +87 -302
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +154 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +104 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +42 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +69 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +19 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +5 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +9 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +11 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +130 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +6 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +6 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +219 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +31 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +32 -238
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +73 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +179 -137
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +194 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +102 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +64 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +53 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +91 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +39 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +75 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +83 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +12 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +23 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +17 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +20 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +1 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +46 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +28 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +15 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +29 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +87 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +14 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +44 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +26 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +32 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +70 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +6 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +8 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +5 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +15 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +6 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +4 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +29 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +72 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +54 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +49 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +18 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +48 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +63 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +33 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +37 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +24 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +14 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +25 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +51 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +24 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +71 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +80 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +1 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +8 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +27 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +16 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +3 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +55 -53
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +85 -84
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +238 -241
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index11.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index5.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +0 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +0 -173
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +0 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +0 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +0 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +0 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +0 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +0 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +0 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +0 -222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +0 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +0 -206
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +0 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +0 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +0 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +0 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +0 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +0 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +0 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +0 -97
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index11.js
CHANGED
|
@@ -35,6 +35,8 @@ function s({ open: s, onOpenChange: c, mode: l, values: u, errors: d, highlighte
|
|
|
35
35
|
accountHolderName: y.accountHolderNameLabel,
|
|
36
36
|
routingNumber: y.routingNumberLabel,
|
|
37
37
|
accountNumber: y.accountNumberLabel,
|
|
38
|
+
routingNumberPlaceholder: y.routingNumberPlaceholder,
|
|
39
|
+
accountNumberPlaceholder: y.accountNumberPlaceholder,
|
|
38
40
|
fieldMarkers: y.fieldMarkers
|
|
39
41
|
}
|
|
40
42
|
}), /* @__PURE__ */ a(e, {
|
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js
CHANGED
|
@@ -12,7 +12,7 @@ var n = {
|
|
|
12
12
|
city: "City",
|
|
13
13
|
state: "State",
|
|
14
14
|
statePlaceholder: "Select a state",
|
|
15
|
-
postalCode: "
|
|
15
|
+
postalCode: "Postal code",
|
|
16
16
|
country: "Country",
|
|
17
17
|
countryValue: "United States",
|
|
18
18
|
fieldMarkers: e
|
|
@@ -20,6 +20,8 @@ var n = {
|
|
|
20
20
|
accountHolderName: "Account holder name",
|
|
21
21
|
routingNumber: "Routing number",
|
|
22
22
|
accountNumber: "Account number",
|
|
23
|
+
routingNumberPlaceholder: "e.g., 123456789",
|
|
24
|
+
accountNumberPlaceholder: "e.g., 12345678",
|
|
23
25
|
fieldMarkers: e
|
|
24
26
|
}, a = {
|
|
25
27
|
createTitleOrganization: "Create organization",
|
|
@@ -67,10 +69,7 @@ var n = {
|
|
|
67
69
|
createButtonCustomer: "Save customer",
|
|
68
70
|
createButtonVendor: "Save vendor",
|
|
69
71
|
saveButton: "Save",
|
|
70
|
-
address:
|
|
71
|
-
...r,
|
|
72
|
-
postalCode: "Postal code"
|
|
73
|
-
},
|
|
72
|
+
address: r,
|
|
74
73
|
ach: i,
|
|
75
74
|
fieldMarkers: e,
|
|
76
75
|
requiredFieldsLegend: t
|
|
@@ -80,6 +79,8 @@ var n = {
|
|
|
80
79
|
accountHolderNameLabel: "Account holder name",
|
|
81
80
|
accountNumberLabel: "Account number",
|
|
82
81
|
routingNumberLabel: "Routing number",
|
|
82
|
+
accountNumberPlaceholder: i.accountNumberPlaceholder,
|
|
83
|
+
routingNumberPlaceholder: i.routingNumberPlaceholder,
|
|
83
84
|
helperText: "Ask your vendor for this — it's usually on their invoice, W-9, or a payment instructions email they send you.",
|
|
84
85
|
cancelButton: "Cancel",
|
|
85
86
|
saveButton: "Save",
|
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index5.js
CHANGED
|
@@ -46,6 +46,7 @@ function s({ idPrefix: s, values: c, errors: l, highlighted: u, onChange: d, lab
|
|
|
46
46
|
/* @__PURE__ */ a(t, {
|
|
47
47
|
id: `${s}-routing-number`,
|
|
48
48
|
value: c.routingNumber,
|
|
49
|
+
placeholder: p.routingNumberPlaceholder,
|
|
49
50
|
"aria-required": !0,
|
|
50
51
|
"aria-invalid": !!(l?.routingNumber || u?.routingNumber),
|
|
51
52
|
onChange: (e) => d({ routingNumber: e.target.value })
|
|
@@ -64,6 +65,7 @@ function s({ idPrefix: s, values: c, errors: l, highlighted: u, onChange: d, lab
|
|
|
64
65
|
/* @__PURE__ */ a(t, {
|
|
65
66
|
id: `${s}-account-number`,
|
|
66
67
|
value: c.accountNumber,
|
|
68
|
+
placeholder: p.accountNumberPlaceholder,
|
|
67
69
|
"aria-required": !0,
|
|
68
70
|
"aria-invalid": !!(l?.accountNumber || u?.accountNumber),
|
|
69
71
|
onChange: (e) => d({ accountNumber: e.target.value })
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.7.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.7.49", n = "083505cd6dd252cf33d1462d89391faa48894326", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tesouro/embedded-components-react",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.49",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -244,7 +244,6 @@
|
|
|
244
244
|
"@openapi-qraft/react": "^1.14.0",
|
|
245
245
|
"@radix-ui/react-alert-dialog": "^1.1.23",
|
|
246
246
|
"@radix-ui/react-avatar": "^1.2.6",
|
|
247
|
-
"@radix-ui/react-checkbox": "^1.3.11",
|
|
248
247
|
"@radix-ui/react-context-menu": "^2.3.7",
|
|
249
248
|
"@radix-ui/react-dialog": "^1.1.23",
|
|
250
249
|
"@radix-ui/react-dropdown-menu": "^2.1.24",
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Button as e } from "./index56.js";
|
|
2
|
-
import { Sheet as t, SheetContent as n, SheetDescription as r, SheetFooter as i, SheetHeader as a, SheetTitle as o } from "./index50.js";
|
|
3
|
-
import { ManageMeasureUnitsForm as s } from "./index368.js";
|
|
4
|
-
import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
5
|
-
import { useLingui as u } from "@lingui/react";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js
|
|
7
|
-
var d = ({ handleClose: d, open: f }) => {
|
|
8
|
-
let { i18n: p } = u();
|
|
9
|
-
return /* @__PURE__ */ c(t, {
|
|
10
|
-
open: f,
|
|
11
|
-
onOpenChange: d,
|
|
12
|
-
children: /* @__PURE__ */ l(n, {
|
|
13
|
-
side: "right",
|
|
14
|
-
className: "ttw:gap-0 ttw:p-0",
|
|
15
|
-
children: [
|
|
16
|
-
/* @__PURE__ */ l(a, {
|
|
17
|
-
className: "ttw:border-b ttw:border-border",
|
|
18
|
-
children: [/* @__PURE__ */ c(o, { children: p._("Manage measure units") }), /* @__PURE__ */ c(r, {
|
|
19
|
-
hidden: !0,
|
|
20
|
-
children: p._("Manage measure units")
|
|
21
|
-
})]
|
|
22
|
-
}),
|
|
23
|
-
/* @__PURE__ */ c("div", {
|
|
24
|
-
className: "ttw:flex-1 ttw:overflow-y-auto ttw:px-6 ttw:py-4",
|
|
25
|
-
children: /* @__PURE__ */ c(s, {})
|
|
26
|
-
}),
|
|
27
|
-
/* @__PURE__ */ c(i, {
|
|
28
|
-
className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end",
|
|
29
|
-
children: /* @__PURE__ */ c(e, {
|
|
30
|
-
onClick: d,
|
|
31
|
-
children: p._("Done")
|
|
32
|
-
})
|
|
33
|
-
})
|
|
34
|
-
]
|
|
35
|
-
})
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
//#endregion
|
|
39
|
-
export { d as ManageMeasureUnits };
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
-
import "../../shared/data-access/dist/index.js";
|
|
3
|
-
import { useMoniteContext as t } from "./index45.js";
|
|
4
|
-
import { useCurrencies as n } from "./index63.js";
|
|
5
|
-
import { Button as r } from "./index56.js";
|
|
6
|
-
import { MoniteScopedProviders as i } from "./index129.js";
|
|
7
|
-
import { useUserPermissions as a } from "./index111.js";
|
|
8
|
-
import { GetNoRowsOverlay as o } from "./index152.js";
|
|
9
|
-
import { AccessRestriction as s } from "./index153.js";
|
|
10
|
-
import "./index155.js";
|
|
11
|
-
import { DataTable as c } from "./index157.js";
|
|
12
|
-
import { hasSelectedText as l } from "./index158.js";
|
|
13
|
-
import "./index173.js";
|
|
14
|
-
import { useGetProducts as u } from "./index292.js";
|
|
15
|
-
import "./index357.js";
|
|
16
|
-
import { ProductDeleteModal as d } from "./index358.js";
|
|
17
|
-
import { ProductType as f } from "./index359.js";
|
|
18
|
-
import { FILTER_TYPE_SEARCH as p } from "./index360.js";
|
|
19
|
-
import { Filters as m } from "./index361.js";
|
|
20
|
-
import { MeasureUnit as ee } from "./index362.js";
|
|
21
|
-
import { ManageMeasureUnits as h } from "./index369.js";
|
|
22
|
-
import { useCallback as g, useMemo as _, useState as v } from "react";
|
|
23
|
-
import { ArrowDown as y, ArrowUp as b, ArrowUpDown as x, Plus as S } from "lucide-react";
|
|
24
|
-
import { Fragment as C, jsx as w, jsxs as T } from "@emotion/react/jsx-runtime";
|
|
25
|
-
import { useLingui as E } from "@lingui/react";
|
|
26
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js
|
|
27
|
-
var D = (e) => /* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(O, { ...e }) }), O = ({ onFilterChanged: i, onSortChanged: D, onRowClick: O, onDeleted: k, openCreateModal: A }) => {
|
|
28
|
-
let { i18n: j } = E(), { componentSettings: M } = t(), { formatCurrencyToDisplay: N } = n(), [P, F] = v(!1), [I, L] = v(void 0), [R, z] = v(M.products.pageSizeOptions[0]), [B, te] = v({}), [V, H] = v(), [U, W] = v({
|
|
29
|
-
open: !1,
|
|
30
|
-
id: null
|
|
31
|
-
}), G = a(), K = G.has(e.InvoiceWriteOrg), q = G.has(e.InvoiceReadOrg), { data: J, isLoading: Y, isError: X, refetch: Z } = u({
|
|
32
|
-
sort: V?.field,
|
|
33
|
-
order: V?.sort,
|
|
34
|
-
limit: R,
|
|
35
|
-
pagination_token: I,
|
|
36
|
-
name__icontains: B.search || void 0
|
|
37
|
-
}), Q = (e, t) => {
|
|
38
|
-
L(void 0), te((n) => ({
|
|
39
|
-
...n,
|
|
40
|
-
[e]: t === "all" ? null : t
|
|
41
|
-
})), i?.({
|
|
42
|
-
field: e,
|
|
43
|
-
value: t
|
|
44
|
-
});
|
|
45
|
-
}, $ = _(() => V ? [{
|
|
46
|
-
id: V.field,
|
|
47
|
-
desc: V.sort === "desc"
|
|
48
|
-
}] : [], [V]), ne = g((e) => {
|
|
49
|
-
let t = typeof e == "function" ? e($) : e;
|
|
50
|
-
if (t.length > 0) {
|
|
51
|
-
let e = {
|
|
52
|
-
field: t[0].id,
|
|
53
|
-
sort: t[0].desc ? "desc" : "asc"
|
|
54
|
-
};
|
|
55
|
-
H(e), D?.(e);
|
|
56
|
-
} else H(void 0);
|
|
57
|
-
L(void 0);
|
|
58
|
-
}, [$, D]), re = _(() => [
|
|
59
|
-
{
|
|
60
|
-
accessorKey: "name",
|
|
61
|
-
header: ({ column: e }) => {
|
|
62
|
-
let t = e.getIsSorted();
|
|
63
|
-
return /* @__PURE__ */ T("div", {
|
|
64
|
-
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-inherit",
|
|
65
|
-
children: [j._("Name"), /* @__PURE__ */ w(r, {
|
|
66
|
-
variant: "ghost",
|
|
67
|
-
onClick: () => e.toggleSorting(t === "asc"),
|
|
68
|
-
children: w(t === "asc" ? b : t === "desc" ? y : x, { className: "ttw:size-4" })
|
|
69
|
-
})]
|
|
70
|
-
});
|
|
71
|
-
},
|
|
72
|
-
cell: ({ row: e }) => /* @__PURE__ */ w("span", { children: e.original.name })
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
accessorKey: "type",
|
|
76
|
-
header: j._("Type"),
|
|
77
|
-
cell: ({ row: e }) => e.original.type ? /* @__PURE__ */ w(f, { type: e.original.type }) : null
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
accessorKey: "description",
|
|
81
|
-
header: j._("Description"),
|
|
82
|
-
cell: ({ row: e }) => /* @__PURE__ */ w("div", {
|
|
83
|
-
className: "ttw:w-120",
|
|
84
|
-
children: /* @__PURE__ */ w("span", {
|
|
85
|
-
className: "ttw:w-full ttw:inline-block ttw:truncate",
|
|
86
|
-
children: e.original?.description
|
|
87
|
-
})
|
|
88
|
-
})
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
accessorKey: "price",
|
|
92
|
-
header: () => /* @__PURE__ */ w("div", {
|
|
93
|
-
className: "ttw:text-right",
|
|
94
|
-
children: j._("Price per unit")
|
|
95
|
-
}),
|
|
96
|
-
cell: ({ row: e }) => {
|
|
97
|
-
let t = e.original.price;
|
|
98
|
-
return /* @__PURE__ */ T("div", {
|
|
99
|
-
className: "ttw:justify-end ttw:flex ttw:gap-1 ttw:items-center",
|
|
100
|
-
children: [t ? N(t.value, t.currency) : "", /* @__PURE__ */ w(ee, { unitId: e.original.measure_unit_id ?? "" })]
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
], [j, N]), ie = Object.keys(B).some((e) => B[e] !== null && B[e] !== void 0), ae = !!B[p];
|
|
105
|
-
return q ? /* @__PURE__ */ T(C, { children: [
|
|
106
|
-
/* @__PURE__ */ w("div", {
|
|
107
|
-
className: "ttw:flex ttw:flex-col ttw:overflow-hidden ttw:min-h-125",
|
|
108
|
-
children: /* @__PURE__ */ w(c, {
|
|
109
|
-
columns: re,
|
|
110
|
-
data: J?.data ?? [],
|
|
111
|
-
sorting: $,
|
|
112
|
-
onSortingChange: ne,
|
|
113
|
-
pageSize: R,
|
|
114
|
-
onPageSizeChange: z,
|
|
115
|
-
nextPaginationToken: J?.next_pagination_token ?? void 0,
|
|
116
|
-
prevPaginationToken: J?.prev_pagination_token ?? void 0,
|
|
117
|
-
onPaginationTokenChange: L,
|
|
118
|
-
onRowClick: (e) => {
|
|
119
|
-
l() || O?.(e.id);
|
|
120
|
-
},
|
|
121
|
-
filterComponent: /* @__PURE__ */ T("div", {
|
|
122
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:px-4",
|
|
123
|
-
children: [/* @__PURE__ */ w(m, { onChangeFilter: Q }), /* @__PURE__ */ T("div", {
|
|
124
|
-
className: "ttw:flex ttw:gap-2",
|
|
125
|
-
children: [/* @__PURE__ */ w(r, {
|
|
126
|
-
variant: "ghost",
|
|
127
|
-
onClick: () => F(!0),
|
|
128
|
-
className: "ttw:py-0 ttw:text-primary ttw:hover:text-primary",
|
|
129
|
-
children: j._("Manage units of measure")
|
|
130
|
-
}), /* @__PURE__ */ T(r, {
|
|
131
|
-
disabled: !K,
|
|
132
|
-
onClick: A,
|
|
133
|
-
className: "ttw:py-0",
|
|
134
|
-
children: [/* @__PURE__ */ w(S, {}), j._("Add product or service")]
|
|
135
|
-
})]
|
|
136
|
-
})]
|
|
137
|
-
}),
|
|
138
|
-
children: /* @__PURE__ */ w(o, {
|
|
139
|
-
isLoading: Y,
|
|
140
|
-
dataLength: J?.data.length || 0,
|
|
141
|
-
isFiltering: ie,
|
|
142
|
-
isSearching: ae,
|
|
143
|
-
isError: X,
|
|
144
|
-
onCreate: A,
|
|
145
|
-
refetch: Z,
|
|
146
|
-
filterTitle: j._("No product or service found"),
|
|
147
|
-
filterDescription1: j._("Try adjusting your search or filter criteria"),
|
|
148
|
-
entityName: j._("products or services"),
|
|
149
|
-
actionButtonLabel: j._("Add your first product or service"),
|
|
150
|
-
actionOptions: [j._("Product")],
|
|
151
|
-
noDataTitle: j._("Build your products & services list."),
|
|
152
|
-
noDataDescription1: j._("Save the products and services you sell so you can quickly add them as line items on invoices."),
|
|
153
|
-
type: "no-data"
|
|
154
|
-
})
|
|
155
|
-
})
|
|
156
|
-
}),
|
|
157
|
-
U.id && /* @__PURE__ */ w(d, {
|
|
158
|
-
id: U.id,
|
|
159
|
-
open: U.open,
|
|
160
|
-
onDeleted: k,
|
|
161
|
-
onClose: () => W((e) => ({
|
|
162
|
-
...e,
|
|
163
|
-
open: !1
|
|
164
|
-
}))
|
|
165
|
-
}),
|
|
166
|
-
P && /* @__PURE__ */ w(h, {
|
|
167
|
-
open: P,
|
|
168
|
-
handleClose: () => F(!1)
|
|
169
|
-
})
|
|
170
|
-
] }) : /* @__PURE__ */ w(s, {});
|
|
171
|
-
};
|
|
172
|
-
//#endregion
|
|
173
|
-
export { D as ProductsTable };
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import { useCurrencies as e } from "./index63.js";
|
|
2
|
-
import { Input as t } from "./index89.js";
|
|
3
|
-
import { InputGroup as n, InputGroupAddon as r, InputGroupInput as i, InputGroupTextarea as a } from "./index102.js";
|
|
4
|
-
import { Combobox as o, ComboboxCollection as s, ComboboxContent as c, ComboboxEmpty as l, ComboboxInput as u, ComboboxItem as d, ComboboxList as f } from "./index103.js";
|
|
5
|
-
import { Typography as p } from "./index62.js";
|
|
6
|
-
import { Label as m } from "./index87.js";
|
|
7
|
-
import { Field as h, FieldContent as g, FieldError as _, FieldLabel as v } from "./index88.js";
|
|
8
|
-
import { RadioGroup as y, RadioGroupItem as b } from "./index90.js";
|
|
9
|
-
import "./index173.js";
|
|
10
|
-
import { useGetMeasureUnits as x } from "./index350.js";
|
|
11
|
-
import "./index357.js";
|
|
12
|
-
import "./index363.js";
|
|
13
|
-
import { useCallback as S, useMemo as C, useRef as w } from "react";
|
|
14
|
-
import { twMerge as T } from "tailwind-merge";
|
|
15
|
-
import { jsx as E, jsxs as D } from "@emotion/react/jsx-runtime";
|
|
16
|
-
import { useLingui as O } from "@lingui/react";
|
|
17
|
-
import { Controller as k, useFormContext as A } from "react-hook-form";
|
|
18
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js
|
|
19
|
-
var j = ({ isLoading: j, isEditMode: M, isProduct: N }) => {
|
|
20
|
-
let { i18n: P } = O(), { getSymbolFromCurrency: F } = e(), I = w(null), { data: L } = x(), R = L?.data ?? [], { control: z, formState: { errors: B } } = A(), V = C(() => R.map((e) => e.id), [R]), H = C(() => new Map(R.map((e) => [e.id, e.name])), [R]), U = S((e) => H.get(e) ?? e, [H]);
|
|
21
|
-
return /* @__PURE__ */ D("div", {
|
|
22
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
23
|
-
children: [
|
|
24
|
-
M && /* @__PURE__ */ E("div", {
|
|
25
|
-
className: "ttw:flex ttw:items-center ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
|
|
26
|
-
children: /* @__PURE__ */ E(p, {
|
|
27
|
-
variant: "body1",
|
|
28
|
-
className: "ttw:font-medium",
|
|
29
|
-
children: P._("Editing {type} details", { type: N ? "product" : "service" })
|
|
30
|
-
})
|
|
31
|
-
}),
|
|
32
|
-
/* @__PURE__ */ E(k, {
|
|
33
|
-
name: "type",
|
|
34
|
-
control: z,
|
|
35
|
-
render: ({ field: e }) => /* @__PURE__ */ D("div", {
|
|
36
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
37
|
-
children: [/* @__PURE__ */ E(v, { children: P._("Type") }), /* @__PURE__ */ D(y, {
|
|
38
|
-
className: "ttw:flex",
|
|
39
|
-
value: e.value,
|
|
40
|
-
disabled: j,
|
|
41
|
-
onValueChange: e.onChange,
|
|
42
|
-
children: [/* @__PURE__ */ D("div", {
|
|
43
|
-
className: T("ttw:flex ttw:p-4 ttw:flex-1 ttw:gap-2 ttw:border ttw:rounded-xl ttw:border-border ttw:hover:bg-primary/10 ttw:hover:border-primary/30", e.value === "product" && "ttw:bg-primary/10 ttw:border-primary/30"),
|
|
44
|
-
children: [/* @__PURE__ */ E(b, {
|
|
45
|
-
value: "product",
|
|
46
|
-
id: "type-product",
|
|
47
|
-
className: T(e.value === "product" ? "ttw:bg-primary" : "ttw:bg-white"),
|
|
48
|
-
dotClassName: T(e.value === "product" && "ttw:fill-white"),
|
|
49
|
-
disabled: j
|
|
50
|
-
}), /* @__PURE__ */ D(m, {
|
|
51
|
-
htmlFor: "type-product",
|
|
52
|
-
className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5",
|
|
53
|
-
children: [/* @__PURE__ */ E(p, {
|
|
54
|
-
variant: "body2",
|
|
55
|
-
className: "ttw:leading-3.5",
|
|
56
|
-
children: P._("Product")
|
|
57
|
-
}), /* @__PURE__ */ E(p, {
|
|
58
|
-
variant: "caption",
|
|
59
|
-
color: "muted",
|
|
60
|
-
children: P._("A physical or digital item")
|
|
61
|
-
})]
|
|
62
|
-
})]
|
|
63
|
-
}), /* @__PURE__ */ D("div", {
|
|
64
|
-
className: T("ttw:flex ttw:p-4 ttw:flex-1 ttw:gap-2 ttw:border ttw:rounded-xl ttw:border-border ttw:hover:bg-primary/10 ttw:hover:border-primary/30", e.value === "service" && "ttw:bg-primary/10 ttw:border-primary/30"),
|
|
65
|
-
children: [/* @__PURE__ */ E(b, {
|
|
66
|
-
value: "service",
|
|
67
|
-
id: "type-service",
|
|
68
|
-
className: T(e.value === "service" ? "ttw:bg-primary" : "ttw:bg-white"),
|
|
69
|
-
dotClassName: T(e.value === "service" && "ttw:fill-white"),
|
|
70
|
-
disabled: j
|
|
71
|
-
}), /* @__PURE__ */ D(m, {
|
|
72
|
-
htmlFor: "type-service",
|
|
73
|
-
className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5",
|
|
74
|
-
children: [/* @__PURE__ */ E(p, {
|
|
75
|
-
variant: "body2",
|
|
76
|
-
className: "ttw:leading-3.5",
|
|
77
|
-
children: P._("Service")
|
|
78
|
-
}), /* @__PURE__ */ E(p, {
|
|
79
|
-
variant: "caption",
|
|
80
|
-
color: "muted",
|
|
81
|
-
children: P._("Work or labor you provide")
|
|
82
|
-
})]
|
|
83
|
-
})]
|
|
84
|
-
})]
|
|
85
|
-
})]
|
|
86
|
-
})
|
|
87
|
-
}),
|
|
88
|
-
/* @__PURE__ */ E(k, {
|
|
89
|
-
name: "name",
|
|
90
|
-
control: z,
|
|
91
|
-
render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ E(h, { children: /* @__PURE__ */ D(g, { children: [
|
|
92
|
-
/* @__PURE__ */ E(v, {
|
|
93
|
-
htmlFor: e.name,
|
|
94
|
-
children: P._("Name")
|
|
95
|
-
}),
|
|
96
|
-
/* @__PURE__ */ E(t, {
|
|
97
|
-
...e,
|
|
98
|
-
id: e.name,
|
|
99
|
-
placeholder: P._("e.g. House blend espresso beans"),
|
|
100
|
-
className: M ? "ttw:bg-white" : "",
|
|
101
|
-
disabled: j,
|
|
102
|
-
"aria-invalid": !!n || void 0
|
|
103
|
-
}),
|
|
104
|
-
/* @__PURE__ */ E(_, { errors: [n] })
|
|
105
|
-
] }) })
|
|
106
|
-
}),
|
|
107
|
-
/* @__PURE__ */ D("div", {
|
|
108
|
-
className: "ttw:w-1/2 ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
109
|
-
children: [
|
|
110
|
-
/* @__PURE__ */ E(v, { children: P._("Price per unit") }),
|
|
111
|
-
/* @__PURE__ */ D("div", {
|
|
112
|
-
className: T("ttw:flex ttw:overflow-hidden ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:transition-[color,box-shadow]", "ttw:focus-within:border-ring ttw:focus-within:ring-[3px] ttw:focus-within:ring-ring/50", "ttw:has-[[data-slot][aria-invalid=true]]:border-destructive ttw:has-[[data-slot][aria-invalid=true]]:ring-[3px] ttw:has-[[data-slot][aria-invalid=true]]:ring-destructive/20", M && "ttw:bg-white"),
|
|
113
|
-
ref: I,
|
|
114
|
-
children: [
|
|
115
|
-
/* @__PURE__ */ E(k, {
|
|
116
|
-
name: "pricePerUnit",
|
|
117
|
-
control: z,
|
|
118
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ D(n, {
|
|
119
|
-
className: "ttw:flex-1 ttw:border-0 ttw:shadow-none ttw:rounded-none ttw:has-[[data-slot=input-group-control]:focus-visible]:border-transparent ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-0",
|
|
120
|
-
children: [/* @__PURE__ */ E(r, {
|
|
121
|
-
align: "inline-start",
|
|
122
|
-
children: F("USD")
|
|
123
|
-
}), /* @__PURE__ */ E(i, {
|
|
124
|
-
type: "number",
|
|
125
|
-
name: e.name,
|
|
126
|
-
ref: e.ref,
|
|
127
|
-
value: e.value ?? "",
|
|
128
|
-
onChange: (t) => e.onChange(t.target.value === "" ? void 0 : Number(t.target.value)),
|
|
129
|
-
className: "ttw:text-end",
|
|
130
|
-
onBlur: e.onBlur,
|
|
131
|
-
placeholder: "0.00",
|
|
132
|
-
"aria-invalid": !!t || void 0,
|
|
133
|
-
disabled: j
|
|
134
|
-
})]
|
|
135
|
-
})
|
|
136
|
-
}),
|
|
137
|
-
/* @__PURE__ */ E("div", { className: "ttw:w-px ttw:shrink-0 ttw:bg-border" }),
|
|
138
|
-
/* @__PURE__ */ E(k, {
|
|
139
|
-
name: "measureUnitId",
|
|
140
|
-
control: z,
|
|
141
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ D(o, {
|
|
142
|
-
value: e.value ?? null,
|
|
143
|
-
onValueChange: (t) => e.onChange(t ?? void 0),
|
|
144
|
-
items: V,
|
|
145
|
-
itemToStringLabel: U,
|
|
146
|
-
disabled: j,
|
|
147
|
-
children: [/* @__PURE__ */ E(u, {
|
|
148
|
-
showClear: !!e.value,
|
|
149
|
-
placeholder: "-",
|
|
150
|
-
disabled: j,
|
|
151
|
-
"aria-invalid": !!t || void 0,
|
|
152
|
-
className: "ttw:w-28 ttw:border-0 ttw:shadow-none ttw:rounded-none ttw:has-[[data-slot=input-group-control]:focus-visible]:border-transparent ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-0"
|
|
153
|
-
}), /* @__PURE__ */ E(c, {
|
|
154
|
-
container: I.current,
|
|
155
|
-
children: /* @__PURE__ */ D(f, { children: [/* @__PURE__ */ E(l, { children: P._("No units found") }), /* @__PURE__ */ E(s, { children: (e) => /* @__PURE__ */ E(d, {
|
|
156
|
-
value: e,
|
|
157
|
-
children: U(e)
|
|
158
|
-
}, e) })] })
|
|
159
|
-
})]
|
|
160
|
-
})
|
|
161
|
-
})
|
|
162
|
-
]
|
|
163
|
-
}),
|
|
164
|
-
/* @__PURE__ */ E(_, { errors: [B.pricePerUnit, B.measureUnitId] })
|
|
165
|
-
]
|
|
166
|
-
}),
|
|
167
|
-
/* @__PURE__ */ E(k, {
|
|
168
|
-
name: "description",
|
|
169
|
-
control: z,
|
|
170
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ E(h, {
|
|
171
|
-
className: "ttw:block",
|
|
172
|
-
children: /* @__PURE__ */ D(g, { children: [
|
|
173
|
-
/* @__PURE__ */ D(v, {
|
|
174
|
-
htmlFor: e.name,
|
|
175
|
-
className: "ttw:gap-1",
|
|
176
|
-
children: [P._("Description"), /* @__PURE__ */ E(p, {
|
|
177
|
-
variant: "body2",
|
|
178
|
-
color: "muted",
|
|
179
|
-
className: "ttw:leading-snug",
|
|
180
|
-
children: P._("(optional)")
|
|
181
|
-
})]
|
|
182
|
-
}),
|
|
183
|
-
/* @__PURE__ */ D(n, {
|
|
184
|
-
className: T(M && "ttw:bg-white"),
|
|
185
|
-
children: [/* @__PURE__ */ E(a, {
|
|
186
|
-
...e,
|
|
187
|
-
id: e.name,
|
|
188
|
-
placeholder: P._("e.g. 16oz whole bean, medium-dark roast, ground to order"),
|
|
189
|
-
rows: 4,
|
|
190
|
-
maxLength: 255,
|
|
191
|
-
disabled: j,
|
|
192
|
-
"aria-invalid": !!t || void 0
|
|
193
|
-
}), /* @__PURE__ */ E(r, {
|
|
194
|
-
align: "block-end",
|
|
195
|
-
className: "ttw:cursor-default",
|
|
196
|
-
children: /* @__PURE__ */ E(p, {
|
|
197
|
-
variant: "caption",
|
|
198
|
-
color: "muted",
|
|
199
|
-
className: "ttw:leading-none",
|
|
200
|
-
children: P._("{count}/255 characters", { count: (e.value ?? "").length })
|
|
201
|
-
})
|
|
202
|
-
})]
|
|
203
|
-
}),
|
|
204
|
-
/* @__PURE__ */ E(_, { errors: [t] })
|
|
205
|
-
] })
|
|
206
|
-
})
|
|
207
|
-
})
|
|
208
|
-
]
|
|
209
|
-
});
|
|
210
|
-
};
|
|
211
|
-
//#endregion
|
|
212
|
-
export { j as ProductFormContent };
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { applyAPIValidationErrors as e, parseAPIValidationErrors as t } from "./index25.js";
|
|
2
|
-
import { useCurrencies as n } from "./index63.js";
|
|
3
|
-
import { Button as r } from "./index56.js";
|
|
4
|
-
import { LoadingSpinner as i } from "./index51.js";
|
|
5
|
-
import "./index52.js";
|
|
6
|
-
import "./index173.js";
|
|
7
|
-
import { useUpdateProduct as a } from "./index356.js";
|
|
8
|
-
import { PRODUCT_API_FIELD_MAP as o } from "./index360.js";
|
|
9
|
-
import { getProductValidationSchema as s } from "./index363.js";
|
|
10
|
-
import { ProductFormContent as c } from "./index371.js";
|
|
11
|
-
import { useCallback as l, useId as u, useMemo as d } from "react";
|
|
12
|
-
import { jsx as f, jsxs as p } from "@emotion/react/jsx-runtime";
|
|
13
|
-
import { useLingui as m } from "@lingui/react";
|
|
14
|
-
import { FormProvider as h, useForm as g } from "react-hook-form";
|
|
15
|
-
import { zodResolver as _ } from "@hookform/resolvers/zod";
|
|
16
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js
|
|
17
|
-
var v = ({ product: v, handleClose: y, onUpdate: b }) => {
|
|
18
|
-
let { i18n: x } = m(), { formatToMinorUnits: S, formatFromMinorUnits: C } = n(), w = `product-edit-form-${u()}`, { mutate: T, isPending: E } = a(v.id), D = d(() => ({
|
|
19
|
-
name: v.name,
|
|
20
|
-
type: v.type ?? "product",
|
|
21
|
-
pricePerUnit: C(v.price?.value, v.price?.currency) ?? void 0,
|
|
22
|
-
currency: v.price?.currency ?? "USD",
|
|
23
|
-
description: v.description ?? "",
|
|
24
|
-
measureUnitId: v.measure_unit_id ?? void 0
|
|
25
|
-
}), [
|
|
26
|
-
v.name,
|
|
27
|
-
v.type,
|
|
28
|
-
v.price?.value,
|
|
29
|
-
v.price?.currency,
|
|
30
|
-
v.description,
|
|
31
|
-
v.measure_unit_id,
|
|
32
|
-
C
|
|
33
|
-
]), O = g({
|
|
34
|
-
resolver: _(s(x)),
|
|
35
|
-
defaultValues: D
|
|
36
|
-
}), k = l((n) => {
|
|
37
|
-
n.preventDefault(), n.stopPropagation(), O.handleSubmit((n) => {
|
|
38
|
-
T({
|
|
39
|
-
name: n.name,
|
|
40
|
-
type: n.type,
|
|
41
|
-
price: {
|
|
42
|
-
value: S(n.pricePerUnit, n.currency) ?? n.pricePerUnit,
|
|
43
|
-
currency: n.currency
|
|
44
|
-
},
|
|
45
|
-
description: n.description,
|
|
46
|
-
...n.measureUnitId ? { measure_unit_id: n.measureUnitId } : {}
|
|
47
|
-
}, {
|
|
48
|
-
onSuccess: (e) => {
|
|
49
|
-
b?.(e);
|
|
50
|
-
},
|
|
51
|
-
onError: (n) => {
|
|
52
|
-
e(O.setError, t(n), { fieldMap: o });
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
})(n);
|
|
56
|
-
}, [
|
|
57
|
-
T,
|
|
58
|
-
S,
|
|
59
|
-
b,
|
|
60
|
-
O.handleSubmit,
|
|
61
|
-
O.setError
|
|
62
|
-
]);
|
|
63
|
-
return /* @__PURE__ */ f(h, {
|
|
64
|
-
...O,
|
|
65
|
-
children: /* @__PURE__ */ p("form", {
|
|
66
|
-
id: w,
|
|
67
|
-
onSubmit: k,
|
|
68
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:border ttw:border-primary ttw:rounded-[10px] ttw:bg-zinc-100",
|
|
69
|
-
children: [/* @__PURE__ */ f(c, {
|
|
70
|
-
isLoading: E,
|
|
71
|
-
isProduct: v?.type === "product",
|
|
72
|
-
isEditMode: !0
|
|
73
|
-
}), /* @__PURE__ */ p("div", {
|
|
74
|
-
className: "ttw:flex ttw:gap-4 ttw:pt-6",
|
|
75
|
-
children: [/* @__PURE__ */ f(r, {
|
|
76
|
-
type: "button",
|
|
77
|
-
variant: "outline",
|
|
78
|
-
className: "ttw:border-border ttw:flex-1",
|
|
79
|
-
onClick: y,
|
|
80
|
-
children: x._("Cancel")
|
|
81
|
-
}), /* @__PURE__ */ p(r, {
|
|
82
|
-
type: "submit",
|
|
83
|
-
className: "ttw:flex-1",
|
|
84
|
-
disabled: E || !O.formState.isDirty,
|
|
85
|
-
children: [E && /* @__PURE__ */ f(i, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }), x._("Save")]
|
|
86
|
-
})]
|
|
87
|
-
})]
|
|
88
|
-
})
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
//#endregion
|
|
92
|
-
export { v as ProductEditForm };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Typography as e } from "./index62.js";
|
|
2
|
-
import { twMerge as t } from "tailwind-merge";
|
|
3
|
-
import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js
|
|
5
|
-
var i = ({ label: i, value: a, isLast: o }) => /* @__PURE__ */ r("li", {
|
|
6
|
-
className: t("ttw:flex ttw:gap-4 ttw:py-2.5", !o && "ttw:border-b ttw:border-border"),
|
|
7
|
-
children: [/* @__PURE__ */ n(e, {
|
|
8
|
-
variant: "body2",
|
|
9
|
-
color: "muted",
|
|
10
|
-
className: "ttw:w-35 ttw:min-w-35 ttw:font-medium",
|
|
11
|
-
children: i
|
|
12
|
-
}), typeof a == "string" ? /* @__PURE__ */ n(e, {
|
|
13
|
-
variant: "body2",
|
|
14
|
-
className: "ttw:font-medium",
|
|
15
|
-
children: a
|
|
16
|
-
}) : a]
|
|
17
|
-
});
|
|
18
|
-
//#endregion
|
|
19
|
-
export { i as ProductDetailLine };
|