@feedmepos/mf-menu-portal 0.0.0-stage → 1.0.1-dev.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.
Files changed (263) hide show
  1. package/README.md +30 -2
  2. package/dist/AddPriceGroupDialog.vue_vue_type_script_setup_true_lang-DhKyG3gY.js +20 -0
  3. package/dist/App-C6k--u1c.js +8316 -0
  4. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-C9OSr8ft.js +98 -0
  5. package/dist/BindingLinkDialog.vue_vue_type_script_setup_true_lang-BZVQRyRI.js +180 -0
  6. package/dist/BindingTable.vue_vue_type_script_setup_true_lang-DBzjWI_6.js +179 -0
  7. package/dist/Catalog-DEYN4dMN.js +374 -0
  8. package/dist/CatalogBinding-NnPKdPvx.js +315 -0
  9. package/dist/CatalogEditTabs.vue_vue_type_script_setup_true_lang-OshqaPTE.js +97 -0
  10. package/dist/CatalogEditor.vue_vue_type_script_setup_true_lang-poznuDXu.js +447 -0
  11. package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-BSMAIkQ2.js +117 -0
  12. package/dist/Category-BdUP0o34.js +13 -0
  13. package/dist/Category-CkQiwP9e.js +52 -0
  14. package/dist/CategoryList.vue_vue_type_script_setup_true_lang-UgNVpYgp.js +797 -0
  15. package/dist/CookingGuide-CtDkm74r.js +842 -0
  16. package/dist/FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js +26 -0
  17. package/dist/FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js +1774 -0
  18. package/dist/Group-D2HngOjr.js +52 -0
  19. package/dist/Group-DSj7_16V.js +13 -0
  20. package/dist/GroupList.vue_vue_type_script_setup_true_lang-BmmsSKTt.js +2183 -0
  21. package/dist/Ingredient-BHqz7kjQ.js +463 -0
  22. package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-D9jK-Fhn.js +709 -0
  23. package/dist/ListCountTag.vue_vue_type_script_setup_true_lang-0bjk8Aly.js +15 -0
  24. package/dist/MenuSetting-DF-cJH7N.js +1228 -0
  25. package/dist/OrderPacing-CejS9dEI.js +698 -0
  26. package/dist/OrderPacingFields.vue_vue_type_script_setup_true_lang-C2mixGUk.js +55 -0
  27. package/dist/PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js +41 -0
  28. package/dist/Preview-1C7jGJuY.js +327 -0
  29. package/dist/PriceTierNotice.vue_vue_type_script_setup_true_lang-CxKHCptJ.js +26 -0
  30. package/dist/PrintRoute-BNnMcgTf.js +473 -0
  31. package/dist/Product-BoUKxogB.js +44 -0
  32. package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D8DygCBl.js +110 -0
  33. package/dist/ProductEditorHost.vue_vue_type_script_setup_true_lang-Bm8_FTvr.js +83 -0
  34. package/dist/ProductFilterMenu.vue_vue_type_script_setup_true_lang-Cgc0Ms_n.js +101 -0
  35. package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-Cx_mW05R.js +1246 -0
  36. package/dist/ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CUeYaXYg.js +1955 -0
  37. package/dist/ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-CeYyZX7g.js +5401 -0
  38. package/dist/ProductInternalTools-b3sy8bWy.js +2147 -0
  39. package/dist/ProductInventoryDialog-DO0D8e3Z.js +4 -0
  40. package/dist/ProductInventoryDialog.vue_vue_type_script_setup_true_lang-y9Mz__o9.js +187 -0
  41. package/dist/ProductList.vue_vue_type_script_setup_true_lang-n_UYIwwt.js +10353 -0
  42. package/dist/ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-ClG3Prfm.js +218 -0
  43. package/dist/Products-7vlFJB0P.js +155 -0
  44. package/dist/Publish-DTP-CgV-.js +1261 -0
  45. package/dist/Recipe-C1W8_15H.js +350 -0
  46. package/dist/Scheduler-JRjozwP_.js +637 -0
  47. package/dist/ServingSequence-BGT5m7JB.js +336 -0
  48. package/dist/Setting-CS_M1gMN.js +173 -0
  49. package/dist/Subcategory-Cgy9CQCz.js +412 -0
  50. package/dist/Takeaway-Bpo9XA-j.js +48 -0
  51. package/dist/Takeaway-DO2dmFGP.js +13 -0
  52. package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-C7KexF7H.js +554 -0
  53. package/dist/TranslationLanguageSelector.vue_vue_type_script_setup_true_lang-BJZ6VcrT.js +161 -0
  54. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-B0j2PNih.js +158 -0
  55. package/dist/TranslationViewChip.vue_vue_type_script_setup_true_lang-CAkLEmSA.js +69 -0
  56. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BHxmPO7F.js +1213 -0
  57. package/dist/Unit-Bn5UzMp1.js +385 -0
  58. package/dist/Variant-DmeGEEkw.js +538 -0
  59. package/dist/_id_-DC1dJIaj.js +28 -0
  60. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  61. package/dist/app-Bd7W2PYm.js +2008 -0
  62. package/dist/app.js +8 -0
  63. package/dist/apps/mf-menu/src/App.vue.d.ts +2 -0
  64. package/dist/apps/mf-menu/src/Entry.vue.d.ts +4 -0
  65. package/dist/apps/mf-menu/src/app.d.ts +16771 -0
  66. package/dist/apps/mf-menu/src/assets/icons/index.d.ts +4 -0
  67. package/dist/apps/mf-menu/src/components/CatalogBindingList.vue.d.ts +9 -0
  68. package/dist/apps/mf-menu/src/components/CatalogList.vue.d.ts +6 -0
  69. package/dist/apps/mf-menu/src/components/CategoryImageField.vue.d.ts +17 -0
  70. package/dist/apps/mf-menu/src/components/CategoryList.vue.d.ts +28 -0
  71. package/dist/apps/mf-menu/src/components/Fields/RangeSlider.vue.d.ts +23 -0
  72. package/dist/apps/mf-menu/src/components/GroupList.vue.d.ts +28 -0
  73. package/dist/apps/mf-menu/src/components/GroupTranslationSideSheet.vue.d.ts +14 -0
  74. package/dist/apps/mf-menu/src/components/IngredientList.vue.d.ts +15 -0
  75. package/dist/apps/mf-menu/src/components/MenuHeaderContext.vue.d.ts +2 -0
  76. package/dist/apps/mf-menu/src/components/MenuRestaurantSelector.vue.d.ts +7 -0
  77. package/dist/apps/mf-menu/src/components/MenuSetting/AddMemberTierDialog.vue.d.ts +2 -0
  78. package/dist/apps/mf-menu/src/components/MenuSetting/AddPriceGroupDialog.vue.d.ts +2 -0
  79. package/dist/apps/mf-menu/src/components/MenuSetting/ConfigurationTab.vue.d.ts +6 -0
  80. package/dist/apps/mf-menu/src/components/MenuSetting/MemberPricingTab.vue.d.ts +6 -0
  81. package/dist/apps/mf-menu/src/components/MenuSetting/PriceGroupTab.vue.d.ts +6 -0
  82. package/dist/apps/mf-menu/src/components/MenuSetting/RuleGroupsTab.vue.d.ts +6 -0
  83. package/dist/apps/mf-menu/src/components/Navigator.vue.d.ts +2 -0
  84. package/dist/apps/mf-menu/src/components/OrderPacingList.vue.d.ts +6 -0
  85. package/dist/apps/mf-menu/src/components/PriceTier/PriceTierNotice.vue.d.ts +6 -0
  86. package/dist/apps/mf-menu/src/components/PrintRouteList.vue.d.ts +6 -0
  87. package/dist/apps/mf-menu/src/components/Product/LocalizedCurrencySymbol.vue.d.ts +5 -0
  88. package/dist/apps/mf-menu/src/components/Product/ProductAttributeFilter.vue.d.ts +13 -0
  89. package/dist/apps/mf-menu/src/components/Product/ProductCategorySelector.vue.d.ts +11 -0
  90. package/dist/apps/mf-menu/src/components/Product/ProductChipSummary.vue.d.ts +9 -0
  91. package/dist/apps/mf-menu/src/components/Product/ProductChoicePicker.vue.d.ts +15 -0
  92. package/dist/apps/mf-menu/src/components/Product/ProductEditorHost.vue.d.ts +26 -0
  93. package/dist/apps/mf-menu/src/components/Product/ProductFilterMenu.vue.d.ts +26 -0
  94. package/dist/apps/mf-menu/src/components/Product/ProductForm.vue.d.ts +42 -0
  95. package/dist/apps/mf-menu/src/components/Product/ProductFormSection.vue.d.ts +41 -0
  96. package/dist/apps/mf-menu/src/components/Product/ProductGroupCreateSheet.vue.d.ts +19 -0
  97. package/dist/apps/mf-menu/src/components/Product/ProductGroupSheet.vue.d.ts +56 -0
  98. package/dist/apps/mf-menu/src/components/Product/ProductInlineCategoryCreateField.vue.d.ts +10 -0
  99. package/dist/apps/mf-menu/src/components/Product/ProductInlineCreateHost.vue.d.ts +38 -0
  100. package/dist/apps/mf-menu/src/components/Product/ProductInlineSubcategoryCreateField.vue.d.ts +10 -0
  101. package/dist/apps/mf-menu/src/components/Product/ProductInventoryDialog.vue.d.ts +12 -0
  102. package/dist/apps/mf-menu/src/components/Product/ProductLocaleBadge.vue.d.ts +6 -0
  103. package/dist/apps/mf-menu/src/components/Product/ProductMemberPriceTooltip.vue.d.ts +6 -0
  104. package/dist/apps/mf-menu/src/components/Product/ProductMoneyField.vue.d.ts +25 -0
  105. package/dist/apps/mf-menu/src/components/Product/ProductOverviewSheet.vue.d.ts +11 -0
  106. package/dist/apps/mf-menu/src/components/Product/ProductPacingSheet.vue.d.ts +13 -0
  107. package/dist/apps/mf-menu/src/components/Product/ProductPriceTierButton.vue.d.ts +11 -0
  108. package/dist/apps/mf-menu/src/components/Product/ProductPricingSheet.vue.d.ts +26 -0
  109. package/dist/apps/mf-menu/src/components/Product/ProductPrintRouteSheet.vue.d.ts +12 -0
  110. package/dist/apps/mf-menu/src/components/Product/ProductQuantityField.vue.d.ts +16 -0
  111. package/dist/apps/mf-menu/src/components/Product/ProductSummaryCard.vue.d.ts +9 -0
  112. package/dist/apps/mf-menu/src/components/Product/ProductTakeawaySheet.vue.d.ts +12 -0
  113. package/dist/apps/mf-menu/src/components/Product/ProductTranslationDialog.vue.d.ts +16 -0
  114. package/dist/apps/mf-menu/src/components/Product/ProductVariantCreateSheet.vue.d.ts +12 -0
  115. package/dist/apps/mf-menu/src/components/Product/ProductVariantTranslationSheet.vue.d.ts +13 -0
  116. package/dist/apps/mf-menu/src/components/Product/inlineCreate.d.ts +23 -0
  117. package/dist/apps/mf-menu/src/components/Product/labels.d.ts +15 -0
  118. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageBadge.vue.d.ts +7 -0
  119. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageDownloadDialog.vue.d.ts +15 -0
  120. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageFormatChips.vue.d.ts +13 -0
  121. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageLegacyChip.vue.d.ts +2 -0
  122. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageProgressDialog.vue.d.ts +11 -0
  123. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageResult.vue.d.ts +14 -0
  124. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageReview.vue.d.ts +21 -0
  125. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageThumb.vue.d.ts +15 -0
  126. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageUpdateFlow.vue.d.ts +6 -0
  127. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageUpdateSheet.vue.d.ts +34 -0
  128. package/dist/apps/mf-menu/src/components/ProductBatchImage/batchImageFiles.d.ts +53 -0
  129. package/dist/apps/mf-menu/src/components/ProductImage/ProductImageCustomFormatDialog.vue.d.ts +40 -0
  130. package/dist/apps/mf-menu/src/components/ProductImage/ProductImageEditorDialog.vue.d.ts +82 -0
  131. package/dist/apps/mf-menu/src/components/ProductImage/ProductImageField.vue.d.ts +42 -0
  132. package/dist/apps/mf-menu/src/components/ProductImage/ProductImageManageSheet.vue.d.ts +47 -0
  133. package/dist/apps/mf-menu/src/components/ProductImage/ProductImageRegenerateDialog.vue.d.ts +44 -0
  134. package/dist/apps/mf-menu/src/components/ProductImage/imageBrowser.d.ts +18 -0
  135. package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +18 -0
  136. package/dist/apps/mf-menu/src/components/PublishList.vue.d.ts +14 -0
  137. package/dist/apps/mf-menu/src/components/RecipeList.vue.d.ts +11 -0
  138. package/dist/apps/mf-menu/src/components/SchedulerList.vue.d.ts +6 -0
  139. package/dist/apps/mf-menu/src/components/ServingSequenceList.vue.d.ts +6 -0
  140. package/dist/apps/mf-menu/src/components/SubcategoryList.vue.d.ts +6 -0
  141. package/dist/apps/mf-menu/src/components/TakeawayList.vue.d.ts +26 -0
  142. package/dist/apps/mf-menu/src/components/TranslationSideSheet.vue.d.ts +36 -0
  143. package/dist/apps/mf-menu/src/components/UnitList.vue.d.ts +6 -0
  144. package/dist/apps/mf-menu/src/components/V3ToV4MigrationBanner.vue.d.ts +6 -0
  145. package/dist/apps/mf-menu/src/components/V3ToV4MigrationConfirmDialog.vue.d.ts +12 -0
  146. package/dist/apps/mf-menu/src/components/VariantList.vue.d.ts +6 -0
  147. package/dist/apps/mf-menu/src/components/catalog/CatalogEditor.vue.d.ts +14 -0
  148. package/dist/apps/mf-menu/src/components/catalog/CatalogLinkProductAction.vue.d.ts +7 -0
  149. package/dist/apps/mf-menu/src/components/catalog/CatalogUsage.vue.d.ts +6 -0
  150. package/dist/apps/mf-menu/src/components/catalog/tableSemantics.d.ts +7 -0
  151. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +33 -0
  152. package/dist/apps/mf-menu/src/components/feature/CookingGuide/RemoveCookingGuideConfirmation.vue.d.ts +6 -0
  153. package/dist/apps/mf-menu/src/components/feature/EmptyDataTemplate/Icon.vue.d.ts +2 -0
  154. package/dist/apps/mf-menu/src/components/feature/EmptyDataTemplate/index.d.ts +1 -0
  155. package/dist/apps/mf-menu/src/components/feature/EmptyDataTemplate/index.vue.d.ts +18 -0
  156. package/dist/apps/mf-menu/src/components/feature/InventoryBinding/BindingLinkDialog.vue.d.ts +49 -0
  157. package/dist/apps/mf-menu/src/components/feature/InventoryBinding/BindingTable.vue.d.ts +38 -0
  158. package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +65 -0
  159. package/dist/apps/mf-menu/src/components/feature/OrderPacing/DeleteOrderPacingConfirmation.vue.d.ts +6 -0
  160. package/dist/apps/mf-menu/src/components/feature/OrderPacing/OrderPacingFields.vue.d.ts +17 -0
  161. package/dist/apps/mf-menu/src/components/feature/PrintRoute/RemoveRouteConfirmation.vue.d.ts +6 -0
  162. package/dist/apps/mf-menu/src/components/feature/TreeEditor/TreeEditorOpenner.vue.d.ts +18 -0
  163. package/dist/apps/mf-menu/src/components/feature/TreeEditor/openner.d.ts +7 -0
  164. package/dist/apps/mf-menu/src/components/info/TextChip.vue.d.ts +13 -0
  165. package/dist/apps/mf-menu/src/components/layout/FlatInlineSort.vue.d.ts +25 -0
  166. package/dist/apps/mf-menu/src/components/layout/FormColumn.vue.d.ts +12 -0
  167. package/dist/apps/mf-menu/src/components/layout/FormItem.vue.d.ts +17 -0
  168. package/dist/apps/mf-menu/src/components/layout/FormRow.vue.d.ts +9 -0
  169. package/dist/apps/mf-menu/src/components/layout/FormSection.vue.d.ts +18 -0
  170. package/dist/apps/mf-menu/src/components/layout/FullScreenForm.vue.d.ts +31 -0
  171. package/dist/apps/mf-menu/src/components/layout/FullWrapper.vue.d.ts +9 -0
  172. package/dist/apps/mf-menu/src/components/layout/LabeledTextField.vue.d.ts +16 -0
  173. package/dist/apps/mf-menu/src/components/layout/ListCountTag.vue.d.ts +5 -0
  174. package/dist/apps/mf-menu/src/components/layout/LottieAnimation.vue.d.ts +39 -0
  175. package/dist/apps/mf-menu/src/components/layout/PageLayout.vue.d.ts +19 -0
  176. package/dist/apps/mf-menu/src/components/layout/ProgressBar.vue.d.ts +9 -0
  177. package/dist/apps/mf-menu/src/components/loading/AppLoading.vue.d.ts +20 -0
  178. package/dist/apps/mf-menu/src/components/loading/PageLoading.vue.d.ts +2 -0
  179. package/dist/apps/mf-menu/src/components/loading/index.d.ts +1 -0
  180. package/dist/apps/mf-menu/src/components/placeholder/PlaceholderView.vue.d.ts +5 -0
  181. package/dist/apps/mf-menu/src/components/preview/MenuPreview.vue.d.ts +13 -0
  182. package/dist/apps/mf-menu/src/components/preview/simulatorPort.d.ts +23 -0
  183. package/dist/apps/mf-menu/src/components/publish/PublishRevertPreview.vue.d.ts +6 -0
  184. package/dist/apps/mf-menu/src/components/publish/PublishScheduleDetails.vue.d.ts +6 -0
  185. package/dist/apps/mf-menu/src/components/publish/publishStatus.d.ts +15 -0
  186. package/dist/apps/mf-menu/src/components/translation/TranslationLanguageSelector.vue.d.ts +21 -0
  187. package/dist/apps/mf-menu/src/components/translation/TranslationViewChip.vue.d.ts +12 -0
  188. package/dist/apps/mf-menu/src/components/translation/localeName.d.ts +11 -0
  189. package/dist/apps/mf-menu/src/components/translation/localeSymbol.d.ts +15 -0
  190. package/dist/apps/mf-menu/src/composable/elementPosition.d.ts +17 -0
  191. package/dist/apps/mf-menu/src/composable/menuNotifier.d.ts +14 -0
  192. package/dist/apps/mf-menu/src/composable/navigator.d.ts +16 -0
  193. package/dist/apps/mf-menu/src/composable/useActionFeedback.d.ts +81 -0
  194. package/dist/apps/mf-menu/src/composable/useEditorValidation.d.ts +21 -0
  195. package/dist/apps/mf-menu/src/init.d.ts +1 -0
  196. package/dist/apps/mf-menu/src/main.d.ts +2 -0
  197. package/dist/apps/mf-menu/src/plugins.d.ts +4 -0
  198. package/dist/apps/mf-menu/src/router/index.d.ts +2 -0
  199. package/dist/apps/mf-menu/src/router/shared.d.ts +65 -0
  200. package/dist/apps/mf-menu/src/sdk/host.d.ts +9 -0
  201. package/dist/apps/mf-menu/src/sdk/import-export.d.ts +9 -0
  202. package/dist/apps/mf-menu/src/sdk/provide.d.ts +33 -0
  203. package/dist/apps/mf-menu/src/sdk/useReadModel.d.ts +16 -0
  204. package/dist/apps/mf-menu/src/sdk/useSdkMessage.d.ts +11 -0
  205. package/dist/apps/mf-menu/src/stores/app.d.ts +17 -0
  206. package/dist/apps/mf-menu/src/utils/ruleValueKey.d.ts +12 -0
  207. package/dist/apps/mf-menu/src/utils/worker-loader.d.ts +12 -0
  208. package/dist/apps/mf-menu/src/utils/worker.d.ts +4 -0
  209. package/dist/apps/mf-menu/src/views/Catalog/Catalog.vue.d.ts +2 -0
  210. package/dist/apps/mf-menu/src/views/Catalog/Edit/CatalogEditTabs.vue.d.ts +2 -0
  211. package/dist/apps/mf-menu/src/views/Catalog/Edit/Category.vue.d.ts +2 -0
  212. package/dist/apps/mf-menu/src/views/Catalog/Edit/Group.vue.d.ts +2 -0
  213. package/dist/apps/mf-menu/src/views/Catalog/Edit/MainSetting.vue.d.ts +2 -0
  214. package/dist/apps/mf-menu/src/views/Catalog/Edit/NamedSetting.vue.d.ts +5 -0
  215. package/dist/apps/mf-menu/src/views/Catalog/Edit/Product.vue.d.ts +2 -0
  216. package/dist/apps/mf-menu/src/views/Catalog/Edit/Setting.vue.d.ts +2 -0
  217. package/dist/apps/mf-menu/src/views/Catalog/Edit/Takeaway.vue.d.ts +2 -0
  218. package/dist/apps/mf-menu/src/views/Catalog/Edit/[id].vue.d.ts +2 -0
  219. package/dist/apps/mf-menu/src/views/CatalogBinding/CatalogBinding.vue.d.ts +2 -0
  220. package/dist/apps/mf-menu/src/views/Category/Category.vue.d.ts +2 -0
  221. package/dist/apps/mf-menu/src/views/CookingGuide/CookingGuide.vue.d.ts +2 -0
  222. package/dist/apps/mf-menu/src/views/Group/Group.vue.d.ts +2 -0
  223. package/dist/apps/mf-menu/src/views/ImportExport/ImportDiffPreview.vue.d.ts +25 -0
  224. package/dist/apps/mf-menu/src/views/ImportExport/ImportExport.vue.d.ts +9 -0
  225. package/dist/apps/mf-menu/src/views/ImportExport/ImportV3DiffPreview.vue.d.ts +26 -0
  226. package/dist/apps/mf-menu/src/views/ImportExport/PreviewImportTable.vue.d.ts +30 -0
  227. package/dist/apps/mf-menu/src/views/Ingredient/Ingredient.vue.d.ts +2 -0
  228. package/dist/apps/mf-menu/src/views/MenuManagementEditor/CategoryRenameDialog.vue.d.ts +26 -0
  229. package/dist/apps/mf-menu/src/views/MenuManagementEditor/DetailPane.vue.d.ts +23 -0
  230. package/dist/apps/mf-menu/src/views/MenuManagementEditor/EditorHistoryControls.vue.d.ts +22 -0
  231. package/dist/apps/mf-menu/src/views/MenuManagementEditor/MenuManagementEditor.vue.d.ts +10 -0
  232. package/dist/apps/mf-menu/src/views/MenuManagementEditor/RestaurantAttributesFilter.vue.d.ts +2 -0
  233. package/dist/apps/mf-menu/src/views/MenuManagementEditor/ScopeSwitcher.vue.d.ts +2 -0
  234. package/dist/apps/mf-menu/src/views/MenuManagementEditor/TreeFilter.vue.d.ts +2 -0
  235. package/dist/apps/mf-menu/src/views/MenuManagementEditor/TreePanel.vue.d.ts +9 -0
  236. package/dist/apps/mf-menu/src/views/MenuManagementEditor/TreeRow.vue.d.ts +25 -0
  237. package/dist/apps/mf-menu/src/views/MenuSetting/MenuSetting.vue.d.ts +2 -0
  238. package/dist/apps/mf-menu/src/views/OrderPacing/OrderPacing.vue.d.ts +2 -0
  239. package/dist/apps/mf-menu/src/views/Preview/Preview.vue.d.ts +2 -0
  240. package/dist/apps/mf-menu/src/views/PrintRoute/PrintRoute.vue.d.ts +2 -0
  241. package/dist/apps/mf-menu/src/views/Product/ProductInternalTools.vue.d.ts +2 -0
  242. package/dist/apps/mf-menu/src/views/Product/Products.vue.d.ts +2 -0
  243. package/dist/apps/mf-menu/src/views/Publish/Publish.vue.d.ts +2 -0
  244. package/dist/apps/mf-menu/src/views/Recipe/Recipe.vue.d.ts +2 -0
  245. package/dist/apps/mf-menu/src/views/Scheduler/Scheduler.vue.d.ts +2 -0
  246. package/dist/apps/mf-menu/src/views/ServingSequence/ServingSequence.vue.d.ts +2 -0
  247. package/dist/apps/mf-menu/src/views/Subcategory/Subcategory.vue.d.ts +2 -0
  248. package/dist/apps/mf-menu/src/views/Takeaway/Takeaway.vue.d.ts +2 -0
  249. package/dist/apps/mf-menu/src/views/Unit/Unit.vue.d.ts +2 -0
  250. package/dist/apps/mf-menu/src/views/Variant/Variant.vue.d.ts +2 -0
  251. package/dist/apps/mf-menu/src/workers/menu-compute.d.ts +1 -0
  252. package/dist/apps/mf-menu/src/workers/validate-menu.d.ts +1 -0
  253. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -0
  254. package/dist/assets/menu-compute-okel5FLc.js +260 -0
  255. package/dist/assets/validate-menu-DEFGpnQh.js +130 -0
  256. package/dist/index.vue_vue_type_script_setup_true_lang-CGPDazqs.js +57 -0
  257. package/dist/mf-menu-portal.css +1 -0
  258. package/dist/provide-Tmjfji09.js +190840 -0
  259. package/dist/ruleValueKey-BF52PuHb.js +10 -0
  260. package/dist/tableSemantics-C9WFO_I_.js +22 -0
  261. package/dist/useActionFeedback-DoFeBFpl.js +95 -0
  262. package/dist/useEditorValidation-Ctef5Bxt.js +63 -0
  263. package/package.json +79 -3
