@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
|
@@ -1,162 +0,0 @@
|
|
|
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,155 +0,0 @@
|
|
|
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
|
-
class: "flex flex-col gap-24",
|
|
7
|
-
style: { height: "400px" }
|
|
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
|
-
__name: "TemplatePublishDialog",
|
|
10
|
-
props: {
|
|
11
|
-
title: {},
|
|
12
|
-
doc: {},
|
|
13
|
-
controller: {},
|
|
14
|
-
initialPublishedRev: {},
|
|
15
|
-
locations: {},
|
|
16
|
-
enabledLocations: {}
|
|
17
|
-
},
|
|
18
|
-
setup(w) {
|
|
19
|
-
const s = w, m = c(s.initialPublishedRev ?? {}), t = c(), i = c({}), L = f(() => {
|
|
20
|
-
var e;
|
|
21
|
-
return ((e = s.enabledLocations) != null && e.length ? s.enabledLocations : s.locations).map((a) => {
|
|
22
|
-
var o;
|
|
23
|
-
const h = !!(((o = m.value) == null ? void 0 : o[a.dbName]) ?? []).find((_) => _._id === s.doc._id && _._rev === s.doc._rev);
|
|
24
|
-
return {
|
|
25
|
-
...a,
|
|
26
|
-
status: h ? "published" : "outdated"
|
|
27
|
-
};
|
|
28
|
-
});
|
|
29
|
-
}), { t: u } = T(), p = c(""), b = c({
|
|
30
|
-
logic: "AND",
|
|
31
|
-
rules: []
|
|
32
|
-
}), V = [
|
|
33
|
-
{
|
|
34
|
-
type: "string",
|
|
35
|
-
key: "status",
|
|
36
|
-
entity: "inventory",
|
|
37
|
-
values: ["published", "outdated"]
|
|
38
|
-
}
|
|
39
|
-
], r = f(() => {
|
|
40
|
-
const l = p.value.toLowerCase();
|
|
41
|
-
return L.value.filter((e) => D(e, b.value)).filter(({ name: e }) => l ? e.toLowerCase().includes(l) : !0);
|
|
42
|
-
});
|
|
43
|
-
function F() {
|
|
44
|
-
const l = Object.keys(i.value).map(Number).filter((e) => i.value[e]);
|
|
45
|
-
return l.length === 0 ? r.value : l.map((e) => r.value[e]);
|
|
46
|
-
}
|
|
47
|
-
const N = [
|
|
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, a = e.status === "published";
|
|
60
|
-
return g("div", { class: "flex items-center gap-8" }, [
|
|
61
|
-
g(
|
|
62
|
-
"div",
|
|
63
|
-
{
|
|
64
|
-
class: [
|
|
65
|
-
"fm-status-badge",
|
|
66
|
-
a ? "fm-status-badge-success-secondary" : "fm-status-badge-info-secondary"
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
u(a ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
|
|
70
|
-
),
|
|
71
|
-
g(R.FmButton, {
|
|
72
|
-
class: "tertiary",
|
|
73
|
-
variant: "secondary",
|
|
74
|
-
icon: "ios_share",
|
|
75
|
-
loading: t.value === e.dbName,
|
|
76
|
-
disabled: t.value !== void 0 && t.value !== e.dbName,
|
|
77
|
-
onClick: async () => {
|
|
78
|
-
t.value = e.dbName;
|
|
79
|
-
try {
|
|
80
|
-
const n = await s.controller.publishAtLocation(e).delayed(1e3);
|
|
81
|
-
m.value = n;
|
|
82
|
-
} catch (n) {
|
|
83
|
-
console.error("Error publishing at location:", n);
|
|
84
|
-
} finally {
|
|
85
|
-
t.value = void 0;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
})
|
|
89
|
-
]);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
];
|
|
93
|
-
async function k() {
|
|
94
|
-
t.value = "all";
|
|
95
|
-
try {
|
|
96
|
-
const l = F(), e = await s.controller.publishAll(l).delayed(1e3);
|
|
97
|
-
m.value = e;
|
|
98
|
-
} catch (l) {
|
|
99
|
-
console.error("Error publishing all:", l);
|
|
100
|
-
} finally {
|
|
101
|
-
t.value = void 0;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
const B = f(() => {
|
|
105
|
-
const l = Object.values(i.value).filter(Boolean).length;
|
|
106
|
-
return l === 0 || l === r.value.length ? u("inventory.publish.actions.publishAll") : u("inventory.publish.actions.publishSelected", { count: l });
|
|
107
|
-
});
|
|
108
|
-
return (l, e) => {
|
|
109
|
-
const a = y("FmButton"), n = y("FmTextField"), h = y("FmTable");
|
|
110
|
-
return E(), P("div", z, [
|
|
111
|
-
d("div", U, [
|
|
112
|
-
d("div", j, A(l.title), 1),
|
|
113
|
-
d("div", null, [
|
|
114
|
-
v(a, {
|
|
115
|
-
label: B.value,
|
|
116
|
-
variant: "secondary",
|
|
117
|
-
onClick: e[0] || (e[0] = (o) => k()),
|
|
118
|
-
loading: t.value === "all",
|
|
119
|
-
disabled: t.value !== "all" && t.value !== void 0
|
|
120
|
-
}, null, 8, ["label", "loading", "disabled"])
|
|
121
|
-
])
|
|
122
|
-
]),
|
|
123
|
-
d("div", I, [
|
|
124
|
-
v(n, {
|
|
125
|
-
modelValue: p.value,
|
|
126
|
-
"onUpdate:modelValue": e[1] || (e[1] = (o) => p.value = o),
|
|
127
|
-
class: "w-full",
|
|
128
|
-
placeholder: x(u)("inventory.publish.search.placeholder"),
|
|
129
|
-
"prepend-icon": "search"
|
|
130
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
131
|
-
v(x(S), {
|
|
132
|
-
modelValue: b.value,
|
|
133
|
-
"onUpdate:modelValue": e[2] || (e[2] = (o) => b.value = o),
|
|
134
|
-
attributes: V
|
|
135
|
-
}, null, 8, ["modelValue"]),
|
|
136
|
-
v(h, {
|
|
137
|
-
modelValue: i.value,
|
|
138
|
-
"onUpdate:modelValue": e[3] || (e[3] = (o) => i.value = o),
|
|
139
|
-
"row-data": r.value,
|
|
140
|
-
"column-defs": N,
|
|
141
|
-
"shrink-at": 9999,
|
|
142
|
-
virtual: !0,
|
|
143
|
-
"page-size": r.value.length,
|
|
144
|
-
selection: "multiple",
|
|
145
|
-
class: "flex-1 min-h-0",
|
|
146
|
-
"hide-footer": ""
|
|
147
|
-
}, null, 8, ["modelValue", "row-data", "page-size"])
|
|
148
|
-
])
|
|
149
|
-
]);
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
export {
|
|
154
|
-
q as _
|
|
155
|
-
};
|