@inorain_development/hotel-smarters-chat-ui 1.2.1 → 1.3.0

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 (372) hide show
  1. package/lib/commonjs/features/chat/components/common/calendar-icon.js +33 -0
  2. package/lib/commonjs/features/chat/components/common/calendar-icon.js.map +1 -0
  3. package/lib/commonjs/features/chat/components/common/calendar-icon.native.js +33 -0
  4. package/lib/commonjs/features/chat/components/common/calendar-icon.native.js.map +1 -0
  5. package/lib/commonjs/features/chat/components/common/cart-icon.js +36 -0
  6. package/lib/commonjs/features/chat/components/common/cart-icon.js.map +1 -0
  7. package/lib/commonjs/features/chat/components/common/chevron-icon.js +26 -0
  8. package/lib/commonjs/features/chat/components/common/chevron-icon.js.map +1 -0
  9. package/lib/commonjs/features/chat/components/common/chevron-icon.native.js +26 -0
  10. package/lib/commonjs/features/chat/components/common/chevron-icon.native.js.map +1 -0
  11. package/lib/commonjs/features/chat/components/common/plane-icon.js +23 -0
  12. package/lib/commonjs/features/chat/components/common/plane-icon.js.map +1 -0
  13. package/lib/commonjs/features/chat/components/common/plane-icon.native.js +23 -0
  14. package/lib/commonjs/features/chat/components/common/plane-icon.native.js.map +1 -0
  15. package/lib/commonjs/features/chat/components/event/event.js +5 -3
  16. package/lib/commonjs/features/chat/components/event/event.js.map +1 -1
  17. package/lib/commonjs/features/chat/components/event/event.native.js +5 -3
  18. package/lib/commonjs/features/chat/components/event/event.native.js.map +1 -1
  19. package/lib/commonjs/features/chat/components/flight/flight-card.js +130 -0
  20. package/lib/commonjs/features/chat/components/flight/flight-card.js.map +1 -0
  21. package/lib/commonjs/features/chat/components/flight/flight-card.native.js +132 -0
  22. package/lib/commonjs/features/chat/components/flight/flight-card.native.js.map +1 -0
  23. package/lib/commonjs/features/chat/components/flight/flight.js +149 -0
  24. package/lib/commonjs/features/chat/components/flight/flight.js.map +1 -0
  25. package/lib/commonjs/features/chat/components/flight/flight.model.js +6 -0
  26. package/lib/commonjs/features/chat/components/flight/flight.model.js.map +1 -0
  27. package/lib/commonjs/features/chat/components/flight/flight.native.js +151 -0
  28. package/lib/commonjs/features/chat/components/flight/flight.native.js.map +1 -0
  29. package/lib/commonjs/features/chat/components/flight/index.js +13 -0
  30. package/lib/commonjs/features/chat/components/flight/index.js.map +1 -0
  31. package/lib/commonjs/features/chat/components/flight-board/flight-board.js +154 -0
  32. package/lib/commonjs/features/chat/components/flight-board/flight-board.js.map +1 -0
  33. package/lib/commonjs/features/chat/components/flight-board/flight-board.model.js +6 -0
  34. package/lib/commonjs/features/chat/components/flight-board/flight-board.model.js.map +1 -0
  35. package/lib/commonjs/features/chat/components/flight-board/flight-board.native.js +165 -0
  36. package/lib/commonjs/features/chat/components/flight-board/flight-board.native.js.map +1 -0
  37. package/lib/commonjs/features/chat/components/flight-board/index.js +13 -0
  38. package/lib/commonjs/features/chat/components/flight-board/index.js.map +1 -0
  39. package/lib/commonjs/features/chat/components/info/info.js +41 -14
  40. package/lib/commonjs/features/chat/components/info/info.js.map +1 -1
  41. package/lib/commonjs/features/chat/components/info/info.native.js +45 -14
  42. package/lib/commonjs/features/chat/components/info/info.native.js.map +1 -1
  43. package/lib/commonjs/features/chat/components/order/index.js +20 -0
  44. package/lib/commonjs/features/chat/components/order/index.js.map +1 -0
  45. package/lib/commonjs/features/chat/components/order/order.js +171 -0
  46. package/lib/commonjs/features/chat/components/order/order.js.map +1 -0
  47. package/lib/commonjs/features/chat/components/order/order.model.js +15 -0
  48. package/lib/commonjs/features/chat/components/order/order.model.js.map +1 -0
  49. package/lib/commonjs/features/chat/components/order/order.native.js +192 -0
  50. package/lib/commonjs/features/chat/components/order/order.native.js.map +1 -0
  51. package/lib/commonjs/features/chat/components/reservation/index.js +20 -0
  52. package/lib/commonjs/features/chat/components/reservation/index.js.map +1 -0
  53. package/lib/commonjs/features/chat/components/reservation/reservation.js +164 -0
  54. package/lib/commonjs/features/chat/components/reservation/reservation.js.map +1 -0
  55. package/lib/commonjs/features/chat/components/reservation/reservation.model.js +13 -0
  56. package/lib/commonjs/features/chat/components/reservation/reservation.model.js.map +1 -0
  57. package/lib/commonjs/features/chat/components/reservation/reservation.native.js +180 -0
  58. package/lib/commonjs/features/chat/components/reservation/reservation.native.js.map +1 -0
  59. package/lib/commonjs/features/chat/model/chat.model.js +17 -1
  60. package/lib/commonjs/features/chat/model/chat.model.js.map +1 -1
  61. package/lib/commonjs/features/chat/renderer/renderer.js +26 -0
  62. package/lib/commonjs/features/chat/renderer/renderer.js.map +1 -1
  63. package/lib/commonjs/features/chat/renderer/renderer.native.js +26 -0
  64. package/lib/commonjs/features/chat/renderer/renderer.native.js.map +1 -1
  65. package/lib/commonjs/native.js +48 -0
  66. package/lib/commonjs/native.js.map +1 -1
  67. package/lib/commonjs/utils/flight.utils.js +86 -0
  68. package/lib/commonjs/utils/flight.utils.js.map +1 -0
  69. package/lib/commonjs/utils/order.utils.js +24 -0
  70. package/lib/commonjs/utils/order.utils.js.map +1 -0
  71. package/lib/commonjs/utils/price.utils.js +4 -4
  72. package/lib/commonjs/utils/price.utils.js.map +1 -1
  73. package/lib/commonjs/utils/reservation.utils.js +22 -0
  74. package/lib/commonjs/utils/reservation.utils.js.map +1 -0
  75. package/lib/commonjs/utils/status-badge.utils.js +75 -0
  76. package/lib/commonjs/utils/status-badge.utils.js.map +1 -0
  77. package/lib/commonjs/utils/theme.utils.js +8 -2
  78. package/lib/commonjs/utils/theme.utils.js.map +1 -1
  79. package/lib/commonjs/utils/time.utils.js +51 -0
  80. package/lib/commonjs/utils/time.utils.js.map +1 -0
  81. package/lib/commonjs/web.js +48 -0
  82. package/lib/commonjs/web.js.map +1 -1
  83. package/lib/module/features/chat/components/common/calendar-icon.js +29 -0
  84. package/lib/module/features/chat/components/common/calendar-icon.js.map +1 -0
  85. package/lib/module/features/chat/components/common/calendar-icon.native.js +29 -0
  86. package/lib/module/features/chat/components/common/calendar-icon.native.js.map +1 -0
  87. package/lib/module/features/chat/components/common/cart-icon.js +32 -0
  88. package/lib/module/features/chat/components/common/cart-icon.js.map +1 -0
  89. package/lib/module/features/chat/components/common/chevron-icon.js +22 -0
  90. package/lib/module/features/chat/components/common/chevron-icon.js.map +1 -0
  91. package/lib/module/features/chat/components/common/chevron-icon.native.js +22 -0
  92. package/lib/module/features/chat/components/common/chevron-icon.native.js.map +1 -0
  93. package/lib/module/features/chat/components/common/plane-icon.js +19 -0
  94. package/lib/module/features/chat/components/common/plane-icon.js.map +1 -0
  95. package/lib/module/features/chat/components/common/plane-icon.native.js +19 -0
  96. package/lib/module/features/chat/components/common/plane-icon.native.js.map +1 -0
  97. package/lib/module/features/chat/components/event/event.js +5 -3
  98. package/lib/module/features/chat/components/event/event.js.map +1 -1
  99. package/lib/module/features/chat/components/event/event.native.js +5 -3
  100. package/lib/module/features/chat/components/event/event.native.js.map +1 -1
  101. package/lib/module/features/chat/components/flight/flight-card.js +126 -0
  102. package/lib/module/features/chat/components/flight/flight-card.js.map +1 -0
  103. package/lib/module/features/chat/components/flight/flight-card.native.js +128 -0
  104. package/lib/module/features/chat/components/flight/flight-card.native.js.map +1 -0
  105. package/lib/module/features/chat/components/flight/flight.js +145 -0
  106. package/lib/module/features/chat/components/flight/flight.js.map +1 -0
  107. package/lib/module/features/chat/components/flight/flight.model.js +4 -0
  108. package/lib/module/features/chat/components/flight/flight.model.js.map +1 -0
  109. package/lib/module/features/chat/components/flight/flight.native.js +147 -0
  110. package/lib/module/features/chat/components/flight/flight.native.js.map +1 -0
  111. package/lib/module/features/chat/components/flight/index.js +4 -0
  112. package/lib/module/features/chat/components/flight/index.js.map +1 -0
  113. package/lib/module/features/chat/components/flight-board/flight-board.js +150 -0
  114. package/lib/module/features/chat/components/flight-board/flight-board.js.map +1 -0
  115. package/lib/module/features/chat/components/flight-board/flight-board.model.js +4 -0
  116. package/lib/module/features/chat/components/flight-board/flight-board.model.js.map +1 -0
  117. package/lib/module/features/chat/components/flight-board/flight-board.native.js +161 -0
  118. package/lib/module/features/chat/components/flight-board/flight-board.native.js.map +1 -0
  119. package/lib/module/features/chat/components/flight-board/index.js +4 -0
  120. package/lib/module/features/chat/components/flight-board/index.js.map +1 -0
  121. package/lib/module/features/chat/components/info/info.js +41 -14
  122. package/lib/module/features/chat/components/info/info.js.map +1 -1
  123. package/lib/module/features/chat/components/info/info.native.js +46 -15
  124. package/lib/module/features/chat/components/info/info.native.js.map +1 -1
  125. package/lib/module/features/chat/components/order/index.js +5 -0
  126. package/lib/module/features/chat/components/order/index.js.map +1 -0
  127. package/lib/module/features/chat/components/order/order.js +167 -0
  128. package/lib/module/features/chat/components/order/order.js.map +1 -0
  129. package/lib/module/features/chat/components/order/order.model.js +11 -0
  130. package/lib/module/features/chat/components/order/order.model.js.map +1 -0
  131. package/lib/module/features/chat/components/order/order.native.js +188 -0
  132. package/lib/module/features/chat/components/order/order.native.js.map +1 -0
  133. package/lib/module/features/chat/components/reservation/index.js +5 -0
  134. package/lib/module/features/chat/components/reservation/index.js.map +1 -0
  135. package/lib/module/features/chat/components/reservation/reservation.js +160 -0
  136. package/lib/module/features/chat/components/reservation/reservation.js.map +1 -0
  137. package/lib/module/features/chat/components/reservation/reservation.model.js +9 -0
  138. package/lib/module/features/chat/components/reservation/reservation.model.js.map +1 -0
  139. package/lib/module/features/chat/components/reservation/reservation.native.js +176 -0
  140. package/lib/module/features/chat/components/reservation/reservation.native.js.map +1 -0
  141. package/lib/module/features/chat/model/chat.model.js +16 -0
  142. package/lib/module/features/chat/model/chat.model.js.map +1 -1
  143. package/lib/module/features/chat/renderer/renderer.js +26 -0
  144. package/lib/module/features/chat/renderer/renderer.js.map +1 -1
  145. package/lib/module/features/chat/renderer/renderer.native.js +26 -0
  146. package/lib/module/features/chat/renderer/renderer.native.js.map +1 -1
  147. package/lib/module/native.js +7 -1
  148. package/lib/module/native.js.map +1 -1
  149. package/lib/module/utils/flight.utils.js +82 -0
  150. package/lib/module/utils/flight.utils.js.map +1 -0
  151. package/lib/module/utils/order.utils.js +20 -0
  152. package/lib/module/utils/order.utils.js.map +1 -0
  153. package/lib/module/utils/price.utils.js +4 -4
  154. package/lib/module/utils/price.utils.js.map +1 -1
  155. package/lib/module/utils/reservation.utils.js +18 -0
  156. package/lib/module/utils/reservation.utils.js.map +1 -0
  157. package/lib/module/utils/status-badge.utils.js +70 -0
  158. package/lib/module/utils/status-badge.utils.js.map +1 -0
  159. package/lib/module/utils/theme.utils.js +8 -2
  160. package/lib/module/utils/theme.utils.js.map +1 -1
  161. package/lib/module/utils/time.utils.js +46 -0
  162. package/lib/module/utils/time.utils.js.map +1 -0
  163. package/lib/module/web.js +7 -1
  164. package/lib/module/web.js.map +1 -1
  165. package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.d.ts +6 -0
  166. package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.d.ts.map +1 -0
  167. package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.native.d.ts +6 -0
  168. package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.native.d.ts.map +1 -0
  169. package/lib/typescript/commonjs/features/chat/components/common/cart-icon.d.ts +6 -0
  170. package/lib/typescript/commonjs/features/chat/components/common/cart-icon.d.ts.map +1 -0
  171. package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.d.ts +6 -0
  172. package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.d.ts.map +1 -0
  173. package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.native.d.ts +6 -0
  174. package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.native.d.ts.map +1 -0
  175. package/lib/typescript/commonjs/features/chat/components/common/plane-icon.d.ts +6 -0
  176. package/lib/typescript/commonjs/features/chat/components/common/plane-icon.d.ts.map +1 -0
  177. package/lib/typescript/commonjs/features/chat/components/common/plane-icon.native.d.ts +6 -0
  178. package/lib/typescript/commonjs/features/chat/components/common/plane-icon.native.d.ts.map +1 -0
  179. package/lib/typescript/commonjs/features/chat/components/event/event.d.ts.map +1 -1
  180. package/lib/typescript/commonjs/features/chat/components/event/event.model.d.ts +3 -1
  181. package/lib/typescript/commonjs/features/chat/components/event/event.model.d.ts.map +1 -1
  182. package/lib/typescript/commonjs/features/chat/components/event/event.native.d.ts.map +1 -1
  183. package/lib/typescript/commonjs/features/chat/components/flight/flight-card.d.ts +12 -0
  184. package/lib/typescript/commonjs/features/chat/components/flight/flight-card.d.ts.map +1 -0
  185. package/lib/typescript/commonjs/features/chat/components/flight/flight-card.native.d.ts +12 -0
  186. package/lib/typescript/commonjs/features/chat/components/flight/flight-card.native.d.ts.map +1 -0
  187. package/lib/typescript/commonjs/features/chat/components/flight/flight.d.ts +4 -0
  188. package/lib/typescript/commonjs/features/chat/components/flight/flight.d.ts.map +1 -0
  189. package/lib/typescript/commonjs/features/chat/components/flight/flight.model.d.ts +19 -0
  190. package/lib/typescript/commonjs/features/chat/components/flight/flight.model.d.ts.map +1 -0
  191. package/lib/typescript/commonjs/features/chat/components/flight/flight.native.d.ts +4 -0
  192. package/lib/typescript/commonjs/features/chat/components/flight/flight.native.d.ts.map +1 -0
  193. package/lib/typescript/commonjs/features/chat/components/flight/index.d.ts +3 -0
  194. package/lib/typescript/commonjs/features/chat/components/flight/index.d.ts.map +1 -0
  195. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.d.ts +4 -0
  196. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.d.ts.map +1 -0
  197. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.model.d.ts +22 -0
  198. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.model.d.ts.map +1 -0
  199. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.native.d.ts +4 -0
  200. package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.native.d.ts.map +1 -0
  201. package/lib/typescript/commonjs/features/chat/components/flight-board/index.d.ts +3 -0
  202. package/lib/typescript/commonjs/features/chat/components/flight-board/index.d.ts.map +1 -0
  203. package/lib/typescript/commonjs/features/chat/components/info/info.d.ts +1 -1
  204. package/lib/typescript/commonjs/features/chat/components/info/info.d.ts.map +1 -1
  205. package/lib/typescript/commonjs/features/chat/components/info/info.model.d.ts +3 -0
  206. package/lib/typescript/commonjs/features/chat/components/info/info.model.d.ts.map +1 -1
  207. package/lib/typescript/commonjs/features/chat/components/info/info.native.d.ts +1 -1
  208. package/lib/typescript/commonjs/features/chat/components/info/info.native.d.ts.map +1 -1
  209. package/lib/typescript/commonjs/features/chat/components/order/index.d.ts +4 -0
  210. package/lib/typescript/commonjs/features/chat/components/order/index.d.ts.map +1 -0
  211. package/lib/typescript/commonjs/features/chat/components/order/order.d.ts +4 -0
  212. package/lib/typescript/commonjs/features/chat/components/order/order.d.ts.map +1 -0
  213. package/lib/typescript/commonjs/features/chat/components/order/order.model.d.ts +30 -0
  214. package/lib/typescript/commonjs/features/chat/components/order/order.model.d.ts.map +1 -0
  215. package/lib/typescript/commonjs/features/chat/components/order/order.native.d.ts +4 -0
  216. package/lib/typescript/commonjs/features/chat/components/order/order.native.d.ts.map +1 -0
  217. package/lib/typescript/commonjs/features/chat/components/reservation/index.d.ts +4 -0
  218. package/lib/typescript/commonjs/features/chat/components/reservation/index.d.ts.map +1 -0
  219. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.d.ts +4 -0
  220. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.d.ts.map +1 -0
  221. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.model.d.ts +27 -0
  222. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.model.d.ts.map +1 -0
  223. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.native.d.ts +4 -0
  224. package/lib/typescript/commonjs/features/chat/components/reservation/reservation.native.d.ts.map +1 -0
  225. package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts +17 -2
  226. package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts.map +1 -1
  227. package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts +5 -1
  228. package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts.map +1 -1
  229. package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts +5 -1
  230. package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts.map +1 -1
  231. package/lib/typescript/commonjs/native.d.ts +11 -1
  232. package/lib/typescript/commonjs/native.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/utils/flight.utils.d.ts +10 -0
  234. package/lib/typescript/commonjs/utils/flight.utils.d.ts.map +1 -0
  235. package/lib/typescript/commonjs/utils/order.utils.d.ts +7 -0
  236. package/lib/typescript/commonjs/utils/order.utils.d.ts.map +1 -0
  237. package/lib/typescript/commonjs/utils/reservation.utils.d.ts +7 -0
  238. package/lib/typescript/commonjs/utils/reservation.utils.d.ts.map +1 -0
  239. package/lib/typescript/commonjs/utils/status-badge.utils.d.ts +15 -0
  240. package/lib/typescript/commonjs/utils/status-badge.utils.d.ts.map +1 -0
  241. package/lib/typescript/commonjs/utils/theme.utils.d.ts +3 -0
  242. package/lib/typescript/commonjs/utils/theme.utils.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/utils/time.utils.d.ts +3 -0
  244. package/lib/typescript/commonjs/utils/time.utils.d.ts.map +1 -0
  245. package/lib/typescript/commonjs/web.d.ts +11 -1
  246. package/lib/typescript/commonjs/web.d.ts.map +1 -1
  247. package/lib/typescript/module/features/chat/components/common/calendar-icon.d.ts +6 -0
  248. package/lib/typescript/module/features/chat/components/common/calendar-icon.d.ts.map +1 -0
  249. package/lib/typescript/module/features/chat/components/common/calendar-icon.native.d.ts +6 -0
  250. package/lib/typescript/module/features/chat/components/common/calendar-icon.native.d.ts.map +1 -0
  251. package/lib/typescript/module/features/chat/components/common/cart-icon.d.ts +6 -0
  252. package/lib/typescript/module/features/chat/components/common/cart-icon.d.ts.map +1 -0
  253. package/lib/typescript/module/features/chat/components/common/chevron-icon.d.ts +6 -0
  254. package/lib/typescript/module/features/chat/components/common/chevron-icon.d.ts.map +1 -0
  255. package/lib/typescript/module/features/chat/components/common/chevron-icon.native.d.ts +6 -0
  256. package/lib/typescript/module/features/chat/components/common/chevron-icon.native.d.ts.map +1 -0
  257. package/lib/typescript/module/features/chat/components/common/plane-icon.d.ts +6 -0
  258. package/lib/typescript/module/features/chat/components/common/plane-icon.d.ts.map +1 -0
  259. package/lib/typescript/module/features/chat/components/common/plane-icon.native.d.ts +6 -0
  260. package/lib/typescript/module/features/chat/components/common/plane-icon.native.d.ts.map +1 -0
  261. package/lib/typescript/module/features/chat/components/event/event.d.ts.map +1 -1
  262. package/lib/typescript/module/features/chat/components/event/event.model.d.ts +3 -1
  263. package/lib/typescript/module/features/chat/components/event/event.model.d.ts.map +1 -1
  264. package/lib/typescript/module/features/chat/components/event/event.native.d.ts.map +1 -1
  265. package/lib/typescript/module/features/chat/components/flight/flight-card.d.ts +12 -0
  266. package/lib/typescript/module/features/chat/components/flight/flight-card.d.ts.map +1 -0
  267. package/lib/typescript/module/features/chat/components/flight/flight-card.native.d.ts +12 -0
  268. package/lib/typescript/module/features/chat/components/flight/flight-card.native.d.ts.map +1 -0
  269. package/lib/typescript/module/features/chat/components/flight/flight.d.ts +4 -0
  270. package/lib/typescript/module/features/chat/components/flight/flight.d.ts.map +1 -0
  271. package/lib/typescript/module/features/chat/components/flight/flight.model.d.ts +19 -0
  272. package/lib/typescript/module/features/chat/components/flight/flight.model.d.ts.map +1 -0
  273. package/lib/typescript/module/features/chat/components/flight/flight.native.d.ts +4 -0
  274. package/lib/typescript/module/features/chat/components/flight/flight.native.d.ts.map +1 -0
  275. package/lib/typescript/module/features/chat/components/flight/index.d.ts +3 -0
  276. package/lib/typescript/module/features/chat/components/flight/index.d.ts.map +1 -0
  277. package/lib/typescript/module/features/chat/components/flight-board/flight-board.d.ts +4 -0
  278. package/lib/typescript/module/features/chat/components/flight-board/flight-board.d.ts.map +1 -0
  279. package/lib/typescript/module/features/chat/components/flight-board/flight-board.model.d.ts +22 -0
  280. package/lib/typescript/module/features/chat/components/flight-board/flight-board.model.d.ts.map +1 -0
  281. package/lib/typescript/module/features/chat/components/flight-board/flight-board.native.d.ts +4 -0
  282. package/lib/typescript/module/features/chat/components/flight-board/flight-board.native.d.ts.map +1 -0
  283. package/lib/typescript/module/features/chat/components/flight-board/index.d.ts +3 -0
  284. package/lib/typescript/module/features/chat/components/flight-board/index.d.ts.map +1 -0
  285. package/lib/typescript/module/features/chat/components/info/info.d.ts +1 -1
  286. package/lib/typescript/module/features/chat/components/info/info.d.ts.map +1 -1
  287. package/lib/typescript/module/features/chat/components/info/info.model.d.ts +3 -0
  288. package/lib/typescript/module/features/chat/components/info/info.model.d.ts.map +1 -1
  289. package/lib/typescript/module/features/chat/components/info/info.native.d.ts +1 -1
  290. package/lib/typescript/module/features/chat/components/info/info.native.d.ts.map +1 -1
  291. package/lib/typescript/module/features/chat/components/order/index.d.ts +4 -0
  292. package/lib/typescript/module/features/chat/components/order/index.d.ts.map +1 -0
  293. package/lib/typescript/module/features/chat/components/order/order.d.ts +4 -0
  294. package/lib/typescript/module/features/chat/components/order/order.d.ts.map +1 -0
  295. package/lib/typescript/module/features/chat/components/order/order.model.d.ts +30 -0
  296. package/lib/typescript/module/features/chat/components/order/order.model.d.ts.map +1 -0
  297. package/lib/typescript/module/features/chat/components/order/order.native.d.ts +4 -0
  298. package/lib/typescript/module/features/chat/components/order/order.native.d.ts.map +1 -0
  299. package/lib/typescript/module/features/chat/components/reservation/index.d.ts +4 -0
  300. package/lib/typescript/module/features/chat/components/reservation/index.d.ts.map +1 -0
  301. package/lib/typescript/module/features/chat/components/reservation/reservation.d.ts +4 -0
  302. package/lib/typescript/module/features/chat/components/reservation/reservation.d.ts.map +1 -0
  303. package/lib/typescript/module/features/chat/components/reservation/reservation.model.d.ts +27 -0
  304. package/lib/typescript/module/features/chat/components/reservation/reservation.model.d.ts.map +1 -0
  305. package/lib/typescript/module/features/chat/components/reservation/reservation.native.d.ts +4 -0
  306. package/lib/typescript/module/features/chat/components/reservation/reservation.native.d.ts.map +1 -0
  307. package/lib/typescript/module/features/chat/model/chat.model.d.ts +17 -2
  308. package/lib/typescript/module/features/chat/model/chat.model.d.ts.map +1 -1
  309. package/lib/typescript/module/features/chat/renderer/renderer.d.ts +5 -1
  310. package/lib/typescript/module/features/chat/renderer/renderer.d.ts.map +1 -1
  311. package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts +5 -1
  312. package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts.map +1 -1
  313. package/lib/typescript/module/native.d.ts +11 -1
  314. package/lib/typescript/module/native.d.ts.map +1 -1
  315. package/lib/typescript/module/utils/flight.utils.d.ts +10 -0
  316. package/lib/typescript/module/utils/flight.utils.d.ts.map +1 -0
  317. package/lib/typescript/module/utils/order.utils.d.ts +7 -0
  318. package/lib/typescript/module/utils/order.utils.d.ts.map +1 -0
  319. package/lib/typescript/module/utils/reservation.utils.d.ts +7 -0
  320. package/lib/typescript/module/utils/reservation.utils.d.ts.map +1 -0
  321. package/lib/typescript/module/utils/status-badge.utils.d.ts +15 -0
  322. package/lib/typescript/module/utils/status-badge.utils.d.ts.map +1 -0
  323. package/lib/typescript/module/utils/theme.utils.d.ts +3 -0
  324. package/lib/typescript/module/utils/theme.utils.d.ts.map +1 -1
  325. package/lib/typescript/module/utils/time.utils.d.ts +3 -0
  326. package/lib/typescript/module/utils/time.utils.d.ts.map +1 -0
  327. package/lib/typescript/module/web.d.ts +11 -1
  328. package/lib/typescript/module/web.d.ts.map +1 -1
  329. package/package.json +1 -1
  330. package/src/features/chat/components/common/calendar-icon.native.tsx +13 -0
  331. package/src/features/chat/components/common/calendar-icon.tsx +13 -0
  332. package/src/features/chat/components/common/cart-icon.tsx +20 -0
  333. package/src/features/chat/components/common/chevron-icon.native.tsx +18 -0
  334. package/src/features/chat/components/common/chevron-icon.tsx +18 -0
  335. package/src/features/chat/components/common/plane-icon.native.tsx +15 -0
  336. package/src/features/chat/components/common/plane-icon.tsx +15 -0
  337. package/src/features/chat/components/event/event.model.ts +3 -1
  338. package/src/features/chat/components/event/event.native.tsx +6 -2
  339. package/src/features/chat/components/event/event.tsx +6 -2
  340. package/src/features/chat/components/flight/flight-card.native.tsx +100 -0
  341. package/src/features/chat/components/flight/flight-card.tsx +100 -0
  342. package/src/features/chat/components/flight/flight.model.ts +20 -0
  343. package/src/features/chat/components/flight/flight.native.tsx +131 -0
  344. package/src/features/chat/components/flight/flight.tsx +131 -0
  345. package/src/features/chat/components/flight/index.ts +2 -0
  346. package/src/features/chat/components/flight-board/flight-board.model.ts +23 -0
  347. package/src/features/chat/components/flight-board/flight-board.native.tsx +155 -0
  348. package/src/features/chat/components/flight-board/flight-board.tsx +160 -0
  349. package/src/features/chat/components/flight-board/index.ts +2 -0
  350. package/src/features/chat/components/info/info.model.ts +3 -0
  351. package/src/features/chat/components/info/info.native.tsx +47 -11
  352. package/src/features/chat/components/info/info.tsx +43 -10
  353. package/src/features/chat/components/order/index.ts +3 -0
  354. package/src/features/chat/components/order/order.model.ts +32 -0
  355. package/src/features/chat/components/order/order.native.tsx +175 -0
  356. package/src/features/chat/components/order/order.tsx +176 -0
  357. package/src/features/chat/components/reservation/index.ts +3 -0
  358. package/src/features/chat/components/reservation/reservation.model.ts +29 -0
  359. package/src/features/chat/components/reservation/reservation.native.tsx +159 -0
  360. package/src/features/chat/components/reservation/reservation.tsx +161 -0
  361. package/src/features/chat/model/chat.model.ts +16 -0
  362. package/src/features/chat/renderer/renderer.native.tsx +29 -1
  363. package/src/features/chat/renderer/renderer.tsx +29 -1
  364. package/src/native.ts +11 -1
  365. package/src/utils/flight.utils.ts +35 -0
  366. package/src/utils/order.utils.ts +28 -0
  367. package/src/utils/price.utils.ts +4 -4
  368. package/src/utils/reservation.utils.ts +23 -0
  369. package/src/utils/status-badge.utils.ts +36 -0
  370. package/src/utils/theme.utils.ts +9 -0
  371. package/src/utils/time.utils.ts +58 -0
  372. package/src/web.ts +11 -1
