@feedmepos/mf-inventory-portal 1.8.0-dev.4 → 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 (129) hide show
  1. package/dist/{App-FeJnwZme.js → App-DEbWEOwe.js} +609 -558
  2. package/dist/{ApprovalView-Eo-cGWyA.js → ApprovalView-BEnYHIlU.js} +9 -9
  3. package/dist/{BindingsDialog-DkjuXydb.js → BindingsDialog-CJVkMoBS.js} +2 -2
  4. package/dist/{BindingsPicker-DUOQcOlj.js → BindingsPicker-CX9o-xdQ.js} +2 -2
  5. package/dist/{BindingsTable-CoDdU5xh.js → BindingsTable-Cil4LJ7l.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-BGh8fbEX.js → BulkReceiveRequestView-DYEc2jPw.js} +19 -19
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CStISRqy.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DoAv2mHA.js} +1 -1
  8. package/dist/{ClosingDraftView-Cwnhrv5P.js → ClosingDraftView-Bz94Iejf.js} +20 -20
  9. package/dist/{ClosingHistoryView-oHf77Lal.js → ClosingHistoryView-B479Y-mH.js} +5 -5
  10. package/dist/{ClosingTemplateView-1P8J1vAn.js → ClosingTemplateView-F_nx43n6.js} +18 -18
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BuEPaqQK.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DddYGHxQ.js} +1 -1
  12. package/dist/{DefaultView-3Z8aVFSU.js → DefaultView-CkZOl0ov.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-uT_e3Suw.js → DeliveryOrderPrintPreview-BJEpwAX6.js} +2 -2
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-BCgnXxEi.js → EmailDialog.vue_vue_type_script_setup_true_lang-BW988AoC.js} +23 -23
  15. package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Izn-hTjK.js +297 -0
  16. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BlKpGdCx.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CoUWxHlj.js} +1 -1
  17. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DKkxn1J-.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Ci81xTbl.js} +2 -2
  18. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-dOXDST-E.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CnaHTAUZ.js} +2 -2
  19. package/dist/{FmMultiselectDialog-DRxZAkcu.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-DRSzQqVJ.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-N9U7tdI_.js → IngredientsView-lDypeR4c.js} +34 -35
  24. package/dist/{IntegrationExplorerView-CjmeGQ14.js → IntegrationExplorerView-DgOFGj7H.js} +4 -4
  25. package/dist/{IntegrationView-DAdpmuxx.js → IntegrationView-0sbjINo5.js} +973 -974
  26. package/dist/{InventoryBindingForm-CAj3MurI.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-B-1OBUdw.js → InventoryBindingSummary-CsfNKd1r.js} +1 -1
  29. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CUYYEuW3.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C32OoIBz.js} +1 -1
  30. package/dist/{ProductionRunDetailView-eFvl8-By.js → ProductionRunDetailView-BxbDtGMo.js} +4 -4
  31. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-DaC7e4qS.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BdJVvwSP.js} +9 -9
  32. package/dist/{ProductionRunView-C_NJJKLr.js → ProductionRunView-CJhNEIzT.js} +3 -3
  33. package/dist/{PublishView-BglAEkzU.js → PublishView-vkt6-D6P.js} +3 -3
  34. package/dist/{PurchaseOrderPrintPreview-BTF9ikpQ.js → PurchaseOrderPrintPreview-25dHfVKp.js} +2 -2
  35. package/dist/{ReceiveRequestView-BUvehG10.js → ReceiveRequestView-BO4Z2dZu.js} +13 -13
  36. package/dist/RecipeView-B_AE7QQv.js +3428 -0
  37. package/dist/{SettingsView-DRR86cHo.js → SettingsView-qTUvQCuu.js} +164 -168
  38. package/dist/{StockView-D1oEnbZp.js → StockView-yh6qkYUS.js} +267 -267
  39. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxU92-io.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Cn_fx9qG.js} +1 -1
  40. package/dist/{SupplierView-D68wz0-g.js → SupplierView-Dqzu1Bvh.js} +14 -14
  41. package/dist/{SurchargeView-Cw9rTw2h.js → SurchargeView-CDosn36c.js} +7 -7
  42. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Az-a1Dsp.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DZ3Gdlp9.js} +2 -2
  43. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C-sxbacO.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CWoh2FqQ.js} +1 -1
  44. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CsHfLaCv.js → TransferDetails.vue_vue_type_script_setup_true_lang-BtjKnIwf.js} +690 -666
  45. package/dist/{TransferTemplateView-CHPJMjYC.js → TransferTemplateView-fDZcC9i4.js} +20 -20
  46. package/dist/{UnitCostHistoryView-DM8OzWhe.js → UnitCostHistoryView-CmTTIXAp.js} +4 -4
  47. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DpwK5mFH.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DZihCM0T.js} +4 -4
  48. package/dist/{UnitView-90uR-ZzQ.js → UnitView-BTx59sFK.js} +8 -8
  49. package/dist/{WarehouseView-Bulg6Vac.js → WarehouseView-BIFe08FJ.js} +8 -8
  50. package/dist/{WastageTemplateView-BmAHnnwm.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-Ccdgbe4f.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-DuBZxoXx.js → closing-template-FgcLy4RT.js} +1 -1
  57. package/dist/{date2-IBrLdtni.js → date2-Rv4IwT9a.js} +1 -1
  58. package/dist/{dayjs.min-DEkq-Hpp.js → dayjs.min-DOq1QM_M.js} +1 -1
  59. package/dist/{decimal-g6jRdlSk.js → decimal-7vA05AaD.js} +2 -2
  60. package/dist/{defineDeepModel-P5a5Ffpn.js → defineDeepModel-22Md2SKY.js} +1 -1
  61. package/dist/{duplicate-template-Do8s80ei.js → duplicate-template-D2tjCY7C.js} +1 -1
  62. package/dist/{feature-ChVm5JED.js → feature-BMTKl6PK.js} +1999 -3092
  63. package/dist/feature-flags/portal-feature-catalog.d.ts +0 -2
  64. package/dist/{format-time-from-id-BgbBOII7.js → format-time-from-id-DXhm_Ji1.js} +1 -1
  65. package/dist/{format-unit-display-hSXy2iu6.js → format-unit-display-DxWLjFPz.js} +13 -13
  66. package/dist/helper/menu-usage-module.d.ts +1 -1
  67. package/dist/{id-to-date-DlGYysU8.js → id-to-date-VKlOL3mN.js} +1 -1
  68. package/dist/{import-export.helper-LrZhiz2W.js → import-export.helper-BiF5aKUp.js} +6 -6
  69. package/dist/{index-BTNJ1fk2.js → index-DEl_gZn0.js} +3 -3
  70. package/dist/{index-DsOmtywr.js → index-DdtsVAcv.js} +1 -1
  71. package/dist/{index-DCiNwlw2.js → index-DoBWE4Ci.js} +1 -1
  72. package/dist/{lz-string-DRuyjE9G.js → lz-string-BwQj8QRN.js} +1 -1
  73. package/dist/{netsuite-B6y8GZCP.js → netsuite-s1S33-lP.js} +2 -2
  74. package/dist/{number-Besn-1-5.js → number-BmKjsNrc.js} +3 -3
  75. package/dist/{predefined-templates-D92mN_2S.js → predefined-templates-BZ2KqNix.js} +1 -1
  76. package/dist/{purchase-order-template-hvq2pfWx.js → purchase-order-template-CINU4my1.js} +1 -1
  77. package/dist/{recalculationUtils-BlZR5O2G.js → recalculationUtils-R5tFu_ts.js} +1 -1
  78. package/dist/router/name.d.ts +0 -1
  79. package/dist/{row-action.enum-R2bi3eAv.js → row-action.enum-ePO-Py0V.js} +1 -1
  80. package/dist/{rules-DzwoRKUS.js → rules-BZrZVzw7.js} +2 -2
  81. package/dist/{stock-Cq37EARQ.js → stock-C2HOKq0k.js} +8 -8
  82. package/dist/{stock-oJqnUrtt.js → stock-Ce1UvAZ3.js} +1 -1
  83. package/dist/stores/feature.d.ts +9 -9
  84. package/dist/stores/inventory.d.ts +0 -47
  85. package/dist/stores/supplier.d.ts +1 -1
  86. package/dist/style.css +1 -1
  87. package/dist/{supplier-DtdwvcPr.js → supplier-DgT66emI.js} +2 -2
  88. package/dist/{surcharge-CjdJGIsM.js → surcharge-CsVMuzPM.js} +1 -1
  89. package/dist/tsconfig.app.tsbuildinfo +1 -1
  90. package/dist/{uom-rules-BqPn_GoZ.js → uom-rules-CR1XukyM.js} +1 -1
  91. package/dist/{use-ingredient-select-dialog-0hRCj6Fu.js → use-ingredient-select-dialog-CJkG4hEX.js} +2 -2
  92. package/dist/use-inventory-binding-dialog-B36kPj4V.js +113 -0
  93. package/dist/{use-template-enabled-locations-8ZfTj4YB.js → use-template-enabled-locations-Boa9QLPV.js} +2 -2
  94. package/dist/{use-transfer-locations-BGS1EBEt.js → use-transfer-locations-BxOygSUg.js} +2 -2
  95. package/dist/{useHrmPermission-BcQ2KPD-.js → useHrmPermission-DLHAqbLV.js} +1 -1
  96. package/dist/{useNavigationMenu-DImtns81.js → useNavigationMenu-D6abZMGz.js} +65 -74
  97. package/dist/{useSseClient-DPSFFVci.js → useSseClient-C7pff-EW.js} +1 -1
  98. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -1
  99. package/dist/views/ingredients/components/inventory-binding/composables/use-inventory-binding-dialog.d.ts +0 -1
  100. package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -1
  101. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +0 -1
  102. package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +1 -1
  103. package/dist/views/integration/components/IntegrationCard.vue.d.ts +3 -3
  104. package/dist/views/recipe/helper/bulk-edit-simulation.helper.d.ts +0 -1
  105. package/dist/views/recipe/helper/import-recipe.d.ts +2 -2
  106. package/dist/{vue-i18n-DTyGIjTI.js → vue-i18n-CpOOFhVU.js} +219 -219
  107. package/dist/{xlsx.util-CK9Lnq3Q.js → xlsx.util-xwI5tVz6.js} +2 -2
  108. package/package.json +4 -4
  109. package/dist/DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-D_vmtZDZ.js +0 -58
  110. package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-D-RzUmqA.js +0 -81
  111. package/dist/FmMultiselectDialog-C8uYx8rr.js +0 -77
  112. package/dist/ImportView-Qigtf3ik.js +0 -1302
  113. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-B8PJeYrP.js +0 -51
  114. package/dist/IngredientGroupView-RNYZLkQu.js +0 -1000
  115. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-3pYuu62C.js +0 -563
  116. package/dist/RecipeView-DO5-jgwh.js +0 -3624
  117. package/dist/feature-flags/premium-flags.spec.d.ts +0 -1
  118. package/dist/random-CSbEbElR.js +0 -10
  119. package/dist/use-inventory-binding-dialog-BLRcIC1u.js +0 -152
  120. package/dist/usePromise-CbVUCxhj.js +0 -29
  121. package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +0 -3
  122. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +0 -31
  123. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +0 -10
  124. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +0 -21
  125. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +0 -12
  126. package/dist/views/ingredient-group/components/ingredient-group-rule-field/IngredientGroupRuleField.vue.d.ts +0 -37
  127. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +0 -24
  128. package/dist/views/ingredient-group/composables/use-ingredient-group-rule-item.d.ts +0 -31
  129. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +0 -77
