@feedmepos/mf-inventory-portal 0.0.21-dev.3 → 0.0.21-dev.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 (36) hide show
  1. package/dist/ApprovalView-BHoJzHuo.js +129 -0
  2. package/dist/{BindingsDialog-TLWBqVLe.js → BindingsDialog-sUZjZtSl.js} +1 -1
  3. package/dist/{BindingsPicker-CArDO6LQ.js → BindingsPicker-CqzSUVc_.js} +1 -1
  4. package/dist/{BindingsTable-CVBhfcWm.js → BindingsTable-C1o5EgLy.js} +1 -1
  5. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CpN5Kn8b.js +374 -0
  6. package/dist/{IngredientsView-Sld49F2i.js → IngredientsView-CrXPIQme.js} +100 -92
  7. package/dist/IntegrationView-BJT-KMVp.js +1141 -0
  8. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BcDiOeBk.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DH0CcGmX.js} +1 -1
  9. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DVQozd4y.js → PremiumBadge.vue_vue_type_script_setup_true_lang-kJKVCH40.js} +1 -1
  10. package/dist/{PurchaseOrderPrintPreview-D0Rnf43J.js → PurchaseOrderPrintPreview-k26o__vy.js} +1 -1
  11. package/dist/ReceiveRequestView-ysOzzBTW.js +216 -0
  12. package/dist/{RecipeView-ppyuFTCK.js → RecipeView-DAH8YIzY.js} +182 -174
  13. package/dist/{StockView-CoDH6Yf_.js → StockView-BlCpuSLe.js} +564 -556
  14. package/dist/{SupplierView-D9pKF63i.js → SupplierView-Bwknjcke.js} +263 -255
  15. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
  16. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-ELF9eLeq.js → TransferDetails.vue_vue_type_script_setup_true_lang-LCNiBfi7.js} +4 -4
  17. package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-BbcRP-G_.js → TransferDialog.vue_vue_type_script_setup_true_lang-BDvtif2q.js} +5 -5
  18. package/dist/{TransferTemplateView-DMkSlBvQ.js → TransferTemplateView-DcMdNiH6.js} +370 -362
  19. package/dist/{UnitView-DV4WP6eO.js → UnitView-BVMr4KlR.js} +186 -178
  20. package/dist/{WarehouseView-DwbO0UGj.js → WarehouseView-Dd-e-IlG.js} +388 -380
  21. package/dist/{app-Bt8YzxIk.js → app-S6iG6Hux.js} +2531 -2541
  22. package/dist/app.js +3 -3
  23. package/dist/{decimal-SucbZ9G4.js → decimal-nOOdFIFP.js} +1 -1
  24. package/dist/{id-to-date-B81eSX7L.js → id-to-date-CKQ0n3Qi.js} +1 -1
  25. package/dist/{purchase-order-transaction-type-CuGdiH6i.js → purchase-order-transaction-type-CQ-RpJ0h.js} +3 -3
  26. package/dist/stores/layout.d.ts +3 -0
  27. package/dist/{supplier-CMS9fSlT.js → supplier-DQsAfn3q.js} +1 -1
  28. package/dist/tsconfig.app.tsbuildinfo +1 -1
  29. package/dist/{xlsx-BKyJT0L0.js → xlsx-Dgjf-KvE.js} +1 -1
  30. package/dist/{xlsx.util-bHyU3BvF.js → xlsx.util-CODYzgF8.js} +2 -2
  31. package/package.json +4 -4
  32. package/dist/ApprovalView-DE6af6Jx.js +0 -121
  33. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BCI1_Jqi.js +0 -308
  34. package/dist/IntegrationView-C9lcGzjf.js +0 -1172
  35. package/dist/ReceiveRequestView-CyWq3rxP.js +0 -208
  36. package/dist/layout-B2j73HnF.js +0 -151
