@tesouro/embedded-components-react 0.7.51 → 0.7.52

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.
Files changed (306) hide show
  1. package/dist/index.css +0 -25
  2. package/dist/lib/monite-sdk.d.ts +2 -37
  3. package/dist/lib/monite-sdk.js +56 -59
  4. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +60 -63
  5. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +36 -55
  6. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +1 -12
  7. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +102 -35
  8. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +51 -101
  9. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +25 -26
  10. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +26 -26
  11. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +150 -52
  12. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +55 -1
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +2 -153
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +3 -55
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +1 -2
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -2
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +10 -1
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +56 -2
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +38 -7
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +67 -49
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +38 -38
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +11 -71
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +9 -37
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +65 -8
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +167 -8
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +6 -70
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -172
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +76 -7
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +0 -1
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +75 -72
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +32 -76
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +56 -33
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +44 -1
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +0 -57
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +564 -39
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +1 -569
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +159 -0
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +1 -1
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +22 -155
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +10 -25
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -1
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +16 -10
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +19 -10
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +27 -16
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +1 -21
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +23 -26
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +19 -1
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +68 -23
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +23 -15
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +6 -69
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +39 -23
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +48 -5
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +58 -39
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +1 -51
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +27 -58
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +43 -1
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +78 -29
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +4 -43
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +2 -80
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +52 -4
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +81 -2
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +119 -46
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +4 -78
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +10 -123
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +10 -5
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +18 -10
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +75 -10
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +1 -20
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +122 -70
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +11 -127
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +56 -1
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +5 -13
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +16 -53
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +0 -4
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +62 -18
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +122 -1
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +21 -62
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +6 -120
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +35 -21
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +7 -6
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +54 -33
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +72 -7
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +25 -55
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +1 -74
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +58 -25
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +21 -1
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +19 -58
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +181 -17
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +1 -22
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +27 -180
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +2 -0
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +61 -29
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +34 -3
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +9 -61
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index20.js +0 -6
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +29 -29
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +42 -7
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +11 -31
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +17 -44
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +3 -9
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +8 -16
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +10 -5
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +17 -9
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +9 -6
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +6 -10
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index21.js +1 -1
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +2 -2
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +8 -6
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +34 -8
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +3 -3
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +8 -32
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +3 -3
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +4 -4
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +19 -18
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +5 -16
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +111 -5
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +66 -20
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +1 -7
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +196 -110
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +1 -66
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +8 -1
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +9 -198
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +40 -1
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +4 -4
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +8 -7
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +17 -38
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +7 -6
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +5 -10
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +358 -16
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +1 -9
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +20 -5
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +85 -351
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +22 -1
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +16 -18
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +2 -93
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +179 -17
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +95 -13
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +1 -4
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +15 -181
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +36 -97
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +53 -16
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +43 -38
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +1 -55
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +36 -43
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +21 -1
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +0 -38
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +161 -0
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +0 -20
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +12 -1
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +56 -155
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +93 -1
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +45 -10
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +49 -61
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +82 -90
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +7 -45
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +304 -48
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +1 -85
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +30 -7
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +1 -307
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +29 -1
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +1 -32
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +22 -1
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +1 -29
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +159 -0
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +1 -22
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +37 -1
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +33 -157
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +6 -1
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +101 -33
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +185 -32
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +132 -4
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +196 -90
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +11 -187
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +15 -132
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +29 -209
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +1 -13
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +239 -14
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +1 -31
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +36 -1
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +137 -237
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +164 -33
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +25 -142
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +19 -1
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +15 -162
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +8 -26
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +15 -16
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +13 -9
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +21 -5
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +4 -14
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +11 -18
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +8 -12
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +9 -8
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +0 -4
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +23 -13
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +11 -16
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +11 -9
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +23 -23
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +14 -13
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +81 -9
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +14 -25
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +100 -14
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +42 -79
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +28 -14
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -102
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +101 -41
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +33 -24
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +173 -1
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +11 -103
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +4 -39
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +67 -170
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +21 -8
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +212 -4
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +89 -67
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +17 -25
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +147 -199
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +88 -76
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +44 -17
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +4 -160
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +20 -100
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +74 -43
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +19 -4
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +12 -14
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +5 -74
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +9 -16
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +11 -20
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +129 -4
  228. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +4 -8
  229. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +6 -11
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +5 -133
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +219 -5
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +31 -5
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +14 -5
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +33 -219
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +19 -31
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +72 -10
  237. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +180 -32
  238. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +14 -20
  239. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +202 -72
  240. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +87 -169
  241. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +64 -14
  242. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +52 -201
  243. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +84 -92
  244. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +34 -57
  245. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +74 -52
  246. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +80 -87
  247. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +12 -41
  248. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +23 -76
  249. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +17 -87
  250. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +5 -14
  251. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +22 -24
  252. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +0 -16
  253. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +43 -3
  254. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +29 -21
  255. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +4 -1
  256. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +36 -46
  257. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +15 -29
  258. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +31 -2
  259. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +29 -34
  260. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +2 -18
  261. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +93 -29
  262. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +8 -38
  263. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +13 -8
  264. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +6 -6
  265. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +9 -15
  266. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +1 -8
  267. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +3 -6
  268. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +8 -1
  269. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +1 -6
  270. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +19 -6
  271. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +32 -1
  272. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +7 -16
  273. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +69 -29
  274. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +51 -9
  275. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +1 -72
  276. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +46 -51
  277. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +13 -1
  278. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +15 -46
  279. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +1 -13
  280. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +45 -15
  281. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +40 -1
  282. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +63 -45
  283. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +33 -37
  284. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +36 -60
  285. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +19 -31
  286. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +12 -40
  287. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +24 -21
  288. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +53 -11
  289. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +12 -27
  290. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +23 -53
  291. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +73 -11
  292. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +79 -23
  293. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +1 -74
  294. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +8 -80
  295. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +29 -1
  296. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +2 -8
  297. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +16 -26
  298. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +3 -2
  299. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +2 -19
  300. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +56 -3
  301. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +12 -2
  302. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  303. package/package.json +1 -1
  304. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +0 -31
  305. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +0 -2
  306. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +0 -97
