@feedmepos/mf-inventory-portal 1.2.51-dev.1 → 1.2.51
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-bY_YcLwH.js → App-BJ_vKOR1.js} +70 -75
- package/dist/{ApprovalView-vzIiBqt2.js → ApprovalView-B_prTTtl.js} +34 -34
- package/dist/{BindingsDialog-DCh2ORem.js → BindingsDialog-BPuKgJIk.js} +2 -2
- package/dist/{BindingsPicker-DcNG03p-.js → BindingsPicker-Dv_cmEil.js} +2 -2
- package/dist/{BindingsTable-B_Yaq-z3.js → BindingsTable-BNSfYRfq.js} +4 -4
- package/dist/{ClosingDraftView-C0T8cWEB.js → ClosingDraftView-C78tcaJ3.js} +399 -413
- package/dist/{ClosingHistoryView-DkKAjh7T.js → ClosingHistoryView-DY8liEk3.js} +27 -27
- package/dist/{ClosingTemplateView-DpH1EyW5.js → ClosingTemplateView-pJXEcrjO.js} +17 -18
- package/dist/{DeliveryOrderPrintPreview-B2ecLaLu.js → DeliveryOrderPrintPreview-Bu_l-kxu.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dgibb-Fh.js +231 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHe5G3kX.js} +12 -12
- package/dist/{FmMultiselectDialog-DGUwruxs.js → FmMultiselectDialog-C3iCMK5I.js} +1 -1
- package/dist/FmMultiselectDialog-CDONDKxE.js +598 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CRTG3VFo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CefvebOx.js} +3 -3
- package/dist/{ImportView-Bk4Z7nGh.js → ImportView-JrenRgiI.js} +7 -7
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BEJ19Uej.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CSdxodp6.js} +1 -1
- package/dist/{IngredientGroupView-8GHMMOux.js → IngredientGroupView-aDFq_ZDh.js} +107 -108
- package/dist/{IngredientsView-DbmODx-v.js → IngredientsView-DSh3UqDg.js} +125 -126
- package/dist/{IntegrationView-DC0O_Lk4.js → IntegrationView-KhZ78uxM.js} +80 -80
- package/dist/{InventoryBindingForm-ln0q25n_.js → InventoryBindingForm-DZu0CZYh.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFgk9rSe.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-YuCn0irA.js} +21 -21
- package/dist/{InventoryBindingSummary-BlNXhS4v.js → InventoryBindingSummary-DZxLhZ_-.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BY_mXqPr.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DAwpZY3n.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BhNjwE3X.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CPDxwz-V.js} +2 -2
- package/dist/{PublishView-5GkTzxbi.js → PublishView-CLnQ7NBN.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-Dj5lJ5Ou.js → PurchaseOrderPrintPreview-DiBztBma.js} +1 -1
- package/dist/ReceiveRequestView-_TOSnDGJ.js +2913 -0
- package/dist/{RecipeView-OLPRwnVx.js → RecipeView-BPIMvoTw.js} +82 -83
- package/dist/{StockView-TcA5zJqr.js → StockView-CI8MUJay.js} +112 -113
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DZ6TDkKR.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DEBHEMkh.js} +1 -1
- package/dist/{SupplierView-77qI9YCg.js → SupplierView-COihDMNY.js} +27 -28
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-_8YeihNH.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-D-c0Ayis.js} +2 -2
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +162 -0
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-ByPIjcED.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D8vbPlie.js} +13 -13
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-7BoFD5wV.js → TransferDetails.vue_vue_type_script_setup_true_lang-BVuuw11z.js} +659 -658
- package/dist/{TransferTemplateView-CI0U36Tr.js → TransferTemplateView-B2NNfrEq.js} +81 -82
- package/dist/{UnitView-fNFFUNlb.js → UnitView-ZsbM07hw.js} +19 -20
- package/dist/{WarehouseView-BAXgnZnO.js → WarehouseView-Cd5RFu5v.js} +20 -21
- package/dist/{WastageTemplateView-C5qCXWqZ.js → WastageTemplateView-DpikyyZW.js} +164 -165
- package/dist/api/netsuite.d.ts +0 -8
- package/dist/{app-CddcvygU.js → app-CySQTQxj.js} +4410 -4513
- package/dist/app-uBuHtW8m.js +8127 -0
- package/dist/app.d.ts +0 -52
- package/dist/app.js +1 -1
- package/dist/{closing-template-DxdLqlb1.js → closing-template-DXGjC5AG.js} +1 -1
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +0 -8
- package/dist/components/FmMultiselectDialogProps.d.ts +0 -5
- package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +2 -0
- package/dist/{date2-CVZy20Q_.js → date2-BWoUn1K_.js} +1 -1
- package/dist/{dayjs.min-NrRtjg32.js → dayjs.min-cMW8olEu.js} +26 -26
- package/dist/{decimal-Du3Grkk9.js → decimal-8BRzZQU6.js} +2 -2
- package/dist/{defineDeepModel-DgRoiQBp.js → defineDeepModel-AsUZ-DyW.js} +1 -1
- package/dist/{duplicate-template-DvnZ4BW6.js → duplicate-template-CyHfZR3S.js} +1 -1
- package/dist/{feature-CTA18HlL.js → feature-Dm0FnWf9.js} +6178 -8906
- package/dist/{format-time-from-id-6kt1RMWs.js → format-time-from-id-C9lmv5BP.js} +1 -1
- package/dist/{format-unit-display-mVJ-nuJe.js → format-unit-display-BV8pJisO.js} +11 -11
- package/dist/{import-export.helper-DWwlJy7N.js → import-export.helper-Djxw_H5S.js} +5 -5
- package/dist/{index-By-jyWOP.js → index-8hCa5_Gb.js} +1 -1
- package/dist/{index-BfcdagSF.js → index-D6u3kywf.js} +1 -1
- package/dist/{index-BEcj1jGd.js → index-DidYtgNc.js} +3 -3
- package/dist/{lodash-D0COOw3m.js → lodash-CW_Ea6mA.js} +1 -1
- package/dist/netsuite-BEto-z0v.js +5131 -0
- package/dist/{purchase-order-template-CJCmABzP.js → purchase-order-template-BTzjcgrO.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/{rules-hQBVd1Mn.js → rules-DkVWS5mF.js} +9 -9
- package/dist/{stock-4xGaezEy.js → stock-CHw8pI8V.js} +3 -3
- package/dist/{stock-B6QW-S14.js → stock-D8hLHgeN.js} +1 -1
- package/dist/stores/feature.d.ts +2 -4
- package/dist/stores/integration/netsuite.d.ts +0 -5
- package/dist/style.css +1 -1
- package/dist/{supplier-C-dmFnqw.js → supplier-Dv83IfQr.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-DgYSZDN8.js → use-ingredient-select-dialog-CJjd4g-6.js} +2 -2
- package/dist/{use-inventory-binding-dialog-CnYcA_Fo.js → use-inventory-binding-dialog-D4g79p5S.js} +2 -2
- package/dist/{use-template-enabled-locations-2-B_aZrMUU.js → use-template-enabled-locations-2-Cg2iqQdq.js} +2 -2
- package/dist/views/ingredients/helper/calculate-default-cost.d.ts +9 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +22 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +0 -714
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -8
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/{vue-i18n-BCEDBY4T.js → vue-i18n-kUcLfpvT.js} +563 -563
- package/dist/{xlsx-CJsXiiEq.js → xlsx-BjeMbhDF.js} +398 -398
- package/dist/{xlsx.util-CSudzOii.js → xlsx.util-9eMlJfd9.js} +1 -1
- package/package.json +5 -5
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CI4z5XYQ.js +0 -188
- package/dist/FmMultiselectDialog-BviFuAM5.js +0 -618
- package/dist/ReceiveRequestView-BAYczSpW.js +0 -2913
- package/dist/SurchargeView-CxW2ZZ8a.js +0 -460
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js +0 -84
- package/dist/api/surcharge.d.ts +0 -31
- package/dist/app-DiX-EfV6.js +0 -8167
- package/dist/component-DpCUABT3.js +0 -82
- package/dist/netsuite-3LgQ5ztL.js +0 -5402
- package/dist/stores/surcharge.d.ts +0 -18
- package/dist/surcharge-Db4IiSEQ.js +0 -71
- package/dist/views/surcharge/SurchargeView.vue.d.ts +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as I, computed as x, openBlock as l, createElementBlock as d, createElementVNode as e, normalizeClass as b, toDisplayString as u, unref as p, ref as D, resolveComponent as B, Fragment as $, createVNode as k, createCommentVNode as N, withCtx as C, renderList as E } from "vue";
|
|
2
2
|
import { useI18n as F, useCoreStore as A } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as U } from "./netsuite-
|
|
3
|
+
import { u as U } from "./netsuite-BEto-z0v.js";
|
|
4
4
|
function ee(o, n = !1) {
|
|
5
5
|
var c;
|
|
6
6
|
return o ? [
|
|
@@ -1,24 +1,23 @@
|
|
|
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-
|
|
2
|
+
import { u as ce } from "./supplier-Dv83IfQr.js";
|
|
3
3
|
import { D as td, R as ye } from "./row-action.enum-BcW_L_nE.js";
|
|
4
|
-
import { c as Yd } from "./
|
|
5
|
-
import { c as we, a as ke, h as rd, i as nd, d as
|
|
4
|
+
import { c as Yd, _ as Xd, F as ve } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js";
|
|
5
|
+
import { c as we, a as ke, h as rd, i as nd, d as Zd, n as Ad, u as Pe } from "./app-CySQTQxj.js";
|
|
6
6
|
import { useI18n as ee, useCoreStore as Ce } from "@feedmepos/mf-common";
|
|
7
|
-
import { u as Ve } from "./netsuite-
|
|
8
|
-
import { useDialog as Ne, useSnackbar as Se, useProxiedModel as od, useDialogChild as
|
|
9
|
-
import { u as
|
|
7
|
+
import { u as Ve } from "./netsuite-BEto-z0v.js";
|
|
8
|
+
import { useDialog as Ne, useSnackbar as Se, useProxiedModel as od, useDialogChild as qd, useBreakpoints as zd } from "@feedmepos/ui-library";
|
|
9
|
+
import { u as Jd, _ as Qd } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
10
10
|
import { F as B } from "./form-mode.enum-BKiNVH6A.js";
|
|
11
|
-
import { R as Z, g as
|
|
12
|
-
import { a as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { u as xe } from "./feature-
|
|
16
|
-
import { u as
|
|
17
|
-
import { _ as
|
|
18
|
-
import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js";
|
|
11
|
+
import { R as Z, g as et } from "./rules-DkVWS5mF.js";
|
|
12
|
+
import { a as dt } from "./FmMultiselectDialog-CDONDKxE.js";
|
|
13
|
+
import { _ as tt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
14
|
+
import { _ as rt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CefvebOx.js";
|
|
15
|
+
import { u as xe } from "./feature-Dm0FnWf9.js";
|
|
16
|
+
import { u as nt } from "./purchase-order-template-BTzjcgrO.js";
|
|
17
|
+
import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHe5G3kX.js";
|
|
19
18
|
import { defineStore as at } from "pinia";
|
|
20
|
-
import { b as Rd, d as Md, s as it, r as $t } from "./xlsx.util-
|
|
21
|
-
import { f as lt } from "./date2-
|
|
19
|
+
import { b as Rd, d as Md, s as it, r as $t } from "./xlsx.util-9eMlJfd9.js";
|
|
20
|
+
import { f as lt } from "./date2-BWoUn1K_.js";
|
|
22
21
|
import { F as st } from "./FmDroppableField-J0xUsOTV.js";
|
|
23
22
|
function ut(e, d) {
|
|
24
23
|
const { t } = ee(), r = Ve();
|
|
@@ -107,13 +106,13 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
107
106
|
})), y = ((N = o.value) == null ? void 0 : N.map((f) => f.skuId)) ?? [], g = E(
|
|
108
107
|
() => {
|
|
109
108
|
var f;
|
|
110
|
-
return ((f =
|
|
109
|
+
return ((f = Zd(d.currentCountry.value)) == null ? void 0 : f.currency) ?? "MYR";
|
|
111
110
|
}
|
|
112
111
|
);
|
|
113
112
|
n.open({
|
|
114
113
|
title: i("inventory.supplier.supplyItems.selectItem"),
|
|
115
114
|
closeButton: !0,
|
|
116
|
-
contentComponent:
|
|
115
|
+
contentComponent: dt,
|
|
117
116
|
contentComponentProps: {
|
|
118
117
|
modelValue: y,
|
|
119
118
|
items: c
|
|
@@ -184,7 +183,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
184
183
|
h("div", pt, [
|
|
185
184
|
h("div", ft, [
|
|
186
185
|
h("div", mt, [
|
|
187
|
-
C(
|
|
186
|
+
C(tt, { "z-index": 50 }, {
|
|
188
187
|
default: U(() => [
|
|
189
188
|
h("div", yt, A(p(i)("inventory.supplier.supplyItems.title")), 1)
|
|
190
189
|
]),
|
|
@@ -217,7 +216,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
217
216
|
]),
|
|
218
217
|
h("div", Ct, [
|
|
219
218
|
h("div", Nt, [
|
|
220
|
-
C(
|
|
219
|
+
C(rt, {
|
|
221
220
|
"model-value": v(N),
|
|
222
221
|
unit: u(N),
|
|
223
222
|
"onUpdate:modelValue": (T) => m(N, T),
|
|
@@ -555,7 +554,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
555
554
|
},
|
|
556
555
|
emits: ["update:show", "submitted"],
|
|
557
556
|
setup(e, { expose: d, emit: t }) {
|
|
558
|
-
const r = Ve(), n = e, i = t, o = k(!1), l = Se(), s = Ne(), { t: u } = ee(), v = ce(), m =
|
|
557
|
+
const r = Ve(), n = e, i = t, o = k(!1), l = Se(), s = Ne(), { t: u } = ee(), v = ce(), m = nt(), c = ke(), y = k(!1), g = E(() => {
|
|
559
558
|
switch (n.mode) {
|
|
560
559
|
case B.READ:
|
|
561
560
|
return "";
|
|
@@ -711,7 +710,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
711
710
|
var $e;
|
|
712
711
|
const re = {
|
|
713
712
|
amount: 1,
|
|
714
|
-
precision:
|
|
713
|
+
precision: et(K.unit)
|
|
715
714
|
};
|
|
716
715
|
return {
|
|
717
716
|
sku: K,
|
|
@@ -2698,7 +2697,7 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
2698
2697
|
}, v1 = { class: "fm-typo-en-body-lg-600" }, g1 = /* @__PURE__ */ ie({
|
|
2699
2698
|
__name: "SupplierImport",
|
|
2700
2699
|
setup(e) {
|
|
2701
|
-
const d = k(null), t =
|
|
2700
|
+
const d = k(null), t = qd(), r = Se(), n = k(!1), i = k(!1), o = k(new Array()), l = k([]), s = k([]), u = E(
|
|
2702
2701
|
() => !!o.value.length || l.value.some((y) => y.errors.length) || s.value.some((y) => y.errors.length)
|
|
2703
2702
|
), v = E(
|
|
2704
2703
|
() => !!l.value.length || !!s.value.length
|
|
@@ -2943,7 +2942,7 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
2943
2942
|
}), b1 = { class: "flex flex-col py-8" }, _1 = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, P1 = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, C1 = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, N1 = {
|
|
2944
2943
|
key: 0,
|
|
2945
2944
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
2946
|
-
}, S1 = "You are managing business-level supplier list. These suppliers will be made visible to all locations.",
|
|
2945
|
+
}, S1 = "You are managing business-level supplier list. These suppliers will be made visible to all locations.", Y1 = /* @__PURE__ */ ie({
|
|
2947
2946
|
__name: "SupplierView",
|
|
2948
2947
|
setup(e) {
|
|
2949
2948
|
const { importSuppliers: d, exportSuppliers: t } = h1(), r = ce(), n = Pe(), i = xe(), o = Ve(), l = k(!1), s = Ne(), u = Se(), { t: v } = ee();
|
|
@@ -3033,7 +3032,7 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
3033
3032
|
if ($ === "refresh")
|
|
3034
3033
|
return c();
|
|
3035
3034
|
}
|
|
3036
|
-
const V = k(""), { breakpoints: Y } =
|
|
3035
|
+
const V = k(""), { breakpoints: Y } = zd(), X = E(() => Y.value.xs || Y.value.sm), te = E(() => X.value ? 10 : 20), _ = Jd(), x = E(() => [
|
|
3037
3036
|
{
|
|
3038
3037
|
label: v("inventory.supplier.create.title"),
|
|
3039
3038
|
value: "create",
|
|
@@ -3058,7 +3057,7 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
3058
3057
|
]);
|
|
3059
3058
|
return ($, a) => {
|
|
3060
3059
|
const H = D("FmTable");
|
|
3061
|
-
return S(), z(
|
|
3060
|
+
return S(), z(Qd, {
|
|
3062
3061
|
title: p(v)("inventory.supplier.title"),
|
|
3063
3062
|
actions: x.value,
|
|
3064
3063
|
"onClick:action": T,
|
|
@@ -3093,7 +3092,7 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
3093
3092
|
"page-size": te.value
|
|
3094
3093
|
}, {
|
|
3095
3094
|
"list-row": U((I) => [
|
|
3096
|
-
C(
|
|
3095
|
+
C(Xd, {
|
|
3097
3096
|
row: I,
|
|
3098
3097
|
onRowClick: f
|
|
3099
3098
|
}, {
|
|
@@ -3150,5 +3149,5 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
3150
3149
|
}
|
|
3151
3150
|
});
|
|
3152
3151
|
export {
|
|
3153
|
-
|
|
3152
|
+
Y1 as default
|
|
3154
3153
|
};
|
|
@@ -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 "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
3
|
-
import { o as U, u as _ } from "./app-
|
|
3
|
+
import { o as U, u as _ } from "./app-CySQTQxj.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-DXGjC5AG.js";
|
|
7
7
|
const q = U((o, t) => {
|
|
8
8
|
const c = _(), l = A();
|
|
9
9
|
return {
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { useI18n as B } from "@feedmepos/mf-common";
|
|
2
|
+
import { components as F } from "@feedmepos/ui-library";
|
|
3
|
+
import { h as n, defineComponent as R, computed as M, openBlock as c, createBlock as V, resolveDynamicComponent as D, unref as f, normalizeClass as _, withCtx as z, createElementVNode as m, renderSlot as N, normalizeProps as P, guardReactiveProps as E, createElementBlock as p, Fragment as k, renderList as L, createVNode as w, createCommentVNode as y } from "vue";
|
|
4
|
+
const { FmMenu: S, FmButton: $, FmMenuItem: I, FmMenuHeader: j, FmMenuDivider: A } = F;
|
|
5
|
+
function U(r, d, s = []) {
|
|
6
|
+
const { t: e } = B(), l = [
|
|
7
|
+
...r.map(({ translationKey: i, color: t, value: u }) => {
|
|
8
|
+
const o = e(i);
|
|
9
|
+
return n(
|
|
10
|
+
I,
|
|
11
|
+
{
|
|
12
|
+
onClick() {
|
|
13
|
+
d(u ?? o);
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
label: () => n(
|
|
18
|
+
"span",
|
|
19
|
+
{
|
|
20
|
+
class: t
|
|
21
|
+
},
|
|
22
|
+
o
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
})
|
|
27
|
+
];
|
|
28
|
+
return s.length > 0 && l.push(
|
|
29
|
+
n(j, { label: "Admin Only" }),
|
|
30
|
+
n(A),
|
|
31
|
+
...s.map(({ translationKey: i, color: t, value: u }) => {
|
|
32
|
+
const o = e(i);
|
|
33
|
+
return n(
|
|
34
|
+
I,
|
|
35
|
+
{
|
|
36
|
+
onClick() {
|
|
37
|
+
d(u ?? o);
|
|
38
|
+
},
|
|
39
|
+
icon: "support_agent"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: () => n(
|
|
43
|
+
"span",
|
|
44
|
+
{
|
|
45
|
+
class: t
|
|
46
|
+
},
|
|
47
|
+
o
|
|
48
|
+
)
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
})
|
|
52
|
+
), n(
|
|
53
|
+
S,
|
|
54
|
+
{
|
|
55
|
+
trigger: "click",
|
|
56
|
+
stopClickPropagation: !0
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"menu-button": () => n($, {
|
|
60
|
+
type: "button",
|
|
61
|
+
variant: "tertiary",
|
|
62
|
+
icon: "more_vert",
|
|
63
|
+
iconColor: "#000000",
|
|
64
|
+
size: "md"
|
|
65
|
+
}),
|
|
66
|
+
default: () => n(
|
|
67
|
+
"div",
|
|
68
|
+
{
|
|
69
|
+
style: {
|
|
70
|
+
backgroundColor: "white",
|
|
71
|
+
padding: "4px",
|
|
72
|
+
width: "160px"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
l
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* vue-table
|
|
82
|
+
*
|
|
83
|
+
* Copyright (c) TanStack
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the MIT license found in the
|
|
86
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
87
|
+
*
|
|
88
|
+
* @license MIT
|
|
89
|
+
*/
|
|
90
|
+
const h = R({
|
|
91
|
+
props: ["render", "props"],
|
|
92
|
+
setup: (r) => () => typeof r.render == "function" || typeof r.render == "object" ? n(r.render, r.props) : r.render
|
|
93
|
+
}), H = { class: "flex gap-4 w-full" }, O = { class: "flex-1" }, T = { class: "flex flex-col" }, q = { key: 0 }, G = { key: 0 }, W = /* @__PURE__ */ R({
|
|
94
|
+
__name: "TableActionableRow",
|
|
95
|
+
props: {
|
|
96
|
+
row: {},
|
|
97
|
+
onRowClick: {},
|
|
98
|
+
actionColumnId: { default: "action" }
|
|
99
|
+
},
|
|
100
|
+
setup(r) {
|
|
101
|
+
const d = r, s = M(
|
|
102
|
+
() => d.row.getVisibleCells().reduce(
|
|
103
|
+
(e, l) => (e[l.column.id] = l, e),
|
|
104
|
+
{}
|
|
105
|
+
)
|
|
106
|
+
);
|
|
107
|
+
return (e, l) => (c(), V(D(e.onRowClick ? f(F).FmListItem : "div"), {
|
|
108
|
+
class: _([
|
|
109
|
+
"w-full border-b border-fm-color-neutral-gray-100",
|
|
110
|
+
{
|
|
111
|
+
"bg-fm-color-neutral-gray-100": e.row.getIsSelected(),
|
|
112
|
+
"cursor-pointer": typeof e.onRowClick == "function"
|
|
113
|
+
}
|
|
114
|
+
]),
|
|
115
|
+
onClick: l[0] || (l[0] = (i) => {
|
|
116
|
+
var t;
|
|
117
|
+
return (t = e.onRowClick) == null ? void 0 : t.call(e, e.row.original);
|
|
118
|
+
})
|
|
119
|
+
}, {
|
|
120
|
+
default: z(() => {
|
|
121
|
+
var i, t, u, o, C;
|
|
122
|
+
return [
|
|
123
|
+
m("div", H, [
|
|
124
|
+
m("div", O, [
|
|
125
|
+
N(e.$slots, "default", P(E(s.value)), () => [
|
|
126
|
+
m("div", T, [
|
|
127
|
+
(c(!0), p(k, null, L(d.row.getVisibleCells(), (a) => {
|
|
128
|
+
var g, v, b;
|
|
129
|
+
return c(), p(k, {
|
|
130
|
+
key: a.id
|
|
131
|
+
}, [
|
|
132
|
+
a.column.id !== e.actionColumnId ? (c(), p("div", q, [
|
|
133
|
+
w(f(h), {
|
|
134
|
+
render: (v = (g = a.column) == null ? void 0 : g.columnDef) == null ? void 0 : v.cell,
|
|
135
|
+
props: (b = a.getContext) == null ? void 0 : b.call(a)
|
|
136
|
+
}, null, 8, ["render", "props"])
|
|
137
|
+
])) : y("", !0)
|
|
138
|
+
], 64);
|
|
139
|
+
}), 128))
|
|
140
|
+
])
|
|
141
|
+
])
|
|
142
|
+
]),
|
|
143
|
+
s.value[e.actionColumnId ?? ""] ? (c(), p("div", G, [
|
|
144
|
+
m("div", null, [
|
|
145
|
+
w(f(h), {
|
|
146
|
+
render: (u = (t = (i = s.value[e.actionColumnId ?? ""]) == null ? void 0 : i.column) == null ? void 0 : t.columnDef) == null ? void 0 : u.cell,
|
|
147
|
+
props: (C = (o = s.value[e.actionColumnId ?? ""]) == null ? void 0 : o.getContext) == null ? void 0 : C.call(o)
|
|
148
|
+
}, null, 8, ["render", "props"])
|
|
149
|
+
])
|
|
150
|
+
])) : y("", !0)
|
|
151
|
+
])
|
|
152
|
+
];
|
|
153
|
+
}),
|
|
154
|
+
_: 3
|
|
155
|
+
}, 8, ["class"]));
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
export {
|
|
159
|
+
h as F,
|
|
160
|
+
W as _,
|
|
161
|
+
U as c
|
|
162
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as C, ref as c, computed as f, resolveComponent as y, openBlock as
|
|
2
|
-
import { u as T } from "./vue-i18n-
|
|
3
|
-
import { components as
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as C, ref as c, computed as f, resolveComponent as y, openBlock as E, createElementBlock as P, createElementVNode as d, toDisplayString as A, createVNode as v, unref as x, h as g } from "vue";
|
|
2
|
+
import { u as T } from "./vue-i18n-kUcLfpvT.js";
|
|
3
|
+
import { components as R } from "@feedmepos/ui-library";
|
|
4
|
+
import { E as D, b as S } from "./app-uBuHtW8m.js";
|
|
5
|
+
const z = {
|
|
6
6
|
class: "flex flex-col gap-24",
|
|
7
7
|
style: { height: "400px" }
|
|
8
|
-
},
|
|
8
|
+
}, U = { class: "flex items-center" }, j = { class: "fm-typo-en-body-lg-600 flex-1" }, I = { class: "flex flex-col gap-4 w-full flex-1 min-h-0" }, q = /* @__PURE__ */ C({
|
|
9
9
|
__name: "TemplatePublishDialog",
|
|
10
10
|
props: {
|
|
11
11
|
title: {},
|
|
@@ -38,7 +38,7 @@ const S = {
|
|
|
38
38
|
}
|
|
39
39
|
], r = f(() => {
|
|
40
40
|
const l = p.value.toLowerCase();
|
|
41
|
-
return L.value.filter((e) =>
|
|
41
|
+
return L.value.filter((e) => D(e, b.value)).filter(({ name: e }) => l ? e.toLowerCase().includes(l) : !0);
|
|
42
42
|
});
|
|
43
43
|
function F() {
|
|
44
44
|
const l = Object.keys(i.value).map(Number).filter((e) => i.value[e]);
|
|
@@ -68,7 +68,7 @@ const S = {
|
|
|
68
68
|
},
|
|
69
69
|
u(a ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
|
|
70
70
|
),
|
|
71
|
-
g(
|
|
71
|
+
g(R.FmButton, {
|
|
72
72
|
class: "tertiary",
|
|
73
73
|
variant: "secondary",
|
|
74
74
|
icon: "ios_share",
|
|
@@ -107,9 +107,9 @@ const S = {
|
|
|
107
107
|
});
|
|
108
108
|
return (l, e) => {
|
|
109
109
|
const a = y("FmButton"), n = y("FmTextField"), h = y("FmTable");
|
|
110
|
-
return
|
|
111
|
-
d("div",
|
|
112
|
-
d("div",
|
|
110
|
+
return E(), P("div", z, [
|
|
111
|
+
d("div", U, [
|
|
112
|
+
d("div", j, A(l.title), 1),
|
|
113
113
|
d("div", null, [
|
|
114
114
|
v(a, {
|
|
115
115
|
label: B.value,
|
|
@@ -120,7 +120,7 @@ const S = {
|
|
|
120
120
|
}, null, 8, ["label", "loading", "disabled"])
|
|
121
121
|
])
|
|
122
122
|
]),
|
|
123
|
-
d("div",
|
|
123
|
+
d("div", I, [
|
|
124
124
|
v(n, {
|
|
125
125
|
modelValue: p.value,
|
|
126
126
|
"onUpdate:modelValue": e[1] || (e[1] = (o) => p.value = o),
|
|
@@ -128,7 +128,7 @@ const S = {
|
|
|
128
128
|
placeholder: x(u)("inventory.publish.search.placeholder"),
|
|
129
129
|
"prepend-icon": "search"
|
|
130
130
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
131
|
-
v(x(
|
|
131
|
+
v(x(S), {
|
|
132
132
|
modelValue: b.value,
|
|
133
133
|
"onUpdate:modelValue": e[2] || (e[2] = (o) => b.value = o),
|
|
134
134
|
attributes: V
|