@feedmepos/mf-settings 0.0.60 → 0.0.61-beta.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.
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as Ye, computed as Pe, ref as xt, watchEffect as Vt, resolveComponent as Wt, openBlock as Xe, createBlock as Qe, onMounted as Ht, unref as $t } from "vue";
2
2
  import { useRouter as jt, RouterView as Bt } from "vue-router";
3
3
  import { useI18n as Kt, useCoreStore as Ze, FeedMeAuth as qt } from "@feedmepos/mf-common";
4
- import { c as Gt } from "./index-33f7f731.js";
5
- import { e as zt } from "./index-cc4114ab.js";
6
- import { r as Jt } from "./app-0dbb5982.js";
4
+ import { c as Gt } from "./index-0d54cf64.js";
5
+ import { e as zt } from "./index-6d5210b8.js";
6
+ import { r as Jt } from "./app-2ea90e64.js";
7
7
  import { r as de, g as et, i as Yt, a as Xt, _ as Ne, C as Oe, b as Qt, S as F, c as O, E as pe, d as Zt, e as tt, f as en, h as tn, L as nt, j as f, k as nn, l as rn, F as ge, q as x, m as sn, n as on, o as an, p as cn, s as ln, t as un, u as dn, v as hn } from "./map-695afd6f.js";
8
8
  import "@feedmepos/mf-mdm";
9
9
  import "@feedmepos/ui-library";
@@ -6,15 +6,15 @@ import { useCoreStore as pe, useI18n as ve, CustomAttributesForm as jr } from "@
6
6
  import { useSnackbar as mt, components as Mr, useDialog as pt, useDialogChild as Ur, useBreakpoints as ur } from "@feedmepos/ui-library";
7
7
  import { a as Dr, _ as Gr } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-08a69f88.js";
8
8
  import { _ as Br, c as Ye } from "./createForm-d3b97d2e.js";
9
- import { D as ht, u as cr } from "./dayjs.min-2edeb0fb.js";
9
+ import { D as ht, u as cr } from "./dayjs.min-e43d968b.js";
10
10
  import { _ as Re, c as Kr } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
11
- import { e as vt, g as dr, c as qr } from "./index-cc4114ab.js";
12
- import { u as fr, b as Pe, a as We, g as Ue } from "./index-b5909a1d.js";
11
+ import { e as vt, g as dr, c as qr } from "./index-6d5210b8.js";
12
+ import { u as fr, b as Pe, a as We, g as Ue } from "./index-75bfe5e0.js";
13
13
  import { c as $e } from "./object-27ce045b.js";
14
- import { b as Hr } from "./business-49b1df80.js";
14
+ import { b as Hr } from "./business-ca35da59.js";
15
15
  import { t as Je, w as Ze, x as zr, y as Xr, z as Yr, A as Wr, B as De, u as be, D as Jr, G as Zr } from "./map-695afd6f.js";
16
16
  import { _ as mr } from "./_plugin-vue_export-helper-dad06003.js";
17
- import { u as Qr } from "./app-0dbb5982.js";
17
+ import { u as Qr } from "./app-2ea90e64.js";
18
18
  import { r as fe } from "./rules-2bee6632.js";
19
19
  import "pinia";
20
20
  import "@feedmepos/mf-mdm";
@@ -1,10 +1,10 @@
1
1
  import { unref as a, openBlock as Q, createBlock as N, createCommentVNode as m, withScopeId as Z, defineComponent as L, createElementBlock as S, ref as c, watch as W, computed as w, watchEffect as E, onBeforeUnmount as G, resolveComponent as B, createVNode as b, withCtx as Y, createElementVNode as e, toDisplayString as l, Fragment as M, renderList as _, normalizeClass as $ } from "vue";
2
- import { u as AA, F as oA } from "./index-b5909a1d.js";
3
- import "./index-cc4114ab.js";
2
+ import { u as AA, F as oA } from "./index-75bfe5e0.js";
3
+ import "./index-6d5210b8.js";
4
4
  import { useCoreStore as nA, useI18n as gA, useCountry as fA } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as aA } from "@feedmepos/ui-library";
6
6
  import { r as eA } from "./rules-2bee6632.js";
7
- import { b as v } from "./business-49b1df80.js";
7
+ import { b as v } from "./business-ca35da59.js";
8
8
  import { _ as pA } from "./_plugin-vue_export-helper-dad06003.js";
9
9
  import "pinia";
