@inorain_development/hotel-smarters-chat-ui 1.2.2 → 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.
- package/lib/commonjs/features/chat/components/common/calendar-icon.js +33 -0
- package/lib/commonjs/features/chat/components/common/calendar-icon.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/calendar-icon.native.js +33 -0
- package/lib/commonjs/features/chat/components/common/calendar-icon.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/cart-icon.js +36 -0
- package/lib/commonjs/features/chat/components/common/cart-icon.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/chevron-icon.js +26 -0
- package/lib/commonjs/features/chat/components/common/chevron-icon.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/chevron-icon.native.js +26 -0
- package/lib/commonjs/features/chat/components/common/chevron-icon.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/plane-icon.js +23 -0
- package/lib/commonjs/features/chat/components/common/plane-icon.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/plane-icon.native.js +23 -0
- package/lib/commonjs/features/chat/components/common/plane-icon.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight/flight-card.js +130 -0
- package/lib/commonjs/features/chat/components/flight/flight-card.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight/flight-card.native.js +132 -0
- package/lib/commonjs/features/chat/components/flight/flight-card.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight/flight.js +149 -0
- package/lib/commonjs/features/chat/components/flight/flight.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight/flight.model.js +6 -0
- package/lib/commonjs/features/chat/components/flight/flight.model.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight/flight.native.js +151 -0
- package/lib/commonjs/features/chat/components/flight/flight.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight/index.js +13 -0
- package/lib/commonjs/features/chat/components/flight/index.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight-board/flight-board.js +154 -0
- package/lib/commonjs/features/chat/components/flight-board/flight-board.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight-board/flight-board.model.js +6 -0
- package/lib/commonjs/features/chat/components/flight-board/flight-board.model.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight-board/flight-board.native.js +165 -0
- package/lib/commonjs/features/chat/components/flight-board/flight-board.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/flight-board/index.js +13 -0
- package/lib/commonjs/features/chat/components/flight-board/index.js.map +1 -0
- package/lib/commonjs/features/chat/components/info/info.js +41 -14
- package/lib/commonjs/features/chat/components/info/info.js.map +1 -1
- package/lib/commonjs/features/chat/components/info/info.native.js +45 -14
- package/lib/commonjs/features/chat/components/info/info.native.js.map +1 -1
- package/lib/commonjs/features/chat/components/order/index.js +20 -0
- package/lib/commonjs/features/chat/components/order/index.js.map +1 -0
- package/lib/commonjs/features/chat/components/order/order.js +171 -0
- package/lib/commonjs/features/chat/components/order/order.js.map +1 -0
- package/lib/commonjs/features/chat/components/order/order.model.js +15 -0
- package/lib/commonjs/features/chat/components/order/order.model.js.map +1 -0
- package/lib/commonjs/features/chat/components/order/order.native.js +192 -0
- package/lib/commonjs/features/chat/components/order/order.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/reservation/index.js +20 -0
- package/lib/commonjs/features/chat/components/reservation/index.js.map +1 -0
- package/lib/commonjs/features/chat/components/reservation/reservation.js +164 -0
- package/lib/commonjs/features/chat/components/reservation/reservation.js.map +1 -0
- package/lib/commonjs/features/chat/components/reservation/reservation.model.js +13 -0
- package/lib/commonjs/features/chat/components/reservation/reservation.model.js.map +1 -0
- package/lib/commonjs/features/chat/components/reservation/reservation.native.js +180 -0
- package/lib/commonjs/features/chat/components/reservation/reservation.native.js.map +1 -0
- package/lib/commonjs/features/chat/model/chat.model.js +17 -1
- package/lib/commonjs/features/chat/model/chat.model.js.map +1 -1
- package/lib/commonjs/features/chat/renderer/renderer.js +26 -0
- package/lib/commonjs/features/chat/renderer/renderer.js.map +1 -1
- package/lib/commonjs/features/chat/renderer/renderer.native.js +26 -0
- package/lib/commonjs/features/chat/renderer/renderer.native.js.map +1 -1
- package/lib/commonjs/native.js +48 -0
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/utils/flight.utils.js +86 -0
- package/lib/commonjs/utils/flight.utils.js.map +1 -0
- package/lib/commonjs/utils/order.utils.js +24 -0
- package/lib/commonjs/utils/order.utils.js.map +1 -0
- package/lib/commonjs/utils/reservation.utils.js +22 -0
- package/lib/commonjs/utils/reservation.utils.js.map +1 -0
- package/lib/commonjs/utils/status-badge.utils.js +75 -0
- package/lib/commonjs/utils/status-badge.utils.js.map +1 -0
- package/lib/commonjs/utils/theme.utils.js +8 -2
- package/lib/commonjs/utils/theme.utils.js.map +1 -1
- package/lib/commonjs/web.js +48 -0
- package/lib/commonjs/web.js.map +1 -1
- package/lib/module/features/chat/components/common/calendar-icon.js +29 -0
- package/lib/module/features/chat/components/common/calendar-icon.js.map +1 -0
- package/lib/module/features/chat/components/common/calendar-icon.native.js +29 -0
- package/lib/module/features/chat/components/common/calendar-icon.native.js.map +1 -0
- package/lib/module/features/chat/components/common/cart-icon.js +32 -0
- package/lib/module/features/chat/components/common/cart-icon.js.map +1 -0
- package/lib/module/features/chat/components/common/chevron-icon.js +22 -0
- package/lib/module/features/chat/components/common/chevron-icon.js.map +1 -0
- package/lib/module/features/chat/components/common/chevron-icon.native.js +22 -0
- package/lib/module/features/chat/components/common/chevron-icon.native.js.map +1 -0
- package/lib/module/features/chat/components/common/plane-icon.js +19 -0
- package/lib/module/features/chat/components/common/plane-icon.js.map +1 -0
- package/lib/module/features/chat/components/common/plane-icon.native.js +19 -0
- package/lib/module/features/chat/components/common/plane-icon.native.js.map +1 -0
- package/lib/module/features/chat/components/flight/flight-card.js +126 -0
- package/lib/module/features/chat/components/flight/flight-card.js.map +1 -0
- package/lib/module/features/chat/components/flight/flight-card.native.js +128 -0
- package/lib/module/features/chat/components/flight/flight-card.native.js.map +1 -0
- package/lib/module/features/chat/components/flight/flight.js +145 -0
- package/lib/module/features/chat/components/flight/flight.js.map +1 -0
- package/lib/module/features/chat/components/flight/flight.model.js +4 -0
- package/lib/module/features/chat/components/flight/flight.model.js.map +1 -0
- package/lib/module/features/chat/components/flight/flight.native.js +147 -0
- package/lib/module/features/chat/components/flight/flight.native.js.map +1 -0
- package/lib/module/features/chat/components/flight/index.js +4 -0
- package/lib/module/features/chat/components/flight/index.js.map +1 -0
- package/lib/module/features/chat/components/flight-board/flight-board.js +150 -0
- package/lib/module/features/chat/components/flight-board/flight-board.js.map +1 -0
- package/lib/module/features/chat/components/flight-board/flight-board.model.js +4 -0
- package/lib/module/features/chat/components/flight-board/flight-board.model.js.map +1 -0
- package/lib/module/features/chat/components/flight-board/flight-board.native.js +161 -0
- package/lib/module/features/chat/components/flight-board/flight-board.native.js.map +1 -0
- package/lib/module/features/chat/components/flight-board/index.js +4 -0
- package/lib/module/features/chat/components/flight-board/index.js.map +1 -0
- package/lib/module/features/chat/components/info/info.js +41 -14
- package/lib/module/features/chat/components/info/info.js.map +1 -1
- package/lib/module/features/chat/components/info/info.native.js +46 -15
- package/lib/module/features/chat/components/info/info.native.js.map +1 -1
- package/lib/module/features/chat/components/order/index.js +5 -0
- package/lib/module/features/chat/components/order/index.js.map +1 -0
- package/lib/module/features/chat/components/order/order.js +167 -0
- package/lib/module/features/chat/components/order/order.js.map +1 -0
- package/lib/module/features/chat/components/order/order.model.js +11 -0
- package/lib/module/features/chat/components/order/order.model.js.map +1 -0
- package/lib/module/features/chat/components/order/order.native.js +188 -0
- package/lib/module/features/chat/components/order/order.native.js.map +1 -0
- package/lib/module/features/chat/components/reservation/index.js +5 -0
- package/lib/module/features/chat/components/reservation/index.js.map +1 -0
- package/lib/module/features/chat/components/reservation/reservation.js +160 -0
- package/lib/module/features/chat/components/reservation/reservation.js.map +1 -0
- package/lib/module/features/chat/components/reservation/reservation.model.js +9 -0
- package/lib/module/features/chat/components/reservation/reservation.model.js.map +1 -0
- package/lib/module/features/chat/components/reservation/reservation.native.js +176 -0
- package/lib/module/features/chat/components/reservation/reservation.native.js.map +1 -0
- package/lib/module/features/chat/model/chat.model.js +16 -0
- package/lib/module/features/chat/model/chat.model.js.map +1 -1
- package/lib/module/features/chat/renderer/renderer.js +26 -0
- package/lib/module/features/chat/renderer/renderer.js.map +1 -1
- package/lib/module/features/chat/renderer/renderer.native.js +26 -0
- package/lib/module/features/chat/renderer/renderer.native.js.map +1 -1
- package/lib/module/native.js +7 -1
- package/lib/module/native.js.map +1 -1
- package/lib/module/utils/flight.utils.js +82 -0
- package/lib/module/utils/flight.utils.js.map +1 -0
- package/lib/module/utils/order.utils.js +20 -0
- package/lib/module/utils/order.utils.js.map +1 -0
- package/lib/module/utils/reservation.utils.js +18 -0
- package/lib/module/utils/reservation.utils.js.map +1 -0
- package/lib/module/utils/status-badge.utils.js +70 -0
- package/lib/module/utils/status-badge.utils.js.map +1 -0
- package/lib/module/utils/theme.utils.js +8 -2
- package/lib/module/utils/theme.utils.js.map +1 -1
- package/lib/module/web.js +7 -1
- package/lib/module/web.js.map +1 -1
- package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.native.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/calendar-icon.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/cart-icon.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/cart-icon.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.native.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/chevron-icon.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/plane-icon.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/plane-icon.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/plane-icon.native.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/plane-icon.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight-card.d.ts +12 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight-card.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight-card.native.d.ts +12 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight-card.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight.model.d.ts +19 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight.native.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/flight/flight.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight/index.d.ts +3 -0
- package/lib/typescript/commonjs/features/chat/components/flight/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.model.d.ts +22 -0
- package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.native.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/flight-board/flight-board.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/flight-board/index.d.ts +3 -0
- package/lib/typescript/commonjs/features/chat/components/flight-board/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/info/info.d.ts +1 -1
- package/lib/typescript/commonjs/features/chat/components/info/info.d.ts.map +1 -1
- package/lib/typescript/commonjs/features/chat/components/info/info.model.d.ts +3 -0
- package/lib/typescript/commonjs/features/chat/components/info/info.model.d.ts.map +1 -1
- package/lib/typescript/commonjs/features/chat/components/info/info.native.d.ts +1 -1
- package/lib/typescript/commonjs/features/chat/components/info/info.native.d.ts.map +1 -1
- package/lib/typescript/commonjs/features/chat/components/order/index.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/order/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/order/order.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/order/order.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/order/order.model.d.ts +30 -0
- package/lib/typescript/commonjs/features/chat/components/order/order.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/order/order.native.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/order/order.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/reservation/index.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/reservation/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/reservation/reservation.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/reservation/reservation.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/reservation/reservation.model.d.ts +27 -0
- package/lib/typescript/commonjs/features/chat/components/reservation/reservation.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/reservation/reservation.native.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/reservation/reservation.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts +17 -2
- package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts.map +1 -1
- package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts +5 -1
- package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts.map +1 -1
- package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts +5 -1
- package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts.map +1 -1
- package/lib/typescript/commonjs/native.d.ts +11 -1
- package/lib/typescript/commonjs/native.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/flight.utils.d.ts +10 -0
- package/lib/typescript/commonjs/utils/flight.utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/order.utils.d.ts +7 -0
- package/lib/typescript/commonjs/utils/order.utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/reservation.utils.d.ts +7 -0
- package/lib/typescript/commonjs/utils/reservation.utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/status-badge.utils.d.ts +15 -0
- package/lib/typescript/commonjs/utils/status-badge.utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/theme.utils.d.ts +3 -0
- package/lib/typescript/commonjs/utils/theme.utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/web.d.ts +11 -1
- package/lib/typescript/commonjs/web.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/components/common/calendar-icon.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/calendar-icon.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/calendar-icon.native.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/calendar-icon.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/cart-icon.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/cart-icon.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/chevron-icon.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/chevron-icon.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/chevron-icon.native.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/chevron-icon.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/plane-icon.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/plane-icon.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/plane-icon.native.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/plane-icon.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight/flight-card.d.ts +12 -0
- package/lib/typescript/module/features/chat/components/flight/flight-card.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight/flight-card.native.d.ts +12 -0
- package/lib/typescript/module/features/chat/components/flight/flight-card.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight/flight.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/flight/flight.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight/flight.model.d.ts +19 -0
- package/lib/typescript/module/features/chat/components/flight/flight.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight/flight.native.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/flight/flight.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight/index.d.ts +3 -0
- package/lib/typescript/module/features/chat/components/flight/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight-board/flight-board.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/flight-board/flight-board.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight-board/flight-board.model.d.ts +22 -0
- package/lib/typescript/module/features/chat/components/flight-board/flight-board.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight-board/flight-board.native.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/flight-board/flight-board.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/flight-board/index.d.ts +3 -0
- package/lib/typescript/module/features/chat/components/flight-board/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/info/info.d.ts +1 -1
- package/lib/typescript/module/features/chat/components/info/info.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/components/info/info.model.d.ts +3 -0
- package/lib/typescript/module/features/chat/components/info/info.model.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/components/info/info.native.d.ts +1 -1
- package/lib/typescript/module/features/chat/components/info/info.native.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/components/order/index.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/order/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/order/order.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/order/order.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/order/order.model.d.ts +30 -0
- package/lib/typescript/module/features/chat/components/order/order.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/order/order.native.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/order/order.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/reservation/index.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/reservation/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/reservation/reservation.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/reservation/reservation.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/reservation/reservation.model.d.ts +27 -0
- package/lib/typescript/module/features/chat/components/reservation/reservation.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/reservation/reservation.native.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/reservation/reservation.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/model/chat.model.d.ts +17 -2
- package/lib/typescript/module/features/chat/model/chat.model.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/renderer/renderer.d.ts +5 -1
- package/lib/typescript/module/features/chat/renderer/renderer.d.ts.map +1 -1
- package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts +5 -1
- package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts.map +1 -1
- package/lib/typescript/module/native.d.ts +11 -1
- package/lib/typescript/module/native.d.ts.map +1 -1
- package/lib/typescript/module/utils/flight.utils.d.ts +10 -0
- package/lib/typescript/module/utils/flight.utils.d.ts.map +1 -0
- package/lib/typescript/module/utils/order.utils.d.ts +7 -0
- package/lib/typescript/module/utils/order.utils.d.ts.map +1 -0
- package/lib/typescript/module/utils/reservation.utils.d.ts +7 -0
- package/lib/typescript/module/utils/reservation.utils.d.ts.map +1 -0
- package/lib/typescript/module/utils/status-badge.utils.d.ts +15 -0
- package/lib/typescript/module/utils/status-badge.utils.d.ts.map +1 -0
- package/lib/typescript/module/utils/theme.utils.d.ts +3 -0
- package/lib/typescript/module/utils/theme.utils.d.ts.map +1 -1
- package/lib/typescript/module/web.d.ts +11 -1
- package/lib/typescript/module/web.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/chat/components/common/calendar-icon.native.tsx +13 -0
- package/src/features/chat/components/common/calendar-icon.tsx +13 -0
- package/src/features/chat/components/common/cart-icon.tsx +20 -0
- package/src/features/chat/components/common/chevron-icon.native.tsx +18 -0
- package/src/features/chat/components/common/chevron-icon.tsx +18 -0
- package/src/features/chat/components/common/plane-icon.native.tsx +15 -0
- package/src/features/chat/components/common/plane-icon.tsx +15 -0
- package/src/features/chat/components/flight/flight-card.native.tsx +100 -0
- package/src/features/chat/components/flight/flight-card.tsx +100 -0
- package/src/features/chat/components/flight/flight.model.ts +20 -0
- package/src/features/chat/components/flight/flight.native.tsx +131 -0
- package/src/features/chat/components/flight/flight.tsx +131 -0
- package/src/features/chat/components/flight/index.ts +2 -0
- package/src/features/chat/components/flight-board/flight-board.model.ts +23 -0
- package/src/features/chat/components/flight-board/flight-board.native.tsx +155 -0
- package/src/features/chat/components/flight-board/flight-board.tsx +160 -0
- package/src/features/chat/components/flight-board/index.ts +2 -0
- package/src/features/chat/components/info/info.model.ts +3 -0
- package/src/features/chat/components/info/info.native.tsx +47 -11
- package/src/features/chat/components/info/info.tsx +43 -10
- package/src/features/chat/components/order/index.ts +3 -0
- package/src/features/chat/components/order/order.model.ts +32 -0
- package/src/features/chat/components/order/order.native.tsx +175 -0
- package/src/features/chat/components/order/order.tsx +176 -0
- package/src/features/chat/components/reservation/index.ts +3 -0
- package/src/features/chat/components/reservation/reservation.model.ts +29 -0
- package/src/features/chat/components/reservation/reservation.native.tsx +159 -0
- package/src/features/chat/components/reservation/reservation.tsx +161 -0
- package/src/features/chat/model/chat.model.ts +16 -0
- package/src/features/chat/renderer/renderer.native.tsx +29 -1
- package/src/features/chat/renderer/renderer.tsx +29 -1
- package/src/native.ts +11 -1
- package/src/utils/flight.utils.ts +35 -0
- package/src/utils/order.utils.ts +28 -0
- package/src/utils/reservation.utils.ts +23 -0
- package/src/utils/status-badge.utils.ts +36 -0
- package/src/utils/theme.utils.ts +9 -0
- package/src/web.ts +11 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ChatComponentProps } from '../../model/chat.model.js';
|
|
2
|
+
import type { ReservationListItem } from './reservation.model.js';
|
|
3
|
+
export declare function Reservation({ data, theme, language, actionLabel, onAction, onSelect, }: ChatComponentProps<ReservationListItem>): import("react").JSX.Element | null;
|
|
4
|
+
//# sourceMappingURL=reservation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reservation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/reservation/reservation.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAkB,MAAM,wBAAqB,CAAC;AAE/E,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,KAAkB,EAClB,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,sCA6IzC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { LocalizedText } from '../../model/chat.model.js';
|
|
2
|
+
export declare enum ReservationStatus {
|
|
3
|
+
Pending = "pending",
|
|
4
|
+
Confirmed = "confirmed",
|
|
5
|
+
Cancelled = "cancelled"
|
|
6
|
+
}
|
|
7
|
+
export interface ReservationRow {
|
|
8
|
+
id: number;
|
|
9
|
+
name: LocalizedText;
|
|
10
|
+
date: string;
|
|
11
|
+
time: string;
|
|
12
|
+
duration?: string;
|
|
13
|
+
price: string;
|
|
14
|
+
status: ReservationStatus;
|
|
15
|
+
statusLabel?: LocalizedText;
|
|
16
|
+
}
|
|
17
|
+
export interface ReservationListItem {
|
|
18
|
+
title: LocalizedText;
|
|
19
|
+
subtitle?: LocalizedText;
|
|
20
|
+
status?: ReservationStatus;
|
|
21
|
+
statusLabel?: LocalizedText;
|
|
22
|
+
reservations: ReservationRow[];
|
|
23
|
+
totalLabel?: LocalizedText;
|
|
24
|
+
total?: string;
|
|
25
|
+
actionLabel?: LocalizedText;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=reservation.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reservation.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/reservation/reservation.model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAAwB,CAAC;AAE5D,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,SAAS,cAAc;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,iBAAiB,CAAC;IAC1B,WAAW,CAAC,EAAE,aAAa,CAAC;CAC7B;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,aAAa,CAAC;CAC7B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ChatComponentProps } from '../../model/chat.model.js';
|
|
2
|
+
import type { ReservationListItem } from './reservation.model.js';
|
|
3
|
+
export declare function Reservation({ data, theme, language, actionLabel, onAction, onSelect, }: ChatComponentProps<ReservationListItem>): import("react").JSX.Element | null;
|
|
4
|
+
//# sourceMappingURL=reservation.native.d.ts.map
|
package/lib/typescript/module/features/chat/components/reservation/reservation.native.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reservation.native.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/reservation/reservation.native.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAkB,MAAM,wBAAqB,CAAC;AAE/E,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,KAAkB,EAClB,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,sCA0IzC"}
|
|
@@ -11,10 +11,25 @@ export declare enum ComponentType {
|
|
|
11
11
|
ServiceList = "serviceList",
|
|
12
12
|
Event = "event",
|
|
13
13
|
EventList = "eventList",
|
|
14
|
-
Info = "info"
|
|
14
|
+
Info = "info",
|
|
15
|
+
Flight = "flight",
|
|
16
|
+
FlightList = "flightList",
|
|
17
|
+
FlightBoard = "flightBoard",
|
|
18
|
+
Order = "order",
|
|
19
|
+
Reservation = "reservation",
|
|
20
|
+
ReservationList = "reservationList"
|
|
15
21
|
}
|
|
16
22
|
export declare enum ItemAction {
|
|
17
|
-
Add = "add"
|
|
23
|
+
Add = "add",
|
|
24
|
+
Manage = "manage",
|
|
25
|
+
Track = "track"
|
|
26
|
+
}
|
|
27
|
+
export declare enum FlightStatus {
|
|
28
|
+
OnTime = "onTime",
|
|
29
|
+
Delayed = "delayed",
|
|
30
|
+
Boarding = "boarding",
|
|
31
|
+
Landed = "landed",
|
|
32
|
+
Cancelled = "cancelled"
|
|
18
33
|
}
|
|
19
34
|
export type ActionHandler<TItem = unknown> = (item: TItem, action?: ItemAction) => void;
|
|
20
35
|
export interface ItemCount {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/model/chat.model.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAC9B,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnD,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,IAAI,SAAS;
|
|
1
|
+
{"version":3,"file":"chat.model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/model/chat.model.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAC9B,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnD,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;CACpC;AAED,oBAAY,UAAU;IACpB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,MAAM,MAAM,aAAa,CAAC,KAAK,GAAG,OAAO,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;AAExF,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB,CAAC,KAAK,GAAG,OAAO;IACjD,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,KAAK,GAAG,KAAK,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,CAAC,CAAC;IACjD,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf"}
|
|
@@ -2,6 +2,10 @@ import type { ProductItem } from '../components/product/product.model.js';
|
|
|
2
2
|
import type { ServiceItem } from '../components/service/service.model.js';
|
|
3
3
|
import type { EventItem } from '../components/event/event.model.js';
|
|
4
4
|
import type { InfoItem } from '../components/info/info.model.js';
|
|
5
|
+
import type { FlightItem } from '../components/flight/flight.model.js';
|
|
6
|
+
import type { FlightBoardItem } from '../components/flight-board/flight-board.model.js';
|
|
7
|
+
import type { OrderListItem } from '../components/order/order.model.js';
|
|
8
|
+
import type { ReservationListItem } from '../components/reservation/reservation.model.js';
|
|
5
9
|
import type { ChatComponentProps } from '../model/chat.model.js';
|
|
6
|
-
export declare function ChatComponentRenderer<TItem extends ProductItem | ServiceItem | EventItem | InfoItem>({ type, ...rest }: ChatComponentProps<TItem>): import("react").JSX.Element | null;
|
|
10
|
+
export declare function ChatComponentRenderer<TItem extends ProductItem | ServiceItem | EventItem | InfoItem | FlightItem | FlightBoardItem | OrderListItem | ReservationListItem>({ type, ...rest }: ChatComponentProps<TItem>): import("react").JSX.Element | null;
|
|
7
11
|
//# sourceMappingURL=renderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/renderer/renderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/renderer/renderer.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAA+B,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAmC,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kDAA+C,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gDAA6C,CAAC;AAEvF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAqB,CAAC;AAE9D,wBAAgB,qBAAqB,CACnC,KAAK,SACD,WAAW,GACX,WAAW,GACX,SAAS,GACT,QAAQ,GACR,UAAU,GACV,eAAe,GACf,aAAa,GACb,mBAAmB,EACvB,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,CAAC,KAAK,CAAC,sCA4B7C"}
|
|
@@ -2,6 +2,10 @@ import type { ProductItem } from '../components/product/product.model.js';
|
|
|
2
2
|
import type { ServiceItem } from '../components/service/service.model.js';
|
|
3
3
|
import type { EventItem } from '../components/event/event.model.js';
|
|
4
4
|
import type { InfoItem } from '../components/info/info.model.js';
|
|
5
|
+
import type { FlightItem } from '../components/flight/flight.model.js';
|
|
6
|
+
import type { FlightBoardItem } from '../components/flight-board/flight-board.model.js';
|
|
7
|
+
import type { OrderListItem } from '../components/order/order.model.js';
|
|
8
|
+
import type { ReservationListItem } from '../components/reservation/reservation.model.js';
|
|
5
9
|
import type { ChatComponentProps } from '../model/chat.model.js';
|
|
6
|
-
export declare function ChatComponentRenderer<TItem extends ProductItem | ServiceItem | EventItem | InfoItem>({ type, ...rest }: ChatComponentProps<TItem>): import("react").JSX.Element | null;
|
|
10
|
+
export declare function ChatComponentRenderer<TItem extends ProductItem | ServiceItem | EventItem | InfoItem | FlightItem | FlightBoardItem | OrderListItem | ReservationListItem>({ type, ...rest }: ChatComponentProps<TItem>): import("react").JSX.Element | null;
|
|
7
11
|
//# sourceMappingURL=renderer.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.native.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/renderer/renderer.native.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderer.native.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/renderer/renderer.native.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAA+B,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAmC,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kDAA+C,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gDAA6C,CAAC;AAEvF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAqB,CAAC;AAE9D,wBAAgB,qBAAqB,CACnC,KAAK,SACD,WAAW,GACX,WAAW,GACX,SAAS,GACT,QAAQ,GACR,UAAU,GACV,eAAe,GACf,aAAa,GACb,mBAAmB,EACvB,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,CAAC,KAAK,CAAC,sCA4B7C"}
|
|
@@ -2,14 +2,24 @@ export { Product } from './features/chat/components/product/product.native.js';
|
|
|
2
2
|
export { Service } from './features/chat/components/service/service.native.js';
|
|
3
3
|
export { Event } from './features/chat/components/event/event.native.js';
|
|
4
4
|
export { Info } from './features/chat/components/info/info.native.js';
|
|
5
|
+
export { Flight } from './features/chat/components/flight/flight.native.js';
|
|
6
|
+
export { FlightBoard } from './features/chat/components/flight-board/flight-board.native.js';
|
|
7
|
+
export { Order } from './features/chat/components/order/order.native.js';
|
|
8
|
+
export { Reservation } from './features/chat/components/reservation/reservation.native.js';
|
|
5
9
|
export { ChatComponentRenderer } from './features/chat/renderer/renderer.native.js';
|
|
6
10
|
export { ChatMessageRenderer } from './features/chat/message/message.native.js';
|
|
7
11
|
export { parseMessage } from './features/chat/message/message.logic.js';
|
|
8
|
-
export { ComponentType, ItemAction, Theme } from './features/chat/model/chat.model.js';
|
|
12
|
+
export { ComponentType, ItemAction, Theme, FlightStatus } from './features/chat/model/chat.model.js';
|
|
13
|
+
export { OrderStatus } from './features/chat/components/order/order.model.js';
|
|
14
|
+
export { ReservationStatus } from './features/chat/components/reservation/reservation.model.js';
|
|
9
15
|
export type { ProductItem } from './features/chat/components/product/product.model.js';
|
|
10
16
|
export type { ServiceItem } from './features/chat/components/service/service.model.js';
|
|
11
17
|
export type { EventItem } from './features/chat/components/event/event.model.js';
|
|
12
18
|
export type { InfoItem } from './features/chat/components/info/info.model.js';
|
|
19
|
+
export type { FlightItem, Airport } from './features/chat/components/flight/flight.model.js';
|
|
20
|
+
export type { FlightBoardItem, FlightRow } from './features/chat/components/flight-board/flight-board.model.js';
|
|
21
|
+
export type { OrderListItem, OrderRow } from './features/chat/components/order/order.model.js';
|
|
22
|
+
export type { ReservationListItem, ReservationRow } from './features/chat/components/reservation/reservation.model.js';
|
|
13
23
|
export type { ChatMessage, ChatMessageProps, MessageBlock, MessageBlockContent, MessageSegment, } from './features/chat/message/message.model.js';
|
|
14
24
|
export type { ActionHandler, ChatComponentProps, ItemCount, Language, LocalizedText, } from './features/chat/model/chat.model.js';
|
|
15
25
|
//# sourceMappingURL=native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../../src/native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sDAAmD,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,sDAAmD,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,kDAA+C,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,gDAA6C,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA0C,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAAwC,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,0CAAuC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,qCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../../src/native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sDAAmD,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,sDAAmD,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,kDAA+C,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,gDAA6C,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,oDAAiD,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,gEAA6D,CAAC;AAC1F,OAAO,EAAE,KAAK,EAAE,MAAM,kDAA+C,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA2D,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA0C,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAAwC,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,0CAAuC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAkC,CAAC;AAClG,OAAO,EAAE,WAAW,EAAE,MAAM,iDAA8C,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,6DAA0D,CAAC;AAC7F,YAAY,EAAE,WAAW,EAAE,MAAM,qDAAkD,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,qDAAkD,CAAC;AACpF,YAAY,EAAE,SAAS,EAAE,MAAM,iDAA8C,CAAC;AAC9E,YAAY,EAAE,QAAQ,EAAE,MAAM,+CAA4C,CAAC;AAC3E,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mDAAgD,CAAC;AAC1F,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,+DAA4D,CAAC;AAC7G,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iDAA8C,CAAC;AAC5F,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,6DAA0D,CAAC;AACpH,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,cAAc,GACf,MAAM,0CAAuC,CAAC;AAC/C,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,aAAa,GACd,MAAM,qCAAkC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FlightStatus, Theme } from '../features/chat/model/chat.model.js';
|
|
2
|
+
export interface FlightStatusStyle {
|
|
3
|
+
dot: string;
|
|
4
|
+
badgeBg: string;
|
|
5
|
+
badgeText: string;
|
|
6
|
+
showDot: boolean;
|
|
7
|
+
label: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function getFlightStatusStyle(status?: FlightStatus, theme?: Theme): FlightStatusStyle;
|
|
10
|
+
//# sourceMappingURL=flight.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flight.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/flight.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,sCAAmC,CAAC;AAExE,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAoBD,wBAAgB,oBAAoB,CAClC,MAAM,GAAE,YAAkC,EAC1C,KAAK,GAAE,KAAkB,GACxB,iBAAiB,CAGnB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Theme } from '../features/chat/model/chat.model.js';
|
|
2
|
+
import { OrderStatus } from '../features/chat/components/order/order.model.js';
|
|
3
|
+
import type { StatusBadgeStyle } from './status-badge.utils.js';
|
|
4
|
+
export declare function getOrderStatusStyle(status?: OrderStatus, theme?: Theme): StatusBadgeStyle & {
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=order.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/order.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAmC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,kDAA+C,CAAC;AAE5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAsB,CAAC;AAU7D,wBAAgB,mBAAmB,CACjC,MAAM,GAAE,WAAiC,EACzC,KAAK,GAAE,KAAkB,GACxB,gBAAgB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAWtC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Theme } from '../features/chat/model/chat.model.js';
|
|
2
|
+
import { ReservationStatus } from '../features/chat/components/reservation/reservation.model.js';
|
|
3
|
+
import type { StatusBadgeStyle } from './status-badge.utils.js';
|
|
4
|
+
export declare function getReservationStatusStyle(status?: ReservationStatus, theme?: Theme): StatusBadgeStyle & {
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=reservation.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reservation.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/reservation.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAmC,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8DAA2D,CAAC;AAE9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAsB,CAAC;AAQ7D,wBAAgB,yBAAyB,CACvC,MAAM,GAAE,iBAA6C,EACrD,KAAK,GAAE,KAAkB,GACxB,gBAAgB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAQtC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Theme } from '../features/chat/model/chat.model.js';
|
|
2
|
+
export declare enum StatusTone {
|
|
3
|
+
Pending = "pending",
|
|
4
|
+
Success = "success",
|
|
5
|
+
Danger = "danger",
|
|
6
|
+
Info = "info",
|
|
7
|
+
Neutral = "neutral"
|
|
8
|
+
}
|
|
9
|
+
export interface StatusBadgeStyle {
|
|
10
|
+
badgeBg: string;
|
|
11
|
+
badgeText: string;
|
|
12
|
+
dot: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function getStatusBadgeStyle(tone: StatusTone, theme?: Theme): StatusBadgeStyle;
|
|
15
|
+
//# sourceMappingURL=status-badge.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-badge.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/status-badge.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAmC,CAAC;AAE1D,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb;AAkBD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,GAAE,KAAkB,GAAG,gBAAgB,CAGjG"}
|
|
@@ -12,6 +12,9 @@ export interface ThemeClasses {
|
|
|
12
12
|
iconBg: string;
|
|
13
13
|
iconText: string;
|
|
14
14
|
iconColor: string;
|
|
15
|
+
mutedIconBg: string;
|
|
16
|
+
mutedIconColor: string;
|
|
17
|
+
dashLine: string;
|
|
15
18
|
}
|
|
16
19
|
export declare function getThemeClasses(theme?: Theme): ThemeClasses;
|
|
17
20
|
//# sourceMappingURL=theme.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/theme.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAmC,CAAC;AAE1D,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"theme.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/theme.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAmC,CAAC;AAE1D,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAsCD,wBAAgB,eAAe,CAAC,KAAK,GAAE,KAAkB,GAAG,YAAY,CAEvE"}
|
|
@@ -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.js';
|
|
8
|
-
export { ComponentType, ItemAction, Theme } from './features/chat/model/chat.model.js';
|
|
12
|
+
export { ComponentType, ItemAction, Theme, FlightStatus } from './features/chat/model/chat.model.js';
|
|
13
|
+
export { OrderStatus } from './features/chat/components/order/order.model.js';
|
|
14
|
+
export { ReservationStatus } from './features/chat/components/reservation/reservation.model.js';
|
|
9
15
|
export type { ProductItem } from './features/chat/components/product/product.model.js';
|
|
10
16
|
export type { ServiceItem } from './features/chat/components/service/service.model.js';
|
|
11
17
|
export type { EventItem } from './features/chat/components/event/event.model.js';
|
|
12
18
|
export type { InfoItem } from './features/chat/components/info/info.model.js';
|
|
19
|
+
export type { FlightItem, Airport } from './features/chat/components/flight/flight.model.js';
|
|
20
|
+
export type { FlightBoardItem, FlightRow } from './features/chat/components/flight-board/flight-board.model.js';
|
|
21
|
+
export type { OrderListItem, OrderRow } from './features/chat/components/order/order.model.js';
|
|
22
|
+
export type { ReservationListItem, ReservationRow } from './features/chat/components/reservation/reservation.model.js';
|
|
13
23
|
export type { ChatMessage, ChatMessageProps, MessageBlock, MessageBlockContent, MessageSegment, } from './features/chat/message/message.model.js';
|
|
14
24
|
export type { ActionHandler, ChatComponentProps, ItemCount, Language, LocalizedText, } from './features/chat/model/chat.model.js';
|
|
15
25
|
//# sourceMappingURL=web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,0CAAuC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,qCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AACnF,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,0CAAuC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAkC,CAAC;AAClG,OAAO,EAAE,WAAW,EAAE,MAAM,iDAA8C,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,6DAA0D,CAAC;AAC7F,YAAY,EAAE,WAAW,EAAE,MAAM,qDAAkD,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,qDAAkD,CAAC;AACpF,YAAY,EAAE,SAAS,EAAE,MAAM,iDAA8C,CAAC;AAC9E,YAAY,EAAE,QAAQ,EAAE,MAAM,+CAA4C,CAAC;AAC3E,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mDAAgD,CAAC;AAC1F,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,+DAA4D,CAAC;AAC7G,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iDAA8C,CAAC;AAC5F,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,6DAA0D,CAAC;AACpH,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,cAAc,GACf,MAAM,0CAAuC,CAAC;AAC/C,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,aAAa,GACd,MAAM,qCAAkC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inorain_development/hotel-smarters-chat-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Cross-platform (React DOM + React Native) chat UI components that render dynamically from an AI-provided { type, data } payload.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface CalendarIconProps {
|
|
2
|
+
size?: number;
|
|
3
|
+
color?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export function CalendarIcon({ size = 16, color = 'currentColor' }: CalendarIconProps) {
|
|
7
|
+
return (
|
|
8
|
+
<svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
9
|
+
<rect x="4" y="5" width="16" height="16" rx="2" stroke={color} strokeWidth={1.8} />
|
|
10
|
+
<path d="M4 9h16M8 3v4M16 3v4" stroke={color} strokeWidth={1.8} strokeLinecap="round" />
|
|
11
|
+
</svg>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface CalendarIconProps {
|
|
2
|
+
size?: number;
|
|
3
|
+
color?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export function CalendarIcon({ size = 16, color = 'currentColor' }: CalendarIconProps) {
|
|
7
|
+
return (
|
|
8
|
+
<svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
9
|
+
<rect x="4" y="5" width="16" height="16" rx="2" stroke={color} strokeWidth={1.8} />
|
|
10
|
+
<path d="M4 9h16M8 3v4M16 3v4" stroke={color} strokeWidth={1.8} strokeLinecap="round" />
|
|
11
|
+
</svg>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface CartIconProps {
|
|
2
|
+
size?: number;
|
|
3
|
+
color?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export function CartIcon({ size = 16, color = 'currentColor' }: CartIconProps) {
|
|
7
|
+
return (
|
|
8
|
+
<svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
9
|
+
<path
|
|
10
|
+
d="M3 4h2l2.4 11.2a1.5 1.5 0 0 0 1.47 1.18h7.86a1.5 1.5 0 0 0 1.47-1.18L21 8H6"
|
|
11
|
+
stroke={color}
|
|
12
|
+
strokeWidth={1.8}
|
|
13
|
+
strokeLinecap="round"
|
|
14
|
+
strokeLinejoin="round"
|
|
15
|
+
/>
|
|
16
|
+
<circle cx="9.5" cy="20" r="1.4" fill={color} />
|
|
17
|
+
<circle cx="17" cy="20" r="1.4" fill={color} />
|
|
18
|
+
</svg>
|
|
19
|
+
);
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ChevronIconProps {
|
|
2
|
+
size?: number;
|
|
3
|
+
color?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export function ChevronIcon({ size = 16, color = 'currentColor' }: ChevronIconProps) {
|
|
7
|
+
return (
|
|
8
|
+
<svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
9
|
+
<path
|
|
10
|
+
d="M6 9l6 6 6-6"
|
|
11
|
+
stroke={color}
|
|
12
|
+
strokeWidth={1.8}
|
|
13
|
+
strokeLinecap="round"
|
|
14
|
+
strokeLinejoin="round"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ChevronIconProps {
|
|
2
|
+
size?: number;
|
|
3
|
+
color?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export function ChevronIcon({ size = 16, color = 'currentColor' }: ChevronIconProps) {
|
|
7
|
+
return (
|
|
8
|
+
<svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
9
|
+
<path
|
|
10
|
+
d="M6 9l6 6 6-6"
|
|
11
|
+
stroke={color}
|
|
12
|
+
strokeWidth={1.8}
|
|
13
|
+
strokeLinecap="round"
|
|
14
|
+
strokeLinejoin="round"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface PlaneIconProps {
|
|
2
|
+
size?: number;
|
|
3
|
+
color?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export function PlaneIcon({ size = 20, color = 'currentColor' }: PlaneIconProps) {
|
|
7
|
+
return (
|
|
8
|
+
<svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
9
|
+
<path
|
|
10
|
+
d="M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"
|
|
11
|
+
fill={color}
|
|
12
|
+
/>
|
|
13
|
+
</svg>
|
|
14
|
+
);
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface PlaneIconProps {
|
|
2
|
+
size?: number;
|
|
3
|
+
color?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export function PlaneIcon({ size = 20, color = 'currentColor' }: PlaneIconProps) {
|
|
7
|
+
return (
|
|
8
|
+
<svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
9
|
+
<path
|
|
10
|
+
d="M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"
|
|
11
|
+
fill={color}
|
|
12
|
+
/>
|
|
13
|
+
</svg>
|
|
14
|
+
);
|
|
15
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { Pressable, Text, View } from 'react-native';
|
|
3
|
+
import { getThemeClasses } from '../../../../utils/theme.utils';
|
|
4
|
+
import { getFlightStatusStyle } from '../../../../utils/flight.utils';
|
|
5
|
+
import { resolveText } from '../../../../utils/i18n.utils';
|
|
6
|
+
import { Collapsible } from '../common/collapsible.native';
|
|
7
|
+
import { PlaneIcon } from '../common/plane-icon.native';
|
|
8
|
+
import { ChevronIcon } from '../common/chevron-icon.native';
|
|
9
|
+
import { FlightStatus, Theme } from '../../model/chat.model';
|
|
10
|
+
import type { FlightItem } from './flight.model';
|
|
11
|
+
|
|
12
|
+
export interface FlightCardProps {
|
|
13
|
+
item: FlightItem;
|
|
14
|
+
theme: Theme;
|
|
15
|
+
language?: string;
|
|
16
|
+
accent: boolean;
|
|
17
|
+
defaultExpanded: boolean;
|
|
18
|
+
onSelect?: (item: FlightItem) => void;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function FlightCard({ item, theme, language, accent, defaultExpanded, onSelect }: FlightCardProps) {
|
|
22
|
+
const c = getThemeClasses(theme);
|
|
23
|
+
const [expanded, setExpanded] = useState(defaultExpanded);
|
|
24
|
+
|
|
25
|
+
const s = getFlightStatusStyle(item.status ?? FlightStatus.OnTime, theme);
|
|
26
|
+
const statusLabel = item.statusLabel ? resolveText(item.statusLabel, language) : s.label;
|
|
27
|
+
const airline = resolveText(item.airline, language);
|
|
28
|
+
const fromCity = resolveText(item.from.city, language);
|
|
29
|
+
const toCity = resolveText(item.to.city, language);
|
|
30
|
+
const subline = item.date
|
|
31
|
+
? `${resolveText(item.date, language)}${item.terminal ? ` · ${resolveText(item.terminal, language)}` : ''}`
|
|
32
|
+
: '';
|
|
33
|
+
const compact = `${item.from.code} → ${item.to.code} · ${item.from.time}`;
|
|
34
|
+
|
|
35
|
+
const iconBg = accent ? c.iconBg : c.mutedIconBg;
|
|
36
|
+
const iconColor = accent ? c.iconColor : c.mutedIconColor;
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<View className={`rounded-2xl border p-3 ${c.surface} ${c.border}`}>
|
|
40
|
+
<Pressable
|
|
41
|
+
className="flex-row items-center gap-3"
|
|
42
|
+
onPress={() => {
|
|
43
|
+
setExpanded((v) => !v);
|
|
44
|
+
onSelect?.(item);
|
|
45
|
+
}}
|
|
46
|
+
>
|
|
47
|
+
<View className={`h-11 w-11 items-center justify-center rounded-xl ${iconBg}`}>
|
|
48
|
+
<PlaneIcon size={20} color={iconColor} />
|
|
49
|
+
</View>
|
|
50
|
+
|
|
51
|
+
<View className="flex-1 gap-0.5">
|
|
52
|
+
<Text className={`text-base font-bold down-sm:text-sm ${c.title}`} numberOfLines={2}>
|
|
53
|
+
{airline} · {item.flightNumber}
|
|
54
|
+
</Text>
|
|
55
|
+
<Text className={`text-xs ${c.subtitle}`} numberOfLines={1}>
|
|
56
|
+
{expanded ? subline || compact : compact}
|
|
57
|
+
</Text>
|
|
58
|
+
</View>
|
|
59
|
+
|
|
60
|
+
<View className={`flex-row items-center gap-1.5 rounded-full px-2.5 py-1 ${s.badgeBg}`}>
|
|
61
|
+
{s.showDot ? <View className={`h-1.5 w-1.5 rounded-full ${s.dot}`} /> : null}
|
|
62
|
+
<Text className={`text-xs font-semibold ${s.badgeText}`}>{statusLabel}</Text>
|
|
63
|
+
</View>
|
|
64
|
+
|
|
65
|
+
<View className={expanded ? 'rotate-180' : undefined}>
|
|
66
|
+
<ChevronIcon size={18} color={c.mutedIconColor} />
|
|
67
|
+
</View>
|
|
68
|
+
</Pressable>
|
|
69
|
+
|
|
70
|
+
<Collapsible expanded={expanded}>
|
|
71
|
+
<View className="mt-4 flex-row items-center">
|
|
72
|
+
<View className="items-start">
|
|
73
|
+
<Text className={`text-3xl font-bold down-sm:text-2xl ${c.title}`}>{item.from.code}</Text>
|
|
74
|
+
<Text className={`text-base font-semibold ${c.title}`}>{item.from.time}</Text>
|
|
75
|
+
<Text className={`text-xs ${c.subtitle}`}>{fromCity}</Text>
|
|
76
|
+
</View>
|
|
77
|
+
|
|
78
|
+
<View className="flex-1 items-center px-3">
|
|
79
|
+
{item.duration ? <Text className={`mb-1 text-xs ${c.subtitle}`}>{item.duration}</Text> : null}
|
|
80
|
+
<View className="w-full flex-row items-center">
|
|
81
|
+
<View className={`h-2 w-2 rounded-full ${s.dot}`} />
|
|
82
|
+
<View className={`flex-1 border-t border-dashed ${c.dashLine}`} />
|
|
83
|
+
<View className="rotate-90">
|
|
84
|
+
<PlaneIcon size={16} color={c.iconColor} />
|
|
85
|
+
</View>
|
|
86
|
+
<View className={`flex-1 border-t border-dashed ${c.dashLine}`} />
|
|
87
|
+
<View className={`h-2 w-2 rounded-full ${s.dot}`} />
|
|
88
|
+
</View>
|
|
89
|
+
</View>
|
|
90
|
+
|
|
91
|
+
<View className="items-end">
|
|
92
|
+
<Text className={`text-3xl font-bold down-sm:text-2xl ${c.title}`}>{item.to.code}</Text>
|
|
93
|
+
<Text className={`text-base font-semibold ${c.title}`}>{item.to.time}</Text>
|
|
94
|
+
<Text className={`text-xs ${c.subtitle}`}>{toCity}</Text>
|
|
95
|
+
</View>
|
|
96
|
+
</View>
|
|
97
|
+
</Collapsible>
|
|
98
|
+
</View>
|
|
99
|
+
);
|
|
100
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { getThemeClasses } from '../../../../utils/theme.utils';
|
|
3
|
+
import { getFlightStatusStyle } from '../../../../utils/flight.utils';
|
|
4
|
+
import { resolveText } from '../../../../utils/i18n.utils';
|
|
5
|
+
import { Collapsible } from '../common/collapsible';
|
|
6
|
+
import { PlaneIcon } from '../common/plane-icon';
|
|
7
|
+
import { ChevronIcon } from '../common/chevron-icon';
|
|
8
|
+
import { FlightStatus, Theme } from '../../model/chat.model';
|
|
9
|
+
import type { FlightItem } from './flight.model';
|
|
10
|
+
|
|
11
|
+
export interface FlightCardProps {
|
|
12
|
+
item: FlightItem;
|
|
13
|
+
theme: Theme;
|
|
14
|
+
language?: string;
|
|
15
|
+
accent: boolean;
|
|
16
|
+
defaultExpanded: boolean;
|
|
17
|
+
onSelect?: (item: FlightItem) => void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function FlightCard({ item, theme, language, accent, defaultExpanded, onSelect }: FlightCardProps) {
|
|
21
|
+
const c = getThemeClasses(theme);
|
|
22
|
+
const [expanded, setExpanded] = useState(defaultExpanded);
|
|
23
|
+
|
|
24
|
+
const s = getFlightStatusStyle(item.status ?? FlightStatus.OnTime, theme);
|
|
25
|
+
const statusLabel = item.statusLabel ? resolveText(item.statusLabel, language) : s.label;
|
|
26
|
+
const airline = resolveText(item.airline, language);
|
|
27
|
+
const fromCity = resolveText(item.from.city, language);
|
|
28
|
+
const toCity = resolveText(item.to.city, language);
|
|
29
|
+
const subline = item.date
|
|
30
|
+
? `${resolveText(item.date, language)}${item.terminal ? ` · ${resolveText(item.terminal, language)}` : ''}`
|
|
31
|
+
: '';
|
|
32
|
+
const compact = `${item.from.code} → ${item.to.code} · ${item.from.time}`;
|
|
33
|
+
|
|
34
|
+
const iconBg = accent ? c.iconBg : c.mutedIconBg;
|
|
35
|
+
const iconColor = accent ? c.iconColor : c.mutedIconColor;
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<div className={`rounded-2xl border p-3 ${c.surface} ${c.border}`}>
|
|
39
|
+
<button
|
|
40
|
+
type="button"
|
|
41
|
+
className="flex w-full items-center gap-3 text-left"
|
|
42
|
+
onClick={() => {
|
|
43
|
+
setExpanded((v) => !v);
|
|
44
|
+
onSelect?.(item);
|
|
45
|
+
}}
|
|
46
|
+
>
|
|
47
|
+
<div className={`flex h-11 w-11 shrink-0 items-center justify-center rounded-xl ${iconBg}`}>
|
|
48
|
+
<PlaneIcon size={20} color={iconColor} />
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<div className="flex min-w-0 flex-1 flex-col gap-0.5">
|
|
52
|
+
<span className={`text-base font-bold down-sm:text-sm ${c.title}`}>
|
|
53
|
+
{airline} · {item.flightNumber}
|
|
54
|
+
</span>
|
|
55
|
+
<span className={`truncate text-xs ${c.subtitle}`}>
|
|
56
|
+
{expanded ? subline || compact : compact}
|
|
57
|
+
</span>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<div className={`flex shrink-0 items-center gap-1.5 rounded-full px-2.5 py-1 ${s.badgeBg}`}>
|
|
61
|
+
{s.showDot ? <span className={`h-1.5 w-1.5 rounded-full ${s.dot}`} /> : null}
|
|
62
|
+
<span className={`text-xs font-semibold ${s.badgeText}`}>{statusLabel}</span>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<span className={`shrink-0 transition-transform ${expanded ? 'rotate-180' : ''}`}>
|
|
66
|
+
<ChevronIcon size={18} color={c.mutedIconColor} />
|
|
67
|
+
</span>
|
|
68
|
+
</button>
|
|
69
|
+
|
|
70
|
+
<Collapsible expanded={expanded}>
|
|
71
|
+
<div className="mt-4 flex items-center">
|
|
72
|
+
<div className="flex flex-col items-start">
|
|
73
|
+
<span className={`text-3xl font-bold down-sm:text-2xl ${c.title}`}>{item.from.code}</span>
|
|
74
|
+
<span className={`text-base font-semibold ${c.title}`}>{item.from.time}</span>
|
|
75
|
+
<span className={`text-xs ${c.subtitle}`}>{fromCity}</span>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<div className="flex flex-1 flex-col items-center px-3">
|
|
79
|
+
{item.duration ? <span className={`mb-1 text-xs ${c.subtitle}`}>{item.duration}</span> : null}
|
|
80
|
+
<div className="flex w-full items-center">
|
|
81
|
+
<span className={`h-2 w-2 shrink-0 rounded-full ${s.dot}`} />
|
|
82
|
+
<span className={`flex-1 border-t border-dashed ${c.dashLine}`} />
|
|
83
|
+
<span className="rotate-90">
|
|
84
|
+
<PlaneIcon size={16} color={c.iconColor} />
|
|
85
|
+
</span>
|
|
86
|
+
<span className={`flex-1 border-t border-dashed ${c.dashLine}`} />
|
|
87
|
+
<span className={`h-2 w-2 shrink-0 rounded-full ${s.dot}`} />
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
<div className="flex flex-col items-end">
|
|
92
|
+
<span className={`text-3xl font-bold down-sm:text-2xl ${c.title}`}>{item.to.code}</span>
|
|
93
|
+
<span className={`text-base font-semibold ${c.title}`}>{item.to.time}</span>
|
|
94
|
+
<span className={`text-xs ${c.subtitle}`}>{toCity}</span>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</Collapsible>
|
|
98
|
+
</div>
|
|
99
|
+
);
|
|
100
|
+
}
|