@@ -1,5 +1,5 @@
1
- import "./dayjs.min-DEkq-Hpp.js";
2
- import "./app-Ccdgbe4f.js";
1
+ import "./dayjs.min-DOq1QM_M.js";
2
+ import "./app-DyEvx3Em.js";
3
3
  var Fn = {};
4
4
  /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
5
5
  var cn = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-inventory-portal",
3
- "version": "1.8.0-dev.4",
3
+ "version": "1.8.0-dev.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -52,12 +52,12 @@
52
52
  "vue-router": "^4.4.0",
53
53
  "xlsx": "^0.18.5",
54
54
  "@feedmepos/inventory-core": "^1.0.2-dev.8",
55
- "@feedmepos/inventory-core-2": "^2.0.0",
56
55
  "@feedmepos/inventory-core-dart": "^1.0.0",
57
56
  "@feedmepos/codemax-core": "^1.0.0",
58
- "@feedmepos/inventory-core-js": "^1.0.1",
57
+ "@feedmepos/inventory-core-2": "^2.0.0",
59
58
  "@feedmepos/netsuite-core": "^1.0.0",
60
- "@feedmepos/zod-inventory": "^2.0.0"
59
+ "@feedmepos/zod-inventory": "^2.0.0",
60
+ "@feedmepos/inventory-core-js": "^1.0.1"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@playwright/test": "1.61.1",
@@ -1,58 +0,0 @@
1
- import { defineComponent as y, mergeModels as i, useModel as g, resolveComponent as n, createBlock as _, openBlock as x, withCtx as a, createElementVNode as o, toDisplayString as b, createVNode as l } from "vue";
2
- import { D as w } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-D-RzUmqA.js";
3
- const V = { class: "flex items-center gap-8" }, C = { class: "flex flex-col gap-8 text-fm-color-typo-secondary" }, D = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary" }, B = /* @__PURE__ */ y({
4
- __name: "DeprecateSoonWarningDialog",
5
- props: /* @__PURE__ */ i({
6
- featureName: {}
7
- }, {
8
- modelValue: { type: Boolean, required: !0 },
9
- modelModifiers: {}
10
- }),
11
- emits: /* @__PURE__ */ i(["proceed"], ["update:modelValue"]),
12
- setup(m, { emit: d }) {
13
- const t = g(m, "modelValue"), p = d;
14
- function u() {
15
- t.value = !1, p("proceed");
16
- }
17
- return (c, e) => {
18
- const f = n("FmSpacer"), r = n("FmButton"), v = n("FmDialog");
19
- return x(), _(v, {
20
- modelValue: t.value,
21
- "onUpdate:modelValue": e[1] || (e[1] = (s) => t.value = s),
22
- overlay: !0,
23
- "close-button": "",
24
- dismissAway: "",
25
- "max-width": "520px"
26
- }, {
27
- "dialog-header": a(() => [
28
- o("div", V, [
29
- e[2] || (e[2] = o("span", null, "Feature removal notice", -1)),
30
- l(w)
31
- ])
32
- ]),
33
- "dialog-footer": a(() => [
34
- l(f, { class: "sm:hidden xs:hidden" }),
35
- l(r, {
36
- variant: "tertiary",
37
- label: "Cancel",
38
- onClick: e[0] || (e[0] = (s) => t.value = !1)
39
- }),
40
- l(r, {
41
- label: "Continue",
42
- onClick: u
43
- })
44
- ]),
45
- default: a(() => [
46
- o("div", C, [
47
- o("p", D, b(c.featureName ?? "This feature") + " will be removed in a future release. ", 1),
48
- e[3] || (e[3] = o("p", { class: "fm-typo-en-body-sm-400" }, " You can continue to use it for now, but we recommend moving to the supported workflow. ", -1))
49
- ])
50
- ]),
51
- _: 1
52
- }, 8, ["modelValue"]);
53
- };
54
- }
55
- });
56
- export {
57
- B as _
58
- };
@@ -1,81 +0,0 @@
1
- import { computed as c, defineComponent as l, resolveComponent as u, createBlock as s, createCommentVNode as i, openBlock as a, createElementBlock as p, createVNode as d, createTextVNode as g } from "vue";
2
- import { g as y, u as _ } from "./feature-ChVm5JED.js";
3
- import { useCoreStore as F } from "@feedmepos/mf-common";
4
- import { u as S } from "./app-Ccdgbe4f.js";
5
- import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- function N() {
7
- const r = _(), e = F(), n = S();
8
- return c(() => {
9
- var t, o;
10
- return {
11
- isFlagOn: (m) => r.isFlagOn(m),
12
- businessId: (t = e.currentBusiness.value) == null ? void 0 : t._id,
13
- locationId: (o = n._currentLocation) == null ? void 0 : o.doc._id
14
- };
15
- });
16
- }
17
- function v(r) {
18
- var t;
19
- const e = _();
20
- return (((t = y(r ?? "")) == null ? void 0 : t.flagKeys) ?? []).some((o) => e.isFlagOn(o));
21
- }
22
- const x = /* @__PURE__ */ l({
23
- __name: "PlanTierBadge",
24
- props: {
25
- tier: {}
26
- },
27
- setup(r) {
28
- return (e, n) => {
29
- const t = u("FmPill");
30
- return e.tier === "premium" ? (a(), s(t, {
31
- key: 0,
32
- variant: "premium"
33
- })) : i("", !0);
34
- };
35
- }
36
- }), P = {}, B = { class: "inline-flex items-center gap-1 rounded-full border border-fm-color-state-warning-base bg-fm-color-state-warning-subtle px-2 py-0.5 text-xs font-medium text-fm-color-state-warning-base" };
37
- function k(r, e) {
38
- const n = u("FmIcon");
39
- return a(), p("span", B, [
40
- d(n, {
41
- name: "warning",
42
- size: "sm"
43
- }),
44
- e[0] || (e[0] = g(" Deprecate Soon "))
45
- ]);
46
- }
47
- const C = /* @__PURE__ */ b(P, [["render", k]]), h = { class: "inline-flex items-center gap-1" }, V = /* @__PURE__ */ l({
48
- __name: "FeatureCapabilityBadge",
49
- props: {
50
- tier: {},
51
- category: {},
52
- deprecateSoon: { type: Boolean },
53
- featureKey: {},
54
- informative: { type: Boolean }
55
- },
56
- setup(r) {
57
- const e = r, n = c(() => v(e.featureKey)), t = c(
58
- () => e.tier === "premium" && (e.informative || !n.value)
59
- );
60
- return (o, m) => {
61
- const f = u("FmPill");
62
- return a(), p("span", h, [
63
- o.deprecateSoon ? (a(), s(C, { key: 0 })) : i("", !0),
64
- o.category === "beta" ? (a(), s(f, {
65
- key: 1,
66
- variant: "beta"
67
- })) : i("", !0),
68
- t.value ? (a(), s(x, {
69
- key: 2,
70
- tier: o.tier
71
- }, null, 8, ["tier"])) : i("", !0)
72
- ]);
73
- };
74
- }
75
- });
76
- export {
77
- C as D,
78
- x as _,
79
- V as a,
80
- N as u
81
- };
@@ -1,77 +0,0 @@
1
- import { defineStore as p } from "pinia";
2
- import { useDialog as y } from "@feedmepos/ui-library";
3
- import { useI18n as v } from "@feedmepos/mf-common";
4
- import { a } from "./FmMultiselectDialog-DRxZAkcu.js";
5
- import { h as S } from "vue";
6
- const w = p("inventoryMultiSelectDialog", () => {
7
- const l = y(), { t: n } = v();
8
- return { multiSelect: async (s, t, c) => {
9
- const o = c ?? ((e) => e), { promise: i, resolve: r } = Promise.withResolvers();
10
- return l.open({
11
- title: "Select items",
12
- closeButton: !0,
13
- contentComponent: a,
14
- contentComponentProps: {
15
- modelValue: t ?? [],
16
- items: s,
17
- virtualScroll: !0,
18
- onClose: () => r(null)
19
- },
20
- primaryActions: {
21
- text: n("common.confirm"),
22
- close: !0
23
- },
24
- secondaryActions: {
25
- text: n("common.close"),
26
- close: !0,
27
- variant: "tertiary"
28
- }
29
- }).onPrimary((e) => {
30
- const m = e.map((u) => o(u));
31
- r(m);
32
- }), i;
33
- }, singleSelect: async (s, t, c) => {
34
- const o = c ?? ((e) => e), { promise: i, resolve: r } = Promise.withResolvers();
35
- return l.open({
36
- title: "Select items",
37
- closeButton: !0,
38
- contentComponent: a,
39
- contentComponentProps: {
40
- modelValue: t ? [t] : [],
41
- items: s,
42
- virtualScroll: !0,
43
- onClose: () => r(void 0),
44
- singleSelect: !0
45
- },
46
- primaryActions: {
47
- text: n("common.confirm"),
48
- close: !0
49
- },
50
- secondaryActions: {
51
- text: n("common.close"),
52
- close: !0,
53
- variant: "tertiary"
54
- }
55
- }).onPrimary((e) => {
56
- if (!e.length)
57
- return r(null);
58
- const m = o(e[0]);
59
- r(m);
60
- }), i;
61
- }, alert: (s, t) => {
62
- const { promise: c, resolve: o } = Promise.withResolvers();
63
- return l.open({
64
- title: s,
65
- closeButton: !0,
66
- contentComponent: typeof t == "string" ? S("div", t) : t,
67
- secondaryActions: {
68
- text: n("common.close"),
69
- close: !0,
70
- variant: "tertiary"
71
- }
72
- }).onSecondary(() => o()).onClose(() => o()), c;
73
- } };
74
- });
75
- export {
76
- w as u
77
- };