@@ -1,102 +1 @@
1
- import { Button as e } from "./index122.js";
2
- import { Input as t } from "./index123.js";
3
- import { TableCell as n, TableRow as r } from "./index166.js";
4
- import { useCreateMeasureUnit as i } from "./index297.js";
5
- import { useUpdateMeasureUnit as a } from "./index298.js";
6
- import { getMeasureUnitValidationSchema as o } from "./index309.js";
7
- import { Check as s, X as c } from "lucide-react";
8
- import { jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
9
- import { useLingui as d } from "@lingui/react";
10
- import { Controller as f, useForm as p } from "react-hook-form";
11
- import { zodResolver as m } from "@hookform/resolvers/zod";
12
- //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js
13
- var h = {
14
- name: "",
15
- description: ""
16
- }, g = ({ id: g, isEditMode: _, initialValues: v = h, onCancel: y, onEdit: b }) => {
17
- let { i18n: x } = d(), S = o(x), { handleSubmit: C, control: w, reset: T, setError: E } = p({
18
- defaultValues: v,
19
- resolver: m(S)
20
- }), D = i(() => T(), (e) => E("name", {
21
- type: "custom",
22
- message: e
23
- })), O = a(g ?? "", () => b?.(), (e) => E("name", {
24
- type: "custom",
25
- message: e
26
- })), k = (e) => {
27
- if (!_ || !g) {
28
- console.error("handleEdit called without valid id or edit mode");
29
- return;
30
- }
31
- O.mutate(e);
32
- }, A = (e) => {
33
- D.mutate(e);
34
- }, j = D.isPending || O.isPending;
35
- return /* @__PURE__ */ l(r, {
36
- className: "ttw:border-border ttw:hover:bg-transparent",
37
- children: /* @__PURE__ */ l(n, {
38
- colSpan: 3,
39
- className: "ttw:w-full ttw:whitespace-normal",
40
- children: /* @__PURE__ */ u("div", {
41
- className: "ttw:flex ttw:gap-2 ttw:justify-between ttw:items-start",
42
- children: [
43
- /* @__PURE__ */ l(f, {
44
- name: "name",
45
- control: w,
46
- render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ u("div", {
47
- className: "ttw:w-[35%]",
48
- children: [/* @__PURE__ */ l(t, {
49
- ...e,
50
- disabled: j,
51
- "aria-invalid": !!n || void 0,
52
- className: "ttw:h-8"
53
- }), n && /* @__PURE__ */ l("p", {
54
- className: "ttw:text-xs ttw:text-destructive ttw:mt-1",
55
- children: n.message
56
- })]
57
- })
58
- }),
59
- /* @__PURE__ */ l(f, {
60
- name: "description",
61
- control: w,
62
- render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ l("div", {
63
- className: "ttw:w-[55%]",
64
- children: /* @__PURE__ */ l(t, {
65
- ...e,
66
- id: e.name,
67
- disabled: j,
68
- "aria-invalid": !!n || void 0,
69
- className: "ttw:h-8"
70
- })
71
- })
72
- }),
73
- _ ? /* @__PURE__ */ u("div", {
74
- className: "ttw:flex ttw:justify-center ttw:gap-1",
75
- children: [/* @__PURE__ */ l(e, {
76
- variant: "outline",
77
- size: "icon",
78
- className: "ttw:size-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0",
79
- disabled: O.isPending,
80
- onClick: C(k),
81
- children: /* @__PURE__ */ l(s, { className: "ttw:size-4" })
82
- }), /* @__PURE__ */ l(e, {
83
- variant: "outline",
84
- size: "icon",
85
- className: "ttw:size-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0",
86
- onClick: y,
87
- children: /* @__PURE__ */ l(c, { className: "ttw:size-4" })
88
- })]
89
- }) : /* @__PURE__ */ l(e, {
90
- variant: "outline",
91
- size: "sm",
92
- className: "ttw:h-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0",
93
- onClick: C(A),
94
- children: x._("Add")
95
- })
96
- ]
97
- })
98
- })
99
- });
100
- };
101
- //#endregion
102
- export { g as MeasureUnitsFormRow };
1
+ import "./index309.js";
@@ -1,46 +1,106 @@
1
- import { useCurrencies as e } from "./index76.js";
2
- import "./index89.js";
3
- import { Typography as t } from "./index158.js";
4
- import { Table as n, TableBody as r, TableCell as i, TableRow as a } from "./index166.js";
5
- import { useGetProducts as o } from "./index230.js";
6
- import { ConfirmationModal as s } from "./index252.js";
7
- import "./index253.js";
8
- import { Loader2 as c } from "lucide-react";
9
- import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
10
- import { useLingui as f } from "@lingui/react";
1
+ import { useDebounceCallback as e } from "./index83.js";
2
+ import { InputGroup as t, InputGroupAddon as n, InputGroupInput as r } from "./index123.js";
3
+ import { Table as i, TableBody as a, TableCell as o, TableHead as s, TableHeader as c, TableRow as l } from "./index164.js";
4
+ import { useGetMeasureUnits as u } from "./index292.js";
5
+ import { useDeleteMeasureUnit as d } from "./index293.js";
6
+ import "./index299.js";
7
+ import { MeasureUnitsFormRow as f } from "./index307.js";
8
+ import { ConfirmDeleteMeasureUnitDialog as p } from "./index308.js";
9
+ import { TableActions as m } from "./index309.js";
10
+ import "./index310.js";
11
+ import { useCallback as h, useState as g } from "react";
12
+ import { Loader2 as _, Search as v } from "lucide-react";
13
+ import { Fragment as y, jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
14
+ import { useLingui as S } from "@lingui/react";
11
15
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js
12
- var p = ({ onClose: p, onDelete: m, name: h, isLoading: g, open: _, id: v }) => {
13
- let { i18n: y } = f(), { formatCurrencyToDisplay: b } = e(), { data: x, isLoading: S } = o({ measure_unit_id: v ?? "" }, !!v), C = x?.data.length === 0;
14
- return /* @__PURE__ */ u(s, {
15
- open: _,
16
- title: y._("Delete \"{name}\"?", { name: h }),
17
- confirmLabel: y._("Delete"),
18
- cancelLabel: y._("Cancel"),
19
- onClose: p,
20
- onConfirm: m,
21
- isLoading: g || S,
22
- children: C ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(t, { children: y._("There are no items created with this measure unit.") }), /* @__PURE__ */ u(t, {
23
- color: "muted",
24
- children: y._("Deleting it won't affect your items.")
25
- })] }) : /* @__PURE__ */ d(l, { children: [
26
- /* @__PURE__ */ u(t, { children: y._("Any products or services referencing this unit will update to use a blank unit of measure.") }),
27
- /* @__PURE__ */ u(t, {
28
- color: "muted",
29
- children: y._("Previously issued invoices will not be impacted.")
16
+ var C = () => {
17
+ let { i18n: C } = S(), [w, T] = g(null), [E, D] = g(null), O = !!E, [k, A] = g(""), { data: j, isLoading: M } = u(), N = d(E?.name), P = e((e) => {
18
+ A(e);
19
+ }, 500), F = j?.data?.filter((e) => e.name.toLowerCase().includes(k.toLowerCase()) || e.description && e.description.toLowerCase().includes(k.toLowerCase())) || [], I = h((e) => {
20
+ D(e);
21
+ }, []), L = h(() => {
22
+ D(null);
23
+ }, []), R = h(() => {
24
+ E && N.mutate({ path: { unit_id: E.id } }, { onSuccess: () => L() });
25
+ }, [
26
+ N,
27
+ E,
28
+ L
29
+ ]), z = N.isPending, B = () => {
30
+ T(null);
31
+ };
32
+ return /* @__PURE__ */ x("div", {
33
+ className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:h-full ttw:relative",
34
+ children: [M ? /* @__PURE__ */ b("div", {
35
+ className: "ttw:flex ttw:justify-center ttw:items-center ttw:h-full",
36
+ children: /* @__PURE__ */ b(_, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" })
37
+ }) : /* @__PURE__ */ x(y, { children: [
38
+ z && /* @__PURE__ */ b("div", {
39
+ className: "ttw:absolute ttw:inset-0 ttw:bg-white/70 ttw:flex ttw:justify-center ttw:items-center ttw:z-10",
40
+ children: /* @__PURE__ */ b(_, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" })
30
41
  }),
31
- S && /* @__PURE__ */ u(c, { className: "ttw:mx-auto ttw:size-6 ttw:animate-spin" }),
32
- !S && /* @__PURE__ */ u(n, { children: /* @__PURE__ */ u(r, { children: x?.data.map((e) => /* @__PURE__ */ d(a, {
33
- className: "ttw:border-border ttw:hover:bg-transparent",
34
- children: [/* @__PURE__ */ u(i, {
35
- className: "ttw:pl-0 ttw:whitespace-normal ttw:text-text ttw:font-medium",
36
- children: e.name
37
- }), /* @__PURE__ */ u(i, {
38
- className: "ttw:pr-0 ttw:text-right ttw:text-text ttw:font-medium",
39
- children: e.price && b(e.price?.value, e.price?.currency)
40
- })]
41
- }, e.id)) }) })
42
- ] })
42
+ /* @__PURE__ */ x(t, { children: [/* @__PURE__ */ b(n, {
43
+ align: "inline-start",
44
+ children: /* @__PURE__ */ b(v, {})
45
+ }), /* @__PURE__ */ b(r, {
46
+ placeholder: C._("Search"),
47
+ onChange: (e) => P(e.target.value)
48
+ })] }),
49
+ /* @__PURE__ */ x(i, {
50
+ className: "ttw:table-fixed ttw:border ttw:border-border ttw:rounded-md",
51
+ children: [/* @__PURE__ */ b(c, { children: /* @__PURE__ */ x(l, {
52
+ className: "ttw:hover:bg-transparent ttw:border-border",
53
+ children: [
54
+ /* @__PURE__ */ b(s, {
55
+ className: "ttw:w-[35%]",
56
+ children: C._("Unit label")
57
+ }),
58
+ /* @__PURE__ */ b(s, {
59
+ className: "ttw:w-[55%]",
60
+ children: C._("Description (optional)")
61
+ }),
62
+ /* @__PURE__ */ b(s, { className: "ttw:w-[10%]" })
63
+ ]
64
+ }) }), /* @__PURE__ */ x(a, { children: [/* @__PURE__ */ b(f, { isEditMode: !1 }), F.map((e) => w?.id === e.id ? /* @__PURE__ */ b(f, {
65
+ isEditMode: !0,
66
+ initialValues: e,
67
+ onCancel: B,
68
+ onEdit: () => T(null),
69
+ id: e.id
70
+ }, e.id) : /* @__PURE__ */ x(l, {
71
+ className: "ttw:border-border",
72
+ children: [
73
+ /* @__PURE__ */ b(o, {
74
+ className: "ttw:w-[35%] ttw:text-sm ttw:truncate",
75
+ children: e.name
76
+ }),
77
+ /* @__PURE__ */ b(o, {
78
+ className: "ttw:w-[55%] ttw:text-sm ttw:text-muted-foreground ttw:truncate",
79
+ children: e.description || "—"
80
+ }),
81
+ /* @__PURE__ */ b(o, {
82
+ className: "ttw:w-[10%]",
83
+ children: /* @__PURE__ */ b(m, {
84
+ permissions: {
85
+ isUpdateAllowed: !0,
86
+ isDeleteAllowed: !0
87
+ },
88
+ onEdit: () => T(e),
89
+ onDelete: () => I(e)
90
+ })
91
+ })
92
+ ]
93
+ }, e.id))] })]
94
+ })
95
+ ] }), /* @__PURE__ */ b(p, {
96
+ open: O,
97
+ id: E?.id,
98
+ name: E?.name || "",
99
+ isLoading: z,
100
+ onClose: L,
101
+ onDelete: R
102
+ })]
43
103
  });
44
104
  };
45
105
  //#endregion
46
- export { p as ConfirmDeleteMeasureUnitDialog };
106
+ export { C as ManageMeasureUnitsForm };
@@ -1,30 +1,39 @@
1
- import { Button as e } from "./index122.js";
2
- import { DropdownMenu as t, DropdownMenuContent as n, DropdownMenuItem as r, DropdownMenuTrigger as i } from "./index157.js";
3
- import { MoreVertical as a, Pencil as o, Trash2 as s } from "lucide-react";
1
+ import { Button as e } from "./index120.js";
2
+ import { Sheet as t, SheetContent as n, SheetDescription as r, SheetFooter as i, SheetHeader as a, SheetTitle as o } from "./index305.js";
3
+ import { ManageMeasureUnitsForm as s } from "./index311.js";
4
4
  import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
5
5
  import { useLingui as u } from "@lingui/react";
6
6
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js
7
- var d = ({ onEdit: d, onDelete: f, permissions: p }) => {
8
- let { i18n: m } = u();
9
- return p.isUpdateAllowed || p.isDeleteAllowed ? /* @__PURE__ */ l(t, { children: [/* @__PURE__ */ c(i, {
10
- asChild: !0,
11
- children: /* @__PURE__ */ c(e, {
12
- variant: "ghost",
13
- size: "icon",
14
- "aria-label": "actions-menu-button",
15
- children: /* @__PURE__ */ c(a, {})
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
+ ]
16
35
  })
17
- }), /* @__PURE__ */ l(n, {
18
- align: "end",
19
- children: [p.isUpdateAllowed && /* @__PURE__ */ l(r, {
20
- onClick: d,
21
- children: [/* @__PURE__ */ c(o, {}), m._("Edit")]
22
- }), p.isDeleteAllowed && /* @__PURE__ */ l(r, {
23
- onClick: f,
24
- variant: "destructive",
25
- children: [/* @__PURE__ */ c(s, {}), m._("Delete")]
26
- })]
27
- })] }) : null;
36
+ });
28
37
  };
29
38
  //#endregion
30
- export { d as TableActions };
39
+ export { d as ManageMeasureUnits };
@@ -1 +1,173 @@
1
- import "./index312.js";
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 "./index74.js";
5
+ import "./index87.js";
6
+ import { Button as r } from "./index120.js";
7
+ import { MoniteScopedProviders as i } from "./index153.js";
8
+ import { useUserPermissions as a } from "./index154.js";
9
+ import { GetNoRowsOverlay as o } from "./index159.js";
10
+ import { AccessRestriction as s } from "./index160.js";
11
+ import "./index163.js";
12
+ import { DataTable as c } from "./index166.js";
13
+ import { hasSelectedText as l } from "./index167.js";
14
+ import { useGetProducts as u } from "./index227.js";
15
+ import "./index299.js";
16
+ import { ProductDeleteModal as d } from "./index300.js";
17
+ import { ProductType as f } from "./index301.js";
18
+ import { FILTER_TYPE_SEARCH as p } from "./index302.js";
19
+ import { Filters as m } from "./index303.js";
20
+ import { MeasureUnit as ee } from "./index304.js";
21
+ import { ManageMeasureUnits as h } from "./index312.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/index313.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,106 +1,14 @@
1
- import { useDebounceCallback as e } from "./index85.js";
2
- import { InputGroup as t, InputGroupAddon as n, InputGroupInput as r } from "./index125.js";
3
- import { Table as i, TableBody as a, TableCell as o, TableHead as s, TableHeader as c, TableRow as l } from "./index166.js";
4
- import { useGetMeasureUnits as u } from "./index295.js";
5
- import { useDeleteMeasureUnit as d } from "./index296.js";
6
- import "./index302.js";
7
- import { MeasureUnitsFormRow as f } from "./index310.js";
8
- import { ConfirmDeleteMeasureUnitDialog as p } from "./index311.js";
9
- import { TableActions as m } from "./index312.js";
10
- import "./index313.js";
11
- import { useCallback as h, useState as g } from "react";
12
- import { Loader2 as _, Search as v } from "lucide-react";
13
- import { Fragment as y, jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
14
- import { useLingui as S } from "@lingui/react";
1
+ import { cn as e } from "./index62.js";
2
+ import "react";
3
+ import { jsx as t } from "@emotion/react/jsx-runtime";
4
+ import * as n from "@radix-ui/react-label";
15
5
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js
16
- var C = () => {
17
- let { i18n: C } = S(), [w, T] = g(null), [E, D] = g(null), O = !!E, [k, A] = g(""), { data: j, isLoading: M } = u(), N = d(E?.name), P = e((e) => {
18
- A(e);
19
- }, 500), F = j?.data?.filter((e) => e.name.toLowerCase().includes(k.toLowerCase()) || e.description && e.description.toLowerCase().includes(k.toLowerCase())) || [], I = h((e) => {
20
- D(e);
21
- }, []), L = h(() => {
22
- D(null);
23
- }, []), R = h(() => {
24
- E && N.mutate({ path: { unit_id: E.id } }, { onSuccess: () => L() });
25
- }, [
26
- N,
27
- E,
28
- L
29
- ]), z = N.isPending, B = () => {
30
- T(null);
31
- };
32
- return /* @__PURE__ */ x("div", {
33
- className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:h-full ttw:relative",
34
- children: [M ? /* @__PURE__ */ b("div", {
35
- className: "ttw:flex ttw:justify-center ttw:items-center ttw:h-full",
36
- children: /* @__PURE__ */ b(_, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" })
37
- }) : /* @__PURE__ */ x(y, { children: [
38
- z && /* @__PURE__ */ b("div", {
39
- className: "ttw:absolute ttw:inset-0 ttw:bg-white/70 ttw:flex ttw:justify-center ttw:items-center ttw:z-10",
40
- children: /* @__PURE__ */ b(_, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" })
41
- }),
42
- /* @__PURE__ */ x(t, { children: [/* @__PURE__ */ b(n, {
43
- align: "inline-start",
44
- children: /* @__PURE__ */ b(v, {})
45
- }), /* @__PURE__ */ b(r, {
46
- placeholder: C._("Search"),
47
- onChange: (e) => P(e.target.value)
48
- })] }),
49
- /* @__PURE__ */ x(i, {
50
- className: "ttw:table-fixed ttw:border ttw:border-border ttw:rounded-md",
51
- children: [/* @__PURE__ */ b(c, { children: /* @__PURE__ */ x(l, {
52
- className: "ttw:hover:bg-transparent ttw:border-border",
53
- children: [
54
- /* @__PURE__ */ b(s, {
55
- className: "ttw:w-[35%]",
56
- children: C._("Unit label")
57
- }),
58
- /* @__PURE__ */ b(s, {
59
- className: "ttw:w-[55%]",
60
- children: C._("Description (optional)")
61
- }),
62
- /* @__PURE__ */ b(s, { className: "ttw:w-[10%]" })
63
- ]
64
- }) }), /* @__PURE__ */ x(a, { children: [/* @__PURE__ */ b(f, { isEditMode: !1 }), F.map((e) => w?.id === e.id ? /* @__PURE__ */ b(f, {
65
- isEditMode: !0,
66
- initialValues: e,
67
- onCancel: B,
68
- onEdit: () => T(null),
69
- id: e.id
70
- }, e.id) : /* @__PURE__ */ x(l, {
71
- className: "ttw:border-border",
72
- children: [
73
- /* @__PURE__ */ b(o, {
74
- className: "ttw:w-[35%] ttw:text-sm ttw:truncate",
75
- children: e.name
76
- }),
77
- /* @__PURE__ */ b(o, {
78
- className: "ttw:w-[55%] ttw:text-sm ttw:text-muted-foreground ttw:truncate",
79
- children: e.description || "—"
80
- }),
81
- /* @__PURE__ */ b(o, {
82
- className: "ttw:w-[10%]",
83
- children: /* @__PURE__ */ b(m, {
84
- permissions: {
85
- isUpdateAllowed: !0,
86
- isDeleteAllowed: !0
87
- },
88
- onEdit: () => T(e),
89
- onDelete: () => I(e)
90
- })
91
- })
92
- ]
93
- }, e.id))] })]
94
- })
95
- ] }), /* @__PURE__ */ b(p, {
96
- open: O,
97
- id: E?.id,
98
- name: E?.name || "",
99
- isLoading: z,
100
- onClose: L,
101
- onDelete: R
102
- })]
6
+ function r({ className: r, ...i }) {
7
+ return /* @__PURE__ */ t(n.Root, {
8
+ "data-slot": "label",
9
+ className: e("ttw:flex ttw:items-center ttw:gap-2 ttw:text-sm ttw:leading-none ttw:font-medium ttw:select-none ttw:group-data-[disabled=true]:pointer-events-none ttw:group-data-[disabled=true]:opacity-50 ttw:peer-disabled:cursor-not-allowed ttw:peer-disabled:opacity-50", r),
10
+ ...i
103
11
  });
104
- };
12
+ }
105
13
  //#endregion
106
- export { C as ManageMeasureUnitsForm };
14
+ export { r as Label };
@@ -1,39 +1,4 @@
1
- import { Button as e } from "./index122.js";
2
- import { Sheet as t, SheetContent as n, SheetDescription as r, SheetFooter as i, SheetHeader as a, SheetTitle as o } from "./index308.js";
3
- import { ManageMeasureUnitsForm as s } from "./index314.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/index315.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
+ import "./index62.js";
2
+ import "react";
3
+ import "@emotion/react/jsx-runtime";
4
+ import "radix-ui";