@@ -1,4 +1,4 @@
1
- var Cn = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_03a535dd-3bca-4981-98e1-607b5285e99a", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_dependencies_zod: "3.17.9", npm_package_devDependencies__types_node: "^18.19.33", npm_config_dedupe_peer_dependents: "", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_scripts_prepublish: "pnpm check:env && pnpm build:mf && pnpm build:dts", npm_package_dependencies_fuzzy_search: "^3.2.1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^1.6.0", USER: "runner", npm_config_user_agent: "pnpm/8.13.1 npm/? node/v20.18.1 linux x64", CI: "true", npm_package_dependencies_vue: "^3.4.31", npm_package_devDependencies_vite_plugin_commonjs: "^0.10.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_03a535dd-3bca-4981-98e1-607b5285e99a", PIPX_HOME: "/opt/pipx", npm_package_scripts_dev_standalone: "vite --mode standalone", npm_package_devDependencies_vite: "5.4.8", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.1/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", npm_package_scripts_prod_standalone: "PORTAL_ENV=production vite --mode standalone", npm_package_scripts_check_env: 'cat build-*.env | grep -qE "^[^#].*localhost" && { echo "Error: build-*.env files contains localhost reference" >&2; exit 1;} || exit 0', HOME: "/home/runner", npm_package_devDependencies_sass: "^1.77.2", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "PORTAL_ENV=production vite build --mode fmmf", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max_old_space_size=4096", GRADLE_HOME: "/usr/share/gradle-8.11.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --declaration --noEmit -p tsconfig.app.json", npm_package_dependencies__feedmepos_mf_common: "^1.12.5", npm_package_devDependencies_npm_run_all2: "^6.2.0", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", SYSTEMD_EXEC_PID: "707", npm_package_dependencies__feedmepos_ui_library: "1.3.7", npm_package_dependencies_dayjs: "^1.11.11", npm_package_dependencies_dotenv: "^16.4.5", npm_package_devDependencies__tsconfig_node18: "^18.2.4", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_devDependencies_tailwindcss: "3.4.1", npm_package_devDependencies_typescript: "5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_google_maps: "^4.3.3", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.27", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241215.1.0", npm_package_scripts_build_prod: "PORTAL_ENV=production vite build --mode standalone", npm_package_scripts_dev: "vite", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_devDependencies_prettier: "^3.2.5", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.10/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_scripts_prod: "PORTAL_ENV=production vite", npm_package_devDependencies__vue_tsconfig: "^0.4.0", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.4/x64", JOURNAL_STREAM: "8:6413", GITHUB_WORKFLOW: "Preview FeedMe Inventory Portal V1", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_scripts_check_publish_version: "./bin/check-version.sh", npm_package_dependencies_csstype: "^3.1.3", npm_package_dependencies_fuzzy: "^0.1.3", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "12647188007", STATS_VMFE: "true", npm_package_devDependencies_happy_dom: "^12.10.3", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "e82dbf9495878b40142cfb517336b69648bca8dd", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^4.6.2", GITHUB_WORKFLOW_REF: "feedmepos/inventory-service/.github/workflows/inventory-portal-dev.yaml@refs/heads/dev/portal", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies__feedmepos_zod_inventory: "workspace:^", npm_package_dependencies_axios: "^1.7.1", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/inventory-service/inventory-service/node_modules/.bin:/home/runner/work/inventory-service/inventory-service/apps/inventory-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/inventory-service/inventory-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_7ad75e51-537c-4ab7-bcf5-cf2c8a78201e", INVOCATION_ID: "573793e4fb48483b8029fa3209851e18", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.1/x64/bin/node", npm_package_name: "@feedmepos/mf-inventory-portal", GITHUB_ACTION: "publish_version", GITHUB_RUN_NUMBER: "256", GITHUB_TRIGGERING_ACTOR: "ye-yu", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_test_publish: "pnpm prepublish && pnpm pack", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies__vue_test_utils: "^2.4.6", npm_package_devDependencies_eslint: "^8.57.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 280", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev/portal", GITHUB_REPOSITORY: "feedmepos/inventory-service", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_publish_beta: "pnpm publish --tag beta", npm_package_scripts_unpack: "tar zxf", npm_package_dependencies__feedmepos_core: "^2.9.3", npm_package_devDependencies__types_debounce: "^1.2.4", npm_lifecycle_script: "vite build --mode fmmf", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", GITHUB_REPOSITORY_ID: "656626604", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.70_sass@1.83.1/node_modules/vite/bin/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.70_sass@1.83.1/node_modules/vite/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.70_sass@1.83.1/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.0.21-dev.3", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && pnpm build-types", npm_package_dependencies__tanstack_vue_table: "^8.17.3", npm_package_dependencies__vue_cli_service: "^5.0.8", npm_package_devDependencies__rushstack_eslint_patch: "^1.10.3", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vite build --mode standalone", npm_package_dependencies_vue_i18n: "^10.0.5", npm_config__feedmepos_registry: "https://registry.npmjs.org/", GITHUB_WORKSPACE: "/home/runner/work/inventory-service/inventory-service", ACCEPT_EULA: "Y", GITHUB_JOB: "setup", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_devDependencies__types_fuzzy_search: "^2.1.5", npm_package_devDependencies_cypress: "^13.9.0", GITHUB_SHA: "e82dbf9495878b40142cfb517336b69648bca8dd", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/dev/portal", GITHUB_ACTOR: "ye-yu", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_devDependencies__testing_library_vue: "^8.1.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_03a535dd-3bca-4981-98e1-607b5285e99a", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", GITHUB_ACTOR_ID: "30603031", RUNNER_WORKSPACE: "/home/runner/work/inventory-service", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_03a535dd-3bca-4981-98e1-607b5285e99a", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_inventory_core: "workspace:^", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.26.0", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_deploy: "pnpm run build-only && pnpm publish --no-git-checks .", npm_package_dependencies_debounce: "^2.0.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_03a535dd-3bca-4981-98e1-607b5285e99a", INIT_CWD: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", npm_package_dependencies__feedmepos_inventory_core_js: "workspace:^", NODE_ENV: "production" } };
1
+ var Cn = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_de89cb0d-4378-47b1-b92a-26ebb810c2cc", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_dependencies_zod: "3.17.9", npm_package_devDependencies__types_node: "^18.19.33", npm_config_dedupe_peer_dependents: "", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_scripts_prepublish: "pnpm check:env && pnpm build:mf && pnpm build:dts", npm_package_dependencies_fuzzy_search: "^3.2.1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^1.6.0", USER: "runner", npm_config_user_agent: "pnpm/8.13.1 npm/? node/v20.18.1 linux x64", CI: "true", npm_package_dependencies_vue: "^3.4.31", npm_package_devDependencies_vite_plugin_commonjs: "^0.10.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_de89cb0d-4378-47b1-b92a-26ebb810c2cc", PIPX_HOME: "/opt/pipx", npm_package_scripts_dev_standalone: "vite --mode standalone", npm_package_devDependencies_vite: "5.4.8", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.1/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", npm_package_scripts_prod_standalone: "PORTAL_ENV=production vite --mode standalone", npm_package_scripts_check_env: 'cat build-*.env | grep -qE "^[^#].*localhost" && { echo "Error: build-*.env files contains localhost reference" >&2; exit 1;} || exit 0', HOME: "/home/runner", npm_package_devDependencies_sass: "^1.77.2", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "PORTAL_ENV=production vite build --mode fmmf", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max_old_space_size=4096", GRADLE_HOME: "/usr/share/gradle-8.11.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --declaration --noEmit -p tsconfig.app.json", npm_package_dependencies__feedmepos_mf_common: "^1.12.7", npm_package_devDependencies_npm_run_all2: "^6.2.0", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", SYSTEMD_EXEC_PID: "715", npm_package_dependencies__feedmepos_ui_library: "1.3.7", npm_package_dependencies_dayjs: "^1.11.11", npm_package_dependencies_dotenv: "^16.4.5", npm_package_devDependencies__tsconfig_node18: "^18.2.4", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_devDependencies_tailwindcss: "3.4.1", npm_package_devDependencies_typescript: "5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_google_maps: "^4.3.3", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.27", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241215.1.0", npm_package_scripts_build_prod: "PORTAL_ENV=production vite build --mode standalone", npm_package_scripts_dev: "vite", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_devDependencies_prettier: "^3.2.5", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.10/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_scripts_prod: "PORTAL_ENV=production vite", npm_package_devDependencies__vue_tsconfig: "^0.4.0", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.4/x64", JOURNAL_STREAM: "8:5700", GITHUB_WORKFLOW: "Preview FeedMe Inventory Portal V1", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_scripts_check_publish_version: "./bin/check-version.sh", npm_package_dependencies_csstype: "^3.1.3", npm_package_dependencies_fuzzy: "^0.1.3", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "12649670146", STATS_VMFE: "true", npm_package_devDependencies_happy_dom: "^12.10.3", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "1b78062c313605a25f72341ef7170bb1c189b8a8", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^4.6.2", GITHUB_WORKFLOW_REF: "feedmepos/inventory-service/.github/workflows/inventory-portal-dev.yaml@refs/heads/dev/portal", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies__feedmepos_zod_inventory: "workspace:^", npm_package_dependencies_axios: "^1.7.1", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/inventory-service/inventory-service/node_modules/.bin:/home/runner/work/inventory-service/inventory-service/apps/inventory-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/inventory-service/inventory-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_e61dae75-7478-498e-83d5-cfbab79e893b", INVOCATION_ID: "1e9ee5e34dd64824b231659795b2a00e", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.1/x64/bin/node", npm_package_name: "@feedmepos/mf-inventory-portal", GITHUB_ACTION: "publish_version", GITHUB_RUN_NUMBER: "258", GITHUB_TRIGGERING_ACTOR: "ye-yu", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_test_publish: "pnpm prepublish && pnpm pack", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies__vue_test_utils: "^2.4.6", npm_package_devDependencies_eslint: "^8.57.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 460", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev/portal", GITHUB_REPOSITORY: "feedmepos/inventory-service", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_publish_beta: "pnpm publish --tag beta", npm_package_scripts_unpack: "tar zxf", npm_package_dependencies__feedmepos_core: "^2.9.3", npm_package_devDependencies__types_debounce: "^1.2.4", npm_lifecycle_script: "vite build --mode fmmf", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", GITHUB_REPOSITORY_ID: "656626604", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.70_sass@1.83.1/node_modules/vite/bin/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.70_sass@1.83.1/node_modules/vite/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.70_sass@1.83.1/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.0.21-dev.5", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && pnpm build-types", npm_package_dependencies__tanstack_vue_table: "^8.17.3", npm_package_dependencies__vue_cli_service: "^5.0.8", npm_package_devDependencies__rushstack_eslint_patch: "^1.10.3", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vite build --mode standalone", npm_package_dependencies_vue_i18n: "^10.0.5", npm_config__feedmepos_registry: "https://registry.npmjs.org/", GITHUB_WORKSPACE: "/home/runner/work/inventory-service/inventory-service", ACCEPT_EULA: "Y", GITHUB_JOB: "setup", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_devDependencies__types_fuzzy_search: "^2.1.5", npm_package_devDependencies_cypress: "^13.9.0", GITHUB_SHA: "1b78062c313605a25f72341ef7170bb1c189b8a8", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/dev/portal", GITHUB_ACTOR: "ye-yu", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_devDependencies__testing_library_vue: "^8.1.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_de89cb0d-4378-47b1-b92a-26ebb810c2cc", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", GITHUB_ACTOR_ID: "30603031", RUNNER_WORKSPACE: "/home/runner/work/inventory-service", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.13.1/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_de89cb0d-4378-47b1-b92a-26ebb810c2cc", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_inventory_core: "workspace:^", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.26.0", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_deploy: "pnpm run build-only && pnpm publish --no-git-checks .", npm_package_dependencies_debounce: "^2.0.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_de89cb0d-4378-47b1-b92a-26ebb810c2cc", INIT_CWD: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", npm_package_dependencies__feedmepos_inventory_core_js: "workspace:^", NODE_ENV: "production" } };
2
2
  /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
