@feedmepos/mf-inventory-portal 0.0.17-dev.9 → 0.0.18-dev.3
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/ApprovalView-G-u9nPxH.js +118 -0
- package/dist/{BindingsDialog-Dw_DCOTY.js → BindingsDialog-CVeD1mOn.js} +2 -2
- package/dist/{BindingsPicker-BRLTF4Qs.js → BindingsPicker-K04aOoGr.js} +2 -2
- package/dist/BindingsTable-65aYkpX7.js +147 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DgHp7KgJ.js +268 -0
- package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-YzVhmNJc.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-C5WBLEy3.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Dv01gy7k.js → FmUnitInput.vue_vue_type_script_setup_true_lang-QKFZeZKM.js} +12 -12
- package/dist/IngredientsView-6Q2UWsu-.js +1776 -0
- package/dist/{IntegrationView-Xnl758CS.js → IntegrationView-ZMPPIopU.js} +260 -266
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CUj9Mnt6.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-C8YTZoBw.js} +6 -6
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CW0h41FP.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-kidodonU.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-DzimxkGt.js → PurchaseOrderPrintPreview-B4uzudnC.js} +1 -1
- package/dist/ReceiveRequestView-DuHtLwZN.js +1394 -0
- package/dist/{RecipeView-B9NcEw7x.js → RecipeView-CRj0pC9N.js} +182 -190
- package/dist/StockView-CQbeZ5pU.js +1862 -0
- package/dist/SupplierView-CrfQATQf.js +796 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BSwsz8Xt.js → TransferDetails.vue_vue_type_script_setup_true_lang-CLUo-Tve.js} +21 -20
- package/dist/{UnitView-BvbaRHxG.js → UnitView-D1acjiRV.js} +129 -133
- package/dist/{WarehouseView-Cf5Bmfhn.js → WarehouseView-DID1G1qK.js} +260 -264
- package/dist/app-D1teOEQX.js +66113 -0
- package/dist/app.js +1 -1
- package/dist/array-AvWd53LI.js +30 -0
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +53 -0
- package/dist/date2-6Vt_hnAG.js +95 -0
- package/dist/dayjs.min-Co7-8-Mb.js +282 -0
- package/dist/{decimal-S-jYTEL5.js → decimal-ziY3648r.js} +1 -1
- package/dist/extensions/array.d.ts +1 -0
- package/dist/{fuzzy-DW00BX8H.js → fuzzy-gvHXFsh0.js} +1 -1
- package/dist/{dayjs.min-M4PEyOKN.js → index-Do1KDD1S.js} +3594 -3356
- package/dist/{layout-DACHKQ9G.js → layout-BxDEsp4a.js} +1 -1
- package/dist/number-Dvvpk3SV.js +97 -0
- package/dist/{rules-ldw61cGA.js → rules-CQu9yXsg.js} +16 -15
- package/dist/stock-estimate-Wysv30cx.js +122 -0
- package/dist/{supplier-DjKC4TaM.js → supplier-BFdAYn3E.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-D1M09VoX.js → use-inventory-binding-dialog-CuyOzZ5r.js} +2 -2
- package/dist/views/ingredients/IngredientsView.vue.d.ts +1 -0
- package/dist/{xlsx-BcM9fWkc.js → xlsx-BG4CsaGF.js} +1 -1
- package/dist/{xlsx.util-BNXjhkYU.js → xlsx.util-BkVYceD0.js} +2 -2
- package/package.json +4 -4
- package/dist/ApprovalView-BJ_SGOrx.js +0 -134
- package/dist/BindingsTable-BMIkL0Bk.js +0 -121
- package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D9Qp3jke.js +0 -97
- package/dist/IngredientsView-DYFkUsHx.js +0 -1802
- package/dist/ReceiveRequestView-C_0jK6GY.js +0 -1435
- package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-Dov3Uq2z.js +0 -64
- package/dist/StockView-JPw1K8aU.js +0 -1960
- package/dist/SupplierView-CiQLFWmQ.js +0 -804
- package/dist/app-BbXzmbBO.js +0 -42892
- package/dist/components/FmTableToolbar.vue.d.ts +0 -49
- package/dist/date2-DFqSdEvG.js +0 -189
- package/dist/init-date-range-B_ha80e0.js +0 -21
- package/dist/stock-estimate-DOP1qO5w.js +0 -145
package/dist/{use-inventory-binding-dialog-D1M09VoX.js → use-inventory-binding-dialog-CuyOzZ5r.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as y } from "./FmMultiselectDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { u as v } from "./app-
|
|
1
|
+
import { _ as y } from "./FmMultiselectDialog.vue_vue_type_script_setup_true_lang-C5WBLEy3.js";
|
|
2
|
+
import { u as v } from "./app-D1teOEQX.js";
|
|
3
3
|
import { useDialog as g } from "@feedmepos/ui-library";
|
|
4
4
|
function E() {
|
|
5
5
|
const d = v(), f = g();
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import '@/extensions/array';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
3
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Nn = { env: { NVM_INC: "/Users/rzfeedme/.nvm/versions/node/v20.10.0/include/node", npm_package_dependencies_change_case: "^5.4.4", npm_package_devDependencies__types_debounce: "^1.2.4", npm_package_devDependencies_npm_run_all2: "^6.2.0", npm_package_devDependencies_prettier: "^3.2.5", TERM_PROGRAM: "vscode", NODE: "/Users/rzfeedme/.nvm/versions/node/v20.10.0/bin/node", INIT_CWD: "/Users/rzfeedme/Documents/git-items/inventory-service/apps/inventory-portal", ANDROID_HOME: "/Users/rzfeedme/Library/Android/sdk", NVM_CD_FLAGS: "-q", npm_package_scripts_prod: "PORTAL_ENV=production vite", npm_package_dependencies__feedmepos_inventory_core: "workspace:^", npm_package_dependencies_axios: "^1.7.1", npm_package_devDependencies_typescript: "5.2.2", TERM: "xterm-256color", SHELL: "/bin/zsh", npm_package_dependencies_csstype: "^3.1.3", npm_package_devDependencies_vite: "5.4.8", npm_package_dependencies__tanstack_vue_table: "^8.17.3", npm_package_dependencies_fuzzy: "^0.1.3", TMPDIR: "/var/folders/y0/dl1x9_2j16g0yk8d6lld9t180000gn/T/", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", TERM_PROGRAM_VERSION: "1.95.3", npm_package_exports___style: "./dist/style.css", npm_package_scripts_dev: "vite", npm_package_dependencies__vue_cli_service: "^5.0.8", npm_package_devDependencies__vitejs_plugin_vue: "^4.6.2", ZDOTDIR: "/Users/rzfeedme", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", MallocNanoZone: "0", npm_package_dependencies_debounce: "^2.0.0",
|
|
1
|
+
var Nn = { env: { NVM_INC: "/Users/rzfeedme/.nvm/versions/node/v20.10.0/include/node", npm_package_dependencies_change_case: "^5.4.4", npm_package_devDependencies__types_debounce: "^1.2.4", npm_package_devDependencies_npm_run_all2: "^6.2.0", npm_package_devDependencies_prettier: "^3.2.5", TERM_PROGRAM: "vscode", NODE: "/Users/rzfeedme/.nvm/versions/node/v20.10.0/bin/node", INIT_CWD: "/Users/rzfeedme/Documents/git-items/inventory-service/apps/inventory-portal", ANDROID_HOME: "/Users/rzfeedme/Library/Android/sdk", NVM_CD_FLAGS: "-q", npm_package_scripts_prod: "PORTAL_ENV=production vite", npm_package_dependencies__feedmepos_inventory_core: "workspace:^", npm_package_dependencies_axios: "^1.7.1", npm_package_devDependencies_typescript: "5.2.2", TERM: "xterm-256color", SHELL: "/bin/zsh", npm_package_dependencies_csstype: "^3.1.3", npm_package_devDependencies_vite: "5.4.8", npm_package_dependencies__tanstack_vue_table: "^8.17.3", npm_package_dependencies_fuzzy: "^0.1.3", TMPDIR: "/var/folders/y0/dl1x9_2j16g0yk8d6lld9t180000gn/T/", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", TERM_PROGRAM_VERSION: "1.95.3", npm_package_exports___style: "./dist/style.css", npm_package_scripts_dev: "vite", npm_package_dependencies__vue_cli_service: "^5.0.8", npm_package_devDependencies__vitejs_plugin_vue: "^4.6.2", ZDOTDIR: "/Users/rzfeedme", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", MallocNanoZone: "0", npm_package_dependencies_debounce: "^2.0.0", npm_package_scripts_prod_standalone: "PORTAL_ENV=production vite --mode standalone", npm_package_devDependencies__rushstack_eslint_patch: "^1.10.3", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", npm_config_registry: "https://registry.npmjs.org/", ZSH: "/Users/rzfeedme/.oh-my-zsh", npm_package_devDependencies_happy_dom: "^12.10.3", npm_package_dependencies_dayjs: "^1.11.11", npm_package_dependencies_xlsx: "^0.18.5", NVM_DIR: "/Users/rzfeedme/.nvm", USER: "rzfeedme", LS_COLORS: "di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43", npm_package_scripts_test_publish: "pnpm prepublish && pnpm pack", npm_package_dependencies__feedmepos_mf_common: "1.9.3-beta.1", COMMAND_MODE: "unix2003", npm_package_scripts_deploy: "pnpm run build-only && pnpm publish --no-git-checks .", PNPM_SCRIPT_SRC_DIR: "/Users/rzfeedme/Documents/git-items/inventory-service/apps/inventory-portal", npm_package_exports___import: "./dist/app.js", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.B59CM2dPfD/Listeners", npm_package_scripts_check_env: 'cat build-*.env | grep -qE "^[^#].*localhost" && { echo "Error: build-*.env files contains localhost reference" >&2; exit 1;} || exit 0', npm_package_scripts_prepublish: "pnpm check:env && pnpm build:mf && pnpm build:dts", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_eslint: "^8.57.0", npm_package_devDependencies_postcss: "^8.4.38", npm_package_scripts_publish_beta: "pnpm publish --tag beta", npm_config__feedmepos_registry: "https://registry.npmjs.org/", npm_execpath: "/Users/rzfeedme/.nvm/versions/node/v20.10.0/lib/node_modules/pnpm/bin/pnpm.cjs", PAGER: "less", npm_package_module: "./dist/app.js", npm_package_dependencies__feedmepos_core: "^2.9.3", npm_package_dependencies_google_maps: "^4.3.3", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_config_frozen_lockfile: "", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", PATH: "/Users/rzfeedme/Documents/git-items/inventory-service/apps/inventory-portal/node_modules/.bin:/Users/rzfeedme/.nvm/versions/node/v20.10.0/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/rzfeedme/Documents/git-items/inventory-service/node_modules/.bin:/Users/rzfeedme/Documents/git-items/inventory-service/apps/inventory-portal/node_modules/.bin:/Users/rzfeedme/.nvm/versions/node/v20.10.0/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/rzfeedme/Documents/git-items/inventory-service/node_modules/.bin:/opt/hermes-cli-darwin-v0.12.0:/Users/rzfeedme/.bun/bin:/Users/rzfeedme/fvm/default/bin:/Users/rzfeedme/Library/Python/3.9/bin:/opt/homebrew/opt/libtool/libexec/gnubin:/Users/rzfeedme/.nvm/versions/node/v20.10.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/opt/hermes-cli-darwin-v0.12.0:/Users/rzfeedme/.bun/bin:/Users/rzfeedme/fvm/default/bin:/Users/rzfeedme/Library/Python/3.9/bin:/opt/homebrew/opt/libtool/libexec/gnubin:/Users/rzfeedme/.nvm/versions/node/v20.10.0/bin:/Users/rzfeedme/.cargo/bin:/opt/homebrew/bin:/usr/local/bin:/opt/homebrew/bin", npm_package_devDependencies_vite_plugin_commonjs: "^0.10.3", npm_package_dependencies_vue: "^3.4.31", USER_ZDOTDIR: "/Users/rzfeedme", __CFBundleIdentifier: "com.microsoft.VSCode", npm_config_dedupe_peer_dependents: "", PWD: "/Users/rzfeedme/Documents/git-items/inventory-service/apps/inventory-portal", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_devDependencies_cypress: "^13.9.0", npm_package_devDependencies_tailwindcss: "3.4.1", npm_command: "run-script", npm_package_devDependencies__tsconfig_node18: "^18.2.4", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && pnpm build-types", npm_lifecycle_event: "build:mf", LANG: "en_US.UTF-8", npm_package_name: "@feedmepos/mf-inventory-portal", npm_package_devDependencies__testing_library_vue: "^8.1.0", NODE_PATH: "/Users/rzfeedme/Documents/git-items/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules/vite/bin/node_modules:/Users/rzfeedme/Documents/git-items/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules/vite/node_modules:/Users/rzfeedme/Documents/git-items/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules:/Users/rzfeedme/Documents/git-items/inventory-service/node_modules/.pnpm/node_modules", npm_package_exports___types: "./dist/app.d.ts", npm_package_scripts_build: "vite build --mode standalone", npm_package_devDependencies__vue_test_utils: "^2.4.6", npm_package_devDependencies_sass: "^1.77.2", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", XPC_FLAGS: "0x0", npm_package_dependencies__feedmepos_zod_inventory: "workspace:^", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_package_devDependencies_vitest: "^1.6.0", npm_package_scripts_build_prod: "PORTAL_ENV=production vite build --mode standalone", npm_package_dependencies_fuzzy_search: "^3.2.1", npm_config_node_gyp: "/Users/rzfeedme/.nvm/versions/node/v20.10.0/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.0.18-dev.3", npm_package_scripts_dev_standalone: "vite --mode standalone", VSCODE_INJECTION: "1", GPG_TTY: "/dev/ttys017", npm_package_scripts_unpack: "tar zxf", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_autoprefixer: "^10.4.19", SHLVL: "3", HOME: "/Users/rzfeedme", npm_package_type: "module", npm_package_dependencies__feedmepos_inventory_core_js: "workspace:^", npm_package_devDependencies__vue_tsconfig: "^0.4.0", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_scripts_test: "vitest", npm_package_dependencies__feedmepos_menu: "1.0.34", npm_package_devDependencies__types_fuzzy_search: "^2.1.5", npm_package_devDependencies_eslint_plugin_vue: "^9.26.0", npm_package_dependencies_dotenv: "^16.4.5", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", LESS: "-R", LOGNAME: "rzfeedme", npm_package_scripts_format: "prettier --write src/", npm_package_dependencies_zod: "3.17.9", npm_lifecycle_script: "vite build --mode fmmf", VSCODE_GIT_IPC_HANDLE: "/var/folders/y0/dl1x9_2j16g0yk8d6lld9t180000gn/T/vscode-git-a99f04c0c7.sock", BUN_INSTALL: "/Users/rzfeedme/.bun", NVM_BIN: "/Users/rzfeedme/.nvm/versions/node/v20.10.0/bin", npm_package_dependencies_dinero_js: "^1.9.1", npm_config_user_agent: "pnpm/9.12.1 npm/? node/v20.10.0 darwin arm64", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", npm_package_devDependencies__types_node: "^18.19.33", npm_package_files_0: "dist", npm_package_scripts_build_mf_prod: "PORTAL_ENV=production vite build --mode fmmf", npm_package_dependencies__feedmepos_ui_library: "1.2.58", npm_package_dependencies_vue_router: "^4.3.2", COLORTERM: "truecolor", npm_package_devDependencies_vue_tsc: "^1.8.27", npm_node_execpath: "/Users/rzfeedme/.nvm/versions/node/v20.10.0/bin/node", NODE_ENV: "production" } };
|
|
2
2
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
3
3
|
var fn = {};
|
|
4
4
|
fn.version = "0.18.5";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as _, openBlock as f, createElementBlock as u, createElementVNode as x, toDisplayString as d, Fragment as g, renderList as M, unref as v } from "vue";
|
|
2
|
-
import { a as h, b } from "./
|
|
3
|
-
import { u as y, w as k, r as S } from "./xlsx-
|
|
2
|
+
import { a as h, b } from "./number-Dvvpk3SV.js";
|
|
3
|
+
import { u as y, w as k, r as S } from "./xlsx-BG4CsaGF.js";
|
|
4
4
|
const A = { class: "flex flex-col" }, $ = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, B = { class: "flex-1 py-8 px-16" }, E = /* @__PURE__ */ x("div", {
|
|
5
5
|
class: "flex-0 py-8 px-16",
|
|
6
6
|
style: { "flex-basis": "120px" }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-inventory-portal",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18-dev.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"vue-router": "^4.3.2",
|
|
38
38
|
"xlsx": "^0.18.5",
|
|
39
39
|
"zod": "3.17.9",
|
|
40
|
-
"@feedmepos/inventory
|
|
41
|
-
"@feedmepos/inventory-core": "^0.2.
|
|
42
|
-
"@feedmepos/
|
|
40
|
+
"@feedmepos/zod-inventory": "^1.0.9",
|
|
41
|
+
"@feedmepos/inventory-core": "^0.2.17",
|
|
42
|
+
"@feedmepos/inventory-core-js": "^1.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@rushstack/eslint-patch": "^1.10.3",
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ee, ref as h, watch as te, computed as ae, resolveComponent as H, openBlock as D, createBlock as U, withCtx as x, createElementVNode as a, createVNode as r, unref as e, normalizeStyle as oe, toDisplayString as re, createElementBlock as se, createCommentVNode as ne, Teleport as le, mergeProps as ce } from "vue";
|
|
2
|
-
import { r as f, f as ie } from "./app-BbXzmbBO.js";
|
|
3
|
-
import { a as pe } from "./init-date-range-B_ha80e0.js";
|
|
4
|
-
import { a as me, b as ue, _ as de } from "./TransferDetails.vue_vue_type_script_setup_true_lang-BSwsz8Xt.js";
|
|
5
|
-
import { q as G } from "./date2-DFqSdEvG.js";
|
|
6
|
-
import { _ as fe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-Dov3Uq2z.js";
|
|
7
|
-
import { _ as _e } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D9Qp3jke.js";
|
|
8
|
-
import { _ as ve, F as _, u as he } from "./layout-DACHKQ9G.js";
|
|
9
|
-
import { useBreakpoints as De } from "@feedmepos/ui-library";
|
|
10
|
-
const xe = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, ge = { class: "px-8 flex gap-8 items-center xs:gap-0 xs:flex-col-reverse sm:gap-0 sm:flex-col-reverse" }, be = { class: "xs:w-full sm:w-full flex gap-8 items-center overflow-x-auto no-scrollbar py-8" }, ye = /* @__PURE__ */ a("div", { class: "h-32" }, null, -1), we = { class: "flex-1 w-full" }, Re = { class: "flex flex-col py-8" }, Te = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Se = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
13
|
-
}, Ce = { class: "pt-8" }, je = /* @__PURE__ */ ee({
|
|
14
|
-
__name: "ApprovalView",
|
|
15
|
-
setup(Fe) {
|
|
16
|
-
const s = me("approval"), { columnDefs: J } = ue("approval", s), K = ie();
|
|
17
|
-
f.object({
|
|
18
|
-
name: f.string().optional().nullable(),
|
|
19
|
-
start: f.date().optional().nullable(),
|
|
20
|
-
end: f.date().optional().nullable()
|
|
21
|
-
});
|
|
22
|
-
const g = h({
|
|
23
|
-
name: "",
|
|
24
|
-
...pe()
|
|
25
|
-
}), o = h({
|
|
26
|
-
startDate: G(g.value.start ?? /* @__PURE__ */ new Date()),
|
|
27
|
-
endDate: G(g.value.end ?? /* @__PURE__ */ new Date())
|
|
28
|
-
});
|
|
29
|
-
te([() => o.value.startDate], () => {
|
|
30
|
-
if (!o.value.startDate)
|
|
31
|
-
return;
|
|
32
|
-
if (!o.value.endDate) {
|
|
33
|
-
o.value.endDate = o.value.startDate;
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const y = new Date(o.value.startDate);
|
|
37
|
-
if (new Date(o.value.endDate).getTime() < y.getTime()) {
|
|
38
|
-
o.value.endDate = o.value.startDate;
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
const v = h(""), { breakpoints: b } = De(), Q = ae(() => b.value.xs || b.value.sm ? 10 : 20), W = he(), X = [
|
|
43
|
-
{
|
|
44
|
-
label: "Refresh",
|
|
45
|
-
icon: "refresh",
|
|
46
|
-
key: "refresh"
|
|
47
|
-
}
|
|
48
|
-
];
|
|
49
|
-
return (y, l) => {
|
|
50
|
-
const Z = H("FmTableToolbar"), B = H("FmTable");
|
|
51
|
-
return D(), U(fe, { title: "Approval" }, {
|
|
52
|
-
default: x(() => [
|
|
53
|
-
a("div", xe, [
|
|
54
|
-
a("div", ge, [
|
|
55
|
-
a("div", be, [
|
|
56
|
-
r(_e),
|
|
57
|
-
ye
|
|
58
|
-
]),
|
|
59
|
-
a("div", we, [
|
|
60
|
-
r(Z, {
|
|
61
|
-
searchable: "",
|
|
62
|
-
"search-model": v.value,
|
|
63
|
-
"onUpdate:searchModel": l[0] || (l[0] = (n) => v.value = n),
|
|
64
|
-
actions: X,
|
|
65
|
-
"onClick:actionRefresh": e(s).fetchData
|
|
66
|
-
}, null, 8, ["search-model", "onClick:actionRefresh"])
|
|
67
|
-
])
|
|
68
|
-
]),
|
|
69
|
-
r(B, {
|
|
70
|
-
style: oe(e(W).tableHeight),
|
|
71
|
-
"column-defs": e(J),
|
|
72
|
-
"row-data": e(s).purchaseRequests.value,
|
|
73
|
-
"search-value": v.value,
|
|
74
|
-
loading: !e(K)._currentLocation || e(s).loading.value,
|
|
75
|
-
onRowClick: l[1] || (l[1] = (n) => e(s).promptShowTransferDetails(n.original.purchaseOrder, n.original)),
|
|
76
|
-
"page-size": Q.value
|
|
77
|
-
}, {
|
|
78
|
-
"list-row": x((n) => [
|
|
79
|
-
r(ve, {
|
|
80
|
-
row: n,
|
|
81
|
-
onRowClick: (t) => e(s).promptShowTransferDetails(t.purchaseOrder, t)
|
|
82
|
-
}, {
|
|
83
|
-
default: x((t) => {
|
|
84
|
-
var w, R, T, c, k, O, S, C, i, F, M, p, $, m, q, z, V, Y, A, u, L, N, j, E, d, P;
|
|
85
|
-
return [
|
|
86
|
-
a("div", Re, [
|
|
87
|
-
a("div", Te, [
|
|
88
|
-
r(e(_), {
|
|
89
|
-
render: (T = (R = (w = t.purchaseOrder__id) == null ? void 0 : w.column) == null ? void 0 : R.columnDef) == null ? void 0 : T.cell,
|
|
90
|
-
props: (k = (c = t.purchaseOrder__id) == null ? void 0 : c.getContext) == null ? void 0 : k.call(c)
|
|
91
|
-
}, null, 8, ["render", "props"])
|
|
92
|
-
]),
|
|
93
|
-
a("div", ke, [
|
|
94
|
-
r(e(_), {
|
|
95
|
-
render: (C = (S = (O = t.to_name) == null ? void 0 : O.column) == null ? void 0 : S.columnDef) == null ? void 0 : C.cell,
|
|
96
|
-
props: (F = (i = t.to_name) == null ? void 0 : i.getContext) == null ? void 0 : F.call(i)
|
|
97
|
-
}, null, 8, ["render", "props"])
|
|
98
|
-
]),
|
|
99
|
-
a("div", Oe, re((q = (m = ($ = (p = (M = n.original.purchaseOrder) == null ? void 0 : M.items) == null ? void 0 : p.map) == null ? void 0 : $.call(p, (I) => `${I.name}`)) == null ? void 0 : m.join) == null ? void 0 : q.call(m, ", ")), 1),
|
|
100
|
-
(z = n.original.purchaseOrder) != null && z.ref ? (D(), se("div", Se, [
|
|
101
|
-
r(e(_), {
|
|
102
|
-
render: (A = (Y = (V = t.purchaseOrder_ref) == null ? void 0 : V.column) == null ? void 0 : Y.columnDef) == null ? void 0 : A.cell,
|
|
103
|
-
props: (L = (u = t.purchaseOrder_ref) == null ? void 0 : u.getContext) == null ? void 0 : L.call(u)
|
|
104
|
-
}, null, 8, ["render", "props"])
|
|
105
|
-
])) : ne("", !0),
|
|
106
|
-
a("div", Ce, [
|
|
107
|
-
r(e(_), {
|
|
108
|
-
render: (E = (j = (N = t.purchaseOrder_status) == null ? void 0 : N.column) == null ? void 0 : j.columnDef) == null ? void 0 : E.cell,
|
|
109
|
-
props: (P = (d = t.purchaseOrder_status) == null ? void 0 : d.getContext) == null ? void 0 : P.call(d)
|
|
110
|
-
}, null, 8, ["render", "props"])
|
|
111
|
-
])
|
|
112
|
-
])
|
|
113
|
-
];
|
|
114
|
-
}),
|
|
115
|
-
_: 2
|
|
116
|
-
}, 1032, ["row", "onRowClick"])
|
|
117
|
-
]),
|
|
118
|
-
_: 1
|
|
119
|
-
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
120
|
-
]),
|
|
121
|
-
(D(), U(le, { to: "body" }, [
|
|
122
|
-
r(de, ce(e(s).transferDetailsProps.value, {
|
|
123
|
-
onSubmitted: e(s).fetchData
|
|
124
|
-
}), null, 16, ["onSubmitted"])
|
|
125
|
-
]))
|
|
126
|
-
]),
|
|
127
|
-
_: 1
|
|
128
|
-
});
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
export {
|
|
133
|
-
je as default
|
|
134
|
-
};
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, ref as o, provide as C, computed as v, resolveComponent as x, openBlock as r, createElementBlock as u, Fragment as L, renderList as F, createElementVNode as p, toDisplayString as k, createVNode as w, withModifiers as I, createStaticVNode as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
|
|
2
|
-
import { i as b, u as P, A as R } from "./app-BbXzmbBO.js";
|
|
3
|
-
import "./dayjs.min-M4PEyOKN.js";
|
|
4
|
-
import "@feedmepos/ui-library";
|
|
5
|
-
import "./fuzzy-DW00BX8H.js";
|
|
6
|
-
const U = { class: "" }, D = /* @__PURE__ */ N('<div class="flex font-bold bg-[#F7F8FA]"><div class="flex-grow-0 flex-shrink-0 basis-5/12 py-8"></div><div class="flex-grow-0 flex-shrink-0 basis-3/12 py-8">Ingredient</div><div class="flex-grow-0 flex-shrink-0 basis-3/12 py-8">Recipe</div><div class="flex-grow-0 flex-shrink-0 basis-1/12 py-8"></div></div>', 1), O = ["onClick"], V = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, A = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ h({
|
|
7
|
-
__name: "binding-ui",
|
|
8
|
-
props: {
|
|
9
|
-
items: { default: () => [] },
|
|
10
|
-
recipes: { default: () => [] },
|
|
11
|
-
skus: { default: () => [] },
|
|
12
|
-
type: { default: "Product" },
|
|
13
|
-
editable: { type: Boolean, default: !1 }
|
|
14
|
-
},
|
|
15
|
-
emits: ["click:open-binding-dialog"],
|
|
16
|
-
setup(g, { emit: l }) {
|
|
17
|
-
const a = o({
|
|
18
|
-
isOpen: !1,
|
|
19
|
-
initialValue: [],
|
|
20
|
-
context: "",
|
|
21
|
-
name: ""
|
|
22
|
-
});
|
|
23
|
-
C("closeDialog", () => {
|
|
24
|
-
a.value.isOpen = !a.value.isOpen;
|
|
25
|
-
});
|
|
26
|
-
const n = g, f = l, _ = v(() => n.items.map((i) => ({
|
|
27
|
-
key: i.key,
|
|
28
|
-
name: i.name,
|
|
29
|
-
_skuLinked: i.bindings.filter(
|
|
30
|
-
({ type: t, id: e }) => t === b.enum.SKU && n.skus.some((c) => c._id === e)
|
|
31
|
-
).length,
|
|
32
|
-
_recipeLinked: i.bindings.filter(
|
|
33
|
-
({ type: t, id: e }) => t === b.enum.RECIPE && n.recipes.some((c) => c._id === e)
|
|
34
|
-
).length,
|
|
35
|
-
onUpdate: async () => {
|
|
36
|
-
n.editable && f("click:open-binding-dialog", n.type, i);
|
|
37
|
-
}
|
|
38
|
-
})));
|
|
39
|
-
return (m, i) => {
|
|
40
|
-
const t = x("FmButton");
|
|
41
|
-
return r(), u("div", U, [
|
|
42
|
-
D,
|
|
43
|
-
(r(!0), u(L, null, F(_.value, (e) => (r(), u("div", {
|
|
44
|
-
key: e.key,
|
|
45
|
-
class: "cursor-pointer flex border-t border-[rgba(17,32,47,0.15] items-center",
|
|
46
|
-
onClick: e.onUpdate
|
|
47
|
-
}, [
|
|
48
|
-
p("div", V, k(e.name), 1),
|
|
49
|
-
p("div", $, k(e._skuLinked ? `${e._skuLinked} linked` : "Not linked"), 1),
|
|
50
|
-
p("div", S, k(e._recipeLinked ? `${e._recipeLinked} linked` : "Not linked"), 1),
|
|
51
|
-
p("div", A, [
|
|
52
|
-
w(t, {
|
|
53
|
-
variant: "tertiary",
|
|
54
|
-
icon: "edit",
|
|
55
|
-
"icon-color": "#000",
|
|
56
|
-
size: "md",
|
|
57
|
-
disabled: !n.editable,
|
|
58
|
-
type: "button",
|
|
59
|
-
onClick: I(e.onUpdate, ["stop"])
|
|
60
|
-
}, null, 8, ["disabled", "onClick"])
|
|
61
|
-
])
|
|
62
|
-
], 8, O))), 128))
|
|
63
|
-
]);
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
}), Y = {
|
|
67
|
-
key: 1,
|
|
68
|
-
class: "p-24 flex items-center justify-center gap-16"
|
|
69
|
-
}, j = /* @__PURE__ */ p("div", null, "Loading bindings table...", -1), Q = /* @__PURE__ */ h({
|
|
70
|
-
__name: "BindingsTable",
|
|
71
|
-
setup(g) {
|
|
72
|
-
const l = P(), a = o(!0), n = o(new Array()), f = v(() => l.recipes), _ = v(() => l.skus), m = o(""), i = R(e), t = o();
|
|
73
|
-
async function e() {
|
|
74
|
-
await l.readInventory(), t.value = i.onMessage(
|
|
75
|
-
"props:grouped-bindings",
|
|
76
|
-
(s) => {
|
|
77
|
-
a.value = !1, n.value = s;
|
|
78
|
-
}
|
|
79
|
-
), i.sendMessage("props:grouped-bindings");
|
|
80
|
-
}
|
|
81
|
-
async function c(s, d) {
|
|
82
|
-
i.sendMessage("@click:open-binding-dialog", {
|
|
83
|
-
key: s,
|
|
84
|
-
binding: d
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
const y = o();
|
|
88
|
-
return E(() => {
|
|
89
|
-
const s = y.value;
|
|
90
|
-
s && new ResizeObserver(() => {
|
|
91
|
-
i.sendMessage("resize", s.scrollHeight);
|
|
92
|
-
}).observe(s);
|
|
93
|
-
}), z(() => {
|
|
94
|
-
var s, d;
|
|
95
|
-
(d = (s = t.value) == null ? void 0 : s.removeEventListener) == null || d.call(s);
|
|
96
|
-
}), (s, d) => {
|
|
97
|
-
const B = x("FmCircularProgress");
|
|
98
|
-
return r(), u("div", {
|
|
99
|
-
class: "bg-white",
|
|
100
|
-
ref_key: "resizeableRef",
|
|
101
|
-
ref: y
|
|
102
|
-
}, [
|
|
103
|
-
a.value ? (r(), u("div", Y, [
|
|
104
|
-
w(B, { size: "md" }),
|
|
105
|
-
j
|
|
106
|
-
])) : (r(), M(T, {
|
|
107
|
-
key: 0,
|
|
108
|
-
items: n.value,
|
|
109
|
-
recipes: f.value,
|
|
110
|
-
skus: _.value,
|
|
111
|
-
type: m.value,
|
|
112
|
-
editable: "",
|
|
113
|
-
"onClick:openBindingDialog": c
|
|
114
|
-
}, null, 8, ["items", "recipes", "skus", "type"]))
|
|
115
|
-
], 512);
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
export {
|
|
120
|
-
Q as default
|
|
121
|
-
};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { defineComponent as S, ref as V, computed as p, resolveComponent as a, openBlock as t, createElementBlock as v, createVNode as l, withCtx as w, createElementVNode as i, toDisplayString as H, unref as _, Fragment as k, renderList as C, createBlock as d, createCommentVNode as L } from "vue";
|
|
2
|
-
import { f as I } from "./app-BbXzmbBO.js";
|
|
3
|
-
const B = { class: "inline-flex" }, D = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, z = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, E = {
|
|
4
|
-
class: "overflow-hidden overflow-y-scroll",
|
|
5
|
-
style: { maxHeight: "105px" }
|
|
6
|
-
}, R = {
|
|
7
|
-
class: "overflow-hidden overflow-y-scroll",
|
|
8
|
-
style: { maxHeight: "105px" }
|
|
9
|
-
}, W = /* @__PURE__ */ S({
|
|
10
|
-
__name: "ChangeLocationComponent",
|
|
11
|
-
setup($) {
|
|
12
|
-
const n = I(), s = V(""), f = p(
|
|
13
|
-
() => n.locations.map((o) => ({ label: o.name, value: o.dbName, type: o.type })).filter(
|
|
14
|
-
(o) => s.value ? o.label.toLocaleLowerCase().includes(s.value.toLocaleLowerCase()) : !0
|
|
15
|
-
)
|
|
16
|
-
), h = p(
|
|
17
|
-
() => f.value.filter((o) => o.type === "restaurant")
|
|
18
|
-
), b = p(
|
|
19
|
-
() => f.value.filter((o) => o.type === "warehouse")
|
|
20
|
-
);
|
|
21
|
-
function y({ value: o }) {
|
|
22
|
-
n.selectLocation(n.locations.find((c) => c.dbName === o));
|
|
23
|
-
}
|
|
24
|
-
return (o, c) => {
|
|
25
|
-
const x = a("FmIcon"), g = a("FmSearch"), m = a("FmMenuDivider"), F = a("FmMenuHeader"), u = a("FmMenuItem"), N = a("FmMenu");
|
|
26
|
-
return t(), v("div", B, [
|
|
27
|
-
l(N, { "close-on-click": !0 }, {
|
|
28
|
-
"menu-button": w(() => {
|
|
29
|
-
var e;
|
|
30
|
-
return [
|
|
31
|
-
i("div", D, [
|
|
32
|
-
l(x, {
|
|
33
|
-
name: "storefront",
|
|
34
|
-
size: "sm"
|
|
35
|
-
}),
|
|
36
|
-
i("div", z, H(((e = _(n)._currentLocation) == null ? void 0 : e.name) ?? "No location selected"), 1),
|
|
37
|
-
l(x, {
|
|
38
|
-
name: "expand_more",
|
|
39
|
-
size: "sm"
|
|
40
|
-
})
|
|
41
|
-
])
|
|
42
|
-
];
|
|
43
|
-
}),
|
|
44
|
-
default: w(() => [
|
|
45
|
-
l(g, {
|
|
46
|
-
"model-value": s.value,
|
|
47
|
-
"onUpdate:modelValue": c[0] || (c[0] = (e) => s.value = e),
|
|
48
|
-
class: "w-[200px]",
|
|
49
|
-
placeholder: "Filter result"
|
|
50
|
-
}, null, 8, ["model-value"]),
|
|
51
|
-
l(m),
|
|
52
|
-
l(F, { label: "Restaurant" }),
|
|
53
|
-
l(m),
|
|
54
|
-
i("div", E, [
|
|
55
|
-
(t(!0), v(k, null, C(h.value, (e) => {
|
|
56
|
-
var r;
|
|
57
|
-
return t(), d(u, {
|
|
58
|
-
key: e.value,
|
|
59
|
-
"model-value": ((r = _(n)._currentLocation) == null ? void 0 : r.dbName) === e.value,
|
|
60
|
-
label: e.label,
|
|
61
|
-
onClick: (M) => y(e)
|
|
62
|
-
}, null, 8, ["model-value", "label", "onClick"]);
|
|
63
|
-
}), 128))
|
|
64
|
-
]),
|
|
65
|
-
h.value.length ? L("", !0) : (t(), d(u, {
|
|
66
|
-
key: 0,
|
|
67
|
-
disabled: "",
|
|
68
|
-
label: "No result found"
|
|
69
|
-
})),
|
|
70
|
-
l(F, { label: "Warehouse" }),
|
|
71
|
-
l(m),
|
|
72
|
-
i("div", R, [
|
|
73
|
-
(t(!0), v(k, null, C(b.value, (e) => {
|
|
74
|
-
var r;
|
|
75
|
-
return t(), d(u, {
|
|
76
|
-
key: e.value,
|
|
77
|
-
"model-value": ((r = _(n)._currentLocation) == null ? void 0 : r.dbName) === e.value,
|
|
78
|
-
label: e.label,
|
|
79
|
-
onClick: (M) => y(e)
|
|
80
|
-
}, null, 8, ["model-value", "label", "onClick"]);
|
|
81
|
-
}), 128))
|
|
82
|
-
]),
|
|
83
|
-
b.value.length ? L("", !0) : (t(), d(u, {
|
|
84
|
-
key: 1,
|
|
85
|
-
disabled: "",
|
|
86
|
-
label: "No result found"
|
|
87
|
-
}))
|
|
88
|
-
]),
|
|
89
|
-
_: 1
|
|
90
|
-
})
|
|
91
|
-
]);
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
export {
|
|
96
|
-
W as _
|
|
97
|
-
};
|