@feedmepos/mf-inventory-portal 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/README.md +31 -0
  2. package/dist/App.vue.d.ts +2 -0
  3. package/dist/ApprovalView-CTQdDgGH.js +119 -0
  4. package/dist/BindingsDialog-DvX_DRsO.js +82 -0
  5. package/dist/BindingsPicker-CQIGhTCR.js +124 -0
  6. package/dist/BindingsTable-Da4BLkvc.js +122 -0
  7. package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DcixBOcX.js +97 -0
  8. package/dist/Entry.vue.d.ts +2 -0
  9. package/dist/FmMultiselectDialog.vue_vue_type_script_setup_true_lang-BXU7x6di.js +144 -0
  10. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-CD89qCIa.js +49 -0
  11. package/dist/IngredientsView-2ZKdzsgI.js +739 -0
  12. package/dist/IntegrationView-BRWYO3VE.js +1172 -0
  13. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CnsDmPTe.js +240 -0
  14. package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DBK7mpQS.js +66 -0
  15. package/dist/PurchaseOrderPrintPreview-CH9gVYDg.js +152 -0
  16. package/dist/ReceiveRequestView-DQBqc3GF.js +1298 -0
  17. package/dist/RecipeView-DFG9Wkx-.js +594 -0
  18. package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js +53 -0
  19. package/dist/Standalone.vue.d.ts +2 -0
  20. package/dist/StockView-DLWMp_I5.js +1733 -0
  21. package/dist/SupplierView-CZhM2ie3.js +607 -0
  22. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Ffe9bhq8.js +1027 -0
  23. package/dist/UnitView-C3XVSbJY.js +626 -0
  24. package/dist/WarehouseView-BntzAdz3.js +1139 -0
  25. package/dist/api/bill.d.ts +1364 -0
  26. package/dist/api/closing.d.ts +3 -0
  27. package/dist/api/error.d.ts +31 -0
  28. package/dist/api/food-market-hub.d.ts +38 -0
  29. package/dist/api/inventory.d.ts +176 -0
  30. package/dist/api/purchase-order.d.ts +13 -0
  31. package/dist/api/stock.d.ts +9 -0
  32. package/dist/api/supplier.d.ts +7 -0
  33. package/dist/api/type.d.ts +12 -0
  34. package/dist/api/warehouse.d.ts +7 -0
  35. package/dist/app-BzDhmCVx.js +36639 -0
  36. package/dist/app.d.ts +2 -0
  37. package/dist/app.js +5 -0
  38. package/dist/components/ChangeLocationComponent.vue.d.ts +2 -0
  39. package/dist/components/DeferableLoading.vue.d.ts +19 -0
  40. package/dist/components/DeferableLoadingProps.d.ts +4 -0
  41. package/dist/components/DeleteDialog.vue.d.ts +18 -0
  42. package/dist/components/FmCoordinateInput.vue.d.ts +24 -0
  43. package/dist/components/FmCoordinateInputProps.d.ts +23 -0
  44. package/dist/components/FmFilterableSelect.vue.d.ts +25 -0
  45. package/dist/components/FmFilterableSelectProps.d.ts +28 -0
  46. package/dist/components/FmMultiselectDialog.vue.d.ts +30 -0
  47. package/dist/components/FmMultiselectDialogProps.d.ts +16 -0
  48. package/dist/components/FmTableToolbar.vue.d.ts +49 -0
  49. package/dist/components/MultiSelectDialog.vue.d.ts +12 -0
  50. package/dist/components/MultiSelectDialogProps.d.ts +7 -0
  51. package/dist/components/NavigationTab.vue.d.ts +2 -0
  52. package/dist/components/NumberPrecisionInput.vue.d.ts +16 -0
  53. package/dist/components/NumberPrecisionInputProps.d.ts +12 -0
  54. package/dist/components/TableActionableRow.vue.d.ts +40 -0
  55. package/dist/components/UnitDisplayControl.vue.d.ts +12 -0
  56. package/dist/components/UnitDisplayControlProp.d.ts +7 -0
  57. package/dist/components/fm-components.type.d.ts +8 -0
  58. package/dist/components/form/form-mode.enum.d.ts +5 -0
  59. package/dist/components/icons/IconCommunity.vue.d.ts +2 -0
  60. package/dist/components/icons/IconDocumentation.vue.d.ts +2 -0
  61. package/dist/components/icons/IconEcosystem.vue.d.ts +2 -0
  62. package/dist/components/icons/IconSupport.vue.d.ts +2 -0
  63. package/dist/components/icons/IconTooling.vue.d.ts +2 -0
  64. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +145 -0
  65. package/dist/components/inventory-binding/InventoryBindingProps.d.ts +11 -0
  66. package/dist/components/map/CoordinateDialog.vue.d.ts +24 -0
  67. package/dist/components/map/GoogleMap.vue.d.ts +79 -0
  68. package/dist/components/map/coordinates.d.ts +6 -0
  69. package/dist/components/map/helper/coords-to-latlong.d.ts +8 -0
  70. package/dist/components/map/type.d.ts +27 -0
  71. package/dist/components/nested-multiselect/FmNestedMultiselectDialog.vue.d.ts +7 -0
  72. package/dist/components/nested-multiselect/FmNestedMultiselectDialogProps.d.ts +22 -0
  73. package/dist/components/nested-multiselect/helper/multiselect-utils.d.ts +2 -0
  74. package/dist/components/row-action.enum.d.ts +13 -0
  75. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +84 -0
  76. package/dist/components/shell/inventory/binding-ui.test.d.ts +1 -0
  77. package/dist/components/shell/inventory/binding-ui.vue.d.ts +110 -0
  78. package/dist/components/shell/inventory/utils.d.ts +5 -0
  79. package/dist/components/ui-library/FmDateRangePickerChip.vue.d.ts +36 -0
  80. package/dist/components/ui-library/FmSpecialChip.vue.d.ts +79 -0
  81. package/dist/composable/defineApi.d.ts +18 -0
  82. package/dist/composable/useBreakpoints.d.ts +7 -0
  83. package/dist/composable/useIframe.d.ts +37 -0
  84. package/dist/composable/useSearch.d.ts +5 -0
  85. package/dist/composable/useTabStorage.d.ts +2 -0
  86. package/dist/composable/useToast.d.ts +36 -0
  87. package/dist/core.d.ts +12 -0
  88. package/dist/cypress/component/FmFilterableSelect.cy.d.ts +1 -0
  89. package/dist/cypress/component/FmNestedMultiselectDialog.cy.d.ts +1 -0
  90. package/dist/cypress/component/UnitDisplayControl.cy.d.ts +1 -0
  91. package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +2 -0
  92. package/dist/cypress/e2e/views/MenuV3.spec.cy.d.ts +0 -0
  93. package/dist/cypress/e2e/views/MenuV4.spec.cy.d.ts +0 -0
  94. package/dist/cypress/e2e/views/Root.spec.cy.d.ts +0 -0
  95. package/dist/cypress/e2e/views/StockView.spec.cy.d.ts +0 -0
  96. package/dist/cypress/support/commands.d.ts +0 -0
  97. package/dist/cypress/support/component.d.ts +10 -0
  98. package/dist/cypress/support/e2e.d.ts +1 -0
  99. package/dist/date2-C7HiAWQG.js +209 -0
  100. package/dist/dayjs.min-Db57WhI9.js +282 -0
  101. package/dist/decimal-D3a0BwVj.js +98 -0
  102. package/dist/empty-placeholder-wf6-BWE8.js +4 -0
  103. package/dist/extensions/array.d.ts +15 -0
  104. package/dist/favicon.ico +0 -0
  105. package/dist/fuzzy-BW8ZYsDG.js +41 -0
  106. package/dist/helper/address.d.ts +2 -0
  107. package/dist/helper/component.d.ts +4 -0
  108. package/dist/helper/core/country/codes.d.ts +255 -0
  109. package/dist/helper/core/country/utils.d.ts +8 -0
  110. package/dist/helper/core/id-to-date.d.ts +1 -0
  111. package/dist/helper/core/store/type.d.ts +2 -0
  112. package/dist/helper/country.d.ts +260 -0
  113. package/dist/helper/date.spec.d.ts +1 -0
  114. package/dist/helper/date2.d.ts +20 -0
  115. package/dist/helper/decimal.d.ts +15 -0
  116. package/dist/helper/decimal.spec.d.ts +1 -0
  117. package/dist/helper/export.d.ts +12 -0
  118. package/dist/helper/form.d.ts +5 -0
  119. package/dist/helper/inventory.d.ts +1 -0
  120. package/dist/helper/iteration.d.ts +15 -0
  121. package/dist/helper/number.d.ts +27 -0
  122. package/dist/helper/number.spec.d.ts +1 -0
  123. package/dist/helper/object.d.ts +36 -0
  124. package/dist/helper/object.spec.d.ts +1 -0
  125. package/dist/helper/rules.d.ts +22 -0
  126. package/dist/helper/search.d.ts +21 -0
  127. package/dist/helper/semver.d.ts +20 -0
  128. package/dist/helper/semver.spec.d.ts +1 -0
  129. package/dist/helper/type.d.ts +8 -0
  130. package/dist/helper/url.d.ts +7 -0
  131. package/dist/helper/validate.d.ts +70 -0
  132. package/dist/helper/xlsx.util.d.ts +8 -0
  133. package/dist/helper/zod.d.ts +21 -0
  134. package/dist/id-to-date-ReZIpUDw.js +30 -0
  135. package/dist/index-D46it8Rk.js +12956 -0
  136. package/dist/init-date-range-M3Q03-Fd.js +21 -0
  137. package/dist/is-linked-ingredient-error-C6AghEwR.js +37 -0
  138. package/dist/layout/InventoryLayout.vue.d.ts +2 -0
  139. package/dist/layout/SingleColumnLayout.vue.d.ts +55 -0
  140. package/dist/layout/components/NavigationButton.vue.d.ts +22 -0
  141. package/dist/layout/layout-routes.d.ts +7 -0
  142. package/dist/layout/type.d.ts +17 -0
  143. package/dist/layout-BvUjg6JS.js +151 -0
  144. package/dist/locales/en/common.json +7 -0
  145. package/dist/main.d.ts +2 -0
  146. package/dist/router/index.d.ts +5 -0
  147. package/dist/router/name.d.ts +17 -0
  148. package/dist/router/shared.d.ts +11 -0
  149. package/dist/row-action.enum-BwQbURNh.js +28 -0
  150. package/dist/rules-DHfAMDW3.js +86 -0
  151. package/dist/stores/api.d.ts +10 -0
  152. package/dist/stores/env.d.ts +5 -0
  153. package/dist/stores/feature.d.ts +9 -0
  154. package/dist/stores/googlemap.d.ts +37 -0
  155. package/dist/stores/helper/generate-backend-urls.d.ts +8 -0
  156. package/dist/stores/inventory.d.ts +1983 -0
  157. package/dist/stores/layout.d.ts +5 -0
  158. package/dist/stores/location.d.ts +1898 -0
  159. package/dist/stores/route.d.ts +12 -0
  160. package/dist/stores/stock.d.ts +58 -0
  161. package/dist/stores/supplier.d.ts +30 -0
  162. package/dist/stores/warehouse.d.ts +88 -0
  163. package/dist/style.css +1 -0
  164. package/dist/supplier-DTiiOLtg.js +65 -0
  165. package/dist/tsconfig.app.tsbuildinfo +1 -0
  166. package/dist/use-inventory-binding-dialog-B6JO7050.js +109 -0
  167. package/dist/views/InventoryView.vue.d.ts +2 -0
  168. package/dist/views/SelectBussinessDialog.vue.d.ts +2 -0
  169. package/dist/views/approval/ApprovalView.vue.d.ts +2 -0
  170. package/dist/views/dev/ComponentPreview.vue.d.ts +2 -0
  171. package/dist/views/dev/components/CoordinateTest.vue.d.ts +2 -0
  172. package/dist/views/dev/components/DateRange.vue.d.ts +2 -0
  173. package/dist/views/dev/components/FmSelectTest.vue.d.ts +2 -0
  174. package/dist/views/dev/components/InventoryIframe.vue.d.ts +2 -0
  175. package/dist/views/dev/components/LayoutDev.vue.d.ts +2 -0
  176. package/dist/views/dev/components/MfCommontTest.vue.d.ts +2 -0
  177. package/dist/views/dev/components/NestedSelection.vue.d.ts +2 -0
  178. package/dist/views/dev/components/NumberStepper.vue.d.ts +2 -0
  179. package/dist/views/dev/components/TabStorageTest.vue.d.ts +2 -0
  180. package/dist/views/dev/helpers/debug.d.ts +22 -0
  181. package/dist/views/dev/helpers/nested-options.d.ts +60 -0
  182. package/dist/views/dev/helpers/pinia-test.d.ts +9 -0
  183. package/dist/views/home/HomeView.vue.d.ts +2 -0
  184. package/dist/views/iframe/inventory-bindings/bindings-dialog/BindingsDialog.vue.d.ts +2 -0
  185. package/dist/views/iframe/inventory-bindings/bindings-picker/BindingsPicker.vue.d.ts +2 -0
  186. package/dist/views/iframe/inventory-bindings/bindings-table/BindingsTable.vue.d.ts +2 -0
  187. package/dist/views/ingredients/IngredientsView.vue.d.ts +2 -0
  188. package/dist/views/ingredients/components/cannot-delete/CannotDelete.vue.d.ts +30 -0
  189. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +54 -0
  190. package/dist/views/ingredients/components/convert/ConvertFormProps.d.ts +8 -0
  191. package/dist/views/ingredients/components/ingredient-binded-item/IngredientBindedItem.vue.d.ts +12 -0
  192. package/dist/views/ingredients/components/ingredient-binded-item/IngredientBindedItemProps.d.ts +5 -0
  193. package/dist/views/ingredients/components/ingredient-dialog/IngredientDialog.vue.d.ts +31 -0
  194. package/dist/views/ingredients/components/ingredient-dialog/IngredientDialogProps.d.ts +9 -0
  195. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +104 -0
  196. package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +10 -0
  197. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +88 -0
  198. package/dist/views/ingredients/components/inventory-binding/composables/use-inventory-binding-dialog.d.ts +4 -0
  199. package/dist/views/ingredients/components/inventory-binding/util.d.ts +7 -0
  200. package/dist/views/ingredients/composables/use-ingredient-form.d.ts +8 -0
  201. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +46 -0
  202. package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +7 -0
  203. package/dist/views/integration/IntegrationView.vue.d.ts +2 -0
  204. package/dist/views/integration/components/ApplyAddon.vue.d.ts +379 -0
  205. package/dist/views/integration/components/ApplyProduct.vue.d.ts +303 -0
  206. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +277 -0
  207. package/dist/views/integration/components/ApplyProductDialogProps.d.ts +17 -0
  208. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +277 -0
  209. package/dist/views/integration/helper/menu.d.ts +36 -0
  210. package/dist/views/receive-request/ReceiveRequestView.vue.d.ts +2 -0
  211. package/dist/views/receive-request/components/supplier-price-history/SupplierPriceHistory.vue.d.ts +12 -0
  212. package/dist/views/receive-request/components/supplier-price-history/SupplierPriceHistoryProps.d.ts +11 -0
  213. package/dist/views/receive-request/components/transfer-details/TransferDetails.vue.d.ts +18 -0
  214. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +12 -0
  215. package/dist/views/receive-request/components/transfer-dialog/TransferDialog.vue.d.ts +22 -0
  216. package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +11 -0
  217. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +450 -0
  218. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +10 -0
  219. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +369 -0
  220. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1202 -0
  221. package/dist/views/receive-request/constants/dialog-templates.d.ts +8 -0
  222. package/dist/views/receive-request/constants/purchase-order-transaction-type.d.ts +4 -0
  223. package/dist/views/receive-request/constants/purchase-row-actions.d.ts +2 -0
  224. package/dist/views/receive-request/helper/format-time-from-id.d.ts +2 -0
  225. package/dist/views/receive-request/helper/format-unit-display.d.ts +6 -0
  226. package/dist/views/receive-request/helper/get-received-amount.d.ts +2 -0
  227. package/dist/views/receive-request/helper/init-date-range.d.ts +8 -0
  228. package/dist/views/receive-request/helper/print-po.d.ts +2 -0
  229. package/dist/views/receive-request/helper/status-to-background.d.ts +2 -0
  230. package/dist/views/receive-request/print-preview/PurchaseOrderPrintPreview.vue.d.ts +47 -0
  231. package/dist/views/recipe/RecipeView.vue.d.ts +2 -0
  232. package/dist/views/recipe/components/recipe-dialog/RecipeDialog.vue.d.ts +31 -0
  233. package/dist/views/recipe/components/recipe-dialog/RecipeDialogProps.d.ts +9 -0
  234. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +62 -0
  235. package/dist/views/recipe/components/recipe-form/RecipeFormProps.d.ts +10 -0
  236. package/dist/views/recipe/composables/use-recipe-form.d.ts +9 -0
  237. package/dist/views/recipe/composables/use-recipe-table.d.ts +11 -0
  238. package/dist/views/recipe/helper/export-recipe.d.ts +1 -0
  239. package/dist/views/stock/StockView.vue.d.ts +2 -0
  240. package/dist/views/stock/components/StockHistory.vue.d.ts +17 -0
  241. package/dist/views/stock/components/StockHistoryProps.d.ts +7 -0
  242. package/dist/views/stock/components/StockRecordCard.vue.d.ts +712 -0
  243. package/dist/views/stock/components/dialog/AdjustSkuDialog.vue.d.ts +22 -0
  244. package/dist/views/stock/components/dialog/AdjustSkuDialogProps.d.ts +8 -0
  245. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +164 -0
  246. package/dist/views/stock/components/dialog/AdjustedItemFormProps.d.ts +8 -0
  247. package/dist/views/stock/components/dialog/ConvertSkuDialog.vue.d.ts +22 -0
  248. package/dist/views/stock/components/dialog/ConvertSkuDialogProps.d.ts +9 -0
  249. package/dist/views/stock/components/dialog/constant/adjustment-type-options.d.ts +7 -0
  250. package/dist/views/stock/components/dialog/helper/adjust.d.ts +3 -0
  251. package/dist/views/stock/components/dialog/helper/form-adjust.d.ts +10 -0
  252. package/dist/views/stock/composables/use-stock-table.d.ts +12 -0
  253. package/dist/views/stock/helper/compute-summary-total-test.d.ts +1 -0
  254. package/dist/views/stock/helper/compute-summary-total.d.ts +1 -0
  255. package/dist/views/stock/helper/compute-summary-total.spec.d.ts +1 -0
  256. package/dist/views/stock/helper/format-date-from-id.d.ts +2 -0
  257. package/dist/views/stock/helper/on-click-export-excel.d.ts +9 -0
  258. package/dist/views/stock/helper/stock-row-action.d.ts +13 -0
  259. package/dist/views/stock/type.d.ts +9 -0
  260. package/dist/views/supplier/SupplierView.vue.d.ts +2 -0
  261. package/dist/views/supplier/components/SupplierDialog.vue.d.ts +22 -0
  262. package/dist/views/supplier/components/SupplierDialogProps.d.ts +10 -0
  263. package/dist/views/supplier/components/SupplierForm.vue.d.ts +58 -0
  264. package/dist/views/supplier/components/SupplierFormProps.d.ts +8 -0
  265. package/dist/views/supplier/composables/use-supplier-table.d.ts +22 -0
  266. package/dist/views/unit/UnitView.vue.d.ts +2 -0
  267. package/dist/views/unit/components/unit-dialog/UnitDialog.vue.d.ts +31 -0
  268. package/dist/views/unit/components/unit-dialog/UnitDialogProps.d.ts +9 -0
  269. package/dist/views/unit/components/unit-form/UnitForm.vue.d.ts +50 -0
  270. package/dist/views/unit/components/unit-form/UnitFormProps.d.ts +10 -0
  271. package/dist/views/unit/components/unit-summary/UnitSummary.vue.d.ts +43 -0
  272. package/dist/views/unit/components/unit-used-by/UnitUsedBy.vue.d.ts +12 -0
  273. package/dist/views/unit/components/unit-used-by/UnitUsedByProps.d.ts +3 -0
  274. package/dist/views/unit/composables/use-unit-form.d.ts +8 -0
  275. package/dist/views/unit/composables/use-unit-table.d.ts +19 -0
  276. package/dist/views/unit/type.d.ts +2 -0
  277. package/dist/views/warehouse/WarehouseView.vue.d.ts +2 -0
  278. package/dist/views/warehouse/components/WarehouseDialog.vue.d.ts +22 -0
  279. package/dist/views/warehouse/components/WarehouseDialogProps.d.ts +10 -0
  280. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +174 -0
  281. package/dist/views/warehouse/components/WarehouseFormProps.d.ts +8 -0
  282. package/dist/views/warehouse/composables/use-warehouse-table.d.ts +12 -0
  283. package/dist/xlsx-BljO4Lx2.js +15510 -0
  284. package/package.json +93 -0
