@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,97 @@
|
|
|
1
|
+
import { defineComponent as k, ref as I, computed as O, resolveComponent as C, openBlock as p, createElementBlock as T, Fragment as L, withDirectives as R, createVNode as A, unref as g } from "vue";
|
|
2
|
+
import { useRoute as h, useRouter as w } from "vue-router";
|
|
3
|
+
import { useI18n as D } from "@feedmepos/mf-common";
|
|
4
|
+
import { _ as G } from "./PriceTierNotice.vue_vue_type_script_setup_true_lang-CxKHCptJ.js";
|
|
5
|
+
import { R as u } from "./app-Bd7W2PYm.js";
|
|
6
|
+
import { a as S } from "./provide-Tmjfji09.js";
|
|
7
|
+
const K = /* @__PURE__ */ k({
|
|
8
|
+
__name: "CatalogEditTabs",
|
|
9
|
+
setup(M) {
|
|
10
|
+
const _ = S(), s = h(), E = w(), { t: l } = D(), d = /* @__PURE__ */ new WeakMap(), c = I(null);
|
|
11
|
+
let b = null;
|
|
12
|
+
function m(e) {
|
|
13
|
+
const a = f.value.findIndex(
|
|
14
|
+
(t) => t.value === s.name
|
|
15
|
+
);
|
|
16
|
+
b !== s.name && (c.value = a, b = s.name);
|
|
17
|
+
const o = c.value ?? a, n = Array.from(
|
|
18
|
+
e.querySelectorAll("button")
|
|
19
|
+
), i = n.filter(
|
|
20
|
+
(t) => !n.some((r) => r !== t && r.contains(t))
|
|
21
|
+
);
|
|
22
|
+
i.forEach((t, r) => {
|
|
23
|
+
t.setAttribute("role", "tab"), t.setAttribute("aria-selected", String(r === a)), t.setAttribute("tabindex", r === o ? "0" : "-1");
|
|
24
|
+
}), n.filter((t) => !i.includes(t)).forEach((t) => {
|
|
25
|
+
t.setAttribute("role", "presentation"), t.setAttribute("tabindex", "-1"), t.setAttribute("aria-hidden", "true");
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
const v = {
|
|
29
|
+
mounted: (e) => {
|
|
30
|
+
const a = () => m(e), o = new MutationObserver(a);
|
|
31
|
+
o.observe(e, { childList: !0, subtree: !0 }), d.set(e, o), a();
|
|
32
|
+
},
|
|
33
|
+
updated: (e) => m(e),
|
|
34
|
+
beforeUnmount: (e) => {
|
|
35
|
+
var a;
|
|
36
|
+
return (a = d.get(e)) == null ? void 0 : a.disconnect();
|
|
37
|
+
}
|
|
38
|
+
}, f = O(() => [
|
|
39
|
+
{
|
|
40
|
+
label: l("menu.catalog.edit.tabs.product"),
|
|
41
|
+
value: u.EDIT_CATALOG_PRODUCT
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: l("menu.catalog.edit.tabs.category"),
|
|
45
|
+
value: u.EDIT_CATALOG_CATEGORY
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: l("menu.catalog.edit.tabs.group"),
|
|
49
|
+
value: u.EDIT_CATALOG_GROUP
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: l("menu.catalog.edit.tabs.takeaway"),
|
|
53
|
+
value: u.EDIT_CATALOG_TAKEAWAY
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: l("menu.catalog.edit.tabs.setting"),
|
|
57
|
+
value: u.EDIT_CATALOG_SETTING
|
|
58
|
+
}
|
|
59
|
+
]);
|
|
60
|
+
function x(e) {
|
|
61
|
+
E.replace({ name: e, params: { id: s.params.id } });
|
|
62
|
+
}
|
|
63
|
+
function y(e) {
|
|
64
|
+
var r;
|
|
65
|
+
if (!["ArrowLeft", "ArrowRight", "Home", "End"].includes(e.key)) return;
|
|
66
|
+
const a = e.target instanceof HTMLElement ? e.target.closest('[role="tab"]') : null, o = e.currentTarget, n = o instanceof HTMLElement ? Array.from(
|
|
67
|
+
o.querySelectorAll('[role="tab"]')
|
|
68
|
+
) : [], i = a ? n.indexOf(a) : -1;
|
|
69
|
+
if (i < 0) return;
|
|
70
|
+
const t = e.key === "Home" ? 0 : e.key === "End" ? n.length - 1 : (i + (e.key === "ArrowRight" ? 1 : -1) + n.length) % n.length;
|
|
71
|
+
e.preventDefault(), c.value = t, o instanceof HTMLElement && m(o), (r = n[t]) == null || r.focus();
|
|
72
|
+
}
|
|
73
|
+
return (e, a) => {
|
|
74
|
+
const o = C("FmTabs");
|
|
75
|
+
return p(), T(L, null, [
|
|
76
|
+
R((p(), T("div", {
|
|
77
|
+
id: "catalog-edit-tabs",
|
|
78
|
+
role: "tablist",
|
|
79
|
+
onKeydown: y
|
|
80
|
+
}, [
|
|
81
|
+
A(o, {
|
|
82
|
+
items: f.value,
|
|
83
|
+
"model-value": g(s).name,
|
|
84
|
+
class: "mb-7 xs:mb-0 xs:px-32",
|
|
85
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => x(n))
|
|
86
|
+
}, null, 8, ["items", "model-value"])
|
|
87
|
+
], 32)), [
|
|
88
|
+
[v]
|
|
89
|
+
]),
|
|
90
|
+
A(G, { sdk: g(_) }, null, 8, ["sdk"])
|
|
91
|
+
], 64);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
export {
|
|
96
|
+
K as _
|
|
97
|
+
};
|
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
import { defineComponent as re, computed as _, ref as se, watch as me, resolveComponent as i, openBlock as s, createElementBlock as d, Fragment as C, createBlock as b, resolveDynamicComponent as ie, mergeProps as $, unref as e, createSlots as de, withCtx as m, createCommentVNode as c, toDisplayString as f, createVNode as u, renderList as I, createElementVNode as k, createTextVNode as P, withModifiers as W, normalizeClass as ce } from "vue";
|
|
2
|
+
import { RouterLink as pe } from "vue-router";
|
|
3
|
+
import { useI18n as be } from "@feedmepos/mf-common";
|
|
4
|
+
import { components as G, FmButtonColorThemeVariant as V } from "@feedmepos/ui-library";
|
|
5
|
+
import { _ as ve } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
|
|
6
|
+
import { _ as h } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
|
|
7
|
+
import { _ as ke } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
8
|
+
import { _ as fe } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-D9jK-Fhn.js";
|
|
9
|
+
import { _ as ge } from "./CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-BSMAIkQ2.js";
|
|
10
|
+
import { _ as ye } from "./CatalogEditTabs.vue_vue_type_script_setup_true_lang-OshqaPTE.js";
|
|
11
|
+
import { b as _e, u as j } from "./provide-Tmjfji09.js";
|
|
12
|
+
import { u as Ce } from "./useActionFeedback-DoFeBFpl.js";
|
|
13
|
+
import { u as Y } from "./useEditorValidation-Ctef5Bxt.js";
|
|
14
|
+
import { R as Fe } from "./app-Bd7W2PYm.js";
|
|
15
|
+
const Ve = {
|
|
16
|
+
key: 1,
|
|
17
|
+
role: "alert"
|
|
18
|
+
}, he = {
|
|
19
|
+
key: 2,
|
|
20
|
+
class: "max-w-[752px] pt-16 space-y-32"
|
|
21
|
+
}, we = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "pl-32 space-x-8"
|
|
24
|
+
}, Me = { class: "space-y-16" }, De = { class: "pl-[60px] space-y-16" }, xe = { class: "space-x-16 flex items-center" }, Se = { class: "flex-1 space-y-4" }, Ue = { class: "fm-typo-en-body-md-400" }, $e = {
|
|
25
|
+
key: 3,
|
|
26
|
+
class: "max-w-[752px] pt-40 flex justify-end"
|
|
27
|
+
}, Ie = { class: "flex gap-8 items-center justify-start" }, Pe = {
|
|
28
|
+
key: 0,
|
|
29
|
+
class: "space-y-16"
|
|
30
|
+
}, Le = {
|
|
31
|
+
key: 1,
|
|
32
|
+
class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
33
|
+
}, Je = /* @__PURE__ */ re({
|
|
34
|
+
__name: "CatalogEditor",
|
|
35
|
+
props: {
|
|
36
|
+
sdk: {},
|
|
37
|
+
editor: {},
|
|
38
|
+
picker: {},
|
|
39
|
+
page: { type: Boolean }
|
|
40
|
+
},
|
|
41
|
+
emits: ["close"],
|
|
42
|
+
setup(q, { emit: H }) {
|
|
43
|
+
const v = q, w = H, { t: a } = be(), M = _e(), { run: J } = Ce(), D = Y(() => v.editor), g = j(v.editor), L = j(v.picker), l = _(
|
|
44
|
+
() => g.value.status === "ready" ? g.value.value : null
|
|
45
|
+
), R = _(
|
|
46
|
+
() => l.value ? D.issue(l.value.fieldIssues, "name") ?? l.value.nameIssue : null
|
|
47
|
+
), x = Y(() => {
|
|
48
|
+
var n;
|
|
49
|
+
const o = (n = l.value) == null ? void 0 : n.markupDraft;
|
|
50
|
+
return o ? o.index ?? "new" : null;
|
|
51
|
+
}), B = _(
|
|
52
|
+
() => {
|
|
53
|
+
var o;
|
|
54
|
+
return (o = l.value) != null && o.markupDraft ? x.issue(l.value.markupFieldIssues, "percentage") ?? l.value.markupDraft.issue : null;
|
|
55
|
+
}
|
|
56
|
+
), K = _(
|
|
57
|
+
() => L.value.status === "ready" ? L.value.value : null
|
|
58
|
+
), y = se(!1), N = _({
|
|
59
|
+
get: () => {
|
|
60
|
+
var o;
|
|
61
|
+
return !!((o = l.value) != null && o.markupDraft);
|
|
62
|
+
},
|
|
63
|
+
set: (o) => {
|
|
64
|
+
o || v.editor.cancelMarkup();
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
me(
|
|
68
|
+
() => g.value.status,
|
|
69
|
+
(o) => {
|
|
70
|
+
(o === "error" || o === "unavailable") && (y.value = !1);
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
async function O() {
|
|
74
|
+
(await J(
|
|
75
|
+
() => D.submit(() => v.editor.submit()),
|
|
76
|
+
{
|
|
77
|
+
showLoading: () => {
|
|
78
|
+
var n;
|
|
79
|
+
return ((n = l.value) == null ? void 0 : n.status) === "submitting";
|
|
80
|
+
},
|
|
81
|
+
successMessage: (n) => a("menu.catalog.saved", { name: n.name })
|
|
82
|
+
}
|
|
83
|
+
)).kind === "success" && w("close");
|
|
84
|
+
}
|
|
85
|
+
function Q() {
|
|
86
|
+
x.submit(async () => v.editor.saveMarkup());
|
|
87
|
+
}
|
|
88
|
+
function X(o) {
|
|
89
|
+
v.editor.setMarkupProducts(o), y.value = !1;
|
|
90
|
+
}
|
|
91
|
+
return (o, n) => {
|
|
92
|
+
var E, z, A;
|
|
93
|
+
const p = i("FmButton"), Z = i("FmTextField"), F = i("FmRadio"), T = i("FmRadioGroup"), ee = i("FmCheckbox"), S = i("FmSwitch"), ae = i("FmSelect"), le = i("FmChip"), oe = i("FmCard"), te = i("FmIcon"), ue = i("FmStepperField"), ne = i("FmDialog");
|
|
94
|
+
return s(), d(C, null, [
|
|
95
|
+
(s(), b(ie(o.page ? ke : "FmSideSheet"), $(
|
|
96
|
+
o.page ? { heading: ((E = l.value) == null ? void 0 : E.name) ?? "" } : {
|
|
97
|
+
modelValue: !0,
|
|
98
|
+
isContainer: e(G).FmForm,
|
|
99
|
+
isContainerProps: {
|
|
100
|
+
onValidationSuccess: O,
|
|
101
|
+
blameFormChildOnValidationFailed: !0
|
|
102
|
+
},
|
|
103
|
+
maxWidth: 560
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"onUpdate:modelValue": n[2] || (n[2] = (t) => !t && w("close"))
|
|
107
|
+
}
|
|
108
|
+
), de({
|
|
109
|
+
"side-sheet-footer": m(() => {
|
|
110
|
+
var t;
|
|
111
|
+
return [
|
|
112
|
+
k("div", Ie, [
|
|
113
|
+
u(p, {
|
|
114
|
+
loading: ((t = l.value) == null ? void 0 : t.status) === "submitting",
|
|
115
|
+
disabled: !l.value || l.value.submit.state !== "allowed",
|
|
116
|
+
label: e(a)("menu.common.actions.add"),
|
|
117
|
+
size: "lg",
|
|
118
|
+
type: "submit",
|
|
119
|
+
variant: "primary"
|
|
120
|
+
}, null, 8, ["loading", "disabled", "label"]),
|
|
121
|
+
u(p, {
|
|
122
|
+
label: e(a)("menu.common.actions.cancel"),
|
|
123
|
+
size: "lg",
|
|
124
|
+
variant: "tertiary",
|
|
125
|
+
onClick: n[1] || (n[1] = (r) => w("close"))
|
|
126
|
+
}, null, 8, ["label"])
|
|
127
|
+
])
|
|
128
|
+
];
|
|
129
|
+
}),
|
|
130
|
+
default: m(() => [
|
|
131
|
+
o.page ? (s(), b(ye, { key: 0 })) : c("", !0),
|
|
132
|
+
e(g).status === "error" ? (s(), d("p", Ve, f(e(M)(e(g).error.message)), 1)) : c("", !0),
|
|
133
|
+
l.value ? (s(), d("div", he, [
|
|
134
|
+
u(ve, {
|
|
135
|
+
title: e(a)("menu.catalog.detail")
|
|
136
|
+
}, {
|
|
137
|
+
default: m(() => [
|
|
138
|
+
u(Z, $({
|
|
139
|
+
"model-value": l.value.name,
|
|
140
|
+
autofocus: "",
|
|
141
|
+
label: e(a)("menu.catalog.form.name"),
|
|
142
|
+
"error-messages": R.value ? [e(M)(R.value)] : []
|
|
143
|
+
}, e(D).field("name", o.editor.setName)), null, 16, ["model-value", "label", "error-messages"]),
|
|
144
|
+
u(h, {
|
|
145
|
+
class: "pt-8",
|
|
146
|
+
label: e(a)("menu.catalog.form.tax.title")
|
|
147
|
+
}, {
|
|
148
|
+
default: m(() => [
|
|
149
|
+
u(T, {
|
|
150
|
+
"model-value": l.value.taxMode,
|
|
151
|
+
"onUpdate:modelValue": o.editor.setTaxMode
|
|
152
|
+
}, {
|
|
153
|
+
default: m(() => [
|
|
154
|
+
u(F, {
|
|
155
|
+
value: "automatic",
|
|
156
|
+
label: e(a)("menu.catalog.form.tax.auto.label"),
|
|
157
|
+
sublabel: e(a)("menu.catalog.form.tax.auto.sublabel")
|
|
158
|
+
}, null, 8, ["label", "sublabel"]),
|
|
159
|
+
u(F, {
|
|
160
|
+
value: "manual",
|
|
161
|
+
label: e(a)("menu.catalog.form.tax.manual.label"),
|
|
162
|
+
sublabel: e(a)("menu.catalog.form.tax.manual.sublabel")
|
|
163
|
+
}, null, 8, ["label", "sublabel"])
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
}, 8, ["model-value", "onUpdate:modelValue"]),
|
|
167
|
+
l.value.taxMode === "manual" ? (s(), d("div", we, [
|
|
168
|
+
(s(!0), d(C, null, I(l.value.taxes, (t) => (s(), b(ee, {
|
|
169
|
+
key: t.systemCode,
|
|
170
|
+
"model-value": t.inclusive,
|
|
171
|
+
value: !0,
|
|
172
|
+
label: e(a)("menu.catalog.form.tax.inclusive", { code: t.systemCode }),
|
|
173
|
+
"onUpdate:modelValue": (r) => o.editor.setTaxInclusive(t.systemCode, r)
|
|
174
|
+
}, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))
|
|
175
|
+
])) : c("", !0)
|
|
176
|
+
]),
|
|
177
|
+
_: 1
|
|
178
|
+
}, 8, ["label"]),
|
|
179
|
+
l.value.statutoryChargeWaivers.length > 0 ? (s(), b(h, {
|
|
180
|
+
key: 0,
|
|
181
|
+
label: e(a)("menu.catalog.form.statutory_charges.title")
|
|
182
|
+
}, {
|
|
183
|
+
default: m(() => [
|
|
184
|
+
k("div", Me, [
|
|
185
|
+
(s(!0), d(C, null, I(l.value.statutoryChargeWaivers, (t) => (s(), b(S, {
|
|
186
|
+
key: t.code,
|
|
187
|
+
"model-value": t.waived,
|
|
188
|
+
label: e(a)("menu.catalog.form.statutory_charges.waive", {
|
|
189
|
+
name: t.name
|
|
190
|
+
}),
|
|
191
|
+
sublabel: e(a)("menu.catalog.form.statutory_charges.sublabel"),
|
|
192
|
+
"label-placement": "right",
|
|
193
|
+
"onUpdate:modelValue": (r) => o.editor.setStatutoryChargeWaived(t.code, r)
|
|
194
|
+
}, null, 8, ["model-value", "label", "sublabel", "onUpdate:modelValue"]))), 128))
|
|
195
|
+
])
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
}, 8, ["label"])) : c("", !0)
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
}, 8, ["title"]),
|
|
202
|
+
l.value.advanced.state === "allowed" ? (s(), d(C, { key: 0 }, [
|
|
203
|
+
u(h, {
|
|
204
|
+
label: e(a)("menu.catalog.form.link.title")
|
|
205
|
+
}, {
|
|
206
|
+
default: m(() => [
|
|
207
|
+
u(S, {
|
|
208
|
+
"model-value": l.value.autoLink,
|
|
209
|
+
label: e(a)("menu.catalog.form.link.auto_link.label"),
|
|
210
|
+
sublabel: e(a)("menu.catalog.form.link.auto_link.sublabel"),
|
|
211
|
+
"label-placement": "right",
|
|
212
|
+
"onUpdate:modelValue": o.editor.setAutoLink
|
|
213
|
+
}, null, 8, ["model-value", "label", "sublabel", "onUpdate:modelValue"]),
|
|
214
|
+
l.value.autoLink ? (s(), b(ae, {
|
|
215
|
+
key: 0,
|
|
216
|
+
class: "ml-[60px]",
|
|
217
|
+
"aria-label": e(a)("menu.catalog.form.link.title"),
|
|
218
|
+
"model-value": l.value.orderFrom,
|
|
219
|
+
items: [
|
|
220
|
+
{ label: e(a)("menu.catalog.form.link.options.all"), value: "ALL" },
|
|
221
|
+
{
|
|
222
|
+
label: e(a)("menu.catalog.form.link.options.pos_only"),
|
|
223
|
+
value: "POS_ONLY"
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"onUpdate:modelValue": o.editor.setOrderFrom
|
|
227
|
+
}, null, 8, ["aria-label", "model-value", "items", "onUpdate:modelValue"])) : c("", !0)
|
|
228
|
+
]),
|
|
229
|
+
_: 1
|
|
230
|
+
}, 8, ["label"]),
|
|
231
|
+
u(h, {
|
|
232
|
+
label: e(a)("menu.catalog.form.markup.title")
|
|
233
|
+
}, {
|
|
234
|
+
default: m(() => [
|
|
235
|
+
u(S, {
|
|
236
|
+
"model-value": l.value.markupEnabled,
|
|
237
|
+
label: e(a)("menu.catalog.form.markup.auto.label"),
|
|
238
|
+
sublabel: e(a)("menu.catalog.form.markup.auto.sublabel"),
|
|
239
|
+
"label-placement": "right",
|
|
240
|
+
"onUpdate:modelValue": o.editor.setMarkupEnabled
|
|
241
|
+
}, null, 8, ["model-value", "label", "sublabel", "onUpdate:modelValue"]),
|
|
242
|
+
k("div", De, [
|
|
243
|
+
u(p, {
|
|
244
|
+
variant: "secondary",
|
|
245
|
+
"text-color": e(V).ColorPrimary,
|
|
246
|
+
"border-color": e(V).ColorPrimary,
|
|
247
|
+
label: e(a)("menu.catalog.form.markup.add"),
|
|
248
|
+
"prepend-icon": "add",
|
|
249
|
+
onClick: n[0] || (n[0] = (t) => o.editor.beginMarkup())
|
|
250
|
+
}, null, 8, ["text-color", "border-color", "label"]),
|
|
251
|
+
(s(!0), d(C, null, I(l.value.markups, (t, r) => (s(), b(oe, {
|
|
252
|
+
key: r,
|
|
253
|
+
class: "py-12 px-16 cursor-pointer",
|
|
254
|
+
role: "row",
|
|
255
|
+
variant: "outlined",
|
|
256
|
+
onClick: (U) => o.editor.beginMarkup(r)
|
|
257
|
+
}, {
|
|
258
|
+
default: m(() => [
|
|
259
|
+
k("div", xe, [
|
|
260
|
+
k("div", Se, [
|
|
261
|
+
u(le, { class: "text-fm-color-typo-info bg-fm-color-system-info-100 font-semibold" }, {
|
|
262
|
+
default: m(() => [
|
|
263
|
+
P(f(e(a)("menu.catalog.form.markup.percentage", {
|
|
264
|
+
value: t.percentage
|
|
265
|
+
})), 1)
|
|
266
|
+
]),
|
|
267
|
+
_: 2
|
|
268
|
+
}, 1024),
|
|
269
|
+
u(p, {
|
|
270
|
+
class: "fm-typo-en-body-lg-400",
|
|
271
|
+
onClick: W((U) => o.editor.beginMarkup(r), ["stop"])
|
|
272
|
+
}, {
|
|
273
|
+
default: m(() => [
|
|
274
|
+
P(f(e(a)("menu.catalog.form.markup.config", {
|
|
275
|
+
number: r + 1
|
|
276
|
+
})), 1)
|
|
277
|
+
]),
|
|
278
|
+
_: 2
|
|
279
|
+
}, 1032, ["onClick"]),
|
|
280
|
+
k("p", Ue, f(t.productCount === null ? e(a)("menu.catalog.form.markup.all_items") : e(a)("menu.catalog.form.markup.products", {
|
|
281
|
+
count: t.productCount
|
|
282
|
+
})), 1)
|
|
283
|
+
]),
|
|
284
|
+
u(p, {
|
|
285
|
+
variant: "tertiary",
|
|
286
|
+
"prepend-icon": "delete",
|
|
287
|
+
"aria-label": e(a)("menu.catalog.remove_markup"),
|
|
288
|
+
onClick: W((U) => o.editor.removeMarkup(r), ["stop"])
|
|
289
|
+
}, null, 8, ["aria-label", "onClick"])
|
|
290
|
+
])
|
|
291
|
+
]),
|
|
292
|
+
_: 2
|
|
293
|
+
}, 1032, ["onClick"]))), 128))
|
|
294
|
+
])
|
|
295
|
+
]),
|
|
296
|
+
_: 1
|
|
297
|
+
}, 8, ["label"])
|
|
298
|
+
], 64)) : c("", !0)
|
|
299
|
+
])) : c("", !0),
|
|
300
|
+
o.page && l.value ? (s(), d("div", $e, [
|
|
301
|
+
u(p, {
|
|
302
|
+
loading: l.value.status === "submitting",
|
|
303
|
+
disabled: l.value.submit.state !== "allowed",
|
|
304
|
+
label: e(a)("menu.common.actions.save"),
|
|
305
|
+
size: "lg",
|
|
306
|
+
variant: "primary",
|
|
307
|
+
onClick: O
|
|
308
|
+
}, null, 8, ["loading", "disabled", "label"])
|
|
309
|
+
])) : c("", !0)
|
|
310
|
+
]),
|
|
311
|
+
_: 2
|
|
312
|
+
}, [
|
|
313
|
+
o.page ? {
|
|
314
|
+
name: "prepend-heading",
|
|
315
|
+
fn: m(() => [
|
|
316
|
+
u(e(pe), {
|
|
317
|
+
to: { name: e(Fe).CATALOG },
|
|
318
|
+
class: "mr-8",
|
|
319
|
+
title: e(a)("menu.catalog.edit.back")
|
|
320
|
+
}, {
|
|
321
|
+
default: m(() => [
|
|
322
|
+
u(p, {
|
|
323
|
+
"aria-label": e(a)("menu.catalog.edit.back"),
|
|
324
|
+
"prepend-icon": "arrow_back",
|
|
325
|
+
variant: "tertiary"
|
|
326
|
+
}, null, 8, ["aria-label"])
|
|
327
|
+
]),
|
|
328
|
+
_: 1
|
|
329
|
+
}, 8, ["to", "title"])
|
|
330
|
+
]),
|
|
331
|
+
key: "0"
|
|
332
|
+
} : void 0,
|
|
333
|
+
o.page ? {
|
|
334
|
+
name: "append-heading",
|
|
335
|
+
fn: m(() => [
|
|
336
|
+
u(ge, { sdk: o.sdk }, null, 8, ["sdk"])
|
|
337
|
+
]),
|
|
338
|
+
key: "1"
|
|
339
|
+
} : void 0
|
|
340
|
+
]), 1040)),
|
|
341
|
+
u(ne, {
|
|
342
|
+
modelValue: N.value,
|
|
343
|
+
"onUpdate:modelValue": n[6] || (n[6] = (t) => N.value = t),
|
|
344
|
+
"is-component": e(G).FmForm,
|
|
345
|
+
"is-component-props": { onValidationSuccess: Q }
|
|
346
|
+
}, {
|
|
347
|
+
"dialog-header": m(() => {
|
|
348
|
+
var t, r;
|
|
349
|
+
return [
|
|
350
|
+
P(f(((r = (t = l.value) == null ? void 0 : t.markupDraft) == null ? void 0 : r.index) === null ? e(a)("menu.markup.dialog.title.add") : e(a)("menu.markup.dialog.title.update")), 1)
|
|
351
|
+
];
|
|
352
|
+
}),
|
|
353
|
+
"dialog-footer": m(() => {
|
|
354
|
+
var t, r;
|
|
355
|
+
return [
|
|
356
|
+
u(p, {
|
|
357
|
+
class: "sm:w-full xs:w-full ml-auto",
|
|
358
|
+
label: e(a)("menu.common.actions.cancel"),
|
|
359
|
+
variant: "tertiary",
|
|
360
|
+
onClick: n[5] || (n[5] = (U) => o.editor.cancelMarkup())
|
|
361
|
+
}, null, 8, ["label"]),
|
|
362
|
+
u(p, {
|
|
363
|
+
label: ((r = (t = l.value) == null ? void 0 : t.markupDraft) == null ? void 0 : r.index) === null ? e(a)("menu.common.actions.add") : e(a)("menu.common.actions.update"),
|
|
364
|
+
class: "sm:w-full xs:w-full",
|
|
365
|
+
size: "md",
|
|
366
|
+
type: "submit",
|
|
367
|
+
variant: "primary"
|
|
368
|
+
}, null, 8, ["label"])
|
|
369
|
+
];
|
|
370
|
+
}),
|
|
371
|
+
default: m(() => {
|
|
372
|
+
var t;
|
|
373
|
+
return [
|
|
374
|
+
(t = l.value) != null && t.markupDraft ? (s(), d("div", Pe, [
|
|
375
|
+
u(ue, $(
|
|
376
|
+
{
|
|
377
|
+
"model-value": l.value.markupDraft.percentage,
|
|
378
|
+
decimal: 0,
|
|
379
|
+
max: 100,
|
|
380
|
+
min: 0,
|
|
381
|
+
label: e(a)("menu.markup.dialog.fields.percentage.label"),
|
|
382
|
+
placeholder: e(a)("menu.markup.dialog.fields.percentage.placeholder"),
|
|
383
|
+
"error-messages": B.value ? [e(M)(B.value)] : []
|
|
384
|
+
},
|
|
385
|
+
e(x).field("percentage", o.editor.setMarkupPercentage)
|
|
386
|
+
), {
|
|
387
|
+
prepend: m(() => [
|
|
388
|
+
u(te, { name: "percent" })
|
|
389
|
+
]),
|
|
390
|
+
_: 1
|
|
391
|
+
}, 16, ["model-value", "label", "placeholder", "error-messages"]),
|
|
392
|
+
u(T, {
|
|
393
|
+
"model-value": l.value.markupDraft.productIds === null ? "all" : "custom",
|
|
394
|
+
class: "space-y-8",
|
|
395
|
+
"onUpdate:modelValue": n[3] || (n[3] = (r) => o.editor.setMarkupProducts(r === "all" ? null : []))
|
|
396
|
+
}, {
|
|
397
|
+
default: m(() => [
|
|
398
|
+
u(F, {
|
|
399
|
+
value: "all",
|
|
400
|
+
"aria-label": e(a)("menu.markup.dialog.options.all"),
|
|
401
|
+
label: e(a)("menu.markup.dialog.options.all")
|
|
402
|
+
}, null, 8, ["aria-label", "label"]),
|
|
403
|
+
u(F, {
|
|
404
|
+
value: "custom",
|
|
405
|
+
"aria-label": e(a)("menu.markup.dialog.options.custom"),
|
|
406
|
+
label: e(a)("menu.markup.dialog.options.custom")
|
|
407
|
+
}, null, 8, ["aria-label", "label"])
|
|
408
|
+
]),
|
|
409
|
+
_: 1
|
|
410
|
+
}, 8, ["model-value"]),
|
|
411
|
+
k("div", {
|
|
412
|
+
class: ce(["ml-32 mt-16 space-y-8", { "pb-8": l.value.markupDraft.productIds !== null }])
|
|
413
|
+
}, [
|
|
414
|
+
l.value.markupDraft.productIds !== null ? (s(), b(p, {
|
|
415
|
+
key: 0,
|
|
416
|
+
variant: "secondary",
|
|
417
|
+
"text-color": e(V).ColorPrimary,
|
|
418
|
+
"border-color": e(V).ColorPrimary,
|
|
419
|
+
"aria-label": e(a)("menu.markup.dialog.products.link"),
|
|
420
|
+
label: e(a)("menu.markup.dialog.products.link"),
|
|
421
|
+
"prepend-icon": "link",
|
|
422
|
+
onClick: n[4] || (n[4] = (r) => y.value = !0)
|
|
423
|
+
}, null, 8, ["text-color", "border-color", "aria-label", "label"])) : c("", !0),
|
|
424
|
+
l.value.markupDraft.productCount ? (s(), d("p", Le, f(e(a)("menu.markup.dialog.products.count", {
|
|
425
|
+
count: l.value.markupDraft.productCount
|
|
426
|
+
})), 1)) : c("", !0)
|
|
427
|
+
], 2)
|
|
428
|
+
])) : c("", !0)
|
|
429
|
+
];
|
|
430
|
+
}),
|
|
431
|
+
_: 1
|
|
432
|
+
}, 8, ["modelValue", "is-component", "is-component-props"]),
|
|
433
|
+
u(fe, {
|
|
434
|
+
modelValue: y.value,
|
|
435
|
+
"onUpdate:modelValue": n[7] || (n[7] = (t) => y.value = t),
|
|
436
|
+
catalogue: K.value,
|
|
437
|
+
"selected-product-ids": ((A = (z = l.value) == null ? void 0 : z.markupDraft) == null ? void 0 : A.productIds) ?? [],
|
|
438
|
+
title: e(a)("menu.markup.dialog.products.link"),
|
|
439
|
+
onSubmit: X
|
|
440
|
+
}, null, 8, ["modelValue", "catalogue", "selected-product-ids", "title"])
|
|
441
|
+
], 64);
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
export {
|
|
446
|
+
Je as _
|
|
447
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { defineComponent as N, shallowRef as m, computed as M, ref as A, watch as E, onUnmounted as U, resolveComponent as z, openBlock as f, createElementBlock as O, Fragment as $, createElementVNode as j, normalizeClass as g, createBlock as R, unref as b, createCommentVNode as q, createVNode as x } from "vue";
|
|
2
|
+
import { useI18n as D } from "@feedmepos/mf-common";
|
|
3
|
+
import { _ as G } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-D9jK-Fhn.js";
|
|
4
|
+
import { u as H } from "./useActionFeedback-DoFeBFpl.js";
|
|
5
|
+
import { b as J, u as K } from "./provide-Tmjfji09.js";
|
|
6
|
+
const Z = /* @__PURE__ */ N({
|
|
7
|
+
__name: "CatalogLinkProductAction",
|
|
8
|
+
props: {
|
|
9
|
+
sdk: {},
|
|
10
|
+
presentation: {}
|
|
11
|
+
},
|
|
12
|
+
setup(B) {
|
|
13
|
+
const a = B, { t: k } = D(), y = J(), { run: S } = H(), w = K(a.sdk.item.list), o = m({
|
|
14
|
+
status: "loading"
|
|
15
|
+
});
|
|
16
|
+
let u = null;
|
|
17
|
+
const l = M(
|
|
18
|
+
() => w.value.status === "ready" ? w.value.value : null
|
|
19
|
+
), F = M(
|
|
20
|
+
() => o.value.status === "ready" ? o.value.value : null
|
|
21
|
+
), i = A(!1), r = m(null), c = m(
|
|
22
|
+
null
|
|
23
|
+
), d = m({
|
|
24
|
+
status: "loading"
|
|
25
|
+
});
|
|
26
|
+
let v = null;
|
|
27
|
+
function p() {
|
|
28
|
+
var e, t;
|
|
29
|
+
u == null || u(), u = null, o.value = { status: "loading" }, v == null || v(), v = null, (e = r.value) == null || e.dispose(), r.value = null, (t = c.value) == null || t.dispose(), c.value = null, d.value = { status: "loading" };
|
|
30
|
+
}
|
|
31
|
+
function C() {
|
|
32
|
+
var s;
|
|
33
|
+
p();
|
|
34
|
+
const e = a.presentation === "tree" ? a.sdk.linkProduct.documentCatalogue : a.sdk.linkProduct.catalogue;
|
|
35
|
+
o.value = e.get(), u = e.subscribe((n) => {
|
|
36
|
+
o.value = n;
|
|
37
|
+
}), c.value = a.sdk.linkProduct.selection(
|
|
38
|
+
((s = l.value) == null ? void 0 : s.availableItemIds) ?? [],
|
|
39
|
+
(n) => a.sdk.item.linkProducts(n)
|
|
40
|
+
);
|
|
41
|
+
const t = a.sdk.linkProduct.rules();
|
|
42
|
+
r.value = t, d.value = t.get(), v = t.subscribe((n) => {
|
|
43
|
+
d.value = n;
|
|
44
|
+
}), i.value = !0;
|
|
45
|
+
}
|
|
46
|
+
function P() {
|
|
47
|
+
i.value = !1, p();
|
|
48
|
+
}
|
|
49
|
+
E(i, (e) => {
|
|
50
|
+
e || p();
|
|
51
|
+
}), U(p);
|
|
52
|
+
async function I(e) {
|
|
53
|
+
(await S(
|
|
54
|
+
() => {
|
|
55
|
+
var s;
|
|
56
|
+
return ((s = c.value) == null ? void 0 : s.submit()) ?? Promise.resolve({ kind: "cancelled" });
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
successMessage: l.value ? y(l.value.linkSaveMessage) : ""
|
|
60
|
+
}
|
|
61
|
+
)).kind === "success" && P();
|
|
62
|
+
}
|
|
63
|
+
async function L() {
|
|
64
|
+
const e = r.value;
|
|
65
|
+
if (!e) return;
|
|
66
|
+
(await S(() => e.submit(), {
|
|
67
|
+
successMessage: l.value ? y(l.value.linkSaveMessage) : ""
|
|
68
|
+
})).kind === "success" && P();
|
|
69
|
+
}
|
|
70
|
+
return (e, t) => {
|
|
71
|
+
var n, h, V;
|
|
72
|
+
const s = z("FmButton");
|
|
73
|
+
return f(), O($, null, [
|
|
74
|
+
j("div", {
|
|
75
|
+
class: g(e.presentation === "tree" ? void 0 : "ml-auto")
|
|
76
|
+
}, [
|
|
77
|
+
((n = l.value) == null ? void 0 : n.link.state) === "allowed" ? (f(), R(s, {
|
|
78
|
+
key: 0,
|
|
79
|
+
label: b(k)("menu.products.actions.link"),
|
|
80
|
+
"prepend-icon": "link",
|
|
81
|
+
class: g(
|
|
82
|
+
e.presentation === "tree" ? "!h-32 shrink-0 !gap-4 !px-8 !py-4" : void 0
|
|
83
|
+
),
|
|
84
|
+
"text-color": e.presentation === "tree" ? "primary" : void 0,
|
|
85
|
+
variant: e.presentation === "tree" ? "plain" : void 0,
|
|
86
|
+
onClick: C
|
|
87
|
+
}, null, 8, ["label", "class", "text-color", "variant"])) : e.presentation === "tree" && ((h = l.value) == null ? void 0 : h.applyScheduler.state) === "allowed" ? (f(), R(s, {
|
|
88
|
+
key: 1,
|
|
89
|
+
label: b(k)("menu.products.actions.apply_scheduler"),
|
|
90
|
+
"prepend-icon": "link",
|
|
91
|
+
class: g(
|
|
92
|
+
e.presentation === "tree" ? "!h-32 shrink-0 !gap-4 !px-8 !py-4" : void 0
|
|
93
|
+
),
|
|
94
|
+
"text-color": e.presentation === "tree" ? "primary" : void 0,
|
|
95
|
+
variant: e.presentation === "tree" ? "plain" : void 0,
|
|
96
|
+
onClick: C
|
|
97
|
+
}, null, 8, ["label", "class", "text-color", "variant"])) : q("", !0)
|
|
98
|
+
], 2),
|
|
99
|
+
x(G, {
|
|
100
|
+
modelValue: i.value,
|
|
101
|
+
"onUpdate:modelValue": t[0] || (t[0] = (_) => i.value = _),
|
|
102
|
+
catalogue: F.value,
|
|
103
|
+
"selected-product-ids": ((V = l.value) == null ? void 0 : V.availableItemIds) ?? [],
|
|
104
|
+
"rules-session": r.value,
|
|
105
|
+
"selection-session": c.value,
|
|
106
|
+
"rules-view": d.value.status === "ready" ? d.value.value : null,
|
|
107
|
+
title: b(k)("menu.link_product.title"),
|
|
108
|
+
onSubmit: I,
|
|
109
|
+
onSubmitRules: L
|
|
110
|
+
}, null, 8, ["modelValue", "catalogue", "selected-product-ids", "rules-session", "selection-session", "rules-view", "title"])
|
|
111
|
+
], 64);
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
export {
|
|
116
|
+
Z as _
|
|
117
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineComponent as o, openBlock as r, createBlock as n, unref as t } from "vue";
|
|
2
|
+
import { _ as s } from "./CategoryList.vue_vue_type_script_setup_true_lang-UgNVpYgp.js";
|
|
3
|
+
import { a } from "./provide-Tmjfji09.js";
|
|
4
|
+
const d = /* @__PURE__ */ o({
|
|
5
|
+
__name: "Category",
|
|
6
|
+
setup(_) {
|
|
7
|
+
const e = a();
|
|
8
|
+
return (c, m) => (r(), n(s, { sdk: t(e) }, null, 8, ["sdk"]));
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
d as default
|
|
13
|
+
};
|