@feedmepos/mf-inventory-portal 1.2.64 → 1.2.66-dev.1

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.
Files changed (142) hide show
  1. package/dist/{App-apJIvz1w.js → App-BUNonuLz.js} +82 -78
  2. package/dist/{ApprovalView-CnT6gEI8.js → ApprovalView-BlS1tfbh.js} +6 -6
  3. package/dist/{BindingsDialog-DLEGDbV2.js → BindingsDialog-tRpsVTm0.js} +5 -5
  4. package/dist/{BindingsPicker-1Xt1vCu9.js → BindingsPicker-CUvkqcAG.js} +3 -3
  5. package/dist/{BindingsTable-_0cOM0Kx.js → BindingsTable-B86pWYMk.js} +5 -5
  6. package/dist/{ClosingDraftView-DsVPsN87.js → ClosingDraftView-gMVnQcWw.js} +226 -224
  7. package/dist/ClosingHistoryView-DhbE1pEl.js +1147 -0
  8. package/dist/{ClosingTemplateView-DB3F1wul.js → ClosingTemplateView-Ywbdj05y.js} +15 -15
  9. package/dist/{DeliveryOrderPrintPreview-CglCMgHc.js → DeliveryOrderPrintPreview-BPhVNc_r.js} +7 -7
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-MMPTJodu.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BrPh_Nvx.js} +16 -16
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CCID5O2Y.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CkUwLhut.js} +3 -3
  12. package/dist/{FmMultiselectDialog-B8xFmCsH.js → FmMultiselectDialog-C6E_KMFO.js} +1 -1
  13. package/dist/{FmMultiselectDialog-lQM1qEEW.js → FmMultiselectDialog-DBXpkw5b.js} +16 -16
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BLDz8wwK.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D-ZqJ8sU.js} +23 -22
  15. package/dist/{ImportView-DeC-MPFn.js → ImportView-DV1e51qk.js} +7 -7
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BGDZlmsr.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DkQL7hK2.js} +1 -1
  17. package/dist/{IngredientGroupView-CuFwQ8Bo.js → IngredientGroupView-CdXGO34J.js} +6 -6
  18. package/dist/{IngredientsView-CfloqEqn.js → IngredientsView-D2qffNiJ.js} +26 -25
  19. package/dist/{IntegrationView-CFU0yG6C.js → IntegrationView-RFJIHXQv.js} +19 -18
  20. package/dist/{InventoryBindingForm-i7eNurS2.js → InventoryBindingForm-CPn-IXgg.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-zOo9YVJe.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-0Vrih8D5.js} +17 -16
  22. package/dist/{InventoryBindingSummary-BbHLCdjj.js → InventoryBindingSummary-B_WUQ6By.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-NEPqmkHR.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BmDuR4Yb.js} +5 -5
  24. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DhIHSpzG.js +93 -0
  25. package/dist/{PublishView-CbwCLtph.js → PublishView-BtTSOUyL.js} +9 -9
  26. package/dist/{PurchaseOrderPrintPreview-DLhgjhHB.js → PurchaseOrderPrintPreview-CxhMPx5u.js} +11 -11
  27. package/dist/{ReceiveRequestView-CE2aQR-o.js → ReceiveRequestView-CsqEjf7r.js} +144 -142
  28. package/dist/RecipeView-DASoba97.js +1558 -0
  29. package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-mvRR4CrP.js +254 -0
  30. package/dist/StockView-B4Km4DgB.js +2395 -0
  31. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-D0BDdq4d.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Cki-LAZR.js} +1 -1
  32. package/dist/{SupplierView-wSzWjZLY.js → SupplierView-CrzFvBIx.js} +21 -20
  33. package/dist/{SurchargeView-G8OyE60y.js → SurchargeView-BoNWpxFY.js} +7 -7
  34. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CROQL761.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Dcp5vZPM.js} +3 -3
  35. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-IAknr-ye.js +292 -0
  36. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D1AGDeEP.js → TransferDetails.vue_vue_type_script_setup_true_lang-D9aNX0oM.js} +131 -130
  37. package/dist/{TransferTemplateView-CVfi8jsk.js → TransferTemplateView-DwIU0paO.js} +23 -22
  38. package/dist/UnitCostHistoryView-Bjs4RwyR.js +651 -0
  39. package/dist/UnitDisplayControl.vue_vue_type_script_setup_true_lang-BH0PxivU.js +137 -0
  40. package/dist/{UnitView-Dn3nuQHm.js → UnitView-BbQ0jOgS.js} +12 -10
  41. package/dist/{WarehouseView-GSxQ_Ev2.js → WarehouseView-DzPttKzE.js} +6 -6
  42. package/dist/WastageTemplateView-CxyZz5JC.js +2327 -0
  43. package/dist/api/adjustment-template.d.ts +1 -0
  44. package/dist/api/closing.d.ts +2 -0
  45. package/dist/api/inventory.d.ts +126 -36
  46. package/dist/api/netsuite.d.ts +8 -1
  47. package/dist/api/stock.d.ts +5 -1
  48. package/dist/api/unit-cost-history.d.ts +28 -0
  49. package/dist/{app-CYbiMVcX.js → app-EoCCjoRh.js} +9021 -7945
  50. package/dist/app.d.ts +236 -0
  51. package/dist/app.js +1 -1
  52. package/dist/{closing-template-Dq16W8vW.js → closing-template-O_hzhisU.js} +5 -1
  53. package/dist/components/TemplatePublishDialog.d.ts +1 -0
  54. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +37 -1
  55. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +14 -0
  56. package/dist/components/shell/inventory/binding-ui.vue.d.ts +16 -1
  57. package/dist/{date2-De3BHKh5.js → date2-CTHKdfXp.js} +1 -1
  58. package/dist/{dayjs.min-DxdfVXA-.js → dayjs.min-Ccv4NdEp.js} +16 -16
  59. package/dist/decimal-tRyklLh0.js +99 -0
  60. package/dist/{defineDeepModel-2n_afItE.js → defineDeepModel-rmOd66to.js} +1 -1
  61. package/dist/{duplicate-template-DM7YIgor.js → duplicate-template-k8Erwdzo.js} +1 -1
  62. package/dist/export-TmaGpV98.js +25 -0
  63. package/dist/{feature-_nNpSZuh.js → feature-D4-lt7R6.js} +94 -89
  64. package/dist/{format-time-from-id-D5HSMsS-.js → format-time-from-id-Cru7cG1h.js} +1 -1
  65. package/dist/{format-unit-display-CQUFDxVm.js → format-unit-display-DZDD796a.js} +16 -15
  66. package/dist/{import-export.helper-BoxczUsX.js → import-export.helper-BjzXGudc.js} +16 -15
  67. package/dist/{index-B6nDUCCe.js → index-BeEz64I1.js} +3 -3
  68. package/dist/{index-Cp_mpu5S.js → index-DKCY6354.js} +1471 -1412
  69. package/dist/{index-CdfF5GGW.js → index-gGbN4qbt.js} +1 -1
  70. package/dist/{lodash-2R7Rgorb.js → lodash-BSCFf0k7.js} +1 -1
  71. package/dist/{netsuite-Bss4fURp.js → netsuite-DwoCq3Mv.js} +92 -92
  72. package/dist/number-CEUoMyIk.js +138 -0
  73. package/dist/{purchase-order-template-CBSvv0b2.js → purchase-order-template-DWTdjo9l.js} +1 -1
  74. package/dist/router/name.d.ts +1 -0
  75. package/dist/rules-CyW1Bx31.js +98 -0
  76. package/dist/{stock-DMX_hH5c.js → stock-DYWJ4DZW.js} +28 -27
  77. package/dist/stock-Ds3GNgHG.js +75 -0
  78. package/dist/stores/feature.d.ts +2 -0
  79. package/dist/stores/integration/netsuite.d.ts +8 -1
  80. package/dist/stores/inventory.d.ts +120 -30
  81. package/dist/{supplier-Cf5HW15s.js → supplier-DwUb1oVo.js} +2 -2
  82. package/dist/{surcharge-CyReT8lG.js → surcharge-UTJFNBLN.js} +1 -1
  83. package/dist/tsconfig.app.tsbuildinfo +1 -1
  84. package/dist/{use-ingredient-select-dialog-BCyydlHR.js → use-ingredient-select-dialog-D8A3bPTe.js} +2 -2
  85. package/dist/{use-inventory-binding-dialog-WGQs-_2i.js → use-inventory-binding-dialog-DFmiAQ9d.js} +2 -2
  86. package/dist/{use-template-enabled-locations-2-B0nlqUjb.js → use-template-enabled-locations-2-snlITfW8.js} +2 -2
  87. package/dist/views/adjustment-template/wastage-template/table.d.ts +10 -1
  88. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +68 -12
  89. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +204 -36
  90. package/dist/views/closing-history/ClosingDetailDialog.vue.d.ts +23 -0
  91. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +8 -1
  92. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +96 -12
  93. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +96 -12
  94. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +18 -18
  95. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +14 -0
  96. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +32 -4
  97. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +28 -0
  98. package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +169 -0
  99. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +43 -0
  100. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +25 -0
  101. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +125 -0
  102. package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +129 -0
  103. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +30 -0
  104. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +4 -0
  105. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +8 -1
  106. package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +16 -2
  107. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +33 -5
  108. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +16 -2
  109. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +32 -4
  110. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
  111. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +41 -6
  112. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +246 -36
  113. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +287 -42
  114. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +16 -0
  115. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -0
  116. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +16 -2
  117. package/dist/views/stock/components/dialog/SnapshotRecalculationDialog.vue.d.ts +11 -0
  118. package/dist/views/stock/components/dialog/recalculationUtils.d.ts +16 -0
  119. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +16 -2
  120. package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +16 -2
  121. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +16 -2
  122. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -1
  123. package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +24 -3
  124. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -12
  125. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -12
  126. package/dist/views/unit-cost-history/UnitCostHistoryView.vue.d.ts +2 -0
  127. package/dist/views/unit-cost-history/components/UnitCostDetailsSideSheet.vue.d.ts +19 -0
  128. package/dist/views/unit-cost-history/components/UnitCostRecalculationDialog.vue.d.ts +11 -0
  129. package/dist/views/unit-cost-history/composables/use-unit-cost-history.d.ts +65 -0
  130. package/dist/{vue-i18n-DwS_fjo9.js → vue-i18n-CY4442Fb.js} +510 -510
  131. package/dist/{xlsx-9MOvXxhT.js → xlsx-Kc1XotGV.js} +1 -1
  132. package/dist/{xlsx.util-D1DdGA1N.js → xlsx.util-Dy4jmPyv.js} +1 -1
  133. package/package.json +1 -1
  134. package/dist/ClosingHistoryView-YrEVWvGu.js +0 -447
  135. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BDVHkTSE.js +0 -116
  136. package/dist/RecipeView-B-gmrXHR.js +0 -646
  137. package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js +0 -251
  138. package/dist/StockView-BNe2_5bA.js +0 -2520
  139. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CwV2luel.js +0 -263
  140. package/dist/WastageTemplateView-BG-y48uc.js +0 -2388
  141. package/dist/rules-T-fs8_4_.js +0 -327
  142. package/dist/stock-CFWu5bRA.js +0 -75
