@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,698 @@
|
|
|
1
|
+
import { defineComponent as K, resolveComponent as b, openBlock as c, createElementBlock as y, createElementVNode as d, toDisplayString as k, unref as n, createVNode as i, withCtx as u, Fragment as A, renderList as ee, createBlock as C, createCommentVNode as V, computed as g, ref as z, shallowRef as Y, h as v, withModifiers as N, onUnmounted as we } from "vue";
|
|
2
|
+
import { useI18n as ae } from "@feedmepos/mf-common";
|
|
3
|
+
import { useDialog as Pe, components as S, FmButtonColorThemeVariant as T } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as Ce } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
5
|
+
import { _ as xe } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-C9OSr8ft.js";
|
|
6
|
+
import { _ as Fe } from "./OrderPacingFields.vue_vue_type_script_setup_true_lang-C2mixGUk.js";
|
|
7
|
+
import { _ as Se } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-D9jK-Fhn.js";
|
|
8
|
+
import { _ as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
|
|
9
|
+
import { _ as Le } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
10
|
+
import { _ as $e } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-B0j2PNih.js";
|
|
11
|
+
import { u as De } from "./useActionFeedback-DoFeBFpl.js";
|
|
12
|
+
import { u as Ue } from "./useEditorValidation-Ctef5Bxt.js";
|
|
13
|
+
import { b as ze, u as Z, a as Ie } from "./provide-Tmjfji09.js";
|
|
14
|
+
const Ne = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "mt-4"
|
|
17
|
+
}, Te = { class: "text-fm-color-typo-secondary mb-2" }, Ee = { class: "fm-typo-en-body-md-400 leading-5 text-fm-color-typo-secondary" }, Be = /* @__PURE__ */ K({
|
|
18
|
+
__name: "DeleteOrderPacingConfirmation",
|
|
19
|
+
props: {
|
|
20
|
+
name: {},
|
|
21
|
+
linkedProductNames: {}
|
|
22
|
+
},
|
|
23
|
+
setup(E) {
|
|
24
|
+
const { t: m } = ae();
|
|
25
|
+
return (a, B) => {
|
|
26
|
+
const O = b("FmIcon"), I = b("FmListItem"), w = b("FmList");
|
|
27
|
+
return c(), y("div", null, [
|
|
28
|
+
d("p", null, k(n(m)("menu.order_pacing.dialogs.delete.message", { name: a.name })), 1),
|
|
29
|
+
a.linkedProductNames.length > 0 ? (c(), y("div", Ne, [
|
|
30
|
+
d("p", Te, k(n(m)("menu.order_pacing.dialogs.delete.unlink_warning", {
|
|
31
|
+
count: a.linkedProductNames.length
|
|
32
|
+
})), 1),
|
|
33
|
+
i(w, { class: "mt-8" }, {
|
|
34
|
+
default: u(() => [
|
|
35
|
+
(c(!0), y(A, null, ee(a.linkedProductNames, (_) => (c(), C(I, {
|
|
36
|
+
key: _,
|
|
37
|
+
class: "!p-0 !gap-4",
|
|
38
|
+
clickable: !1
|
|
39
|
+
}, {
|
|
40
|
+
prepend: u(() => [
|
|
41
|
+
i(O, {
|
|
42
|
+
color: "typo-secondary",
|
|
43
|
+
name: "fiber_manual_record",
|
|
44
|
+
size: "sm"
|
|
45
|
+
})
|
|
46
|
+
]),
|
|
47
|
+
default: u(() => [
|
|
48
|
+
d("span", Ee, k(_), 1)
|
|
49
|
+
]),
|
|
50
|
+
_: 2
|
|
51
|
+
}, 1024))), 128))
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
})
|
|
55
|
+
])) : V("", !0)
|
|
56
|
+
]);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}), Oe = {
|
|
60
|
+
key: 0,
|
|
61
|
+
class: "flex-1 flex justify-between gap-8 pl-8"
|
|
62
|
+
}, Me = { class: "flex items-center" }, je = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Re = { class: "fm-typo-en-body-md-600 font-semibold" }, Ae = {
|
|
63
|
+
key: 0,
|
|
64
|
+
class: "flex flex-col items-start gap-8"
|
|
65
|
+
}, Ke = {
|
|
66
|
+
role: "alert",
|
|
67
|
+
class: "text-fm-color-typo-secondary"
|
|
68
|
+
}, qe = { class: "flex justify-end items-center" }, Qe = { class: "w-[320px]" }, Ge = { class: "fm-typo-en-title-md-600" }, He = { class: "flex flex-col gap-32 h-full min-h-0 py-16" }, Je = { class: "py-12 px-16 space-y-4" }, We = { key: 0 }, Xe = { class: "flex-shrink-0" }, Ye = { class: "flex gap-8 items-center justify-start" }, Ze = { class: "fm-typo-en-title-md-600" }, ea = { class: "flex-shrink-0" }, aa = { class: "flex gap-8 items-center justify-start" }, ta = /* @__PURE__ */ K({
|
|
69
|
+
__name: "OrderPacingList",
|
|
70
|
+
props: {
|
|
71
|
+
sdk: {}
|
|
72
|
+
},
|
|
73
|
+
setup(E) {
|
|
74
|
+
const m = E, { t: a, n: B } = ae(), O = ze(), I = Pe(), { run: w } = De(), _ = Z(m.sdk.orderPacing.list), p = g(
|
|
75
|
+
() => _.value.status === "ready" ? _.value.value : null
|
|
76
|
+
), q = g(() => {
|
|
77
|
+
var e;
|
|
78
|
+
return ((e = p.value) == null ? void 0 : e.query) ?? "";
|
|
79
|
+
}), te = g(() => {
|
|
80
|
+
var e;
|
|
81
|
+
return [...((e = p.value) == null ? void 0 : e.rows) ?? []];
|
|
82
|
+
}), x = z(!1), L = z(!1), F = z(!1), M = z(!1);
|
|
83
|
+
async function ne() {
|
|
84
|
+
M.value = !0;
|
|
85
|
+
try {
|
|
86
|
+
await w(() => m.sdk.orderPacing.retryRead(), {
|
|
87
|
+
showLoading: !1
|
|
88
|
+
});
|
|
89
|
+
} finally {
|
|
90
|
+
M.value = !1;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
const Q = Z(
|
|
94
|
+
m.sdk.linkProduct.catalogue
|
|
95
|
+
), oe = g(
|
|
96
|
+
() => Q.value.status === "ready" ? Q.value.value : null
|
|
97
|
+
), r = Y(
|
|
98
|
+
m.sdk.orderPacing.editor()
|
|
99
|
+
), $ = Y(
|
|
100
|
+
r.value.get()
|
|
101
|
+
);
|
|
102
|
+
let j = r.value.subscribe((e) => {
|
|
103
|
+
$.value = e;
|
|
104
|
+
});
|
|
105
|
+
const l = g(
|
|
106
|
+
() => $.value.status === "ready" ? $.value.value : null
|
|
107
|
+
), G = Ue(() => r.value), le = g(() => {
|
|
108
|
+
var e;
|
|
109
|
+
return [
|
|
110
|
+
...((e = l.value) == null ? void 0 : e.linkedProducts) ?? []
|
|
111
|
+
];
|
|
112
|
+
}), re = g(
|
|
113
|
+
() => {
|
|
114
|
+
var e;
|
|
115
|
+
return ((e = l.value) == null ? void 0 : e.linkedProductIds) ?? [];
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
function se(e) {
|
|
119
|
+
var t, s;
|
|
120
|
+
return ((s = (t = l.value) == null ? void 0 : t.supportedLocales.find(
|
|
121
|
+
(h) => h.code === e
|
|
122
|
+
)) == null ? void 0 : s.name) ?? e;
|
|
123
|
+
}
|
|
124
|
+
function ie() {
|
|
125
|
+
var e;
|
|
126
|
+
((e = l.value) == null ? void 0 : e.translation.state) === "allowed" && (r.value.beginTranslationEdit(), F.value = !0);
|
|
127
|
+
}
|
|
128
|
+
function de() {
|
|
129
|
+
r.value.saveTranslationEdit(), F.value = !1;
|
|
130
|
+
}
|
|
131
|
+
function H() {
|
|
132
|
+
r.value.discardTranslationEdit(), F.value = !1;
|
|
133
|
+
}
|
|
134
|
+
function R(e) {
|
|
135
|
+
j(), r.value.dispose(), r.value = m.sdk.orderPacing.editor(e), $.value = r.value.get(), j = r.value.subscribe((t) => {
|
|
136
|
+
$.value = t;
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
function J() {
|
|
140
|
+
var e;
|
|
141
|
+
((e = p.value) == null ? void 0 : e.create.state) === "allowed" && (R(), F.value = !1, x.value = !0);
|
|
142
|
+
}
|
|
143
|
+
function ue(e) {
|
|
144
|
+
R(e.id), F.value = !1, x.value = !0;
|
|
145
|
+
}
|
|
146
|
+
async function ce() {
|
|
147
|
+
var s;
|
|
148
|
+
const e = ((s = l.value) == null ? void 0 : s.name.trim()) ?? "";
|
|
149
|
+
(await w(
|
|
150
|
+
() => G.submit(() => r.value.submit()),
|
|
151
|
+
{
|
|
152
|
+
// The inline field rules are decided in the SDK with no round trip, and
|
|
153
|
+
// the frozen `create/validation-name` frame shows the sheet with no
|
|
154
|
+
// loading indicator — so a rejected submit must not flash one.
|
|
155
|
+
showLoading: () => {
|
|
156
|
+
var h;
|
|
157
|
+
return ((h = l.value) == null ? void 0 : h.status) === "submitting";
|
|
158
|
+
},
|
|
159
|
+
successMessage: a("menu.order_pacing.form.saved", {
|
|
160
|
+
name: e || a("menu.order_pacing.title")
|
|
161
|
+
})
|
|
162
|
+
}
|
|
163
|
+
)).kind === "success" && (x.value = !1);
|
|
164
|
+
}
|
|
165
|
+
function me(e) {
|
|
166
|
+
if (e.remove.state !== "allowed") return;
|
|
167
|
+
const t = m.sdk.orderPacing.describeDelete(e.id);
|
|
168
|
+
t && I.open({
|
|
169
|
+
title: a("menu.order_pacing.dialogs.delete.title"),
|
|
170
|
+
// Both sentences come from the SDK's view model: the names of the
|
|
171
|
+
// products that will be unlinked are a join over the aggregate, and
|
|
172
|
+
// resolving them here would be the per-feature derivation ADR-0002 §3
|
|
173
|
+
// forbids. The warning is a warning only — the delete always commits
|
|
174
|
+
// and cascades, and there is no referenced-delete guard to migrate.
|
|
175
|
+
// A COMPONENT, not a `message` string. The body is three blocks — the
|
|
176
|
+
// question, a secondary warning line and a bulleted list of the
|
|
177
|
+
// products about to be unlinked — and joining them with '\n' renders
|
|
178
|
+
// one collapsed paragraph, because the dialog puts the string into HTML
|
|
179
|
+
// where a newline is whitespace. The frozen golden
|
|
180
|
+
// `serveDelay/delete/confirm-linked` is 560x244; the collapsed string
|
|
181
|
+
// measured 560x200, which is how the visual gate caught it on
|
|
182
|
+
// 2026-09-07. Legacy passes a `contentComponent` here too
|
|
183
|
+
// (`portal .../manager/menu/order_pacing.ts:111-114`).
|
|
184
|
+
contentComponent: v(Be, {
|
|
185
|
+
name: e.name,
|
|
186
|
+
linkedProductNames: t.linkedProductNames
|
|
187
|
+
}),
|
|
188
|
+
// `close: false` on purpose: two frozen pending states name `.fm-dialog`
|
|
189
|
+
// as this module's delete pending surface, because legacy's manager
|
|
190
|
+
// declares the same and calls `dialog.close()` only after the write
|
|
191
|
+
// resolves (`portal .../manager/menu/order_pacing.ts:115-118,134`).
|
|
192
|
+
// Dismissing on the click would leave the shared loading snackbar as the
|
|
193
|
+
// only pending surface — a behaviour difference from the baseline that
|
|
194
|
+
// nobody approved.
|
|
195
|
+
primaryActions: {
|
|
196
|
+
text: a("menu.common.actions.remove"),
|
|
197
|
+
close: !1
|
|
198
|
+
// NO `variant`, so the library's default Primary applies. Legacy's
|
|
199
|
+
// `primaryActions` declares none either
|
|
200
|
+
// (`portal .../manager/menu/order_pacing.ts:115-118`), and the frozen
|
|
201
|
+
// goldens `serveDelay/delete/confirm` and `.../confirm-linked` show an
|
|
202
|
+
// ORANGE Remove. `FmButtonVariant.Destructive` rendered it red — a
|
|
203
|
+
// difference nobody approved, caught by the visual gate 2026-09-07.
|
|
204
|
+
},
|
|
205
|
+
secondaryActions: {
|
|
206
|
+
text: a("menu.common.actions.cancel"),
|
|
207
|
+
close: !0
|
|
208
|
+
}
|
|
209
|
+
}).onPrimary(async () => {
|
|
210
|
+
await w(() => m.sdk.orderPacing.remove(e.id), {
|
|
211
|
+
// 'removed', not 'saved': legacy's manager passes `isDelete` true and
|
|
212
|
+
// the shared loader picks the other sentence.
|
|
213
|
+
successMessage: a("menu.order_pacing.delete.success", {
|
|
214
|
+
name: e.name
|
|
215
|
+
})
|
|
216
|
+
}), I.close();
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
const pe = g(() => {
|
|
220
|
+
var e;
|
|
221
|
+
return ((e = p.value) == null ? void 0 : e.reorder.state) === "allowed";
|
|
222
|
+
});
|
|
223
|
+
function ve(e) {
|
|
224
|
+
var s;
|
|
225
|
+
if (((s = p.value) == null ? void 0 : s.reorder.state) !== "allowed") return;
|
|
226
|
+
const t = e.map((h) => h.id);
|
|
227
|
+
t.length && w(() => m.sdk.orderPacing.reorder(t), {
|
|
228
|
+
// A rearrange carries no single entity, so legacy fed the shared
|
|
229
|
+
// `{name} saved` template the MODULE's own title and the toast reads
|
|
230
|
+
// "Order pacing saved". Each locale carries the whole sentence rather
|
|
231
|
+
// than interpolating a title, because the word order of "{name} saved"
|
|
232
|
+
// does not survive translation.
|
|
233
|
+
successMessage: a("menu.order_pacing.reorder.success")
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
const ge = g(() => [
|
|
237
|
+
{
|
|
238
|
+
accessorKey: "name",
|
|
239
|
+
header: () => a("menu.order_pacing.columns.timing_label"),
|
|
240
|
+
enableSorting: !1
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
accessorKey: "delay",
|
|
244
|
+
header: () => a("menu.order_pacing.columns.delay"),
|
|
245
|
+
enableSorting: !1
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
accessorKey: "linkedProductCount",
|
|
249
|
+
header: () => a("menu.order_pacing.columns.items"),
|
|
250
|
+
enableSorting: !1,
|
|
251
|
+
// Legacy renders this cell as a dashed-underline affordance that opens the
|
|
252
|
+
// apply-product sheet on click, stopping propagation so the row's own
|
|
253
|
+
// click does not open the editor (`OrderPacingTable.vue:60-84`).
|
|
254
|
+
cell: (e) => v(S.FmButton, {
|
|
255
|
+
label: a("menu.common.labels.items_linked", {
|
|
256
|
+
count: e.row.original.linkedProductCount
|
|
257
|
+
}),
|
|
258
|
+
variant: "tertiary",
|
|
259
|
+
onClick: N(
|
|
260
|
+
() => _e(e.row.original),
|
|
261
|
+
["stop", "prevent"]
|
|
262
|
+
)
|
|
263
|
+
})
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
id: "actions",
|
|
267
|
+
size: 52,
|
|
268
|
+
meta: { cellClass: "pl-16", headerContentClass: "-mx-16" },
|
|
269
|
+
header: "",
|
|
270
|
+
cell: (e) => v("div", { class: "w-full flex justify-end items-center" }, [
|
|
271
|
+
v(S.FmButton, {
|
|
272
|
+
prependIcon: "delete",
|
|
273
|
+
variant: "tertiary",
|
|
274
|
+
textColor: "neutral-gray-400",
|
|
275
|
+
disabled: e.row.original.remove.state !== "allowed",
|
|
276
|
+
// The one deliberate addition to legacy's DOM, owned by the new
|
|
277
|
+
// app: legacy's control is icon-only and unnamed, so no semantic
|
|
278
|
+
// locator resolves against it.
|
|
279
|
+
"aria-label": a("menu.common.actions.delete"),
|
|
280
|
+
onClick: N(
|
|
281
|
+
() => me(e.row.original),
|
|
282
|
+
["stop", "prevent"]
|
|
283
|
+
)
|
|
284
|
+
})
|
|
285
|
+
])
|
|
286
|
+
}
|
|
287
|
+
]), D = z(!1);
|
|
288
|
+
function _e(e) {
|
|
289
|
+
R(e.id), D.value = !0;
|
|
290
|
+
}
|
|
291
|
+
async function fe() {
|
|
292
|
+
var t;
|
|
293
|
+
(await w(() => r.value.submitLinks(), {
|
|
294
|
+
showLoading: () => {
|
|
295
|
+
var s;
|
|
296
|
+
return ((s = l.value) == null ? void 0 : s.status) === "submitting";
|
|
297
|
+
},
|
|
298
|
+
successMessage: a("menu.order_pacing.form.saved", {
|
|
299
|
+
name: ((t = l.value) == null ? void 0 : t.name) ?? a("menu.order_pacing.title")
|
|
300
|
+
})
|
|
301
|
+
})).kind === "success" && (D.value = !1);
|
|
302
|
+
}
|
|
303
|
+
const be = g(() => [
|
|
304
|
+
{
|
|
305
|
+
id: "default",
|
|
306
|
+
size: 75,
|
|
307
|
+
enableSorting: !1,
|
|
308
|
+
header: () => a("menu.order_pacing.link_product.table.column.default"),
|
|
309
|
+
cell: (e) => v(S.FmCheckbox, {
|
|
310
|
+
modelValue: e.row.original.isDefault,
|
|
311
|
+
value: "",
|
|
312
|
+
"aria-label": a("menu.common.labels.a11y_labelled_name", {
|
|
313
|
+
label: a("menu.order_pacing.link_product.table.column.default"),
|
|
314
|
+
name: e.row.original.name
|
|
315
|
+
}),
|
|
316
|
+
// Bound one-way from the SDK's draft and pushed back through the
|
|
317
|
+
// editor, so the control cannot hold a state the model does not have.
|
|
318
|
+
// Legacy's does exactly that in create mode — it renders ticked while
|
|
319
|
+
// `isDefault: false` goes to the wire — a defect approved for fixing.
|
|
320
|
+
"onUpdate:modelValue": (t) => r.value.setProductDefault(
|
|
321
|
+
e.row.original.productId,
|
|
322
|
+
t
|
|
323
|
+
)
|
|
324
|
+
})
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
accessorKey: "name",
|
|
328
|
+
enableSorting: !1,
|
|
329
|
+
header: () => a("menu.order_pacing.link_product.table.column.product_name"),
|
|
330
|
+
cell: (e) => v("span", { class: "text-wrap" }, e.row.original.name)
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
accessorKey: "productCode",
|
|
334
|
+
enableSorting: !1,
|
|
335
|
+
header: () => a("menu.order_pacing.link_product.table.column.product_code"),
|
|
336
|
+
cell: (e) => v("span", { class: "text-wrap" }, e.row.original.productCode ?? "")
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
id: "currentDefault",
|
|
340
|
+
enableSorting: !1,
|
|
341
|
+
header: () => a("menu.order_pacing.link_product.table.column.current_default"),
|
|
342
|
+
/**
|
|
343
|
+
* RECORDED ADR-0003 §1 GAP: the library has no outlined chip.
|
|
344
|
+
*
|
|
345
|
+
* Legacy renders this as an OUTLINED chip — transparent ground, primary
|
|
346
|
+
* border and primary text for a set default, grey border for "None"
|
|
347
|
+
* (`LinkProductTable.vue:96-115`). Every `FmChip` variant is FILLED and
|
|
348
|
+
* sets its own background plus white or black text
|
|
349
|
+
* (`plain`→`bg-fm-color-neutral-gray-100`, `neutral`→`bg-…-black`,
|
|
350
|
+
* `info`→`bg-…-blueberry`, `success`→mint, `critical`→salmon,
|
|
351
|
+
* `warning`→mustard), and the union carries no primary at all
|
|
352
|
+
* (`FmChipVariant` in the installed d.ts). So no variant can express this
|
|
353
|
+
* control, and substituting a filled one would change the frozen goldens
|
|
354
|
+
* for `serveDelay/update/form` and
|
|
355
|
+
* `serveDelay/create/form-with-linked-products` — a visual difference only
|
|
356
|
+
* a human may approve (ADR-0003 §5).
|
|
357
|
+
*
|
|
358
|
+
* Colours are `fm-*` tokens, not literals, so §2 holds. Replace this
|
|
359
|
+
* with `FmChip` if the library ever ships an outlined variant.
|
|
360
|
+
*/
|
|
361
|
+
cell: (e) => {
|
|
362
|
+
const t = e.row.original.currentDefault;
|
|
363
|
+
return v("div", { class: "pt-1" }, [
|
|
364
|
+
t ? v(
|
|
365
|
+
"span",
|
|
366
|
+
{
|
|
367
|
+
class: "text-fm-color-primary border border-fm-color-primary rounded-md px-8"
|
|
368
|
+
},
|
|
369
|
+
a("menu.order_pacing.columns.mins", { count: t.delay })
|
|
370
|
+
) : v(
|
|
371
|
+
"span",
|
|
372
|
+
{
|
|
373
|
+
class: "text-fm-color-typo-secondary border rounded-md px-8"
|
|
374
|
+
},
|
|
375
|
+
a("menu.order_pacing.columns.none")
|
|
376
|
+
)
|
|
377
|
+
]);
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
id: "actions",
|
|
382
|
+
size: 40,
|
|
383
|
+
enableSorting: !1,
|
|
384
|
+
header: "",
|
|
385
|
+
/**
|
|
386
|
+
* `cellClass: ''` is load-bearing, not styling taste.
|
|
387
|
+
*
|
|
388
|
+
* `FmTable` falls back to `px-16` for every cell (`cellClass ?? "px-16"`
|
|
389
|
+
* in the installed build), and this table is `table-layout: auto`, so
|
|
390
|
+
* that 32px of padding on a 40px-wide column does not shrink the column —
|
|
391
|
+
* it takes 27px away from the three auto-width columns beside it. Legacy
|
|
392
|
+
* declares `meta: { cellClass: "" }` on exactly this column
|
|
393
|
+
* (`portal .../OrderPacingManager/LinkProductTable.vue`), which is why
|
|
394
|
+
* its columns measure 82/144/143/142/41 where ours measured
|
|
395
|
+
* 82/134/134/134/68 — and why "Current Default" wrapped onto a second
|
|
396
|
+
* line here and onto none in the frozen goldens. The wrap then moved
|
|
397
|
+
* every row below it, which is the whole diff on
|
|
398
|
+
* `serveDelay/create/link-product-picker`,
|
|
399
|
+
* `serveDelay/create/form-with-linked-products` and
|
|
400
|
+
* `serveDelay/update/form`.
|
|
401
|
+
*
|
|
402
|
+
* The button is rendered straight into the cell, as legacy renders it: a
|
|
403
|
+
* `flex justify-end` wrapper inside an unpadded 41px column would push
|
|
404
|
+
* the icon a pixel off the golden for no gain.
|
|
405
|
+
*/
|
|
406
|
+
meta: { cellClass: "" },
|
|
407
|
+
cell: (e) => v("div", {}, [
|
|
408
|
+
v(S.FmButton, {
|
|
409
|
+
prependIcon: "delete",
|
|
410
|
+
variant: "tertiary",
|
|
411
|
+
// No `textColor`, unlike the LIST table's own delete at :305.
|
|
412
|
+
// Legacy sets none here either, so the icon takes the tertiary
|
|
413
|
+
// default; forcing `neutral-gray-400` measured 107 against the
|
|
414
|
+
// golden's 29 on the darkest pixel of a 17x18 glyph, and that
|
|
415
|
+
// 200-pixel patch is over a third of what
|
|
416
|
+
// `serveDelay/create/form-with-linked-products` still had to close.
|
|
417
|
+
"aria-label": a("menu.common.actions.delete"),
|
|
418
|
+
onClick: N(
|
|
419
|
+
() => r.value.unlinkProduct(e.row.original.productId),
|
|
420
|
+
["stop", "prevent"]
|
|
421
|
+
)
|
|
422
|
+
})
|
|
423
|
+
])
|
|
424
|
+
}
|
|
425
|
+
]);
|
|
426
|
+
we(() => {
|
|
427
|
+
j(), r.value.dispose(), m.sdk.orderPacing.search("");
|
|
428
|
+
});
|
|
429
|
+
function ye(e) {
|
|
430
|
+
r.value.setLinkedProducts(e), L.value = !1;
|
|
431
|
+
}
|
|
432
|
+
return (e, t) => {
|
|
433
|
+
const s = b("FmButton"), h = b("FmCircularProgress"), ke = b("FmSearch"), W = b("FmTable"), he = b("FmTooltip"), X = b("FmSideSheet");
|
|
434
|
+
return c(), C(Le, {
|
|
435
|
+
"data-visual-root": "serveDelay",
|
|
436
|
+
heading: n(a)("menu.order_pacing.title")
|
|
437
|
+
}, {
|
|
438
|
+
"append-heading": u(() => [
|
|
439
|
+
n(_).status === "ready" && p.value ? (c(), y("div", Oe, [
|
|
440
|
+
d("div", Me, [
|
|
441
|
+
d("div", je, [
|
|
442
|
+
d("p", Re, k(n(B)(p.value.totalCount)), 1)
|
|
443
|
+
])
|
|
444
|
+
]),
|
|
445
|
+
p.value.totalCount > 0 ? (c(), C(s, {
|
|
446
|
+
key: 0,
|
|
447
|
+
disabled: p.value.create.state !== "allowed",
|
|
448
|
+
label: n(a)("menu.order_pacing.add"),
|
|
449
|
+
"prepend-icon": "add",
|
|
450
|
+
onClick: J
|
|
451
|
+
}, null, 8, ["disabled", "label"])) : V("", !0)
|
|
452
|
+
])) : V("", !0)
|
|
453
|
+
]),
|
|
454
|
+
default: u(() => [
|
|
455
|
+
n(_).status === "error" ? (c(), y("div", Ae, [
|
|
456
|
+
d("p", Ke, k(n(O)(n(_).error.message)), 1),
|
|
457
|
+
i(s, {
|
|
458
|
+
label: n(a)("menu.common.actions.retry"),
|
|
459
|
+
loading: M.value,
|
|
460
|
+
variant: "secondary",
|
|
461
|
+
onClick: ne
|
|
462
|
+
}, null, 8, ["label", "loading"])
|
|
463
|
+
])) : n(_).status === "loading" ? (c(), C(h, { key: 1 })) : p.value && p.value.rows.length === 0 && !q.value ? (c(), C(n(Ce), {
|
|
464
|
+
key: 2,
|
|
465
|
+
action: { text: n(a)("menu.order_pacing.add"), callback: J },
|
|
466
|
+
title: n(a)("menu.order_pacing.empty.title"),
|
|
467
|
+
subtitle: n(a)("menu.order_pacing.empty.subtitle")
|
|
468
|
+
}, null, 8, ["action", "title", "subtitle"])) : p.value ? (c(), y(A, { key: 3 }, [
|
|
469
|
+
d("div", qe, [
|
|
470
|
+
d("div", Qe, [
|
|
471
|
+
i(ke, {
|
|
472
|
+
autofocus: "",
|
|
473
|
+
class: "mb-8",
|
|
474
|
+
"model-value": q.value,
|
|
475
|
+
placeholder: n(a)("menu.common.labels.search_placeholder", {
|
|
476
|
+
type: n(a)("menu.order_pacing.title")
|
|
477
|
+
}),
|
|
478
|
+
"onUpdate:modelValue": m.sdk.orderPacing.search
|
|
479
|
+
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])
|
|
480
|
+
])
|
|
481
|
+
]),
|
|
482
|
+
i(W, {
|
|
483
|
+
"column-defs": ge.value,
|
|
484
|
+
"hide-footer": "",
|
|
485
|
+
"page-size": p.value.rows.length,
|
|
486
|
+
"pin-header-row": "",
|
|
487
|
+
"row-data": te.value,
|
|
488
|
+
"shrink-at": !1,
|
|
489
|
+
draggable: pe.value,
|
|
490
|
+
onRowClick: t[0] || (t[0] = (o) => ue(o.original)),
|
|
491
|
+
onDndChanged: ve
|
|
492
|
+
}, null, 8, ["column-defs", "page-size", "row-data", "draggable"])
|
|
493
|
+
], 64)) : V("", !0),
|
|
494
|
+
i(X, {
|
|
495
|
+
modelValue: x.value,
|
|
496
|
+
"onUpdate:modelValue": t[4] || (t[4] = (o) => x.value = o),
|
|
497
|
+
"is-container": n(S).FmForm,
|
|
498
|
+
"is-container-props": {
|
|
499
|
+
onValidationSuccess: ce,
|
|
500
|
+
blameFormChildOnValidationFailed: !0
|
|
501
|
+
},
|
|
502
|
+
"max-width": 600
|
|
503
|
+
}, {
|
|
504
|
+
"side-sheet-header": u(() => {
|
|
505
|
+
var o;
|
|
506
|
+
return [
|
|
507
|
+
d("p", Ge, k(((o = l.value) == null ? void 0 : o.mode) === "update" ? n(a)("menu.order_pacing.manager.dialog.update.title") : n(a)("menu.order_pacing.manager.dialog.add.title")), 1)
|
|
508
|
+
];
|
|
509
|
+
}),
|
|
510
|
+
"side-sheet-footer": u(() => {
|
|
511
|
+
var o, f;
|
|
512
|
+
return [
|
|
513
|
+
d("div", Ye, [
|
|
514
|
+
i(s, {
|
|
515
|
+
disabled: ((o = l.value) == null ? void 0 : o.submit.state) !== "allowed",
|
|
516
|
+
label: ((f = l.value) == null ? void 0 : f.mode) === "update" ? n(a)("menu.common.actions.update") : n(a)("menu.order_pacing.manager.dialog.add.action"),
|
|
517
|
+
size: "lg",
|
|
518
|
+
type: "submit",
|
|
519
|
+
variant: "primary"
|
|
520
|
+
}, null, 8, ["disabled", "label"]),
|
|
521
|
+
i(s, {
|
|
522
|
+
label: n(a)("menu.common.actions.cancel"),
|
|
523
|
+
size: "lg",
|
|
524
|
+
variant: "tertiary",
|
|
525
|
+
onClick: t[3] || (t[3] = (U) => x.value = !1)
|
|
526
|
+
}, null, 8, ["label"])
|
|
527
|
+
])
|
|
528
|
+
];
|
|
529
|
+
}),
|
|
530
|
+
default: u(() => [
|
|
531
|
+
d("div", He, [
|
|
532
|
+
i(Fe, {
|
|
533
|
+
view: l.value,
|
|
534
|
+
session: r.value,
|
|
535
|
+
validation: n(G)
|
|
536
|
+
}, {
|
|
537
|
+
"name-append": u(() => [
|
|
538
|
+
i(he, {
|
|
539
|
+
variant: "plain",
|
|
540
|
+
placement: "top",
|
|
541
|
+
"z-index": 999
|
|
542
|
+
}, {
|
|
543
|
+
content: u(() => {
|
|
544
|
+
var o, f;
|
|
545
|
+
return [
|
|
546
|
+
d("div", Je, [
|
|
547
|
+
Object.keys(((o = l.value) == null ? void 0 : o.nameLocale) ?? {}).length === 0 ? (c(), y("div", We, k(n(a)("menu.common.translation.translation_label")), 1)) : V("", !0),
|
|
548
|
+
(c(!0), y(A, null, ee((f = l.value) == null ? void 0 : f.nameLocale, (U, P) => (c(), y("div", { key: P }, k(n(a)("menu.order_pacing.translation.tooltip_value", {
|
|
549
|
+
value: U,
|
|
550
|
+
locale: se(P)
|
|
551
|
+
})), 1))), 128))
|
|
552
|
+
])
|
|
553
|
+
];
|
|
554
|
+
}),
|
|
555
|
+
default: u(() => [
|
|
556
|
+
i(s, {
|
|
557
|
+
"aria-label": n(a)("menu.common.translation.translation_label"),
|
|
558
|
+
icon: "g_translate",
|
|
559
|
+
variant: "tertiary",
|
|
560
|
+
onClick: ie
|
|
561
|
+
}, null, 8, ["aria-label"])
|
|
562
|
+
]),
|
|
563
|
+
_: 1
|
|
564
|
+
})
|
|
565
|
+
]),
|
|
566
|
+
_: 1
|
|
567
|
+
}, 8, ["view", "session", "validation"]),
|
|
568
|
+
i(Ve, {
|
|
569
|
+
title: n(a)("menu.order_pacing.product.title"),
|
|
570
|
+
"sub-title": n(a)("menu.order_pacing.product.subtitle")
|
|
571
|
+
}, {
|
|
572
|
+
"append-title": u(() => [
|
|
573
|
+
d("div", Xe, [
|
|
574
|
+
i(s, {
|
|
575
|
+
"border-color": n(T).ColorPrimary,
|
|
576
|
+
label: n(a)("menu.order_pacing.link_product.title"),
|
|
577
|
+
"prepend-icon": "link",
|
|
578
|
+
"text-color": n(T).ColorPrimary,
|
|
579
|
+
variant: "secondary",
|
|
580
|
+
type: "button",
|
|
581
|
+
onPointerdown: t[1] || (t[1] = N(() => {
|
|
582
|
+
}, ["prevent"])),
|
|
583
|
+
onClick: t[2] || (t[2] = (o) => L.value = !0)
|
|
584
|
+
}, null, 8, ["border-color", "label", "text-color"])
|
|
585
|
+
])
|
|
586
|
+
]),
|
|
587
|
+
default: u(() => [
|
|
588
|
+
i(W, {
|
|
589
|
+
"column-defs": be.value,
|
|
590
|
+
"hide-footer": "",
|
|
591
|
+
"page-size": 999,
|
|
592
|
+
"row-data": le.value,
|
|
593
|
+
"shrink-at": !1
|
|
594
|
+
}, null, 8, ["column-defs", "row-data"])
|
|
595
|
+
]),
|
|
596
|
+
_: 1
|
|
597
|
+
}, 8, ["title", "sub-title"])
|
|
598
|
+
])
|
|
599
|
+
]),
|
|
600
|
+
_: 1
|
|
601
|
+
}, 8, ["modelValue", "is-container", "is-container-props"]),
|
|
602
|
+
l.value ? (c(), C($e, {
|
|
603
|
+
key: 4,
|
|
604
|
+
"model-value": F.value,
|
|
605
|
+
"onUpdate:modelValue": t[5] || (t[5] = (o) => o || H()),
|
|
606
|
+
dirty: l.value.translationDirty,
|
|
607
|
+
name: l.value.name,
|
|
608
|
+
"name-locale": l.value.nameLocale,
|
|
609
|
+
"name-section-label": n(a)("menu.order_pacing.translation.name_section"),
|
|
610
|
+
"supported-locales": l.value.supportedLocales,
|
|
611
|
+
title: n(a)("menu.order_pacing.translation.title"),
|
|
612
|
+
onDiscard: H,
|
|
613
|
+
onSave: de,
|
|
614
|
+
"onUpdate:name": r.value.setName,
|
|
615
|
+
"onUpdate:nameLocale": r.value.setNameLocale
|
|
616
|
+
}, null, 8, ["model-value", "dirty", "name", "name-locale", "name-section-label", "supported-locales", "title", "onUpdate:name", "onUpdate:nameLocale"])) : V("", !0),
|
|
617
|
+
i(X, {
|
|
618
|
+
modelValue: D.value,
|
|
619
|
+
"onUpdate:modelValue": t[10] || (t[10] = (o) => D.value = o),
|
|
620
|
+
"is-container": n(S).FmForm,
|
|
621
|
+
"is-container-props": { onValidationSuccess: fe },
|
|
622
|
+
"max-width": 560
|
|
623
|
+
}, {
|
|
624
|
+
"side-sheet-header": u(() => [
|
|
625
|
+
d("p", Ze, k(n(a)("menu.order_pacing.link_product.title")), 1)
|
|
626
|
+
]),
|
|
627
|
+
"side-sheet-footer": u(() => {
|
|
628
|
+
var o;
|
|
629
|
+
return [
|
|
630
|
+
d("div", aa, [
|
|
631
|
+
i(s, {
|
|
632
|
+
disabled: ((o = l.value) == null ? void 0 : o.submit.state) !== "allowed",
|
|
633
|
+
label: n(a)("menu.common.actions.save"),
|
|
634
|
+
size: "lg",
|
|
635
|
+
type: "submit",
|
|
636
|
+
variant: "primary"
|
|
637
|
+
}, null, 8, ["disabled", "label"]),
|
|
638
|
+
i(s, {
|
|
639
|
+
label: n(a)("menu.common.actions.cancel"),
|
|
640
|
+
size: "lg",
|
|
641
|
+
variant: "tertiary",
|
|
642
|
+
onClick: t[9] || (t[9] = (f) => D.value = !1)
|
|
643
|
+
}, null, 8, ["label"])
|
|
644
|
+
])
|
|
645
|
+
];
|
|
646
|
+
}),
|
|
647
|
+
default: u(() => {
|
|
648
|
+
var o, f, U;
|
|
649
|
+
return [
|
|
650
|
+
i(xe, {
|
|
651
|
+
"applied-count": ((o = l.value) == null ? void 0 : o.appliedProductCount) ?? 0,
|
|
652
|
+
groups: ((f = l.value) == null ? void 0 : f.linkedGroups) ?? [],
|
|
653
|
+
query: ((U = l.value) == null ? void 0 : U.linkedProductQuery) ?? "",
|
|
654
|
+
title: n(a)("menu.order_pacing.product.title"),
|
|
655
|
+
onUnapply: t[7] || (t[7] = (P) => r.value.unlinkProduct(P)),
|
|
656
|
+
"onUpdate:query": t[8] || (t[8] = (P) => r.value.setLinkedProductQuery(P))
|
|
657
|
+
}, {
|
|
658
|
+
"append-title": u(() => [
|
|
659
|
+
d("div", ea, [
|
|
660
|
+
i(s, {
|
|
661
|
+
"border-color": n(T).ColorPrimary,
|
|
662
|
+
label: n(a)("menu.common.actions.apply_product"),
|
|
663
|
+
"prepend-icon": "link",
|
|
664
|
+
"text-color": n(T).ColorPrimary,
|
|
665
|
+
variant: "secondary",
|
|
666
|
+
onClick: t[6] || (t[6] = (P) => L.value = !0)
|
|
667
|
+
}, null, 8, ["border-color", "label", "text-color"])
|
|
668
|
+
])
|
|
669
|
+
]),
|
|
670
|
+
_: 1
|
|
671
|
+
}, 8, ["applied-count", "groups", "query", "title"])
|
|
672
|
+
];
|
|
673
|
+
}),
|
|
674
|
+
_: 1
|
|
675
|
+
}, 8, ["modelValue", "is-container", "is-container-props"]),
|
|
676
|
+
i(Se, {
|
|
677
|
+
modelValue: L.value,
|
|
678
|
+
"onUpdate:modelValue": t[11] || (t[11] = (o) => L.value = o),
|
|
679
|
+
catalogue: oe.value,
|
|
680
|
+
"selected-product-ids": re.value,
|
|
681
|
+
title: n(a)("menu.order_pacing.link_product.title"),
|
|
682
|
+
onSubmit: ye
|
|
683
|
+
}, null, 8, ["modelValue", "catalogue", "selected-product-ids", "title"])
|
|
684
|
+
]),
|
|
685
|
+
_: 1
|
|
686
|
+
}, 8, ["heading"]);
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
}), _a = /* @__PURE__ */ K({
|
|
690
|
+
__name: "OrderPacing",
|
|
691
|
+
setup(E) {
|
|
692
|
+
const m = Ie();
|
|
693
|
+
return (a, B) => (c(), C(ta, { sdk: n(m) }, null, 8, ["sdk"]));
|
|
694
|
+
}
|
|
695
|
+
});
|
|
696
|
+
export {
|
|
697
|
+
_a as default
|
|
698
|
+
};
|