@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,336 @@
|
|
|
1
|
+
import { defineComponent as A, computed as i, ref as ne, shallowRef as N, h as B, withModifiers as oe, onUnmounted as le, resolveComponent as _, openBlock as m, createBlock as k, unref as t, withCtx as b, createElementBlock as F, toDisplayString as K, Fragment as ue, createElementVNode as h, createVNode as v, createCommentVNode as x, mergeProps as ie } from "vue";
|
|
2
|
+
import { useI18n as re, ItemSelector as ce } from "@feedmepos/mf-common";
|
|
3
|
+
import { useDialog as de, components as U, FmButtonVariant as me } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as ve } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
5
|
+
import { _ as pe } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
6
|
+
import { u as ge } from "./useActionFeedback-DoFeBFpl.js";
|
|
7
|
+
import { u as _e } from "./useEditorValidation-Ctef5Bxt.js";
|
|
8
|
+
import { b as fe, u as j, a as be } from "./provide-Tmjfji09.js";
|
|
9
|
+
const he = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "flex-1 flex justify-end gap-8 pl-8"
|
|
12
|
+
}, ke = {
|
|
13
|
+
key: 0,
|
|
14
|
+
role: "alert",
|
|
15
|
+
class: "text-fm-color-typo-secondary"
|
|
16
|
+
}, ye = { class: "flex justify-end items-center" }, qe = { class: "w-[320px]" }, Se = { class: "fm-typo-en-title-md-600" }, we = { class: "space-y-32 flex flex-col h-full" }, Fe = { class: "flex gap-8 items-center justify-start" }, xe = /* @__PURE__ */ A({
|
|
17
|
+
__name: "ServingSequenceList",
|
|
18
|
+
props: {
|
|
19
|
+
sdk: {}
|
|
20
|
+
},
|
|
21
|
+
setup(C) {
|
|
22
|
+
const r = C, { t: a } = re(), y = fe(), P = de(), { run: q } = ge(), p = j(
|
|
23
|
+
r.sdk.servingSequence.list
|
|
24
|
+
), o = i(
|
|
25
|
+
() => p.value.status === "ready" ? p.value.value : null
|
|
26
|
+
), I = i(() => {
|
|
27
|
+
var e;
|
|
28
|
+
return ((e = o.value) == null ? void 0 : e.query) ?? "";
|
|
29
|
+
}), T = i(() => {
|
|
30
|
+
var e;
|
|
31
|
+
return [...((e = o.value) == null ? void 0 : e.rows) ?? []];
|
|
32
|
+
}), g = ne(!1), V = j(
|
|
33
|
+
r.sdk.linkProduct.catalogue
|
|
34
|
+
), L = i(
|
|
35
|
+
() => V.value.status === "ready" ? V.value.value : null
|
|
36
|
+
), R = i(
|
|
37
|
+
() => {
|
|
38
|
+
var e;
|
|
39
|
+
return (((e = L.value) == null ? void 0 : e.groups) ?? []).map((s) => ({
|
|
40
|
+
id: s.id,
|
|
41
|
+
name: s.name,
|
|
42
|
+
items: s.products.map((n) => ({
|
|
43
|
+
_id: n.id,
|
|
44
|
+
name: n.name,
|
|
45
|
+
code: n.code,
|
|
46
|
+
codeName: n.label,
|
|
47
|
+
// The selector builds its attribute filter from these and filters the
|
|
48
|
+
// product list by them; omitting them renders the filter with empty
|
|
49
|
+
// value sets. Legacy reaches them by spreading the whole item
|
|
50
|
+
// (portal apps/mf-menu/src/helper/menu.ts:257-261).
|
|
51
|
+
customAttributes: n.customAttributes ?? void 0,
|
|
52
|
+
variant: {
|
|
53
|
+
variantGroupIds: [...n.variantGroupIds],
|
|
54
|
+
variantCombinations: n.variants.map((d) => ({
|
|
55
|
+
_id: n.id,
|
|
56
|
+
combinationKey: d.combinationKey,
|
|
57
|
+
codeName: d.label
|
|
58
|
+
}))
|
|
59
|
+
}
|
|
60
|
+
}))
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
), $ = [], O = i(
|
|
64
|
+
() => {
|
|
65
|
+
var e;
|
|
66
|
+
return ((e = c.value) == null ? void 0 : e.linkedItems) ?? $;
|
|
67
|
+
}
|
|
68
|
+
), G = i(
|
|
69
|
+
() => {
|
|
70
|
+
const e = {};
|
|
71
|
+
for (const s of O.value)
|
|
72
|
+
e[s._id] = [...e[s._id] ?? [], s];
|
|
73
|
+
return e;
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
function Q(e) {
|
|
77
|
+
u.value.setLinkedItems(
|
|
78
|
+
Object.values(e).flat().map((s) => ({
|
|
79
|
+
_id: s._id,
|
|
80
|
+
combinationKey: s.combinationKey ?? null,
|
|
81
|
+
orderFrom: s.orderFrom ?? null
|
|
82
|
+
}))
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
const u = N(
|
|
86
|
+
r.sdk.servingSequence.editor()
|
|
87
|
+
), f = N(
|
|
88
|
+
u.value.get()
|
|
89
|
+
);
|
|
90
|
+
let S = u.value.subscribe((e) => {
|
|
91
|
+
f.value = e;
|
|
92
|
+
});
|
|
93
|
+
const c = i(
|
|
94
|
+
() => f.value.status === "ready" ? f.value.value : null
|
|
95
|
+
), w = _e(() => u.value), z = i(
|
|
96
|
+
() => c.value ? w.issue(c.value.fieldIssues, "name") ?? c.value.nameIssue : null
|
|
97
|
+
);
|
|
98
|
+
function D(e) {
|
|
99
|
+
S(), u.value.dispose(), u.value = r.sdk.servingSequence.editor(e), f.value = u.value.get(), S = u.value.subscribe((s) => {
|
|
100
|
+
f.value = s;
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function E() {
|
|
104
|
+
var e;
|
|
105
|
+
((e = o.value) == null ? void 0 : e.create.state) === "allowed" && (D(), g.value = !0);
|
|
106
|
+
}
|
|
107
|
+
function H(e) {
|
|
108
|
+
D(e.id), g.value = !0;
|
|
109
|
+
}
|
|
110
|
+
async function J() {
|
|
111
|
+
var n;
|
|
112
|
+
const e = ((n = c.value) == null ? void 0 : n.name.trim()) ?? "";
|
|
113
|
+
(await q(
|
|
114
|
+
() => w.submit(() => u.value.submit()),
|
|
115
|
+
{
|
|
116
|
+
showLoading: () => {
|
|
117
|
+
var d;
|
|
118
|
+
return ((d = c.value) == null ? void 0 : d.status) === "submitting";
|
|
119
|
+
},
|
|
120
|
+
successMessage: a("menu.serving_sequence.form.saved", {
|
|
121
|
+
name: e || a("menu.serving_sequence.title")
|
|
122
|
+
})
|
|
123
|
+
}
|
|
124
|
+
)).kind === "success" && (g.value = !1);
|
|
125
|
+
}
|
|
126
|
+
function W(e) {
|
|
127
|
+
e.remove.state === "allowed" && P.open({
|
|
128
|
+
title: a("menu.serving_sequence.delete.title"),
|
|
129
|
+
message: a("menu.serving_sequence.delete.message", {
|
|
130
|
+
name: e.name
|
|
131
|
+
}),
|
|
132
|
+
primaryActions: {
|
|
133
|
+
text: a("menu.serving_sequence.delete.confirm"),
|
|
134
|
+
close: !0,
|
|
135
|
+
variant: me.Destructive
|
|
136
|
+
},
|
|
137
|
+
secondaryActions: {
|
|
138
|
+
text: a("menu.common.actions.cancel"),
|
|
139
|
+
close: !0
|
|
140
|
+
}
|
|
141
|
+
}).onPrimary(async () => {
|
|
142
|
+
await q(() => r.sdk.servingSequence.remove(e.id), {
|
|
143
|
+
successMessage: a("menu.serving_sequence.delete.success", {
|
|
144
|
+
name: e.name
|
|
145
|
+
})
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
const X = i(() => {
|
|
150
|
+
var e;
|
|
151
|
+
return ((e = o.value) == null ? void 0 : e.reorder.state) === "allowed";
|
|
152
|
+
});
|
|
153
|
+
function Y(e) {
|
|
154
|
+
var n;
|
|
155
|
+
if (((n = o.value) == null ? void 0 : n.reorder.state) !== "allowed") return;
|
|
156
|
+
const s = e.map((d) => d.id);
|
|
157
|
+
s.length && q(() => r.sdk.servingSequence.reorder(s), {
|
|
158
|
+
// The only one of this module's success messages that takes no entity
|
|
159
|
+
// `{name}`: legacy fed the shared `{name} saved` template the module's own
|
|
160
|
+
// plural noun for a rearrange, so the toast reads "sequences saved" rather
|
|
161
|
+
// than naming a row — the frozen baseline records exactly that text
|
|
162
|
+
// (serveSequence/rearrange/submit/success). Feeding it
|
|
163
|
+
// `menu.serving_sequence.title` produced "Serving sequence saved" instead,
|
|
164
|
+
// which parity caught on 2026-08-28 with a delta that was already equal.
|
|
165
|
+
// Each locale carries the whole sentence, as category does for the same
|
|
166
|
+
// reason: the word order of "{name} saved" does not survive translation.
|
|
167
|
+
successMessage: a("menu.serving_sequence.reorder.success")
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
const Z = i(() => [
|
|
171
|
+
{
|
|
172
|
+
accessorKey: "name",
|
|
173
|
+
header: () => a("menu.serving_sequence.columns.name"),
|
|
174
|
+
enableSorting: !1,
|
|
175
|
+
// Legacy fixes the name column at 360px (`ServingSequence.vue:151-156`),
|
|
176
|
+
// which sets where the Product-linked column starts. Omitting it let
|
|
177
|
+
// FmTable distribute the width instead, and the two tables then differ by
|
|
178
|
+
// the position of every cell in the second column — invisible until the
|
|
179
|
+
// populated-table golden is compared.
|
|
180
|
+
size: 360
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
accessorKey: "linkedItemCount",
|
|
184
|
+
header: () => a("menu.serving_sequence.columns.products"),
|
|
185
|
+
enableSorting: !1,
|
|
186
|
+
cell: (e) => a("menu.common.labels.items_linked", {
|
|
187
|
+
count: e.row.original.linkedItemCount
|
|
188
|
+
})
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
id: "actions",
|
|
192
|
+
size: 52,
|
|
193
|
+
meta: { cellClass: "pl-16", headerContentClass: "-mx-16" },
|
|
194
|
+
header: "",
|
|
195
|
+
// Legacy wraps the button in a right-aligning flex row and renders the
|
|
196
|
+
// glyph as `prependIcon` rather than `icon` — two different FmButton
|
|
197
|
+
// renderings, and the wrapper is what pushes the control to the cell's
|
|
198
|
+
// right edge (`ServingSequence.vue:176-192`). Both are reproduced; the
|
|
199
|
+
// accessible name is the one deliberate addition, owned by the new app
|
|
200
|
+
// (legacy's control is icon-only and unnamed).
|
|
201
|
+
cell: (e) => B("div", { class: "w-full flex justify-end items-center" }, [
|
|
202
|
+
B(U.FmButton, {
|
|
203
|
+
prependIcon: "delete",
|
|
204
|
+
variant: "tertiary",
|
|
205
|
+
textColor: "neutral-gray-400",
|
|
206
|
+
disabled: e.row.original.remove.state !== "allowed",
|
|
207
|
+
"aria-label": a("menu.common.actions.delete"),
|
|
208
|
+
onClick: oe(
|
|
209
|
+
() => W(e.row.original),
|
|
210
|
+
["stop", "prevent"]
|
|
211
|
+
)
|
|
212
|
+
})
|
|
213
|
+
])
|
|
214
|
+
}
|
|
215
|
+
]);
|
|
216
|
+
return le(() => {
|
|
217
|
+
S(), u.value.dispose(), r.sdk.servingSequence.search("");
|
|
218
|
+
}), (e, s) => {
|
|
219
|
+
const n = _("FmButton"), d = _("FmCircularProgress"), ee = _("FmSearch"), ae = _("FmTable"), se = _("FmTextField"), te = _("FmSideSheet");
|
|
220
|
+
return m(), k(pe, {
|
|
221
|
+
"data-visual-root": "serveSequence",
|
|
222
|
+
heading: t(a)("menu.serving_sequence.title")
|
|
223
|
+
}, {
|
|
224
|
+
"append-heading": b(() => [
|
|
225
|
+
t(p).status === "ready" && o.value ? (m(), F("div", he, [
|
|
226
|
+
o.value.totalCount > 0 ? (m(), k(n, {
|
|
227
|
+
key: 0,
|
|
228
|
+
disabled: o.value.create.state !== "allowed",
|
|
229
|
+
label: t(a)("menu.serving_sequence.add"),
|
|
230
|
+
"prepend-icon": "add",
|
|
231
|
+
onClick: E
|
|
232
|
+
}, null, 8, ["disabled", "label"])) : x("", !0)
|
|
233
|
+
])) : x("", !0)
|
|
234
|
+
]),
|
|
235
|
+
default: b(() => [
|
|
236
|
+
t(p).status === "error" ? (m(), F("p", ke, K(t(y)(t(p).error.message)), 1)) : t(p).status === "loading" ? (m(), k(d, { key: 1 })) : o.value && o.value.rows.length === 0 && !I.value ? (m(), k(t(ve), {
|
|
237
|
+
key: 2,
|
|
238
|
+
action: { text: t(a)("menu.serving_sequence.add"), callback: E },
|
|
239
|
+
title: t(a)("menu.serving_sequence.empty.title"),
|
|
240
|
+
subtitle: t(a)("menu.serving_sequence.empty.subtitle")
|
|
241
|
+
}, null, 8, ["action", "title", "subtitle"])) : o.value ? (m(), F(ue, { key: 3 }, [
|
|
242
|
+
h("div", ye, [
|
|
243
|
+
h("div", qe, [
|
|
244
|
+
v(ee, {
|
|
245
|
+
autofocus: "",
|
|
246
|
+
class: "mb-8",
|
|
247
|
+
"model-value": I.value,
|
|
248
|
+
placeholder: t(a)("menu.serving_sequence.search.placeholder"),
|
|
249
|
+
"onUpdate:modelValue": r.sdk.servingSequence.search
|
|
250
|
+
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])
|
|
251
|
+
])
|
|
252
|
+
]),
|
|
253
|
+
v(ae, {
|
|
254
|
+
"column-defs": Z.value,
|
|
255
|
+
"hide-footer": "",
|
|
256
|
+
"page-size": o.value.rows.length,
|
|
257
|
+
"pin-header-row": "",
|
|
258
|
+
"row-data": T.value,
|
|
259
|
+
"shrink-at": !1,
|
|
260
|
+
draggable: X.value,
|
|
261
|
+
onRowClick: s[0] || (s[0] = (l) => H(l.original)),
|
|
262
|
+
onDndChanged: Y
|
|
263
|
+
}, null, 8, ["column-defs", "page-size", "row-data", "draggable"])
|
|
264
|
+
], 64)) : x("", !0),
|
|
265
|
+
v(te, {
|
|
266
|
+
modelValue: g.value,
|
|
267
|
+
"onUpdate:modelValue": s[2] || (s[2] = (l) => g.value = l),
|
|
268
|
+
"is-container": t(U).FmForm,
|
|
269
|
+
"is-container-props": { onValidationSuccess: J },
|
|
270
|
+
"max-width": 560
|
|
271
|
+
}, {
|
|
272
|
+
"side-sheet-header": b(() => {
|
|
273
|
+
var l;
|
|
274
|
+
return [
|
|
275
|
+
h("p", Se, K(((l = c.value) == null ? void 0 : l.mode) === "update" ? t(a)("menu.serving_sequence.update") : t(a)("menu.serving_sequence.add")), 1)
|
|
276
|
+
];
|
|
277
|
+
}),
|
|
278
|
+
"side-sheet-footer": b(() => {
|
|
279
|
+
var l, M;
|
|
280
|
+
return [
|
|
281
|
+
h("div", Fe, [
|
|
282
|
+
v(n, {
|
|
283
|
+
disabled: ((l = c.value) == null ? void 0 : l.submit.state) !== "allowed",
|
|
284
|
+
label: ((M = c.value) == null ? void 0 : M.mode) === "update" ? t(a)("menu.serving_sequence.update") : t(a)("menu.serving_sequence.add"),
|
|
285
|
+
size: "lg",
|
|
286
|
+
type: "submit",
|
|
287
|
+
variant: "primary"
|
|
288
|
+
}, null, 8, ["disabled", "label"]),
|
|
289
|
+
v(n, {
|
|
290
|
+
label: t(a)("menu.common.actions.cancel"),
|
|
291
|
+
size: "lg",
|
|
292
|
+
variant: "tertiary",
|
|
293
|
+
onClick: s[1] || (s[1] = (Ce) => g.value = !1)
|
|
294
|
+
}, null, 8, ["label"])
|
|
295
|
+
])
|
|
296
|
+
];
|
|
297
|
+
}),
|
|
298
|
+
default: b(() => {
|
|
299
|
+
var l;
|
|
300
|
+
return [
|
|
301
|
+
h("div", we, [
|
|
302
|
+
v(se, ie({
|
|
303
|
+
autofocus: "",
|
|
304
|
+
"error-messages": z.value ? [t(y)(z.value)] : [],
|
|
305
|
+
label: t(a)("menu.serving_sequence.columns.name"),
|
|
306
|
+
"model-value": ((l = c.value) == null ? void 0 : l.name) ?? "",
|
|
307
|
+
placeholder: t(a)("menu.common.labels.enter_name")
|
|
308
|
+
}, t(w).field("name", u.value.setName)), null, 16, ["error-messages", "label", "model-value", "placeholder"]),
|
|
309
|
+
v(t(ce), {
|
|
310
|
+
"categorized-items": R.value,
|
|
311
|
+
data: G.value,
|
|
312
|
+
class: "flex-1",
|
|
313
|
+
"select-variant": "",
|
|
314
|
+
"show-variant": "",
|
|
315
|
+
"onUpdate:data": Q
|
|
316
|
+
}, null, 8, ["categorized-items", "data"])
|
|
317
|
+
])
|
|
318
|
+
];
|
|
319
|
+
}),
|
|
320
|
+
_: 1
|
|
321
|
+
}, 8, ["modelValue", "is-container", "is-container-props"])
|
|
322
|
+
]),
|
|
323
|
+
_: 1
|
|
324
|
+
}, 8, ["heading"]);
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
}), Ke = /* @__PURE__ */ A({
|
|
328
|
+
__name: "ServingSequence",
|
|
329
|
+
setup(C) {
|
|
330
|
+
const r = be();
|
|
331
|
+
return (a, y) => (m(), k(xe, { sdk: t(r) }, null, 8, ["sdk"]));
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
export {
|
|
335
|
+
Ke as default
|
|
336
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { defineComponent as y, computed as N, onUnmounted as R, resolveComponent as i, openBlock as o, createBlock as r, unref as e, withCtx as m, createVNode as s, createElementBlock as d, Fragment as w, renderList as F, createCommentVNode as p, createElementVNode as _, toDisplayString as G } from "vue";
|
|
2
|
+
import { RouterLink as I, useRouter as T, useRoute as W } from "vue-router";
|
|
3
|
+
import { useI18n as E } from "@feedmepos/mf-common";
|
|
4
|
+
import { _ as S } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
|
|
5
|
+
import { _ as O } from "./CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-BSMAIkQ2.js";
|
|
6
|
+
import { _ as j } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
7
|
+
import { u as D } from "./useActionFeedback-DoFeBFpl.js";
|
|
8
|
+
import { R as V } from "./app-Bd7W2PYm.js";
|
|
9
|
+
import { a as $, u as P } from "./provide-Tmjfji09.js";
|
|
10
|
+
import { _ as q } from "./CatalogEditTabs.vue_vue_type_script_setup_true_lang-OshqaPTE.js";
|
|
11
|
+
import { _ as z } from "./CatalogEditor.vue_vue_type_script_setup_true_lang-poznuDXu.js";
|
|
12
|
+
const H = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "max-w-[752px] pt-16 space-y-32"
|
|
15
|
+
}, J = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "pl-32 space-x-8"
|
|
18
|
+
}, K = { class: "space-y-16" }, Q = { class: "grid" }, X = { class: "flex items-center gap-12 translate-x-px" }, Y = { class: "fm-typo-en-body-lg-400" }, Z = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "max-w-[752px] pt-40 flex justify-end"
|
|
21
|
+
}, ee = /* @__PURE__ */ y({
|
|
22
|
+
__name: "MainSetting",
|
|
23
|
+
setup(b) {
|
|
24
|
+
const u = $(), { t } = E(), { run: c } = D(), l = u.menuSetting.masterCatalogConfiguration(), g = P(l), a = N(
|
|
25
|
+
() => g.value.status === "ready" ? g.value.value : null
|
|
26
|
+
);
|
|
27
|
+
R(() => l.dispose());
|
|
28
|
+
async function k() {
|
|
29
|
+
await c(() => l.submit(), {
|
|
30
|
+
showLoading: () => {
|
|
31
|
+
var v;
|
|
32
|
+
return ((v = a.value) == null ? void 0 : v.status) === "submitting";
|
|
33
|
+
},
|
|
34
|
+
successMessage: t("menu.catalog.main_updated")
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return (v, x) => {
|
|
38
|
+
const h = i("FmButton"), C = i("FmRadio"), M = i("FmRadioGroup"), B = i("FmCheckbox"), U = i("FmSwitch"), A = i("FmIcon"), L = i("FmCard");
|
|
39
|
+
return o(), r(j, {
|
|
40
|
+
heading: e(t)("menu.common.labels.main")
|
|
41
|
+
}, {
|
|
42
|
+
"prepend-heading": m(() => [
|
|
43
|
+
s(e(I), {
|
|
44
|
+
to: { name: e(V).CATALOG },
|
|
45
|
+
class: "mr-8",
|
|
46
|
+
title: e(t)("menu.catalog.edit.back")
|
|
47
|
+
}, {
|
|
48
|
+
default: m(() => [
|
|
49
|
+
s(h, {
|
|
50
|
+
"prepend-icon": "arrow_back",
|
|
51
|
+
variant: "tertiary",
|
|
52
|
+
"aria-label": e(t)("menu.catalog.edit.back")
|
|
53
|
+
}, null, 8, ["aria-label"])
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 8, ["to", "title"])
|
|
57
|
+
]),
|
|
58
|
+
"append-heading": m(() => [
|
|
59
|
+
s(O, { sdk: e(u) }, null, 8, ["sdk"])
|
|
60
|
+
]),
|
|
61
|
+
default: m(() => [
|
|
62
|
+
s(q),
|
|
63
|
+
a.value ? (o(), d("div", H, [
|
|
64
|
+
s(S, {
|
|
65
|
+
label: e(t)("menu.setting.tax.title")
|
|
66
|
+
}, {
|
|
67
|
+
default: m(() => [
|
|
68
|
+
s(M, {
|
|
69
|
+
"model-value": a.value.taxMode,
|
|
70
|
+
"onUpdate:modelValue": x[0] || (x[0] = (n) => e(l).setTaxMode(n))
|
|
71
|
+
}, {
|
|
72
|
+
default: m(() => [
|
|
73
|
+
s(C, {
|
|
74
|
+
value: "automatic",
|
|
75
|
+
label: e(t)("menu.setting.tax.modes.auto.label"),
|
|
76
|
+
sublabel: e(t)("menu.setting.tax.modes.auto.sublabel")
|
|
77
|
+
}, null, 8, ["label", "sublabel"]),
|
|
78
|
+
s(C, {
|
|
79
|
+
value: "manual",
|
|
80
|
+
label: e(t)("menu.setting.tax.modes.manual.label"),
|
|
81
|
+
sublabel: e(t)("menu.setting.tax.modes.manual.sublabel")
|
|
82
|
+
}, null, 8, ["label", "sublabel"])
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
}, 8, ["model-value"]),
|
|
86
|
+
a.value.taxMode === "manual" ? (o(), d("div", J, [
|
|
87
|
+
(o(!0), d(w, null, F(a.value.taxSystems, (n) => (o(), r(B, {
|
|
88
|
+
key: n.systemCode,
|
|
89
|
+
"model-value": n.inclusive,
|
|
90
|
+
value: !0,
|
|
91
|
+
label: e(t)("menu.setting.tax.inclusive", { code: n.systemCode }),
|
|
92
|
+
"onUpdate:modelValue": (f) => e(l).setTaxInclusive(n.systemCode, !!f)
|
|
93
|
+
}, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))
|
|
94
|
+
])) : p("", !0)
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 8, ["label"]),
|
|
98
|
+
a.value.statutoryChargeWaivers.length > 0 ? (o(), r(S, {
|
|
99
|
+
key: 0,
|
|
100
|
+
label: e(t)("menu.catalog.form.statutory_charges.title")
|
|
101
|
+
}, {
|
|
102
|
+
default: m(() => [
|
|
103
|
+
_("div", K, [
|
|
104
|
+
(o(!0), d(w, null, F(a.value.statutoryChargeWaivers, (n) => (o(), r(U, {
|
|
105
|
+
key: n.code,
|
|
106
|
+
"model-value": n.waived,
|
|
107
|
+
label: e(t)("menu.catalog.form.statutory_charges.waive", {
|
|
108
|
+
name: n.name
|
|
109
|
+
}),
|
|
110
|
+
sublabel: e(t)("menu.menu_setting.statutory_charges.sublabel"),
|
|
111
|
+
"label-placement": "right",
|
|
112
|
+
"onUpdate:modelValue": (f) => e(l).setStatutoryChargeWaived(n.code, f)
|
|
113
|
+
}, null, 8, ["model-value", "label", "sublabel", "onUpdate:modelValue"]))), 128))
|
|
114
|
+
])
|
|
115
|
+
]),
|
|
116
|
+
_: 1
|
|
117
|
+
}, 8, ["label"])) : p("", !0),
|
|
118
|
+
_("div", Q, [
|
|
119
|
+
s(L, { class: "px-24 py-16 bg-fm-color-system-warning-100 border-none" }, {
|
|
120
|
+
default: m(() => [
|
|
121
|
+
_("div", X, [
|
|
122
|
+
s(A, {
|
|
123
|
+
name: "warning",
|
|
124
|
+
class: "text-fm-color-system-warning-300"
|
|
125
|
+
}),
|
|
126
|
+
_("p", Y, G(e(t)("menu.setting.catalog.warnings.delivery")), 1)
|
|
127
|
+
])
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
})
|
|
131
|
+
])
|
|
132
|
+
])) : p("", !0),
|
|
133
|
+
a.value ? (o(), d("div", Z, [
|
|
134
|
+
s(h, {
|
|
135
|
+
label: e(t)("menu.common.actions.save"),
|
|
136
|
+
disabled: a.value.submit.state !== "allowed",
|
|
137
|
+
loading: a.value.status === "submitting",
|
|
138
|
+
onClick: k
|
|
139
|
+
}, null, 8, ["label", "disabled", "loading"])
|
|
140
|
+
])) : p("", !0)
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 8, ["heading"]);
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
}), te = /* @__PURE__ */ y({
|
|
147
|
+
__name: "NamedSetting",
|
|
148
|
+
props: {
|
|
149
|
+
id: {}
|
|
150
|
+
},
|
|
151
|
+
setup(b) {
|
|
152
|
+
const u = b, t = $(), c = T(), l = t.catalog.edit(u.id);
|
|
153
|
+
return R(() => l.dispose()), (g, a) => (o(), r(z, {
|
|
154
|
+
page: "",
|
|
155
|
+
sdk: e(t),
|
|
156
|
+
editor: e(l),
|
|
157
|
+
picker: e(t).linkProduct.catalogue,
|
|
158
|
+
onClose: a[0] || (a[0] = (k) => e(c).push({ name: e(V).CATALOG }))
|
|
159
|
+
}, null, 8, ["sdk", "editor", "picker"]));
|
|
160
|
+
}
|
|
161
|
+
}), pe = /* @__PURE__ */ y({
|
|
162
|
+
__name: "Setting",
|
|
163
|
+
setup(b) {
|
|
164
|
+
const u = W();
|
|
165
|
+
return (t, c) => e(u).params.id === "main" ? (o(), r(ee, { key: 0 })) : (o(), r(te, {
|
|
166
|
+
key: String(e(u).params.id),
|
|
167
|
+
id: String(e(u).params.id)
|
|
168
|
+
}, null, 8, ["id"]));
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
export {
|
|
172
|
+
pe as default
|
|
173
|
+
};
|