@feedmepos/mf-inventory-portal 1.8.0-dev.3 → 1.8.0-dev.5

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 (133) hide show
  1. package/dist/App-DEbWEOwe.js +1537 -0
  2. package/dist/{ApprovalView-hV1msz5Y.js → ApprovalView-BEnYHIlU.js} +9 -9
  3. package/dist/{BindingsDialog-BX1Lopf0.js → BindingsDialog-CJVkMoBS.js} +2 -2
  4. package/dist/{BindingsPicker-BNKW8-XY.js → BindingsPicker-CX9o-xdQ.js} +2 -2
  5. package/dist/{BindingsTable-DiLDsL83.js → BindingsTable-Cil4LJ7l.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-oQh6kFLc.js → BulkReceiveRequestView-DYEc2jPw.js} +21 -22
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BaMcGU-x.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DoAv2mHA.js} +1 -1
  8. package/dist/{ClosingDraftView-sgLoaSf4.js → ClosingDraftView-Bz94Iejf.js} +20 -20
  9. package/dist/{ClosingHistoryView-BnE9HrzA.js → ClosingHistoryView-B479Y-mH.js} +5 -5
  10. package/dist/{ClosingTemplateView-BD3Pa11r.js → ClosingTemplateView-F_nx43n6.js} +18 -18
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DlbyxkMQ.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DddYGHxQ.js} +1 -1
  12. package/dist/{DefaultView-CuzvVkfE.js → DefaultView-CkZOl0ov.js} +5 -5
  13. package/dist/{DeliveryOrderPrintPreview-w-1aAOY1.js → DeliveryOrderPrintPreview-BJEpwAX6.js} +2 -2
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-CxD12Qct.js → EmailDialog.vue_vue_type_script_setup_true_lang-BW988AoC.js} +29 -30
  15. package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CMoQKl_a.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Izn-hTjK.js} +107 -118
  16. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BqCh_vTP.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CoUWxHlj.js} +1 -1
  17. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CAXnmdUy.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Ci81xTbl.js} +2 -2
  18. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-NhOdW33O.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CnaHTAUZ.js} +2 -2
  19. package/dist/{FmMultiselectDialog-CULwA_hi.js → FmMultiselectDialog-BE8BlO6_.js} +2 -2
  20. package/dist/FmMultiselectDialog-COKgBmPZ.js +123 -0
  21. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CI3Y9kDl.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BQHd3NjM.js} +6 -6
  22. package/dist/ImportView-Crb_yrNb.js +1291 -0
  23. package/dist/{IngredientsView-pzpP6oXT.js → IngredientsView-lDypeR4c.js} +34 -35
  24. package/dist/{IntegrationExplorerView-C5aAhB6e.js → IntegrationExplorerView-DgOFGj7H.js} +4 -4
  25. package/dist/{IntegrationView-Bqun7nX0.js → IntegrationView-0sbjINo5.js} +973 -974
  26. package/dist/{InventoryBindingForm-r_Ua1C4a.js → InventoryBindingForm-BhyrjIXJ.js} +1 -1
  27. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-KCz_BQ6T.js +472 -0
  28. package/dist/{InventoryBindingSummary-BQuZLohR.js → InventoryBindingSummary-CsfNKd1r.js} +1 -1
  29. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-7r-QcJdU.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C32OoIBz.js} +1 -1
  30. package/dist/{ProductionRunDetailView-95fu_CfH.js → ProductionRunDetailView-BxbDtGMo.js} +4 -4
  31. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CdOca1tV.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BdJVvwSP.js} +9 -9
  32. package/dist/{ProductionRunView-DIjor_Ix.js → ProductionRunView-CJhNEIzT.js} +3 -3
  33. package/dist/{PublishView-DYObyHQq.js → PublishView-vkt6-D6P.js} +3 -3
  34. package/dist/{PurchaseOrderPrintPreview-C0jCmI9L.js → PurchaseOrderPrintPreview-25dHfVKp.js} +2 -2
  35. package/dist/{ReceiveRequestView-i7ibPfIE.js → ReceiveRequestView-BO4Z2dZu.js} +15 -16
  36. package/dist/RecipeView-B_AE7QQv.js +3428 -0
  37. package/dist/{SettingsView-CdBloj9k.js → SettingsView-qTUvQCuu.js} +163 -168
  38. package/dist/{StockView-g_6eJ62R.js → StockView-yh6qkYUS.js} +269 -270
  39. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-C1rKc7MA.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Cn_fx9qG.js} +1 -1
  40. package/dist/{SupplierView-DkYp_Frj.js → SupplierView-Dqzu1Bvh.js} +14 -14
  41. package/dist/{SurchargeView-CfkV4Y3y.js → SurchargeView-CDosn36c.js} +7 -7
  42. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-2MtN1p5t.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DZ3Gdlp9.js} +2 -2
  43. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CYMjKXq4.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CWoh2FqQ.js} +1 -1
  44. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D0zNr_vQ.js → TransferDetails.vue_vue_type_script_setup_true_lang-BtjKnIwf.js} +867 -844
  45. package/dist/{TransferTemplateView-Ne2gYUSn.js → TransferTemplateView-fDZcC9i4.js} +22 -23
  46. package/dist/{UnitCostHistoryView-Db0_otOb.js → UnitCostHistoryView-CmTTIXAp.js} +4 -4
  47. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BzO1lq7j.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DZihCM0T.js} +4 -4
  48. package/dist/{UnitView-CiCeQ63i.js → UnitView-BTx59sFK.js} +8 -8
  49. package/dist/{WarehouseView-BcuJSOMF.js → WarehouseView-BIFe08FJ.js} +8 -8
  50. package/dist/{WastageTemplateView-CPQmtOKQ.js → WastageTemplateView-B_oJqm0_.js} +15 -15
  51. package/dist/api/feature-flags.d.ts +2 -0
  52. package/dist/api/license.d.ts +0 -2
  53. package/dist/{app-DqJp3dcI.js → app-DyEvx3Em.js} +1628 -1817
  54. package/dist/app.d.ts +0 -150
  55. package/dist/app.js +1 -1
  56. package/dist/{closing-template-BNlgZviN.js → closing-template-FgcLy4RT.js} +1 -1
  57. package/dist/components/FeatureCapabilityBadge.vue.d.ts +1 -1
  58. package/dist/{date2-Ci7521dn.js → date2-Rv4IwT9a.js} +1 -1
  59. package/dist/{dayjs.min-Cyp32v4J.js → dayjs.min-DOq1QM_M.js} +1 -1
  60. package/dist/{decimal-BGdm5R3A.js → decimal-7vA05AaD.js} +2 -2
  61. package/dist/{defineDeepModel-B2cJ-rtd.js → defineDeepModel-22Md2SKY.js} +1 -1
  62. package/dist/{duplicate-template-By5WeKZ0.js → duplicate-template-D2tjCY7C.js} +1 -1
  63. package/dist/{core-Js7d-3Pv.js → feature-BMTKl6PK.js} +732 -389
  64. package/dist/feature-flags/core.d.ts +3 -2
  65. package/dist/feature-flags/portal-feature-catalog.d.ts +0 -5
  66. package/dist/feature-flags/vue.d.ts +2 -0
  67. package/dist/{format-time-from-id-Q8C2P96H.js → format-time-from-id-DXhm_Ji1.js} +1 -1
  68. package/dist/{format-unit-display-CICrmm8r.js → format-unit-display-DxWLjFPz.js} +13 -13
  69. package/dist/helper/menu-usage-module.d.ts +1 -1
  70. package/dist/{id-to-date-DeN5x0LR.js → id-to-date-VKlOL3mN.js} +1 -1
  71. package/dist/{import-export.helper-BOTQWxr6.js → import-export.helper-BiF5aKUp.js} +28 -28
  72. package/dist/{index-BbbqCCfp.js → index-DEl_gZn0.js} +3 -3
  73. package/dist/{index-tCYhLCKP.js → index-DdtsVAcv.js} +1 -1
  74. package/dist/{index-Cxm3Sgfv.js → index-DoBWE4Ci.js} +1 -1
  75. package/dist/{lz-string-Dy4Pg8mh.js → lz-string-BwQj8QRN.js} +1 -1
  76. package/dist/{netsuite-BaJjkDM8.js → netsuite-s1S33-lP.js} +2 -2
  77. package/dist/{number-CB36d2PQ.js → number-BmKjsNrc.js} +3 -3
  78. package/dist/{predefined-templates-DLm93Bpx.js → predefined-templates-BZ2KqNix.js} +1 -1
  79. package/dist/{purchase-order-template-CDhn9ZIF.js → purchase-order-template-CINU4my1.js} +1 -1
  80. package/dist/{recalculationUtils-Cqvefakh.js → recalculationUtils-R5tFu_ts.js} +1 -1
  81. package/dist/router/name.d.ts +0 -1
  82. package/dist/{row-action.enum-NTfVmGY8.js → row-action.enum-ePO-Py0V.js} +1 -1
  83. package/dist/{rules-C8dfM84-.js → rules-BZrZVzw7.js} +2 -2
  84. package/dist/{stock-BGB0Siue.js → stock-C2HOKq0k.js} +8 -8
  85. package/dist/{stock-Qu5IiN2_.js → stock-Ce1UvAZ3.js} +1 -1
  86. package/dist/stores/feature.d.ts +10 -9
  87. package/dist/stores/inventory.d.ts +0 -47
  88. package/dist/stores/supplier.d.ts +1 -1
  89. package/dist/style.css +1 -1
  90. package/dist/{supplier-CZdNOSMN.js → supplier-DgT66emI.js} +17 -17
  91. package/dist/{surcharge-Cm40oJvU.js → surcharge-CsVMuzPM.js} +1 -1
  92. package/dist/tsconfig.app.tsbuildinfo +1 -1
  93. package/dist/{uom-rules-L-IW4Nwk.js → uom-rules-CR1XukyM.js} +1 -1
  94. package/dist/{use-ingredient-select-dialog-B2TDVJM6.js → use-ingredient-select-dialog-CJkG4hEX.js} +2 -2
  95. package/dist/use-inventory-binding-dialog-B36kPj4V.js +113 -0
  96. package/dist/{use-template-enabled-locations-DYAPMvo9.js → use-template-enabled-locations-Boa9QLPV.js} +2 -2
  97. package/dist/{use-transfer-locations-w-9tymYS.js → use-transfer-locations-BxOygSUg.js} +2 -2
  98. package/dist/{useHrmPermission-BFCIo5sA.js → useHrmPermission-DLHAqbLV.js} +1 -1
  99. package/dist/{useNavigationMenu-BPHAH5sJ.js → useNavigationMenu-D6abZMGz.js} +102 -109
  100. package/dist/{useSseClient-CWjRacRs.js → useSseClient-C7pff-EW.js} +1 -1
  101. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -1
  102. package/dist/views/ingredients/components/inventory-binding/composables/use-inventory-binding-dialog.d.ts +0 -1
  103. package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -1
  104. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +0 -1
  105. package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +1 -1
  106. package/dist/views/integration/components/IntegrationCard.vue.d.ts +3 -3
  107. package/dist/views/recipe/helper/bulk-edit-simulation.helper.d.ts +0 -1
  108. package/dist/views/recipe/helper/import-recipe.d.ts +2 -2
  109. package/dist/{vue-i18n-S4YQ9w6a.js → vue-i18n-CpOOFhVU.js} +219 -219
  110. package/dist/{xlsx.util-CP8_VajN.js → xlsx.util-xwI5tVz6.js} +2 -2
  111. package/package.json +5 -5
  112. package/dist/App-DRXADP0k.js +0 -1498
  113. package/dist/DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-Bp8bjDU1.js +0 -58
  114. package/dist/FmMultiselectDialog-BqZgHP8s.js +0 -77
  115. package/dist/ImportView-DqQG673_.js +0 -1302
  116. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DfvNUu80.js +0 -51
  117. package/dist/IngredientGroupView-CyngKxPo.js +0 -1000
  118. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CYDuu4kU.js +0 -563
  119. package/dist/RecipeView-C5VO7yr3.js +0 -3625
  120. package/dist/feature-fG7d73oi.js +0 -371
  121. package/dist/index-Dqf27vLH.js +0 -841
  122. package/dist/random-CSbEbElR.js +0 -10
  123. package/dist/use-inventory-binding-dialog-BJ00hl5f.js +0 -152
  124. package/dist/usePromise-CbVUCxhj.js +0 -29
  125. package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +0 -3
  126. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +0 -31
  127. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +0 -10
  128. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +0 -21
  129. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +0 -12
  130. package/dist/views/ingredient-group/components/ingredient-group-rule-field/IngredientGroupRuleField.vue.d.ts +0 -37
  131. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +0 -24
  132. package/dist/views/ingredient-group/composables/use-ingredient-group-rule-item.d.ts +0 -31
  133. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +0 -77