@@ -1,263 +0,0 @@
1
- import { defineComponent as j, ref as h, computed as r, watch as q, h as i, resolveComponent as _, openBlock as k, createElementBlock as G, createElementVNode as f, toDisplayString as H, createVNode as g, createBlock as J, createCommentVNode as O, unref as C } from "vue";
2
- import { useCoreStore as Q, useI18n as W } from "@feedmepos/mf-common";
3
- import { components as x } from "@feedmepos/ui-library";
4
- import { K as X, D as Y } from "./app-DiX-EfV6.js";
5
- import { u as Z } from "./app-CYbiMVcX.js";
6
- import { F as ee } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
7
- const le = { class: "flex flex-col gap-24" }, te = { class: "flex items-center" }, ae = { class: "fm-typo-en-body-lg-600 flex-1" }, oe = { class: "flex gap-8" }, ne = { class: "flex flex-col gap-4 w-full" }, se = { class: "flex items-center gap-8" }, be = /* @__PURE__ */ j({
8
- __name: "TemplatePublishDialog",
9
- props: {
10
- title: {},
11
- doc: {},
12
- controller: {},
13
- initialPublishedRev: {},
14
- locations: {},
15
- enabledLocations: {}
16
- },
17
- setup(F) {
18
- const o = F, b = h(o.initialPublishedRev ?? {}), t = h(), a = h(/* @__PURE__ */ new Set()), B = Z(), V = Q(), $ = r(() => {
19
- var e;
20
- return ((e = V.sessionUser.value) == null ? void 0 : e.role.isAdmin) ?? !1;
21
- }), E = r(() => {
22
- var l;
23
- return ((l = o.enabledLocations) != null && l.length ? o.enabledLocations : o.locations).map((n) => {
24
- var d;
25
- if (!!!B.locationByDbName[n.dbName])
26
- return {
27
- ...n,
28
- status: "invalid"
29
- };
30
- const s = !!(((d = b.value) == null ? void 0 : d[n.dbName]) ?? []).find(
31
- (w) => w._id === o.doc._id && (w.updatedAt ? w.updatedAt === o.doc.updatedAt : w._rev === o.doc._rev)
32
- );
33
- return {
34
- ...n,
35
- status: s ? "published" : "outdated"
36
- };
37
- });
38
- }), { t: m } = W(), y = h(""), N = h({
39
- logic: "AND",
40
- rules: []
41
- }), D = [
42
- {
43
- type: "string",
44
- key: "status",
45
- entity: "inventory",
46
- values: ["published", "outdated"]
47
- }
48
- ], p = r(() => {
49
- const e = y.value.toLowerCase();
50
- return E.value.filter((l) => X(l, N.value)).filter(({ name: l, dbName: n }) => !!(!e || l.toLowerCase().includes(e) || $.value && n.toLowerCase().includes(e)));
51
- }), u = r(
52
- () => p.value.filter((e) => e.status !== "invalid")
53
- );
54
- q(
55
- [y, N],
56
- () => {
57
- a.value = /* @__PURE__ */ new Set();
58
- },
59
- { deep: !0 }
60
- );
61
- const S = r(() => u.value.length === 0 ? !1 : u.value.every((e) => a.value.has(e.dbName))), U = r(() => {
62
- if (u.value.length === 0) return !1;
63
- const e = u.value.filter(
64
- (l) => a.value.has(l.dbName)
65
- ).length;
66
- return e > 0 && e < u.value.length;
67
- });
68
- function T() {
69
- S.value ? u.value.forEach((e) => a.value.delete(e.dbName)) : u.value.forEach((e) => a.value.add(e.dbName)), a.value = new Set(a.value);
70
- }
71
- function P(e) {
72
- e.status !== "invalid" && (a.value.has(e.dbName) ? a.value.delete(e.dbName) : a.value.add(e.dbName), a.value = new Set(a.value));
73
- }
74
- function L() {
75
- const e = p.value.filter(
76
- (l) => l.status !== "invalid" && a.value.has(l.dbName)
77
- );
78
- return e.length === 0 ? u.value : e;
79
- }
80
- const R = r(() => [
81
- {
82
- id: "checkbox",
83
- header: () => "",
84
- size: 56,
85
- cell: (e) => {
86
- const l = e.row.original;
87
- return l.status === "invalid" ? i("div", { class: "w-56" }) : i(x.FmCheckbox, {
88
- value: l.dbName,
89
- modelValue: a.value.has(l.dbName),
90
- "onUpdate:modelValue": () => P(l)
91
- });
92
- }
93
- },
94
- {
95
- id: "name",
96
- header: () => "Name",
97
- size: "auto",
98
- cell: (e) => {
99
- const l = e.row.original;
100
- return i("div", { class: "flex flex-col" }, [
101
- i("span", {}, l.name),
102
- i(
103
- ee,
104
- {},
105
- {
106
- default: () => i("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, l.dbName)
107
- }
108
- )
109
- ]);
110
- }
111
- },
112
- {
113
- id: "status",
114
- header: () => "Status",
115
- size: 200,
116
- cell: (e) => {
117
- const l = e.row.original, n = l.status === "published";
118
- if (l.status === "invalid")
119
- return i(
120
- "div",
121
- {
122
- class: ["fm-status-badge", "fm-status-badge-error-secondary"]
123
- },
124
- "Invalid"
125
- );
126
- let v;
127
- return n && o.controller.unpublishAtLocation ? v = i(x.FmButton, {
128
- variant: "tertiary",
129
- icon: "block",
130
- loading: t.value === `unpublish-${l.dbName}`,
131
- disabled: t.value !== void 0 && t.value !== `unpublish-${l.dbName}`,
132
- onClick: async () => {
133
- t.value = `unpublish-${l.dbName}`;
134
- try {
135
- const s = await o.controller.unpublishAtLocation(l).delayed(1e3);
136
- b.value = s;
137
- } catch (s) {
138
- console.error("Error unpublishing at location:", s);
139
- } finally {
140
- t.value = void 0;
141
- }
142
- }
143
- }) : v = i(x.FmButton, {
144
- variant: "tertiary",
145
- icon: "ios_share",
146
- loading: t.value === `publish-${l.dbName}`,
147
- disabled: t.value !== void 0 && t.value !== `publish-${l.dbName}`,
148
- onClick: async () => {
149
- t.value = `publish-${l.dbName}`;
150
- try {
151
- const s = await o.controller.publishAtLocation(l).delayed(1e3);
152
- b.value = s;
153
- } catch (s) {
154
- console.error("Error publishing at location:", s);
155
- } finally {
156
- t.value = void 0;
157
- }
158
- }
159
- }), i("div", { class: "flex items-center gap-8" }, [
160
- i(
161
- "div",
162
- {
163
- class: [
164
- "fm-status-badge",
165
- n ? "fm-status-badge-success-secondary" : "fm-status-badge-info-secondary"
166
- ]
167
- },
168
- m(n ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
169
- ),
170
- v
171
- ]);
172
- }
173
- }
174
- ]);
175
- async function z() {
176
- t.value = "all";
177
- try {
178
- const e = L(), l = await o.controller.publishAll(e).delayed(1e3);
179
- b.value = l;
180
- } catch (e) {
181
- console.error("Error publishing all:", e);
182
- } finally {
183
- t.value = void 0;
184
- }
185
- }
186
- async function I() {
187
- if (o.controller.unpublishAll) {
188
- t.value = "unpublish-all";
189
- try {
190
- const e = L(), l = await o.controller.unpublishAll(e).delayed(1e3);
191
- b.value = l;
192
- } catch (e) {
193
- console.error("Error unpublishing all:", e);
194
- } finally {
195
- t.value = void 0;
196
- }
197
- }
198
- }
199
- const c = r(() => p.value.filter(
200
- (e) => e.status !== "invalid" && a.value.has(e.dbName)
201
- ).length), K = r(() => c.value === 0 || c.value === u.value.length ? m("inventory.publish.actions.publishAll") : m("inventory.publish.actions.publishSelected", { count: c.value })), M = r(() => c.value === 0 || c.value === u.value.length ? "Unpublish all" : `Unpublish selected ${c.value} location${c.value === 1 ? "" : "s"}`);
202
- return (e, l) => {
203
- const n = _("FmButton"), A = _("FmTextField"), v = _("FmCheckbox"), s = _("FmTable");
204
- return k(), G("div", le, [
205
- f("div", te, [
206
- f("div", ae, H(e.title), 1),
207
- f("div", oe, [
208
- g(n, {
209
- label: K.value,
210
- variant: "secondary",
211
- onClick: l[0] || (l[0] = (d) => z()),
212
- loading: t.value === "all",
213
- disabled: t.value !== "all" && t.value !== void 0
214
- }, null, 8, ["label", "loading", "disabled"]),
215
- e.controller.unpublishAll ? (k(), J(n, {
216
- key: 0,
217
- label: M.value,
218
- variant: "tertiary",
219
- onClick: l[1] || (l[1] = (d) => I()),
220
- loading: t.value === "unpublish-all",
221
- disabled: t.value !== "unpublish-all" && t.value !== void 0
222
- }, null, 8, ["label", "loading", "disabled"])) : O("", !0)
223
- ])
224
- ]),
225
- f("div", ne, [
226
- g(A, {
227
- modelValue: y.value,
228
- "onUpdate:modelValue": l[2] || (l[2] = (d) => y.value = d),
229
- class: "w-full",
230
- placeholder: C(m)("inventory.publish.search.placeholder"),
231
- "prepend-icon": "search"
232
- }, null, 8, ["modelValue", "placeholder"]),
233
- f("div", se, [
234
- g(C(Y), {
235
- modelValue: N.value,
236
- "onUpdate:modelValue": l[3] || (l[3] = (d) => N.value = d),
237
- attributes: D
238
- }, null, 8, ["modelValue"]),
239
- g(v, {
240
- value: "select-all",
241
- "model-value": S.value,
242
- indeterminate: U.value,
243
- "onUpdate:modelValue": T,
244
- label: "Select all"
245
- }, null, 8, ["model-value", "indeterminate"])
246
- ]),
247
- g(s, {
248
- "row-data": p.value,
249
- "column-defs": R.value,
250
- "shrink-at": 9999,
251
- virtual: !0,
252
- "page-size": p.value.length,
253
- style: { height: "400px" },
254
- "hide-footer": ""
255
- }, null, 8, ["row-data", "column-defs", "page-size"])
256
- ])
257
- ]);
258
- };
259
- }
260
- });
261
- export {
262
- be as _
263
- };