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