@feedmepos/mf-settings 0.0.73 → 0.0.74-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.
@@ -0,0 +1,27 @@
1
+ import { defineComponent as a, computed as c, resolveComponent as u, openBlock as s, createElementBlock as o, createVNode as d } from "vue";
2
+ import { useCoreStore as l, FeedMeAuth as m } from "@feedmepos/mf-common";
3
+ const i = {
4
+ key: 0,
5
+ class: "w-full h-full flex items-center justify-center"
6
+ }, p = ["src"], h = /* @__PURE__ */ a({
7
+ __name: "TemplateBuilder",
8
+ setup(f) {
9
+ const e = l(), t = c(() => {
10
+ var r;
11
+ return e.currentBusiness.value ? `https://print-template-builder.feedme.dev//#/receipt-info?businessId=${(r = e.currentBusiness.value) == null ? void 0 : r.id}&country=${e.currentCountry.value}&token=${m.token}` : "";
12
+ });
13
+ return (r, v) => {
14
+ const n = u("FmCircularProgress");
15
+ return t.value ? (s(), o("iframe", {
16
+ key: 1,
17
+ class: "w-full h-full",
18
+ src: t.value
19
+ }, null, 8, p)) : (s(), o("div", i, [
20
+ d(n, { size: "lg" })
21
+ ]));
22
+ };
23
+ }
24
+ });
25
+ export {
26
+ h as default
27
+ };
@@ -1,6 +1,6 @@
1
1
  import { FmApp as f, routers as R, i18nMessages as s } from "@feedmepos/mf-mdm";
2
2
  import { FmApp as w, routers as L, i18nMessages as r } from "@feedmepos/mf-order-setting";
3
- import { ref as v, watch as u, nextTick as p, onMounted as U, onBeforeUnmount as O, defineComponent as _, computed as q, openBlock as y, createElementBlock as T, normalizeStyle as S, renderSlot as A, resolveComponent as C, createBlock as k, withCtx as x, createElementVNode as I, createVNode as P, defineAsyncComponent as N } from "vue";
3
+ import { ref as v, watch as m, nextTick as p, onMounted as O, onBeforeUnmount as U, defineComponent as _, computed as q, openBlock as y, createElementBlock as S, normalizeStyle as T, renderSlot as A, resolveComponent as C, createBlock as k, withCtx as x, createElementVNode as I, createVNode as P, defineAsyncComponent as N } from "vue";
4
4
  import { useBreakpoints as $ } from "@feedmepos/ui-library";
5
5
  import "vue-router";
6
6
  import { withPermission as g, Permission as b } from "@feedmepos/mf-common";
@@ -18,13 +18,13 @@ function F(e, o) {
18
18
  };
19
19
  }
20
20
  }
