@feedmepos/mf-menu-portal 1.0.1-dev.1 → 1.0.1-dev.3

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 (60) hide show
  1. package/dist/{App-C6k--u1c.js → App-DFi3EnZh.js} +3 -3
  2. package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-DBzjWI_6.js → BindingTable.vue_vue_type_script_setup_true_lang-BW-EMNqW.js} +1 -1
  3. package/dist/{Catalog-DEYN4dMN.js → Catalog-DJp4KKWx.js} +4 -4
  4. package/dist/{CatalogBinding-NnPKdPvx.js → CatalogBinding-BDIwvdoC.js} +3 -3
  5. package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-OshqaPTE.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-D5M2_1w2.js} +3 -3
  6. package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-poznuDXu.js → CatalogEditor.vue_vue_type_script_setup_true_lang-IbQ3CiKj.js} +6 -6
  7. package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-BSMAIkQ2.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-djuE_0GA.js} +3 -3
  8. package/dist/{Category-CkQiwP9e.js → Category-BTARVi3B.js} +5 -5
  9. package/dist/{Category-BdUP0o34.js → Category-hkf5zdUG.js} +2 -2
  10. package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-UgNVpYgp.js → CategoryList.vue_vue_type_script_setup_true_lang-Z7pQc-kU.js} +4 -4
  11. package/dist/{CookingGuide-CtDkm74r.js → CookingGuide-Dl6GnTaY.js} +4 -4
  12. package/dist/{Group-D2HngOjr.js → Group-B5Dm8yq3.js} +5 -5
  13. package/dist/{Group-DSj7_16V.js → Group-Cdscz66F.js} +2 -2
  14. package/dist/{GroupList.vue_vue_type_script_setup_true_lang-BmmsSKTt.js → GroupList.vue_vue_type_script_setup_true_lang-dQalk6ee.js} +5 -5
  15. package/dist/{Ingredient-BHqz7kjQ.js → Ingredient-Cz3fB0hu.js} +3 -3
  16. package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-D9jK-Fhn.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-BQqUb6-n.js} +1 -1
  17. package/dist/{MenuSetting-DF-cJH7N.js → MenuSetting-B1D-_qLq.js} +3 -3
  18. package/dist/{OrderPacing-CejS9dEI.js → OrderPacing-CqoSZWKY.js} +4 -4
  19. package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-C2mixGUk.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-tDDaCkWk.js} +1 -1
  20. package/dist/{Preview-1C7jGJuY.js → Preview-DPnyF7TV.js} +1 -1
  21. package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-CxKHCptJ.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-CzxO_gZs.js} +1 -1
  22. package/dist/{PrintRoute-BNnMcgTf.js → PrintRoute-8AqdSFD3.js} +3 -3
  23. package/dist/{Product-BoUKxogB.js → Product-i5CMhZT_.js} +4 -4
  24. package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-Bm8_FTvr.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-CQD3up69.js} +2 -2
  25. package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-Cx_mW05R.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-CxBf63-e.js} +3 -3
  26. package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CUeYaXYg.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-BPLap4iv.js} +1 -1
  27. package/dist/ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-B9gDME9M.js +5524 -0
  28. package/dist/{ProductInternalTools-b3sy8bWy.js → ProductInternalTools-CuerqnLj.js} +2 -2
  29. package/dist/{ProductInventoryDialog-DO0D8e3Z.js → ProductInventoryDialog-IxpTiuT5.js} +1 -1
  30. package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-y9Mz__o9.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-DTjvfs8h.js} +1 -1
  31. package/dist/{ProductList.vue_vue_type_script_setup_true_lang-n_UYIwwt.js → ProductList.vue_vue_type_script_setup_true_lang-BNXS2ykX.js} +8 -8
  32. package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-ClG3Prfm.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-lbPeqeoH.js} +1 -1
  33. package/dist/{Products-7vlFJB0P.js → Products-D6F4XKmF.js} +3 -3
  34. package/dist/{Publish-DTP-CgV-.js → Publish-CX0X7qOM.js} +3 -3
  35. package/dist/{Recipe-C1W8_15H.js → Recipe-CGQfksea.js} +3 -3
  36. package/dist/{Scheduler-JRjozwP_.js → Scheduler-bt6c4w0L.js} +3 -3
  37. package/dist/{ServingSequence-BGT5m7JB.js → ServingSequence-BAjofyJD.js} +2 -2
  38. package/dist/{Setting-CS_M1gMN.js → Setting-DzfLb4Nd.js} +6 -6
  39. package/dist/{Subcategory-Cgy9CQCz.js → Subcategory-D6p59Hkh.js} +2 -2
  40. package/dist/{Takeaway-Bpo9XA-j.js → Takeaway-B8wb6MRj.js} +5 -5
  41. package/dist/{Takeaway-DO2dmFGP.js → Takeaway-CenYIsN2.js} +2 -2
  42. package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-C7KexF7H.js → TakeawayList.vue_vue_type_script_setup_true_lang-DZRQWyer.js} +3 -3
  43. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BHxmPO7F.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C0o0cFyc.js} +6 -6
  44. package/dist/{Unit-Bn5UzMp1.js → Unit-BrINKzfx.js} +2 -2
  45. package/dist/{Variant-DmeGEEkw.js → Variant-CkJdSJaD.js} +3 -3
  46. package/dist/{_id_-DC1dJIaj.js → _id_-DdZ0HqmL.js} +3 -3
  47. package/dist/{app-Bd7W2PYm.js → app-DpqfF4nD.js} +39 -39
  48. package/dist/app.js +1 -1
  49. package/dist/apps/mf-menu/src/app.d.ts +5 -0
  50. package/dist/apps/mf-menu/src/components/Product/ProductCategoryMultiSelect.vue.d.ts +18 -0
  51. package/dist/apps/mf-menu/src/composable/useLabelSearch.d.ts +11 -0
  52. package/dist/apps/mf-menu/src/composable/useStableMenuHeight.d.ts +16 -0
  53. package/dist/apps/mf-menu/src/sdk/remyMenuChanges.d.ts +16 -0
  54. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  55. package/dist/assets/{menu-compute-okel5FLc.js → menu-compute-Ba45XBpb.js} +8 -8
  56. package/dist/assets/{validate-menu-DEFGpnQh.js → validate-menu-COyq45Vg.js} +3 -3
  57. package/dist/{provide-Tmjfji09.js → provide-2pqbwkoL.js} +20593 -20493
  58. package/dist/{useActionFeedback-DoFeBFpl.js → useActionFeedback-BWFAuK5M.js} +1 -1
  59. package/package.json +1 -1
  60. package/dist/ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-CeYyZX7g.js +0 -5401
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as e, i as r, d as t, r as u, u as i } from "./app-Bd7W2PYm.js";
1
+ import { F as e, i as r, d as t, r as u, u as i } from "./app-DpqfF4nD.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1521,6 +1521,7 @@ export declare const i18nMessages: {
1521
1521
  placeholder: string;
