@feedmepos/mf-settings 0.0.50-prod → 0.0.52

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.
Files changed (29) hide show
  1. package/dist/{App-ccc37fd9.js → App-22950de9.js} +152 -143
  2. package/dist/Business-c9b59843.js +3893 -0
  3. package/dist/{CreateBusiness-ec365db8.js → CreateBusiness-0850150d.js} +86 -86
  4. package/dist/{FoodCourt-652c44f9.js → FoodCourt-ad9640e4.js} +60 -61
  5. package/dist/{actionButton-cc6bcf01.js → FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js} +25 -25
  6. package/dist/{ResponsiveFabButton.vue_vue_type_script_setup_true_lang-977372d5.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-e9712a4d.js} +63 -63
  7. package/dist/{Tagging-798e2bb7.js → Tagging-55538d2b.js} +6402 -6404
  8. package/dist/TemplateBuilder-54a34178.js +27 -0
  9. package/dist/{app-bd3cfc9c.js → app-b66ea7e1.js} +358 -40
  10. package/dist/app.js +2 -2
  11. package/dist/apps/mf-settings/src/api/foodCourt.d.ts +1 -1
  12. package/dist/apps/mf-settings/src/api/restaurant.d.ts +2 -2
  13. package/dist/apps/mf-settings/src/app.d.ts +1 -0
  14. package/dist/apps/mf-settings/src/components/business/RestaurantForm.vue.d.ts +1 -1
  15. package/dist/apps/mf-settings/src/components/foodcourt/foodCourt.d.ts +1 -1
  16. package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
  17. package/dist/{business-93826a8c.js → business-906742ba.js} +1 -1
  18. package/dist/{loading-6ee8ebc9.js → index-72d7bc88.js} +465 -466
  19. package/dist/{tslib.es6-449ce8af.js → map-695afd6f.js} +444 -561
  20. package/dist/{createForm-681e977a.js → object-8ac0c0d8.js} +18 -19
  21. package/dist/packages/shared/src/components/form/DynamicSheet.vue.d.ts +19 -0
  22. package/dist/packages/shared/src/components/layout/ListLayout.vue.d.ts +2 -0
  23. package/dist/packages/shared/src/composable/prompt.d.ts +9 -0
  24. package/dist/packages/shared/src/composable/sheet.d.ts +17 -0
  25. package/dist/packages/shared/src/helpers/browser.d.ts +1 -0
  26. package/dist/packages/shared/src/helpers/string.d.ts +12 -0
  27. package/package.json +3 -3
  28. package/dist/Business-edf5bd92.js +0 -11975
  29. package/dist/TemplateBuilder-3e34e9e8.js +0 -27
@@ -1,4 +1,4 @@
1
- import { defineComponent as p, openBlock as m, createElementBlock as u, createElementVNode as a, renderSlot as s, toDisplayString as f, normalizeClass as i, toRaw as h, markRaw as g, createVNode as x, render as C } from "vue";
1
+ import { defineComponent as p, openBlock as m, createElementBlock as u, createElementVNode as a, renderSlot as s, toDisplayString as f, normalizeClass as i, markRaw as h, createVNode as g, render as x, toRaw as C } from "vue";
2
2
  const _ = {
3
3
  class: /* @__PURE__ */ i([
4
4
  "flex flex-col",
@@ -31,34 +31,33 @@ const _ = {
31
31
  s(e.$slots, "default")
32
32
  ]));
33
33
  }
34
- });
34
+ }), w = (o, e, r) => {
35
+ if (!e)
36
+ throw new Error("No current instance found");
37
+ const t = document.createElement("div");
38
+ document.body.appendChild(t);
39
+ const c = h(o), n = g(c, r);
40
+ return n.appContext = e.appContext, x(n, t), { container: t, vNode: n };
41
+ };
42
+ function E(o, e, r) {
43
+ var d;
44
+ const { vNode: t, unmount: c } = w(e, o, r), n = (d = t.component) == null ? void 0 : d.exposed;
45
+ n == null || n.trigger();
46
+ }
35
47
  function l(o) {
36
48
  return JSON.parse(JSON.stringify(o));
37
49
  }