21
- return u(o, async () => {
21
+ return m(o, async () => {
22
22
  await p(), a();
23
- }), u(e, async (i) => {
23
+ }), m(e, async (i) => {
24
24
  i && (await p(), a());
25
- }), U(() => {
26
- window.addEventListener("resize", a);
27
25
  }), O(() => {
26
+ window.addEventListener("resize", a);
27
+ }), U(() => {
28
28
  window.removeEventListener("resize", a);
29
29
  }), n;
30
30
  }
@@ -32,16 +32,16 @@ const B = /* @__PURE__ */ _({
32
32
  __name: "FullWrapper",
33
33
  setup(e) {
34
34
  const o = $(), n = v(null), a = F(n), i = q(() => {
35
- var m;
35
+ var u;
36
36
  const c = o.isAtMost("sm") ? 56 : 0;
37
37
  return {
38
- height: `calc(100dvh - ${((m = a.value) == null ? void 0 : m.top) + 24 + c}px)`
38
+ height: `calc(100dvh - ${((u = a.value) == null ? void 0 : u.top) + 24 + c}px)`
39
39
  };
40
40
  });
41
- return (d, c) => (y(), T("div", {
41
+ return (d, c) => (y(), S("div", {
42
42
  ref_key: "wrapper",
43
43
  ref: n,
44
- style: S(i.value)
44
+ style: T(i.value)
45
45
  }, [
46
46
  A(d.$slots, "default")
47
47
  ], 4));
@@ -363,7 +363,8 @@ const B = /* @__PURE__ */ _({
363
363
  columns: {
364
364
  title: "Tagging title",
365
365
  type: "Type",
366
- entity: "Entity"
366
+ entity: "Entity",
367
+ readonly: "Read Only"
367
368
  }
368
369
  },
369
370
  form: {
@@ -397,7 +398,9 @@ const B = /* @__PURE__ */ _({
397
398
  optionPlaceholder: "Enter option value",
398
399
  optionDuplicate: "Option value already exists",
399
400
  optionInvalidNumber: "Please enter a valid number",
400
- addOption: "Add option"
401
+ addOption: "Add option",
402
+ readonlyLabel: "Read only",
403
+ readonlySubLabel: "When enabled, this attribute value cannot be edited by users (e.g. values synced from external systems)"
401
404
  },
402
405
  delete: {
403
406
  title: "Delete tagging",
@@ -771,7 +774,8 @@ const B = /* @__PURE__ */ _({
771
774
  columns: {
772
775
  title: "ชื่อการแท็ก",
773
776
  type: "ประเภท",
774
- entity: "เอนทิตี"
777
+ entity: "เอนทิตี",
778
+ readonly: "อ่านอย่างเดียว"
775
779
  }
776
780
  },
777
781
  form: {
@@ -805,7 +809,9 @@ const B = /* @__PURE__ */ _({
805
809
  optionPlaceholder: "ป้อนค่าตัวเลือก",
806
810
  optionDuplicate: "ค่าตัวเลือกมีอยู่แล้ว",
807
811
  optionInvalidNumber: "กรุณาป้อนตัวเลขที่ถูกต้อง",
808
- addOption: "เพิ่มตัวเลือก"
812
+ addOption: "เพิ่มตัวเลือก",
813
+ readonlyLabel: "อ่านอย่างเดียว",
814
+ readonlySubLabel: "เมื่อเปิดใช้งาน ผู้ใช้จะไม่สามารถแก้ไขค่าแอตทริบิวต์นี้ได้ (เช่น ค่าที่ซิงค์จากระบบภายนอก)"
809
815
  },
810
816
  delete: {
811
817
  title: "ลบการแท็ก",
@@ -1182,7 +1188,8 @@ const B = /* @__PURE__ */ _({
1182
1188
  columns: {
1183
1189
  title: "标签名称",
1184
1190
  type: "类型",
1185
- entity: "实体"
1191
+ entity: "实体",
1192
+ readonly: "只读"
1186
1193
  }
1187
1194
  },
1188
1195
  form: {
@@ -1216,7 +1223,9 @@ const B = /* @__PURE__ */ _({
1216
1223
  optionPlaceholder: "输入选项值",
1217
1224
  optionDuplicate: "选项值已存在",
1218
1225
  optionInvalidNumber: "请输入有效的数字",
1219
- addOption: "添加选项"
1226
+ addOption: "添加选项",
1227
+ readonlyLabel: "只读",
1228
+ readonlySubLabel: "启用后,用户无法编辑此属性值(例如从外部系统同步的值)"
1220
1229
  },
1221
1230
  delete: {
1222
1231
  title: "删除标签",
@@ -1593,7 +1602,8 @@ const B = /* @__PURE__ */ _({
1593
1602
  columns: {
1594
1603
  title: "標籤名稱",
1595
1604
  type: "類型",
1596
- entity: "實體"
1605
+ entity: "實體",
1606
+ readonly: "唯讀"
1597
1607
  }
1598
1608
  },
1599
1609
  form: {
@@ -1627,7 +1637,9 @@ const B = /* @__PURE__ */ _({
1627
1637
  optionPlaceholder: "輸入選項值",
1628
1638
  optionDuplicate: "選項值已存在",
1629
1639
  optionInvalidNumber: "請輸入有效的數字",
1630
- addOption: "添加選項"
1640
+ addOption: "添加選項",
1641
+ readonlyLabel: "唯讀",
1642
+ readonlySubLabel: "啟用後,使用者無法編輯此屬性值(例如從外部系統同步的值)"
1631
1643
  },
1632
1644
  delete: {
1633
1645
  title: "刪除標籤",
@@ -1706,7 +1718,7 @@ const B = /* @__PURE__ */ _({
1706
1718
  {
1707
1719
  path: "/business",
1708
1720
  name: "$settings-my-business",
1709
- component: t(() => import("./Business-89227fa1.js")),
1721
+ component: t(() => import("./Business-80eeb674.js")),
1710
1722
  meta: {
1711
1723
  i18nKey: "settings.business.title"
1712
1724
  }
@@ -1714,7 +1726,7 @@ const B = /* @__PURE__ */ _({
1714
1726
  {
1715
1727
  path: "/create-business",
1716
1728
  name: "$settings-create-business",
1717
- component: t(() => import("./CreateBusiness-c881b40e.js")),
1729
+ component: t(() => import("./CreateBusiness-55e7de74.js")),
1718
1730
  meta: {
1719
1731
  hideNavigation: !0
1720
1732
  }
@@ -1722,7 +1734,7 @@ const B = /* @__PURE__ */ _({
1722
1734
  {
1723
1735
  path: "/foodcourt",
1724
1736
  name: "$settings-food-court",
1725
- component: t(() => import("./FoodCourt-67ab2a1a.js")),
1737
+ component: t(() => import("./FoodCourt-c38eaa03.js")),
1726
1738
  meta: {
1727
1739
  i18nKey: "settings.food_court.list.title"
1728
1740
  }
@@ -1747,7 +1759,7 @@ const B = /* @__PURE__ */ _({
1747
1759
  {
1748
1760
  path: "/tagging",
1749
1761
  name: "$settings-tagging",
1750
- component: g(t(() => import("./Tagging-69d40fda.js"))),
1762
+ component: g(t(() => import("./Tagging-3d10ba6e.js"))),
1751
1763
  meta: {
1752
1764
  i18nKey: "settings.tagging.title",
1753
1765
  validationManifest: {
@@ -1759,7 +1771,7 @@ const B = /* @__PURE__ */ _({
1759
1771
  {
1760
1772
  path: "/reason-template",
1761
1773
  name: "$settings-reason-template",
1762
- component: t(() => import("./ReasonTemplate-b4e2346e.js")),
1774
+ component: t(() => import("./ReasonTemplate-b56a5a9d.js")),
1763
1775
  meta: {
1764
1776
  i18nKey: "settings.reasonTemplate.title",
1765
1777
  hideNavigation: !0
@@ -1795,7 +1807,7 @@ const B = /* @__PURE__ */ _({
1795
1807
  {
1796
1808
  path: "/devices/template-builder",
1797
1809
  name: "$settings-template-builder",
1798
- component: t(() => import("./TemplateBuilder-3e34e9e8.js")),
1810
+ component: t(() => import("./TemplateBuilder-54a34178.js")),
1799
1811
  meta: {
1800
1812
  i18nKey: "settings.templateBuilder.title",
1801
1813
  hideNavigation: !0
@@ -1809,7 +1821,7 @@ l.push({
1809
1821
  name: ((h = l[0].children) == null ? void 0 : h[0].name) || l[0].name
1810
1822
  }
1811
1823
  });
1812
- const ne = t(() => import("./App-fa3b2e54.js")), oe = {
1824
+ const ne = t(() => import("./App-44a7faee.js")), oe = {
1813
1825
  "en-US": {
1814
1826
  ...H,
1815
1827
  ...s["en-US"],
@@ -1830,7 +1842,7 @@ const ne = t(() => import("./App-fa3b2e54.js")), oe = {
1830
1842
  ...s["zh-Hant"] || {},
1831
1843
  ...r["zh-Hant"] || {}
1832
1844
  }
1833
- }, se = t(() => import("./ReasonTemplate-b4e2346e.js"));
1845
+ }, se = t(() => import("./ReasonTemplate-b56a5a9d.js"));
1834
1846
  export {
1835
1847
  ne as F,
1836
1848
  se as R,
package/dist/app.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "@feedmepos/mf-mdm";
2
2
  import "@feedmepos/mf-order-setting";
3
- import { F as n, R as F, i as R, r as f } from "./app-68470ebc.js";
3
+ import { F as n, R as F, i as R, r as f } from "./app-a734e3bb.js";
4
4
  import "vue";
5
5
  import "@feedmepos/ui-library";
6
6
  import "vue-router";
@@ -29,7 +29,9 @@ export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<
29
29
  entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
30
30
  }[]>;
31
31
  readAttributeSettings: () => Promise<void>;
32
- addOrUpdateAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
32
+ addOrUpdateAttribute: (attribute: FdoCustomAttribute & {
33
+ readonly?: boolean;
34
+ }) => Promise<void>;
33
35
  deleteAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
34
36
  }, "customAttributes">, Pick<{
35
37
  customAttributes: import("vue").Ref<{
@@ -61,7 +63,9 @@ export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<
61
63
  entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
62
64
  }[]>;
63
65
  readAttributeSettings: () => Promise<void>;
64
- addOrUpdateAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
66
+ addOrUpdateAttribute: (attribute: FdoCustomAttribute & {
67
+ readonly?: boolean;
68
+ }) => Promise<void>;
65
69
  deleteAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
66
70
  }, "restaurantAttributes" | "itemAttributes">, Pick<{
67
71
  customAttributes: import("vue").Ref<{
@@ -93,6 +97,8 @@ export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<
93
97
  entity: "restaurant" | "group" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
94
98
  }[]>;
95
99
  readAttributeSettings: () => Promise<void>;
96
- addOrUpdateAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
100
+ addOrUpdateAttribute: (attribute: FdoCustomAttribute & {
101
+ readonly?: boolean;
102
+ }) => Promise<void>;
97
103
  deleteAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
98
104
  }, "readAttributeSettings" | "addOrUpdateAttribute" | "deleteAttribute">>;
@@ -1,4 +1,4 @@
1
- import { g as e, b as a } from "./index-6d139c6d.js";
1
+ import { g as e, b as a } from "./index-b1e448c9.js";
2
2
  const i = {
3
3
  async readBusiness(s) {
4
4
  return e(await a().get(`/businesses/${s}`));