@feedmepos/mf-inventory-portal 1.2.51 → 1.2.53-dev.2
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-BJ_vKOR1.js → App-C8X881gs.js} +75 -70
- package/dist/{ApprovalView-B_prTTtl.js → ApprovalView-CnwwVO46.js} +34 -34
- package/dist/{BindingsDialog-BPuKgJIk.js → BindingsDialog-MM6wv-je.js} +2 -2
- package/dist/{BindingsPicker-Dv_cmEil.js → BindingsPicker-C_VV8t8e.js} +2 -2
- package/dist/{BindingsTable-BNSfYRfq.js → BindingsTable-CabKT98b.js} +4 -4
- package/dist/{ClosingDraftView-C78tcaJ3.js → ClosingDraftView-D3dwGHdG.js} +19 -18
- package/dist/{ClosingHistoryView-DY8liEk3.js → ClosingHistoryView-CBMIWL-O.js} +27 -27
- package/dist/{ClosingTemplateView-pJXEcrjO.js → ClosingTemplateView-FHCJY1Y1.js} +525 -511
- package/dist/{DeliveryOrderPrintPreview-Bu_l-kxu.js → DeliveryOrderPrintPreview-BB4HVWaM.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dq2vcIMB.js +188 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHe5G3kX.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BSrjl8Vc.js} +12 -12
- package/dist/FmMultiselectDialog-D8E2bGwL.js +618 -0
- package/dist/{FmMultiselectDialog-C3iCMK5I.js → FmMultiselectDialog-HP5xQpLC.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CefvebOx.js → FmUnitInput.vue_vue_type_script_setup_true_lang--yzPFTUH.js} +3 -3
- package/dist/{ImportView-JrenRgiI.js → ImportView-DQPKyc1T.js} +7 -7
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CSdxodp6.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DZAOa26T.js} +1 -1
- package/dist/{IngredientGroupView-aDFq_ZDh.js → IngredientGroupView-CiR31jQz.js} +108 -107
- package/dist/{IngredientsView-DSh3UqDg.js → IngredientsView-Csa1Lifk.js} +126 -125
- package/dist/{IntegrationView-KhZ78uxM.js → IntegrationView-DqGXjNPx.js} +80 -80
- package/dist/{InventoryBindingForm-DZu0CZYh.js → InventoryBindingForm-kZ6JIgK4.js} +1 -1
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-D-qjPLHS.js +403 -0
- package/dist/{InventoryBindingSummary-DZxLhZ_-.js → InventoryBindingSummary-Cn3y7cXX.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DAwpZY3n.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-5cpvf_ze.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CPDxwz-V.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DW_3XEAx.js} +2 -2
- package/dist/{PublishView-CLnQ7NBN.js → PublishView-tvxBQLp2.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DiBztBma.js → PurchaseOrderPrintPreview-CqSijErx.js} +1 -1
- package/dist/ReceiveRequestView-Oq87gJ1d.js +2913 -0
- package/dist/{RecipeView-BPIMvoTw.js → RecipeView-c7SNUwhq.js} +83 -82
- package/dist/{StockView-CI8MUJay.js → StockView-B3ocNf5D.js} +113 -112
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DEBHEMkh.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Br3p4H5X.js} +1 -1
- package/dist/{SupplierView-COihDMNY.js → SupplierView-7UHgW64q.js} +28 -27
- package/dist/SurchargeView-CkBBz_W1.js +460 -0
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-D-c0Ayis.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BxqwBD1A.js} +2 -2
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js +84 -0
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DZxJDrcN.js +201 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BVuuw11z.js → TransferDetails.vue_vue_type_script_setup_true_lang-BP7PC5FE.js} +15 -15
- package/dist/{TransferTemplateView-B2NNfrEq.js → TransferTemplateView-gnib1NSD.js} +82 -81
- package/dist/{UnitView-ZsbM07hw.js → UnitView-gccTcBDm.js} +20 -19
- package/dist/{WarehouseView-Cd5RFu5v.js → WarehouseView-9Tzk2HFV.js} +21 -20
- package/dist/WastageTemplateView-bxDDb0it.js +2383 -0
- package/dist/api/adjustment-template.d.ts +1 -0
- package/dist/api/closing-template.d.ts +1 -0
- package/dist/api/netsuite.d.ts +8 -0
- package/dist/api/surcharge.d.ts +31 -0
- package/dist/app-DiX-EfV6.js +8167 -0
- package/dist/{app-CySQTQxj.js → app-S9HQBEDL.js} +4514 -4410
- package/dist/app.d.ts +53 -0
- package/dist/app.js +1 -1
- package/dist/closing-template-DSppbNBU.js +125 -0
- package/dist/component-DpCUABT3.js +82 -0
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +8 -0
- package/dist/components/FmMultiselectDialogProps.d.ts +5 -0
- package/dist/components/TemplatePublishDialog.d.ts +2 -0
- package/dist/{date2-BWoUn1K_.js → date2-a0EDY-8z.js} +1 -1
- package/dist/{dayjs.min-cMW8olEu.js → dayjs.min-D3uqC-FM.js} +26 -26
- package/dist/{decimal-8BRzZQU6.js → decimal-iC0dKSbY.js} +2 -2
- package/dist/{defineDeepModel-AsUZ-DyW.js → defineDeepModel-sBbNFqqR.js} +1 -1
- package/dist/{duplicate-template-CyHfZR3S.js → duplicate-template-Dwe_h80w.js} +1 -1
- package/dist/{feature-Dm0FnWf9.js → feature-12j10xt_.js} +8956 -6221
- package/dist/{format-time-from-id-C9lmv5BP.js → format-time-from-id-Dyyvx-ha.js} +1 -1
- package/dist/{format-unit-display-BV8pJisO.js → format-unit-display-DstE3kKS.js} +11 -11
- package/dist/{import-export.helper-Djxw_H5S.js → import-export.helper-CR8rEBJV.js} +5 -5
- package/dist/{index-D6u3kywf.js → index-BbpxRM23.js} +1 -1
- package/dist/{index-8hCa5_Gb.js → index-Ca8nKTEy.js} +1 -1
- package/dist/{index-DidYtgNc.js → index-CvRrsISb.js} +3 -3
- package/dist/{lodash-CW_Ea6mA.js → lodash-BiCqhRt2.js} +1 -1
- package/dist/netsuite-B84CfGmT.js +5454 -0
- package/dist/{purchase-order-template-BTzjcgrO.js → purchase-order-template-ogVLqXnM.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{rules-DkVWS5mF.js → rules-C0W8tBAK.js} +9 -9
- package/dist/{stock-CHw8pI8V.js → stock-BfY956rP.js} +3 -3
- package/dist/{stock-D8hLHgeN.js → stock-Dy08ISna.js} +1 -1
- package/dist/stores/feature.d.ts +4 -0
- package/dist/stores/integration/netsuite.d.ts +5 -0
- package/dist/stores/surcharge.d.ts +18 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-Dv83IfQr.js → supplier-BGfg_Uzv.js} +2 -2
- package/dist/surcharge-DZkc9Zxa.js +71 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CJjd4g-6.js → use-ingredient-select-dialog-fOf-xHgn.js} +2 -2
- package/dist/{use-inventory-binding-dialog-D4g79p5S.js → use-inventory-binding-dialog-CF6dmCop.js} +2 -2
- package/dist/{use-template-enabled-locations-2-Cg2iqQdq.js → use-template-enabled-locations-2-C9YTP8tP.js} +2 -2
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +4 -1
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +714 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/surcharge/SurchargeView.vue.d.ts +2 -0
- package/dist/{vue-i18n-kUcLfpvT.js → vue-i18n-CVvQI1xZ.js} +571 -571
- package/dist/{xlsx-BjeMbhDF.js → xlsx-C46Afq2T.js} +1 -1
- package/dist/{xlsx.util-9eMlJfd9.js → xlsx.util-iJmlHY2V.js} +1 -1
- package/package.json +2 -2
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dgibb-Fh.js +0 -231
- package/dist/FmMultiselectDialog-CDONDKxE.js +0 -598
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-YuCn0irA.js +0 -375
- package/dist/ReceiveRequestView-_TOSnDGJ.js +0 -2913
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +0 -162
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D8vbPlie.js +0 -155
- package/dist/WastageTemplateView-DpikyyZW.js +0 -2327
- package/dist/app-uBuHtW8m.js +0 -8127
- package/dist/closing-template-DXGjC5AG.js +0 -117
- package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +0 -2
- package/dist/netsuite-BEto-z0v.js +0 -5131
- package/dist/views/ingredients/helper/calculate-default-cost.d.ts +0 -9
- package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +0 -22
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { defineComponent as I, h as R, computed as h, openBlock as l, createBlock as V, resolveDynamicComponent as B, unref as c, normalizeClass as F, withCtx as D, createElementVNode as d, renderSlot as N, normalizeProps as z, guardReactiveProps as E, createElementBlock as u, Fragment as g, renderList as L, createVNode as k, createCommentVNode as y } from "vue";
|
|
2
|
+
import { components as P } from "@feedmepos/ui-library";
|
|
3
|
+
/**
|
|
4
|
+
* vue-table
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) TanStack
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
10
|
+
*
|
|
11
|
+
* @license MIT
|
|
12
|
+
*/
|
|
13
|
+
const b = I({
|
|
14
|
+
props: ["render", "props"],
|
|
15
|
+
setup: (o) => () => typeof o.render == "function" || typeof o.render == "object" ? R(o.render, o.props) : o.render
|
|
16
|
+
}), S = { class: "flex gap-4 w-full" }, _ = { class: "flex-1" }, $ = { class: "flex flex-col" }, j = { key: 0 }, A = { key: 0 }, G = /* @__PURE__ */ I({
|
|
17
|
+
__name: "TableActionableRow",
|
|
18
|
+
props: {
|
|
19
|
+
row: {},
|
|
20
|
+
onRowClick: {},
|
|
21
|
+
actionColumnId: { default: "action" }
|
|
22
|
+
},
|
|
23
|
+
setup(o) {
|
|
24
|
+
const m = o, s = h(
|
|
25
|
+
() => m.row.getVisibleCells().reduce(
|
|
26
|
+
(e, r) => (e[r.column.id] = r, e),
|
|
27
|
+
{}
|
|
28
|
+
)
|
|
29
|
+
);
|
|
30
|
+
return (e, r) => (l(), V(B(e.onRowClick ? c(P).FmListItem : "div"), {
|
|
31
|
+
class: F([
|
|
32
|
+
"w-full border-b border-fm-color-neutral-gray-100",
|
|
33
|
+
{
|
|
34
|
+
"bg-fm-color-neutral-gray-100": e.row.getIsSelected(),
|
|
35
|
+
"cursor-pointer": typeof e.onRowClick == "function"
|
|
36
|
+
}
|
|
37
|
+
]),
|
|
38
|
+
onClick: r[0] || (r[0] = (a) => {
|
|
39
|
+
var t;
|
|
40
|
+
return (t = e.onRowClick) == null ? void 0 : t.call(e, e.row.original);
|
|
41
|
+
})
|
|
42
|
+
}, {
|
|
43
|
+
default: D(() => {
|
|
44
|
+
var a, t, p, i, f;
|
|
45
|
+
return [
|
|
46
|
+
d("div", S, [
|
|
47
|
+
d("div", _, [
|
|
48
|
+
N(e.$slots, "default", z(E(s.value)), () => [
|
|
49
|
+
d("div", $, [
|
|
50
|
+
(l(!0), u(g, null, L(m.row.getVisibleCells(), (n) => {
|
|
51
|
+
var C, v, w;
|
|
52
|
+
return l(), u(g, {
|
|
53
|
+
key: n.id
|
|
54
|
+
}, [
|
|
55
|
+
n.column.id !== e.actionColumnId ? (l(), u("div", j, [
|
|
56
|
+
k(c(b), {
|
|
57
|
+
render: (v = (C = n.column) == null ? void 0 : C.columnDef) == null ? void 0 : v.cell,
|
|
58
|
+
props: (w = n.getContext) == null ? void 0 : w.call(n)
|
|
59
|
+
}, null, 8, ["render", "props"])
|
|
60
|
+
])) : y("", !0)
|
|
61
|
+
], 64);
|
|
62
|
+
}), 128))
|
|
63
|
+
])
|
|
64
|
+
])
|
|
65
|
+
]),
|
|
66
|
+
s.value[e.actionColumnId ?? ""] ? (l(), u("div", A, [
|
|
67
|
+
d("div", null, [
|
|
68
|
+
k(c(b), {
|
|
69
|
+
render: (p = (t = (a = s.value[e.actionColumnId ?? ""]) == null ? void 0 : a.column) == null ? void 0 : t.columnDef) == null ? void 0 : p.cell,
|
|
70
|
+
props: (f = (i = s.value[e.actionColumnId ?? ""]) == null ? void 0 : i.getContext) == null ? void 0 : f.call(i)
|
|
71
|
+
}, null, 8, ["render", "props"])
|
|
72
|
+
])
|
|
73
|
+
])) : y("", !0)
|
|
74
|
+
])
|
|
75
|
+
];
|
|
76
|
+
}),
|
|
77
|
+
_: 3
|
|
78
|
+
}, 8, ["class"]));
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export {
|
|
82
|
+
b as F,
|
|
83
|
+
G as _
|
|
84
|
+
};
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { defineComponent as P, ref as v, computed as b, resolveComponent as g, openBlock as L, createElementBlock as T, createElementVNode as p, toDisplayString as D, createVNode as h, createBlock as U, createCommentVNode as R, unref as w, h as m } from "vue";
|
|
2
|
+
import { u as K } from "./vue-i18n-CVvQI1xZ.js";
|
|
3
|
+
import { components as x } from "@feedmepos/ui-library";
|
|
4
|
+
import { K as S, D as j } from "./app-DiX-EfV6.js";
|
|
5
|
+
const z = {
|
|
6
|
+
class: "flex flex-col gap-24",
|
|
7
|
+
style: { height: "400px" }
|
|
8
|
+
}, O = { class: "flex items-center" }, I = { class: "fm-typo-en-body-lg-600 flex-1" }, M = { class: "flex gap-8" }, q = { class: "flex flex-col gap-4 w-full flex-1 min-h-0" }, W = /* @__PURE__ */ P({
|
|
9
|
+
__name: "TemplatePublishDialog",
|
|
10
|
+
props: {
|
|
11
|
+
title: {},
|
|
12
|
+
doc: {},
|
|
13
|
+
controller: {},
|
|
14
|
+
initialPublishedRev: {},
|
|
15
|
+
locations: {},
|
|
16
|
+
enabledLocations: {}
|
|
17
|
+
},
|
|
18
|
+
setup(N) {
|
|
19
|
+
const o = N, c = v(o.initialPublishedRev ?? {}), t = v(), i = v({}), A = b(() => {
|
|
20
|
+
var e;
|
|
21
|
+
return ((e = o.enabledLocations) != null && e.length ? o.enabledLocations : o.locations).map((s) => {
|
|
22
|
+
var n;
|
|
23
|
+
const a = !!(((n = c.value) == null ? void 0 : n[s.dbName]) ?? []).find((k) => k._id === o.doc._id && k._rev === o.doc._rev);
|
|
24
|
+
return {
|
|
25
|
+
...s,
|
|
26
|
+
status: a ? "published" : "outdated"
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
}), { t: d } = K(), f = v(""), y = v({
|
|
30
|
+
logic: "AND",
|
|
31
|
+
rules: []
|
|
32
|
+
}), V = [
|
|
33
|
+
{
|
|
34
|
+
type: "string",
|
|
35
|
+
key: "status",
|
|
36
|
+
entity: "inventory",
|
|
37
|
+
values: ["published", "outdated"]
|
|
38
|
+
}
|
|
39
|
+
], u = b(() => {
|
|
40
|
+
const l = f.value.toLowerCase();
|
|
41
|
+
return A.value.filter((e) => S(e, y.value)).filter(({ name: e }) => l ? e.toLowerCase().includes(l) : !0);
|
|
42
|
+
});
|
|
43
|
+
function _() {
|
|
44
|
+
const l = Object.keys(i.value).map(Number).filter((e) => i.value[e]);
|
|
45
|
+
return l.length === 0 ? u.value : l.map((e) => u.value[e]);
|
|
46
|
+
}
|
|
47
|
+
const C = [
|
|
48
|
+
{
|
|
49
|
+
id: "name",
|
|
50
|
+
header: () => "Name",
|
|
51
|
+
accessorKey: "name",
|
|
52
|
+
size: "auto"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: "status",
|
|
56
|
+
header: () => "Published",
|
|
57
|
+
accessorKey: "status",
|
|
58
|
+
cell: (l) => {
|
|
59
|
+
const e = l.row.original, s = e.status === "published";
|
|
60
|
+
let r;
|
|
61
|
+
return s && o.controller.unpublishAtLocation ? r = m(x.FmButton, {
|
|
62
|
+
class: "tertiary",
|
|
63
|
+
variant: "secondary",
|
|
64
|
+
icon: "block",
|
|
65
|
+
loading: t.value === `unpublish-${e.dbName}`,
|
|
66
|
+
disabled: t.value !== void 0 && t.value !== `unpublish-${e.dbName}`,
|
|
67
|
+
onClick: async () => {
|
|
68
|
+
t.value = `unpublish-${e.dbName}`;
|
|
69
|
+
try {
|
|
70
|
+
const a = await o.controller.unpublishAtLocation(e).delayed(1e3);
|
|
71
|
+
c.value = a;
|
|
72
|
+
} catch (a) {
|
|
73
|
+
console.error("Error unpublishing at location:", a);
|
|
74
|
+
} finally {
|
|
75
|
+
t.value = void 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}) : r = m(x.FmButton, {
|
|
79
|
+
class: "tertiary",
|
|
80
|
+
variant: "secondary",
|
|
81
|
+
icon: "ios_share",
|
|
82
|
+
loading: t.value === `publish-${e.dbName}`,
|
|
83
|
+
disabled: t.value !== void 0 && t.value !== `publish-${e.dbName}`,
|
|
84
|
+
onClick: async () => {
|
|
85
|
+
t.value = `publish-${e.dbName}`;
|
|
86
|
+
try {
|
|
87
|
+
const a = await o.controller.publishAtLocation(e).delayed(1e3);
|
|
88
|
+
c.value = a;
|
|
89
|
+
} catch (a) {
|
|
90
|
+
console.error("Error publishing at location:", a);
|
|
91
|
+
} finally {
|
|
92
|
+
t.value = void 0;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}), m("div", { class: "flex items-center gap-8" }, [
|
|
96
|
+
m(
|
|
97
|
+
"div",
|
|
98
|
+
{
|
|
99
|
+
class: [
|
|
100
|
+
"fm-status-badge",
|
|
101
|
+
s ? "fm-status-badge-success-secondary" : "fm-status-badge-info-secondary"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
d(s ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
|
|
105
|
+
),
|
|
106
|
+
r
|
|
107
|
+
]);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
];
|
|
111
|
+
async function B() {
|
|
112
|
+
t.value = "all";
|
|
113
|
+
try {
|
|
114
|
+
const l = _(), e = await o.controller.publishAll(l).delayed(1e3);
|
|
115
|
+
c.value = e;
|
|
116
|
+
} catch (l) {
|
|
117
|
+
console.error("Error publishing all:", l);
|
|
118
|
+
} finally {
|
|
119
|
+
t.value = void 0;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
async function F() {
|
|
123
|
+
if (o.controller.unpublishAll) {
|
|
124
|
+
t.value = "unpublish-all";
|
|
125
|
+
try {
|
|
126
|
+
const l = _(), e = await o.controller.unpublishAll(l).delayed(1e3);
|
|
127
|
+
c.value = e;
|
|
128
|
+
} catch (l) {
|
|
129
|
+
console.error("Error unpublishing all:", l);
|
|
130
|
+
} finally {
|
|
131
|
+
t.value = void 0;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
const $ = b(() => {
|
|
136
|
+
const l = Object.keys(i.value).filter(
|
|
137
|
+
(e) => i.value[e]
|
|
138
|
+
).length;
|
|
139
|
+
return l === 0 || l === u.value.length ? d("inventory.publish.actions.publishAll") : d("inventory.publish.actions.publishSelected", { count: l });
|
|
140
|
+
}), E = b(() => {
|
|
141
|
+
const l = Object.keys(i.value).filter(
|
|
142
|
+
(e) => i.value[e]
|
|
143
|
+
).length;
|
|
144
|
+
return l === 0 || l === u.value.length ? "Unpublish all" : `Unpublish selected ${l} location${l === 1 ? "" : "s"}`;
|
|
145
|
+
});
|
|
146
|
+
return (l, e) => {
|
|
147
|
+
const s = g("FmButton"), r = g("FmTextField"), a = g("FmTable");
|
|
148
|
+
return L(), T("div", z, [
|
|
149
|
+
p("div", O, [
|
|
150
|
+
p("div", I, D(l.title), 1),
|
|
151
|
+
p("div", M, [
|
|
152
|
+
h(s, {
|
|
153
|
+
label: $.value,
|
|
154
|
+
variant: "secondary",
|
|
155
|
+
onClick: e[0] || (e[0] = (n) => B()),
|
|
156
|
+
loading: t.value === "all",
|
|
157
|
+
disabled: t.value !== "all" && t.value !== void 0
|
|
158
|
+
}, null, 8, ["label", "loading", "disabled"]),
|
|
159
|
+
l.controller.unpublishAll ? (L(), U(s, {
|
|
160
|
+
key: 0,
|
|
161
|
+
label: E.value,
|
|
162
|
+
variant: "tertiary",
|
|
163
|
+
onClick: e[1] || (e[1] = (n) => F()),
|
|
164
|
+
loading: t.value === "unpublish-all",
|
|
165
|
+
disabled: t.value !== "unpublish-all" && t.value !== void 0
|
|
166
|
+
}, null, 8, ["label", "loading", "disabled"])) : R("", !0)
|
|
167
|
+
])
|
|
168
|
+
]),
|
|
169
|
+
p("div", q, [
|
|
170
|
+
h(r, {
|
|
171
|
+
modelValue: f.value,
|
|
172
|
+
"onUpdate:modelValue": e[2] || (e[2] = (n) => f.value = n),
|
|
173
|
+
class: "w-full",
|
|
174
|
+
placeholder: w(d)("inventory.publish.search.placeholder"),
|
|
175
|
+
"prepend-icon": "search"
|
|
176
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
177
|
+
h(w(j), {
|
|
178
|
+
modelValue: y.value,
|
|
179
|
+
"onUpdate:modelValue": e[3] || (e[3] = (n) => y.value = n),
|
|
180
|
+
attributes: V
|
|
181
|
+
}, null, 8, ["modelValue"]),
|
|
182
|
+
h(a, {
|
|
183
|
+
modelValue: i.value,
|
|
184
|
+
"onUpdate:modelValue": e[4] || (e[4] = (n) => i.value = n),
|
|
185
|
+
"row-data": u.value,
|
|
186
|
+
"column-defs": C,
|
|
187
|
+
"shrink-at": 9999,
|
|
188
|
+
virtual: !0,
|
|
189
|
+
"page-size": u.value.length,
|
|
190
|
+
selection: "multiple",
|
|
191
|
+
class: "flex-1 min-h-0",
|
|
192
|
+
"hide-footer": ""
|
|
193
|
+
}, null, 8, ["modelValue", "row-data", "page-size"])
|
|
194
|
+
])
|
|
195
|
+
]);
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
export {
|
|
200
|
+
W as _
|
|
201
|
+
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { p as Ct, f as We } from "./format-time-from-id-
|
|
1
|
+
import { p as Ct, f as We } from "./format-time-from-id-Dyyvx-ha.js";
|
|
2
2
|
import { ref as J, computed as Y, h as L, defineComponent as $e, reactive as Rt, onMounted as yt, resolveComponent as G, openBlock as l, createBlock as re, withCtx as ee, createElementVNode as e, createVNode as D, unref as v, createElementBlock as b, toDisplayString as y, createCommentVNode as B, Fragment as de, renderList as xe, createTextVNode as ke, normalizeClass as Me, watch as kt, isRef as Dt, resolveDynamicComponent as At } from "vue";
|
|
3
|
-
import { c as mt } from "./
|
|
3
|
+
import { c as mt } from "./component-DpCUABT3.js";
|
|
4
4
|
import { R as ye, D as Se } from "./row-action.enum-BcW_L_nE.js";
|
|
5
|
-
import { o as Nt, u as De, W as U, X as Ze, M as se,
|
|
6
|
-
import { l as bt, d as gt, a as be, t as Qe, e as Ke } from "./rules-
|
|
7
|
-
import { F as Tt } from "./decimal-
|
|
8
|
-
import { t as It, c as Pt, h as _t, a as He } from "./date2-
|
|
9
|
-
import { u as Ue, F as qt, a as st } from "./feature-
|
|
5
|
+
import { o as Nt, u as De, W as U, X as Ze, M as se, E as Ft, c as vt, v as it, Y as ht, t as Ge, s as Ce, B as Ye, w as qe, C as Pe } from "./app-S9HQBEDL.js";
|
|
6
|
+
import { l as bt, d as gt, a as be, t as Qe, e as Ke } from "./rules-C0W8tBAK.js";
|
|
7
|
+
import { F as Tt } from "./decimal-iC0dKSbY.js";
|
|
8
|
+
import { t as It, c as Pt, h as _t, a as He } from "./date2-a0EDY-8z.js";
|
|
9
|
+
import { u as Ue, F as qt, a as st } from "./feature-12j10xt_.js";
|
|
10
10
|
import { useCoreStore as ct, useI18n as ut } from "@feedmepos/mf-common";
|
|
11
|
-
import { u as et, a as dt, S as we } from "./netsuite-
|
|
11
|
+
import { u as et, a as dt, S as we } from "./netsuite-B84CfGmT.js";
|
|
12
12
|
import { useDialog as tt, useSnackbar as Be, components as Je, FmButtonVariant as ge, useProxiedModel as Vt } from "@feedmepos/ui-library";
|
|
13
13
|
import { F as Ve } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
14
14
|
import { E as Et } from "./empty-placeholder-wf6-BWE8.js";
|
|
15
|
-
import { u as Lt, a as Mt, f as Ut } from "./format-unit-display-
|
|
16
|
-
import { u as je, _ as Bt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { _ as jt, a as zt, b as Kt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang
|
|
15
|
+
import { u as Lt, a as Mt, f as Ut } from "./format-unit-display-DstE3kKS.js";
|
|
16
|
+
import { u as je, _ as Bt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-BxqwBD1A.js";
|
|
17
|
+
import { _ as jt, a as zt, b as Kt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang--yzPFTUH.js";
|
|
18
18
|
import { u as Gt, R as pt } from "./usePromise-CbVUCxhj.js";
|
|
19
|
-
import { c as Ht } from "./index-
|
|
20
|
-
import { i as Wt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
19
|
+
import { c as Ht } from "./index-CvRrsISb.js";
|
|
20
|
+
import { i as Wt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BSrjl8Vc.js";
|
|
21
21
|
import { F as ft } from "./form-mode.enum-BKiNVH6A.js";
|
|
22
|
-
import { d as St } from "./defineDeepModel-
|
|
23
|
-
import { u as Yt } from "./vue-i18n-
|
|
22
|
+
import { d as St } from "./defineDeepModel-sBbNFqqR.js";
|
|
23
|
+
import { u as Yt } from "./vue-i18n-CVvQI1xZ.js";
|
|
24
24
|
const Qt = Nt(($, a) => {
|
|
25
25
|
const o = De();
|
|
26
26
|
return {
|