package/src/native.ts CHANGED
@@ -2,14 +2,24 @@ export { Product } from './features/chat/components/product/product.native';
2
2
  export { Service } from './features/chat/components/service/service.native';
3
3
  export { Event } from './features/chat/components/event/event.native';
4
4
  export { Info } from './features/chat/components/info/info.native';
5
+ export { Flight } from './features/chat/components/flight/flight.native';
6
+ export { FlightBoard } from './features/chat/components/flight-board/flight-board.native';
7
+ export { Order } from './features/chat/components/order/order.native';
8
+ export { Reservation } from './features/chat/components/reservation/reservation.native';
5
9
  export { ChatComponentRenderer } from './features/chat/renderer/renderer.native';
6
10
  export { ChatMessageRenderer } from './features/chat/message/message.native';
7
11
  export { parseMessage } from './features/chat/message/message.logic';
8
- export { ComponentType, ItemAction, Theme } from './features/chat/model/chat.model';
12
+ export { ComponentType, ItemAction, Theme, FlightStatus } from './features/chat/model/chat.model';
13
+ export { OrderStatus } from './features/chat/components/order/order.model';
14
+ export { ReservationStatus } from './features/chat/components/reservation/reservation.model';
9
15
  export type { ProductItem } from './features/chat/components/product/product.model';
