@feedmepos/mf-common 1.23.0 → 1.25.0

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/README.md CHANGED
@@ -10,6 +10,18 @@ This package provide:
10
10
 
11
11
  Change log:
12
12
 
13
+ ### 1.25.0
14
+
15
+ - add `hide-app-drawer` prop on `FmNavBar`
16
+
17
+ ### 1.24.0
18
+
19
+ - add `showAddon` prop in `ItemSelector` component
20
+
21
+ ### 1.23.0
22
+
23
+ - export `Dinero` and `FdoDinero`
24
+
13
25
  ### 1.20.1-beta.1
14
26
 
15
27
  - Add support for init and using `@feedmepos/vue-client-monitoring` package.
package/dist/App.vue.d.ts CHANGED
@@ -1,7 +1,17 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
1
+ import type { PortalProps } from "@/components/Portal/index";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Pick<PortalProps, "hideAppDrawer">>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Pick<PortalProps, "hideAppDrawer">>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
2
3
  default?(_: {}): any;
3
4
  }>;
4
5
  export default _default;
6
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
7
+ type __VLS_TypePropsToRuntimeProps<T> = {
8
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
9
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
10
+ } : {
11
+ type: import('vue').PropType<T[K]>;
12
+ required: true;
13
+ };
14
+ };
5
15
  type __VLS_WithTemplateSlots<T, S> = T & {
6
16
  new (): {
7
17
  $slots: S;
@@ -1 +1 @@
1
- {"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../src/App.vue.ts"],"names":[],"mappings":";;;AAkKA,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../src/App.vue.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAW,WAAW,EAAE,MAAM,2BAA2B,CAAA;;;;AA6JrE,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -1,5 +1,5 @@
1
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 { n as S, u as C } from "./app-1da70dba.js";
2
+ import { n as S, u as C } from "./app-1a83be54.js";
3
3
  import { components as O } from "@feedmepos/ui-library";
4
4
  import { c as w } from "./object-27ce045b.js";
5
5
  import "pinia";
@@ -1,6 +1,6 @@
1
1
  import { ref as ct, computed as Le, defineComponent as si, onMounted as li, watch as Dn, resolveComponent as er, openBlock as Ve, createElementBlock as Xe, createElementVNode as Ge, toDisplayString as Pn, unref as Re, createVNode as Ye, isRef as $i, createCommentVNode as Ot, Fragment as nn, renderList as an, createBlock as tr, withCtx as on, normalizeClass as En, Transition as Mn } from "vue";
2
2
  import { _ as Un, h as ci } from "./app-9575c6c7.js";
3
- import { c as un, l as fe, e as Bt, a as ve, d as tt, b as He, f as di, u as Fn, g as pi, n as hi } from "./app-1da70dba.js";
3
+ import { c as un, l as fe, e as Bt, a as ve, d as tt, b as He, f as di, u as Fn, g as pi, n as hi } from "./app-1a83be54.js";
4
4
  import { FmButtonVariant as zt } from "@feedmepos/ui-library";
5
5
  import { defineStore as fi } from "pinia";
6
6
  import { c as At } from "./object-27ce045b.js";
@@ -24473,6 +24473,7 @@ const Ha = fi("mf-common-menu", () => {
24473
24473
  autoFocusSearch: { type: Boolean, default: !1 },
24474
24474
  selectVariant: { type: Boolean },
24475
24475
  showVariant: { type: Boolean },
24476
+ showAddon: { type: Boolean, default: !0 },
24476
24477
  categorizedItems: {},
24477
24478
  data: {}
24478
24479
  },
@@ -24486,7 +24487,7 @@ const Ha = fi("mf-common-menu", () => {
24486
24487
  li(async () => {
24487
24488
  _.categorizedItems || await q.getMenu();
24488
24489
  });
24489
- const X = Le(() => O.value.reduce((e, t) => (e[t.id ?? ""] = {
24490
+ const X = Le(() => O.value.reduce((e, t) => (!t.id && !_.showAddon || (e[t.id ?? ""] = {
24490
24491
  name: t.name,
24491
24492
  items: t.items.map(
24492
24493
  (n) => {
@@ -24503,7 +24504,7 @@ const Ha = fi("mf-common-menu", () => {
24503
24504
  };
24504
24505
  }
24505
24506
  )
24506
- }, e), {})), I = ct((() => ({
24507
+ }), e), {})), I = ct((() => ({
24507
24508
  logic: "AND",
24508
24509
  rules: []
24509
24510
  }))());
@@ -24695,6 +24696,7 @@ const Ha = fi("mf-common-menu", () => {
24695
24696
  class: "flex-1 overflow-y-auto space-y-24 py-16"
24696
24697
  }, [
24697
24698
  (Ve(!0), Xe(nn, null, an(Object.entries(te.value), (l) => (Ve(), tr(s, {
24699
+ key: l[0],
24698
24700
  class: "space-y-8 p-16",
24699
24701
  variant: "outlined"
24700
24702
  }, {
@@ -24763,13 +24765,14 @@ const Ha = fi("mf-common-menu", () => {
24763
24765
  default: on(() => [
24764
24766
  e.showVariant && R.value.includes(c.value) ? (Ve(), Xe("div", so, [
24765
24767
  (Ve(!0), Xe(nn, null, an(c.variant, (f) => (Ve(), tr(o, {
24768
+ key: f.value,
24766
24769
  label: f.label,
24767
24770
  "model-value": C(c, f.value),
24768
24771
  "show-all-toggle": !1,
24769
24772
  value: f.value,
24770
24773
  class: "w-full",
24771
24774
  "onUpdate:modelValue": () => B(c.value, f.value)
24772
- }, null, 8, ["label", "model-value", "value", "onUpdate:modelValue"]))), 256))
24775
+ }, null, 8, ["label", "model-value", "value", "onUpdate:modelValue"]))), 128))
24773
24776
  ])) : Ot("", !0)
24774
24777
  ]),
24775
24778
  _: 2
@@ -24783,7 +24786,7 @@ const Ha = fi("mf-common-menu", () => {
24783
24786
  ];
24784
24787
  }),
24785
24788
  _: 2
24786
- }, 1024))), 256))
24789
+ }, 1024))), 128))
24787
24790
  ], 512)
24788
24791
  ]);
24789
24792
  };
@@ -1,7 +1,7 @@
1
1
  import { ref as C, computed as i, defineComponent as J, mergeModels as X, useModel as Y, watch as Z, resolveComponent as S, openBlock as v, createElementBlock as b, createElementVNode as k, createVNode as m, withCtx as O, normalizeClass as ee, toDisplayString as le, createCommentVNode as B, withModifiers as E, unref as y, Fragment as z, renderList as $, createBlock as D, renderSlot as te, nextTick as ae } from "vue";
2
2
  import { storeToRefs as ne } from "pinia";
3
3
  import { _ as L, h as re } from "./app-9575c6c7.js";
4
- import { n as ue, u as oe } from "./app-1da70dba.js";
4
+ import { n as ue, u as oe } from "./app-1a83be54.js";
5
5
  import "@feedmepos/ui-library";
6
6
  import "vue-router";
7
7
  function se(p, t) {