@feedmepos/mf-settings 0.0.72-beta.2 → 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.
@@ -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-609ebd81.js")),
1721
+ component: t(() => import("./Business-80eeb674.js")),
1710
1722
  meta: {
1711
1723
  i18nKey: "settings.business.title"
1712
1724
  }
@@ -1747,7 +1759,7 @@ const B = /* @__PURE__ */ _({
1747
1759
  {
1748
1760
  path: "/tagging",
1749
1761
  name: "$settings-tagging",
1750
- component: g(t(() => import("./Tagging-18570860.js"))),
1762
+ component: g(t(() => import("./Tagging-3d10ba6e.js"))),
1751
1763
  meta: {
1752
1764
  i18nKey: "settings.tagging.title",
1753
1765
  validationManifest: {
@@ -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-8ecdea98.js")), oe = {
1824
+ const ne = t(() => import("./App-44a7faee.js")), oe = {
1813
1825
  "en-US": {
1814
1826
  ...H,
1815
1827
  ...s["en-US"],
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-0ce7ead5.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">>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-settings",
3
- "version": "0.0.72-beta.2",
3
+ "version": "0.0.74-dev.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"