10
10
  function I(A) {
@@ -3,13 +3,13 @@ var Kg = (u, l, c) => l in u ? Yg(u, l, { enumerable: !0, configurable: !0, writ
3
3
  var Hi = (u, l, c) => (Kg(u, typeof l != "symbol" ? l + "" : l, c), c);
4
4
  import { h as Su, defineComponent as hl, ref as Rt, resolveComponent as wt, openBlock as Dt, createElementBlock as Kn, Fragment as Vr, renderSlot as Gf, createVNode as gt, unref as zt, withCtx as Jt, createElementVNode as He, computed as Rn, watch as Vf, withKeys as Hg, toDisplayString as un, renderList as nl, createBlock as Ur, createCommentVNode as rl, getCurrentInstance as Wg, withModifiers as Jg } from "vue";
5
5
  import { useCoreStore as ml, useI18n as Sc } from "@feedmepos/mf-common";
6
- import { l as q, c as V, d as ze, a as Oc, e as Ei, b as Yf } from "./index-cc4114ab.js";
7
- import { c as Qg, a as zd } from "./index-33f7f731.js";
8
- import { d as Xg, u as Zg } from "./dayjs.min-2edeb0fb.js";
6
+ import { l as q, c as V, d as ze, a as Oc, e as Ei, b as Yf } from "./index-6d5210b8.js";
7
+ import { c as Qg, a as zd } from "./index-0d54cf64.js";
8
+ import { d as Xg, u as Zg } from "./dayjs.min-e43d968b.js";
9
9
  import { components as so, useSnackbar as gl, useDialogChild as xg, useDialog as Kf, useBreakpoints as ep } from "@feedmepos/ui-library";
10
10
  import { a as hc, _ as tp } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-08a69f88.js";
11
11
  import { _ as np, c as C$ } from "./createForm-d3b97d2e.js";
12
- import { g as Gn, c as la, b as Fd, u as Tc } from "./index-b5909a1d.js";
12
+ import { g as Gn, c as la, b as Fd, u as Tc } from "./index-75bfe5e0.js";
13
13
  import { c as Hf } from "./object-27ce045b.js";
14
14
  import "pinia";
15
15
  var wd = {}, fn = {}, pl = {};
@@ -4,9 +4,9 @@ import { useSnackbar as Dn, components as Sn, useBreakpoints as Tn, useDialog as
4
4
  import { _ as xn, a as In } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-08a69f88.js";
5
5
  import { _ as On, c as xt } from "./createForm-d3b97d2e.js";
6
6
  import { _ as It, c as Fn } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
7
- import { u as An, r as Pn, s as Nn } from "./index-b5909a1d.js";
7
+ import { u as An, r as Pn, s as Nn } from "./index-75bfe5e0.js";
8
8
  import { r as kn } from "./rules-2bee6632.js";
9
- import "./index-cc4114ab.js";
9
+ import "./index-6d5210b8.js";
10
10
  import "pinia";
11
11
  /**!
12
12
  * Sortable 1.14.0
@@ -2,14 +2,14 @@ import { defineComponent as Fr, h as bo, getCurrentInstance as Pi, inject as Mm,
2
2
  import "@vue/devtools-api";
3
3
  import { useI18n as wo, useCoreStore as Do } from "@feedmepos/mf-common";
4
4
  import { useDialog as Po, useSnackbar as xo, components as Ym, useBreakpoints as Xm, FmButtonVariant as qm } from "@feedmepos/ui-library";
5
- import { _ as Jm } from "./app-0dbb5982.js";
5
+ import { _ as Jm } from "./app-2ea90e64.js";
6
6
  import { _ as Zm, c as Qm } from "./createForm-d3b97d2e.js";
7
- import { u as Fo } from "./index-b5909a1d.js";
7
+ import { u as Fo } from "./index-75bfe5e0.js";
8
8
  import { _ as zm, c as jm } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
9
- import { c as br } from "./index-cc4114ab.js";
9
+ import { c as br } from "./index-6d5210b8.js";
10
10
  import { c as Ci } from "./object-27ce045b.js";
11
11
  import { defineStore as eE } from "pinia";
12
- import { b as es } from "./business-49b1df80.js";
12
+ import { b as es } from "./business-ca35da59.js";
13
13
  import "@feedmepos/mf-mdm";
14
14
  import "vue-router";
15
15
  import "@feedmepos/mf-e-invoice";
@@ -6452,7 +6452,8 @@ const nf = eE("mf-settings-attribute-settings", () => {
6452
6452
  { label: "Item", value: "item" },
6453
6453
  { label: "Warehouse", value: "warehouse" },
6454
6454
  { label: "Inventory Sku", value: "inventorySku" },
6455
- { label: "Inventory Recipe", value: "inventoryRecipe" }
6455
+ { label: "Inventory Recipe", value: "inventoryRecipe" },
6456
+ { label: "Group", value: "group" }
6456
6457
  ]), F = tr(!1), $ = tr(!1), J = (R) => {
6457
6458
  $.value = !$.value;
6458
6459
  }, X = h0(
@@ -6464,7 +6465,7 @@ const nf = eE("mf-settings-attribute-settings", () => {
6464
6465
  function U(R) {
6465
6466
  return R ? d.customAttributes.find(
6466
6467
  (I) => I.key === R && I.entity === D.entity
6467
- ) ? O("settings.tagging.form.titleUnique") : /^[a-zA-Z0-9_-]+$/.test(R) ? !0 : O("settings.tagging.form.titleRegex") : O("settings.tagging.form.titleRequired");
6468
+ ) ? O("settings.tagging.form.titleUnique") : /^[.*a-zA-Z0-9_-]+$/.test(R) ? !0 : O("settings.tagging.form.titleRegex") : O("settings.tagging.form.titleRequired");
6468
6469
  }
6469
6470
  const N = async () => {
6470
6471
  const R = Ci(D);
@@ -1593,7 +1593,7 @@ const I = /* @__PURE__ */ p({
1593
1593
  {
1594
1594
  path: "/business",
1595
1595
  name: "$settings-my-business",
1596
- component: t(() => import("./Business-a9258021.js")),
1596
+ component: t(() => import("./Business-d88b053a.js")),
1597
1597
  meta: {
1598
1598
  i18nKey: "settings.business.title"
1599
1599
  }
@@ -1601,7 +1601,7 @@ const I = /* @__PURE__ */ p({
1601
1601
  {
1602
1602
  path: "/create-business",
1603
1603
  name: "$settings-create-business",
1604
- component: t(() => import("./CreateBusiness-2662327f.js")),
1604
+ component: t(() => import("./CreateBusiness-e4bf9d38.js")),
1605
1605
  meta: {
1606
1606
  hideNavigation: !0
1607
1607
  }
@@ -1609,7 +1609,7 @@ const I = /* @__PURE__ */ p({
1609
1609
  {
1610
1610
  path: "/foodcourt",
1611
1611
  name: "$settings-food-court",
1612
- component: t(() => import("./FoodCourt-3d6ab131.js")),
1612
+ component: t(() => import("./FoodCourt-29393b4e.js")),
1613
1613
  meta: {
1614
1614
  i18nKey: "settings.food_court.list.title"
1615
1615
  }
@@ -1651,7 +1651,7 @@ const I = /* @__PURE__ */ p({
1651
1651
  {
1652
1652
  path: "/tagging",
1653
1653
  name: "$settings-tagging",
1654
- component: k(t(() => import("./Tagging-d8e2293e.js"))),
1654
+ component: k(t(() => import("./Tagging-bab8e11e.js"))),
1655
1655
  meta: {
1656
1656
  i18nKey: "settings.tagging.title",
1657
1657
  validationManifest: {
@@ -1663,13 +1663,13 @@ const I = /* @__PURE__ */ p({
1663
1663
  {
1664
1664
  path: "/reason-template",
1665
1665
  name: "$settings-reason-template",
1666
- component: t(() => import("./ReasonTemplate-4270229d.js")),
1666
+ component: t(() => import("./ReasonTemplate-618844ef.js")),
1667
1667
  meta: {
1668
1668
  i18nKey: "settings.reasonTemplate.title",
1669
1669
  hideNavigation: !0
1670
1670
  }
1671
1671
  }
1672
- ], X = t(() => import("./App-48215cac.js")), Z = {
1672
+ ], X = t(() => import("./App-0751a7d7.js")), Z = {
1673
1673
  "en-US": {
1674
1674
  ...B,
1675
1675
  ...n["en-US"]
@@ -1686,7 +1686,7 @@ const I = /* @__PURE__ */ p({
1686
1686
  ...K,
1687
1687
  ...n["zh-Hant"] || {}
1688
1688
  }
1689
- }, ee = t(() => import("./ReasonTemplate-4270229d.js"));
1689
+ }, ee = t(() => import("./ReasonTemplate-618844ef.js"));
1690
1690
  export {
1691
1691
  X as F,
1692
1692
  ee as R,
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "@feedmepos/mf-mdm";
2
- import { F as a, R as n, i as F, r as R } from "./app-0dbb5982.js";
2
+ import { F as a, R as n, i as F, r as R } from "./app-2ea90e64.js";
3
3
  import "vue";
4
4
  import "@feedmepos/ui-library";
5
5
  import "vue-router";
@@ -4,7 +4,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
4
4
  type: PropType<{
5
5
  type: "string" | "number" | "boolean" | "date";
6
6
  key: string;
7
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
7
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
8
8
  }>;
9
9
  default: undefined;
10
10
  };
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
16
16
  type: PropType<{
17
17
  type: "string" | "number" | "boolean" | "date";
18
18
  key: string;
19
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
19
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
20
20
  }>;
21
21
  default: undefined;
22
22
  };
@@ -24,7 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
24
24
  initialValue: {
25
25
  type: "string" | "number" | "boolean" | "date";
26
26
  key: string;
27
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
27
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
28
28
  };
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
30
30
  default?(_: {
@@ -3,25 +3,25 @@ export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<
3
3
  customAttributes: import("vue").Ref<{
4
4
  type: "string" | "number" | "boolean" | "date";
5
5
  key: string;
6
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
6
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
7
7
  }[], {
8
8
  type: "string" | "number" | "boolean" | "date";
9
9
  key: string;
10
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
10
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
11
11
  }[] | {
12
12
  type: "string" | "number" | "boolean" | "date";
13
13
  key: string;
14
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
14
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
15
15
  }[]>;
16
16
  restaurantAttributes: import("vue").ComputedRef<{
17
17
  type: "string" | "number" | "boolean" | "date";
18
18
  key: string;
19
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
19
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
20
20
  }[]>;
21
21
  itemAttributes: import("vue").ComputedRef<{
22
22
  type: "string" | "number" | "boolean" | "date";
23
23
  key: string;
24
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
24
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
25
25
  }[]>;
26
26
  readAttributeSettings: () => Promise<void>;
27
27
  addOrUpdateAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
@@ -30,25 +30,25 @@ export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<
30
30
  customAttributes: import("vue").Ref<{
31
31
  type: "string" | "number" | "boolean" | "date";
32
32
  key: string;
33
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
33
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
34
34
  }[], {
35
35
  type: "string" | "number" | "boolean" | "date";
36
36
  key: string;
37
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
37
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
38
38
  }[] | {
39
39
  type: "string" | "number" | "boolean" | "date";
40
40
  key: string;
41
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
41
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
42
42
  }[]>;
43
43
  restaurantAttributes: import("vue").ComputedRef<{
44
44
  type: "string" | "number" | "boolean" | "date";
45
45
  key: string;
46
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
46
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
47
47
  }[]>;
48
48
  itemAttributes: import("vue").ComputedRef<{
49
49
  type: "string" | "number" | "boolean" | "date";
50
50
  key: string;
51
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
51
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
52
52
  }[]>;
53
53
  readAttributeSettings: () => Promise<void>;
54
54
  addOrUpdateAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
@@ -57,25 +57,25 @@ export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<
57
57
  customAttributes: import("vue").Ref<{
58
58
  type: "string" | "number" | "boolean" | "date";
59
59
  key: string;
60
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
60
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
61
61
  }[], {
62
62
  type: "string" | "number" | "boolean" | "date";
63
63
  key: string;
64
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
64
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
65
65
  }[] | {
66
66
  type: "string" | "number" | "boolean" | "date";
67
67
  key: string;
68
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
68
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
69
69
  }[]>;
70
70
  restaurantAttributes: import("vue").ComputedRef<{
71
71
  type: "string" | "number" | "boolean" | "date";
72
72
  key: string;
73
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
73
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
74
74
  }[]>;
75
75
  itemAttributes: import("vue").ComputedRef<{
76
76
  type: "string" | "number" | "boolean" | "date";
77
77
  key: string;
78
- entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
78
+ entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
79
79
  }[]>;
80
80
  readAttributeSettings: () => Promise<void>;
81
81
  addOrUpdateAttribute: (attribute: FdoCustomAttribute) => Promise<void>;