@feedmepos/mf-inventory-portal 1.3.7-dev.2 → 1.3.7
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-Bt9_9LW3.js → App-D1-fT3jF.js} +3 -3
- package/dist/ApprovalView-0FbsslVD.js +226 -0
- package/dist/{BindingsDialog-lLNdP2RG.js → BindingsDialog-DeavyPY-.js} +5 -5
- package/dist/{BindingsPicker-BwxdoHu-.js → BindingsPicker-BGzhKq8G.js} +3 -3
- package/dist/{BindingsTable-C8cf9nV_.js → BindingsTable-Dr9hWkE1.js} +5 -5
- package/dist/{ClosingDraftView-CHB815at.js → ClosingDraftView-6gwWEWWB.js} +57 -57
- package/dist/{ClosingHistoryView-BQS52wLi.js → ClosingHistoryView-D4rNnlsq.js} +4 -4
- package/dist/{ClosingTemplateView-7o5xDvYi.js → ClosingTemplateView-DxCLH1GH.js} +16 -16
- package/dist/{DeliveryOrderPrintPreview-DBWYDmhP.js → DeliveryOrderPrintPreview-D-XeZX-z.js} +17 -17
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-hX9rZGHP.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DeoaPLQm.js} +14 -14
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLo83JRe.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BMhSHZ3Z.js} +2 -2
- package/dist/{FmMultiselectDialog-CX6Q05kY.js → FmMultiselectDialog-BQZmTWDb.js} +2 -2
- package/dist/{FmMultiselectDialog-eZLmEoMJ.js → FmMultiselectDialog-DJFi54mG.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CNP7o7p-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DAivpdPp.js} +4 -4
- package/dist/{ImportView-5F1k_NOx.js → ImportView-DPQY0ELT.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-COyKYsPf.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeVYXEzb.js} +1 -1
- package/dist/{IngredientGroupView-1kwOZDub.js → IngredientGroupView-5AuPbMDz.js} +7 -7
- package/dist/{IngredientsView-L50oDR5B.js → IngredientsView-qMotWYnL.js} +17 -17
- package/dist/{IntegrationView-CwBluyeW.js → IntegrationView-CVdwhNTA.js} +13 -13
- package/dist/{InventoryBindingForm-28KU0Y69.js → InventoryBindingForm-B5KUYKIu.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DAxmcGtJ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-pbyMU879.js} +5 -5
- package/dist/{InventoryBindingSummary-hjZLd6je.js → InventoryBindingSummary-Bm3A2kmC.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-GqT3S9zo.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-NnoVkA8W.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-6jv1aHW-.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Dp4gFbs5.js} +1 -1
- package/dist/PublishView-DOIiAeDK.js +208 -0
- package/dist/{PurchaseOrderPrintPreview-C_AaZuFs.js → PurchaseOrderPrintPreview-BE-8EJFv.js} +12 -12
- package/dist/ReceiveRequestView-ur3OeHuv.js +2802 -0
- package/dist/{RecipeView-B39YtOhH.js → RecipeView-CM-BrVSe.js} +21 -22
- package/dist/{StockView-DGO3Xf6j.js → StockView-DDqlms0m.js} +20 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-b6jr57r-.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CcQ6bBWG.js} +1 -1
- package/dist/{SupplierView-Bfo4AYFs.js → SupplierView-CM2PrtHi.js} +14 -14
- package/dist/{SurchargeView-CPuDx3I8.js → SurchargeView-q2NfASMH.js} +8 -8
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-EmbaZT8X.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BbZQZQTQ.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CMWRgrTV.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bp3joqMK.js} +67 -60
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-GhRFdMoW.js +3521 -0
- package/dist/{TransferTemplateView-DH1BkbUP.js → TransferTemplateView-B26H_T9Q.js} +19 -20
- package/dist/{UnitCostHistoryView-DonGH8na.js → UnitCostHistoryView-BzumRVdx.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CW3kofME.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CfWpv2Mv.js} +4 -4
- package/dist/{UnitView-CFBdZjSP.js → UnitView-Cxfg--TU.js} +9 -9
- package/dist/{WarehouseView-gdd1ou_Y.js → WarehouseView-CvoafTrd.js} +7 -7
- package/dist/{WastageTemplateView-BoMqb-zR.js → WastageTemplateView-Bqd4Wp3d.js} +16 -16
- package/dist/{app-QEDlYnlN.js → app-CrrDFeMj.js} +4557 -4711
- package/dist/app.d.ts +0 -32
- package/dist/app.js +2 -2
- package/dist/{closing-template-CbHN15AQ.js → closing-template-Ew74NLQj.js} +1 -1
- package/dist/{component-kqxARxvM.js → component-DpCUABT3.js} +21 -30
- package/dist/components/row-action.enum.d.ts +0 -3
- package/dist/{date2-Z-I7Kd_W.js → date2-Bklbk2g-.js} +4 -4
- package/dist/{dayjs.min-D4CmdyEZ.js → dayjs.min-B463GIlc.js} +1 -1
- package/dist/{decimal-C-T875Hm.js → decimal-Dm2vbfDq.js} +2 -2
- package/dist/defineDeepModel-SD5OUepJ.js +19 -0
- package/dist/{duplicate-template-CmTg7BGs.js → duplicate-template-CR79OmLy.js} +1 -1
- package/dist/{export-B1VAPZRx.js → export-CQJcxfPC.js} +1 -1
- package/dist/{inventory-core-dart.default-ugZJdof5.js → feature-CZHvliez.js} +1395 -322
- package/dist/{format-time-from-id-DZ_PAFci.js → format-time-from-id-61ydd8RS.js} +1 -1
- package/dist/{format-unit-display-DlODRa7k.js → format-unit-display-BLtW28yU.js} +13 -13
- package/dist/{import-export.helper-DVCiPtHv.js → import-export.helper-uhFwjH6X.js} +6 -6
- package/dist/{index-rghVMuZK.js → index-CouegIcG.js} +1 -1
- package/dist/{index-BHqcJDf6.js → index-Dx5HvWR_.js} +1 -1
- package/dist/{index-BZxwdVW1.js → index-uA6bkf1x.js} +3 -3
- package/dist/{lodash-CgDY9U7s.js → lodash-CjyamSgJ.js} +1 -1
- package/dist/{lz-string-DNoTxtCy.js → lz-string-BbZdMrTL.js} +1 -1
- package/dist/{netsuite-B64xGIt5.js → netsuite-2v3F8ILe.js} +9 -60
- package/dist/{number-Bqy4-9rV.js → number-BYbxsJHr.js} +3 -3
- package/dist/{purchase-order-template-BxowjjVQ.js → purchase-order-template-s1AiueV_.js} +1 -1
- package/dist/router/name.d.ts +0 -2
- package/dist/{row-action.enum-Co_O4qD9.js → row-action.enum-BcW_L_nE.js} +3 -11
- package/dist/{rules-BkK6oJzC.js → rules-C7L-LFOd.js} +2 -2
- package/dist/{stock-lXNLY2TO.js → stock-CvYOcgWb.js} +3 -3
- package/dist/{stock-CedueOcQ.js → stock-D2s88pz1.js} +1 -1
- package/dist/stores/feature.d.ts +0 -2
- package/dist/stores/integration/netsuite.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-BxEW6DYL.js → supplier-DmobM7mD.js} +2 -2
- package/dist/{surcharge-_zxlHhpJ.js → surcharge-BdZOVfi0.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BQFTqO6q.js → use-ingredient-select-dialog-BUCJBHjV.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BnJKIhqC.js → use-inventory-binding-dialog-DiN1hBIm.js} +2 -2
- package/dist/{use-template-enabled-locations-2-Ch5vC3Ux.js → use-template-enabled-locations-CmH6I2cy.js} +33 -21
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +21 -21
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +21 -21
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +129 -129
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +150 -154
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +7 -93
- package/dist/vue-i18n-D0Q6LFcu.js +2365 -0
- package/dist/{xlsx-BlvEsbYy.js → xlsx-D4PML26z.js} +398 -398
- package/dist/{xlsx.util-B4ae3AUU.js → xlsx.util-BWLcCmO_.js} +1 -1
- package/package.json +3 -8
- package/dist/ApprovalView-BAFatrEE.js +0 -241
- package/dist/IntegrationExplorerView-BVJ3qSYS.js +0 -22254
- package/dist/PublishView-kBqlO98G.js +0 -234
- package/dist/ReceiveRequestView-sebwwuaH.js +0 -2817
- package/dist/SettingsView-CFoKuaMo.js +0 -695
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-_5fogvJl.js +0 -3790
- package/dist/api/integration-sync-log.d.ts +0 -47
- package/dist/api/netsuite-explorer.d.ts +0 -51
- package/dist/defineDeepModel-Ds_lq_kg.js +0 -19
- package/dist/feature-_WJViVjR.js +0 -1081
- package/dist/modules/print-template/api/print-template.d.ts +0 -29
- package/dist/modules/print-template/components/BlockConfigPanel.vue.d.ts +0 -19
- package/dist/modules/print-template/components/CustomPrintTemplatePreview.vue.d.ts +0 -25
- package/dist/modules/print-template/components/PrintTemplateEditorDialog.vue.d.ts +0 -45
- package/dist/modules/print-template/components/TemplatePreview.vue.d.ts +0 -22
- package/dist/modules/print-template/composables/print-po-with-template.d.ts +0 -25
- package/dist/modules/print-template/definitions/block-definitions.d.ts +0 -88
- package/dist/modules/print-template/definitions/predefined-templates.d.ts +0 -22
- package/dist/modules/print-template/definitions/template-renderer.d.ts +0 -17
- package/dist/modules/print-template/index.d.ts +0 -11
- package/dist/modules/print-template/store/print-template.d.ts +0 -170
- package/dist/modules/print-template/types/print-data.d.ts +0 -52
- package/dist/modules/print-template/utils/sanitize-html.d.ts +0 -32
- package/dist/predefined-templates-B5qmOdnZ.js +0 -4542
- package/dist/views/integration/components/IntegrationSyncLogTab.vue.d.ts +0 -15
- package/dist/views/integration/composables/use-integration-sync-log.d.ts +0 -45
- package/dist/views/integration-explorer/IntegrationExplorerView.vue.d.ts +0 -2
- package/dist/views/integration-explorer/composables/use-explorer-tab.d.ts +0 -126
- package/dist/views/integration-explorer/netsuite/ExplorerRecordSyncLog.vue.d.ts +0 -17
- package/dist/views/integration-explorer/netsuite/ExplorerRecordToolbar.vue.d.ts +0 -201
- package/dist/views/integration-explorer/netsuite/ExplorerSystemNote.vue.d.ts +0 -15
- package/dist/views/integration-explorer/netsuite/JsonViewer.vue.d.ts +0 -15
- package/dist/views/integration-explorer/netsuite/NetSuiteExplorerView.vue.d.ts +0 -2
- package/dist/views/integration-explorer/netsuite/inventoryTransfer/InventoryTransferSideSheet.vue.d.ts +0 -7
- package/dist/views/integration-explorer/netsuite/inventoryTransfer/InventoryTransferView.vue.d.ts +0 -39
- package/dist/views/integration-explorer/netsuite/items/AssemblyItemSideSheet.vue.d.ts +0 -7
- package/dist/views/integration-explorer/netsuite/items/InventoryItemSideSheet.vue.d.ts +0 -7
- package/dist/views/integration-explorer/netsuite/items/ItemsView.vue.d.ts +0 -2
- package/dist/views/integration-explorer/netsuite/items/ServiceItemSideSheet.vue.d.ts +0 -7
- package/dist/views/integration-explorer/netsuite/orders/ExplorerOrderDetailSideSheet.vue.d.ts +0 -7
- package/dist/views/integration-explorer/netsuite/orders/OrdersView.vue.d.ts +0 -39
- package/dist/views/integration-explorer/netsuite/orders/PurchaseOrderSideSheet.vue.d.ts +0 -7
- package/dist/views/integration-explorer/netsuite/orders/SyncNetsuiteButton.vue.d.ts +0 -29
- package/dist/views/integration-explorer/netsuite/orders/TransferOrderSideSheet.vue.d.ts +0 -7
- package/dist/views/settings/SettingsView.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +0 -13
- package/dist/vue-i18n-taYcBeKI.js +0 -2365
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
import { defineComponent as J, ref as G, onMounted as Ce, resolveComponent as A, openBlock as B, createElementBlock as R, Fragment as oe, createElementVNode as v, toDisplayString as N, createVNode as k, createCommentVNode as E, mergeModels as Ie, computed as S, useModel as Ae, unref as a, watch as _e, normalizeClass as he, withCtx as K, h as O, createBlock as D, renderList as se, isRef as fe, normalizeStyle as Re, Teleport as Se, normalizeProps as $e, guardReactiveProps as Ee } from "vue";
|
|
2
|
-
import { a as Y, c as ue, S as Te, F as ie, w as Ue, x as Pe, j as ve, u as De } from "./app-
|
|
2
|
+
import { a as Y, c as ue, S as Te, F as ie, w as Ue, x as Pe, j as ve, u as De } from "./app-CrrDFeMj.js";
|
|
3
3
|
import { useDialog as me, useSnackbar as ce, components as ee, useProxiedModel as ye, useBreakpoints as Ge } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Me, _ as ze } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { F as z } from "./form-mode.enum-BKiNVH6A.js";
|
|
6
|
-
import { _ as Ve } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as Ve } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeVYXEzb.js";
|
|
7
7
|
import { defineStore as Ne, storeToRefs as Ke } from "pinia";
|
|
8
|
-
import { D as be, R as te } from "./row-action.enum-
|
|
9
|
-
import { c as Le } from "./component-
|
|
10
|
-
import { a as j, c as ke } from "./number-
|
|
8
|
+
import { D as be, R as te } from "./row-action.enum-BcW_L_nE.js";
|
|
9
|
+
import { c as Le } from "./component-DpCUABT3.js";
|
|
10
|
+
import { a as j, c as ke } from "./number-BYbxsJHr.js";
|
|
11
11
|
import { useI18n as Q, useCoreStore as Oe } from "@feedmepos/mf-common";
|
|
12
12
|
import { u as je, _ as Ye } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CkPuJQWF.js";
|
|
13
|
-
import { b as xe, c as pe, I as qe, A as re, U as Be, R as He } from "./rules-
|
|
14
|
-
import { _ as We } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { a as ae } from "./FmMultiselectDialog-
|
|
16
|
-
import { d as we } from "./defineDeepModel-
|
|
13
|
+
import { b as xe, c as pe, I as qe, A as re, U as Be, R as He } from "./rules-C7L-LFOd.js";
|
|
14
|
+
import { _ as We } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-pbyMU879.js";
|
|
15
|
+
import { a as ae } from "./FmMultiselectDialog-BQZmTWDb.js";
|
|
16
|
+
import { d as we } from "./defineDeepModel-SD5OUepJ.js";
|
|
17
17
|
import { D as Je } from "./app-DiX-EfV6.js";
|
|
18
|
-
import { _ as Qe, c as Xe, d as Ze } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { u as en } from "./FmMultiselectDialog-
|
|
20
|
-
import { u as nn } from "./vue-i18n-
|
|
21
|
-
import { F as tn } from "./
|
|
22
|
-
import { _ as
|
|
23
|
-
import { u as ln } from "./feature-_WJViVjR.js";
|
|
18
|
+
import { _ as Qe, c as Xe, d as Ze } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DAivpdPp.js";
|
|
19
|
+
import { u as en } from "./FmMultiselectDialog-DJFi54mG.js";
|
|
20
|
+
import { u as nn } from "./vue-i18n-D0Q6LFcu.js";
|
|
21
|
+
import { F as tn, u as on } from "./feature-CZHvliez.js";
|
|
22
|
+
import { _ as ln } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
|
|
24
23
|
import { _ as sn, F as ge } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
25
|
-
import { b as an, d as rn } from "./xlsx.util-
|
|
26
|
-
import { f as dn } from "./date2-
|
|
27
|
-
import { _ as un } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
24
|
+
import { b as an, d as rn } from "./xlsx.util-BWLcCmO_.js";
|
|
25
|
+
import { f as dn } from "./date2-Bklbk2g-.js";
|
|
26
|
+
import { _ as un } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BMhSHZ3Z.js";
|
|
28
27
|
const mn = {
|
|
29
28
|
key: 0,
|
|
30
29
|
class: "flex flex-col items-center w-full h-full gap-24"
|
|
@@ -1228,7 +1227,7 @@ const On = { class: "flex flex-col gap-24" }, jn = {
|
|
|
1228
1227
|
emits: ["update:modelValue", "click:submit"],
|
|
1229
1228
|
setup(p, { expose: V, emit: b }) {
|
|
1230
1229
|
var H;
|
|
1231
|
-
const m = p, d = b, u =
|
|
1230
|
+
const m = p, d = b, u = on(), { t: g } = Q(), n = S({
|
|
1232
1231
|
get() {
|
|
1233
1232
|
var c;
|
|
1234
1233
|
return ((c = m.modelValue) == null ? void 0 : c.name) ?? "";
|
|
@@ -1390,7 +1389,7 @@ const On = { class: "flex flex-col gap-24" }, jn = {
|
|
|
1390
1389
|
])) : E("", !0)
|
|
1391
1390
|
])) : E("", !0),
|
|
1392
1391
|
v("div", Ft, [
|
|
1393
|
-
k(
|
|
1392
|
+
k(ln, {
|
|
1394
1393
|
entity: "inventoryRecipe",
|
|
1395
1394
|
modelValue: o.value,
|
|
1396
1395
|
"onUpdate:modelValue": h[5] || (h[5] = (U) => o.value = U)
|
|
@@ -1586,7 +1585,7 @@ function St() {
|
|
|
1586
1585
|
}), n = an(u, ["Name", "Type", "Code", "Item", "Amount", "Unit", "Custom Attributes"]);
|
|
1587
1586
|
rn(n, `RECIPE_${dn(/* @__PURE__ */ new Date(), "-", "-")}.xlsx`);
|
|
1588
1587
|
}
|
|
1589
|
-
const $t = { class: "flex flex-col py-8" }, Et = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
1588
|
+
const $t = { class: "flex flex-col py-8" }, Et = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ao = /* @__PURE__ */ J({
|
|
1590
1589
|
__name: "RecipeView",
|
|
1591
1590
|
setup(p) {
|
|
1592
1591
|
const V = Y(), b = S(() => V.recipes), m = De(), { createRecipe: d, updateRecipe: u } = de(), { recipeDialogProps: g, recipeViewLoading: n } = Ke(de()), { columnDefs: t, formatRowData: o } = vn(), e = S(() => o(b.value));
|
|
@@ -1678,5 +1677,5 @@ const $t = { class: "flex flex-col py-8" }, Et = { class: "fm-typo-en-body-lg-60
|
|
|
1678
1677
|
}
|
|
1679
1678
|
});
|
|
1680
1679
|
export {
|
|
1681
|
-
|
|
1680
|
+
ao as default
|
|
1682
1681
|
};
|
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
import { defineComponent as ve, openBlock as j, createBlock as Q, withCtx as U, createElementVNode as e, toDisplayString as d, unref as s, ref as G, h as ke, computed as L, watch as Ae, resolveComponent as T, isRef as He, createVNode as v, createElementBlock as W, Fragment as ie, renderList as de, createCommentVNode as se, normalizeClass as Fe, reactive as rt, mergeModels as Xe, useModel as ht, onMounted as We, createTextVNode as fe, normalizeStyle as it, Teleport as gt, normalizeProps as Ne, mergeProps as Ye } from "vue";
|
|
2
2
|
import { u as bt, _ as xt } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CkPuJQWF.js";
|
|
3
|
-
import { u as Ve, c as Ue, a as Ee, F as Je, w as St, G as ae, v as wt, o as Ft, D as At, y as J, h as Ce, i as Qe, e as Ze,
|
|
4
|
-
import { u as Pe } from "./stock-
|
|
5
|
-
import { c as $t } from "./component-
|
|
6
|
-
import { _ as ut, o as Vt } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as Ge, S as Le, g as ct, a as Ct } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as Ve, c as Ue, a as Ee, F as Je, w as St, G as ae, v as wt, o as Ft, D as At, y as J, h as Ce, i as Qe, e as Ze, J as he } from "./app-CrrDFeMj.js";
|
|
4
|
+
import { u as Pe } from "./stock-CvYOcgWb.js";
|
|
5
|
+
import { c as $t } from "./component-DpCUABT3.js";
|
|
6
|
+
import { _ as ut, o as Vt } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-CfWpv2Mv.js";
|
|
7
|
+
import { _ as Ge, S as Le, g as ct, a as Ct } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CcQ6bBWG.js";
|
|
8
8
|
import { _ as jt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
9
9
|
import { useI18n as me, useCoreStore as dt } from "@feedmepos/mf-common";
|
|
10
|
-
import { u as mt, i as Me, _ as et } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { u as mt, i as Me, _ as et } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-Dp4gFbs5.js";
|
|
11
11
|
import { useSnackbar as be, useDialog as Re, useProxiedModel as Oe, useBreakpoints as Dt } from "@feedmepos/ui-library";
|
|
12
12
|
import { defineStore as Bt } from "pinia";
|
|
13
13
|
import { F as Ke } from "./FmAdminBadge-BOEV93D3.js";
|
|
14
|
-
import { g as $e, a as _e, e as Mt, t as Ie, c as ge, f as It, h as tt, i as ft, j as qe, d as De, k as Tt } from "./number-
|
|
15
|
-
import { u as xe } from "./stock-
|
|
16
|
-
import { c as Te, A as Ht, M as Ut, R as Et } from "./rules-
|
|
17
|
-
import { u as Pt } from "./use-inventory-binding-dialog-
|
|
18
|
-
import { a as vt } from "./FmMultiselectDialog-
|
|
19
|
-
import { d as ye } from "./dayjs.min-
|
|
20
|
-
import { _ as Rt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
21
|
-
import { g as Ot } from "./decimal-
|
|
22
|
-
import { a as Nt,
|
|
23
|
-
import { i as Wt, _ as Kt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import { g as $e, a as _e, e as Mt, t as Ie, c as ge, f as It, h as tt, i as ft, j as qe, d as De, k as Tt } from "./number-BYbxsJHr.js";
|
|
15
|
+
import { u as xe } from "./stock-D2s88pz1.js";
|
|
16
|
+
import { c as Te, A as Ht, M as Ut, R as Et } from "./rules-C7L-LFOd.js";
|
|
17
|
+
import { u as Pt } from "./use-inventory-binding-dialog-DiN1hBIm.js";
|
|
18
|
+
import { a as vt } from "./FmMultiselectDialog-BQZmTWDb.js";
|
|
19
|
+
import { d as ye } from "./dayjs.min-B463GIlc.js";
|
|
20
|
+
import { _ as Rt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-NnoVkA8W.js";
|
|
21
|
+
import { g as Ot } from "./decimal-Dm2vbfDq.js";
|
|
22
|
+
import { a as Nt, b as Yt, f as pt, t as ot, c as nt, p as Lt, n as zt, d as Gt } from "./date2-Bklbk2g-.js";
|
|
23
|
+
import { i as Wt, _ as Kt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BMhSHZ3Z.js";
|
|
24
24
|
import { E as qt } from "./empty-placeholder-wf6-BWE8.js";
|
|
25
|
-
import { F as pe } from "./
|
|
26
|
-
import { u as Xt } from "./feature-_WJViVjR.js";
|
|
25
|
+
import { F as pe, u as Xt } from "./feature-CZHvliez.js";
|
|
27
26
|
import { _ as Jt, F as st } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
28
|
-
import { u as Qt } from "./netsuite-
|
|
27
|
+
import { u as Qt } from "./netsuite-2v3F8ILe.js";
|
|
29
28
|
import { P as Zt, J as eo } from "./app-DiX-EfV6.js";
|
|
30
29
|
var Be = /* @__PURE__ */ ((V) => (V.History = "History", V.Convert = "Convert", V.Adjust = "Adjust", V))(Be || {});
|
|
31
30
|
const to = [
|
|
@@ -2141,7 +2140,7 @@ const gn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, bn = {
|
|
|
2141
2140
|
}), ks = {
|
|
2142
2141
|
key: 0,
|
|
2143
2142
|
class: "flex items-center gap-1"
|
|
2144
|
-
}, hs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, gs = { class: "flex flex-col gap-8" }, bs = { class: "flex flex-col" }, xs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ss = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" },
|
|
2143
|
+
}, hs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, gs = { class: "flex flex-col gap-8" }, bs = { class: "flex flex-col" }, xs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ss = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Qs = /* @__PURE__ */ ve({
|
|
2145
2144
|
__name: "StockView",
|
|
2146
2145
|
setup(V) {
|
|
2147
2146
|
const { t: y } = me(), _ = Ee(), p = Ve(), I = Pe(), C = yt(), c = xe(), r = mt(), g = Qt(), { columnDefs: N } = ao(), D = Re(), i = be();
|
|
@@ -2393,5 +2392,5 @@ const gn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, bn = {
|
|
|
2393
2392
|
}
|
|
2394
2393
|
});
|
|
2395
2394
|
export {
|
|
2396
|
-
|
|
2395
|
+
Qs as default
|
|
2397
2396
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as C, computed as h, openBlock as l, createElementBlock as d, createElementVNode as r, normalizeClass as v, toDisplayString as m, unref as p, ref as V, resolveComponent as $, Fragment as k, createVNode as E, createCommentVNode as G, withCtx as S, renderList as P } from "vue";
|
|
2
2
|
import { useI18n as D, useCoreStore as N } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as O } from "./netsuite-
|
|
3
|
+
import { u as O } from "./netsuite-2v3F8ILe.js";
|
|
4
4
|
function re(e, t = !1) {
|
|
5
5
|
var c;
|
|
6
6
|
return e ? [
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { defineComponent as ie, mergeModels as Hd, computed as E, useModel as ed, resolveComponent as D, openBlock as S, createElementBlock as w, createElementVNode as h, createVNode as C, withCtx as U, toDisplayString as A, unref as p, Fragment as oe, renderList as le, ref as k, createBlock as z, createCommentVNode as W, createTextVNode as wd, isRef as dd, normalizeClass as ae, watch as Td, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
|
|
2
|
-
import { u as ce } from "./supplier-
|
|
3
|
-
import { D as td, R as ye } from "./row-action.enum-
|
|
4
|
-
import { c as Yd } from "./component-
|
|
5
|
-
import { c as we, a as ke, h as rd, i as nd, d as Xd, n as Ad, u as Pe } from "./app-
|
|
2
|
+
import { u as ce } from "./supplier-DmobM7mD.js";
|
|
3
|
+
import { D as td, R as ye } from "./row-action.enum-BcW_L_nE.js";
|
|
4
|
+
import { c as Yd } from "./component-DpCUABT3.js";
|
|
5
|
+
import { c as we, a as ke, h as rd, i as nd, d as Xd, n as Ad, u as Pe } from "./app-CrrDFeMj.js";
|
|
6
6
|
import { useI18n as ee, useCoreStore as Ce } from "@feedmepos/mf-common";
|
|
7
|
-
import { u as Ve } from "./netsuite-
|
|
7
|
+
import { u as Ve } from "./netsuite-2v3F8ILe.js";
|
|
8
8
|
import { useDialog as Ne, useSnackbar as Se, useProxiedModel as od, useDialogChild as Zd, useBreakpoints as qd } from "@feedmepos/ui-library";
|
|
9
9
|
import { u as zd, _ as Jd } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CkPuJQWF.js";
|
|
10
10
|
import { F as B } from "./form-mode.enum-BKiNVH6A.js";
|
|
11
|
-
import { R as Z } from "./rules-
|
|
12
|
-
import { a as Qd } from "./FmMultiselectDialog-
|
|
11
|
+
import { R as Z } from "./rules-C7L-LFOd.js";
|
|
12
|
+
import { a as Qd } from "./FmMultiselectDialog-BQZmTWDb.js";
|
|
13
13
|
import { _ as et } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
14
|
-
import { _ as dt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { u as xe } from "./feature-
|
|
16
|
-
import { u as tt } from "./purchase-order-template-
|
|
17
|
-
import { g as rt } from "./number-
|
|
14
|
+
import { _ as dt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DAivpdPp.js";
|
|
15
|
+
import { u as xe } from "./feature-CZHvliez.js";
|
|
16
|
+
import { u as tt } from "./purchase-order-template-s1AiueV_.js";
|
|
17
|
+
import { g as rt } from "./number-BYbxsJHr.js";
|
|
18
18
|
import { _ as nt, F as ve } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
19
|
-
import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
19
|
+
import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BMhSHZ3Z.js";
|
|
20
20
|
import { defineStore as at } from "pinia";
|
|
21
|
-
import { b as Rd, d as Md, s as it, r as $t } from "./xlsx.util-
|
|
22
|
-
import { f as lt } from "./date2-
|
|
21
|
+
import { b as Rd, d as Md, s as it, r as $t } from "./xlsx.util-BWLcCmO_.js";
|
|
22
|
+
import { f as lt } from "./date2-Bklbk2g-.js";
|
|
23
23
|
import { F as st } from "./FmDroppableField-J0xUsOTV.js";
|
|
24
24
|
function ut(e, d) {
|
|
25
25
|
const { t } = ee(), r = Ve();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as pe, ref as v, computed as c, watch as R, onMounted as fe, resolveComponent as p, openBlock as j, createElementBlock as ye, Fragment as ge, createVNode as n, unref as s, withCtx as f, createElementVNode as u, normalizeClass as G, normalizeStyle as he, toDisplayString as E, withDirectives as be, vModelText as _e, createBlock as Se, withModifiers as xe, createCommentVNode as Fe } from "vue";
|
|
2
2
|
import { u as ke, _ as we } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CkPuJQWF.js";
|
|
3
|
-
import { a as Ie, u as Ce, s as V, j as Le, y as Ve } from "./app-
|
|
4
|
-
import { u as Ae } from "./surcharge-
|
|
3
|
+
import { a as Ie, u as Ce, s as V, j as Le, y as Ve } from "./app-CrrDFeMj.js";
|
|
4
|
+
import { u as Ae } from "./surcharge-BdZOVfi0.js";
|
|
5
5
|
import { useSnackbar as De, useDialog as Me, useBreakpoints as Oe } from "@feedmepos/ui-library";
|
|
6
|
-
import { _ as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { a as Te } from "./FmMultiselectDialog-
|
|
6
|
+
import { _ as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BMhSHZ3Z.js";
|
|
7
|
+
import { a as Te } from "./FmMultiselectDialog-BQZmTWDb.js";
|
|
8
8
|
import { useI18n as Be } from "@feedmepos/mf-common";
|
|
9
|
-
import { u as ze } from "./supplier-
|
|
10
|
-
import { u as Ee } from "./feature-
|
|
9
|
+
import { u as ze } from "./supplier-DmobM7mD.js";
|
|
10
|
+
import { u as Ee } from "./feature-CZHvliez.js";
|
|
11
11
|
import { D as Ne, P as $e, L as Ue } from "./app-DiX-EfV6.js";
|
|
12
|
-
import { D as H, R as A } from "./row-action.enum-
|
|
13
|
-
import { c as qe } from "./component-
|
|
12
|
+
import { D as H, R as A } from "./row-action.enum-BcW_L_nE.js";
|
|
13
|
+
import { c as qe } from "./component-DpCUABT3.js";
|
|
14
14
|
const Je = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, je = { class: "flex flex-col h-full justify-between" }, Ge = { class: "space-y-16" }, He = ["placeholder"], Ke = { class: "flex flex-col gap-16" }, Qe = { class: "flex flex-col gap-8" }, We = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xe = { class: "flex flex-col gap-12" }, Ye = { class: "flex flex-col gap-4" }, Ze = { class: "flex items-center gap-8" }, pt = /* @__PURE__ */ pe({
|
|
15
15
|
__name: "SurchargeView",
|
|
16
16
|
setup(et) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as I, ref as m, resolveComponent as p, openBlock as i, createBlock as O, withCtx as u, createVNode as y, createElementBlock as v, toDisplayString as g, createElementVNode as T, h as B } from "vue";
|
|
2
2
|
import { F as L } from "./FmAdminBadge-BOEV93D3.js";
|
|
3
|
-
import { o as U, u as _ } from "./app-
|
|
3
|
+
import { o as U, u as _ } from "./app-CrrDFeMj.js";
|
|
4
4
|
import { useCoreStore as A } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as C, components as V } from "@feedmepos/ui-library";
|
|
6
|
-
import { u as F, a as j } from "./closing-template-
|
|
6
|
+
import { u as F, a as j } from "./closing-template-Ew74NLQj.js";
|
|
7
7
|
const q = U((o, t) => {
|
|
8
8
|
const c = _(), l = A();
|
|
9
9
|
return {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as q, ref as
|
|
1
|
+
import { defineComponent as q, ref as f, computed as r, watch as G, h as i, resolveComponent as x, openBlock as B, createElementBlock as H, createElementVNode as b, toDisplayString as J, createVNode as y, createBlock as O, createCommentVNode as Q, unref as V } from "vue";
|
|
2
2
|
import { useCoreStore as W, useI18n as X } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as Y, components as A } from "@feedmepos/ui-library";
|
|
4
4
|
import { K as Z, D as ee } from "./app-DiX-EfV6.js";
|
|
5
|
-
import { u as le } from "./app-
|
|
5
|
+
import { u as le } from "./app-CrrDFeMj.js";
|
|
6
6
|
import { F as te } from "./FmAdminBadge-BOEV93D3.js";
|
|
7
7
|
const ae = {
|
|
8
8
|
class: "flex flex-col gap-24 h-full",
|
|
9
9
|
style: { "max-height": "50vh" }
|
|
10
|
-
}, oe = { class: "flex items-center flex-shrink-0" }, ne = { class: "fm-typo-en-body-lg-600 flex-1" }, se = { class: "flex gap-8" }, ie = { class: "flex flex-col gap-4 w-full flex-1 min-h-0" },
|
|
10
|
+
}, oe = { class: "flex items-center flex-shrink-0" }, ne = { class: "fm-typo-en-body-lg-600 flex-1" }, se = { class: "flex gap-8" }, ie = { class: "flex flex-col gap-4 w-full flex-1 min-h-0" }, re = { class: "flex items-center gap-8 flex-shrink-0" }, ue = { class: "flex-1 border border-fm-color-border-secondary rounded-lg overflow-hidden overflow-y-auto min-h-0" }, he = /* @__PURE__ */ q({
|
|
11
11
|
__name: "TemplatePublishDialog",
|
|
12
12
|
props: {
|
|
13
13
|
title: {},
|
|
@@ -18,28 +18,29 @@ const ae = {
|
|
|
18
18
|
enabledLocations: {},
|
|
19
19
|
hideUnpublish: { type: Boolean }
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const s =
|
|
21
|
+
setup(U) {
|
|
22
|
+
const s = U, p = f(s.initialPublishedRev ?? {}), t = f(), n = f(/* @__PURE__ */ new Set()), C = le(), $ = W(), k = Y(), E = r(() => {
|
|
23
23
|
var e;
|
|
24
|
-
return ((e =
|
|
25
|
-
}),
|
|
24
|
+
return ((e = $.sessionUser.value) == null ? void 0 : e.role.isAdmin) ?? !1;
|
|
25
|
+
}), S = r(() => {
|
|
26
26
|
var l;
|
|
27
27
|
return ((l = s.enabledLocations) != null && l.length ? s.enabledLocations : s.locations).map((a) => {
|
|
28
28
|
var o;
|
|
29
|
-
if (!!!
|
|
29
|
+
if (!!!C.locationByDbName[a.dbName])
|
|
30
30
|
return {
|
|
31
31
|
...a,
|
|
32
32
|
status: "invalid"
|
|
33
33
|
};
|
|
34
|
-
const v = !!(((o =
|
|
34
|
+
const v = !!(((o = p.value) == null ? void 0 : o[a.dbName]) ?? []).find(
|
|
35
35
|
(_) => _._id === s.doc._id && (_.updatedAt ? _.updatedAt === s.doc.updatedAt : _._rev === s.doc._rev)
|
|
36
36
|
);
|
|
37
37
|
return {
|
|
38
38
|
...a,
|
|
39
|
-
status: v ? "published" : "outdated"
|
|
39
|
+
status: v ? "published" : "outdated",
|
|
40
|
+
state: a.doc.profile.address.state
|
|
40
41
|
};
|
|
41
42
|
});
|
|
42
|
-
}), { t:
|
|
43
|
+
}), { t: m } = X(), g = f(""), w = f({
|
|
43
44
|
logic: "AND",
|
|
44
45
|
rules: []
|
|
45
46
|
}), D = [
|
|
@@ -48,38 +49,46 @@ const ae = {
|
|
|
48
49
|
key: "status",
|
|
49
50
|
entity: "inventory",
|
|
50
51
|
values: ["published", "outdated"]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
type: "string",
|
|
55
|
+
key: "state",
|
|
56
|
+
entity: "inventory",
|
|
57
|
+
values: [
|
|
58
|
+
...new Set(C.locations.map((e) => e.doc.profile.address.state).filter(Boolean))
|
|
59
|
+
]
|
|
51
60
|
}
|
|
52
|
-
],
|
|
53
|
-
const e =
|
|
54
|
-
return
|
|
55
|
-
}),
|
|
56
|
-
() =>
|
|
61
|
+
], u = r(() => {
|
|
62
|
+
const e = g.value.toLowerCase();
|
|
63
|
+
return S.value.filter((l) => Z(l, w.value)).filter(({ name: l, dbName: a }) => !!(!e || l.toLowerCase().includes(e) || E.value && a.toLowerCase().includes(e)));
|
|
64
|
+
}), N = r(
|
|
65
|
+
() => u.value.filter((e) => e.status !== "invalid")
|
|
57
66
|
);
|
|
58
67
|
G(
|
|
59
|
-
[
|
|
68
|
+
[g, w],
|
|
60
69
|
() => {
|
|
61
70
|
n.value = /* @__PURE__ */ new Set();
|
|
62
71
|
},
|
|
63
72
|
{ deep: !0 }
|
|
64
73
|
);
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
67
|
-
const e =
|
|
74
|
+
const F = r(() => u.value.length === 0 ? !1 : u.value.every((e) => n.value.has(e.dbName))), T = r(() => {
|
|
75
|
+
if (N.value.length === 0) return !1;
|
|
76
|
+
const e = N.value.filter(
|
|
68
77
|
(l) => n.value.has(l.dbName)
|
|
69
78
|
).length;
|
|
70
|
-
return e > 0 && e <
|
|
79
|
+
return e > 0 && e < N.value.length;
|
|
71
80
|
});
|
|
72
|
-
function
|
|
73
|
-
|
|
81
|
+
function z() {
|
|
82
|
+
F.value ? u.value.forEach((e) => n.value.delete(e.dbName)) : u.value.forEach((e) => n.value.add(e.dbName)), n.value = new Set(n.value);
|
|
74
83
|
}
|
|
75
|
-
function
|
|
84
|
+
function P(e) {
|
|
76
85
|
e.status !== "invalid" && (n.value.has(e.dbName) ? n.value.delete(e.dbName) : n.value.add(e.dbName), n.value = new Set(n.value));
|
|
77
86
|
}
|
|
78
|
-
function
|
|
79
|
-
const e =
|
|
87
|
+
function L() {
|
|
88
|
+
const e = u.value.filter(
|
|
80
89
|
(l) => l.status !== "invalid" && n.value.has(l.dbName)
|
|
81
90
|
);
|
|
82
|
-
return e.length === 0 ?
|
|
91
|
+
return e.length === 0 ? N.value : e;
|
|
83
92
|
}
|
|
84
93
|
const R = r(() => [
|
|
85
94
|
{
|
|
@@ -91,7 +100,7 @@ const ae = {
|
|
|
91
100
|
return l.status === "invalid" ? i("div", { class: "w-56" }) : i(A.FmCheckbox, {
|
|
92
101
|
value: l.dbName,
|
|
93
102
|
modelValue: n.value.has(l.dbName),
|
|
94
|
-
"onUpdate:modelValue": () =>
|
|
103
|
+
"onUpdate:modelValue": () => P(l)
|
|
95
104
|
});
|
|
96
105
|
}
|
|
97
106
|
},
|
|
@@ -125,8 +134,8 @@ const ae = {
|
|
|
125
134
|
message: l.name,
|
|
126
135
|
type: "success"
|
|
127
136
|
});
|
|
128
|
-
} catch (
|
|
129
|
-
console.error("Failed to copy:",
|
|
137
|
+
} catch (h) {
|
|
138
|
+
console.error("Failed to copy:", h);
|
|
130
139
|
}
|
|
131
140
|
}
|
|
132
141
|
})
|
|
@@ -160,7 +169,7 @@ const ae = {
|
|
|
160
169
|
t.value = `unpublish-${l.dbName}`;
|
|
161
170
|
try {
|
|
162
171
|
const o = await s.controller.unpublishAtLocation(l).delayed(1e3);
|
|
163
|
-
|
|
172
|
+
p.value = o;
|
|
164
173
|
} catch (o) {
|
|
165
174
|
console.error("Error unpublishing at location:", o);
|
|
166
175
|
} finally {
|
|
@@ -176,7 +185,7 @@ const ae = {
|
|
|
176
185
|
t.value = `publish-${l.dbName}`;
|
|
177
186
|
try {
|
|
178
187
|
const o = await s.controller.publishAtLocation(l).delayed(1e3);
|
|
179
|
-
|
|
188
|
+
p.value = o;
|
|
180
189
|
} catch (o) {
|
|
181
190
|
console.error("Error publishing at location:", o);
|
|
182
191
|
} finally {
|
|
@@ -193,7 +202,7 @@ const ae = {
|
|
|
193
202
|
a ? "fm-status-badge-success-secondary" : "fm-status-badge-info-secondary"
|
|
194
203
|
]
|
|
195
204
|
},
|
|
196
|
-
|
|
205
|
+
m(a ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
|
|
197
206
|
)
|
|
198
207
|
];
|
|
199
208
|
return c && v.push(c), i("div", { class: "flex items-center gap-8" }, v);
|
|
@@ -203,8 +212,8 @@ const ae = {
|
|
|
203
212
|
async function I() {
|
|
204
213
|
t.value = "all";
|
|
205
214
|
try {
|
|
206
|
-
const e =
|
|
207
|
-
|
|
215
|
+
const e = L(), l = await s.controller.publishAll(e).delayed(1e3);
|
|
216
|
+
p.value = l;
|
|
208
217
|
} catch (e) {
|
|
209
218
|
console.error("Error publishing all:", e);
|
|
210
219
|
} finally {
|
|
@@ -215,8 +224,8 @@ const ae = {
|
|
|
215
224
|
if (s.controller.unpublishAll) {
|
|
216
225
|
t.value = "unpublish-all";
|
|
217
226
|
try {
|
|
218
|
-
const e =
|
|
219
|
-
|
|
227
|
+
const e = L(), l = await s.controller.unpublishAll(e).delayed(1e3);
|
|
228
|
+
p.value = l;
|
|
220
229
|
} catch (e) {
|
|
221
230
|
console.error("Error unpublishing all:", e);
|
|
222
231
|
} finally {
|
|
@@ -224,23 +233,21 @@ const ae = {
|
|
|
224
233
|
}
|
|
225
234
|
}
|
|
226
235
|
}
|
|
227
|
-
const d = r(() =>
|
|
228
|
-
(e) => e.status !== "invalid" && n.value.has(e.dbName)
|
|
229
|
-
).length), M = r(() => d.value === 0 || d.value === u.value.length ? h("inventory.publish.actions.publishAll") : h("inventory.publish.actions.publishSelected", { count: d.value })), j = r(() => d.value === 0 || d.value === u.value.length ? "Unpublish all" : `Unpublish selected ${d.value} location${d.value === 1 ? "" : "s"}`);
|
|
236
|
+
const d = r(() => n.value.size), M = r(() => d.value === 0 || d.value === S.value.length ? m("inventory.publish.actions.publishAll") : m("inventory.publish.actions.publishSelected", { count: d.value })), j = r(() => d.value === 0 || d.value === S.value.length ? "Unpublish all" : `Unpublish selected ${d.value} location${d.value === 1 ? "" : "s"}`);
|
|
230
237
|
return (e, l) => {
|
|
231
|
-
const a = x("FmButton"),
|
|
232
|
-
return
|
|
238
|
+
const a = x("FmButton"), h = x("FmTextField"), c = x("FmCheckbox"), v = x("FmTable");
|
|
239
|
+
return B(), H("div", ae, [
|
|
233
240
|
b("div", oe, [
|
|
234
241
|
b("div", ne, J(e.title), 1),
|
|
235
242
|
b("div", se, [
|
|
236
|
-
|
|
243
|
+
y(a, {
|
|
237
244
|
label: M.value,
|
|
238
245
|
variant: "secondary",
|
|
239
246
|
onClick: l[0] || (l[0] = (o) => I()),
|
|
240
247
|
loading: t.value === "all",
|
|
241
248
|
disabled: t.value !== "all" && t.value !== void 0
|
|
242
249
|
}, null, 8, ["label", "loading", "disabled"]),
|
|
243
|
-
e.controller.unpublishAll && !e.hideUnpublish ? (
|
|
250
|
+
e.controller.unpublishAll && !e.hideUnpublish ? (B(), O(a, {
|
|
244
251
|
key: 0,
|
|
245
252
|
label: j.value,
|
|
246
253
|
variant: "tertiary",
|
|
@@ -251,34 +258,34 @@ const ae = {
|
|
|
251
258
|
])
|
|
252
259
|
]),
|
|
253
260
|
b("div", ie, [
|
|
254
|
-
|
|
255
|
-
modelValue:
|
|
256
|
-
"onUpdate:modelValue": l[2] || (l[2] = (o) =>
|
|
261
|
+
y(h, {
|
|
262
|
+
modelValue: g.value,
|
|
263
|
+
"onUpdate:modelValue": l[2] || (l[2] = (o) => g.value = o),
|
|
257
264
|
class: "w-full flex-shrink-0",
|
|
258
|
-
placeholder:
|
|
265
|
+
placeholder: V(m)("inventory.publish.search.placeholder"),
|
|
259
266
|
"prepend-icon": "search"
|
|
260
267
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
261
|
-
b("div",
|
|
262
|
-
|
|
263
|
-
modelValue:
|
|
264
|
-
"onUpdate:modelValue": l[3] || (l[3] = (o) =>
|
|
268
|
+
b("div", re, [
|
|
269
|
+
y(V(ee), {
|
|
270
|
+
modelValue: w.value,
|
|
271
|
+
"onUpdate:modelValue": l[3] || (l[3] = (o) => w.value = o),
|
|
265
272
|
attributes: D
|
|
266
273
|
}, null, 8, ["modelValue"]),
|
|
267
|
-
|
|
274
|
+
y(c, {
|
|
268
275
|
value: "select-all",
|
|
269
|
-
"model-value":
|
|
276
|
+
"model-value": F.value,
|
|
270
277
|
indeterminate: T.value,
|
|
271
|
-
"onUpdate:modelValue":
|
|
278
|
+
"onUpdate:modelValue": z,
|
|
272
279
|
label: "Select all"
|
|
273
280
|
}, null, 8, ["model-value", "indeterminate"])
|
|
274
281
|
]),
|
|
275
|
-
b("div",
|
|
276
|
-
|
|
277
|
-
"row-data":
|
|
282
|
+
b("div", ue, [
|
|
283
|
+
y(v, {
|
|
284
|
+
"row-data": u.value,
|
|
278
285
|
"column-defs": R.value,
|
|
279
286
|
"shrink-at": 9999,
|
|
280
287
|
virtual: !0,
|
|
281
|
-
"page-size":
|
|
288
|
+
"page-size": u.value.length,
|
|
282
289
|
"hide-footer": ""
|
|
283
290
|
}, null, 8, ["row-data", "column-defs", "page-size"])
|
|
284
291
|
])
|
|
@@ -288,5 +295,5 @@ const ae = {
|
|
|
288
295
|
}
|
|
289
296
|
});
|
|
290
297
|
export {
|
|
291
|
-
|
|
298
|
+
he as _
|
|
292
299
|
};
|