38
- function E(o) {
50
+ function S(o) {
39
51
  if (typeof structuredClone > "u")
40
52
  return l(o);
41
53
  try {
42
- return structuredClone(h(o));
54
+ return structuredClone(C(o));
43
55
  } catch {
44
56
  return l(o);
45
57
  }
46
58
  }
47
- const w = (o, e, r) => {
48
- if (!e)
49
- throw new Error("No current instance found");
50
- const t = document.createElement("div");
51
- document.body.appendChild(t);
52
- const c = g(o), n = x(c, r);
53
- return n.appContext = e.appContext, C(n, t), { container: t, vNode: n };
54
- };
55
- function S(o, e, r) {
56
- var d;
57
- const { vNode: t, unmount: c } = w(e, o, r), n = (d = t.component) == null ? void 0 : d.exposed;
58
- n == null || n.trigger();
59
- }
60
59
  export {
61
60
  v as _,
62
- S as a,
63
- E as c
61
+ E as a,
62
+ S as c
64
63
  };
@@ -0,0 +1,19 @@
1
+ export interface DynamicSheetProps {
2
+ title: string;
3
+ onValidationSuccess: () => void;
4
+ }
5
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ "update:show": (value: boolean) => void;
7
+ submit: (value: any) => void;
8
+ }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
9
+ onSubmit?: ((value: any) => any) | undefined;
10
+ "onUpdate:show"?: ((value: boolean) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
12
+ "side-sheet-footer"?(_: {}): any;
13
+ }>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { type DialogProvider } from "@feedmepos/ui-library";
2
+ type DialogMethods = ReturnType<DialogProvider["open"]>;
3
+ export default function usePrompt(): {
4
+ deleteConfirmation: (params: {
5
+ title: string;
6
+ subTitle: string;
7
+ }) => DialogMethods;
8
+ };
9
+ export {};
@@ -0,0 +1,17 @@
1
+ export interface SheetEvent {
2
+ (e: "update:show", value: boolean): void;
3
+ (e: "submit", value: any): void;
4
+ }
5
+ export default function useSheet(): {
6
+ open: <Component extends abstract new (...args: any[]) => any>({ component, props }: {
7
+ component: Component;
8
+ props?: InstanceType<Component>["$props"] | undefined;
9
+ }) => {
10
+ instance: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
11
+ [key: string]: any;
12
+ }>;
13
+ close: () => Promise<void>;
14
+ onOk: (okFn: (value: any) => void) => void;
15
+ onCancel: (cancelFn: () => void) => void;
16
+ };
17
+ };
@@ -0,0 +1 @@
1
+ export declare function isSafari(): boolean;
@@ -0,0 +1,12 @@
1
+ declare function randomString(length: number, config?: {
2
+ includeSpecialCase: boolean;
3
+ }): string;
4
+ declare const filter: {
5
+ alphabetOnly(word: string): string;
6
+ alphaNumeric(word: string): string;
7
+ numericOnly(word: string): string;
8
+ };
9
+ declare const validate: {
10
+ email(input: string): RegExpMatchArray | null;
11
+ };
12
+ export { filter, validate, randomString };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-settings",
3
- "version": "0.0.50-prod",
3
+ "version": "0.0.52",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -21,7 +21,7 @@
21
21
  "@feedmepos/core-dart": "^0.2.6",
22
22
  "@feedmepos/ordering-model": "0.1.2-OT315-beta-2",
23
23
  "@feedmepos/payment-model": "0.0.12",
24
- "@feedmepos/print": "file:../../core-legacy-0.1.tar.gz",
24
+ "@feedmepos/print": "file:../../core-legacy-0.4.tar.gz",
25
25
  "@feedmepos/ui-library": "1.4.0-beta.3",
26
26
  "@feedmepos/mf-e-invoice": "^0.0.6",
27
27
  "@feedmepos/mf-mdm": "1.4.2-beta.135",
@@ -41,7 +41,7 @@
41
41
  "vue-i18n": "10.0.5",
42
42
  "vuedraggable": "^4.1.0",
43
43
  "lodash": "^4.17.21",
44
- "@feedmepos/mf-common": "^1.18.0-beta.5"
44
+ "@feedmepos/mf-common": "^1.20.0-beta.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@rushstack/eslint-patch": "^1.3.3",