3
3
  var sn = {};
4
4
  sn.version = "0.18.5";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as g, openBlock as f, createElementBlock as u, createElementVNode as x, toDisplayString as d, unref as w, Fragment as M, renderList as v } from "vue";
2
- import { a as h, k as b } from "./app-Bt8YzxIk.js";
2
+ import { a as h, k as b } from "./app-S6iG6Hux.js";
3
3
  import { useI18n as k } from "@feedmepos/mf-common";
4
- import { u as y, w as S, r as $ } from "./xlsx-BKyJT0L0.js";
4
+ import { u as y, w as S, r as $ } from "./xlsx-Dgjf-KvE.js";
5
5
  const A = { class: "flex flex-col" }, B = { 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" }, E = { class: "flex-1 py-8 px-16" }, I = {
6
6
  class: "flex-0 py-8 px-16",
7
7
  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.21-dev.3",
3
+ "version": "0.0.21-dev.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "@feedmepos/core": "^2.9.3",
18
18
  "@feedmepos/menu": "1.0.34",
19
- "@feedmepos/mf-common": "^1.12.5",
19
+ "@feedmepos/mf-common": "^1.12.7",
20
20
  "@feedmepos/ui-library": "1.3.7",
21
21
  "@tanstack/vue-table": "^8.17.3",
22
22
  "@types/dinero.js": "^1.9.4",
@@ -39,8 +39,8 @@
39
39
  "xlsx": "^0.18.5",
40
40
  "zod": "3.17.9",
41
41
  "@feedmepos/inventory-core": "^0.2.17",
42
- "@feedmepos/zod-inventory": "^1.0.9",
43
- "@feedmepos/inventory-core-js": "^1.0.0"
42
+ "@feedmepos/inventory-core-js": "^1.0.0",
43
+ "@feedmepos/zod-inventory": "^1.0.9"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@rushstack/eslint-patch": "^1.10.3",
@@ -1,121 +0,0 @@
1
- import { defineComponent as B, ref as h, watch as I, computed as ee, resolveComponent as te, openBlock as D, createBlock as H, unref as e, withCtx as g, createElementVNode as s, createVNode as n, normalizeStyle as ae, toDisplayString as oe, createElementBlock as re, createCommentVNode as ne, Teleport as se, mergeProps as le } from "vue";
2
- import { Y as f, O as U, j as ie } from "./app-Bt8YzxIk.js";
3
- import { b as ce, _ as pe, a as ue } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BCI1_Jqi.js";
4
- import { u as me } from "./purchase-order-transaction-type-CuGdiH6i.js";
5
- import { u as de, _ as fe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-ELF9eLeq.js";
6
- import { _ as _e, F as _, u as ve } from "./layout-B2j73HnF.js";
7
- import { useBreakpoints as he } from "@feedmepos/ui-library";
8
- import { useI18n as De } from "@feedmepos/mf-common";
9
- const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, xe = { class: "flex flex-col py-8" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Oe = {
10
- key: 0,
11
- class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
12
- }, Re = { class: "pt-8" }, Ve = /* @__PURE__ */ B({
13
- __name: "ApprovalView",
14
- setup(ke) {
15
- const o = me("approval"), { columnDefs: G } = de("approval", o), J = ie();
16
- f.object({
17
- name: f.string().optional().nullable(),
18
- start: f.date().optional().nullable(),
19
- end: f.date().optional().nullable()
20
- });
21
- const x = h({
22
- name: "",
23
- ...ce()
24
- }), a = h({
25
- startDate: U(x.value.start ?? /* @__PURE__ */ new Date()),
26
- endDate: U(x.value.end ?? /* @__PURE__ */ new Date())
27
- });
28
- I([() => a.value.startDate], () => {
29
- if (!a.value.startDate)
30
- return;
31
- if (!a.value.endDate) {
32
- a.value.endDate = a.value.startDate;
33
- return;
34
- }
35
- const y = new Date(a.value.startDate);
36
- if (new Date(a.value.endDate).getTime() < y.getTime()) {
37
- a.value.endDate = a.value.startDate;
38
- return;
39
- }
40
- });
41
- const v = h(""), { breakpoints: b } = he(), K = ee(() => b.value.xs || b.value.sm ? 10 : 20), Q = ve(), { t: W } = De();
42
- return (y, l) => {
43
- const X = te("FmTable");
44
- return D(), H(pe, {
45
- title: e(W)("inventory.transfer.approval.title")
46
- }, {
47
- default: g(() => [
48
- s("div", ge, [
49
- n(ue, {
50
- searchable: "",
51
- "change-location": "",
52
- search: v.value,
53
- "onUpdate:search": l[0] || (l[0] = (r) => v.value = r),
54
- actions: [{ icon: "refresh", onClick: e(o).fetchData }]
55
- }, null, 8, ["search", "actions"]),
56
- n(X, {
57
- style: ae(e(Q).tableHeight),
58
- "column-defs": e(G),
59
- "row-data": e(o).purchaseRequests.value,
60
- "search-value": v.value,
61
- loading: !e(J)._currentLocation || e(o).loading.value,
62
- onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
63
- "page-size": K.value
64
- }, {
65
- "list-row": g((r) => [
66
- n(_e, {
67
- row: r,
68
- onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
69
- }, {
70
- default: g((t) => {
71
- var w, O, R, i, k, S, T, C, c, F, Y, p, $, u, z, M, V, j, q, m, L, N, E, P, d, A;
72
- return [
73
- s("div", xe, [
74
- s("div", be, [
75
- n(e(_), {
76
- render: (R = (O = (w = t.purchaseOrder__id) == null ? void 0 : w.column) == null ? void 0 : O.columnDef) == null ? void 0 : R.cell,
77
- props: (k = (i = t.purchaseOrder__id) == null ? void 0 : i.getContext) == null ? void 0 : k.call(i)
78
- }, null, 8, ["render", "props"])
79
- ]),
80
- s("div", ye, [
81
- n(e(_), {
82
- render: (C = (T = (S = t.to_name) == null ? void 0 : S.column) == null ? void 0 : T.columnDef) == null ? void 0 : C.cell,
83
- props: (F = (c = t.to_name) == null ? void 0 : c.getContext) == null ? void 0 : F.call(c)
84
- }, null, 8, ["render", "props"])
85
- ]),
86
- s("div", we, oe((z = (u = ($ = (p = (Y = r.original.purchaseOrder) == null ? void 0 : Y.items) == null ? void 0 : p.map) == null ? void 0 : $.call(p, (Z) => `${Z.name}`)) == null ? void 0 : u.join) == null ? void 0 : z.call(u, ", ")), 1),
87
- (M = r.original.purchaseOrder) != null && M.ref ? (D(), re("div", Oe, [
88
- n(e(_), {
89
- render: (q = (j = (V = t.purchaseOrder_ref) == null ? void 0 : V.column) == null ? void 0 : j.columnDef) == null ? void 0 : q.cell,
90
- props: (L = (m = t.purchaseOrder_ref) == null ? void 0 : m.getContext) == null ? void 0 : L.call(m)
91
- }, null, 8, ["render", "props"])
92
- ])) : ne("", !0),
93
- s("div", Re, [
94
- n(e(_), {
95
- render: (P = (E = (N = t.purchaseOrder_status) == null ? void 0 : N.column) == null ? void 0 : E.columnDef) == null ? void 0 : P.cell,
96
- props: (A = (d = t.purchaseOrder_status) == null ? void 0 : d.getContext) == null ? void 0 : A.call(d)
97
- }, null, 8, ["render", "props"])
98
- ])
99
- ])
100
- ];
101
- }),
102
- _: 2
103
- }, 1032, ["row", "onRowClick"])
104
- ]),
105
- _: 1
106
- }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
107
- ]),
108
- (D(), H(se, { to: "body" }, [
109
- n(fe, le(e(o).transferDetailsProps.value, {
110
- onSubmitted: e(o).fetchData
111
- }), null, 16, ["onSubmitted"])
112
- ]))
113
- ]),
114
- _: 1
115
- }, 8, ["title"]);
116
- };
117
- }
118
- });
119
- export {
120
- Ve as default
121
- };
@@ -1,308 +0,0 @@
1
- import { defineComponent as L, computed as g, resolveComponent as b, openBlock as t, createElementBlock as y, Fragment as k, createElementVNode as r, toDisplayString as C, createCommentVNode as h, renderList as D, createBlock as _, unref as d, createVNode as c, renderSlot as j, Teleport as z, ref as H, withCtx as V, watch as Q, mergeModels as E, useModel as I } from "vue";
2
- import { FmButtonVariant as O, useBreakpoints as q } from "@feedmepos/ui-library";
3
- import { j as N, O as T } from "./app-Bt8YzxIk.js";
4
- import { useCoreStore as G, useI18n as P } from "@feedmepos/mf-common";
5
- const J = { class: "flex flex-col w-full bg-white h-full" }, K = { class: "flex items-center px-24 py-16 xs:p-12 sm:p-12 gap-4 h-[68px]" }, W = { class: "flex-1 flex-col gap-4 fm-typo-en-title-md-600 flex h-[36px] bg-white" }, X = {
6
- key: 0,
7
- class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400 xs:px-8 sm:px-8"
8
- }, Z = { key: 0 }, ee = { key: 1 }, ne = { class: "bg-white flex-1" }, te = { class: "fixed bottom-96 right-16" }, xe = /* @__PURE__ */ L({
9
- __name: "SingleColumnLayout",
10
- props: {
11
- actions: { default: () => [] },
12
- title: { default: "Title" },
13
- description: {},
14
- showBackButton: { type: Boolean },
15
- defaultPadding: { type: Boolean },
16
- breadcrumbs: { default: () => [] },
17
- usingBusinessHelperText: {}
18
- },
19
- emits: ["click:action"],
20
- setup(m, { emit: l }) {
21
- const f = m, u = l, e = g(() => f.actions.find((a) => a.isPrimary)), o = g(
22
- () => f.actions.filter((a) => !a.isPrimary).map((a) => ({ ...a, variant: a.variant ?? O.Tertiary }))
23
- ), { breakpoints: s } = q(), x = N(), v = g(() => x.businessLevel);
24
- return (a, w) => {
25
- const n = b("FmButton");
26
- return t(), y(k, null, [
27
- r("div", J, [
28
- r("div", K, [
29
- r("div", W, [
30
- r("div", null, C(a.title), 1),
31
- a.usingBusinessHelperText && v.value ? (t(), y("div", X, C(a.usingBusinessHelperText), 1)) : h("", !0)
32
- ]),
33
- o.value.length ? (t(), y("div", Z, [
34
- (t(!0), y(k, null, D(o.value, (p) => (t(), _(n, {
35
- key: p.value,
36
- label: p.label,
37
- "prepend-icon": p.prependIcon,
38
- variant: p.variant,
39
- onClick: (M) => u("click:action", p.value)
40
- }, null, 8, ["label", "prepend-icon", "variant", "onClick"]))), 128))
41
- ])) : h("", !0),
42
- e.value && (d(s).lg || d(s).md) ? (t(), y("div", ee, [
43
- c(n, {
44
- label: e.value.label,
45
- "prepend-icon": e.value.prependIcon,
46
- onClick: w[0] || (w[0] = (p) => u("click:action", e.value.value))
47
- }, null, 8, ["label", "prepend-icon"])
48
- ])) : h("", !0)
49
- ]),
50
- r("div", ne, [
51
- j(a.$slots, "default")
52
- ])
53
- ]),
54
- e.value && (d(s).sm || d(s).xs) ? (t(), _(z, {
55
- key: 0,
56
- to: "body"
57
- }, [
58
- r("div", te, [
59
- c(n, {
60
- label: e.value.label,
61
- "prepend-icon": e.value.prependIcon,
62
- onClick: w[1] || (w[1] = (p) => u("click:action", e.value.value)),
63
- variant: "fab"
64
- }, null, 8, ["label", "prepend-icon"])
65
- ])
66
- ])) : h("", !0)
67
- ], 64);
68
- };
69
- }
70
- }), le = { class: "inline-flex" }, oe = { 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" }, se = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, ae = {
71
- class: "overflow-hidden overflow-y-scroll",
72
- style: { maxHeight: "105px" }
73
- }, re = {
74
- class: "overflow-hidden overflow-y-scroll",
75
- style: { maxHeight: "105px" }
76
- }, ue = /* @__PURE__ */ L({
77
- __name: "ChangeLocationComponent",
78
- props: {
79
- showBusiness: { type: Boolean }
80
- },
81
- setup(m) {
82
- const l = N(), f = G(), u = g(() => {
83
- var n;
84
- return (n = f.currentBusiness.value) == null ? void 0 : n.name;
85
- }), { t: e } = P(), o = H(""), s = g({
86
- get() {
87
- return l.businessLevel;
88
- },
89
- set(n) {
90
- l.businessLevel = n;
91
- }
92
- }), x = g(
93
- () => l.locations.map((n) => ({ label: n.name, value: n.dbName, type: n.type })).filter(
94
- (n) => o.value ? n.label.toLocaleLowerCase().includes(o.value.toLocaleLowerCase()) : !0
95
- )
96
- ), v = g(
97
- () => x.value.filter((n) => n.type === "restaurant")
98
- ), a = g(
99
- () => x.value.filter((n) => n.type === "warehouse")
100
- );
101
- function w({ value: n }) {
102
- s.value = !1, l.selectLocation(l.locations.find((p) => p.dbName === n));
103
- }
104
- return (n, p) => {
105
- const M = b("FmIcon"), A = b("FmSearch"), $ = b("FmMenuDivider"), R = b("FmMenuHeader"), B = b("FmMenuItem"), U = b("FmMenu");
106
- return t(), y("div", le, [
107
- c(U, { "close-on-click": !0 }, {
108
- "menu-button": V(() => {
109
- var i;
110
- return [
111
- r("div", oe, [
112
- c(M, {
113
- name: n.showBusiness && s.value ? "store" : "storefront",
114
- size: "sm"
115
- }, null, 8, ["name"]),
116
- r("div", se, C(n.showBusiness && s.value ? u.value : ((i = d(l)._currentLocation) == null ? void 0 : i.name) ?? d(e)("inventory.common.noLocationSelected")), 1),
117
- c(M, {
118
- name: "expand_more",
119
- size: "sm"
120
- })
121
- ])
122
- ];
123
- }),
124
- default: V(() => [
125
- c(A, {
126
- "model-value": o.value,
127
- "onUpdate:modelValue": p[0] || (p[0] = (i) => o.value = i),
128
- class: "w-[200px]",
129
- placeholder: d(e)("inventory.common.table.toolbar.filterItems")
130
- }, null, 8, ["model-value", "placeholder"]),
131
- c($),
132
- n.showBusiness ? (t(), y(k, { key: 0 }, [
133
- c(R, {
134
- label: d(e)("inventory.common.business")
135
- }, null, 8, ["label"]),
136
- c($),
137
- c(B, {
138
- "model-value": s.value,
139
- label: u.value,
140
- onClick: p[1] || (p[1] = (i) => s.value = !0)
141
- }, null, 8, ["model-value", "label"])
142
- ], 64)) : h("", !0),
143
- c(R, {
144
- label: d(e)("inventory.common.restaurant")
145
- }, null, 8, ["label"]),
146
- c($),
147
- r("div", ae, [
148
- (t(!0), y(k, null, D(v.value, (i) => {
149
- var F;
150
- return t(), _(B, {
151
- key: i.value,
152
- "model-value": !s.value && ((F = d(l)._currentLocation) == null ? void 0 : F.dbName) === i.value,
153
- label: i.label,
154
- onClick: (Y) => w(i)
155
- }, null, 8, ["model-value", "label", "onClick"]);
156
- }), 128))
157
- ]),
158
- v.value.length ? h("", !0) : (t(), _(B, {
159
- key: 1,
160
- disabled: "",
161
- label: d(e)("inventory.common.noResultFound")
162
- }, null, 8, ["label"])),
163
- c(R, {
164
- label: d(e)("inventory.common.warehouse")
165
- }, null, 8, ["label"]),
166
- c($),
167
- r("div", re, [
168
- (t(!0), y(k, null, D(a.value, (i) => {
169
- var F;
170
- return t(), _(B, {
171
- key: i.value,
172
- "model-value": !s.value && ((F = d(l)._currentLocation) == null ? void 0 : F.dbName) === i.value,
173
- label: i.label,
174
- onClick: (Y) => w(i)
175
- }, null, 8, ["model-value", "label", "onClick"]);
176
- }), 128))
177
- ]),
178
- a.value.length ? h("", !0) : (t(), _(B, {
179
- key: 2,
180
- disabled: "",
181
- label: d(e)("inventory.common.noResultFound")
182
- }, null, 8, ["label"]))
183
- ]),
184
- _: 1
185
- })
186
- ]);
187
- };
188
- }
189
- });
190
- function we() {
191
- const m = /* @__PURE__ */ new Date();
192
- return m.setDate(m.getDate() - 15), {
193
- start: m,
194
- end: /* @__PURE__ */ new Date()
195
- };
196
- }
197
- function S(m = 15) {
198
- const l = /* @__PURE__ */ new Date();
199
- l.setDate(l.getDate() - m);
200
- const f = l, u = /* @__PURE__ */ new Date();
201
- return {
202
- startDate: `${T(f)}`,
203
- endDate: `${T(u)}`
204
- };
205
- }
206
- const ie = { 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" }, ce = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, de = /* @__PURE__ */ L({
207
- __name: "FmDateRangePickerChip",
208
- props: {
209
- modelValue: { default: (m) => m.modelValue ?? S() }
210
- },
211
- emits: ["update:modelValue"],
212
- setup(m, { emit: l }) {
213
- const f = l, u = H(S());
214
- Q(u, (o) => {
215
- f("update:modelValue", o);
216
- });
217
- const e = g(() => {
218
- const { startDate: o, endDate: s } = u.value;
219
- return !o && !s ? "" : `${o} - ${s}`;
220
- });
221
- return (o, s) => {
222
- const x = b("FmIcon"), v = b("FmDateRangePicker");
223
- return t(), _(v, {
224
- "show-predefined-range": "",
225
- modelValue: u.value,
226
- "onUpdate:modelValue": s[0] || (s[0] = (a) => u.value = a),
227
- "start-label": "",
228
- "end-label": ""
229
- }, {
230
- "trigger-button": V(() => [
231
- r("div", ie, [
232
- c(x, {
233
- name: "calendar_month",
234
- size: "sm"
235
- }),
236
- r("div", ce, C(e.value), 1)
237
- ])
238
- ]),
239
- _: 1
240
- }, 8, ["modelValue"]);
241
- };
242
- }
243
- }), me = { class: "flex flex-col gap-8" }, pe = { class: "xs:px-8 sm:px-8 flex gap-8 items-center xs:gap-8 xs:flex-col-reverse sm:gap-8 sm:flex-col-reverse h-48 sm:h-[unset] xs:h-[unset]" }, ve = {
244
- key: 0,
245
- class: "xs:w-full sm:w-full flex gap-8 items-center"
246
- }, fe = { class: "flex-1 w-full flex items-center gap-4" }, ye = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, ke = /* @__PURE__ */ L({
247
- __name: "FmInventoryTableToolbar",
248
- props: /* @__PURE__ */ E({
249
- dateRangeQuery: { type: Boolean },
250
- changeLocation: { type: Boolean },
251
- searchable: { type: Boolean },
252
- actions: {},
253
- usingBusinessHelperText: {},
254
- showBusiness: { type: Boolean }
255
- }, {
256
- search: {},
257
- searchModifiers: {},
258
- dateRange: {},
259
- dateRangeModifiers: {}
260
- }),
261
- emits: ["update:search", "update:dateRange"],
262
- setup(m) {
263
- const l = I(m, "search"), f = I(m, "dateRange"), { t: u } = P();
264
- return (e, o) => {
265
- const s = b("FmTextField"), x = b("FmButton");
266
- return t(), y("div", me, [
267
- r("div", pe, [
268
- e.changeLocation || e.dateRangeQuery ? (t(), y("div", ve, [
269
- e.changeLocation ? (t(), _(ue, {
270
- key: 0,
271
- "show-business": e.showBusiness
272
- }, null, 8, ["show-business"])) : h("", !0),
273
- e.dateRangeQuery ? (t(), _(de, {
274
- key: 1,
275
- "model-value": f.value,
276
- "onUpdate:modelValue": o[0] || (o[0] = (v) => f.value = v)
277
- }, null, 8, ["model-value"])) : h("", !0)
278
- ])) : h("", !0),
279
- r("div", fe, [
280
- o[2] || (o[2] = r("div", { class: "flex-1 xs:hidden sm:hidden" }, null, -1)),
281
- r("div", ye, [
282
- e.searchable ? (t(), _(s, {
283
- key: 0,
284
- "model-value": l.value,
285
- "onUpdate:modelValue": o[1] || (o[1] = (v) => l.value = v),
286
- "prepend-icon": "search",
287
- placeholder: d(u)("inventory.common.table.toolbar.filterItems"),
288
- class: "w-full"
289
- }, null, 8, ["model-value", "placeholder"])) : h("", !0)
290
- ]),
291
- (t(!0), y(k, null, D(e.actions, (v, a) => (t(), _(x, {
292
- key: a,
293
- variant: "tertiary",
294
- "prepend-icon": v.icon,
295
- onClick: v.onClick
296
- }, null, 8, ["prepend-icon", "onClick"]))), 128))
297
- ])
298
- ])
299
- ]);
300
- };
301
- }
302
- });
303
- export {
304
- xe as _,
305
- ke as a,
306
- we as b,
307
- S as i
308
- };