@feedmepos/mf-inventory-portal 1.8.0-dev.1 → 1.8.0-dev.11
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/App-BTUjyQbn.js +1466 -0
- package/dist/{ApprovalView-C8_ax05b.js → ApprovalView-CTOTedxc.js} +26 -25
- package/dist/{BindingsDialog-t0ZY9eh5.js → BindingsDialog-C9v4TTzJ.js} +2 -2
- package/dist/{BindingsPicker-C0Qblmml.js → BindingsPicker-B5b0lavg.js} +8 -8
- package/dist/{BindingsTable-CsqUBbRA.js → BindingsTable-CQPan4pU.js} +4 -4
- package/dist/{BulkReceiveRequestView-DAG-TMox.js → BulkReceiveRequestView-BVrrjoYW.js} +21 -21
- package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D4Z56y7h.js +151 -0
- package/dist/{ClosingDraftView-CdKp4Ny6.js → ClosingDraftView-5ETKikfT.js} +748 -746
- package/dist/ClosingHistoryView-GM0DRWhq.js +769 -0
- package/dist/{ClosingTemplateView-C326DL4q.js → ClosingTemplateView-Czz--dWq.js} +303 -291
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CXjubRbj.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-Bjs8hW_q.js} +1 -1
- package/dist/{DefaultView-CsIMmQAY.js → DefaultView-Baksd_Lk.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-eTrMvJzA.js → DeliveryOrderPrintPreview-CUdMQmLf.js} +9 -9
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-B7nBbxMo.js → EmailDialog.vue_vue_type_script_setup_true_lang-CDta65pB.js} +6228 -6216
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CrCdJfOf.js +47 -0
- package/dist/FeatureCapabilityGate-C34Z4k5D.js +74 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CI2KTzDs.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-C43lHbmc.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Db_FiSRe.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CIMCZnY9.js} +2 -2
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UbMV3dKh.js +120 -0
- package/dist/{FmMultiselectDialog-CYUxtxnS.js → FmMultiselectDialog-DYM4qyMH.js} +2 -2
- package/dist/FmMultiselectDialog-tbS01AI7.js +123 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DOkV11NN.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DaOKC6RQ.js} +72 -73
- package/dist/ImportView-CPf8zj0t.js +1290 -0
- package/dist/{IngredientsView-CZ6E7cXf.js → IngredientsView-N4CH6zdo.js} +656 -649
- package/dist/{IntegrationExplorerView-B15ND4Fg.js → IntegrationExplorerView-Ds5fTNi3.js} +602 -614
- package/dist/IntegrationPlatformView-wuOLFIQR.js +13073 -0
- package/dist/{IntegrationView-hkNhsqx2.js → IntegrationView-Bhxwz6Ha.js} +2956 -2922
- package/dist/{InventoryBindingForm-SfuUF0_O.js → InventoryBindingForm-DWm9pOH_.js} +1 -1
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-TvwD5HcR.js +472 -0
- package/dist/{InventoryBindingSummary-DUcukkyJ.js → InventoryBindingSummary-DI6H0ehi.js} +1 -1
- package/dist/JsonViewer.vue_vue_type_script_setup_true_lang-C_hg75l0.js +25 -0
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ngeYJhtg.js +79 -0
- package/dist/PlanTierBadge.vue_vue_type_script_setup_true_lang-Cr1LFRUd.js +274 -0
- package/dist/PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-CtoPkGo2.js +79 -0
- package/dist/{ProductionRunDetailView-BwgRX-14.js → ProductionRunDetailView-rGGuDANE.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BbNXNhpr.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CTseB9Sn.js} +9 -9
- package/dist/{ProductionRunView-CZU7LY9-.js → ProductionRunView-BLBIYhKd.js} +16 -15
- package/dist/{PublishView-DS2FZ66p.js → PublishView-D_H_LAq2.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-CZa0MVAs.js → PurchaseOrderPrintPreview-DZy57dQ6.js} +7 -7
- package/dist/{ReceiveRequestView-Bk5b3nVB.js → ReceiveRequestView-qFQPah64.js} +15 -15
- package/dist/RecipeView-BPQ_MlxJ.js +3440 -0
- package/dist/SettingsView-DF_HGtkr.js +1032 -0
- package/dist/StockView-De_R8pxv.js +2651 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DdZg9T4n.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B3tBgcH7.js} +1 -1
- package/dist/{SupplierView-D8q6siZW.js → SupplierView-DvvB_Nn0.js} +577 -571
- package/dist/{SurchargeView-Db_5YFoR.js → SurchargeView-6gQPyGqi.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-WOVs4Fr1.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-D6gnQpe-.js} +2 -2
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js +71 -0
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BtoP4XgE.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CiuRBHBL.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Bljc4Vuy.js → TransferDetails.vue_vue_type_script_setup_true_lang-B-1-jtmF.js} +1707 -1657
- package/dist/TransferTemplateView-Dcc9K-AJ.js +2343 -0
- package/dist/{UnitCostHistoryView-BqDiQ4IE.js → UnitCostHistoryView-e1MYu0_N.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BjSmg5LX.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DQWOi2ol.js} +4 -4
- package/dist/{UnitView-CM695-VI.js → UnitView-BaLqtGk3.js} +84 -84
- package/dist/{WarehouseView-BdidU4p6.js → WarehouseView-CKYdpZoP.js} +194 -189
- package/dist/{WastageTemplateView-DdhwdXT6.js → WastageTemplateView-DazO6lu1.js} +19 -18
- package/dist/api/feature-flags.d.ts +12 -0
- package/dist/api/integration-sync-log.d.ts +0 -13
- package/dist/api/inventory.d.ts +9 -9
- package/dist/api/license.d.ts +8 -0
- package/dist/{app-Cb5s4jMu.js → app-ZyQBMnlh.js} +6102 -6066
- package/dist/app.d.ts +36 -150
- package/dist/app.js +1 -1
- package/dist/{closing-template-DnqnpXxn.js → closing-template-BZfYcHAK.js} +1 -1
- package/dist/components/ChangeLocationComponent.vue.d.ts +21 -14
- package/dist/components/DeprecateSoonWarningDialog.vue.d.ts +22 -0
- package/dist/components/FeatureCapabilityBadge.vue.d.ts +29 -0
- package/dist/components/FeatureCapabilityGate.spec.d.ts +1 -0
- package/dist/components/FeatureCapabilityGate.vue.d.ts +29 -0
- package/dist/components/FmUnitInputRules.d.ts +1 -1
- package/dist/components/MultiLocationSelector.vue.d.ts +6 -6
- package/dist/components/NumberPrecisionInput.spec.d.ts +1 -0
- package/dist/components/{PremiumBadge.vue.d.ts → PlanTierBadge.vue.d.ts} +5 -13
- package/dist/components/PlanUpgradeDialog.vue.d.ts +30 -0
- package/dist/composable/useNavigationMenu.d.ts +2 -1
- package/dist/{date2-BPhD_1Of.js → date2-CtVXF-Pl.js} +1 -1
- package/dist/{dayjs.min-Zbd6-uVD.js → dayjs.min-BG2xA9Zk.js} +1 -1
- package/dist/{decimal-Df6a50Ld.js → decimal-C0ERI9wc.js} +2 -2
- package/dist/{defineDeepModel-Brbsikbi.js → defineDeepModel-CAK0Fghp.js} +6 -6
- package/dist/{duplicate-template-B9kuShaF.js → duplicate-template-DwAQVTH7.js} +1 -1
- package/dist/{inventory-core-dart.default-DDRxXXnt.js → feature-1IL43YWw.js} +766 -398
- package/dist/feature-flags/core.d.ts +28 -0
- package/dist/feature-flags/core.spec.d.ts +1 -0
- package/dist/feature-flags/navigation-capabilities.d.ts +23 -0
- package/dist/feature-flags/navigation-capabilities.spec.d.ts +1 -0
- package/dist/feature-flags/plan-tier.d.ts +6 -0
- package/dist/feature-flags/plan-tier.spec.d.ts +1 -0
- package/dist/feature-flags/portal-feature-catalog.d.ts +19 -0
- package/dist/feature-flags/portal-feature-catalog.spec.d.ts +1 -0
- package/dist/feature-flags/vue.d.ts +16 -0
- package/dist/feature-flags/vue.spec.d.ts +1 -0
- package/dist/{format-time-from-id-DmUjUcVj.js → format-time-from-id-QIs7t8ML.js} +1 -1
- package/dist/{format-unit-display-CsQA0SQd.js → format-unit-display-DiTPPgut.js} +118 -119
- package/dist/helper/menu-usage-module.d.ts +1 -1
- package/dist/helper/number.d.ts +5 -1
- package/dist/helper/rules.d.ts +1 -1
- package/dist/id-to-date-DcuC_yKQ.js +67 -0
- package/dist/{import-export.helper-DCQ6oX9s.js → import-export.helper-grsZqa63.js} +16 -17
- package/dist/{JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js → index-C25C1Dg7.js} +1074 -1066
- package/dist/{index-UmM6gHJ1.js → index-DN5mjbXr.js} +1 -1
- package/dist/{index-C-mazZwS.js → index-DdSQrnuw.js} +3 -3
- package/dist/index-eGvSlWMU.js +1892 -0
- package/dist/{index-BXaIMGnI.js → index-twVxfWIB.js} +190 -190
- package/dist/{lz-string-Bibw5D_6.js → lz-string-DrKhkO_Q.js} +1 -1
- package/dist/{netsuite-Bev0OtQT.js → netsuite-C_EH9MVy.js} +9 -3
- package/dist/{predefined-templates-BHvUnTk_.js → predefined-templates-mWX1M2Dn.js} +1 -1
- package/dist/{purchase-order-template-DgOKEzhS.js → purchase-order-template-DZ3DsIUr.js} +1 -1
- package/dist/{recalculationUtils-Dv__DzZh.js → recalculationUtils-BZ5ccSeX.js} +1 -1
- package/dist/router/name.d.ts +2 -2
- package/dist/{row-action.enum-ncgDYAjP.js → row-action.enum-B2z1DXD9.js} +2 -2
- package/dist/rules-BpTWt_Y_.js +238 -0
- package/dist/stock-BO2mbTLO.js +74 -0
- package/dist/{stock-CxCRZo_D.js → stock-D9dhzEKk.js} +1 -1
- package/dist/stores/feature.d.ts +20 -2
- package/dist/stores/integration/netsuite.d.ts +2 -2
- package/dist/stores/inventory.d.ts +0 -47
- package/dist/stores/inventory.no-location.spec.d.ts +1 -0
- package/dist/stores/location.d.ts +42 -42
- package/dist/stores/supplier.d.ts +49 -49
- package/dist/stores/warehouse.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-CkZdeMcl.js → supplier-C-Ra1omj.js} +2 -2
- package/dist/{surcharge-FRSFqjGl.js → surcharge-BFDrFP1T.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-Cm1styDr.js → uom-rules-B8pou4DQ.js} +1 -1
- package/dist/{use-ingredient-select-dialog-ntAqHX04.js → use-ingredient-select-dialog-DJvcL3EP.js} +2 -2
- package/dist/use-inventory-binding-dialog-DQBcnw0G.js +113 -0
- package/dist/{use-template-enabled-locations-CIZqw-Z8.js → use-template-enabled-locations-CSgJma2Z.js} +2 -2
- package/dist/{use-transfer-locations-CM5vNttA.js → use-transfer-locations-CkeJ5Nng.js} +14 -14
- package/dist/{useHrmPermission-CslLuBoP.js → useHrmPermission-BDc1xULx.js} +1 -1
- package/dist/useNavigationMenu-B7jkRkTi.js +346 -0
- package/dist/{useSseClient-CCV4mPzD.js → useSseClient-Bxl6D4Xs.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +36 -36
- package/dist/views/adjustment-template/wastage-template/table.d.ts +36 -36
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -6
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +12 -12
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +6 -6
- package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +3 -3
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +18 -18
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +45 -45
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -36
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/composables/use-inventory-binding-dialog.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/recipe-amount-validation.spec.d.ts +1 -0
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +0 -1
- package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +1 -1
- package/dist/{components/PreviewBadge.vue.d.ts → views/integration/IntegrationPlatformView.vue.d.ts} +11 -13
- package/dist/views/integration/components/IntegrationCard.vue.d.ts +38 -0
- package/dist/views/integration/components/Synergy/importFn.spec.d.ts +1 -0
- package/dist/views/integration/components/Xilnex/importFn.spec.d.ts +1 -0
- package/dist/views/integration/components/netsuite/business/AddLocationDialog.vue.d.ts +36 -36
- package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +24 -24
- package/dist/views/integration/helper/opening-balance.d.ts +22 -0
- package/dist/views/integration/helper/opening-balance.spec.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -5
- package/dist/views/receive-request/composables/netsuite-order-label.d.ts +11 -0
- package/dist/views/receive-request/composables/netsuite-order-label.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +5 -5
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +39 -39
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +35 -35
- package/dist/views/receive-request/import/export.spec.d.ts +1 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +34 -34
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +6 -6
- package/dist/views/recipe/components/recipe-bulk-editor/components/ModificationCard.spec.d.ts +1 -0
- package/dist/views/recipe/helper/bulk-edit-simulation.helper.d.ts +0 -1
- package/dist/views/recipe/helper/import-recipe.d.ts +2 -2
- package/dist/views/recipe/helper/import-recipe.spec.d.ts +1 -0
- package/dist/views/{ingredient-group/IngredientGroupView.vue.d.ts → settings/FeatureFlagView.vue.d.ts} +0 -1
- package/dist/views/settings/PlanLicenseDisplay.spec.d.ts +1 -0
- package/dist/views/{integration/components/IntegrationSyncLogTab.vue.d.ts → settings/PlanLicenseDisplay.vue.d.ts} +2 -2
- package/dist/views/stock/components/dialog/AmendAdjustmentForm.spec.d.ts +1 -0
- package/dist/views/stock/components/dialog/ConvertSkuDialog.spec.d.ts +1 -0
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +4 -4
- package/dist/views/supplier/composables/use-supplier-table.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -8
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +4 -4
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.spec.d.ts +1 -0
- package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +24 -24
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -48
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -48
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -2
- package/dist/{vue-i18n-C5j4EQhi.js → vue-i18n-gaCwgS41.js} +355 -355
- package/dist/{xlsx.util-B50OvX4z.js → xlsx.util-lW-27xp-.js} +2 -2
- package/package.json +71 -66
- package/dist/App-BXgpGzGR.js +0 -1476
- package/dist/ClosingHistoryView-Blyq9-BS.js +0 -761
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-zcEv1Swg.js +0 -243
- package/dist/FmMultiselectDialog-BAw-gp5K.js +0 -77
- package/dist/ImportView-BmotFC-3.js +0 -1302
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVCCpvS4.js +0 -51
- package/dist/IngredientGroupView-qrR9ksEn.js +0 -985
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-Zq81p_MF.js +0 -563
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BmfROiLM.js +0 -72
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-3e3kDsbN.js +0 -93
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js +0 -29
- package/dist/RecipeView-DvI6X-uN.js +0 -3625
- package/dist/SettingsView-sThYErMz.js +0 -698
- package/dist/StockView-Z9wGihT7.js +0 -2612
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js +0 -84
- package/dist/TransferTemplateView-DtsJzmUr.js +0 -2327
- package/dist/feature-Ckn5ra3z.js +0 -1136
- package/dist/number-y_W4pn_d.js +0 -138
- package/dist/random-CSbEbElR.js +0 -10
- package/dist/rules-CZTBvenw.js +0 -98
- package/dist/stock-XINW8JOM.js +0 -75
- package/dist/use-inventory-binding-dialog-DVIJO8Cl.js +0 -152
- package/dist/useNavigationMenu-CSinmNCY.js +0 -172
- package/dist/usePromise-CbVUCxhj.js +0 -29
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +0 -31
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +0 -10
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +0 -21
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +0 -12
- package/dist/views/ingredient-group/components/ingredient-group-rule-field/IngredientGroupRuleField.vue.d.ts +0 -37
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +0 -24
- package/dist/views/ingredient-group/composables/use-ingredient-group-rule-item.d.ts +0 -31
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +0 -77
- package/dist/views/integration/composables/use-integration-sync-log.d.ts +0 -45
- /package/dist/components/{FmFeatureFlagDialog.vue.d.ts → DeprecateSoonPill.vue.d.ts} +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { resolveComponent as i, createElementBlock as m, openBlock as t, createVNode as u, createTextVNode as _, defineComponent as f, computed as c, createBlock as r, createCommentVNode as a } from "vue";
|
|
2
|
+
import { i as d, _ as g } from "./PlanTierBadge.vue_vue_type_script_setup_true_lang-Cr1LFRUd.js";
|
|
3
|
+
import { _ as y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const b = {}, x = { class: "inline-flex items-center gap-1 rounded-full border border-fm-color-state-warning-base bg-fm-color-state-warning-subtle px-2 py-0.5 text-xs font-medium text-fm-color-state-warning-base" };
|
|
5
|
+
function F(s, e) {
|
|
6
|
+
const o = i("FmIcon");
|
|
7
|
+
return t(), m("span", x, [
|
|
8
|
+
u(o, {
|
|
9
|
+
name: "warning",
|
|
10
|
+
size: "sm"
|
|
11
|
+
}),
|
|
12
|
+
e[0] || (e[0] = _(" Deprecate Soon "))
|
|
13
|
+
]);
|
|
14
|
+
}
|
|
15
|
+
const k = /* @__PURE__ */ y(b, [["render", F]]), v = { class: "inline-flex items-center gap-1" }, h = /* @__PURE__ */ f({
|
|
16
|
+
__name: "FeatureCapabilityBadge",
|
|
17
|
+
props: {
|
|
18
|
+
tier: {},
|
|
19
|
+
category: {},
|
|
20
|
+
deprecateSoon: { type: Boolean },
|
|
21
|
+
featureKey: {},
|
|
22
|
+
informative: { type: Boolean }
|
|
23
|
+
},
|
|
24
|
+
setup(s) {
|
|
25
|
+
const e = s, o = c(() => d(e.featureKey)), l = c(
|
|
26
|
+
() => e.tier === "premium" && (e.informative || !o.value)
|
|
27
|
+
);
|
|
28
|
+
return (n, B) => {
|
|
29
|
+
const p = i("FmPill");
|
|
30
|
+
return t(), m("span", v, [
|
|
31
|
+
n.deprecateSoon ? (t(), r(k, { key: 0 })) : a("", !0),
|
|
32
|
+
n.category === "beta" ? (t(), r(p, {
|
|
33
|
+
key: 1,
|
|
34
|
+
variant: "beta"
|
|
35
|
+
})) : a("", !0),
|
|
36
|
+
l.value ? (t(), r(g, {
|
|
37
|
+
key: 2,
|
|
38
|
+
tier: n.tier
|
|
39
|
+
}, null, 8, ["tier"])) : a("", !0)
|
|
40
|
+
]);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
k as D,
|
|
46
|
+
h as _
|
|
47
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as V, computed as r, ref as K, resolveComponent as f, createElementBlock as l, openBlock as n, createElementVNode as _, createCommentVNode as v, createVNode as c, unref as o, normalizeClass as w, renderSlot as N, withModifiers as B, toDisplayString as I } from "vue";
|
|
2
|
+
import { g as P, b as S } from "./PlanTierBadge.vue_vue_type_script_setup_true_lang-Cr1LFRUd.js";
|
|
3
|
+
import { R as U } from "./app-ZyQBMnlh.js";
|
|
4
|
+
import { _ as $ } from "./PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-CtoPkGo2.js";
|
|
5
|
+
import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const z = { class: "relative" }, D = ["aria-hidden", "inert"], E = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "min-h-32 rounded bg-fm-color-neutral-gray-200/60"
|
|
9
|
+
}, G = ["title"], R = { class: "flex items-center justify-center gap-8 fm-typo-en-body-md-600" }, T = { key: 0 }, q = /* @__PURE__ */ V({
|
|
10
|
+
__name: "FeatureCapabilityGate",
|
|
11
|
+
props: {
|
|
12
|
+
featureKey: {},
|
|
13
|
+
compact: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
emits: ["locked"],
|
|
16
|
+
setup(y, { emit: b }) {
|
|
17
|
+
const u = y, k = b, t = r(() => P(u.featureKey)), i = S(r(() => {
|
|
18
|
+
var e;
|
|
19
|
+
return ((e = t.value) == null ? void 0 : e.definition) ?? null;
|
|
20
|
+
})), a = i.disabled, s = K(!1), g = r(
|
|
21
|
+
() => {
|
|
22
|
+
var e;
|
|
23
|
+
return t.value ? {
|
|
24
|
+
route: U.STOCK,
|
|
25
|
+
module: t.value.label,
|
|
26
|
+
tier: ((e = t.value.definition) == null ? void 0 : e.minimumTier) ?? "standard",
|
|
27
|
+
description: t.value.controls,
|
|
28
|
+
featureKey: u.featureKey
|
|
29
|
+
} : null;
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
function h() {
|
|
33
|
+
k("locked", i.result.value), s.value = !0;
|
|
34
|
+
}
|
|
35
|
+
return (e, m) => {
|
|
36
|
+
var d, p;
|
|
37
|
+
const x = f("FmIcon"), F = f("FmPill");
|
|
38
|
+
return n(), l("div", z, [
|
|
39
|
+
_("div", {
|
|
40
|
+
class: w(["flex flex-col gap-32", o(a) ? "costing-preview pointer-events-none select-none blur-sm" : void 0]),
|
|
41
|
+
"aria-hidden": o(a),
|
|
42
|
+
inert: o(a)
|
|
43
|
+
}, [
|
|
44
|
+
o(a) ? (n(), l("div", E)) : N(e.$slots, "default", { key: 0 }, void 0, !0)
|
|
45
|
+
], 10, D),
|
|
46
|
+
o(a) ? (n(), l("button", {
|
|
47
|
+
key: 0,
|
|
48
|
+
type: "button",
|
|
49
|
+
title: `Unlock ${((d = t.value) == null ? void 0 : d.label) ?? "feature"}`,
|
|
50
|
+
class: "absolute inset-0 flex w-full flex-col items-center justify-center gap-8 bg-fm-color-neutral-white/70 px-8 py-8 text-center text-fm-color-typo-primary",
|
|
51
|
+
onClick: B(h, ["stop"])
|
|
52
|
+
}, [
|
|
53
|
+
_("span", R, [
|
|
54
|
+
c(x, {
|
|
55
|
+
name: "lock",
|
|
56
|
+
size: "md"
|
|
57
|
+
}),
|
|
58
|
+
e.compact ? v("", !0) : (n(), l("span", T, "Unlock " + I((p = t.value) == null ? void 0 : p.label), 1))
|
|
59
|
+
]),
|
|
60
|
+
c(F, { variant: "premium" })
|
|
61
|
+
], 8, G)) : v("", !0),
|
|
62
|
+
c($, {
|
|
63
|
+
modelValue: s.value,
|
|
64
|
+
"onUpdate:modelValue": m[0] || (m[0] = (C) => s.value = C),
|
|
65
|
+
capability: g.value,
|
|
66
|
+
result: o(i).result.value
|
|
67
|
+
}, null, 8, ["modelValue", "capability", "result"])
|
|
68
|
+
]);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}), L = /* @__PURE__ */ j(q, [["__scopeId", "data-v-0cdbb7ae"]]);
|
|
72
|
+
export {
|
|
73
|
+
L as F
|
|
74
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as g, ref as _, watch as d, computed as v, resolveComponent as l, createBlock as h, openBlock as y, withCtx as R, createElementVNode as i, createVNode as w, toDisplayString as x } from "vue";
|
|
2
|
-
import { c } from "./date2-
|
|
2
|
+
import { c } from "./date2-CtVXF-Pl.js";
|
|
3
3
|
function F() {
|
|
4
4
|
const t = /* @__PURE__ */ new Date();
|
|
5
5
|
return t.setDate(t.getDate() - 15), {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, mergeModels as I, useModel as z, computed as b, ref as _, resolveComponent as n, createElementBlock as h, openBlock as o, normalizeStyle as B, createElementVNode as f, createVNode as N, withCtx as E, createBlock as s, createCommentVNode as F, Fragment as S, renderList as R, unref as r } from "vue";
|
|
2
|
-
import { z as u } from "./app-
|
|
3
|
-
import { F as T } from "./FmMultiselectDialog-
|
|
2
|
+
import { z as u } from "./app-ZyQBMnlh.js";
|
|
3
|
+
import { F as T } from "./FmMultiselectDialog-DYM4qyMH.js";
|
|
4
4
|
const q = { class: "overflow-y-auto h-full pb-8" }, L = /* @__PURE__ */ g({
|
|
5
5
|
__name: "FmFilterableMenuOptions",
|
|
6
6
|
props: /* @__PURE__ */ I({
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { defineComponent as V, mergeModels as F, computed as M, useModel as f, resolveComponent as g, createElementBlock as s, openBlock as l, unref as n, renderSlot as R, createElementVNode as p, normalizeClass as b, createCommentVNode as r, createBlock as a, withCtx as C, createVNode as U, Fragment as A, renderList as L } from "vue";
|
|
2
|
+
import { useI18n as T } from "@feedmepos/mf-common";
|
|
3
|
+
import { _ as D } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D4Z56y7h.js";
|
|
4
|
+
import { _ as I } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-C43lHbmc.js";
|
|
5
|
+
import { useBreakpoints as N } from "@feedmepos/ui-library";
|
|
6
|
+
import { u as Q } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
7
|
+
import { D as k } from "./app-C39bYJmq.js";
|
|
8
|
+
import { F as $ } from "./FmAdminBadge-DlplQOHb.js";
|
|
9
|
+
const E = { class: "flex-1 w-full flex items-center gap-4 xs:flex-col-reverse sm:flex-col-reverse" }, O = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "flex-1 xs:w-full sm:w-full"
|
|
12
|
+
}, z = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "flex-1"
|
|
15
|
+
}, H = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, X = /* @__PURE__ */ V({
|
|
16
|
+
__name: "FmInventoryTableToolbar",
|
|
17
|
+
props: /* @__PURE__ */ F({
|
|
18
|
+
dateRangeQuery: { type: Boolean },
|
|
19
|
+
predefinedDateRanges: {},
|
|
20
|
+
changeLocation: { type: Boolean },
|
|
21
|
+
searchable: { type: Boolean },
|
|
22
|
+
hideFilterOptions: { type: Boolean },
|
|
23
|
+
filterable: { type: Boolean },
|
|
24
|
+
filterAttributes: {},
|
|
25
|
+
actions: {},
|
|
26
|
+
usingBusinessHelperText: {},
|
|
27
|
+
showBusiness: { type: Boolean }
|
|
28
|
+
}, {
|
|
29
|
+
search: {},
|
|
30
|
+
searchModifiers: {},
|
|
31
|
+
filter: {},
|
|
32
|
+
filterModifiers: {},
|
|
33
|
+
dateRange: {},
|
|
34
|
+
dateRangeModifiers: {}
|
|
35
|
+
}),
|
|
36
|
+
emits: ["update:search", "update:filter", "update:dateRange"],
|
|
37
|
+
setup(m) {
|
|
38
|
+
const { breakpoints: c } = N(), i = M(() => c.value.xs || c.value.sm), v = f(m, "search"), u = f(m, "filter"), y = f(m, "dateRange"), { t: B } = T(), d = Q();
|
|
39
|
+
return (e, t) => {
|
|
40
|
+
const h = g("FmTextField"), w = g("FmButton");
|
|
41
|
+
return l(), s("div", {
|
|
42
|
+
class: "flex flex-col gap-8",
|
|
43
|
+
onVnodeMounted: t[4] || (t[4] = //@ts-ignore
|
|
44
|
+
(...o) => n(d).onMounted && n(d).onMounted(...o)),
|
|
45
|
+
onVnodeUnmounted: t[5] || (t[5] = //@ts-ignore
|
|
46
|
+
(...o) => n(d).onUnmounted && n(d).onUnmounted(...o))
|
|
47
|
+
}, [
|
|
48
|
+
R(e.$slots, "default"),
|
|
49
|
+
p("div", {
|
|
50
|
+
class: b([
|
|
51
|
+
"flex gap-8 items-center",
|
|
52
|
+
{
|
|
53
|
+
"px-8 flex-col-reverse h-[unset]": i.value,
|
|
54
|
+
"h-48": !i.value
|
|
55
|
+
}
|
|
56
|
+
])
|
|
57
|
+
}, [
|
|
58
|
+
e.changeLocation || e.dateRangeQuery ? (l(), s("div", {
|
|
59
|
+
key: 0,
|
|
60
|
+
class: b([
|
|
61
|
+
"flex gap-8 items-center",
|
|
62
|
+
{
|
|
63
|
+
"w-full overflow-x-auto": i.value
|
|
64
|
+
}
|
|
65
|
+
])
|
|
66
|
+
}, [
|
|
67
|
+
e.changeLocation ? (l(), a(D, {
|
|
68
|
+
key: 0,
|
|
69
|
+
"show-business": e.showBusiness
|
|
70
|
+
}, null, 8, ["show-business"])) : r("", !0),
|
|
71
|
+
e.dateRangeQuery ? (l(), a(I, {
|
|
72
|
+
key: 1,
|
|
73
|
+
"model-value": y.value,
|
|
74
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => y.value = o),
|
|
75
|
+
"predefined-range": e.predefinedDateRanges
|
|
76
|
+
}, null, 8, ["model-value", "predefined-range"])) : r("", !0)
|
|
77
|
+
], 2)) : r("", !0),
|
|
78
|
+
p("div", E, [
|
|
79
|
+
e.filterable && e.filterAttributes ? (l(), s("div", O, [
|
|
80
|
+
e.hideFilterOptions ? (l(), a($, { key: 1 }, {
|
|
81
|
+
default: C(() => [
|
|
82
|
+
U(n(k), {
|
|
83
|
+
modelValue: u.value,
|
|
84
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => u.value = o),
|
|
85
|
+
attributes: e.filterAttributes
|
|
86
|
+
}, null, 8, ["modelValue", "attributes"])
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
})) : (l(), a(n(k), {
|
|
90
|
+
key: 0,
|
|
91
|
+
modelValue: u.value,
|
|
92
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => u.value = o),
|
|
93
|
+
attributes: e.filterAttributes
|
|
94
|
+
}, null, 8, ["modelValue", "attributes"]))
|
|
95
|
+
])) : i.value ? r("", !0) : (l(), s("div", z)),
|
|
96
|
+
p("div", H, [
|
|
97
|
+
e.searchable ? (l(), a(h, {
|
|
98
|
+
key: 0,
|
|
99
|
+
"model-value": v.value,
|
|
100
|
+
"onUpdate:modelValue": t[3] || (t[3] = (o) => v.value = o),
|
|
101
|
+
"prepend-icon": "search",
|
|
102
|
+
placeholder: n(B)("inventory.common.table.toolbar.filterItems"),
|
|
103
|
+
class: "w-full"
|
|
104
|
+
}, null, 8, ["model-value", "placeholder"])) : r("", !0)
|
|
105
|
+
]),
|
|
106
|
+
(l(!0), s(A, null, L(e.actions, (o, x) => (l(), a(w, {
|
|
107
|
+
key: x,
|
|
108
|
+
variant: "tertiary",
|
|
109
|
+
"prepend-icon": o.icon,
|
|
110
|
+
onClick: o.onClick
|
|
111
|
+
}, null, 8, ["prepend-icon", "onClick"]))), 128))
|
|
112
|
+
])
|
|
113
|
+
], 2)
|
|
114
|
+
], 512);
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
export {
|
|
119
|
+
X as _
|
|
120
|
+
};
|
|
@@ -3,8 +3,8 @@ var Pe = (F, i, l) => i in F ? He(F, i, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var ve = (F, i, l) => Pe(F, typeof i != "symbol" ? i + "" : i, l);
|
|
4
4
|
import { defineComponent as ye, computed as x, ref as $, watch as ge, createElementBlock as f, openBlock as d, normalizeStyle as z, Fragment as V, renderList as O, createCommentVNode as D, renderSlot as ke, useSlots as Oe, onMounted as Ue, onUnmounted as Ee, reactive as ee, resolveComponent as T, createElementVNode as B, createVNode as k, createTextVNode as Ke, toDisplayString as P, unref as L, createSlots as je, withCtx as w, createBlock as I, resolveDynamicComponent as pe, normalizeClass as fe, withModifiers as Ne, Transition as ze } from "vue";
|
|
5
5
|
import { useDialogChild as Ge } from "@feedmepos/ui-library";
|
|
6
|
-
import { z as he } from "./app-
|
|
7
|
-
import { d as Je } from "./index-
|
|
6
|
+
import { z as he } from "./app-ZyQBMnlh.js";
|
|
7
|
+
import { d as Je } from "./index-DN5mjbXr.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { useI18n as Re } from "@feedmepos/mf-common";
|
|
10
10
|
import { P as We, J as be, D as Qe } from "./app-C39bYJmq.js";
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { defineComponent as b, createElementBlock as c, openBlock as m, createElementVNode as p, toDisplayString as a, unref as _, Fragment as B, renderList as P, h as A } from "vue";
|
|
2
|
+
import { a as d, h as C } from "./rules-BpTWt_Y_.js";
|
|
3
|
+
import { useI18n as h } from "@feedmepos/mf-common";
|
|
4
|
+
import { defineStore as k } from "pinia";
|
|
5
|
+
import { useDialog as w } from "@feedmepos/ui-library";
|
|
6
|
+
import { a as g } from "./FmMultiselectDialog-DYM4qyMH.js";
|
|
7
|
+
const D = { class: "flex flex-col" }, I = { 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" }, M = { class: "flex-1 py-8 px-16" }, $ = {
|
|
8
|
+
class: "flex-0 py-8 px-16",
|
|
9
|
+
style: { "flex-basis": "120px" }
|
|
10
|
+
}, F = { class: "flex-1 py-8 px-16" }, R = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "flex-0 py-8 px-16",
|
|
13
|
+
style: { "flex-basis": "120px" }
|
|
14
|
+
}, j = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "flex-0 py-8 px-16",
|
|
17
|
+
style: { "flex-basis": "120px" }
|
|
18
|
+
}, q = /* @__PURE__ */ b({
|
|
19
|
+
__name: "IngredientBindedItem",
|
|
20
|
+
props: {
|
|
21
|
+
name: {},
|
|
22
|
+
bindings: {}
|
|
23
|
+
},
|
|
24
|
+
setup(u) {
|
|
25
|
+
const { t: r } = h();
|
|
26
|
+
function v(t, o) {
|
|
27
|
+
var e;
|
|
28
|
+
if (t.measurement) {
|
|
29
|
+
const s = C(t.amount, t.measurement.conversion);
|
|
30
|
+
return `${d(s, !1)} ${(e = t.measurement) == null ? void 0 : e.abbrev}`;
|
|
31
|
+
}
|
|
32
|
+
return `${d(t.amount, !1)} ${o.abbrev}`;
|
|
33
|
+
}
|
|
34
|
+
function x(t) {
|
|
35
|
+
return t.unit !== void 0;
|
|
36
|
+
}
|
|
37
|
+
return (t, o) => (m(), c("div", D, [
|
|
38
|
+
p("div", I, [
|
|
39
|
+
p("div", M, a(t.name), 1),
|
|
40
|
+
p("div", $, a(_(r)("inventory.ingredient.bindedItems.amount")), 1)
|
|
41
|
+
]),
|
|
42
|
+
(m(!0), c(B, null, P(t.bindings, (e) => (m(), c("div", {
|
|
43
|
+
key: e.id,
|
|
44
|
+
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
45
|
+
}, [
|
|
46
|
+
p("div", F, a(e.name), 1),
|
|
47
|
+
x(e) ? (m(), c("div", R, a(v(e, e.unit)), 1)) : (m(), c("div", j, a(_(d)(e.amount, !1)), 1))
|
|
48
|
+
]))), 128))
|
|
49
|
+
]));
|
|
50
|
+
}
|
|
51
|
+
}), z = k("inventoryMultiSelectDialog", () => {
|
|
52
|
+
const u = w(), { t: r } = h();
|
|
53
|
+
return { multiSelect: async (o, e, s) => {
|
|
54
|
+
const l = s ?? ((n) => n), { promise: f, resolve: i } = Promise.withResolvers();
|
|
55
|
+
return u.open({
|
|
56
|
+
title: "Select items",
|
|
57
|
+
closeButton: !0,
|
|
58
|
+
contentComponent: g,
|
|
59
|
+
contentComponentProps: {
|
|
60
|
+
modelValue: e ?? [],
|
|
61
|
+
items: o,
|
|
62
|
+
virtualScroll: !0,
|
|
63
|
+
onClose: () => i(null)
|
|
64
|
+
},
|
|
65
|
+
primaryActions: {
|
|
66
|
+
text: r("common.confirm"),
|
|
67
|
+
close: !0
|
|
68
|
+
},
|
|
69
|
+
secondaryActions: {
|
|
70
|
+
text: r("common.close"),
|
|
71
|
+
close: !0,
|
|
72
|
+
variant: "tertiary"
|
|
73
|
+
}
|
|
74
|
+
}).onPrimary((n) => {
|
|
75
|
+
const y = n.map((S) => l(S));
|
|
76
|
+
i(y);
|
|
77
|
+
}), f;
|
|
78
|
+
}, singleSelect: async (o, e, s) => {
|
|
79
|
+
const l = s ?? ((n) => n), { promise: f, resolve: i } = Promise.withResolvers();
|
|
80
|
+
return u.open({
|
|
81
|
+
title: "Select items",
|
|
82
|
+
closeButton: !0,
|
|
83
|
+
contentComponent: g,
|
|
84
|
+
contentComponentProps: {
|
|
85
|
+
modelValue: e ? [e] : [],
|
|
86
|
+
items: o,
|
|
87
|
+
virtualScroll: !0,
|
|
88
|
+
onClose: () => i(void 0),
|
|
89
|
+
singleSelect: !0
|
|
90
|
+
},
|
|
91
|
+
primaryActions: {
|
|
92
|
+
text: r("common.confirm"),
|
|
93
|
+
close: !0
|
|
94
|
+
},
|
|
95
|
+
secondaryActions: {
|
|
96
|
+
text: r("common.close"),
|
|
97
|
+
close: !0,
|
|
98
|
+
variant: "tertiary"
|
|
99
|
+
}
|
|
100
|
+
}).onPrimary((n) => {
|
|
101
|
+
if (!n.length)
|
|
102
|
+
return i(null);
|
|
103
|
+
const y = l(n[0]);
|
|
104
|
+
i(y);
|
|
105
|
+
}), f;
|
|
106
|
+
}, alert: (o, e) => {
|
|
107
|
+
const { promise: s, resolve: l } = Promise.withResolvers();
|
|
108
|
+
return u.open({
|
|
109
|
+
title: o,
|
|
110
|
+
closeButton: !0,
|
|
111
|
+
contentComponent: typeof e == "string" ? A("div", e) : e,
|
|
112
|
+
secondaryActions: {
|
|
113
|
+
text: r("common.close"),
|
|
114
|
+
close: !0,
|
|
115
|
+
variant: "tertiary"
|
|
116
|
+
}
|
|
117
|
+
}).onSecondary(() => l()).onClose(() => l()), s;
|
|
118
|
+
} };
|
|
119
|
+
});
|
|
120
|
+
export {
|
|
121
|
+
q as _,
|
|
122
|
+
z as u
|
|
123
|
+
};
|