@feedmepos/mf-media 0.0.4 → 0.0.6

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.
package/dist/app.js CHANGED
@@ -413,7 +413,7 @@ const m = [
413
413
  t.delete
414
414
  ]
415
415
  }
416
- ], Gt = [
416
+ ], vt = [
417
417
  ...m,
418
418
  {
419
419
  label: "Game",
@@ -425,7 +425,7 @@ const m = [
425
425
  t.delete
426
426
  ]
427
427
  }
428
- ], vt = [
428
+ ], Gt = [
429
429
  ...m,
430
430
  {
431
431
  label: "Mission",
@@ -500,10 +500,10 @@ const m = [
500
500
  Yt
501
501
  ), Ce = y(
502
502
  f,
503
- Gt
503
+ vt
504
504
  ), pe = y(
505
505
  f,
506
- vt
506
+ Gt
507
507
  ), jt = y(
508
508
  f,
509
509
  ce
@@ -711,14 +711,14 @@ const M = [
711
711
  subject: l.inventory_stockAdjustment,
712
712
  actions: [t.update]
713
713
  }
714
- ], Ge = [
714
+ ], ve = [
715
715
  ...M,
716
716
  {
717
717
  label: "Unit Cost History",
718
718
  subject: l.inventory_unitCostHistory,
719
719
  actions: [t.read, t.update]
720
720
  }
721
- ], ve = [
721
+ ], Ge = [
722
722
  ...M,
723
723
  {
724
724
  label: "Wastage Template",
@@ -733,8 +733,8 @@ const M = [
733
733
  ];
734
734
  [
735
735
  ...R,
736
- ...Ge,
737
- ...ve
736
+ ...ve,
737
+ ...Ge
738
738
  ];
739
739
  const T = [
740
740
  ...M,
@@ -1026,12 +1026,12 @@ const Tt = {
1026
1026
  [`set_${a.inventory_unitCostHistory}`]: {
1027
1027
  key: "sys:inventory:unit_cost_history",
1028
1028
  name: "Unit Cost History",
1029
- permissions: Ge
1029
+ permissions: ve
1030
1030
  },
1031
1031
  [`set_${a.inventory_wastageTemplate}`]: {
1032
1032
  key: "sys:inventory:wastage_template",
1033
1033
  name: "Wastage Template",
1034
- permissions: ve
1034
+ permissions: Ge
1035
1035
  },
1036
1036
  [`set_${a.inventory_closingHistory}`]: {
1037
1037
  key: "sys:inventory:closing_history",
@@ -1119,7 +1119,7 @@ const Tt = {
1119
1119
  permissions: Rt
1120
1120
  }
1121
1121
  };
1122
- var v = /* @__PURE__ */ ((e) => (e.hrm_posRole = "hrm::posRole", e.hrm_portalUsers = "hrm::portalUsers", e.hrm_restaurant = "hrm::restaurant", e))(v || {});
1122
+ var G = /* @__PURE__ */ ((e) => (e.hrm_posRole = "hrm::posRole", e.hrm_portalUsers = "hrm::portalUsers", e.hrm_restaurant = "hrm::restaurant", e))(G || {});
1123
1123
  const kt = {
1124
1124
  /**
1125
1125
  * Triggered by: hrm_teamMember:manage (portal toggle)
@@ -1132,7 +1132,7 @@ const kt = {
1132
1132
  permissions: [
1133
1133
  {
1134
1134
  label: "Portal Users",
1135
- subject: v.hrm_portalUsers,
1135
+ subject: G.hrm_portalUsers,
1136
1136
  actions: [t.manage]
1137
1137
  },
1138
1138
  {
@@ -1142,12 +1142,12 @@ const kt = {
1142
1142
  },
1143
1143
  {
1144
1144
  label: "Pos Role",
1145
- subject: v.hrm_posRole,
1145
+ subject: G.hrm_posRole,
1146
1146
  actions: [t.read]
1147
1147
  },
1148
1148
  {
1149
1149
  label: "Restaurant resource",
1150
- subject: v.hrm_restaurant,
1150
+ subject: G.hrm_restaurant,
1151
1151
  actions: [t.read]
1152
1152
  }
1153
1153
  ]
@@ -1162,17 +1162,17 @@ const kt = {
1162
1162
  permissions: [
1163
1163
  {
1164
1164
  label: "Portal Users",
1165
- subject: v.hrm_portalUsers,
1165
+ subject: G.hrm_portalUsers,
1166
1166
  actions: [t.read]
1167
1167
  },
1168
1168
  {
1169
1169
  label: "Restaurant resource",
1170
- subject: v.hrm_restaurant,
1170
+ subject: G.hrm_restaurant,
1171
1171
  actions: [t.read]
1172
1172
  },
1173
1173
  {
1174
1174
  label: "Pos Role",
1175
- subject: v.hrm_posRole,
1175
+ subject: G.hrm_posRole,
1176
1176
  actions: [t.manage]
1177
1177
  }
1178
1178
  ]
@@ -1189,7 +1189,7 @@ const kt = {
1189
1189
  permissions: [
1190
1190
  {
1191
1191
  label: "Portal Users",
1192
- subject: v.hrm_portalUsers,
1192
+ subject: G.hrm_portalUsers,
1193
1193
  actions: [t.read]
1194
1194
  }
1195
1195
  ]
@@ -1644,11 +1644,11 @@ var qe = /* @__PURE__ */ function() {
1644
1644
  var w = new i(n[d]), B = this.expandActions(w.actions), q = W(w.subject), P = n.length - d - 1;
1645
1645
  c = !!(c && w.inverted), !g && w.fields && (g = !0);
1646
1646
  for (var F = 0; F < q.length; F++) {
1647
- var G = q[F];
1648
- o[G] = o[G] || /* @__PURE__ */ Object.create(null);
1647
+ var v = q[F];
1648
+ o[v] = o[v] || /* @__PURE__ */ Object.create(null);
1649
1649
  for (var x = 0; x < B.length; x++) {
1650
1650
  var O = B[x];
1651
- o[G][O] = o[G][O] || /* @__PURE__ */ Object.create(null), o[G][O][P] = w;
1651
+ o[v][O] = o[v][O] || /* @__PURE__ */ Object.create(null), o[v][O][P] = w;
1652
1652
  }
1653
1653
  }
1654
1654
  }
@@ -1784,14 +1784,14 @@ function DA(e, A, s) {
1784
1784
  i.value = !0;
1785
1785
  });
1786
1786
  try {
1787
- const G = await e((x) => {
1787
+ const v = await e((x) => {
1788
1788
  q(() => {
1789
1789
  i && (i.value = !1), F || x();
1790
1790
  });
1791
1791
  });
1792
- P === B && (w.value = G);
1793
- } catch (G) {
1794
- g(G);
1792
+ P === B && (w.value = v);
1793
+ } catch (v) {
1794
+ g(v);
1795
1795
  } finally {
1796
1796
  i && P === B && (i.value = !1), F = !0;
1797
1797
  }
@@ -1865,11 +1865,11 @@ const CA = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
1865
1865
  subtitle: "UH OH! You don't have permission to access this page."
1866
1866
  }, YA = {
1867
1867
  noPermission: pA
1868
- }, GA = {
1868
+ }, vA = {
1869
1869
  title: "访问被拒绝",
1870
1870
  subtitle: "哎呀!您没有权限访问此页面。"
1871
- }, vA = {
1872
- noPermission: GA
1871
+ }, GA = {
1872
+ noPermission: vA
1873
1873
  }, jA = {
1874
1874
  title: "存取被拒絕",
1875
1875
  subtitle: "哎呀!您沒有權限存取此頁面。"
@@ -1886,7 +1886,7 @@ const CA = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
1886
1886
  const { t: A } = Je({
1887
1887
  messages: {
1888
1888
  "en-US": YA,
1889
- "zh-CN": vA,
1889
+ "zh-CN": GA,
1890
1890
  "zh-Hant": VA,
1891
1891
  "th-TH": hA
1892
1892
  }
@@ -1929,7 +1929,7 @@ const NA = [
1929
1929
  {
1930
1930
  path: "/library",
1931
1931
  name: "$media-library",
1932
- component: OA(Re(() => import("./AssetLibrary-df59d8b3.js"))),
1932
+ component: OA(Re(() => import("./AssetLibrary-90b9985d.js"))),
1933
1933
  meta: {
1934
1934
  validationManifest: {
1935
1935
  requiredCaslPermissions: [
package/dist/src/app.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import "./assets/mf-overrides.css";
1
2
  import enUS from "./locales/en-US.json";
2
3
  export type AppMessagesSchema = typeof enUS;
3
4
  export declare const i18nMessages: {
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ .fm-dialog:has(> .fm-dialog--content.asset-preview-dialog-content)>.fm-dialog--header{display:none}.fm-dialog:has(> .fm-dialog--content.asset-preview-dialog-content){overflow:hidden}