@feedmepos/mf-settings 0.0.71-prod → 0.0.72-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.
@@ -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,12 +1,12 @@
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 _, watch as m, nextTick as p, onMounted as U, onBeforeUnmount as q, defineComponent as h, computed as O, 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 N, defineAsyncComponent as $ } from "vue";
4
- import { useBreakpoints as P } from "@feedmepos/ui-library";
3
+ import { ref as h, watch as m, nextTick as p, onMounted as U, onBeforeUnmount as O, 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
+ 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";
7
- import { FmApp as F, routers as D } from "@feedmepos/mf-e-invoice";
7
+ import { FmApp as D, routers as F } from "@feedmepos/mf-e-invoice";
8
8
  function M(e, o) {
9
- const n = _({ top: 0, bottom: 0, left: 0, right: 0 });
9
+ const n = h({ top: 0, bottom: 0, left: 0, right: 0 });
10
10
  function a() {
11
11
  if (e.value) {
12
12
  const i = e.value.getBoundingClientRect();
@@ -24,14 +24,14 @@ function M(e, o) {
24
24
  i && (await p(), a());
25
25
  }), U(() => {
26
26
  window.addEventListener("resize", a);
27
- }), q(() => {
27
+ }), O(() => {
28
28
  window.removeEventListener("resize", a);
29
29
  }), n;
30
30
  }
31
- const B = /* @__PURE__ */ h({
31
+ const B = /* @__PURE__ */ _({
32
32
  __name: "FullWrapper",
33
33
  setup(e) {
34
- const o = P(), n = _(null), a = M(n), i = O(() => {
34
+ const o = $(), n = h(null), a = M(n), i = q(() => {
35
35
  var u;
36
36
  const c = o.isAtMost("sm") ? 56 : 0;
37
37
  return {
@@ -46,7 +46,7 @@ const B = /* @__PURE__ */ h({
46
46
  A(d.$slots, "default")
47
47
  ], 4));
48
48
  }
49
- }), E = { class: "flex justify-center items-center h-full w-full" }, j = /* @__PURE__ */ h({
49
+ }), E = { class: "flex justify-center items-center h-full w-full" }, j = /* @__PURE__ */ _({
50
50
  __name: "PageLoading",
51
51
  setup(e) {
52
52
  return (o, n) => {
@@ -54,14 +54,14 @@ const B = /* @__PURE__ */ h({
54
54
  return y(), k(B, null, {
55
55
  default: x(() => [
56
56
  I("div", E, [
57
- N(a, { size: "xl" })
57
+ P(a, { size: "xl" })
58
58
  ])
59
59
  ]),
60
60
  _: 1
61
61
  });
62
62
  };
63
63
  }
64
- }), t = (e) => $({
64
+ }), t = (e) => N({
65
65
  loader: e,
66
66
  loadingComponent: j
67
67
  }), z = {
@@ -372,7 +372,9 @@ const B = /* @__PURE__ */ h({
372
372
  type: "Tagging type",
373
373
  typeOptions: {
374
374
  string: "String",
375
- number: "Number"
375
+ number: "Number",
376
+ date: "Date",
377
+ boolean: "Boolean"
376
378
  },
377
379
  entity: "Tagging entity",
378
380
  entityOptions: {
@@ -381,7 +383,8 @@ const B = /* @__PURE__ */ h({
381
383
  warehouse: "Warehouse",
382
384
  inventorySku: "Inventory Sku",
383
385
  inventoryRecipe: "Inventory Recipe",
384
- group: "Group"
386
+ group: "Group",
387
+ inventoryPurchaseOrder: "Inventory Purchase Order"
385
388
  },
386
389
  optionsSection: "Tagging Optional Values",
387
390
  enableOptions: "Enable predefined values",
@@ -773,7 +776,9 @@ const B = /* @__PURE__ */ h({
773
776
  type: "ประเภทการแท็ก",
774
777
  typeOptions: {
775
778
  string: "สตริง",
776
- number: "ตัวเลข"
779
+ number: "ตัวเลข",
780
+ date: "วันที่",
781
+ boolean: "บูลีน"
777
782
  },
778
783
  entity: "เอนทิตีการแท็ก",
779
784
  entityOptions: {
@@ -782,7 +787,8 @@ const B = /* @__PURE__ */ h({
782
787
  warehouse: "คลังสินค้า",
783
788
  inventorySku: "SKU สินค้าคงคลัง",
784
789
  inventoryRecipe: "สูตรสินค้าคงคลัง",
785
- group: "กลุ่ม"
790
+ group: "กลุ่ม",
791
+ inventoryPurchaseOrder: "ใบสั่งซื้อ"
786
792
  },
787
793
  optionsSection: "ค่าตัวเลือก",
788
794
  enableOptions: "เปิดใช้งานค่าที่กำหนดไว้ล่วงหน้า",
@@ -1177,7 +1183,9 @@ const B = /* @__PURE__ */ h({
1177
1183
  type: "标签类型",
1178
1184
  typeOptions: {
1179
1185
  string: "字符串",
1180
- number: "数字"
1186
+ number: "数字",
1187
+ date: "日期",
1188
+ boolean: "布尔值"
1181
1189
  },
1182
1190
  entity: "标签实体",
1183
1191
  entityOptions: {
@@ -1186,7 +1194,8 @@ const B = /* @__PURE__ */ h({
1186
1194
  warehouse: "仓库",
1187
1195
  inventorySku: "库存SKU",
1188
1196
  inventoryRecipe: "库存配方",
1189
- group: "分组"
1197
+ group: "分组",
1198
+ inventoryPurchaseOrder: "库存订单"
1190
1199
  },
1191
1200
  optionsSection: "可选值",
1192
1201
  enableOptions: "启用预定义值",
@@ -1581,7 +1590,9 @@ const B = /* @__PURE__ */ h({
1581
1590
  type: "標籤類型",
1582
1591
  typeOptions: {
1583
1592
  string: "字符串",
1584
- number: "數字"
1593
+ number: "數字",
1594
+ date: "日期",
1595
+ boolean: "布爾值"
1585
1596
  },
1586
1597
  entity: "標籤實體",
1587
1598
  entityOptions: {
@@ -1590,7 +1601,8 @@ const B = /* @__PURE__ */ h({
1590
1601
  warehouse: "倉庫",
1591
1602
  inventorySku: "庫存SKU",
1592
1603
  inventoryRecipe: "庫存配方",
1593
- group: "分組"
1604
+ group: "分組",
1605
+ inventoryPurchaseOrder: "庫存訂單"
1594
1606
  },
1595
1607
  optionsSection: "可選值",
1596
1608
  enableOptions: "啟用預定義值",
@@ -1678,7 +1690,7 @@ const B = /* @__PURE__ */ h({
1678
1690
  {
1679
1691
  path: "/business",
1680
1692
  name: "$settings-my-business",
1681
- component: t(() => import("./Business-ec7f23df.js")),
1693
+ component: t(() => import("./Business-a8bd151a.js")),
1682
1694
  meta: {
1683
1695
  i18nKey: "settings.business.title"
1684
1696
  }
@@ -1686,7 +1698,7 @@ const B = /* @__PURE__ */ h({
1686
1698
  {
1687
1699
  path: "/create-business",
1688
1700
  name: "$settings-create-business",
1689
- component: t(() => import("./CreateBusiness-c881b40e.js")),
1701
+ component: t(() => import("./CreateBusiness-55e7de74.js")),
1690
1702
  meta: {
1691
1703
  hideNavigation: !0
1692
1704
  }
@@ -1694,7 +1706,7 @@ const B = /* @__PURE__ */ h({
1694
1706
  {
1695
1707
  path: "/foodcourt",
1696
1708
  name: "$settings-food-court",
1697
- component: t(() => import("./FoodCourt-97bcc558.js")),
1709
+ component: t(() => import("./FoodCourt-c38eaa03.js")),
1698
1710
  meta: {
1699
1711
  i18nKey: "settings.food_court.list.title"
1700
1712
  }
@@ -1710,8 +1722,8 @@ const B = /* @__PURE__ */ h({
1710
1722
  {
1711
1723
  path: "/e-invoice",
1712
1724
  name: "$settings-e-invoice",
1713
- component: F,
1714
- children: D.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1725
+ component: D,
1726
+ children: F.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1715
1727
  meta: {
1716
1728
  i18nKey: "settings.eInvoice.title"
1717
1729
  }
@@ -1719,7 +1731,7 @@ const B = /* @__PURE__ */ h({
1719
1731
  {
1720
1732
  path: "/tagging",
1721
1733
  name: "$settings-tagging",
1722
- component: g(t(() => import("./Tagging-1d766021.js"))),
1734
+ component: g(t(() => import("./Tagging-76f08e0e.js"))),
1723
1735
  meta: {
1724
1736
  i18nKey: "settings.tagging.title",
1725
1737
  validationManifest: {
@@ -1731,7 +1743,7 @@ const B = /* @__PURE__ */ h({
1731
1743
  {
1732
1744
  path: "/reason-template",
1733
1745
  name: "$settings-reason-template",
1734
- component: t(() => import("./ReasonTemplate-b4e2346e.js")),
1746
+ component: t(() => import("./ReasonTemplate-b56a5a9d.js")),
1735
1747
  meta: {
1736
1748
  i18nKey: "settings.reasonTemplate.title",
1737
1749
  hideNavigation: !0
@@ -1767,7 +1779,7 @@ const B = /* @__PURE__ */ h({
1767
1779
  {
1768
1780
  path: "/devices/template-builder",
1769
1781
  name: "$settings-template-builder",
1770
- component: t(() => import("./TemplateBuilder-3e34e9e8.js")),
1782
+ component: t(() => import("./TemplateBuilder-54a34178.js")),
1771
1783
  meta: {
1772
1784
  i18nKey: "settings.templateBuilder.title",
1773
1785
  hideNavigation: !0
@@ -1781,7 +1793,7 @@ l.push({
1781
1793
  name: ((v = l[0].children) == null ? void 0 : v[0].name) || l[0].name
1782
1794
  }
1783
1795
  });
1784
- const ne = t(() => import("./App-ff52772f.js")), oe = {
1796
+ const ne = t(() => import("./App-48096dfc.js")), oe = {
1785
1797
  "en-US": {
1786
1798
  ...K,
1787
1799
  ...s["en-US"],
@@ -1802,7 +1814,7 @@ const ne = t(() => import("./App-ff52772f.js")), oe = {
1802
1814
  ...s["zh-Hant"] || {},
1803
1815
  ...r["zh-Hant"] || {}
1804
1816
  }
1805
- }, se = t(() => import("./ReasonTemplate-b4e2346e.js"));
1817
+ }, se = t(() => import("./ReasonTemplate-b56a5a9d.js"));
1806
1818
  export {
1807
1819
  ne as F,
1808
1820
  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-3687ef10.js";
3
+ import { F as n, R as F, i as R, r as f } from "./app-d9259e2f.js";
4
4
  import "vue";
5
5
  import "@feedmepos/ui-library";
6
6
  import "vue-router";