@@ -0,0 +1,21 @@
1
+ import { q as n } from "./date2-C7HiAWQG.js";
2
+ function D() {
3
+ const t = /* @__PURE__ */ new Date();
4
+ return t.setDate(t.getDate() - 15), {
5
+ start: t,
6
+ end: /* @__PURE__ */ new Date()
7
+ };
8
+ }
9
+ function r(t = 15) {
10
+ const e = /* @__PURE__ */ new Date();
11
+ e.setDate(e.getDate() - t);
12
+ const a = e, s = /* @__PURE__ */ new Date();
13
+ return {
14
+ startDate: `${n(a)}`,
15
+ endDate: `${n(s)}`
16
+ };
17
+ }
18
+ export {
19
+ D as a,
20
+ r as i
21
+ };
@@ -0,0 +1,37 @@
1
+ import { defineComponent as c, openBlock as n, createElementBlock as s, createElementVNode as r, createTextVNode as a, toDisplayString as o, Fragment as d, renderList as m } from "vue";
2
+ const u = { class: "w-[400px] h-[100px]" }, p = { class: "font-bold text-neutral-500 mx-1" }, _ = { class: "mt-3" }, g = /* @__PURE__ */ c({
3
+ __name: "CannotDelete",
4
+ props: {
5
+ subject: {
6
+ type: String
7
+ },
8
+ items: {
9
+ type: Array,
10
+ default: () => []
11
+ }
12
+ },
13
+ setup(e) {
14
+ return (t, f) => (n(), s("div", u, [
15
+ r("div", null, [
16
+ a(" Cannot delete "),
17
+ r("span", p, o(e.subject), 1),
18
+ a(" because this unit is linked in these inventory items: ")
19
+ ]),
20
+ r("ol", _, [
21
+ (n(!0), s(d, null, m(e.items, (i, l) => (n(), s("li", {
22
+ class: "pl-5 font-bold text-neutral-500",
23
+ key: l
24
+ }, " • (" + o(i.module) + ") " + o(i.name), 1))), 128))
25
+ ])
26
+ ]));
27
+ }
28
+ });
29
+ function x(e) {
30
+ return e.errorResponse.error === "validation failed" && Array.isArray(e.errorResponse.message) && e.errorResponse.message.every(
31
+ (t) => typeof t.module == "string" && typeof t.name == "string"
32
+ );
33
+ }
34
+ export {
35
+ g as _,
36
+ x as i
37
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,55 @@
1
+ import type { FmPageHeadAction } from 'node_modules/@feedmepos/ui-library/dist/components/page-head/FmPageHead.vue';
2
+ import type { Breadcrumbs } from './type';
3
+ export interface SingleColumnLayoutProps {
4
+ actions?: FmPageHeadAction[];
5
+ title: string;
6
+ description?: string;
7
+ showBackButton?: boolean;
8
+ defaultPadding?: boolean;
9
+ breadcrumbs?: Breadcrumbs[];
10
+ }
11
+ export interface SingleColumnLayoutEvents {
12
+ (event: 'click:action', actionName: string): void;
13
+ }
14
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SingleColumnLayoutProps>, {
15
+ actions: () => never[];
16
+ breadcrumbs: () => never[];
17
+ title: string;
18
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ "click:action": (actionName: string) => void;
20
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SingleColumnLayoutProps>, {
21
+ actions: () => never[];
22
+ breadcrumbs: () => never[];
23
+ title: string;
24
+ }>>> & {
25
+ "onClick:action"?: ((actionName: string) => any) | undefined;
26
+ }, {
27
+ actions: FmPageHeadAction[];
28
+ title: string;
29
+ breadcrumbs: Breadcrumbs[];
30
+ }, {}>, {
31
+ default?(_: {}): any;
32
+ }>;
33
+ export default _default;
34
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
35
+ type __VLS_TypePropsToRuntimeProps<T> = {
36
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
37
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
38
+ } : {
39
+ type: import('vue').PropType<T[K]>;
40
+ required: true;
41
+ };
42
+ };
43
+ type __VLS_WithDefaults<P, D> = {
44
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
45
+ default: D[K];
46
+ }> : P[K];
47
+ };
48
+ type __VLS_Prettify<T> = {
49
+ [K in keyof T]: T[K];
50
+ } & {};
51
+ type __VLS_WithTemplateSlots<T, S> = T & {
52
+ new (): {
53
+ $slots: S;
54
+ };
55
+ };
@@ -0,0 +1,22 @@
1
+ import type { LayoutRoute } from '../type';
2
+ import { type PropType } from 'vue';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ route: {
5
+ type: PropType<LayoutRoute>;
6
+ required: true;
7
+ };
8
+ expandChild: {
9
+ type: BooleanConstructor;
10
+ };
11
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
+ route: {
13
+ type: PropType<LayoutRoute>;
14
+ required: true;
15
+ };
16
+ expandChild: {
17
+ type: BooleanConstructor;
18
+ };
19
+ }>>, {
20
+ expandChild: boolean;
21
+ }, {}>;
22
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import type { FmTabProps } from 'node_modules/@feedmepos/ui-library/dist/components/tab/FmTab.vue';
2
+ import { RouteName } from '../router/name';
3
+ export declare const showLocationForRoute: Record<string, boolean>;
4
+ export declare const activeTab: Record<RouteName, string>;
5
+ export declare const layoutRoutes: Array<FmTabProps>;
6
+ export declare const layoutRoutesMobile: FmTabProps[];
7
+ export declare const routeNames: Record<string, string>;
@@ -0,0 +1,17 @@
1
+ import type { RouteName } from '../router/name';
2
+ export interface LayoutRoute {
3
+ label: string;
4
+ name: RouteName;
5
+ showIcon?: boolean;
6
+ icon?: string;
7
+ iconColor?: string;
8
+ children?: LayoutRoute[];
9
+ disable?: boolean;
10
+ expandChild?: boolean;
11
+ showLocationOptions?: boolean;
12
+ }
13
+ export interface Breadcrumbs {
14
+ label: string;
15
+ route: string;
16
+ disabled?: boolean;
17
+ }
@@ -0,0 +1,151 @@
1
+ import { components as B, useBreakpoints as M } from "@feedmepos/ui-library";
2
+ import { h as i, defineComponent as I, computed as R, resolveComponent as _, openBlock as u, createBlock as x, normalizeClass as V, withCtx as L, createElementVNode as d, renderSlot as z, normalizeProps as N, guardReactiveProps as P, createElementBlock as c, Fragment as h, renderList as D, createVNode as k, unref as b, createCommentVNode as w } from "vue";
3
+ import { t as E } from "./app-BzDhmCVx.js";
4
+ const { FmMenu: S, FmButton: $, FmMenuItem: j } = B;
5
+ function Q(o, t) {
6
+ return i(
7
+ S,
8
+ {
9
+ trigger: "click",
10
+ stopClickPropagation: !0
11
+ },
12
+ {
13
+ "menu-button": () => i($, {
14
+ type: "button",
15
+ variant: "tertiary",
16
+ icon: "more_vert",
17
+ iconColor: "#000000",
18
+ size: "md"
19
+ }),
20
+ default: () => i(
21
+ "div",
22
+ {
23
+ style: {
24
+ backgroundColor: "white",
25
+ padding: "4px",
26
+ width: "160px"
27
+ }
28
+ },
29
+ o.map(({ label: n, color: e, value: r }) => i(
30
+ j,
31
+ {
32
+ onClick() {
33
+ t(r ?? n);
34
+ }
35
+ },
36
+ {
37
+ label: () => i(
38
+ "span",
39
+ {
40
+ class: e
41
+ },
42
+ n
43
+ )
44
+ }
45
+ ))
46
+ )
47
+ }
48
+ );
49
+ }
50
+ /**
51
+ * vue-table
52
+ *
53
+ * Copyright (c) TanStack
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */
60
+ const y = I({
61
+ props: ["render", "props"],
62
+ setup: (o) => () => typeof o.render == "function" || typeof o.render == "object" ? i(o.render, o.props) : o.render
63
+ }), A = { class: "flex gap-4 w-full" }, H = { class: "flex-1" }, T = { class: "flex flex-col" }, q = { key: 0 }, G = { key: 0 }, U = /* @__PURE__ */ I({
64
+ __name: "TableActionableRow",
65
+ props: {
66
+ row: {},
67
+ onRowClick: {},
68
+ actionColumnId: { default: "action" }
69
+ },
70
+ setup(o) {
71
+ const t = o, n = R(
72
+ () => t.row.getVisibleCells().reduce(
73
+ (e, r) => (e[r.column.id] = r, e),
74
+ {}
75
+ )
76
+ );
77
+ return (e, r) => {
78
+ const F = _("FmListItem");
79
+ return u(), x(F, {
80
+ class: V([
81
+ "px-12 py-16 w-full border-b border-fm-color-neutral-gray-100",
82
+ {
83
+ "bg-fm-color-neutral-gray-100": e.row.getIsSelected(),
84
+ "cursor-pointer": typeof e.onRowClick == "function"
85
+ }
86
+ ]),
87
+ tag: "label",
88
+ onClick: r[0] || (r[0] = (m) => {
89
+ var s;
90
+ return (s = e.onRowClick) == null ? void 0 : s.call(e, e.row.original);
91
+ })
92
+ }, {
93
+ default: L(() => {
94
+ var m, s, p, a, f;
95
+ return [
96
+ d("div", A, [
97
+ d("div", H, [
98
+ z(e.$slots, "default", N(P(n.value)), () => [
99
+ d("div", T, [
100
+ (u(!0), c(h, null, D(t.row.getVisibleCells(), (l) => {
101
+ var C, g, v;
102
+ return u(), c(h, {
103
+ key: l.id
104
+ }, [
105
+ l.column.id !== e.actionColumnId ? (u(), c("div", q, [
106
+ k(b(y), {
107
+ render: (g = (C = l.column) == null ? void 0 : C.columnDef) == null ? void 0 : g.cell,
108
+ props: (v = l.getContext) == null ? void 0 : v.call(l)
109
+ }, null, 8, ["render", "props"])
110
+ ])) : w("", !0)
111
+ ], 64);
112
+ }), 128))
113
+ ])
114
+ ])
115
+ ]),
116
+ n.value[e.actionColumnId ?? ""] ? (u(), c("div", G, [
117
+ d("div", null, [
118
+ k(b(y), {
119
+ render: (p = (s = (m = n.value[e.actionColumnId ?? ""]) == null ? void 0 : m.column) == null ? void 0 : s.columnDef) == null ? void 0 : p.cell,
120
+ props: (f = (a = n.value[e.actionColumnId ?? ""]) == null ? void 0 : a.getContext) == null ? void 0 : f.call(a)
121
+ }, null, 8, ["render", "props"])
122
+ ])
123
+ ])) : w("", !0)
124
+ ])
125
+ ];
126
+ }),
127
+ _: 3
128
+ }, 8, ["class"]);
129
+ };
130
+ }
131
+ });
132
+ function W() {
133
+ return {
134
+ get tableHeight() {
135
+ const o = E(), { breakpoints: t } = M();
136
+ return o.isIframeMode ? t.value.xs || t.value.sm ? {
137
+ height: "calc(100dvh - 180px)"
138
+ } : {
139
+ height: "calc(100dvh - 124px)"
140
+ } : {
141
+ height: "calc(100dvh - 180px)"
142
+ };
143
+ }
144
+ };
145
+ }
146
+ export {
147
+ y as F,
148
+ U as _,
149
+ Q as c,
150
+ W as u
151
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "route_name": {
3
+ "HOME": "Home",
4
+ "MENU": "Menu",
5
+ "INGREDIENTS": "Ingredients"
6
+ }
7
+ }
package/dist/main.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import './assets/main.css';
2
+ import '@feedmepos/mf-common/style.css';
@@ -0,0 +1,5 @@
1
+ import { type RouteRecordRaw } from 'vue-router';
2
+ import { RouteName } from './name';
3
+ export declare const routes: Record<RouteName, RouteRecordRaw>;
4
+ declare const defaultRouter: import("vue-router").Router;
5
+ export default defaultRouter;
@@ -0,0 +1,17 @@
1
+ export declare enum RouteName {
2
+ INGREDIENTS = "INGREDIENTS",
3
+ RECIPE = "RECIPE",
4
+ UNIT = "UNIT",
5
+ STOCK = "STOCK",
6
+ WAREHOUSE = "WAREHOUSE",
7
+ RECEIVE_REQUEST = "RECEIVE_REQUEST",
8
+ RECEIVE_REQUEST_PRINT_PREVIEW = "RECEIVE_REQUEST_PRINT_PREVIEW",
9
+ APPROVAL = "APPROVAL",
10
+ SUPPLIER = "SUPPLIER",
11
+ INTEGRATION = "INTEGRATION",
12
+ DEV = "DEV",
13
+ IFRAME_INVENTORY_BINDINGS_TABLE = "IFRAME_INVENTORY_BINDINGS_TABLE",
14
+ IFRAME_INVENTORY_BINDINGS_DIALOG = "IFRAME_INVENTORY_BINDINGS_DIALOG",
15
+ IFRAME_INVENTORY_BINDINGS_PICKER = "IFRAME_INVENTORY_BINDINGS_PICKER"
16
+ }
17
+ export declare function getReadableRouteName(route: RouteName): "Ingredient" | "Recipe" | "Unit" | "Stock" | "Warehouse" | "Receive/Request" | "Print preview" | "Approval" | "Supplier" | "Integration" | "Dev" | "Inventory bindings table" | "Inventory bindings dialog" | "Inventory bindings picker";
@@ -0,0 +1,11 @@
1
+ import { type RouteRecordRaw } from 'vue-router';
2
+ /**
3
+ * DO NOT CREATE ROUTER HERE
4
+ * Here are just a list of routers that will be shared between your side and the portal side
5
+ *
6
+ * @important
7
+ * The route name should prefix with your own project unique name.
8
+ * For example, if your project name is `mf-pos`, then the route name should be `mf-pos-`.
9
+ * That is to avoid the route name conflict with other projects.
10
+ */
11
+ export declare const routers: RouteRecordRaw[];
@@ -0,0 +1,28 @@
1
+ var e = /* @__PURE__ */ ((t) => (t.READ = "READ", t.UPDATE = "UPDATE", t.CREATE = "CREATE", t))(e || {}), r = /* @__PURE__ */ ((t) => (t.Print = "Print", t.Update = "Update", t.Details = "Details", t.Edit = "Edit", t.Delete = "Delete", t))(r || {});
2
+ const l = {
3
+ Update: {
4
+ label: "Update",
5
+ color: "text-fm-color-typo-primary"
6
+ },
7
+ Details: {
8
+ label: "Details",
9
+ color: "text-fm-color-typo-primary"
10
+ },
11
+ Print: {
12
+ label: "Print",
13
+ color: "text-fm-color-typo-primary"
14
+ },
15
+ Edit: {
16
+ label: "Edit",
17
+ color: "text-fm-color-typo-primary"
18
+ },
19
+ Delete: {
20
+ label: "Delete",
21
+ color: "text-fm-color-typo-error"
22
+ }
23
+ };
24
+ export {
25
+ l as D,
26
+ e as F,
27
+ r as R
28
+ };
@@ -0,0 +1,86 @@
1
+ import { a as u, q as s, j as m, g as d, t as a } from "./date2-C7HiAWQG.js";
2
+ function y() {
3
+ return function(n) {
4
+ return !!n || "Required";
5
+ };
6
+ }
7
+ function b(t) {
8
+ return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "amount") && Object.prototype.hasOwnProperty.call(t, "precision");
9
+ }
10
+ function A(t, n) {
11
+ const o = typeof t == "object" ? +u(t) : t;
12
+ function i(e) {
13
+ return Object.prototype.hasOwnProperty.call(e, "length");
14
+ }
15
+ return function(r) {
16
+ return b(r) && (r = +u(r)), i(r) ? r.length >= o ? !0 : typeof n == "function" ? n(r.length) : n ?? `Must be at least ${o}` : typeof r == "number" ? r >= o ? !0 : typeof n == "function" ? n(r) : n ?? `Must be at least ${o}` : `Cannot validate at least ${o}`;
17
+ };
18
+ }
19
+ function M(t) {
20
+ const n = typeof t == "object" ? +u(t) : t;
21
+ function o(i) {
22
+ return Object.prototype.hasOwnProperty.call(i, "length");
23
+ }
24
+ return function(e, r) {
25
+ return b(e) && (e = +u(e)), o(e) ? e.length > n ? !0 : typeof r == "function" ? r(e.length) : r ?? `Must be more than ${n}` : typeof e == "number" ? e > n ? !0 : typeof r == "function" ? r(e) : r ?? `Must be more than ${n}` : `Cannot validate more than ${n}`;
26
+ };
27
+ }
28
+ function j(t, n) {
29
+ return t instanceof Date && n instanceof Date ? function(i) {
30
+ const e = new Date(i);
31
+ return isNaN(e.getTime()) ? "Invalid date" : e.getTime() < t.getTime() ? `Date must be at least ${s(t)} ${m(t)}` : e.getTime() >= n.getTime() ? `Date must be less than ${s(n)} ${m(n)}` : !0;
32
+ } : typeof t == "number" && typeof n == "number" ? function(i) {
33
+ const e = +i;
34
+ return isNaN(e) ? "Invalid number" : e < t ? `Value must be at least ${t}` : e >= n ? `Value must be less than ${n}` : !0;
35
+ } : function() {
36
+ return "Progamming error: invalid range parameter.";
37
+ };
38
+ }
39
+ function c() {
40
+ return function(t) {
41
+ if (t = String(t), t.length === 0)
42
+ return !0;
43
+ const n = +t;
44
+ return isFinite(n) || "Must be a number";
45
+ };
46
+ }
47
+ function P(t, n) {
48
+ return typeof t == "number" ? function(i) {
49
+ const e = c()(i);
50
+ return typeof e == "string" ? e : a(+i).precision > t ? `Precision cannot be more than ${t}` : !0;
51
+ } : function(i) {
52
+ const e = c()(i);
53
+ if (typeof e == "string")
54
+ return e;
55
+ const r = d(t, n), f = +u({
56
+ amount: 1,
57
+ precision: r
58
+ });
59
+ return a(+i).precision > r ? `Precision cannot be more than ${f}` : !0;
60
+ };
61
+ }
62
+ function $(t, n) {
63
+ return function(i) {
64
+ const e = c()(i);
65
+ if (typeof e == "string")
66
+ return e;
67
+ const r = a(+i);
68
+ return r.precision > t ? typeof n == "function" ? n(r.precision) : n ?? `Precision cannot be more than ${t}` : !0;
69
+ };
70
+ }
71
+ function g(t, n, o) {
72
+ return function(e) {
73
+ if (e === n) return !0;
74
+ const r = t.find((f) => f.value === e);
75
+ return r ? o ? o(r) : `Already used in ${r.label}` : !0;
76
+ };
77
+ }
78
+ export {
79
+ A,
80
+ j as B,
81
+ M,
82
+ y as R,
83
+ g as U,
84
+ P as a,
85
+ $ as b
86
+ };
@@ -0,0 +1,10 @@
1
+ export declare function useApiStore(): {
2
+ readonly backendUrls: {
3
+ portalBackendUrl: string;
4
+ businessesBackendUrl: string;
5
+ inventoryBackendUrl: string;
6
+ foodMarketHubUrl: string;
7
+ menuV4BackendUrl: string;
8
+ };
9
+ refreshAuth(token: string): Promise<any>;
10
+ };
@@ -0,0 +1,5 @@
1
+ export declare function useEnv(): {
2
+ readonly isDev: boolean;
3
+ readonly appApi: AppApi;
4
+ readonly appEndpoint: AppEndpoint;
5
+ };
@@ -0,0 +1,9 @@
1
+ export declare const useFeatureStore: () => {
2
+ readonly businessDbName: string;
3
+ readonly isWarehouse: boolean;
4
+ readonly restaurantPosVersion: any;
5
+ readonly enableTotalCost: boolean;
6
+ readonly enableBackdatePo: boolean;
7
+ readonly autoReceiveWarehouse: boolean;
8
+ readonly manualReceive: boolean;
9
+ };
@@ -0,0 +1,37 @@
1
+ /// <reference types="googlemaps" />
2
+ /// <reference types="googlemaps" />
3
+ /// <reference types="googlemaps" />
4
+ /// <reference types="googlemaps" />
5
+ /// <reference types="googlemaps" />
6
+ /// <reference types="googlemaps" />
7
+ /// <reference types="googlemaps" />
8
+ /// <reference types="googlemaps" />
9
+ /// <reference types="googlemaps" />
10
+ /// <reference types="googlemaps" />
11
+ /// <reference types="googlemaps" />
12
+ /// <reference types="googlemaps" />
13
+ /// <reference types="googlemaps" />
14
+ /// <reference types="googlemaps" />
15
+ /// <reference types="googlemaps" />
16
+ /// <reference types="googlemaps" />
17
+ /// <reference types="googlemaps" />
18
+ /// <reference types="googlemaps" />
19
+ /// <reference types="googlemaps" />
20
+ /// <reference types="googlemaps" />
21
+ /// <reference types="googlemaps" />
22
+ /// <reference types="googlemaps" />
23
+ /// <reference types="googlemaps" />
24
+ /// <reference types="googlemaps" />
25
+ /// <reference types="googlemaps" />
26
+ export interface GoogleMapStore {
27
+ _googleMap: typeof google;
28
+ }
29
+ export declare function useGoogleMapStore(): {
30
+ _googleMap: typeof google;
31
+ readonly googleMap: typeof google;
32
+ readonly isGoogleMapReady: boolean;
33
+ initGoogleMap(apiKey: string): Promise<void>;
34
+ getGeocoder(): google.maps.Geocoder;
35
+ getFirstMatchingAddress(lat: number, lng: number): Promise<string>;
36
+ getFirstMatchingCoordinate(address: string): Promise<[number, number]>;
37
+ };
@@ -0,0 +1,8 @@
1
+ export declare const otherServers: string[];
2
+ export declare function generateBackendUrl(country: string): {
3
+ portalBackendUrl: string;
4
+ businessesBackendUrl: string;
5
+ inventoryBackendUrl: string;
6
+ foodMarketHubUrl: string;
7
+ menuV4BackendUrl: string;
8
+ };