@feedmepos/mf-menu 0.32.7-beta.2 → 0.32.7-dev
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-BIQ0CTci.js → App-DCkQc7e4.js} +98 -98
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js +161 -0
- package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js +74 -0
- package/dist/{Catalog-D2wc24o8.js → Catalog-CUPoRid3.js} +9 -9
- package/dist/{Category-DA5-55d2.js → Category-BkvhZ57Y.js} +7 -7
- package/dist/{Category-BPufryqK.js → Category-Cdw0ikhP.js} +4 -4
- package/dist/{CookingGuide-DKvou40e.js → CookingGuide-BZ-4oULM.js} +6 -6
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DHoAYdGI.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJvVFWdR.js} +3 -3
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +26 -0
- package/dist/{Group-D60oAvmM.js → Group-C1FaXdUb.js} +1 -1
- package/dist/{Group-Bgpc6qE1.js → Group-Cec83DWm.js} +4 -4
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BXn3--BL.js → Group.vue_vue_type_script_setup_true_lang-2_lLBdX2.js} +128 -128
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BD9IZkwW.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BEDyKWhK.js} +91 -91
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BE3LdBYY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js} +3225 -3225
- package/dist/{Ingredient-Brv4hml-.js → Ingredient-DulL8h2B.js} +29 -29
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CIOX-pq1.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DoBx7Dal.js} +104 -104
- package/dist/{LinkProductSideSheet-BDMbKJ8o.js → LinkProductSideSheet-Br2eE8pC.js} +251 -251
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +69 -0
- package/dist/{MenuSetting-DvCu23my.js → MenuSetting-DxW4LCW4.js} +77 -77
- package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js → PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js} +8 -8
- package/dist/{PrintRoute-DwgLKDUV.js → PrintRoute-Da6Zkx-0.js} +5 -5
- package/dist/{Product-EmoWM778.js → Product-Cs76t18_.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-5HyO_RYw.js → Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js} +606 -606
- package/dist/{ProductInternalTools-PqzouaF2.js → ProductInternalTools-DPbeRvTM.js} +10 -10
- package/dist/{Products-ZgfTT9dI.js → Products--7dGfuuT.js} +52 -52
- package/dist/{Publish-CUdRwmN1.js → Publish-COmZtiyX.js} +5 -5
- package/dist/{Recipe-BRUxyire.js → Recipe-BaN_1zrP.js} +5 -5
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CPFGkaTr.js → RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js} +451 -448
- package/dist/{Scheduler-BXdZh-xC.js → Scheduler-BSUpIAaK.js} +4 -4
- package/dist/{ServingSequence-EAZHOHiy.js → ServingSequence-dXBb7e5d.js} +4 -4
- package/dist/{Setting-BRut_Xj0.js → Setting-CalEQW0n.js} +6 -6
- package/dist/{Subcategory-D6Yrs-vO.js → Subcategory-zPHtX7Vc.js} +5 -5
- package/dist/{Takeaway-Bi8JfDWa.js → Takeaway-CRDj2Bpe.js} +5 -5
- package/dist/{Takeaway-CRdlNTu7.js → Takeaway-CcnmeTmu.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DKQZ9J8Z.js → Takeaway.vue_vue_type_script_setup_true_lang-Cj7vyOaP.js} +5 -5
- package/dist/{TextChip.vue_vue_type_script_setup_true_lang-BJMcI3U2.js → TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DDWk-WUW.js → Thumbnail.vue_vue_type_script_setup_true_lang-B0552qsN.js} +74 -74
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwnyIDNH.js +6038 -0
- package/dist/{Unit-Ccs_k5IS.js → Unit-C7-Oj5S3.js} +3 -3
- package/dist/{Variant-BHmgMXq7.js → Variant-CYiMkE0q.js} +4 -4
- package/dist/{_id_-DSSoi4Gy.js → _id_-D75ZcNlf.js} +11 -11
- package/dist/{app-CzXxFrl1.js → app-5fxKLAzS.js} +447 -447
- package/dist/{app-C8Dm2-h4.js → app-BhLVpUSl.js} +35 -35
- package/dist/{app-B9seAt5l.js → app-DzVMOviz.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +20 -0
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/MenuSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/SubcategoryManager/SubcategorySelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +2 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-BoIPm5hC.js +13 -0
- package/dist/assets/override-menu-DfTrwWpR.js +13 -0
- package/dist/assets/validate-menu-BhWvQ3T9.js +13 -0
- package/dist/{catalog-CD-fdGdY.js → catalog-CudNSsIP.js} +1 -1
- package/dist/{catalogSetting-Ci85lXor.js → catalogSetting-BVHO9tK3.js} +1 -1
- package/dist/{category-6NAH0dUF.js → category-BQpgz1lk.js} +1 -1
- package/dist/{currency-BP_z7R5d.js → currency-BfS7H2KE.js} +1 -1
- package/dist/{index-BLMijxTj.js → index-BHdPJta4.js} +91 -91
- package/dist/{index-C1XCbqC-.js → index-DmGJvREM.js} +56 -56
- package/dist/{index-Cftm4-G_.js → index-DuLXS699.js} +5 -5
- package/dist/{index-DgDQzkPR.js → index-aaoziUNI.js} +30 -30
- package/dist/{index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js → index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js} +40026 -40153
- package/dist/item-BtKW0wdj.js +7685 -0
- package/dist/{iteration-ZG64Re91.js → iteration-CaliNodx.js} +1 -1
- package/dist/{jszip.min-BETdv0rh.js → jszip.min-DXbkmgRD.js} +102 -102
- package/dist/{menu-COMXycAe.js → menu-D-lUEuvX.js} +1 -1
- package/dist/{menuV2-CeRS0Jw3.js → menuV2-D-6O36DO.js} +357 -348
- package/dist/mf-menu.css +1 -1
- package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
- package/dist/{priceTier-t2T3Q87F.js → priceTier-DKnYaOA9.js} +1 -1
- package/dist/{scheduler-BbJUVuiK.js → scheduler-DEwfbYPL.js} +7 -7
- package/dist/{subcategory-61kOQh4g.js → subcategory-CQKklgcd.js} +2 -2
- package/dist/{toExcel-DIYaK18-.js → toExcel-CRwL-QqF.js} +2 -2
- package/dist/{unit-B6StucsI.js → unit-BzM1rmN7.js} +151 -151
- package/dist/{vuedraggable-DnBIRDMr.js → vuedraggable-CK8z7qA8.js} +2 -2
- package/package.json +3 -2
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-BpEjqhAC.js +0 -161
- package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-CnCoRLDg.js +0 -74
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js +0 -26
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-Bm_hSelC.js +0 -69
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-JdHaBpaX.js +0 -5997
- package/dist/assets/linked-status-Cuf8X8_g.js +0 -13
- package/dist/assets/override-menu-yxQLf82k.js +0 -13
- package/dist/assets/validate-menu-BwbenBs6.js +0 -13
- package/dist/item-ByEPWjef.js +0 -6819
package/dist/mf-menu.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.expand-enter-from[data-v-
|
|
1
|
+
.expand-enter-from[data-v-60163177]{opacity:0;max-height:0}.expand-enter-to[data-v-60163177],.expand-leave-from[data-v-60163177]{opacity:1;max-height:1000px}.expand-leave-to[data-v-60163177]{opacity:0;max-height:0}.expand-enter-active[data-v-60163177],.expand-leave-active[data-v-60163177]{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-89b5becb]{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-206a7f23] 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-39d56d57] 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}
|
|
@@ -79,10 +79,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
79
79
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
80
80
|
}>, {
|
|
81
81
|
disabled: boolean;
|
|
82
|
-
placeholder: string;
|
|
83
82
|
variant: "default" | "dark";
|
|
84
83
|
isLoading: boolean;
|
|
85
84
|
items: SelectFilterOption[];
|
|
85
|
+
placeholder: string;
|
|
86
86
|
maxHeight: string | number;
|
|
87
87
|
searchable: boolean;
|
|
88
88
|
multiple: boolean;
|
|
@@ -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, D as M } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { u as k, D as M } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,12 +1,12 @@
|
|
|
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 A, 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, z as r, u as pe, I as ve, J as ue } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { H as S, z as r, u as pe, I as ve, J as ue } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
|
|
3
3
|
import { useI18n as de } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as _e } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as fe } from "./FormItem.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as fe } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
6
|
+
import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js";
|
|
7
7
|
import { u as ye } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as he } from "./menu-
|
|
9
|
-
import { L as ge } from "./LinkProductSideSheet-
|
|
8
|
+
import { u as he } from "./menu-D-lUEuvX.js";
|
|
9
|
+
import { L as ge } from "./LinkProductSideSheet-Br2eE8pC.js";
|
|
10
10
|
const Ve = { class: "space-y-8" }, Fe = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "space-y-16"
|
|
@@ -213,7 +213,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
213
213
|
function w(i, l) {
|
|
214
214
|
const y = m(i), g = m(l);
|
|
215
215
|
return y <= g ? [{ start: y, end: g }] : [
|
|
216
|
-
{ start: y, end:
|
|
216
|
+
{ start: y, end: 24 * 60 - 1 },
|
|
217
217
|
// Until end of day (23:59)
|
|
218
218
|
{ start: 0, end: g }
|
|
219
219
|
// From start of next day
|
|
@@ -386,7 +386,7 @@ const Ve = { class: "space-y-8" }, Fe = {
|
|
|
386
386
|
"onUpdate:modelValue": (R) => o.start = R,
|
|
387
387
|
class: "flex-1"
|
|
388
388
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
389
|
-
l[8] || (l[8] = me(" - "
|
|
389
|
+
l[8] || (l[8] = me(" - ")),
|
|
390
390
|
t(j, {
|
|
391
391
|
modelValue: o.end,
|
|
392
392
|
"onUpdate:modelValue": (R) => o.end = R,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as C, unref as c, withCtx as V, createVNode as A } from "vue";
|
|
2
|
-
import { J as l, z as d, u as F } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { J as l, z as d, u as F } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.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-D-6O36DO.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 "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js";
|
|
2
|
+
import "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineStore as J } from "pinia";
|
|
2
|
-
import { defineComponent as O, computed as
|
|
3
|
-
import { a6 as B, a7 as te, a4 as P, H as k, O as $, D as I, B as E, a5 as ne, J as C, z as D, I as
|
|
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 B, a7 as te, a4 as P, H as k, O as $, D as I, B as E, a5 as ne, J as C, z as D, I as oe, u as ae } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.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
|
-
import { c as
|
|
8
|
-
import "./vuedraggable-
|
|
9
|
-
import "./menuV2-
|
|
10
|
-
import "./app-
|
|
7
|
+
import { c as re } from "./check-C9mY6LiX.js";
|
|
8
|
+
import "./vuedraggable-CK8z7qA8.js";
|
|
9
|
+
import "./menuV2-D-6O36DO.js";
|
|
10
|
+
import "./app-5fxKLAzS.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
import { c as
|
|
12
|
+
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
14
14
|
__name: "NumberPrecisionInput",
|
|
15
15
|
props: {
|
|
@@ -21,56 +21,56 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
21
21
|
disabled: { type: Boolean }
|
|
22
22
|
},
|
|
23
23
|
emits: ["update:modelValue"],
|
|
24
|
-
setup(
|
|
25
|
-
const t =
|
|
26
|
-
T([() =>
|
|
24
|
+
setup(y, { emit: g }) {
|
|
25
|
+
const t = y, n = g, c = U(() => B(t.step ?? 1).precision), d = h(t.modelValue.toString());
|
|
26
|
+
T([() => d.value], ([e]) => {
|
|
27
27
|
e === "-" || e === "." ? n("update:modelValue", 0) : n("update:modelValue", +e);
|
|
28
28
|
});
|
|
29
|
-
const
|
|
29
|
+
const b = (e) => {
|
|
30
30
|
if (e.ctrlKey || e.altKey || e.metaKey || ["Backspace", "Tab", "Enter", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"].includes(
|
|
31
31
|
e.key
|
|
32
32
|
))
|
|
33
33
|
return;
|
|
34
|
-
const
|
|
35
|
-
if (isFinite(
|
|
36
|
-
B(
|
|
34
|
+
const i = e.currentTarget, a = +`${i.value}${e.key}`;
|
|
35
|
+
if (isFinite(a)) {
|
|
36
|
+
B(a).precision > c.value && e.preventDefault();
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
i.value.length === 0 && (e.key === "-" || e.key === ".") || e.preventDefault();
|
|
40
40
|
};
|
|
41
|
-
return (e,
|
|
42
|
-
const
|
|
43
|
-
return F(), W(
|
|
44
|
-
disabled:
|
|
45
|
-
modelValue:
|
|
46
|
-
rules:
|
|
47
|
-
"helper-text":
|
|
48
|
-
label:
|
|
41
|
+
return (e, i) => {
|
|
42
|
+
const a = V("FmField"), o = V("FmFormGroup");
|
|
43
|
+
return F(), W(o, {
|
|
44
|
+
disabled: e.disabled,
|
|
45
|
+
modelValue: e.modelValue,
|
|
46
|
+
rules: e.rules,
|
|
47
|
+
"helper-text": e.helperText,
|
|
48
|
+
label: e.label
|
|
49
49
|
}, {
|
|
50
|
-
default:
|
|
51
|
-
|
|
52
|
-
default:
|
|
53
|
-
|
|
54
|
-
value:
|
|
55
|
-
onInput:
|
|
56
|
-
onKeydown:
|
|
50
|
+
default: w(({ invalid: p }) => [
|
|
51
|
+
m(a, { invalid: p }, {
|
|
52
|
+
default: w(() => [
|
|
53
|
+
f("input", {
|
|
54
|
+
value: d.value,
|
|
55
|
+
onInput: i[0] || (i[0] = (_) => d.value = _.target.value),
|
|
56
|
+
onKeydown: b,
|
|
57
57
|
inputmode: "numeric",
|
|
58
58
|
class: Q({
|
|
59
59
|
"fm-text-field--input fm-typo-en-body-lg-400": !0,
|
|
60
|
-
"text-fm-color-typo-primary": !
|
|
61
|
-
"text-fm-color-typo-disabled":
|
|
60
|
+
"text-fm-color-typo-primary": !e.disabled,
|
|
61
|
+
"text-fm-color-typo-disabled": e.disabled
|
|
62
62
|
}),
|
|
63
|
-
disabled:
|
|
63
|
+
disabled: e.disabled
|
|
64
64
|
}, null, 42, de)
|
|
65
65
|
]),
|
|
66
|
-
_:
|
|
67
|
-
},
|
|
66
|
+
_: 2
|
|
67
|
+
}, 1032, ["invalid"])
|
|
68
68
|
]),
|
|
69
69
|
_: 1
|
|
70
70
|
}, 8, ["disabled", "modelValue", "rules", "helper-text", "label"]);
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
}), pe = { class: "flex flex-col gap-8" }, ve = { class: "flex justify-between" }, fe = { class: "col q-mb-sm t-body-bold" }, be = { class: "flex flex-row gap-8" },
|
|
73
|
+
}), pe = { class: "flex flex-col gap-8" }, ve = { class: "flex justify-between" }, fe = { class: "col q-mb-sm t-body-bold" }, be = { class: "flex flex-row gap-8" }, _e = { class: "q-mt-xs q-pl-sm t-system text-fsecondary" }, Ve = /* @__PURE__ */ O({
|
|
74
74
|
__name: "UnitMeasurement",
|
|
75
75
|
props: {
|
|
76
76
|
title: {
|
|
@@ -91,84 +91,84 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
emits: ["update:model-value", "delete"],
|
|
94
|
-
setup(
|
|
95
|
-
const { t } = L(), n =
|
|
94
|
+
setup(y, { emit: g }) {
|
|
95
|
+
const { t } = L(), n = y, c = U(() => te(n.modelValue.conversion)), d = U(() => t("menu.unit.measurement.preview", {
|
|
96
96
|
name: n.modelValue.name,
|
|
97
|
-
value:
|
|
97
|
+
value: c.value,
|
|
98
98
|
unit: n.unitName
|
|
99
99
|
}));
|
|
100
|
-
function
|
|
101
|
-
e("conversion", P(
|
|
100
|
+
function b(a) {
|
|
101
|
+
e("conversion", P(a, n.precision));
|
|
102
102
|
}
|
|
103
|
-
function e(
|
|
104
|
-
const
|
|
105
|
-
|
|
103
|
+
function e(a, o) {
|
|
104
|
+
const p = k(n.modelValue);
|
|
105
|
+
p[a] = o, i("update:model-value", p);
|
|
106
106
|
}
|
|
107
|
-
const
|
|
107
|
+
const i = g;
|
|
108
108
|
return T(
|
|
109
109
|
() => n.precision,
|
|
110
|
-
() =>
|
|
111
|
-
), (
|
|
112
|
-
const
|
|
110
|
+
() => b(c.value)
|
|
111
|
+
), (a, o) => {
|
|
112
|
+
const p = V("FmButton"), _ = V("FmTextField");
|
|
113
113
|
return F(), A("div", pe, [
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
f("div", ve, [
|
|
115
|
+
f("div", fe, M(y.title), 1),
|
|
116
|
+
m(p, {
|
|
117
117
|
icon: "delete",
|
|
118
118
|
variant: "secondary",
|
|
119
|
-
onClick:
|
|
119
|
+
onClick: o[0] || (o[0] = (s) => i("delete"))
|
|
120
120
|
})
|
|
121
121
|
]),
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
f("div", be, [
|
|
123
|
+
m(_, {
|
|
124
124
|
"model-value": n.modelValue.name,
|
|
125
125
|
rules: [
|
|
126
|
-
(
|
|
126
|
+
(s) => s ? !0 : l(t)("menu.common.validation.required", {
|
|
127
127
|
field: l(t)("menu.unit.measurement.name").toLowerCase()
|
|
128
128
|
})
|
|
129
129
|
],
|
|
130
130
|
label: l(t)("menu.unit.measurement.name"),
|
|
131
|
-
"onUpdate:modelValue":
|
|
131
|
+
"onUpdate:modelValue": o[1] || (o[1] = (s) => e("name", s.trim()))
|
|
132
132
|
}, null, 8, ["model-value", "rules", "label"]),
|
|
133
|
-
|
|
133
|
+
m(_, {
|
|
134
134
|
"model-value": n.modelValue.abbrev,
|
|
135
135
|
rules: [
|
|
136
|
-
(
|
|
136
|
+
(s) => s ? !0 : l(t)("menu.common.validation.required", {
|
|
137
137
|
field: l(t)("menu.unit.measurement.symbol").toLowerCase()
|
|
138
138
|
})
|
|
139
139
|
],
|
|
140
140
|
label: l(t)("menu.unit.measurement.symbol"),
|
|
141
|
-
"onUpdate:modelValue":
|
|
141
|
+
"onUpdate:modelValue": o[2] || (o[2] = (s) => e("abbrev", s.trim()))
|
|
142
142
|
}, null, 8, ["model-value", "rules", "label"])
|
|
143
143
|
]),
|
|
144
|
-
|
|
144
|
+
m(ce, {
|
|
145
145
|
label: l(t)("menu.unit.measurement.conversion"),
|
|
146
|
-
"model-value":
|
|
147
|
-
"onUpdate:modelValue":
|
|
146
|
+
"model-value": c.value,
|
|
147
|
+
"onUpdate:modelValue": b,
|
|
148
148
|
step: 1 / Math.pow(10, n.precision)
|
|
149
149
|
}, null, 8, ["label", "model-value", "step"]),
|
|
150
|
-
|
|
150
|
+
f("div", _e, M(l(t)("menu.unit.measurement.preview_label")) + ": " + M(d.value), 1)
|
|
151
151
|
]);
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
}),
|
|
154
|
+
}), ye = { class: "fm-typo-en-title-md-600" }, ge = { class: "pt-8 space-y-40" }, Fe = { class: "flex flex-row gap-16" }, we = { class: "flex gap-8 items-center justify-start" }, Ue = /* @__PURE__ */ O({
|
|
155
155
|
__name: "Form",
|
|
156
156
|
props: {
|
|
157
157
|
initialValue: {}
|
|
158
158
|
},
|
|
159
|
-
setup(
|
|
160
|
-
const { t } = L(), n =
|
|
159
|
+
setup(y, { expose: g }) {
|
|
160
|
+
const { t } = L(), n = y, c = $(I(j())), d = U(() => n.initialValue ? t("menu.unit.update") : t("menu.unit.add")), b = U(
|
|
161
161
|
() => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
|
|
162
|
-
), e = h(n.initialValue ? k(n.initialValue) : E.generator.initUnit()),
|
|
163
|
-
|
|
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;
|
|
164
164
|
};
|
|
165
|
-
function
|
|
166
|
-
e.value.measurements = e.value.measurements.map((
|
|
167
|
-
...
|
|
168
|
-
conversion: ne(
|
|
165
|
+
function p() {
|
|
166
|
+
e.value.measurements = e.value.measurements.map((u) => ({
|
|
167
|
+
...u,
|
|
168
|
+
conversion: ne(u.conversion, e.value.precision)
|
|
169
169
|
}));
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function _() {
|
|
172
172
|
e.value.measurements.push({
|
|
173
173
|
id: (/* @__PURE__ */ new Date()).toISOString(),
|
|
174
174
|
name: "",
|
|
@@ -176,53 +176,53 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
176
176
|
conversion: P(0, e.value.precision)
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
e.value.measurements.splice(
|
|
179
|
+
function s(u) {
|
|
180
|
+
e.value.measurements.splice(u, 1);
|
|
181
181
|
}
|
|
182
182
|
const K = se(
|
|
183
|
-
() => !
|
|
183
|
+
() => !oe.isEqual(e.value, n.initialValue || E.generator.initUnit()),
|
|
184
184
|
() => {
|
|
185
|
-
|
|
185
|
+
a.value = !1;
|
|
186
186
|
}
|
|
187
187
|
), Y = async () => {
|
|
188
188
|
try {
|
|
189
|
-
|
|
190
|
-
const
|
|
191
|
-
n.initialValue ? await
|
|
189
|
+
i.value = !0;
|
|
190
|
+
const u = k(e.value);
|
|
191
|
+
n.initialValue ? await c.updateMenu(
|
|
192
192
|
{
|
|
193
193
|
module: D.F_MENU_MODULE_V4_KEY.enum.unit,
|
|
194
194
|
operation: C.F_OPERATION_TYPE.update,
|
|
195
|
-
data:
|
|
195
|
+
data: u
|
|
196
196
|
},
|
|
197
|
-
|
|
198
|
-
) : await
|
|
197
|
+
u.name
|
|
198
|
+
) : await c.updateMenu(
|
|
199
199
|
{
|
|
200
200
|
module: D.F_MENU_MODULE_V4_KEY.enum.unit,
|
|
201
201
|
operation: C.F_OPERATION_TYPE.create,
|
|
202
|
-
data:
|
|
202
|
+
data: u
|
|
203
203
|
},
|
|
204
|
-
|
|
205
|
-
),
|
|
204
|
+
u.name
|
|
205
|
+
), o(!1), e.value = E.generator.initUnit();
|
|
206
206
|
} finally {
|
|
207
|
-
|
|
207
|
+
i.value = !1;
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
return T(
|
|
211
|
-
() =>
|
|
212
|
-
(
|
|
213
|
-
|
|
211
|
+
() => a.value,
|
|
212
|
+
(u) => {
|
|
213
|
+
u && (e.value = n.initialValue ? k(n.initialValue) : E.generator.initUnit());
|
|
214
214
|
}
|
|
215
215
|
), g({
|
|
216
|
-
show:
|
|
217
|
-
trigger:
|
|
218
|
-
}), (
|
|
219
|
-
const N =
|
|
216
|
+
show: a,
|
|
217
|
+
trigger: o
|
|
218
|
+
}), (u, v) => {
|
|
219
|
+
const N = V("FmTextField"), z = V("FmStepperField"), R = V("FmButton"), S = V("fm-button"), G = V("fm-side-sheet");
|
|
220
220
|
return F(), A(q, null, [
|
|
221
|
-
X(
|
|
222
|
-
|
|
221
|
+
X(u.$slots, "default", { trigger: o }),
|
|
222
|
+
m(G, {
|
|
223
223
|
id: "unit-form",
|
|
224
|
-
modelValue:
|
|
225
|
-
"onUpdate:modelValue":
|
|
224
|
+
modelValue: a.value,
|
|
225
|
+
"onUpdate:modelValue": v[4] || (v[4] = (r) => a.value = r),
|
|
226
226
|
"is-container": l(le).FmForm,
|
|
227
227
|
"is-container-props": {
|
|
228
228
|
onValidationSuccess: Y,
|
|
@@ -231,45 +231,45 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
231
231
|
"max-width": 560,
|
|
232
232
|
"onOn:clickedAway": l(K)
|
|
233
233
|
}, {
|
|
234
|
-
"side-sheet-header":
|
|
235
|
-
|
|
234
|
+
"side-sheet-header": w(() => [
|
|
235
|
+
f("p", ye, M(d.value), 1)
|
|
236
236
|
]),
|
|
237
|
-
"side-sheet-footer":
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
label:
|
|
241
|
-
loading:
|
|
237
|
+
"side-sheet-footer": w(() => [
|
|
238
|
+
f("div", we, [
|
|
239
|
+
m(S, {
|
|
240
|
+
label: b.value,
|
|
241
|
+
loading: i.value,
|
|
242
242
|
size: "lg",
|
|
243
243
|
type: "submit",
|
|
244
244
|
variant: "primary"
|
|
245
245
|
}, null, 8, ["label", "loading"]),
|
|
246
|
-
|
|
246
|
+
m(S, {
|
|
247
247
|
label: l(t)("menu.common.actions.cancel"),
|
|
248
248
|
size: "lg",
|
|
249
249
|
variant: "tertiary",
|
|
250
|
-
onClick:
|
|
250
|
+
onClick: v[3] || (v[3] = () => a.value = !1)
|
|
251
251
|
}, null, 8, ["label"])
|
|
252
252
|
])
|
|
253
253
|
]),
|
|
254
|
-
default:
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
254
|
+
default: w(() => [
|
|
255
|
+
f("div", ge, [
|
|
256
|
+
f("div", Fe, [
|
|
257
|
+
m(N, {
|
|
258
258
|
class: "flex-2",
|
|
259
259
|
label: l(t)("menu.unit.columns.name"),
|
|
260
260
|
modelValue: e.value.name,
|
|
261
|
-
"onUpdate:modelValue":
|
|
261
|
+
"onUpdate:modelValue": v[0] || (v[0] = (r) => e.value.name = r),
|
|
262
262
|
rules: [
|
|
263
263
|
(r) => r ? !0 : l(t)("menu.common.validation.required", {
|
|
264
264
|
field: l(t)("menu.unit.columns.name").toLowerCase()
|
|
265
265
|
})
|
|
266
266
|
]
|
|
267
267
|
}, null, 8, ["label", "modelValue", "rules"]),
|
|
268
|
-
|
|
268
|
+
m(N, {
|
|
269
269
|
class: "flex-1",
|
|
270
270
|
label: l(t)("menu.unit.columns.symbol"),
|
|
271
271
|
modelValue: e.value.abbrev,
|
|
272
|
-
"onUpdate:modelValue":
|
|
272
|
+
"onUpdate:modelValue": v[1] || (v[1] = (r) => e.value.abbrev = r),
|
|
273
273
|
rules: [
|
|
274
274
|
(r) => r ? !0 : l(t)("menu.common.validation.required", {
|
|
275
275
|
field: l(t)("menu.unit.columns.symbol").toLowerCase()
|
|
@@ -277,12 +277,12 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
277
277
|
]
|
|
278
278
|
}, null, 8, ["label", "modelValue", "rules"])
|
|
279
279
|
]),
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
f("div", null, [
|
|
281
|
+
m(z, {
|
|
282
282
|
modelValue: e.value.precision,
|
|
283
283
|
"onUpdate:modelValue": [
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
v[2] || (v[2] = (r) => e.value.precision = r),
|
|
285
|
+
p
|
|
286
286
|
],
|
|
287
287
|
label: l(t)("menu.unit.precision"),
|
|
288
288
|
placeholder: l(t)("menu.unit.precision_placeholder"),
|
|
@@ -291,21 +291,21 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
291
291
|
max: 5
|
|
292
292
|
}, null, 8, ["modelValue", "label", "placeholder"])
|
|
293
293
|
]),
|
|
294
|
-
|
|
294
|
+
m(R, {
|
|
295
295
|
label: l(t)("menu.unit.measurement.add"),
|
|
296
296
|
variant: "secondary",
|
|
297
|
-
onClick:
|
|
297
|
+
onClick: _
|
|
298
298
|
}, null, 8, ["label"]),
|
|
299
|
-
(F(!0), A(q, null, Z(e.value.measurements, (r,
|
|
299
|
+
(F(!0), A(q, null, Z(e.value.measurements, (r, x) => (F(), A("div", {
|
|
300
300
|
key: r.id
|
|
301
301
|
}, [
|
|
302
|
-
|
|
303
|
-
modelValue: e.value.measurements[
|
|
304
|
-
"onUpdate:modelValue": (H) => e.value.measurements[
|
|
302
|
+
m(Ve, {
|
|
303
|
+
modelValue: e.value.measurements[x],
|
|
304
|
+
"onUpdate:modelValue": (H) => e.value.measurements[x] = H,
|
|
305
305
|
"unit-name": e.value.name,
|
|
306
|
-
title: l(t)("menu.unit.measurement.title", { number:
|
|
306
|
+
title: l(t)("menu.unit.measurement.title", { number: x + 1 }),
|
|
307
307
|
precision: e.value.precision,
|
|
308
|
-
onDelete: () =>
|
|
308
|
+
onDelete: () => s(x)
|
|
309
309
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "unit-name", "title", "precision", "onDelete"])
|
|
310
310
|
]))), 128))
|
|
311
311
|
])
|
|
@@ -315,37 +315,37 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
315
315
|
], 64);
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
}),
|
|
319
|
-
const
|
|
320
|
-
|
|
321
|
-
const
|
|
322
|
-
var
|
|
323
|
-
const { vNode:
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
318
|
+
}), xe = Ue, qe = J("unit-manager", () => {
|
|
319
|
+
const y = ue(), g = j(), t = I(g), n = $(t);
|
|
320
|
+
ae();
|
|
321
|
+
const c = ee(), { t: d } = L(), b = (o) => {
|
|
322
|
+
var _, s;
|
|
323
|
+
const { vNode: p } = me(
|
|
324
|
+
xe,
|
|
325
|
+
c,
|
|
326
|
+
o
|
|
327
327
|
);
|
|
328
|
-
(
|
|
328
|
+
(s = (_ = p.component) == null ? void 0 : _.exposed) == null || s.trigger();
|
|
329
329
|
};
|
|
330
330
|
async function e() {
|
|
331
|
-
|
|
331
|
+
b({});
|
|
332
332
|
}
|
|
333
|
-
async function
|
|
334
|
-
|
|
335
|
-
initialValue:
|
|
333
|
+
async function i(o) {
|
|
334
|
+
b({
|
|
335
|
+
initialValue: o
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
|
-
async function o
|
|
339
|
-
|
|
340
|
-
title:
|
|
341
|
-
message:
|
|
338
|
+
async function a(o) {
|
|
339
|
+
y.open({
|
|
340
|
+
title: d("menu.common.dialog.remove.unit.title"),
|
|
341
|
+
message: d("menu.common.dialog.remove.unit.message", { name: o.name }),
|
|
342
342
|
primaryActions: {
|
|
343
|
-
text:
|
|
343
|
+
text: d("menu.common.actions.remove"),
|
|
344
344
|
close: !0,
|
|
345
345
|
variant: ie.Destructive
|
|
346
346
|
},
|
|
347
347
|
secondaryActions: {
|
|
348
|
-
text:
|
|
348
|
+
text: d("menu.common.actions.cancel"),
|
|
349
349
|
close: !0
|
|
350
350
|
}
|
|
351
351
|
}).onPrimary(async () => {
|
|
@@ -353,20 +353,20 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
|
|
|
353
353
|
{
|
|
354
354
|
module: D.F_MENU_MODULE_V4_KEY.enum.unit,
|
|
355
355
|
operation: C.F_OPERATION_TYPE.delete,
|
|
356
|
-
data:
|
|
356
|
+
data: o._id
|
|
357
357
|
},
|
|
358
|
-
|
|
358
|
+
o.name,
|
|
359
359
|
!0
|
|
360
360
|
);
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
363
|
return {
|
|
364
364
|
createUnit: e,
|
|
365
|
-
deleteUnit:
|
|
366
|
-
updateUnit:
|
|
365
|
+
deleteUnit: a,
|
|
366
|
+
updateUnit: i
|
|
367
367
|
};
|
|
368
368
|
});
|
|
369
369
|
export {
|
|
370
|
-
|
|
370
|
+
xe as U,
|
|
371
371
|
qe as u
|
|
372
372
|
};
|