@@ -0,0 +1,473 @@
1
+ import { defineComponent as B, resolveComponent as _, openBlock as u, createElementBlock as y, createVNode as n, withCtx as m, createElementVNode as i, toDisplayString as b, createBlock as k, Fragment as I, renderList as W, createCommentVNode as A, computed as p, ref as $, shallowRef as O, onUnmounted as ve, h as F, withModifiers as G, unref as a, mergeProps as fe } from "vue";
2
+ import { useI18n as ge } from "@feedmepos/mf-common";
3
+ import { useDialog as ye, components as z } from "@feedmepos/ui-library";
4
+ import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
5
+ import { _ as ke } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-D9jK-Fhn.js";
6
+ import { _ as H } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
7
+ import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
8
+ import { u as he } from "./useActionFeedback-DoFeBFpl.js";
9
+ import { u as we } from "./useEditorValidation-Ctef5Bxt.js";
10
+ import { b as Ce, u as J, a as Fe } from "./provide-Tmjfji09.js";
11
+ const xe = { class: "fm-typo-en-body-lg-600" }, Pe = { class: "fm-typo-en-body-lg-600" }, Se = { class: "fm-typo-en-body-md-400" }, Ve = /* @__PURE__ */ B({
12
+ __name: "RemoveRouteConfirmation",
13
+ props: {
14
+ row: {}
15
+ },
16
+ setup(V) {
17
+ return (l, t) => {
18
+ const h = _("i18n-t"), x = _("FmIcon"), w = _("FmListItem"), v = _("FmList");
19
+ return u(), y("div", null, [
20
+ n(h, {
21
+ keypath: l.row.linkedProductCount > 0 ? "menu.print_route.dialogs.remove.message.with_products" : "menu.print_route.dialogs.remove.message.confirm",
22
+ scope: "global",
23
+ tag: "p"
24
+ }, {
25
+ count: m(() => [
26
+ i("span", xe, b(l.row.linkedProductCount), 1)
27
+ ]),
28
+ name: m(() => [
29
+ i("span", Pe, b(l.row.name), 1)
30
+ ]),
31
+ _: 1
32
+ }, 8, ["keypath"]),
33
+ l.row.linkedProductCount > 0 ? (u(), k(v, {
34
+ key: 0,
35
+ class: "mt-8"
36
+ }, {
37
+ default: m(() => [
38
+ (u(!0), y(I, null, W(l.row.linkedProductNames, (s) => (u(), k(w, {
39
+ key: s,
40
+ class: "!p-0 !gap-4 mt-4",
41
+ clickable: !1
42
+ }, {
43
+ prepend: m(() => [
44
+ n(x, {
45
+ color: "neutral-gray-900",
46
+ name: "fiber_manual_record",
47
+ size: "sm"
48
+ })
49
+ ]),
50
+ default: m(() => [
51
+ i("span", Se, b(s), 1)
52
+ ]),
53
+ _: 2
54
+ }, 1024))), 128))
55
+ ]),
56
+ _: 1
57
+ })) : A("", !0)
58
+ ]);
59
+ };
60
+ }
61
+ }), Le = { class: "flex flex-1 justify-end" }, De = {
62
+ key: 0,
63
+ class: "flex flex-col gap-16 items-start"
64
+ }, Re = {
65
+ class: "text-fm-color-typo-secondary",
66
+ role: "alert"
67
+ }, $e = {
68
+ key: 1,
69
+ "data-menu-state": "unavailable"
70
+ }, ze = { class: "flex justify-end items-center" }, Ie = { class: "w-[320px]" }, Ae = { class: "fm-typo-en-title-md-600" }, Be = { class: "flex flex-col gap-32 pb-16" }, Ee = { class: "space-y-16" }, Ue = { class: "flex items-center gap-8" }, Me = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ne = { class: "flex gap-8 items-center justify-start" }, je = /* @__PURE__ */ B({
71
+ __name: "PrintRouteList",
72
+ props: {
73
+ sdk: {}
74
+ },
75
+ setup(V) {
76
+ const l = V, { t } = ge(), h = Ce(), x = ye(), { run: w } = he(), v = J(
77
+ l.sdk.printDepartment.list
78
+ ), s = p(
79
+ () => v.value.status === "ready" ? v.value.value : null
80
+ ), X = p(() => {
81
+ var e;
82
+ return ((e = s.value) == null ? void 0 : e.query) ?? "";
83
+ }), Y = p(() => {
84
+ var e;
85
+ return [...((e = s.value) == null ? void 0 : e.rows) ?? []];
86
+ }), g = $(!1), P = $(!1), L = $(!1);
87
+ async function Z() {
88
+ L.value = !0;
89
+ try {
90
+ await w(() => l.sdk.printDepartment.retryRead(), {
91
+ showLoading: !1
92
+ });
93
+ } finally {
94
+ L.value = !1;
95
+ }
96
+ }
97
+ const E = J(
98
+ l.sdk.linkProduct.catalogue
99
+ ), ee = p(
100
+ () => E.value.status === "ready" ? E.value.value : null
101
+ ), te = p(
102
+ () => {
103
+ var e;
104
+ return ((e = c.value) == null ? void 0 : e.linkedProductIds) ?? [];
105
+ }
106
+ ), ae = p(() => {
107
+ var e;
108
+ return ((e = c.value) == null ? void 0 : e.linkedGroups) ?? [];
109
+ }), oe = p(
110
+ () => {
111
+ var e;
112
+ return ((e = c.value) == null ? void 0 : e.linkedProductQuery) ?? "";
113
+ }
114
+ ), ne = p(
115
+ () => {
116
+ var e;
117
+ return ((e = c.value) == null ? void 0 : e.linkedProductCount) ?? 0;
118
+ }
119
+ );
120
+ function le(e) {
121
+ return [
122
+ {
123
+ accessorKey: "name",
124
+ enableSorting: !1,
125
+ header: () => e.isSynthetic ? t("menu.tree_editor.labels.addon") : e.name
126
+ },
127
+ {
128
+ id: "actions",
129
+ enableSorting: !1,
130
+ header: "",
131
+ cell: (r) => F("div", { class: "flex justify-end" }, [
132
+ F(z.FmButton, {
133
+ icon: "delete",
134
+ variant: "tertiary",
135
+ textColor: "neutral-gray-400",
136
+ "aria-label": t("menu.common.actions.remove"),
137
+ onClick: G(
138
+ () => d.value.unlinkProduct(r.row.original.id),
139
+ ["stop", "prevent"]
140
+ )
141
+ })
142
+ ])
143
+ }
144
+ ];
145
+ }
146
+ const d = O(
147
+ l.sdk.printDepartment.editor()
148
+ ), C = O(
149
+ d.value.get()
150
+ );
151
+ let D = d.value.subscribe(
152
+ (e) => C.value = e
153
+ );
154
+ const c = p(
155
+ () => C.value.status === "ready" ? C.value.value : null
156
+ ), R = we(() => d.value), U = p(
157
+ () => c.value ? R.issue(c.value.fieldIssues, "name") : null
158
+ );
159
+ function M(e) {
160
+ D(), d.value.dispose(), d.value = l.sdk.printDepartment.editor(e), C.value = d.value.get(), D = d.value.subscribe(
161
+ (r) => C.value = r
162
+ );
163
+ }
164
+ ve(() => {
165
+ l.sdk.printDepartment.search(""), D(), d.value.dispose();
166
+ });
167
+ function N() {
168
+ !s.value || s.value.create.state !== "allowed" || (M(), g.value = !0);
169
+ }
170
+ function se(e) {
171
+ M(e.id), g.value = !0;
172
+ }
173
+ function j() {
174
+ g.value = !1;
175
+ }
176
+ function re() {
177
+ var e;
178
+ if (!((e = c.value) != null && e.dirty)) {
179
+ g.value = !1;
180
+ return;
181
+ }
182
+ x.open({
183
+ title: t("menu.common.dialog.dismiss.title"),
184
+ message: t("menu.common.dialog.dismiss.message"),
185
+ primaryActions: {
186
+ text: t("menu.common.dialog.dismiss.discard"),
187
+ close: !0
188
+ },
189
+ secondaryActions: {
190
+ text: t("menu.common.actions.cancel"),
191
+ close: !0
192
+ }
193
+ }).onPrimary(() => {
194
+ g.value = !1;
195
+ });
196
+ }
197
+ async function ie() {
198
+ var f;
199
+ const e = ((f = c.value) == null ? void 0 : f.name.trim()) ?? "";
200
+ (await w(
201
+ () => R.submit(() => d.value.submit()),
202
+ {
203
+ // Legacy's success copy is "<name> saved" for both create and update; the
204
+ // frozen baseline asserts that text, so it is not restyled here.
205
+ successMessage: t("menu.print_route.manager.action.saved", {
206
+ name: e
207
+ }),
208
+ // `submit()` publishes `submitting` synchronously only when it will
209
+ // actually issue a request; a required-field, duplicate-name or
210
+ // not-found refusal is decided locally and sends nothing. The frozen
211
+ // `printDepartment/{create,update}/empty-name` groups record the inline
212
+ // "Required" message and no snackbar at all, so the spinner must not
213
+ // flash for them.
214
+ showLoading: () => {
215
+ var S;
216
+ return ((S = c.value) == null ? void 0 : S.status) === "submitting";
217
+ }
218
+ }
219
+ )).kind === "success" && j();
220
+ }
221
+ function ue(e) {
222
+ x.open({
223
+ title: t("menu.print_route.dialogs.remove.title"),
224
+ contentComponent: F(Ve, { row: e }),
225
+ primaryActions: {
226
+ text: t("menu.print_route.actions.remove"),
227
+ close: !0,
228
+ variant: "destructive"
229
+ },
230
+ secondaryActions: {
231
+ text: t("menu.print_route.actions.cancel"),
232
+ close: !0
233
+ }
234
+ }).onPrimary(async () => {
235
+ await w(() => l.sdk.printDepartment.remove(e.id), {
236
+ successMessage: t("menu.print_route.manager.action.removed", {
237
+ name: e.name
238
+ })
239
+ });
240
+ });
241
+ }
242
+ const de = p(() => [
243
+ {
244
+ accessorKey: "name",
245
+ header: () => t("menu.print_route.table.columns.name"),
246
+ cell: (e) => e.getValue(),
247
+ enableSorting: !1
248
+ },
249
+ {
250
+ accessorKey: "linkedProductCount",
251
+ header: () => t("menu.print_route.table.columns.products"),
252
+ cell: (e) => t("menu.print_route.table.columns.products_count", {
253
+ count: e.getValue()
254
+ }),
255
+ enableSorting: !1
256
+ },
257
+ {
258
+ accessorKey: "id",
259
+ header: () => "",
260
+ size: 52,
261
+ meta: { cellClass: "pl-16", headerContentClass: "-mx-16" },
262
+ enableSorting: !1,
263
+ cell: (e) => F("div", { class: "flex justify-end" }, [
264
+ F(z.FmButton, {
265
+ icon: "delete",
266
+ textColor: "neutral-gray-400",
267
+ variant: "tertiary",
268
+ disabled: e.row.original.remove.state !== "allowed",
269
+ "aria-label": t("menu.print_route.actions.remove"),
270
+ onClick: G(
271
+ () => ue(e.row.original),
272
+ ["stop", "prevent"]
273
+ )
274
+ })
275
+ ])
276
+ }
277
+ ]);
278
+ function ce(e) {
279
+ d.value.setLinkedProducts(e), P.value = !1;
280
+ }
281
+ return (e, r) => {
282
+ const f = _("FmButton"), S = _("FmCircularProgress"), K = _("FmSearch"), Q = _("FmTable"), me = _("FmTextField"), pe = _("FmSpacer"), _e = _("FmSideSheet");
283
+ return u(), k(be, {
284
+ heading: a(t)("menu.print_route.title")
285
+ }, {
286
+ "append-heading": m(() => [
287
+ i("div", Le, [
288
+ s.value && s.value.totalCount > 0 ? (u(), k(f, {
289
+ key: 0,
290
+ disabled: s.value.create.state !== "allowed",
291
+ label: a(t)("menu.print_route.actions.add"),
292
+ "prepend-icon": "add",
293
+ variant: "primary",
294
+ onClick: N
295
+ }, null, 8, ["disabled", "label"])) : A("", !0)
296
+ ])
297
+ ]),
298
+ default: m(() => [
299
+ a(v).status === "error" ? (u(), y("div", De, [
300
+ i("p", Re, b(a(h)(a(v).error.message)), 1),
301
+ n(f, {
302
+ label: a(t)("menu.common.actions.retry"),
303
+ loading: L.value,
304
+ "prepend-icon": "refresh",
305
+ size: "md",
306
+ variant: "secondary",
307
+ onClick: Z
308
+ }, null, 8, ["label", "loading"])
309
+ ])) : a(v).status === "unavailable" ? (u(), y("div", $e, [
310
+ n(a(q), {
311
+ subtitle: a(t)("menu.print_route.empty.subtitle"),
312
+ title: a(t)("menu.print_route.empty.title")
313
+ }, null, 8, ["subtitle", "title"])
314
+ ])) : a(v).status === "loading" ? (u(), k(S, { key: 2 })) : s.value && s.value.totalCount === 0 ? (u(), k(a(q), {
315
+ key: 3,
316
+ action: s.value.create.state === "allowed" ? { text: a(t)("menu.print_route.empty.action"), callback: N } : void 0,
317
+ subtitle: a(t)("menu.print_route.empty.subtitle"),
318
+ title: a(t)("menu.print_route.empty.title")
319
+ }, null, 8, ["action", "subtitle", "title"])) : s.value ? (u(), y(I, { key: 4 }, [
320
+ i("div", ze, [
321
+ i("div", Ie, [
322
+ n(K, {
323
+ autofocus: "",
324
+ class: "my-8",
325
+ "model-value": X.value,
326
+ placeholder: a(t)("menu.print_route.table.search.placeholder"),
327
+ "onUpdate:modelValue": l.sdk.printDepartment.search
328
+ }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])
329
+ ])
330
+ ]),
331
+ n(Q, {
332
+ "column-defs": de.value,
333
+ "page-size": s.value.rows.length,
334
+ "row-data": Y.value,
335
+ "shrink-at": !1,
336
+ "hide-footer": "",
337
+ "pin-header-row": "",
338
+ onRowClick: r[0] || (r[0] = (o) => se(o.original))
339
+ }, null, 8, ["column-defs", "page-size", "row-data"])
340
+ ], 64)) : A("", !0),
341
+ n(_e, {
342
+ modelValue: g.value,
343
+ "onUpdate:modelValue": r[3] || (r[3] = (o) => g.value = o),
344
+ "is-container": a(z).FmForm,
345
+ "is-container-props": { onValidationSuccess: ie },
346
+ "max-width": 560,
347
+ "onOn:clickedAway": re
348
+ }, {
349
+ "side-sheet-header": m(() => {
350
+ var o;
351
+ return [
352
+ i("p", Ae, b(((o = c.value) == null ? void 0 : o.mode) === "update" ? a(t)("menu.print_route.department_dialog.update.title") : a(t)("menu.print_route.department_dialog.add.title")), 1)
353
+ ];
354
+ }),
355
+ "side-sheet-footer": m(() => {
356
+ var o, T;
357
+ return [
358
+ i("div", Ne, [
359
+ n(f, {
360
+ disabled: ((o = c.value) == null ? void 0 : o.submit.state) !== "allowed",
361
+ label: ((T = c.value) == null ? void 0 : T.mode) === "update" ? a(t)("menu.print_route.department_dialog.update.action") : a(t)("menu.print_route.department_dialog.add.action"),
362
+ size: "lg",
363
+ type: "submit",
364
+ variant: "primary"
365
+ }, null, 8, ["disabled", "label"]),
366
+ n(f, {
367
+ label: a(t)("menu.print_route.department_dialog.actions.cancel"),
368
+ size: "lg",
369
+ variant: "tertiary",
370
+ onClick: j
371
+ }, null, 8, ["label"])
372
+ ])
373
+ ];
374
+ }),
375
+ default: m(() => [
376
+ i("div", Be, [
377
+ n(H, {
378
+ title: a(t)("menu.print_route.department_dialog.sections.route_detail.title")
379
+ }, {
380
+ default: m(() => {
381
+ var o;
382
+ return [
383
+ n(me, fe({
384
+ autofocus: "",
385
+ "error-messages": U.value ? [a(h)(U.value)] : [],
386
+ label: a(t)(
387
+ "menu.print_route.department_dialog.sections.route_detail.name.label"
388
+ ),
389
+ "model-value": ((o = c.value) == null ? void 0 : o.name) ?? "",
390
+ placeholder: a(t)(
391
+ "menu.print_route.department_dialog.sections.route_detail.name.placeholder"
392
+ )
393
+ }, a(R).field("name", d.value.setName)), null, 16, ["error-messages", "label", "model-value", "placeholder"])
394
+ ];
395
+ }),
396
+ _: 1
397
+ }, 8, ["title"]),
398
+ n(H, {
399
+ title: a(t)("menu.print_route.department_dialog.sections.link_product.title")
400
+ }, {
401
+ "append-title": m(() => [
402
+ n(pe),
403
+ n(f, {
404
+ label: a(t)(
405
+ "menu.print_route.department_dialog.sections.link_product.link"
406
+ ),
407
+ "border-color": "primary",
408
+ "prepend-icon": "link",
409
+ "text-color": "primary",
410
+ variant: "secondary",
411
+ onClick: r[1] || (r[1] = (o) => P.value = !0)
412
+ }, null, 8, ["label"])
413
+ ]),
414
+ default: m(() => [
415
+ i("div", Ee, [
416
+ i("div", Ue, [
417
+ i("p", Me, b(a(t)(
418
+ "menu.print_route.department_dialog.sections.link_product.products_linked",
419
+ { count: ne.value }
420
+ )), 1),
421
+ n(K, {
422
+ class: "flex-1",
423
+ "model-value": oe.value,
424
+ placeholder: a(t)(
425
+ "menu.print_route.department_dialog.sections.link_product.search"
426
+ ),
427
+ "onUpdate:modelValue": r[2] || (r[2] = (o) => d.value.setLinkedProductQuery(String(o ?? "")))
428
+ }, null, 8, ["model-value", "placeholder"])
429
+ ]),
430
+ i("div", null, [
431
+ (u(!0), y(I, null, W(ae.value, (o) => (u(), y("div", {
432
+ key: o.id ?? ""
433
+ }, [
434
+ n(Q, {
435
+ "column-defs": le(o),
436
+ "hide-footer": "",
437
+ "page-size": o.products.length,
438
+ "row-data": [...o.products],
439
+ "shrink-at": !1
440
+ }, null, 8, ["column-defs", "page-size", "row-data"])
441
+ ]))), 128))
442
+ ])
443
+ ])
444
+ ]),
445
+ _: 1
446
+ }, 8, ["title"])
447
+ ])
448
+ ]),
449
+ _: 1
450
+ }, 8, ["modelValue", "is-container", "is-container-props"]),
451
+ n(ke, {
452
+ modelValue: P.value,
453
+ "onUpdate:modelValue": r[4] || (r[4] = (o) => P.value = o),
454
+ catalogue: ee.value,
455
+ "selected-product-ids": te.value,
456
+ title: a(t)("menu.print_route.department_dialog.sections.link_product.title"),
457
+ onSubmit: ce
458
+ }, null, 8, ["modelValue", "catalogue", "selected-product-ids", "title"])
459
+ ]),
460
+ _: 1
461
+ }, 8, ["heading"]);
462
+ };
463
+ }
464
+ }), Ye = /* @__PURE__ */ B({
465
+ __name: "PrintRoute",
466
+ setup(V) {
467
+ const l = Fe();
468
+ return (t, h) => (u(), k(je, { sdk: a(l) }, null, 8, ["sdk"]));
469
+ }
470
+ });
471
+ export {
472
+ Ye as default
473
+ };
@@ -0,0 +1,44 @@
1
+ import { defineComponent as m, resolveComponent as i, openBlock as c, createBlock as s, unref as t, withCtx as e, createVNode as o } from "vue";
2
+ import { RouterLink as p } from "vue-router";
3
+ import { useI18n as _ } from "@feedmepos/mf-common";
4
+ import { _ as l } from "./ProductList.vue_vue_type_script_setup_true_lang-n_UYIwwt.js";
5
+ import { a as u } from "./provide-Tmjfji09.js";
6
+ import { R as d } from "./app-Bd7W2PYm.js";
7
+ import { _ as f } from "./CatalogEditTabs.vue_vue_type_script_setup_true_lang-OshqaPTE.js";
8
+ const A = /* @__PURE__ */ m({
9
+ __name: "Product",
10
+ setup(k) {
11
+ const r = u(), { t: a } = _();
12
+ return (g, b) => {
13
+ const n = i("FmButton");
14
+ return c(), s(l, {
15
+ sdk: t(r),
16
+ "catalog-page": ""
17
+ }, {
18
+ "prepend-heading": e(() => [
19
+ o(t(p), {
20
+ to: { name: t(d).CATALOG },
21
+ class: "mr-8",
22
+ title: t(a)("menu.catalog.edit.back")
23
+ }, {
24
+ default: e(() => [
25
+ o(n, {
26
+ "prepend-icon": "arrow_back",
27
+ variant: "tertiary",
28
+ "aria-label": t(a)("menu.catalog.edit.back")
29
+ }, null, 8, ["aria-label"])
30
+ ]),
31
+ _: 1
32
+ }, 8, ["to", "title"])
33
+ ]),
34
+ navigation: e(() => [
35
+ o(f)
36
+ ]),
37
+ _: 1
38
+ }, 8, ["sdk"]);
39
+ };
40
+ }
41
+ });
42
+ export {
43
+ A as default
44
+ };
@@ -0,0 +1,110 @@
1
+ import { defineComponent as V, computed as p, ref as j, resolveComponent as f, openBlock as a, createBlock as u, withCtx as r, createElementVNode as o, createElementBlock as i, Fragment as x, renderList as h, toDisplayString as d, createTextVNode as E, unref as k, createCommentVNode as _, withModifiers as L } from "vue";
2
+ import { useI18n as S } from "@feedmepos/mf-common";
3
+ import { useBreakpoints as z } from "@feedmepos/ui-library";
4
+ const D = { class: "flex flex-wrap gap-8 min-w-0 max-w-full" }, I = { class: "fm-typo-en-body-md-600 truncate" }, M = { class: "py-12 px-16 space-y-12" }, P = { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-600" }, $ = { class: "flex flex-wrap gap-8" }, q = { class: "fm-typo-en-body-md-600 break-words min-w-0" }, A = {
5
+ key: 1,
6
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
7
+ }, G = { key: 0 }, H = {
8
+ key: 1,
9
+ class: "inline-block w-8"
10
+ }, Q = /* @__PURE__ */ V({
11
+ __name: "ProductChipSummary",
12
+ props: {
13
+ kind: {},
14
+ chips: {}
15
+ },
16
+ setup(w) {
17
+ const b = w, { t: l } = S(), c = p(
18
+ () => b.kind === "category" ? {
19
+ column: l("menu.product.table.columns.category"),
20
+ all: l("menu.product.table.category.all"),
21
+ expand: (e) => l("menu.product.table.category.expand", { count: e }),
22
+ collapse: l("menu.product.table.category.collapse")
23
+ } : {
24
+ column: l("menu.product.table.columns.tagging"),
25
+ all: l("menu.product.table.tagging.all"),
26
+ expand: (e) => l("menu.product.table.tagging.expand", { count: e }),
27
+ collapse: l("menu.product.table.tagging.collapse")
28
+ }
29
+ ), C = (e) => b.kind === "tagging" ? l("menu.common.labels.a11y_labelled_name", {
30
+ label: e.key,
31
+ name: e.label
32
+ }) : e.label, F = z(), g = p(() => F.breakpoints.value.xs), m = j(!0), y = p(() => g.value ? 1 : 2), v = p(() => b.chips.slice(0, y.value)), B = p(() => {
33
+ const e = l("menu.catalog.list_separator");
34
+ if (!m.value)
35
+ return b.chips.map((t) => t.label).join(e);
36
+ const n = v.value.map((t) => t.label).join(e);
37
+ return n.length > 20 ? n.slice(0, 20) + l("menu.common.labels.truncation_suffix") : n;
38
+ });
39
+ return (e, n) => {
40
+ const t = f("FmChip"), N = f("FmTooltip"), T = f("FmButton");
41
+ return g.value ? e.chips.length ? (a(), i("p", A, [
42
+ o("span", null, d(k(l)("menu.common.labels.a11y_labelled_name", {
43
+ label: c.value.column,
44
+ name: B.value
45
+ })), 1),
46
+ m.value ? (a(), i("span", H)) : (a(), i("br", G)),
47
+ e.chips.length > y.value ? (a(), u(T, {
48
+ key: 2,
49
+ variant: "plain",
50
+ class: "!p-0 fm-typo-en-body-md-400 text-fm-color-primary",
51
+ label: m.value ? c.value.expand(e.chips.length - y.value) : c.value.collapse,
52
+ onClick: n[0] || (n[0] = L((s) => m.value = !m.value, ["stop", "prevent"]))
53
+ }, null, 8, ["label"])) : _("", !0)
54
+ ])) : _("", !0) : (a(), u(N, {
55
+ key: 0,
56
+ class: "flex min-w-0 max-w-full",
57
+ variant: "rich",
58
+ placement: "top",
59
+ "z-index": 50
60
+ }, {
61
+ content: r(() => [
62
+ o("div", M, [
63
+ o("p", P, d(c.value.all), 1),
64
+ o("div", $, [
65
+ (a(!0), i(x, null, h(e.chips, (s) => (a(), u(t, {
66
+ key: s.key,
67
+ compact: "",
68
+ class: "max-w-full !h-auto min-h-[22px] !px-4 py-2"
69
+ }, {
70
+ default: r(() => [
71
+ o("span", q, d(C(s)), 1)
72
+ ]),
73
+ _: 2
74
+ }, 1024))), 128))
75
+ ])
76
+ ])
77
+ ]),
78
+ default: r(() => [
79
+ o("div", D, [
80
+ (a(!0), i(x, null, h(v.value, (s) => (a(), u(t, {
81
+ key: s.key,
82
+ compact: "",
83
+ class: "max-w-full !px-4"
84
+ }, {
85
+ default: r(() => [
86
+ o("span", I, d(s.label), 1)
87
+ ]),
88
+ _: 2
89
+ }, 1024))), 128)),
90
+ e.chips.length > y.value ? (a(), u(t, {
91
+ key: 0,
92
+ compact: "",
93
+ class: "fm-typo-en-body-md-600 !px-4",
94
+ "aria-label": c.value.all
95
+ }, {
96
+ default: r(() => [
97
+ E(d(k(l)("menu.common.labels.truncation_suffix")), 1)
98
+ ]),
99
+ _: 1
100
+ }, 8, ["aria-label"])) : _("", !0)
101
+ ])
102
+ ]),
103
+ _: 1
104
+ }));
105
+ };
106
+ }
107
+ });
108
+ export {
109
+ Q as _
110
+ };