10
16
  export type { ServiceItem } from './features/chat/components/service/service.model';
11
17
  export type { EventItem } from './features/chat/components/event/event.model';
12
18
  export type { InfoItem } from './features/chat/components/info/info.model';
19
+ export type { FlightItem, Airport } from './features/chat/components/flight/flight.model';
20
+ export type { FlightBoardItem, FlightRow } from './features/chat/components/flight-board/flight-board.model';
21
+ export type { OrderListItem, OrderRow } from './features/chat/components/order/order.model';
22
+ export type { ReservationListItem, ReservationRow } from './features/chat/components/reservation/reservation.model';
13
23
  export type {
14
24
  ChatMessage,
15
25
  ChatMessageProps,
@@ -0,0 +1,35 @@
1
+ import { FlightStatus, Theme } from '../features/chat/model/chat.model';
2
+
3
+ export interface FlightStatusStyle {
4
+ dot: string;
5
+ badgeBg: string;
6
+ badgeText: string;
7
+ showDot: boolean;
8
+ label: string;
9
+ }
10
+
11
+ type StatusMap = Record<FlightStatus, FlightStatusStyle>;
12
+
13
+ const DARK: StatusMap = {
14
+ [FlightStatus.OnTime]: { dot: 'bg-emerald-400', badgeBg: 'bg-emerald-500/15', badgeText: 'text-emerald-400', showDot: true, label: 'On time' },
15
+ [FlightStatus.Delayed]: { dot: 'bg-amber-400', badgeBg: 'bg-amber-500/15', badgeText: 'text-amber-400', showDot: false, label: 'Delayed' },
16
+ [FlightStatus.Boarding]: { dot: 'bg-indigo-300', badgeBg: 'bg-indigo-500/25', badgeText: 'text-indigo-300', showDot: false, label: 'Boarding' },
17
+ [FlightStatus.Landed]: { dot: 'bg-sky-400', badgeBg: 'bg-sky-500/15', badgeText: 'text-sky-400', showDot: true, label: 'Landed' },
18
+ [FlightStatus.Cancelled]: { dot: 'bg-red-400', badgeBg: 'bg-red-500/15', badgeText: 'text-red-400', showDot: false, label: 'Cancelled' },
19
+ };
20
+
21
+ const LIGHT: StatusMap = {
22
+ [FlightStatus.OnTime]: { dot: 'bg-emerald-500', badgeBg: 'bg-emerald-500/15', badgeText: 'text-emerald-600', showDot: true, label: 'On time' },
23
+ [FlightStatus.Delayed]: { dot: 'bg-amber-500', badgeBg: 'bg-amber-500/20', badgeText: 'text-amber-600', showDot: false, label: 'Delayed' },
24
+ [FlightStatus.Boarding]: { dot: 'bg-indigo-500', badgeBg: 'bg-indigo-500/15', badgeText: 'text-indigo-600', showDot: false, label: 'Boarding' },
25
+ [FlightStatus.Landed]: { dot: 'bg-sky-500', badgeBg: 'bg-sky-500/15', badgeText: 'text-sky-600', showDot: true, label: 'Landed' },
26
+ [FlightStatus.Cancelled]: { dot: 'bg-red-500', badgeBg: 'bg-red-500/15', badgeText: 'text-red-600', showDot: false, label: 'Cancelled' },
27
+ };
28
+
29
+ export function getFlightStatusStyle(
30
+ status: FlightStatus = FlightStatus.OnTime,
31
+ theme: Theme = Theme.Dark,
32
+ ): FlightStatusStyle {
33
+ const map = theme === Theme.Light ? LIGHT : DARK;
34
+ return map[status] ?? map[FlightStatus.OnTime];
35
+ }
@@ -0,0 +1,28 @@
1
+ import { Theme } from '../features/chat/model/chat.model';
2
+ import { OrderStatus } from '../features/chat/components/order/order.model';
3
+ import { getStatusBadgeStyle, StatusTone } from './status-badge.utils';
4
+ import type { StatusBadgeStyle } from './status-badge.utils';
5
+
6
+ const LABEL: Record<OrderStatus, string> = {
7
+ [OrderStatus.Pending]: 'Pending',
8
+ [OrderStatus.Preparing]: 'Preparing',
9
+ [OrderStatus.Accepted]: 'Accepted',
10
+ [OrderStatus.Rejected]: 'Rejected',
11
+ [OrderStatus.Delivered]: 'Delivered',
12
+ };
13
+
14
+ export function getOrderStatusStyle(
15
+ status: OrderStatus = OrderStatus.Pending,
16
+ theme: Theme = Theme.Dark,
17
+ ): StatusBadgeStyle & { label: string } {
18
+ const tone =
19
+ status === OrderStatus.Accepted || status === OrderStatus.Delivered
20
+ ? StatusTone.Success
21
+ : status === OrderStatus.Rejected
22
+ ? StatusTone.Danger
23
+ : status === OrderStatus.Preparing
24
+ ? StatusTone.Info
25
+ : StatusTone.Pending;
26
+
27
+ return { ...getStatusBadgeStyle(tone, theme), label: LABEL[status] ?? LABEL[OrderStatus.Pending] };
28
+ }
@@ -1,10 +1,10 @@
1
1
  export function isFreePrice(price?: string | number | null): boolean {
2
2
  if (price == null) return true;
3
- if (typeof price === 'number') return price === 0;
3
+ if (typeof price === 'number') return !Number.isFinite(price) || price === 0;
4
4
 
5
- const trimmed = price.trim();
6
- if (trimmed === '') return true;
5
+ const trimmed = price.trim().toLowerCase();
6
+ if (trimmed === '' || trimmed.includes('undefined') || trimmed.includes('null')) return true;
7
7
 
8
8
  const numeric = parseFloat(trimmed.replace(/[^0-9.,-]/g, '').replace(',', '.'));
9
- return Number.isFinite(numeric) && numeric === 0;
9
+ return !Number.isFinite(numeric) || numeric === 0;
10
10
  }
@@ -0,0 +1,23 @@
1
+ import { Theme } from '../features/chat/model/chat.model';
2
+ import { ReservationStatus } from '../features/chat/components/reservation/reservation.model';
3
+ import { getStatusBadgeStyle, StatusTone } from './status-badge.utils';
4
+ import type { StatusBadgeStyle } from './status-badge.utils';
5
+
6
+ const LABEL: Record<ReservationStatus, string> = {
7
+ [ReservationStatus.Pending]: 'Pending',
8
+ [ReservationStatus.Confirmed]: 'Confirmed',
9
+ [ReservationStatus.Cancelled]: 'Cancelled',
10
+ };
11
+
12
+ export function getReservationStatusStyle(
13
+ status: ReservationStatus = ReservationStatus.Pending,
14
+ theme: Theme = Theme.Dark,
15
+ ): StatusBadgeStyle & { label: string } {
16
+ const tone = status === ReservationStatus.Confirmed
17
+ ? StatusTone.Success
18
+ : status === ReservationStatus.Cancelled
19
+ ? StatusTone.Danger
20
+ : StatusTone.Pending;
21
+
22
+ return { ...getStatusBadgeStyle(tone, theme), label: LABEL[status] ?? LABEL[ReservationStatus.Pending] };
23
+ }
@@ -0,0 +1,36 @@
1
+ import { Theme } from '../features/chat/model/chat.model';
2
+
3
+ export enum StatusTone {
4
+ Pending = 'pending',
5
+ Success = 'success',
6
+ Danger = 'danger',
7
+ Info = 'info',
8
+ Neutral = 'neutral',
9
+ }
10
+
11
+ export interface StatusBadgeStyle {
12
+ badgeBg: string;
13
+ badgeText: string;
14
+ dot: string;
15
+ }
16
+
17
+ const DARK: Record<StatusTone, StatusBadgeStyle> = {
18
+ [StatusTone.Pending]: { badgeBg: 'bg-amber-500/15', badgeText: 'text-amber-400', dot: 'bg-amber-400' },
19
+ [StatusTone.Success]: { badgeBg: 'bg-emerald-500/15', badgeText: 'text-emerald-400', dot: 'bg-emerald-400' },
20
+ [StatusTone.Danger]: { badgeBg: 'bg-red-500/15', badgeText: 'text-red-400', dot: 'bg-red-400' },
21
+ [StatusTone.Info]: { badgeBg: 'bg-indigo-500/25', badgeText: 'text-indigo-300', dot: 'bg-indigo-300' },
22
+ [StatusTone.Neutral]: { badgeBg: 'bg-white/10', badgeText: 'text-neutral-300', dot: 'bg-neutral-400' },
23
+ };
24
+
25
+ const LIGHT: Record<StatusTone, StatusBadgeStyle> = {
26
+ [StatusTone.Pending]: { badgeBg: 'bg-amber-500/20', badgeText: 'text-amber-600', dot: 'bg-amber-500' },
27
+ [StatusTone.Success]: { badgeBg: 'bg-emerald-500/15', badgeText: 'text-emerald-600', dot: 'bg-emerald-500' },
28
+ [StatusTone.Danger]: { badgeBg: 'bg-red-500/15', badgeText: 'text-red-600', dot: 'bg-red-500' },
29
+ [StatusTone.Info]: { badgeBg: 'bg-indigo-500/15', badgeText: 'text-indigo-600', dot: 'bg-indigo-500' },
30
+ [StatusTone.Neutral]: { badgeBg: 'bg-slate-200', badgeText: 'text-neutral-600', dot: 'bg-slate-400' },
31
+ };
32
+
33
+ export function getStatusBadgeStyle(tone: StatusTone, theme: Theme = Theme.Dark): StatusBadgeStyle {
34
+ const map = theme === Theme.Light ? LIGHT : DARK;
35
+ return map[tone] ?? map[StatusTone.Neutral];
36
+ }
@@ -13,6 +13,9 @@ export interface ThemeClasses {
13
13
  iconBg: string;
14
14
  iconText: string;
15
15
  iconColor: string;
16
+ mutedIconBg: string;
17
+ mutedIconColor: string;
18
+ dashLine: string;
16
19
  }
17
20
 
18
21
  const DARK: ThemeClasses = {
@@ -28,6 +31,9 @@ const DARK: ThemeClasses = {
28
31
  iconBg: 'bg-indigo-500/20',
29
32
  iconText: 'text-indigo-300',
30
33
  iconColor: '#a5b4fc',
34
+ mutedIconBg: 'bg-white/5',
35
+ mutedIconColor: '#82849a',
36
+ dashLine: 'border-neutral-700',
31
37
  };
32
38
 
33
39
  const LIGHT: ThemeClasses = {
@@ -43,6 +49,9 @@ const LIGHT: ThemeClasses = {
43
49
  iconBg: 'bg-indigo-500/15',
44
50
  iconText: 'text-indigo-500',
45
51
  iconColor: '#6366f1',
52
+ mutedIconBg: 'bg-slate-200',
53
+ mutedIconColor: '#64748b',
54
+ dashLine: 'border-slate-300',
46
55
  };
47
56
 
48
57
  export function getThemeClasses(theme: Theme = Theme.Dark): ThemeClasses {
@@ -0,0 +1,58 @@
1
+ function parseDate(value?: string | null): Date | null {
2
+ if (value == null) return null;
3
+
4
+ const trimmed = value.trim();
5
+ if (trimmed === '') return null;
6
+
7
+ const date = new Date(trimmed);
8
+ return Number.isNaN(date.getTime()) ? null : date;
9
+ }
10
+
11
+ function formatDateTime(date: Date): string {
12
+ return date.toLocaleString('en-US', {
13
+ month: 'short',
14
+ day: 'numeric',
15
+ year: 'numeric',
16
+ hour: 'numeric',
17
+ minute: '2-digit',
18
+ });
19
+ }
20
+
21
+ function formatTime(date: Date): string {
22
+ return date.toLocaleTimeString('en-US', {
23
+ hour: 'numeric',
24
+ minute: '2-digit',
25
+ });
26
+ }
27
+
28
+ function isSameDay(a: Date, b: Date): boolean {
29
+ return (
30
+ a.getFullYear() === b.getFullYear() &&
31
+ a.getMonth() === b.getMonth() &&
32
+ a.getDate() === b.getDate()
33
+ );
34
+ }
35
+
36
+ export function hasEventTime(time?: string | null): boolean {
37
+ if (time == null) return false;
38
+
39
+ const trimmed = time.trim().toLowerCase();
40
+ if (trimmed === '' || trimmed.includes('undefined') || trimmed.includes('null')) return false;
41
+
42
+ return !/^0{1,2}:0{2}(:0{2})?$/.test(trimmed);
43
+ }
44
+
45
+ export function formatEventDate(startDateTime?: string | null, endDateTime?: string | null): string {
46
+ const start = parseDate(startDateTime);
47
+ if (!start) return '';
48
+
49
+ const end = parseDate(endDateTime);
50
+ if (end && !isSameDay(start, end)) {
51
+ return `${formatDateTime(start)} – ${formatDateTime(end)}`;
52
+ }
53
+ if (end) {
54
+ return `${formatDateTime(start)} – ${formatTime(end)}`;
55
+ }
56
+
57
+ return formatDateTime(start);
58
+ }
package/src/web.ts CHANGED
@@ -2,14 +2,24 @@ export { Product } from './features/chat/components/product/product';
2
2
  export { Service } from './features/chat/components/service/service';
3
3
  export { Event } from './features/chat/components/event/event';
4
4
  export { Info } from './features/chat/components/info/info';
5
+ export { Flight } from './features/chat/components/flight/flight';
6
+ export { FlightBoard } from './features/chat/components/flight-board/flight-board';
7
+ export { Order } from './features/chat/components/order/order';
8
+ export { Reservation } from './features/chat/components/reservation/reservation';
5
9
  export { ChatComponentRenderer } from './features/chat/renderer/renderer';
6
10
  export { ChatMessageRenderer } from './features/chat/message/message';
7
11
  export { parseMessage } from './features/chat/message/message.logic';
8
- export { ComponentType, ItemAction, Theme } from './features/chat/model/chat.model';
12
+ export { ComponentType, ItemAction, Theme, FlightStatus } from './features/chat/model/chat.model';
13
+ export { OrderStatus } from './features/chat/components/order/order.model';
14
+ export { ReservationStatus } from './features/chat/components/reservation/reservation.model';
9
15
  export type { ProductItem } from './features/chat/components/product/product.model';
10
16
  export type { ServiceItem } from './features/chat/components/service/service.model';
11
17
  export type { EventItem } from './features/chat/components/event/event.model';
12
18
  export type { InfoItem } from './features/chat/components/info/info.model';
19
+ export type { FlightItem, Airport } from './features/chat/components/flight/flight.model';
20
+ export type { FlightBoardItem, FlightRow } from './features/chat/components/flight-board/flight-board.model';
21
+ export type { OrderListItem, OrderRow } from './features/chat/components/order/order.model';
22
+ export type { ReservationListItem, ReservationRow } from './features/chat/components/reservation/reservation.model';
13
23
  export type {
14
24
  ChatMessage,
15
25
  ChatMessageProps,