@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,538 @@
|
|
|
1
|
+
import { defineComponent as fe, computed as h, ref as Pe, shallowRef as B, h as x, withModifiers as ue, onUnmounted as Te, resolveComponent as b, openBlock as i, createBlock as f, unref as t, withCtx as p, createElementBlock as C, toDisplayString as S, Fragment as ce, createElementVNode as d, normalizeClass as me, createVNode as r, renderList as Ve, createCommentVNode as L, mergeProps as de, createSlots as $e, nextTick as Ee } from "vue";
|
|
2
|
+
import { _ as Oe, d as ze } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
|
|
3
|
+
import { useI18n as Me } from "@feedmepos/mf-common";
|
|
4
|
+
import { useDialog as je, useBreakpoints as Be, components as pe, FmButtonVariant as H } from "@feedmepos/ui-library";
|
|
5
|
+
import { _ as Ue } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-C9OSr8ft.js";
|
|
6
|
+
import { _ as Ae } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
7
|
+
import { _ as Ne } from "./ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-ClG3Prfm.js";
|
|
8
|
+
import { _ as qe } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
|
|
9
|
+
import { _ as De } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
10
|
+
import { _ as ve } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-CAkLEmSA.js";
|
|
11
|
+
import { u as Re } from "./useActionFeedback-DoFeBFpl.js";
|
|
12
|
+
import { u as Qe } from "./useEditorValidation-Ctef5Bxt.js";
|
|
13
|
+
import { b as Ge, u as He, a as Ke } from "./provide-Tmjfji09.js";
|
|
14
|
+
const Je = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "text-fm-color-typo-secondary",
|
|
17
|
+
role: "alert"
|
|
18
|
+
}, We = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "text-fm-color-typo-secondary",
|
|
21
|
+
"data-menu-state": "unavailable"
|
|
22
|
+
}, Xe = { class: "flex justify-end items-center" }, Ye = { class: "min-w-0 flex flex-1 items-center gap-8 px-16 py-12" }, Ze = { class: "min-w-0 flex-1 flex flex-col gap-4" }, ea = { class: "fm-typo-en-body-lg-600 break-words" }, aa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ta = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, na = { key: 1 }, oa = {
|
|
23
|
+
key: 2,
|
|
24
|
+
class: "fixed right-16 bottom-[72px] z-[100] w-[154px]"
|
|
25
|
+
}, la = { class: "fm-typo-en-title-md-600" }, sa = { class: "py-16 space-y-32" }, ia = ["data-not-allow-sort"], ra = {
|
|
26
|
+
key: 1,
|
|
27
|
+
class: "w-24"
|
|
28
|
+
}, ua = { class: "flex-1" }, ca = { class: "flex items-center gap-8" }, ma = { class: "flex gap-8 items-center justify-start" }, da = /* @__PURE__ */ fe({
|
|
29
|
+
__name: "VariantList",
|
|
30
|
+
props: {
|
|
31
|
+
sdk: {}
|
|
32
|
+
},
|
|
33
|
+
setup(K) {
|
|
34
|
+
const g = K, { t: a } = Me(), I = Ge(), J = je(), { breakpoints: _e } = Be(), { run: U } = Re(), y = He(g.sdk.variant.list), c = h(
|
|
35
|
+
() => y.value.status === "ready" ? y.value.value : null
|
|
36
|
+
), W = h(() => {
|
|
37
|
+
var e;
|
|
38
|
+
return ((e = c.value) == null ? void 0 : e.query) ?? "";
|
|
39
|
+
}), P = h(() => _e.value.xs), T = Pe(!1), u = B(
|
|
40
|
+
g.sdk.variant.editor()
|
|
41
|
+
), V = B(
|
|
42
|
+
u.value.get()
|
|
43
|
+
);
|
|
44
|
+
let A = u.value.subscribe(
|
|
45
|
+
(e) => V.value = e
|
|
46
|
+
);
|
|
47
|
+
const l = h(
|
|
48
|
+
() => V.value.status === "ready" ? V.value.value : null
|
|
49
|
+
), $ = Qe(() => u.value), X = h(
|
|
50
|
+
() => l.value ? $.issue(l.value.fieldIssues, "name") ?? l.value.nameIssue : null
|
|
51
|
+
), Y = h(
|
|
52
|
+
() => l.value ? $.issue(l.value.fieldIssues, "options") ?? l.value.optionsIssue : null
|
|
53
|
+
);
|
|
54
|
+
function be(e) {
|
|
55
|
+
const { ref: n, ...o } = $.field(
|
|
56
|
+
"options",
|
|
57
|
+
(m) => u.value.setOptionName(e, m)
|
|
58
|
+
);
|
|
59
|
+
return o;
|
|
60
|
+
}
|
|
61
|
+
const w = B(null), Z = B("variant"), ge = h(() => {
|
|
62
|
+
var e;
|
|
63
|
+
return ((e = l.value) == null ? void 0 : e.linkedGroups) ?? [];
|
|
64
|
+
}), N = /* @__PURE__ */ new Map();
|
|
65
|
+
function ee(e) {
|
|
66
|
+
O(), A(), u.value.dispose(), u.value = g.sdk.variant.editor(e), V.value = u.value.get(), A = u.value.subscribe(
|
|
67
|
+
(n) => V.value = n
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
function q() {
|
|
71
|
+
c.value && c.value.create.state !== "allowed" || (ee(), T.value = !0);
|
|
72
|
+
}
|
|
73
|
+
function ae(e) {
|
|
74
|
+
ee(e.id), T.value = !0;
|
|
75
|
+
}
|
|
76
|
+
function E() {
|
|
77
|
+
T.value = !1;
|
|
78
|
+
}
|
|
79
|
+
function te() {
|
|
80
|
+
var e;
|
|
81
|
+
if (!((e = l.value) != null && e.dirty)) return E();
|
|
82
|
+
J.open({
|
|
83
|
+
title: a("menu.common.dialog.dismiss.title"),
|
|
84
|
+
message: a("menu.common.dialog.dismiss.message"),
|
|
85
|
+
primaryActions: {
|
|
86
|
+
text: a("menu.common.dialog.dismiss.discard"),
|
|
87
|
+
close: !0,
|
|
88
|
+
variant: H.Primary
|
|
89
|
+
},
|
|
90
|
+
secondaryActions: {
|
|
91
|
+
text: a("menu.common.actions.cancel"),
|
|
92
|
+
close: !0,
|
|
93
|
+
variant: H.Tertiary
|
|
94
|
+
}
|
|
95
|
+
}).onPrimary(E);
|
|
96
|
+
}
|
|
97
|
+
function ye(e) {
|
|
98
|
+
e ? T.value = !0 : te();
|
|
99
|
+
}
|
|
100
|
+
function ne(e) {
|
|
101
|
+
var n;
|
|
102
|
+
(n = w.value) == null || n.dispose(), Z.value = e, w.value = u.value.translationEditor();
|
|
103
|
+
}
|
|
104
|
+
function O() {
|
|
105
|
+
var e;
|
|
106
|
+
(e = w.value) == null || e.dispose(), w.value = null;
|
|
107
|
+
}
|
|
108
|
+
async function ke() {
|
|
109
|
+
const e = w.value;
|
|
110
|
+
if (!e) return;
|
|
111
|
+
(await U(async () => e.apply(), {
|
|
112
|
+
showLoading: !1
|
|
113
|
+
})).kind === "success" && O();
|
|
114
|
+
}
|
|
115
|
+
function he(e) {
|
|
116
|
+
u.value.reorderOptions(e.map((n) => n.id));
|
|
117
|
+
}
|
|
118
|
+
function we(e) {
|
|
119
|
+
return e.draggedContext.futureIndex !== e.relatedContext.list.length - 1;
|
|
120
|
+
}
|
|
121
|
+
function D(e, n) {
|
|
122
|
+
var m;
|
|
123
|
+
const o = l.value;
|
|
124
|
+
return ((m = Y.value) == null ? void 0 : m.code) === "menu.variant.form.options.name_required" && !!o && e !== o.options.length - 1 && !n.name.trim();
|
|
125
|
+
}
|
|
126
|
+
function xe(e, n) {
|
|
127
|
+
const o = Y.value;
|
|
128
|
+
return D(e, n) && o ? I(o) : "";
|
|
129
|
+
}
|
|
130
|
+
function Ce(e, n) {
|
|
131
|
+
if (!n || typeof n.focus != "function") {
|
|
132
|
+
N.delete(e);
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
const o = n;
|
|
136
|
+
N.set(e, o), o.inputEl instanceof HTMLInputElement && o.inputEl.setAttribute(
|
|
137
|
+
"aria-label",
|
|
138
|
+
a("menu.variant.form.options.input", { number: e + 1 })
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
function Fe(e) {
|
|
142
|
+
return e.reduce((n, o) => {
|
|
143
|
+
for (const [m, F] of Object.entries(o.nameLocale ?? {}))
|
|
144
|
+
n[m] ?? (n[m] = F);
|
|
145
|
+
return n;
|
|
146
|
+
}, {});
|
|
147
|
+
}
|
|
148
|
+
async function Se() {
|
|
149
|
+
var F, z, M;
|
|
150
|
+
const e = ((F = l.value) == null ? void 0 : F.name) ?? "", n = await U(
|
|
151
|
+
() => $.submit(() => u.value.submit()),
|
|
152
|
+
{
|
|
153
|
+
successMessage: a("menu.variant.form.saved", { name: e }),
|
|
154
|
+
// `submit()` publishes `submitting` synchronously only when it will
|
|
155
|
+
// perform a write. Local validation rejection must not flash loading.
|
|
156
|
+
showLoading: () => {
|
|
157
|
+
var k;
|
|
158
|
+
return ((k = l.value) == null ? void 0 : k.status) === "submitting";
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
);
|
|
162
|
+
n.kind === "success" && E();
|
|
163
|
+
const o = n.kind === "rejected" && n.issues.some((k) => k.field === "options"), m = (z = l.value) == null ? void 0 : z.options.findIndex(
|
|
164
|
+
(k, R) => D(R, k)
|
|
165
|
+
);
|
|
166
|
+
o && m !== void 0 && m >= 0 && (await Ee(), (M = N.get(m)) == null || M.focus());
|
|
167
|
+
}
|
|
168
|
+
function oe(e) {
|
|
169
|
+
e.remove.state === "allowed" && J.open({
|
|
170
|
+
title: a("menu.common.dialog.remove.variant.title"),
|
|
171
|
+
message: a("menu.common.dialog.remove.variant.message", {
|
|
172
|
+
name: e.name
|
|
173
|
+
}),
|
|
174
|
+
primaryActions: {
|
|
175
|
+
text: a("menu.common.actions.remove"),
|
|
176
|
+
close: !0,
|
|
177
|
+
variant: H.Destructive
|
|
178
|
+
},
|
|
179
|
+
secondaryActions: {
|
|
180
|
+
text: a("menu.common.actions.cancel"),
|
|
181
|
+
close: !0
|
|
182
|
+
}
|
|
183
|
+
}).onPrimary(async () => {
|
|
184
|
+
await U(() => g.sdk.variant.remove(e.id), {
|
|
185
|
+
successMessage: a("menu.variant.form.removed", { name: e.name })
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
const Le = h(() => [
|
|
190
|
+
// Widths are the legacy ones (`Variant.vue:57,76,107`). They are not
|
|
191
|
+
// cosmetic: they decide where the option-values column wraps, and a wrap
|
|
192
|
+
// shifts every row below it out of visual parity.
|
|
193
|
+
{
|
|
194
|
+
accessorKey: "name",
|
|
195
|
+
header: () => a("menu.variant.columns.name"),
|
|
196
|
+
size: 360,
|
|
197
|
+
enableSorting: !1,
|
|
198
|
+
cell: (e) => x("div", { class: "flex items-center gap-8" }, [
|
|
199
|
+
x("span", { class: "break-all" }, e.row.original.name),
|
|
200
|
+
...e.row.original.nameLocale && Object.keys(e.row.original.nameLocale).length ? [
|
|
201
|
+
x(ve, {
|
|
202
|
+
nameLocale: e.row.original.nameLocale
|
|
203
|
+
})
|
|
204
|
+
] : []
|
|
205
|
+
])
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
id: "options",
|
|
209
|
+
header: () => a("menu.variant.columns.options"),
|
|
210
|
+
size: 560,
|
|
211
|
+
enableSorting: !1,
|
|
212
|
+
cell: (e) => {
|
|
213
|
+
const n = Fe(e.row.original.options);
|
|
214
|
+
return x("div", { class: "flex items-center gap-8" }, [
|
|
215
|
+
x(
|
|
216
|
+
"span",
|
|
217
|
+
{ class: "break-all" },
|
|
218
|
+
e.row.original.options.map((o) => o.name).join(", ")
|
|
219
|
+
),
|
|
220
|
+
...Object.keys(n).length ? [x(ve, { nameLocale: n })] : []
|
|
221
|
+
]);
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
id: "linkedProducts",
|
|
226
|
+
header: () => a("menu.variant.columns.applied_products"),
|
|
227
|
+
size: 180,
|
|
228
|
+
enableSorting: !1,
|
|
229
|
+
cell: (e) => a("menu.common.labels.items_linked", {
|
|
230
|
+
count: e.row.original.linkedProductCount
|
|
231
|
+
})
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
id: "actions",
|
|
235
|
+
size: 52,
|
|
236
|
+
meta: { cellClass: "pl-16", headerContentClass: "-mx-16" },
|
|
237
|
+
header: "",
|
|
238
|
+
cell: (e) => x(pe.FmButton, {
|
|
239
|
+
icon: "delete",
|
|
240
|
+
variant: "tertiary",
|
|
241
|
+
textColor: "neutral-gray-400",
|
|
242
|
+
disabled: e.row.original.remove.state !== "allowed",
|
|
243
|
+
"aria-label": a("menu.variant.actions.remove", {
|
|
244
|
+
name: e.row.original.name
|
|
245
|
+
}),
|
|
246
|
+
onClick: ue(
|
|
247
|
+
() => oe(e.row.original),
|
|
248
|
+
["stop", "prevent"]
|
|
249
|
+
)
|
|
250
|
+
})
|
|
251
|
+
}
|
|
252
|
+
]);
|
|
253
|
+
return Te(() => {
|
|
254
|
+
g.sdk.variant.search(""), O(), A(), u.value.dispose();
|
|
255
|
+
}), (e, n) => {
|
|
256
|
+
const o = b("FmButton"), m = b("FmCircularProgress"), F = b("FmSearch"), z = b("FmListItem"), M = b("FmList"), k = b("FmTable"), R = b("FmTooltip"), le = b("FmTextField"), Ie = b("FmSideSheet");
|
|
257
|
+
return i(), f(De, {
|
|
258
|
+
heading: t(a)("menu.variant.title")
|
|
259
|
+
}, {
|
|
260
|
+
"append-heading": p(() => [
|
|
261
|
+
t(y).status === "ready" && c.value && c.value.totalCount > 0 && !P.value ? (i(), f(o, {
|
|
262
|
+
key: 0,
|
|
263
|
+
class: "ml-auto",
|
|
264
|
+
disabled: c.value.create.state !== "allowed",
|
|
265
|
+
label: t(a)("menu.variant.add"),
|
|
266
|
+
"prepend-icon": "add",
|
|
267
|
+
onClick: q
|
|
268
|
+
}, null, 8, ["disabled", "label"])) : L("", !0)
|
|
269
|
+
]),
|
|
270
|
+
default: p(() => [
|
|
271
|
+
t(y).status === "error" ? (i(), C("p", Je, S(t(I)(t(y).error.message)), 1)) : t(y).status === "unavailable" ? (i(), C("p", We, S(t(I)(t(y).reason)), 1)) : t(y).status === "loading" ? (i(), f(m, { key: 2 })) : c.value && c.value.rows.length === 0 && !W.value ? (i(), f(t(Ae), {
|
|
272
|
+
key: 3,
|
|
273
|
+
action: { text: t(a)("menu.variant.add"), callback: q },
|
|
274
|
+
title: t(a)("menu.variant.empty.title"),
|
|
275
|
+
subtitle: t(a)("menu.variant.empty.subtitle")
|
|
276
|
+
}, null, 8, ["action", "title", "subtitle"])) : c.value ? (i(), C(ce, { key: 4 }, [
|
|
277
|
+
d("div", Xe, [
|
|
278
|
+
d("div", {
|
|
279
|
+
class: me(P.value ? "w-[calc(100%-32px)] mx-16 mt-8" : "w-[320px]")
|
|
280
|
+
}, [
|
|
281
|
+
r(F, {
|
|
282
|
+
autofocus: "",
|
|
283
|
+
class: me(P.value ? "mb-0" : "mb-8"),
|
|
284
|
+
"model-value": W.value,
|
|
285
|
+
placeholder: t(a)("menu.common.labels.search_variants"),
|
|
286
|
+
"onUpdate:modelValue": g.sdk.variant.search
|
|
287
|
+
}, null, 8, ["class", "model-value", "placeholder", "onUpdate:modelValue"])
|
|
288
|
+
], 2)
|
|
289
|
+
]),
|
|
290
|
+
P.value ? (i(), f(M, {
|
|
291
|
+
key: 0,
|
|
292
|
+
class: "mt-8 pb-64"
|
|
293
|
+
}, {
|
|
294
|
+
default: p(() => [
|
|
295
|
+
(i(!0), C(ce, null, Ve(c.value.rows, (s) => (i(), f(z, {
|
|
296
|
+
key: s.id,
|
|
297
|
+
class: "border-b border-fm-color-neutral-gray-100 !p-0",
|
|
298
|
+
onClick: (_) => ae(s)
|
|
299
|
+
}, {
|
|
300
|
+
default: p(() => [
|
|
301
|
+
d("div", Ye, [
|
|
302
|
+
d("div", Ze, [
|
|
303
|
+
d("p", ea, S(s.name), 1),
|
|
304
|
+
d("div", null, [
|
|
305
|
+
d("p", aa, S(t(a)("menu.common.labels.items_linked", {
|
|
306
|
+
count: s.linkedProductCount
|
|
307
|
+
})), 1),
|
|
308
|
+
d("p", ta, S(t(a)("menu.variant.mobile.value", {
|
|
309
|
+
values: s.options.map((_) => _.name).join(", ")
|
|
310
|
+
})), 1)
|
|
311
|
+
])
|
|
312
|
+
]),
|
|
313
|
+
r(o, {
|
|
314
|
+
class: "shrink-0",
|
|
315
|
+
disabled: s.remove.state !== "allowed",
|
|
316
|
+
"aria-label": t(a)("menu.variant.actions.remove", { name: s.name }),
|
|
317
|
+
"prepend-icon": "delete",
|
|
318
|
+
"text-color": "neutral-gray-400",
|
|
319
|
+
variant: "tertiary",
|
|
320
|
+
onClick: ue((_) => oe(s), ["stop"])
|
|
321
|
+
}, null, 8, ["disabled", "aria-label", "onClick"])
|
|
322
|
+
])
|
|
323
|
+
]),
|
|
324
|
+
_: 2
|
|
325
|
+
}, 1032, ["onClick"]))), 128))
|
|
326
|
+
]),
|
|
327
|
+
_: 1
|
|
328
|
+
})) : (i(), C("div", na, [
|
|
329
|
+
r(k, {
|
|
330
|
+
"column-defs": Le.value,
|
|
331
|
+
"hide-footer": "",
|
|
332
|
+
"page-size": c.value.rows.length,
|
|
333
|
+
"pin-header-row": "",
|
|
334
|
+
"row-data": [...c.value.rows],
|
|
335
|
+
"shrink-at": !1,
|
|
336
|
+
onRowClick: n[0] || (n[0] = (s) => ae(s.original))
|
|
337
|
+
}, null, 8, ["column-defs", "page-size", "row-data"])
|
|
338
|
+
])),
|
|
339
|
+
c.value.totalCount > 0 && P.value ? (i(), C("div", oa, [
|
|
340
|
+
r(o, {
|
|
341
|
+
class: "w-full",
|
|
342
|
+
disabled: c.value.create.state !== "allowed",
|
|
343
|
+
label: t(a)("menu.variant.add"),
|
|
344
|
+
"prepend-icon": "add",
|
|
345
|
+
variant: "fab",
|
|
346
|
+
onClick: q
|
|
347
|
+
}, null, 8, ["disabled", "label"])
|
|
348
|
+
])) : L("", !0)
|
|
349
|
+
], 64)) : L("", !0),
|
|
350
|
+
r(Ie, {
|
|
351
|
+
"model-value": T.value,
|
|
352
|
+
"is-container": t(pe).FmForm,
|
|
353
|
+
"is-container-props": { onValidationSuccess: Se },
|
|
354
|
+
"max-width": 560,
|
|
355
|
+
"onOn:clickedAway": te,
|
|
356
|
+
"onUpdate:modelValue": ye
|
|
357
|
+
}, {
|
|
358
|
+
"side-sheet-header": p(() => {
|
|
359
|
+
var s;
|
|
360
|
+
return [
|
|
361
|
+
d("p", la, S(((s = l.value) == null ? void 0 : s.mode) === "update" ? t(a)("menu.variant.form.title.edit") : t(a)("menu.variant.form.title.add")), 1)
|
|
362
|
+
];
|
|
363
|
+
}),
|
|
364
|
+
"side-sheet-footer": p(() => {
|
|
365
|
+
var s, _;
|
|
366
|
+
return [
|
|
367
|
+
d("div", ma, [
|
|
368
|
+
r(o, {
|
|
369
|
+
disabled: ((s = l.value) == null ? void 0 : s.submit.state) !== "allowed",
|
|
370
|
+
label: ((_ = l.value) == null ? void 0 : _.mode) === "update" ? t(a)("menu.common.actions.update") : t(a)("menu.common.actions.add"),
|
|
371
|
+
size: "lg",
|
|
372
|
+
type: "submit",
|
|
373
|
+
variant: "primary"
|
|
374
|
+
}, null, 8, ["disabled", "label"]),
|
|
375
|
+
r(o, {
|
|
376
|
+
label: t(a)("menu.common.actions.cancel"),
|
|
377
|
+
size: "lg",
|
|
378
|
+
variant: "tertiary",
|
|
379
|
+
onClick: E
|
|
380
|
+
}, null, 8, ["label"])
|
|
381
|
+
])
|
|
382
|
+
];
|
|
383
|
+
}),
|
|
384
|
+
default: p(() => {
|
|
385
|
+
var s;
|
|
386
|
+
return [
|
|
387
|
+
d("div", sa, [
|
|
388
|
+
r(Oe, {
|
|
389
|
+
title: t(a)("menu.variant.form.detail")
|
|
390
|
+
}, {
|
|
391
|
+
default: p(() => {
|
|
392
|
+
var _;
|
|
393
|
+
return [
|
|
394
|
+
r(le, de({
|
|
395
|
+
"error-messages": X.value ? [t(I)(X.value)] : [],
|
|
396
|
+
"helper-text": t(a)("menu.variant.form.name.helper"),
|
|
397
|
+
label: t(a)("menu.variant.form.name.label"),
|
|
398
|
+
"model-value": ((_ = l.value) == null ? void 0 : _.name) ?? "",
|
|
399
|
+
placeholder: t(a)("menu.variant.form.name.placeholder")
|
|
400
|
+
}, t($).field("name", u.value.setName)), {
|
|
401
|
+
append: p(() => [
|
|
402
|
+
r(R, {
|
|
403
|
+
placement: "top",
|
|
404
|
+
variant: "plain",
|
|
405
|
+
"z-index": 999
|
|
406
|
+
}, {
|
|
407
|
+
default: p(() => [
|
|
408
|
+
r(o, {
|
|
409
|
+
"aria-label": t(a)("menu.variant.form.translation.button"),
|
|
410
|
+
class: "!p-0",
|
|
411
|
+
icon: "g_translate",
|
|
412
|
+
variant: "tertiary",
|
|
413
|
+
onClick: n[1] || (n[1] = (Q) => ne("variant"))
|
|
414
|
+
}, null, 8, ["aria-label"])
|
|
415
|
+
]),
|
|
416
|
+
_: 1
|
|
417
|
+
})
|
|
418
|
+
]),
|
|
419
|
+
_: 1
|
|
420
|
+
}, 16, ["error-messages", "helper-text", "label", "model-value", "placeholder"]),
|
|
421
|
+
r(qe, {
|
|
422
|
+
label: t(a)("menu.variant.form.options.title")
|
|
423
|
+
}, {
|
|
424
|
+
default: p(() => {
|
|
425
|
+
var Q;
|
|
426
|
+
return [
|
|
427
|
+
r(t(ze), {
|
|
428
|
+
"model-value": [...((Q = l.value) == null ? void 0 : Q.options) ?? []],
|
|
429
|
+
move: we,
|
|
430
|
+
class: "space-y-16",
|
|
431
|
+
"data-testid": "variant-options",
|
|
432
|
+
group: "variants",
|
|
433
|
+
handle: ".handle",
|
|
434
|
+
"item-key": "id",
|
|
435
|
+
"onUpdate:modelValue": he
|
|
436
|
+
}, {
|
|
437
|
+
item: p(({ element: j, index: v }) => {
|
|
438
|
+
var se, ie, re;
|
|
439
|
+
return [
|
|
440
|
+
d("div", {
|
|
441
|
+
class: "flex items-center gap-8",
|
|
442
|
+
"data-not-allow-sort": v === (((se = l.value) == null ? void 0 : se.options.length) ?? 0) - 1
|
|
443
|
+
}, [
|
|
444
|
+
v !== (((ie = l.value) == null ? void 0 : ie.options.length) ?? 0) - 1 ? (i(), f(o, {
|
|
445
|
+
key: 0,
|
|
446
|
+
"aria-label": t(a)("menu.variant.form.options.move", {
|
|
447
|
+
number: v + 1
|
|
448
|
+
}),
|
|
449
|
+
class: "handle cursor-move !p-0",
|
|
450
|
+
icon: "drag_handle",
|
|
451
|
+
variant: "tertiary"
|
|
452
|
+
}, null, 8, ["aria-label"])) : v > 0 ? (i(), C("div", ra)) : L("", !0),
|
|
453
|
+
d("div", ua, [
|
|
454
|
+
r(le, de({
|
|
455
|
+
ref: (G) => Ce(v, G),
|
|
456
|
+
class: "flex-1",
|
|
457
|
+
"error-messages": D(v, j) ? [xe(v, j)] : [],
|
|
458
|
+
"model-value": j.name,
|
|
459
|
+
placeholder: t(a)("menu.variant.form.options.placeholder")
|
|
460
|
+
}, be(v)), $e({ _: 2 }, [
|
|
461
|
+
v !== (((re = l.value) == null ? void 0 : re.options.length) ?? 0) - 1 ? {
|
|
462
|
+
name: "append",
|
|
463
|
+
fn: p(() => [
|
|
464
|
+
d("div", ca, [
|
|
465
|
+
r(o, {
|
|
466
|
+
"aria-label": t(a)("menu.variant.form.options.translation", {
|
|
467
|
+
number: v + 1
|
|
468
|
+
}),
|
|
469
|
+
class: "!p-0",
|
|
470
|
+
icon: "g_translate",
|
|
471
|
+
variant: "tertiary",
|
|
472
|
+
onClick: n[2] || (n[2] = (G) => ne("options"))
|
|
473
|
+
}, null, 8, ["aria-label"]),
|
|
474
|
+
r(o, {
|
|
475
|
+
"aria-label": t(a)("menu.variant.form.options.remove", {
|
|
476
|
+
number: j.name
|
|
477
|
+
}),
|
|
478
|
+
class: "!p-0",
|
|
479
|
+
icon: "close",
|
|
480
|
+
variant: "tertiary",
|
|
481
|
+
onClick: (G) => u.value.removeOption(v)
|
|
482
|
+
}, null, 8, ["aria-label", "onClick"])
|
|
483
|
+
])
|
|
484
|
+
]),
|
|
485
|
+
key: "0"
|
|
486
|
+
} : void 0
|
|
487
|
+
]), 1040, ["error-messages", "model-value", "placeholder"])
|
|
488
|
+
])
|
|
489
|
+
], 8, ia)
|
|
490
|
+
];
|
|
491
|
+
}),
|
|
492
|
+
_: 1
|
|
493
|
+
}, 8, ["model-value"])
|
|
494
|
+
];
|
|
495
|
+
}),
|
|
496
|
+
_: 1
|
|
497
|
+
}, 8, ["label"])
|
|
498
|
+
];
|
|
499
|
+
}),
|
|
500
|
+
_: 1
|
|
501
|
+
}, 8, ["title"]),
|
|
502
|
+
((s = l.value) == null ? void 0 : s.mode) === "update" && l.value.linkedProductCount > 0 ? (i(), f(Ue, {
|
|
503
|
+
key: 0,
|
|
504
|
+
"applied-count": l.value.linkedProductCount,
|
|
505
|
+
groups: ge.value,
|
|
506
|
+
query: l.value.linkedProductQuery,
|
|
507
|
+
"show-count": !1,
|
|
508
|
+
title: t(a)("menu.variant.form.applied_product"),
|
|
509
|
+
"read-only": "",
|
|
510
|
+
"onUpdate:query": u.value.setLinkedProductQuery
|
|
511
|
+
}, null, 8, ["applied-count", "groups", "query", "title", "onUpdate:query"])) : L("", !0)
|
|
512
|
+
])
|
|
513
|
+
];
|
|
514
|
+
}),
|
|
515
|
+
_: 1
|
|
516
|
+
}, 8, ["model-value", "is-container", "is-container-props"]),
|
|
517
|
+
w.value ? (i(), f(Ne, {
|
|
518
|
+
key: 5,
|
|
519
|
+
"expanded-section": Z.value,
|
|
520
|
+
session: w.value,
|
|
521
|
+
onClose: O,
|
|
522
|
+
onSave: ke
|
|
523
|
+
}, null, 8, ["expanded-section", "session"])) : L("", !0)
|
|
524
|
+
]),
|
|
525
|
+
_: 1
|
|
526
|
+
}, 8, ["heading"]);
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
}), Sa = /* @__PURE__ */ fe({
|
|
530
|
+
__name: "Variant",
|
|
531
|
+
setup(K) {
|
|
532
|
+
const g = Ke();
|
|
533
|
+
return (a, I) => (i(), f(da, { sdk: t(g) }, null, 8, ["sdk"]));
|
|
534
|
+
}
|
|
535
|
+
});
|
|
536
|
+
export {
|
|
537
|
+
Sa as default
|
|
538
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as i, watch as l, onUnmounted as m, openBlock as d, createBlock as p, unref as f } from "vue";
|
|
2
|
+
import { useRoute as _, useRouter as g, RouterView as k } from "vue-router";
|
|
3
|
+
import { a as R, u as w } from "./provide-Tmjfji09.js";
|
|
4
|
+
import { u as h } from "./useActionFeedback-DoFeBFpl.js";
|
|
5
|
+
import { R as y } from "./app-Bd7W2PYm.js";
|
|
6
|
+
const M = /* @__PURE__ */ i({
|
|
7
|
+
__name: "[id]",
|
|
8
|
+
setup(x) {
|
|
9
|
+
const e = R(), s = _(), r = g(), { run: n } = h(), u = w(e.catalog.list);
|
|
10
|
+
let o = !1;
|
|
11
|
+
return l(
|
|
12
|
+
[() => s.params.id, () => u.value.status],
|
|
13
|
+
async ([t, a]) => {
|
|
14
|
+
if (a !== "ready" || typeof t != "string") return;
|
|
15
|
+
const c = await n(async () => e.catalog.open(t), {
|
|
16
|
+
showLoading: !1
|
|
17
|
+
});
|
|
18
|
+
!o && c.kind === "rejected" && await r.replace({ name: y.CATALOG });
|
|
19
|
+
},
|
|
20
|
+
{ immediate: !0 }
|
|
21
|
+
), m(() => {
|
|
22
|
+
o = !0, e.context.select({ catalogId: null, schedulerId: null });
|
|
23
|
+
}), (t, a) => (d(), p(f(k)));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
M as default
|
|
28
|
+
};
|