@feedmepos/mf-menu 0.31.40-prod → 0.31.41-prod
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/dist/{App-aWEH-ZEk.js → App-5Lzy8zHZ.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-jJyinQZl.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BnKXsQH-.js} +3 -3
- package/dist/{Catalog-BoFfFdn8.js → Catalog-s5b8V8nw.js} +8 -9
- package/dist/{Category-CWYbb3Jn.js → Category-BJzScJEY.js} +4 -4
- package/dist/{Category-DZ45uikR.js → Category-DZ-xqIMI.js} +6 -6
- package/dist/{CookingGuide-BU0PRWIQ.js → CookingGuide-Bkd6GPww.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Z5xsKDIE.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-B8tIjKOW.js} +1 -1
- package/dist/{Group-BMQDeqiS.js → Group-0b2Qiov3.js} +1 -1
- package/dist/{Group-C0T_uknK.js → Group-BOaCcKiI.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DyfmY6F1.js → Group.vue_vue_type_script_setup_true_lang-DUlUfMAs.js} +8 -8
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CouimeC4.js +399 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dl-Wvt3D.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DOvQmbrZ.js} +13 -14
- package/dist/{Ingredient-3lwDUQx_.js → Ingredient-ChcYUvOg.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-VLrrTkSC.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DE1HkipX.js} +2 -2
- package/dist/LinkProductSideSheet-BdzBGYxG.js +361 -0
- package/dist/MenuSetting-zAAttaoA.js +618 -0
- package/dist/{PrintRoute-DfJ-vUAb.js → PrintRoute-T-vuO5N8.js} +4 -4
- package/dist/{Product-F4PoLm9v.js → Product-B5q291VF.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DT5gffpA.js → Product.vue_vue_type_script_setup_true_lang-DLRlT10W.js} +468 -465
- package/dist/{ProductInternalTools-DSGU-OqU.js → ProductInternalTools-BOlc0VUR.js} +5 -5
- package/dist/{Products-COzW2Z4g.js → Products-Cd4Mqhm3.js} +88 -85
- package/dist/{Publish-CDXVWCk2.js → Publish-SuRzt-_D.js} +3 -3
- package/dist/{Recipe-BZx4wrcP.js → Recipe-BKrjNs5g.js} +4 -4
- package/dist/{Scheduler-wHCWSeU2.js → Scheduler-DnDgImLC.js} +3 -3
- package/dist/{ServingSequence-BbYEhDYh.js → ServingSequence-D602bVnm.js} +3 -3
- package/dist/{Setting-C9Tlw1Iy.js → Setting-FMT4oBYH.js} +44 -45
- package/dist/{Subcategory-C8AwfrKb.js → Subcategory-CpYmjAvA.js} +4 -4
- package/dist/{Takeaway-t1053wg2.js → Takeaway-BXh3iuME.js} +1 -1
- package/dist/{Takeaway-DaEUn-yM.js → Takeaway-D4hjN5z5.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-7XycP5fU.js → Takeaway.vue_vue_type_script_setup_true_lang-By1f-FCO.js} +5 -5
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-CZUwa5C_.js +440 -0
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Ci6iqOry.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DfjtfcCh.js} +604 -600
- package/dist/{Unit-CnqptGCz.js → Unit-CsjHkV-h.js} +2 -2
- package/dist/{Variant-DiOYOwJs.js → Variant-Djra14ZX.js} +3 -3
- package/dist/{_id_-BSfU16VO.js → _id_-BXkqoCzB.js} +78 -75
- package/dist/{app-Ddb81PNo.js → app-CVqWWV4x.js} +278 -278
- package/dist/{LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js → app-CiBqmBzO.js} +2120 -2084
- package/dist/{app-Cou6qPF2.js → app-PhBJNss_.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/menu.d.ts +2 -1
- package/dist/apps/mf-menu/src/app.d.ts +144 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +9 -3
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +294 -4
- package/dist/apps/mf-menu/src/composable/attributes.d.ts +26 -0
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +40 -0
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +285 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +285 -0
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +285 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +293 -3
- package/dist/apps/mf-menu/src/utils/array.d.ts +1 -0
- package/dist/apps/mf-menu/src/utils/customAttributes.d.ts +12 -0
- package/dist/apps/mf-menu/src/views/MenuSetting/LinkProductRuleGroups.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/MenuSetting/RuleGroupSideSheet.vue.d.ts +176 -0
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +166 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-WlVAcpRn.js +13 -0
- package/dist/assets/override-menu-__h4D7ac.js +13 -0
- package/dist/assets/validate-menu-DyPuzLRg.js +13 -0
- package/dist/{catalog-DSuJhsUb.js → catalog-C_TuQLxq.js} +1 -1
- package/dist/{catalogSetting-C3gEw9ov.js → catalogSetting-BUlJu6hG.js} +1 -1
- package/dist/{category-CwWq3KCE.js → category-CmVw1Kj-.js} +1 -1
- package/dist/{currency-g45Sh-t6.js → currency-OhOTnAqk.js} +1 -1
- package/dist/customAttributes-fpOfmGnw.js +180 -0
- package/dist/{dayjs.min-g3eN5z-V.js → dayjs.min-CDhP-7L5.js} +1 -1
- package/dist/{index-QsLFbxyG.js → index-BJZEWB5C.js} +4 -4
- package/dist/{index-BLQCYEc6.js → index-DHAYGEPp.js} +7 -8
- package/dist/{index-0yRUi7LL.js → index-DtwHmS38.js} +1 -1
- package/dist/index-N3cGc8ex.js +245 -0
- package/dist/{item-BvvQ9urP.js → item-BELLphR0.js} +16 -16
- package/dist/{jszip.min-DzdUiaR4.js → jszip.min-CZtcGb7A.js} +353 -353
- package/dist/{menu-QrVg2Ph7.js → menu-Csyr6W9A.js} +7 -7
- package/dist/{menu-DFNvhoNQ.js → menu-DS_ERmBf.js} +23355 -23206
- package/dist/{menuV2-Ezf_jW40.js → menuV2-DKzAZ4Ss.js} +151 -146
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-zENsn3P_.js → priceTier-CYWS5lDS.js} +1 -1
- package/dist/{scheduler-BuwGSv6A.js → scheduler-DI5dXC7Y.js} +8 -8
- package/dist/{subcategory-O3L_zCJA.js → subcategory-D_ao-IV9.js} +2 -2
- package/dist/{toExcel-CpRy_4nG.js → toExcel-Cml-rkJQ.js} +2 -2
- package/dist/{unit-Ct_7Hfa2.js → unit-BWDp2LkV.js} +42 -41
- package/package.json +3 -3
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js +0 -50
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D6qro5w_.js +0 -367
- package/dist/LinkProductSideSheet-LDZjKX95.js +0 -297
- package/dist/MenuSetting-AhutsCVy.js +0 -185
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-B7oLH9cP.js +0 -431
- package/dist/assets/linked-status-B_crHhZH.js +0 -24
- package/dist/assets/override-menu-BmlCEpHH.js +0 -24
- package/dist/assets/validate-menu-CF-psoB-.js +0 -24
- package/dist/index-0Q5T9VZV.js +0 -214
package/dist/mf-menu.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.chatbox[data-v-97b727dd]{padding:10px;display:flex;flex-direction:column;height:100%;width:100%;overflow-y:scroll;gap:4px}.chatbox .user-message[data-v-97b727dd]{align-self:end;max-width:90%;display:flex;flex-direction:column;gap:4px}.chatbox .remy-message[data-v-97b727dd]{align-self:start;max-width:90%;display:flex;flex-direction:column;gap:4px}.chatbox .user-name[data-v-97b727dd]{padding:4px 8px;font-size:12px;font-weight:700}.chatbox .selection-container[data-v-97b727dd]{display:flex;flex-direction:row;flex-wrap:wrap;gap:4px}.chatbox .selection-container .selection[data-v-97b727dd]{cursor:pointer}.chatbox .message-bubble[data-v-97b727dd]{background:#f0f0f0;padding:4px 8px;border-radius:6px;line-height:20px;font-size:14px}.chatbox .select-label[data-v-97b727dd]{font-weight:700;font-size:12px;padding:4px 8px;align-self:center}.chatbox .message[data-v-97b727dd]{white-space:pre-wrap}.chatbox .spinner[data-v-97b727dd]{text-align:left}.chatbox .spinner>div[data-v-97b727dd]{width:4px;height:4px;margin:0 2px;background-color:#434343;border-radius:100%;display:inline-block;animation:sk-bouncedelay-97b727dd 1.4s infinite ease-in-out both}.chatbox .spinner .bounce1[data-v-97b727dd]{animation-delay:-.32s}.chatbox .spinner .bounce2[data-v-97b727dd]{animation-delay:-.16s}@keyframes sk-bouncedelay-97b727dd{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.expand-enter-from[data-v-97fa9d58]{opacity:0;max-height:0}.expand-enter-to[data-v-97fa9d58],.expand-leave-from[data-v-97fa9d58]{opacity:1;max-height:1000px}.expand-leave-to[data-v-97fa9d58]{opacity:0;max-height:0}.expand-enter-active[data-v-97fa9d58],.expand-leave-active[data-v-97fa9d58]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fade-enter-from[data-v-5b5c7179]{opacity:0}.fade-enter-to[data-v-5b5c7179],.fade-leave-from[data-v-5b5c7179]{opacity:1}.fade-leave-to[data-v-5b5c7179]{opacity:0}.fade-enter-active[data-v-5b5c7179],.fade-leave-active[data-v-5b5c7179]{transition:opacity .5s ease}.expand-enter-from[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-to[data-v-e920f110],.expand-leave-from[data-v-e920f110]{opacity:1;max-height:1000px}.expand-leave-to[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-active[data-v-e920f110],.expand-leave-active[data-v-e920f110]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fm-select__menu__wrapper[data-v-1d940d75]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vue-advanced-cropper{text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}.fm-select__menu__wrapper[data-v-ca5e943c]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.description[data-v-da796223] textarea{padding-right:32px}.image-action-overlay[data-v-946af9b7]{visibility:hidden;background-color:#ffffff4d}.container:hover .image-action-overlay[data-v-946af9b7]{visibility:visible}.description[data-v-317a5447] textarea{padding-right:32px}.tree-item-form button:focus{outline:2px solid black}.resize-handle[data-v-570141b0]{cursor:col-resize}.resize-handle[data-v-570141b0]:hover{background-color:var(--fm-color-system-orange-200);filter:opacity(.4)}.resize-grabber[data-v-570141b0]{pointer-events:none}[data-v-f6f1080b] .highlighted-span{background-color:#ff06}.hover-effect:hover:before{content:"";background-color:var(--fm-color-opacity-sm);border-radius:var(--fm-corner-radius-sm);position:absolute;top:0;left:0;height:100%;width:100%}.tree-node .right-area .show-on-hover{display:none}.tree-node:hover .right-area .show-on-hover{display:flex}.drag-handle{cursor:grab;position:absolute;left:0}.tree-node:hover .drag-handle{visibility:visible}.tree-node .drag-handle{visibility:hidden}.drop-indicator-before{position:absolute;left:0;right:0;top:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-after{position:absolute;left:0;right:0;bottom:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-inside{position:absolute;left:0;right:0;top:0;bottom:0;border:2px solid var(--fm-color-primary);border-radius:var(--fm-corner-radius-sm);background-color:var(--fm-color-opacity-sm);z-index:5}.tree-node{position:relative}.tree-container[data-v-9244f342]{width:100%;max-width:100%;height:100%;position:relative}.tree-node-wrapper[data-v-9244f342]{width:100%;position:relative}.empty-tree-message[data-v-9244f342]{padding:20px;text-align:center;color:#666}.being-dragged[data-v-9244f342]{opacity:.5}.drop-before[data-v-9244f342]:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-after[data-v-9244f342]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-inside[data-v-9244f342]{background-color:#4299e11a}.drag-overlay[data-v-9244f342]{position:fixed;padding:4px 8px;background-color:#fff;border:1px solid var(--fm-color-neutral-gray-200);box-shadow:0 2px 4px #0000001a;pointer-events:none;z-index:1000;border-radius:4px;max-width:400px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-overlay{background-color:#ffffff80}.fade-enter-from[data-v-6c3052b3]{opacity:0}.fade-enter-to[data-v-6c3052b3],.fade-leave-from[data-v-6c3052b3]{opacity:1}.fade-leave-to[data-v-6c3052b3]{opacity:0}.fade-enter-active[data-v-6c3052b3],.fade-leave-active[data-v-6c3052b3]{transition:opacity .5s ease}.expand-enter-active,.expand-leave-active{transition:.3s}.expand-enter-from{opacity:0;max-height:0}.expand-enter-to,.expand-leave-from{opacity:1;max-height:1000px}.expand-leave-to{opacity:0;max-height:0}.app-container{background-color:#fff!important}:root{--vc-clr-primary: #000;--vc-clr-secondary: #090f207f;--vc-clr-white: #ffffff}.carousel,.carousel *{box-sizing:border-box}.carousel{height:var(--vc-carousel-height);overscroll-behavior:none;position:relative;touch-action:pan-x pan-y pinch-zoom;z-index:1}.carousel.is-dragging{touch-action:none}.carousel__track{display:flex;gap:var(--vc-slide-gap);height:100%;list-style:none;margin:0;padding:0;position:relative;transition:transform ease-out;transition-duration:var(--vc-transition-duration);width:100%}.carousel__viewport{height:100%;overflow:hidden;width:100%}.carousel__sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.carousel.is-rtl{direction:rtl}.carousel.is-ttb .carousel__track{flex-direction:column}.carousel.is-btt .carousel__track{flex-direction:column-reverse}.carousel.is-vertical .carousel__slide--clone:first-child{margin-block-start:var(--vc-cloned-offset)}.carousel:not(.is-vertical) .carousel__slide--clone:first-child{margin-inline-start:var(--vc-cloned-offset)}.carousel.is-effect-fade .carousel__track{display:grid;grid-template-columns:100%;grid-template-rows:100%;transition:none}.carousel.is-effect-fade .carousel__slide{grid-area:1 / 1;height:100%;opacity:0;pointer-events:none;transition:opacity ease-in-out;transition-duration:var(--vc-transition-duration);width:100%}.carousel.is-effect-fade .carousel__slide--active{opacity:1;pointer-events:auto}:root{--vc-icn-width: 100%}.carousel__icon{fill:currentColor;height:var(--vc-icn-width);width:var(--vc-icn-width)}:root{--vc-nav-background: transparent;--vc-nav-border-radius: 0;--vc-nav-color: var(--vc-clr-primary);--vc-nav-color-hover: var(--vc-clr-secondary);--vc-nav-height: 30px;--vc-nav-width: 30px}.carousel__next,.carousel__prev{align-items:center;background:var(--vc-nav-background);border:0;border-radius:var(--vc-nav-border-radius);color:var(--vc-nav-color);cursor:pointer;display:flex;font-size:var(--vc-nav-height);height:var(--vc-nav-height);justify-content:center;padding:0;position:absolute;inset-block-start:50%;transform:translateY(-50%);width:var(--vc-nav-width)}.carousel__next--disabled,.carousel__prev--disabled{cursor:not-allowed;opacity:.5}.carousel__next{inset-inline-end:0}.carousel__prev{inset-inline-start:0}.carousel.is-vertical .carousel__next,.carousel.is-vertical .carousel__prev{inset-inline:auto 50%;inset-block-start:auto;transform:translate(50%)}.carousel.is-vertical.is-ttb .carousel__next{inset-block-end:0}.carousel.is-vertical.is-ttb .carousel__prev,.carousel.is-vertical.is-btt .carousel__next{inset-block-start:0}.carousel.is-vertical.is-btt .carousel__prev{inset-block-end:0}@media (hover: hover){.carousel__next:hover,.carousel__prev:hover{color:var(--vc-nav-color-hover)}}:root{--vc-pgn-active-color: var(--vc-clr-primary);--vc-pgn-background-color: var(--vc-clr-secondary);--vc-pgn-border-radius: 0;--vc-pgn-gap: 6px;--vc-pgn-height: 4px;--vc-png-bottom: 10px;--vc-png-left: auto;--vc-png-right: 10px;--vc-pgn-width: 16px}.carousel__pagination{bottom:var(--vc-png-bottom);display:flex;gap:var(--vc-pgn-gap);justify-content:center;left:50%;list-style:none;margin:0;padding:0;position:absolute;transform:translate(-50%)}.carousel__pagination-button{background-color:var(--vc-pgn-background-color);border:0;border-radius:var(--vc-pgn-border-radius);cursor:pointer;display:block;height:var(--vc-pgn-height);margin:0;padding:0;width:var(--vc-pgn-width)}.carousel__pagination-button--active{background-color:var(--vc-pgn-active-color)}@media (hover: hover){.carousel__pagination-button:hover{background-color:var(--vc-pgn-active-color)}}.carousel.is-vertical .carousel__pagination{bottom:50%;flex-direction:column;left:var(--vc-png-left);right:var(--vc-png-right);transform:translateY(50%)}.carousel.is-vertical .carousel__pagination-button{height:var(--vc-pgn-width);width:var(--vc-pgn-height)}.carousel.is-btt .carousel__pagination{flex-direction:column-reverse}.carousel__slide{align-items:center;display:flex;flex-shrink:0;justify-content:center;margin:0;transform:translateZ(0)}.remy-dialog[data-v-9adba964]{position:fixed;z-index:9999;top:25%;right:30px;background:#fff;border:1px solid lightgrey;border-radius:4px;height:50%;width:400px;max-width:90%}.remy-dialog .header[data-v-9adba964]{background:#000;padding:0 12px;border-radius:4px 4px 0 0;height:40px}.remy-dialog .header .title[data-v-9adba964]{color:#fff}.remy-dialog .chatbox-container[data-v-9adba964]{height:calc(100% - 40px)}
|
|
1
|
+
.chatbox[data-v-97b727dd]{padding:10px;display:flex;flex-direction:column;height:100%;width:100%;overflow-y:scroll;gap:4px}.chatbox .user-message[data-v-97b727dd]{align-self:end;max-width:90%;display:flex;flex-direction:column;gap:4px}.chatbox .remy-message[data-v-97b727dd]{align-self:start;max-width:90%;display:flex;flex-direction:column;gap:4px}.chatbox .user-name[data-v-97b727dd]{padding:4px 8px;font-size:12px;font-weight:700}.chatbox .selection-container[data-v-97b727dd]{display:flex;flex-direction:row;flex-wrap:wrap;gap:4px}.chatbox .selection-container .selection[data-v-97b727dd]{cursor:pointer}.chatbox .message-bubble[data-v-97b727dd]{background:#f0f0f0;padding:4px 8px;border-radius:6px;line-height:20px;font-size:14px}.chatbox .select-label[data-v-97b727dd]{font-weight:700;font-size:12px;padding:4px 8px;align-self:center}.chatbox .message[data-v-97b727dd]{white-space:pre-wrap}.chatbox .spinner[data-v-97b727dd]{text-align:left}.chatbox .spinner>div[data-v-97b727dd]{width:4px;height:4px;margin:0 2px;background-color:#434343;border-radius:100%;display:inline-block;animation:sk-bouncedelay-97b727dd 1.4s infinite ease-in-out both}.chatbox .spinner .bounce1[data-v-97b727dd]{animation-delay:-.32s}.chatbox .spinner .bounce2[data-v-97b727dd]{animation-delay:-.16s}@keyframes sk-bouncedelay-97b727dd{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.expand-enter-from[data-v-e233e211]{opacity:0;max-height:0}.expand-enter-to[data-v-e233e211],.expand-leave-from[data-v-e233e211]{opacity:1;max-height:1000px}.expand-leave-to[data-v-e233e211]{opacity:0;max-height:0}.expand-enter-active[data-v-e233e211],.expand-leave-active[data-v-e233e211]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fade-enter-from[data-v-5b5c7179]{opacity:0}.fade-enter-to[data-v-5b5c7179],.fade-leave-from[data-v-5b5c7179]{opacity:1}.fade-leave-to[data-v-5b5c7179]{opacity:0}.fade-enter-active[data-v-5b5c7179],.fade-leave-active[data-v-5b5c7179]{transition:opacity .5s ease}.expand-enter-from[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-to[data-v-e920f110],.expand-leave-from[data-v-e920f110]{opacity:1;max-height:1000px}.expand-leave-to[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-active[data-v-e920f110],.expand-leave-active[data-v-e920f110]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fm-select__menu__wrapper[data-v-1d940d75]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vue-advanced-cropper{text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}.fm-select__menu__wrapper[data-v-ca5e943c]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.description[data-v-da796223] textarea{padding-right:32px}.image-action-overlay[data-v-946af9b7]{visibility:hidden;background-color:#ffffff4d}.container:hover .image-action-overlay[data-v-946af9b7]{visibility:visible}.description[data-v-317a5447] textarea{padding-right:32px}.tree-item-form button:focus{outline:2px solid black}.resize-handle[data-v-570141b0]{cursor:col-resize}.resize-handle[data-v-570141b0]:hover{background-color:var(--fm-color-system-orange-200);filter:opacity(.4)}.resize-grabber[data-v-570141b0]{pointer-events:none}[data-v-f6f1080b] .highlighted-span{background-color:#ff06}.hover-effect:hover:before{content:"";background-color:var(--fm-color-opacity-sm);border-radius:var(--fm-corner-radius-sm);position:absolute;top:0;left:0;height:100%;width:100%}.tree-node .right-area .show-on-hover{display:none}.tree-node:hover .right-area .show-on-hover{display:flex}.drag-handle{cursor:grab;position:absolute;left:0}.tree-node:hover .drag-handle{visibility:visible}.tree-node .drag-handle{visibility:hidden}.drop-indicator-before{position:absolute;left:0;right:0;top:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-after{position:absolute;left:0;right:0;bottom:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-inside{position:absolute;left:0;right:0;top:0;bottom:0;border:2px solid var(--fm-color-primary);border-radius:var(--fm-corner-radius-sm);background-color:var(--fm-color-opacity-sm);z-index:5}.tree-node{position:relative}.tree-container[data-v-9244f342]{width:100%;max-width:100%;height:100%;position:relative}.tree-node-wrapper[data-v-9244f342]{width:100%;position:relative}.empty-tree-message[data-v-9244f342]{padding:20px;text-align:center;color:#666}.being-dragged[data-v-9244f342]{opacity:.5}.drop-before[data-v-9244f342]:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-after[data-v-9244f342]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-inside[data-v-9244f342]{background-color:#4299e11a}.drag-overlay[data-v-9244f342]{position:fixed;padding:4px 8px;background-color:#fff;border:1px solid var(--fm-color-neutral-gray-200);box-shadow:0 2px 4px #0000001a;pointer-events:none;z-index:1000;border-radius:4px;max-width:400px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-overlay{background-color:#ffffff80}.fade-enter-from[data-v-6c3052b3]{opacity:0}.fade-enter-to[data-v-6c3052b3],.fade-leave-from[data-v-6c3052b3]{opacity:1}.fade-leave-to[data-v-6c3052b3]{opacity:0}.fade-enter-active[data-v-6c3052b3],.fade-leave-active[data-v-6c3052b3]{transition:opacity .5s ease}.expand-enter-active,.expand-leave-active{transition:.3s}.expand-enter-from{opacity:0;max-height:0}.expand-enter-to,.expand-leave-from{opacity:1;max-height:1000px}.expand-leave-to{opacity:0;max-height:0}.app-container{background-color:#fff!important}:root{--vc-clr-primary: #000;--vc-clr-secondary: #090f207f;--vc-clr-white: #ffffff}.carousel,.carousel *{box-sizing:border-box}.carousel{height:var(--vc-carousel-height);overscroll-behavior:none;position:relative;touch-action:pan-x pan-y pinch-zoom;z-index:1}.carousel.is-dragging{touch-action:none}.carousel__track{display:flex;gap:var(--vc-slide-gap);height:100%;list-style:none;margin:0;padding:0;position:relative;transition:transform ease-out;transition-duration:var(--vc-transition-duration);width:100%}.carousel__viewport{height:100%;overflow:hidden;width:100%}.carousel__sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.carousel.is-rtl{direction:rtl}.carousel.is-ttb .carousel__track{flex-direction:column}.carousel.is-btt .carousel__track{flex-direction:column-reverse}.carousel.is-vertical .carousel__slide--clone:first-child{margin-block-start:var(--vc-cloned-offset)}.carousel:not(.is-vertical) .carousel__slide--clone:first-child{margin-inline-start:var(--vc-cloned-offset)}.carousel.is-effect-fade .carousel__track{display:grid;grid-template-columns:100%;grid-template-rows:100%;transition:none}.carousel.is-effect-fade .carousel__slide{grid-area:1 / 1;height:100%;opacity:0;pointer-events:none;transition:opacity ease-in-out;transition-duration:var(--vc-transition-duration);width:100%}.carousel.is-effect-fade .carousel__slide--active{opacity:1;pointer-events:auto}:root{--vc-icn-width: 100%}.carousel__icon{fill:currentColor;height:var(--vc-icn-width);width:var(--vc-icn-width)}:root{--vc-nav-background: transparent;--vc-nav-border-radius: 0;--vc-nav-color: var(--vc-clr-primary);--vc-nav-color-hover: var(--vc-clr-secondary);--vc-nav-height: 30px;--vc-nav-width: 30px}.carousel__next,.carousel__prev{align-items:center;background:var(--vc-nav-background);border:0;border-radius:var(--vc-nav-border-radius);color:var(--vc-nav-color);cursor:pointer;display:flex;font-size:var(--vc-nav-height);height:var(--vc-nav-height);justify-content:center;padding:0;position:absolute;inset-block-start:50%;transform:translateY(-50%);width:var(--vc-nav-width)}.carousel__next--disabled,.carousel__prev--disabled{cursor:not-allowed;opacity:.5}.carousel__next{inset-inline-end:0}.carousel__prev{inset-inline-start:0}.carousel.is-vertical .carousel__next,.carousel.is-vertical .carousel__prev{inset-inline:auto 50%;inset-block-start:auto;transform:translate(50%)}.carousel.is-vertical.is-ttb .carousel__next{inset-block-end:0}.carousel.is-vertical.is-ttb .carousel__prev,.carousel.is-vertical.is-btt .carousel__next{inset-block-start:0}.carousel.is-vertical.is-btt .carousel__prev{inset-block-end:0}@media (hover: hover){.carousel__next:hover,.carousel__prev:hover{color:var(--vc-nav-color-hover)}}:root{--vc-pgn-active-color: var(--vc-clr-primary);--vc-pgn-background-color: var(--vc-clr-secondary);--vc-pgn-border-radius: 0;--vc-pgn-gap: 6px;--vc-pgn-height: 4px;--vc-png-bottom: 10px;--vc-png-left: auto;--vc-png-right: 10px;--vc-pgn-width: 16px}.carousel__pagination{bottom:var(--vc-png-bottom);display:flex;gap:var(--vc-pgn-gap);justify-content:center;left:50%;list-style:none;margin:0;padding:0;position:absolute;transform:translate(-50%)}.carousel__pagination-button{background-color:var(--vc-pgn-background-color);border:0;border-radius:var(--vc-pgn-border-radius);cursor:pointer;display:block;height:var(--vc-pgn-height);margin:0;padding:0;width:var(--vc-pgn-width)}.carousel__pagination-button--active{background-color:var(--vc-pgn-active-color)}@media (hover: hover){.carousel__pagination-button:hover{background-color:var(--vc-pgn-active-color)}}.carousel.is-vertical .carousel__pagination{bottom:50%;flex-direction:column;left:var(--vc-png-left);right:var(--vc-png-right);transform:translateY(50%)}.carousel.is-vertical .carousel__pagination-button{height:var(--vc-pgn-width);width:var(--vc-pgn-height)}.carousel.is-btt .carousel__pagination{flex-direction:column-reverse}.carousel__slide{align-items:center;display:flex;flex-shrink:0;justify-content:center;margin:0;transform:translateZ(0)}.remy-dialog[data-v-9adba964]{position:fixed;z-index:9999;top:25%;right:30px;background:#fff;border:1px solid lightgrey;border-radius:4px;height:50%;width:400px;max-width:90%}.remy-dialog .header[data-v-9adba964]{background:#000;padding:0 12px;border-radius:4px 4px 0 0;height:40px}.remy-dialog .header .title[data-v-9adba964]{color:#fff}.remy-dialog .chatbox-container[data-v-9adba964]{height:calc(100% - 40px)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
|
|
2
2
|
import { useI18n as m } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as k, G as M } from "./menu-
|
|
4
|
+
import { u as k, G as M } from "./menu-DS_ERmBf.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as L, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
|
|
2
|
-
import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-
|
|
2
|
+
import { H as S, A as r, u as pe, I as ve, J as ue } from "./menu-DS_ERmBf.js";
|
|
3
3
|
import { useI18n as de } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as _e } from "@feedmepos/ui-library";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { u as he } from "./
|
|
8
|
-
import {
|
|
5
|
+
import { _ as ne, a as fe } from "./customAttributes-fpOfmGnw.js";
|
|
6
|
+
import { u as ye } from "./discardConfirm-BHni0LNu.js";
|
|
7
|
+
import { u as he } from "./menu-Csyr6W9A.js";
|
|
8
|
+
import { L as ge } from "./LinkProductSideSheet-BdzBGYxG.js";
|
|
9
9
|
const Ve = { class: "space-y-8" }, Fe = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "space-y-16"
|
|
@@ -19,7 +19,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
19
19
|
},
|
|
20
20
|
emits: ["update:modelValue"],
|
|
21
21
|
setup(V, { emit: G }) {
|
|
22
|
-
const f = V, e = G, { categories: J } =
|
|
22
|
+
const f = V, e = G, { categories: J } = he(), W = Y(() => J.value.map((s) => s.id === null ? { label: s.name, value: "" } : {
|
|
23
23
|
label: s.name,
|
|
24
24
|
value: s.id
|
|
25
25
|
})), X = (s) => {
|
|
@@ -253,7 +253,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
253
253
|
(g) => a.value.items.some(({ _id: A }) => g._id === A)
|
|
254
254
|
);
|
|
255
255
|
return y.length && i.push({ ...l, items: y }), i;
|
|
256
|
-
}, [])), U = Y(() => C.value === "custom" && a.value.timePeriod.length > 0 ? B(a.value.timePeriod) : null), Q =
|
|
256
|
+
}, [])), U = Y(() => C.value === "custom" && a.value.timePeriod.length > 0 ? B(a.value.timePeriod) : null), Q = ye(
|
|
257
257
|
() => !ve.isEqual(z.value, q()),
|
|
258
258
|
() => {
|
|
259
259
|
D.value = !1;
|
|
@@ -435,7 +435,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
435
435
|
}, {
|
|
436
436
|
"append-title": v(() => [
|
|
437
437
|
t(oe),
|
|
438
|
-
t(
|
|
438
|
+
t(ge, {
|
|
439
439
|
"categorized-items": V.categorizedItems,
|
|
440
440
|
"initial-value": a.value.items,
|
|
441
441
|
onSubmit: l[5] || (l[5] = ({ items: o }) => a.value.items = o)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as A, unref as c, withCtx as C, createVNode as V } from "vue";
|
|
2
|
-
import { J as l, A as d, u as F } from "./menu-
|
|
2
|
+
import { J as l, A as d, u as F } from "./menu-DS_ERmBf.js";
|
|
3
3
|
import { useI18n as b } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as P } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as v } from "./menuV2-
|
|
5
|
+
import { u as v } from "./menuV2-DKzAZ4Ss.js";
|
|
6
6
|
const y = /* @__PURE__ */ M({
|
|
7
7
|
__name: "AddSubcategoryDialogContentComponent",
|
|
8
8
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DOvQmbrZ.js";
|
|
2
|
+
import "./menu-DS_ERmBf.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { defineStore as J } from "pinia";
|
|
2
2
|
import { defineComponent as O, computed as U, ref as h, watch as T, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
|
|
3
|
-
import { a6 as P, a7 as te, a4 as B, H as k, O as $, G as I, D as E, a5 as ne, J as C, A as D, I as
|
|
3
|
+
import { a6 as P, a7 as te, a4 as B, H as k, O as $, G as I, D as E, a5 as ne, J as C, A as D, I as oe, u as ae } from "./menu-DS_ERmBf.js";
|
|
4
4
|
import { useI18n as L } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as j, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as se } from "./discardConfirm-BHni0LNu.js";
|
|
7
7
|
import { c as re } from "./check-C9mY6LiX.js";
|
|
8
8
|
import "./vuedraggable-CK8z7qA8.js";
|
|
9
|
-
import "./
|
|
10
|
-
import "./menuV2-
|
|
9
|
+
import "./app-CiBqmBzO.js";
|
|
10
|
+
import "./menuV2-DKzAZ4Ss.js";
|
|
11
|
+
/* empty css */
|
|
11
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
12
13
|
const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
13
14
|
__name: "NumberPrecisionInput",
|
|
@@ -30,16 +31,16 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
30
31
|
e.key
|
|
31
32
|
))
|
|
32
33
|
return;
|
|
33
|
-
const i = e.currentTarget,
|
|
34
|
-
if (isFinite(
|
|
35
|
-
P(
|
|
34
|
+
const i = e.currentTarget, a = +`${i.value}${e.key}`;
|
|
35
|
+
if (isFinite(a)) {
|
|
36
|
+
P(a).precision > c.value && e.preventDefault();
|
|
36
37
|
return;
|
|
37
38
|
}
|
|
38
39
|
i.value.length === 0 && (e.key === "-" || e.key === ".") || e.preventDefault();
|
|
39
40
|
};
|
|
40
41
|
return (e, i) => {
|
|
41
|
-
const
|
|
42
|
-
return F(), W(
|
|
42
|
+
const a = V("FmField"), o = V("FmFormGroup");
|
|
43
|
+
return F(), W(o, {
|
|
43
44
|
disabled: e.disabled,
|
|
44
45
|
modelValue: e.modelValue,
|
|
45
46
|
rules: e.rules,
|
|
@@ -47,7 +48,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
47
48
|
label: e.label
|
|
48
49
|
}, {
|
|
49
50
|
default: w(({ invalid: p }) => [
|
|
50
|
-
m(
|
|
51
|
+
m(a, { invalid: p }, {
|
|
51
52
|
default: w(() => [
|
|
52
53
|
f("input", {
|
|
53
54
|
value: d.value,
|
|
@@ -96,18 +97,18 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
96
97
|
value: c.value,
|
|
97
98
|
unit: n.unitName
|
|
98
99
|
}));
|
|
99
|
-
function b(
|
|
100
|
-
e("conversion", B(
|
|
100
|
+
function b(a) {
|
|
101
|
+
e("conversion", B(a, n.precision));
|
|
101
102
|
}
|
|
102
|
-
function e(
|
|
103
|
+
function e(a, o) {
|
|
103
104
|
const p = k(n.modelValue);
|
|
104
|
-
p[
|
|
105
|
+
p[a] = o, i("update:model-value", p);
|
|
105
106
|
}
|
|
106
107
|
const i = g;
|
|
107
108
|
return T(
|
|
108
109
|
() => n.precision,
|
|
109
110
|
() => b(c.value)
|
|
110
|
-
), (
|
|
111
|
+
), (a, o) => {
|
|
111
112
|
const p = V("FmButton"), _ = V("FmTextField");
|
|
112
113
|
return F(), A("div", pe, [
|
|
113
114
|
f("div", ve, [
|
|
@@ -115,7 +116,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
115
116
|
m(p, {
|
|
116
117
|
icon: "delete",
|
|
117
118
|
variant: "secondary",
|
|
118
|
-
onClick:
|
|
119
|
+
onClick: o[0] || (o[0] = (s) => i("delete"))
|
|
119
120
|
})
|
|
120
121
|
]),
|
|
121
122
|
f("div", be, [
|
|
@@ -127,7 +128,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
127
128
|
})
|
|
128
129
|
],
|
|
129
130
|
label: l(t)("menu.unit.measurement.name"),
|
|
130
|
-
"onUpdate:modelValue":
|
|
131
|
+
"onUpdate:modelValue": o[1] || (o[1] = (s) => e("name", s.trim()))
|
|
131
132
|
}, null, 8, ["model-value", "rules", "label"]),
|
|
132
133
|
m(_, {
|
|
133
134
|
"model-value": n.modelValue.abbrev,
|
|
@@ -137,7 +138,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
137
138
|
})
|
|
138
139
|
],
|
|
139
140
|
label: l(t)("menu.unit.measurement.symbol"),
|
|
140
|
-
"onUpdate:modelValue":
|
|
141
|
+
"onUpdate:modelValue": o[2] || (o[2] = (s) => e("abbrev", s.trim()))
|
|
141
142
|
}, null, 8, ["model-value", "rules", "label"])
|
|
142
143
|
]),
|
|
143
144
|
m(ce, {
|
|
@@ -158,8 +159,8 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
158
159
|
setup(y, { expose: g }) {
|
|
159
160
|
const { t } = L(), n = y, c = $(I(j())), d = U(() => n.initialValue ? t("menu.unit.update") : t("menu.unit.add")), b = U(
|
|
160
161
|
() => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
|
|
161
|
-
), e = h(n.initialValue ? k(n.initialValue) : E.generator.initUnit()), i = h(!1),
|
|
162
|
-
re.isBoolean(u) ?
|
|
162
|
+
), e = h(n.initialValue ? k(n.initialValue) : E.generator.initUnit()), i = h(!1), a = h(!1), o = (u) => {
|
|
163
|
+
re.isBoolean(u) ? a.value = u : a.value = !a.value;
|
|
163
164
|
};
|
|
164
165
|
function p() {
|
|
165
166
|
e.value.measurements = e.value.measurements.map((u) => ({
|
|
@@ -179,9 +180,9 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
179
180
|
e.value.measurements.splice(u, 1);
|
|
180
181
|
}
|
|
181
182
|
const K = se(
|
|
182
|
-
() => !
|
|
183
|
+
() => !oe.isEqual(e.value, n.initialValue || E.generator.initUnit()),
|
|
183
184
|
() => {
|
|
184
|
-
|
|
185
|
+
a.value = !1;
|
|
185
186
|
}
|
|
186
187
|
), Y = async () => {
|
|
187
188
|
try {
|
|
@@ -201,27 +202,27 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
201
202
|
data: u
|
|
202
203
|
},
|
|
203
204
|
u.name
|
|
204
|
-
),
|
|
205
|
+
), o(!1), e.value = E.generator.initUnit();
|
|
205
206
|
} finally {
|
|
206
207
|
i.value = !1;
|
|
207
208
|
}
|
|
208
209
|
};
|
|
209
210
|
return T(
|
|
210
|
-
() =>
|
|
211
|
+
() => a.value,
|
|
211
212
|
(u) => {
|
|
212
213
|
u && (e.value = n.initialValue ? k(n.initialValue) : E.generator.initUnit());
|
|
213
214
|
}
|
|
214
215
|
), g({
|
|
215
|
-
show:
|
|
216
|
-
trigger:
|
|
216
|
+
show: a,
|
|
217
|
+
trigger: o
|
|
217
218
|
}), (u, v) => {
|
|
218
219
|
const N = V("FmTextField"), R = V("FmStepperField"), z = V("FmButton"), S = V("fm-button"), G = V("fm-side-sheet");
|
|
219
220
|
return F(), A(q, null, [
|
|
220
|
-
X(u.$slots, "default", { trigger:
|
|
221
|
+
X(u.$slots, "default", { trigger: o }),
|
|
221
222
|
m(G, {
|
|
222
223
|
id: "unit-form",
|
|
223
|
-
modelValue:
|
|
224
|
-
"onUpdate:modelValue": v[4] || (v[4] = (r) =>
|
|
224
|
+
modelValue: a.value,
|
|
225
|
+
"onUpdate:modelValue": v[4] || (v[4] = (r) => a.value = r),
|
|
225
226
|
"is-container": l(le).FmForm,
|
|
226
227
|
"is-container-props": {
|
|
227
228
|
onValidationSuccess: Y,
|
|
@@ -246,7 +247,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
246
247
|
label: l(t)("menu.common.actions.cancel"),
|
|
247
248
|
size: "lg",
|
|
248
249
|
variant: "tertiary",
|
|
249
|
-
onClick: v[3] || (v[3] = () =>
|
|
250
|
+
onClick: v[3] || (v[3] = () => a.value = !1)
|
|
250
251
|
}, null, 8, ["label"])
|
|
251
252
|
])
|
|
252
253
|
]),
|
|
@@ -314,30 +315,30 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
314
315
|
], 64);
|
|
315
316
|
};
|
|
316
317
|
}
|
|
317
|
-
}), xe = Ue,
|
|
318
|
+
}), xe = Ue, qe = J("unit-manager", () => {
|
|
318
319
|
const y = ue(), g = j(), t = I(g), n = $(t);
|
|
319
|
-
|
|
320
|
-
const c = ee(), { t: d } = L(), b = (
|
|
320
|
+
ae();
|
|
321
|
+
const c = ee(), { t: d } = L(), b = (o) => {
|
|
321
322
|
var _, s;
|
|
322
323
|
const { vNode: p } = me(
|
|
323
324
|
xe,
|
|
324
325
|
c,
|
|
325
|
-
|
|
326
|
+
o
|
|
326
327
|
);
|
|
327
328
|
(s = (_ = p.component) == null ? void 0 : _.exposed) == null || s.trigger();
|
|
328
329
|
};
|
|
329
330
|
async function e() {
|
|
330
331
|
b({});
|
|
331
332
|
}
|
|
332
|
-
async function i(
|
|
333
|
+
async function i(o) {
|
|
333
334
|
b({
|
|
334
|
-
initialValue:
|
|
335
|
+
initialValue: o
|
|
335
336
|
});
|
|
336
337
|
}
|
|
337
|
-
async function o
|
|
338
|
+
async function a(o) {
|
|
338
339
|
y.open({
|
|
339
340
|
title: d("menu.common.dialog.remove.unit.title"),
|
|
340
|
-
message: d("menu.common.dialog.remove.unit.message", { name:
|
|
341
|
+
message: d("menu.common.dialog.remove.unit.message", { name: o.name }),
|
|
341
342
|
primaryActions: {
|
|
342
343
|
text: d("menu.common.actions.remove"),
|
|
343
344
|
close: !0,
|
|
@@ -352,20 +353,20 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
352
353
|
{
|
|
353
354
|
module: D.F_MENU_MODULE_V4_KEY.enum.unit,
|
|
354
355
|
operation: C.F_OPERATION_TYPE.delete,
|
|
355
|
-
data:
|
|
356
|
+
data: o._id
|
|
356
357
|
},
|
|
357
|
-
|
|
358
|
+
o.name,
|
|
358
359
|
!0
|
|
359
360
|
);
|
|
360
361
|
});
|
|
361
362
|
}
|
|
362
363
|
return {
|
|
363
364
|
createUnit: e,
|
|
364
|
-
deleteUnit:
|
|
365
|
+
deleteUnit: a,
|
|
365
366
|
updateUnit: i
|
|
366
367
|
};
|
|
367
368
|
});
|
|
368
369
|
export {
|
|
369
370
|
xe as U,
|
|
370
|
-
|
|
371
|
+
qe as u
|
|
371
372
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-menu",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.41-prod",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"@feedmepos/core": "2.14.36",
|
|
20
20
|
"@feedmepos/core-dart": "^0.2.6",
|
|
21
21
|
"@feedmepos/core-legacy": "file:../../core-legacy-1.2.tar.gz",
|
|
22
|
-
"@feedmepos/custom-attributes": "0.0.1-rc.
|
|
22
|
+
"@feedmepos/custom-attributes": "0.0.1-rc.4",
|
|
23
23
|
"@feedmepos/inventory-core": "^0.2.6",
|
|
24
|
-
"@feedmepos/menu": "1.7.
|
|
24
|
+
"@feedmepos/menu": "1.7.14",
|
|
25
25
|
"@feedmepos/mf-inventory-portal": "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz",
|
|
26
26
|
"@feedmepos/remy-vue-client": "0.1.3-beta.8",
|
|
27
27
|
"@feedmepos/ui-library": "1.7.4",
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, createElementBlock as s, openBlock as t, normalizeClass as i, renderSlot as o, createCommentVNode as l, createVNode as m, createElementVNode as n, toDisplayString as a, withCtx as d } from "vue";
|
|
2
|
-
const f = /* @__PURE__ */ r({
|
|
3
|
-
__name: "FormColumn",
|
|
4
|
-
props: {
|
|
5
|
-
shrinkable: { type: Boolean }
|
|
6
|
-
},
|
|
7
|
-
setup(p) {
|
|
8
|
-
return (e, c) => (t(), s("div", {
|
|
9
|
-
class: i(["flex-1 flex flex-col space-y-24", { "min-h-0": e.shrinkable }])
|
|
10
|
-
}, [
|
|
11
|
-
o(e.$slots, "default")
|
|
12
|
-
], 2));
|
|
13
|
-
}
|
|
14
|
-
}), h = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "flex flex-row justify-between items-center"
|
|
17
|
-
}, u = { class: "space-y-4" }, _ = { class: "fm-typo-en-title-sm-600" }, y = {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
20
|
-
}, k = /* @__PURE__ */ r({
|
|
21
|
-
__name: "FormSection",
|
|
22
|
-
props: {
|
|
23
|
-
title: {},
|
|
24
|
-
subTitle: {},
|
|
25
|
-
shrinkable: { type: Boolean }
|
|
26
|
-
},
|
|
27
|
-
setup(p) {
|
|
28
|
-
return (e, c) => (t(), s("div", {
|
|
29
|
-
class: i(["flex flex-col space-y-16", { "min-h-0": e.shrinkable }])
|
|
30
|
-
}, [
|
|
31
|
-
e.title ? (t(), s("div", h, [
|
|
32
|
-
n("div", u, [
|
|
33
|
-
n("p", _, a(e.title), 1),
|
|
34
|
-
e.subTitle ? (t(), s("p", y, a(e.subTitle), 1)) : l("", !0)
|
|
35
|
-
]),
|
|
36
|
-
o(e.$slots, "append-title")
|
|
37
|
-
])) : l("", !0),
|
|
38
|
-
m(f, { shrinkable: e.shrinkable }, {
|
|
39
|
-
default: d(() => [
|
|
40
|
-
o(e.$slots, "default")
|
|
41
|
-
]),
|
|
42
|
-
_: 3
|
|
43
|
-
}, 8, ["shrinkable"])
|
|
44
|
-
], 2));
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
export {
|
|
48
|
-
k as _,
|
|
49
|
-
f as a
|
|
50
|
-
};
|