1522
1522
  add_new: string;
1523
1523
  add_first: string;
1524
+ no_results: string;
1524
1525
  options: {
1525
1526
  product: {
1526
1527
  label: string;
@@ -4872,6 +4873,7 @@ export declare const i18nMessages: {
4872
4873
  placeholder: string;
4873
4874
  add_new: string;
4874
4875
  add_first: string;
4876
+ no_results: string;
4875
4877
  options: {
4876
4878
  product: {
4877
4879
  label: string;
@@ -8223,6 +8225,7 @@ export declare const i18nMessages: {
8223
8225
  placeholder: string;
8224
8226
  add_new: string;
8225
8227
  add_first: string;
8228
+ no_results: string;
8226
8229
  options: {
8227
8230
  product: {
8228
8231
  label: string;
@@ -11574,6 +11577,7 @@ export declare const i18nMessages: {
11574
11577
  placeholder: string;
11575
11578
  add_new: string;
11576
11579
  add_first: string;
11580
+ no_results: string;
11577
11581
  options: {
11578
11582
  product: {
11579
11583
  label: string;
@@ -14925,6 +14929,7 @@ export declare const i18nMessages: {
14925
14929
  placeholder: string;
14926
14930
  add_new: string;
14927
14931
  add_first: string;
14932
+ no_results: string;
14928
14933
  options: {
14929
14934
  product: {
14930
14935
  label: string;
@@ -0,0 +1,18 @@
1
+ type CategoryItem = {
2
+ label: string;
3
+ value: string;
4
+ };
5
+ type __VLS_Props = {
6
+ items: CategoryItem[];
7
+ modelValue: string[];
8
+ disabled: boolean;
9
+ placeholder: string;
10
+ };
11
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
+ "update:modelValue": (value: string[]) => any;
13
+ create: () => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
16
+ onCreate?: (() => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ export default _default;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Filter text for a dropdown's own option list. The options stay SDK-owned;
3
+ * this only narrows what the open menu shows, matching the label the user
4
+ * sees, case-insensitively and ignoring surrounding spaces.
5
+ */
6
+ export declare function useLabelSearch<T>(options: () => readonly T[], labelOf: (option: T) => string): {
7
+ search: import("vue").Ref<string, string>;
8
+ filtered: import("vue").ComputedRef<readonly T[]>;
9
+ noMatches: import("vue").ComputedRef<boolean>;
10
+ reset: () => void;
11
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Holds an open menu's content at the height it opened with.
3
+ *
4
+ * Filtering shrinks the list, and the floating menu then flips between above
5
+ * and below its field while the user is still typing, taking the search box
6
+ * with it. `content` is the element inside the menu's scrolling wrapper; it
7
+ * gets a minimum height that fills the wrapper as it was first laid out, so
8
+ * the wrapper keeps its size and position.
9
+ */
10
+ export declare function useStableMenuHeight(): {
11
+ content: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
12
+ contentStyle: import("vue").ComputedRef<{
13
+ minHeight: string;
14
+ } | undefined>;
15
+ onMenuChanged: (opened: boolean) => Promise<void>;
16
+ };
@@ -0,0 +1,16 @@
1
+ import type { ExternalMenuChangeSource } from '@feedmepos/menu-sdk';
2
+ /**
3
+ * Dispatched on `window` by mf-remy-panel (0.26.0 and later) once a Remy reply
4
+ * that wrote the menu settles: one event per write, detail
5
+ * `{ businessId, restaurantId?, toolName, toolCallId }`.
6
+ *
7
+ * Named here rather than imported. In the portal the panel is the import map's
8
+ * copy, not this app's dependency, and a named import that an older panel does
9
+ * not export fails this whole module at link time.
10
+ */
11
+ export declare const REMY_MENU_CHANGED_EVENT = "remy:menu-changed";
12
+ /**
13
+ * Forwards Remy's menu writes to the SDK. Only the business is passed on:
14
+ * whether it is the menu on screen, and what to do about it, is the SDK's call.
15
+ */
16
+ export declare function remyMenuChanges(target?: Pick<EventTarget, 'addEventListener' | 'removeEventListener'>): ExternalMenuChangeSource;