@feedmepos/mf-inventory-portal 1.7.9-dev.0 → 1.7.9
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-wSwzHKiz.js +311 -0
- package/dist/{ApprovalView-Bc6xo-gg.js → ApprovalView-DRT6Qd2e.js} +9 -9
- package/dist/{BindingsDialog-BbTkoM05.js → BindingsDialog-CdAUadBI.js} +2 -2
- package/dist/{BindingsPicker-CkK79U9V.js → BindingsPicker-BN_wX0N8.js} +2 -2
- package/dist/{BindingsTable-CmdCc1mG.js → BindingsTable-CK6m-C2K.js} +4 -4
- package/dist/BulkReceiveRequestView-BXs22T-g.js +2584 -0
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-YMRGpkS4.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CFX666Wz.js} +1 -1
- package/dist/{ClosingDraftView-Dec1xuFQ.js → ClosingDraftView-IffpT50J.js} +19 -19
- package/dist/{ClosingHistoryView-DuX0UpLC.js → ClosingHistoryView-DrI5Qo6C.js} +5 -5
- package/dist/{ClosingTemplateView-DBPGxWt2.js → ClosingTemplateView-DilRh_vH.js} +16 -16
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DWfblvtV.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-Dzaimy8_.js} +1 -1
- package/dist/{DefaultView-D_XfvHrs.js → DefaultView-DAud5FWQ.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-DfAAAfCJ.js → DeliveryOrderPrintPreview-V-x1xvBl.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-CdcBrUHW.js → EmailDialog.vue_vue_type_script_setup_true_lang-KUJLmR7a.js} +3432 -3437
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-lge1DZ4v.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BStqqCMn.js} +6 -6
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DjYAwlg9.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BnHM1BX1.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-vwp2n9KL.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BPyrxPpe.js} +2 -2
- package/dist/{FmMultiselectDialog-BTVaIESZ.js → FmMultiselectDialog-BniqAG4j.js} +1 -1
- package/dist/{FmMultiselectDialog-C-kDJtv_.js → FmMultiselectDialog-C2PspPWe.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Mo-hF_cA.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Bf3SW_Cs.js} +6 -6
- package/dist/{ImportView-CRAFZVSk.js → ImportView-DWRmu0QT.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CuEDzJ0s.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DY0kkryN.js} +1 -1
- package/dist/{IngredientGroupView-OeeBfJau.js → IngredientGroupView-C6VVdwdq.js} +5 -5
- package/dist/{IngredientsView-BHX3xUDm.js → IngredientsView-DuEBYiLy.js} +16 -16
- package/dist/{IntegrationExplorerView-BwxSGD2N.js → IntegrationExplorerView-DJh7dTAl.js} +4 -4
- package/dist/{IntegrationView-CevJNVqG.js → IntegrationView-DsH2Hs1K.js} +925 -912
- package/dist/{InventoryBindingForm-wE--IP2D.js → InventoryBindingForm-BACENuFH.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-O5IbSGWu.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BlxNT4bV.js} +5 -5
- package/dist/{InventoryBindingSummary-BQ-U7tHs.js → InventoryBindingSummary-BncS50eD.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-jnXbX2lS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-LzXw3Flm.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BNMCbrIo.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Dra4APix.js} +1 -1
- package/dist/{ProductionView-CvU9N_mb.js → ProductionView-CJ6Oi2ae.js} +7 -7
- package/dist/{PublishView-BNnxGtEQ.js → PublishView-30yz5vFX.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-Bq9kMWdx.js → PurchaseOrderPrintPreview-CclxLcCT.js} +2 -2
- package/dist/{ReceiveRequestView-zUSU0Uvq.js → ReceiveRequestView-DIQeDhuy.js} +14 -14
- package/dist/{RecipeView-DkXOK1Iy.js → RecipeView-D8DyqwP-.js} +90 -90
- package/dist/{SettingsView-CPgsU8Kr.js → SettingsView-Bfp1K782.js} +4 -4
- package/dist/{StockView-D-TJzHhP.js → StockView-BNqzu1Rt.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B6ez4H3Z.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DFI2fuD0.js} +1 -1
- package/dist/{SupplierView-D-rODe-B.js → SupplierView-Bnw_eUE1.js} +12 -12
- package/dist/{SurchargeView-C88KTCML.js → SurchargeView-B0VoAU4k.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CFIK8eEl.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Cymvi3zl.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BNjjTYtk.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DBQx6RAo.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-E0FeDPFB.js → TransferDetails.vue_vue_type_script_setup_true_lang-BMpUm52g.js} +20 -20
- package/dist/{TransferTemplateView-f9A4-wEL.js → TransferTemplateView-BjfxrwzR.js} +20 -20
- package/dist/{UnitCostHistoryView-D26St5yl.js → UnitCostHistoryView-C3ffDyKS.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-D2z5vabu.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-VG2ecWER.js} +4 -4
- package/dist/{UnitView-algS_4rD.js → UnitView-BaR_a9Kw.js} +8 -8
- package/dist/{WarehouseView-BRM-euG4.js → WarehouseView-RQjCcteZ.js} +5 -5
- package/dist/{WastageTemplateView-BWPYvTMC.js → WastageTemplateView-D4z8zpwb.js} +14 -14
- package/dist/api/codemax.d.ts +5 -1
- package/dist/api/purchase-order.d.ts +0 -2
- package/dist/{app-BI1fLJ8H.js → app-CyTU8N3H.js} +18885 -19653
- package/dist/app.d.ts +9 -878
- package/dist/app.js +1 -1
- package/dist/{closing-template-DRQ-A04S.js → closing-template-B2tB7sQC.js} +1 -1
- package/dist/{date2-paxg81i_.js → date2-DQH6DhKn.js} +5 -5
- package/dist/{dayjs.min-CqWwbKI1.js → dayjs.min-BOciSc8b.js} +1 -1
- package/dist/{decimal-tY0JrFld.js → decimal-yQvd_IOl.js} +2 -2
- package/dist/{defineDeepModel-CaP78Goh.js → defineDeepModel-DXNMJH2I.js} +1 -1
- package/dist/{duplicate-template-pTXXQ0VS.js → duplicate-template-DO7WYSTm.js} +1 -1
- package/dist/{feature-B2r32qOO.js → feature-v0qFoj-w.js} +2 -2
- package/dist/{format-time-from-id-DXMYus4N.js → format-time-from-id-BuBtGQBF.js} +1 -1
- package/dist/{format-unit-display-5hlsZBY2.js → format-unit-display-sljdJGi2.js} +27 -27
- package/dist/{import-export.helper-BiC2Ghbl.js → import-export.helper-B72QRGIw.js} +6 -6
- package/dist/{index-KP2-U9x_.js → index-BCGkKprE.js} +33 -27
- package/dist/{index-B7eouqPa.js → index-CU4Kuswf.js} +1 -1
- package/dist/{index-rqdAWR69.js → index-TQcHaMrv.js} +1 -1
- package/dist/{inventory-core-dart.default-ClRRaGtG.js → inventory-core-dart.default-BgoK1eTS.js} +1 -1
- package/dist/{lz-string-CAl-OrXa.js → lz-string-BjdS2wyT.js} +1 -1
- package/dist/{netsuite-cH4OybGV.js → netsuite-z7vVdCsZ.js} +2 -2
- package/dist/{number-BzmDQm_s.js → number-CPj4E2k6.js} +3 -3
- package/dist/{predefined-templates-Baz8GEGx.js → predefined-templates-Bhig3JBF.js} +1 -1
- package/dist/{purchase-order-template-0So3c2iS.js → purchase-order-template-CNDfnM86.js} +1 -1
- package/dist/{recalculationUtils-DJlz5mJL.js → recalculationUtils-CQNmwxc2.js} +1 -1
- package/dist/{rules-BKdtla9-.js → rules-9N5HIcET.js} +2 -2
- package/dist/{stock-HCSCwSH0.js → stock-B7QJYZif.js} +3 -3
- package/dist/{stock-D8M5e53w.js → stock-uZA1to9T.js} +1 -1
- package/dist/stores/bulk-job.d.ts +0 -13
- package/dist/style.css +1 -1
- package/dist/{supplier-1mbcQSiQ.js → supplier-B8DQBfvr.js} +2 -2
- package/dist/{surcharge-DuxYBaWV.js → surcharge-DHf5QM_k.js} +8 -8
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-Dkbgtow8.js → uom-rules-IHu3f_dQ.js} +1 -1
- package/dist/{use-ingredient-select-dialog-BXvBvELI.js → use-ingredient-select-dialog-Cd3IeQRi.js} +2 -2
- package/dist/{use-inventory-binding-dialog-2lrzHWdQ.js → use-inventory-binding-dialog-BG0l9YPD.js} +2 -2
- package/dist/{use-template-enabled-locations-CrDuAaCj.js → use-template-enabled-locations-b39RUsFB.js} +2 -2
- package/dist/{use-transfer-locations-C4oTuW_f.js → use-transfer-locations-BPzNKZEi.js} +2 -2
- package/dist/{useHrmPermission-CxeYlUgA.js → useHrmPermission-BpoNpgJ-.js} +1 -1
- package/dist/{useNavigationMenu-BWgwgA4U.js → useNavigationMenu-CaG9YOud.js} +2 -2
- package/dist/{useSseClient-DPA1zg96.js → useSseClient-B2KhM-LZ.js} +1 -1
- package/dist/views/receive-request/components/email-dialog/EmailDialogProps.d.ts +9 -23
- package/dist/{vue-i18n-BSfpVmaF.js → vue-i18n-DgJpgCMa.js} +178 -178
- package/dist/{xlsx.util-DSA9o0Zu.js → xlsx.util-Bkd2A_If.js} +2 -2
- package/package.json +2 -2
- package/dist/App-DvBMEcuJ.js +0 -1155
- package/dist/BulkReceiveRequestView-BOt07CYr.js +0 -2646
- package/dist/api/changelog.d.ts +0 -64
- package/dist/views/changelog/components/ChangelogDialog.vue.d.ts +0 -19
- package/dist/views/changelog/components/ChangelogFloatingButton.vue.d.ts +0 -2
- package/dist/views/changelog/components/ChangelogPanel.vue.d.ts +0 -18
- package/dist/views/changelog/composables/change-path.d.ts +0 -10
- package/dist/views/changelog/composables/commit-message.d.ts +0 -9
- package/dist/views/changelog/composables/commit-message.spec.d.ts +0 -1
- package/dist/views/changelog/composables/json-line-diff.d.ts +0 -10
- package/dist/views/changelog/composables/json-line-diff.spec.d.ts +0 -1
- package/dist/views/changelog/composables/use-changelog.d.ts +0 -36
- package/dist/views/receive-request/components/email-dialog/EmailDialog.spec.d.ts +0 -1
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { ref as k, onUnmounted as H, computed as y, defineComponent as P, watch as N, onMounted as $, resolveComponent as w, createElementBlock as g, openBlock as m, createBlock as L, createCommentVNode as U, unref as x, createVNode as _, createElementVNode as o, toDisplayString as b, withCtx as R, withDirectives as O, vModelText as j, Fragment as q, renderList as z, createTextVNode as B } from "vue";
|
|
2
|
+
import { _ as K } from "./empty-placeholder-B0QU467o.js";
|
|
3
|
+
import { u as Q, a as J, R as S, b as W } from "./app-CyTU8N3H.js";
|
|
4
|
+
import { useCoreStore as C, useI18n as X } from "@feedmepos/mf-common";
|
|
5
|
+
import { useRouter as T, useRoute as Y } from "vue-router";
|
|
6
|
+
import { u as Z, a as ee, I as te } from "./feature-v0qFoj-w.js";
|
|
7
|
+
import { u as oe } from "./netsuite-z7vVdCsZ.js";
|
|
8
|
+
import { u as D } from "./useNavigationMenu-CaG9YOud.js";
|
|
9
|
+
import { u as ne } from "./useTabStorage-BkIVScW_.js";
|
|
10
|
+
import { F as se } from "./FmAdminBadge-DlplQOHb.js";
|
|
11
|
+
import { u as re } from "./googlemap-D9vA7GsS.js";
|
|
12
|
+
function ae() {
|
|
13
|
+
return {
|
|
14
|
+
loadingHookInstalled: !1,
|
|
15
|
+
isLoading: !1
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
const F = k(ae());
|
|
19
|
+
function le() {
|
|
20
|
+
const p = T();
|
|
21
|
+
if (!F.value.loadingHookInstalled) {
|
|
22
|
+
F.value.loadingHookInstalled = !0;
|
|
23
|
+
const t = p.beforeEach(() => {
|
|
24
|
+
F.value.isLoading = !0;
|
|
25
|
+
}), c = p.afterEach(() => {
|
|
26
|
+
F.value.isLoading = !1;
|
|
27
|
+
});
|
|
28
|
+
H(() => {
|
|
29
|
+
F.value.loadingHookInstalled = !1, t(), c();
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
get isLoading() {
|
|
34
|
+
return F.value.isLoading;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function ie() {
|
|
39
|
+
const { firstAccessibleRouteName: p } = D();
|
|
40
|
+
return { hasAnyAccessibleInventoryRoute: y(() => p.value !== null) };
|
|
41
|
+
}
|
|
42
|
+
const ue = {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: "flex flex-col items-center w-full h-full gap-24"
|
|
45
|
+
}, ce = {
|
|
46
|
+
key: 1,
|
|
47
|
+
class: "flex flex-col pt-[200px] gap-32 items-center"
|
|
48
|
+
}, de = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[600px]" }, me = { class: "fm-typo-en-title-lg-600" }, pe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, fe = {
|
|
49
|
+
key: 2,
|
|
50
|
+
class: "flex flex-col pt-[200px] gap-32 items-center"
|
|
51
|
+
}, ve = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, ge = { class: "fm-typo-en-title-lg-600" }, _e = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ye = { class: "flex gap-16" }, xe = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, be = { href: "https://feedme.ai/form" }, he = /* @__PURE__ */ P({
|
|
52
|
+
__name: "InventoryView",
|
|
53
|
+
setup(p) {
|
|
54
|
+
const t = Q(), c = J(), i = oe(), r = C(), d = T(), a = le(), e = Z(), { t: l } = X(), { hasAnyAccessibleInventoryRoute: f } = ie();
|
|
55
|
+
N(
|
|
56
|
+
[() => r.sessionUser.value, () => r.currentBusiness.value],
|
|
57
|
+
([v, u]) => {
|
|
58
|
+
n(v, u);
|
|
59
|
+
}
|
|
60
|
+
), $(async () => {
|
|
61
|
+
await e.init(), await r.readBusinesses();
|
|
62
|
+
const v = r.sessionUser.value, u = r.currentBusiness.value;
|
|
63
|
+
n(v, u);
|
|
64
|
+
});
|
|
65
|
+
function n(v, u) {
|
|
66
|
+
!v || !u || s();
|
|
67
|
+
}
|
|
68
|
+
async function s() {
|
|
69
|
+
return await t.init(), await i.readSetting().catch((v) => {
|
|
70
|
+
console.error("[all] error on reading netsuite store", v);
|
|
71
|
+
}), await c.init();
|
|
72
|
+
}
|
|
73
|
+
const A = y(() => d.currentRoute.value.name === S.TRANSFER_TEMPLATE ? e.enablePoTemplate : d.currentRoute.value.name === S.INGREDIENT_GROUP ? e.enableIngredientGroup : !0), E = y(
|
|
74
|
+
() => d.currentRoute.value.matched.some((v) => {
|
|
75
|
+
var I;
|
|
76
|
+
const u = v.meta, h = u == null ? void 0 : u.validationManifest;
|
|
77
|
+
return (((I = h == null ? void 0 : h.requiredCaslPermissions) == null ? void 0 : I.length) ?? 0) > 0;
|
|
78
|
+
})
|
|
79
|
+
), G = y(() => {
|
|
80
|
+
if (!r.sessionUser.value) return !1;
|
|
81
|
+
if (t._locations !== null && t.locations.length === 0) return !0;
|
|
82
|
+
if (!e.isLoaded) return !1;
|
|
83
|
+
const h = d.currentRoute.value.name === S.LOADING;
|
|
84
|
+
return !f.value && (h || E.value);
|
|
85
|
+
});
|
|
86
|
+
return (v, u) => {
|
|
87
|
+
const h = w("FmSpacer"), I = w("FmCircularProgress"), V = w("FmButton"), M = w("RouterView");
|
|
88
|
+
return m(), g("div", null, [
|
|
89
|
+
x(a).isLoading ? (m(), g("div", ue, [
|
|
90
|
+
_(h),
|
|
91
|
+
o("div", null, [
|
|
92
|
+
_(I, { size: "xl" })
|
|
93
|
+
]),
|
|
94
|
+
u[0] || (u[0] = o("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
95
|
+
_(h)
|
|
96
|
+
])) : G.value ? (m(), g("div", ce, [
|
|
97
|
+
u[1] || (u[1] = o("img", {
|
|
98
|
+
src: K,
|
|
99
|
+
alt: "No permission",
|
|
100
|
+
class: "w-[200px] h-[200px]"
|
|
101
|
+
}, null, -1)),
|
|
102
|
+
o("div", de, [
|
|
103
|
+
o("div", me, b(x(l)("inventory.common.noPermission.title")), 1),
|
|
104
|
+
o("div", pe, b(x(l)("inventory.common.noPermission.description")), 1)
|
|
105
|
+
])
|
|
106
|
+
])) : A.value ? x(r).sessionUser.value ? (m(), L(M, { key: 3 })) : U("", !0) : (m(), g("div", fe, [
|
|
107
|
+
o("div", ve, [
|
|
108
|
+
o("div", ge, b(x(l)("inventory.common.proPlan.title")), 1),
|
|
109
|
+
o("div", _e, b(x(l)("inventory.common.proPlan.subtitle")), 1)
|
|
110
|
+
]),
|
|
111
|
+
o("div", ye, [
|
|
112
|
+
o("a", xe, [
|
|
113
|
+
_(V, {
|
|
114
|
+
label: x(l)("inventory.common.proPlan.comparePlans"),
|
|
115
|
+
variant: "secondary"
|
|
116
|
+
}, null, 8, ["label"])
|
|
117
|
+
]),
|
|
118
|
+
o("a", be, [
|
|
119
|
+
_(V, {
|
|
120
|
+
label: x(l)("inventory.common.proPlan.callUs"),
|
|
121
|
+
"prepend-icon": "call"
|
|
122
|
+
}, null, 8, ["label"])
|
|
123
|
+
])
|
|
124
|
+
])
|
|
125
|
+
]))
|
|
126
|
+
]);
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
}), we = { class: "flex items-center gap-2" }, Se = { class: "text-xs text-gray-400 font-normal" }, Fe = { class: "flex flex-col gap-3" }, Re = { class: "max-h-[480px] flex flex-col gap-1" }, Ie = { class: "font-mono text-xs text-gray-700 break-all min-w-0" }, ke = {
|
|
130
|
+
key: 0,
|
|
131
|
+
class: "inline-flex items-center gap-1 text-xs font-medium text-green-700 bg-green-50 px-2 py-0.5 rounded-full"
|
|
132
|
+
}, Ne = {
|
|
133
|
+
key: 1,
|
|
134
|
+
class: "inline-flex items-center gap-1 text-xs font-medium text-red-700 bg-red-50 px-2 py-0.5 rounded-full"
|
|
135
|
+
}, Pe = {
|
|
136
|
+
key: 2,
|
|
137
|
+
class: "inline-flex items-center gap-1 text-xs font-medium text-gray-500 bg-gray-100 px-2 py-0.5 rounded-full"
|
|
138
|
+
}, Ae = {
|
|
139
|
+
key: 0,
|
|
140
|
+
class: "text-center text-sm text-gray-400 py-4"
|
|
141
|
+
}, Ee = /* @__PURE__ */ P({
|
|
142
|
+
__name: "FmFeatureFlagDialog",
|
|
143
|
+
setup(p) {
|
|
144
|
+
const t = k(!1), c = k(""), i = y(() => {
|
|
145
|
+
const { getFlagValue: a } = ee();
|
|
146
|
+
return Object.values(te).map((e) => {
|
|
147
|
+
const l = a(e, (f) => f === "true");
|
|
148
|
+
return {
|
|
149
|
+
name: e,
|
|
150
|
+
enabled: l
|
|
151
|
+
};
|
|
152
|
+
});
|
|
153
|
+
}), r = y(() => {
|
|
154
|
+
const a = c.value.toLowerCase();
|
|
155
|
+
return a ? i.value.filter((e) => e.name.toLowerCase().includes(a)) : i.value;
|
|
156
|
+
}), d = y(() => {
|
|
157
|
+
const a = i.value.filter((f) => f.enabled === !0).length, e = i.value.filter((f) => f.enabled === !1).length, l = i.value.filter((f) => f.enabled === null).length;
|
|
158
|
+
return { enabled: a, disabled: e, unknown: l, total: i.value.length };
|
|
159
|
+
});
|
|
160
|
+
return (a, e) => {
|
|
161
|
+
const l = w("FmButton"), f = w("FmSpacer"), n = w("FmDialog");
|
|
162
|
+
return m(), L(n, {
|
|
163
|
+
modelValue: t.value,
|
|
164
|
+
"onUpdate:modelValue": e[2] || (e[2] = (s) => t.value = s),
|
|
165
|
+
overlay: !0
|
|
166
|
+
}, {
|
|
167
|
+
"dialog-button": R(() => [
|
|
168
|
+
_(se, null, {
|
|
169
|
+
default: R(() => [
|
|
170
|
+
_(l, {
|
|
171
|
+
variant: "secondary",
|
|
172
|
+
label: "Feature flags"
|
|
173
|
+
})
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
})
|
|
177
|
+
]),
|
|
178
|
+
"dialog-header": R(() => [
|
|
179
|
+
o("div", we, [
|
|
180
|
+
e[3] || (e[3] = o("span", null, "Feature Flags", -1)),
|
|
181
|
+
o("span", Se, b(d.value.enabled) + " enabled · " + b(d.value.disabled) + " disabled · " + b(d.value.unknown) + " unknown ", 1)
|
|
182
|
+
])
|
|
183
|
+
]),
|
|
184
|
+
"dialog-footer": R(() => [
|
|
185
|
+
_(f, { class: "sm:hidden xs:hidden" }),
|
|
186
|
+
_(l, {
|
|
187
|
+
class: "sm:w-full xs:w-full",
|
|
188
|
+
label: "Close",
|
|
189
|
+
size: "md",
|
|
190
|
+
variant: "primary",
|
|
191
|
+
onClick: e[1] || (e[1] = (s) => t.value = !1)
|
|
192
|
+
})
|
|
193
|
+
]),
|
|
194
|
+
default: R(() => [
|
|
195
|
+
o("div", Fe, [
|
|
196
|
+
O(o("input", {
|
|
197
|
+
"onUpdate:modelValue": e[0] || (e[0] = (s) => c.value = s),
|
|
198
|
+
type: "text",
|
|
199
|
+
placeholder: "Search flags...",
|
|
200
|
+
class: "w-full px-3 py-2 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-blue-500"
|
|
201
|
+
}, null, 512), [
|
|
202
|
+
[j, c.value]
|
|
203
|
+
]),
|
|
204
|
+
o("div", Re, [
|
|
205
|
+
(m(!0), g(q, null, z(r.value, (s) => (m(), g("div", {
|
|
206
|
+
key: s.name,
|
|
207
|
+
class: "flex items-start justify-between gap-2 px-3 py-2 rounded-md hover:bg-gray-50 text-sm"
|
|
208
|
+
}, [
|
|
209
|
+
o("span", Ie, b(s.name), 1),
|
|
210
|
+
s.enabled === !0 ? (m(), g("span", ke, e[4] || (e[4] = [
|
|
211
|
+
o("span", { class: "w-1.5 h-1.5 rounded-full bg-green-500" }, null, -1),
|
|
212
|
+
B(" Enabled ")
|
|
213
|
+
]))) : s.enabled === !1 ? (m(), g("span", Ne, e[5] || (e[5] = [
|
|
214
|
+
o("span", { class: "w-1.5 h-1.5 rounded-full bg-red-500" }, null, -1),
|
|
215
|
+
B(" Disabled ")
|
|
216
|
+
]))) : (m(), g("span", Pe, e[6] || (e[6] = [
|
|
217
|
+
o("span", { class: "w-1.5 h-1.5 rounded-full bg-gray-400" }, null, -1),
|
|
218
|
+
B(" Unknown ")
|
|
219
|
+
])))
|
|
220
|
+
]))), 128)),
|
|
221
|
+
r.value.length === 0 ? (m(), g("div", Ae, ' No flags matching "' + b(c.value) + '" ', 1)) : U("", !0)
|
|
222
|
+
])
|
|
223
|
+
])
|
|
224
|
+
]),
|
|
225
|
+
_: 1
|
|
226
|
+
}, 8, ["modelValue"]);
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
}), Be = { class: "h-full flex flex-col overflow-auto py-16 gap-2" }, Le = /* @__PURE__ */ P({
|
|
230
|
+
__name: "NavigationTab",
|
|
231
|
+
setup(p) {
|
|
232
|
+
const t = Y(), c = T(), i = C(), r = ne(), { menuItems: d } = D();
|
|
233
|
+
N([() => i.currentBusiness.value, () => t.name], ([n, s]) => {
|
|
234
|
+
(n == null ? void 0 : n.menuVersion) === "v3" && (s === S.INGREDIENTS || s === S.RECIPE || s === S.UNIT) && c.push({ name: S.STOCK });
|
|
235
|
+
});
|
|
236
|
+
const a = y({
|
|
237
|
+
get() {
|
|
238
|
+
if (t.name)
|
|
239
|
+
return String(t.name);
|
|
240
|
+
},
|
|
241
|
+
set(n) {
|
|
242
|
+
n && c.push({ name: n });
|
|
243
|
+
}
|
|
244
|
+
}), e = y(
|
|
245
|
+
() => {
|
|
246
|
+
var n;
|
|
247
|
+
return `NavigationTab.${(n = i.currentBusiness.value) == null ? void 0 : n._id}`;
|
|
248
|
+
}
|
|
249
|
+
), l = k(!1), f = y({
|
|
250
|
+
get() {
|
|
251
|
+
return l.value;
|
|
252
|
+
},
|
|
253
|
+
set(n) {
|
|
254
|
+
l.value = n, n || r.setItem(e.value, "true");
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
return N([() => e.value], () => {
|
|
258
|
+
l.value = !1, setTimeout(() => {
|
|
259
|
+
f.value = !r.getItem(e.value);
|
|
260
|
+
}, 2e3);
|
|
261
|
+
}), (n, s) => {
|
|
262
|
+
const A = w("FmCollapsibleTabs");
|
|
263
|
+
return m(), g("div", Be, [
|
|
264
|
+
_(Ee),
|
|
265
|
+
_(A, {
|
|
266
|
+
modelValue: a.value,
|
|
267
|
+
"onUpdate:modelValue": s[0] || (s[0] = (E) => a.value = E),
|
|
268
|
+
items: x(d)
|
|
269
|
+
}, null, 8, ["modelValue", "items"])
|
|
270
|
+
]);
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
275
|
+
let p, t;
|
|
276
|
+
return { promise: new Promise((i, r) => {
|
|
277
|
+
p = i, t = r;
|
|
278
|
+
}), resolve: p, reject: t };
|
|
279
|
+
});
|
|
280
|
+
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(p) {
|
|
281
|
+
return await new Promise((t) => setTimeout(t, p)), Promise.resolve(this);
|
|
282
|
+
});
|
|
283
|
+
const qe = /* @__PURE__ */ P({
|
|
284
|
+
__name: "App",
|
|
285
|
+
setup(p) {
|
|
286
|
+
const t = C(), c = re(), i = W();
|
|
287
|
+
$(() => {
|
|
288
|
+
if (window.location.href.includes("print-preview")) {
|
|
289
|
+
t.setEmbedded(!0), document.body.classList.add("print-mode");
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
t.registerSidebarComponent(Le), c.initGoogleMap(i.appApi.googleMap).catch(() => {
|
|
293
|
+
console.error("Google map cannot be loaded");
|
|
294
|
+
});
|
|
295
|
+
}), N([() => t.currentCountry.value], () => {
|
|
296
|
+
r();
|
|
297
|
+
});
|
|
298
|
+
async function r() {
|
|
299
|
+
var d;
|
|
300
|
+
try {
|
|
301
|
+
await t.readBusinesses(), t.currentBusiness.value = (d = t.businesses.value) == null ? void 0 : d.find((a) => a);
|
|
302
|
+
} catch (a) {
|
|
303
|
+
console.error("error when trying to reset businesses:", a);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
return (d, a) => (m(), L(he));
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
export {
|
|
310
|
+
qe as default
|
|
311
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineComponent as ce, ref as y, watch as de, computed as c, resolveComponent as fe, createBlock as Z, openBlock as x, unref as a, withCtx as T, createElementVNode as p, normalizeClass as ve, createVNode as u, normalizeStyle as he, createElementBlock as _e, createCommentVNode as De, toDisplayString as ge, Teleport as ye, mergeProps as be, isRef as Re } from "vue";
|
|
2
|
-
import { u as Oe, D as b } from "./app-
|
|
3
|
-
import { a as Se } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { u as Pe, P as w, a as xe, _ as Te } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import {
|
|
2
|
+
import { u as Oe, D as b } from "./app-CyTU8N3H.js";
|
|
3
|
+
import { a as Se } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BStqqCMn.js";
|
|
4
|
+
import { u as Pe, P as w, a as xe, _ as Te } from "./TransferDetails.vue_vue_type_script_setup_true_lang-BMpUm52g.js";
|
|
5
|
+
import { b as I } from "./date2-DQH6DhKn.js";
|
|
6
6
|
import { u as we, _ as ke } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js";
|
|
7
7
|
import { _ as qe, F as R } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
|
|
8
8
|
import { useBreakpoints as Ce } from "@feedmepos/ui-library";
|
|
9
|
-
import { _ as Ne } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as Ne } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BPyrxPpe.js";
|
|
10
10
|
import { useI18n as Ve } from "@feedmepos/mf-common";
|
|
11
11
|
import { P as Ae, J as Me } from "./app-C39bYJmq.js";
|
|
12
|
-
import { u as Fe } from "./netsuite-
|
|
13
|
-
import { f as Le } from "./predefined-templates-
|
|
14
|
-
import "./inventory-core-dart.default-
|
|
15
|
-
import { _ as $e } from "./CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { u as Fe } from "./netsuite-z7vVdCsZ.js";
|
|
13
|
+
import { f as Le } from "./predefined-templates-Bhig3JBF.js";
|
|
14
|
+
import "./inventory-core-dart.default-BgoK1eTS.js";
|
|
15
|
+
import { _ as $e } from "./CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-Dzaimy8_.js";
|
|
16
16
|
const ze = { class: "flex flex-col py-8" }, Ee = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ue = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, He = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, createElementBlock as c, openBlock as i, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
|
|
2
|
-
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { a as L, a8 as S } from "./app-
|
|
2
|
+
import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BlxNT4bV.js";
|
|
3
|
+
import { a as L, a8 as S } from "./app-CyTU8N3H.js";
|
|
4
4
|
const U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, createElementBlock as p, openBlock as f, createVNode as u, createElementVNode as k } from "vue";
|
|
2
|
-
import { a as M } from "./FmMultiselectDialog-
|
|
3
|
-
import { a as x, a8 as z } from "./app-
|
|
2
|
+
import { a as M } from "./FmMultiselectDialog-C2PspPWe.js";
|
|
3
|
+
import { a as x, a8 as z } from "./app-CyTU8N3H.js";
|
|
4
4
|
const F = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex flex-col gap-16"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as x, ref as r, provide as C, computed as g, resolveComponent as h, createElementBlock as u, openBlock as l, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
|
|
2
|
-
import { F as b, a as P, a8 as R } from "./app-
|
|
3
|
-
import "./dayjs.min-
|
|
2
|
+
import { F as b, a as P, a8 as R } from "./app-CyTU8N3H.js";
|
|
3
|
+
import "./dayjs.min-BOciSc8b.js";
|
|
4
4
|
import "@feedmepos/ui-library";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import "@feedmepos/mf-common";
|
|
7
7
|
import "./app-C39bYJmq.js";
|
|
8
|
-
import "./netsuite-
|
|
9
|
-
import "./inventory-core-dart.default-
|
|
8
|
+
import "./netsuite-z7vVdCsZ.js";
|
|
9
|
+
import "./inventory-core-dart.default-BgoK1eTS.js";
|
|
10
10
|
const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
|
|
11
11
|
__name: "binding-ui",
|
|
12
12
|
props: {
|