sme-pos-package 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -0
- package/package.json +4 -1
- package/dist/index.css.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/tailwind.preset.mjs.map +0 -1
- package/public/assets/images/bank-logos.png +0 -0
- package/public/assets/images/banner1.png +0 -0
- package/public/assets/images/banner2.png +0 -0
- package/public/assets/images/banner3.png +0 -0
- package/public/assets/images/banner4.png +0 -0
- package/public/assets/images/cashier.svg +0 -9
- package/public/assets/images/empty-cart.png +0 -0
- package/public/assets/images/empty-table-state.png +0 -0
- package/public/assets/images/layout-display/left-layout.png +0 -0
- package/public/assets/images/layout-display/right-layout.png +0 -0
- package/public/assets/images/modal-illustration.png +0 -0
- package/public/assets/images/order-empty-state.png +0 -0
- package/public/assets/images/order.png +0 -0
- package/public/assets/images/payment-success-label.png +0 -0
- package/public/assets/images/table-empty.png +0 -0
- package/public/assets/images/take-away.png +0 -0
- package/public/assets/lottie/loading.json +0 -1
- package/public/assets/lottie/soft_pos.json +0 -1
- package/public/assets/lottie/success.json +0 -1
- package/public/config.json +0 -27
- package/public/env.json +0 -17
- package/src/animations/success.json +0 -9730
- package/src/assets/icons/breadcrumbs-icon.tsx +0 -85
- package/src/assets/icons/cart-icon.tsx +0 -14
- package/src/assets/icons/common.tsx +0 -270
- package/src/assets/icons/customer-view-icon.tsx +0 -20
- package/src/assets/icons/dining-table.tsx +0 -34
- package/src/assets/icons/edit-line-icon.tsx +0 -18
- package/src/assets/icons/emenu-icon.tsx +0 -39
- package/src/assets/icons/file-close-line-icon.tsx +0 -18
- package/src/assets/icons/helper-icon.tsx +0 -84
- package/src/assets/icons/home-gear-line-icon.tsx +0 -18
- package/src/assets/icons/kanban-icon.tsx +0 -16
- package/src/assets/icons/loading-icon.tsx +0 -45
- package/src/assets/icons/logout-box-line-icon.tsx +0 -18
- package/src/assets/icons/order-icon.tsx +0 -92
- package/src/assets/icons/payment-icon.tsx +0 -429
- package/src/assets/icons/pincode.tsx +0 -196
- package/src/assets/icons/pos-connect-icon.tsx +0 -67
- package/src/assets/icons/pos-device-icon.tsx +0 -52
- package/src/assets/icons/pos-icon.tsx +0 -75
- package/src/assets/icons/printer-line-icon.tsx +0 -18
- package/src/assets/icons/star-icon.tsx +0 -174
- package/src/assets/icons/table-icon.tsx +0 -77
- package/src/assets/icons/user-add-line-icon.tsx +0 -33
- package/src/assets/icons/user-icon.tsx +0 -65
- package/src/components/common/button-action.tsx +0 -46
- package/src/components/common/button-icon.tsx +0 -23
- package/src/components/common/dropdown/index.tsx +0 -79
- package/src/components/common/empty-state.tsx +0 -60
- package/src/components/common/header/index.tsx +0 -89
- package/src/components/common/header/tabs.tsx +0 -119
- package/src/components/common/image.tsx +0 -20
- package/src/components/common/input/index.tsx +0 -55
- package/src/components/common/input/radio-group.tsx +0 -75
- package/src/components/common/input/text-area.tsx +0 -28
- package/src/components/common/modal/delete-confirm-modal-container.tsx +0 -65
- package/src/components/common/modal/index.ts +0 -2
- package/src/components/common/modal/modal-direction.tsx +0 -125
- package/src/components/common/modal/modal-header.tsx +0 -37
- package/src/components/common/modal/modal-wrapper.tsx +0 -56
- package/src/components/common/modal/modal-zoom.tsx +0 -61
- package/src/components/common/pagination.tsx +0 -95
- package/src/components/common/refresh-button.tsx +0 -28
- package/src/components/common/search-bar.tsx +0 -27
- package/src/components/common/search.tsx +0 -59
- package/src/components/common/skeleton.tsx +0 -7
- package/src/components/common/tabs-layout.tsx +0 -98
- package/src/components/common/use-check-session.tsx +0 -19
- package/src/components/customer-management/add-customer/add-customer-drawer.tsx +0 -286
- package/src/components/customer-management/add-customer/address-select.tsx +0 -51
- package/src/components/customer-management/choose-customer-drawer.tsx +0 -177
- package/src/components/customer-management/customer-info-drawer.tsx +0 -166
- package/src/components/customer-management/customer-no-data.tsx +0 -18
- package/src/components/emenu/emenu-qr-code.tsx +0 -59
- package/src/components/emenu/menu-link.tsx +0 -67
- package/src/components/index.ts +0 -8
- package/src/components/kanban-template/kitchen-template.tsx +0 -60
- package/src/components/kanban-template/pos-order-template.tsx +0 -77
- package/src/components/kanban-template/pos-template.tsx +0 -170
- package/src/components/kitchen-management/change-status-confirm-modal.tsx +0 -61
- package/src/components/kitchen-management/index.ts +0 -1
- package/src/components/kitchen-management/kitchen-order/index.tsx +0 -153
- package/src/components/kitchen-management/kitchen-order/line.tsx +0 -78
- package/src/components/kitchen-management/kitchen-order/state.tsx +0 -52
- package/src/components/kitchen-management/kitchen-status.tsx +0 -69
- package/src/components/kitchen-management/orders-kitchen-management.tsx +0 -113
- package/src/components/order-management/index.tsx +0 -128
- package/src/components/order-management/order-actions.tsx +0 -46
- package/src/components/order-management/order-detail/header.tsx +0 -37
- package/src/components/order-management/order-detail/index.ts +0 -3
- package/src/components/order-management/order-detail/information.tsx +0 -96
- package/src/components/order-management/order-detail/order-detail.tsx +0 -84
- package/src/components/order-management/order-detail/order-line.tsx +0 -56
- package/src/components/order-management/order-detail/summary.tsx +0 -221
- package/src/components/order-management/order-header.tsx +0 -113
- package/src/components/order-management/order-pagination.tsx +0 -49
- package/src/components/order-management/order-status.tsx +0 -58
- package/src/components/order-management/order-table.tsx +0 -179
- package/src/components/order-management/order-tabs.tsx +0 -48
- package/src/components/pos-management/add-product-from-barcode/index.tsx +0 -97
- package/src/components/pos-management/cart-content/action-line.tsx +0 -81
- package/src/components/pos-management/cart-content/cancel-order-line-modal.tsx +0 -41
- package/src/components/pos-management/cart-content/cart-item.tsx +0 -173
- package/src/components/pos-management/cart-content/cart-items.tsx +0 -130
- package/src/components/pos-management/cart-content/draft-orders/draft-order-line.tsx +0 -67
- package/src/components/pos-management/cart-content/draft-orders/index.tsx +0 -40
- package/src/components/pos-management/cart-content/edit-cart-modal.tsx +0 -11
- package/src/components/pos-management/cart-content/index.tsx +0 -260
- package/src/components/pos-management/cart-content/no-select-order.tsx +0 -26
- package/src/components/pos-management/cart-content/order-info/customer-info.tsx +0 -53
- package/src/components/pos-management/cart-content/order-info/index.tsx +0 -109
- package/src/components/pos-management/cart-content/order-total.tsx +0 -36
- package/src/components/pos-management/cart-content/orders-line.tsx +0 -72
- package/src/components/pos-management/menu-content/category-tab.tsx +0 -38
- package/src/components/pos-management/menu-content/create-order-modal.tsx +0 -65
- package/src/components/pos-management/menu-content/product-content.tsx +0 -93
- package/src/components/pos-management/menu-content/product-detail/info.tsx +0 -28
- package/src/components/pos-management/menu-content/product-detail/modal.tsx +0 -148
- package/src/components/pos-management/menu-content/product-detail/option.tsx +0 -87
- package/src/components/pos-management/menu-content/product-detail/quantity-control.tsx +0 -155
- package/src/components/pos-management/menu-content/product-detail/sale-keypad.tsx +0 -100
- package/src/components/pos-management/menu-content/product-item.tsx +0 -65
- package/src/components/pos-management/order-helper/cancel-order-confirm.tsx +0 -43
- package/src/components/pos-management/order-helper/history-call.tsx +0 -105
- package/src/components/pos-management/order-helper/order-helper-modal.tsx +0 -116
- package/src/components/pos-management/payment-content/bill/actions.tsx +0 -46
- package/src/components/pos-management/payment-content/bill/content.tsx +0 -207
- package/src/components/pos-management/payment-content/bill/index.tsx +0 -18
- package/src/components/pos-management/payment-content/card-payment/index.tsx +0 -124
- package/src/components/pos-management/payment-content/card-payment/pos-payment/pos-connect.tsx +0 -183
- package/src/components/pos-management/payment-content/card-payment/pos-payment/qr-connect.tsx +0 -185
- package/src/components/pos-management/payment-content/card-payment/waiting-for-payment-pos-modal.tsx +0 -37
- package/src/components/pos-management/payment-content/cash-payment/index.tsx +0 -216
- package/src/components/pos-management/payment-content/index.tsx +0 -70
- package/src/components/pos-management/payment-content/payment-info.tsx +0 -67
- package/src/components/pos-management/payment-content/payment-layout.tsx +0 -16
- package/src/components/pos-management/payment-content/payment-method-cards.tsx +0 -99
- package/src/components/pos-management/payment-content/qr-payment/index.tsx +0 -118
- package/src/components/pos-management/payment-content/qr-payment/qr_code.js +0 -29
- package/src/components/pos-management/payment-content/qr-payment/vietqr.js +0 -436
- package/src/components/pos-management/payment-content/session-close-modal.tsx +0 -35
- package/src/components/pos-management/payment-content/soft-pos-payment/index.tsx +0 -48
- package/src/components/pos-management/pos-helpers/back-confirm.tsx +0 -45
- package/src/components/pos-management/pos-helpers/index.tsx +0 -135
- package/src/components/pos-management/pos-helpers/layout-display-modal.tsx +0 -99
- package/src/components/pos-management/search.tsx +0 -48
- package/src/components/pos-management/table-content/filtered-tables.tsx +0 -59
- package/src/components/pos-management/table-content/floor-tabs.tsx +0 -65
- package/src/components/pos-management/table-content/index.tsx +0 -76
- package/src/components/pos-management/table-content/table-item.tsx +0 -127
- package/src/components/pos-management/table-content/tables.tsx +0 -96
- package/src/components/restaurant-management/add-floor-modal.tsx +0 -133
- package/src/components/restaurant-management/add-table-modal.tsx +0 -198
- package/src/components/restaurant-management/delete-floor-confirm-modal.tsx +0 -42
- package/src/components/restaurant-management/delete-table-confirm-modal.tsx +0 -51
- package/src/components/restaurant-management/header.tsx +0 -22
- package/src/components/restaurant-management/index.tsx +0 -54
- package/src/components/restaurant-management/left-side.tsx +0 -51
- package/src/components/restaurant-management/right-side.tsx +0 -179
- package/src/components/restaurant-management/table-empty.tsx +0 -43
- package/src/components/session-management/close-session-modal/actions.tsx +0 -45
- package/src/components/session-management/close-session-modal/close-session-confirm.tsx +0 -157
- package/src/components/session-management/close-session-modal/close-session-ticket.tsx +0 -218
- package/src/components/session-management/close-session-modal/container.tsx +0 -25
- package/src/components/session-management/close-session-modal/draft-orders-confirm.tsx +0 -53
- package/src/components/session-management/close-session-modal/draft-orders-summary.tsx +0 -82
- package/src/components/session-management/close-session-modal/draft-orders.tsx +0 -34
- package/src/components/session-management/close-session-modal/index.tsx +0 -35
- package/src/components/session-management/close-session-modal/order/index.ts +0 -1
- package/src/components/session-management/close-session-modal/order/order-line.tsx +0 -64
- package/src/components/session-management/close-session-modal/order/orders-in-draft.tsx +0 -31
- package/src/components/session-management/close-session-modal/session-summary.tsx +0 -165
- package/src/components/session-management/index.ts +0 -1
- package/src/components/session-management/open-shift/index.tsx +0 -172
- package/src/components/table-management/index.tsx +0 -0
- package/src/constants/api/index.ts +0 -1
- package/src/constants/headers.constant.tsx +0 -24
- package/src/constants/index.ts +0 -1
- package/src/constants/language.store.ts +0 -21
- package/src/constants/methods.constant.ts +0 -10
- package/src/constants/order-state.ts +0 -8
- package/src/constants/payment-color.constant.ts +0 -26
- package/src/constants/query.constant.ts +0 -14
- package/src/constants/routes.constants.ts +0 -23
- package/src/constants/template-name.constant.ts +0 -9
- package/src/hooks/bill/use-get-bill-information.ts +0 -49
- package/src/hooks/bill/use-print-bill.tsx +0 -0
- package/src/hooks/common/load-env-config.ts +0 -98
- package/src/hooks/common/use-back.ts +0 -13
- package/src/hooks/common/use-broadcast.ts +0 -22
- package/src/hooks/common/use-click-outside.ts +0 -58
- package/src/hooks/common/use-get-base64-photo.ts +0 -71
- package/src/hooks/common/use-get-query.ts +0 -25
- package/src/hooks/common/use-pos.ts +0 -21
- package/src/hooks/common/use-query-params.ts +0 -89
- package/src/hooks/common/use-speech.ts +0 -36
- package/src/hooks/customer/use-customer-provider.ts +0 -247
- package/src/hooks/floor/use-floor-provider.ts +0 -172
- package/src/hooks/kitchen/use-kitchen-provider.ts +0 -80
- package/src/hooks/order/use-get-point-reward.ts +0 -50
- package/src/hooks/order/use-loop-fetch-order.ts +0 -30
- package/src/hooks/order/use-order-items.ts +0 -61
- package/src/hooks/order/use-orders.ts +0 -76
- package/src/hooks/payment/use-payment-provider.ts +0 -221
- package/src/hooks/product/use-product-provider.ts +0 -87
- package/src/hooks/session/use-check-session.tsx +0 -19
- package/src/hooks/session/use-session-provider.ts +0 -79
- package/src/hooks/table/use-pos-table-provider.ts +0 -193
- package/src/index.css +0 -5
- package/src/index.ts +0 -13
- package/src/layouts/common.tsx +0 -15
- package/src/layouts/index.ts +0 -4
- package/src/layouts/pos-layout.tsx +0 -33
- package/src/layouts/pos-order-layout.tsx +0 -43
- package/src/layouts/sale-layout.tsx +0 -25
- package/src/locales/en.json +0 -394
- package/src/locales/vi.json +0 -400
- package/src/pages/index.ts +0 -4
- package/src/pages/login/index.tsx +0 -128
- package/src/pages/pincode/index.tsx +0 -198
- package/src/pages/pos/kitchen-management/layout.tsx +0 -18
- package/src/pages/pos/management-floor/index.tsx +0 -7
- package/src/pages/pos/management-order/index.tsx +0 -7
- package/src/pages/pos/management-order/order-detail/index.tsx +0 -7
- package/src/pages/pos/management-table/index.tsx +0 -0
- package/src/pages/pos/payment-success/index.tsx +0 -75
- package/src/provider/app-provider.tsx +0 -56
- package/src/provider/fallback/custom-error.tsx +0 -26
- package/src/provider/main-provider.tsx +0 -41
- package/src/provider/meta-provider.tsx +0 -72
- package/src/provider/modal-provider.tsx +0 -48
- package/src/provider/notification-provider.tsx +0 -64
- package/src/provider/pos-provider/close-session-provider/index.tsx +0 -207
- package/src/provider/pos-provider/customer-provider/index.tsx +0 -30
- package/src/provider/pos-provider/floor-provider/index.tsx +0 -39
- package/src/provider/pos-provider/index.ts +0 -6
- package/src/provider/pos-provider/kitchen-provider/index.tsx +0 -30
- package/src/provider/pos-provider/order-detail-provider/index.tsx +0 -233
- package/src/provider/pos-provider/order-provider/index.tsx +0 -803
- package/src/provider/pos-provider/payment-provider/index.tsx +0 -30
- package/src/provider/pos-provider/product-provider/index.tsx +0 -30
- package/src/provider/pos-provider/sale-provider/index.tsx +0 -168
- package/src/provider/pos-provider/session-provider/index.tsx +0 -30
- package/src/provider/pos-provider/socket-provider/index.tsx +0 -118
- package/src/provider/pos-provider/table-provider/index.tsx +0 -30
- package/src/provider/public-provider.tsx +0 -104
- package/src/provider/use-session-provider.ts +0 -79
- package/src/router/app-router.tsx +0 -38
- package/src/router/index.tsx +0 -26
- package/src/router/pos-route.tsx +0 -75
- package/src/router/protected-route.tsx +0 -16
- package/src/router/public-route.tsx +0 -11
- package/src/store/header/index.ts +0 -21
- package/src/store/session/index.ts +0 -25
- package/src/store/states/cart.state.ts +0 -135
- package/src/store/states/close-session.state.ts +0 -20
- package/src/store/states/customer.state.ts +0 -19
- package/src/store/states/payment.state.ts +0 -14
- package/src/styles/base.css +0 -212
- package/src/styles/common.css +0 -65
- package/src/styles/lib/tailwind.css +0 -0
- package/src/styles/lib/tailwind.theme.css +0 -34
- package/src/styles/loading.css +0 -72
- package/src/styles/main.css +0 -5
- package/src/styles/refreshing-content.css +0 -55
- package/src/styles/text.css +0 -44
- package/src/types/account.ts +0 -61
- package/src/types/branch.ts +0 -6
- package/src/types/category.ts +0 -13
- package/src/types/common.ts +0 -4
- package/src/types/customer.ts +0 -52
- package/src/types/dashboard.ts +0 -18
- package/src/types/edc.ts +0 -37
- package/src/types/export-e-invoice.ts +0 -17
- package/src/types/filter.d.ts +0 -12
- package/src/types/floor/floor.ts +0 -16
- package/src/types/floor.d.ts +0 -36
- package/src/types/index.ts +0 -127
- package/src/types/invoice.ts +0 -32
- package/src/types/modal.ts +0 -15
- package/src/types/notification.ts +0 -12
- package/src/types/order.ts +0 -182
- package/src/types/payment.ts +0 -44
- package/src/types/product/product.ts +0 -47
- package/src/types/product.ts +0 -137
- package/src/types/provider-info.d.ts +0 -14
- package/src/types/qr.d.ts +0 -25
- package/src/types/report.d.ts +0 -43
- package/src/types/sale.d.ts +0 -68
- package/src/types/search.d.ts +0 -7
- package/src/types/session.d.ts +0 -30
- package/src/types/shop-qr.d.ts +0 -89
- package/src/types/staff.d.ts +0 -35
- package/src/types/store.d.ts +0 -25
- package/src/types/table.d.ts +0 -57
- package/src/utils/close-session-ticket.tsx +0 -129
- package/src/utils/functions.ts +0 -299
- package/src/utils/i18n.ts +0 -25
- package/src/utils/pos/bill.ts +0 -156
- package/src/utils/pos/convert-order.ts +0 -58
- package/src/utils/pos/helpers.ts +0 -48
- package/src/utils/pos/session.ts +0 -44
- package/src/utils/storages/index.ts +0 -1
- package/src/utils/storages/local-storage.ts +0 -72
- package/tailwind.preset.ts +0 -25
- package/tsconfig.json +0 -30
- package/tsup.config.ts +0 -30
package/src/styles/loading.css
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
.loading-container {
|
|
2
|
-
display: flex;
|
|
3
|
-
justify-content: space-around;
|
|
4
|
-
align-items: center;
|
|
5
|
-
height: 48px;
|
|
6
|
-
margin: auto;
|
|
7
|
-
width: fit-content;
|
|
8
|
-
gap: 8px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/* .loading-item {
|
|
12
|
-
border-radius: 10px;
|
|
13
|
-
width: 6.86px;
|
|
14
|
-
height: 28.8px;
|
|
15
|
-
background-color: var(--primary);
|
|
16
|
-
opacity: 0.2;
|
|
17
|
-
transition: height 0.2s, background-color 0.2s;
|
|
18
|
-
} */
|
|
19
|
-
|
|
20
|
-
.loading-container-small {
|
|
21
|
-
display: flex;
|
|
22
|
-
justify-content: space-around;
|
|
23
|
-
align-items: center;
|
|
24
|
-
height: 24px;
|
|
25
|
-
margin: auto;
|
|
26
|
-
width: fit-content;
|
|
27
|
-
gap: 4px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.loading-item {
|
|
31
|
-
border-radius: 10px;
|
|
32
|
-
width: 6.86px;
|
|
33
|
-
height: 28.8px;
|
|
34
|
-
background: var(--color-primary);
|
|
35
|
-
opacity: 0.2;
|
|
36
|
-
transition: height 0.2s, background-color 0.2s;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.loading-item-small {
|
|
40
|
-
border-radius: 8px;
|
|
41
|
-
width: 4px;
|
|
42
|
-
height: 14px;
|
|
43
|
-
background: var(--color-primary);
|
|
44
|
-
opacity: 0.2;
|
|
45
|
-
transition: height 0.2s, background-color 0.2s;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.loading-item.active {
|
|
49
|
-
height: 48px;
|
|
50
|
-
background: var(--color-primary);
|
|
51
|
-
opacity: 0.8;
|
|
52
|
-
}
|
|
53
|
-
.loading-item-small.active {
|
|
54
|
-
height: 24px;
|
|
55
|
-
background: var(--color-primary);
|
|
56
|
-
opacity: 0.8;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@keyframes spinkey {
|
|
60
|
-
from {
|
|
61
|
-
transform: rotate(0deg);
|
|
62
|
-
}
|
|
63
|
-
to {
|
|
64
|
-
transform: rotate(360deg);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
.spin {
|
|
68
|
-
animation: spinkey 2.4s linear infinite;
|
|
69
|
-
backface-visibility: hidden;
|
|
70
|
-
perspective: 1000px;
|
|
71
|
-
-webkit-animation: spinkey 2.4s linear;
|
|
72
|
-
}
|
package/src/styles/main.css
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
.lds-ellipsis {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
position: relative;
|
|
4
|
-
width: 64px;
|
|
5
|
-
height: 64px;
|
|
6
|
-
}
|
|
7
|
-
.lds-ellipsis div {
|
|
8
|
-
position: absolute;
|
|
9
|
-
top: 27px;
|
|
10
|
-
width: 11px;
|
|
11
|
-
height: 11px;
|
|
12
|
-
border-radius: 50%;
|
|
13
|
-
background: #fff;
|
|
14
|
-
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
15
|
-
}
|
|
16
|
-
.lds-ellipsis div:nth-child(1) {
|
|
17
|
-
left: 6px;
|
|
18
|
-
animation: lds-ellipsis1 0.6s infinite;
|
|
19
|
-
}
|
|
20
|
-
.lds-ellipsis div:nth-child(2) {
|
|
21
|
-
left: 6px;
|
|
22
|
-
animation: lds-ellipsis2 0.6s infinite;
|
|
23
|
-
}
|
|
24
|
-
.lds-ellipsis div:nth-child(3) {
|
|
25
|
-
left: 26px;
|
|
26
|
-
animation: lds-ellipsis2 0.6s infinite;
|
|
27
|
-
}
|
|
28
|
-
.lds-ellipsis div:nth-child(4) {
|
|
29
|
-
left: 45px;
|
|
30
|
-
animation: lds-ellipsis3 0.6s infinite;
|
|
31
|
-
}
|
|
32
|
-
@keyframes lds-ellipsis1 {
|
|
33
|
-
0% {
|
|
34
|
-
transform: scale(0);
|
|
35
|
-
}
|
|
36
|
-
100% {
|
|
37
|
-
transform: scale(1);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
@keyframes lds-ellipsis3 {
|
|
41
|
-
0% {
|
|
42
|
-
transform: scale(1);
|
|
43
|
-
}
|
|
44
|
-
100% {
|
|
45
|
-
transform: scale(0);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
@keyframes lds-ellipsis2 {
|
|
49
|
-
0% {
|
|
50
|
-
transform: translate(0, 0);
|
|
51
|
-
}
|
|
52
|
-
100% {
|
|
53
|
-
transform: translate(19px, 0);
|
|
54
|
-
}
|
|
55
|
-
}
|
package/src/styles/text.css
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
.interSemibold24 {
|
|
2
|
-
font-weight: 600;
|
|
3
|
-
font-size: 24px;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.interSemibold18 {
|
|
7
|
-
font-weight: 600;
|
|
8
|
-
font-size: 18px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.interSemibold14 {
|
|
12
|
-
font-weight: 600;
|
|
13
|
-
font-size: 14px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.interMedium16 {
|
|
17
|
-
font-weight: 500;
|
|
18
|
-
font-size: 16px;
|
|
19
|
-
line-height: 24px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.interMedium14 {
|
|
23
|
-
font-weight: 500;
|
|
24
|
-
font-size: 14px;
|
|
25
|
-
line-height: 20px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.interRegular16 {
|
|
29
|
-
font-weight: 400;
|
|
30
|
-
font-size: 16px;
|
|
31
|
-
line-height: 24px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.interRegular14 {
|
|
35
|
-
font-weight: 400;
|
|
36
|
-
font-size: 14px;
|
|
37
|
-
line-height: 20px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.interRegular12 {
|
|
41
|
-
font-weight: 400;
|
|
42
|
-
font-size: 12px;
|
|
43
|
-
line-height: 16px;
|
|
44
|
-
}
|
package/src/types/account.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export type TAccount = {
|
|
2
|
-
merchant_id: number
|
|
3
|
-
first_name: null
|
|
4
|
-
last_name: null
|
|
5
|
-
industry_code: string
|
|
6
|
-
email: string
|
|
7
|
-
vat: string
|
|
8
|
-
phone: string
|
|
9
|
-
account_type: 'BUSINESS' | 'PERSONAL' | 'HOUSEHOLD_BUSINESS'
|
|
10
|
-
is_fnb: boolean
|
|
11
|
-
saleperson: {
|
|
12
|
-
name: string
|
|
13
|
-
phone: null
|
|
14
|
-
}
|
|
15
|
-
metabase_url: {
|
|
16
|
-
en: string
|
|
17
|
-
vi: string
|
|
18
|
-
}
|
|
19
|
-
tenant: string
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type TUser = {
|
|
23
|
-
id: string
|
|
24
|
-
name: string
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type TBusiness = {
|
|
28
|
-
business?: string
|
|
29
|
-
account_type?: string
|
|
30
|
-
trademark?: string
|
|
31
|
-
tax_no?: string
|
|
32
|
-
representative_name?: boolean
|
|
33
|
-
indentification_no?: boolean
|
|
34
|
-
position?: boolean
|
|
35
|
-
merchant_code?: string
|
|
36
|
-
address?: string
|
|
37
|
-
phone?: string
|
|
38
|
-
mobile?: string
|
|
39
|
-
email?: string
|
|
40
|
-
website?: boolean
|
|
41
|
-
acquirer_bank?: any
|
|
42
|
-
name?: string
|
|
43
|
-
x_use_qrpay?: boolean
|
|
44
|
-
industry_code?: string
|
|
45
|
-
city?: string
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export type TMerchant = {
|
|
49
|
-
id: number
|
|
50
|
-
name: string
|
|
51
|
-
address: string
|
|
52
|
-
hotline: string
|
|
53
|
-
website: string
|
|
54
|
-
logo: string
|
|
55
|
-
banner: string
|
|
56
|
-
point_percent: number
|
|
57
|
-
provider: string
|
|
58
|
-
ref_id: number
|
|
59
|
-
type_id: number
|
|
60
|
-
active: boolean
|
|
61
|
-
}
|
package/src/types/branch.ts
DELETED
package/src/types/category.ts
DELETED
package/src/types/common.ts
DELETED
package/src/types/customer.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { TDataRes } from "./sale";
|
|
2
|
-
|
|
3
|
-
export type TCustomer = {
|
|
4
|
-
barcode: boolean;
|
|
5
|
-
city: boolean;
|
|
6
|
-
code: boolean;
|
|
7
|
-
contact_address: string;
|
|
8
|
-
country_id: boolean;
|
|
9
|
-
email: string | boolean;
|
|
10
|
-
id: number;
|
|
11
|
-
lang: string;
|
|
12
|
-
mobile: boolean;
|
|
13
|
-
name: string;
|
|
14
|
-
parent_name: boolean;
|
|
15
|
-
phone: string;
|
|
16
|
-
property_account_position_id: boolean;
|
|
17
|
-
property_product_pricelist: number;
|
|
18
|
-
state_id: boolean;
|
|
19
|
-
street: boolean;
|
|
20
|
-
vat: boolean;
|
|
21
|
-
write_date: string;
|
|
22
|
-
zip: boolean;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export type TCustomerPayload = {
|
|
26
|
-
name: string;
|
|
27
|
-
phone: string;
|
|
28
|
-
email?: string;
|
|
29
|
-
birth_date?: string;
|
|
30
|
-
country_id?: number;
|
|
31
|
-
state_id?: number;
|
|
32
|
-
ward_id?: number;
|
|
33
|
-
street2?: string;
|
|
34
|
-
title?: number;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export type TUpdateCustomerPayload = TCustomerPayload & { id: number };
|
|
38
|
-
|
|
39
|
-
export type TCustomerRes = TDataRes<TCustomer[]>;
|
|
40
|
-
|
|
41
|
-
export type TBasicCustomer = {
|
|
42
|
-
id: number;
|
|
43
|
-
code: string | false;
|
|
44
|
-
name: string;
|
|
45
|
-
email: string;
|
|
46
|
-
country_id?: number;
|
|
47
|
-
state_id?: number;
|
|
48
|
-
ward_id?: number;
|
|
49
|
-
street?: string;
|
|
50
|
-
street2?: string;
|
|
51
|
-
oauth_uid: string;
|
|
52
|
-
};
|
package/src/types/dashboard.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export type TDashboard = {
|
|
2
|
-
Card_daily_revenue: any
|
|
3
|
-
Card_daily_transaction: any
|
|
4
|
-
Card_daily_revenue_diff: any
|
|
5
|
-
Card_daily_trans_diff: any
|
|
6
|
-
Card_monthly_revenue: any
|
|
7
|
-
Card_monthly_transaction: any
|
|
8
|
-
Card_yearly_revenue: any
|
|
9
|
-
Card_yearly_transaction: any
|
|
10
|
-
Table_recent_transaction: any
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type TChartItem = {
|
|
14
|
-
id: string
|
|
15
|
-
label: string
|
|
16
|
-
value: number
|
|
17
|
-
color: string
|
|
18
|
-
}
|
package/src/types/edc.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export enum TEDCType {
|
|
2
|
-
POS = 1,
|
|
3
|
-
Soundbox = 2,
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export type TEDCItem = {
|
|
7
|
-
serial_number: string
|
|
8
|
-
store_id: number
|
|
9
|
-
va_channel: number | null
|
|
10
|
-
pos_id: number
|
|
11
|
-
status: boolean
|
|
12
|
-
type_edc: TEDCType
|
|
13
|
-
aggregated_data: {
|
|
14
|
-
tid: string[]
|
|
15
|
-
mid: string[]
|
|
16
|
-
bank: {
|
|
17
|
-
bank_code?: string
|
|
18
|
-
bank_url?: string
|
|
19
|
-
bank_name?: string
|
|
20
|
-
bank_bic?: string
|
|
21
|
-
}
|
|
22
|
-
}[]
|
|
23
|
-
store_name: string
|
|
24
|
-
va_account_no: string | null
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type TVAToLink = {
|
|
28
|
-
va_account_no: string
|
|
29
|
-
id: number
|
|
30
|
-
store_id: number
|
|
31
|
-
store_name: string
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export type TMapEDCToVAPayload = {
|
|
35
|
-
va_account_no: string
|
|
36
|
-
pos_id: number
|
|
37
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface LastExportValues {
|
|
2
|
-
name: string
|
|
3
|
-
tax_code: string
|
|
4
|
-
enterprise: string
|
|
5
|
-
address: string
|
|
6
|
-
email: string
|
|
7
|
-
phoneNumber: string
|
|
8
|
-
isIndividual: boolean
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface EInvoiceState {
|
|
12
|
-
enableAutoExportLocal: boolean
|
|
13
|
-
invoiceLookupCode: string
|
|
14
|
-
invoiceCQTCode: string
|
|
15
|
-
lastExportValues: LastExportValues
|
|
16
|
-
providers: any[]
|
|
17
|
-
}
|
package/src/types/filter.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TExtendedTransactionStatus } from './report.d'
|
|
2
|
-
|
|
3
|
-
type CalendarFilterOptions = {
|
|
4
|
-
startDate: Date | null
|
|
5
|
-
endDate: Date | null
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
type FilterOptions = CalendarFilterOptions & {
|
|
9
|
-
saleLocation: number
|
|
10
|
-
textSearch: string
|
|
11
|
-
status: TExtendedTransactionStatus
|
|
12
|
-
}
|
package/src/types/floor/floor.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type TFloorRes = {
|
|
2
|
-
length: number;
|
|
3
|
-
records: TFloor[];
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
export type TFloor = {
|
|
7
|
-
id: number;
|
|
8
|
-
name: string;
|
|
9
|
-
pos_config_ids: number[];
|
|
10
|
-
table_ids: TTableId[];
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export type TTableId = {
|
|
14
|
-
id: number;
|
|
15
|
-
table_number: number;
|
|
16
|
-
};
|
package/src/types/floor.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export type TFloor = {
|
|
2
|
-
id: string
|
|
3
|
-
name: string
|
|
4
|
-
description?: string
|
|
5
|
-
tables: string[]
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export type TFloorCardProps = {
|
|
9
|
-
id: string
|
|
10
|
-
name: string
|
|
11
|
-
description?: string
|
|
12
|
-
tables: string[]
|
|
13
|
-
onSelect: () => void
|
|
14
|
-
onEdit: (e: React.MouseEvent) => void
|
|
15
|
-
onDelete: (e: React.MouseEvent) => void
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type TFloorEmptyProps = {
|
|
19
|
-
onAddFloor: () => void
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type TFloorListProps = {
|
|
23
|
-
floors: TFloor[]
|
|
24
|
-
onSelectFloor: (floorId: string) => void
|
|
25
|
-
onEditFloor: (floorId: string) => void
|
|
26
|
-
onDeleteFloor: (floorId: string) => void
|
|
27
|
-
onAddFloor: () => void
|
|
28
|
-
isLoading?: boolean
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export type TFloorActions = {
|
|
32
|
-
onSelect: (floorId: string) => void
|
|
33
|
-
onEdit: (floorId: string) => void
|
|
34
|
-
onDelete: (floorId: string) => void
|
|
35
|
-
onAdd: () => void
|
|
36
|
-
}
|
package/src/types/index.ts
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { TAttributeLine, TProduct } from "./product/product";
|
|
2
|
-
|
|
3
|
-
export type OrderStatus =
|
|
4
|
-
| "new"
|
|
5
|
-
| "paid"
|
|
6
|
-
| "recorded"
|
|
7
|
-
| "invoiced"
|
|
8
|
-
| "cancel"
|
|
9
|
-
| "in_paid";
|
|
10
|
-
|
|
11
|
-
export interface OrderItemData {
|
|
12
|
-
id: string;
|
|
13
|
-
status: OrderStatus;
|
|
14
|
-
date: string;
|
|
15
|
-
time: string;
|
|
16
|
-
price: number;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface OrderData {
|
|
20
|
-
id: number;
|
|
21
|
-
sessionId: string;
|
|
22
|
-
table: string;
|
|
23
|
-
employee: string;
|
|
24
|
-
createDate: string;
|
|
25
|
-
createTime: string;
|
|
26
|
-
status: OrderStatus;
|
|
27
|
-
partnerId: string | number | boolean;
|
|
28
|
-
totalProducts: number;
|
|
29
|
-
amountTax: number;
|
|
30
|
-
rewardPoints: number;
|
|
31
|
-
total: number;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface OrderDetailItemType {
|
|
35
|
-
id: TProduct["id"];
|
|
36
|
-
lineId: number;
|
|
37
|
-
name: TProduct["name"];
|
|
38
|
-
quantity: number;
|
|
39
|
-
price: number;
|
|
40
|
-
image: string;
|
|
41
|
-
unitPrice: number;
|
|
42
|
-
subTotal?: number;
|
|
43
|
-
inchTotal?: number;
|
|
44
|
-
taxesId: any[];
|
|
45
|
-
tax: number;
|
|
46
|
-
attributeValueIds: number[];
|
|
47
|
-
attributeLines?: TAttributeLine[];
|
|
48
|
-
pickAttributeValue?: TAttributeLine[];
|
|
49
|
-
pos_categ_ids?: number[];
|
|
50
|
-
note?: string;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface ApiOrder {
|
|
54
|
-
id: number;
|
|
55
|
-
pos_reference: string;
|
|
56
|
-
amount_total: number;
|
|
57
|
-
date_order: string;
|
|
58
|
-
state: string;
|
|
59
|
-
table_id: string | number | boolean;
|
|
60
|
-
lines: number[];
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface ApiOrderDetail {
|
|
64
|
-
id: number;
|
|
65
|
-
session_id: { id: number; display_name: string };
|
|
66
|
-
table_id: string | number | boolean;
|
|
67
|
-
user_id: number;
|
|
68
|
-
partner_id: string | number | boolean;
|
|
69
|
-
date_order: string;
|
|
70
|
-
state: string;
|
|
71
|
-
amount_total: number;
|
|
72
|
-
amount_tax: number;
|
|
73
|
-
lines: any[];
|
|
74
|
-
pos_reference: string;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export interface SaleData {
|
|
78
|
-
active: boolean;
|
|
79
|
-
all_product_tag_ids: number[];
|
|
80
|
-
attributeLineIds: any[];
|
|
81
|
-
available_in_pos: boolean;
|
|
82
|
-
barcode: boolean | string;
|
|
83
|
-
categ_id: number;
|
|
84
|
-
combo_ids: number[];
|
|
85
|
-
default_code: boolean | string;
|
|
86
|
-
description: boolean | string;
|
|
87
|
-
description_sale: boolean | string;
|
|
88
|
-
display_name: string;
|
|
89
|
-
id: number;
|
|
90
|
-
image_128: boolean;
|
|
91
|
-
is_storable: boolean;
|
|
92
|
-
lst_price: number;
|
|
93
|
-
name: string;
|
|
94
|
-
pos_categ_ids: number[];
|
|
95
|
-
product_tag_ids: number[];
|
|
96
|
-
product_template_variant_value_ids: number[];
|
|
97
|
-
product_tmpl_id: number;
|
|
98
|
-
self_order_available: boolean;
|
|
99
|
-
service_tracking: string;
|
|
100
|
-
standard_price: number;
|
|
101
|
-
taxes_id: number[];
|
|
102
|
-
to_weight: boolean;
|
|
103
|
-
tracking: string;
|
|
104
|
-
type: string;
|
|
105
|
-
uom_id: number;
|
|
106
|
-
write_date: string;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export interface ProductImage {
|
|
110
|
-
id: number;
|
|
111
|
-
image_128: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export interface OrderStatusConfig {
|
|
115
|
-
bg: string;
|
|
116
|
-
label: string;
|
|
117
|
-
color: string;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export const ORDER_STATUS_CONFIG: Record<OrderStatus, OrderStatusConfig> = {
|
|
121
|
-
new: { bg: "bg-[#F6B51E]", label: "new", color: "#F6B51E" },
|
|
122
|
-
paid: { bg: "bg-[#178C48]", label: "paid", color: "#178C48" },
|
|
123
|
-
recorded: { bg: "bg-[#5B2CC9]", label: "recorded", color: "#5B2CC9" },
|
|
124
|
-
invoiced: { bg: "bg-[#2547D0]", label: "invoiced", color: "#2547D0" },
|
|
125
|
-
cancel: { bg: "bg-[#E51414]", label: "cancel", color: "#E51414" },
|
|
126
|
-
in_paid: { bg: "bg-[#178C48]", label: "in paid", color: "#178C48" },
|
|
127
|
-
} as const;
|
package/src/types/invoice.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { TProductInBill } from './product'
|
|
2
|
-
import { TPaymentMethodValue } from './report'
|
|
3
|
-
|
|
4
|
-
export type InvoiceData = {
|
|
5
|
-
customer_id: number
|
|
6
|
-
invoice_id: number
|
|
7
|
-
name: string
|
|
8
|
-
order_code: string
|
|
9
|
-
order_id: number
|
|
10
|
-
payment_method: TPaymentMethodValue | null
|
|
11
|
-
phone_number: string
|
|
12
|
-
point: number
|
|
13
|
-
receive_amount: number | null
|
|
14
|
-
return_amount: number | null
|
|
15
|
-
status: number
|
|
16
|
-
table_id: number
|
|
17
|
-
table_name: string
|
|
18
|
-
total_price: number
|
|
19
|
-
updated_at: number
|
|
20
|
-
eiv_code: string | null
|
|
21
|
-
eiv_provider: string | null
|
|
22
|
-
eiv_exported_date: string | null
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type TInvoiceDetail = {
|
|
26
|
-
invoice_data: InvoiceData
|
|
27
|
-
merchant_info: {
|
|
28
|
-
id: number | null
|
|
29
|
-
name: string
|
|
30
|
-
}
|
|
31
|
-
products_data: TProductInBill[]
|
|
32
|
-
}
|
package/src/types/modal.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
interface ModalProps {
|
|
2
|
-
children?: React.ReactNode
|
|
3
|
-
isOpen: boolean
|
|
4
|
-
onClose: () => void
|
|
5
|
-
className?: string
|
|
6
|
-
classNameIosPb?: string
|
|
7
|
-
header?: React.ReactNode
|
|
8
|
-
footer?: React.ReactNode
|
|
9
|
-
disableChangeColorTheme?: boolean
|
|
10
|
-
isHideHeader?: boolean
|
|
11
|
-
title?: string
|
|
12
|
-
modalClassName?: string
|
|
13
|
-
headerClassName?: string
|
|
14
|
-
headerAction?: React.ReactNode
|
|
15
|
-
}
|