@feedmepos/mf-common 1.26.8 → 1.26.9-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 +1 @@
1
- {"version":3,"file":"vite-preset.d.ts","sourceRoot":"","sources":["../vite-preset.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAwB,UAAU,EAAE,MAAM,MAAM,CAAA;AAMvE,MAAM,WAAW,kBAAkB;IACjC,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC9B,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACxC,KAAK,CAAC,EAAE,OAAO,CAAA;IAIf,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;IAChC,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,eAAO,MAAM,eAAe,WAClB,UAAU,qBACC,SAAS,YACnB,kBAAkB,KAC1B,QAAQ,UAAU,CAkJpB,CAAA"}
1
+ {"version":3,"file":"vite-preset.d.ts","sourceRoot":"","sources":["../vite-preset.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAwB,UAAU,EAAE,MAAM,MAAM,CAAA;AAKvE,MAAM,WAAW,kBAAkB;IACjC,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC9B,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACxC,KAAK,CAAC,EAAE,OAAO,CAAA;IAIf,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;IAChC,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,eAAO,MAAM,eAAe,WAClB,UAAU,qBACC,SAAS,YACnB,kBAAkB,KAC1B,QAAQ,UAAU,CAkJpB,CAAA"}
@@ -1,5 +1,5 @@
1
- import { resolve as h } from "path";
2
1
  import { readFileSync as b } from "fs";
2
+ import { resolve as h } from "path";
3
3
  const g = (l) => {
4
4
  const r = l.join("|");
5
5
  return new RegExp(`^(${r})(\\/.*)?$`);
@@ -82,7 +82,7 @@ const g = (l) => {
82
82
  } : {}
83
83
  }, o = {
84
84
  "@vue/devtools-api": "6.5.0/lib/esm/index.js",
85
- vue: "3.5.13/dist/vue.esm-browser.prod.min.js",
85
+ vue: "3.5.16/dist/vue.esm-browser.prod.min.js",
86
86
  "vue-router": "4.2.5/dist/vue-router.esm-browser.min.js",
87
87
  pinia: "2.1.7/+esm"
88
88
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-common",
3
- "version": "1.26.8",
3
+ "version": "1.26.9-beta.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -16,25 +16,25 @@
16
16
  "./style.css": "./dist/style.css"
17
17
  },
18
18
  "dependencies": {
19
- "@feedmepos/ui-library": "1.6.7",
19
+ "@casl/ability": "^3.2.0",
20
20
  "@feedmepos/auth": "^1.2.1-beta.3",
21
- "@feedmepos/core": "2.14.16",
21
+ "@feedmepos/core": "2.14.19",
22
22
  "@feedmepos/menu": "1.4.3",
23
23
  "@feedmepos/i18n": "0.3.1",
24
24
  "@feedmepos/custom-attributes": "0.0.0-rc.6",
25
- "vue-i18n": "10.0.5",
25
+ "@feedmepos/ui-library": "1.7.0",
26
+ "@feedmepos/vue-client-monitoring": "0.1.0-beta.6",
26
27
  "@vue/devtools-api": "^6.5.0",
27
28
  "@vueuse/core": "^10.11.0",
28
29
  "axios": "^1.7.7",
29
30
  "firebase": "^10.12.2",
30
31
  "libphonenumber-js": "^1.11.1",
31
32
  "pinia": "^2.1.6",
32
- "vue": "^3.5.13",
33
- "vue-router": "^4.2.5",
34
- "@casl/ability": "^3.2.0",
35
33
  "sift": "^17.1.3",
36
- "@feedmepos/vue-client-monitoring": "0.1.0-beta.6",
37
- "vue-country-flag-next": "2.3.2"
34
+ "vue": "^3.5.13",
35
+ "vue-country-flag-next": "2.3.2",
36
+ "vue-i18n": "10.0.5",
37
+ "vue-router": "^4.2.5"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@tsconfig/node18": "^18.2.2",
@@ -1,96 +0,0 @@
1
- import { defineComponent as _, computed as m, resolveComponent as v, openBlock as c, createElementBlock as p, createVNode as k, toDisplayString as A, unref as N, h as V } from "vue";
2
- import { t as S, u as C } from "./app-2d272ee9.js";
3
- import { components as O } from "@feedmepos/ui-library";
4
- import { c as w } from "./object-27ce045b.js";
5
- import "pinia";
6
- import "vue-router";
7
- const F = { key: 0 }, x = {
8
- key: 1,
9
- class: "text-fm-color-neutral-gray-500"
10
- }, D = /* @__PURE__ */ _({
11
- __name: "CustomAttributesForm",
12
- props: {
13
- entity: {},
14
- modelValue: {},
15
- valueOptions: {}
16
- },
17
- emits: ["update:modelValue"],
18
- setup(d, { emit: f }) {
19
- const s = d, b = f, { t: l } = S(), a = C();
20
- function h(t) {
21
- var o;
22
- if ((o = s.valueOptions) != null && o[t] && s.valueOptions[t].length > 0)
23
- return s.valueOptions[t];
24
- if (s.entity === "restaurant") {
25
- const e = a.restaurants.value.map((n) => {
26
- var i;
27
- return (i = n.customAttributes) == null ? void 0 : i[t];
28
- }).filter((n) => typeof n == "string" && !!n), r = [...new Set(e)];
29
- return r.length > 0 ? r : void 0;
30
- }
31
- }
32
- const y = m(() => {
33
- var t, o;
34
- return ((o = (t = a.currentBusiness.value) == null ? void 0 : t.attributeSettings) == null ? void 0 : o.filter(
35
- (e) => e.entity === s.entity
36
- )) || [];
37
- }), u = m(() => y.value.map((t) => {
38
- var e;
39
- const o = h(t.key);
40
- return {
41
- key: t.key,
42
- type: t.type,
43
- value: ((e = s.modelValue) == null ? void 0 : e[t.key]) || "",
44
- options: o
45
- };
46
- }) || []), g = [
47
- {
48
- header: () => l("portalshell.customAttributes.form.key"),
49
- accessorKey: "key",
50
- enableSorting: !1
51
- },
52
- {
53
- header: () => l("portalshell.customAttributes.form.value"),
54
- accessorKey: "value",
55
- enableSorting: !1,
56
- cell: (t) => {
57
- const o = t.row.original;
58
- return V(O.FmTextField, {
59
- modelValue: o.value,
60
- placeholder: l("portalshell.customAttributes.form.valuePlaceholder"),
61
- datalist: o.options,
62
- rules: [
63
- (e) => o.type === "number" && isNaN(Number(e)) ? l("portalshell.customAttributes.form.attributeValueMustBeNumber") : !0
64
- ],
65
- "onUpdate:modelValue": (e) => {
66
- const r = w(s.modelValue);
67
- if (r[o.key] = e == null ? void 0 : e.trim(), o.type === "number") {
68
- if (isNaN(Number(e)))
69
- return;
70
- r[o.key] = Number(e);
71
- }
72
- Object.keys(r).forEach((n) => {
73
- r[n] || delete r[n];
74
- }), b("update:modelValue", r);
75
- }
76
- });
77
- }
78
- }
79
- ];
80
- return (t, o) => {
81
- const e = v("FmTable");
82
- return u.value.length > 0 ? (c(), p("div", F, [
83
- k(e, {
84
- "column-defs": g,
85
- "row-data": u.value,
86
- "shrink-at": !1,
87
- "page-size": u.value.length,
88
- "hide-footer": ""
89
- }, null, 8, ["row-data", "page-size"])
90
- ])) : (c(), p("p", x, A(N(l)("portalshell.customAttributes.form.noCustomAttributes")), 1));
91
- };
92
- }
93
- });
94
- export {
95
- D as default
96
- };