@@ -1,10 +0,0 @@
1
- function* t(r) {
2
- for (; ; )
3
- yield r[Math.floor(Math.random() * r.length)];
4
- }
5
- function a(r = 4, n = t("qwertyuiopasdfghjklzxcvbnm".split(""))) {
6
- return Array.from({ length: r }).map(() => n.next().value).join("");
7
- }
8
- export {
9
- a as r
10
- };
@@ -1,152 +0,0 @@
1
- import { a as g } from "./FmMultiselectDialog-CULwA_hi.js";
2
- import { a as P } from "./app-DqJp3dcI.js";
3
- import { useDialog as E } from "@feedmepos/ui-library";
4
- function A() {
5
- const u = P(), _ = E();
6
- async function b(e, m, s, f = []) {
7
- var i, o;
8
- const y = e.filter((n) => n.type === "SKU"), l = e.filter((n) => n.type !== "SKU"), c = /* @__PURE__ */ new Set();
9
- if (s)
10
- for (const n of u.skus)
11
- !f.some((a) => a === n._id) && n._id !== s && !((o = (i = n.convert) == null ? void 0 : i.inventoryBindings) != null && o.some((a) => a.id === s)) || c.add(n._id);
12
- const t = u.skus.map((n) => ({
13
- label: n.name,
14
- sublabel: `${n.code}${c.has(n._id) ? " (Cannot bind, will cause recursive binding)" : ""}`,
15
- value: n,
16
- disabled: c.has(n._id)
17
- })), p = t.filter(
18
- (n) => y.find((d) => d.id === n.value._id) && !c.has(n.value._id)
19
- ).map((n) => n.value);
20
- _.open({
21
- title: "Select ingredients",
22
- contentComponent: g,
23
- contentComponentProps: {
24
- items: t,
25
- modelValue: p,
26
- virtualScroll: !0
27
- },
28
- primaryActions: {
29
- text: "Confirm",
30
- close: !0
31
- },
32
- secondaryActions: {
33
- text: "Close",
34
- close: !0,
35
- variant: "tertiary"
36
- }
37
- }).onPrimary((n) => {
38
- const d = [
39
- ...l,
40
- ...e.filter((a) => n.find((r) => r._id === a.id)),
41
- ...n.filter((a) => !e.find((r) => r.id === a._id)).map((a) => ({
42
- type: "SKU",
43
- id: a._id,
44
- amount: {
45
- amount: 1,
46
- precision: 0
47
- }
48
- }))
49
- ];
50
- m(d);
51
- });
52
- }
53
- async function v(e, m, s = []) {
54
- var p;
55
- const f = e.filter((i) => i.type === "RECIPE"), y = e.filter((i) => i.type !== "RECIPE"), l = /* @__PURE__ */ new Set();
56
- if (s.length)
57
- for (const i of u.recipes) {
58
- const o = ((p = u.recipeBindingFlattenCache[i._id]) == null ? void 0 : p.inventoryBindings) ?? [], n = o.some(
59
- (r) => r.bindingPaths.some((S) => s.some((h) => h === S.id))
60
- ), d = o.some(
61
- (r) => "success" in r && s.includes(r.ingredient._id)
62
- );
63
- (s.some((r) => r === i._id) || n || d) && l.add(i._id);
64
- }
65
- const c = u.recipes.filter((i) => !s.includes(i._id)).map((i) => ({
66
- label: i.name,
67
- sublabel: l.has(i._id) ? "(Cannot bind, will cause recursive binding)" : `${i.contains.length} inventory bindings`,
68
- value: i,
69
- disabled: l.has(i._id)
70
- })), t = c.filter(
71
- (i) => f.find((o) => o.id === i.value._id) && !l.has(i.value._id)
72
- ).map((i) => i.value);
73
- _.open({
74
- title: "Select recipes",
75
- contentComponent: g,
76
- contentComponentProps: {
77
- items: c,
78
- modelValue: t,
79
- virtualScroll: !0
80
- },
81
- primaryActions: {
82
- text: "Confirm",
83
- close: !0
84
- },
85
- secondaryActions: {
86
- text: "Close",
87
- close: !0,
88
- variant: "tertiary"
89
- }
90
- }).onPrimary((i) => {
91
- const o = [
92
- ...e.filter((n) => i.find((d) => d._id === n.id)),
93
- ...i.filter((n) => !e.find((d) => d.id === n._id)).map((n) => ({
94
- type: "RECIPE",
95
- id: n._id,
96
- amount: {
97
- amount: 1,
98
- precision: 0
99
- }
100
- })),
101
- ...y
102
- ];
103
- m(o);
104
- });
105
- }
106
- async function C(e, m, s = []) {
107
- const f = e.filter((t) => t.type === "SKU_GROUP"), y = e.filter((t) => t.type !== "SKU_GROUP"), l = u.skuGroups.filter((t) => !s.includes(t._id)).map((t) => ({
108
- label: t.name,
109
- value: t
110
- })), c = l.filter((t) => f.find((p) => p.id === t.value._id)).map((t) => t.value);
111
- _.open({
112
- title: "Select ingredient group",
113
- contentComponent: g,
114
- contentComponentProps: {
115
- items: l,
116
- modelValue: c,
117
- virtualScroll: !0
118
- },
119
- primaryActions: {
120
- text: "Confirm",
121
- close: !0
122
- },
123
- secondaryActions: {
124
- text: "Close",
125
- close: !0,
126
- variant: "tertiary"
127
- }
128
- }).onPrimary((t) => {
129
- const p = [
130
- ...e.filter((i) => t.find((o) => o._id === i.id)),
131
- ...t.filter((i) => !e.find((o) => o.id === i._id)).map((i) => ({
132
- type: "SKU_GROUP",
133
- id: i._id,
134
- amount: {
135
- amount: 1,
136
- precision: 0
137
- }
138
- })),
139
- ...y
140
- ];
141
- m(p);
142
- });
143
- }
144
- return {
145
- promptIngredientsBinding: b,
146
- promptRecipesBinding: v,
147
- promptIngredientGroupsBinding: C
148
- };
149
- }
150
- export {
151
- A as u
152
- };
@@ -1,29 +0,0 @@
1
- import { ref as c } from "vue";
2
- var n = /* @__PURE__ */ ((r) => (r.loading = "loading", r.error = "error", r.success = "success", r))(n || {});
3
- function i(r) {
4
- const e = c({
5
- state: "loading"
6
- /* loading */
7
- }), s = async (a) => {
8
- const t = a || r;
9
- if (!t) {
10
- e.value = { state: "error", error: new Error("No promise task provided") };
11
- return;
12
- }
13
- e.value = {
14
- state: "loading"
15
- /* loading */
16
- };
17
- try {
18
- const o = await t();
19
- e.value = { state: "success", data: o };
20
- } catch (o) {
21
- e.value = { state: "error", error: o };
22
- }
23
- };
24
- return r && s(), { result: e, execute: s };
25
- }
26
- export {
27
- n as R,
28
- i as u
29
- };
@@ -1,3 +0,0 @@
1
- import '@/extensions/array';
2
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3
- export default _default;
@@ -1,31 +0,0 @@
1
- import type { IngredientGroupDialogProps } from './IngredientGroupDialogProps';
2
- import { FormMode } from '@/components/form/form-mode.enum';
3
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IngredientGroupDialogProps>, {
4
- mode: FormMode;
5
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- "update:show": (show: boolean) => void;
7
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IngredientGroupDialogProps>, {
8
- mode: FormMode;
9
- }>>> & Readonly<{
10
- "onUpdate:show"?: ((show: boolean) => any) | undefined;
11
- }>, {
12
- mode: FormMode;
13
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
14
- export default _default;
15
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
- type __VLS_TypePropsToRuntimeProps<T> = {
17
- [K in keyof T]-?: {} extends Pick<T, K> ? {
18
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
- } : {
20
- type: import('vue').PropType<T[K]>;
21
- required: true;
22
- };
23
- };
24
- type __VLS_WithDefaults<P, D> = {
25
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
26
- default: D[K];
27
- }> : P[K];
28
- };
29
- type __VLS_Prettify<T> = {
30
- [K in keyof T]: T[K];
31
- } & {};
@@ -1,10 +0,0 @@
1
- import type { FormMode } from '@/components/form/form-mode.enum';
2
- export type IngredientGroupDialogModelValue = FdoInventorySkuGroup;
3
- export interface IngredientGroupDialogProps {
4
- show?: boolean;
5
- mode?: FormMode;
6
- modelValue?: IngredientGroupDialogModelValue;
7
- }
8
- export interface IngredientGroupDialogEvents {
9
- (event: 'update:show', show: boolean): void;
10
- }
@@ -1,21 +0,0 @@
1
- import type { IngredientGroupFormProps } from './IngredientGroupFormProps';
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IngredientGroupFormProps>>, {
3
- validateInputs: () => void;
4
- resetInputsValidation: () => void;
5
- resetInputs: () => void;
6
- getFormData?: (() => unknown) | undefined;
7
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
- "validation-success": () => void;
9
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IngredientGroupFormProps>>> & Readonly<{
10
- "onValidation-success"?: (() => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
- export default _default;
13
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
- type __VLS_TypePropsToRuntimeProps<T> = {
15
- [K in keyof T]-?: {} extends Pick<T, K> ? {
16
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
- } : {
18
- type: import('vue').PropType<T[K]>;
19
- required: true;
20
- };
21
- };
@@ -1,12 +0,0 @@
1
- import type { FormMode } from '@/components/form/form-mode.enum';
2
- import type { FdoMenuV4 } from '@feedmepos/menu/entity';
3
- export type IngredientGroupFormModelValue = FdoInventorySkuGroup;
4
- export interface IngredientGroupFormProps {
5
- mode?: FormMode;
6
- disabled?: boolean;
7
- modelValue?: IngredientGroupFormModelValue;
8
- menu?: FdoMenuV4;
9
- }
10
- export interface IngredientGroupFormEvents {
11
- (event: 'validation-success'): void;
12
- }
@@ -1,37 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
- disabled?: boolean | undefined;
3
- modelValue?: {
4
- rule?: any;
5
- _id: string;
6
- name: string;
7
- skuRefs: {
8
- default?: boolean | null | undefined;
9
- trackingMeasurement?: string | null | undefined;
10
- priority?: number | null | undefined;
11
- _id: string;
12
- }[];
13
- } | null | undefined;
14
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
15
- disabled?: boolean | undefined;
16
- modelValue?: {
17
- rule?: any;
18
- _id: string;
19
- name: string;
20
- skuRefs: {
21
- default?: boolean | null | undefined;
22
- trackingMeasurement?: string | null | undefined;
23
- priority?: number | null | undefined;
24
- _id: string;
25
- }[];
26
- } | null | undefined;
27
- }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
- export default _default;
29
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
- type __VLS_TypePropsToRuntimeProps<T> = {
31
- [K in keyof T]-?: {} extends Pick<T, K> ? {
32
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
33
- } : {
34
- type: import('vue').PropType<T[K]>;
35
- required: true;
36
- };
37
- };
@@ -1,24 +0,0 @@
1
- import { type Ref } from 'vue';
2
- import type { IngredientGroupDialogProps } from '../components/ingredient-group-dialog/IngredientGroupDialogProps';
3
- export declare const useIngredientGroupActions: import("pinia").StoreDefinition<"ingredientGroupactions", import("pinia")._UnwrapAll<Pick<{
4
- createIngredientGroup: () => void;
5
- updateIngredientGroup: (data: FdoInventorySkuGroup) => Promise<void>;
6
- deleteIngredientGroup: (group: FdoInventorySkuGroup, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
7
- importIngredientGroups: () => void;
8
- exportIngredientGroups: () => void;
9
- ingredientGroupDialogProps: Ref<IngredientGroupDialogProps | undefined, IngredientGroupDialogProps | undefined>;
10
- }, "ingredientGroupDialogProps">>, Pick<{
11
- createIngredientGroup: () => void;
12
- updateIngredientGroup: (data: FdoInventorySkuGroup) => Promise<void>;
13
- deleteIngredientGroup: (group: FdoInventorySkuGroup, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
14
- importIngredientGroups: () => void;
15
- exportIngredientGroups: () => void;
16
- ingredientGroupDialogProps: Ref<IngredientGroupDialogProps | undefined, IngredientGroupDialogProps | undefined>;
17
- }, never>, Pick<{
18
- createIngredientGroup: () => void;
19
- updateIngredientGroup: (data: FdoInventorySkuGroup) => Promise<void>;
20
- deleteIngredientGroup: (group: FdoInventorySkuGroup, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
21
- importIngredientGroups: () => void;
22
- exportIngredientGroups: () => void;
23
- ingredientGroupDialogProps: Ref<IngredientGroupDialogProps | undefined, IngredientGroupDialogProps | undefined>;
24
- }, "createIngredientGroup" | "updateIngredientGroup" | "deleteIngredientGroup" | "importIngredientGroups" | "exportIngredientGroups">>;
@@ -1,31 +0,0 @@
1
- import { type ColumnDef } from '@tanstack/vue-table';
2
- export declare const enum ItemColumn {
3
- Delete = "delete",
4
- SkuRef = "skuRef",
5
- UnitOption = "unitOption",
6
- Unit = "unit",
7
- Priority = "priority",
8
- Default = "default",
9
- Move = "move"
10
- }
11
- export declare function useIngredientGroupRuleItem(controller: {
12
- get disabled(): boolean | undefined | null;
13
- get skuRefs(): FdoSkuGroupRuleSkuRef[];
14
- set skuRefs(value: FdoSkuGroupRuleSkuRef[]);
15
- isDefaultList: boolean;
16
- allowOverride?: boolean;
17
- }): {
18
- readonly columnDefs: ColumnDef<{
19
- default?: boolean | null | undefined;
20
- trackingMeasurement?: string | null | undefined;
21
- priority?: number | null | undefined;
22
- _id: string;
23
- }>[];
24
- promptAddIngredient: () => Promise<void>;
25
- columnVisibility: {
26
- readonly delete: boolean;
27
- readonly unit: boolean;
28
- readonly unitOption: boolean;
29
- readonly move: false;
30
- };
31
- };
@@ -1,77 +0,0 @@
1
- import { type ColumnDef } from '@feedmepos/ui-library';
2
- export declare const useIngredientGroupTable: import("pinia").StoreDefinition<"ingredientGroupTable", import("pinia")._UnwrapAll<Pick<{
3
- fetchIngredientGroups: () => Promise<void>;
4
- loading: import("vue").Ref<boolean, boolean>;
5
- columnDefs: import("vue").ComputedRef<ColumnDef<{
6
- rules?: {
7
- rule?: any;
8
- _id: string;
9
- name: string;
10
- skuRefs: {
11
- default?: boolean | null | undefined;
12
- trackingMeasurement?: string | null | undefined;
13
- priority?: number | null | undefined;
14
- _id: string;
15
- }[];
16
- }[] | null | undefined;
17
- ref?: string | null | undefined;
18
- defaultSkuRefs?: {
19
- default?: boolean | null | undefined;
20
- trackingMeasurement?: string | null | undefined;
21
- priority?: number | null | undefined;
22
- _id: string;
23
- }[] | null | undefined;
24
- _id: string;
25
- name: string;
26
- }>[]>;
27
- }, "loading">>, Pick<{
28
- fetchIngredientGroups: () => Promise<void>;
29
- loading: import("vue").Ref<boolean, boolean>;
30
- columnDefs: import("vue").ComputedRef<ColumnDef<{
31
- rules?: {
32
- rule?: any;
33
- _id: string;
34
- name: string;
35
- skuRefs: {
36
- default?: boolean | null | undefined;
37
- trackingMeasurement?: string | null | undefined;
38
- priority?: number | null | undefined;
39
- _id: string;
40
- }[];
41
- }[] | null | undefined;
42
- ref?: string | null | undefined;
43
- defaultSkuRefs?: {
44
- default?: boolean | null | undefined;
45
- trackingMeasurement?: string | null | undefined;
46
- priority?: number | null | undefined;
47
- _id: string;
48
- }[] | null | undefined;
49
- _id: string;
50
- name: string;
51
- }>[]>;
52
- }, "columnDefs">, Pick<{
53
- fetchIngredientGroups: () => Promise<void>;
54
- loading: import("vue").Ref<boolean, boolean>;
55
- columnDefs: import("vue").ComputedRef<ColumnDef<{
56
- rules?: {
57
- rule?: any;
58
- _id: string;
59
- name: string;
60
- skuRefs: {
61
- default?: boolean | null | undefined;
62
- trackingMeasurement?: string | null | undefined;
63
- priority?: number | null | undefined;
64
- _id: string;
65
- }[];
66
- }[] | null | undefined;
67
- ref?: string | null | undefined;
68
- defaultSkuRefs?: {
69
- default?: boolean | null | undefined;
70
- trackingMeasurement?: string | null | undefined;
71
- priority?: number | null | undefined;
72
- _id: string;
73
- }[] | null | undefined;
74
- _id: string;
75
- name: string;
76
- }>[]>;
77
- }, "fetchIngredientGroups">>;